/** * Architectural Intelligence — CLI runner for `af-arch assess` * * Architecture reference: rensei-architecture/007-intelligence-services.md * §"Architectural Intelligence" — Drift detection * * REN-1326: CLI runner for the `af-arch assess` command. * * Responsibilities: * 1. Parse and validate CLI arguments. * 2. Resolve the SQLite DB path. * 3. Instantiate SqliteArchitecturalIntelligence. * 4. Resolve ModelAdapter: * - If ANTHROPIC_API_KEY is set, use a minimal Anthropic SDK adapter. * - Otherwise, use a stub adapter that returns [] with a notice. * 5. Optionally fetch the PR diff from GitHub (when gh CLI is available and * GITHUB_TOKEN / gh auth is configured). * 6. Run assessWithAdapter(). * 7. Format and return the output. */ export interface ArchAssessInput { /** Full PR URL (e.g., https://github.com/org/repo/pull/123). */ prUrl?: string; /** Repository identifier (e.g., 'github.com/org/repo'). */ repository?: string; /** PR number within the repository. */ prNumber?: number; /** Gate policy override. Falls back to RENSEI_DRIFT_GATE env. */ gatePolicy?: string; /** Scope level for the baseline query. */ scopeLevel?: 'project' | 'org' | 'tenant' | 'global'; /** Project ID for scope. */ projectId?: string; /** Path to the SQLite DB file. */ dbPath?: string; /** Whether to format output as a human-readable summary. */ summary?: boolean; /** Working directory (for resolving relative paths). */ cwd: string; } export interface ArchAssessResult { /** Whether the gate policy was triggered. */ gated: boolean; /** Whether to output summary mode. */ summary: boolean; /** Human-readable summary text. */ summaryText: string; /** Full JSON output. */ output: unknown; } export declare function parseArchArgs(argv: string[]): { command: string | undefined; prUrl: string | undefined; args: Record; }; export declare function runArchAssess(input: ArchAssessInput): Promise; //# sourceMappingURL=arch-assess-runner.d.ts.map