adhdev 0.8.91 → 0.8.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +17 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -12256,8 +12256,10 @@ var init_provider_cli_adapter = __esm({
|
|
|
12256
12256
|
accumulatedRawBuffer = "";
|
|
12257
12257
|
/** Current visible terminal screen snapshot */
|
|
12258
12258
|
terminalScreen = new TerminalScreen(24, 80);
|
|
12259
|
-
/** Max accumulated buffer size
|
|
12260
|
-
|
|
12259
|
+
/** Max accumulated buffer size. Sized to comfortably hold a single long
|
|
12260
|
+
* Hermes turn (tool calls + reasoning + final bubble) without the
|
|
12261
|
+
* rolling window pushing the turn's ╭─ opening line out of view. */
|
|
12262
|
+
static MAX_ACCUMULATED_BUFFER = 262144;
|
|
12261
12263
|
currentTurnScope = null;
|
|
12262
12264
|
traceEntries = [];
|
|
12263
12265
|
traceSeq = 0;
|
|
@@ -12539,8 +12541,20 @@ var init_provider_cli_adapter = __esm({
|
|
|
12539
12541
|
}
|
|
12540
12542
|
}
|
|
12541
12543
|
this.recentOutputBuffer = (this.recentOutputBuffer + cleanData).slice(-1e3);
|
|
12544
|
+
const prevAccumulatedLen = this.accumulatedBuffer.length;
|
|
12545
|
+
const prevAccumulatedRawLen = this.accumulatedRawBuffer.length;
|
|
12542
12546
|
this.accumulatedBuffer = (this.accumulatedBuffer + cleanData).slice(-_ProviderCliAdapter.MAX_ACCUMULATED_BUFFER);
|
|
12543
12547
|
this.accumulatedRawBuffer = (this.accumulatedRawBuffer + rawData).slice(-_ProviderCliAdapter.MAX_ACCUMULATED_BUFFER);
|
|
12548
|
+
if (this.currentTurnScope) {
|
|
12549
|
+
const droppedClean = prevAccumulatedLen + cleanData.length - this.accumulatedBuffer.length;
|
|
12550
|
+
const droppedRaw = prevAccumulatedRawLen + rawData.length - this.accumulatedRawBuffer.length;
|
|
12551
|
+
if (droppedClean > 0) {
|
|
12552
|
+
this.currentTurnScope.bufferStart = Math.max(0, this.currentTurnScope.bufferStart - droppedClean);
|
|
12553
|
+
}
|
|
12554
|
+
if (droppedRaw > 0) {
|
|
12555
|
+
this.currentTurnScope.rawBufferStart = Math.max(0, this.currentTurnScope.rawBufferStart - droppedRaw);
|
|
12556
|
+
}
|
|
12557
|
+
}
|
|
12544
12558
|
this.resolveStartupState("output");
|
|
12545
12559
|
this.scheduleSettle();
|
|
12546
12560
|
}
|
|
@@ -86518,7 +86532,7 @@ var init_adhdev_daemon = __esm({
|
|
|
86518
86532
|
init_version();
|
|
86519
86533
|
init_src();
|
|
86520
86534
|
init_runtime_defaults();
|
|
86521
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.
|
|
86535
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.92" });
|
|
86522
86536
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
86523
86537
|
localHttpServer = null;
|
|
86524
86538
|
localWss = null;
|