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

Method clearOperations

cli/src/mock-state.ts:224–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 }
223
224 clearOperations(): number {
225 const removable = this.state.operations.filter(op => op.status !== 'running')
226 const count = removable.length
227 this.state.operations = this.state.operations.filter(op => op.status === 'running')
228 return count
229 }
230
231 approveOperation(id: string): PendingOperation | null {
232 const operation = this.state.operations.find(op => op.id === id)

Callers 1

createMockConnectorAppFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected