MCPcopy Create free account
hub / github.com/agent-tower/core / onPatch

Method onPatch

packages/server/src/output/msg-store.ts:346–349  ·  view source on GitHub ↗
(handler: (patch: JsonPatch, seq: number) => void)

Source from the content-addressed store, hash-verified

344 }
345
346 // Cache the result for incremental updates
347 this.cachedSnapshot = conversation;
348 this.cachedUpToIndex = this.messages.length - 1;
349
350 return { ...conversation, entries: [...conversation.entries], seq: this.patchSeq };
351 }
352

Callers 1

constructorMethod · 0.45

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected