MCPcopy
hub / github.com/Fission-AI/OpenSpec / readOptionalStoreMetadataState

Function readOptionalStoreMetadataState

src/core/store/foundation.ts:360–372  ·  view source on GitHub ↗
(
  storeRoot: string
)

Source from the content-addressed store, hash-verified

358}
359
360export async function readOptionalStoreMetadataState(
361 storeRoot: string
362): Promise<StoreMetadataState | null> {
363 try {
364 return await readStoreMetadataState(storeRoot);
365 } catch (error) {
366 if (isFileNotFoundError(error)) {
367 return null;
368 }
369
370 throw error;
371 }
372}
373
374export async function writeStoreMetadataState(
375 storeRoot: string,

Callers 6

foundation.test.tsFile · 0.85
gatherHealthFunction · 0.85
inspectRegisteredStoreFunction · 0.85
inspectStoreFunction · 0.85
ensureStoreMetadataFunction · 0.85

Calls 2

readStoreMetadataStateFunction · 0.85
isFileNotFoundErrorFunction · 0.85

Tested by

no test coverage detected