MCPcopy
hub / github.com/inkeep/open-knowledge / push

Method push

packages/server/src/embed-probe.ts:35–39  ·  view source on GitHub ↗
(entry: T)

Source from the content-addressed store, hash-verified

33 }
34
35 push(entry: T): void {
36 this.store[this.writeIndex] = entry;
37 this.writeIndex = (this.writeIndex + 1) % this.capacity;
38 if (this.writeIndex === 0) this.filled = true;
39 }
40
41 read(): T[] {
42 const out: T[] = [];

Callers 15

constructorMethod · 0.45
setPasswordMethod · 0.45
pushFunction · 0.45
nextFunction · 0.45
recordFunction · 0.45
harnessFunction · 0.45
walkExceedsCapFunction · 0.45

Calls

no outgoing calls

Tested by 15

constructorMethod · 0.36
setPasswordMethod · 0.36
recordFunction · 0.36
harnessFunction · 0.36
sendFunction · 0.36
fakeNavigatorFunction · 0.36
onFunction · 0.36
buildStartupCliFunction · 0.36
sendFunction · 0.36
buildFirstLaunchCliFunction · 0.36
captureWarnFunction · 0.36
fakeUtilityFunction · 0.36