Cotal TypeScript packages
    Preparing search index...

    Function classifyPreflightFailure

    • Pure decision tree — separated from I/O so the whole branch tree is unit-testable (it's the riskiest logic: a wrong branch prunes a LIVE registry entry). Only a registry-OWNED source (registry/current/flag-space/local-recorded) is ever pruned. A non-registry source — flag-server/local-space, a raw --creds connection, or flag-space-override (a --space whose --server overrides the recorded broker) — is NEVER pruned: the probed endpoint is operator-supplied, so a failure there is the user's to diagnose, not a stale-registry signal.

      Parameters

      • source:
            | "registry"
            | "flag-server"
            | "flag-space"
            | "flag-space-override"
            | "local-space"
            | "local-recorded"
            | "current"
      • reason: "timeout" | "unreachable" | "stale-auth" | "tls-unsupported" | "auth-required"
      • hasAuth: boolean
      • inferred: boolean = false
      • OptionalheldBy: string

      Returns { kind: PreflightFailure; prune: boolean }