(name: unknown)
| 22 | * identifies itself as `opencode`; the match ignores case. |
| 23 | */ |
| 24 | export function isOpenCodeClient(name: unknown): boolean { |
| 25 | return typeof name === 'string' && name.trim().toLowerCase() === 'opencode'; |
| 26 | } |
| 27 | |
| 28 | /** A tool's name as OpenCode lists it: `codegraph_explore` → `codegraph_codegraph_explore`. */ |
| 29 | export function openCodeToolName(tool: string): string { |
no outgoing calls
no test coverage detected