Added OpenAI Completions API support to @codeworksh/aikit, including streaming responses, tool-call handling, and compatibility switches for OpenAI-compatible providers.
Changed
Extended the model and provider registry to support runtime protocol overrides and custom model transforms for future provider-specific expansion.
Updated the exa example to run against the OpenAI completions flow and simplified example result rendering to reduce response noise.
Fixed
Fixed TypeScript issues around the new OpenAI completions integration.
Fixed base URL handling for OpenAI-compatible completions providers, including canonical fallback behavior when the catalog omits an explicit OpenAI base URL.
Introduced the core AI toolkit with agent loops, streaming, message primitives, model catalog support, provider abstractions, and an Anthropic provider.
Added a stateful Agent.create(...) instance API on top of the core loop.
Expanded package coverage with tests for public API behavior, instance state, loop continuation, and self-contained test paths.
Changed
Standardized runtime and stream event names to dot notation for a more consistent public API.
Improved async agent emit flow and run or continue-loop behavior.
Simplified internal generic usage while keeping the public tool authoring API ergonomic, including cleaner Message.defineTool(...) and Agent.defineTool(...) patterns.
Fixed
Fixed state persistence so tool-driven mutations continue to update assistant messages after message.end.
Internal
Applied Vite+-driven lint cleanup across provider and stream internals.