Cotal TypeScript packages
    Preparing search index...

    Function processNames

    • The names one foreground-process record can be matched by, most authoritative first.

      herdr's pane process-info shape is PLATFORM-DEPENDENT, which is not documented anywhere and is the whole reason this helper exists:

      macOS {"argv0":"node","argv":["/usr/local/bin/node","x.mjs"],"name":"node",…} Linux { "argv":["sleep","30"], "name":"sleep",…}

      Linux omits argv0 entirely. Reading it alone matched on macOS and NEVER on Linux, so no agent could start there at all — the readiness poll below simply timed out on every spawn.

      name is deliberately NOT consulted: it is the kernel's comm string, truncated to 15 bytes on Linux and version-suffixed on macOS ("python3.13"), so matching it would trade a false negative for a false positive — and a readiness probe that lies green is worse than one that lies red.

      Parameters

      • proc: unknown

      Returns string[]