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

Function legacySessionID

packages/opencode/test/project/migrate-global.test.ts:19–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const it = testEffect(LayerNode.compile(LayerNode.group([Project.node, Database.node, CrossSpawnSpawner.node])))
18
19function legacySessionID() {
20 // Global-session migration covers persisted IDs from before prefixed session IDs.
21 return crypto.randomUUID() as SessionID
22}
23
24function seed(opts: { id: SessionID; dir: string; project: ProjectV2.ID }) {
25 const now = Date.now()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected