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

Function serverWorkspace

packages/app/src/utils/persist.ts:499–501  ·  view source on GitHub ↗
(scope: ServerScopeValue, dir: string, key: string, legacy?: string[])

Source from the content-addressed store, hash-verified

497 return serverWorkspaceTarget(ServerScope.local, dir, `workspace:${key}`, legacy)
498 },
499 serverWorkspace(scope: ServerScopeValue, dir: string, key: string, legacy?: string[]): PersistTarget {
500 return serverWorkspaceTarget(scope, dir, `workspace:${key}`, legacy)
501 },
502 session(dir: string, session: string, key: string, legacy?: string[]): PersistTarget {
503 return serverWorkspaceTarget(ServerScope.local, dir, `session:${session}:${key}`, legacy)
504 },

Callers

nothing calls this directly

Calls 1

serverWorkspaceTargetFunction · 0.85

Tested by

no test coverage detected