@adhdev/daemon-core 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.mjs CHANGED
@@ -414,10 +414,10 @@ function readInjected(value) {
414
414
  }
415
415
  function getDaemonBuildInfo() {
416
416
  if (cached) return cached;
417
- const commit = readInjected(true ? "7b6411ebc267c71484a3f7d16c392b5bd3e71bd8" : void 0) ?? "unknown";
418
- const commitShort = readInjected(true ? "7b6411eb" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
- const version = readInjected(true ? "0.9.82-rc.534" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
- const builtAt = readInjected(true ? "2026-07-15T08:30:18.262Z" : void 0);
417
+ const commit = readInjected(true ? "207830c90b06f2f738a85f74079a2460d53767c8" : void 0) ?? "unknown";
418
+ const commitShort = readInjected(true ? "207830c9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
+ const version = readInjected(true ? "0.9.82-rc.535" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
+ const builtAt = readInjected(true ? "2026-07-15T10:22:51.070Z" : void 0);
421
421
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
422
422
  return cached;
423
423
  }
@@ -26182,7 +26182,7 @@ var init_cli_state_engine = __esm({
26182
26182
  if (!this.isWaitingForResponse || this.hasActionableApproval()) return false;
26183
26183
  const snap = this.transport.getSnapshot();
26184
26184
  const detectFn = typeof this.transport.runDetectStatus === "function" ? () => this.transport.runDetectStatus(snap.recentOutputBuffer) : () => this.runDetectStatus(snap);
26185
- const latestStatus = detectFn() || this.currentStatus;
26185
+ const latestStatus = detectFn();
26186
26186
  if (latestStatus === "generating") {
26187
26187
  this.evaluateSettled(snap);
26188
26188
  return true;
@@ -54520,10 +54520,10 @@ var ProviderLoader = class _ProviderLoader {
54520
54520
  candidates.push(path45.join(providerDir, "specs", "default.json"));
54521
54521
  candidates.push(path45.join(providerDir, "spec.json"));
54522
54522
  const specPath = candidates.find((p) => fs42.existsSync(p));
54523
+ let nh;
54523
54524
  if (specPath) {
54524
54525
  resolved._resolvedSpecPath = specPath;
54525
54526
  let specControls;
54526
- let nh;
54527
54527
  try {
54528
54528
  const rawSpec = JSON.parse(fs42.readFileSync(specPath, "utf8"));
54529
54529
  specControls = rawSpec.control_bar;
@@ -54549,42 +54549,48 @@ var ProviderLoader = class _ProviderLoader {
54549
54549
  }
54550
54550
  }
54551
54551
  }
54552
- if (nh) {
54553
- let reader = null;
54554
- let format = "spec";
54555
- if (nh.source) {
54556
- format = `spec-${nh.source.kind}`;
54557
- reader = (input) => executeNativeHistory(nh, input);
54558
- } else if (nh.override_path) {
54559
- const overrideFile = path45.resolve(providerDir, nh.override_path);
54560
- if (fs42.existsSync(overrideFile)) {
54561
- try {
54562
- registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
54563
- delete __require.cache[__require.resolve(overrideFile)];
54564
- const mod = __require(overrideFile);
54565
- const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
54566
- if (fn) {
54567
- format = "spec-override";
54568
- reader = (input) => fn(input);
54569
- }
54570
- } catch {
54552
+ }
54553
+ if (!nh) {
54554
+ const inlineNh = base?.nativeHistory || resolved?.nativeHistory;
54555
+ if (inlineNh && (inlineNh.source || inlineNh.override_path || inlineNh.reader)) {
54556
+ nh = inlineNh;
54557
+ }
54558
+ }
54559
+ if (nh) {
54560
+ let reader = null;
54561
+ let format = "spec";
54562
+ if (nh.source) {
54563
+ format = `spec-${nh.source.kind}`;
54564
+ reader = (input) => executeNativeHistory(nh, input);
54565
+ } else if (nh.override_path) {
54566
+ const overrideFile = path45.resolve(providerDir, nh.override_path);
54567
+ if (fs42.existsSync(overrideFile)) {
54568
+ try {
54569
+ registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
54570
+ delete __require.cache[__require.resolve(overrideFile)];
54571
+ const mod = __require(overrideFile);
54572
+ const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
54573
+ if (fn) {
54574
+ format = "spec-override";
54575
+ reader = (input) => fn(input);
54571
54576
  }
54577
+ } catch {
54572
54578
  }
54573
- } else if (nh.reader) {
54574
- const dispatch = createNativeHistoryDispatcher(nh.reader);
54575
- format = nh.reader;
54576
- reader = (input) => dispatch(input);
54577
- }
54578
- if (reader) {
54579
- resolved.scripts = { ...resolved.scripts || {} };
54580
- resolved.scripts.readNativeHistory = reader;
54581
- resolved.nativeHistory = {
54582
- format,
54583
- watchPath: void 0,
54584
- scripts: { readSession: "readNativeHistory" },
54585
- mode: "native-source"
54586
- };
54587
54579
  }
54580
+ } else if (nh.reader) {
54581
+ const dispatch = createNativeHistoryDispatcher(nh.reader);
54582
+ format = nh.reader;
54583
+ reader = (input) => dispatch(input);
54584
+ }
54585
+ if (reader) {
54586
+ resolved.scripts = { ...resolved.scripts || {} };
54587
+ resolved.scripts.readNativeHistory = reader;
54588
+ resolved.nativeHistory = {
54589
+ format,
54590
+ watchPath: void 0,
54591
+ scripts: { readSession: "readNativeHistory" },
54592
+ mode: "native-source"
54593
+ };
54588
54594
  }
54589
54595
  }
54590
54596
  } catch {