MCPcopy
hub / github.com/npmx-dev/npmx.dev / retryOperation

Method retryOperation

cli/src/mock-state.ts:249–255  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

247 }
248
249 retryOperation(id: string): PendingOperation | null {
250 const operation = this.state.operations.find(op => op.id === id)
251 if (!operation || operation.status !== 'failed') return null
252 operation.status = 'approved'
253 operation.result = undefined
254 return operation
255 }
256
257 /** Execute all approved operations (mock: instant success unless configured otherwise). */
258 executeOperations(options?: ExecuteOptions): ExecuteResult {

Callers 1

createMockConnectorAppFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected