@remcp/runtime 0.2.107 → 0.2.109

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.109 — 2026-09-25
4
+
5
+ - Linux file reads and recursive permission changes retain descriptor-bound parent traversal for the full operation; proc-fd anchored captures remain readable without reopening the path lexically.
6
+ - Linux directory walks, listings, and search sessions pin allowed roots and parent descriptors, including bulk reads and edits, so ancestor swaps cannot redirect traversal.
7
+ - `record_screen` publishes from private staging and anchors Linux destination parents; XDG portal screenshots use no-follow copying, reject symlink source/destination paths, and no longer delete an untrusted portal-returned URI.
8
+ - Production CDP sessions reject dead sockets, recursively guard child targets and evict failed guarded new-tab sessions. Runtime tool names and schemas are unchanged.
9
+
10
+ ## 0.2.108 — 2026-09-25
11
+
12
+ - Standalone production runtimes keep browser control disabled unless explicitly enabled; the authenticated paired agent enables its owned local runtime. IP-literal production allowlisting and persistent CDP guards cover page and worker sessions, delayed navigation, redirects, and subresources.
13
+ - Archive and document operations use descriptor-bound Linux traversal where available; macOS/Windows preserve bounded source snapshots, canonical confinement, link/special-file rejection, and atomic staging through portable filesystem APIs instead of losing document/archive tools.
14
+ - Linux semantic scroll/drag targets refresh accessibility geometry, and empty AT-SPI snapshots retry once before using the conservative depth fallback. Runtime tool names and schemas are unchanged.
15
+
3
16
  ## 0.2.106 — 2026-09-22
4
17
 
5
18
  - Wayland EIS records the emulated device used for each button press and sends the matching release through that same device, preventing cross-region/device drags from losing `pointerup`.
package/README.md CHANGED
@@ -143,6 +143,12 @@ in `~/.config/remcp/runtime.json`. `--describe` always reports the current state
143
143
  agent. Browser control accepts only loopback CDP endpoints. The explicit `network` diagnostic can
144
144
  open a bounded TCP connection to a host/port, and shell/browser actions can reach the network when
145
145
  the requested operation itself requires it.
146
+ - **Remote browser safety.** A standalone production runtime keeps browser control disabled unless
147
+ `REMCP_BROWSER_REMOTE_ENABLED=1`; the authenticated ReMCP device agent explicitly enables it for the local
148
+ runtime it owns. Production navigation requires an explicit `REMCP_BROWSER_ALLOWED_HOSTS` allowlist of IP
149
+ literals. Hostname navigation is refused unless `REMCP_BROWSER_ALLOW_DNS_REBIND=1` is set behind an external
150
+ DNS/egress boundary. Local navigation requires a separate `REMCP_BROWSER_ALLOW_LOCAL_NAVIGATION=1` opt-in,
151
+ and CDP request guards reject private, file, and WebSocket destinations.
146
152
  - **Optional confinement.** `allowedRoots` is empty by default. When you set it, it is enforced
147
153
  against the resolved real path of the deepest existing ancestor rather than the lexical string, so
148
154
  `<allowed>/link -> /etc` cannot be used to read or write outside the allowed directories.
@@ -159,6 +165,10 @@ in `~/.config/remcp/runtime.json`. `--describe` always reports the current state
159
165
  transport limit), writes are capped (`maxWriteBytes`), buffered session output is capped by both
160
166
  line count and total characters - a stream with no newlines cannot grow without limit - and reads
161
167
  are paged or chunked.
168
+ - **Filesystem structural safety.** Archive and document snapshot/publication operations use
169
+ descriptor-bound directory traversal on Linux. macOS and Windows preserve the same bounded snapshot,
170
+ link/special-file rejection, canonical root confinement and atomic staging semantics, while using their
171
+ portable path APIs where Node does not expose directory-fd-relative open/rename/unlink primitives.
162
172
  - **Crash-resistant sessions.** A bogus shell, a closed stdin, or a dead parent cannot take the
163
173
  runtime down; sessions run in their own process group so `force_terminate` stops a whole pipeline;
164
174
  the agent restarts the runtime if it ever exits, so a device recovers instead of going silently
@@ -195,8 +205,10 @@ Optional settings live in `~/.config/remcp/runtime.json` (override the directory
195
205
  Every value can also be set with an environment variable: `REMCP_RUNTIME_ALLOWED_ROOTS`,
196
206
  `REMCP_RUNTIME_BLOCKED_COMMANDS`, `REMCP_RUNTIME_DANGEROUS_COMMANDS`, `REMCP_RUNTIME_TELEMETRY`,
197
207
  `REMCP_RUNTIME_DISABLE_TELEMETRY`, `REMCP_RUNTIME_MAX_OUTPUT_BYTES`, `REMCP_RUNTIME_MAX_READ_LINES`,
198
- `REMCP_RUNTIME_MAX_BUFFERED_LINES`, `REMCP_RUNTIME_MAX_WRITE_BYTES`, `REMCP_RUNTIME_SHELL`,
199
- `REMCP_RUNTIME_NAME`.
208
+ `REMCP_RUNTIME_MAX_BUFFERED_LINES`, `REMCP_RUNTIME_MAX_WRITE_BYTES`, `REMCP_RUNTIME_SHELL`,
209
+ `REMCP_RUNTIME_NAME`, `REMCP_BROWSER_REMOTE_ENABLED`, `REMCP_BROWSER_ALLOWED_HOSTS`,
210
+ `REMCP_BROWSER_ALLOW_LOCAL_NAVIGATION`, `REMCP_BROWSER_ALLOW_DNS_REBIND`.
211
+
200
212
 
201
213
  `allowedRoots` is empty by default, which means the paired device can reach anything the operating
202
214
  system user running the agent can reach. Set it when you want the device to be scoped to specific
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/runtime",
3
- "version": "0.2.107",
3
+ "version": "0.2.109",
4
4
  "description": "First-party ReMCP local device runtime: filesystem, terminal, computer-use, browser, diagnostics and document tools over MCP.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "start": "node src/index.mjs",
23
23
  "check": "node scripts/check.mjs",
24
- "test": "node --test test/*.test.mjs"
24
+ "test": "node --import ./test/setup.mjs --test test/*.test.mjs"
25
25
  },
26
26
  "dependencies": {
27
27
  "@jellybrick/dbus-next": "^0.11.3",
package/src/catalog.mjs CHANGED
@@ -830,6 +830,14 @@ export const toolDefinitions = [
830
830
  },
831
831
  ];
832
832
 
833
+ export function coreToolSupported(definition) {
834
+ return !['create_archive', 'extract_archive'].includes(definition.name) || process.platform === 'linux';
835
+ }
836
+
837
+ export function supportedCoreTools() {
838
+ return toolDefinitions.filter(coreToolSupported);
839
+ }
840
+
833
841
  export function advertisedTools() {
834
842
  return toolDefinitions.map(({ name, title, description, inputSchema, annotations, outputSchema }) => ({
835
843
  name,
@@ -1,4 +1,4 @@
1
- import { TEXT_OUTPUT_SCHEMA, toolDefinitions } from './catalog.mjs';
1
+ import { TEXT_OUTPUT_SCHEMA, supportedCoreTools, toolDefinitions } from './catalog.mjs';
2
2
  import { advertisedExtendedTools, extendedToolDefinitions } from './extended/catalog.mjs';
3
3
 
4
4
  export const compactRuntimeGroups = Object.freeze({
@@ -127,7 +127,7 @@ function groupedDefinition(name, members) {
127
127
  export async function supportedRuntimeOperationNames() {
128
128
  const supportedExtended = new Set((await advertisedExtendedTools()).map(tool => tool.name));
129
129
  return new Set([
130
- ...toolDefinitions.map(tool => tool.name),
130
+ ...supportedCoreTools().map(tool => tool.name),
131
131
  ...extendedToolDefinitions.filter(tool => supportedExtended.has(tool.name)).map(tool => tool.name),
132
132
  ]);
133
133
  }