@hank-warren/pi-auto-permissions 0.22.0 → 0.22.1

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
@@ -1,5 +1,11 @@
1
1
  # @hank-warren/pi-auto-permissions
2
2
 
3
+ ## 0.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Approval prompts now report pi as blocked on a permission (OSC 7501 program status) while they are open, so herdr-core, the Herdr app and other terminals that support program status show the session as waiting on the user instead of working. Needs pi 1.5.0 or later; older pi ignores the option.
8
+
3
9
  ## 0.22.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hank-warren/pi-auto-permissions",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Fork of @ogulcancelik/pi-auto-permissions with dialog-answer user evidence: context-aware Bash permissions for Pi with automated guardian review.",
5
5
  "type": "module",
6
6
  "keywords": [
package/prompt-select.ts CHANGED
@@ -30,6 +30,10 @@ export function setHerdrBlocked(pi: ExtensionAPI, active: boolean, label?: strin
30
30
  * A Tab-typed note is delivered to the agent as a steering user message,
31
31
  * matching what the retired `ExtensionSelectorComponent` monkey patch in
32
32
  * pi-permission-selector did.
33
+ *
34
+ * `blocked` makes pi report the prompt as program status (OSC 7501), which
35
+ * `ctx.ui.select` does on its own and `custom()` does only when asked; that is
36
+ * how herdr-core and the Herdr app see a pane waiting on a human.
33
37
  */
34
38
  export function promptSelect(
35
39
  pi: ExtensionAPI,
@@ -80,5 +84,5 @@ export function promptSelect(
80
84
  terminalRows: () => tui.terminal.rows,
81
85
  requestRender: () => tui.requestRender(),
82
86
  });
83
- });
87
+ }, { blocked: { kind: "permission", message: content.header } });
84
88
  }