MCPcopy
hub / github.com/anomalyco/opencode / start

Function start

packages/core/test/session-tool-progress.test.ts:68–86  ·  view source on GitHub ↗
(callID: string)

Source from the content-addressed store, hash-verified

66 return Schema.decodeUnknownSync(SessionMessage.Assistant)({ ...row.data, id: row.id, type: row.type })
67 })
68 const start = (callID: string) =>
69 Effect.gen(function* () {
70 yield* service.publish(SessionEvent.Tool.Input.Started, {
71 sessionID,
72 timestamp,
73 assistantMessageID,
74 callID,
75 name: "bash",
76 })
77 yield* service.publish(SessionEvent.Tool.Called, {
78 sessionID,
79 timestamp,
80 assistantMessageID,
81 callID,
82 tool: "bash",
83 input: { command: "pwd" },
84 provider: { executed: false },
85 })
86 })
87
88 yield* start("call-success")
89 expect((yield* readAssistant).content[0]).toMatchObject({

Callers 1

Calls 1

publishMethod · 0.45

Tested by

no test coverage detected