/** * @factory/ai — the AI gateway for AI Software Factory (ARCHITECTURE.md §10, * `docs/architecture/ai-architecture.md`). * * Source-first package: `main`/`types` point at `src/index.ts` so apps can * import without a build step (a build is added at Phase 0 completion). * * Contents: * - {@link ./types} — gateway canonical types (ModelInfo, ChatRequest/ * Chunk/Result, EmbedRequest/Result, ProviderAdapter) * - {@link ./config} — Zod-validated per-field config resolution * (workspace → org → env → defaults) * - {@link ./usage} — usage ledger + submit-time budget guard * - {@link ./tools} — strict tool-schema subset validation * - {@link ./gateway} — AiGateway: retries, fallback, circuit breaker, * metering, error normalization * - {@link ./providers} — OpenAI/OSS/Custom (OpenAI-compatible), * Anthropic, Google adapters + MockProvider for the CI capability suite */ export * from "./types.js"; export * from "./config.js"; export * from "./usage.js"; export * from "./tools.js"; export * from "./gateway.js"; export * from "./providers/index.js"; export * from "./schemas/database.js"; export * from "./schemas/generate.js";