v0.3.16
v0.3.16
feat(codex-cli): serve the Responses API dialect alongside chat
The codex-cli seat drove the codex binary via subprocess but advertised
only chat/completions, so a caller speaking the Responses API natively
could not route to it. This release adds the missing pieces so codex-cli
now serves both chat/completions and responses (the same pair openai
serves).
- Catalog: endpoints=(chat/completions, responses) for codex-cli.
- Seat server: a /responses route that translates the Responses wire
(input -> messages, instructions -> system prompt, reasoning.effort ->
CLI effort) and builds a response object back (to_response maps tool
calls to function_call output items). Streaming emits the canonical
lifecycle events (response.created -> output_text.delta ->
response.completed). - Local grid proxy: /v1/responses route added so it is reachable in
local mode, not only via the relay in remote mode.
All changes are additive: existing chat/messages paths are unchanged.