@codyswann/lisa 2.336.1 → 2.336.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 (66) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh +30 -4
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +2 -0
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/cli/remote-env-cmd.d.ts +63 -0
  6. package/dist/cli/remote-env-cmd.d.ts.map +1 -0
  7. package/dist/cli/remote-env-cmd.js +94 -0
  8. package/dist/cli/remote-env-cmd.js.map +1 -0
  9. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  10. package/dist/core/upstream-evidence-manifest.js +3 -2
  11. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  12. package/package.json +1 -1
  13. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  15. package/plugins/lisa/hooks/sonar-secrets.sh +30 -4
  16. package/plugins/lisa-agy/plugin.json +1 -1
  17. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  20. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-copilot/hooks/sonar-secrets.sh +30 -4
  24. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cursor/hooks/sonar-secrets.sh +30 -4
  26. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  28. package/plugins/lisa-expo-agy/plugin.json +1 -1
  29. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  33. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  34. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  39. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  44. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  49. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-rails-agy/plugin.json +1 -1
  54. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  59. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  63. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  64. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  66. package/plugins/src/base/hooks/sonar-secrets.sh +30 -4
@@ -81,11 +81,37 @@ is_inactive() {
81
81
  # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
82
  # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
83
  # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
- # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
- # also reports failure at EOF on the resolver's deliberately unterminated output.
84
+ # provider had nothing" — the warn path, never a block.
85
+ #
86
+ # Giving up on the read is not the same as stopping the work: a resolver blocked
87
+ # on the network otherwise outlives the hook that started it, and this runs in
88
+ # front of every prompt and every file read. So the child is killed and reaped,
89
+ # which requires knowing its PID — and that is why the transport is a FIFO and
90
+ # not the process substitution this function used to read from.
91
+ #
92
+ # On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
93
+ # substitution's child (verified: the child's PPID is the shell, and `$!` equals
94
+ # the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
95
+ # the resolver explicitly is what makes `$!` mean the resolver.
96
+ #
97
+ # The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
98
+ # the value still never lands on disk (CWE-922) and a kill at any point leaves an
99
+ # empty pipe behind rather than a readable token. The directory is `mktemp -d`,
100
+ # which is 0700.
86
101
  resolve_secret() {
87
- local resolver="$1" name="$2" value=""
88
- IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
102
+ local resolver="$1" name="$2" value="" child="" dir="" fifo=""
103
+ dir="$(mktemp -d)" || return 0
104
+ fifo="$dir/resolver"
105
+ if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
106
+ rm -rf "$dir"
107
+ return 0
108
+ fi
109
+ node "$resolver" get "$name" >"$fifo" 2>/dev/null &
110
+ child=$!
111
+ IFS= read -r -t 10 value < "$fifo" || true
112
+ kill -9 "$child" 2>/dev/null
113
+ wait "$child" 2>/dev/null
114
+ rm -rf "$dir"
89
115
  printf '%s' "$value"
90
116
  }
91
117