Cotal TypeScript packages
    Preparing search index...

    Function preflightTarget

    • Probe a resolved target and, on failure, classify it — WITHOUT touching the registry. Returns the decision (incl. whether the caller SHOULD prune); the caller owns the removeMesh + message + exit. Probes with probeCreds when given (the caller's --creds/minted creds); otherwise mints a throwaway identity from the target's own trust material to test mere liveness. If the caller handles denied PID reads, keep probing the address without inferring local process state.

      Parameters

      • target: MeshTarget
      • OptionalprobeCreds: string
      • OptionalonUnreadablePidfile: (path: string, error: Error) => void

      Returns Promise<
          | { ok: true }
          | {
              heldBy?: string;
              kind: PreflightFailure;
              ok: false;
              pid?: number;
              prune: boolean;
          },
      >