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

Function toolUpdated

packages/opencode/test/acp/event.test.ts:158–168  ·  view source on GitHub ↗
(part: ToolPart)

Source from the content-addressed store, hash-verified

156}
157
158function toolUpdated(part: ToolPart): Event {
159 return {
160 id: `evt_${part.sessionID}_${part.messageID}_${part.id}_${part.state.status}`,
161 type: "message.part.updated",
162 properties: {
163 sessionID: part.sessionID,
164 time: Date.now(),
165 part,
166 },
167 }
168}
169
170function assistantMessage(sessionID: string, messageID: string, partID: string, type: DeltaPartType) {
171 return {

Callers 1

event.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected