Skip to content

BashSafetyCheckWorkflow

BashSafetyCheckWorkflow = Workflow<BashSafetyCheckInput, BashSafetyCheckVerdict>

Defined in: bash/provider.ts:37

A Workflow taking { command, cwd } and returning { safe, reason } — e.g. built via adl.createWorkflow({ inputSchema: bashSafetyCheckInputSchema, outputSchema: bashSafetyVerdictSchema, run: ... }). Concretely typed (not the Workflow<unknown, unknown> widening a heterogeneous registry like AdlProjectConfig.workflows needs) — this is one fixed shape, so the compiler checks a passed-in workflow’s input/output for real.

A Workflow, not a bare Agent: it’s plain async TypeScript, so the check can call one agent, chain a cheap heuristic pre-filter before an LLM judge, retry, or combine several checks — not just one chat-style agent turn.