@fyeeme/pi-ask-user 2.0.1 → 2.0.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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.0.2] - 2026-09-09
6
+
7
+ ### Fixed
8
+
9
+ - Terminal bell fires only in TUI mode (`ctx.mode === "tui"`) — RPC stdout is the JSON protocol channel.
10
+ - Removed an unreachable empty-questions error branch (the schema's `minItems: 1` already rejects it).
11
+
5
12
  ## [2.0.1] - 2026-08-27
6
13
 
7
14
  Renamed to `@fyeeme/pi-ask-user` (formerly `@fyeeme/pi-omp-ask`, whose 2.0.0 release carried this codebase); the lightweight `ask_user` extension formerly published under this name now lives as `@fyeeme/pi-ask-user-lite`.
package/index.ts CHANGED
@@ -244,15 +244,9 @@ export default function ompAskExtension(pi: ExtensionAPI): void {
244
244
 
245
245
  // omp ask.notify → terminal bell (pi extensions cannot send desktop
246
246
  // notifications or read settings). omp's setting is opt-out-able, so
247
- // the bell stays configurable via PI_OMK_ASK_NOTIFY=0.
248
- if (process.env.PI_OMK_ASK_NOTIFY !== "0") process.stdout.write("\x07");
249
-
250
- if (params.questions.length === 0) {
251
- return {
252
- content: [{ type: "text" as const, text: "Error: questions must not be empty" }],
253
- details: {},
254
- };
255
- }
247
+ // the bell stays configurable via PI_OMK_ASK_NOTIFY=0. Terminal-direct:
248
+ // TUI only — RPC stdout is the JSON protocol channel (Mode Behavior).
249
+ if (ctx.mode === "tui" && process.env.PI_OMK_ASK_NOTIFY !== "0") process.stdout.write("\x07");
256
250
 
257
251
  const richQuestions: ExtensionAskDialogQuestion[] = params.questions.map(q => ({
258
252
  id: q.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fyeeme/pi-ask-user",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "oh-my-pi's `ask` tool migrated to a pi extension — tabbed multi-question dialog with a Submit review page, inactivity countdown, RPC degradation, and headless hiding.",
5
5
  "type": "module",
6
6
  "license": "MIT",