pinbox doctor is the first thing to run when something is not working, and a reasonable
thing to run right after pinbox init. Each check does the thing
and reports what happened — this is not a version table.
Usage
Options
boolean
Machine output: the
{"ok":true,"data":…} envelope.doctor takes no arguments.
Examples
The check lines are stdout; the count line is stderr.
agents and gh are informational
and always report ok. Any other failing check turns its line’s ok into no, changes
the count line to read 8 checks, 2 failing, and exits 1. The detail on a failing line
names the cause, not the symptom — state-dir reports the EACCES it hit, hub reports
why the spawn failed.
A machine with no GitHub CLI still passes. gh just reports what that costs you:
delivery leaves its probe pins behind, resolved. They show up in
pinbox list as pinbox doctor delivery probe ….JSON
The envelope staysok: true when doctor ran. Findings live in data.checks, and the
exit code carries the verdict — branch on checks[].ok, not on a parse failure.
Errors
Exit 1 is the only place in pinbox where a non-zero exit does not carry an error code.
Read
data.checks to find out which check failed.
Next: fix what it found, then confirm with
pinbox summary. If
the hub check is the one failing, start there — every other command needs it.