MCPcopy Create free account
hub / github.com/anomalyco/opencode / initialize

Function initialize

packages/opencode/test/cli/acp/helpers.ts:20–30  ·  view source on GitHub ↗
(acp: AcpClient)

Source from the content-addressed store, hash-verified

18}
19
20export 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
32export function newSession(acp: AcpClient, cwd: string) {
33 return Effect.gen(function* () {

Callers 6

skills.test.tsFile · 0.90
lifecycle.test.tsFile · 0.90
snapshot.test.tsFile · 0.50

Calls 2

expectOkFunction · 0.90
requestMethod · 0.45

Tested by

no test coverage detected