@adhdev/daemon-core 0.9.82-rc.340 → 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.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 ? "4208ff17576c4e0d480e0773908bb522545f006f" : void 0) ?? "unknown";
315
- const commitShort = readInjected(true ? "4208ff17" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
- const version = readInjected(true ? "0.9.82-rc.340" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
- const builtAt = readInjected(true ? "2026-06-20T14:30:26.030Z" : void 0);
314
+ const commit = readInjected(true ? "ff8ffda8c3d1a14f846ad4d785e4cab4d111a36b" : void 0) ?? "unknown";
315
+ const commitShort = readInjected(true ? "ff8ffda8" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
+ const version = readInjected(true ? "0.9.82-rc.342" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
+ const builtAt = readInjected(true ? "2026-06-21T05:12:18.017Z" : void 0);
318
318
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
319
319
  return cached;
320
320
  }
@@ -31622,6 +31622,7 @@ function countNewlines(s) {
31622
31622
  return n;
31623
31623
  }
31624
31624
  var SUBMIT_DELAY_FLOOR_MS = 200;
31625
+ var WIN32_SUBMIT_REPEAT_GAP_MS = 300;
31625
31626
  function resolveSubmitDelayMs(specBeforeSubmit, text) {
31626
31627
  const lines = countNewlines(text);
31627
31628
  const linesBonus = Math.min(800, lines * 80);
@@ -32200,6 +32201,16 @@ var FsmDriver = class {
32200
32201
  const sm = this.spec.send_message;
32201
32202
  const perChar = sm.delay_ms_per_char ?? 0;
32202
32203
  const beforeSubmit = resolveSubmitDelayMs(sm.delay_ms_before_submit, text);
32204
+ if (process.platform === "win32") {
32205
+ const submitTwice = () => {
32206
+ this.adapter.send_keys(sm.submit_key);
32207
+ setTimeout(() => this.adapter.send_keys(sm.submit_key), WIN32_SUBMIT_REPEAT_GAP_MS);
32208
+ };
32209
+ this.adapter.send_keys(text);
32210
+ if (beforeSubmit > 0) setTimeout(submitTwice, beforeSubmit);
32211
+ else submitTwice();
32212
+ return;
32213
+ }
32203
32214
  if (perChar === 0) {
32204
32215
  this.adapter.send_keys(text);
32205
32216
  if (beforeSubmit > 0) setTimeout(() => this.adapter.send_keys(sm.submit_key), beforeSubmit);