(toolUseID: string)
| 76 | } |
| 77 | |
| 78 | export function makeWebFetchSourceId(toolUseID: string): string { |
| 79 | const suffix = toolUseID |
| 80 | .trim() |
| 81 | .replace(/[^A-Za-z0-9]+/g, '_') |
| 82 | .replace(/^_+|_+$/g, '') |
| 83 | .toLowerCase() |
| 84 | |
| 85 | return `webfetch_${suffix || 'result'}` |
| 86 | } |
| 87 | |
| 88 | export function makeWebFetchSourceMetadata( |
| 89 | { |
no outgoing calls
no test coverage detected