@adhdev/daemon-core 0.9.82-rc.170 → 0.9.82-rc.171

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
@@ -29246,17 +29246,21 @@ var CliProviderInstance = class {
29246
29246
  shortFinalSummary = extractFinalSummaryFromMessages(this.adapter?.getScriptParsedStatus()?.messages);
29247
29247
  } catch {
29248
29248
  }
29249
- this.pushEvent({
29250
- event: "agent:generating_completed",
29251
- chatTitle,
29252
- duration: 0,
29253
- timestamp: now,
29254
- finalSummary: shortFinalSummary,
29255
- completionDiagnostic: {
29256
- reason: "short_generating_suppressed",
29257
- shortDurationMs
29258
- }
29259
- });
29249
+ if (this.provider.requiresFinalAssistantBeforeIdle === true && !shortFinalSummary) {
29250
+ LOG.info("CLI", `[${this.type}] suppressed short completion without final assistant evidence`);
29251
+ } else {
29252
+ this.pushEvent({
29253
+ event: "agent:generating_completed",
29254
+ chatTitle,
29255
+ duration: 0,
29256
+ timestamp: now,
29257
+ finalSummary: shortFinalSummary,
29258
+ completionDiagnostic: {
29259
+ reason: "short_generating_suppressed",
29260
+ shortDurationMs
29261
+ }
29262
+ });
29263
+ }
29260
29264
  } else {
29261
29265
  this.completedDebouncePending = {
29262
29266
  chatTitle,
@@ -38527,6 +38531,15 @@ var DaemonCommandRouter = class {
38527
38531
  const events = drainPendingMeshCoordinatorEvents(meshId || void 0, coordinatorDaemonId);
38528
38532
  return { success: true, events };
38529
38533
  }
38534
+ case "interactive_prompt_response": {
38535
+ const sessionId = typeof args?.targetSessionId === "string" && args.targetSessionId.trim() ? args.targetSessionId.trim() : typeof args?.sessionId === "string" && args.sessionId.trim() ? args.sessionId.trim() : "";
38536
+ if (!sessionId) return { success: false, error: "targetSessionId required" };
38537
+ const response = normalizeInteractivePromptResponse(args?.response ?? args);
38538
+ const instance = this.deps.instanceManager.getInstance(sessionId);
38539
+ if (!instance) return { success: false, error: `No running instance for session ${sessionId}` };
38540
+ this.deps.instanceManager.sendEvent(sessionId, "interactive_prompt_response", response);
38541
+ return { success: true };
38542
+ }
38530
38543
  case "launch_cli":
38531
38544
  case "stop_cli":
38532
38545
  case "set_cli_view_mode":