Cotal TypeScript packages
    Preparing search index...

    Function cotalOnPath

    • Is a durable cotal executable resolvable on PATH? A pure PATH scan (no exec): User-facing hints also only resolve files. The --version exec probe stays in verifiedCotalExecutables for the recovery path. Skips npx's transient shim: npm exec (npx) prepends the package's own <cache>/_npx/<hash>/node_modules/.bin to PATH, and since cotal-ai declares a cotal bin, that dir holds a throwaway cotal. Counting it would make a bare npx cotal-ai setup conclude cotal is already installed — skipping the global-install offer and printing cotal … hints the user can't run once npx exits. That shim is exactly what we're offering to make permanent.

      Returns boolean