@adhdev/daemon-standalone 0.9.82-rc.534 → 0.9.82-rc.535

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
@@ -30208,10 +30208,10 @@ var require_dist3 = __commonJS({
30208
30208
  }
30209
30209
  function getDaemonBuildInfo() {
30210
30210
  if (cached2) return cached2;
30211
- const commit = readInjected(true ? "7b6411ebc267c71484a3f7d16c392b5bd3e71bd8" : void 0) ?? "unknown";
30212
- const commitShort = readInjected(true ? "7b6411eb" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
- const version2 = readInjected(true ? "0.9.82-rc.534" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
- const builtAt = readInjected(true ? "2026-07-15T08:30:49.700Z" : void 0);
30211
+ const commit = readInjected(true ? "207830c90b06f2f738a85f74079a2460d53767c8" : void 0) ?? "unknown";
30212
+ const commitShort = readInjected(true ? "207830c9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
+ const version2 = readInjected(true ? "0.9.82-rc.535" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
+ const builtAt = readInjected(true ? "2026-07-15T10:23:33.822Z" : void 0);
30215
30215
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30216
30216
  return cached2;
30217
30217
  }
@@ -56120,7 +56120,7 @@ ${cont}` : cont;
56120
56120
  if (!this.isWaitingForResponse || this.hasActionableApproval()) return false;
56121
56121
  const snap = this.transport.getSnapshot();
56122
56122
  const detectFn = typeof this.transport.runDetectStatus === "function" ? () => this.transport.runDetectStatus(snap.recentOutputBuffer) : () => this.runDetectStatus(snap);
56123
- const latestStatus = detectFn() || this.currentStatus;
56123
+ const latestStatus = detectFn();
56124
56124
  if (latestStatus === "generating") {
56125
56125
  this.evaluateSettled(snap);
56126
56126
  return true;
@@ -84650,10 +84650,10 @@ Run 'adhdev doctor' for detailed diagnostics.`
84650
84650
  candidates.push(path45.join(providerDir, "specs", "default.json"));
84651
84651
  candidates.push(path45.join(providerDir, "spec.json"));
84652
84652
  const specPath = candidates.find((p) => fs42.existsSync(p));
84653
+ let nh;
84653
84654
  if (specPath) {
84654
84655
  resolved._resolvedSpecPath = specPath;
84655
84656
  let specControls;
84656
- let nh;
84657
84657
  try {
84658
84658
  const rawSpec = JSON.parse(fs42.readFileSync(specPath, "utf8"));
84659
84659
  specControls = rawSpec.control_bar;
@@ -84679,42 +84679,48 @@ Run 'adhdev doctor' for detailed diagnostics.`
84679
84679
  }
84680
84680
  }
84681
84681
  }
84682
- if (nh) {
84683
- let reader = null;
84684
- let format = "spec";
84685
- if (nh.source) {
84686
- format = `spec-${nh.source.kind}`;
84687
- reader = (input) => executeNativeHistory(nh, input);
84688
- } else if (nh.override_path) {
84689
- const overrideFile = path45.resolve(providerDir, nh.override_path);
84690
- if (fs42.existsSync(overrideFile)) {
84691
- try {
84692
- registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
84693
- delete require.cache[require.resolve(overrideFile)];
84694
- const mod = require(overrideFile);
84695
- const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
84696
- if (fn) {
84697
- format = "spec-override";
84698
- reader = (input) => fn(input);
84699
- }
84700
- } catch {
84682
+ }
84683
+ if (!nh) {
84684
+ const inlineNh = base?.nativeHistory || resolved?.nativeHistory;
84685
+ if (inlineNh && (inlineNh.source || inlineNh.override_path || inlineNh.reader)) {
84686
+ nh = inlineNh;
84687
+ }
84688
+ }
84689
+ if (nh) {
84690
+ let reader = null;
84691
+ let format = "spec";
84692
+ if (nh.source) {
84693
+ format = `spec-${nh.source.kind}`;
84694
+ reader = (input) => executeNativeHistory(nh, input);
84695
+ } else if (nh.override_path) {
84696
+ const overrideFile = path45.resolve(providerDir, nh.override_path);
84697
+ if (fs42.existsSync(overrideFile)) {
84698
+ try {
84699
+ registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
84700
+ delete require.cache[require.resolve(overrideFile)];
84701
+ const mod = require(overrideFile);
84702
+ const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
84703
+ if (fn) {
84704
+ format = "spec-override";
84705
+ reader = (input) => fn(input);
84701
84706
  }
84707
+ } catch {
84702
84708
  }
84703
- } else if (nh.reader) {
84704
- const dispatch = createNativeHistoryDispatcher(nh.reader);
84705
- format = nh.reader;
84706
- reader = (input) => dispatch(input);
84707
- }
84708
- if (reader) {
84709
- resolved.scripts = { ...resolved.scripts || {} };
84710
- resolved.scripts.readNativeHistory = reader;
84711
- resolved.nativeHistory = {
84712
- format,
84713
- watchPath: void 0,
84714
- scripts: { readSession: "readNativeHistory" },
84715
- mode: "native-source"
84716
- };
84717
84709
  }
84710
+ } else if (nh.reader) {
84711
+ const dispatch = createNativeHistoryDispatcher(nh.reader);
84712
+ format = nh.reader;
84713
+ reader = (input) => dispatch(input);
84714
+ }
84715
+ if (reader) {
84716
+ resolved.scripts = { ...resolved.scripts || {} };
84717
+ resolved.scripts.readNativeHistory = reader;
84718
+ resolved.nativeHistory = {
84719
+ format,
84720
+ watchPath: void 0,
84721
+ scripts: { readSession: "readNativeHistory" },
84722
+ mode: "native-source"
84723
+ };
84718
84724
  }
84719
84725
  }
84720
84726
  } catch {