Cotal TypeScript packages
    Preparing search index...

    Function assertUninjectedCredsSharesCwdRoot

    • Uninjected --creds that names one real workstation root while process cwd resolves another is a false same-store proof: membership-rw still resolves via findCotalRoot() (cwd), not the --creds file. Fire only when BOTH sides resolve real workstation roots and those differ. A path that is not under a .cotal tree names no workstation, so this check does not fire (the manager challenge already diverges on that composition). Injected compositions skip this: both rails take the injected store. Never silently prefer either root.

      Parameters

      • opts: {
            credsPath: string;
            cwdRoot?: string;
            injected: boolean;
            via?: "process cwd" | "--root";
        }
        • credsPath: string
        • OptionalcwdRoot?: string
        • injected: boolean
        • Optionalvia?: "process cwd" | "--root"

          Where cwdRoot came from, for the refusal: the cwd walk unless --root named it.

      Returns void