Commit 5d06db4
committed
feat(honcho): add workspace picker and peer name confirmation to setup
Setup now lists existing workspaces on the server and prompts the user
to pick one (or create new) instead of silently defaulting to
"claude_code". Also asks for / confirms the peer name -- defaults from
the OS username, but re-runs surface the existing config value so users
don't accidentally lose customizations.
New module src/workspaces.ts hits POST /v3/workspaces/list directly via
fetch instead of going through the SDK. The SDK's Honcho client memoizes
a get-or-create call on the configured workspaceId, which would
materialize a workspace just for asking the list -- that's wrong UX
when we're trying to discover what already exists.
New runner src/skills/list-workspaces-runner.ts emits the workspace list
as JSON for the setup skill to consume. SKILL.md gains a step 5 between
"API key set" and "validate" that:
- Reads OS username + existing peerName from config as defaults
- Asks for peer name confirmation
- Calls list-workspaces-runner and branches on count (0 / 1 / >1)
- Presents a picker including a "create new" option
- Persists both values to ~/.honcho/config.json via env-var pass-through
Verified against a live Honcho 3.0.5 deployment with 3 workspaces.1 parent e0fd1c0 commit 5d06db4
5 files changed
Lines changed: 1225 additions & 4 deletions
File tree
- plugins/honcho
- dist/src/skills
- skills/setup
- src
- skills
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments