@adhdev/daemon-core 0.9.82-rc.60 → 0.9.82-rc.61
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 +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +8 -2
package/dist/index.js
CHANGED
|
@@ -26904,6 +26904,7 @@ var DaemonCommandRouter = class {
|
|
|
26904
26904
|
workspace: readStringValue(args.node?.workspace),
|
|
26905
26905
|
startedAt: args.startedAt || (/* @__PURE__ */ new Date()).toISOString(),
|
|
26906
26906
|
...args.completedAt ? { completedAt: args.completedAt } : {},
|
|
26907
|
+
...args.retryOfJobId ? { retryOfJobId: args.retryOfJobId } : {},
|
|
26907
26908
|
eventDelivery: { pendingEvents: true, ledger: true },
|
|
26908
26909
|
evidence: {
|
|
26909
26910
|
pendingEventsCommand: "get_pending_mesh_events",
|
|
@@ -26930,6 +26931,7 @@ var DaemonCommandRouter = class {
|
|
|
26930
26931
|
status: handle.status,
|
|
26931
26932
|
startedAt: handle.startedAt,
|
|
26932
26933
|
completedAt: handle.completedAt,
|
|
26934
|
+
retryOfJobId: handle.retryOfJobId,
|
|
26933
26935
|
...result ? { result } : {}
|
|
26934
26936
|
},
|
|
26935
26937
|
queuedAt: Date.now()
|
|
@@ -26952,9 +26954,11 @@ var DaemonCommandRouter = class {
|
|
|
26952
26954
|
targetDaemonId: handle.targetDaemonId,
|
|
26953
26955
|
workspace: handle.workspace,
|
|
26954
26956
|
startedAt: handle.startedAt,
|
|
26955
|
-
completedAt: handle.completedAt
|
|
26957
|
+
completedAt: handle.completedAt,
|
|
26958
|
+
retryOfJobId: handle.retryOfJobId
|
|
26956
26959
|
},
|
|
26957
26960
|
async: true,
|
|
26961
|
+
retryOfJobId: handle.retryOfJobId,
|
|
26958
26962
|
...result ? {
|
|
26959
26963
|
success: result.success === true,
|
|
26960
26964
|
result,
|
|
@@ -27192,6 +27196,7 @@ var DaemonCommandRouter = class {
|
|
|
27192
27196
|
completedAt,
|
|
27193
27197
|
jobId: handle.jobId,
|
|
27194
27198
|
interactionId: handle.interactionId,
|
|
27199
|
+
retryOfJobId: handle.retryOfJobId,
|
|
27195
27200
|
node: { daemonId: handle.targetDaemonId, workspace: handle.workspace }
|
|
27196
27201
|
});
|
|
27197
27202
|
const terminal = { ...terminalHandle, result };
|
|
@@ -27206,13 +27211,12 @@ var DaemonCommandRouter = class {
|
|
|
27206
27211
|
const running = this.runningRefineJobs.get(key);
|
|
27207
27212
|
if (running) return { ...running, duplicate: true };
|
|
27208
27213
|
const terminal = this.terminalRefineJobs.get(key);
|
|
27209
|
-
if (terminal) return { ...terminal, duplicate: true };
|
|
27210
27214
|
const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
|
|
27211
27215
|
const mesh = meshRecord?.mesh;
|
|
27212
27216
|
const node = mesh?.nodes?.find((n) => n.id === nodeId || n.nodeId === nodeId);
|
|
27213
27217
|
if (!node) return { success: false, error: `Node '${nodeId}' not found in mesh` };
|
|
27214
27218
|
if (!node.isLocalWorktree || !node.workspace) return { success: false, error: `Refinery requires a local worktree node` };
|
|
27215
|
-
const handle = this.buildRefineJobHandle({ meshId, nodeId, node });
|
|
27219
|
+
const handle = this.buildRefineJobHandle({ meshId, nodeId, node, retryOfJobId: terminal?.jobId });
|
|
27216
27220
|
this.runningRefineJobs.set(key, handle);
|
|
27217
27221
|
await this.appendRefineJobLedger("task_dispatched", handle);
|
|
27218
27222
|
this.queueRefineJobEvent("refine:accepted", handle);
|