@adhdev/daemon-core 0.6.52 → 0.6.53
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.d.ts +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/providers/provider-loader.ts +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -1202,7 +1202,7 @@ declare class ProviderLoader {
|
|
|
1202
1202
|
setSetting(type: string, key: string, value: any): boolean;
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Find the on-disk directory for a provider by type.
|
|
1205
|
-
*
|
|
1205
|
+
* Canonical shape: root/category/type.
|
|
1206
1206
|
*/
|
|
1207
1207
|
private findProviderDirInternal;
|
|
1208
1208
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6605,7 +6605,7 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
6605
6605
|
// ─── Private ───────────────────────────────────
|
|
6606
6606
|
/**
|
|
6607
6607
|
* Find the on-disk directory for a provider by type.
|
|
6608
|
-
*
|
|
6608
|
+
* Canonical shape: root/category/type.
|
|
6609
6609
|
*/
|
|
6610
6610
|
findProviderDirInternal(type) {
|
|
6611
6611
|
const provider = this.providers.get(type);
|
|
@@ -6614,9 +6614,8 @@ var ProviderLoader = class _ProviderLoader {
|
|
|
6614
6614
|
const searchRoots = this.getProviderRoots();
|
|
6615
6615
|
for (const root of searchRoots) {
|
|
6616
6616
|
if (!fs5.existsSync(root)) continue;
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
}
|
|
6617
|
+
const candidate = this.getProviderDir(root, cat, type);
|
|
6618
|
+
if (fs5.existsSync(path6.join(candidate, "provider.json"))) return candidate;
|
|
6620
6619
|
const catDir = path6.join(root, cat);
|
|
6621
6620
|
if (fs5.existsSync(catDir)) {
|
|
6622
6621
|
try {
|