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

Function prepareStoreCleanup

src/core/store/operations.ts:832–846  ·  view source on GitHub ↗
(
  input: CleanupStoreInput
)

Source from the content-addressed store, hash-verified

830}
831
832export async function prepareStoreCleanup(
833 input: CleanupStoreInput
834): Promise<PreparedStoreCleanup> {
835 const id = validateStoreId(input.id);
836 const entry = await getRegisteredStore({
837 id,
838 globalDataDir: input.globalDataDir,
839 });
840
841 return {
842 ...cleanupStoreOutput(entry.id, entry.storeRoot),
843 backend: entry.backend,
844 ...(input.globalDataDir ? { globalDataDir: input.globalDataDir } : {}),
845 };
846}
847
848export async function unregisterStore(
849 input: CleanupStoreInput

Callers 3

registry.test.tsFile · 0.85
removeMethod · 0.85
unregisterStoreFunction · 0.85

Calls 3

validateStoreIdFunction · 0.85
getRegisteredStoreFunction · 0.85
cleanupStoreOutputFunction · 0.85

Tested by

no test coverage detected