@bitkyc08/opencodex 2.43.0 → 2.44.0-preview.20260907
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 +25 -17
- package/gui/dist/assets/index-DKuO8pgN.js +115 -0
- package/gui/dist/assets/index-ltx3L-WS.css +1 -0
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/adapters/command-code.ts +23 -2
- package/src/adapters/cursor/native-exec.ts +63 -11
- package/src/adapters/cursor/tool-definitions.ts +1 -1
- package/src/adapters/cursor/tool-schemas.ts +59 -0
- package/src/adapters/kiro.ts +54 -8
- package/src/adapters/openai-chat.ts +23 -6
- package/src/adapters/openai-responses.ts +3 -1
- package/src/adapters/opencode-go.ts +35 -0
- package/src/claude/agents-inject.ts +12 -5
- package/src/claude/desktop-3p-library.ts +89 -0
- package/src/claude/desktop-3p.ts +166 -95
- package/src/claude/desktop-discovery-inputs.ts +44 -0
- package/src/claude/desktop-profile.ts +1 -1
- package/src/claude/desktop-remote-store-artifact.ts +185 -0
- package/src/claude/desktop-remote-store-io.ts +91 -0
- package/src/claude/desktop-remote-store-state.ts +127 -0
- package/src/claude/desktop-remote-store.ts +269 -0
- package/src/claude/inbound-model-options.ts +10 -2
- package/src/claude/inbound-records.ts +7 -0
- package/src/claude/inbound.ts +1 -1
- package/src/claude/model-info.ts +16 -3
- package/src/cli/account-api.ts +7 -1
- package/src/cli/aside-profiles.ts +17 -0
- package/src/cli/capabilities.ts +39 -0
- package/src/cli/claude-agent-startup-sync.ts +3 -1
- package/src/cli/claude-desktop.ts +127 -18
- package/src/cli/connect.ts +27 -14
- package/src/cli/dispatch.ts +30 -16
- package/src/cli/export-command.ts +3 -1
- package/src/cli/index.ts +28 -16
- package/src/cli/integrations.ts +46 -12
- package/src/cli/opencode.ts +11 -4
- package/src/cli/runtime-api.ts +7 -2
- package/src/cli/uninstall-client-state.ts +78 -0
- package/src/client/connect.ts +476 -223
- package/src/client/hub-client.ts +81 -0
- package/src/client/hub-relay.ts +38 -6
- package/src/client/lifecycle-lock.ts +129 -0
- package/src/client/state.ts +71 -42
- package/src/clients/aside-profiles.ts +224 -0
- package/src/codex/account-lifecycle.ts +5 -9
- package/src/codex/auth-api.ts +50 -4
- package/src/codex/catalog/metadata.ts +0 -2
- package/src/codex/catalog/provider-fetch.ts +7 -5
- package/src/codex/catalog/sync.ts +88 -24
- package/src/codex/convergence.ts +2 -0
- package/src/codex/inject.ts +45 -14
- package/src/codex/journal.ts +6 -6
- package/src/codex/quota-refresh-outcome.ts +27 -0
- package/src/codex/shim.ts +7 -1
- package/src/combos/resolve.ts +10 -7
- package/src/config.ts +18 -5
- package/src/generated/compatibility-version.json +209 -105
- package/src/images/loop.ts +5 -2
- package/src/integrations/aside-profile-context.ts +270 -0
- package/src/integrations/aside-profile-journal.ts +229 -0
- package/src/integrations/aside-profiles.ts +176 -0
- package/src/integrations/catalog-refresh.ts +40 -0
- package/src/integrations/config-io.ts +16 -1
- package/src/integrations/owned-refresh.ts +14 -2
- package/src/integrations/state.ts +3 -1
- package/src/integrations/writer.ts +3 -1
- package/src/lab/fabric/producer-isolate.ts +84 -46
- package/src/lib/account-selection-events.ts +32 -0
- package/src/lib/errors.ts +9 -1
- package/src/lib/provider-outbound.ts +2 -45
- package/src/lib/proxy-env.ts +67 -0
- package/src/oauth/account-quota-rank.ts +9 -1
- package/src/oauth/anthropic-routing.ts +91 -23
- package/src/oauth/generic-account-failover.ts +15 -53
- package/src/oauth/index.ts +67 -68
- package/src/oauth/pool-settings-capability.ts +2 -1
- package/src/oauth/store.ts +91 -7
- package/src/oauth/types.ts +8 -0
- package/src/providers/api-key-selection.ts +110 -0
- package/src/providers/api-keys.ts +38 -31
- package/src/providers/context-cap.ts +27 -3
- package/src/providers/key-failover.ts +27 -17
- package/src/providers/provider-id-rewrite.ts +10 -8
- package/src/providers/registry.ts +1 -0
- package/src/responses/custom-tool-compat.ts +10 -0
- package/src/responses/function-call-compat.ts +173 -0
- package/src/responses/namespace-tool-compat.ts +27 -4
- package/src/responses/parser.ts +8 -0
- package/src/responses/task-input.ts +36 -0
- package/src/responses/tool-name-aliases.ts +79 -0
- package/src/router.ts +2 -0
- package/src/routing/capability.ts +10 -3
- package/src/routing/compatibility/assemble.ts +16 -1
- package/src/routing/evaluator.ts +5 -1
- package/src/server/auth-cors.ts +3 -0
- package/src/server/chat-native.ts +44 -9
- package/src/server/claude-messages.ts +71 -36
- package/src/server/grok-responses-snapshot-repair.ts +333 -0
- package/src/server/index.ts +26 -10
- package/src/server/management/account-selection-stream.ts +70 -0
- package/src/server/management/aside-profile-routes.ts +231 -0
- package/src/server/management/config-routes.ts +36 -41
- package/src/server/management/context.ts +3 -0
- package/src/server/management/integration-routes.ts +61 -3
- package/src/server/management/logs-usage-routes.ts +1 -0
- package/src/server/management/model-routes.ts +20 -9
- package/src/server/management/model-rows.ts +10 -2
- package/src/server/management/oauth-account-routes.ts +7 -0
- package/src/server/management/provider-routes.ts +10 -8
- package/src/server/management/route-registry.ts +20 -2
- package/src/server/management-auth.ts +16 -0
- package/src/server/relay-eager.ts +17 -5
- package/src/server/relay.ts +43 -4
- package/src/server/request-log.ts +29 -1
- package/src/server/responses/agent-task-recovery-cache.ts +11 -0
- package/src/server/responses/agent-task-recovery.ts +24 -4
- package/src/server/responses/codex-ws-pool.ts +4 -4
- package/src/server/responses/codex-ws-session.ts +2 -2
- package/src/server/responses/collaboration.ts +2 -1
- package/src/server/responses/combo-stream-preflight.ts +26 -7
- package/src/server/responses/core.ts +668 -151
- package/src/server/responses/fetch-helpers.ts +6 -1
- package/src/server/responses/ws-upstream.ts +8 -3
- package/src/server/responses-custom-tool-repair.ts +29 -9
- package/src/server/responses-function-tool-repair.ts +183 -0
- package/src/server/responses-snapshot-codec.ts +14 -0
- package/src/server/responses-snapshot-repair.ts +1 -13
- package/src/server/responses-undeclared-tool-guard.ts +1 -68
- package/src/server/sse-payload-rewrite.ts +3 -1
- package/src/service.ts +6 -2
- package/src/types/config.ts +23 -16
- package/src/types/provider.ts +14 -3
- package/src/types/request.ts +2 -0
- package/src/usage/log.ts +9 -0
- package/src/web-search/loop.ts +5 -2
- package/gui/dist/assets/index-DS1NE4Jn.css +0 -1
- package/gui/dist/assets/index-Djowl68T.js +0 -112
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Two commands, and every one of them runs any LLM you point it at.</p>
|
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
npm install -g @bitkyc08/opencodex
|
|
14
|
-
ocx start
|
|
14
|
+
ocx start
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
<table>
|
|
@@ -78,14 +78,29 @@ account while existing threads stay pinned to the account that started them.
|
|
|
78
78
|
|
|
79
79
|
## Quick start
|
|
80
80
|
|
|
81
|
-
###
|
|
81
|
+
### Personal install
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
84
|
npm install -g @bitkyc08/opencodex # Node 18+; the Bun runtime is bundled automatically
|
|
85
|
-
ocx start
|
|
85
|
+
ocx start # proxy + dashboard on localhost:10100
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Use `ocx service` to run it in the background.
|
|
89
|
+
|
|
90
|
+
Open **http://localhost:10100** and configure everything in the web dashboard — add providers
|
|
91
|
+
(40+ built-ins, or any OpenAI-compatible endpoint), pick models, manage accounts. `ocx gui`
|
|
92
|
+
re-opens the dashboard at any time.
|
|
93
|
+
It can also manage a **ChatGPT account pool** for Codex auth. Add multiple ChatGPT / Codex accounts,
|
|
94
|
+
refresh their 5h / weekly / 30d quota in the dashboard. Under quota routing, new sessions can use
|
|
95
|
+
the lowest-usage healthy account; round-robin and fill-first use their own policies. Existing Codex
|
|
96
|
+
threads normally retain affinity to the account that started them, so long SSH, tmux, or
|
|
97
|
+
mobile-connected sessions do not jump accounts mid-conversation — but quota re-evaluation, failover,
|
|
98
|
+
account exclusion, affinity expiry, or 401/403 and 429 recovery can rebind them. Give the accounts a
|
|
99
|
+
selection order when one of them — usually your Codex Desktop login — should only be reached for
|
|
100
|
+
once the others are drained.
|
|
101
|
+
|
|
102
|
+
<details>
|
|
103
|
+
<summary>Docker Compose</summary>
|
|
89
104
|
|
|
90
105
|
The repository ships a digest-pinned, non-root Compose build. With Git and Bun installed on the
|
|
91
106
|
host, generate the canonical compatibility manifest before every image build, then initialize
|
|
@@ -116,6 +131,8 @@ image, Compose file, environment, or shell arguments. See the
|
|
|
116
131
|
[Remote Hub deployment guide](https://opencodex.me/guides/remote-hub/#docker-compose) for provider
|
|
117
132
|
setup, authenticated acceptance checks, remote management, and rollback.
|
|
118
133
|
|
|
134
|
+
</details>
|
|
135
|
+
|
|
119
136
|
<details>
|
|
120
137
|
<summary>Install from source (latest dev)</summary>
|
|
121
138
|
|
|
@@ -143,19 +160,8 @@ they reach the npm package.
|
|
|
143
160
|
|
|
144
161
|
</details>
|
|
145
162
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
re-opens the dashboard at any time.
|
|
149
|
-
It can also manage a **ChatGPT account pool** for Codex auth. Add multiple ChatGPT / Codex accounts,
|
|
150
|
-
refresh their 5h / weekly / 30d quota in the dashboard. Under quota routing, new sessions can use
|
|
151
|
-
the lowest-usage healthy account; round-robin and fill-first use their own policies. Existing Codex
|
|
152
|
-
threads normally retain affinity to the account that started them, so long SSH, tmux, or
|
|
153
|
-
mobile-connected sessions do not jump accounts mid-conversation — but quota re-evaluation, failover,
|
|
154
|
-
account exclusion, affinity expiry, or 401/403 and 429 recovery can rebind them. Give the accounts a
|
|
155
|
-
selection order when one of them — usually your Codex Desktop login — should only be reached for
|
|
156
|
-
once the others are drained.
|
|
157
|
-
|
|
158
|
-
### For agents
|
|
163
|
+
<details>
|
|
164
|
+
<summary>For agents</summary>
|
|
159
165
|
|
|
160
166
|
```bash
|
|
161
167
|
npm install -g @bitkyc08/opencodex
|
|
@@ -172,6 +178,8 @@ when it is unreachable). `ocx status` / `ocx doctor` / `ocx health` report the r
|
|
|
172
178
|
> star this repository — that is the user's decision, never an agent's. The CLI suppresses the
|
|
173
179
|
> prompt for agent-driven runs and the API refuses them with `403 agent_consent_required`.
|
|
174
180
|
|
|
181
|
+
</details>
|
|
182
|
+
|
|
175
183
|
## Supported platforms
|
|
176
184
|
|
|
177
185
|
| OS | Status | Service manager |
|