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

Function partUpdated

packages/app/src/context/server-sdk.test.ts:67–74  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

65
66describe("enqueueServerEvent", () => {
67 const partUpdated = (text: string) =>
68 ({
69 type: "message.part.updated",
70 properties: {
71 sessionID: "session",
72 part: { id: "part", sessionID: "session", messageID: "message", type: "text", text },
73 },
74 }) as Event
75
76 test("preserves part updates across message remove and re-add barriers", () => {
77 const events: Array<{ directory: string; payload: Event }> = []

Callers 1

server-sdk.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected