@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.js CHANGED
@@ -417,10 +417,10 @@ function readInjected(value) {
417
417
  }
418
418
  function getDaemonBuildInfo() {
419
419
  if (cached) return cached;
420
- const commit = readInjected(true ? "19364663ff03f2285de336864a84ede592970f39" : void 0) ?? "unknown";
421
- const commitShort = readInjected(true ? "19364663" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
422
- const version = readInjected(true ? "0.9.82-rc.504" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
423
- const builtAt = readInjected(true ? "2026-07-12T11:06:20.137Z" : void 0);
420
+ const commit = readInjected(true ? "d7415812627054f6b93f8caf231387b4e6d0181b" : void 0) ?? "unknown";
421
+ const commitShort = readInjected(true ? "d7415812" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
422
+ const version = readInjected(true ? "0.9.82-rc.506" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
423
+ const builtAt = readInjected(true ? "2026-07-12T15:25:43.979Z" : void 0);
424
424
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
425
425
  return cached;
426
426
  }
@@ -2885,7 +2885,10 @@ function deriveSlotsFromLegacy(input) {
2885
2885
  };
2886
2886
  });
2887
2887
  }
2888
- var DAEMON_ID_PREFIXES, MAGI_RAW_ANSWER_CAP, MESH_TASK_DIFFICULTIES, DEFAULT_DIFFICULTY_BRAINS, CANONICAL_MESH_TOOL_NAMES, CANONICAL_MESH_TOOL_COUNT;
2888
+ function withStatusProbeMarker(args = {}) {
2889
+ return { ...args, [STATUS_PROBE_ARG_KEY]: true };
2890
+ }
2891
+ 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;
2889
2892
  var init_dist = __esm({
2890
2893
  "../mesh-shared/dist/index.mjs"() {
2891
2894
  "use strict";
@@ -2944,6 +2947,7 @@ var init_dist = __esm({
2944
2947
  "mesh_node_slots_list"
2945
2948
  ];
2946
2949
  CANONICAL_MESH_TOOL_COUNT = CANONICAL_MESH_TOOL_NAMES.length;
2950
+ STATUS_PROBE_ARG_KEY = "_statusProbe";
2947
2951
  }
2948
2952
  });
2949
2953
 
@@ -15055,7 +15059,11 @@ function finalizeMeshNodeStatus(args) {
15055
15059
  }
15056
15060
  async function probeRemoteMeshGitStatus(args) {
15057
15061
  if (!args.dispatchMeshCommand) return null;
15058
- const dispatch = args.dispatchMeshCommand(args.daemonId, "git_status", { workspace: args.workspace, refreshUpstream: true });
15062
+ const dispatch = args.dispatchMeshCommand(
15063
+ args.daemonId,
15064
+ "git_status",
15065
+ withStatusProbeMarker({ workspace: args.workspace, refreshUpstream: true })
15066
+ );
15059
15067
  const remoteResult = await awaitWithWarmupDeadline(dispatch, resolveWarmupDeadlineOpts({
15060
15068
  getConnection: args.getConnection,
15061
15069
  daemonId: args.daemonId,
@@ -16532,7 +16540,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
16532
16540
  markAutoLaunch(meshId, task.id, { status: "started", nodeId, providerType: resolved.providerType });
16533
16541
  let launchResult2;
16534
16542
  try {
16535
- launchResult2 = await components.dispatchMeshCommand(launchTarget.daemonId, "launch_cli", {
16543
+ launchResult2 = await components.dispatchMeshCommand(launchTarget.daemonId, "launch_cli", withStatusProbeMarker({
16536
16544
  cliType: resolved.providerType,
16537
16545
  dir: node.workspace,
16538
16546
  settings: remoteSettings,
@@ -16542,7 +16550,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
16542
16550
  ...effectiveModel ? { initialModel: effectiveModel } : {},
16543
16551
  // BRAIN-ROUTING thinking axis: forward the effective thinking level (initialThinkingLevel).
16544
16552
  ...effectiveThinkingLevel ? { initialThinkingLevel: effectiveThinkingLevel } : {}
16545
- });
16553
+ }));
16546
16554
  } catch (e) {
16547
16555
  markAutoLaunch(meshId, task.id, { status: "failed", reason: `remote_launch_dispatch_failed: ${e?.message || String(e)}`, nodeId, providerType: resolved.providerType });
16548
16556
  autoLaunchCooldownUntil.set(launchKey, Date.now() + AUTO_LAUNCH_COOLDOWN_MS);
@@ -19827,7 +19835,7 @@ function stopStaleMeshWorker(components, args) {
19827
19835
  }
19828
19836
  }
19829
19837
  if (daemonId && components.dispatchMeshCommand) {
19830
- 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}`));
19838
+ 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}`));
19831
19839
  } else {
19832
19840
  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.`);
19833
19841
  }
@@ -22070,7 +22078,7 @@ async function retryUnresolvedDelegateForwards(components) {
22070
22078
  let result;
22071
22079
  try {
22072
22080
  traceMeshEventStage("forward_send", entryTraceCtx, `retry \u2192 ${entry.coordinatorDaemonId}`);
22073
- result = await dispatchMeshCommand(entry.coordinatorDaemonId, "mesh_forward_event", pushPayload);
22081
+ result = await dispatchMeshCommand(entry.coordinatorDaemonId, "mesh_forward_event", withStatusProbeMarker(pushPayload));
22074
22082
  } catch (e) {
22075
22083
  LOG.warn("MeshReconcile", `Retry forward to coordinator ${entry.coordinatorDaemonId} failed: ${e?.message || e} \u2014 left queued`);
22076
22084
  traceMeshEventDrop("retry_forward_failed", entryTraceCtx, e?.message || String(e));