@adhdev/daemon-core 0.9.82-rc.504 → 0.9.82-rc.506

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
@@ -412,10 +412,10 @@ function readInjected(value) {
412
412
  }
413
413
  function getDaemonBuildInfo() {
414
414
  if (cached) return cached;
415
- const commit = readInjected(true ? "19364663ff03f2285de336864a84ede592970f39" : void 0) ?? "unknown";
416
- const commitShort = readInjected(true ? "19364663" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
417
- const version = readInjected(true ? "0.9.82-rc.504" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
418
- const builtAt = readInjected(true ? "2026-07-12T11:06:20.137Z" : void 0);
415
+ const commit = readInjected(true ? "d7415812627054f6b93f8caf231387b4e6d0181b" : void 0) ?? "unknown";
416
+ const commitShort = readInjected(true ? "d7415812" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
417
+ const version = readInjected(true ? "0.9.82-rc.506" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
418
+ const builtAt = readInjected(true ? "2026-07-12T15:25:43.979Z" : void 0);
419
419
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
420
420
  return cached;
421
421
  }
@@ -2879,7 +2879,10 @@ function deriveSlotsFromLegacy(input) {
2879
2879
  };
2880
2880
  });
2881
2881
  }
2882
- var DAEMON_ID_PREFIXES, MAGI_RAW_ANSWER_CAP, MESH_TASK_DIFFICULTIES, DEFAULT_DIFFICULTY_BRAINS, CANONICAL_MESH_TOOL_NAMES, CANONICAL_MESH_TOOL_COUNT;
2882
+ function withStatusProbeMarker(args = {}) {
2883
+ return { ...args, [STATUS_PROBE_ARG_KEY]: true };
2884
+ }
2885
+ var DAEMON_ID_PREFIXES, MAGI_RAW_ANSWER_CAP, MESH_TASK_DIFFICULTIES, DEFAULT_DIFFICULTY_BRAINS, CANONICAL_MESH_TOOL_NAMES, CANONICAL_MESH_TOOL_COUNT, STATUS_PROBE_ARG_KEY;
2883
2886
  var init_dist = __esm({
2884
2887
  "../mesh-shared/dist/index.mjs"() {
2885
2888
  "use strict";
@@ -2938,6 +2941,7 @@ var init_dist = __esm({
2938
2941
  "mesh_node_slots_list"
2939
2942
  ];
2940
2943
  CANONICAL_MESH_TOOL_COUNT = CANONICAL_MESH_TOOL_NAMES.length;
2944
+ STATUS_PROBE_ARG_KEY = "_statusProbe";
2941
2945
  }
2942
2946
  });
2943
2947
 
@@ -15058,7 +15062,11 @@ function finalizeMeshNodeStatus(args) {
15058
15062
  }
15059
15063
  async function probeRemoteMeshGitStatus(args) {
15060
15064
  if (!args.dispatchMeshCommand) return null;
15061
- const dispatch = args.dispatchMeshCommand(args.daemonId, "git_status", { workspace: args.workspace, refreshUpstream: true });
15065
+ const dispatch = args.dispatchMeshCommand(
15066
+ args.daemonId,
15067
+ "git_status",
15068
+ withStatusProbeMarker({ workspace: args.workspace, refreshUpstream: true })
15069
+ );
15062
15070
  const remoteResult = await awaitWithWarmupDeadline(dispatch, resolveWarmupDeadlineOpts({
15063
15071
  getConnection: args.getConnection,
15064
15072
  daemonId: args.daemonId,
@@ -16535,7 +16543,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
16535
16543
  markAutoLaunch(meshId, task.id, { status: "started", nodeId, providerType: resolved.providerType });
16536
16544
  let launchResult2;
16537
16545
  try {
16538
- launchResult2 = await components.dispatchMeshCommand(launchTarget.daemonId, "launch_cli", {
16546
+ launchResult2 = await components.dispatchMeshCommand(launchTarget.daemonId, "launch_cli", withStatusProbeMarker({
16539
16547
  cliType: resolved.providerType,
16540
16548
  dir: node.workspace,
16541
16549
  settings: remoteSettings,
@@ -16545,7 +16553,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
16545
16553
  ...effectiveModel ? { initialModel: effectiveModel } : {},
16546
16554
  // BRAIN-ROUTING thinking axis: forward the effective thinking level (initialThinkingLevel).
16547
16555
  ...effectiveThinkingLevel ? { initialThinkingLevel: effectiveThinkingLevel } : {}
16548
- });
16556
+ }));
16549
16557
  } catch (e) {
16550
16558
  markAutoLaunch(meshId, task.id, { status: "failed", reason: `remote_launch_dispatch_failed: ${e?.message || String(e)}`, nodeId, providerType: resolved.providerType });
16551
16559
  autoLaunchCooldownUntil.set(launchKey, Date.now() + AUTO_LAUNCH_COOLDOWN_MS);
@@ -19829,7 +19837,7 @@ function stopStaleMeshWorker(components, args) {
19829
19837
  }
19830
19838
  }
19831
19839
  if (daemonId && components.dispatchMeshCommand) {
19832
- Promise.resolve(components.dispatchMeshCommand(daemonId, "stop_cli", stopArgs)).catch((e) => LOG.warn("MeshQueue", `Remote stop of stale worker ${sessionId} on daemon ${daemonId} failed: ${e?.message || e}`));
19840
+ Promise.resolve(components.dispatchMeshCommand(daemonId, "stop_cli", withStatusProbeMarker(stopArgs))).catch((e) => LOG.warn("MeshQueue", `Remote stop of stale worker ${sessionId} on daemon ${daemonId} failed: ${e?.message || e}`));
19833
19841
  } else {
19834
19842
  LOG.warn("MeshQueue", `Cannot stop stale worker ${sessionId}: no local adapter and no resolvable remote daemon id (node ${args.nodeId ?? "?"}). Ack already rejected \u2014 task will re-strand-and-fail if the worker completes.`);
19835
19843
  }
@@ -22072,7 +22080,7 @@ async function retryUnresolvedDelegateForwards(components) {
22072
22080
  let result;
22073
22081
  try {
22074
22082
  traceMeshEventStage("forward_send", entryTraceCtx, `retry \u2192 ${entry.coordinatorDaemonId}`);
22075
- result = await dispatchMeshCommand(entry.coordinatorDaemonId, "mesh_forward_event", pushPayload);
22083
+ result = await dispatchMeshCommand(entry.coordinatorDaemonId, "mesh_forward_event", withStatusProbeMarker(pushPayload));
22076
22084
  } catch (e) {
22077
22085
  LOG.warn("MeshReconcile", `Retry forward to coordinator ${entry.coordinatorDaemonId} failed: ${e?.message || e} \u2014 left queued`);
22078
22086
  traceMeshEventDrop("retry_forward_failed", entryTraceCtx, e?.message || String(e));