MCPcopy Create free account
hub / github.com/cortexkit/magic-context / messageHasBreakpoint

Function messageHasBreakpoint

packages/e2e-tests/src/cache-analysis.ts:90–94  ·  view source on GitHub ↗
(msg: Json)

Source from the content-addressed store, hash-verified

88}
89
90function messageHasBreakpoint(msg: Json): boolean {
91 const content = msg.content;
92 if (Array.isArray(content)) return content.some((p) => hasCacheControl(p));
93 return hasCacheControl(msg);
94}
95
96/** Normalize the per-request billing nonce so it isn't seen as a content change. */
97function normalizeSystemText(text: string): string {

Callers 1

buildSegmentsFunction · 0.70

Calls 1

hasCacheControlFunction · 0.70

Tested by

no test coverage detected