@adhdev/daemon-standalone 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.js CHANGED
@@ -30036,10 +30036,10 @@ var require_dist3 = __commonJS({
30036
30036
  }
30037
30037
  function getDaemonBuildInfo() {
30038
30038
  if (cached2) return cached2;
30039
- const commit = readInjected(true ? "e9e62c9770c0f4a419a90f5287125f3d3bb0fd95" : void 0) ?? "unknown";
30040
- const commitShort = readInjected(true ? "e9e62c97" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30041
- const version2 = readInjected(true ? "0.9.82-rc.335" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30042
- const builtAt = readInjected(true ? "2026-06-20T04:31:22.998Z" : void 0);
30039
+ const commit = readInjected(true ? "40f2025c1de385e59792869a793811db906f4f91" : void 0) ?? "unknown";
30040
+ const commitShort = readInjected(true ? "40f2025c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30041
+ const version2 = readInjected(true ? "0.9.82-rc.336" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30042
+ const builtAt = readInjected(true ? "2026-06-20T06:33:54.849Z" : void 0);
30043
30043
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30044
30044
  return cached2;
30045
30045
  }
@@ -44923,8 +44923,6 @@ ${cont}` : cont;
44923
44923
  var os14;
44924
44924
  var import_session_host_core5;
44925
44925
  var FORCE_SUBMIT_SETTLE_MS;
44926
- var FORCE_SUBMIT_MAX_WAIT_MS;
44927
- var FORCE_SUBMIT_POLL_MS;
44928
44926
  var ProviderCliAdapter;
44929
44927
  var init_provider_cli_adapter = __esm2({
44930
44928
  "src/cli-adapters/provider-cli-adapter.ts"() {
@@ -44943,8 +44941,6 @@ ${cont}` : cont;
44943
44941
  init_provider_cli_runtime();
44944
44942
  init_provider_cli_shared();
44945
44943
  FORCE_SUBMIT_SETTLE_MS = 150;
44946
- FORCE_SUBMIT_MAX_WAIT_MS = 1500;
44947
- FORCE_SUBMIT_POLL_MS = 50;
44948
44944
  ProviderCliAdapter = class _ProviderCliAdapter {
44949
44945
  constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
44950
44946
  this.extraArgs = extraArgs;
@@ -45873,22 +45869,12 @@ ${lastSnapshot}`;
45873
45869
  return;
45874
45870
  }
45875
45871
  LOG2.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
45876
- await this.writeToPty(content);
45877
- await this.waitForForceSubmitSettle(content);
45878
- await this.writeToPty(this.sendKey);
45872
+ await this.waitForForceSubmitSettle();
45873
+ await this.writeToPty(content + this.sendKey);
45879
45874
  this.onStatusChange?.();
45880
45875
  }
45881
- async waitForForceSubmitSettle(content) {
45882
- const startedAt = Date.now();
45883
- const normalizedPromptSnippet = normalizePromptText(extractPromptRetrySnippet(content));
45876
+ async waitForForceSubmitSettle() {
45884
45877
  await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
45885
- if (!normalizedPromptSnippet) return;
45886
- while (Date.now() - startedAt < FORCE_SUBMIT_MAX_WAIT_MS) {
45887
- if (!this.ptyProcess) return;
45888
- const screenText = this.terminalScreen.getText();
45889
- if (promptLikelyVisible(screenText, normalizedPromptSnippet)) return;
45890
- await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_POLL_MS));
45891
- }
45892
45878
  }
45893
45879
  enqueuePendingOutboundMessage(text, reason) {
45894
45880
  const content = String(text || "");