MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / installStorage

Function installStorage

apps/kimi-web/test/workspace-state.test.ts:161–166  ·  view source on GitHub ↗
(storage: Storage)

Source from the content-addressed store, hash-verified

159}
160
161function installStorage(storage: Storage): void {
162 Object.defineProperty(globalThis, 'localStorage', {
163 configurable: true,
164 value: storage,
165 });
166}
167
168function workspace(id: string, root: string, name: string) {
169 return { id, root, name, isGitRepo: false, sessionCount: 0 };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected