@adhdev/daemon-standalone 1.0.28-rc.31 → 1.0.28-rc.32

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/public/index.html CHANGED
@@ -7,9 +7,9 @@
7
7
  <meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
8
8
  <link rel="icon" href="/otter-logo.png" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
- <script type="module" crossorigin src="/assets/index-CCwmPawg.js"></script>
11
- <link rel="modulepreload" crossorigin href="/assets/vendor-cL4V2vaO.js">
12
- <link rel="stylesheet" crossorigin href="/assets/index-8TNNoifN.css">
10
+ <script type="module" crossorigin src="/assets/index-NDDE8ezX.js"></script>
11
+ <link rel="modulepreload" crossorigin href="/assets/vendor-DyCWA2YZ.js">
12
+ <link rel="stylesheet" crossorigin href="/assets/index-Jy4W-yh-.css">
13
13
  </head>
14
14
  <body>
15
15
  <!-- Apply theme immediately to prevent FOIT (Flash of Incorrect Theme) -->
@@ -3307,6 +3307,12 @@ function buildMeshForwardPayloadFromPendingEvent(event) {
3307
3307
  interactionId: readString(metadataEvent.interactionId),
3308
3308
  status: readString(metadataEvent.status),
3309
3309
  targetDaemonId: readString(metadataEvent.targetDaemonId),
3310
+ // RC32: carry the coordinator DAEMON anchor across the remote-pull relay (the
3311
+ // pending event stores it top-level, not inside metadataEvent). The receive-side
3312
+ // whitelist (daemon-core buildRelayMetadataEvent) reads it back so a sessionless
3313
+ // refine terminal event re-queues targeted at THIS coordinator instead of
3314
+ // self-fallback-stamping the relaying worker daemon.
3315
+ targetCoordinatorDaemonId: readString(event?.targetCoordinatorDaemonId),
3310
3316
  startedAt: readString(metadataEvent.startedAt),
3311
3317
  completedAt: readString(metadataEvent.completedAt),
3312
3318
  retryOfJobId: readString(metadataEvent.retryOfJobId),
@@ -7881,11 +7887,13 @@ async function meshRefinePlan(ctx, args) {
7881
7887
  }
7882
7888
  async function meshRefineNode(ctx, args) {
7883
7889
  const node = await findNodeWithRefresh(ctx, args.node_id);
7890
+ const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
7884
7891
  const result = await commandForNode(ctx, node, "refine_mesh_node", {
7885
7892
  meshId: ctx.mesh.id,
7886
7893
  nodeId: args.node_id,
7887
7894
  ...args.execute !== void 0 ? { execute: args.execute } : {},
7888
7895
  ...args.dry_run !== void 0 ? { dryRun: args.dry_run } : {},
7896
+ ...coordinatorDaemonId ? { coordinatorDaemonId } : {},
7889
7897
  inlineMesh: ctx.mesh
7890
7898
  });
7891
7899
  if (result?.success && result.async !== true && result.removeResult?.removed !== false) {
@@ -7900,11 +7908,13 @@ async function meshRefineNode(ctx, args) {
7900
7908
  async function meshRefineBatch(ctx, args = {}) {
7901
7909
  await refreshMeshFromDaemon(ctx);
7902
7910
  const nodeIds = Array.isArray(args.node_ids) ? args.node_ids.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : void 0;
7911
+ const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
7903
7912
  const result = await ctx.transport.command("batch_refine_mesh_nodes", {
7904
7913
  meshId: ctx.mesh.id,
7905
7914
  ...nodeIds ? { nodeIds } : {},
7906
7915
  ...args.execute !== void 0 ? { execute: args.execute } : {},
7907
7916
  ...args.dry_run !== void 0 ? { dryRun: args.dry_run } : {},
7917
+ ...coordinatorDaemonId ? { coordinatorDaemonId } : {},
7908
7918
  inlineMesh: ctx.mesh
7909
7919
  });
7910
7920
  const payload = unwrapCommandPayload(result) ?? result;