Repository navigation
added uninstall option - #4
Merged
Merged
Conversation
`logout` removes one account's creds; for a full uninstall the user had
to combine it with `stop`, manually `rm -rf ~/.helloagent-hermes`, and
finally `npm uninstall -g`. Three local steps, easy to get wrong.
`helloagent-hermes uninstall` collapses the local side into one
confirm-then-execute command:
1. enumerates everything it would remove (running daemon, every paired
account with its handle for transparency, the state dir)
2. prints the plan and prompts "Proceed? [y/N]:" (skip with --yes)
3. on confirm: SIGTERMs the daemon, deletes every account's creds,
`fs.rm -rf` the state dir (creds subtree + bridge.log + anything
else under our state path)
4. prints the two remaining steps it can't do — `npm uninstall -g
@helloagentai/hermes` (npm's job) and revoking the agent token via
the HelloAgent web UI (no CLI surface for this on the server side)
The "nothing to remove" path short-circuits: if there's no daemon, no
accounts, and no state dir, the command prints a hint to run
`npm uninstall -g ...` and exits without prompting.
Incompatible (e.g. version-mismatched) creds are handled the same way
`logout` already handles them: we read leniently to recover a handle for
display, then delete the files. Throwing on bad creds during uninstall
would defeat the point.
README gains an "Uninstall" section walking through the three steps
(local nuke, `npm uninstall`, server-side revocation) with a note that
only the first two are reversible.
Verified with a seeded temp state dir:
HA_HERMES_BRIDGE_DIR=/tmp/state helloagent-hermes uninstall --yes
prints the plan, removes the dir, exits 0.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add `uninstall` command for full local teardown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.