(state: CachedMCState)
| 60 | ): void {} |
| 61 | |
| 62 | export function getToolResultsToDelete(state: CachedMCState): string[] { |
| 63 | const config = getCachedMCConfig() |
| 64 | const activeRefs = state.toolOrder.filter(id => !state.deletedRefs.has(id)) |
| 65 | |
| 66 | if (!config.enabled || activeRefs.length < config.triggerThreshold) { |
| 67 | return [] |
| 68 | } |
| 69 | |
| 70 | return activeRefs.slice(0, Math.max(0, activeRefs.length - config.keepRecent)) |
| 71 | } |
| 72 | |
| 73 | export function createCacheEditsBlock( |
| 74 | state: CachedMCState, |
nothing calls this directly
no test coverage detected