Cotal TypeScript packages
    Preparing search index...

    Function run

    • Run one herdr CLI command scoped to session and return the parsed JSON result. Every invocation carries --session explicitly so no call can ever hit the ambient/default Herdr session. A JSON {error} becomes a HerdrCliError; missing/non-JSON output throws — except for void: true commands (send-keys, report-metadata), which herdr acknowledges with a bare exit 0 and no output.

      Parameters

      • session: string
      • args: string[]
      • opts: { timeoutMs?: number; void?: boolean } = {}

      Returns Record<string, unknown>