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

Function userInfo

packages/opencode/test/session/message-v2.test.ts:64–75  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

62}
63
64function userInfo(id: string): SessionV1.User {
65 return {
66 id,
67 sessionID,
68 role: "user",
69 time: { created: 0 },
70 agent: "user",
71 model: { providerID, modelID: ModelV2.ID.make("test") },
72 tools: {},
73 mode: "",
74 } as unknown as SessionV1.User
75}
76
77function assistantInfo(
78 id: string,

Callers 5

getUserShellFunction · 0.85
WorkspaceLayoutFunction · 0.85
ModelSectionFunction · 0.85
index.tsxFile · 0.85
message-v2.test.tsFile · 0.85

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected