feat: Endo-compatible host, downloads folder, Nix tools PATH
- the fake host serves a subset of @endo/agent-mcp-stdio's catalog, with its names, schemas and answers; evaluate takes only E(name).method(arg, ...), and __getMethodNames__ - demo.py --host endo: a real Endo daemon (endo-but-for-bots, llm), its guest served by the package's broker - a downloads folder: the host writes, Hermes reads at ~/Downloads; BindReadOnlyPaths on Linux, a virtiofs share on macOS - .#demo-tools: Hermes and the checks get their whole PATH from the store - each run saves its MCP messages and a transcript - the guide: tools as system calls, names as file descriptors; no Linux networking, but WebApps - grants match a named URL before "download" Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
783e4c595f
commit
3f9ba54477
15 files changed
+2398
-282
No files matched your search
+11
-2
@@ -2,7 +2,8 @@
|
||||
# Inside the VM, systemd serves Hermes's two sockets too; each connection
|
||||
# is relayed over vsock to the host (CID 2), where vfkit connects it to a
|
||||
# Unix socket in hostDir. So the host's listeners on those two paths
|
||||
# decide what Hermes can reach.
|
||||
# decide what Hermes can reach. The downloads folder is hostDir/Downloads,
|
||||
# shared into the VM by virtiofs.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
@@ -42,7 +43,7 @@ in
|
||||
hostDir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
example = "/Users/me/.local/state/hermes-guest";
|
||||
description = "The host directory with the VM's state image, and the two Unix sockets vfkit connects to.";
|
||||
description = "The host directory with the VM's state image, the two Unix sockets vfkit connects to, and the guest's downloads folder, Downloads.";
|
||||
};
|
||||
hostPort = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
@@ -75,6 +76,14 @@ in
|
||||
mountPoint = "/nix/.ro-store";
|
||||
proto = "virtiofs";
|
||||
}
|
||||
# the downloads folder, which the host writes; the unit binds it
|
||||
# read-only into Hermes's home
|
||||
{
|
||||
tag = "downloads";
|
||||
source = "${vm.hostDir}/Downloads";
|
||||
mountPoint = cfg.downloadsDir;
|
||||
proto = "virtiofs";
|
||||
}
|
||||
];
|
||||
volumes = [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user