@capdiem/pi-ask-user 0.1.2 → 0.1.3

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/README.md +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,7 +20,11 @@ free-text field in the form.
20
20
  - **Choice and free-text** — each question is `type: "choice"` (options list,
21
21
  with an optional "Type something" free-text escape) or `type: "text"`.
22
22
  - **Question numbering (optional)** — set `numbered: true` to label questions `Q1`, `Q2`, … in the form body with an optional short title (`Q1 - Scope:`), mirroring the original grilling format. Ordinary (non-grill) forms show just the prompt.
23
- - **Recommended-answer hints** — each question may carry a `recommendation` (the grilling skill's `➡️ recommended answer`). When it matches one of a choice question's options, that option is marked with a **`★`** between the option number and the label (bold label), and its description (muted) plus the recommendation detail (default + bold, wrapped as `(推荐:…)`) are shown together on one line — a leading title in the recommendation is stripped (grill shape `<标题> - <详情>`, taking only the `<详情>` after the first dash). Otherwise the recommendation appears dimmed under the question as `Recommended: …`.
23
+ - **Recommended-answer hints** — each question may carry a `recommendation`
24
+ (the grilling skill's `➡️ recommended answer`). When it matches one of a
25
+ choice question's options, that option is marked with **`★`** and the
26
+ recommendation shows beside it as `(推荐:…)`; otherwise it appears dimmed
27
+ under the question as `Recommended: …`.
24
28
  - **TUI mode** — a full-screen tabbed **Custom UI** form (↑↓ select, Tab/←→
25
29
  switch, Enter confirm, Esc cancel) via `ctx.ui.custom()`.
26
30
  - **RPC mode** — the same questions as sequential `select`/`input` dialogs over
@@ -33,10 +37,10 @@ free-text field in the form.
33
37
  ## Install
34
38
 
35
39
  ```bash
36
- pi install npm:pi-ask-user
40
+ pi install npm:@capdiem/pi-ask-user
37
41
  ```
38
42
 
39
- Or load it directly from source during development:
43
+ To try it without installing:
40
44
 
41
45
  ```bash
42
46
  pi -e ./extensions/pi-ask-user/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capdiem/pi-ask-user",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "An interactive ask_user form (Custom UI) for the Pi coding agent: turns grilling-skill questions into selectable options with recommended-answer hints — TUI full form, RPC sequential dialogs",
5
5
  "type": "module",
6
6
  "pi": {