@carjms/codexswitch 0.6.3 → 0.7.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
@@ -200,15 +200,18 @@ cxs list # 계정별 5h/week 사용량 % 확인
200
200
 
201
201
  | 명령 | 설명 |
202
202
  |---|---|
203
+ | `cxs` | **기본 지속형 프롬프트**: 2열 시작 대시보드에서 계정·프로젝트·최근 작업을 확인하고 계속 입력. 두 번째 요청부터 같은 Codex 세션을 자동으로 이어감 |
203
204
  | `cxs login [이름]` | 새 계정 로그인 후 저장 (기존 로그인 유지, 이름 생략 시 이메일 사용) |
204
205
  | `cxs import [이름]` | 현재 `~/.codex`에 로그인된 계정을 저장소로 가져오기 |
205
206
  | `cxs add-key <이름> [키]` | OpenAI API 키 계정 등록 (키 생략 시 `$OPENAI_API_KEY` 사용) |
206
207
  | `cxs list` | 계정 목록: 활성 표시, 이메일, 플랜, 우선순위, 한도 상태, 사용량 % |
207
208
  | `cxs usage [이름]` | 계정별 사용량 대시보드: 5시간/주간 게이지 바, 리셋 카운트다운, 다음 로테이션 계정 (별칭: `status`) |
208
- | `cxs chat` | **대화형 입력창 (Claude Code 스타일)**: 매 턴이 로테이션을 거치고 같은 codex 세션을 이어가므로, 계정이 바뀌어도 대화가 유지됨. 내부 명령: `/usage /use /next /model /new /quit` |
209
+ | `cxs chat [--simple]` | `cxs`와 같은 지속형 입력창. `--simple`은 전체 화면 시작 대시보드를 생략. `/paste`로 여러 입력(`/end`로 완료) |
209
210
  | `cxs watch` | 실시간 인터랙티브 대시보드 — 5초마다 갱신; 키: `↑/↓` 선택, `s` 전환, `e` 활성/비활성, `p` 프로브, `q` 종료 |
210
211
  | `cxs probe [이름]` | 계정마다 최소 요청 1회를 보내 사용량 게이지 워밍업 (토큰 소량 소모) |
211
212
  | `cxs log [개수]` | 최근 활동 기록: 계정 전환, 한도 도달, 로테이션, 프로브 |
213
+ | `cxs history [개수]` | 실제 작업 이력: 요청, 성공 여부, 계정 전환 흐름, 소요 시간, 변경 파일 |
214
+ | `cxs history show <ID\|latest>` | 요청 원문과 계정별 시도 결과, 실행 후 Git 변경 파일 상세 확인 |
212
215
  | `cxs use <이름>` | 활성 계정 전환 |
213
216
  | `cxs current` | 현재 활성 계정 확인 |
214
217
  | `cxs next` | 설정된 순서의 다음 계정으로 전환 (끝에 오면 처음으로 순환) |
@@ -219,13 +222,17 @@ cxs list # 계정별 5h/week 사용량 % 확인
219
222
  | `cxs model [모델명]` | `run`/`exec`에 자동 적용할 기본 모델 설정 (`default`로 초기화) |
220
223
  | `cxs threshold [5h%] [주간%]` | 사용량이 이 퍼센트에 도달하면 다음 계정으로 전환 (기본 95, 값 하나면 둘 다) |
221
224
  | `cxs reasoning <show\|concise\|hide>` | 실행 중 모델 추론("생각") 출력량 조절 — `hide`는 완전 숨김, `concise`는 한 줄 요약 |
225
+ | `cxs output <auto\|compact\|raw>` | 출력 가독성. `auto`는 터미널에서 중간 diff를 접고 최종 답변·작업 요약만 표시하며, 파이프에서는 raw 유지 |
226
+ | `cxs memory [명령]` | 계정 간 기억 관리. `shared`는 모든 계정이 공유, `isolated`는 계정별 분리, `off`는 주입 중단. `add/show/path` 지원 |
227
+ | `cxs sandbox <read-only\|write\|write+net\|full>` | exec/chat의 파일 접근 권한 — `write`는 작업 폴더 수정, `write+net`은 ssh/curl 등 네트워크까지 허용, `full`은 샌드박스 해제 |
222
228
  | `cxs patterns [add/remove]` | 한도 감지에 쓸 커스텀 정규식 패턴 추가/삭제 |
223
229
  | `cxs export <파일>` | 전체 계정·설정 백업 (⚠️ 토큰 포함 — 비밀번호처럼 취급) |
224
230
  | `cxs restore <파일>` | 백업 파일에서 계정 복원 (다른 PC 이전용) |
225
231
  | `cxs completion <bash\|zsh>` | 셸 자동완성 스크립트 출력 |
226
232
  | `cxs <그 외 명령>` | codex로 그대로 전달 — `cxs resume`, `cxs goal ...`, `cxs apply` 등 codex의 모든 명령을 관리 계정으로 바로 사용 가능 |
227
- | `cxs server [--port N]` | **실험 기능** 로컬 프록시(teamclaude 방식): 요청마다 인증을 교체하고, 429는 다음 계정으로 재시도, 응답 헤더에서 사용량을 실시간 수집 |
228
- | `cxs run --proxy [인자]` | codex를 로컬 프록시 경유로 실행 대화형 세션 안에서도 요청 단위 로테이션 |
233
+ | `cxs server [--port N]` | **실험 기능** 로컬 프록시(teamclaude 방식): 할당량 429만 계정 전환하고 짧은 분당 제한은 같은 계정에서 재시도, 사용량 실시간 수집 |
234
+ | `cxs server status` | 프록시 연결 상태와 요청 단위 로테이션 활성 여부 확인 |
235
+ | `cxs run --proxy [인자]` | 프록시가 있으면 경유하고 없으면 직접 실행. 반드시 필요하면 `--require-proxy` 사용 |
229
236
  | `cxs remove <이름>` | 계정 삭제 |
230
237
  | `cxs rename <옛이름> <새이름>` | 계정 이름 변경 |
231
238
  | `cxs disable / enable <이름>` | 로테이션에서 임시 제외 / 복귀 |
package/README.md CHANGED
@@ -202,15 +202,18 @@ cxs list # per-account 5h/week usage columns
202
202
 
203
203
  | Command | Description |
204
204
  |---|---|
205
+ | `cxs` | **Default persistent prompt**: two-column account/project/history dashboard, then continuous input; turns 2+ continue the same Codex session |
205
206
  | `cxs login [name]` | Log in to a new account and store it (existing login untouched; defaults to the email as the name) |
206
207
  | `cxs import [name]` | Import the account currently in `~/.codex` |
207
208
  | `cxs add-key <name> [key]` | Register an OpenAI API-key account (falls back to `$OPENAI_API_KEY`) |
208
209
  | `cxs list` | List accounts: active marker, email, plan, priority, limit status, usage % |
209
210
  | `cxs usage [name]` | Per-account usage dashboard: 5h/weekly gauge bars, reset countdowns, next rotation pick (alias: `status`) |
210
- | `cxs chat` | **Interactive prompt loop (Claude Code-style)**: each turn runs through rotation and resumes the same codex session, so the conversation survives account switches. Slash commands inside: `/usage /use /next /model /new /quit` |
211
+ | `cxs chat [--simple]` | Launch the same persistent prompt; `--simple` skips the full-screen landing. Use `/paste` for multiline input |
211
212
  | `cxs watch` | Live interactive dashboard — refreshes every 5s; keys: `↑/↓` select, `s` switch, `e` enable/disable, `p` probe, `q` quit |
212
213
  | `cxs probe [name]` | Warm up the usage gauges with one minimal request per account (costs a few tokens) |
213
214
  | `cxs log [count]` | Recent activity: account switches, limits hit, rotations, probes |
215
+ | `cxs history [count]` | Work history: request, result, account flow, duration, and changed files |
216
+ | `cxs history show <ID\|latest>` | Full request, per-account attempts, and Git workspace changes for one run |
214
217
  | `cxs use <name>` | Switch the active account |
215
218
  | `cxs current` | Show the active account |
216
219
  | `cxs next` | Switch to the next account in rotation order (wraps around) |
@@ -221,13 +224,17 @@ cxs list # per-account 5h/week usage columns
221
224
  | `cxs model [name]` | Set the default model injected into `run`/`exec` (`default` to reset) |
222
225
  | `cxs threshold [5h%] [wk%]` | Rotate to the next account when usage reaches these percents (default 95; one value sets both) |
223
226
  | `cxs reasoning <show\|concise\|hide>` | How much model reasoning ("thinking") to print during runs — `hide` for clean output, `concise` for one-line summaries |
227
+ | `cxs output <auto\|compact\|raw>` | Output readability: `auto` folds intermediate diffs in a TTY and shows the final result plus work summary; pipes stay raw |
228
+ | `cxs memory [command]` | Manage persistent context: `shared` across accounts, per-account `isolated`, or `off`; supports `add/show/path` |
229
+ | `cxs sandbox <read-only\|write\|write+net\|full>` | File access for exec/chat — `write` edits files in cwd, `write+net` also allows ssh/curl/network, `full` disables the sandbox |
224
230
  | `cxs patterns [add/remove]` | Custom regex patterns treated as rate-limit errors |
225
231
  | `cxs export <file>` | Back up all accounts + settings (⚠️ contains tokens — treat like a password) |
226
232
  | `cxs restore <file>` | Restore accounts from a backup (for moving machines) |
227
233
  | `cxs completion <bash\|zsh>` | Print a shell completion script |
228
234
  | `cxs <anything else>` | Forwarded to codex under the managed account — `cxs resume`, `cxs goal ...`, `cxs apply` all work like their codex counterparts |
229
- | `cxs server [--port N]` | **EXPERIMENTAL** local proxy (teamclaude-style): swaps credentials per request, retries 429s on the next account, and feeds usage gauges live from response headers |
230
- | `cxs run --proxy [args]` | Run codex routed through the local proxy — per-request rotation even inside interactive sessions |
235
+ | `cxs server [--port N]` | **EXPERIMENTAL** local proxy (teamclaude-style): rotates on quota 429s, retries short throttles on the same account, and collects live usage |
236
+ | `cxs server status` | Check proxy reachability and whether per-request rotation is active |
237
+ | `cxs run --proxy [args]` | Use the proxy when available and fall back to direct mode; add `--require-proxy` for strict mode |
231
238
  | `cxs remove <name>` | Delete an account |
232
239
  | `cxs rename <old> <new>` | Rename an account |
233
240
  | `cxs disable / enable <name>` | Temporarily exclude from / restore to rotation |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carjms/codexswitch",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "description": "Multi-account manager for OpenAI Codex CLI with quota-based rotation (inspired by KarpelesLab/teamclaude)",
5
5
  "license": "MIT",
6
6
  "repository": {