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

Function textDelta

packages/opencode/test/cli/run/stream.transport.test.ts:337–349  ·  view source on GitHub ↗
(messageID: string, partID: string, delta: string, sessionID = "session-1")

Source from the content-addressed store, hash-verified

335}
336
337function textDelta(messageID: string, partID: string, delta: string, sessionID = "session-1"): SdkEvent {
338 return {
339 id: `evt-${partID}-delta`,
340 type: "message.part.delta",
341 properties: {
342 sessionID,
343 messageID,
344 partID,
345 field: "text",
346 delta,
347 },
348 }
349}
350
351function child(id: string): SessionChild {
352 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected