Functions

f
maybePrint(
ctx: HintContext,
opts?: PrintOpts
): Promise<void>

Prints the daemon-mode tip to stderr and creates a sentinel file so the tip is shown at most once per machine — users who already know about the daemon shouldn't be nagged. All filesystem I/O is best-effort: a sentinel-write failure just means the hint shows again on the next eligible run.

f
shouldShow(ctx: HintContext): boolean

Pure check: returns true iff the run context permits the hint. Covers env-var opt-outs, watch / daemon modes (own browser lifecycle), CI (auto-bypassed), the fast-run threshold, and TTY presence. No filesystem access.

Interfaces

I
HintContext

Run context consumed by the daemon-hint eligibility check.

I
PrintOpts

Side-effect injection points for maybePrint — testing seams.