@adhdev/daemon-core 1.0.18-rc.19 → 1.0.18-rc.20

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.
@@ -302,7 +302,7 @@ export declare function isPurePtyTranscriptProvider(provider: {
302
302
  transcriptAuthority?: 'provider' | 'daemon';
303
303
  nativeHistory?: unknown;
304
304
  tui?: Record<string, unknown>;
305
- }): boolean;
305
+ } | null | undefined): boolean;
306
306
  /**
307
307
  * Stateful, transcript-oriented terminal cell accumulator.
308
308
  *
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ function resolveConfiguredMode(provider, mode, settings) {
51
51
  return { active: true, strategy: mode.strategy, modeId: mode.id };
52
52
  }
53
53
  function resolveProviderAutoApproveMode(provider, settings) {
54
+ if (!provider) return inactiveMode();
54
55
  const config = provider.autoApproveModes;
55
56
  const explicitModeId = settings?.autoApproveMode;
56
57
  if (typeof explicitModeId === "string") {
@@ -790,10 +791,10 @@ function readInjected(value) {
790
791
  }
791
792
  function getDaemonBuildInfo() {
792
793
  if (cached) return cached;
793
- const commit = readInjected(true ? "957753ce64d49cf4222cb2675d7d919871d3f009" : void 0) ?? "unknown";
794
- const commitShort = readInjected(true ? "957753ce" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
795
- const version = readInjected(true ? "1.0.18-rc.19" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
796
- const builtAt = readInjected(true ? "2026-07-23T07:07:10.469Z" : void 0);
794
+ const commit = readInjected(true ? "b85c66fa11d0078f0e91383ab7702f22a72d3753" : void 0) ?? "unknown";
795
+ const commitShort = readInjected(true ? "b85c66fa" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
796
+ const version = readInjected(true ? "1.0.18-rc.20" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
797
+ const builtAt = readInjected(true ? "2026-07-23T08:28:36.533Z" : void 0);
797
798
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
798
799
  return cached;
799
800
  }
@@ -13062,6 +13063,7 @@ var init_spawn_env = __esm({
13062
13063
 
13063
13064
  // src/cli-adapters/provider-cli-shared.ts
13064
13065
  function isPurePtyTranscriptProvider(provider) {
13066
+ if (!provider) return false;
13065
13067
  if (provider.transcriptAuthority === "provider") return false;
13066
13068
  if (provider.nativeHistory) return false;
13067
13069
  const transcriptPty = provider.tui?.transcriptPty;