Cotal TypeScript packages
    Preparing search index...

    Function resolveTargetOrThrow

    • Resolve the mesh a command targets, exiting with one human sentence on an unresolved/ambiguous registry rather than a stack trace. Sweeps first only when the resolve reads liveness (resolveReadsLiveness), only the records at --server when one is given, and hands the sweep's offline set to the resolver so a crashed mesh's kept record does not count as running. The selection and this project's registration pick the target without it. A caller that already swept for these flags passes its offline set instead, so one resolve chain reads one liveness verdict. A named --space is resolved + preflighted directly, so the sweep cannot hide a dead-recorded mesh the operator is recovering with a live --server override. A readOnly resolve takes no sweep and keeps a stale entry.

      Parameters

      Returns Promise<MeshTarget>