(
ctx: MemoryScopeContext,
scope: MemoryScope,
relPath: string,
options: { write: boolean }
)
| 483 | } |
| 484 | |
| 485 | private async recordUsage( |
| 486 | ctx: MemoryScopeContext, |
| 487 | scope: MemoryScope, |
| 488 | relPath: string, |
| 489 | options: { write: boolean } |
| 490 | ): Promise<void> { |
| 491 | try { |
| 492 | const key = this.logicalKeyFor(ctx, scope, relPath); |
| 493 | if (key === null) return; |
| 494 | await this.metaService.recordAccess(key, options); |
| 495 | } catch (error) { |
| 496 | log.debug("[MemoryService] failed to record memory usage", { scope, relPath, error }); |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | private async recordRename( |
| 501 | ctx: MemoryScopeContext, |