@adhdev/daemon-core 1.0.24-rc.1 → 1.0.25

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
@@ -786,10 +786,10 @@ function readInjected(value) {
786
786
  }
787
787
  function getDaemonBuildInfo() {
788
788
  if (cached) return cached;
789
- const commit = readInjected(true ? "159c481abed0a48a043711e3c9c8a3a12b900336" : void 0) ?? "unknown";
790
- const commitShort = readInjected(true ? "159c481a" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
791
- const version = readInjected(true ? "1.0.24-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
792
- const builtAt = readInjected(true ? "2026-07-24T11:39:26.052Z" : void 0);
789
+ const commit = readInjected(true ? "b9ead117f87e5cbd4f8993c793ba17c75925b325" : void 0) ?? "unknown";
790
+ const commitShort = readInjected(true ? "b9ead11" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
791
+ const version = readInjected(true ? "1.0.25" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
792
+ const builtAt = readInjected(true ? "2026-07-24T17:17:57.786Z" : void 0);
793
793
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
794
794
  return cached;
795
795
  }
@@ -56367,6 +56367,7 @@ function validateControl(control, errors) {
56367
56367
 
56368
56368
  // src/providers/provider-loader.ts
56369
56369
  init_external_sources();
56370
+ init_config();
56370
56371
 
56371
56372
  // src/providers/native-history/dispatcher.ts
56372
56373
  import * as fs29 from "fs";
@@ -58030,7 +58031,7 @@ var ProviderLoader = class _ProviderLoader {
58030
58031
  }
58031
58032
  }
58032
58033
  detectDefaultUserDir() {
58033
- const fallback = path37.join(os27.homedir(), ".adhdev", "providers");
58034
+ const fallback = path37.join(getConfigDir(), "providers");
58034
58035
  const envOptIn = process.env[_ProviderLoader.SIBLING_ENV_VAR] === "1";
58035
58036
  const visited = /* @__PURE__ */ new Set();
58036
58037
  for (const start of this.probeStarts) {
@@ -58071,7 +58072,7 @@ var ProviderLoader = class _ProviderLoader {
58071
58072
  this.probeStarts = options?.probeStarts ?? [process.cwd(), __dirname];
58072
58073
  this.registryBaseUrl = resolveRegistryBaseUrl(options?.registryUrl);
58073
58074
  this.providerTarballUrl = resolveProviderTarballUrl(options?.providerTarballUrl);
58074
- this.defaultProvidersDir = path37.join(os27.homedir(), ".adhdev", "providers");
58075
+ this.defaultProvidersDir = path37.join(getConfigDir(), "providers");
58075
58076
  const detected = this.detectDefaultUserDir();
58076
58077
  this.userDir = detected.path;
58077
58078
  this.userDirSource = detected.source;
@@ -58086,9 +58087,9 @@ var ProviderLoader = class _ProviderLoader {
58086
58087
  }
58087
58088
  migrateMarketplaceDirToExternal() {
58088
58089
  try {
58089
- const home = os27.homedir();
58090
- const oldDir = path37.join(home, ".adhdev", "marketplace");
58091
- const newDir = path37.join(home, ".adhdev", "external");
58090
+ const configDir = getConfigDir();
58091
+ const oldDir = path37.join(configDir, "marketplace");
58092
+ const newDir = path37.join(configDir, "external");
58092
58093
  if (!fs30.existsSync(oldDir)) return;
58093
58094
  if (fs30.existsSync(newDir)) {
58094
58095
  this.log(`Migration skipped: both ~/.adhdev/marketplace and ~/.adhdev/external exist (marketplace dir is now inert and can be removed manually).`);
@@ -58124,7 +58125,7 @@ var ProviderLoader = class _ProviderLoader {
58124
58125
  * Highest-priority editable overrides come first.
58125
58126
  */
58126
58127
  getProviderRoots() {
58127
- const externalDir = path37.join(os27.homedir(), ".adhdev", "external");
58128
+ const externalDir = path37.join(getConfigDir(), "external");
58128
58129
  return [this.userDir, externalDir, this.upstreamDir];
58129
58130
  }
58130
58131
  getSourceConfig() {
@@ -58217,7 +58218,7 @@ var ProviderLoader = class _ProviderLoader {
58217
58218
  } else if (this.disableUpstream) {
58218
58219
  this.log("Upstream loading disabled (sourceMode=no-upstream)");
58219
58220
  }
58220
- const externalDir = path37.join(os27.homedir(), ".adhdev", "external");
58221
+ const externalDir = path37.join(getConfigDir(), "external");
58221
58222
  if (fs30.existsSync(externalDir)) {
58222
58223
  const rootEntries = (() => {
58223
58224
  try {
@@ -59777,7 +59778,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
59777
59778
  this.log(`\u26A0 Failed to load scripts: ${scriptsPath}: ${e.message}`);
59778
59779
  }
59779
59780
  }
59780
- const externalDirAbs = path37.join(os27.homedir(), ".adhdev", "external");
59781
+ const externalDirAbs = path37.join(getConfigDir(), "external");
59781
59782
  const layer = d.startsWith(externalDirAbs) ? "external" : d.startsWith(this.userDir) && !d.includes(".upstream") ? "user" : "upstream";
59782
59783
  try {
59783
59784
  const { inspectManifestShape: inspectManifestShape2, classifyTrust: classifyTrust2 } = (init_provider_trust(), __toCommonJS(provider_trust_exports));
@@ -67912,7 +67913,7 @@ init_mesh_node_identity();
67912
67913
  // src/mesh/mesh-coordinator-config.ts
67913
67914
  init_logger();
67914
67915
  import * as yaml5 from "js-yaml";
67915
- import { homedir as homedir27 } from "os";
67916
+ import { homedir as homedir26 } from "os";
67916
67917
  import { join as pathJoin4, resolve as pathResolve4 } from "path";
67917
67918
  import * as fs36 from "fs";
67918
67919
  function loadYamlModule() {
@@ -67933,7 +67934,7 @@ function serializeMeshCoordinatorMcpConfig(config, format) {
67933
67934
  }
67934
67935
  function resolveHermesUserHome() {
67935
67936
  const explicitHome = process.env.HERMES_HOME?.trim();
67936
- return explicitHome || pathJoin4(homedir27(), ".hermes");
67937
+ return explicitHome || pathJoin4(homedir26(), ".hermes");
67937
67938
  }
67938
67939
  function loadHermesCoordinatorBaseConfig(targetConfigPath) {
67939
67940
  const sourceHome = resolveHermesUserHome();