跳到主要内容

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

提交记录
修改README.md+1 −1看文件
@@ -25,7 +25,7 @@ Claude Cage 是一个轻量 Linux 虚拟机,把 Linux 终端、浏览器和文
2525
2626**Cage 运行主界面:**
2727
28删除:![Cage 工作台与终端,使用演示项目 hello-cage](www/public/workbench.jpg)
28新增:![Claude Cage · claude.ai](www/public/workbench.jpg)
2929
3030## 你可以用它做什么
3131
修改README.zh-TW.md+1 −1看文件
@@ -25,7 +25,7 @@ Claude Cage 是一個輕量 Linux 虛擬機器,把 Linux 終端、瀏覽器和
2525
2626**Cage 執行主介面:**
2727
28删除:![Cage 工作臺與終端,使用演示專案 hello-cage](www/public/workbench.jpg)
28新增:![Claude Cage · claude.ai](www/public/workbench.jpg)
2929
3030## 你可以用它做什麼
3131
修改docs/releases/0.1.0-alpha.1.md+3 −3看文件
@@ -4,7 +4,7 @@
44
55## 安装与开始使用
66
7删除:发布后,从[本版本 Release](https://github.com/Lee-xeo/Claude-Cage/releases/tag/v0.1.0-alpha.1) 下载 `Cage-0.1.0-alpha.1-macos-arm64.dmg`,将 Cage 拖入 Applications,再从应用程序打开。配置自己的 Clash / Mihomo YAML 或订阅,选择节点后启动环境。首次启动会下载 Linux 镜像与开发工具。
7新增:从[本版本 Release](https://github.com/Lee-xeo/Claude-Cage/releases/tag/v0.1.0-alpha.1) 下载 `Cage-0.1.0-alpha.1-macos-arm64.dmg`,将 Cage 拖入 Applications,再从应用程序打开。配置自己的 Clash / Mihomo YAML 或订阅,选择节点后启动环境。首次启动会下载 Linux 镜像与开发工具。
88
99代理服务和 Claude 账户或授权需要自行准备。打开演示或测试项目,在终端输入 `claude`,并在 Cage 浏览器中完成自己的账户授权。完整步骤见[开始使用](../getting-started.md)。
1010
@@ -21,9 +21,9 @@
2121
2222## 发布验收
2323
24删除:本版本正在准备发行。新编号安装包的 Developer ID 签名、Apple 公证、票据附加、Gatekeeper 与实际安装入口须针对最终构建完成验收;结果将在正式发布时补齐,不能沿用其他构建的公证结果。
24新增:本版本的 App 与 DMG 均已通过 Developer ID 签名、Apple 公证、票据附加和 Gatekeeper 验证。最终控制程序在独立空配置下启动,确认版本为 `0.1.0-alpha.1`;真实内置浏览器已打开 Claude 新对话页,原生窗口显示正常。
2525
26删除:源码验证覆盖 Go 回归、相关竞态检查与 vet、前端 lint 与单元测试、浏览器和文件操作、更新器、第三方补丁与依赖许可。公开附件校验还需核对实际下载内容与 `SHA256SUMS`,版本与源码标签保持一致。
26新增:源码验证覆盖 Go 回归、相关竞态检查与 vet、前端 lint 与单元测试、浏览器和文件操作、更新器、第三方补丁与依赖许可。安装包与对应 Mihomo 源码随附 `SHA256SUMS`,公开发行工作流会下载附件并再次验证摘要、签名、公证和应用版本。
2727
2828## 内测范围与限制
2929
修改www/public/workbench.jpg看文件

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

修改www/src/components/CageHome.astro+1 −1看文件
@@ -44,7 +44,7 @@ const canonical = new URL(pathFor(locale), Astro.site);
4444 </section>
4545 <section class="manifesto wrap"><h2>{c.why}</h2><p>{c.whyText}</p><ul class="key-features">{c.keyFeatures.map(text => <li>{text}</li>)}</ul><p class="small-note">{c.whyNote}</p></section>
4646 <section class="tools wrap" aria-labelledby="tools-title"><div class="section-intro"><h2 id="tools-title">{c.featureTitle}</h2></div><div class="tool-list">{c.features.map(([title,text],i) => <article><span class="tool-icon" aria-hidden="true">{['>_','↔','◎','↗'][i]}</span><div><h3>{title}</h3><p>{text}</p></div></article>)}</div></section>
47删除: <div class="wrap"><figure class="product"><div class="window-bar" dir="ltr"><span class="window-dots" aria-hidden="true">● ● ●</span><span>Claude Cage · v{published.version}</span><span class="window-label">macOS</span></div><img src={`${base}workbench.jpg`} width="1230" height="692" alt={c.workbench} loading="lazy" /><figcaption>{c.workbench}</figcaption></figure></div>
47新增: <div class="wrap"><figure class="product"><div class="window-bar" dir="ltr"><span class="window-dots" aria-hidden="true">● ● ●</span><span>Claude Cage · v{published.version}</span><span class="window-label">macOS</span></div><img src={`${base}workbench.jpg`} width="680" height="520" alt={c.workbench} loading="lazy" /><figcaption>{c.workbench}</figcaption></figure></div>
4848 <section class="evidence wrap"><h2>{c.evidenceTitle}</h2><div class="evidence-grid"><figure><a href={checks.src}><img src={checks.src} width={checks.width} height={checks.height} alt={c.checksLabel} loading="lazy" /></a><figcaption>{c.checksLabel}</figcaption></figure><figure><a href={communityCheck.src}><img src={communityCheck.src} width={communityCheck.width} height={communityCheck.height} alt={c.communityCheckLabel} loading="lazy" /></a><figcaption>{c.communityCheckLabel}</figcaption></figure></div><p class="small-note">{c.evidenceNote}</p></section>
4949 <section id="how" class="start-section"><div class="wrap"><div class="quick-start"><h2>{c.quickTitle}</h2><p>{c.quickText}</p><pre><code>{c.prompt}</code></pre><p class="small-note">{c.quickNote}</p></div><div class="section-heading"><h2 class="steps-title">{c.stepsTitle}</h2></div><div class="steps">{c.steps.map(([title,text],i)=><article><span class="step-number" dir="ltr">0{i+1}</span><h3>{title}</h3><p>{text}</p></article>)}</div><details class="first-look"><summary>{c.firstLookLabel}<span aria-hidden="true">+</span></summary><img src={`${base}first-run.jpg`} width="1230" height="692" alt={c.firstLookLabel} loading="lazy" /></details></div></section>
5050 <section id="boundaries" class="boundaries wrap"><h2>{c.boundaryTitle}</h2><div class="boundary-list">{c.boundaries.map(([title,text])=><article><span aria-hidden="true">↔</span><div>{title && <h3>{title}</h3>}<p>{text}</p></div></article>)}</div></section>
修改www/src/i18n/cage.ts+1 −1看文件
@@ -54,7 +54,7 @@ function readCopy(language: typeof languages[number]) {
5454 why: reason.title, whyText: reasonParagraphs[0], whyNote: limit,
5555 keyFeatures: bullets(reason.body).map(plain),
5656 featureTitle: uses.title, features: bullets(uses.body).map(pair),
57删除: workbench: `${captions[1] || 'Claude Cage'} · hello-cage`,
57新增: workbench: `${captions[1] || 'Claude Cage'} · claude.ai`,
5858 evidenceTitle: captions[0] || language.checksLabel, evidenceNote: limit,
5959 quickTitle: quick.title, quickText: paragraphs(quick.body)[0],
6060 prompt: quick.body.match(/```[^\n]*\n([\s\S]*?)```/)?.[1]?.trim() || '',
修改www/src/styles/cage.css+32 −17看文件
@@ -209,9 +209,9 @@ footer a:hover,
209209}
210210.product > img {
211211 width: 100%;
212删除: aspect-ratio: 1360/850;
213删除: object-fit: cover;
214删除: object-position: top;
212新增: height: auto;
213新增: aspect-ratio: auto;
214新增: object-fit: contain;
215215}
216216figcaption {
217217 font-size: 12px;
@@ -223,10 +223,10 @@ figcaption {
223223}
224224.tools {
225225 display: grid;
226删除: grid-template-columns: 1fr 1.15fr;
227删除: gap: 90px;
228删除: padding-top: 112px;
229删除: padding-bottom: 108px;
226新增: grid-template-columns: 1fr;
227新增: gap: 36px;
228新增: padding-top: 80px;
229新增: padding-bottom: 80px;
230230}
231231.section-intro .eyebrow,
232232.section-heading .eyebrow,
@@ -235,11 +235,16 @@ figcaption {
235235}
236236.tool-list {
237237 display: grid;
238删除: gap: 30px;
238新增: grid-template-columns: repeat(2, minmax(0, 1fr));
239新增: column-gap: 60px;
240新增: row-gap: 36px;
239241}
240242.tool-list article {
241删除: display: flex;
242删除: gap: 22px;
243新增: display: grid;
244新增: grid-template-columns: 32px minmax(0, 1fr);
245新增: gap: 16px;
246新增: border-top: 1px solid var(--line);
247新增: padding-top: 24px;
243248}
244249.tool-list p,
245250.boundary-list p {
@@ -319,10 +324,10 @@ figcaption {
319324}
320325.boundaries {
321326 display: grid;
322删除: grid-template-columns: 1fr 1.1fr;
323删除: gap: 85px;
324删除: padding-top: 105px;
325删除: padding-bottom: 105px;
327新增: grid-template-columns: 1fr;
328新增: gap: 36px;
329新增: padding-top: 80px;
330新增: padding-bottom: 80px;
326331}
327332.section-lead {
328333 color: var(--muted);
@@ -331,11 +336,16 @@ figcaption {
331336}
332337.boundary-list {
333338 display: grid;
334删除: gap: 29px;
339新增: grid-template-columns: repeat(2, minmax(0, 1fr));
340新增: column-gap: 60px;
341新增: row-gap: 36px;
335342}
336343.boundary-list article {
337删除: display: flex;
338删除: gap: 20px;
344新增: display: grid;
345新增: grid-template-columns: 32px minmax(0, 1fr);
346新增: gap: 16px;
347新增: border-top: 1px solid var(--line);
348新增: padding-top: 24px;
339349}
340350.boundary-list article > span {
341351 display: grid;
@@ -611,6 +621,11 @@ code {
611621 padding-bottom: 65px;
612622 }
613623 .tool-list {
624新增: grid-template-columns: 1fr;
625新增: gap: 26px;
626新增: }
627新增: .boundary-list {
628新增: grid-template-columns: 1fr;
614629 gap: 26px;
615630 }
616631 .start-section {