(target: string | undefined, state: ClientToolCallState)
| 67 | } |
| 68 | |
| 69 | function formatReadingLabel(target: string | undefined, state: ClientToolCallState): string { |
| 70 | const suffix = target ? ` ${target}` : '' |
| 71 | switch (state) { |
| 72 | case ClientToolCallState.success: |
| 73 | return `Read${suffix}` |
| 74 | case ClientToolCallState.error: |
| 75 | return `Attempted to read${suffix}` |
| 76 | case ClientToolCallState.rejected: |
| 77 | case ClientToolCallState.aborted: |
| 78 | return `Skipped reading${suffix}` |
| 79 | default: |
| 80 | return `Reading${suffix}` |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * VFS paths store each segment percent-encoded (see {@link encodeVfsSegment}), so |
no outgoing calls
no test coverage detected