MCPcopy Create free account
hub / github.com/Noumena-Network/code / resetCachedMCState

Function resetCachedMCState

src/services/compact/cachedMicrocompact.ts:93–100  ·  view source on GitHub ↗
(state: CachedMCState)

Source from the content-addressed store, hash-verified

91}
92
93export function resetCachedMCState(state: CachedMCState): void {
94 state.registeredTools.clear()
95 state.toolOrder.length = 0
96 state.toolGroups.length = 0
97 state.sentToAPI.clear()
98 state.deletedRefs.clear()
99 state.pinnedEdits.length = 0
100}
101
102export function getToolResultsToDelete(_state: CachedMCState): string[] {
103 return []

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected