MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isStub

Function isStub

test/read-cache.test.ts:17–17  ·  view source on GitHub ↗
(m: Message)

Source from the content-addressed store, hash-verified

15
16const MARK = '[QodeX context-cache]';
17const isStub = (m: Message) => typeof m.content === 'string' && m.content.startsWith(MARK);
18
19describe('read-cache: lossless superseded collapse', () => {
20 it('stubs an earlier full read superseded by a later full read; keeps the latest', () => {

Callers 1

read-cache.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected