Remove OPENAI_API_KEY as an OpenGateway credential fallback so the gateway only looks for OPENGATEWAY_API_KEY.
Add a provider catalog guard test that verifies each built-in provider only advertises credential env vars owned by that provider.
Move model pricing currency to provider-level costCurrency and keep numeric cost fields on provider catalog routes.
Split global model typing from provider route model typing so global model metadata stays free of cost data while provider routes can carry pricing.
Add first-party OpenAI route pricing examples and guard tests for provider-owned pricing, global-model pricing drift, and cost.currency regressions.
Make provider docs easier to scan, add top-level provider guidance with concrete brand examples, expand multi-model examples, and remove the standalone example-model-addition.toml file after merging its useful content into docs.
Move detailed provider catalog reference material from README into docs/provider-catalog with focused provider, model, and example pages.
Keep README lightweight with a minimal gateway example and links to the expanded documentation.
Make top-level credentialEnvVars the canonical provider descriptor field and normalize it into setup, validation, and preset metadata for existing runtime consumers.
Remove duplicated credential env-var declarations from provider TOML descriptors and add tests guarding README size, docs guardrails, single credential declarations, and credential fan-out.
Expand README provider catalog documentation with required vs optional fields, model limits, cost metadata, capabilities, transport overrides, setup, validation, usage, presets, discovery, and runtime notes.
Normalize provider descriptors to keep transportConfig, catalog discovery, preset badge, and model metadata in single TOML blocks with dotted keys.
Add provider catalog tests that guard against nested TOML section drift and verify dotted keys parse into the nested objects used by the loader.
- replace JSON provider/model descriptors with TOML definitions and global model metadata
- add provider discovery for OpenAI-compatible, gateway, and localhost catalog entries
- resolve global model references, first-party ownership, and per-model transport overrides
- update provider auth/header handling, dynamic discovery cache behavior, and provider command parsing
- harden file/search tools and align tests/docs/build embedding with the TOML catalog
* fix plan mode and add test
* Address review: wire plan mode, harden test script, restore friendly errors
- Wire /plan into agent behavior: add PLAN_MODE_SYSTEM_PROMPT and a planMode
option on runAgent; App passes isPlanMode through so the agent actually
plans without editing instead of only changing UI color.
- Harden test script to "bun test ./tests --timeout 15000" for deterministic
discovery and a bounded runtime so it always exits.
- Restore friendly provider-setup/auth/network error mapping via
toFriendlyError(); debug mode still records the full error object.
- Add tests/agent-loop.test.ts covering prompt selection and the
tool-call -> result -> final-answer loop with a mock provider.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
---------
Co-authored-by: Kevin Codex <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>