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

Function connection

packages/opencode/test/acp/usage.test.ts:122–127  ·  view source on GitHub ↗
(updates: SessionNotification[])

Source from the content-addressed store, hash-verified

120 ])
121
122const connection = (updates: SessionNotification[]) => ({
123 sessionUpdate(params: SessionNotification) {
124 updates.push(params)
125 return Promise.resolve()
126 },
127})
128
129describe("acp usage", () => {
130 test("builds ACP Usage from assistant token shape", () => {

Callers 1

usage.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected