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

Function makeSession

packages/opencode/src/acp/session.ts:206–217  ·  view source on GitHub ↗
(input: StoreInput)

Source from the content-addressed store, hash-verified

204export const node = LayerNode.make({ service: Service, layer, deps: [] })
205
206function makeSession(input: StoreInput): Info {
207 return {
208 id: input.id,
209 cwd: input.cwd,
210 mcpServers: [...(input.mcpServers ?? [])],
211 createdAt: input.createdAt ? new Date(input.createdAt) : new Date(),
212 model: input.model,
213 variant: input.variant,
214 modeId: input.modeId,
215 knownParts: new Map(),
216 }
217}
218
219function snapshot(session: Info): Info {
220 return {

Callers 1

session.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected