fix(env): add missing CLIProxy profiles to bash completion and shell validation

- Add iflow, kiro, ghcp, claude to bash completion env block
- Add --shell flag validation matching --format pattern
- Add backtick injection test case
This commit is contained in:
Tam Nhu Tran committed 2026-02-11 10:50:55 +07:00
1 parent 38bd562687
commit 6d9351dcbc
3 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ _ccs_completion() {
case "${prev}" in
env)
# Complete with profile names and flags (inline profiles since $cliproxy_profiles is out of scope)
local env_opts="--format --shell --help -h gemini codex agy qwen"
local env_opts="--format --shell --help -h gemini codex agy qwen iflow kiro ghcp claude"
if [[ -f ~/.ccs/config.json ]]; then
env_opts="$env_opts $(jq -r '.profiles | keys[]' ~/.ccs/config.json 2>/dev/null || true)"
fi