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

Function textPart

packages/app/src/context/sync-optimistic.test.ts:16–22  ·  view source on GitHub ↗
(id: string, sessionID: string, messageID: string)

Source from the content-addressed store, hash-verified

14})
15
16const textPart = (id: string, sessionID: string, messageID: string): Text => ({
17 id,
18 sessionID,
19 messageID,
20 type: "text",
21 text: id,
22})
23
24describe("sync optimistic reducers", () => {
25 test("applyOptimisticAdd inserts message in sorted order and stores parts", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected