(key: string)
| 248 | } |
| 249 | |
| 250 | function maskKey(key: string): string { |
| 251 | if (key.length <= 8) return '•'.repeat(8) |
| 252 | return key.slice(0, 4) + '•'.repeat(Math.min(key.length - 8, 12)) + key.slice(-4) |
| 253 | } |
| 254 | |
| 255 | function parseToolInputValue(value: unknown): any[] { |
| 256 | if (Array.isArray(value)) return value |