MCPcopy Index your code
hub / github.com/anomalyco/opencode / handle

Method handle

packages/opencode/src/acp/event.ts:68–78  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

66 }
67
68 async handle(event: Event) {
69 switch (event.type) {
70 case "permission.asked":
71 this.permission.handle(event)
72 return
73 case "message.part.updated":
74 return this.handlePartUpdated(event)
75 case "message.part.delta":
76 return this.handlePartDelta(event)
77 }
78 }
79
80 async replayMessage(message: SessionMessageResponse) {
81 if (message.info.role !== "assistant" && message.info.role !== "user") return

Callers 1

runMethod · 0.95

Calls 2

handlePartUpdatedMethod · 0.95
handlePartDeltaMethod · 0.95

Tested by

no test coverage detected