@rallycry/conveyor-agent 7.0.0 → 7.0.1

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.
@@ -280,14 +280,13 @@ var AgentConnection = class {
280
280
  (q) => `**${q.header}**
281
281
  ${q.question}${q.options.length ? "\n" + q.options.map((o) => `- ${o.label}: ${o.description}`).join("\n") : ""}`
282
282
  ).join("\n\n");
283
- const { answer } = await this.call("askUserQuestion", {
283
+ const requestId = crypto.randomUUID();
284
+ const { answers } = await this.call("askUserQuestion", {
284
285
  sessionId: this.config.sessionId,
285
- question: questionText
286
+ question: questionText,
287
+ requestId,
288
+ questions
286
289
  });
287
- const answers = {};
288
- for (const q of questions) {
289
- answers[q.header] = answer;
290
- }
291
290
  return answers;
292
291
  }
293
292
  // ── Typed service method wrappers ───────────────────────────────────
@@ -4766,7 +4765,7 @@ async function handleAskUserQuestion(host, input) {
4766
4765
  });
4767
4766
  const answers = await Promise.race([answerPromise, timeoutPromise]);
4768
4767
  host.connection.emitStatus("running");
4769
- if (!answers) {
4768
+ if (!answers || Object.keys(answers).length === 0) {
4770
4769
  return {
4771
4770
  behavior: "deny",
4772
4771
  message: "User did not respond to clarifying questions in time. Proceed with your best judgment."
@@ -7034,4 +7033,4 @@ export {
7034
7033
  removeWorktree,
7035
7034
  ProjectRunner
7036
7035
  };
7037
- //# sourceMappingURL=chunk-X7YUWDZ2.js.map
7036
+ //# sourceMappingURL=chunk-HAU4E7IA.js.map