Files
renovate/tools/check/types.ts
Sebastian Poxhofer b632d27cdd ci(agents): extend AGENTS.md and add Claude hooks (#43470)
* ci: add agent instructions and ClaudeCode hooks

* refactor: rename start-check and use schemas

* fix: remove redundant flow diagram

* refactor: add block utility

* docs: add reference to development documentation

* ci: add pretooluse hook

* test: remove unnecessary schema tests

* ci: add --all flag run fixer and linters in a single command

* ci: switch stop hook to `pnpm check --all`

* refactor: use simple git

* refactor: use zod/v4

* ci: prevent usages of pnpm vitest

* ci: add must read and code example for codeBlock

* fixup! simplegit by allowing user pagers and editors

* ci(agent hooks): run installs on worktree changes

* docs: shorten description

* chore: remove additional new line at the end

* explicitly fail if parsing fails

* fix: rename to kebabcase

* docs: reduce commands highlighted for local dev
2026-06-08 13:56:15 +00:00

49 lines
967 B
TypeScript

import type { ExecaChildProcess } from 'execa';
export interface CliArgs {
all: boolean;
fix: boolean;
noTest: boolean;
targets: string[];
}
export interface ParallelCheck {
name: string;
cmd: string;
args: string[];
env?: Record<string, string>;
}
export interface CheckResult {
name: string;
success: boolean;
duration: number;
output: string;
}
export interface CoverageInfo {
file: string;
percentage: number;
uncoveredLines: string[];
}
export interface CheckResultWithCoverage {
result: CheckResult;
coverage?: CoverageInfo[];
}
export interface ProcessManager {
subprocesses: Set<ExecaChildProcess>;
abortController: AbortController;
renderInterval: ReturnType<typeof setInterval> | null;
}
export interface ExecutionProgress {
startTime: number;
checks: readonly ParallelCheck[];
results: (CheckResultWithCoverage | null)[];
startedIndices: Set<number>;
spinnerFrame: number;
displayLines: number;
}