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

Function session

packages/app/src/context/server-session.test.ts:6–15  ·  view source on GitHub ↗
(id: string, parentID?: string)

Source from the content-addressed store, hash-verified

4import { createServerSession } from "./server-session"
5
6const session = (id: string, parentID?: string): Session => ({
7 id,
8 slug: id,
9 projectID: "project",
10 directory: "/repo",
11 title: id,
12 version: "1",
13 parentID,
14 time: { created: 1, updated: 1 },
15})
16
17type UserMessage = Extract<Message, { role: "user" }>
18type TextPart = Extract<Part, { type: "text" }>

Callers 6

createPromptReadyFunction · 0.70
pickFunction · 0.70
prompt.tsxFile · 0.70
messageClientFunction · 0.70
comments.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected