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

Function user

packages/opencode/test/cli/run/session-data.test.ts:38–49  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

36}
37
38function user(id: string) {
39 return {
40 type: "message.updated",
41 properties: {
42 sessionID: "session-1",
43 info: {
44 id,
45 role: "user",
46 },
47 },
48 }
49}
50
51function text(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) {
52 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected