@paulp-o/opencode-auq 1.2.9 → 1.3.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAuIlD,eAAO,MAAM,sBAAsB,EAAE,MAcnC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAyHlD,eAAO,MAAM,sBAAsB,EAAE,MAcnC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -43,27 +43,13 @@ const AskUserQuestionsParametersSchema = z.object({
43
43
  "options (2-4 choices with labels and descriptions), and multiSelect (boolean). " +
44
44
  "Mark one choice as recommended if possible."),
45
45
  });
46
- const TOOL_DESCRIPTION = "Use this tool when you need to ask the user questions during execution. " +
47
- "This allows you to:\n" +
48
- "1. Gather user preferences or requirements\n" +
49
- "2. Clarify ambiguous instructions\n" +
50
- "3. Get decisions on implementation choices as you work\n" +
51
- "4. Offer choices to the user about what direction to take\n\n" +
46
+ const TOOL_DESCRIPTION = "Ask users structured questions during execution to gather preferences, clarify requirements, or make implementation decisions.\n\n" +
52
47
  "FEATURES:\n" +
53
- "- Ask 1-4 structured questions via an interactive terminal interface\n" +
54
- "- Each question includes 2-4 multiple-choice options with explanatory descriptions\n" +
55
- "- Users can always provide custom free-text input as an alternative to predefined options\n" +
56
- "- Single-select mode (default): User picks ONE option or provides custom text\n" +
57
- "- Multi-select mode (multiSelect: true): User can select MULTIPLE options\n\n" +
58
- "USAGE NOTES:\n" +
59
- "- Always provide a descriptive 'title' field (max 12 chars) for each question\n" +
60
- "- Use multiSelect: true when choices are not mutually exclusive\n" +
61
- "- Option labels should be concise (1-5 words)\n" +
62
- "- Questions should end with a question mark\n" +
63
- "- Don't include an 'Other' option - it's provided automatically\n" +
64
- "- Mark one choice as recommended if possible.\n\n" +
65
- "- If user seems not aware how to answer the question, inform them that they need to install the 'auq' cli tool.\n\n" +
66
- "Returns a formatted summary of all questions and answers.";
48
+ "- Non-blocking: doesn't halt AI workflow\n" +
49
+ "- 1-4 questions with 2-4 options each\n" +
50
+ "- Single/multi-select modes\n" +
51
+ "- Custom text input always available\n\n" +
52
+ "Returns formatted responses for continued reasoning.";
67
53
  const runAuqAsk = async (payload) => new Promise((resolve, reject) => {
68
54
  const child = spawn("auq", ["ask"], {
69
55
  stdio: ["pipe", "pipe", "pipe"],
@@ -79,7 +65,7 @@ const runAuqAsk = async (payload) => new Promise((resolve, reject) => {
79
65
  stderr += chunk;
80
66
  });
81
67
  child.on("error", (error) => {
82
- reject(new Error(`Failed to run \"auq ask\": ${error.message}. Is the auq CLI installed globally?`));
68
+ reject(new Error(`Failed to run "auq ask": ${error.message}. Is the auq CLI installed globally?`));
83
69
  });
84
70
  child.on("close", (code) => {
85
71
  if (code === 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@paulp-o/opencode-auq",
4
- "version": "1.2.9",
4
+ "version": "1.3.2",
5
5
  "description": "OpenCode plugin that forwards ask_user_questions to the auq CLI",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",