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

Function workspace

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

Source from the content-addressed store, hash-verified

494 return { storage: GLOBAL_STORAGE, key: ScopedKey.from(scope, key) }
495 },
496 workspace(dir: string, key: string, legacy?: string[]): PersistTarget {
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 },

Callers 3

LocalWorkspaceFunction · 0.50
loadMoreFunction · 0.50
terminal.tsxFile · 0.50

Calls 1

serverWorkspaceTargetFunction · 0.85

Tested by

no test coverage detected