(acp: AcpClient)
| 18 | } |
| 19 | |
| 20 | export function initialize(acp: AcpClient) { |
| 21 | return Effect.gen(function* () { |
| 22 | return expectOk( |
| 23 | yield* acp.request<InitializeResponse>("initialize", { |
| 24 | protocolVersion: 1, |
| 25 | clientCapabilities: { _meta: { "terminal-auth": true } }, |
| 26 | clientInfo: { name: "opencode-local-acp", version: "0.1.0" }, |
| 27 | }), |
| 28 | ) |
| 29 | }) |
| 30 | } |
| 31 | |
| 32 | export function newSession(acp: AcpClient, cwd: string) { |
| 33 | return Effect.gen(function* () { |
no test coverage detected