@adhdev/daemon-core 0.9.82-rc.170 → 0.9.82-rc.172
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 +24 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +15 -0
- package/src/providers/cli-provider-instance.ts +15 -11
package/dist/index.mjs
CHANGED
|
@@ -28938,17 +28938,21 @@ var CliProviderInstance = class {
|
|
|
28938
28938
|
shortFinalSummary = extractFinalSummaryFromMessages(this.adapter?.getScriptParsedStatus()?.messages);
|
|
28939
28939
|
} catch {
|
|
28940
28940
|
}
|
|
28941
|
-
this.
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28941
|
+
if (this.provider.requiresFinalAssistantBeforeIdle === true && !shortFinalSummary) {
|
|
28942
|
+
LOG.info("CLI", `[${this.type}] suppressed short completion without final assistant evidence`);
|
|
28943
|
+
} else {
|
|
28944
|
+
this.pushEvent({
|
|
28945
|
+
event: "agent:generating_completed",
|
|
28946
|
+
chatTitle,
|
|
28947
|
+
duration: 0,
|
|
28948
|
+
timestamp: now,
|
|
28949
|
+
finalSummary: shortFinalSummary,
|
|
28950
|
+
completionDiagnostic: {
|
|
28951
|
+
reason: "short_generating_suppressed",
|
|
28952
|
+
shortDurationMs
|
|
28953
|
+
}
|
|
28954
|
+
});
|
|
28955
|
+
}
|
|
28952
28956
|
} else {
|
|
28953
28957
|
this.completedDebouncePending = {
|
|
28954
28958
|
chatTitle,
|
|
@@ -38224,6 +38228,15 @@ var DaemonCommandRouter = class {
|
|
|
38224
38228
|
const events = drainPendingMeshCoordinatorEvents(meshId || void 0, coordinatorDaemonId);
|
|
38225
38229
|
return { success: true, events };
|
|
38226
38230
|
}
|
|
38231
|
+
case "interactive_prompt_response": {
|
|
38232
|
+
const sessionId = typeof args?.targetSessionId === "string" && args.targetSessionId.trim() ? args.targetSessionId.trim() : typeof args?.sessionId === "string" && args.sessionId.trim() ? args.sessionId.trim() : "";
|
|
38233
|
+
if (!sessionId) return { success: false, error: "targetSessionId required" };
|
|
38234
|
+
const response = normalizeInteractivePromptResponse(args?.response ?? args);
|
|
38235
|
+
const instance = this.deps.instanceManager.getInstance(sessionId);
|
|
38236
|
+
if (!instance) return { success: false, error: `No running instance for session ${sessionId}` };
|
|
38237
|
+
this.deps.instanceManager.sendEvent(sessionId, "interactive_prompt_response", response);
|
|
38238
|
+
return { success: true };
|
|
38239
|
+
}
|
|
38227
38240
|
case "launch_cli":
|
|
38228
38241
|
case "stop_cli":
|
|
38229
38242
|
case "set_cli_view_mode":
|