claude-pro-minmax 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +79 -52
- package/README.md +79 -52
- package/bin/cpmm.js +2 -168
- package/install.sh +244 -106
- package/lib/cli.js +244 -0
- package/package.json +13 -12
- package/.claude/sessions/2025-01-27-auth-jwt-refresh.md +0 -32
- package/.claude/sessions/README.ko.md +0 -195
- package/.claude/sessions/README.md +0 -195
- package/.claude/skills/learned/README.ko.md +0 -64
- package/.claude/skills/learned/README.md +0 -64
- package/scripts/claude_command_smoke.sh +0 -116
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -u
|
|
3
|
-
|
|
4
|
-
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
5
|
-
cd "$ROOT_DIR" || exit 1
|
|
6
|
-
|
|
7
|
-
TS="$(date +%Y%m%d-%H%M%S)"
|
|
8
|
-
OUT_DIR="docs/smoke-logs/$TS"
|
|
9
|
-
mkdir -p "$OUT_DIR"
|
|
10
|
-
|
|
11
|
-
REPORT_MD="$OUT_DIR/COMMAND_SMOKE_REPORT.md"
|
|
12
|
-
REPORT_CSV="$OUT_DIR/COMMAND_SMOKE_REPORT.csv"
|
|
13
|
-
|
|
14
|
-
cat > "$REPORT_MD" <<MD
|
|
15
|
-
# Claude Command Smoke Report
|
|
16
|
-
|
|
17
|
-
- Generated at: $(date '+%Y-%m-%d %H:%M:%S %Z')
|
|
18
|
-
- Workspace: $ROOT_DIR
|
|
19
|
-
- Runner: claude -p (real Claude Code CLI)
|
|
20
|
-
- Verdict rule: PASS on exit code 0, then downgraded to FAIL if output contains runtime-failure markers ('Error:', 'Failed:', 'not installed on this system', 'Reached max turns')
|
|
21
|
-
|
|
22
|
-
| # | Command | Exit Code | Verdict | Output File |
|
|
23
|
-
|---|---|---:|---|---|
|
|
24
|
-
MD
|
|
25
|
-
|
|
26
|
-
echo "index,command,exit_code,verdict,output_file" > "$REPORT_CSV"
|
|
27
|
-
|
|
28
|
-
# Keep commands short/safe but real.
|
|
29
|
-
declare -a COMMAND_NAMES=(
|
|
30
|
-
"/do"
|
|
31
|
-
"/do-sonnet"
|
|
32
|
-
"/do-opus"
|
|
33
|
-
"/plan"
|
|
34
|
-
"/dplan"
|
|
35
|
-
"/review"
|
|
36
|
-
"/watch"
|
|
37
|
-
"/session-save"
|
|
38
|
-
"/session-load"
|
|
39
|
-
"/compact-phase"
|
|
40
|
-
"/load-context"
|
|
41
|
-
"/learn"
|
|
42
|
-
"/analyze-failures"
|
|
43
|
-
"/llms-txt"
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
declare -a PROMPTS=(
|
|
47
|
-
"/do Reply with exactly one word: done"
|
|
48
|
-
"/do-sonnet Reply with exactly one word: done"
|
|
49
|
-
"/do-opus Reply with exactly one word: done"
|
|
50
|
-
"/plan --no-build Smoke test only: output a one-line plan for README wording cleanup."
|
|
51
|
-
"/dplan Smoke test only: output two bullet points for verifying a README update."
|
|
52
|
-
"/review README.md"
|
|
53
|
-
"/watch custom \"echo smoke-watch\""
|
|
54
|
-
"/session-save smoke-test"
|
|
55
|
-
"/session-load --list"
|
|
56
|
-
"/compact-phase planning"
|
|
57
|
-
"/load-context --list"
|
|
58
|
-
"/learn \"Smoke test pattern: keep responses concise\""
|
|
59
|
-
"/analyze-failures 5"
|
|
60
|
-
"/llms-txt nextjs"
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
run_one() {
|
|
64
|
-
local idx="$1"
|
|
65
|
-
local command_name="$2"
|
|
66
|
-
local prompt="$3"
|
|
67
|
-
local out_file="$OUT_DIR/$(printf "%02d" "$idx")-${command_name//\//}.out.txt"
|
|
68
|
-
|
|
69
|
-
# shellcheck disable=SC2086
|
|
70
|
-
claude -p "$prompt" \
|
|
71
|
-
--output-format text \
|
|
72
|
-
--max-turns 4 \
|
|
73
|
-
--permission-mode bypassPermissions \
|
|
74
|
-
--allow-dangerously-skip-permissions \
|
|
75
|
-
> "$out_file" 2>&1
|
|
76
|
-
local rc=$?
|
|
77
|
-
|
|
78
|
-
local verdict="FAIL"
|
|
79
|
-
if [ "$rc" -eq 0 ]; then
|
|
80
|
-
verdict="PASS"
|
|
81
|
-
fi
|
|
82
|
-
|
|
83
|
-
# Output-based downgrade: some slash commands return exit 0 but still report runtime failure.
|
|
84
|
-
if grep -Eqi '(^Error:|Failed:|not installed on this system|Reached max turns|write was blocked|grant write (permission|access))' "$out_file"; then
|
|
85
|
-
verdict="FAIL"
|
|
86
|
-
fi
|
|
87
|
-
|
|
88
|
-
printf '| %s | `%s` | %s | %s | `%s` |\n' "$idx" "$command_name" "$rc" "$verdict" "$out_file" >> "$REPORT_MD"
|
|
89
|
-
printf '%s,%s,%s,%s,%s\n' "$idx" "$command_name" "$rc" "$verdict" "$out_file" >> "$REPORT_CSV"
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
for i in "${!COMMAND_NAMES[@]}"; do
|
|
93
|
-
idx=$((i + 1))
|
|
94
|
-
run_one "$idx" "${COMMAND_NAMES[$i]}" "${PROMPTS[$i]}"
|
|
95
|
-
done
|
|
96
|
-
|
|
97
|
-
# summary block
|
|
98
|
-
pass_count=$(awk -F, 'NR>1 && $4=="PASS" {c++} END {print c+0}' "$REPORT_CSV")
|
|
99
|
-
fail_count=$(awk -F, 'NR>1 && $4=="FAIL" {c++} END {print c+0}' "$REPORT_CSV")
|
|
100
|
-
total_count=$((pass_count + fail_count))
|
|
101
|
-
|
|
102
|
-
cat >> "$REPORT_MD" <<MD
|
|
103
|
-
|
|
104
|
-
## Summary
|
|
105
|
-
|
|
106
|
-
- Total: $total_count
|
|
107
|
-
- PASS: $pass_count
|
|
108
|
-
- FAIL: $fail_count
|
|
109
|
-
|
|
110
|
-
## Notes
|
|
111
|
-
|
|
112
|
-
- This is a minimum smoke run, not behavioral correctness certification.
|
|
113
|
-
- Raw outputs are preserved per command in the same directory.
|
|
114
|
-
MD
|
|
115
|
-
|
|
116
|
-
echo "$OUT_DIR"
|