@adhdev/daemon-core 1.0.18 → 1.0.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.
- package/dist/cli-adapters/provider-cli-shared.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/dist/providers/auto-approve-modes.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-shared.ts +8 -1
- package/src/providers/auto-approve-modes.ts +7 -1
|
@@ -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 ? "
|
|
794
|
-
const commitShort = readInjected(true ? "
|
|
795
|
-
const version = readInjected(true ? "1.0.
|
|
796
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
794
|
+
const commit = readInjected(true ? "5a496bfb562636720786b97880c617ebcd15fe64" : void 0) ?? "unknown";
|
|
795
|
+
const commitShort = readInjected(true ? "5a496bf" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
796
|
+
const version = readInjected(true ? "1.0.20" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
797
|
+
const builtAt = readInjected(true ? "2026-07-23T08:01:01.842Z" : 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;
|