@delorenj/pjangler 1.5.15 → 1.5.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delorenj/pjangler",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "description": "Project subsystem bootstrapper CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,6 +23,13 @@ cleanup() {
23
23
  }
24
24
  trap cleanup EXIT HUP INT TERM
25
25
 
26
- op inject -i "$source_file" -o "$temp_file" --force
26
+ # op opens /dev/tty for prompts. This hook runs inside whatever terminal
27
+ # entered the project (often an agent's pane), so op is detached from it:
28
+ # a prompt must fail, never read the user's keystrokes. macOS has no setsid.
29
+ if command -v setsid >/dev/null 2>&1; then
30
+ setsid -w op inject -i "$source_file" -o "$temp_file" --force </dev/null
31
+ else
32
+ op inject -i "$source_file" -o "$temp_file" --force </dev/null
33
+ fi
27
34
  mv -f -- "$temp_file" "$target_file"
28
35
  trap - EXIT HUP INT TERM