@fibteq/myrel-runner 0.14.1 → 0.15.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 +25 -11
- package/dist/cli.js +49 -47
- package/dist/index.js +45 -43
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# myrel-runner
|
|
2
2
|
|
|
3
3
|
Connects your computer to a Myrel server, so a project can work in one of your
|
|
4
|
-
local folders with the coding CLI you already use: Claude Code, Codex CLI
|
|
5
|
-
Antigravity CLI.
|
|
4
|
+
local folders with the coding CLI you already use: Claude Code, Codex CLI,
|
|
5
|
+
Antigravity CLI or OpenCode.
|
|
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.
|
|
|
15
15
|
|
|
16
16
|
## Use
|
|
17
17
|
|
|
18
|
-
Requires Node 22+ and at least one of `claude`, `codex
|
|
18
|
+
Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI) or `opencode` 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
|
|
@@ -92,12 +92,12 @@ Read-only tasks (`--access read`) always run in the folder itself.
|
|
|
92
92
|
`myrel-runner start --access <level>`, or for the background runner `myrel-runner service install --access <level>` or
|
|
93
93
|
`myrel-runner update --access <level>` (both restart it). The level is saved for next time:
|
|
94
94
|
|
|
95
|
-
| level | Claude Code | Codex | Antigravity CLI |
|
|
96
|
-
|
|
97
|
-
| `read` | `--permission-mode plan` | `--sandbox read-only` | `--mode plan` |
|
|
98
|
-
| `edit` (default) | `--permission-mode acceptEdits` | `--sandbox workspace-write` | `--mode accept-edits` |
|
|
99
|
-
| `auto` | `--permission-mode auto` | `--sandbox workspace-write` | `--mode accept-edits` |
|
|
100
|
-
| `full` | `--permission-mode bypassPermissions` | `--sandbox danger-full-access` | `--dangerously-skip-permissions` |
|
|
95
|
+
| level | Claude Code | Codex | Antigravity CLI | OpenCode |
|
|
96
|
+
|---|---|---|---|---|
|
|
97
|
+
| `read` | `--permission-mode plan` | `--sandbox read-only` | `--mode plan` | edit and bash denied |
|
|
98
|
+
| `edit` (default) | `--permission-mode acceptEdits` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied |
|
|
99
|
+
| `auto` | `--permission-mode auto` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied |
|
|
100
|
+
| `full` | `--permission-mode bypassPermissions` | `--sandbox danger-full-access` | `--dangerously-skip-permissions` | edit and bash allowed, `--auto` |
|
|
101
101
|
|
|
102
102
|
With `auto`, Claude Code's auto mode decides which steps are safe to run (tests, git commit, builds) and runs them;
|
|
103
103
|
the ones it would ask about come to you as a card in the thread. Your Claude account must have auto mode; Codex and
|
|
@@ -111,6 +111,12 @@ and Myrel's tools, and a run that still stops says which permission stopped it.
|
|
|
111
111
|
commands, or allow single ones under `permissions.allow` in `~/.gemini/antigravity-cli/settings.json` (e.g.
|
|
112
112
|
`command(git)`).
|
|
113
113
|
|
|
114
|
+
OpenCode has no sandbox for commands either, so below `full` its bash tool is denied: OpenCode then does not
|
|
115
|
+
offer it at all, and the run goes on with files and Myrel's tools. Anything else that would ask (for example a
|
|
116
|
+
permission you set to `ask` yourself) is declined and the run goes on too
|
|
117
|
+
(`experimental.continue_loop_on_deny`). With `full`, `--auto` approves what would ask, but rules you set to `deny`
|
|
118
|
+
still hold.
|
|
119
|
+
|
|
114
120
|
With `edit`, the CLI can change files in the folder but cannot run commands that would need your approval. Use
|
|
115
121
|
`full` only for folders and projects you trust: it lets the CLI run any command without asking.
|
|
116
122
|
|
|
@@ -126,7 +132,8 @@ level does not allow on its own (with `edit`: `git commit`, `git push`, tests) i
|
|
|
126
132
|
Allow commands this turn, Don't run), so there is no need to restart the runner with `--access full` for one task. A
|
|
127
133
|
file change inside the folders with `read` is declined as before. With `full`, Claude Code then runs with
|
|
128
134
|
`acceptEdits` and commands and web tools pre-allowed instead of `bypassPermissions`, so only files outside the folders
|
|
129
|
-
are asked about. Codex
|
|
135
|
+
are asked about. Codex, Antigravity CLI and OpenCode cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
|
|
136
|
+
`external_directory` allow rules).
|
|
130
137
|
|
|
131
138
|
Tasks in the same Myrel thread continue the same Claude Code session (`--resume`), so follow-ups keep context.
|
|
132
139
|
|
|
@@ -141,17 +148,24 @@ decisions, artifacts, memory, routines) added over MCP:
|
|
|
141
148
|
| Claude Code | `--mcp-config <file>`, allowed with `--allowedTools mcp__myrel` |
|
|
142
149
|
| Codex CLI | `-c mcp_servers.myrel.url=…` and `-c mcp_servers.myrel.bearer_token_env_var="MYREL_MCP_TOKEN"` |
|
|
143
150
|
| Antigravity CLI | `myrel-runner mcp-bridge` in `~/.gemini/config/mcp_config.json`, allowed with `mcp(myrel/*)` in `~/.gemini/antigravity-cli/settings.json` |
|
|
151
|
+
| OpenCode | `mcp.myrel` (remote, `Authorization: Bearer {env:MYREL_MCP_TOKEN}`) in `OPENCODE_CONFIG_CONTENT`, allowed with `myrel_*` |
|
|
144
152
|
|
|
145
153
|
The MCP endpoint is `<server>/api/agent-mcp/<thread>` and its token is valid only for that turn. Config files holding
|
|
146
154
|
it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
|
|
147
155
|
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
|
|
148
|
-
for Antigravity CLI.
|
|
156
|
+
for Antigravity CLI, 0.15.0 or later for OpenCode.
|
|
149
157
|
|
|
150
158
|
Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
|
|
151
159
|
server there, the bridge, and an allow rule for its tools; the rest of both files stays as it is. Each run hands the
|
|
152
160
|
bridge its thread's endpoint, token and connectors in a private file (`MYREL_MCP_BRIDGE`), deleted after the run, so
|
|
153
161
|
the global config never holds a token. When you start `agy` yourself, the bridge has no run and offers no tools.
|
|
154
162
|
Connectors' tools show up there as `<connector>__<tool>`. Sign in to `agy` once yourself; runs reuse that login.
|
|
163
|
+
OpenCode takes a whole config for one run in `OPENCODE_CONFIG_CONTENT`, so nothing is written to your
|
|
164
|
+
`~/.config/opencode`: the run's servers, connectors, permission rules and skills folder (`skills.paths`) go there,
|
|
165
|
+
merged over your own config, and the token stays in `MYREL_MCP_TOKEN`. Your model and provider logins are your own.
|
|
166
|
+
opencode 2 runs `opencode run` through its background service, which would ignore that config, so the runner adds
|
|
167
|
+
`--standalone` when `opencode --version` says 2 or later. Connectors' tools show up as `<connector>_<tool>`.
|
|
168
|
+
|
|
155
169
|
Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
|
|
156
170
|
|
|
157
171
|
### For apps that run it (the desktop app)
|