MCPcopy Create free account
hub / github.com/github/copilot-sdk / isPrefix

Function isPrefix

test/harness/replayingCapiProxy.ts:945–955  ·  view source on GitHub ↗
(
  shorter: NormalizedMessage[],
  longer: NormalizedMessage[],
)

Source from the content-addressed store, hash-verified

943}
944
945function isPrefix(
946 shorter: NormalizedMessage[],
947 longer: NormalizedMessage[],
948): boolean {
949 if (shorter.length >= longer.length) {
950 return false;
951 }
952 return shorter.every(
953 (msg, idx) => JSON.stringify(msg) === JSON.stringify(longer[idx]),
954 );
955}
956
957async function parseHttpExchange(
958 requestBody: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…