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

Function userMessage

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

Source from the content-addressed store, hash-verified

5type Text = Extract<Part, { type: "text" }>
6
7const userMessage = (id: string, sessionID: string): Message => ({
8 id,
9 sessionID,
10 role: "user",
11 time: { created: 1 },
12 agent: "assistant",
13 model: { providerID: "openai", modelID: "gpt" },
14})
15
16const textPart = (id: string, sessionID: string, messageID: string): Text => ({
17 id,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected