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

Function loadWorkspaceOrder

apps/kimi-web/src/lib/storage.ts:172–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 * by the caller (newest first).
171 */
172export function loadWorkspaceOrder(): string[] {
173 const parsed = safeGetJson<unknown>(STORAGE_KEYS.workspaceOrder);
174 if (!Array.isArray(parsed)) return [];
175 return parsed.filter((id): id is string => typeof id === 'string');
176}
177
178export function saveWorkspaceOrder(ids: Iterable<string>): void {
179 safeSetJson(STORAGE_KEYS.workspaceOrder, Array.from(ids));

Callers 2

Calls 1

safeGetJsonFunction · 0.85

Tested by

no test coverage detected