@paulp-o/opencode-auq 2.6.4 → 2.7.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.
@@ -4,13 +4,17 @@
4
4
  * This file is generated from src/shared/schemas.ts by scripts/sync-plugin-schemas.mjs
5
5
  * Run "npm run sync-plugin-schemas" to regenerate.
6
6
  *
7
- * Generated at: 2026-03-10T10:12:24.764Z
7
+ * Generated at: 2026-03-11T08:43:28.885Z
8
8
  */
9
9
  /**
10
10
  * Comprehensive tool description - single source of truth.
11
11
  * Used by MCP server and should be synced to opencode-plugin.
12
12
  */
13
13
  declare const TOOL_DESCRIPTION: string;
14
+ export type GetAnsweredQuestionsArgs = {
15
+ session_id: string;
16
+ blocking: boolean;
17
+ };
14
18
  export declare const AskUserQuestionsArgs: any;
15
19
  export { TOOL_DESCRIPTION };
16
20
  //# sourceMappingURL=generated-schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generated-schemas.d.ts","sourceRoot":"","sources":["../src/generated-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4IH;;;GAGG;AACH,QAAA,MAAM,gBAAgB,QAWoD,CAAC;AAI3E,eAAO,MAAM,oBAAoB,EAAE,GAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"generated-schemas.d.ts","sourceRoot":"","sources":["../src/generated-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA+IH;;;GAGG;AACH,QAAA,MAAM,gBAAgB,QAWoD,CAAC;AAc3E,MAAM,MAAM,wBAAwB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AASjF,eAAO,MAAM,oBAAoB,EAAE,GAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * This file is generated from src/shared/schemas.ts by scripts/sync-plugin-schemas.mjs
5
5
  * Run "npm run sync-plugin-schemas" to regenerate.
6
6
  *
7
- * Generated at: 2026-03-10T10:12:24.764Z
7
+ * Generated at: 2026-03-11T08:43:28.885Z
8
8
  */
9
9
  import { tool } from "@opencode-ai/plugin/tool";
10
10
  const z = tool.schema;
@@ -94,6 +94,7 @@ function createAskUserQuestionsParametersSchema(maxQuestions = DEFAULT_LIMITS.ma
94
94
  questions: questionsSchema.describe(`Questions to ask the user (1-${maxQuestions} questions). ` +
95
95
  `Each question must include: prompt (full question text), title (short label, max 12 chars), ` +
96
96
  `options (2-${maxOptions} choices with labels and descriptions), and multiSelect (boolean).`),
97
+ nonBlocking: z.boolean().default(false).describe("Set to true to submit questions without waiting for answers. The tool will return immediately with a session ID that can be used with get_answered_questions to fetch answers later. Default: false (blocking mode)."),
97
98
  });
98
99
  }
99
100
  // Default schemas for backward compatibility (using DEFAULT_LIMITS)
@@ -115,6 +116,13 @@ const TOOL_DESCRIPTION = "Use this tool when you need to ask the user questions
115
116
  'Recommend an option unless absolutely necessary, make it the first option in the list and add "(Recommended)" at the end of the label\n' +
116
117
  'For multiSelect questions, you MAY mark multiple options as "(Recommended)" if several choices are advisable\n' +
117
118
  'Do NOT use this tool to ask "Is my plan ready?" or "Should I proceed?"';
119
+ const GetAnsweredQuestionsArgsSchema = z.object({
120
+ session_id: z.string().describe("The session ID returned from a non-blocking ask_user_questions call. Accepts both full UUID and short (first 8 chars) ID."),
121
+ blocking: z.boolean().default(false).describe("If true, wait until the user answers before returning. If false (default), return immediately with current status."),
122
+ });
123
+ const GET_ANSWERED_QUESTIONS_DESCRIPTION = "Fetch answers for a previously submitted non-blocking question set. " +
124
+ "Use this after calling ask_user_questions with nonBlocking: true. " +
125
+ "Returns the user's answers if available, or current session status if still pending.";
118
126
  // Only export what the plugin needs
119
127
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
120
128
  export const AskUserQuestionsArgs = AskUserQuestionsParametersSchema.shape;
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": "2.6.4",
4
+ "version": "2.7.1",
5
5
  "description": "OpenCode plugin that forwards ask_user_questions to the auq CLI",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",