Commit edcee1d
fix: validate parameters and customParameters are objects before using
Add type guards for the parameters and customParameters fields in
_parseToolsMap, consistent with existing guards on name, description,
and type. Blind casts are replaced with null/object/array checks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 12815aa commit edcee1d
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
| |||
0 commit comments