@alexleekt/pi-ask-user-glimpse 0.3.0 → 0.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.
- package/CHANGELOG.md +29 -0
- package/dist/index.html +3434 -58
- package/index.ts +46 -3
- package/package.json +4 -3
- package/tool/ask-user.ts +14 -2
- package/tool/response-formatter.ts +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@alexleekt/pi-ask-user-glimpse` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.3.2] — 2026-05-20
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Recover all fixes lost during cherry-pick** — When cherry-picking the mermaid commit onto main, the jj colocated working copy was silently reset, discarding every other fix. This release restores: empty submit, shared icons/components, additional comments, auto-split logic, questionnaire focus fix, and updated prompt guidelines.
|
|
9
|
+
|
|
10
|
+
## [0.3.1] — 2026-05-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Mermaid rendering was missing from v0.3.0** — The mermaid ContextPanel changes were committed on an orphaned branch and never merged into main before the v0.3.0 publish. This release includes them properly.
|
|
14
|
+
|
|
15
|
+
## [0.3.0] — 2026-05-20
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- **Always-present "Additional Comments"** — Every dialog type (SingleSelect, MultiSelect, Questionnaire) now shows a non-toggleable freeform textarea at the bottom. Users can submit just additional comments without answering the main question.
|
|
19
|
+
- **Empty submission allowed** — Submit button is always enabled. Users can submit without selecting options, answering questions, or typing freeform text.
|
|
20
|
+
- **"All of the above" radio toggle** — Multi-select options matching patterns like "All of the above", "Select all", "Everything" render as radio buttons. Clicking them selects all regular options at once. Selecting any individual option automatically deselects the "All" toggle.
|
|
21
|
+
- **Auto-split long questions** — When the `question` field exceeds 120 characters and no separate `context` is provided, the first sentence becomes the dialog title and the remainder flows to the left context panel.
|
|
22
|
+
- **Mermaid diagram rendering** — The context panel now renders ` ```mermaid ` code blocks as interactive SVG diagrams (flowcharts, sequence diagrams, etc.). The `mermaid` package is bundled into the webview.
|
|
23
|
+
- **Shared icon components** — Extracted `RadioIcon`, `CheckIcon`, `CommentIcon`, and `isSelectAllOption` from duplicated inline SVGs into `webview/src/components/icons.tsx`.
|
|
24
|
+
- **New `/ask-debug` test scenarios** — Added `mermaid` and `long-question` mock modes, plus "All of the above" options in multi-select and questionnaire mocks.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- **Prompt guidelines** — Updated tool description and parameter docs to encourage agents to include Mermaid diagrams in the `context` field when visualizing architecture, flows, or relationships would aid understanding.
|
|
28
|
+
- **Max-height headers** — Added `max-h-24 overflow-y-auto` to all component headers and `max-h-32` to the global App header as a defensive cap against long titles.
|
|
29
|
+
- **Response formatter** — Added `additionalComments` field to both `selection` and `questionnaire` response kinds. Empty answers are now filtered from questionnaire submissions.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
- **Questionnaire focus-steal bug** — The mount-only auto-focus `useEffect` was incorrectly including `answers` in its dependency array, causing it to re-run on every keystroke and steal focus from the current textarea to the next question.
|
|
33
|
+
|
|
5
34
|
## [0.2.1] — 2026-05-16
|
|
6
35
|
|
|
7
36
|
### Fixed
|