Run context consumed by the daemon-hint eligibility check.
import type * as Hint from './hint.ts'; const ctx: Hint.HintContext = { durationMs: 1200, env: {}, isTTY: true }; ctx.durationMs; // 1200 — compared against the 500ms fast-run threshold
durationMs: number
Total wall-clock the run took, in ms. Used against the fast-run threshold.
optional
watch: boolean
True if the run is --watch mode (manages its own browser lifecycle — bypass).
optional
daemonMode: boolean
True if this is the daemon process itself running the work — never hint.
optional
env: NodeJS.ProcessEnv
Environment to inspect for opt-outs. Defaults to process.env.
optional
isTTY: boolean
Override TTY detection (defaults to process.stderr.isTTY). Used in tests.