@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.js CHANGED
@@ -419,10 +419,10 @@ function readInjected(value) {
419
419
  }
420
420
  function getDaemonBuildInfo() {
421
421
  if (cached) return cached;
422
- const commit = readInjected(true ? "7b6411ebc267c71484a3f7d16c392b5bd3e71bd8" : void 0) ?? "unknown";
423
- const commitShort = readInjected(true ? "7b6411eb" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
424
- const version = readInjected(true ? "0.9.82-rc.534" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
425
- const builtAt = readInjected(true ? "2026-07-15T08:30:18.262Z" : void 0);
422
+ const commit = readInjected(true ? "207830c90b06f2f738a85f74079a2460d53767c8" : void 0) ?? "unknown";
423
+ const commitShort = readInjected(true ? "207830c9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
424
+ const version = readInjected(true ? "0.9.82-rc.535" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
425
+ const builtAt = readInjected(true ? "2026-07-15T10:22:51.070Z" : void 0);
426
426
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
427
427
  return cached;
428
428
  }
@@ -26181,7 +26181,7 @@ var init_cli_state_engine = __esm({
26181
26181
  if (!this.isWaitingForResponse || this.hasActionableApproval()) return false;
26182
26182
  const snap = this.transport.getSnapshot();
26183
26183
  const detectFn = typeof this.transport.runDetectStatus === "function" ? () => this.transport.runDetectStatus(snap.recentOutputBuffer) : () => this.runDetectStatus(snap);
26184
- const latestStatus = detectFn() || this.currentStatus;
26184
+ const latestStatus = detectFn();
26185
26185
  if (latestStatus === "generating") {
26186
26186
  this.evaluateSettled(snap);
26187
26187
  return true;
@@ -54943,10 +54943,10 @@ var ProviderLoader = class _ProviderLoader {
54943
54943
  candidates.push(path45.join(providerDir, "specs", "default.json"));
54944
54944
  candidates.push(path45.join(providerDir, "spec.json"));
54945
54945
  const specPath = candidates.find((p) => fs42.existsSync(p));
54946
+ let nh;
54946
54947
  if (specPath) {
54947
54948
  resolved._resolvedSpecPath = specPath;
54948
54949
  let specControls;
54949
- let nh;
54950
54950
  try {
54951
54951
  const rawSpec = JSON.parse(fs42.readFileSync(specPath, "utf8"));
54952
54952
  specControls = rawSpec.control_bar;
@@ -54972,42 +54972,48 @@ var ProviderLoader = class _ProviderLoader {
54972
54972
  }
54973
54973
  }
54974
54974
  }
54975
- if (nh) {
54976
- let reader = null;
54977
- let format = "spec";
54978
- if (nh.source) {
54979
- format = `spec-${nh.source.kind}`;
54980
- reader = (input) => executeNativeHistory(nh, input);
54981
- } else if (nh.override_path) {
54982
- const overrideFile = path45.resolve(providerDir, nh.override_path);
54983
- if (fs42.existsSync(overrideFile)) {
54984
- try {
54985
- registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
54986
- delete require.cache[require.resolve(overrideFile)];
54987
- const mod = require(overrideFile);
54988
- const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
54989
- if (fn) {
54990
- format = "spec-override";
54991
- reader = (input) => fn(input);
54992
- }
54993
- } catch {
54975
+ }
54976
+ if (!nh) {
54977
+ const inlineNh = base?.nativeHistory || resolved?.nativeHistory;
54978
+ if (inlineNh && (inlineNh.source || inlineNh.override_path || inlineNh.reader)) {
54979
+ nh = inlineNh;
54980
+ }
54981
+ }
54982
+ if (nh) {
54983
+ let reader = null;
54984
+ let format = "spec";
54985
+ if (nh.source) {
54986
+ format = `spec-${nh.source.kind}`;
54987
+ reader = (input) => executeNativeHistory(nh, input);
54988
+ } else if (nh.override_path) {
54989
+ const overrideFile = path45.resolve(providerDir, nh.override_path);
54990
+ if (fs42.existsSync(overrideFile)) {
54991
+ try {
54992
+ registerProviderScriptRootSafely(path45.dirname(path45.dirname(providerDir)));
54993
+ delete require.cache[require.resolve(overrideFile)];
54994
+ const mod = require(overrideFile);
54995
+ const fn = typeof mod === "function" ? mod : mod && typeof mod.default === "function" ? mod.default : null;
54996
+ if (fn) {
54997
+ format = "spec-override";
54998
+ reader = (input) => fn(input);
54994
54999
  }
55000
+ } catch {
54995
55001
  }
54996
- } else if (nh.reader) {
54997
- const dispatch = createNativeHistoryDispatcher(nh.reader);
54998
- format = nh.reader;
54999
- reader = (input) => dispatch(input);
55000
- }
55001
- if (reader) {
55002
- resolved.scripts = { ...resolved.scripts || {} };
55003
- resolved.scripts.readNativeHistory = reader;
55004
- resolved.nativeHistory = {
55005
- format,
55006
- watchPath: void 0,
55007
- scripts: { readSession: "readNativeHistory" },
55008
- mode: "native-source"
55009
- };
55010
55002
  }
55003
+ } else if (nh.reader) {
55004
+ const dispatch = createNativeHistoryDispatcher(nh.reader);
55005
+ format = nh.reader;
55006
+ reader = (input) => dispatch(input);
55007
+ }
55008
+ if (reader) {
55009
+ resolved.scripts = { ...resolved.scripts || {} };
55010
+ resolved.scripts.readNativeHistory = reader;
55011
+ resolved.nativeHistory = {
55012
+ format,
55013
+ watchPath: void 0,
55014
+ scripts: { readSession: "readNativeHistory" },
55015
+ mode: "native-source"
55016
+ };
55011
55017
  }
55012
55018
  }
55013
55019
  } catch {