@adhdev/daemon-core 0.9.82-rc.335 → 0.9.82-rc.336

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.mjs CHANGED
@@ -311,10 +311,10 @@ function readInjected(value) {
311
311
  }
312
312
  function getDaemonBuildInfo() {
313
313
  if (cached) return cached;
314
- const commit = readInjected(true ? "e9e62c9770c0f4a419a90f5287125f3d3bb0fd95" : void 0) ?? "unknown";
315
- const commitShort = readInjected(true ? "e9e62c97" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
- const version = readInjected(true ? "0.9.82-rc.335" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
- const builtAt = readInjected(true ? "2026-06-20T04:30:54.863Z" : void 0);
314
+ const commit = readInjected(true ? "40f2025c1de385e59792869a793811db906f4f91" : void 0) ?? "unknown";
315
+ const commitShort = readInjected(true ? "40f2025c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
+ const version = readInjected(true ? "0.9.82-rc.336" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
+ const builtAt = readInjected(true ? "2026-06-20T06:32:36.100Z" : void 0);
318
318
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
319
319
  return cached;
320
320
  }
@@ -15125,7 +15125,7 @@ function appendBoundedText(current, chunk, maxChars) {
15125
15125
  if (current.length <= keepFromCurrent) return current + chunk;
15126
15126
  return current.slice(-keepFromCurrent) + chunk;
15127
15127
  }
15128
- var FORCE_SUBMIT_SETTLE_MS, FORCE_SUBMIT_MAX_WAIT_MS, FORCE_SUBMIT_POLL_MS, ProviderCliAdapter;
15128
+ var FORCE_SUBMIT_SETTLE_MS, ProviderCliAdapter;
15129
15129
  var init_provider_cli_adapter = __esm({
15130
15130
  "src/cli-adapters/provider-cli-adapter.ts"() {
15131
15131
  "use strict";
@@ -15141,8 +15141,6 @@ var init_provider_cli_adapter = __esm({
15141
15141
  init_provider_cli_runtime();
15142
15142
  init_provider_cli_shared();
15143
15143
  FORCE_SUBMIT_SETTLE_MS = 150;
15144
- FORCE_SUBMIT_MAX_WAIT_MS = 1500;
15145
- FORCE_SUBMIT_POLL_MS = 50;
15146
15144
  ProviderCliAdapter = class _ProviderCliAdapter {
15147
15145
  constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
15148
15146
  this.extraArgs = extraArgs;
@@ -16071,22 +16069,12 @@ ${lastSnapshot}`;
16071
16069
  return;
16072
16070
  }
16073
16071
  LOG.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
16074
- await this.writeToPty(content);
16075
- await this.waitForForceSubmitSettle(content);
16076
- await this.writeToPty(this.sendKey);
16072
+ await this.waitForForceSubmitSettle();
16073
+ await this.writeToPty(content + this.sendKey);
16077
16074
  this.onStatusChange?.();
16078
16075
  }
16079
- async waitForForceSubmitSettle(content) {
16080
- const startedAt = Date.now();
16081
- const normalizedPromptSnippet = normalizePromptText(extractPromptRetrySnippet(content));
16076
+ async waitForForceSubmitSettle() {
16082
16077
  await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
16083
- if (!normalizedPromptSnippet) return;
16084
- while (Date.now() - startedAt < FORCE_SUBMIT_MAX_WAIT_MS) {
16085
- if (!this.ptyProcess) return;
16086
- const screenText = this.terminalScreen.getText();
16087
- if (promptLikelyVisible(screenText, normalizedPromptSnippet)) return;
16088
- await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_POLL_MS));
16089
- }
16090
16078
  }
16091
16079
  enqueuePendingOutboundMessage(text, reason) {
16092
16080
  const content = String(text || "");