@adhdev/daemon-standalone 0.9.82-rc.341 → 0.9.82-rc.343

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-standalone",
3
- "version": "0.9.82-rc.341",
3
+ "version": "0.9.82-rc.343",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -48,7 +48,23 @@ var IPC_COMMAND_TIMEOUTS_MS = {
48
48
  git_status: 45e3,
49
49
  git_diff_summary: 45e3,
50
50
  fast_forward_mesh_node: 12e4,
51
- mesh_status: 12e4
51
+ mesh_status: 12e4,
52
+ // Heavy repo-mutating worktree ops (relay budgets: clone 90s, remove 60s). A local
53
+ // clone synchronously creates a worktree (~30s) plus a bounded setup-wait (~14s);
54
+ // 120s leaves headroom and matches the relay-wrapped remote path.
55
+ clone_mesh_node: 12e4,
56
+ remove_mesh_node: 6e4,
57
+ // A5: plan_mesh_refine_node is the SYNCHRONOUS refine dry-run — it runs several git
58
+ // probes (status/merge-tree/submodule) inline before replying, which can approach the
59
+ // 15s default on a slow (Windows) host. 45s defensively, matching git_status/diff.
60
+ plan_mesh_refine_node: 45e3,
61
+ // A2: refine_mesh_node / batch_refine_mesh_nodes are async-job-ack (the responder
62
+ // returns { async:true, status:'accepted' } immediately and works in the background),
63
+ // so 15s already suffices. 30s is a defensive floor guarding a future sync-dry-run
64
+ // regression; it is intentionally BELOW the relay 90s budget because the synchronous
65
+ // ack reply is sub-second and never bounded by the relay deadline.
66
+ refine_mesh_node: 3e4,
67
+ batch_refine_mesh_nodes: 3e4
52
68
  };
53
69
  var WS_CONNECTING = 0;
54
70
  var WS_OPEN = 1;
@@ -1078,7 +1094,7 @@ function chooseDispatchableSession(sessions, providerType, meshId, nodeId, coord
1078
1094
  const safety = classifyRemoteDelegateRelaySafety(session, meshId, nodeId, coordinatorDaemonId);
1079
1095
  return safety === "safe" || safety === "self_heal";
1080
1096
  });
1081
- return meshSessions.find((session) => isIdleSessionRecord(session) && matchingProvider(session)) || meshSessions.find(matchingProvider) || void 0;
1097
+ return meshSessions.find((session) => isIdleSessionRecord(session) && matchingProvider(session)) || void 0;
1082
1098
  }
1083
1099
  function buildRelayUnsafeRemoteSessionFailure(ctx, node, sessionId, providerType) {
1084
1100
  return {