跳到主要内容

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

浏览文件

main_test.go

26 行 · 636 B历史下载
1package cli
2
3import (
4 "os"
5 "runtime"
6 "testing"
7
8 limaversion "github.com/lima-vm/lima/v2/pkg/version"
9
10 "github.com/sylvinus/agent-vm/internal/limaembed"
11)
12
13// Lima starts its hostagent as this executable: the test binary, here.
14// It is not stamped with Lima's version, as the Makefile's builds are.
15func TestMain(m *testing.M) {
16 limaversion.Version = "v2.3.0-test"
17 // macOS's TMPDIR (/var/folders/...) is too long for Lima's socket
18 // paths (104 bytes) and cuts every VM name; real homes are short.
19 if runtime.GOOS == "darwin" {
20 os.Setenv("TMPDIR", "/tmp")
21 }
22 if limaembed.Run(os.Args[1:]) {
23 return
24 }
25 os.Exit(m.Run())
26}