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

Function shouldPush

src/artifacts/live-server.ts:73–75  ·  view source on GitHub ↗
(prevHash: string | null, nextHash: string)

Source from the content-addressed store, hash-verified

71
72/** Pure push decision, extracted for unit testing. */
73export function shouldPush(prevHash: string | null, nextHash: string): boolean {
74 return prevHash !== nextHash;
75}
76
77/** A trailing debouncer: N rapid calls collapse into one invocation after `ms` of quiet.
78 * Returned function exposes `.cancel()` to clear a pending call (used on close). */

Callers 2

flushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected