@bman654/clodex 2.7.0 → 2.8.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 -2
- package/dist/{chunk-WZXTVKFX.js → chunk-J7WXOD2K.js} +2 -1
- package/dist/claude-wrapper.js +1 -1
- package/dist/cli.js +487 -25
- package/dist/cli.js.map +1 -1
- package/docs/credential-helpers.md +50 -2
- package/package.json +1 -1
- /package/dist/{chunk-WZXTVKFX.js.map → chunk-J7WXOD2K.js.map} +0 -0
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ clodex claude # 5. launch Claude Code on an OpenAI model
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
1. **Install** — puts the `clodex` command on your PATH.
|
|
33
|
-
2. **Sign in** — opens a device-code OAuth flow for your ChatGPT/Codex plan; the token is stored in your OS credential store. (API-key users: `clodex providers add` instead.)
|
|
33
|
+
2. **Sign in** — opens a device-code OAuth flow for your ChatGPT/Codex plan; the token is stored in your OS credential store. If your workspace admin has disabled device code authorization, add `--browser` to sign in through your browser instead. (API-key users: `clodex providers add` instead.)
|
|
34
34
|
3. **Pick models** — an interactive manager for favorites (max 20) and short aliases like `sol` so you do not need to type the long names. Favorites drive the `/model` switch menu, proxy-mode routing, and the patcher.
|
|
35
35
|
4. **Patch** *(optional but recommended for proxy mode)* — bakes your favorites and aliases into the Claude Code binary so they pass model validation, appear in `/model`, and report their real context windows. Re-run after each `claude` update; `clodex patch --restore` undoes it. This step is required if you want to use clodex-routed models as subagents via the Agent tool.
|
|
36
36
|
5. **Launch** — starts Claude Code bridged to the model you choose.
|
|
@@ -205,6 +205,10 @@ Enabling this feature executes that JavaScript with your full user permissions;
|
|
|
205
205
|
|
|
206
206
|
The module must default-export an array. Each site has a unique lowercase `id` and an `apply` function that returns the complete source and emits the generated `marker` exactly once when it applies:
|
|
207
207
|
|
|
208
|
+
The `source` your `apply` receives is every JavaScript module in the binary joined together, with a ``/*clodex:module-boundary`;{}"]*/`` line between them. This is true of every Claude Code version — a pre-2.1.242 binary carries the bundle plus five small helper modules; a 2.1.242-or-later one carries the bundle split across roughly 1,370. Match and replace as you always have; just do not add or remove one of those lines, or the whole patch is refused. (The punctuation in the marker is there so that a wildcard bounded by a character class cannot run across a module boundary.)
|
|
209
|
+
|
|
210
|
+
If your transform works by **position** rather than by matching an anchor, mind where it lands: text prepended to `source` goes into the first module and text appended to it goes into the last, and neither is necessarily the module that runs at startup. Anchor your edit to text you match, the way the examples below do.
|
|
211
|
+
|
|
208
212
|
```js
|
|
209
213
|
export default [
|
|
210
214
|
{
|
|
@@ -273,7 +277,7 @@ Two things worth knowing about the numbers:
|
|
|
273
277
|
| --- | --- |
|
|
274
278
|
| *(none)* | Provider hub wizard |
|
|
275
279
|
| `add` | Add OpenAI or OpenCode Go with an API key, or sign in with ChatGPT |
|
|
276
|
-
| `auth openai` | Sign in with ChatGPT/Codex-plan OAuth (device code) |
|
|
280
|
+
| `auth openai` | Sign in with ChatGPT/Codex-plan OAuth (device code; `--browser` for workspaces that disable device codes) |
|
|
277
281
|
| `list` | Show configured providers |
|
|
278
282
|
| `remove <id>` | Remove a provider by id |
|
|
279
283
|
| `refresh-models [id]` | Update cached model lists |
|
|
@@ -1708,6 +1708,7 @@ export {
|
|
|
1708
1708
|
getInstalledClaudeVersion,
|
|
1709
1709
|
tcpListenerUrlHost,
|
|
1710
1710
|
waitForTcpListenerCandidate,
|
|
1711
|
+
waitForTcpListener,
|
|
1711
1712
|
listenTcpServer,
|
|
1712
1713
|
isDiscoveryDisabled,
|
|
1713
1714
|
registerServerRuntimeState,
|
|
@@ -1722,4 +1723,4 @@ export {
|
|
|
1722
1723
|
wrapperRequiresServer,
|
|
1723
1724
|
computeWrapperEnv
|
|
1724
1725
|
};
|
|
1725
|
-
//# sourceMappingURL=chunk-
|
|
1726
|
+
//# sourceMappingURL=chunk-J7WXOD2K.js.map
|
package/dist/claude-wrapper.js
CHANGED