/** * Built-in script-lint verifier — static analysis of `script` phase `run` * commands. Catches common shell mistakes that are 100% statically detectable, * zero-token, and runner-agnostic: * * 1. `grep`/`egrep`/`fgrep` whose pattern starts with `-` and has no `--` * separator (grep parses it as flags → exit 2, a false RED). * 2. `grep`/`sed` with obviously invalid regex under common dialect flags * (unbalanced brackets/parens → exit 2). * 3. `runner | grep …` without `pipefail` / `PIPESTATUS` (the filter's exit * masks the runner's — a failing runner reads as GREEN). * 4. A script that references a file path matching a phase id's likely output * artifact created by an earlier phase (RED until that phase runs). * * This is the dogfood verifier motivated by issue #82. It ships as an optional * built-in: hosts can register it via `verifyTaskflow(flow, { verifiers: * [scriptLintVerifier] })` or it is auto-included by `compileTaskflow` when * `opts.lint !== false`. */ import type { TaskflowVerifier } from "../verify.ts"; /** The built-in script-lint verifier. Register it via * `verifyTaskflow(flow, { verifiers: [scriptLintVerifier] })`. */ export declare const scriptLintVerifier: TaskflowVerifier; //# sourceMappingURL=script-lint.d.ts.map