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

Method logicalKeyFor

src/node/services/memoryService.ts:477–483  ·  view source on GitHub ↗

Logical sidecar key, or null when the scope has no stable identity.

(ctx: MemoryScopeContext, scope: MemoryScope, relPath: string)

Source from the content-addressed store, hash-verified

475
476 /** Logical sidecar key, or null when the scope has no stable identity. */
477 private logicalKeyFor(ctx: MemoryScopeContext, scope: MemoryScope, relPath: string) {
478 if (scope === "project" && ctx.projectPath === "") return null;
479 return memoryLogicalKey(scope, relPath, {
480 projectPath: ctx.projectPath,
481 workspaceId: ctx.workspaceId,
482 });
483 }
484
485 private async recordUsage(
486 ctx: MemoryScopeContext,

Callers 4

recordUsageMethod · 0.95
recordRenameMethod · 0.95
recordDeleteMethod · 0.95
listHotMemoriesMethod · 0.95

Calls 1

memoryLogicalKeyFunction · 0.90

Tested by

no test coverage detected