@bitkyc08/opencodex 2.22.0 → 2.23.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/gui/dist/assets/{index-ClEcVlFO.js → index-rFWrIE11.js} +19 -19
- package/gui/dist/index.html +1 -1
- package/package.json +2 -2
- package/src/adapters/anthropic.ts +39 -7
- package/src/adapters/cursor/tool-definitions.ts +48 -0
- package/src/adapters/google.ts +18 -12
- package/src/adapters/openai-chat.ts +106 -13
- package/src/adapters/tool-call-id.ts +119 -0
- package/src/adapters/tool-catalog-nudge.ts +3 -0
- package/src/bridge.ts +16 -5
- package/src/chat/inbound.ts +5 -11
- package/src/claude/context-windows.ts +5 -1
- package/src/claude/desktop-3p.ts +11 -6
- package/src/claude/inbound.ts +39 -1
- package/src/claude/model-info.ts +28 -8
- package/src/cli/account-api.ts +5 -1
- package/src/cli/claude-desktop.ts +3 -0
- package/src/cli/config-command.ts +37 -14
- package/src/codex/app-server-restart-service.ts +1 -1
- package/src/codex/auth-api.ts +5 -0
- package/src/codex/auth-context.ts +43 -2
- package/src/codex/catalog/metadata.ts +55 -8
- package/src/codex/catalog/native-models.ts +32 -2
- package/src/codex/catalog/parsing.ts +21 -7
- package/src/codex/catalog/provider-fetch.ts +35 -7
- package/src/codex/catalog/sync.ts +40 -18
- package/src/codex/catalog-refresh-status.ts +21 -3
- package/src/codex/catalog.ts +1 -1
- package/src/codex/convergence-types.ts +23 -2
- package/src/codex/desired-state.ts +1 -1
- package/src/codex/inject.ts +38 -7
- package/src/codex/injected-marker.ts +28 -0
- package/src/codex/journal.ts +40 -1
- package/src/codex/management-convergence.ts +55 -2
- package/src/codex/quota-rejection.ts +61 -1
- package/src/codex/quota.ts +60 -6
- package/src/codex/routing.ts +30 -3
- package/src/combos/failover.ts +20 -0
- package/src/config.ts +271 -4
- package/src/generated/compatibility-version.json +86 -74
- package/src/grok/sync.ts +3 -1
- package/src/lab/artifacts/sanitize.ts +1 -1
- package/src/lab/live/manifest.ts +1 -1
- package/src/lib/codex-restart-contract.ts +1 -1
- package/src/lib/config-ownership.ts +1 -0
- package/src/lib/errors.ts +9 -0
- package/src/lib/lab-activation.ts +1 -1
- package/src/lib/optional-shutdown-hooks.ts +1 -1
- package/src/providers/quota.ts +10 -4
- package/src/providers/registry.ts +2 -2
- package/src/responses/parser.ts +42 -7
- package/src/responses/provider-opaque-metadata.ts +1 -1
- package/src/responses/thought-signature-replay.ts +261 -0
- package/src/router.ts +6 -1
- package/src/routing/compatibility/provider-slot.ts +1 -1
- package/src/routing/evaluator.ts +12 -2
- package/src/routing/health.ts +16 -5
- package/src/routing/history/schema.ts +1 -1
- package/src/routing/trace.ts +1 -1
- package/src/server/auth-cors.ts +56 -21
- package/src/server/chat-completions.ts +6 -2
- package/src/server/index.ts +5 -3
- package/src/server/management/agent-settings-routes.ts +26 -4
- package/src/server/management/context.ts +1 -1
- package/src/server/management/model-rows.ts +5 -0
- package/src/server/management/native-integration-routes.ts +4 -1
- package/src/server/management/provider-routes.ts +19 -0
- package/src/server/management/shared.ts +3 -3
- package/src/server/management-api.ts +13 -6
- package/src/server/passive-route-linker.ts +1 -1
- package/src/server/relay.ts +16 -0
- package/src/server/responses/compact.ts +10 -3
- package/src/server/responses/core.ts +160 -33
- package/src/server/responses/fetch-helpers.ts +34 -2
- package/src/server/responses/input-admission.ts +17 -9
- package/src/server/responses-undeclared-tool-guard.ts +153 -0
- package/src/server/system-env.ts +4 -2
- package/src/service.ts +14 -7
- package/src/types.ts +34 -0
package/src/types.ts
CHANGED
|
@@ -457,6 +457,17 @@ export interface OcxClaudeCodeConfig {
|
|
|
457
457
|
smallFastModel?: string;
|
|
458
458
|
/** Inbound model id remaps: exact id first, then date-stripped (`-\d{8}$`). */
|
|
459
459
|
modelMap?: Record<string, string>;
|
|
460
|
+
/**
|
|
461
|
+
* Explicit classifier model for Claude Code Auto Mode safety checks (e.g. "RelayA/claude-opus-5").
|
|
462
|
+
* When unset, bare classifier requests check modelMap, then same-provider affinity from
|
|
463
|
+
* `claudeCode.model`, then compatible Anthropic-adapter providers, and finally fallbacks.
|
|
464
|
+
*/
|
|
465
|
+
classifierModel?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Ordered fallback candidates for Claude Code Auto Mode classifier routing when the primary
|
|
468
|
+
* classifier route is not available.
|
|
469
|
+
*/
|
|
470
|
+
classifierFallbacks?: string[];
|
|
460
471
|
/**
|
|
461
472
|
* Inject ANTHROPIC_BASE_URL etc. into the macOS user domain via `launchctl setenv`
|
|
462
473
|
* so plain `claude` commands route through the proxy without `ocx claude`. Reverted
|
|
@@ -1375,6 +1386,14 @@ export interface OcxProviderConfig {
|
|
|
1375
1386
|
* link-local, or unique-local upstreams. Metadata endpoints remain blocked.
|
|
1376
1387
|
*/
|
|
1377
1388
|
allowPrivateNetwork?: boolean;
|
|
1389
|
+
/**
|
|
1390
|
+
* Pin the HTTP version used for upstream provider requests. Bun's fetch negotiates
|
|
1391
|
+
* HTTP/2 via TLS ALPN by default; some Cloudflare-fronted SSE endpoints hang on
|
|
1392
|
+
* HTTP/2 streaming responses (issue #1668). "http1.1" / "h1" forces HTTP/1.1,
|
|
1393
|
+
* "http2" / "h2" forces HTTP/2. Absent or "auto" keeps Bun's default negotiation
|
|
1394
|
+
* (current behavior unchanged). Only meaningful for https: base URLs.
|
|
1395
|
+
*/
|
|
1396
|
+
upstreamHttpVersion?: UpstreamHttpVersion;
|
|
1378
1397
|
/** Keep provider settings on disk but exclude it from routing and model/catalog listings. */
|
|
1379
1398
|
disabled?: boolean;
|
|
1380
1399
|
/**
|
|
@@ -1668,6 +1687,21 @@ export interface OcxProviderConfig {
|
|
|
1668
1687
|
nativeLocalExec?: "off" | "codex-sandbox" | "on";
|
|
1669
1688
|
}
|
|
1670
1689
|
|
|
1690
|
+
/**
|
|
1691
|
+
* Accepted values for the per-provider upstream HTTP-version pin (#1668). Shared by the
|
|
1692
|
+
* zod load schema, the management write boundary (POST/PATCH), and the fetch runtime, so
|
|
1693
|
+
* a value that one boundary accepts can never be rejected by another.
|
|
1694
|
+
*/
|
|
1695
|
+
export const UPSTREAM_HTTP_VERSION_VALUES = [
|
|
1696
|
+
"auto",
|
|
1697
|
+
"http1.1",
|
|
1698
|
+
"h1",
|
|
1699
|
+
"http2",
|
|
1700
|
+
"h2",
|
|
1701
|
+
] as const;
|
|
1702
|
+
|
|
1703
|
+
export type UpstreamHttpVersion = (typeof UPSTREAM_HTTP_VERSION_VALUES)[number];
|
|
1704
|
+
|
|
1671
1705
|
export const REASONING_SUMMARY_DELIVERY_VALUES = [
|
|
1672
1706
|
"sequential",
|
|
1673
1707
|
"sequential_cutoff",
|