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/index.js CHANGED
@@ -11315,8 +11315,10 @@ var init_provider_cli_adapter = __esm({
11315
11315
  accumulatedRawBuffer = "";
11316
11316
  /** Current visible terminal screen snapshot */
11317
11317
  terminalScreen = new TerminalScreen(24, 80);
11318
- /** Max accumulated buffer size (last 50KB) */
11319
- static MAX_ACCUMULATED_BUFFER = 5e4;
11318
+ /** Max accumulated buffer size. Sized to comfortably hold a single long
11319
+ * Hermes turn (tool calls + reasoning + final bubble) without the
11320
+ * rolling window pushing the turn's ╭─ opening line out of view. */
11321
+ static MAX_ACCUMULATED_BUFFER = 262144;
11320
11322
  currentTurnScope = null;
11321
11323
  traceEntries = [];
11322
11324
  traceSeq = 0;
@@ -11598,8 +11600,20 @@ var init_provider_cli_adapter = __esm({
11598
11600
  }
11599
11601
  }
11600
11602
  this.recentOutputBuffer = (this.recentOutputBuffer + cleanData).slice(-1e3);
11603
+ const prevAccumulatedLen = this.accumulatedBuffer.length;
11604
+ const prevAccumulatedRawLen = this.accumulatedRawBuffer.length;
11601
11605
  this.accumulatedBuffer = (this.accumulatedBuffer + cleanData).slice(-_ProviderCliAdapter.MAX_ACCUMULATED_BUFFER);
11602
11606
  this.accumulatedRawBuffer = (this.accumulatedRawBuffer + rawData).slice(-_ProviderCliAdapter.MAX_ACCUMULATED_BUFFER);
11607
+ if (this.currentTurnScope) {
11608
+ const droppedClean = prevAccumulatedLen + cleanData.length - this.accumulatedBuffer.length;
11609
+ const droppedRaw = prevAccumulatedRawLen + rawData.length - this.accumulatedRawBuffer.length;
11610
+ if (droppedClean > 0) {
11611
+ this.currentTurnScope.bufferStart = Math.max(0, this.currentTurnScope.bufferStart - droppedClean);
11612
+ }
11613
+ if (droppedRaw > 0) {
11614
+ this.currentTurnScope.rawBufferStart = Math.max(0, this.currentTurnScope.rawBufferStart - droppedRaw);
11615
+ }
11616
+ }
11603
11617
  this.resolveStartupState("output");
11604
11618
  this.scheduleSettle();
11605
11619
  }
@@ -54813,7 +54827,7 @@ var init_adhdev_daemon = __esm({
54813
54827
  init_version();
54814
54828
  init_src();
54815
54829
  init_runtime_defaults();
54816
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.91" });
54830
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.92" });
54817
54831
  AdhdevDaemon = class _AdhdevDaemon {
54818
54832
  localHttpServer = null;
54819
54833
  localWss = null;