/** * AnthropicAPIDirectGenerator — Mode B full implementation per v0.7 * Step 2.2.a.2 substantive interpretive content surface. * * Locks applied: * - Lock 1: γ user-configurable reference-context scope + soft- * warning at 500k tokens + attempt-anyway (per * `REFERENCE_CONTEXT_TOKEN_WARNING_THRESHOLD` from prompt.ts). * - Lock 2: atomic single-API-call generation; user re-runs from * scratch on failure (no checkpointed resume at v0.7). * - Lock 3: two-phase cost reporting — pre-flight estimate * (printed to stderr; confirmation via `confirmProceed` seam * unless `skipConfirmation` is true) + post-flight actual cost * (from API response usage data). * - Lock 4: Claude API context-window-exceeded behavior is * surfaced as actionable error via the Anthropic SDK error * classification path (BadRequestError → user-facing message * with remediation guidance). * * Refinements 1-3 are baked into GENERATE_ADRS_PROMPT (prompt.ts); * this generator just assembles the prompt input + calls the API + * writes the output. Refinement 7 is in SKILL.md (Skills surface; * unrelated to this CLI path). * * Architectural rationale (orchestration-here vs orchestration-in- * runner): the CLI runner manages config + adapter lifecycle + db * setup + result printing; the Generator owns build-input + * estimate + confirm + API call + write-output as a cohesive * substantive unit. Mirrors AnthropicAPIDirectExtractor — Strategy * boundary is per-cycle, not per-substep. */ import { type Generator, type GenerationResult, type GeneratorContext } from "../generator.js"; export declare class AnthropicAPIDirectGenerator implements Generator { readonly costModel: "api"; generate(context: GeneratorContext): Promise; } //# sourceMappingURL=anthropic-api-direct.d.ts.map