@adhdev/daemon-core 0.9.82-rc.542 → 0.9.82-rc.544

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
@@ -414,10 +414,10 @@ function readInjected(value) {
414
414
  }
415
415
  function getDaemonBuildInfo() {
416
416
  if (cached) return cached;
417
- const commit = readInjected(true ? "eb1fb961d4f22983420fad4c65b982d3ab42b5cf" : void 0) ?? "unknown";
418
- const commitShort = readInjected(true ? "eb1fb961" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
- const version = readInjected(true ? "0.9.82-rc.542" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
- const builtAt = readInjected(true ? "2026-07-16T06:30:14.678Z" : void 0);
417
+ const commit = readInjected(true ? "ace946b224e61964aaaa43aed717eaaaeabb3a48" : void 0) ?? "unknown";
418
+ const commitShort = readInjected(true ? "ace946b2" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
+ const version = readInjected(true ? "0.9.82-rc.544" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
+ const builtAt = readInjected(true ? "2026-07-16T08:54:12.905Z" : void 0);
421
421
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
422
422
  return cached;
423
423
  }
@@ -14062,6 +14062,17 @@ function readCachedInlineMeshActiveSessionDetails(node) {
14062
14062
  ...readStringValue(fallbackSession.lastMessagePreview, fallbackSession.last_message_preview) ? { lastMessagePreview: readStringValue(fallbackSession.lastMessagePreview, fallbackSession.last_message_preview) } : {},
14063
14063
  ...readStringValue(fallbackSession.lastMessageRole, fallbackSession.last_message_role) ? { lastMessageRole: readStringValue(fallbackSession.lastMessageRole, fallbackSession.last_message_role) } : {},
14064
14064
  ...readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) !== void 0 ? { lastMessageAt: readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) } : {},
14065
+ // RESTORE-STICK: carry the worker's AUTHORITATIVE dashboard hide/mute state and the
14066
+ // raw per-session user override (userHidden/userMuted) through the cached inline-mesh
14067
+ // active-session entry. The worker's mesh_status slim (mcp-server mesh-tools-status.ts)
14068
+ // now ships these from its own status/builders resolution, which already honors a
14069
+ // manual restore/un-mute. Without carrying them here, the coordinator's cloud snapshot
14070
+ // append re-derives hide/mute purely from mesh policy and overwrites the user's manual
14071
+ // un-hide every snapshot — the restore flickered visible then re-hid.
14072
+ ...readBooleanValue(fallbackSession.surfaceHidden) !== void 0 ? { surfaceHidden: readBooleanValue(fallbackSession.surfaceHidden) } : {},
14073
+ ...readBooleanValue(fallbackSession.muted) !== void 0 ? { muted: readBooleanValue(fallbackSession.muted) } : {},
14074
+ ...readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) !== void 0 ? { userHidden: readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) } : {},
14075
+ ...readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) !== void 0 ? { userMuted: readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) } : {},
14065
14076
  isCached: true
14066
14077
  }];
14067
14078
  }
@@ -19326,6 +19337,12 @@ function resolveMuted(settings) {
19326
19337
  if (settings.userMuted === false) return false;
19327
19338
  return isCoordinatorSpawnedHiddenWorker(settings);
19328
19339
  }
19340
+ function resolveSpawnedSessionHideMute(input) {
19341
+ return {
19342
+ surfaceHidden: resolveSurfaceHidden(input),
19343
+ muted: resolveMuted(input)
19344
+ };
19345
+ }
19329
19346
  function getActiveChatOptions(profile) {
19330
19347
  if (profile === "full") return {};
19331
19348
  return LIVE_STATUS_ACTIVE_CHAT_OPTIONS;
@@ -24768,7 +24785,8 @@ function modalSupersededBySettledPrompt(modalSpec, settledSpec, settled, input)
24768
24785
  const settledPromptLineRe = compile2(settledSpec.regex, (settledSpec.flags ?? "m").includes("m") ? settledSpec.flags ?? "m" : `${settledSpec.flags ?? ""}m`);
24769
24786
  const isSettledLine = (line) => {
24770
24787
  settledPromptLineRe.lastIndex = 0;
24771
- return settledPromptLineRe.test(line);
24788
+ if (settledPromptLineRe.test(line)) return true;
24789
+ return settled.footers.some((f) => f.test(line));
24772
24790
  };
24773
24791
  return below.some((line) => line.trim() !== "" && !isModalCueLine(line) && !isSettledLine(line));
24774
24792
  }
@@ -63649,6 +63667,28 @@ var DaemonCommandRouter = class {
63649
63667
  }
63650
63668
  return nodes;
63651
63669
  }
63670
+ /**
63671
+ * Same flattened node list as getCachedInlineMeshNodes(), but each node is
63672
+ * paired with the `spawnedSessionVisibility` from its OWNING mesh's policy.
63673
+ * The flat node list loses the mesh→node association, yet the cloud daemon's
63674
+ * synthetic mesh-session mirror needs the mesh-level visibility policy to
63675
+ * decide whether a coordinator-spawned worker session should be hidden+muted
63676
+ * on the dashboard (the cached inline-mesh session entry carries no settings
63677
+ * of its own). Falls back to DEFAULT_MESH_POLICY.spawnedSessionVisibility when
63678
+ * the mesh policy is absent, matching the worker-launch stamp.
63679
+ */
63680
+ getCachedInlineMeshNodesWithVisibility() {
63681
+ const out = [];
63682
+ for (const mesh of this.inlineMeshCache.values()) {
63683
+ const spawnedSessionVisibility = mesh?.policy?.spawnedSessionVisibility === "visible" ? "visible" : "hidden";
63684
+ if (Array.isArray(mesh?.nodes)) {
63685
+ for (const node of mesh.nodes) {
63686
+ out.push({ node, spawnedSessionVisibility });
63687
+ }
63688
+ }
63689
+ }
63690
+ return out;
63691
+ }
63652
63692
  // ─── Remote mesh-session owner resolution ───────────────────────────
63653
63693
  // Implementation lives in ./router-mesh-session-owner.ts (behavior-preserving
63654
63694
  // code move). resolveRemoteMeshSessionOwnerDaemonId stays public (the [Z]
@@ -72679,6 +72719,7 @@ export {
72679
72719
  isAlwaysOnTraceCategory,
72680
72720
  isBuiltinChatMessageKind,
72681
72721
  isCdpConnected,
72722
+ isCoordinatorSpawnedHiddenWorker,
72682
72723
  isExtensionInstalled,
72683
72724
  isGitCommandName,
72684
72725
  isIdeRunning,
@@ -72805,11 +72846,14 @@ export {
72805
72846
  resolveMeshNodeAttribution,
72806
72847
  resolveMeshRefineValidationPlan,
72807
72848
  resolveMeshSurfacedSessionPreview,
72849
+ resolveMuted,
72808
72850
  resolveNodeSchedulingPriority,
72809
72851
  resolveNotBefore,
72810
72852
  resolveProviderMaxParallel,
72811
72853
  resolveSessionHostAppName,
72812
72854
  resolveSessionHostAppNameResolution,
72855
+ resolveSpawnedSessionHideMute,
72856
+ resolveSurfaceHidden,
72813
72857
  resolveWorktreePath,
72814
72858
  runAsyncBatch,
72815
72859
  runGit,