import type { CadenceConfig } from '@manehorizons/cadence-types'; import type { VerifierProvider } from '../verify/verifier-factory.js'; /** * The seven verifier seam config blocks (parallels config-explain PROVIDER_BLOCKS). * Order matches config explain's render order. */ export declare const VERIFIER_SEAMS: readonly ["specReview", "uiSpecReview", "verifier", "perTaskVerifier", "codeReview", "planReview", "securityAudit"]; export type VerifierSeam = (typeof VERIFIER_SEAMS)[number]; /** The seam the default ('deep-verify') activation flips. */ export declare const DEEP_VERIFY_SEAM: VerifierSeam; export interface VerifierReadiness { /** Effective provider of the deep-verify seam. */ provider: VerifierProvider; /** Credentials present for that provider (mock ⇒ true). */ keyPresent: boolean; seamsReal: VerifierSeam[]; seamsMock: VerifierSeam[]; /** * Seams whose configured provider is real but whose credentials are absent — * guaranteed to fall back to `mock` at runtime (see the prerequisite branches * in `verify/verifier-factory.ts`). Issue #331: this is the set * `seamsReal`/`seamsMock` cannot express, because those partition by * *configured provider name* and so classify a keyless `anthropic` seam as * real. In `VERIFIER_SEAMS` order. Never includes a `mock` seam (not a * downgrade — it announces itself) nor a `host-cli` seam (no required * credential by design; see `credsPresent`). */ seamsDowngraded: VerifierSeam[]; /** deep-verify provider is real AND its credentials are present. */ ready: boolean; reason: string; } /** The provider configured for `seam`. Exported so a caller reporting a seam * from `seamsDowngraded` can name the provider that will downgrade. */ export declare function seamProvider(config: CadenceConfig, seam: VerifierSeam): VerifierProvider; /** Are `provider`'s credentials present for `seam`? local needs a base URL + a model * (the seam's own `model`, else CADENCE_LOCAL_MODEL — mirrors verify/verifier-factory.ts). * `cwd` (default `process.cwd()`) is where a `.env` file is discovered — a key found * there counts the same as one exported into the env (AC-1). */ export declare function credsPresent(provider: VerifierProvider, seam: VerifierSeam, config: CadenceConfig, env: NodeJS.ProcessEnv, cwd?: string): boolean; /** True when this process is running inside a live Claude Code session — the * `CLAUDECODE` env var, documented at https://code.claude.com/docs/en/env-vars * (see `verify/host-cli-client.ts`'s `SELF_INVOCATION_ENV_VAR` for the fuller * citation). Used to disambiguate a Claude Code login (no bearing on the * `anthropic` provider's credentials) from an actually-missing API key. */ export declare function isClaudeCodeSession(env: NodeJS.ProcessEnv): boolean; /** Pure verifier-posture assessment. Shared by `activate` and `doctor`. * `cwd` (default `process.cwd()`) is threaded to `credsPresent` for `.env` discovery. */ export declare function assessReadiness(config: CadenceConfig, env: NodeJS.ProcessEnv, cwd?: string): VerifierReadiness; //# sourceMappingURL=assess.d.ts.map