(value: string)
| 480 | } |
| 481 | |
| 482 | function normalizeToolName(value: string) { |
| 483 | const key = value.trim().toLowerCase().replace(/\s+/g, "_") |
| 484 | const aliases: Record<string, string> = { |
| 485 | ls: "list", |
| 486 | list: "list", |
| 487 | read: "read", |
| 488 | edit: "edit", |
| 489 | write: "write", |
| 490 | bash: "bash", |
| 491 | grep: "grep", |
| 492 | glob: "glob", |
| 493 | webfetch: "webfetch", |
| 494 | web_fetch: "webfetch", |
| 495 | websearch: "websearch", |
| 496 | web_search: "websearch", |
| 497 | codesearch: "codesearch", |
| 498 | code_search: "codesearch", |
| 499 | } |
| 500 | return aliases[key] ?? key |
| 501 | } |
| 502 | |
| 503 | function normalizeAgentColor(value: unknown) { |
| 504 | if (typeof value !== "string") return value |
no outgoing calls
no test coverage detected