@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.6.52",
3
+ "version": "0.6.53",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -938,7 +938,7 @@ export class ProviderLoader {
938
938
 
939
939
  /**
940
940
  * Find the on-disk directory for a provider by type.
941
- * Preferred shape: root/category/type. Legacy flat root/type is kept temporarily for compatibility.
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
- for (const candidate of [this.getProviderDir(root, cat, type), path.join(root, type)]) {
952
- if (fs.existsSync(path.join(candidate, 'provider.json'))) return candidate;
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)) {