Commit 741ae3d
committed
feat(honcho): harden setup flow with bun precheck, self-hosted support, and health probes
Setup skill now checks for bun before any bun invocation and surfaces a
one-line install command when missing. Adds an upfront self-hosted prompt
covering localhost shortcut and custom URL, with optional API key and a
clarifying global-vs-host scope question (default global). The skill now
writes endpoint config directly to ~/.honcho/config.json so the runner
reads it via loadConfig() instead of env-var hand-off.
Adds a reusable health module (src/health.ts) with two probes:
- checkHonchoHealth: unauthenticated GET <root>/health, strips /v3 since
Honcho's /health lives at host root per upstream docs
- checkHonchoAuth: authenticated SDK queueStatus call, classifies
failures into no-key / unauthorized / network / unknown
setup-runner runs the health probe before SDK validation as a soft warn
(failed /health doesn't always mean /v3 is unreachable). status-runner
surfaces health and auth as separate lines and short-circuits the rest
of the report on auth failure. New /honcho:health skill wraps both
probes for ad-hoc connectivity debugging.
Also fixes a latent bug: setup-runner's saveConfig call now persists
endpoint, and the host-block defaults are written on every run (idempotent
merge) instead of only on first install, so pre-written self-hosted
configs don't end up missing host defaults.1 parent fd45d29 commit 741ae3d
18 files changed
Lines changed: 18095 additions & 1852 deletions
File tree
- plugins/honcho
- dist
- hooks
- src/skills
- skills
- health
- setup
- status
- src
- skills
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments