@moxxy/cli 0.29.0 → 0.31.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.
Files changed (3) hide show
  1. package/README.md +35 -1
  2. package/dist/bin.js +51026 -57229
  3. package/package.json +3 -7
package/README.md CHANGED
@@ -75,7 +75,41 @@ Or run it without installing:
75
75
  npx @moxxy/cli init
76
76
  ```
77
77
 
78
- Requirements: Node.js 20.10 or later. An API key for a supported provider (Anthropic, OpenAI), or sign into ChatGPT via `moxxy login openai-codex`.
78
+ Requirements: Node.js 20.10 or later. Use an API key for Anthropic/OpenAI, sign into ChatGPT with `moxxy login openai-codex`, or reuse an authenticated Claude Code Pro/Max subscription as described below.
79
+
80
+ ### Claude Code (Pro/Max subscription, no API key)
81
+
82
+ 1. Install the official Claude CLI so `claude` is on `PATH` (or set `CLAUDE_CODE_EXECUTABLE=/absolute/path/to/claude`).
83
+ 2. Run `claude auth login` or `moxxy login claude-code`, then confirm with `claude auth status` and `moxxy doctor`.
84
+ 3. Select `claude-code` in `moxxy init`. It defaults to `claude-sonnet-4-6`; override per run with `--model`, or persist `plugins.provider.items.claude-code.model`.
85
+
86
+ The default transport disables Claude's internal tools. To opt into an isolated coding task, configure the provider item explicitly:
87
+
88
+ ```yaml
89
+ plugins:
90
+ provider:
91
+ default: claude-code
92
+ items:
93
+ claude-code:
94
+ model: claude-sonnet-4-6
95
+ config:
96
+ mode: native-tools
97
+ permissionMode: acceptEdits
98
+ allowedTools: [Read, Write, Edit]
99
+ ```
100
+
101
+ `allowedTools` and `permissionMode` are forwarded to and enforced by Claude CLI. Moxxy's permission resolver, `--allow-tools`, and isolators govern moxxy-registered tools only; they do **not** govern Claude's internal native tools. Claude also owns its login files—moxxy neither reads nor stores subscription credentials in its vault.
102
+
103
+ Desktop and interactive CLI setup can start sign-in. Headless runners/services generally cannot complete browser or TTY authentication: authenticate first as the same OS account that runs the service, make `claude` available in that account's service `PATH` (or set the executable path), and restart it. Recovery commands are `claude auth status`, `claude auth login`, `moxxy login claude-code`, and `moxxy doctor`.
104
+
105
+ Contributors with an authenticated subscription can run the opt-in, no-API-key smoke gate after `pnpm build`:
106
+
107
+ ```sh
108
+ node scripts/e2e-claude-cli-live.mjs
109
+ # optional: MOXXY_CLAUDE_E2E_MODEL=claude-opus-4-6 node scripts/e2e-claude-cli-live.mjs
110
+ ```
111
+
112
+ It skips clearly when `claude` is missing or signed out, streams a real text prompt, and performs its native-tool assertion only inside a generated temporary git repository.
79
113
 
80
114
  ## Quickstart
81
115