import type { SkeletonConfig } from "../config/types.ts"; import type { PolicyFile } from "../policies/types.ts"; import type { FileSource } from "./repo-files.ts"; import { type SkillIndex } from "./skill-roots.ts"; import type { SsotForm } from "./ssot.ts"; import { type SsotFileEntry } from "./ssot-collect.ts"; export interface AuditContext { root: string; config: SkeletonConfig; files: string[]; docMetaPaths: string[]; /** Opt-in SSOT-bearing files (catalog membership). */ ssotEntries: SsotFileEntry[]; ssotErrors: Array<{ path: string; kind: "dual" | "malformed"; detail: string; forms?: SsotForm[]; }>; skillIndex: SkillIndex; /** * Foreign (synced) skill slugs — same as `skillIndex.foreignSlugs`. * Used by doc-meta to skip consumer-side git-date freshness on upstream bodies. */ lockedSkillSlugs: Set; /** Compiled prose policies from plugins (empty when no plugins / no policy globs). */ policies: PolicyFile[]; /** Read document and dependency bytes from the worktree or the git index. */ fileSource?: FileSource; /** True when `--paths` narrowed the run; repository-wide checks are skipped. */ pathScoped?: boolean; } interface AuditOptions { root?: string; changed?: boolean; paths?: string[]; policies?: PolicyFile[]; /** * Union skill-tree markdown (SKILL.md + references/**) into the corpus even when * `scan.exclude` dropped them. Used by bare `audit skills` so skill-scoped prose * matches path-scoped / validate `--base` prove. */ includeExcludedSkillTrees?: boolean; /** When `index`, document and coverage reads use `git show :path`. */ fileSource?: FileSource; } export declare function createContext(options?: AuditOptions): AuditContext; export {};