@adhdev/daemon-standalone 0.9.82-rc.193 → 0.9.82-rc.194
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 +25 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40182,6 +40182,22 @@ Next step: ${nextStep}`;
|
|
|
40182
40182
|
return { success: true, forwarded: 0, suppressed: true, duplicateCompletion: true };
|
|
40183
40183
|
}
|
|
40184
40184
|
}
|
|
40185
|
+
if (args.event === "agent:stopped" && eventSessionId) {
|
|
40186
|
+
const duplicateStopped = isDuplicateMeshCompletionEvent({
|
|
40187
|
+
meshId: args.meshId,
|
|
40188
|
+
event: args.event,
|
|
40189
|
+
sessionId: eventSessionId,
|
|
40190
|
+
providerType: readNonEmptyString2(args.metadataEvent.providerType) || void 0,
|
|
40191
|
+
providerSessionId: readNonEmptyString2(args.metadataEvent.providerSessionId) || void 0,
|
|
40192
|
+
timestamp: eventTimestamp,
|
|
40193
|
+
finalSummary: readNonEmptyString2(args.metadataEvent.finalSummary) || void 0,
|
|
40194
|
+
coordinatorDaemonId: workerCoordinatorDaemonId || void 0
|
|
40195
|
+
});
|
|
40196
|
+
if (duplicateStopped) {
|
|
40197
|
+
LOG2.info("MeshEvents", `Suppressed duplicate stopped event for mesh ${args.meshId} session ${eventSessionId}`);
|
|
40198
|
+
return { success: true, forwarded: 0, suppressed: true, duplicateStopped: true };
|
|
40199
|
+
}
|
|
40200
|
+
}
|
|
40185
40201
|
function markSessionTerminal(sessionId, outcome, occurredAtMs) {
|
|
40186
40202
|
const task = updateSessionTaskStatus(args.meshId, sessionId, outcome, {
|
|
40187
40203
|
occurredAt: occurredAtMs != null ? new Date(occurredAtMs).toISOString() : void 0
|
|
@@ -46555,7 +46571,10 @@ ${lastSnapshot}`;
|
|
|
46555
46571
|
if (answer.selectedLabels.length !== 1) throw new Error(`Expected one selected label for ${question.questionId}`);
|
|
46556
46572
|
const selectedIndex = question.options.findIndex((option) => option.label === answer.selectedLabels[0]);
|
|
46557
46573
|
if (selectedIndex < 0) throw new Error(`Unknown option for ${question.questionId}: ${answer.selectedLabels[0]}`);
|
|
46558
|
-
|
|
46574
|
+
for (let i = 0; i < selectedIndex; i += 1) {
|
|
46575
|
+
steps.push("\x1B[B");
|
|
46576
|
+
}
|
|
46577
|
+
steps.push("\r");
|
|
46559
46578
|
}
|
|
46560
46579
|
steps.push("\r");
|
|
46561
46580
|
return steps;
|
|
@@ -63726,6 +63745,11 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
63726
63745
|
}
|
|
63727
63746
|
});
|
|
63728
63747
|
this.generatingStartedAt = 0;
|
|
63748
|
+
if (this.completedDebounceTimer) {
|
|
63749
|
+
clearTimeout(this.completedDebounceTimer);
|
|
63750
|
+
this.completedDebounceTimer = null;
|
|
63751
|
+
}
|
|
63752
|
+
this.completedDebouncePending = null;
|
|
63729
63753
|
continue;
|
|
63730
63754
|
}
|
|
63731
63755
|
this.pushEvent({ event: me.type, agentKey: me.agentKey, message: me.message, elapsedSec: me.elapsedSec, timestamp: me.timestamp });
|