@adhdev/daemon-core 0.9.82-rc.341 → 0.9.82-rc.342

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
@@ -316,10 +316,10 @@ function readInjected(value) {
316
316
  }
317
317
  function getDaemonBuildInfo() {
318
318
  if (cached) return cached;
319
- const commit = readInjected(true ? "d2dce76eda1d1544a0c95c4de04b245102ee0c64" : void 0) ?? "unknown";
320
- const commitShort = readInjected(true ? "d2dce76e" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
321
- const version = readInjected(true ? "0.9.82-rc.341" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
322
- const builtAt = readInjected(true ? "2026-06-21T03:40:02.339Z" : void 0);
319
+ const commit = readInjected(true ? "ff8ffda8c3d1a14f846ad4d785e4cab4d111a36b" : void 0) ?? "unknown";
320
+ const commitShort = readInjected(true ? "ff8ffda8" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
321
+ const version = readInjected(true ? "0.9.82-rc.342" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
322
+ const builtAt = readInjected(true ? "2026-06-21T05:12:18.017Z" : void 0);
323
323
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
324
324
  return cached;
325
325
  }
@@ -31983,6 +31983,7 @@ function countNewlines(s) {
31983
31983
  return n;
31984
31984
  }
31985
31985
  var SUBMIT_DELAY_FLOOR_MS = 200;
31986
+ var WIN32_SUBMIT_REPEAT_GAP_MS = 300;
31986
31987
  function resolveSubmitDelayMs(specBeforeSubmit, text) {
31987
31988
  const lines = countNewlines(text);
31988
31989
  const linesBonus = Math.min(800, lines * 80);
@@ -32562,11 +32563,13 @@ var FsmDriver = class {
32562
32563
  const perChar = sm.delay_ms_per_char ?? 0;
32563
32564
  const beforeSubmit = resolveSubmitDelayMs(sm.delay_ms_before_submit, text);
32564
32565
  if (process.platform === "win32") {
32565
- if (beforeSubmit > 0) {
32566
- setTimeout(() => this.adapter.send_keys(text + sm.submit_key), beforeSubmit);
32567
- } else {
32568
- this.adapter.send_keys(text + sm.submit_key);
32569
- }
32566
+ const submitTwice = () => {
32567
+ this.adapter.send_keys(sm.submit_key);
32568
+ setTimeout(() => this.adapter.send_keys(sm.submit_key), WIN32_SUBMIT_REPEAT_GAP_MS);
32569
+ };
32570
+ this.adapter.send_keys(text);
32571
+ if (beforeSubmit > 0) setTimeout(submitTwice, beforeSubmit);
32572
+ else submitTwice();
32570
32573
  return;
32571
32574
  }
32572
32575
  if (perChar === 0) {