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

Function toMutationOutput

src/commands/store.ts:132–148  ·  view source on GitHub ↗
(result: StoreMutationResult)

Source from the content-addressed store, hash-verified

130}
131
132function toMutationOutput(result: StoreMutationResult): StoreMutationOutput {
133 return {
134 store: toStoreOutput(result.store),
135 registry: {
136 path: result.registryCommit.path,
137 registered: result.registryCommit.registered,
138 already_registered: result.registryCommit.alreadyRegistered,
139 },
140 git: {
141 is_repository: result.git.isRepository,
142 initialized: result.git.initialized,
143 committed: result.git.committed,
144 },
145 created_files: result.createdArtifacts,
146 status: result.diagnostics,
147 };
148}
149
150function toCleanupOutput(result: StoreCleanupResult): StoreCleanupOutput {
151 return {

Callers 2

setupMethod · 0.85
registerMethod · 0.85

Calls 1

toStoreOutputFunction · 0.85

Tested by

no test coverage detected