import { PipelineStep } from "@warpgogol/pipeline-core"; import type { PipelineStepContext } from "@warpgogol/pipeline-core"; /** Context shape required by CaptureEnvironmentProfileStep. */ export type CaptureEnvironmentProfileStepContext = PipelineStepContext & { getGogolOutputDir: (id: string) => string; writeTextFile: (filePath: string, content: string) => Promise; }; /** * CaptureEnvironmentProfileStep — abstract step that captures OS, Node, * hardware, and tool version information into JSON and Markdown artifacts * for audit reproducibility. * * Each audit app (4-audit-lighthouse, 5-audit-axe) had a 240+ line copy * that differed only in which brief fields were included in the profile * snapshot. This base class owns the entire workflow; subclasses provide * app-specific brief fields via `getBriefSnapshot()`. * * Usage: * class CaptureEnvironmentProfileGogol extends CaptureEnvironmentProfileStep { * override readonly id = "capture-environment-profile"; * protected override getBriefSnapshot(ctx) { * return { sourceToken: ctx.state.brief.sourceToken, ... }; * } * } */ export declare abstract class CaptureEnvironmentProfileStep extends PipelineStep { getPromptFileNames(): string[]; getArtifactPath(ctx: TContext, artifactId: string): string; shouldSkip(ctx: TContext): Promise; /** Subclass provides app-specific brief fields for the profile snapshot. */ protected abstract getBriefSnapshot(ctx: TContext): Record; /** Subclass provides the skipGogols list from its brief, or undefined if not supported. */ protected abstract getSkipGogols(ctx: TContext): string[] | undefined; run(ctx: TContext): Promise; private getToolVersions; private formatBytes; private formatMarkdown; } //# sourceMappingURL=capture-environment-profile-step.d.ts.map