(clientInfo: object | undefined, root: string)
| 105 | } |
| 106 | |
| 107 | function initializeParams(clientInfo: object | undefined, root: string): object { |
| 108 | return { |
| 109 | protocolVersion: '2025-06-18', |
| 110 | capabilities: {}, |
| 111 | ...(clientInfo ? { clientInfo } : {}), |
| 112 | rootUri: pathToFileURL(root).href, |
| 113 | }; |
| 114 | } |
| 115 | |
| 116 | /** `instructions` as OpenCode is meant to get them, put back the way every other client gets them. */ |
| 117 | function asForOtherClients(instructions: string): string { |
no outgoing calls
no test coverage detected