Repository navigation
feat: serve Hermes's API server and dashboard from a runtime #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
e3eb9bd
fix: stop agents where group signals are denied
cv 7bb12a1
fix: bound OpenClaw's whole start by one deadline
cv f638e44
feat: serve OpenClaw's Control UI from managed runtimes
cv 7ed10ce
feat: serve Hermes's API server and dashboard from a runtime
cv dde1815
test: skip the OpenClaw tests that run the mock script where CI can't
cv 76a81da
Merge branch 'pr/04-openclaw-control-ui' into pr/05-hermes-interfaces
cv 20118ba
fix: probe loopback ports exclusively on Windows
cv 005aa7e
fix: keep Hermes interface start and stop within their limits
cv 075f8c4
docs: correct OpenClaw's dashboard port and token file claims
cv e9d3336
test: cover a disabled OpenClaw dashboard and token cleanup after fai…
cv 427a3e3
fix: don't signal a child's PID after it exits
cv 532424e
fix: end OpenClaw's readiness check at the startup deadline
cv 4a6009a
docs: describe OpenClaw's startup deadline
cv 0fcad06
Merge branch 'prop/04' into prop/05
cv f48e793
fix: refuse Hermes interfaces on Windows before any child starts
cv e395dc9
Merge branch 'main' into pr/04-openclaw-control-ui
cv 00d8427
Merge branch 'main' into pr/05-hermes-interfaces
cv 1b969f9
Merge branch 'main' into pr/04-openclaw-control-ui
cv f232890
Merge branch 'pr/04-openclaw-control-ui' into pr/05-hermes-interfaces
cv 838f0bc
fix: retry removing the OpenClaw dashboard token after a failed stop
cv 7b70972
test: check Hermes's Windows refusal never spawns an interface
cv 9e867d8
fix: refuse Hermes interfaces on Windows before MCP discovery
cv 45d5c3e
Merge branch 'pr/04-openclaw-control-ui' into pr/05-hermes-interfaces
cv 9855259
chore: separate Hermes interfaces from OpenClaw PR scope
AnuradhaKaruppiah db99029
fix: apply Fabric behavior to native Hermes agents
AnuradhaKaruppiah 2f6be67
docs: separate Hermes native interface guidance
AnuradhaKaruppiah 8d441be
docs: update Hermes invocation diagram
AnuradhaKaruppiah 597e6b3
docs: clarify native Hermes API client authentication
AnuradhaKaruppiah 6b9e12f
docs: organize Hermes interfaces around user tasks
AnuradhaKaruppiah bee37b4
docs: remove inline Hermes interfaces table of contents
AnuradhaKaruppiah aef811f
docs: remove editable diagram sentence
AnuradhaKaruppiah a4149ce
fix: finalize Relay segments for native Hermes API turns
AnuradhaKaruppiah 8c1bfb7
feat: add native interface example with Relay trajectories
AnuradhaKaruppiah 731b312
fix: preserve native conversation wrapper signature
AnuradhaKaruppiah b9f300b
docs: record native health and instance discovery gaps
AnuradhaKaruppiah d288e14
fix: harden Hermes native interface cleanup and configuration
AnuradhaKaruppiah 9974c01
docs: link Hermes testing guidance to interfaces example
AnuradhaKaruppiah 612ad0d
fix: allow a separate Hermes checkout for installation
AnuradhaKaruppiah b424e2f
docs: keep Hermes example setup focused
AnuradhaKaruppiah 1907d1f
fix: isolate managed Hermes API from messaging platforms
AnuradhaKaruppiah 3ca1de8
docs: mark interfaces example as work in progress
AnuradhaKaruppiah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
adapters/python/common/src/nemo_fabric_adapters/common/local_interfaces.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """Helpers for native interfaces that an adapter serves on loopback.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import os | ||
| import socket | ||
| import tempfile | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| def port_available(port: int) -> bool: | ||
| """Return whether one loopback TCP port is available.""" | ||
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
| try: | ||
| if hasattr(socket, "SO_EXCLUSIVEADDRUSE"): | ||
| # On Windows, SO_REUSEADDR lets a bind succeed on a port in use. | ||
| sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1) | ||
| else: | ||
| sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | ||
| sock.bind(("127.0.0.1", port)) | ||
| return True | ||
| except (OSError, OverflowError): | ||
| return False | ||
| finally: | ||
| sock.close() | ||
|
|
||
|
|
||
| def write_private_file(path: Path, payload: str) -> None: | ||
| """Atomically write an owner-only file in an owner-only directory. | ||
|
|
||
| On Windows, chmod sets only the read-only flag, so the file inherits the | ||
| directory's permissions. | ||
| """ | ||
| path.parent.mkdir(parents=True, exist_ok=True, mode=0o700) | ||
| os.chmod(path.parent, 0o700) | ||
| descriptor, temporary_name = tempfile.mkstemp( | ||
| dir=path.parent, | ||
| prefix=f".{path.name}.", | ||
| ) | ||
| try: | ||
| if hasattr(os, "fchmod"): | ||
| os.fchmod(descriptor, 0o600) | ||
| with os.fdopen(descriptor, "w", encoding="utf-8") as stream: | ||
| descriptor = -1 | ||
| stream.write(payload) | ||
| os.replace(temporary_name, path) | ||
| except BaseException: | ||
| if descriptor >= 0: | ||
| os.close(descriptor) | ||
| try: | ||
| os.unlink(temporary_name) | ||
| except FileNotFoundError: | ||
| pass | ||
| raise | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.