@adhdev/daemon-standalone 0.9.82-rc.270 → 0.9.82-rc.271

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
@@ -29983,10 +29983,10 @@ var require_dist3 = __commonJS({
29983
29983
  }
29984
29984
  function getDaemonBuildInfo() {
29985
29985
  if (cached2) return cached2;
29986
- const commit = readInjected(true ? "7004ebf6e270fbcb990f3fd66542fd77db0eeea0" : void 0) ?? "unknown";
29987
- const commitShort = readInjected(true ? "7004ebf6" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
- const version2 = readInjected(true ? "0.9.82-rc.270" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
- const builtAt = readInjected(true ? "2026-06-14T23:52:34.807Z" : void 0);
29986
+ const commit = readInjected(true ? "7795ee8ff6e1686e68fc7900ee0c6afd57bbd614" : void 0) ?? "unknown";
29987
+ const commitShort = readInjected(true ? "7795ee8f" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
+ const version2 = readInjected(true ? "0.9.82-rc.271" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
+ const builtAt = readInjected(true ? "2026-06-15T01:59:54.583Z" : void 0);
29990
29990
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
29991
29991
  return cached2;
29992
29992
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-standalone",
3
- "version": "0.9.82-rc.270",
3
+ "version": "0.9.82-rc.271",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1529,6 +1529,9 @@ function resolveCoordinatorNode(ctx) {
1529
1529
  }
1530
1530
  return void 0;
1531
1531
  }
1532
+ function resolveCoordinatorDaemonId(ctx) {
1533
+ return readString(resolveCoordinatorNode(ctx)?.daemonId) || readString(ctx.localDaemonId) || readString(ctx.localMachineId);
1534
+ }
1532
1535
  function readNodeMachineId(node) {
1533
1536
  return readString(node.machineId) || readString(node.machine_id) || readString(node.machine?.id) || readString(node.machine?.machineId) || readString(node.lastProbe?.machineId) || readString(node.last_probe?.machine_id) || readString(node.lastProbe?.machine?.id) || readString(node.lastProbe?.machine?.machineId) || readString(node.last_probe?.machine?.id) || readString(node.last_probe?.machine?.machine_id);
1534
1537
  }
@@ -3546,7 +3549,7 @@ async function meshSendTask(ctx, args) {
3546
3549
  if (ctx.transport instanceof IpcTransport && node.daemonId && !isLocalNode) {
3547
3550
  const cached = getSessionMetadata(meshSessionCacheKey(args.node_id, args.session_id || ""));
3548
3551
  const taskId = (0, import_node_crypto.randomUUID)();
3549
- const coordinatorDaemonId = resolveCoordinatorNode(ctx)?.daemonId || ctx.localDaemonId;
3552
+ const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
3550
3553
  const result2 = await ipcDispatchToRemoteAgent(ctx, node, {
3551
3554
  session_id: args.session_id,
3552
3555
  message: args.message,
@@ -3716,7 +3719,7 @@ async function meshSendTask(ctx, args) {
3716
3719
  const sessionWasIdle = explicitTargetSession ? isIdleSessionRecord(explicitTargetSession) : false;
3717
3720
  const taskId = (0, import_node_crypto.randomUUID)();
3718
3721
  const dispatchedAt = (/* @__PURE__ */ new Date()).toISOString();
3719
- const coordinatorDaemonId = resolveCoordinatorNode(ctx)?.daemonId || ctx.localDaemonId;
3722
+ const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
3720
3723
  const dispatchResult = await commandForNode(ctx, node, "agent_command", {
3721
3724
  targetSessionId: args.session_id,
3722
3725
  agentType: resolvedProviderType,
@@ -3927,7 +3930,7 @@ async function meshLaunchSession(ctx, args) {
3927
3930
  }
3928
3931
  }
3929
3932
  const coordinatorNode = resolveCoordinatorNode(ctx);
3930
- const coordinatorDaemonId = coordinatorNode?.daemonId || ctx.localDaemonId;
3933
+ const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
3931
3934
  const spawnedSessionVisibility = readSpawnedSessionVisibility(ctx.mesh.policy);
3932
3935
  const delegatedWorkerAutoApprove = (0, import_daemon_core.resolveDelegatedWorkerAutoApprove)(ctx.mesh.policy, node.policy);
3933
3936
  const isLocalNode = isLocalControlPlaneNode(ctx, node);