feat: add permission-skipping flags to all ai-* launchers
- ai-claude: --dangerously-skip-permissions - ai-gpt: --dangerously-bypass-approvals-and-sandbox (Codex) - ai-deepseek: --dangerously-skip-permissions - ai-kimi: --yolo - ai-gemini: --dangerously-skip-permissions (agy) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
10
ai-setup.sh
10
ai-setup.sh
@@ -423,7 +423,7 @@ if [ -z "$codex_bin" ] || [ ! -f "$codex_bin" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$codex_bin" "$@"
|
||||
exec "$codex_bin" --dangerously-bypass-approvals-and-sandbox "$@"
|
||||
GPTEOF
|
||||
chmod +x "$BIN_DIR/ai-gpt"
|
||||
|
||||
@@ -493,7 +493,7 @@ ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro \
|
||||
ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash \
|
||||
CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash \
|
||||
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
|
||||
claude "$@"
|
||||
claude --dangerously-skip-permissions "$@"
|
||||
DEEPSEEKEOF
|
||||
chmod +x "$BIN_DIR/ai-deepseek"
|
||||
|
||||
@@ -674,7 +674,7 @@ chmod 600 "$key_file"
|
||||
_write_artemox_config
|
||||
echo "Kimi настроен на Artemox: $model_alias"
|
||||
|
||||
exec "$kimi_bin" "$@"
|
||||
exec "$kimi_bin" --yolo "$@"
|
||||
KIMIEOF
|
||||
chmod +x "$BIN_DIR/ai-kimi"
|
||||
|
||||
@@ -700,7 +700,7 @@ if [ -z "$agy_bin" ] || [ ! -f "$agy_bin" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$agy_bin" "$@"
|
||||
exec "$agy_bin" --dangerously-skip-permissions "$@"
|
||||
GEMINIEOF
|
||||
chmod +x "$BIN_DIR/ai-gemini"
|
||||
|
||||
@@ -708,7 +708,7 @@ chmod +x "$BIN_DIR/ai-gemini"
|
||||
cat > "$BIN_DIR/ai-claude" << 'CLAUDEEOF'
|
||||
#!/usr/bin/env bash
|
||||
# ai-claude — запуск оригинального Claude Code (Anthropic)
|
||||
exec claude "$@"
|
||||
exec claude --dangerously-skip-permissions "$@"
|
||||
CLAUDEEOF
|
||||
chmod +x "$BIN_DIR/ai-claude"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user