MCPcopy Index your code
hub / github.com/coder/mux / runCommand

Method runCommand

src/node/services/memoryService.ts:582–593  ·  view source on GitHub ↗
(
    operation: () => Promise<MemoryCommandResult>
  )

Source from the content-addressed store, hash-verified

580 }
581
582 private async runCommand(
583 operation: () => Promise<MemoryCommandResult>
584 ): Promise<MemoryCommandResult> {
585 try {
586 return await operation();
587 } catch (error) {
588 if (error instanceof MemoryCommandError) {
589 return { success: false, error: error.message };
590 }
591 return { success: false, error: `Memory operation failed: ${getErrorMessage(error)}` };
592 }
593 }
594
595 /**
596 * Resolve a parsed path to its store with containment verified.

Callers 6

viewMethod · 0.95
createMethod · 0.95
strReplaceMethod · 0.95
insertMethod · 0.95
deletePathMethod · 0.95
renameMethod · 0.95

Calls 1

getErrorMessageFunction · 0.90

Tested by

no test coverage detected