@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/package.json
CHANGED
|
@@ -938,7 +938,7 @@ export class ProviderLoader {
|
|
|
938
938
|
|
|
939
939
|
/**
|
|
940
940
|
* Find the on-disk directory for a provider by type.
|
|
941
|
-
*
|
|
941
|
+
* Canonical shape: root/category/type.
|
|
942
942
|
*/
|
|
943
943
|
private findProviderDirInternal(type: string): string | null {
|
|
944
944
|
const provider = this.providers.get(type);
|
|
@@ -948,9 +948,8 @@ export class ProviderLoader {
|
|
|
948
948
|
const searchRoots = this.getProviderRoots();
|
|
949
949
|
for (const root of searchRoots) {
|
|
950
950
|
if (!fs.existsSync(root)) continue;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
951
|
+
const candidate = this.getProviderDir(root, cat, type);
|
|
952
|
+
if (fs.existsSync(path.join(candidate, 'provider.json'))) return candidate;
|
|
954
953
|
// Scan category dir for type match
|
|
955
954
|
const catDir = path.join(root, cat);
|
|
956
955
|
if (fs.existsSync(catDir)) {
|