Repository navigation
Conversation
Keep the ssh daemons a page may switch between in settings.yaml under `daemons`, checked as an ssh runtime is: Local first and implicit, then each one added by hand or imported from the ssh config. Each carries how it stands from `site.remotes` where the site has one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Landed together in #385. |
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.
Unit 3 of the multi-daemon + notifications plan (contract C1).
What
src/hmz/web/daemons.py, registered insite.py:GET /api/daemons:Localfirst (always up), then each ssh daemon withstate,detailandversion. These come fromsite.remotes.state(name)when the site has one; otherwise the daemon isidle.POST /api/daemons{name, fields, replace}: add, or edit withreplace. The fields are checked the way anSSHRuntimeis checked.local, bad names and unknown fields are refused.POST /api/daemons/remove{name}. Local can never be removed.GET /api/daemons/hosts: ssh-config aliases that can become daemons and aren't daemons yet. Only those are resolved withssh -G.POST /api/daemons/import{aliases}: makes alias-only entries and skips any that already exist. The response listsadded.~/.hmz/settings.yamlunderdaemonsthroughcoganchor.settings.changes. Each entry is{name, host, user, port, identity_file, proxy_jump, options: [[k,v]], alias, config}.saved(),found(name)andLOCALare there for the remote-reach unit.docs/reference/web.md.Tests
tests/unit/web/test_daemons.pytests/integration/test_web_daemons.pyuv run pytest tests/unitandtests/integration/test_web_*.pypass.hmz webunder a scratchHUMANIZE_HOME.🤖 Generated with Claude Code