mm scripts: default to MiniMax-M3.1-Flash-Preview with per-script effort
Flash is the default model; --m3 falls back to M3, --effort overrides. Defaults: max (review-minimax, review-loop, mm-worktree-task), medium (explore), low (ci-triage). ask-minimax-run applies MINIMAX_EFFORT to Flash models when --effort is not passed. Bump stale fixture date.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Triage a failing Gitea Actions run in a MiniMax M3 sub-session.
|
||||
# Triage a failing Gitea Actions run in a MiniMax sub-session.
|
||||
# Fetches logs via gitea-agent-companion (token stays inside gac), redacts
|
||||
# credential-shaped content, and has MiniMax write a structured triage file.
|
||||
# Spec: specs/ci-triage-minimax-run.spec.md. Used by /ci-triage-minimax.
|
||||
@@ -7,7 +7,7 @@
|
||||
# Usage:
|
||||
# ci-triage-minimax-run --repo <owner/repo> --run <N> [--job <name|id>]
|
||||
# [--out <triage-file>] [--tail N] [--max-turns N] [--timeout SECS]
|
||||
# [--dryrun|-n]
|
||||
# [--dryrun|-n] [--m3] [--effort low|medium|high|xhigh|max]
|
||||
#
|
||||
# Exit codes:
|
||||
# 0 triage file written
|
||||
@@ -25,6 +25,8 @@ OUT_FILE=""
|
||||
TAIL_LINES=2000
|
||||
MAX_TURNS=25
|
||||
TIMEOUT_SECS=300
|
||||
USE_M3=0
|
||||
EFFORT_ARG=""
|
||||
DRYRUN=0
|
||||
CRED_PATTERN='ghp_[A-Za-z0-9]|glpat-|x-access-token:|Authorization:|BEGIN [A-Z ]*PRIVATE KEY|AKIA[0-9A-Z]{16}'
|
||||
|
||||
@@ -37,11 +39,15 @@ while [[ $# -gt 0 ]]; do
|
||||
--tail) TAIL_LINES="$2"; shift 2 ;;
|
||||
--max-turns) MAX_TURNS="$2"; shift 2 ;;
|
||||
--timeout) TIMEOUT_SECS="$2"; shift 2 ;;
|
||||
--m3) USE_M3=1; shift ;;
|
||||
--effort) EFFORT_ARG="$2"; shift 2 ;;
|
||||
--dryrun|-n) DRYRUN=1; shift ;;
|
||||
-h|--help) usage; exit 0 ;;
|
||||
*) echo "error: unknown argument '$1'" >&2; usage >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
if [[ $USE_M3 -eq 1 ]]; then MODEL="MiniMax-M3[1m]"; EFFORT="$EFFORT_ARG"; else MODEL="MiniMax-M3.1-Flash-Preview"; EFFORT="${EFFORT_ARG:-low}"; fi
|
||||
[[ -z "$EFFORT" || "$EFFORT" =~ ^(low|medium|high|xhigh|max)$ ]] || { echo "error: --effort must be low|medium|high|xhigh|max" >&2; exit 1; }
|
||||
|
||||
# --- CT-1 preflight -----------------------------------------------------------
|
||||
[[ "$REPO" =~ ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$ ]] || { echo "error: --repo must be owner/repo" >&2; exit 1; }
|
||||
@@ -82,7 +88,7 @@ if [[ "$DRYRUN" -eq 1 ]]; then
|
||||
echo "-- failing step --"
|
||||
echo "<run-logs not fetched in dryrun>"
|
||||
echo "-- sub-session command --"
|
||||
echo "cd <workdir> && timeout $TIMEOUT_SECS ask-minimax-run --model 'MiniMax-M3[1m]'" \
|
||||
echo "cd <workdir> && timeout $TIMEOUT_SECS ask-minimax-run --model '$MODEL'${EFFORT:+ --effort $EFFORT}" \
|
||||
"--permission-mode default --allowedTools 'Read,Glob,Grep,Write'" \
|
||||
"--disallowedTools 'Edit,MultiEdit,NotebookEdit,Bash,WebFetch,WebSearch'" \
|
||||
"--max-turns $MAX_TURNS --output-format json --add-dir $OUT_DIR -p < prompt.txt"
|
||||
@@ -163,7 +169,7 @@ run_once() {
|
||||
return 0
|
||||
fi
|
||||
( cd "$WORK_DIR" && timeout "$TIMEOUT_SECS" ask-minimax-run \
|
||||
--model "MiniMax-M3[1m]" \
|
||||
--model "$MODEL" ${EFFORT:+--effort "$EFFORT"} \
|
||||
--permission-mode default \
|
||||
--allowedTools "Read,Glob,Grep,Write" \
|
||||
--disallowedTools "Edit,MultiEdit,NotebookEdit,Bash,WebFetch,WebSearch" \
|
||||
|
||||
Reference in New Issue
Block a user