claude-pro-minmax 1.0.2 → 1.1.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 CHANGED
@@ -27,41 +27,52 @@ CPMM은 모델 라우팅, 출력 제어, 로컬 안전장치로 리셋 전까지
27
27
 
28
28
  ## 🛠 설치 (Installation)
29
29
 
30
- ### 1. 필수 도구 준비
30
+ ### 1. 빠른 설치 (권장)
31
31
  ```bash
32
- npm install -g @anthropic-ai/claude-code
33
- npm install -g @mixedbread/mgrep # 선택, 권장: 출력 토큰 ~50% 절감
34
- mgrep install-claude-code
35
- brew install jq # macOS (Linux: sudo apt-get install jq)
36
- brew install tmux # 선택: /watch 사용 시 필요 (Linux: sudo apt-get install tmux)
32
+ npm install -g claude-pro-minmax
33
+ cpmm install
37
34
  ```
38
35
 
39
- ### 2. npm / npx 설치 (권장)
36
+ 대안 (전역 설치 없이 1회 실행):
40
37
  ```bash
41
38
  npx claude-pro-minmax@latest install
42
39
  ```
43
40
 
44
- 전역 설치 실행:
41
+ ### 2. 의존성 설정 (필수/선택)
45
42
  ```bash
46
- npm install -g claude-pro-minmax
47
- cpmm install
43
+ cpmm setup --check
44
+ # 누락된 의존성 자동 복구 (비대화형)
45
+ cpmm setup --fix --yes
48
46
  ```
49
47
 
50
- ### 3. One-Line Install (curl)
48
+ - `required`: `claude`, `jq`
49
+ - `optional`: `mgrep`, `tmux`
50
+
51
+ ### 3. 수동 의존성 설치 (고급)
51
52
  ```bash
52
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/move-hoon/claude-pro-minmax/main/install.sh)"
53
+ # 필수
54
+ npm install -g @anthropic-ai/claude-code
55
+ brew install jq # macOS
56
+ sudo apt-get install jq # Linux
57
+
58
+ # 선택
59
+ npm install -g @mixedbread/mgrep
60
+ mgrep install-claude-code
61
+ brew install tmux # macOS
62
+ sudo apt-get install tmux # Linux
53
63
  ```
54
64
 
55
- ### 4. Manual Install
65
+ ### 4. 소스에서 수동 설치
56
66
  ```bash
57
67
  git clone https://github.com/move-hoon/claude-pro-minmax.git
58
68
  cd claude-pro-minmax
59
- less install.sh
60
- bash install.sh
69
+ node bin/cpmm.js install
70
+ # 고급/디버그 경로 (동일한 내부 설치기):
71
+ # bash install.sh
61
72
  ```
62
73
 
63
74
  ### 5. 설치 후 설정 (선택 사항)
64
- **설치 스크립트 실행 Perplexity API 키와 출력 언어를 선택합니다.**
75
+ **Fresh Install을 인터랙티브로 실행할 때 `cpmm install`이 Perplexity API 키와 출력 언어를 묻습니다.**
65
76
  설치 시 언어를 건너뛰었다면 수동으로 설정할 수 있습니다:
66
77
  - **비영어:** `~/.claude/rules/language.md`를 생성하여 원하는 언어 지정
67
78
  - **영어 (기본값):** 파일 불필요. `~/.claude/rules/language.md`가 있으면 삭제
@@ -83,16 +94,18 @@ Perplexity를 설치 시 건너뛰었다면 나중에 수동으로 설정할 수
83
94
  > - **Sequential Thinking**: 복잡한 로직 처리를 위한 강력한 추론 도구
84
95
  > - **Context7**: 고급 문서 조회 및 컨텍스트 관리 도구
85
96
 
86
- > **Note:** 설치 스크립트가 기존 `~/.claude` 설정을 자동으로 백업(`~/.claude-backup-{timestamp}`)합니다.
97
+ > **Note:** 최초 `cpmm install`(또는 `npx claude-pro-minmax@latest install`) 기존 `~/.claude`를 `~/.claude.pre-cpmm`으로 백업합니다. 이후 `cpmm install` 재실행은 CPMM 관리 파일만 업데이트하며, 사용자 설정(`language.md`, `settings.local.json`, `skills/learned/`, `plans/` 등)은 보존됩니다. (`cpmm install`은 내부적으로 `install.sh`를 호출합니다.)
87
98
 
88
99
  ### 6. 프로젝트 초기화
89
- > **Tip:** `claude` 실행 전, 이 저장소의 `project-templates/`를 참고해 프로젝트를 초기화하세요. (`install.sh`는 `project-templates`를 `~/.claude`로 복사하지 않습니다.)
100
+ > **Tip:** `claude` 실행 전, 이 저장소의 `project-templates/`를 참고해 프로젝트를 초기화하세요. (설치기는 `project-templates`를 `~/.claude`로 복사하지 않습니다.)
90
101
 
91
102
  ### 7. 설치 확인
92
103
  ```bash
93
- npx claude-pro-minmax@latest doctor
94
- # 또는 (전역 설치한 경우)
104
+ cpmm setup --check
95
105
  cpmm doctor
106
+ # 또는 (전역 설치 없이 1회 실행)
107
+ npx claude-pro-minmax@latest setup --check
108
+ npx claude-pro-minmax@latest doctor
96
109
  ```
97
110
 
98
111
  ---
@@ -237,7 +250,7 @@ claude-pro-minmax
237
250
  ├── .claude.json # 글로벌 MCP 설정 (User Scope)
238
251
  ├── .claudeignore # Claude 컨텍스트 제외 규칙
239
252
  ├── .gitignore # Git ignore 규칙
240
- ├── install.sh # 원클릭 설치 스크립트
253
+ ├── install.sh # 핵심 설치 스크립트 (`cpmm install`이 내부 호출)
241
254
  ├── LICENSE # MIT 라이선스
242
255
  ├── README.md # 영문 문서
243
256
  ├── README.ko.md # 국문 문서
@@ -386,7 +399,7 @@ A: 네, 하지만 이러한 최적화가 필요하지 않을 수 있습니다. M
386
399
  <details>
387
400
  <summary><strong>Q: 기존 Claude Code 설정과 충돌하나요?</strong></summary>
388
401
 
389
- A: `~/.claude/` 디렉토리를 덮어씁니다. 다만 `install.sh`가 교체 전에 `~/.claude-backup-{timestamp}`로 자동 백업합니다.
402
+ A: 최초 `cpmm install`(또는 `npx claude-pro-minmax@latest install`) 기존 `~/.claude`를 `~/.claude.pre-cpmm`으로 백업합니다. 이후 재설치는 CPMM 관리 파일만 덮어쓰고, 언어 설정·로컬 설정·학습된 패턴·세션 기록은 보존됩니다. Perplexity API 설정 및 언어 선택은 최초 설치 시에만 실행됩니다.
390
403
  </details>
391
404
 
392
405
  <details>
package/README.md CHANGED
@@ -27,41 +27,52 @@ CPMM helps Pro users complete more verified tasks before reset through model rou
27
27
 
28
28
  ## 🛠 Installation
29
29
 
30
- ### 1. Prerequisites
30
+ ### 1. Quick Start (Recommended)
31
31
  ```bash
32
- npm install -g @anthropic-ai/claude-code
33
- npm install -g @mixedbread/mgrep # optional, recommended: ~50% output reduction
34
- mgrep install-claude-code
35
- brew install jq # macOS (Linux: sudo apt-get install jq)
36
- brew install tmux # optional: required for /watch (Linux: sudo apt-get install tmux)
32
+ npm install -g claude-pro-minmax
33
+ cpmm install
37
34
  ```
38
35
 
39
- ### 2. npm / npx Install (Recommended)
36
+ Alternative (no global install):
40
37
  ```bash
41
38
  npx claude-pro-minmax@latest install
42
39
  ```
43
40
 
44
- Or install globally:
41
+ ### 2. Dependency Setup (Required/Optional)
45
42
  ```bash
46
- npm install -g claude-pro-minmax
47
- cpmm install
43
+ cpmm setup --check
44
+ # auto-fix missing dependencies (non-interactive)
45
+ cpmm setup --fix --yes
48
46
  ```
49
47
 
50
- ### 3. One-Line Install (curl)
48
+ - `required`: `claude`, `jq`
49
+ - `optional`: `mgrep`, `tmux`
50
+
51
+ ### 3. Manual Dependency Setup (Advanced)
51
52
  ```bash
52
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/move-hoon/claude-pro-minmax/main/install.sh)"
53
+ # required
54
+ npm install -g @anthropic-ai/claude-code
55
+ brew install jq # macOS
56
+ sudo apt-get install jq # Linux
57
+
58
+ # optional
59
+ npm install -g @mixedbread/mgrep
60
+ mgrep install-claude-code
61
+ brew install tmux # macOS
62
+ sudo apt-get install tmux # Linux
53
63
  ```
54
64
 
55
- ### 4. Manual Install
65
+ ### 4. Manual Install From Source
56
66
  ```bash
57
67
  git clone https://github.com/move-hoon/claude-pro-minmax.git
58
68
  cd claude-pro-minmax
59
- less install.sh
60
- bash install.sh
69
+ node bin/cpmm.js install
70
+ # advanced/debug path (same underlying installer):
71
+ # bash install.sh
61
72
  ```
62
73
 
63
74
  ### 5. Post-Install Configuration (Optional)
64
- **The installation script will ask for your Perplexity API Key and output language.**
75
+ **On fresh interactive installs, `cpmm install` asks for your Perplexity API Key and output language.**
65
76
  If you skipped language selection, you can configure it manually:
66
77
  - **Non-English:** Create `~/.claude/rules/language.md` with your preferred language
67
78
  - **English (default):** No file needed. Remove `~/.claude/rules/language.md` if it exists
@@ -83,16 +94,18 @@ If you skipped Perplexity setup during installation, you can set it up manually:
83
94
  > - **Sequential Thinking**: Powerful reasoning tool for complex logic.
84
95
  > - **Context7**: Advanced documentation fetching and context management.
85
96
 
86
- > **Note:** The installation script automatically backs up your existing `~/.claude` settings (`~/.claude-backup-{timestamp}`).
97
+ > **Note:** On first `cpmm install` (or `npx claude-pro-minmax@latest install`), CPMM backs up your existing `~/.claude` to `~/.claude.pre-cpmm`. Re-running install via `cpmm install` updates CPMM-managed files in-place while preserving your settings (`language.md`, `settings.local.json`, `skills/learned/`, `plans/`, etc.). (`cpmm install` invokes `install.sh` internally.)
87
98
 
88
99
  ### 6. Project Initialization
89
- > **Tip:** Before running `claude`, initialize your project by referencing templates in this repository's `project-templates/` directory. (`install.sh` does not copy `project-templates` into `~/.claude`.)
100
+ > **Tip:** Before running `claude`, initialize your project by referencing templates in this repository's `project-templates/` directory. (The installer does not copy `project-templates` into `~/.claude`.)
90
101
 
91
102
  ### 7. Verify Installation
92
103
  ```bash
93
- npx claude-pro-minmax@latest doctor
94
- # or (if installed globally)
104
+ cpmm setup --check
95
105
  cpmm doctor
106
+ # or (no global install)
107
+ npx claude-pro-minmax@latest setup --check
108
+ npx claude-pro-minmax@latest doctor
96
109
  ```
97
110
 
98
111
  ---
@@ -237,7 +250,7 @@ claude-pro-minmax
237
250
  ├── .claude.json # Global MCP Settings (User Scope)
238
251
  ├── .claudeignore # Files excluded from Claude's context
239
252
  ├── .gitignore # Git ignore rules
240
- ├── install.sh # One-click installation script
253
+ ├── install.sh # Core installer (invoked by `cpmm install`)
241
254
  ├── LICENSE # MIT License
242
255
  ├── README.md # English Documentation
243
256
  ├── README.ko.md # Korean Documentation
@@ -386,7 +399,7 @@ This configuration is specifically designed for the Pro Plan's 5-hour rolling re
386
399
  <details>
387
400
  <summary><strong>Q: Does it conflict with existing Claude Code settings?</strong></summary>
388
401
 
389
- A: It overwrites the `~/.claude/` directory, but `install.sh` automatically creates a backup as `~/.claude-backup-{timestamp}` before replacing it.
402
+ A: On first `cpmm install` (or `npx claude-pro-minmax@latest install`), CPMM backs up your existing `~/.claude` to `~/.claude.pre-cpmm`. Subsequent installs update CPMM-managed files in-place — your language settings, local config, learned patterns, and session history are preserved. Perplexity API setup and language selection only run on fresh install.
390
403
  </details>
391
404
 
392
405
  <details>