Preserved native OpenAI Responses reasoning metadata across multi-turn requests so reasoning items replay without AI SDK Non-OpenAI reasoning parts are not supported warnings.
Silently omitted legacy OpenAI reasoning parts whose replay metadata was already lost, matching the provider’s existing behavior without emitting unusable-content warnings.
Internal
Added real API regression coverage for reasoning metadata persistence and replay with openai/gpt-5.6-luna.
Added GPT-5.6 Luna, Sol, and Terra model metadata, reasoning levels, pricing, and OpenAI Codex OAuth support.
Exported concrete pending, running, completed, error, skipped, aborted, and terminal tool-call part schemas and their corresponding TypeScript types.
Added skipped and aborted support to the terminal tool.execution.end event contract.
Changed
Expanded the OpenAI Codex provider with deferred tools, replay metadata, usage reporting, and grammar-constrained custom tools.
Preserved Aikit’s existing tool-call event contract while adding the new Codex provider capabilities.
Made tool execution lifecycle events self-contained: start, update, and end events now carry messageId, partIndex, and a complete pending, running, or terminal toolCall part.
Breaking Changes
Replaced the flattened ToolCallInFlight fields on tool.execution.start, tool.execution.update, and tool.execution.end with the complete tool-call part under event.toolCall. Consumers must read call identity and lifecycle data from event.toolCall.
Added OpenAI Codex support: authenticate with a ChatGPT Plus/Pro subscription via OAuth (no API key required) and stream responses, tool calls, and reasoning through a dedicated provider. Adds the openai-codex protocol to the model catalog.
Added the aikit auth --openai-codex CLI for managing Codex OAuth credentials, including --status, --refresh, and --logout.
Added the @codeworksh/aikit/oauth/openai/codex subpath export exposing the OAuth client, credential storage, and authorization-flow helpers so the Codex login can be embedded in your own app or server callback route.
Internal
Reorganized the test suite into deterministic unit tests (test/) and opt-in live-provider end-to-end suites (test/e2e/, run via pnpm test:e2e), so the default pnpm test no longer calls paid provider APIs.
Added offline unit coverage for streaming-JSON repair, Unicode surrogate sanitization, the event stream, context-overflow detection, usage and cost mapping, multi-model message transforms, model thinking-level resolution, and the Codex OAuth helpers.
Replaced the custom LLM protocol with the Vercel AI SDK (ai, @ai-sdk/*). This serves as the new foundational layer for all model interactions, streaming, and provider routing, unlocking native support for Anthropic, Google, Google Vertex AI, OpenAI, xAI, OpenRouter, and other OpenAI-compatible APIs out of the box.
Changed
Standardized stream handling, tool calling, and messaging around the Vercel AI SDK primitives rather than maintaining a bespoke protocol.
Improved test coverage across the package to ensure robust behavior with the new Vercel AI SDK integration.
Fixed
Addressed various TypeScript type mismatch issues regarding the model signatures and the newly integrated AI SDK objects.
Breaking Changes
The stateful Agent and higher-level agent wrapper modules have been completely removed to simplify the package’s scope. The toolkit now focuses strictly on foundational AI capabilities, relying on the consumers to implement the stateful execution harness and specific agent loops.