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

Method approveOperation

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

Source from the content-addressed store, hash-verified

229 }
230
231 approveOperation(id: string): PendingOperation | null {
232 const operation = this.state.operations.find(op => op.id === id)
233 if (!operation || operation.status !== 'pending') return null
234 operation.status = 'approved'
235 return operation
236 }
237
238 approveAll(): number {
239 let count = 0

Callers 2

createMockConnectorAppFunction · 0.80
mock-state.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected