1/** 2 * @factory/ai — the AI gateway for AI Software Factory (ARCHITECTURE.md §10, 3 * `docs/architecture/ai-architecture.md`). 4 * 5 * Source-first package: `main`/`types` point at `src/index.ts` so apps can 6 * import without a build step (a build is added at Phase 0 completion). 7 * 8 * Contents: 9 * - {@link ./types} — gateway canonical types (ModelInfo, ChatRequest/ 10 * Chunk/Result, EmbedRequest/Result, ProviderAdapter) 11 * - {@link ./config} — Zod-validated per-field config resolution 12 * (workspace → org → env → defaults) 13 * - {@link ./usage} — usage ledger + submit-time budget guard 14 * - {@link ./tools} — strict tool-schema subset validation 15 * - {@link ./gateway} — AiGateway: retries, fallback, circuit breaker, 16 * metering, error normalization 17 * - {@link ./providers} — OpenAI/OSS/Custom (OpenAI-compatible), 18 * Anthropic, Google adapters + MockProvider for the CI capability suite 19 */ 20 21export * from "./types.js"; 22export * from "./config.js"; 23export * from "./usage.js"; 24export * from "./tools.js"; 25export * from "./gateway.js"; 26export * from "./providers/index.js"; 27export * from "./schemas/database.js"; 28export * from "./schemas/generate.js"; 29