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

Function toCleanupOutput

src/commands/store.ts:150–164  ·  view source on GitHub ↗
(result: StoreCleanupResult)

Source from the content-addressed store, hash-verified

148}
149
150function toCleanupOutput(result: StoreCleanupResult): StoreCleanupOutput {
151 return {
152 store: toStoreOutput(result.store),
153 registry: {
154 path: result.registryCommit.path,
155 removed: result.registryCommit.removed,
156 },
157 files: {
158 deleted: result.files.deleted,
159 deleted_path: result.files.deletedPath ?? null,
160 left_on_disk: result.files.leftOnDisk ?? null,
161 },
162 status: result.diagnostics,
163 };
164}
165
166function toListOutput(result: StoreListResult): StoreListOutput {
167 return {

Callers 2

unregisterMethod · 0.85
removeMethod · 0.85

Calls 1

toStoreOutputFunction · 0.85

Tested by

no test coverage detected