paseo-acp-agy 1.2.14 → 1.2.15

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.
@@ -187,24 +187,36 @@ export function extractPlanEntries(text) {
187
187
  }
188
188
  /**
189
189
  * Formats Antigravity's ask_question structure into a clear, responsive markdown card.
190
+ * Supports multiple questions in a single call and single/multi-choice selection modes.
190
191
  */
191
192
  function formatQuestionCard(questions) {
192
193
  if (!questions || questions.length === 0)
193
194
  return "";
195
+ const validQuestions = questions.filter((q) => q && typeof q === "object");
196
+ const total = validQuestions.length;
194
197
  const cards = [];
195
- for (const q of questions) {
196
- if (!q || typeof q !== "object")
197
- continue;
198
+ for (let i = 0; i < total; i++) {
199
+ const q = validQuestions[i];
198
200
  const prompt = q.question || "Escolha uma opção:";
199
201
  const options = Array.isArray(q.options) ? q.options : [];
200
- let card = `### ❓ Pergunta do Assistente\n> **${prompt}**\n\n`;
202
+ const isMulti = Boolean(q.is_multi_select);
203
+ const titlePrefix = total > 1
204
+ ? `### ❓ Pergunta ${i + 1} de ${total}`
205
+ : `### ❓ Pergunta do Assistente`;
206
+ let card = `${titlePrefix}\n> **${prompt}**\n\n`;
201
207
  if (options.length > 0) {
202
- card += `*Responda indicando o número da opção desejada:*\n`;
208
+ if (isMulti) {
209
+ card += `*☑️ Múltipla escolha (você pode selecionar mais de uma opção, ex: 1, 3):*\n`;
210
+ }
211
+ else {
212
+ card += `*🔘 Escolha única (selecione uma das opções abaixo):*\n`;
213
+ }
203
214
  card += options
204
215
  .map((opt, idx) => {
205
216
  const isRec = opt.includes("(Recommended)") || opt.includes("(Recomendado)");
206
217
  const clean = opt.replace(/^\(Recommended\)\s*/i, "").replace(/^\(Recomendado\)\s*/i, "");
207
- return `- **[${idx + 1}]** ${clean}${isRec ? " *(Recomendado)*" : ""}`;
218
+ const mark = isMulti ? "- [ ]" : "-";
219
+ return `${mark} **[${idx + 1}]** ${clean}${isRec ? " *(Recomendado)*" : ""}`;
208
220
  })
209
221
  .join("\n");
210
222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paseo-acp-agy",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "ACP (Agent Client Protocol) provider for Google Antigravity in Paseo and Zed",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",