@bitkyc08/opencodex 2.29.0 → 2.31.0-preview.20260822

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 (68) hide show
  1. package/README.md +5 -5
  2. package/gui/dist/assets/index-DyWYnr-t.js +102 -0
  3. package/gui/dist/index.html +1 -1
  4. package/package.json +3 -3
  5. package/src/adapters/cursor/cursor-errors.ts +65 -6
  6. package/src/adapters/cursor/discovery.ts +29 -2
  7. package/src/adapters/cursor/effort-map.ts +6 -0
  8. package/src/adapters/cursor/h2-pool.ts +123 -0
  9. package/src/adapters/cursor/images.ts +704 -0
  10. package/src/adapters/cursor/live-models.ts +21 -26
  11. package/src/adapters/cursor/live-transport.ts +239 -8
  12. package/src/adapters/cursor/native-exec-common.ts +17 -0
  13. package/src/adapters/cursor/native-exec.ts +9 -4
  14. package/src/adapters/cursor/protobuf-events.ts +5 -1
  15. package/src/adapters/cursor/protobuf-request.ts +46 -9
  16. package/src/adapters/cursor/request-builder.ts +29 -14
  17. package/src/adapters/cursor/tool-definitions.ts +20 -0
  18. package/src/adapters/cursor/transport.ts +10 -0
  19. package/src/adapters/cursor/types.ts +8 -1
  20. package/src/adapters/cursor.ts +23 -5
  21. package/src/adapters/google.ts +16 -3
  22. package/src/adapters/openai-responses.ts +66 -20
  23. package/src/adapters/xai-web-search.ts +185 -0
  24. package/src/cli/agent.ts +2 -1
  25. package/src/cli/dispatch.ts +2 -2
  26. package/src/cli/doctor.ts +89 -0
  27. package/src/cli/help.ts +2 -0
  28. package/src/cli/registry.ts +7 -2
  29. package/src/codex/auth-context.ts +41 -2
  30. package/src/codex/catalog/effort.ts +1 -1
  31. package/src/codex/catalog/parsing.ts +2 -0
  32. package/src/codex/catalog/provider-fetch.ts +20 -5
  33. package/src/codex/coordinator-doctor.ts +332 -0
  34. package/src/codex/features.ts +58 -0
  35. package/src/codex/inject-coordination.ts +39 -6
  36. package/src/codex/transition-state.ts +12 -12
  37. package/src/generated/compatibility-version.json +86 -58
  38. package/src/lib/bun-stream-caps.ts +7 -4
  39. package/src/lib/errors.ts +8 -2
  40. package/src/oauth/cursor.ts +21 -0
  41. package/src/providers/command-code-efforts.ts +7 -0
  42. package/src/providers/cursor-pool.ts +72 -0
  43. package/src/providers/derive.ts +3 -0
  44. package/src/providers/fastwire.ts +12 -1
  45. package/src/providers/openai-sidecar.ts +1 -0
  46. package/src/providers/quota.ts +98 -25
  47. package/src/providers/registry.ts +115 -10
  48. package/src/providers/service-tier.ts +22 -7
  49. package/src/responses/custom-tool-compat.ts +24 -8
  50. package/src/responses/namespace-tool-compat.ts +2 -3
  51. package/src/router.ts +3 -0
  52. package/src/server/chat-completions.ts +4 -0
  53. package/src/server/chat-native.ts +20 -0
  54. package/src/server/management/agent-settings-routes.ts +16 -5
  55. package/src/server/management/config-routes.ts +25 -5
  56. package/src/server/management/vision-sidecar-options.ts +54 -19
  57. package/src/server/responses/compact.ts +1 -2
  58. package/src/server/responses/core.ts +54 -13
  59. package/src/service.ts +122 -14
  60. package/src/types/config.ts +9 -3
  61. package/src/types/provider.ts +6 -0
  62. package/src/usage/cost.ts +52 -38
  63. package/src/usage/expected-prices.ts +79 -9
  64. package/src/vision/backends.ts +97 -0
  65. package/src/vision/eligibility.ts +43 -22
  66. package/src/vision/index.ts +73 -5
  67. package/src/vision/routed-describe.ts +175 -0
  68. package/gui/dist/assets/index-BNESwCzn.js +0 -102
package/README.md CHANGED
@@ -58,12 +58,12 @@ ocx start # or `ocx service` to run it in the backgro
58
58
  ```
59
59
 
60
60
  <details>
61
- <summary>Install from source (latest dev, Bun canary)</summary>
61
+ <summary>Install from source (latest dev)</summary>
62
62
 
63
63
  **macOS / Linux:**
64
64
 
65
65
  ```bash
66
- curl -fsSL https://bun.sh/install | bash && ~/.bun/bin/bun upgrade --canary
66
+ curl -fsSL https://bun.sh/install | bash
67
67
  git clone https://github.com/lidge-jun/opencodex.git
68
68
  cd opencodex && ~/.bun/bin/bun install
69
69
  ~/.bun/bin/bun run src/cli/index.ts start
@@ -72,13 +72,13 @@ cd opencodex && ~/.bun/bin/bun install
72
72
  **Windows (PowerShell):**
73
73
 
74
74
  ```powershell
75
- irm bun.sh/install.ps1 | iex; bun upgrade --canary
75
+ irm bun.sh/install.ps1 | iex
76
76
  git clone https://github.com/lidge-jun/opencodex.git
77
77
  cd opencodex; bun install
78
78
  bun run src/cli/index.ts start
79
79
  ```
80
80
 
81
- Source install runs the latest `dev` branch with Bun canary. Memory ownership
81
+ Source install runs the latest `dev` branch. Memory ownership
82
82
  patches, runtime GC improvements, and unreleased fixes are available here before
83
83
  they reach the npm package.
84
84
 
@@ -208,7 +208,7 @@ Qwen Cloud, SiliconFlow, and more. Full list: `ocx init` or the
208
208
  ocx init # interactive setup (writes config, wires Codex, offers the shim)
209
209
  ocx start [--port 10100] # start the proxy in the foreground
210
210
  ocx stop # stop + restore native Codex
211
- ocx service [install|start|stop|status|uninstall|remove] # background service
211
+ ocx service [install|repair|restart|start|stop|status|uninstall|remove] # background service
212
212
  ocx codex-shim install # start the proxy on demand whenever `codex` launches
213
213
  ocx health [--json] # check immediate proxy liveness
214
214
  ocx ready [--json] [--wait [--timeout <seconds>]] # check post-sync readiness