跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录
修改README.md+1 −1看文件
@@ -4,7 +4,7 @@ Run AI coding agents in a disposable Linux VM per project, with permissions bypa
44
55Built on [Lima](https://lima-vm.io/). Ships dev tools, Docker, headless Chromium with [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp), and [Claude Code](https://claude.ai/code), [OpenCode](https://github.com/anomalyco/opencode), [Codex CLI](https://github.com/openai/codex), [Mistral Vibe](https://docs.mistral.ai/vibe/code/cli/install-setup) and, opt-in, [Pi](https://pi.dev). macOS, Linux, and Windows (Git Bash, experimental).
66
7删除:**Documentation: [www.agent-vm.org](https://www.agent-vm.org/)**
7新增:**Documentation: [www.agent-vm.org](https://www.agent-vm.org/)** · Chat: [#agent-vm:matrix.org](https://matrix.to/#/#agent-vm:matrix.org)
88
99## Install
1010
修改www/README.md+8 −0看文件
@@ -55,6 +55,14 @@ npm run og
5555That needs `sharp` (a devDependency) and a font on the machine. The deploy does
5656not: it only reads the committed PNG.
5757
58新增:`public/favicon.png`, the fallback for browsers without SVG favicons, and
59新增:`public/apple-touch-icon.png` are committed too. Regenerate them after changing
60新增:`public/favicon.svg`:
61新增:
62新增:```bash
63新增:npm run favicon
64新增:```
65新增:
5866## Deploying
5967
6068`.github/workflows/www.yml` builds on every push to `main` that touches `www/`
修改www/package.json+2 −1看文件
@@ -11,7 +11,8 @@
1111 "build": "astro build",
1212 "preview": "astro preview",
1313 "check": "astro check",
14删除: "og": "node scripts/build-og.mjs"
14新增: "og": "node scripts/build-og.mjs",
15新增: "favicon": "node scripts/build-favicon.mjs"
1516 },
1617 "dependencies": {
1718 "@astrojs/sitemap": "^3.7.4",
新增www/public/apple-touch-icon.png看文件

二进制文件,不显示改动。

新增www/public/favicon.png看文件

二进制文件,不显示改动。

新增www/scripts/build-favicon.mjs+29 −0看文件
@@ -0,0 +1,29 @@
1新增:/**
2新增: * Renders the PNG icons from public/favicon.svg: favicon.png for browsers
3新增: * without SVG favicons, apple-touch-icon.png for iOS home screens.
4新增: *
5新增: * Run with `npm run favicon` after changing the SVG. The PNGs are committed,
6新增: * like og.png.
7新增: */
8新增:
9新增:import { dirname, resolve } from 'node:path';
10新增:import { fileURLToPath } from 'node:url';
11新增:import sharp from 'sharp';
12新增:
13新增:const here = dirname(fileURLToPath(import.meta.url));
14新增:const pub = resolve(here, '../public');
15新增:const svg = resolve(pub, 'favicon.svg');
16新增:
17新增:// Sizes match the `sizes` attributes in Base.astro.
18新增:async function render(name, size, flatten) {
19新增: // Rasterized at 8x the target, then scaled down. The SVG's viewBox is 32px.
20新增: let img = sharp(svg, { density: (72 * 8 * size) / 32 }).resize(size, size);
21新增: if (flatten) img = img.flatten({ background: flatten });
22新增: await img.png({ compressionLevel: 9 }).toFile(resolve(pub, name));
23新增: console.log(`wrote ${resolve(pub, name)}`);
24新增:}
25新增:
26新增:await render('favicon.png', 32);
27新增:// iOS fills transparency with black and rounds the corners itself: the
28新增:// background goes to the edges instead.
29新增:await render('apple-touch-icon.png', 180, '#191713');
修改www/src/components/Contribute.astro+15 −1看文件
@@ -84,6 +84,10 @@ const d = t(locale);
8484 <span class="contribute__link-label">{d.contribute.repoLabel}</span>
8585 <span class="contribute__link-arrow" aria-hidden="true">→</span>
8686 </a>
87新增: <a class="contribute__link" href={d.contribute.chatHref} rel="noopener" target="_blank">
88新增: <span class="contribute__link-label">{d.contribute.chatLabel}</span>
89新增: <span class="contribute__link-arrow" aria-hidden="true">→</span>
90新增: </a>
8791 </div>
8892 </div>
8993</section>
@@ -147,7 +151,7 @@ const d = t(locale);
147151
148152 .contribute__links {
149153 display: grid;
150删除: grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
154新增: grid-template-columns: repeat(4, minmax(0, 1fr));
151155 gap: 1px;
152156 margin-top: clamp(2.5rem, 5vw, 4rem);
153157 background: var(--line);
@@ -191,5 +195,15 @@ const d = t(locale);
191195 grid-template-columns: minmax(0, 1fr);
192196 gap: 2.5rem;
193197 }
198新增:
199新增: .contribute__links {
200新增: grid-template-columns: repeat(2, minmax(0, 1fr));
201新增: }
202新增: }
203新增:
204新增: @media (max-width: 36rem) {
205新增: .contribute__links {
206新增: grid-template-columns: minmax(0, 1fr);
207新增: }
194208 }
195209</style>
修改www/src/components/Footer.astro+3 −0看文件
@@ -20,6 +20,9 @@ const d = t(locale);
2020 <a class="footer__link" href="https://github.com/sylvinus/agent-vm" rel="noopener" target="_blank">
2121 {d.nav.github}
2222 </a>
23新增: <a class="footer__link" href={d.contribute.chatHref} rel="noopener" target="_blank">
24新增: Matrix
25新增: </a>
2326 <a
2427 class="footer__link"
2528 href="https://github.com/sylvinus/agent-vm/blob/main/LICENSE"
修改www/src/i18n/en.ts+2 −0看文件
@@ -744,6 +744,8 @@ export const en = {
744744 prHref: 'https://github.com/sylvinus/agent-vm/pulls',
745745 repoLabel: 'Read the source',
746746 repoHref: 'https://github.com/sylvinus/agent-vm',
747新增: chatLabel: 'Chat on Matrix',
748新增: chatHref: 'https://matrix.to/#/#agent-vm:matrix.org',
747749 },
748750
749751 credits: {
修改www/src/i18n/fr.ts+2 −0看文件
@@ -746,6 +746,8 @@ export const fr: Dictionary = {
746746 prHref: 'https://github.com/sylvinus/agent-vm/pulls',
747747 repoLabel: 'Lire le code',
748748 repoHref: 'https://github.com/sylvinus/agent-vm',
749新增: chatLabel: 'Discuter sur Matrix',
750新增: chatHref: 'https://matrix.to/#/#agent-vm:matrix.org',
749751 },
750752
751753 credits: {
修改www/src/layouts/Base.astro+2 −0看文件
@@ -26,6 +26,8 @@ const canonical = new URL(localeHref(locale), site).href;
2626 <meta name="description" content={d.meta.description} />
2727 <link rel="canonical" href={canonical} />
2828 <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
29新增: <link rel="icon" href="/favicon.png" type="image/png" sizes="32x32" />
30新增: <link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180" />
2931 <meta name="generator" content={Astro.generator} />
3032
3133 {