#!/usr/bin/env node /** * codeprism check — LLM-powered PR rule checker. * * Core logic lives in `runCheckCore` which returns structured data. * The `runCheckCli` wrapper handles stdout formatting and process.exit for CLI use. * The HTTP API calls `runCheckCore` directly — no stdout capture, no process.exit. * * CLI usage: * codeprism check # diff HEAD vs main * codeprism check --base develop # diff HEAD vs develop * codeprism check --repo biobridge-fe # override repo name in report * codeprism check --strict # exit 1 on any violation (incl. warnings) * codeprism check --json # machine-readable output */ import type { RuleCheckResult } from "../db/schema.js"; export interface CheckOptions { base: string; repo?: string; strict: boolean; triggeredBy?: string; } export interface CheckCoreResult extends RuleCheckResult { check_id: string; branch: string; repo: string; commit_sha: string; error: string | null; } export declare function runCheckCore(cwd: string, opts: CheckOptions): Promise; export declare function runCheckCli(cwd: string, opts: CheckOptions & { json: boolean; }): Promise; //# sourceMappingURL=check.d.ts.map