@adhdev/daemon-core 0.9.82-rc.31 → 0.9.82-rc.33
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.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +10 -2
package/package.json
CHANGED
package/src/commands/router.ts
CHANGED
|
@@ -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
|
-
|
|
1289
|
-
|
|
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');
|