MCPcopy
hub / github.com/coder/mux / emitChange

Method emitChange

src/node/services/memoryService.ts:626–640  ·  view source on GitHub ↗
(
    ctx: MemoryScopeContext,
    scope: MemoryScope,
    relPath: string,
    actor: MemoryActor
  )

Source from the content-addressed store, hash-verified

624 }
625
626 private emitChange(
627 ctx: MemoryScopeContext,
628 scope: MemoryScope,
629 relPath: string,
630 actor: MemoryActor
631 ) {
632 const event: MemoryChangeEvent = {
633 scope,
634 path: toVirtualPath(scope, relPath),
635 actor,
636 workspaceId: ctx.workspaceId,
637 projectPath: ctx.projectPath,
638 };
639 this.emit("change", event);
640 }
641
642 // -------------------------------------------------------------------------
643 // Commands

Callers 7

createMethod · 0.95
strReplaceMethod · 0.95
insertMethod · 0.95
deletePathMethod · 0.95
renameMethod · 0.95
saveFileMethod · 0.95
MemoryTab.test.tsxFile · 0.45

Calls 2

toVirtualPathFunction · 0.85
emitMethod · 0.65

Tested by

no test coverage detected