@adhdev/daemon-core 0.9.82-rc.12 → 0.9.82-rc.13

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.9.82-rc.12",
3
+ "version": "0.9.82-rc.13",
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",
@@ -2081,14 +2081,8 @@ export class DaemonCommandRouter {
2081
2081
  case 'get_mesh': {
2082
2082
  const meshId = typeof args?.meshId === 'string' ? args.meshId.trim() : '';
2083
2083
  if (!meshId) return { success: false, error: 'meshId required' };
2084
- try {
2085
- const { getMesh } = await import('../config/mesh-config.js');
2086
- const mesh = getMesh(meshId);
2087
- if (mesh) return { success: true, mesh };
2088
- } catch { /* fall through to inline cache */ }
2089
- // Fallback: check in-memory cache for cloud-originating meshes
2090
- const cached = this.inlineMeshCache.get(meshId);
2091
- if (cached) return { success: true, mesh: cached };
2084
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
2085
+ if (meshRecord?.mesh) return { success: true, mesh: meshRecord.mesh };
2092
2086
  return { success: false, error: 'Mesh not found' };
2093
2087
  }
2094
2088