( querySource: QuerySource, agentId?: AgentId, )
| 687 | * will naturally drop on the next call — that's not a break. |
| 688 | */ |
| 689 | export function notifyCompaction( |
| 690 | querySource: QuerySource, |
| 691 | agentId?: AgentId, |
| 692 | ): void { |
| 693 | const key = getTrackingKey(querySource, agentId) |
| 694 | const state = key ? previousStateBySource.get(key) : undefined |
| 695 | if (state) { |
| 696 | state.prevCacheReadTokens = null |
| 697 | } |
| 698 | } |
| 699 | |
| 700 | export function cleanupAgentTracking(agentId: AgentId): void { |
| 701 | previousStateBySource.delete(agentId) |
no test coverage detected