@fibteq/myrel-runner 0.19.0 → 0.21.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 +28 -5
- package/dist/cli.js +59 -54
- package/dist/index.js +48 -44
- 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, OpenCode, Hermes Agent, Cursor CLI or
|
|
5
|
+
Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code or Kimi Code.
|
|
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
|
|
@@ -10,12 +10,16 @@ Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI or Muse Code.
|
|
|
10
10
|
- The CLI runs with **your own login on your computer**. myrel-runner never reads, sends or stores your Claude,
|
|
11
11
|
OpenAI or Google credentials. The only secret it keeps is its own Myrel runner token, in
|
|
12
12
|
`~/.myrel-runner/config.json` (readable by you only).
|
|
13
|
+
- For the project's connected GitHub repositories, git gets a short-lived token of the turn's own (0.21.0+), so
|
|
14
|
+
cloning and pushing work without a GitHub login on the computer. It is kept in memory only: a git credential helper
|
|
15
|
+
fetches it from the runner on `127.0.0.1` (the only port it opens, and only while such a turn runs), at an address
|
|
16
|
+
only that run knows. It covers only those repositories; everything else uses your own git login.
|
|
13
17
|
- It only works in folders you shared, from Myrel > Devices or with `myrel-runner share`. A path from the server that is not one of them
|
|
14
18
|
(after resolving symlinks) is refused.
|
|
15
19
|
|
|
16
20
|
## Use
|
|
17
21
|
|
|
18
|
-
Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI), `opencode`, `hermes` (Hermes Agent), `cursor-agent` (Cursor CLI)
|
|
22
|
+
Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI), `opencode`, `hermes` (Hermes Agent), `cursor-agent` (Cursor CLI), `muse` (Muse Code) or `kimi` (Kimi Code) on your `PATH`, already signed in.
|
|
19
23
|
|
|
20
24
|
```sh
|
|
21
25
|
npx myrel-runner pair ABCD-1234 --server https://myrel.example.com # code from Myrel > Devices
|
|
@@ -135,6 +139,13 @@ that run only. With `read` its write and shell tools are taken away (its `:read-
|
|
|
135
139
|
a command's approval). `full` is `--yolo`: no approval, no sandbox. Muse Code has no `--add-dir`, so below `full` it
|
|
136
140
|
writes only in the project's main folder.
|
|
137
141
|
|
|
142
|
+
Kimi Code runs as an ACP server (`kimi acp`) like Hermes Agent, whose session takes a permission mode: `plan` with
|
|
143
|
+
`read` (no edits but its own plan file), `default` with `edit` and `auto` (reads and edits inside the folder's git
|
|
144
|
+
repository run, the rest asks) and `auto` ("never ask") with `full`. What it asks permission for is declined below
|
|
145
|
+
`full`, except the run's own MCP tools (`mcp__<server>__…`), which are allowed at every level. It has no sandbox, so
|
|
146
|
+
below `full` its shell commands are declined; its `yolo` mode would run them all but system commands (shutdown,
|
|
147
|
+
`mkfs`), so `auto` stays with `edit` as for Codex. Rules you set to `deny` in its config always hold.
|
|
148
|
+
|
|
138
149
|
With `edit`, the CLI can change files in the folder but cannot run commands that would need your approval. Use
|
|
139
150
|
`full` only for folders and projects you trust: it lets the CLI run any command without asking.
|
|
140
151
|
|
|
@@ -150,8 +161,8 @@ level does not allow on its own (with `edit`: `git commit`, `git push`, tests) i
|
|
|
150
161
|
Allow commands this turn, Don't run), so there is no need to restart the runner with `--access full` for one task. A
|
|
151
162
|
file change inside the folders with `read` is declined as before. With `full`, Claude Code then runs with
|
|
152
163
|
`acceptEdits` and commands and web tools pre-allowed instead of `bypassPermissions`, so only files outside the folders
|
|
153
|
-
are asked about. Codex, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI and
|
|
154
|
-
`external_directory` allow rules).
|
|
164
|
+
are asked about. Codex, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code and Kimi Code cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
|
|
165
|
+
`external_directory` allow rules, Kimi Code as the session's `additionalDirectories`).
|
|
155
166
|
|
|
156
167
|
Tasks in the same Myrel thread continue the same Claude Code session (`--resume`), so follow-ups keep context.
|
|
157
168
|
|
|
@@ -170,11 +181,12 @@ decisions, artifacts, memory, routines) added over MCP:
|
|
|
170
181
|
| Hermes Agent | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header |
|
|
171
182
|
| Cursor CLI | `mcp.json` of a plugin folder of the run (`--plugin-dir`, `--approve-mcps`), allowed with `Mcp(plugin-myrel-myrel:*)` in a `cli-config.json` of the run (`CURSOR_CONFIG_DIR`) |
|
|
172
183
|
| Muse Code | `-c 'mcpServers.myrel={"url":…,"headers":{"Authorization":"${MYREL_MCP_AUTH}"}}'`, run with `--approval-mode never` |
|
|
184
|
+
| Kimi Code | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header, its tools allowed when it asks |
|
|
173
185
|
|
|
174
186
|
The MCP endpoint is `<server>/api/agent-mcp/<thread>` and its token is valid only for that turn. Config files holding
|
|
175
187
|
it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
|
|
176
188
|
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
|
|
177
|
-
for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent, 0.17.0 or later for Cursor CLI, 0.19.0 or later for Muse Code.
|
|
189
|
+
for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent, 0.17.0 or later for Cursor CLI, 0.19.0 or later for Muse Code, 0.20.0 or later for Kimi Code.
|
|
178
190
|
|
|
179
191
|
Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
|
|
180
192
|
server there, the bridge, and an allow rule for its tools; the rest of both files stays as it is. Each run hands the
|
|
@@ -215,6 +227,17 @@ effort tiers); a picked model and effort go in as `--model` and `--effort`, othe
|
|
|
215
227
|
MCP servers come from your settings too. Skills: the prompt names the run's skills folder, where Muse Code reads them.
|
|
216
228
|
Detection checks that `muse --version` says Muse Code. Sign in once with `muse login`.
|
|
217
229
|
|
|
230
|
+
Kimi Code (Moonshot AI's `kimi`, the npm package `@moonshot-ai/kimi-code`) takes MCP servers for a run only in its
|
|
231
|
+
ACP server: `kimi -p` reads them from `~/.kimi-code/mcp.json`. So a run is one ACP session, as with Hermes Agent:
|
|
232
|
+
`session/new` (or `session/resume`) with the run's servers and the project's other folders, `session/set_mode`, the
|
|
233
|
+
model and thinking level with `session/set_config_option`, then `session/prompt`. Nothing is written to your
|
|
234
|
+
`~/.kimi-code`. Its models are the aliases `kimi provider list --json` lists (from your login or your own
|
|
235
|
+
providers), each with its thinking levels (`supportEfforts`); a picked model and level go in as the session's
|
|
236
|
+
`model` and `thinking`, otherwise your `config.toml` decides. Its tools show up as `mcp__<server>__<tool>`; your own
|
|
237
|
+
servers in `mcp.json` load too, but only the run's are allowed without asking. Skills: the prompt names the run's
|
|
238
|
+
skills folder, which Kimi Code may read. Detection checks that `kimi --version` prints a bare version (the archived
|
|
239
|
+
Python kimi-cli prints `kimi, version …`). Sign in once with `kimi login`.
|
|
240
|
+
|
|
218
241
|
Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
|
|
219
242
|
|
|
220
243
|
### For apps that run it (the desktop app)
|