@adhdev/daemon-core 0.9.82-rc.542 → 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.
@@ -14,7 +14,7 @@ import { DaemonCliManager } from './cli-manager.js';
14
14
  import type { ProviderLoader } from '../providers/provider-loader.js';
15
15
  import type { ProviderInstanceManager } from '../providers/provider-instance-manager.js';
16
16
  import { SessionRegistry } from '../sessions/registry.js';
17
- import type { RepoMeshSessionCleanupMode } from '../repo-mesh-types.js';
17
+ import type { RepoMeshSessionCleanupMode, RepoMeshSpawnedSessionVisibility } from '../repo-mesh-types.js';
18
18
  import { MeshRefineBatchJobHandle, MeshRefineBatchTerminalJob, MeshRefineJobHandle, MeshRefineTerminalJob } from '../mesh/mesh-refine-gates.js';
19
19
  export * from '../mesh/mesh-node-identity.js';
20
20
  export * from '../mesh/mesh-refine-gates.js';
@@ -151,6 +151,20 @@ export declare class DaemonCommandRouter {
151
151
  private getCachedAggregateMeshStatus;
152
152
  private rememberAggregateMeshStatus;
153
153
  getCachedInlineMeshNodes(): any[];
154
+ /**
155
+ * Same flattened node list as getCachedInlineMeshNodes(), but each node is
156
+ * paired with the `spawnedSessionVisibility` from its OWNING mesh's policy.
157
+ * The flat node list loses the mesh→node association, yet the cloud daemon's
158
+ * synthetic mesh-session mirror needs the mesh-level visibility policy to
159
+ * decide whether a coordinator-spawned worker session should be hidden+muted
160
+ * on the dashboard (the cached inline-mesh session entry carries no settings
161
+ * of its own). Falls back to DEFAULT_MESH_POLICY.spawnedSessionVisibility when
162
+ * the mesh policy is absent, matching the worker-launch stamp.
163
+ */
164
+ getCachedInlineMeshNodesWithVisibility(): Array<{
165
+ node: any;
166
+ spawnedSessionVisibility: RepoMeshSpawnedSessionVisibility;
167
+ }>;
154
168
  resolveRemoteMeshSessionOwnerDaemonId(sessionId: string, ownerNodeIdHint?: string): string | undefined;
155
169
  getCachedInlineMesh(meshId: string, inlineMesh?: unknown): any | undefined;
156
170
  private warmInlineMeshCache;
package/dist/index.d.ts CHANGED
@@ -103,7 +103,7 @@ export type { CommandRouterDeps, CommandRouterResult } from './commands/router.j
103
103
  export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper, resolveCurrentGlobalInstallSurface, buildPinnedGlobalInstallCommand, execNpmCommandSync, getNpmExecOptions, } from './commands/upgrade-helper.js';
104
104
  export type { DaemonUpgradeHelperPayload, CurrentGlobalInstallSurface, PinnedGlobalInstallCommand, NpmExecOptions, } from './commands/upgrade-helper.js';
105
105
  export { DaemonStatusReporter } from './status/reporter.js';
106
- export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected } from './status/builders.js';
106
+ export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected, isCoordinatorSpawnedHiddenWorker, resolveSurfaceHidden, resolveMuted, resolveSpawnedSessionHideMute } from './status/builders.js';
107
107
  export { buildStatusSnapshot, buildMachineInfo, buildAvailableProviders, getLastDisplayMessage } from './status/snapshot.js';
108
108
  export { getDaemonBuildInfo } from './build-info.js';
109
109
  export type { DaemonBuildInfo } from './build-info.js';
package/dist/index.js CHANGED
@@ -419,10 +419,10 @@ function readInjected(value) {
419
419
  }
420
420
  function getDaemonBuildInfo() {
421
421
  if (cached) return cached;
422
- const commit = readInjected(true ? "eb1fb961d4f22983420fad4c65b982d3ab42b5cf" : void 0) ?? "unknown";
423
- const commitShort = readInjected(true ? "eb1fb961" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
424
- const version = readInjected(true ? "0.9.82-rc.542" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
425
- const builtAt = readInjected(true ? "2026-07-16T06:30:14.678Z" : void 0);
422
+ const commit = readInjected(true ? "ae5a5c1199ad4270aa45c5f938ad931e3bdc7a7d" : void 0) ?? "unknown";
423
+ const commitShort = readInjected(true ? "ae5a5c11" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
424
+ const version = readInjected(true ? "0.9.82-rc.543" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
425
+ const builtAt = readInjected(true ? "2026-07-16T07:10:31.955Z" : void 0);
426
426
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
427
427
  return cached;
428
428
  }
@@ -19324,6 +19324,12 @@ function resolveMuted(settings) {
19324
19324
  if (settings.userMuted === false) return false;
19325
19325
  return isCoordinatorSpawnedHiddenWorker(settings);
19326
19326
  }
19327
+ function resolveSpawnedSessionHideMute(input) {
19328
+ return {
19329
+ surfaceHidden: resolveSurfaceHidden(input),
19330
+ muted: resolveMuted(input)
19331
+ };
19332
+ }
19327
19333
  function getActiveChatOptions(profile) {
19328
19334
  if (profile === "full") return {};
19329
19335
  return LIVE_STATUS_ACTIVE_CHAT_OPTIONS;
@@ -24767,7 +24773,8 @@ function modalSupersededBySettledPrompt(modalSpec, settledSpec, settled, input)
24767
24773
  const settledPromptLineRe = compile2(settledSpec.regex, (settledSpec.flags ?? "m").includes("m") ? settledSpec.flags ?? "m" : `${settledSpec.flags ?? ""}m`);
24768
24774
  const isSettledLine = (line) => {
24769
24775
  settledPromptLineRe.lastIndex = 0;
24770
- return settledPromptLineRe.test(line);
24776
+ if (settledPromptLineRe.test(line)) return true;
24777
+ return settled.footers.some((f) => f.test(line));
24771
24778
  };
24772
24779
  return below.some((line) => line.trim() !== "" && !isModalCueLine(line) && !isSettledLine(line));
24773
24780
  }
@@ -29287,6 +29294,7 @@ __export(index_exports, {
29287
29294
  isAlwaysOnTraceCategory: () => isAlwaysOnTraceCategory,
29288
29295
  isBuiltinChatMessageKind: () => isBuiltinChatMessageKind,
29289
29296
  isCdpConnected: () => isCdpConnected,
29297
+ isCoordinatorSpawnedHiddenWorker: () => isCoordinatorSpawnedHiddenWorker,
29290
29298
  isExtensionInstalled: () => isExtensionInstalled,
29291
29299
  isGitCommandName: () => isGitCommandName,
29292
29300
  isIdeRunning: () => isIdeRunning,
@@ -29413,11 +29421,14 @@ __export(index_exports, {
29413
29421
  resolveMeshNodeAttribution: () => resolveMeshNodeAttribution,
29414
29422
  resolveMeshRefineValidationPlan: () => resolveMeshRefineValidationPlan,
29415
29423
  resolveMeshSurfacedSessionPreview: () => resolveMeshSurfacedSessionPreview,
29424
+ resolveMuted: () => resolveMuted,
29416
29425
  resolveNodeSchedulingPriority: () => resolveNodeSchedulingPriority,
29417
29426
  resolveNotBefore: () => resolveNotBefore,
29418
29427
  resolveProviderMaxParallel: () => resolveProviderMaxParallel,
29419
29428
  resolveSessionHostAppName: () => resolveSessionHostAppName,
29420
29429
  resolveSessionHostAppNameResolution: () => resolveSessionHostAppNameResolution,
29430
+ resolveSpawnedSessionHideMute: () => resolveSpawnedSessionHideMute,
29431
+ resolveSurfaceHidden: () => resolveSurfaceHidden,
29421
29432
  resolveWorktreePath: () => resolveWorktreePath,
29422
29433
  runAsyncBatch: () => runAsyncBatch,
29423
29434
  runGit: () => runGit,
@@ -64072,6 +64083,28 @@ var DaemonCommandRouter = class {
64072
64083
  }
64073
64084
  return nodes;
64074
64085
  }
64086
+ /**
64087
+ * Same flattened node list as getCachedInlineMeshNodes(), but each node is
64088
+ * paired with the `spawnedSessionVisibility` from its OWNING mesh's policy.
64089
+ * The flat node list loses the mesh→node association, yet the cloud daemon's
64090
+ * synthetic mesh-session mirror needs the mesh-level visibility policy to
64091
+ * decide whether a coordinator-spawned worker session should be hidden+muted
64092
+ * on the dashboard (the cached inline-mesh session entry carries no settings
64093
+ * of its own). Falls back to DEFAULT_MESH_POLICY.spawnedSessionVisibility when
64094
+ * the mesh policy is absent, matching the worker-launch stamp.
64095
+ */
64096
+ getCachedInlineMeshNodesWithVisibility() {
64097
+ const out = [];
64098
+ for (const mesh of this.inlineMeshCache.values()) {
64099
+ const spawnedSessionVisibility = mesh?.policy?.spawnedSessionVisibility === "visible" ? "visible" : "hidden";
64100
+ if (Array.isArray(mesh?.nodes)) {
64101
+ for (const node of mesh.nodes) {
64102
+ out.push({ node, spawnedSessionVisibility });
64103
+ }
64104
+ }
64105
+ }
64106
+ return out;
64107
+ }
64075
64108
  // ─── Remote mesh-session owner resolution ───────────────────────────
64076
64109
  // Implementation lives in ./router-mesh-session-owner.ts (behavior-preserving
64077
64110
  // code move). resolveRemoteMeshSessionOwnerDaemonId stays public (the [Z]
@@ -73093,6 +73126,7 @@ var V1_CONTRACT_VERSION = "1.0.0";
73093
73126
  isAlwaysOnTraceCategory,
73094
73127
  isBuiltinChatMessageKind,
73095
73128
  isCdpConnected,
73129
+ isCoordinatorSpawnedHiddenWorker,
73096
73130
  isExtensionInstalled,
73097
73131
  isGitCommandName,
73098
73132
  isIdeRunning,
@@ -73219,11 +73253,14 @@ var V1_CONTRACT_VERSION = "1.0.0";
73219
73253
  resolveMeshNodeAttribution,
73220
73254
  resolveMeshRefineValidationPlan,
73221
73255
  resolveMeshSurfacedSessionPreview,
73256
+ resolveMuted,
73222
73257
  resolveNodeSchedulingPriority,
73223
73258
  resolveNotBefore,
73224
73259
  resolveProviderMaxParallel,
73225
73260
  resolveSessionHostAppName,
73226
73261
  resolveSessionHostAppNameResolution,
73262
+ resolveSpawnedSessionHideMute,
73263
+ resolveSurfaceHidden,
73227
73264
  resolveWorktreePath,
73228
73265
  runAsyncBatch,
73229
73266
  runGit,