@adhdev/daemon-core 0.9.82-rc.541 → 0.9.82-rc.543

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 ? "77f3fad0358bec7e4474ead5b2510e19a4cc2cc4" : void 0) ?? "unknown";
418
- const commitShort = readInjected(true ? "77f3fad0" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
- const version = readInjected(true ? "0.9.82-rc.541" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
- const builtAt = readInjected(true ? "2026-07-16T05:30:52.044Z" : void 0);
417
+ const commit = readInjected(true ? "ae5a5c1199ad4270aa45c5f938ad931e3bdc7a7d" : void 0) ?? "unknown";
418
+ const commitShort = readInjected(true ? "ae5a5c11" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
+ const version = readInjected(true ? "0.9.82-rc.543" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
+ const builtAt = readInjected(true ? "2026-07-16T07:10:31.955Z" : void 0);
421
421
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
422
422
  return cached;
423
423
  }
@@ -19326,6 +19326,12 @@ function resolveMuted(settings) {
19326
19326
  if (settings.userMuted === false) return false;
19327
19327
  return isCoordinatorSpawnedHiddenWorker(settings);
19328
19328
  }
19329
+ function resolveSpawnedSessionHideMute(input) {
19330
+ return {
19331
+ surfaceHidden: resolveSurfaceHidden(input),
19332
+ muted: resolveMuted(input)
19333
+ };
19334
+ }
19329
19335
  function getActiveChatOptions(profile) {
19330
19336
  if (profile === "full") return {};
19331
19337
  return LIVE_STATUS_ACTIVE_CHAT_OPTIONS;
@@ -19531,8 +19537,12 @@ function buildCliSession(state, options) {
19531
19537
  settings: state.settings,
19532
19538
  ...coordinator && { coordinator },
19533
19539
  ...meshQueueStats && { meshQueueStats },
19534
- ...resolveSurfaceHidden(state.settings) && { surfaceHidden: true },
19535
- ...resolveMuted(state.settings) && { muted: true }
19540
+ // Emit these booleans explicitly (including false) so an un-hide/un-mute clears a
19541
+ // previously-true value downstream. Consumers merge with `?? existing` and copy only
19542
+ // `!== undefined` fields, so an absent field on false never overwrote a prior true —
19543
+ // the toggle-off direction silently stuck. See session-entry-merge.ts.
19544
+ surfaceHidden: resolveSurfaceHidden(state.settings),
19545
+ muted: resolveMuted(state.settings)
19536
19546
  };
19537
19547
  }
19538
19548
  function buildAcpSession(state, options) {
@@ -19573,8 +19583,10 @@ function buildAcpSession(state, options) {
19573
19583
  settings: state.settings,
19574
19584
  ...coordinator && { coordinator },
19575
19585
  ...meshQueueStats && { meshQueueStats },
19576
- ...resolveSurfaceHidden(state.settings) && { surfaceHidden: true },
19577
- ...resolveMuted(state.settings) && { muted: true }
19586
+ // Emit explicitly (including false) so un-hide/un-mute clears a prior true downstream —
19587
+ // see buildCliSession above and session-entry-merge.ts.
19588
+ surfaceHidden: resolveSurfaceHidden(state.settings),
19589
+ muted: resolveMuted(state.settings)
19578
19590
  };
19579
19591
  }
19580
19592
  function buildSessionEntries(allStates, cdpManagers, options = {}) {
@@ -24762,7 +24774,8 @@ function modalSupersededBySettledPrompt(modalSpec, settledSpec, settled, input)
24762
24774
  const settledPromptLineRe = compile2(settledSpec.regex, (settledSpec.flags ?? "m").includes("m") ? settledSpec.flags ?? "m" : `${settledSpec.flags ?? ""}m`);
24763
24775
  const isSettledLine = (line) => {
24764
24776
  settledPromptLineRe.lastIndex = 0;
24765
- return settledPromptLineRe.test(line);
24777
+ if (settledPromptLineRe.test(line)) return true;
24778
+ return settled.footers.some((f) => f.test(line));
24766
24779
  };
24767
24780
  return below.some((line) => line.trim() !== "" && !isModalCueLine(line) && !isSettledLine(line));
24768
24781
  }
@@ -63643,6 +63656,28 @@ var DaemonCommandRouter = class {
63643
63656
  }
63644
63657
  return nodes;
63645
63658
  }
63659
+ /**
63660
+ * Same flattened node list as getCachedInlineMeshNodes(), but each node is
63661
+ * paired with the `spawnedSessionVisibility` from its OWNING mesh's policy.
63662
+ * The flat node list loses the mesh→node association, yet the cloud daemon's
63663
+ * synthetic mesh-session mirror needs the mesh-level visibility policy to
63664
+ * decide whether a coordinator-spawned worker session should be hidden+muted
63665
+ * on the dashboard (the cached inline-mesh session entry carries no settings
63666
+ * of its own). Falls back to DEFAULT_MESH_POLICY.spawnedSessionVisibility when
63667
+ * the mesh policy is absent, matching the worker-launch stamp.
63668
+ */
63669
+ getCachedInlineMeshNodesWithVisibility() {
63670
+ const out = [];
63671
+ for (const mesh of this.inlineMeshCache.values()) {
63672
+ const spawnedSessionVisibility = mesh?.policy?.spawnedSessionVisibility === "visible" ? "visible" : "hidden";
63673
+ if (Array.isArray(mesh?.nodes)) {
63674
+ for (const node of mesh.nodes) {
63675
+ out.push({ node, spawnedSessionVisibility });
63676
+ }
63677
+ }
63678
+ }
63679
+ return out;
63680
+ }
63646
63681
  // ─── Remote mesh-session owner resolution ───────────────────────────
63647
63682
  // Implementation lives in ./router-mesh-session-owner.ts (behavior-preserving
63648
63683
  // code move). resolveRemoteMeshSessionOwnerDaemonId stays public (the [Z]
@@ -72673,6 +72708,7 @@ export {
72673
72708
  isAlwaysOnTraceCategory,
72674
72709
  isBuiltinChatMessageKind,
72675
72710
  isCdpConnected,
72711
+ isCoordinatorSpawnedHiddenWorker,
72676
72712
  isExtensionInstalled,
72677
72713
  isGitCommandName,
72678
72714
  isIdeRunning,
@@ -72799,11 +72835,14 @@ export {
72799
72835
  resolveMeshNodeAttribution,
72800
72836
  resolveMeshRefineValidationPlan,
72801
72837
  resolveMeshSurfacedSessionPreview,
72838
+ resolveMuted,
72802
72839
  resolveNodeSchedulingPriority,
72803
72840
  resolveNotBefore,
72804
72841
  resolveProviderMaxParallel,
72805
72842
  resolveSessionHostAppName,
72806
72843
  resolveSessionHostAppNameResolution,
72844
+ resolveSpawnedSessionHideMute,
72845
+ resolveSurfaceHidden,
72807
72846
  resolveWorktreePath,
72808
72847
  runAsyncBatch,
72809
72848
  runGit,