MCPcopy Create free account
hub / github.com/echoVic/blade-code / updateWorkspace

Method updateWorkspace

src/context/storage/MemoryStore.ts:112–120  ·  view source on GitHub ↗

* 更新工作空间信息

(updates: Partial<WorkspaceContext>)

Source from the content-addressed store, hash-verified

110 * 更新工作空间信息
111 */
112 updateWorkspace(updates: Partial<WorkspaceContext>): void {
113 if (!this.contextData) {
114 throw new Error('上下文数据未初始化');
115 }
116
117 Object.assign(this.contextData.layers.workspace, updates);
118 this.contextData.metadata.lastUpdated = Date.now();
119 this.recordAccess('workspace');
120 }
121
122 /**
123 * 清除内存数据

Callers

nothing calls this directly

Calls 1

recordAccessMethod · 0.95

Tested by

no test coverage detected