@adhdev/daemon-standalone 1.0.40-rc.2 → 1.0.40

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
@@ -31423,9 +31423,9 @@ var require_streamx = __commonJS({
31423
31423
  }
31424
31424
  });
31425
31425
 
31426
- // ../../node_modules/tar-stream/node_modules/b4a/index.js
31426
+ // ../daemon-core/node_modules/b4a/index.js
31427
31427
  var require_b4a2 = __commonJS({
31428
- "../../node_modules/tar-stream/node_modules/b4a/index.js"(exports2, module2) {
31428
+ "../daemon-core/node_modules/b4a/index.js"(exports2, module2) {
31429
31429
  "use strict";
31430
31430
  function isBuffer(value) {
31431
31431
  return Buffer.isBuffer(value) || value instanceof Uint8Array;
@@ -31581,9 +31581,9 @@ var require_b4a2 = __commonJS({
31581
31581
  }
31582
31582
  });
31583
31583
 
31584
- // ../../node_modules/tar-stream/headers.js
31584
+ // ../daemon-core/node_modules/tar-stream/headers.js
31585
31585
  var require_headers = __commonJS({
31586
- "../../node_modules/tar-stream/headers.js"(exports2) {
31586
+ "../daemon-core/node_modules/tar-stream/headers.js"(exports2) {
31587
31587
  "use strict";
31588
31588
  var b4a = require_b4a2();
31589
31589
  var ZEROS = "0000000000000000000";
@@ -31844,9 +31844,9 @@ var require_headers = __commonJS({
31844
31844
  }
31845
31845
  });
31846
31846
 
31847
- // ../../node_modules/tar-stream/extract.js
31847
+ // ../daemon-core/node_modules/tar-stream/extract.js
31848
31848
  var require_extract = __commonJS({
31849
- "../../node_modules/tar-stream/extract.js"(exports2, module2) {
31849
+ "../daemon-core/node_modules/tar-stream/extract.js"(exports2, module2) {
31850
31850
  "use strict";
31851
31851
  var { Writable, Readable, getStreamError } = require_streamx();
31852
31852
  var FIFO = require_fast_fifo();
@@ -32189,9 +32189,9 @@ var require_extract = __commonJS({
32189
32189
  }
32190
32190
  });
32191
32191
 
32192
- // ../../node_modules/tar-stream/constants.js
32192
+ // ../daemon-core/node_modules/tar-stream/constants.js
32193
32193
  var require_constants = __commonJS({
32194
- "../../node_modules/tar-stream/constants.js"(exports2, module2) {
32194
+ "../daemon-core/node_modules/tar-stream/constants.js"(exports2, module2) {
32195
32195
  "use strict";
32196
32196
  var constants = {
32197
32197
  // just for envs without fs
@@ -32210,9 +32210,9 @@ var require_constants = __commonJS({
32210
32210
  }
32211
32211
  });
32212
32212
 
32213
- // ../../node_modules/tar-stream/pack.js
32213
+ // ../daemon-core/node_modules/tar-stream/pack.js
32214
32214
  var require_pack = __commonJS({
32215
- "../../node_modules/tar-stream/pack.js"(exports2, module2) {
32215
+ "../daemon-core/node_modules/tar-stream/pack.js"(exports2, module2) {
32216
32216
  "use strict";
32217
32217
  var { Readable, Writable, getStreamError } = require_streamx();
32218
32218
  var b4a = require_b4a2();
@@ -32445,9 +32445,9 @@ var require_pack = __commonJS({
32445
32445
  }
32446
32446
  });
32447
32447
 
32448
- // ../../node_modules/tar-stream/index.js
32448
+ // ../daemon-core/node_modules/tar-stream/index.js
32449
32449
  var require_tar_stream = __commonJS({
32450
- "../../node_modules/tar-stream/index.js"(exports2) {
32450
+ "../daemon-core/node_modules/tar-stream/index.js"(exports2) {
32451
32451
  "use strict";
32452
32452
  exports2.extract = require_extract();
32453
32453
  exports2.pack = require_pack();
@@ -32690,9 +32690,9 @@ var require_pump = __commonJS({
32690
32690
  }
32691
32691
  });
32692
32692
 
32693
- // ../../node_modules/tar-fs/index.js
32693
+ // ../daemon-core/node_modules/tar-fs/index.js
32694
32694
  var require_tar_fs = __commonJS({
32695
- "../../node_modules/tar-fs/index.js"(exports2) {
32695
+ "../daemon-core/node_modules/tar-fs/index.js"(exports2) {
32696
32696
  "use strict";
32697
32697
  var tar = require_tar_stream();
32698
32698
  var pump = require_pump();
@@ -36539,10 +36539,10 @@ var require_dist3 = __commonJS({
36539
36539
  }
36540
36540
  function getDaemonBuildInfo() {
36541
36541
  if (cached2) return cached2;
36542
- const commit = readInjected(true ? "704ffa280ca33888df2c36135765e1967ede82f1" : void 0) ?? "unknown";
36543
- const commitShort = readInjected(true ? "704ffa28" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36544
- const version2 = readInjected(true ? "1.0.40-rc.2" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36545
- const builtAt = readInjected(true ? "2026-08-08T09:09:44.240Z" : void 0);
36542
+ const commit = readInjected(true ? "b69c800c03574e46aead4f5878b4891592e872e0" : void 0) ?? "unknown";
36543
+ const commitShort = readInjected(true ? "b69c800" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36544
+ const version2 = readInjected(true ? "1.0.40" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36545
+ const builtAt = readInjected(true ? "2026-08-08T11:17:21.191Z" : void 0);
36546
36546
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
36547
36547
  return cached2;
36548
36548
  }
@@ -37800,7 +37800,7 @@ var require_dist3 = __commonJS({
37800
37800
  }
37801
37801
  });
37802
37802
  function resolveBuildTrack(env2 = process.env) {
37803
- const injected = true ? "preview" : void 0;
37803
+ const injected = true ? "" : void 0;
37804
37804
  const stamped = typeof injected === "string" ? injected.trim() : "";
37805
37805
  const raw = (stamped || (env2[BUILD_CHANNEL_ENV_VAR] ?? "").trim()).toLowerCase();
37806
37806
  return raw === "preview" || raw === "next" ? "preview" : "stable";
@@ -46624,12 +46624,51 @@ Next step: ${nextStep}`;
46624
46624
  }
46625
46625
  return false;
46626
46626
  }
46627
+ function stripCommandWrappers(prefix) {
46628
+ const m = /^([\s\S]*(?:&&|\|\||\||;)\s*)([\s\S]*)$/.exec(prefix);
46629
+ const head = m ? m[1] : /^\s*/.exec(prefix)?.[0] ?? "";
46630
+ let rest = m ? m[2] : prefix.slice(head.length);
46631
+ let stripped = false;
46632
+ let sawEvidence = false;
46633
+ let sawEvidenceOnlyWrapper = false;
46634
+ for (; ; ) {
46635
+ const tok = /^([^\s]+)\s+/.exec(rest);
46636
+ if (!tok) break;
46637
+ const word = tok[1];
46638
+ const lower = word.toLowerCase();
46639
+ if (COMMAND_WRAPPERS.has(lower)) {
46640
+ rest = rest.slice(tok[0].length);
46641
+ stripped = true;
46642
+ continue;
46643
+ }
46644
+ if (EVIDENCE_ONLY_WRAPPERS.has(lower)) {
46645
+ rest = rest.slice(tok[0].length);
46646
+ stripped = true;
46647
+ sawEvidenceOnlyWrapper = true;
46648
+ continue;
46649
+ }
46650
+ if (stripped && (/^-/.test(word) || /^[A-Za-z_][A-Za-z0-9_]*=/.test(word) || /^\d+$/.test(word))) {
46651
+ rest = rest.slice(tok[0].length);
46652
+ sawEvidence = true;
46653
+ continue;
46654
+ }
46655
+ break;
46656
+ }
46657
+ if (!stripped) return null;
46658
+ if (sawEvidenceOnlyWrapper && !sawEvidence) return null;
46659
+ return head + rest;
46660
+ }
46627
46661
  function isMutationKeywordInCommandContext(text, matchStart, matchEnd) {
46628
46662
  if (isInsideBackticksOrFence(text, matchStart, matchEnd)) return true;
46629
46663
  const lineStart = text.lastIndexOf("\n", matchStart - 1) + 1;
46630
46664
  const linePrefix = text.slice(lineStart, matchStart);
46631
46665
  if (/^\s*[$>]\s/.test(text.slice(lineStart))) return true;
46632
46666
  if (/^\s*$/.test(linePrefix)) return true;
46667
+ const unwrapped = stripCommandWrappers(linePrefix);
46668
+ if (unwrapped !== null) {
46669
+ if (/^\s*$/.test(unwrapped)) return true;
46670
+ if (/(?:&&|\|\||\||;)\s*$/.test(unwrapped)) return true;
46671
+ }
46633
46672
  let tokStart = matchStart;
46634
46673
  while (tokStart > lineStart && !/\s/.test(text[tokStart - 1])) tokStart--;
46635
46674
  const beforeToken = text.slice(lineStart, tokStart);
@@ -47450,6 +47489,8 @@ Next step: ${nextStep}`;
47450
47489
  var LIVE_DEBUG_READONLY_FORBIDDEN;
47451
47490
  var NEGATION_CUES;
47452
47491
  var NEGATION_WINDOW_TOKENS;
47492
+ var COMMAND_WRAPPERS;
47493
+ var EVIDENCE_ONLY_WRAPPERS;
47453
47494
  var GIT_MUTATION_SUBCOMMANDS;
47454
47495
  var GIT_STASH_READONLY_SUBCOMMANDS;
47455
47496
  var DEPENDENCY_FAILURE_TERMINALS;
@@ -47503,6 +47544,8 @@ Next step: ${nextStep}`;
47503
47544
  "\uC54A"
47504
47545
  ];
47505
47546
  NEGATION_WINDOW_TOKENS = 6;
47547
+ COMMAND_WRAPPERS = /* @__PURE__ */ new Set(["xargs", "sudo", "doas", "nohup", "sh", "bash", "zsh"]);
47548
+ EVIDENCE_ONLY_WRAPPERS = /* @__PURE__ */ new Set(["time", "command", "env", "nice", "exec", "builtin", "timeout"]);
47506
47549
  GIT_MUTATION_SUBCOMMANDS = /* @__PURE__ */ new Set([
47507
47550
  "add",
47508
47551
  "commit",