dsh-better-ask-user 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ask-tool.js +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-ask-user",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Independent ask_user_question plugin: configurable wait, input-extended countdown, markdown/mobile card, native or default timeout behavior, and PTC deadline exemption.",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
package/src/ask-tool.js CHANGED
@@ -19,14 +19,12 @@ function questionRequest(questions, exec) {
19
19
  question: question.question,
20
20
  ...(question.header !== undefined ? { header: question.header } : {}),
21
21
  ...(question.options !== undefined ? {
22
- options: question.options.map(option => ({
23
- label: option.label,
24
- ...(option.description !== undefined ? { description: option.description } : {}),
25
- })),
22
+ options: question.options.map(option => ({ ...option })),
26
23
  } : {}),
27
24
  ...(question.multi_select !== undefined ? { multiSelect: question.multi_select } : {}),
28
25
  ...(question.detail !== undefined ? { detail: question.detail } : {}),
29
26
  })),
27
+ ...(exec.agent !== undefined ? { agent: exec.agent } : {}),
30
28
  signal: exec.signal,
31
29
  }
32
30
  }
@@ -122,6 +120,7 @@ export function createBetterAskTool(ctx, base, readConfig) {
122
120
  const waitMs = seconds * 1000
123
121
  const result = await userQuestions.askTimed({
124
122
  ...questions,
123
+ agent: exec.agent,
125
124
  better: { waitMs, timeoutMode: mode, defaultAnswer },
126
125
  }, exec.callId, waitMs)
127
126
  if ('pending' in result) {