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

Function writeStoreRegistryState

src/core/store/foundation.ts:313–321  ·  view source on GitHub ↗
(
  state: StoreRegistryState,
  options: StorePathOptions = {}
)

Source from the content-addressed store, hash-verified

311}
312
313export async function writeStoreRegistryState(
314 state: StoreRegistryState,
315 options: StorePathOptions = {}
316): Promise<void> {
317 await writeFileAtomically(
318 getStoreRegistryPath(options),
319 serializeStoreRegistryState(state)
320 );
321}
322
323const storeRegistryLockError = makeLockErrorFactory({
324 createSubject: 'the registry lock file',

Callers 7

store-git.test.tsFile · 0.85
store.test.tsFile · 0.85
registerStoreFunction · 0.85
registerStoreFunction · 0.85
registry.test.tsFile · 0.85
foundation.test.tsFile · 0.85
updateStoreRegistryStateFunction · 0.85

Calls 3

writeFileAtomicallyFunction · 0.85
getStoreRegistryPathFunction · 0.85

Tested by 2

registerStoreFunction · 0.68
registerStoreFunction · 0.68