@adhdev/daemon-core 0.9.82-rc.31 → 0.9.82-rc.32

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.31",
3
+ "version": "0.9.82-rc.32",
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",
@@ -308,6 +308,12 @@ function hasInlineMeshTransientNodeState(node: any): boolean {
308
308
  || 'provider_type' in node;
309
309
  }
310
310
 
311
+ function inlineMeshCarriesTransientNodeTruth(inlineMesh: any): boolean {
312
+ if (!inlineMesh || typeof inlineMesh !== 'object' || Array.isArray(inlineMesh)) return false;
313
+ if (!Array.isArray(inlineMesh.nodes) || inlineMesh.nodes.length === 0) return false;
314
+ return inlineMesh.nodes.some((node: any) => hasInlineMeshTransientNodeState(node));
315
+ }
316
+
311
317
  function readInlineMeshNodeId(node: any): string {
312
318
  return readStringValue(node?.id, node?.nodeId) || '';
313
319
  }
@@ -1285,8 +1291,10 @@ export class DaemonCommandRouter {
1285
1291
  if (preferInline) {
1286
1292
  const cached = this.getCachedInlineMesh(meshId);
1287
1293
  if (cached) return { mesh: cached, inline: true, source: 'inline_cache' };
1288
- const warmedInline = this.warmInlineMeshCache(meshId, inlineMesh);
1289
- if (warmedInline) return { mesh: warmedInline, inline: true, source: 'inline_bootstrap' };
1294
+ if (inlineMeshCarriesTransientNodeTruth(inlineMesh)) {
1295
+ this.warmInlineMeshCache(meshId, inlineMesh);
1296
+ return { mesh: inlineMesh, inline: true, source: 'inline_bootstrap' };
1297
+ }
1290
1298
  }
1291
1299
  try {
1292
1300
  const { getMesh } = await import('../config/mesh-config.js');