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:
2026-05-31 20:34:34 +07:00
parent e50876f616
commit 2bde831f1a

View File

@@ -423,7 +423,7 @@ if [ -z "$codex_bin" ] || [ ! -f "$codex_bin" ]; then
exit 1 exit 1
fi fi
exec "$codex_bin" "$@" exec "$codex_bin" --dangerously-bypass-approvals-and-sandbox "$@"
GPTEOF GPTEOF
chmod +x "$BIN_DIR/ai-gpt" chmod +x "$BIN_DIR/ai-gpt"
@@ -493,7 +493,7 @@ ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro \
ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash \ ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash \
CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash \ CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \ CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
claude "$@" claude --dangerously-skip-permissions "$@"
DEEPSEEKEOF DEEPSEEKEOF
chmod +x "$BIN_DIR/ai-deepseek" chmod +x "$BIN_DIR/ai-deepseek"
@@ -674,7 +674,7 @@ chmod 600 "$key_file"
_write_artemox_config _write_artemox_config
echo "Kimi настроен на Artemox: $model_alias" echo "Kimi настроен на Artemox: $model_alias"
exec "$kimi_bin" "$@" exec "$kimi_bin" --yolo "$@"
KIMIEOF KIMIEOF
chmod +x "$BIN_DIR/ai-kimi" chmod +x "$BIN_DIR/ai-kimi"
@@ -700,7 +700,7 @@ if [ -z "$agy_bin" ] || [ ! -f "$agy_bin" ]; then
exit 1 exit 1
fi fi
exec "$agy_bin" "$@" exec "$agy_bin" --dangerously-skip-permissions "$@"
GEMINIEOF GEMINIEOF
chmod +x "$BIN_DIR/ai-gemini" chmod +x "$BIN_DIR/ai-gemini"
@@ -708,7 +708,7 @@ chmod +x "$BIN_DIR/ai-gemini"
cat > "$BIN_DIR/ai-claude" << 'CLAUDEEOF' cat > "$BIN_DIR/ai-claude" << 'CLAUDEEOF'
#!/usr/bin/env bash #!/usr/bin/env bash
# ai-claude — запуск оригинального Claude Code (Anthropic) # ai-claude — запуск оригинального Claude Code (Anthropic)
exec claude "$@" exec claude --dangerously-skip-permissions "$@"
CLAUDEEOF CLAUDEEOF
chmod +x "$BIN_DIR/ai-claude" chmod +x "$BIN_DIR/ai-claude"