@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.mjs CHANGED
@@ -23983,6 +23983,11 @@ function hasInlineMeshTransientNodeState(node) {
23983
23983
  if (!node || typeof node !== "object" || Array.isArray(node)) return false;
23984
23984
  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;
23985
23985
  }
23986
+ function inlineMeshCarriesTransientNodeTruth(inlineMesh) {
23987
+ if (!inlineMesh || typeof inlineMesh !== "object" || Array.isArray(inlineMesh)) return false;
23988
+ if (!Array.isArray(inlineMesh.nodes) || inlineMesh.nodes.length === 0) return false;
23989
+ return inlineMesh.nodes.some((node) => hasInlineMeshTransientNodeState(node));
23990
+ }
23986
23991
  function readInlineMeshNodeId(node) {
23987
23992
  return readStringValue(node?.id, node?.nodeId) || "";
23988
23993
  }
@@ -24712,8 +24717,10 @@ var DaemonCommandRouter = class {
24712
24717
  if (preferInline) {
24713
24718
  const cached2 = this.getCachedInlineMesh(meshId);
24714
24719
  if (cached2) return { mesh: cached2, inline: true, source: "inline_cache" };
24715
- const warmedInline2 = this.warmInlineMeshCache(meshId, inlineMesh);
24716
- if (warmedInline2) return { mesh: warmedInline2, inline: true, source: "inline_bootstrap" };
24720
+ if (inlineMeshCarriesTransientNodeTruth(inlineMesh)) {
24721
+ this.warmInlineMeshCache(meshId, inlineMesh);
24722
+ return { mesh: inlineMesh, inline: true, source: "inline_bootstrap" };
24723
+ }
24717
24724
  }
24718
24725
  try {
24719
24726
  const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));