@bman654/clodex 2.11.7 → 2.12.1
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.md +6 -3
- package/dist/cli.js +301 -44
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,9 +198,9 @@ Patch the installed Claude Code binary so clodex favorites and aliases are first
|
|
|
198
198
|
| `--disable-local-patches` | Disable local patches and rebuild from pristine bytes without them |
|
|
199
199
|
| `--help` | Help |
|
|
200
200
|
|
|
201
|
-
On Windows, when Claude Code was installed with `npm install -g`, the `claude` on your PATH is a small launcher script (`claude.cmd`, `claude.ps1`, and an extensionless one) rather than the program itself; `clodex patch` follows it to the program and patches that. (On macOS and Linux npm makes a symlink instead, which always worked.) If the launcher cannot be followed — its program moved or removed, or it names two different programs — `clodex patch` stops without touching anything and tells you to set `
|
|
201
|
+
On Windows, when Claude Code was installed with `npm install -g`, the `claude` on your PATH is a small launcher script (`claude.cmd`, `claude.ps1`, and an extensionless one) rather than the program itself; `clodex patch` follows it to the program and patches that. (On macOS and Linux npm makes a symlink instead, which always worked.) If the launcher cannot be followed — its program moved or removed, or it names two different programs — `clodex patch` stops without touching anything and tells you to set `TWEAKCC_CC_INSTALLATION_PATH` to the program directly.
|
|
202
202
|
|
|
203
|
-
The patch map is built from your favorites and aliases; context windows come from provider metadata. A pristine per-version backup is kept, and a manifest (`~/.clodex/patch-state.json`) makes re-runs no-ops until your config or Claude Code version changes — then the binary is restored first and re-patched fresh. `clodex claude` checks patch freshness at launch and offers to re-patch (a non-blocking notice when not interactive). Re-run `clodex patch` after every `claude` update.
|
|
203
|
+
The patch map is built from your favorites and aliases; context windows come from provider metadata. A pristine per-version backup is kept — recorded against the install it was made for, so a machine with two installs of one Claude Code version restores each from its own bytes — and a manifest (`~/.clodex/patch-state.json`) makes re-runs no-ops until your config or Claude Code version changes — then the binary is restored first and re-patched fresh. `clodex claude` checks patch freshness at launch and offers to re-patch (a non-blocking notice when not interactive). Re-run `clodex patch` after every `claude` update.
|
|
204
204
|
|
|
205
205
|
#### Local patches (trusted code)
|
|
206
206
|
|
|
@@ -337,7 +337,10 @@ clodex --version # version
|
|
|
337
337
|
`CLODEX_CREDENTIAL_HELPER` to an absolute executable path to use an external
|
|
338
338
|
secure store instead; see [credential helpers](docs/credential-helpers.md).
|
|
339
339
|
- Proxied routes forward configured provider headers for API-key and OAuth authentication. Anonymous routes preserve non-credential headers while removing authorization, API-key, cookie, token, secret, and credential-bearing header names before dispatch.
|
|
340
|
-
- `CLODEX_CLAUDE_PATH` overrides Claude Code
|
|
340
|
+
- `CLODEX_CLAUDE_PATH` overrides which Claude Code gets **launched**. It does not choose what
|
|
341
|
+
`clodex patch` writes to — set `TWEAKCC_CC_INSTALLATION_PATH` for that, and `clodex patch`
|
|
342
|
+
says so when `CLODEX_CLAUDE_PATH` points somewhere else. The two are separate because a
|
|
343
|
+
`CLODEX_CLAUDE_PATH` aimed at a wrapper script is right for launching and wrong for patching.
|
|
341
344
|
- **Codex service tier:** `CLODEX_SERVICE_TIER` accepts `fast` (normalized to
|
|
342
345
|
`priority`), `priority`, `flex`, `auto`, or `default`. Clodex requests the
|
|
343
346
|
resolved value only after selecting a ChatGPT/Codex OAuth route; OpenAI
|