From c66247cb5a24654e1bd6a7a0d03c3b5c542bf87f Mon Sep 17 00:00:00 2001 From: benjaminfrombe Date: Sun, 15 Nov 2026 16:46:55 +0100 Subject: [PATCH 1/2] feat(core): sandbox agent shell commands with MXC Opt-in OS-level sandbox for the shell tool, enforced by Microsoft MXC (Seatbelt on macOS, bubblewrap on Linux, ProcessContainer on Windows). - sandbox config block, default off; an invalid block resolves to the strictest policy instead of being dropped - settings are honored from user-level config only: a repository cannot enable, loosen or tighten the sandbox or add writable roots - read-only and workspace-write modes, network deny by default - protected config paths (opencode.json, .opencode, .claude, .agents) cannot be written or planted by a sandboxed command, closing the restart escape; denied outright on Windows where read-only carve-outs are not enforced - fail-closed everywhere: unsupported platform, missing backend, remote workspace, or a network-deny policy Windows cannot enforce yet means the command does not run, never a silent unconfined fallback - separate shell_unsandboxed permission, asserted before the shell approval, so approving a sandboxed command never approves escaping it - live enforcement tests gated on backend availability: macOS Seatbelt and Windows ProcessContainer verified end to end Addresses the sandboxed-execution part of #48411. Supersedes #63599. --- bun.lock | 211 ++++++---- package.json | 1 + packages/core/package.json | 1 + packages/core/src/config/normalize.ts | 18 + packages/core/src/plugin/internal.ts | 3 + packages/core/src/sandbox.ts | 229 +++++++++++ packages/core/src/tool/plugin/shell.ts | 74 ++++ packages/core/test/agent.test.ts | 31 ++ .../core/test/config/normalization.test.ts | 23 ++ packages/core/test/sandbox.test.ts | 361 ++++++++++++++++++ packages/core/test/subagent-idle-e2e.test.ts | 2 + packages/core/test/tool-shell.test.ts | 108 ++++++ packages/schema/src/agent.ts | 3 + packages/schema/src/config.ts | 4 + packages/schema/src/config/sandbox.ts | 21 + packages/schema/test/config.test.ts | 15 + services/site/src/docs/content/config.mdx | 62 +++ .../site/src/docs/content/permissions.mdx | 1 + 18 files changed, 1088 insertions(+), 80 deletions(-) create mode 100644 packages/core/src/sandbox.ts create mode 100644 packages/core/test/sandbox.test.ts create mode 100644 packages/schema/src/config/sandbox.ts diff --git a/bun.lock b/bun.lock index 6c94e94150ab..77b9236327a8 100644 --- a/bun.lock +++ b/bun.lock @@ -220,6 +220,7 @@ "@ff-labs/fff-bun": "0.10.5", "@ff-labs/fff-node": "0.10.5", "@lydell/node-pty": "catalog:", + "@microsoft/mxc-sdk": "1.1.0", "@modelcontextprotocol/client": "2.4.0", "@modelcontextprotocol/core": "2.4.0", "@modelcontextprotocol/server": "2.4.0", @@ -986,6 +987,8 @@ "trustedDependencies": [ "electron", "esbuild", + "node-pty", + "koffi", ], "patchedDependencies": { "@ai-sdk/openai-compatible@2.0.41": "patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch", @@ -1099,13 +1102,13 @@ "@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.301", "", { "os": "darwin", "cpu": "x64" }, "sha512-k6jNdu9eEhkPLTPTwHTn3rbIpKHm0mcndkS4wAZtQehCIFc69tmZZ4yeEtQ4eZ2jR0+6ttLtRy+5Q82Q6Ohm0Q=="], - "@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.301", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-Uqjy+YD6ImvelrFs7WHRMboT3BqknGLrDSdiejDqzFk62TZZOqIH9OFHyiyvHexoO31CpDEcn+d7LB+SgpNurA=="], + "@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.301", "", { "os": "linux", "cpu": "arm64" }, "sha512-Uqjy+YD6ImvelrFs7WHRMboT3BqknGLrDSdiejDqzFk62TZZOqIH9OFHyiyvHexoO31CpDEcn+d7LB+SgpNurA=="], - "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.301", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-C1+q1cYZY2bYxDYCfHHaq9ToGMTO/6FdbB0JShyPCyAt0lrRC+myNgsvPq/0ZsrtPWbcbrpX6QgbsFn2QzEWcw=="], + "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.301", "", { "os": "linux", "cpu": "arm64" }, "sha512-C1+q1cYZY2bYxDYCfHHaq9ToGMTO/6FdbB0JShyPCyAt0lrRC+myNgsvPq/0ZsrtPWbcbrpX6QgbsFn2QzEWcw=="], - "@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/claude-agent-sdk-linux-x64@0.3.301", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-V0zrxg59pBSp6PXPD70m/nRwUApKM/q5SJdeHq2ZAn7mcAr/GIBRoBEAIrA2kOAK9EkIyjKNKkrwuOVeyId/lA=="], + "@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/claude-agent-sdk-linux-x64@0.3.301", "", { "os": "linux", "cpu": "x64" }, "sha512-V0zrxg59pBSp6PXPD70m/nRwUApKM/q5SJdeHq2ZAn7mcAr/GIBRoBEAIrA2kOAK9EkIyjKNKkrwuOVeyId/lA=="], - "@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.301", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-qmHolcb+CgzYc4rfZrJd5iEIzOPRPz2edJBH+8V4W4R+bswsNaqf59NBkrDt3GdfmGr42touHYJ/4dV+g/b5eQ=="], + "@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.301", "", { "os": "linux", "cpu": "x64" }, "sha512-qmHolcb+CgzYc4rfZrJd5iEIzOPRPz2edJBH+8V4W4R+bswsNaqf59NBkrDt3GdfmGr42touHYJ/4dV+g/b5eQ=="], "@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.301", "", { "os": "win32", "cpu": "arm64" }, "sha512-V/iwQ3/wcxeQaycw2Daym9CzxssjYXIWtQJEFoU+Zrck3++2lD24KxFK0pwB3f258/uwdKoAM0x5p7+FEMRzwQ=="], @@ -1671,6 +1674,46 @@ "@kobalte/utils": ["@kobalte/utils@0.9.2", "", { "dependencies": { "@solid-primitives/event-listener": "^2.2.14", "@solid-primitives/keyed": "^1.2.0", "@solid-primitives/map": "^0.4.7", "@solid-primitives/media": "^2.2.4", "@solid-primitives/props": "^3.1.8", "@solid-primitives/refs": "^1.0.5", "@solid-primitives/utils": "^6.2.1" }, "peerDependencies": { "solid-js": "^1.8.8" } }, "sha512-jRVXr+zsVHxzDXRoh+CDeXzvCsFJ6uiHhqqNQ26Cw9ZsZ3D6nqPUBt1gGVtj2ZPmRL3a9Uk1v8D1aJ8/I12Dow=="], + "@koromix/koffi-android-arm64": ["@koromix/koffi-android-arm64@3.3.7", "", { "os": "android", "cpu": "arm64" }, "sha512-330J8SnMF48DwADEbPYb5gAIM0mo3dZAsLUkuhyEPTPF49h73hRO7LMVXPkUmeXkK/J5Uvgsaem6Lx86Uev3GA=="], + + "@koromix/koffi-android-x64": ["@koromix/koffi-android-x64@3.3.7", "", { "os": "android", "cpu": "x64" }, "sha512-CE1LEAsMyChQQNjGVDy56lBEdU70zOOD709mdKtxM6Rn2I7srT8Jyj66kSwnl4gO4+2BlTBXMyEIAEyYiNXNEA=="], + + "@koromix/koffi-darwin-arm64": ["@koromix/koffi-darwin-arm64@3.3.7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-xg1nqqhHRo6QxxYZJtYhhEGAbkHCQxvjoId3BCkhIJhRLi7+dDBRpLEi8x/5xrhqjCp+c/XhMrkAvxWy0NEYBg=="], + + "@koromix/koffi-darwin-x64": ["@koromix/koffi-darwin-x64@3.3.7", "", { "os": "darwin", "cpu": "x64" }, "sha512-8KeSrHrxzj+SEvaSMc1ufpgn66AdtorKGGb8HNJN5A435stXZ35oxg2+rsAyhTduvEZ9DkCuU94A0crA8KQ0UA=="], + + "@koromix/koffi-freebsd-arm64": ["@koromix/koffi-freebsd-arm64@3.3.7", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-UTo2xw46ctQdcz55I3b5pP1Gs0mGcYZLGAJg7MpEdr8ZEMmmclTzU/WUwWw/lyj5x2Ld2fscjCt69elqfrUBOQ=="], + + "@koromix/koffi-freebsd-ia32": ["@koromix/koffi-freebsd-ia32@3.3.7", "", { "os": "freebsd", "cpu": "ia32" }, "sha512-5vgirS+XISQHzXiad3KYhZYGvuSbAtyrIm2etO118IjpWi87wbKP8xEdf8s4F+vU0HxGs9hcx5a+blwFMe9TFA=="], + + "@koromix/koffi-freebsd-x64": ["@koromix/koffi-freebsd-x64@3.3.7", "", { "os": "freebsd", "cpu": "x64" }, "sha512-R2POCHtQ46cyhCFtYuq3Uo4MEiMstwLi49fwUgu6Vl38XvqKeje5up5e72LTCXf+ks/y3nua3TYM5oXTBqYAUA=="], + + "@koromix/koffi-linux-arm": ["@koromix/koffi-linux-arm@3.3.7", "", { "os": "linux", "cpu": "arm" }, "sha512-zUb+N1CvsRikXKs93jNdHTAVFt3Njr7ShIA8QwOh2IH/8aV8bkQnkt7AOJvOK/uP0CHd7bxn82YgGUAcZW/pVw=="], + + "@koromix/koffi-linux-arm64": ["@koromix/koffi-linux-arm64@3.3.7", "", { "os": "linux", "cpu": "arm64" }, "sha512-7ttM8GE2gowelTTyTY0+t79rWaoilZMmW4MYgrIXx5NNShLiHtUNfyGGaNzCd1MD+j+bnNZLJ2lh3lkBS9stfw=="], + + "@koromix/koffi-linux-ia32": ["@koromix/koffi-linux-ia32@3.3.7", "", { "os": "linux", "cpu": "ia32" }, "sha512-hM6CtBgyWGkYzXIl+ciCWSCWnYh/6ft2FRi17aw345lK3Syl2OH06PPMxMd+AHkNrnYWT3nyrzl2Rcun9IeAiw=="], + + "@koromix/koffi-linux-loong64": ["@koromix/koffi-linux-loong64@3.3.7", "", { "os": "linux", "cpu": "none" }, "sha512-plmvZGrC2F02AIDNx3+QcjU39Y9XVgHAHMOM17HJCmxc3f5VpKO0d7aln3/Re6TchBW1h2ldFgI6pp/7vN7IQQ=="], + + "@koromix/koffi-linux-ppc64": ["@koromix/koffi-linux-ppc64@3.3.7", "", { "os": "linux", "cpu": "ppc64" }, "sha512-bmVe2k1v7tiOGcuX22+HIyOT39bRBrIJd2v6qzSN9Er/f7XI61cbJUnFYWdXpYecU2Ww1LDSkgIifcRyfpipqw=="], + + "@koromix/koffi-linux-riscv64": ["@koromix/koffi-linux-riscv64@3.3.7", "", { "os": "linux", "cpu": "none" }, "sha512-IG1cp7agL1Od03NrKy8B0UGHomco0sygtWhWIXTTbjkJZkjE9Ic79IWzA5d16XbVtob+247XYBDcaeJJ644Xiw=="], + + "@koromix/koffi-linux-x64": ["@koromix/koffi-linux-x64@3.3.7", "", { "os": "linux", "cpu": "x64" }, "sha512-1cxuG2zsO71wB3RwYt6AjJD9xQW0lUVw4TX4e3Q2DeffEqrVtE3g4IbQsnijTcSeZmmec1kDuuk4CSHUfhAEJQ=="], + + "@koromix/koffi-openbsd-arm64": ["@koromix/koffi-openbsd-arm64@3.3.7", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-8qqafiMgdmOTEeZsLSnuKdg82Id8IwcxG8MowVtk0zJ4iNObmg2Ygd1dTtWRwpMBW0gfXoodwRdRqnUur3R/aA=="], + + "@koromix/koffi-openbsd-ia32": ["@koromix/koffi-openbsd-ia32@3.3.7", "", { "os": "openbsd", "cpu": "ia32" }, "sha512-ZG06vAX5YUyUGAg9brg4maex7uGj1fybhlMrWt5FlocMBlrY05pn84vlCKavHsCficecAVq7yEzU8f+4FC2T7A=="], + + "@koromix/koffi-openbsd-x64": ["@koromix/koffi-openbsd-x64@3.3.7", "", { "os": "openbsd", "cpu": "x64" }, "sha512-jnBD84VCXRmOeJniInO8g5xH2XwVnifp2w35+UbAx8coMIS99YAW9uDNg/U7ooJIyL9hfbatfeNkjNhYhhNpKw=="], + + "@koromix/koffi-win32-arm64": ["@koromix/koffi-win32-arm64@3.3.7", "", { "os": "win32", "cpu": "arm64" }, "sha512-Sal267u6Mi+UK/Lbu5vECQDtvZCfK57BO1zmc+Tar7Kdy+hHZ8Eqx7SyxTP6js4ofavQ83pVp1SWQqK8XJVpcg=="], + + "@koromix/koffi-win32-ia32": ["@koromix/koffi-win32-ia32@3.3.7", "", { "os": "win32", "cpu": "ia32" }, "sha512-kOPimggBxcLjHM/rHOWZp8fyxu+UjeEkWM26Gb9XCnirmM76xDu+GXCSDoBPPqF8s+XkY3NrhUdgfIXcwmWiPA=="], + + "@koromix/koffi-win32-x64": ["@koromix/koffi-win32-x64@3.3.7", "", { "os": "win32", "cpu": "x64" }, "sha512-yVrh4Yzyjm+fH7CGIa8Ts+DSGeU8QrwEtECXxNswh3i86hwZTOKkqojaDFAYJov0B3w4BFcjR4TOKkPOB0ZpZA=="], + "@lydell/node-pty": ["@lydell/node-pty@1.2.0-beta.12", "", { "optionalDependencies": { "@lydell/node-pty-darwin-arm64": "1.2.0-beta.12", "@lydell/node-pty-darwin-x64": "1.2.0-beta.12", "@lydell/node-pty-linux-arm64": "1.2.0-beta.12", "@lydell/node-pty-linux-x64": "1.2.0-beta.12", "@lydell/node-pty-win32-arm64": "1.2.0-beta.12", "@lydell/node-pty-win32-x64": "1.2.0-beta.12" } }, "sha512-qIK890UwPupoj07osVvgOIa++1mxeHbcGry4PKRHhNVNs81V2SCG34eJr46GybiOmBtc8Sj5PB1/GGM5PL549g=="], "@lydell/node-pty-darwin-arm64": ["@lydell/node-pty-darwin-arm64@1.2.0-beta.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-tqaifcY9Cr41SblO1+FLzh8oxxtkNhuW9Dhl22lKme9BreYvKvxEZcdPIXTuqkJc5tagOEC4QHShKmJjLyLXLQ=="], @@ -1691,6 +1734,8 @@ "@mdx-js/mdx": ["@mdx-js/mdx@3.1.1", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdx": "^2.0.0", "acorn": "^8.0.0", "collapse-white-space": "^2.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "estree-util-scope": "^1.0.0", "estree-walker": "^3.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "markdown-extensions": "^2.0.0", "recma-build-jsx": "^1.0.0", "recma-jsx": "^1.0.0", "recma-stringify": "^1.0.0", "rehype-recma": "^1.0.0", "remark-mdx": "^3.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "source-map": "^0.7.0", "unified": "^11.0.0", "unist-util-position-from-estree": "^2.0.0", "unist-util-stringify-position": "^4.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" } }, "sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ=="], + "@microsoft/mxc-sdk": ["@microsoft/mxc-sdk@1.1.0", "", { "dependencies": { "koffi": "^3.2.1", "node-pty": "^1.1.0", "semver": "^7.7.4" }, "peerDependencies": { "@microsoft/mxc-sdk-nvx-runtime-win32-x64": "1.1.0" }, "optionalPeers": ["@microsoft/mxc-sdk-nvx-runtime-win32-x64"] }, "sha512-tSOPZ14ddCiXHc4hVNQp5Yi22HSQEfXh58Z4O/tLzERi+23rfRmMrJoxVK5jZYhlll68u4eF/UlQSaXWyUMj4w=="], + "@modelcontextprotocol/client": ["@modelcontextprotocol/client@2.4.0", "", { "dependencies": { "@modelcontextprotocol/core": "2.4.0", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.8", "jose": "^6.1.3", "pkce-challenge": "^5.0.0", "zod": "^4.2.0" } }, "sha512-LgrD2OphHuG12vfKFKz6SOnq7bKHQmhGJIAYdD+MZBn2npHEyry6uD8zvktodtl5CQM85MO0anUyD9JwmUmxww=="], "@modelcontextprotocol/core": ["@modelcontextprotocol/core@2.4.0", "", { "dependencies": { "zod": "^4.2.0" } }, "sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q=="], @@ -1839,13 +1884,13 @@ "@opencode/pty-darwin-x64": ["@opencode/pty-darwin-x64@0.5.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-xn4W7y8D+93WM+5+VAwTsPJjw/U9TTEZJQdtIQqFwcCgPCQUylMGu4/xhFbyMllzSycZyysJuhV6CHq/J798zw=="], - "@opencode/pty-linux-arm64-gnu": ["@opencode/pty-linux-arm64-gnu@0.5.2", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-0Kg1477t9VYHLkaOStiDuoC8S3qHH92ZY/QEgNSOavgkCAAbSEU0NrkIBhEi3Gnw5+ElvfgVcLzEwcM5cfiYAA=="], + "@opencode/pty-linux-arm64-gnu": ["@opencode/pty-linux-arm64-gnu@0.5.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-0Kg1477t9VYHLkaOStiDuoC8S3qHH92ZY/QEgNSOavgkCAAbSEU0NrkIBhEi3Gnw5+ElvfgVcLzEwcM5cfiYAA=="], - "@opencode/pty-linux-arm64-musl": ["@opencode/pty-linux-arm64-musl@0.5.2", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-ZNk4nBooiVCvkB8cCfwn2nDV5OQHdFk/MfRQzBfwk28LakM1YC4lSwZPzY0McvFVjUILie9UEKntHRzgPaDBcA=="], + "@opencode/pty-linux-arm64-musl": ["@opencode/pty-linux-arm64-musl@0.5.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-ZNk4nBooiVCvkB8cCfwn2nDV5OQHdFk/MfRQzBfwk28LakM1YC4lSwZPzY0McvFVjUILie9UEKntHRzgPaDBcA=="], - "@opencode/pty-linux-x64-gnu": ["@opencode/pty-linux-x64-gnu@0.5.2", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-iLEq9nWOKfm9iWqDGlhqcx+SSLFqBz3toX83n/W+MSlxWg5048HzlGd/3RxY04sxmI6dlg/Ygz3KqP3bCgfusg=="], + "@opencode/pty-linux-x64-gnu": ["@opencode/pty-linux-x64-gnu@0.5.2", "", { "os": "linux", "cpu": "x64" }, "sha512-iLEq9nWOKfm9iWqDGlhqcx+SSLFqBz3toX83n/W+MSlxWg5048HzlGd/3RxY04sxmI6dlg/Ygz3KqP3bCgfusg=="], - "@opencode/pty-linux-x64-musl": ["@opencode/pty-linux-x64-musl@0.5.2", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-jBIw7oimeoTXoHH4yvtVFoPZGU1Rx+kdTVU8HVFGwCDNmeP4hI+R7QhF/pEsKZxzykTskR5x9u5ciiVJ5WEnMg=="], + "@opencode/pty-linux-x64-musl": ["@opencode/pty-linux-x64-musl@0.5.2", "", { "os": "linux", "cpu": "x64" }, "sha512-jBIw7oimeoTXoHH4yvtVFoPZGU1Rx+kdTVU8HVFGwCDNmeP4hI+R7QhF/pEsKZxzykTskR5x9u5ciiVJ5WEnMg=="], "@opencode/pty-win32-arm64": ["@opencode/pty-win32-arm64@0.5.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-giPMQUcSyoe2z6wQN6MKhRgu4rVv/xqscX8qOVt2lu7yfRNfviPFVY0qFPGOcu1L3e+DT5VrIo2QZeRBeV1Bdw=="], @@ -1915,11 +1960,11 @@ "@opentui/core-linux-arm64": ["@opentui/core-linux-arm64@0.8.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-VGnBN3ItBwZog109wtPIou8pn93TseZwA5OZ05X2PYIYPw+IC6mVeO2Dn0qwwozLBDxeyH3ydbHMFlwzS4/fLg=="], - "@opentui/core-linux-arm64-musl": ["@opentui/core-linux-arm64-musl@0.8.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-IG887NHjPJEw5D1dvNl9jPbcwNFREFKj2fnqEjdrwCnDRywtjNL7k7GgTo24NNlyMAZAq0OkoM0M0Sn6ex/Adg=="], + "@opentui/core-linux-arm64-musl": ["@opentui/core-linux-arm64-musl@0.8.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-IG887NHjPJEw5D1dvNl9jPbcwNFREFKj2fnqEjdrwCnDRywtjNL7k7GgTo24NNlyMAZAq0OkoM0M0Sn6ex/Adg=="], "@opentui/core-linux-x64": ["@opentui/core-linux-x64@0.8.4", "", { "os": "linux", "cpu": "x64" }, "sha512-N/uxyaPpWkCZlDXz3fgHMfMuj1L3IVZ/xZ4JifUc4NW9bwa/CYWFJ5J5jBoy2QsAIqoqo8/OD3iFpXR4o12mNQ=="], - "@opentui/core-linux-x64-musl": ["@opentui/core-linux-x64-musl@0.8.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-FAiH7wMt/ZbpP2w6TL62deNExTg5w6mujKUBSK89+gJV8FN4jk/K2xz9f522aYhC6SdbpyIKwS0oGIJldYLkcg=="], + "@opentui/core-linux-x64-musl": ["@opentui/core-linux-x64-musl@0.8.4", "", { "os": "linux", "cpu": "x64" }, "sha512-FAiH7wMt/ZbpP2w6TL62deNExTg5w6mujKUBSK89+gJV8FN4jk/K2xz9f522aYhC6SdbpyIKwS0oGIJldYLkcg=="], "@opentui/core-win32-arm64": ["@opentui/core-win32-arm64@0.8.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-vjDuuIcmanoipIKdME8A7ZuBgIw2E1fv4pRJp6M19+Zfx0HIUmtA8bv+mT/kaz8Cpad9EUzJkNI5fV8P2p/iKg=="], @@ -1947,21 +1992,21 @@ "@oxc-parser/binding-linux-arm-musleabihf": ["@oxc-parser/binding-linux-arm-musleabihf@0.141.0", "", { "os": "linux", "cpu": "arm" }, "sha512-e6hwQqd+3lvP13G2jxvFpoA7dzHcFLN+Mq47JCVMtdNHbbyBRo756JCtbbJH6ca8inTfyqZoqBmS3vhQlzAK2w=="], - "@oxc-parser/binding-linux-arm64-gnu": ["@oxc-parser/binding-linux-arm64-gnu@0.141.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-vXz2BLAuypA+4MLyBg94pzEo6THVnzYnCtAjXoihIIQo0t2pnp/AmW+SH1EI+4VbuJnC//KplIJ5yyaCGua4jA=="], + "@oxc-parser/binding-linux-arm64-gnu": ["@oxc-parser/binding-linux-arm64-gnu@0.141.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-vXz2BLAuypA+4MLyBg94pzEo6THVnzYnCtAjXoihIIQo0t2pnp/AmW+SH1EI+4VbuJnC//KplIJ5yyaCGua4jA=="], - "@oxc-parser/binding-linux-arm64-musl": ["@oxc-parser/binding-linux-arm64-musl@0.141.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-jMkS/EztNW34HKsXIaT/SoHcmtocq/vWhwFOVduF9kduuuRIVwfwQ6uxzIO+qPKSXdd2TXt54of0BJ2zFMXnmw=="], + "@oxc-parser/binding-linux-arm64-musl": ["@oxc-parser/binding-linux-arm64-musl@0.141.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jMkS/EztNW34HKsXIaT/SoHcmtocq/vWhwFOVduF9kduuuRIVwfwQ6uxzIO+qPKSXdd2TXt54of0BJ2zFMXnmw=="], - "@oxc-parser/binding-linux-ppc64-gnu": ["@oxc-parser/binding-linux-ppc64-gnu@0.141.0", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-vo+MR+n3zQJ6Mq92hiP084NZcgDv5iJlVR02gMf28neMvVT1tKVm7VeiW/DxhdqOi3QLeaXIk9cUcLL1qrkngw=="], + "@oxc-parser/binding-linux-ppc64-gnu": ["@oxc-parser/binding-linux-ppc64-gnu@0.141.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-vo+MR+n3zQJ6Mq92hiP084NZcgDv5iJlVR02gMf28neMvVT1tKVm7VeiW/DxhdqOi3QLeaXIk9cUcLL1qrkngw=="], - "@oxc-parser/binding-linux-riscv64-gnu": ["@oxc-parser/binding-linux-riscv64-gnu@0.141.0", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-oh80w+7RuiO5gBp9Jnoa/H8Qlt3JsHL2MkW+0dwEdlDMdslVZX/YsekSK6EeyEenY66/mhCfypsNATQ7Ph3qlQ=="], + "@oxc-parser/binding-linux-riscv64-gnu": ["@oxc-parser/binding-linux-riscv64-gnu@0.141.0", "", { "os": "linux", "cpu": "none" }, "sha512-oh80w+7RuiO5gBp9Jnoa/H8Qlt3JsHL2MkW+0dwEdlDMdslVZX/YsekSK6EeyEenY66/mhCfypsNATQ7Ph3qlQ=="], - "@oxc-parser/binding-linux-riscv64-musl": ["@oxc-parser/binding-linux-riscv64-musl@0.141.0", "", { "os": "linux", "cpu": "none", "libc": "musl" }, "sha512-LOyEmFA8sCnYbEXP1+iQvCC/P1YXHMA/t6x1Ksp0Y9VwhLFsiBJFzV1zIxrOIE2LKaGGhDjQ29xq9cbq6omDXA=="], + "@oxc-parser/binding-linux-riscv64-musl": ["@oxc-parser/binding-linux-riscv64-musl@0.141.0", "", { "os": "linux", "cpu": "none" }, "sha512-LOyEmFA8sCnYbEXP1+iQvCC/P1YXHMA/t6x1Ksp0Y9VwhLFsiBJFzV1zIxrOIE2LKaGGhDjQ29xq9cbq6omDXA=="], - "@oxc-parser/binding-linux-s390x-gnu": ["@oxc-parser/binding-linux-s390x-gnu@0.141.0", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-3wnwk/l1CvszVE5TJR1wSl/zSEfydRqrNhn6s7Vr9IzSJpUQIroqVsIoPARHRFA+FQwkxAFDAHDAasa7v8OobQ=="], + "@oxc-parser/binding-linux-s390x-gnu": ["@oxc-parser/binding-linux-s390x-gnu@0.141.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-3wnwk/l1CvszVE5TJR1wSl/zSEfydRqrNhn6s7Vr9IzSJpUQIroqVsIoPARHRFA+FQwkxAFDAHDAasa7v8OobQ=="], - "@oxc-parser/binding-linux-x64-gnu": ["@oxc-parser/binding-linux-x64-gnu@0.141.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-qtyQVAAebFq57B2tifTlel3TgGqUtsYNI/e+p6aya9rN9lOZVTDvr215fGYSA9XWooxzMxDiVxkBLk2jQHbsOQ=="], + "@oxc-parser/binding-linux-x64-gnu": ["@oxc-parser/binding-linux-x64-gnu@0.141.0", "", { "os": "linux", "cpu": "x64" }, "sha512-qtyQVAAebFq57B2tifTlel3TgGqUtsYNI/e+p6aya9rN9lOZVTDvr215fGYSA9XWooxzMxDiVxkBLk2jQHbsOQ=="], - "@oxc-parser/binding-linux-x64-musl": ["@oxc-parser/binding-linux-x64-musl@0.141.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-SkGV1nKw40roEc94pv5EaaeH2ay14G6+roe8Q0wIUC1LcEKxzKW921h7+ZuZX0D3q2Mb/7aSFmxEVqnko3lPRw=="], + "@oxc-parser/binding-linux-x64-musl": ["@oxc-parser/binding-linux-x64-musl@0.141.0", "", { "os": "linux", "cpu": "x64" }, "sha512-SkGV1nKw40roEc94pv5EaaeH2ay14G6+roe8Q0wIUC1LcEKxzKW921h7+ZuZX0D3q2Mb/7aSFmxEVqnko3lPRw=="], "@oxc-parser/binding-openharmony-arm64": ["@oxc-parser/binding-openharmony-arm64@0.141.0", "", { "os": "none", "cpu": "arm64" }, "sha512-cVgDM7n8QziQqOaP5hNgUYfMG7S/ZeuPxFWXnnHRv7rh025COk0rfQ6eEdKG3j/GaUuyvNZN4ifF1J8KmuXLLA=="], @@ -2559,6 +2604,8 @@ "@ungap/structured-clone": ["@ungap/structured-clone@1.3.3", "", {}, "sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg=="], + "@vitejs/plugin-react": ["@vitejs/plugin-react@4.7.0", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="], + "@webgpu/types": ["@webgpu/types@0.1.54", "", {}, "sha512-81oaalC8LFrXjhsczomEQ0u3jG+TqE6V9QHLA8GNZq/Rnot0KDugu3LhSYSlie8tSdooAN1Hov05asrUUp9qgg=="], "@xmldom/xmldom": ["@xmldom/xmldom@0.8.14", "", {}, "sha512-T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ=="], @@ -3443,6 +3490,8 @@ "knobs": ["@kitlangton/knobs@0.4.0-next.22", "", { "dependencies": { "@kitlangton/rolling-number": "^0.4.1" }, "peerDependencies": { "@pierre/diffs": "^1.5.2", "react": ">=18", "solid-js": ">=1.8" }, "optionalPeers": ["@pierre/diffs", "react", "solid-js"] }, "sha512-YuEogbCIT1vMamHVa9VNt2xcwEdgvjcSMzOc6be6f4c69IRrofHX/2aQG74SCR/y+QBtvY3dZWAnKfcVPdj3rg=="], + "koffi": ["koffi@3.3.7", "", { "optionalDependencies": { "@koromix/koffi-android-arm64": "3.3.7", "@koromix/koffi-android-x64": "3.3.7", "@koromix/koffi-darwin-arm64": "3.3.7", "@koromix/koffi-darwin-x64": "3.3.7", "@koromix/koffi-freebsd-arm64": "3.3.7", "@koromix/koffi-freebsd-ia32": "3.3.7", "@koromix/koffi-freebsd-x64": "3.3.7", "@koromix/koffi-linux-arm": "3.3.7", "@koromix/koffi-linux-arm64": "3.3.7", "@koromix/koffi-linux-ia32": "3.3.7", "@koromix/koffi-linux-loong64": "3.3.7", "@koromix/koffi-linux-ppc64": "3.3.7", "@koromix/koffi-linux-riscv64": "3.3.7", "@koromix/koffi-linux-x64": "3.3.7", "@koromix/koffi-openbsd-arm64": "3.3.7", "@koromix/koffi-openbsd-ia32": "3.3.7", "@koromix/koffi-openbsd-x64": "3.3.7", "@koromix/koffi-win32-arm64": "3.3.7", "@koromix/koffi-win32-ia32": "3.3.7", "@koromix/koffi-win32-x64": "3.3.7" } }, "sha512-Vrq4UwAE19HPLMou8m7HGCELiTE3l9D+r1nA7XwVHUTNaRdymPM+kzkkD2VGxlyjI2qZTb9tMDaFn7kfZ72v3Q=="], + "lazy-val": ["lazy-val@1.0.5", "", {}, "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q=="], "legacy-javascript": ["legacy-javascript@0.0.1", "", {}, "sha512-lPyntS4/aS7jpuvOlitZDFifBCb4W8L/3QU0PLbUTUj+zYah8rfVjYic88yG7ZKTxhS5h9iz7duT8oUXKszLhg=="], @@ -3711,6 +3760,8 @@ "node-int64": ["node-int64@0.4.0", "", {}, "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw=="], + "node-pty": ["node-pty@1.1.0", "", { "dependencies": { "node-addon-api": "^7.1.0" } }, "sha512-20JqtutY6JPXTUnL0ij1uad7Qe1baT46lyolh2sSENDd4sTzKZ4nmAFkeAARDKwmlLjPx6XKRlwRUxwjOy+lUg=="], + "node-releases": ["node-releases@2.0.53", "", {}, "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ=="], "nopt": ["nopt@9.0.0", "", { "dependencies": { "abbrev": "^4.0.0" }, "bin": { "nopt": "bin/nopt.js" } }, "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw=="], @@ -4485,7 +4536,7 @@ "@cloudflare/runtime-types/miniflare": ["miniflare@5.20261001.0-alpha", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "sharp": "0.35.4", "undici": "7.29.1", "workerd": "1.20261001.1", "ws": "8.21.0", "youch": "4.1.0-beta.10" } }, "sha512-GaimS5mSIOMyvd16ga+e1/QkI8cmp3z35QPHFex0DktqNQf2RVZQwMPQXdyoUreUiFP/0Gpe2MoQInTyMAD5xA=="], - "@cloudflare/runtime-types/workerd": ["workerd@1.20261001.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261001.1", "@cloudflare/workerd-darwin-arm64": "1.20261001.1", "@cloudflare/workerd-linux-64": "1.20261001.1", "@cloudflare/workerd-linux-arm64": "1.20261001.1", "@cloudflare/workerd-windows-64": "1.20261001.1" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-d/SIYHFO0PT/wiFZg8in4NpRIxYuFwslX1HdylOtWkBIIUmSpkGFhK820cV84XACFylwJ48xuRoWW/8DWDPsPQ=="], + "@cloudflare/runtime-types/workerd": ["workerd@1.20261001.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261001.1", "@cloudflare/workerd-darwin-arm64": "1.20261001.1", "@cloudflare/workerd-linux-64": "1.20261001.1", "@cloudflare/workerd-linux-arm64": "1.20261001.1", "@cloudflare/workerd-windows-64": "1.20261001.1" }, "bin": { "workerd": "bin/workerd" } }, "sha512-d/SIYHFO0PT/wiFZg8in4NpRIxYuFwslX1HdylOtWkBIIUmSpkGFhK820cV84XACFylwJ48xuRoWW/8DWDPsPQ=="], "@cspotcode/source-map-support/@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="], @@ -4661,12 +4712,14 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - "@textjs/app/@vitejs/plugin-react": ["@vitejs/plugin-react@4.7.0", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="], - "@textjs/app/vite": ["vite@6.4.5", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-4enwjFfi4IwtEh0w+jPzpLVOFQiPHmmzPxcHXQOyEur47o6u0jE573DmGpjA+7irXoMLYRZD5ZaFUEneS3abPg=="], "@types/three/fflate": ["fflate@0.8.3", "", {}, "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA=="], + "@vitejs/plugin-react/@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.27", "", {}, "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA=="], + + "@vitejs/plugin-react/vite": ["vite@7.3.7", "", { "dependencies": { "esbuild": "^0.27.0 || ^0.28.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA=="], + "app-builder-lib/js-yaml": ["js-yaml@4.3.2", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA=="], "app-builder-lib/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="], @@ -4775,7 +4828,7 @@ "miniflare/undici": ["undici@7.29.1", "", {}, "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q=="], - "miniflare/workerd": ["workerd@1.20260930.2", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20260930.2", "@cloudflare/workerd-darwin-arm64": "1.20260930.2", "@cloudflare/workerd-linux-64": "1.20260930.2", "@cloudflare/workerd-linux-arm64": "1.20260930.2", "@cloudflare/workerd-windows-64": "1.20260930.2" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-k1lQzEiGyCDqaRsR5+o9PBT5wVU5omtas6hXx3spbEHHMFo8a7tkAixVCMsWFeiT7xhrmg21Hd6a9jLNrkcUMg=="], + "miniflare/workerd": ["workerd@1.20260930.2", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20260930.2", "@cloudflare/workerd-darwin-arm64": "1.20260930.2", "@cloudflare/workerd-linux-64": "1.20260930.2", "@cloudflare/workerd-linux-arm64": "1.20260930.2", "@cloudflare/workerd-windows-64": "1.20260930.2" }, "bin": { "workerd": "bin/workerd" } }, "sha512-k1lQzEiGyCDqaRsR5+o9PBT5wVU5omtas6hXx3spbEHHMFo8a7tkAixVCMsWFeiT7xhrmg21Hd6a9jLNrkcUMg=="], "minipass-flush/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="], @@ -4951,13 +5004,13 @@ "@opencode/legacy/wrangler/@cloudflare/unenv-preset": ["@cloudflare/unenv-preset@2.16.2", "", { "peerDependencies": { "unenv": "2.0.0-rc.24", "workerd": ">1.20260305.0 <2.0.0-0" }, "optionalPeers": ["workerd"] }, "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ=="], - "@opencode/legacy/wrangler/esbuild": ["esbuild@0.28.2", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.2", "@esbuild/android-arm": "0.28.2", "@esbuild/android-arm64": "0.28.2", "@esbuild/android-x64": "0.28.2", "@esbuild/darwin-arm64": "0.28.2", "@esbuild/darwin-x64": "0.28.2", "@esbuild/freebsd-arm64": "0.28.2", "@esbuild/freebsd-x64": "0.28.2", "@esbuild/linux-arm": "0.28.2", "@esbuild/linux-arm64": "0.28.2", "@esbuild/linux-ia32": "0.28.2", "@esbuild/linux-loong64": "0.28.2", "@esbuild/linux-mips64el": "0.28.2", "@esbuild/linux-ppc64": "0.28.2", "@esbuild/linux-riscv64": "0.28.2", "@esbuild/linux-s390x": "0.28.2", "@esbuild/linux-x64": "0.28.2", "@esbuild/netbsd-arm64": "0.28.2", "@esbuild/netbsd-x64": "0.28.2", "@esbuild/openbsd-arm64": "0.28.2", "@esbuild/openbsd-x64": "0.28.2", "@esbuild/openharmony-arm64": "0.28.2", "@esbuild/sunos-x64": "0.28.2", "@esbuild/win32-arm64": "0.28.2", "@esbuild/win32-ia32": "0.28.2", "@esbuild/win32-x64": "0.28.2" }, "hasInstallScript": true, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA=="], + "@opencode/legacy/wrangler/esbuild": ["esbuild@0.28.2", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.2", "@esbuild/android-arm": "0.28.2", "@esbuild/android-arm64": "0.28.2", "@esbuild/android-x64": "0.28.2", "@esbuild/darwin-arm64": "0.28.2", "@esbuild/darwin-x64": "0.28.2", "@esbuild/freebsd-arm64": "0.28.2", "@esbuild/freebsd-x64": "0.28.2", "@esbuild/linux-arm": "0.28.2", "@esbuild/linux-arm64": "0.28.2", "@esbuild/linux-ia32": "0.28.2", "@esbuild/linux-loong64": "0.28.2", "@esbuild/linux-mips64el": "0.28.2", "@esbuild/linux-ppc64": "0.28.2", "@esbuild/linux-riscv64": "0.28.2", "@esbuild/linux-s390x": "0.28.2", "@esbuild/linux-x64": "0.28.2", "@esbuild/netbsd-arm64": "0.28.2", "@esbuild/netbsd-x64": "0.28.2", "@esbuild/openbsd-arm64": "0.28.2", "@esbuild/openbsd-x64": "0.28.2", "@esbuild/openharmony-arm64": "0.28.2", "@esbuild/sunos-x64": "0.28.2", "@esbuild/win32-arm64": "0.28.2", "@esbuild/win32-ia32": "0.28.2", "@esbuild/win32-x64": "0.28.2" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA=="], "@opencode/legacy/wrangler/miniflare": ["miniflare@5.20261102.0-beta", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "sharp": "0.35.5", "undici": "7.30.1", "workerd": "1.20261102.1", "ws": "8.21.0", "youch": "4.1.0-beta.10" } }, "sha512-FGqoi2BF7Vq6v8aSraq9Tmhg8ORpUBC5RkNGhfa11J597cWlLJ5QP9vJwDMOzwJx+W4U+IuHWSidVceBK6VRZQ=="], "@opencode/legacy/wrangler/path-to-regexp": ["path-to-regexp@6.3.0", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="], - "@opencode/legacy/wrangler/workerd": ["workerd@1.20261102.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261102.1", "@cloudflare/workerd-darwin-arm64": "1.20261102.1", "@cloudflare/workerd-linux-64": "1.20261102.1", "@cloudflare/workerd-linux-arm64": "1.20261102.1", "@cloudflare/workerd-windows-64": "1.20261102.1" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-5A+/vm0M5oc98pB3aR+DZ5cIOvRMhVWVS9tg+CrjUap7PIo8tqAnvNdvuiHBIE47/wkxtNM3jToAaU38dBsZTw=="], + "@opencode/legacy/wrangler/workerd": ["workerd@1.20261102.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261102.1", "@cloudflare/workerd-darwin-arm64": "1.20261102.1", "@cloudflare/workerd-linux-64": "1.20261102.1", "@cloudflare/workerd-linux-arm64": "1.20261102.1", "@cloudflare/workerd-windows-64": "1.20261102.1" }, "bin": { "workerd": "bin/workerd" } }, "sha512-5A+/vm0M5oc98pB3aR+DZ5cIOvRMhVWVS9tg+CrjUap7PIo8tqAnvNdvuiHBIE47/wkxtNM3jToAaU38dBsZTw=="], "@opencode/stories/@tailwindcss/vite/@tailwindcss/node": ["@tailwindcss/node@4.1.11", "", { "dependencies": { "@ampproject/remapping": "^2.3.0", "enhanced-resolve": "^5.18.1", "jiti": "^2.4.2", "lightningcss": "1.30.1", "magic-string": "^0.30.17", "source-map-js": "^1.2.1", "tailwindcss": "4.1.11" } }, "sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q=="], @@ -5005,8 +5058,6 @@ "@tailwindcss/node/lightningcss/lightningcss-win32-x64-msvc": ["lightningcss-win32-x64-msvc@1.32.0", "", { "os": "win32", "cpu": "x64" }, "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q=="], - "@textjs/app/@vitejs/plugin-react/@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.27", "", {}, "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA=="], - "@textjs/app/vite/picomatch": ["picomatch@4.0.7", "", {}, "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="], "@textjs/app/vite/postcss": ["postcss@8.5.31", "", { "dependencies": { "nanoid": "^3.3.20", "picocolors": "^1.1.1", "source-map-js": "^1.2.2" } }, "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg=="], @@ -5051,37 +5102,37 @@ "miniflare/sharp/@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw=="], - "miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.3", "", { "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA=="], + "miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.3", "", { "os": "linux", "cpu": "arm" }, "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA=="], - "miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A=="], + "miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A=="], - "miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.3", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w=="], + "miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w=="], - "miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.3", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ=="], + "miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.3", "", { "os": "linux", "cpu": "none" }, "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ=="], - "miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.3", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q=="], + "miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q=="], - "miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.3", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA=="], + "miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA=="], - "miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw=="], + "miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw=="], - "miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.3", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw=="], + "miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw=="], - "miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.3" }, "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A=="], + "miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.3" }, "os": "linux", "cpu": "arm" }, "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A=="], - "miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ=="], + "miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ=="], - "miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.3" }, "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ=="], + "miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.3" }, "os": "linux", "cpu": "ppc64" }, "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ=="], - "miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.3" }, "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA=="], + "miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.3" }, "os": "linux", "cpu": "none" }, "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA=="], - "miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.3" }, "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ=="], + "miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.3" }, "os": "linux", "cpu": "s390x" }, "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ=="], - "miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.3" }, "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA=="], + "miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA=="], - "miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA=="], + "miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA=="], - "miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.3" }, "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg=="], + "miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg=="], "miniflare/sharp/@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw=="], @@ -5117,17 +5168,17 @@ "nitro/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.14", "", { "os": "linux", "cpu": "arm" }, "sha512-BqwKsdZQf6EqVWr8fv2MrDYzAvOZ7+NYFSJESRGs87fkseEhs0TU9TXgRJTkZoRRkxTizyEg1LKUXfU3/78uqg=="], - "nitro/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.14", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ=="], + "nitro/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ=="], - "nitro/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.14", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg=="], + "nitro/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg=="], - "nitro/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.14", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q=="], + "nitro/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.14", "", { "os": "linux", "cpu": "ppc64" }, "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q=="], - "nitro/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.14", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A=="], + "nitro/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.14", "", { "os": "linux", "cpu": "s390x" }, "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A=="], - "nitro/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.14", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg=="], + "nitro/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.14", "", { "os": "linux", "cpu": "x64" }, "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg=="], - "nitro/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.14", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg=="], + "nitro/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.14", "", { "os": "linux", "cpu": "x64" }, "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg=="], "nitro/rolldown/@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.14", "", { "os": "none", "cpu": "arm64" }, "sha512-qyr5XiNGxm2ytx17vvtcJ9nXn6v1gENETi503bJx3OGwZ1tSonj7BosxbMa/xeAfSl5iS9X6KjEWYXLu6v1L7Q=="], @@ -5221,37 +5272,37 @@ "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.3", "", { "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.3", "", { "os": "linux", "cpu": "arm" }, "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.3", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.3", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.3", "", { "os": "linux", "cpu": "none" }, "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.3", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.3", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.3", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.3" }, "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.3" }, "os": "linux", "cpu": "arm" }, "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.3" }, "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.3" }, "os": "linux", "cpu": "ppc64" }, "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.3" }, "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.3" }, "os": "linux", "cpu": "none" }, "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.3" }, "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.3" }, "os": "linux", "cpu": "s390x" }, "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.3" }, "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA=="], - "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.3" }, "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg=="], + "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.4", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg=="], "@cloudflare/runtime-types/miniflare/sharp/@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw=="], @@ -5397,37 +5448,37 @@ "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.4", "", { "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.4", "", { "os": "linux", "cpu": "arm" }, "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.4", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.4", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.4", "", { "os": "linux", "cpu": "none" }, "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.4", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.4", "", { "os": "linux", "cpu": "x64" }, "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.4", "", { "os": "linux", "cpu": "x64" }, "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.4" }, "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.4" }, "os": "linux", "cpu": "arm" }, "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64" }, "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.4" }, "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.4" }, "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.4" }, "os": "linux", "cpu": "none" }, "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.4" }, "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.4" }, "os": "linux", "cpu": "s390x" }, "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.4" }, "os": "linux", "cpu": "x64" }, "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64" }, "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg=="], - "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A=="], + "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.4" }, "os": "linux", "cpu": "x64" }, "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A=="], "@opencode/legacy/wrangler/miniflare/sharp/@img/sharp-webcontainers-wasm32": ["@img/sharp-webcontainers-wasm32@0.35.5", "", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "cpu": "none" }, "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA=="], diff --git a/package.json b/package.json index a1d4ab0e53b3..80988a3e585d 100644 --- a/package.json +++ b/package.json @@ -139,6 +139,7 @@ }, "trustedDependencies": [ "esbuild", + "koffi", "node-pty", "protobufjs", "electron" diff --git a/packages/core/package.json b/packages/core/package.json index d036299f6879..bff74eb92d5b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -107,6 +107,7 @@ "@ff-labs/fff-bun": "0.10.5", "@ff-labs/fff-node": "0.10.5", "@lydell/node-pty": "catalog:", + "@microsoft/mxc-sdk": "1.1.0", "@modelcontextprotocol/client": "2.4.0", "@modelcontextprotocol/core": "2.4.0", "@modelcontextprotocol/server": "2.4.0", diff --git a/packages/core/src/config/normalize.ts b/packages/core/src/config/normalize.ts index 891e6418f669..51c670c25809 100644 --- a/packages/core/src/config/normalize.ts +++ b/packages/core/src/config/normalize.ts @@ -16,6 +16,7 @@ import { ConfigPlugin } from "@opencode/schema/config/plugin" import { ConfigPolicy } from "@opencode/schema/config/policy" import { ConfigProvider } from "@opencode/schema/config/provider" import { ConfigReference } from "@opencode/schema/config/reference" +import { ConfigSandbox } from "@opencode/schema/config/sandbox" import { ConfigExperimental } from "@opencode/schema/config/experimental" import { Permission } from "@opencode/schema/permission" import { ConfigAgentV1 } from "../v1/config/agent.js" @@ -191,6 +192,7 @@ export function normalize(input: unknown): Result { normalizeSkills(input, encoded, diagnostics) normalizeMcp(input, encoded, diagnostics) + normalizeSandbox(input, encoded, diagnostics) normalizeCompaction(input, encoded, diagnostics) normalizePolicies(input, encoded, diagnostics) normalizeExperimental(input, encoded, diagnostics) @@ -340,6 +342,22 @@ function normalizeMcpTimeout( }) } +function normalizeSandbox(input: Record, encoded: Record, diagnostics: Diagnostic[]) { + if (!own(input, "sandbox")) return + const sandbox = decodeEncoded(ConfigSandbox.Info, input.sandbox, ["sandbox"], diagnostics) + if (sandbox !== undefined) { + encoded.sandbox = sandbox + return + } + // A security control is never dropped: an invalid block resolves to the strictest policy instead of disabling it. + diagnostics.push({ + kind: "invalid", + path: ["sandbox"], + message: "kept the strictest sandbox policy (enabled, read-only, network denied) for an invalid sandbox block", + }) + encoded.sandbox = { enabled: true, mode: "read-only", network: "deny" } +} + function normalizeCompaction( input: Record, encoded: Record, diff --git a/packages/core/src/plugin/internal.ts b/packages/core/src/plugin/internal.ts index 95b5a1e2583c..5c1dba258d9d 100644 --- a/packages/core/src/plugin/internal.ts +++ b/packages/core/src/plugin/internal.ts @@ -70,6 +70,7 @@ import { SessionInstructions } from "../session/instructions.js" import { SubagentJob } from "../session/subagent-job.js" import { SharedCache } from "../shared-cache.js" import { Shell } from "../shell.js" +import { Sandbox } from "../sandbox.js" import { ShellSelect } from "../shell/select.js" import { Snapshot } from "../snapshot.js" import { Skill } from "../skill.js" @@ -162,6 +163,7 @@ const services = [ WebSearch.Service, Ripgrep.Service, Schedule.Service, + Sandbox.Service, Session.Service, SessionCompaction.Service, SessionInstructions.Service, @@ -212,6 +214,7 @@ export const requirements = LayerNode.group([ Job.node, Shell.daemonNode, KV.node, + Sandbox.node, llmClient, Location.node, ModelsDev.node, diff --git a/packages/core/src/sandbox.ts b/packages/core/src/sandbox.ts new file mode 100644 index 000000000000..7b8a5ad87f93 --- /dev/null +++ b/packages/core/src/sandbox.ts @@ -0,0 +1,229 @@ +export * as Sandbox from "./sandbox.js" + +import { realpathSync } from "node:fs" +import os from "os" +import path from "path" +import { Context, Effect, Layer, Schema } from "effect" +import type { ContainerRequest } from "@microsoft/mxc-sdk/v1" +import type { Document, Entry } from "@opencode/schema/config" +import { makeLocationNode } from "@opencode/util/effect/app-node" +import { Config } from "./config.js" +import { Location } from "./location.js" +import { ShellSelect } from "./shell/select.js" + +/** The pinned sandbox policy of a Location, resolved from user-level config only. */ +export interface Policy { + readonly mode: "read-only" | "workspace-write" + readonly network: "deny" | "allow" + readonly writableRoots: ReadonlyArray +} + +/** A command to run inside the sandbox; the service adds the workspace roots from the Location. */ +export interface Execution { + readonly command: string + readonly cwd: string + readonly shell: string + readonly timeout: number + readonly environment: Record +} + +export interface Result { + readonly exitCode: number + readonly stdout: string + readonly stderr: string + readonly timedOut: boolean +} + +export class UnavailableError extends Schema.TaggedError()("Sandbox.UnavailableError", { + reason: Schema.String, +}) { + override get message() { + return `Sandbox is enabled but unavailable: ${this.reason}. The command was not run. Fix the sandbox, or set sandbox.enabled to false.` + } +} + +// Workspace paths a sandboxed command must never write, even in workspace-write mode, whether or not they exist +// yet: planting a config, plugin or agent file would run unsandboxed code after a restart. +const PROTECTED = ["opencode.json", "opencode.jsonc", ".opencode", ".claude", ".agents"] as const + +/** + * Resolves the sandbox policy from config entries. Sandbox settings are a user-level security intent: documents + * from inside the workspace, or from a directory the workspace was discovered from by walking up, are repository + * content and are ignored, so a cloned repository cannot enable, loosen or tighten the sandbox. + */ +export function resolve(entries: readonly Entry[], workspace: string): Policy | undefined { + const documents = entries + .filter((entry): entry is Document => entry.type === "document") + .filter((document) => trusted(document, workspace)) + if (!documents.some((document) => document.info.sandbox?.enabled === true)) return undefined + let write = false + let restricted = false + let open = false + let denied = false + const roots = new Set() + for (const document of documents) { + const sandbox = document.info.sandbox + if (sandbox === undefined) continue + if (sandbox.mode === "workspace-write") write = true + if (sandbox.mode === "read-only") restricted = true + if (sandbox.network === "allow") open = true + if (sandbox.network === "deny") denied = true + for (const root of sandbox.writable_roots ?? []) roots.add(path.resolve(workspace, root)) + } + return { + mode: write && !restricted ? "workspace-write" : "read-only", + network: open && !denied ? "allow" : "deny", + writableRoots: [...roots], + } +} + +// Config without a path (in-memory, remote account, managed content) is user-level by construction. +function trusted(document: Document, workspace: string) { + if (document.path === undefined) return true + const directory = path.dirname(document.path) + if (directory === workspace || directory.startsWith(workspace + path.sep)) return false + if (directory === path.parse(workspace).root) return false + return !workspace.startsWith(directory + path.sep) +} + +/** Maps the pinned policy and one execution onto an MXC container request. */ +export function request( + policy: Policy, + input: Execution & { readonly workspace: string; readonly tmpRoots: ReadonlyArray }, + platform: NodeJS.Platform = process.platform, +): ContainerRequest { + const protectedPaths = PROTECTED.map((item) => path.join(input.workspace, item)) + return { + command: commandLine(input.shell, input.command, platform), + containment: { type: "process" }, + workingDirectory: input.cwd, + timeoutMs: input.timeout, + environment: input.environment, + inheritDefaultEnvironment: true, + ...(policy.mode === "workspace-write" + ? { + filesystem: + platform === "win32" + ? // The Windows backend does not enforce read-only carve-outs under writable roots, so protected + // paths are denied outright instead; the in-process read tool still reads them. + { readwritePaths: [input.workspace, ...input.tmpRoots, ...policy.writableRoots], deniedPaths: protectedPaths } + : { readwritePaths: [input.workspace, ...input.tmpRoots, ...policy.writableRoots], readonlyPaths: protectedPaths }, + } + : { filesystem: { readonlyPaths: [input.workspace] } }), + network: + policy.network === "deny" + ? { egress: { default: "deny" }, ingress: { default: "deny", hostLoopback: "deny" } } + : { egress: { default: "allow" } }, + } +} + +/** Builds the single command line MXC parses, quoting the shell and its arguments for the platform. */ +export const commandLine = (shell: string, command: string, platform: NodeJS.Platform = process.platform) => + [shell, ...ShellSelect.args(shell, command)] + .map((argument) => (platform === "win32" ? windowsArgument(argument) : posixArgument(argument))) + .join(" ") + +const posixArgument = (value: string) => `'${value.replaceAll("'", `'\\''`)}'` + +// The Windows command line is parsed with backslash and double-quote rules, not POSIX single quotes. cmd.exe +// also rejects quoted option arguments such as "/c", so plain tokens stay unquoted. +function windowsArgument(value: string) { + if (!/[\s"]/.test(value)) return value + let quoted = '"' + let backslashes = 0 + for (const character of value) { + if (character === "\\") { + backslashes++ + continue + } + if (character === '"') { + quoted += "\\".repeat(backslashes * 2 + 1) + '"' + backslashes = 0 + continue + } + quoted += "\\".repeat(backslashes) + character + backslashes = 0 + } + return quoted + "\\".repeat(backslashes * 2) + '"' +} + +export interface Interface { + /** The sandbox policy of this Location, pinned on first use for the process lifetime, or undefined when off. */ + readonly policy: () => Effect.Effect + /** Runs one command inside the sandbox. Fails closed with `UnavailableError`; never runs a command unconfined. */ + readonly execute: (input: Execution) => Effect.Effect +} + +export class Service extends Context.Service()("@opencode/Sandbox") {} + +const layer = () => + Layer.effect( + Service, + Effect.gen(function* () { + const config = yield* Config.Service + const location = yield* Location.Service + let pinned: Policy | undefined + let resolved = false + const policy = () => + Effect.gen(function* () { + if (resolved) return pinned + pinned = resolve(yield* config.entries(), location.directory) + resolved = true + return pinned + }) + // The temp directory can be a symlink (macOS /var), and seatbelt matches real paths. + const tmp = os.tmpdir() + let real = tmp + try { + real = realpathSync(tmp) + } catch {} + const tmpRoots = real === tmp ? [tmp] : [tmp, real] + const execute = Effect.fn("Sandbox.execute")(function* (input: Execution) { + if (location.workspaceID !== undefined) + return yield* new UnavailableError({ reason: "the workspace is remote" }) + const current = yield* policy() + if (current === undefined) return yield* new UnavailableError({ reason: "the sandbox is not enabled" }) + const mxc = yield* Effect.tryPromise(() => import("@microsoft/mxc-sdk/v1")).pipe( + Effect.mapError( + (error) => + new UnavailableError({ reason: `the sandbox package failed to load: ${String(error.cause ?? error)}` }), + ), + ) + const support = mxc.getPlatformSupport() + if (!support.isSupported) + return yield* new UnavailableError({ + reason: support.reason || "no sandbox backend exists for this platform", + }) + if (process.platform === "win32" && current.network === "deny") + // Verified against ProcessContainer on Windows 11 (SDK 1.1.0): the request is accepted but direct + // egress is not blocked, so a network-deny policy cannot be honored. Fail closed rather than run a + // command with network access the user denied. + return yield* new UnavailableError({ + reason: 'the sandbox backend on Windows cannot enforce network denial yet; set sandbox.network to "allow" to run sandboxed with filesystem containment only', + }) + return yield* Effect.tryPromise(() => + mxc.run(request(current, { ...input, workspace: location.directory, tmpRoots })), + ).pipe( + Effect.map((result) => ({ + exitCode: result.exitCode, + stdout: result.stdout, + stderr: result.stderr, + timedOut: result.timedOut, + })), + Effect.mapError( + (error) => + new UnavailableError({ + reason: `the sandbox backend failed to run the command: ${String(error.cause ?? error)}`, + }), + ), + ) + }) + return Service.of({ policy, execute }) + }), + ) + +export const node = makeLocationNode({ + service: Service, + layer: layer(), + deps: [Config.node, Location.node], +}) diff --git a/packages/core/src/tool/plugin/shell.ts b/packages/core/src/tool/plugin/shell.ts index 0fa456f60a6c..983e979a119e 100644 --- a/packages/core/src/tool/plugin/shell.ts +++ b/packages/core/src/tool/plugin/shell.ts @@ -15,6 +15,7 @@ import { NonNegativeInt } from "../../schema.js" import { Session } from "../../session.js" import { SessionMessage } from "../../session/message.js" import { SessionSchema } from "../../session/schema.js" +import { Sandbox } from "../../sandbox.js" import { Shell } from "../../shell.js" import { ShellParse } from "../../shell/parse.js" import { ShellSelect } from "../../shell/select.js" @@ -23,6 +24,9 @@ import { toolFailure } from "../runtime.js" export const name = "shell" export const DEFAULT_TIMEOUT_MS = 2 * 60 * 1_000 +// Leaving the OS sandbox is its own permission, asserted before the ordinary `shell` approval, so approving a +// sandboxed command never approves running it unsandboxed. +export const UNSANDBOXED = "shell_unsandboxed" // How long a call the user interrupted waits for its stopped command to exit before settling with the output so far. const INTERRUPT_WAIT = "500 millis" @@ -62,6 +66,10 @@ export const Input = Schema.Struct({ description: "Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion.", }), + sandbox: Schema.optionalKey(Schema.Boolean).annotate({ + description: + "Set to false to run this command outside the OS sandbox. This asks the user for a separate approval and is only meaningful when the sandbox is enabled in configuration.", + }), }) const StructuredOutput = Schema.Struct({ @@ -280,6 +288,7 @@ export const Plugin = { const shellSelect = yield* ShellSelect.Service const compatibleShell = shellSelect.resolve({ priority: "compat" }) const permission = yield* Permission.Service + const sandbox = yield* Sandbox.Service const prepare = Effect.fn("ShellTool.prepare")(function* (invocation: ShellCreateBefore, context: Tool.Context) { const target = yield* access.resolve({ path: invocation.cwd, kind: "directory" }) @@ -342,6 +351,46 @@ export const Plugin = { }) }) + // Runs a command inside the OS sandbox of a Location with a sandbox policy. The sandbox backend captures the + // output, the timeout stops the command, and there is no background mode or interactive terminal. + const sandboxed = Effect.fnUntraced(function* (input: typeof Input.Type, context: Tool.Context) { + if (input.background === true) + return yield* new ToolFailure({ + message: + "A sandboxed command cannot run in the background. Run it in the foreground, or set sandbox to false.", + }) + const started = yield* Clock.currentTimeMillis + const invocation = { + command: input.command, + cwd: input.workdir ?? ".", + timeout: input.timeout || DEFAULT_TIMEOUT_MS, + shell: yield* compatibleShell, + env: {} as Record, + } + // The same directory and permission checks as an unsandboxed command. + yield* prepare(invocation, context) + invocation.env.AGENT = "1" + invocation.env.OPENCODE = "1" + invocation.env.AI_AGENT ||= "opencode" + invocation.env.OPENCODE_SESSION_ID = context.sessionID + const result = yield* sandbox.execute({ + command: invocation.command, + cwd: invocation.cwd, + shell: invocation.shell, + timeout: invocation.timeout, + environment: invocation.env, + }) + const end = yield* Clock.currentTimeMillis + return { + output: [result.stdout, result.stderr].filter(Boolean).join("\n"), + exit: result.exitCode, + status: "completed" as const, + truncated: false, + ...(result.timedOut ? { timeout: true as const } : {}), + wallTimeSeconds: Math.max(0, end - started) / 1_000, + } + }) + yield* ctx.tool .transform((editor) => editor.add({ @@ -369,6 +418,31 @@ export const Plugin = { ) : undefined return yield* Effect.gen(function* () { + const policy = yield* sandbox.policy() + if (policy !== undefined && input.sandbox !== false) { + return yield* restore(sandboxed(input, context)) + } + if (policy !== undefined) { + // Leaving the sandbox needs its own approval, asserted before the ordinary shell approval in + // `prepare`, so a saved `shell` allow can never authorize escaping it. + yield* restore( + Effect.raceFirst( + permission.assert({ + action: UNSANDBOXED, + resources: [input.command], + save: [input.command], + ...Permission.invocation(context), + }), + Deferred.await(stopped).pipe( + Effect.andThen( + Effect.fail( + new ToolFailure({ message: "Command interrupted by the user before it started." }), + ), + ), + ), + ), + ) + } const info = yield* shell.create( { command: input.command, diff --git a/packages/core/test/agent.test.ts b/packages/core/test/agent.test.ts index 5d16cc7cbbee..4077af967514 100644 --- a/packages/core/test/agent.test.ts +++ b/packages/core/test/agent.test.ts @@ -237,4 +237,35 @@ describe("Agent", () => { ) }), ) + + it.effect("asks or denies leaving the OS sandbox for every built-in agent", () => + Effect.gen(function* () { + const agent = yield* Agent.Service + yield* AgentPlugin.Plugin.effect( + host({ + agent: agentHost(agent), + }), + ) + + const expected = { + build: "ask", + general: "ask", + compaction: "ask", + explore: "deny", + title: "deny", + summary: "deny", + } as const + yield* Effect.forEach(Object.entries(expected), ([id, effect]) => + Effect.gen(function* () { + const info = yield* agent.get(Agent.ID.make(id)) + if (!info) throw new Error(`expected built-in agent: ${id}`) + expect(Permission.evaluate("shell_unsandboxed", "*", info.permissions).effect).toBe(effect) + }), + ) + // Approving a sandboxed shell command never approves running it unsandboxed. + const build = yield* agent.get(Agent.defaultID) + expect(Permission.evaluate("shell", "make test", build?.permissions ?? []).effect).toBe("allow") + expect(Permission.evaluate("shell_unsandboxed", "make test", build?.permissions ?? []).effect).toBe("ask") + }), + ) }) diff --git a/packages/core/test/config/normalization.test.ts b/packages/core/test/config/normalization.test.ts index 946a95cf375e..c62ea1228f0d 100644 --- a/packages/core/test/config/normalization.test.ts +++ b/packages/core/test/config/normalization.test.ts @@ -829,4 +829,27 @@ describe("ConfigNormalize", () => { }) expect(result.encoded.share).toBeUndefined() }) + + test("keeps a valid sandbox block as-is", () => { + const result = normalized({ + sandbox: { enabled: true, mode: "workspace-write", network: "deny", writable_roots: ["dist"] }, + }) + expect(result.encoded.sandbox).toEqual({ + enabled: true, + mode: "workspace-write", + network: "deny", + writable_roots: ["dist"], + }) + expect(result.diagnostics).toEqual([]) + }) + + test("resolves an invalid sandbox block to the strictest policy instead of dropping it", () => { + for (const invalid of [null, "off", { enabled: true, mode: "write-everything" }, { network: 1 }, [true]]) { + const result = ConfigNormalize.normalize({ sandbox: invalid }) + expect(result.type).toBe("normalized") + if (result.type !== "normalized") throw new Error("expected normalized config") + expect(result.encoded.sandbox).toEqual({ enabled: true, mode: "read-only", network: "deny" }) + expect(result.diagnostics.some((diagnostic) => diagnostic.path[0] === "sandbox")).toBe(true) + } + }) }) diff --git a/packages/core/test/sandbox.test.ts b/packages/core/test/sandbox.test.ts new file mode 100644 index 000000000000..417fe04e988b --- /dev/null +++ b/packages/core/test/sandbox.test.ts @@ -0,0 +1,361 @@ +import path from "path" +import os from "os" +import { afterAll, describe, expect, test } from "bun:test" +import { Effect, Layer } from "effect" +import { Document, type Entry, Info } from "@opencode/schema/config" +import { ConfigSandbox } from "@opencode/schema/config/sandbox" +import { Config } from "@opencode/core/config" +import { AppNodeBuilder } from "@opencode/core/effect/app-node-builder" +import { LayerNode } from "@opencode/util/effect/layer-node" +import { Location } from "@opencode/core/location" +import { Sandbox } from "@opencode/core/sandbox" +import { AbsolutePath } from "@opencode/core/schema" +import { Workspace } from "@opencode/core/workspace" +import { location } from "./fixture/location" +import { tmpdir } from "./fixture/tmpdir" +import { testEffect } from "./lib/effect" + +const workspace = AbsolutePath.make(path.resolve("/project")) +const entry = (sandbox: Record, file?: string) => + new Document({ + type: "document", + info: new Info({ sandbox: new ConfigSandbox.Info(sandbox as never) }), + ...(file ? { path: AbsolutePath.make(file) } : {}), + }) + +const service = (entries: readonly Entry[], ref: Location.Ref) => + testEffect( + AppNodeBuilder.build(LayerNode.group([Sandbox.node]), [ + Config.node.replace(Config.testLayer([...entries])), + Location.node.replace(Layer.succeed(Location.Service, Location.Service.of(location(ref)))), + ]), + ) + +const execution = { + command: "echo 'hi there'", + cwd: workspace, + shell: "/bin/zsh", + timeout: 5_000, + environment: { AGENT: "1" }, + workspace, + tmpRoots: ["/tmp"], +} + +describe("Sandbox.resolve", () => { + test("is off without any sandbox config, and without an explicit enable", () => { + expect(Sandbox.resolve([], workspace)).toBeUndefined() + expect(Sandbox.resolve([entry({ mode: "workspace-write" })], workspace)).toBeUndefined() + }) + + test("enables with the strictest defaults when only enabled is set", () => { + expect(Sandbox.resolve([entry({ enabled: true })], workspace)).toEqual({ + mode: "read-only", + network: "deny", + writableRoots: [], + }) + }) + + test("keeps the strictest mode and network across layers", () => { + expect( + Sandbox.resolve( + [ + entry({ enabled: true, mode: "workspace-write", network: "allow" }), + entry({ mode: "read-only" }), + entry({ network: "deny" }), + ], + workspace, + ), + ).toEqual({ mode: "read-only", network: "deny", writableRoots: [] }) + }) + + test("widens only what no layer restricted", () => { + expect( + Sandbox.resolve([entry({ enabled: true }), entry({ mode: "workspace-write", network: "allow" })], workspace), + ).toEqual({ mode: "workspace-write", network: "allow", writableRoots: [] }) + }) + + test("resolves writable roots against the workspace and deduplicates them", () => { + const policy = Sandbox.resolve( + [entry({ enabled: true, mode: "workspace-write", writable_roots: ["dist", "/tmp/build", "./dist"] })], + workspace, + ) + expect(policy?.writableRoots).toEqual([path.join(workspace, "dist"), "/tmp/build"]) + }) + + test("ignores repository config inside the workspace and in its ancestors", () => { + const policy = Sandbox.resolve( + [ + entry( + { enabled: true, mode: "workspace-write", network: "allow", writable_roots: ["/"] }, + path.join(workspace, "opencode.json"), + ), + entry({ enabled: true, writable_roots: ["/etc"] }, "/opencode.json"), + entry({ enabled: true }, "/Users/test/.config/opencode/opencode.json"), + ], + workspace, + ) + expect(policy).toEqual({ mode: "read-only", network: "deny", writableRoots: [] }) + }) + + test("honors config without a path, such as managed or in-memory config", () => { + expect(Sandbox.resolve([entry({ enabled: true, mode: "workspace-write" })], workspace)?.mode).toBe( + "workspace-write", + ) + }) +}) + +describe("Sandbox.request", () => { + test("read-only keeps the workspace read-only and denies the network", () => { + const request = Sandbox.request({ mode: "read-only", network: "deny", writableRoots: [] }, execution) + expect(request.filesystem).toEqual({ readonlyPaths: [workspace] }) + expect(request.network).toEqual({ egress: { default: "deny" }, ingress: { default: "deny", hostLoopback: "deny" } }) + expect(request.filesystem?.readwritePaths).toBeUndefined() + expect(request.timeoutMs).toBe(5_000) + expect(request.environment).toEqual({ AGENT: "1" }) + expect(request.workingDirectory).toBe(workspace) + }) + + test("workspace-write writes the workspace and temp, and carves protected paths read-only", () => { + const request = Sandbox.request( + { mode: "workspace-write", network: "allow", writableRoots: ["/tmp/build"] }, + execution, + ) + expect(request.filesystem).toEqual({ + readwritePaths: [workspace, "/tmp", "/tmp/build"], + readonlyPaths: ["opencode.json", "opencode.jsonc", ".opencode", ".claude", ".agents"].map((item) => + path.join(workspace, item), + ), + }) + expect(request.network).toEqual({ egress: { default: "allow" } }) + }) + + test("workspace-write denies protected paths on Windows, where read-only carve-outs are not enforced", () => { + const request = Sandbox.request( + { mode: "workspace-write", network: "deny", writableRoots: [] }, + execution, + "win32", + ) + expect(request.filesystem).toEqual({ + readwritePaths: [workspace, "/tmp"], + deniedPaths: ["opencode.json", "opencode.jsonc", ".opencode", ".claude", ".agents"].map((item) => + path.join(workspace, item), + ), + }) + }) + + test("quotes the shell and command for POSIX and Windows", () => { + expect(Sandbox.commandLine("/bin/bash", "echo 'hi'")).toBe(`'/bin/bash' '-c' 'echo '\\''hi'\\'''`) + expect(Sandbox.commandLine("/bin/zsh", "ls *.txt")).toBe(`'/bin/zsh' '+o' 'nomatch' '-c' 'ls *.txt'`) + // Plain Windows tokens stay unquoted (cmd.exe rejects a quoted "/c"); only complex values are quoted. + expect(Sandbox.commandLine("C:\\sh.exe", 'say "hi" there\\', "win32")).toBe( + `C:\\sh.exe -c "say \\"hi\\" there\\\\"`, + ) + expect(Sandbox.commandLine("C:\\Program Files\\sh.exe", "echo hi", "win32")).toBe( + `"C:\\Program Files\\sh.exe" -c "echo hi"`, + ) + }) +}) + +describe("Sandbox.Service", () => { + const local = Location.Ref.make({ directory: workspace }) + const it = service([entry({ enabled: true, mode: "workspace-write" })], local) + + it.effect("pins the policy on first use for the process lifetime", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const pinned = yield* sandbox.policy() + expect(pinned).toEqual({ mode: "workspace-write", network: "deny", writableRoots: [] }) + // The same pinned object comes back on every use; the policy never re-reads config. + expect(yield* sandbox.policy()).toBe(pinned) + }), + ) + + const off = service([], local) + + off.effect("fails closed when the sandbox is not enabled", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const failure = yield* sandbox.execute(execution).pipe(Effect.flip) + expect(failure).toBeInstanceOf(Sandbox.UnavailableError) + expect(failure.message).toContain("not enabled") + }), + ) + + const remote = service([entry({ enabled: true })], Location.Ref.make({ directory: workspace, workspaceID: Workspace.ID.make("wrk_sandbox_test") })) + + remote.effect("fails closed for a remote workspace", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const failure = yield* sandbox.execute(execution).pipe(Effect.flip) + expect(failure).toBeInstanceOf(Sandbox.UnavailableError) + expect(failure.message).toContain("remote") + }), + ) +}) + +// Live enforcement tests: they run only where the MXC backend is available (Seatbelt on macOS, bubblewrap on +// Linux, ProcessContainer on Windows) and prove the generated policy is enforced by the OS, not just built. +const support: { isSupported: boolean } = (() => { + try { + return require("@microsoft/mxc-sdk/v1").getPlatformSupport() + } catch { + return { isSupported: false } + } +})() +const live = support.isSupported && process.platform !== "win32" ? describe : describe.skip +const liveWindows = support.isSupported && process.platform === "win32" ? describe : describe.skip + +const liveTmp = await tmpdir("opencode-sandbox-test-") +const liveWorkspace = AbsolutePath.make(liveTmp.path) +const liveRef = Location.Ref.make({ directory: liveWorkspace }) +const write = service([entry({ enabled: true, mode: "workspace-write" })], liveRef) +const readOnly = service([entry({ enabled: true, mode: "read-only" })], liveRef) +const canary = path.join(os.homedir(), `.opencode-sandbox-live-${process.pid}.txt`) + +afterAll(() => { + require("node:fs").rmSync(canary, { force: true }) +}) + +live("Sandbox enforcement", () => { + write.live("captures output and the exit code of a sandboxed command", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: "printf out; printf 'to stderr' >&2; exit 7", + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).toBe(7) + expect(result.stdout).toBe("out") + expect(result.stderr).toBe("to stderr") + expect(result.timedOut).toBe(false) + }), + ) + + write.live("allows writes inside the workspace in workspace-write mode", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: `echo hi > ${path.join(liveWorkspace, "inside.txt")}`, + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).toBe(0) + expect(yield* Effect.promise(() => Bun.file(path.join(liveWorkspace, "inside.txt")).text())).toBe("hi\n") + }), + ) + + write.live("denies writes outside the workspace and the temp roots", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: `echo pwned > ${canary}`, + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).not.toBe(0) + expect(yield* Effect.promise(() => Bun.file(canary).exists())).toBe(false) + }), + ) + + write.live("denies planting a protected config file, and planting plugin directories", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + for (const target of ["opencode.json", ".opencode/plugins/evil.ts"]) { + const result = yield* sandbox.execute({ + command: `mkdir -p ${path.join(liveWorkspace, path.dirname(target))} && echo evil > ${path.join(liveWorkspace, target)}`, + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).not.toBe(0) + expect(yield* Effect.promise(() => Bun.file(path.join(liveWorkspace, target)).exists())).toBe(false) + } + }), + ) + + write.live("denies network egress", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + // 42 marks a host without curl, which says nothing about enforcement. + command: "command -v curl >/dev/null || exit 42; curl -m 3 -s https://example.com >/dev/null; echo CURL=$?", + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + if (result.exitCode === 42) return + expect(result.exitCode).toBe(0) + expect(result.stdout).not.toContain("CURL=0") + }), + ) + + readOnly.live("denies writes inside the workspace in read-only mode", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: `echo no > ${path.join(liveWorkspace, "denied.txt")}`, + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).not.toBe(0) + expect(yield* Effect.promise(() => Bun.file(path.join(liveWorkspace, "denied.txt")).exists())).toBe(false) + }), + ) + + write.live("stops a command at its timeout", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: "sleep 30", + cwd: liveWorkspace, + shell: "/bin/sh", + timeout: 1_500, + environment: {}, + }) + expect(result.timedOut).toBe(true) + }), + ) +}) + +liveWindows("Sandbox enforcement on Windows", () => { + write.live("captures output and allows writes inside the workspace", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: `echo hi> ${path.join(liveWorkspace, "inside.txt")}`, + cwd: liveWorkspace, + shell: process.env.COMSPEC || "cmd.exe", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).toBe(0) + expect(yield* Effect.promise(() => Bun.file(path.join(liveWorkspace, "inside.txt")).text())).toContain("hi") + }), + ) + + write.live("denies writes outside the workspace", () => + Effect.gen(function* () { + const sandbox = yield* Sandbox.Service + const result = yield* sandbox.execute({ + command: `echo pwned> ${canary}`, + cwd: liveWorkspace, + shell: process.env.COMSPEC || "cmd.exe", + timeout: 15_000, + environment: {}, + }) + expect(result.exitCode).not.toBe(0) + expect(yield* Effect.promise(() => Bun.file(canary).exists())).toBe(false) + }), + ) +}) diff --git a/packages/core/test/subagent-idle-e2e.test.ts b/packages/core/test/subagent-idle-e2e.test.ts index 6be495a9f50b..4a4e3f9b3aac 100644 --- a/packages/core/test/subagent-idle-e2e.test.ts +++ b/packages/core/test/subagent-idle-e2e.test.ts @@ -28,6 +28,7 @@ import { SessionTable } from "@opencode/core/session/sql" import { SessionStore } from "@opencode/core/session/store" import { SubagentJob } from "@opencode/core/session/subagent-job" import { Shell } from "@opencode/core/shell" +import { Sandbox } from "@opencode/core/sandbox" import { ShellTool } from "@opencode/core/tool/plugin/shell" import { SubagentTool } from "@opencode/core/tool/plugin/subagent" import { Tool } from "@opencode/core/tool" @@ -70,6 +71,7 @@ const pluginSupervisor = makeLocationNode({ Model.node, Permission.node, PluginHooks.node, + Sandbox.node, Session.node, Shell.node, ShellSelect.node, diff --git a/packages/core/test/tool-shell.test.ts b/packages/core/test/tool-shell.test.ts index 881dc514e002..8751e534d281 100644 --- a/packages/core/test/tool-shell.test.ts +++ b/packages/core/test/tool-shell.test.ts @@ -35,6 +35,7 @@ import { PermissionSaved } from "@opencode/core/permission/saved" import { Plugin } from "@opencode/core/plugin" import { PluginSupervisor } from "@opencode/core/plugin/supervisor" import { Shell } from "@opencode/core/shell" +import { Sandbox } from "@opencode/core/sandbox" import { ShellSelect } from "@opencode/core/shell/select" import { ShellResult } from "@opencode/core/shell/result" import { ID } from "@opencode/schema/shell" @@ -143,6 +144,7 @@ const shellPluginSupervisor = makeLocationNode({ FileAccess.node, Flag.node, Permission.node, + Sandbox.node, Session.node, Job.node, Shell.node, @@ -355,6 +357,111 @@ const runPermissionCommand = ( return { exit, requests } }).pipe(Effect.scoped, Effect.timeout(Duration.seconds(15))) +// A fake sandbox service: the active policy, execution results and recorded executions are set per test. +let sandboxPolicy: Sandbox.Policy | undefined +let sandboxResult: Partial = {} +const sandboxExecutions: Sandbox.Execution[] = [] +const fakeSandbox = makeLocationNode({ + service: Sandbox.Service, + layer: Layer.succeed( + Sandbox.Service, + Sandbox.Service.of({ + policy: () => Effect.sync(() => sandboxPolicy), + execute: (input) => + Effect.sync(() => { + sandboxExecutions.push(input) + return { + exitCode: 0, + stdout: `sandbox-ran:${input.command}`, + stderr: "", + timedOut: false, + ...sandboxResult, + } + }), + }), + ), + deps: [], +}) +const sandboxIt = testEffect( + AppNodeBuilder.build(nodes, [ + ...replacements, + PluginSupervisor.node.replace(shellPluginSupervisor), + Sandbox.node.replace(fakeSandbox), + ]), +) + +describe("ShellTool sandbox", () => { + const prepare = () => { + reset() + sandboxPolicy = undefined + sandboxResult = {} + sandboxExecutions.length = 0 + } + + sandboxIt.live("runs a command through the sandbox when a policy is active", () => + withScanner((registry) => + Effect.gen(function* () { + prepare() + sandboxPolicy = { mode: "workspace-write", network: "deny", writableRoots: [] } + const settled = yield* executeTool(registry, call({ command: "echo hi" })) + expect(sandboxExecutions.map((item) => item.command)).toEqual(["echo hi"]) + expect(sandboxExecutions[0].environment.AGENT).toBe("1") + expect(settled.status).toBe("completed") + expect(settled.metadata).toMatchObject({ exit: 0, truncated: false, status: "completed" }) + expect(settled.content).toEqual([{ type: "text", text: "sandbox-ran:echo hi" }]) + expect(assertions.map((item) => item.action)).toEqual(["shell"]) + }), + ), + ) + + sandboxIt.live("reports a sandbox timeout as a stopped command", () => + withScanner((registry) => + Effect.gen(function* () { + prepare() + sandboxPolicy = { mode: "read-only", network: "deny", writableRoots: [] } + sandboxResult = { timedOut: true, exitCode: -1, stdout: "" } + const settled = yield* executeTool(registry, call({ command: "sleep 999" })) + expect(settled.status).toBe("completed") + expect(settled.content?.at(-1)).toMatchObject({ + type: "text", + text: expect.stringContaining("Command timed out"), + }) + }), + ), + ) + + sandboxIt.live("asks a separate permission to leave the sandbox before the shell approval", () => + withScanner((registry, fixture) => + Effect.gen(function* () { + prepare() + sandboxPolicy = { mode: "read-only", network: "deny", writableRoots: [] } + const marker = path.join(fixture.active, "unsandboxed-marker") + const settled = yield* executeTool( + registry, + call({ command: `printf unsandboxed > ${marker}`, sandbox: false }), + ) + expect(sandboxExecutions).toEqual([]) + expect(settled.status).toBe("completed") + expect(yield* Effect.promise(() => Bun.file(marker).text())).toBe("unsandboxed") + expect(assertions.map((item) => item.action)).toEqual(["shell_unsandboxed", "shell"]) + expect(assertions[0].resources).toEqual([`printf unsandboxed > ${marker}`]) + }), + ), + ) + + sandboxIt.live("does not ask to leave a sandbox that is off", () => + withScanner((registry, fixture) => + Effect.gen(function* () { + prepare() + const marker = path.join(fixture.active, "plain-marker") + yield* executeTool(registry, call({ command: `printf plain > ${marker}`, sandbox: false })) + expect(assertions.map((item) => item.action)).toEqual(["shell"]) + expect(yield* Effect.promise(() => Bun.file(marker).text())).toBe("plain") + }), + ), + ) +}) + describe("ShellTool scanner permissions", () => { const test = isWindows || !Bun.which("sh") ? permissionIt.live.skip : permissionIt.live @@ -1245,6 +1352,7 @@ describe("ShellTool", () => { FileAccess.node, Flag.node, Permission.node, + Sandbox.node, Session.node, Job.node, Shell.node, diff --git a/packages/schema/src/agent.ts b/packages/schema/src/agent.ts index c47d5e8e7ef8..f09f84b01655 100644 --- a/packages/schema/src/agent.ts +++ b/packages/schema/src/agent.ts @@ -45,6 +45,9 @@ export const Info = Schema.Struct({ hidden: false, permissions: [ { action: "*", resource: "*", effect: "allow" }, + // A saved `shell` allow must not also authorize leaving the OS sandbox; approving a sandboxed + // command never approves running it unsandboxed. + { action: "shell_unsandboxed", resource: "*", effect: "ask" }, { action: "read", resource: "*.env", effect: "ask" }, { action: "read", resource: "*.env.*", effect: "ask" }, { action: "read", resource: "*.env.example", effect: "allow" }, diff --git a/packages/schema/src/config.ts b/packages/schema/src/config.ts index e78cbae0f8e3..bd79d1af2a5b 100644 --- a/packages/schema/src/config.ts +++ b/packages/schema/src/config.ts @@ -17,6 +17,7 @@ import { ConfigPlugin } from "./config/plugin.js" import { ConfigPolicy } from "./config/policy.js" import { ConfigProvider } from "./config/provider.js" import { ConfigReference } from "./config/reference.js" +import { ConfigSandbox } from "./config/sandbox.js" import { ConfigWebSearch } from "./config/websearch.js" import { ConfigToolOutput } from "./config/tool-output.js" import { ConfigWatcher } from "./config/watcher.js" @@ -67,6 +68,9 @@ export class Info extends Schema.Class("Config.Info")({ snapshots: Schema.Boolean.pipe(optional).annotate({ description: "Enable snapshots used for undo and revert behavior", }), + sandbox: ConfigSandbox.Info.pipe(optional).annotate({ + description: "OS-level sandbox for agent shell commands, enforced by Microsoft MXC (default: off)", + }), watcher: ConfigWatcher.Info.pipe(optional).annotate({ description: "Filesystem watcher configuration", }), diff --git a/packages/schema/src/config/sandbox.ts b/packages/schema/src/config/sandbox.ts new file mode 100644 index 000000000000..a73c409fe372 --- /dev/null +++ b/packages/schema/src/config/sandbox.ts @@ -0,0 +1,21 @@ +export * as ConfigSandbox from "./sandbox.js" + +import { Schema } from "effect" +import { optional } from "../schema.js" + +export class Info extends Schema.Class("Config.Sandbox")({ + enabled: Schema.Boolean.pipe(optional).annotate({ + description: "Run agent shell commands inside an OS-level sandbox (default: false)", + }), + mode: Schema.Literals(["read-only", "workspace-write"]).pipe(optional).annotate({ + description: + "Filesystem policy when the sandbox is enabled. read-only denies every write, workspace-write allows writes to the workspace and the system temp directory. Defaults to read-only, the strictest mode", + }), + network: Schema.Literals(["deny", "allow"]).pipe(optional).annotate({ + description: "Network policy when the sandbox is enabled (default: deny)", + }), + writable_roots: Schema.String.pipe(Schema.Array, optional).annotate({ + description: + "Extra writable directories when the sandbox runs in workspace-write mode, absolute or relative to the workspace. Honored from user-level config only; a repository cannot add writable roots outside itself", + }), +}) {} diff --git a/packages/schema/test/config.test.ts b/packages/schema/test/config.test.ts index 37f9c94e5960..45e20939c360 100644 --- a/packages/schema/test/config.test.ts +++ b/packages/schema/test/config.test.ts @@ -192,3 +192,18 @@ test("no flag is named after the everything-on switches", () => { expect(ConfigFlag.registry).not.toHaveProperty("all_flags") expect(ConfigFlag.registry).not.toHaveProperty(ConfigFlag.wildcard) }) + +test("round-trips sandbox settings and rejects invalid sandbox values", () => { + const input = { + sandbox: { enabled: true, mode: "workspace-write", network: "deny", writable_roots: ["dist"] }, + } as const + const decoded = Schema.decodeUnknownSync(Config.Info)(input) + expect(Schema.encodeSync(Config.Info)(decoded)).toEqual(input) + expect(decoded.sandbox?.enabled).toBe(true) + expect(decoded.sandbox?.mode).toBe("workspace-write") + + expect(() => Schema.decodeUnknownSync(Config.Info)({ sandbox: { enabled: true, mode: "full-access" } })).toThrow() + expect(() => Schema.decodeUnknownSync(Config.Info)({ sandbox: { enabled: "yes" } })).toThrow() + expect(() => Schema.decodeUnknownSync(Config.Info)({ sandbox: { network: "sometimes" } })).toThrow() +}) + diff --git a/services/site/src/docs/content/config.mdx b/services/site/src/docs/content/config.mdx index 0cded3ea2dae..9b3665b9b60f 100644 --- a/services/site/src/docs/content/config.mdx +++ b/services/site/src/docs/content/config.mdx @@ -257,6 +257,68 @@ Enable or disable filesystem snapshots used by undo and revert behavior. See the [snapshots guide](/snapshots) for undo and redo behavior. +### Sandbox + +Run agent shell commands inside an OS-level sandbox enforced by +[Microsoft MXC](https://github.com/microsoft/mxc). Off by default. + +```jsonc +{ + "sandbox": { + "enabled": true, + "mode": "workspace-write", + "network": "deny", + "writable_roots": [], + }, +} +``` + +- `mode`: `read-only` denies every write. `workspace-write` allows writes to the + workspace and the system temp directory. Defaults to `read-only`, the + strictest mode. +- `network`: `deny` blocks all network access for sandboxed commands. Defaults + to `deny`. +- `writable_roots`: extra writable directories, absolute or relative to the + workspace, applied in `workspace-write` mode. + +Behavior to know: + +- Sandbox settings are read only from user-level config. A repository cannot + enable, loosen or tighten the sandbox, and cannot add writable roots outside + itself. +- In `workspace-write` mode the workspace files opencode itself reads at + startup (`opencode.json`, `opencode.jsonc`, `.opencode`, `.claude`, `.agents`) + stay read-only, so a sandboxed command cannot plant config or plugin files + that would run unsandboxed after a restart. +- Approving a sandboxed command never approves running a command unsandboxed: + the shell tool has a `sandbox` input to request leaving the sandbox, guarded + by the separate `shell_unsandboxed` permission. Configure whether escaping is + allowed with a permission rule: deny it to forbid leaving the sandbox + entirely (the default is `ask`, and unattended sessions deny asks + automatically), or allow specific commands to skip the prompt. + +```jsonc +{ + "permissions": [{ "action": "shell_unsandboxed", "resource": "*", "effect": "deny" }], +} +``` +- If the sandbox cannot run a command (unsupported platform, missing backend + such as `bwrap` on Linux, remote workspace), the command is not run. It never + falls back to running unconfined. +- Sandboxed commands run to completion in the foreground with captured output: + there is no background mode, no interactive terminal, and a stop request + cannot interrupt the process before its timeout. +- Platform support: macOS 15+ on Apple Silicon (Seatbelt), Linux with + `bubblewrap` >= 0.5.0 installed, Windows 11 with native process-container + support. On Windows the backend enforces filesystem containment but cannot + enforce network denial yet (verified against Windows 11 and MXC 1.1.0), so + with the default `network: "deny"` sandboxed commands fail closed with an + explanation; set `network` to `"allow"` to run sandboxed with filesystem + containment only. Protected config paths are denied outright on Windows + (they stay readable through opencode's own read tool). Note that MXC release + builds on Windows send required diagnostic data to Microsoft; see the MXC + documentation. + ### Watcher Ignore files and directories that should not trigger filesystem updates. diff --git a/services/site/src/docs/content/permissions.mdx b/services/site/src/docs/content/permissions.mdx index fb09c3da8ce8..c314c4e97955 100644 --- a/services/site/src/docs/content/permissions.mdx +++ b/services/site/src/docs/content/permissions.mdx @@ -113,6 +113,7 @@ currently use these actions and resources: | `glob` | Requested glob pattern | | `grep` | Requested regular expression, not the search path | | `shell` | Scanner-produced command string; compound commands may produce several | +| `shell_unsandboxed` | Command string; asked before `shell` when a tool call requests running outside the OS sandbox | | `subagent` | Target agent ID | | `skill` | Skill ID | | `question` | `*` | From 4498cd9ab62f35b310abb549f5f91597e918362a Mon Sep 17 00:00:00 2001 From: benjaminfrombe Date: Sun, 15 Nov 2026 16:58:01 +0100 Subject: [PATCH 2/2] fix(core): carve out only existing protected paths on Linux bwrap cannot bind a read-only source that does not exist, which fails the whole launch, and the backend's deniedPaths fallback creates the missing path as a stray directory on the host (microsoft/mxc#1780). Linux now carves out protected paths that exist and leaves the rest alone in v1, documented as a known gap; macOS and Windows behavior is unchanged. Verified on Debian 13 with bwrap 0.12: read-only carve-outs for existing paths are enforced (write denied, read allowed), network egress denied, read-only mode enforced, timeout kill works. --- packages/core/src/sandbox.ts | 44 +++++++++++++++++------ packages/core/test/sandbox.test.ts | 22 ++++++++++++ services/site/src/docs/content/config.mdx | 6 +++- 3 files changed, 60 insertions(+), 12 deletions(-) diff --git a/packages/core/src/sandbox.ts b/packages/core/src/sandbox.ts index 7b8a5ad87f93..9a5879168804 100644 --- a/packages/core/src/sandbox.ts +++ b/packages/core/src/sandbox.ts @@ -1,6 +1,6 @@ export * as Sandbox from "./sandbox.js" -import { realpathSync } from "node:fs" +import { realpathSync, statSync } from "node:fs" import os from "os" import path from "path" import { Context, Effect, Layer, Schema } from "effect" @@ -93,6 +93,24 @@ export function request( platform: NodeJS.Platform = process.platform, ): ContainerRequest { const protectedPaths = PROTECTED.map((item) => path.join(input.workspace, item)) + const writable = [input.workspace, ...input.tmpRoots, ...policy.writableRoots] + const filesystem = + policy.mode !== "workspace-write" + ? { readonlyPaths: [input.workspace] } + : platform === "win32" + ? // The Windows backend does not enforce read-only carve-outs under writable roots, so protected paths + // are denied outright instead; the in-process read tool still reads them. + { readwritePaths: writable, deniedPaths: protectedPaths } + : platform === "linux" + ? { + readwritePaths: writable, + // bwrap cannot bind a read-only source that does not exist, which would fail the whole launch, + // and denying a missing path makes the backend create it as a stray directory on the host. So only + // protected paths that already exist are carved out on Linux; protection for the rest waits on an + // upstream MXC fix and is documented as a known gap. + ...carve(protectedPaths), + } + : { readwritePaths: writable, readonlyPaths: protectedPaths } return { command: commandLine(input.shell, input.command, platform), containment: { type: "process" }, @@ -100,16 +118,7 @@ export function request( timeoutMs: input.timeout, environment: input.environment, inheritDefaultEnvironment: true, - ...(policy.mode === "workspace-write" - ? { - filesystem: - platform === "win32" - ? // The Windows backend does not enforce read-only carve-outs under writable roots, so protected - // paths are denied outright instead; the in-process read tool still reads them. - { readwritePaths: [input.workspace, ...input.tmpRoots, ...policy.writableRoots], deniedPaths: protectedPaths } - : { readwritePaths: [input.workspace, ...input.tmpRoots, ...policy.writableRoots], readonlyPaths: protectedPaths }, - } - : { filesystem: { readonlyPaths: [input.workspace] } }), + filesystem, network: policy.network === "deny" ? { egress: { default: "deny" }, ingress: { default: "deny", hostLoopback: "deny" } } @@ -117,6 +126,19 @@ export function request( } } +// Reduces protected paths to the read-only carve-outs bwrap can actually bind: the ones that exist. +function carve(protectedPaths: string[]) { + const readonlyPaths = protectedPaths.filter((item) => { + try { + statSync(item) + return true + } catch { + return false + } + }) + return readonlyPaths.length ? { readonlyPaths } : {} +} + /** Builds the single command line MXC parses, quoting the shell and its arguments for the platform. */ export const commandLine = (shell: string, command: string, platform: NodeJS.Platform = process.platform) => [shell, ...ShellSelect.args(shell, command)] diff --git a/packages/core/test/sandbox.test.ts b/packages/core/test/sandbox.test.ts index 417fe04e988b..340f332f53bc 100644 --- a/packages/core/test/sandbox.test.ts +++ b/packages/core/test/sandbox.test.ts @@ -1,4 +1,5 @@ import path from "path" +import fs from "node:fs" import os from "os" import { afterAll, describe, expect, test } from "bun:test" import { Effect, Layer } from "effect" @@ -143,6 +144,27 @@ describe("Sandbox.request", () => { }) }) + test("workspace-write carves out only existing protected paths on Linux", () => { + // bwrap cannot bind a read-only source that does not exist, and denying a missing path makes the backend + // create it as a stray directory on the host, so missing protected paths are left alone there. + const directory = fs.mkdtempSync(path.join(os.tmpdir(), "opencode-sandbox-test-")) + try { + fs.mkdirSync(path.join(directory, ".claude")) + fs.writeFileSync(path.join(directory, "opencode.json"), "{}") + const request = Sandbox.request( + { mode: "workspace-write", network: "deny", writableRoots: [] }, + { ...execution, workspace: directory, cwd: directory }, + "linux", + ) + expect(request.filesystem).toEqual({ + readwritePaths: [directory, "/tmp"], + readonlyPaths: [path.join(directory, "opencode.json"), path.join(directory, ".claude")], + }) + } finally { + fs.rmSync(directory, { recursive: true, force: true }) + } + }) + test("quotes the shell and command for POSIX and Windows", () => { expect(Sandbox.commandLine("/bin/bash", "echo 'hi'")).toBe(`'/bin/bash' '-c' 'echo '\\''hi'\\'''`) expect(Sandbox.commandLine("/bin/zsh", "ls *.txt")).toBe(`'/bin/zsh' '+o' 'nomatch' '-c' 'ls *.txt'`) diff --git a/services/site/src/docs/content/config.mdx b/services/site/src/docs/content/config.mdx index 9b3665b9b60f..b09754818bb1 100644 --- a/services/site/src/docs/content/config.mdx +++ b/services/site/src/docs/content/config.mdx @@ -289,7 +289,11 @@ Behavior to know: - In `workspace-write` mode the workspace files opencode itself reads at startup (`opencode.json`, `opencode.jsonc`, `.opencode`, `.claude`, `.agents`) stay read-only, so a sandboxed command cannot plant config or plugin files - that would run unsandboxed after a restart. + that would run unsandboxed after a restart. Per platform: macOS enforces + this for existing and not-yet-existing paths; Linux enforces it for paths + that exist (bwrap cannot bind a missing read-only source, and the backend's + deny fallback creates stray directories on the host, so missing paths are + left unprotected until MXC fixes that); Windows denies the paths outright. - Approving a sandboxed command never approves running a command unsandboxed: the shell tool has a `sandbox` input to request leaving the sandbox, guarded by the separate `shell_unsandboxed` permission. Configure whether escaping is