HerdrUsageProbe
Defined in: src/usage-probe.ts:27
Drives an ephemeral interactive claude, sends /usage, and captures the rendered panel.
herdr owns the agent (lifecycle + cleanup), but the panel only renders legibly when a PTY of a
real size is attached — so I/O goes through the same Node pty-attach.mjs helper the browser
bridge uses (node-pty is broken under Bun). ToS-pure: a real interactive session, no -p/SDK;
/usage makes no model call (zero token cost).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HerdrUsageProbe(
herdr,cwd?,helperPath?):HerdrUsageProbe
Defined in: src/usage-probe.ts:28
Parameters
Section titled “Parameters”Pick<HerdrDriver, "start" | "stop" | "list">
string = config.repoRoot
helperPath?
Section titled “helperPath?”string = ...
Returns
Section titled “Returns”HerdrUsageProbe
Methods
Section titled “Methods”scrape()
Section titled “scrape()”scrape():
Promise<string|null>
Defined in: src/usage-probe.ts:54
Returns
Section titled “Returns”Promise<string | null>