@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/dist/index.js
CHANGED
|
@@ -24216,6 +24216,11 @@ function hasInlineMeshTransientNodeState(node) {
|
|
|
24216
24216
|
if (!node || typeof node !== "object" || Array.isArray(node)) return false;
|
|
24217
24217
|
return "cachedStatus" in node || "lastGit" in node || "last_git" in node || "lastProbe" in node || "last_probe" in node || "error" in node || "health" in node || "machineStatus" in node || "lastSeenAt" in node || "last_seen_at" in node || "updatedAt" in node || "updated_at" in node || "activeSession" in node || "active_session" in node || "activeSessionId" in node || "active_session_id" in node || "sessionId" in node || "session_id" in node || "providerType" in node || "provider_type" in node;
|
|
24218
24218
|
}
|
|
24219
|
+
function inlineMeshCarriesTransientNodeTruth(inlineMesh) {
|
|
24220
|
+
if (!inlineMesh || typeof inlineMesh !== "object" || Array.isArray(inlineMesh)) return false;
|
|
24221
|
+
if (!Array.isArray(inlineMesh.nodes) || inlineMesh.nodes.length === 0) return false;
|
|
24222
|
+
return inlineMesh.nodes.some((node) => hasInlineMeshTransientNodeState(node));
|
|
24223
|
+
}
|
|
24219
24224
|
function readInlineMeshNodeId(node) {
|
|
24220
24225
|
return readStringValue(node?.id, node?.nodeId) || "";
|
|
24221
24226
|
}
|
|
@@ -24945,8 +24950,10 @@ var DaemonCommandRouter = class {
|
|
|
24945
24950
|
if (preferInline) {
|
|
24946
24951
|
const cached2 = this.getCachedInlineMesh(meshId);
|
|
24947
24952
|
if (cached2) return { mesh: cached2, inline: true, source: "inline_cache" };
|
|
24948
|
-
|
|
24949
|
-
|
|
24953
|
+
if (inlineMeshCarriesTransientNodeTruth(inlineMesh)) {
|
|
24954
|
+
this.warmInlineMeshCache(meshId, inlineMesh);
|
|
24955
|
+
return { mesh: inlineMesh, inline: true, source: "inline_bootstrap" };
|
|
24956
|
+
}
|
|
24950
24957
|
}
|
|
24951
24958
|
try {
|
|
24952
24959
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|