moving
This commit is contained in:
@@ -228,11 +228,12 @@ export interface BuildWorkspaceStateOpts {
|
||||
dataDir: string;
|
||||
workspaceId: string;
|
||||
wsManager: WsManagerLike;
|
||||
activateWorkspaceMind: (id: string) => boolean;
|
||||
/** @deprecated Read-only state construction no longer mutates global workspace state. */
|
||||
activateWorkspaceMind?: (id: string) => boolean;
|
||||
}
|
||||
|
||||
export function buildWorkspaceState(opts: BuildWorkspaceStateOpts): WorkspaceState | null {
|
||||
const { dataDir, workspaceId, wsManager, activateWorkspaceMind } = opts;
|
||||
const { dataDir, workspaceId, wsManager } = opts;
|
||||
|
||||
const ws = wsManager.get(workspaceId);
|
||||
if (!ws) return null;
|
||||
@@ -240,8 +241,6 @@ export function buildWorkspaceState(opts: BuildWorkspaceStateOpts): WorkspaceSta
|
||||
const mindPath = wsManager.getMindPath(workspaceId);
|
||||
if (!fs.existsSync(mindPath)) return null;
|
||||
|
||||
activateWorkspaceMind(workspaceId);
|
||||
|
||||
// ── Memory-sourced state ─────────────────────────────────────────
|
||||
let recentDecisions: StateItem[] = [];
|
||||
let awarenessItems: StateItem[] = [];
|
||||
|
||||
Reference in New Issue
Block a user