MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sideBand

Function sideBand

packages/plugins/apps/src/plugin/apps-plugin.test.ts:85–90  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

83 ]);
84
85const sideBand = (bytes: Uint8Array): Uint8Array => {
86 const payload = new Uint8Array(bytes.length + 1);
87 payload[0] = 1;
88 payload.set(bytes, 1);
89 return concat([pktLine("NAK\n"), pktLine(payload), FLUSH]);
90};
91
92const makeSyncStore = (): AppsStore & {
93 readonly sources: Map<string, AppSourceRecord>;

Callers 1

fixtureFetchFunction · 0.70

Calls 3

pktLineFunction · 0.90
setMethod · 0.80
concatFunction · 0.70

Tested by

no test coverage detected