跳到主要内容

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

提交记录
修改internal/diagnostics/diagnostics_test.go+3 −0看文件
@@ -179,6 +179,9 @@ func TestGuestRunnerSharesRedactionAndExitStatus(t *testing.T) {
179179 if _, err := exec.LookPath("uv"); err != nil {
180180 t.Skip("uv unavailable")
181181 }
182新增: // CI runs this fixture as an ordinary user; setup-uv's inherited cache
183新增: // can belong to the root account that installed the build dependencies.
184新增: t.Setenv("UV_CACHE_DIR", t.TempDir())
182185 script := filepath.Join(t.TempDir(), "runner.py")
183186 _ = os.WriteFile(script, []byte(GuestRunner()), 0600)
184187 cmd := exec.Command("uv", "run", "--no-project", "python", script, "/bin/sh", "-c", `printf 'Cookie: one=first-secret; two=second-secret\nhttps://user:[email protected]/secret\nsafe-line\n'; exit 7`)
修改internal/workbench/claude_desktop_test.go+4 −0看文件
@@ -5,10 +5,14 @@ import (
55 "os"
66 "os/exec"
77 "path/filepath"
8新增: "runtime"
89 "testing"
910)
1011
1112func TestClaudeDesktopSnapshotFailureReason(t *testing.T) {
13新增: if runtime.GOOS == "windows" {
14新增: t.Skip("snapshot executes in the Linux guest; fixture requires POSIX executables")
15新增: }
1216 if _, err := exec.LookPath("python3"); err != nil {
1317 t.Skip("python3 unavailable")
1418 }