@sagentlab/navarch-runtime 0.1.42 → 0.1.43
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 +14 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -326,7 +326,7 @@ unchanged across the deployment.
|
|
|
326
326
|
| `NAVARCH_ACP_BIN` | `dsh` | Path/name of an Agent Client Protocol v1 stdio server. DeepSeek Harness is the default implementation. |
|
|
327
327
|
| `NAVARCH_ACP_EXTRA_ARGS` | `--profile,acp` | Comma list of arguments used to start the ACP server. Override this together with `NAVARCH_ACP_BIN` for another ACP-compatible coding agent. |
|
|
328
328
|
| `NAVARCH_MCP_CONFIG_PATH` | — | Path to the platform MCP config passed as `--mcp-config`. |
|
|
329
|
-
| `NAVARCH_WORKTREE_GUARD` | on | Host-mode sessions get an adapter-native per-session worktree boundary guard (see below). Set `off` to disable. |
|
|
329
|
+
| `NAVARCH_WORKTREE_GUARD` | on | Host-mode sessions get an adapter-native per-session worktree boundary guard (see below). Set `off` to disable it for every runtime on the machine — required to run OpenCode on the host. |
|
|
330
330
|
| `NAVARCH_GUARD_EXTRA_ROOTS` | — | `path.delimiter`-separated (`:` on POSIX) extra directories the worktree guard allows beyond the session worktree, shared bare repo, and temp dirs. |
|
|
331
331
|
|
|
332
332
|
## Worktree boundary guard (host mode)
|
|
@@ -378,10 +378,13 @@ as an explicit read-only mount.
|
|
|
378
378
|
Docker-mode sessions disable Gemini's implicit YOLO sandbox to avoid nesting
|
|
379
379
|
it inside Navarch's already isolated session container.
|
|
380
380
|
- **OpenCode:** the CLI cannot currently express a host-side boundary for all
|
|
381
|
-
shell side effects
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
381
|
+
shell side effects, so with the guard enabled it is resolved out of the
|
|
382
|
+
machine's advertised runtimes at startup — and a machine that offers only
|
|
383
|
+
OpenCode there refuses to start rather than claim tasks it can only fail.
|
|
384
|
+
Run OpenCode in Docker with an operator-owned image that contains an
|
|
385
|
+
authenticated `opencode` binary, or set `NAVARCH_WORKTREE_GUARD=off` only
|
|
386
|
+
when the whole machine is already isolated (the opt-out is machine-wide:
|
|
387
|
+
every runtime on it loses the boundary).
|
|
385
388
|
OpenCode receives a private, per-session config, project config discovery is
|
|
386
389
|
disabled, and lease MCP headers are referenced through child-only environment
|
|
387
390
|
variables instead of being copied into its config file or argv.
|
|
@@ -445,15 +448,18 @@ export NAVARCH_AGENT=codex
|
|
|
445
448
|
export NAVARCH_AGENT=gemini
|
|
446
449
|
|
|
447
450
|
# OpenCode — requires an authenticated `opencode` CLI (or
|
|
448
|
-
# NAVARCH_OPENCODE_BIN pointing at it).
|
|
449
|
-
# use a Docker image containing OpenCode for the normal
|
|
451
|
+
# NAVARCH_OPENCODE_BIN pointing at it). A guarded host refuses to start with
|
|
452
|
+
# only this runtime; use a Docker image containing OpenCode for the normal
|
|
453
|
+
# isolated path, or NAVARCH_WORKTREE_GUARD=off on an isolated machine.
|
|
450
454
|
export NAVARCH_AGENT=opencode
|
|
451
455
|
|
|
452
456
|
# Agent Client Protocol — defaults to DeepSeek Harness `dsh --profile acp`.
|
|
453
457
|
# Override NAVARCH_ACP_BIN / NAVARCH_ACP_EXTRA_ARGS for another ACP v1 server.
|
|
454
458
|
export NAVARCH_AGENT=acp
|
|
455
459
|
|
|
456
|
-
# Advanced compatibility mode: advertise every installed adapter.
|
|
460
|
+
# Advanced compatibility mode: advertise every installed adapter. On a guarded
|
|
461
|
+
# host, `opencode` is dropped from this list (see the boundary notes above);
|
|
462
|
+
# the rest are advertised as written.
|
|
457
463
|
export NAVARCH_RUNTIMES=claude-code,codex,gemini,opencode,acp
|
|
458
464
|
```
|
|
459
465
|
|
package/package.json
CHANGED