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

Function pinCacheEdits

src/services/compact/microCompact.ts:112–119  ·  view source on GitHub ↗
(
  userMessageIndex: number,
  block: import('./cachedMicrocompact.js').CacheEditsBlock,
)

Source from the content-addressed store, hash-verified

110 * Called after inserting new edits so they are re-sent in subsequent calls.
111 */
112export function pinCacheEdits(
113 userMessageIndex: number,
114 block: import('./cachedMicrocompact.js').CacheEditsBlock,
115): void {
116 if (cachedMCState) {
117 cachedMCState.pinnedEdits.push({ userMessageIndex, block })
118 }
119}
120
121/**
122 * Marks all registered tools as sent to the API.

Callers 1

addCacheBreakpointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected