@fibteq/myrel-runner 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -3
- package/dist/cli.js +68 -65
- package/dist/index.js +42 -39
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Connects your computer to a Myrel server, so a project can work in one of your
|
|
4
4
|
local folders with the coding CLI you already use: Claude Code, Codex CLI,
|
|
5
|
-
Antigravity CLI or
|
|
5
|
+
Antigravity CLI, OpenCode or Hermes Agent.
|
|
6
6
|
|
|
7
7
|
- It opens an **outbound** WebSocket to the server. No port is opened, and it works behind NAT.
|
|
8
8
|
- The server sends a task (a folder, a CLI and a prompt). The runner starts the CLI in that folder, streams its
|
|
@@ -15,7 +15,7 @@ Antigravity CLI or OpenCode.
|
|
|
15
15
|
|
|
16
16
|
## Use
|
|
17
17
|
|
|
18
|
-
Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI) or `
|
|
18
|
+
Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI), `opencode` or `hermes` (Hermes Agent) on your `PATH`, already signed in.
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
21
|
npx myrel-runner pair ABCD-1234 --server https://myrel.example.com # code from Myrel > Devices
|
|
@@ -117,6 +117,12 @@ permission you set to `ask` yourself) is declined and the run goes on too
|
|
|
117
117
|
(`experimental.continue_loop_on_deny`). With `full`, `--auto` approves what would ask, but rules you set to `deny`
|
|
118
118
|
still hold.
|
|
119
119
|
|
|
120
|
+
Hermes Agent runs as an ACP server (`hermes acp`), whose session takes an edit mode: `default` (asks before
|
|
121
|
+
edits) with `read`, `accept_edits` with `edit` and `auto`, `dont_ask` with `full`. What it asks permission for
|
|
122
|
+
(dangerous commands, sensitive files, edits with `read`) is declined below `full` and allowed with `full`. Its
|
|
123
|
+
terminal cannot be switched off for one run (toolsets come from its global config), so below `full` it is told not
|
|
124
|
+
to run commands that change anything; this is an instruction, not a sandbox.
|
|
125
|
+
|
|
120
126
|
With `edit`, the CLI can change files in the folder but cannot run commands that would need your approval. Use
|
|
121
127
|
`full` only for folders and projects you trust: it lets the CLI run any command without asking.
|
|
122
128
|
|
|
@@ -149,11 +155,12 @@ decisions, artifacts, memory, routines) added over MCP:
|
|
|
149
155
|
| Codex CLI | `-c mcp_servers.myrel.url=…` and `-c mcp_servers.myrel.bearer_token_env_var="MYREL_MCP_TOKEN"` |
|
|
150
156
|
| Antigravity CLI | `myrel-runner mcp-bridge` in `~/.gemini/config/mcp_config.json`, allowed with `mcp(myrel/*)` in `~/.gemini/antigravity-cli/settings.json` |
|
|
151
157
|
| OpenCode | `mcp.myrel` (remote, `Authorization: Bearer {env:MYREL_MCP_TOKEN}`) in `OPENCODE_CONFIG_CONTENT`, allowed with `myrel_*` |
|
|
158
|
+
| Hermes Agent | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header |
|
|
152
159
|
|
|
153
160
|
The MCP endpoint is `<server>/api/agent-mcp/<thread>` and its token is valid only for that turn. Config files holding
|
|
154
161
|
it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
|
|
155
162
|
uses your own CLI login. Needs myrel-runner 0.4.0 or later for Claude Code, 0.5.0 or later for Codex, 0.13.0 or later
|
|
156
|
-
for Antigravity CLI, 0.15.0 or later for OpenCode.
|
|
163
|
+
for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent.
|
|
157
164
|
|
|
158
165
|
Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
|
|
159
166
|
server there, the bridge, and an allow rule for its tools; the rest of both files stays as it is. Each run hands the
|
|
@@ -166,6 +173,14 @@ merged over your own config, and the token stays in `MYREL_MCP_TOKEN`. Your mode
|
|
|
166
173
|
opencode 2 runs `opencode run` through its background service, which would ignore that config, so the runner adds
|
|
167
174
|
`--standalone` when `opencode --version` says 2 or later. Connectors' tools show up as `<connector>_<tool>`.
|
|
168
175
|
|
|
176
|
+
Hermes Agent's `hermes chat` runs every turn in a shared background gateway that takes MCP servers only from
|
|
177
|
+
`~/.hermes/config.yaml`, so the runner uses its ACP server instead (`hermes acp`, which needs
|
|
178
|
+
`hermes pm install --extra acp` once). Each run is one ACP session: initialize, `session/new` or `session/resume`
|
|
179
|
+
(the thread's previous session) with the run's MCP servers, `session/set_mode`, then `session/prompt`; the runner
|
|
180
|
+
ends the connection when the prompt is answered. The token travels only over that pipe. Hermes shows the run's
|
|
181
|
+
servers to the model behind its `tool_search`, as `mcp__editor_<server>_<id>__<tool>`. Detection checks that
|
|
182
|
+
`hermes --version` says Hermes Agent (another `hermes` is the React Native JavaScript engine).
|
|
183
|
+
|
|
169
184
|
Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
|
|
170
185
|
|
|
171
186
|
### For apps that run it (the desktop app)
|