/** * audit (CUT D9b-2) — run the profile-driven structure/integrity/surface audit * and report a structured summary. The engine (`@czap/audit`) is INJECTED via * `context.runAudit`, never imported here, so `@czap/command` (and the MCP * server that re-uses it) stays free of the TypeScript-compiler/fast-glob audit * engine. Not MCP-exposed: it needs the CLI-only `runAudit` capability. * * @module */ import { Schema } from 'effect'; import { type AuditEngineFinding, type HandledCommand } from '../registry.js'; /** * Structured payload returned by `audit` — ONE Effect Schema is the source of * both {@link AuditPayload} and the descriptor's `outputSchema`. */ export declare const AuditPayloadSchema: Schema.Struct<{ readonly errorCount: Schema.Number; readonly warningCount: Schema.Number; readonly infoCount: Schema.Number; readonly findingCount: Schema.Number; readonly suppressedCount: Schema.Number; readonly passFindingCounts: Schema.Struct<{ readonly structure: Schema.Number; readonly integrity: Schema.Number; readonly surface: Schema.Number; }>; readonly repoRoot: Schema.String; readonly profileSource: Schema.Union, Schema.Literal<"file">, Schema.Literal<"consumer">]>; /** Present only when `--findings` was requested — receipt shape is stable by default. */ readonly findings: Schema.optional, Schema.Literal<"warning">, Schema.Literal<"info">]>; readonly title: Schema.String; readonly summary: Schema.String; readonly location: Schema.optional; readonly column: Schema.optional; }>>; }>>>; }>; /** * Structured payload returned by `audit`. Single-source-derived for every field * EXCEPT `findings`, which keeps the canonical {@link AuditEngineFinding} type * (so `metadata` — an open record the outputSchema's dialect can't express — * stays in the type and is never narrowed away). The `outputSchema` is derived * from `AuditPayloadSchema` (findings minus metadata); the type is a faithful * superset on exactly that one field. */ export type AuditPayload = Omit, 'findings'> & { readonly findings?: readonly AuditEngineFinding[]; }; /** `audit [--profile ] [--consumer] [--findings]` — run the engine, emit a structured summary. */ export declare const auditCommand: HandledCommand; //# sourceMappingURL=audit.d.ts.map