You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/pi-ask-question/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,4 +30,4 @@ pi install npm:@henryqw/pi-ask-question
30
30
}
31
31
```
32
32
33
-
Supply one to three options in preference order. UI marks the first `(Recommended)` and adds `Something else.` for a custom answer. Number keys select options. Empty questions, blank or duplicate labels, empty lists, more than three options, and non-interactive sessions return an error. Aborting the tool closes the pending question.
33
+
Supply one to three options in preference order. UI marks the first `(Recommended)` and adds `Something else.`, which opens a text input for a custom answer. Empty questions, blank or duplicate labels, empty lists, more than three options, and non-interactive sessions return an error. Aborting the tool closes the pending question.
addWrappedWithPrefix(" ",theme.fg("dim",editMode ? "Enter to submit • Esc to go back" : `↑↓ navigate • 1–${allOptions.length} or Enter to select • Esc to cancel`));
Copy file name to clipboardExpand all lines: packages/pi-ask-question/package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@henryqw/pi-ask-question",
3
-
"version": "0.1.10",
3
+
"version": "0.1.11",
4
4
"description": "Ask Pi users one interactive question with choices or a custom answer.",
5
5
"keywords": [
6
6
"pi-package",
@@ -19,13 +19,13 @@
19
19
"LICENSE"
20
20
],
21
21
"scripts": {
22
+
"test": "node --test test/*.test.ts",
22
23
"test:manual": "pi --no-extensions -e ./extensions/ask-question.ts --tools ask_question --no-session \"We need storage for a small team app. Before making changes, ask me to choose storage.\"",
0 commit comments