(state: CachedMCState)
| 83 | } |
| 84 | |
| 85 | export function markToolsSentToAPI(state: CachedMCState): void { |
| 86 | for (const toolUseId of state.toolOrder) { |
| 87 | if (!state.deletedRefs.has(toolUseId)) { |
| 88 | state.sentToAPI.add(toolUseId) |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | export function resetCachedMCState(state: CachedMCState): void { |
| 94 | state.registeredTools.clear() |