chore: track ask-minimax-run, bg-model-call, wait-for-version, auto-draft (+spec/data) — were untracked
Claude-Session: https://claude.ai/code/session_015nXvGNNNixJPFwZKZHNyha
This commit is contained in:
29
scripts/ask-minimax-run
Executable file
29
scripts/ask-minimax-run
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
# Invoke claude with the oreillyit-minimax provider environment.
|
||||
# Replicates what claude-profile does in Phase 3 for non-interactive (-p) use.
|
||||
# Used by the /ask-minimax skill.
|
||||
set -euo pipefail
|
||||
|
||||
MINIMAX_DIR="${HOME}/.claude-oreillyit-minimax"
|
||||
PROVIDER_ENV="${MINIMAX_DIR}/provider.env"
|
||||
|
||||
[[ -f "$PROVIDER_ENV" ]] || { echo "error: $PROVIDER_ENV not found" >&2; exit 1; }
|
||||
|
||||
# Parse provider.env — handle ANTHROPIC_API_KEY_FILE specially; export the rest
|
||||
while IFS='=' read -r key value; do
|
||||
[[ -z "$key" || "$key" =~ ^[[:space:]]*# ]] && continue
|
||||
if [[ "$key" == "ANTHROPIC_API_KEY_FILE" ]]; then
|
||||
expanded="${value/#\~/$HOME}"
|
||||
[[ -f "$expanded" ]] || { echo "error: API key file '$expanded' not found" >&2; exit 1; }
|
||||
ANTHROPIC_API_KEY=$(cat "$expanded")
|
||||
export ANTHROPIC_API_KEY
|
||||
else
|
||||
export "$key=$value"
|
||||
fi
|
||||
done < "$PROVIDER_ENV"
|
||||
|
||||
export CLAUDE_CONFIG_DIR="$MINIMAX_DIR"
|
||||
export CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1
|
||||
export COLORTERM=truecolor
|
||||
|
||||
exec claude "$@"
|
||||
Reference in New Issue
Block a user