function shouldShow
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.

import type * as Hint from './hint.ts';

// Defined, not invoked: the module resolves a homedir sentinel path at load time.
function hintGate(show: typeof Hint.shouldShow) {
  return show({ durationMs: 900, env: {}, isTTY: true }); // true — slow local TTY run
}

Parameters

Return Type

boolean

Usage

import { shouldShow } from "lib/commands/daemon/hint.ts";