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

Function msg

packages/app/src/context/global-sync/session-cache.test.ts:13–21  ·  view source on GitHub ↗
(id: string, sessionID: string)

Source from the content-addressed store, hash-verified

11import { dropSessionCaches, pickSessionCacheEvictions } from "./session-cache"
12
13const msg = (id: string, sessionID: string) =>
14 ({
15 id,
16 sessionID,
17 role: "user",
18 time: { created: 1 },
19 agent: "assistant",
20 model: { providerID: "openai", modelID: "gpt" },
21 }) as Message
22
23const part = (id: string, sessionID: string, messageID: string) =>
24 ({

Callers 2

ViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected