@adhdev/daemon-core 1.0.24 → 1.0.26
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 +13 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/providers/provider-loader.ts +12 -9
package/dist/index.js
CHANGED
|
@@ -791,10 +791,10 @@ function readInjected(value) {
|
|
|
791
791
|
}
|
|
792
792
|
function getDaemonBuildInfo() {
|
|
793
793
|
if (cached) return cached;
|
|
794
|
-
const commit = readInjected(true ? "
|
|
795
|
-
const commitShort = readInjected(true ? "
|
|
796
|
-
const version = readInjected(true ? "1.0.
|
|
797
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
794
|
+
const commit = readInjected(true ? "bb9bc5a084a300fae7ea0e833dad7cbbc04c6419" : void 0) ?? "unknown";
|
|
795
|
+
const commitShort = readInjected(true ? "bb9bc5a" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
796
|
+
const version = readInjected(true ? "1.0.26" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
797
|
+
const builtAt = readInjected(true ? "2026-07-24T17:20:16.731Z" : void 0);
|
|
798
798
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
799
799
|
return cached;
|
|
800
800
|
}
|
|
@@ -56802,6 +56802,7 @@ function validateControl(control, errors) {
|
|
|
56802
56802
|
|
|
56803
56803
|
// src/providers/provider-loader.ts
|
|
56804
56804
|
init_external_sources();
|
|
56805
|
+
init_config();
|
|
56805
56806
|
|
|
56806
56807
|
// src/providers/native-history/dispatcher.ts
|
|
56807
56808
|
var fs29 = __toESM(require("fs"));
|
|
@@ -58465,7 +58466,7 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
58465
58466
|
}
|
|
58466
58467
|
}
|
|
58467
58468
|
detectDefaultUserDir() {
|
|
58468
|
-
const fallback = path37.join(
|
|
58469
|
+
const fallback = path37.join(getConfigDir(), "providers");
|
|
58469
58470
|
const envOptIn = process.env[_ProviderLoader.SIBLING_ENV_VAR] === "1";
|
|
58470
58471
|
const visited = /* @__PURE__ */ new Set();
|
|
58471
58472
|
for (const start of this.probeStarts) {
|
|
@@ -58506,7 +58507,7 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
58506
58507
|
this.probeStarts = options?.probeStarts ?? [process.cwd(), __dirname];
|
|
58507
58508
|
this.registryBaseUrl = resolveRegistryBaseUrl(options?.registryUrl);
|
|
58508
58509
|
this.providerTarballUrl = resolveProviderTarballUrl(options?.providerTarballUrl);
|
|
58509
|
-
this.defaultProvidersDir = path37.join(
|
|
58510
|
+
this.defaultProvidersDir = path37.join(getConfigDir(), "providers");
|
|
58510
58511
|
const detected = this.detectDefaultUserDir();
|
|
58511
58512
|
this.userDir = detected.path;
|
|
58512
58513
|
this.userDirSource = detected.source;
|
|
@@ -58521,9 +58522,9 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
58521
58522
|
}
|
|
58522
58523
|
migrateMarketplaceDirToExternal() {
|
|
58523
58524
|
try {
|
|
58524
|
-
const
|
|
58525
|
-
const oldDir = path37.join(
|
|
58526
|
-
const newDir = path37.join(
|
|
58525
|
+
const configDir = getConfigDir();
|
|
58526
|
+
const oldDir = path37.join(configDir, "marketplace");
|
|
58527
|
+
const newDir = path37.join(configDir, "external");
|
|
58527
58528
|
if (!fs30.existsSync(oldDir)) return;
|
|
58528
58529
|
if (fs30.existsSync(newDir)) {
|
|
58529
58530
|
this.log(`Migration skipped: both ~/.adhdev/marketplace and ~/.adhdev/external exist (marketplace dir is now inert and can be removed manually).`);
|
|
@@ -58559,7 +58560,7 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
58559
58560
|
* Highest-priority editable overrides come first.
|
|
58560
58561
|
*/
|
|
58561
58562
|
getProviderRoots() {
|
|
58562
|
-
const externalDir = path37.join(
|
|
58563
|
+
const externalDir = path37.join(getConfigDir(), "external");
|
|
58563
58564
|
return [this.userDir, externalDir, this.upstreamDir];
|
|
58564
58565
|
}
|
|
58565
58566
|
getSourceConfig() {
|
|
@@ -58652,7 +58653,7 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
58652
58653
|
} else if (this.disableUpstream) {
|
|
58653
58654
|
this.log("Upstream loading disabled (sourceMode=no-upstream)");
|
|
58654
58655
|
}
|
|
58655
|
-
const externalDir = path37.join(
|
|
58656
|
+
const externalDir = path37.join(getConfigDir(), "external");
|
|
58656
58657
|
if (fs30.existsSync(externalDir)) {
|
|
58657
58658
|
const rootEntries = (() => {
|
|
58658
58659
|
try {
|
|
@@ -60212,7 +60213,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
60212
60213
|
this.log(`\u26A0 Failed to load scripts: ${scriptsPath}: ${e.message}`);
|
|
60213
60214
|
}
|
|
60214
60215
|
}
|
|
60215
|
-
const externalDirAbs = path37.join(
|
|
60216
|
+
const externalDirAbs = path37.join(getConfigDir(), "external");
|
|
60216
60217
|
const layer = d.startsWith(externalDirAbs) ? "external" : d.startsWith(this.userDir) && !d.includes(".upstream") ? "user" : "upstream";
|
|
60217
60218
|
try {
|
|
60218
60219
|
const { inspectManifestShape: inspectManifestShape2, classifyTrust: classifyTrust2 } = (init_provider_trust(), __toCommonJS(provider_trust_exports));
|