Files
gemini-cli/packages
galz10 09cd474098 fix(core): standardise shell AST validation on tree-sitter-bash
Addresses code review feedback for the recent AST-based shell execution policy enforcement.

Changes:
- Removed `bash-parser` and its dependencies in favor of standardizing entirely on `tree-sitter-bash` via `parseCommandDetails` for all shell parsing.
- Refactored `extractCommandsFromAst` to use the unified parser, correctly preserving prefix variable assignments (e.g., `FOO=bar ls`) and exact quotes.
- Fixed an issue where globally allowed shell tools (e.g., `['run_shell_command']`) would incorrectly fail-closed on empty or variable-only commands by evaluating global tool allowances before parsing.
- Updated AST validation tests to expect exact literal string matches (including quotes) and added `beforeAll` initialization for the WebAssembly parser.
2026-03-17 14:37:27 -07:00
..