@adhdev/daemon-core 0.8.93 → 0.8.94

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.
@@ -1,9 +1,18 @@
1
1
  import type { ProviderSourceMode } from './config.js';
2
+ /**
3
+ * How the effective `userDir` was resolved:
4
+ * - `explicit` — the user set `config.providerDir` or passed `userDir`
5
+ * - `sibling-env` — auto-adopted a sibling `adhdev-providers/` via ADHDEV_USE_SIBLING_PROVIDERS=1
6
+ * - `sibling-marker` — auto-adopted a sibling `adhdev-providers/` via a `.adhdev-provider-root` marker file
7
+ * - `home-default` — fell back to `~/.adhdev/providers`
8
+ */
9
+ export type ProviderUserDirSource = 'explicit' | 'sibling-env' | 'sibling-marker' | 'home-default';
2
10
  export interface ProviderSourceConfigSnapshot {
3
11
  sourceMode: ProviderSourceMode;
4
12
  disableUpstream: boolean;
5
13
  explicitProviderDir: string | null;
6
14
  userDir: string;
15
+ userDirSource: ProviderUserDirSource;
7
16
  upstreamDir: string;
8
17
  providerRoots: string[];
9
18
  }