#!/usr/bin/env node /** * Architectural Intelligence CLI — af-arch / rensei arch * * Architecture reference: rensei-architecture/007-intelligence-services.md * §"Architectural Intelligence" — Drift detection * * REN-1326: CLI surface for ad-hoc drift assessment. * * Usage: * pnpm af-arch assess * pnpm af-arch assess --repository --pr * * The `af-tui` (`rensei arch assess`) surface is stubbed here with a * deprecation pointer until REN-1322 ships the full TUI integration. * * Environment: * RENSEI_DRIFT_GATE — Gate policy: 'none' | 'no-severity-high' | * 'zero-deviations' | 'max:N' * ANTHROPIC_API_KEY — Enables live LLM drift assessment. * Without this key, the CLI uses a stub adapter * that returns an empty DriftReport with a notice. * RENSEI_ARCH_DB — Path to the SQLite DB (default: .agentfactory/arch-intelligence/db.sqlite) * * Output: * JSON to stdout. Non-zero exit code when the gate policy is triggered. * Exit codes: * 0 — Clean (no deviations / gate not triggered) * 1 — Gate triggered (threshold exceeded per RENSEI_DRIFT_GATE policy) * 2 — Error (invalid args, network failure, parse error) */ export {}; //# sourceMappingURL=code-arch.d.ts.map