(toolName: string, args: unknown)
| 58 | |
| 59 | /** Pure: pull the path a read tool just consumed. null for non-read tools. */ |
| 60 | export function extractReadPath(toolName: string, args: unknown): string | null { |
| 61 | if (!READ_TOOLS.has(toolName)) return null; |
| 62 | const p = (args as any)?.path; |
| 63 | return p ? String(p) : null; |
| 64 | } |
| 65 | |
| 66 | export type GateVerdict = |
| 67 | | { ok: true } |
no test coverage detected