MCPcopy
hub / github.com/codeaashu/claude-code / push

Method push

src/server/web/public/terminal.js:2384–2386  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

2382 this._array[this._getCyclicIndex(e3)] = t3;
2383 }
2384 push(e3) {
2385 this._array[this._getCyclicIndex(this._length)] = e3, this._length === this._maxLength ? (this._startIndex = ++this._startIndex % this._maxLength, this.onTrimEmitter.fire(1)) : this._length++;
2386 }
2387 recycle() {
2388 if (this._length !== this._maxLength) throw new Error("Can only recycle when the buffer is full");
2389 return this._startIndex = ++this._startIndex % this._maxLength, this.onTrimEmitter.fire(1), this._array[this._getCyclicIndex(this._length - 1)];

Callers 15

getHistoryFunction · 0.45
addToPromptHistoryFunction · 0.45
getAllTasksFunction · 0.45
getToolsFunction · 0.45
wrappedCanUseToolMethod · 0.45
submitMessageMethod · 0.45
queryLoopFunction · 0.45
extractFlagFunction · 0.45
runFunction · 0.45
parseChannelEntriesFunction · 0.45

Calls 2

_getCyclicIndexMethod · 0.95
fireMethod · 0.80

Tested by

no test coverage detected