mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
feat(setup): auto-reconfigure on existing installs (#15879)
Bare `hermes setup` on a returning user now drops straight into the full reconfigure wizard — every prompt shows the current value as its default, press Enter to keep or type a new value to change it. The returning-user menu is gone. Behavior: - First-time user: first-time wizard (unchanged) - Returning user, bare command: full reconfigure wizard (new default) - Returning user, `--quick`: only prompt for missing/unset items - Returning user, one section: `hermes setup model|terminal|gateway|tools|agent` - `--reconfigure`: preserved as backwards-compat alias (no-op since it's now default) The section functions already used current values as prompt defaults — this change just removes the extra click to get to them. The 'Quick Setup - configure missing items only' menu option is now exposed as the explicit `--quick` flag; it's the narrow case of filling in missing config (e.g. after a partial OpenClaw migration or when a required API key got cleared). Inspired by Mercury Agent's `mercury doctor` UX. Also removes: - RETURNING_USER_MENU_SECTION_KEYS (orphaned constant) - Two returning-user menu tests in test_setup_noninteractive.py (guarding behavior that no longer exists — covered by test_setup_reconfigure.py instead)
This commit is contained in:
parent
cec0af02ad
commit
a55de5bcd0
5 changed files with 335 additions and 136 deletions
|
|
@ -187,10 +187,14 @@ Use `hermes gateway run` instead of `hermes gateway start` — WSL's systemd sup
|
|||
## `hermes setup`
|
||||
|
||||
```bash
|
||||
hermes setup [model|tts|terminal|gateway|tools|agent] [--non-interactive] [--reset]
|
||||
hermes setup [model|tts|terminal|gateway|tools|agent] [--non-interactive] [--reset] [--quick] [--reconfigure]
|
||||
```
|
||||
|
||||
Use the full wizard or jump into one section:
|
||||
**First run:** launches the first-time wizard.
|
||||
|
||||
**Returning user (already configured):** drops straight into the full reconfigure wizard — every prompt shows your current value as its default, press Enter to keep or type a new value. No menu.
|
||||
|
||||
Jump into one section instead of the full wizard:
|
||||
|
||||
| Section | Description |
|
||||
|---------|-------------|
|
||||
|
|
@ -204,8 +208,10 @@ Options:
|
|||
|
||||
| Option | Description |
|
||||
|--------|-------------|
|
||||
| `--quick` | On returning-user runs: only prompt for items that are missing or unset. Skip items you already have configured. |
|
||||
| `--non-interactive` | Use defaults / environment values without prompts. |
|
||||
| `--reset` | Reset configuration to defaults before setup. |
|
||||
| `--reconfigure` | Backwards-compat alias — bare `hermes setup` on an existing install now does this by default. |
|
||||
|
||||
## `hermes whatsapp`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue