@adhdev/daemon-standalone 0.9.82-rc.192 → 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
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
|
|
@@ -43385,9 +43401,9 @@ ${cont}` : cont;
|
|
|
43385
43401
|
const recentInteractiveActivity = this.hasRecentInteractiveActivity(snap, now);
|
|
43386
43402
|
LOG2.debug(
|
|
43387
43403
|
"CLI",
|
|
43388
|
-
`[${this.provider.type}] settled diagnostics prompt=${JSON.stringify(this.currentTurnScope?.prompt || "").slice(0, 140)} status=${String(status || "")} parsedStatus=${String(parsedStatus || "")} parsedMsgCount=${parsedMessages.length} lastParsedAssistant=${JSON.stringify((lastParsedAssistant?.content || "").slice(0, 120)).slice(0, 160)} responseBuffer=${JSON.stringify((snap.responseBuffer || "").slice(0, 160)).slice(0, 220)}`
|
|
43404
|
+
`[${this.provider.type}] settled diagnostics prompt=${JSON.stringify(this.currentTurnScope?.prompt || "").slice(0, 140)} status=${String(status || "")} parsedStatus=${String(parsedStatus || "")} parsedMsgCount=${parsedMessages.length} lastParsedAssistant=${JSON.stringify((lastParsedAssistant?.content || "").slice(0, 120)).slice(0, 160)} responseBuffer=${JSON.stringify((snap.responseBuffer || "").slice(0, 160)).slice(0, 220)} recentActivity=${recentInteractiveActivity}`
|
|
43389
43405
|
);
|
|
43390
|
-
const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal &&
|
|
43406
|
+
const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal && !(parsedStatus === "idle" && !!lastParsedAssistant);
|
|
43391
43407
|
if (shouldHoldGenerating) {
|
|
43392
43408
|
this.applyHoldGenerating(ctx);
|
|
43393
43409
|
return;
|
|
@@ -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;
|
|
@@ -62824,6 +62843,9 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
62824
62843
|
if (externalNativeFinal && isCliGeneratingLikeStatus(visibleStatus)) {
|
|
62825
62844
|
visibleStatus = "idle";
|
|
62826
62845
|
}
|
|
62846
|
+
if (isCliGeneratingLikeStatus(visibleStatus) && this.lastStatus === "idle") {
|
|
62847
|
+
visibleStatus = "idle";
|
|
62848
|
+
}
|
|
62827
62849
|
const runtime = this.adapter.getRuntimeMetadata();
|
|
62828
62850
|
this.maybeAppendRuntimeRecoveryMessage(runtime);
|
|
62829
62851
|
let parsedMessages = Array.isArray(parsedStatus?.messages) ? parsedStatus.messages : [];
|
|
@@ -63392,6 +63414,9 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
63392
63414
|
LOG2.info("CLI", `[${this.type}] external transcript probe: msgCount=${probe.msgCount} lastRole=${probe.lastRole || "none"} lastKind=${probe.lastKind || "none"} contentLen=${probe.contentLen} sourceMtime=${probe.sourceMtimeMs ?? "unknown"} mtimeAge=${probe.mtimeAgeMs ?? "unknown"}ms`);
|
|
63393
63415
|
pending.loggedTranscriptProbe = true;
|
|
63394
63416
|
}
|
|
63417
|
+
if (this.type === "antigravity-cli") {
|
|
63418
|
+
return null;
|
|
63419
|
+
}
|
|
63395
63420
|
return { reason: "missing_final_assistant", terminal: true, allowTimeout: allowMissingAssistantTimeout };
|
|
63396
63421
|
}
|
|
63397
63422
|
if (this.provider.requiresFinalAssistantBeforeIdle === true) {
|
|
@@ -63720,6 +63745,11 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
63720
63745
|
}
|
|
63721
63746
|
});
|
|
63722
63747
|
this.generatingStartedAt = 0;
|
|
63748
|
+
if (this.completedDebounceTimer) {
|
|
63749
|
+
clearTimeout(this.completedDebounceTimer);
|
|
63750
|
+
this.completedDebounceTimer = null;
|
|
63751
|
+
}
|
|
63752
|
+
this.completedDebouncePending = null;
|
|
63723
63753
|
continue;
|
|
63724
63754
|
}
|
|
63725
63755
|
this.pushEvent({ event: me.type, agentKey: me.agentKey, message: me.message, elapsedSec: me.elapsedSec, timestamp: me.timestamp });
|