MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / initialWorkspace

Function initialWorkspace

graph-ui/src/app/workspace-strings.ts:84–87  ·  view source on GitHub ↗
(requested: string | null, saved: string | null, agentsEnabled = experimentalAgentsEnabled)

Source from the content-addressed store, hash-verified

82
83/** An unavailable explicit or saved workspace falls back to the source reader. */
84export function initialWorkspace(requested: string | null, saved: string | null, agentsEnabled = experimentalAgentsEnabled): Workspace {
85 const known = (value: string | null): value is Workspace => workspaceStrings.workspaces.some(workspace => workspace.id === value);
86 return allowedWorkspace(known(requested) ? requested : known(saved) ? saved : 'architecture', agentsEnabled);
87}

Callers 2

ProjectWindowViewFunction · 0.90

Calls 2

allowedWorkspaceFunction · 0.85
knownFunction · 0.70

Tested by

no test coverage detected