Cotal TypeScript packages
    Preparing search index...

    Function resolveControlTarget

    • Resolve the control target for flags, minting profile as the caller's instrument on a static mesh (user-mode manager calls borrow an instance-bound view; an open mesh connects bare).

      instanceId (--on <instanceId>) is forwarded to the instrument mint so the one-shot credential carries the exact ep.inst.… rows for that instance; a credential cannot gain a rail after it is issued, so it has to arrive here rather than at the invoke. On a user-auth mesh without an explicit selector, a managed seat uses the manager that launched it.

      onRefusal: "throw" makes an unresolvable or unreachable mesh a thrown ConnectRefusal instead of a printed sentence and process.exit(1), for a loop that has to survive the broker being briefly gone. readOnly resolves and connects without the liveness sweep and without pruning a stale registry entry, for a read that must leave the registry as it found it.

      Parameters

      • flags: ConnectFlags
      • profile: Profile
      • OptionalinstanceId: string
      • opts: {
            endpoint?: string;
            onRefusal?: "exit" | "throw";
            operatorActor?: string;
            readOnly?: boolean;
            staticOperator?: boolean;
        } = {}

      Returns Promise<ControlTarget>