@adhdev/daemon-standalone 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.js CHANGED
@@ -30208,10 +30208,10 @@ var require_dist3 = __commonJS({
30208
30208
  }
30209
30209
  function getDaemonBuildInfo() {
30210
30210
  if (cached2) return cached2;
30211
- const commit = readInjected(true ? "77f3fad0358bec7e4474ead5b2510e19a4cc2cc4" : void 0) ?? "unknown";
30212
- const commitShort = readInjected(true ? "77f3fad0" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
- const version2 = readInjected(true ? "0.9.82-rc.541" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
- const builtAt = readInjected(true ? "2026-07-16T05:31:23.336Z" : void 0);
30211
+ const commit = readInjected(true ? "ae5a5c1199ad4270aa45c5f938ad931e3bdc7a7d" : void 0) ?? "unknown";
30212
+ const commitShort = readInjected(true ? "ae5a5c11" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
+ const version2 = readInjected(true ? "0.9.82-rc.543" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
+ const builtAt = readInjected(true ? "2026-07-16T07:11:08.120Z" : void 0);
30215
30215
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30216
30216
  return cached2;
30217
30217
  }
@@ -49269,6 +49269,12 @@ ${cleanBody}`;
49269
49269
  if (settings.userMuted === false) return false;
49270
49270
  return isCoordinatorSpawnedHiddenWorker(settings);
49271
49271
  }
49272
+ function resolveSpawnedSessionHideMute(input) {
49273
+ return {
49274
+ surfaceHidden: resolveSurfaceHidden(input),
49275
+ muted: resolveMuted(input)
49276
+ };
49277
+ }
49272
49278
  function getActiveChatOptions(profile) {
49273
49279
  if (profile === "full") return {};
49274
49280
  return LIVE_STATUS_ACTIVE_CHAT_OPTIONS;
@@ -49474,8 +49480,12 @@ ${cleanBody}`;
49474
49480
  settings: state.settings,
49475
49481
  ...coordinator && { coordinator },
49476
49482
  ...meshQueueStats && { meshQueueStats },
49477
- ...resolveSurfaceHidden(state.settings) && { surfaceHidden: true },
49478
- ...resolveMuted(state.settings) && { muted: true }
49483
+ // Emit these booleans explicitly (including false) so an un-hide/un-mute clears a
49484
+ // previously-true value downstream. Consumers merge with `?? existing` and copy only
49485
+ // `!== undefined` fields, so an absent field on false never overwrote a prior true —
49486
+ // the toggle-off direction silently stuck. See session-entry-merge.ts.
49487
+ surfaceHidden: resolveSurfaceHidden(state.settings),
49488
+ muted: resolveMuted(state.settings)
49479
49489
  };
49480
49490
  }
49481
49491
  function buildAcpSession(state, options) {
@@ -49516,8 +49526,10 @@ ${cleanBody}`;
49516
49526
  settings: state.settings,
49517
49527
  ...coordinator && { coordinator },
49518
49528
  ...meshQueueStats && { meshQueueStats },
49519
- ...resolveSurfaceHidden(state.settings) && { surfaceHidden: true },
49520
- ...resolveMuted(state.settings) && { muted: true }
49529
+ // Emit explicitly (including false) so un-hide/un-mute clears a prior true downstream —
49530
+ // see buildCliSession above and session-entry-merge.ts.
49531
+ surfaceHidden: resolveSurfaceHidden(state.settings),
49532
+ muted: resolveMuted(state.settings)
49521
49533
  };
49522
49534
  }
49523
49535
  function buildSessionEntries(allStates, cdpManagers, options = {}) {
@@ -54700,7 +54712,8 @@ ${cleanBody}`;
54700
54712
  const settledPromptLineRe = compile2(settledSpec.regex, (settledSpec.flags ?? "m").includes("m") ? settledSpec.flags ?? "m" : `${settledSpec.flags ?? ""}m`);
54701
54713
  const isSettledLine = (line) => {
54702
54714
  settledPromptLineRe.lastIndex = 0;
54703
- return settledPromptLineRe.test(line);
54715
+ if (settledPromptLineRe.test(line)) return true;
54716
+ return settled.footers.some((f) => f.test(line));
54704
54717
  };
54705
54718
  return below.some((line) => line.trim() !== "" && !isModalCueLine(line) && !isSettledLine(line));
54706
54719
  }
@@ -59235,6 +59248,7 @@ ${lastSnapshot}`;
59235
59248
  isAlwaysOnTraceCategory: () => isAlwaysOnTraceCategory,
59236
59249
  isBuiltinChatMessageKind: () => isBuiltinChatMessageKind,
59237
59250
  isCdpConnected: () => isCdpConnected,
59251
+ isCoordinatorSpawnedHiddenWorker: () => isCoordinatorSpawnedHiddenWorker,
59238
59252
  isExtensionInstalled: () => isExtensionInstalled,
59239
59253
  isGitCommandName: () => isGitCommandName,
59240
59254
  isIdeRunning: () => isIdeRunning,
@@ -59361,11 +59375,14 @@ ${lastSnapshot}`;
59361
59375
  resolveMeshNodeAttribution: () => resolveMeshNodeAttribution,
59362
59376
  resolveMeshRefineValidationPlan: () => resolveMeshRefineValidationPlan,
59363
59377
  resolveMeshSurfacedSessionPreview: () => resolveMeshSurfacedSessionPreview,
59378
+ resolveMuted: () => resolveMuted,
59364
59379
  resolveNodeSchedulingPriority: () => resolveNodeSchedulingPriority,
59365
59380
  resolveNotBefore: () => resolveNotBefore,
59366
59381
  resolveProviderMaxParallel: () => resolveProviderMaxParallel,
59367
59382
  resolveSessionHostAppName: () => resolveSessionHostAppName,
59368
59383
  resolveSessionHostAppNameResolution: () => resolveSessionHostAppNameResolution2,
59384
+ resolveSpawnedSessionHideMute: () => resolveSpawnedSessionHideMute,
59385
+ resolveSurfaceHidden: () => resolveSurfaceHidden,
59369
59386
  resolveWorktreePath: () => resolveWorktreePath,
59370
59387
  runAsyncBatch: () => runAsyncBatch2,
59371
59388
  runGit: () => runGit,
@@ -93714,6 +93731,28 @@ ${e?.stderr || ""}`;
93714
93731
  }
93715
93732
  return nodes;
93716
93733
  }
93734
+ /**
93735
+ * Same flattened node list as getCachedInlineMeshNodes(), but each node is
93736
+ * paired with the `spawnedSessionVisibility` from its OWNING mesh's policy.
93737
+ * The flat node list loses the mesh→node association, yet the cloud daemon's
93738
+ * synthetic mesh-session mirror needs the mesh-level visibility policy to
93739
+ * decide whether a coordinator-spawned worker session should be hidden+muted
93740
+ * on the dashboard (the cached inline-mesh session entry carries no settings
93741
+ * of its own). Falls back to DEFAULT_MESH_POLICY.spawnedSessionVisibility when
93742
+ * the mesh policy is absent, matching the worker-launch stamp.
93743
+ */
93744
+ getCachedInlineMeshNodesWithVisibility() {
93745
+ const out = [];
93746
+ for (const mesh of this.inlineMeshCache.values()) {
93747
+ const spawnedSessionVisibility = mesh?.policy?.spawnedSessionVisibility === "visible" ? "visible" : "hidden";
93748
+ if (Array.isArray(mesh?.nodes)) {
93749
+ for (const node of mesh.nodes) {
93750
+ out.push({ node, spawnedSessionVisibility });
93751
+ }
93752
+ }
93753
+ }
93754
+ return out;
93755
+ }
93717
93756
  // ─── Remote mesh-session owner resolution ───────────────────────────
93718
93757
  // Implementation lives in ./router-mesh-session-owner.ts (behavior-preserving
93719
93758
  // code move). resolveRemoteMeshSessionOwnerDaemonId stays public (the [Z]