跳到主要内容

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

提交记录
删除.oil-ui/.gitignore+0 −2
@@ -1,2 +0,0 @@
1删除:*
2删除:!.gitignore
删除AGENTS.md+0 −22
@@ -1,22 +0,0 @@
1删除:# Cage 项目协作约定
2删除:
3删除:## 跨平台同步
4删除:
5删除:- 每次修改都要同步处理 macOS、Windows 和 Linux,保持共用功能、接口、数据格式和用户操作的一致性。
6删除:- 修改原生桥、启动与退出、权限、快捷键、更新或打包流程时,核对三个平台的对应实现。平台专属代码按实际需要修改,共用代码应继续兼容三个平台。
7删除:- 同步维护受影响的说明与构建配置,按改动影响执行相应平台验证。无法实测的项目明确记录;不能把单平台通过写成三平台通过,也不能默默遗漏其他平台。
8删除:
9删除:## 个人数据保留
10删除:
11删除:- 安装、重装、更新、失败回滚及卸载仅管理应用文件,保留账户、收藏、配置、历史、登录凭据、项目与持久虚拟机磁盘;不得通过重建账户或初始化个人目录解决更新问题。
12删除:- 默认数据目录固定为用户主目录下的 `.claude-cage`,不得随版本号、安装位置或构建目录变化。显式指定配置路径时,启动与更新助手应传递同一个绝对路径。
13删除:- 开发和安装测试使用各自独立的临时目录,不得把用户正在使用的配置目录当作可清理的测试数据。目录名包含 `qa` 或 `test` 不能作为删除依据。
14删除:- 迁移个人目录前确认相关后台和虚拟机已停止,保留可恢复的完整备份;核对账户、收藏、持久磁盘及依赖旧路径的文件。
15删除:- 涉及安装或更新的改动,使用隔离数据验证安装、更新失败、重装与卸载后的数据保留;macOS 同时验证回滚。各平台未实测的范围必须说明。
16删除:
17删除:## 版本与发布
18删除:
19删除:- 默认只完成用户要求的修改、验证和交付。完成开发、构建测试包、提交或推送代码,都不自动授权升级版本号或发版。
20删除:- 只有用户明确要求发版时,才升级版本号、创建发布标签并执行发布;预发行版本同样遵守此规则。
21删除:- 关于自动发布、CI/CD 或发布方案的讨论不构成发版授权。自动化流程必须保留用户明确发版的触发点,普通代码推送不能隐式变成应用发版。
22删除:- 用户要求发版后,可以自动执行已授权的构建、签名、公证、打包、校验与发布步骤,无需逐步重复征询。跨平台能力和验证范围仍需如实说明。
删除CHANGELOG.md+0 −683
@@ -1,683 +0,0 @@
1删除:# Upstream agent-vm changelog
2删除:
3删除:The entries below retain the upstream agent-vm version history. Cage release notes and validation scope are published in [Cage Releases](https://github.com/Lee-xeo/Claude-Cage/releases); Cage uses its own `VERSION` and macOS packaging workflow. These upstream version numbers and platform artifacts do not describe Cage desktop releases.
4删除:
5删除:## 0.3.1
6删除:
7删除:### Added
8删除:
9删除:- Releases have a `.deb` and an `.rpm` for Linux (amd64, arm64): the binary in
10删除: `/usr/bin` and the docs, with QEMU and ssh recommended. Not in a package
11删除: repository yet: install the file with `apt install ./agent-vm_X.Y.Z_arm64.deb`
12删除: or `dnf install ./agent-vm-X.Y.Z-1.aarch64.rpm`.
13删除:- A Nix flake (Linux): `nix run github:sylvinus/agent-vm`. QEMU comes with it,
14删除: ssh is the system's.
15删除:- `agent-vm setup --preinstall=code-opencode`: the OpenCode extension
16删除: (`sst-dev.opencode`) in code-server (#37). Unlike the other extensions it
17删除: runs the `opencode` command, so `opencode` is installed with it, and its
18删除: config allows every tool, as `agent-vm opencode` does with `--auto`.
19删除:
20删除:### Fixed
21删除:
22删除:- Linux: VMs turned Broken seconds to minutes after a start. The end of the
23删除: agent-vm command that started a VM (closing its terminal, a kill, and at
24删除: random a plain exit) killed Lima's host agent, which left QEMU running
25删除: without it, cut off, and failing every later start. The host agent now
26删除: outlives that command. On macOS, the same killed the VM.
27删除:- A VM left in that state is stopped by force, then started again, on the
28删除: next run; `agent-vm stop` stops it too. `stop` no longer says "VM stopped."
29删除: for a Broken VM it did not stop.
30删除:- A start that fails (the VM never came up) now stops the VM, which Lima's
31删除: host agent would otherwise keep running. The force-stop of a VM left without
32删除: its host agent checks that the process is QEMU first: the PID file of a QEMU
33删除: that aborted may name another program's process by now.
34删除:- The missing-QEMU hint no longer says `apt-get` where there is neither apt
35删除: nor dnf (NixOS): it points to the distribution's package, or the Nix flake.
36删除:- Linux: a VM could lose its network and stop in the middle of `agent-vm
37删除: setup` or any download (`exit status 255`, the VM Stopped), with QEMU
38删除: 10.2 and a KVM host. QEMU aborted on `net_fill_rstate: Assertion 'size ==
39删除: 0' failed`, a bug of its `socket` network backend, which handled a failed
40删除: read of the stream badly. The VMs' network now goes through QEMU's `dgram`
41删除: backend (QEMU 7.2 or later): no stream, nothing to lose. An older QEMU keeps
42删除: the former backend, and so does Windows (it has no unix datagram sockets).
43删除:
44删除:## 0.3.0
45删除:
46删除:agent-vm 0.3 is one Go binary with Lima built in. The
47删除:bash version (`agent-vm.sh`, `lib/`) is gone from the repository: 0.2.x
48删除:stays on its tags. Changes against 0.2.1:
49删除:
50删除:### Added
51删除:
52删除:- Network isolation: a VM reaches the internet, not your machine (its
53删除: loopback, where the other VMs' ports are forwarded, and its own
54删除: addresses) nor your local networks. `~/.agent-vm/network` opens holes,
55删除: one per line: `allow 192.168.1.10:5432`, `allow 10.0.0.0/8`, `allow
56删除: localhost:11434` (a service on your machine's loopback, which the VM
57删除: reaches at 192.168.5.2). `domain github.com` lines make those domains
58删除: and their subdomains the only names of the internet the VMs reach:
59删除: other names do not resolve, and an address is reachable once agent-vm's
60删除: DNS gave it for one of them. A line agent-vm cannot read stops a start,
61删除: and `setup`, with the line named; `doctor` checks the file.
62删除: `AGENT_VM_UNSAFE_OPEN_NETWORK=1` turns isolation off. QEMU VMs get their own network stack, as vz ones have, so
63删除: this holds for both.
64删除:- A desktop notification when a port the VM listens on is forwarded to your
65删除: machine, and when it is not because a program of yours uses it.
66删除: `AGENT_VM_NOTIFY=0` turns them off.
67删除:- Ports 32768-60999 are no longer forwarded: the guest gives them to
68删除: programs asking for any free port (Chromium's DevTools port, language
69删除: servers...), which nobody opens from the host.
70删除:- Files your machine runs without asking are guarded: when the VM writes,
71删除: creates, renames or removes `.envrc`, `.vscode/tasks.json`,
72删除: `.vscode/settings.json`, `.vscode/launch.json`, `.pre-commit-config.yaml`,
73删除: `lefthook.yml` or `mise.toml`, a dialog asks you first (allowed until the
74删除: VM stops; a no holds a minute). Without a dialog to show, the write is
75删除: refused and a notification says so. `~/.agent-vm/guarded` adds paths, one
76删除: per line, `!path` removes one of the defaults, and `*.ext` guards an
77删除: extension. `AGENT_VM_GUARDED_WRITES=deny` refuses them all without asking.
78删除:- On a Windows host, `*.library-ms`, `*.searchConnector-ms`, `*.lnk`, `*.url`,
79删除: `*.scf` and `desktop.ini` are guarded too (names Windows makes into them,
80删除: like `a.lnk.` or `a.lnk:stream`, included): Explorer sends your NTLM hash to
81删除: the server they name when it shows them (CVE-2025-24054, CVE-2025-50154,
82删除: CVE-2025-59214). There is no dialog on Windows yet: the writes are refused.
83删除:- Windows, natively (experimental): host
84删除: paths are kept as C:/Users/me/proj, drive-aware, and the VM sees them as
85删除: 0.2 did, /c/Users/me/proj, under the same VM names. The volumes file takes
86删除: C:/x and C:\x, and 0.2's /c/x, in its sources and project filters. QEMU's
87删除: folder goes on PATH at every start, a failed start says when the Windows
88删除: Hypervisor Platform feature is off, and `install` gives the PATH line in
89删除: PowerShell's syntax. QEMU 7.2 or later is needed, for the VM's own
90删除: network stack.
91删除:- Releases have Windows binaries too (amd64, arm64), signed when
92删除: `release.sh` is given a code-signing certificate.
93删除:
94删除:### Changed
95删除:
96删除:- A port the VM listens on is no longer forwarded when a program of your
97删除: machine uses it: on macOS, the forward took that program's local
98删除: connections (a Lima patch).
99删除:- A VM name too long for Lima's socket paths under your home is cut in its
100删除: folder part, the hash of the whole path kept: such a folder could not get
101删除: a VM.
102删除:- The binary leaves out the formats of yq that Lima does not use: about 10%
103删除: smaller.
104删除:
105删除:- Lima is built in, with the patches that keep `.git` read-only and fix the
106删除: SFTP server (patches/README.md): no limactl to install, no Lima build to
107删除: download, and `setup` no longer offers one. A start never asks about a
108删除: Lima that cannot protect `.git`: `info`'s `security_questions` no longer
109删除: has `lima` or `lima-unknown`, `doctor`'s Lima section says which Lima is
110删除: built in, and `help` says so.
111删除:- The VMs live in `~/.agent-vm/lima` (`AGENT_VM_LIMA_HOME` overrides), apart
112删除: from your own Lima's. The first command that needs them offers to move
113删除: 0.2's from `~/.lima` (or `$LIMA_HOME`), once, stopping running ones first:
114删除: they keep their shares and settings. Lima's `_config` there is not taken.
115删除: `AGENT_VM_LIMA_HOME` may not be your own Lima's home.
116删除:- VM names lose their `agent-vm-` prefix, needed only while they shared
117删除: `~/.lima` with your own VMs: `proj-1a2b3c4d`, and `base` for the base
118删除: template. 0.2's VMs are renamed as they are moved. This gives back to
119删除: folder names the room `~/.agent-vm/lima` takes in Lima's socket paths
120删除: (104 characters on macOS). `stop` and `rm` take any name `list` shows.
121删除:- With `--unsafe-writable-git`, the shares stay reverse-sshfs, served by the
122删除: built-in SFTP server confined to them, without the read-only names; 0.2
123删除: went back to Lima's default mount type.
124删除:- A VM from a base built by 0.1.0 is no longer migrated in place: a start
125删除: refuses it and says to run `setup`, then `--reset`.
126删除:- `install` links the agent-vm binary (a copy where no link can be made,
127删除: replaced by the next `install`); `uninstall` removes it. Both replace or
128删除: remove 0.2's link to `agent-vm.sh`.
129删除:- A release is a tarball per platform (macOS and Linux, arm64 and
130删除: x86_64): the binary and `agent-vm.sh`, which runs it. The curl installer
131删除: takes the one of the machine; its `--version` and `--git` work as in
132删除: 0.2. In a clone, `agent-vm.sh` builds agent-vm first (Go, and on macOS
133删除: the Xcode command line tools), and again after a `git pull`. The Linux
134删除: binaries are built without cgo: the VMs' DNS lookups go through Go's
135删除: resolver there.
136删除:- What 0.2 left keeps working: its link to `agent-vm.sh` on the PATH runs
137删除: the new binary (built first in a clone), and a shell rc that sources
138删除: `agent-vm.sh` gets an `agent-vm` function running it. Running the curl
139删除: installer again, or `install`, replaces the link with one to the binary.
140删除:- `agent-vm.sh` sourced from a shell rc no longer loads agent-vm into the
141删除: shell: it defines a function running it. `install` says the line can go.
142删除:- `version --min`'s "Update it" line is always the curl installer's, until
143删除: 0.3's install methods are settled.
144删除:- agent-vm makes and starts no VM while Lima's `default.yaml` or
145删除: `override.yaml` is in `~/.agent-vm/lima/_config`: they add to every VM's
146删除: config (shares, mount type), which agent-vm sets alone. `doctor` names
147删除: them. Its `base.yaml` is not mixed into the base VM either.
148删除:- Messages that named `limactl list` name `agent-vm list`.
149删除:- `--tty` also gives the command a terminal when only stdin is one.
150删除:- `help` says how deep the git check looks: the repository holding each
151删除: share, and those up to two folders below it, 50 per share.
152删除:- A VM config Lima refuses is reported with Lima's reason, and `--reset`.
153删除:- `env get` and `project-env get` read non-ASCII values as written (`café`
154删除: came back mangled), and as the VM sources the file: CRs ending lines are
155删除: dropped, inside quoted values too; a value with a CR left in it is
156删除: refused.
157删除:- A volume's project filter with non-ASCII characters matches as written.
158删除:- A project or volume path with `&`, `<` or `>` is shared as is (they came
159删除: out escaped, as another folder). One with `{{`, which Lima expands as a
160删除: template, or bytes that are not UTF-8 is refused: Lima would share
161删除: another folder. agent-vm checks that Lima keeps every share as written.
162删除:- `doctor` and `info` only look: they no longer move 0.2's VMs (which stops
163删除: running ones); `doctor` says when some are still to move.
164删除:- A single-file volume that is a symlink (stow's dotfiles) reaches the VM.
165删除:- When the first sshfs mount fails, Lima's retry keeps the share's options
166删除: (`cache=no`) instead of replacing them (a Lima patch).
167删除:- A running VM with more read-only names than the project now needs (a
168删除: hooks folder moved) keeps running: extra names protect more, and the next
169删除: boot drops them. 0.2 asked to restart it, and aborted without a terminal.
170删除:
171删除:### Security
172删除:
173删除:- A failed `setup` prints the end of its log without escape sequences: the
174删除: log holds what the VM printed.
175删除:- A hooks folder name declined at start no longer hides the other risks
176删除: under it: with `core.hooksPath tools/hooks` and `core.fsmonitor
177删除: tools/fsmon.sh`, a no to making every `tools` read-only now lists
178删除: fsmonitor too.
179删除:- A git config file in a folder with non-ASCII characters is found: git
180删除: quotes such paths, and 0.2 missed them.
181删除:- A git setting whose path goes through a symlink in the project, halfway
182删除: along a chain of links, is now caught: 0.2 resolved the whole path at
183删除: once and never saw that link, which the VM could retarget.
184删除:- A hooks folder in a writable volume inside the repository (a volume on
185删除: `.husky` with `core.hooksPath .husky/_`) is warned about and asked: no
186删除: read-only name covers it. 0.2 made `_` read-only and left
187删除: `.husky/pre-commit` writable.
188删除:- More git settings that name a command are checked: `mergetool`,
189删除: `difftool`, `browser` and `man` tool paths, `guitool.*.cmd`,
190删除: `trailer.*.cmd`, `submodule.*.update`, `remote.*.uploadpack` and
191删除: `receivepack`, `tar.*.command`, `instaweb.httpd`, the `sendemail`
192删除: commands and `gpg.ssh.defaultKeyCommand`.
193删除:- Your own Lima home (`~/.lima` or `$LIMA_HOME`) is refused as a project,
194删除: as in 0.2: its `_config/user` key logs into your other Lima VMs.
195删除:- A git setting's command that names a file without a `/` (`alias.b =
196删除: !bash build.sh`) is checked against the shares: it runs from the top of
197删除: the repository, which the VM can write.
198删除:- On macOS, a read-only name is matched as APFS matches names: whatever
199删除: the Unicode normalization (`é` or `e` and a combining accent) and with
200删除: full case folding (`ß` as `ss`). 0.2 compared case only, so a hooks
201删除: folder with such a name could be written under another spelling.
202删除:- What the VM printed during `setup` (its window and, on failure, its log)
203删除: is shown without any control character: bell, backspace, and the C1
204删除: controls some terminals take for escape sequences, not only ESC.
205删除:- No VM starts with a share served by anything but the built-in SFTP
206删除: server over reverse-sshfs, the one confined to its folder, whatever the
207删除: options: Lima's default SFTP server lets the VM read (or write) any file
208删除: you can. 0.2 allowed it with `.git` left writable, and refused a writable
209删除: share from Lima's `_config` under `--readonly` only after the VM had
210删除: booted and got your env.
211删除:
212删除:## 0.2.1
213删除:
214删除:### Added
215删除:
216删除:- `agent-vm code`: VS Code (code-server) served from the VM, until Ctrl-C.
217删除: Its address and password are printed in a box, for you to open in the
218删除: browser. Opt-in at setup: `--preinstall=code-server`
219删除: for the editor alone, `code-claude`, `code-codex` and `code-vibe` for it
220删除: with that agent's extension, each starting with no permission prompts.
221删除: The wizard asks about the editor after the agents, then whether the
222删除: agents that have an extension get it, the command line, or both. An
223删除: extension ships its own copy of its agent: without the command line,
224删除: `agent-vm claude` (or `codex`, `vibe`) says it is not installed. Dark
225删除: theme, GitHub Copilot disabled, no telemetry, no welcome page, tips,
226删除: recommendations or experiments. The JSON schemas the editor validates
227删除: files with (`package.json`, `tsconfig.json`...) are downloaded once by
228删除: `setup`, in parallel, each stored under the URL the editor asks for (a
229删除: schema's references followed from its `$id`, as the editor does):
230删除: opening a file sends no request.
231删除:- The editor's password is made in each VM on first use, never in the base,
232删除: of which every VM is a copy, and printed. Each VM's editor is at
233删除: `http://<vm-name>.localhost:<port>/`, the first of ten ports from 20000 to
234删除: 29999 picked from its name that is free, so the same on every start while
235删除: it is: browsers keep cookies per host name, not per port, so a page a VM
236删除: serves at `127.0.0.1` does not get the session of every editor. Safari may
237删除: not resolve `*.localhost`: then `127.0.0.1` in a private window kept for
238删除: the editor. code-server's port proxy is off: links to `localhost:<port>`
239删除: open at that port on your machine, where Lima forwards it. Claude Code's
240删除: login pages open without the editor's link prompt; other links still ask.
241删除:- Not a boundary between VMs: a VM can listen on a port Lima forwards to
242删除: your machine and send your browser to another VM's editor host name on
243删除: it, getting that editor's session. Keeping VMs apart needs network
244删除: isolation, on the roadmap; until then, stop `agent-vm code` when not
245删除: using it.
246删除:- With code-server picked in the wizard, the base gets 4 GB of memory
247删除: instead of 3, unless `--memory` says otherwise.
248删除:
249删除:### Changed
250删除:
251删除:- A command that is not in the VM (`agent-vm run foo`, or an agent not
252删除: installed) says so, with status 127, instead of `env`'s error. A path
253删除: (`./build.sh`) is still `env`'s to run, with its reason: a script without
254删除: +x is denied, status 126.
255删除:- The protected writable shares turn sshfs's cache off: with it, a file the
256删除: host changed showed as it was for up to 20 seconds, and an agent writing
257删除: back what it read undid the change. `AGENT_VM_SSHFS_CACHE=1` in the shell
258删除: turns it back on, faster on many files (a repeated `git status` sends
259删除: about 20 times fewer requests). The read-only shares keep it. Existing VMs
260删除: get it on their next start from stopped.
261删除:- A project share that is no longer mounted (sshfs died) is caught: the VM
262删除: must see a file this machine just put in the project. The VM is restarted
263删除: with its shares, with a warning that what it wrote meanwhile is on its own
264删除: disk. No probe file is left anywhere, a `--scratch` folder included.
265删除:- `agent-vm code` finds the ports something in the VM listens on with `ss`,
266删除: whatever it speaks, and never through the VM's HTTP proxy, which made
267删除: every port look taken.
268删除:- A start reads `~/.agent-vm/volumes` and scans the repositories of each
269删除: share once: about 4 times fewer processes with a writable volume holding
270删除: many repositories.
271删除:
272删除:### Security
273删除:
274删除:- The check for a Lima with `sshfs.readonlyNames` no longer depends on the
275删除: mount type: with `mountType: reverse-sshfs` in Lima's
276删除: `_config/override.yaml`, a Lima that has it was taken for one that does
277删除: not.
278删除:- A VM recorded as protected is checked against the shares Lima has for it:
279删除: a share without the read-only names, set by hand or by Lima's `_config`,
280删除: makes it unprotected, and no boot (a first start, a repair, a restart for
281删除: `--readonly`, the 0.1.0 migration) happens with one; the error says which
282删除: share, or that the mount type is wrong. A VM that shares nothing
283删除: (`--scratch`, the migration) boots with no share at all. A running VM
284删除: served by another `limactl` build than the one on `PATH` (a stock Lima
285删除: started it) is not taken as protected either, by a start, by `--readonly`
286删除: or by `doctor`: on macOS the running binary is asked of `lsof`, which a
287删除: Homebrew link does not fool, and the same build reinstalled since is not
288删除: taken for another. `--readonly` is refused when Lima's `_config` gives the
289删除: VM a writable share.
290删除:- What git on this machine runs from a share, found wherever it points:
291删除: hooks folders, hooks, commands and included config in the project, in a
292删除: writable volume, or pointing from one to another (`core.hooksPath` or
293删除: `core.fsmonitor` into a volume), and git's own global config kept in one.
294删除: A hooks folder becomes a read-only name; anything else is a risk to
295删除: accept. Every symlink on the way is followed, a link not there yet
296删除: included (the VM could create its target), and a link inside the
297删除: project on the way is protected as well. Writable volumes reached through
298删除: a symlink are searched, bare repositories in them get their folder's name
299删除: read-only, and more than 50 repositories in one share is said. A hook
300删除: linked to another inside its own read-only folder is no risk any more.
301删除: Names printed from the shares have their control characters made
302删除: visible.
303删除:- A `.git` or `.hg`, a bare repository, or a folder inside one, is refused as
304删除: the project, and as a writable volume: the read-only names apply below a
305删除: share's root only. A volume is refused when it is, contains or is inside
306删除: agent-vm's state, Lima's or agent-vm itself, or contains the home folder,
307删除: read-only or not, and when it would be mounted at or above the project, or
308删除: where another volume is, whatever the spelling or with no destination.
309删除:
310删除:## 0.2.0
311删除:
312删除:### Security
313删除:
314删除:- The host no longer reads the project's `.agent-vm.runtime.sh` by its
315删除: path. The VM can write the project and make it a symlink to any file of
316删除: yours: the host followed it on every start and handed the content to the
317删除: VM (`ln -s ~/.ssh/id_ed25519 .agent-vm.runtime.sh` got the key on the next
318删除: command). The VM now reads it itself, where a link only reaches the VM's
319删除: own files. The project's `.agent-vm.env`, new here, is read the same way,
320删除: and `project-env` refuses a file that is a link, or reached through one,
321删除: without a window the VM could race; it needs `perl` for that. Whether a
322删除: file is in the project is decided by where its path leads, not by how it
323删除: is spelled (the project's real path while it is used through a link). A
324删除: file kept outside the project with `AGENT_VM_PROJECT_ENV` or
325删除: `AGENT_VM_PROJECT_RUNTIME` is read on the host.
326删除:- The home directory, `/`, agent-vm's own directory, its state directory,
327删除: Lima's, any directory containing one of them, and any directory inside one
328删除: of the last three are refused as a project: `cd ~ && agent-vm shell`
329删除: shared `~/.ssh` and every dotfile read-write, and from inside agent-vm's
330删除: folder the VM could change the files the host runs next.
331删除: `--unsafe-disable-security-prompts` shares agent-vm's own directory
332删除: anyway, with a warning, to work on agent-vm from a clone.
333删除:- `--readonly` on a stopped VM that last ran writable makes it read-only
334删除: before it boots. It used to start it writable, then stop it and apply the
335删除: change.
336删除:- Whether `--readonly` is enforced on the host is decided from what Lima
337删除: reports for the VM, not by asking the guest, which could lie.
338删除:- A `limactl stop` that did not stop the VM is caught before its shares are
339删除: changed.
340删除:- Every `.git` in the shared folders is read-only for the VMs, at any depth,
341删除: when Lima has `sshfs.readonlyNames`. Before, a VM could write a project's
342删除: `.git/config` or hooks, and git on the host (editors and shell prompts
343删除: included) would run what they name: commands on your machine. Lima's SFTP
344删除: server enforces it on the host, so root in the VM cannot lift it. The shares
345删除: then use `reverse-sshfs` with the builtin SFTP driver, and existing VMs
346删除: switch on their next start. A VM made by agent-vm 0.1.0, or cloned from a
347删除: base it built, has no `sshfs`: it boots once without shares to install it,
348删除: with a warning, before it gets them. Without it, Lima installed Debian's at
349删除: boot, which needs apt then and breaks symlinks (see #22 below). `doctor`
350删除: reports a base built by 0.1.0. This migration will be removed in a future
351删除: release: `setup`, then `--reset`. The field is not in upstream Lima yet
352删除: (lima-vm/lima#5529): `setup` checks for it, says what is at stake without
353删除: it, and offers to install `sylvinus/tap/lima-sylvinus` with Homebrew.
354删除: `doctor` reports it too. `--unsafe-writable-git`, or
355删除: `AGENT_VM_UNSAFE_WRITABLE_GIT=1` in the shell, turns it off, for those who
356删除: let the agent commit in the project, with a warning on every run.
357删除:- Every `.hg` is read-only as well: Mercurial runs the hooks of `.hg/hgrc`
358删除: in a repository you own. When git's `core.hooksPath` puts the hooks in the
359删除: project (husky sets `.husky/_`), the first folder of that path, from the
360删除: top of its repository, joins the names too, so the agent cannot change the
361删除: hooks git runs on your commits. The repository holding the project and
362删除: those up to two levels below it are checked, with git before 2.31 too. A
363删除: name that does not start with a dot would lock every folder of that name
364删除: in the project, so the start asks first (yes by default). Hooks at the top
365删除: of a repository cannot be protected by name. `doctor` reports all of it.
366删除:- Before a VM boots with writable shares, agent-vm stops on each risk it
367删除: cannot remove and asks whether to go on; Enter, or no terminal, aborts,
368删除: and nothing has changed. The risks: a Lima that cannot keep `.git`
369删除: read-only (on Windows, where the shares are then `reverse-sshfs`, the
370删除: rest of the disk is at stake, and the box says so); hooks that cannot be
371删除: protected, or a name declined; a git config file included from the
372删除: project, there yet or not, or a setting (`core.fsmonitor`, a
373删除: filter, a `!` alias...) whose command is a file in it; and
374删除: `safe.bareRepository=explicit` missing from the global git config, which
375删除: it offers to set, or ignored by a git older than 2.38. Without that
376删除: setting, a folder holding `HEAD`, `objects/`, `refs/` and a `config` is a
377删除: repository to git under any name, which `readonlyNames` does not cover,
378删除: and git on the host runs the commands its `config` names (`core.pager` as
379删除: soon as `git log` is typed there). A question is only asked when stderr is
380删除: a terminal too, so a caller capturing it gets "no" rather than a question
381删除: nobody sees. For a VM that already runs, the warnings are printed without
382删除: a question; one that lacks a protection it should have is offered a
383删除: restart, and continuing without it is the same kind of risk. A running VM
384删除: that is stopped to boot again (new resources, a protection, a repair) is
385删除: asked once stopped, as any VM about to boot. `--readonly` asks none of
386删除: these questions, and `--unsafe-writable-git` none about `.git`.
387删除: `--unsafe-disable-security-prompts`, or
388删除: `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1` in the shell, goes on without
389删除: asking, and without offering to change the git config; the warnings are
390删除: still printed.
391删除:- A Lima whose answer to the `readonlyNames` probe cannot be read (a failing
392删除: `limactl validate`, a wording agent-vm does not know) stops the start with
393删除: an error, rather than being taken for a Lima without `readonlyNames`,
394删除: which would drop the protection of a stopped VM on its next start.
395删除:- The home directory and agent-vm's directories are refused as a project
396删除: whatever the case they are typed in, on macOS and Windows: Git Bash keeps
397删除: the spelling typed, so `cd /c/users/me` got past the check.
398删除:- `--readonly` is now set on the Lima shares, so the host refuses the writes
399删除: and root in the VM cannot lift it. It used to be a remount inside the
400删除: guest. Under `reverse-sshfs` without `readonlyNames`, where Lima only passes
401删除: the flag to the guest, agent-vm refuses `--readonly` instead of pretending.
402删除: Switching the mode of a running VM restarts it, asked first (no by
403删除: default): declined, or with no terminal, the command fails, in both
404删除: directions, so another session's `--readonly` VM is not made writable
405删除: under it.
406删除:- `--readonly` is refused on virtiofs under QEMU, where Lima's virtiofsd has no
407删除: read-only mode and the flag only reaches the guest. It was accepted there as
408删除: enforced on the host. 9p, QEMU's default, and virtiofs on `vz` are enforced.
409删除:- `--readonly` covers every share, `rw` entries of `~/.agent-vm/volumes`
410删除: included. Read-only is enforced per share, so a writable volume containing
411删除: the project was a second way to write it.
412删除:- `agent-vm env get/has` read the file instead of sourcing it, as the new
413删除: `project-env get/has` do: the project env file sits in a directory the VM
414删除: can write to. Values that need a shell to be interpreted are refused with
415删除: exit status 2, and so is every key once one line is: after an open quote,
416删除: a trailing backslash or a command, the shell reads the file differently
417删除: than it looks, and could assign any key.
418删除:- A project path containing a quote, a backslash or a control character is
419删除: refused. It was spliced into the Lima mount config and could add mounts of
420删除: its own (the home directory, read-write).
421删除:- Declining to stop a running VM for a `--disk`, `--memory`, `--cpus` or
422删除: `--ssh-port` change, or having no terminal to accept it on, no longer skips
423删除: the rest of the start: `--readonly` was then never applied and the command
424删除: ran on a writable VM. The VM now keeps its settings and everything else
425删除: applies.
426删除:
427删除:### Removed
428删除:
429删除:Both flags claimed a restriction they could not hold: inside the VM the agent
430删除:has passwordless sudo, so anything enforced there is advisory at best.
431删除:
432删除:- `--offline` set `iptables` rules in the guest; one
433删除: `sudo iptables -P OUTPUT ACCEPT` undid them. Blocking outbound traffic has to
434删除: happen on the host, and Lima exposes no setting for it: see
435删除: [the roadmap](https://www.agent-vm.org/#roadmap).
436删除:- `--git-read-only` bind-mounted `.git` read-only in the guest; one
437删除: `sudo umount` undid it. A nested read-only share over a writable parent is not
438删除: a boundary either, since unmounting the child exposes the same files through
439删除: the parent. Keep commits on the host and review the diff yourself.
440删除:- `iptables` is no longer in the base packages (Docker still pulls it in).
441删除:- `runtime.example.sh` no longer suggests copying an SSH private key into every
442删除: VM. Use a revocable `GH_TOKEN` in `~/.agent-vm/env`.
443删除:
444删除:### Changed
445删除:
446删除:- For scripts and tools that run agent-vm without a terminal: a start can
447删除: now stop on a security question (see Security above), with the reason on
448删除: stderr and a failing status. `agent-vm info` says beforehand what it would
449删除: stop on (`security_questions=`). Pass `--unsafe-disable-security-prompts`,
450删除: or set `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1`, once the user has
451删除: agreed; or use `--readonly`.
452删除:- `agent-vm.sh` loads the rest of agent-vm from `lib/`, next to it, and stops
453删除: with the name of the missing file when it is not there: a copy of
454删除: `agent-vm.sh` on its own no longer works. Clones, the curl installer and
455删除: release tarballs have it.
456删除:- Sourced by zsh (the `~/.zshrc` line of the 0.1.0 installer), `agent-vm.sh`
457删除: only defines an `agent-vm` function that runs it with bash, like the
458删除: command on `PATH`: agent-vm no longer runs inside zsh, with its semantics
459删除: and your options. Its internal `_agent_vm_*` functions are no longer
460删除: defined there. Sourcing it from bash is unchanged.
461删除:- agent-vm's options are read the same way before the command and right after
462删除: its name: `agent-vm claude --disk=50` resizes the VM instead of passing
463删除: `--disk=50` to Claude, and `agent-vm claude --disk 10G` is refused with the
464删除: reason instead of failing later with a bash error.
465删除:- `--readonly` is applied before the runtime scripts run, not after. A
466删除: `~/.agent-vm/runtime.sh` or `.agent-vm.runtime.sh` that writes into the project
467删除: fails under the flag.
468删除:- VM options are only read before the command or right after its name:
469删除: `agent-vm run docker run --rm alpine` passes `--rm` to docker. It used to be
470删除: taken as agent-vm's own `--rm`, which deleted the VM afterwards.
471删除:- `destroy-all` says it deletes the base template too, and forgets it properly.
472删除:- `agent-vm setup` asks before installing Lima with Homebrew, offering the
473删除: build that keeps `.git` read-only first, and without a terminal prints the
474删除: command instead.
475删除:- The setup wizard is skipped when no terminal can be opened. It used to test
476删除: `-r /dev/tty`, which is true in CI too.
477删除:- `--cpus` and `--memory` are clamped to half the host (`AGENT_VM_HOST_SHARE`
478删除: changes the divisor), with a notice.
479删除:- Runtime scripts run under the shell their shebang names (bash, sh; zsh
480删除: otherwise).
481删除:- `agent-vm shell` rejects arguments it does not know instead of skipping them.
482删除:- `setup` rejects `--reset` and `--readonly` instead of ignoring them, and
483删除: the other commands that start no VM (`stop`, `status`, `env`…) reject
484删除: every VM option: `agent-vm --readonly stop` read as if something had been
485删除: made read-only.
486删除:- The wizard's per-component prompts default Ruby, Rust and Go to no, like
487删除: the default set.
488删除:- The base VM is about 300 MB smaller and runs fewer daemons: apt no longer
489删除: installs Recommends. Those brought in, through Chromium, printer
490删除: configuration, Samba libraries, `avahi-daemon`, `upower` and Vulkan
491删除: drivers. The recommended packages that are used (`docker-buildx-plugin`,
492删除: `xauth`, `python3-dev`...) are installed by name, as is `pkgconf`, which
493删除: mise builds use and which was only there with Go.
494删除:- Node.js comes from the NodeSource repository configured directly, instead
495删除: of running NodeSource's setup script as root, which also installed `gnupg`.
496删除:- `fonts-dejavu-core` is installed with Chromium. With Liberation alone, pages
497删除: asking for the generic `sans-serif` or `serif` rendered in Liberation Mono.
498删除:- The base VM is created without Lima's containerd. Its unit shadowed Docker's
499删除: `containerd.service`, and `docker` could not reach its daemon. Existing VMs
500删除: keep it until `agent-vm setup` and `--reset`.
501删除:- Every agent-vm command that uses a VM makes one `limactl shell` round trip
502删除: fewer: the env push and the check that the project share is writable share
503删除: one.
504删除:- `setup` shows the creation and first start of the base VM (which downloads
505删除: the Debian image) and the package install in a 10-line window that scrolls
506删除: in place and is cleared when done. The full output goes to
507删除: `~/.agent-vm/setup.log`, whose end is printed again if a step fails. Without
508删除: a terminal, the output is printed as before.
509删除:- `setup` opens on the wizard, agents first, and runs its security check
510删除: (`.git` protection) last, before creating the VM. Its warnings are
511删除: shorter, in a box fitted to the terminal, with the question right below.
512删除:
513删除:### Added
514删除:
515删除:- `--scratch`: a new VM with nothing of yours mounted, neither the project
516删除: nor `~/.agent-vm/volumes`, deleted when the command ends, Ctrl-C included.
517删除: On a terminal the deletion is asked first, yes by default: no opens a
518删除: shell in the VM, to look at what the command left, and leaving it asks
519删除: again. It has a name of its own (`agent-vm-<folder>-scratch-<random>`), so the
520删除: folder's VM is left alone and several can run at once. The project's env
521删除: file and runtime script stay out; `~/.agent-vm/env` and
522删除: `~/.agent-vm/runtime.sh` go in. Sharing nothing, it asks none of the
523删除: security questions and works on any Lima. A run killed outright leaves its
524删除: VM recorded, and the next `--scratch` run deletes it; `doctor` lists it
525删除: meanwhile.
526删除:- `agent-vm env set KEY` and `project-env set KEY` without a value read it
527删除: from stdin, or have you type it unseen: a value on the command line lands
528删除: in the shell history and in `ps`.
529删除:- `info` prints `git_protected=` (whether a start keeps `.git` read-only)
530删除: and `security_questions=` (what a start would stop on: `lima`,
531删除: `lima-unknown`, `hooks`, `git-config`, `bare-repo`, or `none`).
532删除:- Windows, experimental, from Git Bash, with QEMU. `setup` offers to
533删除: download a Lima build for Windows that keeps `.git` read-only (checked
534删除: against checksums pinned in agent-vm, not the release's `SHA256SUMS`, and
535删除: replaced when agent-vm moves to a newer one),
536删除: finds winget's QEMU where it installs it, and explains a start that fails
537删除: on WHPX: QEMU needs the "Windows Hypervisor Platform" feature, which only
538删除: an administrator can turn on. Paths go to Lima in Windows form, with Git
539删除: Bash's argument rewriting off for `limactl`. `install` writes a small
540删除: launcher where Git Bash makes no symlinks. Runtime scripts and env files
541删除: saved with CRLF reach the VM without the CRs.
542删除:- Inside WSL, `setup` and `doctor` say when KVM is missing because of WSL1 or
543删除: of nested virtualization on the Windows side.
544删除:- An entry of `~/.agent-vm/volumes` can be limited to some projects with a
545删除: fourth field, after an explicit mode: `source:destination:mode:project`,
546删除: where `project` is a path, `~` expanded, and `*` matches anything
547删除: (`~/.cache/pip:/home/you.guest/.cache/pip:rw:~/work/*`). An entry that
548删除: does not read that way (an empty project, a project without a mode before
549删除: it, a mode after it, more fields, a control character) is skipped with a
550删除: warning rather than mounted in every project. Based on #30 by Manuel
551删除: Raynaud.
552删除:- A relative destination in `~/.agent-vm/volumes` is inside the project
553删除: (`~/.claude-vm/webapp:.claude:ro:~/work/webapp`). The mount point is created in
554删除: the project on the host when missing. One that leaves the project with `..`
555删除: or goes through a symlink in it is skipped. It used to reach Lima as is,
556删除: which refuses a relative mount point.
557删除:- `--ssh-port N` gives a VM a fixed host port for SSH, for IDEs and GUI agents
558删除: that save the port rather than an alias (#28). `0` goes back to a new port on
559删除: each start. A port another agent-vm VM has is refused. `info` gains
560删除: `ssh_host` and `ssh_config`: Lima's alias for the VM and the SSH config file
561删除: it keeps current. [The website](https://www.agent-vm.org/#ssh-from-your-machine)
562删除: has the `~/.ssh/config` lines to use them, which keep the host's SSH agent out
563删除: of the VM.
564删除:- `curl -fsSL https://www.agent-vm.org/install.sh | sh` installs the latest
565删除: release, checked against its `SHA256SUMS`, in `~/.local/share/agent-vm`, and
566删除: runs `agent-vm install`. Running it again updates. `--version X.Y.Z` picks a
567删除: release, `--git` installs a clone instead. `version --min` now names the
568删除: update command that fits the install: `git pull`, `brew upgrade` or the
569删除: installer, with `--dir` when it is not in the installer's default place.
570删除:- `agent-vm install` and `agent-vm uninstall` replace `install.sh`, which
571删除: stays for now as a wrapper (`--uninstall` included). `uninstall` works from
572删除: anywhere, not only from the clone, and `install` refuses a dangling link in
573删除: the way instead of failing on it. When the base VM is not built yet,
574删除: `install` offers to run `setup` right away. It no longer adds
575删除: `source agent-vm.sh` to a shell rc: the command on `PATH` works from every
576删除: shell, fish included, and an rc line left by an earlier install is named
577删除: as no longer needed.
578删除:- `agent-vm doctor`: read-only checks of the host, Lima, the base template and
579删除: the current directory, with what to run about each problem. It also says
580删除: whether Lima and the current directory's VM keep `.git` read-only, and
581删除: whether git ignores repositories not named `.git`.
582删除:- `sshfs` in the base packages, for the `reverse-sshfs` shares.
583删除:- `agent-vm version --min X.Y.Z`, `agent-vm project-env`,
584删除: `AGENT_VM_PROJECT_ENV`, `AGENT_VM_PROJECT_RUNTIME` and `AGENT_VM_STATE_DIR`,
585删除: and `project_env=` / `state_dir=` in `agent-vm info`.
586删除:- `test-e2e.sh`, which builds a real VM in a throwaway `LIMA_HOME` and checks
587删除: that root in the guest cannot lift `--readonly`, nor write `.git` when Lima
588删除: has `readonlyNames`.
589删除:- `agent-vm pi` runs [Pi](https://pi.dev), opt-in at setup (`pi` in
590删除: `--preinstall`, not in `default`). It pulls in `node`. Pi has no permission
591删除: prompts, so it takes no flag; setup trusts a project's `.pi/` extensions and
592删除: skills, which `pi -p` would skip otherwise. Pi has no MCP support, so the
593删除: `mcp-*` servers are not wired into it.
594删除:- Starting a VM prints when its base VM was built (`Base VM: built
595删除: 2026-09-28`): its agents and packages are that old.
596删除:- `list` adds a BASE column: the agent-vm version that built the base each
597删除: VM was cloned from, and the day (`0.2.0 2026-09-28`). A base built before
598删除: 0.2.0 shows `0.1.0`. It marks the current directory's VM with `>`, as
599删除: `status` did: `status` is now the same command.
600删除:
601删除:### Fixed
602删除:
603删除:- With zsh, two or more files in `~/.agent-vm/volumes` no longer break the
604删除: VM's shares: a variable of the loop was printed into the mounts config
605删除: (agent-vm now runs under bash, see Changed).
606删除:- `agent-vm run -i foo` (any command starting with `-`) runs it, instead of
607删除: handing the option to `env` in the VM.
608删除:- Sourced into a shell with `noclobber` (`set -C`), agent-vm rewrites its
609删除: files: `env set` failed, and the record of a VM's shares kept its old
610删除: value.
611删除:- `env set KEY a b`, and `get`, `has`, `unset` or `list` with a word too
612删除: many, are refused instead of keeping the first word.
613删除:- `list` fails, saying so, when Lima cannot be queried, instead of printing
614删除: "(no VMs)".
615删除:- `info` and `name` refuse a directory whose name holds a control
616删除: character: a newline added lines of its own to `info`'s output.
617删除:- `setup` only marks the base ready once it has stopped: Lima cannot clone a
618删除: running instance, so every new project VM failed after a stop that did not
619删除: take.
620删除:- `setup --disk`, `--memory` or `--cpus` without a value is one clear error,
621删除: also under a caller's `set -u`.
622删除:- The base setup script no longer loses its own lines to a command reading
623删除: standard input (a dpkg prompt, an npm install script): it reaches bash on
624删除: stdin, so such a command read the rest of the script, which never ran.
625删除:- Creating a VM fails loudly, with Lima's message, when `limactl clone` or
626删除: the edit that gives the VM its shares, memory, CPUs and SSH port fails, and
627删除: the half-made VM is deleted so the next run starts over (#21). Both used to
628删除: be silent: the VM then ran with the template's config, without the
629删除: `~/.agent-vm/volumes` entries or the requested resources.
630删除:- Symlinks to an absolute path or through `..` work again in `reverse-sshfs`
631删除: shares, `node_modules/.bin` included (#22). Debian's sshfs security update
632删除: (CVE-2026-47187) refuses them by default, with `EPERM`, to protect a client
633删除: from a rogue server. Here the server is your host, so the base VM runs sshfs
634删除: with `-o no_contain_symlinks`. Rebuild the base with `setup`, then `--reset`
635删除: the project VMs.
636删除:- VM names fall back to `sha256sum` when `shasum` is missing, and naming fails
637删除: rather than dropping the hash (two projects with the same directory name
638删除: would have shared one VM).
639删除:- When an agent, a shell or `run` in the VM ends, the terminal's mouse
640删除: tracking, focus reports, bracketed paste and keyboard modes are turned off.
641删除: A program that did not restore them (a crash, a dropped connection) left
642删除: the host shell typing escape sequences on every mouse move. The screen is
643删除: not cleared.
644删除:- `status` says "(no VMs)" when there are none.
645删除:- A new VM prints its resources once instead of twice.
646删除:- `destroy-all` no longer risks skipping VMs when `limactl` reads stdin.
647删除:- Prompts no longer print a `/dev/tty` error when there is no terminal.
648删除:- The VM's mise install uses `curl -f`, so an HTTP error fails setup instead of
649删除: piping an error page into `sh`.
650删除:- Version checks compare each component as a decimal number: `1.0.1000` no
651删除: longer outranks `1.1.0`, and `08` is no longer an octal error.
652删除:- `AGENT_VM_HOST_SHARE` that is not a positive integer falls back to 2 with a
653删除: warning, instead of a division error or being evaluated as a variable name.
654删除:- A shared env file without a final newline no longer merges its last line
655删除: into the project env's first one.
656删除:- Removing every env entry on the host now empties `~/.agent-vm.env` in the
657删除: VM, instead of leaving the previous values there.
658删除:- `env set` and `env unset` on a key holding a multi-line value remove all of
659删除: it. They removed the first line only, leaving an unterminated quote that
660删除: broke the file in the VM for every key after it. `unset` also removes an
661删除: `export KEY=` line, and `list` no longer shows a line inside a value as a
662删除: key.
663删除:- `--reset`, `rm` and `destroy-all` fail, naming the VM, when Lima still
664删除: lists it after the delete. `--reset` used to carry on with the old VM and
665删除: the shares it was given, and `rm` to report it destroyed.
666删除:- Behind a proxy, `sudo` in the VM keeps the proxy settings Lima copies from
667删除: the host (`env_keep` in `/etc/sudoers.d/10-agent-vm-proxy`). Debian's sudo
668删除: dropped them, so `setup` failed at its first `apt-get` (#25), and so did
669删除: `sudo apt install` in the VMs. Rebuild the base with `setup`, then
670删除: `--reset` the project VMs.
671删除:- The VM's zsh keeps its history in `~/.zsh_history`, across sessions and
672删除: restarts (#20); a command typed with a leading space is left out. New
673删除: bases only: `setup`, then `--reset`.
674删除:- `LIMA_HOME` is honoured when cleaning up an interrupted VM creation and in
675删除: the log paths printed on a failed start.
676删除:- A runtime script with an option in its shebang (`#!/bin/bash -e`,
677删除: `#!/usr/bin/env -S bash -e`) runs under bash, not zsh.
678删除:
679删除:## 0.1.0
680删除:
681删除:- `install.sh` puts `agent-vm` on the `PATH`, so other tools can call it.
682删除:- New commands for integrators: `version`, `name`, `info`, `env`.
683删除:- `mcp-chrome` and `mcp-playwright` in `--preinstall`.
删除CONTRIBUTING.md+0 −111
@@ -1,111 +0,0 @@
1删除:# 参与开发
2删除:
3删除:Cage 的桌面开发目标为 Apple Silicon macOS 14+、Windows 10 22H2/11 x64 和 Debian/Ubuntu Linux x86_64。平台构建工具、安装器和验收范围见 [Windows 指南](docs/windows.md#维护者构建与验收)与 [Linux 指南](docs/linux.md#维护者构建与验收)。用户安装预构建 App 即可使用;本页面向需要修改工作台、控制服务或虚拟机底座的贡献者。
4删除:
5删除:## 从源码构建
6删除:
7删除:需要 Go 1.26.10 或更新版本、Node.js 24、`uv` 和 Xcode Command Line Tools。Go 版本以 `go.mod` 为准,前端依赖使用仓库中的 npm 锁文件,Python 工具统一通过 `uv` 运行。
8删除:
9删除:```sh
10删除:git clone https://github.com/Lee-xeo/Claude-Cage.git
11删除:cd Claude-Cage
12删除:bash scripts/build-app.sh
13删除:```
14删除:
15删除:构建会下载并校验固定版本的 Mihomo,构建前端和嵌入式客机组件,再生成 `_output/Cage.app`。未指定签名身份的本地开发构建使用 ad-hoc 签名;不能将其视为可通过 Gatekeeper 的正式发行包。
16删除:
17删除:需要保留日常 App 时,指定独立输出且不使用 `--install`:`CAGE_BUILD_OUTPUT="$PWD/_output/validation/Cage.app" bash scripts/build-app.sh`。输出必须是绝对 `.app` 路径;此模式不清理其他副本。目标 App 或控制程序仍在运行时,构建会拒绝覆盖。开发构建也不能用于验证正式签名包的自动安装成功路径。
18删除:
19删除:安装到当前用户的 Applications 目录:
20删除:
21删除:```sh
22删除:bash scripts/build-app.sh --install
23删除:```
24删除:
25删除:安装位置为 `~/Applications/Cage.app`。不要在已启动的 App 上直接覆盖构建结果;先保存文件、停止环境并退出。正式发行的签名、公证与安装包构建见[发布 macOS 安装包](docs/releasing.md)。仓库中保留的上游 Nix 和多平台发行配置供参考,不代表 Cage 桌面版支持这些发行目标。
26删除:
27删除:仅修改界面时可运行 `npm run --prefix ui dev`,但独立前端服务器仍需要控制服务和正确会话,不能用空白页面代替真实 App 验收。整体构建入口是 `make cage`,会生成 `_output/bin/cage`。
28删除:
29删除:## 代码与设计入口
30删除:
31删除:| 目录 | 职责 |
32删除:|---|---|
33删除:| `desktop/` | Swift macOS 窗口;`desktop/windows/` 为 WinForms/WebView2 窗口;`desktop/linux/` 为 GTK/WebKitGTK 窗口 |
34删除:| `ui/` | React 工作台、代理管理、设置和网络状态 |
35删除:| `internal/workbench/` | 工作台控制接口、任务、终端和设置 |
36删除:| `internal/cage/` | 强制代理、网络门槛和客机服务 |
37删除:| `internal/managedproxy/` | 订阅、节点、代理核心和私有配置 |
38删除:| `third_party/`、`patches/` | 固定的上游源码与补丁 |
39删除:| `www/` | 项目主页 |
40删除:
41删除:修改前阅读对应的[工作台设计](docs/design/workbench.md)、[网络检查设计](docs/design/network-checks.md)或[内置代理设计](docs/design/managed-proxy.md)。调整接口、数据归属或安全边界时,同时更新设计与用户说明。
42删除:
43删除:修改后端任务、终端、浏览器或连接回收时,从[控制服务职责](docs/design/control-service.md)定位入口、资源拥有者和三平台适配;传输层与业务规则分别维护。
44删除:
45删除:## 自动检查与发布
46删除:
47删除:日常推送会运行三平台检查并生成测试包,版本号保持不变。只有用户明确要求发版时,才运行独立的发布入口;配置和失败恢复见 [CI/CD 指南](docs/ci-cd.md)。
48删除:
49删除:## 验证改动
50删除:
51删除:选择覆盖本次行为的检查。工作台的基础检查:
52删除:
53删除:```sh
54删除:npm ci --prefix ui
55删除:npm run --prefix ui lint
56删除:npm test --prefix ui
57删除:node --test internal/cage/clipboard.test.cjs internal/cage/browser-audit.test.mjs internal/cage/browser-downloads.test.mjs
58删除:uv run internal/cage/save-download.test.py
59删除:uv run internal/cage/editor-migrate.test.py
60删除:go test -race ./internal/workbench ./internal/cage ./internal/managedproxy
61删除:go test ./internal/... ./cmd/...
62删除:```
63删除:
64删除:修改底层网络时,还需执行相关模块测试:
65删除:
66删除:```sh
67删除:go test github.com/containers/gvisor-tap-vsock/pkg/services/dns \
68删除: github.com/lima-vm/lima/v2/pkg/hostagent/dns \
69删除: github.com/lima-vm/lima/v2/pkg/networks/usernet
70删除:```
71删除:
72删除:修改外观或主题管理时,执行 `node ui/scripts/appearance-smoke.mjs`、`node ui/scripts/theme-smoke.mjs` 和 `node ui/scripts/builtin-theme-smoke.mjs`,并运行 `go test -race ./internal/workbench -run 'Test(CodexAppearance|Appearance)'`。浏览器脚本需要可用的 Playwright 和前端开发服务,可通过 `CAGE_PLAYWRIGHT_MODULE`、`CAGE_UI_URL` 指定;使用隔离控制接口,不接入日常 VM。原生文件窗口还须在实际 App 中验证导入、导出与取消。
73删除:
74删除:修改浏览器启动或控制逻辑时,在 Linux 客机的独立 X 显示中运行 `DISPLAY=:183 node scripts/browser-controls-smoke.mjs`。该检查使用临时配置和真实控制器,验证人工浏览标记、标签与导航、重启后的页面及 Cookie 恢复,并检查未认证请求和跨来源请求仍被拒绝。
75删除:
76删除:修改网站图标或网页复制时,运行 `node --test internal/cage/browser-clipboard.test.mjs`、`node scripts/browser-clipboard-smoke.mjs`、`node scripts/favicon-extension-smoke.mjs` 和 `node scripts/browser-metadata-smoke.mjs`。后两项通过 `CAGE_TEST_BROWSER_PATH` 指定支持扩展的 Chromium,复制脚本使用隔离 headless 剪贴板。生产控制器测试只适配路径、监听端口和 headless 模式,完整 Linux 客机会话仍需上述独立显示测试。前端开发服务启动后,运行 `node ui/scripts/browser-metadata-smoke.mjs` 验证图标、复制事件、RFB 消息和焦点隔离;该脚本用记录替身接收原生剪贴板写入。Playwright 模块与前端地址可分别通过 `CAGE_PLAYWRIGHT_MODULE`、`CAGE_UI_URL` 指定。
77删除:
78删除:修改更新或恢复界面时,运行 `node ui/scripts/recovery-ui-smoke.mjs`;修改画面可见性时,运行 `node ui/scripts/remote-visibility-smoke.mjs`。两者需要可用的 Playwright 和已启动的前端开发服务,可通过 `CAGE_UI_URL` 指定地址;测试使用隔离接口,后者还使用真实 RFB 握手与帧验证停止和恢复,不连接日常 VM。修改原生更新流程时运行 `bash scripts/test-app-updates.sh`,正式签名、公证及真实安装仍须单独验收。组件清单、固定工具安装器和网络续租回归已包含在上述 Go 包测试中,无需重复执行一套独立命令。
79删除:
80删除:修改浏览器前进、后退时,运行 `node ui/scripts/browser-navigation-smoke.mjs`,并用 `CAGE_TEST_BROWSER=webkit` 验证 WebKit。界面测试覆盖推送更新、不依赖标签轮询、切换标签和状态轮询后的按钮状态;上述客机 `scripts/browser-controls-smoke.mjs` 还验证真实 Chromium 的完整页面及 `pushState` 导航,并只从事件流确认按钮状态更新。
81删除:
82删除:修改上游源码时,保持 `patches/` 与 `third_party/` 一致,并按 `patches/README.md` 核对同步方式。UI 改动需要在实际 App 中验证状态、失败恢复和关键交互;编译通过不能证明登录、联网或用户操作已成功。
83删除:
84删除:建议使用独立测试配置和非敏感测试项目,避免将开发验证写入日常环境。启动前的 Git 保护检查属于主机状态:单独指定 Cage 配置目录不会隔离全局 Git 设置,测试修改路径时应使用隔离的测试用户目录。应用必须先解释影响,用户明确确认后才将 `safe.bareRepository` 设置为 `explicit`,并在复检通过后启动环境;读取状态不得修改 Git 配置。真实网络验证应区分代理连通、环境放行、浏览器访问、Claude 授权与模型请求,不能互相替代。
85删除:
86删除:修改日志、原生错误捕获或诊断导出时,执行 `go test -race ./internal/diagnostics ./internal/workbench ./internal/managedproxy ./internal/limaembed ./internal/cli`。构建工作台与 `cage` 后,用 `node ui/scripts/diagnostics-smoke.mjs /absolute/path/to/cage` 验证真实后台、界面下载、脱敏 ZIP 和离线导出;Playwright 路径可通过 `CAGE_PLAYWRIGHT_MODULE` 指定。三个平台的原生保存、取消和覆盖行为需要分别实测,客机日志 namespace 需要 Linux/systemd 验证。
87删除:
88删除:## 开发诊断
89删除:
90删除:配置与状态默认在 `~/.claude-cage/`。`CLAUDE_CAGE_CONFIG` 可以指向另一份私有配置,其父目录拥有独立状态。配置文件权限为 `0600`;不要把该目录作为共享项目或提交到 Git。
91删除:
92删除:`environment.json` 固定记录环境的 VM 目录,`projects.json` 保存明确打开的共享目录,`workbench.json` 保存当前项目与偏好。选择项目不会改变 VM 身份。浏览器配置在客机的 `/home/cage-browser/profile`,受管工具的最低版本与包摘要见 `internal/cage/tool-versions.env`。替换 App、同步组件和升级工具是不同操作,契约见[工作台设计](docs/design/workbench.md#持久环境的组件与工具版本)。
93删除:
94删除:```sh
95删除:bash scripts/fetch-proxy-core.sh
96删除:make cage
97删除:./_output/bin/cage check # 检查配置的代理出口
98删除:./_output/bin/cage shell # 打开共享 Cage 环境中的 shell
99删除:./_output/bin/cage stop # 停止该环境
100删除:./_output/bin/cage desktop # 在本机浏览器打开一次性入口
101删除:```
102删除:
103删除:`cage access`、独立 VNC 和编辑器端口仅供诊断,输出可能包含访问凭据,不要直接上传。普通用户通过 App 或 `cage desktop` 自动建立会话,无需输入内部访问密码。
104删除:
105删除:代理节点统一通过 Cage 内的订阅、本地 YAML 或手动节点入口配置。运行时只使用 App 随附核心。来源、运行配置和日志位于私有配置的 `proxy/` 子目录;macOS 通过独立用户 launchd 任务运行,Linux 通过普通用户后台进程运行。来源与凭据文件权限为 `0600`。`config.json` 中的代理端点和版本由节点管理器生成,通用设置及恢复操作不能覆盖。
106删除:
107删除:## 提交改进
108删除:
109删除:提交说明应包含用户遇到的具体问题、改动后的行为、验证方式及尚未覆盖的情形。保留与本次任务无关的在途改动,不将本机路径、账号、代理订阅、密钥、构建产物或私人截图提交到仓库。
110删除:
111删除:新增依赖需保留许可和来源。Cage 主许可为 MIT,随附组件有各自许可;更新 Mihomo 等独立程序时同时更新固定版本、校验值、来源与发行包中的许可资料。
修改Makefile+2 −6看文件
@@ -7,7 +7,6 @@
77# make test the Go tests
88# make check-windows the Windows build and tests compile and vet, from any OS
99# make test-third-party the tests of the modules in third_party/, patched
10删除:# make check-third-party third_party/ is upstream plus patches/, nothing else
1110
1211GO ?= go
1312GOOS ?= $(shell $(GO) env GOOS)
@@ -15,7 +14,7 @@ GOARCH ?= $(shell $(GO) env GOARCH)
1514# Cage's VERSION file owns the default. Upstream release tooling can still
1615# supply VERSION explicitly when building a historical agent-vm tag.
1716VERSION ?= $(shell tr -d '\r\n' < VERSION)
18删除:LIMA_VERSION := $(shell awk '$$1 == "lima" { print $$4 }' third_party/SOURCES)
17新增:LIMA_VERSION := $(shell cat internal/limaembed/lima-version)
1918
2019ifeq ($(GOARCH),amd64)
2120GUEST_ARCH := x86_64
@@ -45,7 +44,7 @@ CGO_ENABLED ?= 0
4544endif
4645GO_BUILD := CGO_ENABLED=$(CGO_ENABLED) $(GO) build -trimpath -tags $(TAGS) -ldflags "$(LDFLAGS)"
4746
48删除:.PHONY: all agent-vm install limactl assets test test-go check-windows test-third-party check-third-party fuzz clean
47新增:.PHONY: all agent-vm install limactl assets test test-go check-windows test-third-party fuzz clean
4948
5049all: agent-vm
5150
@@ -127,9 +126,6 @@ test-third-party:
127126 $(GO) test $$($(GO) list -e github.com/lima-vm/lima/v2/pkg/... | grep -v /mcp)
128127 $(GO) test github.com/containers/gvisor-tap-vsock/pkg/...
129128
130删除:check-third-party:
131删除: scripts/third-party-sync all --check
132删除:
133129# Each fuzzer for FUZZTIME (their seeds run with the tests). The vendored
134130# sshocker's through tests/fuzz/go.work, which makes it fuzzable.
135131FUZZTIME ?= 1m
修改README.am.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**አብረን ጊዜያችንን በተሻለ ሁኔታ ለመጠበቅ ሚስ Claudeን በቅርጫት ውስጥ አቆይ**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[የፕሮጀክት ድር ጣቢያ](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [መተግበሪያውን ያውርዱ](https://lee-xeo.github.io/Claude-Cage/am/#download) · [በመጀመር ላይ](docs/getting-started.md) · [የሚጠየቁ ጥያቄዎች](docs/troubleshooting.md) · [አዋጡ](CONTRIBUTING.md)
11新增:**[የፕሮጀክት ድር ጣቢያ](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [መተግበሪያውን ያውርዱ](https://lee-xeo.github.io/Claude-Cage/am/#download) · [በመጀመር ላይ](docs/getting-started.md) · [የሚጠየቁ ጥያቄዎች](docs/troubleshooting.md) · [አዋጡ](CONTRIBUTING.md) · [የአጠቃቀም መመሪያ (በቻይንኛ)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## በAnthropic ተሰላችተናል
1218
@@ -21,7 +27,9 @@ Claude Cage የሊኑክስ ተርሚናልን፣ አሳሽ እና ፋይል አ
2127
2228**በ Cage የአካባቢ ፍተሻ ውጤቶች፡-**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| የአውታረ መረብ እና የማግለል ምርመራዎች | የማህበረሰብ አሳሽ ምርመራ |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="የአውታረ መረብ እና የማግለል ምርመራዎች" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="የማህበረሰብ አሳሽ ምርመራ" width="400" /></a> |
2533
2634**የ Cage ዋና በይነገጽ**
2735
@@ -33,6 +41,9 @@ Claude Cage የሊኑክስ ተርሚናልን፣ አሳሽ እና ፋይል አ
3341- **የሚያጋሩትን ይቆጣጠሩ።** ነባሪው የስራ ቦታ እና በግልፅ የተከፈቱ የፕሮጀክት ማህደሮች ብቻ ነው የሚጋሩት። የአስተናጋጁ Claude የመግባት ሁኔታ፣ የአሳሽ መገለጫዎች እና የኤስኤስኤች ቁልፎች በራስ ሰር አይመጡም።
3442- **የአውታረ መረብ ሁኔታዎን ይመልከቱ።** አብሮገነብ የአውታረ መረብ ተኪ አስተዳደር የደንበኝነት ምዝገባዎችን እንድታስመጣ፣ የመጨረሻ ነጥቦችን እንድትመርጥ እና መውጫውን አይፒ እንድታረጋግጥ ያስችልሃል። ወሳኝ ፍተሻዎች እስኪያልፍ ድረስ አካባቢው ከመስመር ውጭ ይቆያል። የአውታረ መረቡ ተኪ የማይገኝ ከሆነ ቀጥታ ግንኙነት ወደ ኋላ መመለስ የለም።
3543- **በሚቀጥለው ጊዜ ይቀጥሉ.** መሳሪያዎች፣ ፋይሎች እና የመግባት ሁኔታ በምናባዊ ዲስክ ላይ ይቆያሉ። መስኮቱን ሲዘጉ የበስተጀርባ ተግባራት መሮጥ ይችላሉ።
44新增:- **ብዙ የClaude Code መለያዎችን ያስተዳድሩ።** ለአዲስ Claude ተርሚናሎች መለያ ይመደባል፤ የ5 ሰዓትና የ7 ቀን የአጠቃቀም ገደቦችን ማየት ይችላሉ። እየሠሩ ያሉ ተርሚናሎች መለያ በራስ-ሰር አይቀይሩም።
45新增:- **ከስልክዎ ሥራ ይቀጥሉ።** የልማት ሞባይል ክላየንት ከኮምፒውተሩ ጋር በመገናኘት የተዋቀሩ CLI ክፍለ ጊዜዎችንና የመሣሪያ ማጽደቆችን ያቀርባል፤ የርቀት አሳሽ የተለየ ፈቃድ ይፈልጋል። የሞባይል ክላየንቱን ከምንጭ ኮድ መገንባት ያስፈልጋል፤ ማንኛውንም መደበኛ ተርሚናል አይቆጣጠርም።
46新增:- **Cage በደመና ያስኪዱ።** መስፈርቶቹን በሚያሟላ Linux x86_64 VPS ላይ ከተጫነ Cage ጋር በSSH ይገናኙ፤ KVM አያስፈልግም። ውሂብና የአውታረ መረብ መውጫ በአገልጋዩ ላይ ናቸው።
3647
3748## ፈጣን ጅምር
3849
@@ -54,7 +65,7 @@ Cage macOS፣ Windows እና Linux ይደግፋል፦ Apple Silicon ከ macOS 14
5465
5566ጫኚው የስራ ቤንች እና የኔትወርክ ፕሮክሲ ኮርን ያካትታል። ዕለታዊ አጠቃቀም Go፣ Node.js፣ Docker ወይም Clash መጫን አያስፈልገውም። መጀመሪያ ማስጀመር የሊኑክስን ምስል እና የግንባታ መሳሪያዎችን ለማውረድ አሁንም የበይነመረብ ግንኙነት ይፈልጋል። Cage የኔትወርክ ተኪ አገልግሎትም ሆነ የClaude መለያ አይሰጥም።
5667
57删除:የአሁኑ ስሪት፡ `0.1.1-alpha`. የምንጭ ኮድ፣ ድር ጣቢያ እና የተለቀቁት ይፋዊ ናቸው። ለጫኚ ፊርማ፣ አፕል ኖተራይዜሽን እና የማረጋገጫ ወሰን የእያንዳንዱን ልቀት ማስታወሻ ይመልከቱ። ንጹህ ማሽን መጫን፣ macOS 14 ን በሚያሄዱ አካላዊ Macs ላይ ተኳሃኝነት፣ የእውነተኛ Claude መለያ ፈቃድ እና የሞዴል ጥያቄዎች አሁንም ሙሉ ማረጋገጫ ያስፈልጋቸዋል።
68新增:የሚገኙ ይፋዊ ስሪቶችን በ [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) ይመልከቱ። የምንጭ ኮድ፣ ድር ጣቢያ እና የተለቀቁት ይፋዊ ናቸው። ለጫኚ ፊርማ፣ አፕል ኖተራይዜሽን እና የማረጋገጫ ወሰን የእያንዳንዱን ልቀት ማስታወሻ ይመልከቱ። ንጹህ ማሽን መጫን፣ macOS 14 ን በሚያሄዱ አካላዊ Macs ላይ ተኳሃኝነት፣ የእውነተኛ Claude መለያ ፈቃድ እና የሞዴል ጥያቄዎች አሁንም ሙሉ ማረጋገጫ ያስፈልጋቸዋል።
5869
5970የ macOS እና Windows ዝማኔዎች በተመረጠው ፕሮክሲ ይወርዳሉ፤ ወደ ቀጥታ ግንኙነት አይቀየሩም። ከመጫን በፊት ሥራውን ያስቀምጡ እና ያቁሙ። macOS የተመሳሳይ አሳታሚ Developer ID ፊርማ እና የ Apple ማረጋገጫ ይፈልጋል፤ Windows የታመነ Authenticode ፊርማ እና የተመሳሳይ አሳታሚ ይፋዊ ቁልፍ ይፈልጋል። ያልተፈረመ Windows ቅድመ እይታ እና Linux በእጅ ይዘምናሉ። [ማዘመን እና ማስወገድ](docs/getting-started.md#升级与卸载)።
6071
@@ -96,7 +107,9 @@ Cage macOS፣ Windows እና Linux ይደግፋል፦ Apple Silicon ከ macOS 14
96107
97108ፕሮጀክቱ በፍጥነት እያደገ ነው. ግብረመልስ ለማጋራት የማህበረሰብ ቡድኑን ይቀላቀሉ; የማህበረሰብ ጠባቂዎች እንኳን ደህና መጡ።
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## አመጣጥ እና ፈቃድ
102115
@@ -119,3 +132,12 @@ Cage ራሱን የቻለ የማህበረሰብ ፕሮጀክት ነው እና ከ
119132- [code-server](https://github.com/coder/code-server): በአሳሽ ላይ የተመሰረተ ኮድ አርታዒ.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox) የሥራ አካባቢ እና መስተጋብር ንድፍ ማጣቀሻዎች.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) እና [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian) ለአውታረ መረብ ፍተሻዎች እና የደህንነት ምርመራዎች ማጣቀሻዎች።
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.ar.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**احتفظ بالآنسة كلود في قفص، حتى نتمكن من حماية وقتنا معًا بشكل أفضل**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[موقع المشروع](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [تنزيل التطبيق](https://lee-xeo.github.io/Claude-Cage/ar/#download) · [البدء](docs/getting-started.md) · [الأسئلة الشائعة](docs/troubleshooting.md) · [ساهم](CONTRIBUTING.md)
11新增:**[موقع المشروع](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [تنزيل التطبيق](https://lee-xeo.github.io/Claude-Cage/ar/#download) · [البدء](docs/getting-started.md) · [الأسئلة الشائعة](docs/troubleshooting.md) · [ساهم](CONTRIBUTING.md) · [دليل الاستخدام (بالصينية)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## ضقنا ذرعًا بـ Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage عبارة عن جهاز Linux افتراضي خفيف الوزن ي
2127
2228**نتائج فحص البيئة باستخدام Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| فحص الشبكة والعزل | فحص المتصفح من المجتمع |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="فحص الشبكة والعزل" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="فحص المتصفح من المجتمع" width="400" /></a> |
2533
2634**الواجهة الرئيسية للقفص:**
2735
@@ -33,6 +41,9 @@ Claude Cage عبارة عن جهاز Linux افتراضي خفيف الوزن ي
3341- **السيطرة على ما تشاركه.** تتم مشاركة مساحة العمل الافتراضية ومجلدات المشروع المفتوحة بشكل صريح فقط. لا يتم استيراد حالة تسجيل دخول Claude للمضيف وملفات تعريف المتصفح ومفاتيح SSH تلقائيًا.
3442- **انظر حالة الشبكة الخاصة بك.** تتيح لك إدارة وكيل الشبكة المضمنة استيراد الاشتراكات وتحديد نقاط النهاية والتحقق من عنوان IP الخاص بالخروج. تظل البيئة غير متصلة بالإنترنت حتى تمر عمليات التحقق المهمة. إذا كان وكيل الشبكة غير متوفر، فلا يمكن الرجوع إلى الاتصال المباشر.
3543- **استمر في المرة القادمة.** تستمر الأدوات والملفات وحالة تسجيل الدخول على القرص الظاهري. يمكن أن تستمر مهام الخلفية في العمل عند إغلاق النافذة.
44新增:- **إدارة عدة حسابات Claude Code.** يُخصَّص حساب لكل طرفية Claude جديدة، ويمكن عرض حصص الاستخدام لخمس ساعات وسبعة أيام. لا تتغير حسابات الطرفيات الجاري تشغيلها تلقائيًا.
45新增:- **متابعة العمل من الهاتف.** يتصل عميل الهاتف التطويري بالكمبيوتر لجلسات CLI المنظَّمة والموافقة على الأدوات؛ ويتطلب المتصفح البعيد إذنًا منفصلًا. يجب بناء عميل الهاتف من المصدر، ولا يتيح التحكم في أي طرفية عادية موجودة.
46新增:- **تشغيل Cage في السحابة.** اتصل عبر SSH ببيئة Cage المنشورة على VPS متوافق يعمل بنظام Linux x86_64، دون الحاجة إلى KVM. تبقى البيانات ومخرج الشبكة على الخادم.
3647
3748## بداية سريعة
3849
@@ -54,7 +65,7 @@ Claude Cage عبارة عن جهاز Linux افتراضي خفيف الوزن ي
5465
5566يشتمل برنامج التثبيت على منضدة العمل ونواة وكيل الشبكة. لا يتطلب الاستخدام اليومي تثبيت Go أو Node.js أو Docker أو Clash. لا يزال الإطلاق الأول يتطلب اتصالاً بالإنترنت لتنزيل صورة Linux وأدوات التطوير. لا يوفر Cage خدمة وكيل الشبكة ولا حساب Claude.
5667
57删除:الإصدار الحالي: `0.1.1-alpha`. كود المصدر والموقع الإلكتروني والإصدارات عامة. راجع ملاحظات كل إصدار لتوقيع المثبت وتوثيق Apple ونطاق التحقق من الصحة. لا يزال التثبيت النظيف للجهاز، والتوافق على أجهزة Mac الفعلية التي تعمل بنظام macOS 14، والترخيص الحقيقي لحساب Claude، وطلبات النماذج تتطلب التحقق الكامل من الصحة.
68新增:راجع [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) لمعرفة الإصدارات العامة المتاحة. كود المصدر والموقع الإلكتروني والإصدارات عامة. راجع ملاحظات كل إصدار لتوقيع المثبت وتوثيق Apple ونطاق التحقق من الصحة. لا يزال التثبيت النظيف للجهاز، والتوافق على أجهزة Mac الفعلية التي تعمل بنظام macOS 14، والترخيص الحقيقي لحساب Claude، وطلبات النماذج تتطلب التحقق الكامل من الصحة.
5869
5970تُنزّل تحديثات macOS وWindows عبر الوكيل المختار دون اتصال مباشر احتياطي. احفظ العمل وأوقف المهام قبل التثبيت. يتطلب macOS توقيع Developer ID من الناشر نفسه والتحقق من Apple؛ ويتطلب Windows توقيع Authenticode موثوقًا ومفتاح الناشر العام نفسه. تُحدّث نسخة Windows التجريبية غير الموقعة وحزم Linux يدويًا. [التحديث وإلغاء التثبيت](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Claude Cage عبارة عن جهاز Linux افتراضي خفيف الوزن ي
96107
97108المشروع يتطور بسرعة. انضم إلى مجموعة المجتمع لمشاركة التعليقات؛ مشرفو المجتمع مرحب بهم.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## الأصول والترخيص
102115
@@ -119,3 +132,12 @@ Cage هو مشروع مجتمعي مستقل ولا ينتمي إلى Anthropic.
119132- [code-server](https://github.com/coder/code-server): محرر التعليمات البرمجية القائم على المتصفح.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): مراجع لبيئة العمل وتصميم التفاعل.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) و [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): مراجع لفحوصات الشبكة والتشخيص الأمني.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.be.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Трымайце міс Клод у клетцы, каб мы маглі лепш абараніць наш час разам**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[Сайт праекта](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Спампаваць праграму](https://lee-xeo.github.io/Claude-Cage/be/#download) · [Пачатак працы](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Унесці свой уклад](CONTRIBUTING.md)
11新增:**[Сайт праекта](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Спампаваць праграму](https://lee-xeo.github.io/Claude-Cage/be/#download) · [Пачатак працы](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Унесці свой уклад](CONTRIBUTING.md) · [Дапаможнік (па-кітайску)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Надакучыла Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage - гэта лёгкая віртуальная машына Linux,
2127
2228**Вынікі праверкі асяроддзя з Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| Праверка сеткі і ізаляцыі | Праверка браўзера ад супольнасці |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="Праверка сеткі і ізаляцыі" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="Праверка браўзера ад супольнасці" width="400" /></a> |
2533
2634**Асноўны інтэрфейс Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage - гэта лёгкая віртуальная машына Linux,
3341- **Кантралюйце, чым вы дзеліцеся.** Абагульваюцца толькі працоўная вобласць па змаўчанні і адкрытыя папкі праекта. Стан уваходу Claude, профілі браўзера і ключы SSH не імпартуюцца аўтаматычна.
3442- **Глядзіце стан вашай сеткі.** Убудаванае кіраванне сеткавым проксі-серверам дазваляе імпартаваць падпіскі, выбіраць канчатковыя кропкі і правяраць выхадны IP. Асяроддзе застаецца ў аўтаномным рэжыме, пакуль не пройдуць крытычныя праверкі. Калі сеткавы проксі-сервер недаступны, няма магчымасці вярнуцца да прамога злучэння.
3543- **Працягнуць у наступны раз.** Інструменты, файлы і стан уваходу захоўваюцца на віртуальным дыску. Фонавыя задачы могуць працягваць працаваць, калі вы зачыніце акно.
44新增:- **Кіруйце некалькімі акаўнтамі Claude Code.** Новым тэрміналам Claude аўтаматычна прызначаецца акаўнт; можна правяраць квоты за 5 гадзін і 7 дзён. У запушчаных тэрміналах акаўнт аўтаматычна не змяняецца.
45新增:- **Працягвайце з тэлефона.** Мабільны кліент для распрацоўкі падключаецца да камп’ютара для структураваных CLI-сеансаў і пацвярджэння інструментаў; аддаленаму браўзеру патрэбны асобны дазвол. Кліент трэба сабраць з зыходнікаў; ён не перахоплівае адвольныя звычайныя тэрміналы.
46新增:- **Запускайце Cage у воблаку.** Падключайцеся праз SSH да Cage на сумяшчальным VPS з Linux x86_64 без KVM. Даныя і выхад у сетку знаходзяцца на серверы.
3647
3748## Хуткі старт
3849
@@ -54,7 +65,7 @@ Cage падтрымлівае macOS, Windows і Linux: Apple Silicon з macOS 14
5465
5566Праграма ўстаноўкі ўключае варштат і ядро ​​сеткавага проксі. Штодзённае выкарыстанне не патрабуе ўстаноўкі Go, Node.js, Docker або Clash. Для першага запуску па-ранейшаму патрабуецца падключэнне да Інтэрнэту для загрузкі вобраза Linux і інструментаў распрацоўкі. Cage не забяспечвае ні паслугу сеткавага проксі, ні ўліковы запіс Claude.
5667
57删除:Актуальная версія: `0.1.1-alpha`. Зыходны код, вэб-сайт і выпускі з'яўляюцца агульнадаступнымі. Звярніцеся да заўваг да кожнага выпуску для подпісу ўсталёўшчыка, натарыяльнага засведчання Apple і аб'ёму праверкі. Усталяванне на чыстай машыне, сумяшчальнасць на фізічных Mac пад кіраваннем macOS 14, аўтарызацыя рэальнага ўліковага запісу Claude і запыты мадэляў па-ранейшаму патрабуюць поўнай праверкі.
68新增:Актуальныя публічныя версіі глядзіце ў [Releases](https://github.com/Lee-xeo/Claude-Cage/releases). Зыходны код, вэб-сайт і выпускі з'яўляюцца агульнадаступнымі. Звярніцеся да заўваг да кожнага выпуску для подпісу ўсталёўшчыка, натарыяльнага засведчання Apple і аб'ёму праверкі. Усталяванне на чыстай машыне, сумяшчальнасць на фізічных Mac пад кіраваннем macOS 14, аўтарызацыя рэальнага ўліковага запісу Claude і запыты мадэляў па-ранейшаму патрабуюць поўнай праверкі.
5869
5970Абнаўленні macOS і Windows спампоўваюцца праз выбраны проксі без прамога злучэння. Захавайце працу і спыніце задачы перад усталяваннем. macOS патрабуе подпіс Developer ID таго ж выдаўца і праверку Apple; Windows — давераны подпіс Authenticode і той жа адкрыты ключ выдаўца. Непадпісаная папярэдняя версія Windows і пакеты Linux абнаўляюцца ўручную. [Абнаўленне і выдаленне](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Cage падтрымлівае macOS, Windows і Linux: Apple Silicon з macOS 14
96107
97108Праект імкліва развіваецца. Далучайцеся да групы супольнасці, каб падзяліцца водгукамі; вітаюцца супрацоўнікі супольнасці.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## Паходжанне і ліцэнзаванне
102115
@@ -119,3 +132,12 @@ Cage з'яўляецца незалежным грамадскім праект
119132- [code-server](https://github.com/coder/code-server): рэдактар ​​кода на аснове браўзера.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): спасылкі на дызайн працоўнага асяроддзя і ўзаемадзеяння.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) і [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): спасылкі для праверкі сеткі і дыягностыкі бяспекі.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.es.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Mantenga a la señorita Claude en una jaula para que podamos proteger mejor nuestro tiempo juntos.**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[Sitio web del proyecto](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Descargar aplicación](https://lee-xeo.github.io/Claude-Cage/es/#download) · [Empezando](docs/getting-started.md) · [Preguntas frecuentes](docs/troubleshooting.md) · [Contribuir](CONTRIBUTING.md)
11新增:**[Sitio web del proyecto](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Descargar aplicación](https://lee-xeo.github.io/Claude-Cage/es/#download) · [Empezando](docs/getting-started.md) · [Preguntas frecuentes](docs/troubleshooting.md) · [Contribuir](CONTRIBUTING.md) · [Guía de uso (chino)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Hartazgo con Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage es una máquina virtual Linux liviana que combina una terminal Linux
2127
2228**Resultados de la verificación ambiental con Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| Comprobación de red y aislamiento | Comprobación del navegador de la comunidad |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="Comprobación de red y aislamiento" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="Comprobación del navegador de la comunidad" width="400" /></a> |
2533
2634**Interfaz principal de Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage es una máquina virtual Linux liviana que combina una terminal Linux
3341- **Controla lo que compartes.** Solo se comparten el espacio de trabajo predeterminado y las carpetas de proyectos abiertas explícitamente. El estado de inicio de sesión de Claude, los perfiles del navegador y las claves SSH del host no se importan automáticamente.
3442- **Vea el estado de su red.** La administración de proxy de red incorporada le permite importar suscripciones, seleccionar puntos finales y verificar la IP de salida. El entorno permanece fuera de línea hasta que se superan las comprobaciones críticas. Si el proxy de red no está disponible, no se recurre a una conexión directa como alternativa.
3543- **Continúe la próxima vez.** Las herramientas, los archivos y el estado de inicio de sesión persisten en el disco virtual. Las tareas en segundo plano pueden seguir ejecutándose cuando cierras la ventana.
44新增:- **Gestione varias cuentas de Claude Code.** Asigne una cuenta a cada nuevo terminal de Claude y consulte las cuotas de 5 horas y 7 días. Los terminales en ejecución no cambian de cuenta automáticamente.
45新增:- **Continúe desde el móvil.** El cliente móvil de desarrollo se conecta al ordenador para usar sesiones CLI estructuradas y aprobar herramientas; el navegador remoto requiere una autorización independiente. Hay que compilar el cliente móvil desde el código fuente y no permite controlar cualquier terminal normal.
46新增:- **Ejecute Cage en la nube.** Conéctese por SSH a Cage desplegado en un VPS Linux x86_64 compatible, sin KVM. Los datos y la salida de red están en el servidor.
3647
3748## Inicio rápido
3849
@@ -54,7 +65,7 @@ Cage admite macOS, Windows y Linux: Apple Silicon con macOS 14+, Windows 10 22H2
5465
5566El instalador incluye el banco de trabajo y el núcleo del proxy de red. El uso diario no requiere instalar Go, Node.js, Docker o Clash. El primer lanzamiento aún requiere una conexión a Internet para descargar la imagen de Linux y las herramientas de desarrollo. Cage no proporciona un servicio de proxy de red ni una cuenta Claude.
5667
57删除:Versión actual: `0.1.1-alpha`. El código fuente, el sitio web y los lanzamientos son públicos. Consulte las notas de cada versión para conocer la firma del instalador, la certificación notarial de Apple y el alcance de la validación. La instalación en máquina limpia, la compatibilidad con Mac físicos que ejecutan macOS 14, la autorización de cuentas reales de Claude y las solicitudes de modelos aún requieren una validación completa.
68新增:Consulte las [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) para conocer las versiones públicas. El código fuente, el sitio web y los lanzamientos son públicos. Consulte las notas de cada versión para conocer la firma del instalador, la certificación notarial de Apple y el alcance de la validación. La instalación en máquina limpia, la compatibilidad con Mac físicos que ejecutan macOS 14, la autorización de cuentas reales de Claude y las solicitudes de modelos aún requieren una validación completa.
5869
5970Las actualizaciones de macOS y Windows usan el proxy seleccionado, sin recurrir a una conexión directa. Guarda y detén las tareas antes de instalar. macOS requiere Developer ID del mismo editor y verificación de Apple; Windows requiere una firma Authenticode de confianza y la misma clave pública del editor. La versión preliminar de Windows sin firma y los paquetes Linux se actualizan manualmente. [Actualizar y desinstalar](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Para consultar el índice completo, consulte [Índice de documentación](docs/RE
96107
97108El proyecto está evolucionando rápidamente. Únase al grupo comunitario para compartir comentarios; Los mantenedores de la comunidad son bienvenidos.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## Orígenes y licencias
102115
@@ -119,3 +132,12 @@ Gracias a los siguientes proyectos por capacidades fundamentales y referencias d
119132- [code-server](https://github.com/coder/code-server): el editor de código basado en navegador.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): referencias para el ambiente de trabajo y el diseño de interacción.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) y [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): referencias para comprobaciones de red y diagnósticos de seguridad.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.fa.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**خانم Claude را در Cage نگه دارید تا بتوانیم از زمان با هم بودنمان بهتر محافظت کنیم**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[وب سایت پروژه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [دانلود برنامه](https://lee-xeo.github.io/Claude-Cage/fa/#download) · [شروع کردن](docs/getting-started.md) · [سوالات متداول](docs/troubleshooting.md) · [مشارکت کنید](CONTRIBUTING.md)
11新增:**[وب سایت پروژه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [دانلود برنامه](https://lee-xeo.github.io/Claude-Cage/fa/#download) · [شروع کردن](docs/getting-started.md) · [سوالات متداول](docs/troubleshooting.md) · [مشارکت کنید](CONTRIBUTING.md) · [راهنمای استفاده (چینی)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## از Anthropic خسته شده‌ایم
1218
@@ -21,7 +27,9 @@ Claude Cage یک ماشین مجازی لینوکس سبک وزن است که ت
2127
2228**نتایج بررسی محیط با Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| بررسی شبکه و جداسازی | بررسی مرورگر توسط جامعهٔ کاربران |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="بررسی شبکه و جداسازی" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="بررسی مرورگر توسط جامعهٔ کاربران" width="400" /></a> |
2533
2634**رابط اصلی Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage یک ماشین مجازی لینوکس سبک وزن است که ت
3341- **آنچه را که به اشتراک می گذارید کنترل کنید.** فقط فضای کاری پیش‌فرض و پوشه‌های پروژه به‌صراحت باز شده به اشتراک گذاشته می‌شوند. وضعیت ورود به سیستم Claude میزبان، نمایه‌های مرورگر و کلیدهای SSH به‌طور خودکار وارد نمی‌شوند.
3442- **وضعیت شبکه خود را ببینید.** مدیریت پروکسی شبکه داخلی به شما امکان می‌دهد اشتراک‌ها را وارد کنید، نقاط پایانی را انتخاب کنید و IP خروجی را بررسی کنید. محیط آفلاین می‌ماند تا زمانی که بررسی‌های حیاتی با موفقیت انجام شوند. اگر پراکسی شبکه در دسترس نباشد، هیچ بازگشتی به اتصال مستقیم وجود ندارد.
3543- **دفعه بعد ادامه بده** ابزارها، فایل‌ها و وضعیت ورود به سیستم روی دیسک مجازی باقی می‌مانند. وقتی پنجره را می‌بندید، کارهای پس‌زمینه می‌توانند همچنان اجرا شوند.
44新增:- **چند حساب Claude Code را مدیریت کنید.** به ترمینال‌های جدید Claude حساب اختصاص دهید و سهمیه‌های ۵ ساعته و ۷ روزه را ببینید. حساب ترمینال‌های در حال اجرا خودکار عوض نمی‌شود.
45新增:- **کار را از تلفن ادامه دهید.** کلاینت توسعهٔ موبایل به رایانه وصل می‌شود تا نشست‌های ساختاریافتهٔ CLI و تأیید ابزارها را مدیریت کنید؛ مرورگر راه دور مجوز جداگانه می‌خواهد. باید نسخهٔ توسعهٔ موبایل را از کد منبع بسازید؛ این قابلیت هر ترمینال معمولی موجود را در اختیار نمی‌گیرد.
46新增:- **Cage را در فضای ابری اجرا کنید.** از طریق SSH به Cage مستقر روی VPS سازگار با Linux x86_64 وصل شوید؛ KVM لازم نیست. داده‌ها و خروجی شبکه روی سرور قرار دارند.
3647
3748## شروع سریع
3849
@@ -54,7 +65,7 @@ Cage از macOS، Windows و Linux پشتیبانی می‌کند: Apple Silicon
5465
5566نصب کننده شامل میز کار و هسته پروکسی شبکه است. استفاده روزانه نیازی به نصب Go، Node.js، Docker یا Clash ندارد. اولین راه‌اندازی همچنان به اتصال اینترنت برای دانلود تصویر لینوکس و ابزارهای توسعه نیاز دارد. Cage نه سرویس پروکسی شبکه و نه حساب Claude ارائه می دهد.
5667
57删除:نسخه فعلی: `0.1.1-alpha`. کد منبع، وب‌سایت و نسخه‌ها عمومی هستند. به یادداشت‌های هر نسخه برای امضای نصب‌کننده، تأیید اسناد رسمی اپل و دامنه اعتبارسنجی مراجعه کنید. نصب ماشین تمیز، سازگاری در مک های فیزیکی دارای سیستم عامل macOS 14، مجوز واقعی حساب Claude، و درخواست های مدل هنوز به تأیید کامل نیاز دارند.
68新增:برای نسخه‌های عمومی موجود، [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) را ببینید. کد منبع، وب‌سایت و نسخه‌ها عمومی هستند. به یادداشت‌های هر نسخه برای امضای نصب‌کننده، تأیید اسناد رسمی اپل و دامنه اعتبارسنجی مراجعه کنید. نصب ماشین تمیز، سازگاری در مک های فیزیکی دارای سیستم عامل macOS 14، مجوز واقعی حساب Claude، و درخواست های مدل هنوز به تأیید کامل نیاز دارند.
5869
5970به‌روزرسانی macOS و Windows از پراکسی انتخاب‌شده دریافت می‌شود و به اتصال مستقیم برنمی‌گردد. پیش از نصب، کار را ذخیره و متوقف کنید. macOS به امضای Developer ID همان ناشر و تأیید Apple نیاز دارد؛ Windows به امضای معتبر Authenticode و همان کلید عمومی ناشر نیاز دارد. پیش‌نمایش بدون امضای Windows و بسته‌های Linux دستی به‌روز می‌شوند. [به‌روزرسانی و حذف](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Cage از macOS، Windows و Linux پشتیبانی می‌کند: Apple Silicon
96107
97108این پروژه به سرعت در حال پیشرفت است. برای به اشتراک گذاشتن بازخورد به گروه جامعه بپیوندید. از نگهبانان جامعه استقبال می شود.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## مبدا و مجوز
102115
@@ -119,3 +132,12 @@ Cage یک پروژه اجتماعی مستقل است و به آنتروپیک
119132- [code-server](https://github.com/coder/code-server): ویرایشگر کد مبتنی بر مرورگر.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): مراجع برای طراحی محیط کار و تعامل.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) و [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): مراجع برای بررسی شبکه و تشخیص امنیتی.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.fr.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Gardez Miss Claude dans une cage pour que nous puissions mieux protéger notre temps ensemble**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[Site Web du projet](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Télécharger l’application](https://lee-xeo.github.io/Claude-Cage/fr/#download) · [Commencer](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Contribuer](CONTRIBUTING.md)
11新增:**[Site Web du projet](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Télécharger l’application](https://lee-xeo.github.io/Claude-Cage/fr/#download) · [Commencer](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Contribuer](CONTRIBUTING.md) · [Guide d’utilisation (chinois)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Assez d’Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage est une machine virtuelle Linux légère qui combine un terminal Lin
2127
2228**Résultats de la vérification de l'environnement avec Cage :**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| Contrôles du réseau et de l’isolation | Contrôle communautaire du navigateur |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="Contrôles du réseau et de l’isolation" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="Contrôle communautaire du navigateur" width="400" /></a> |
2533
2634**L'interface principale de Cage :**
2735
@@ -33,6 +41,9 @@ Claude Cage est une machine virtuelle Linux légère qui combine un terminal Lin
3341- **Contrôlez ce que vous partagez.** Seuls l'espace de travail par défaut et les dossiers de projet explicitement ouverts sont partagés. L'état de connexion Claude de l'hôte, les profils de navigateur et les clés SSH ne sont pas importés automatiquement.
3442- **Consultez l'état de votre réseau.** La gestion intégrée du proxy réseau vous permet d'importer des abonnements, de sélectionner des points de terminaison et de vérifier l'adresse IP de sortie. L'environnement reste hors ligne jusqu'à ce que les vérifications critiques soient réussies. Si le proxy réseau n'est pas disponible, il n'est pas possible de recourir à une connexion directe.
3543- **Continuez la prochaine fois.** Les outils, les fichiers et l'état de connexion persistent sur le disque virtuel. Les tâches en arrière-plan peuvent continuer à s'exécuter lorsque vous fermez la fenêtre.
44新增:- **Gérez plusieurs comptes Claude Code.** Attribuez un compte à chaque nouveau terminal Claude et consultez les quotas sur 5 heures et 7 jours. Les terminaux en cours ne changent pas automatiquement de compte.
45新增:- **Continuez depuis votre téléphone.** Le client mobile de développement se connecte à l’ordinateur pour les sessions CLI structurées et les approbations d’outils ; le navigateur distant exige une autorisation distincte. Le client mobile doit être compilé depuis les sources et ne prend pas le contrôle de n’importe quel terminal ordinaire.
46新增:- **Exécutez Cage dans le cloud.** Connectez-vous par SSH à Cage déployé sur un VPS Linux x86_64 compatible, sans KVM. Les données et la sortie réseau restent sur le serveur.
3647
3748## Démarrage rapide
3849
@@ -54,7 +65,7 @@ Cage prend en charge macOS, Windows et Linux : Apple Silicon avec macOS 14+, Win
5465
5566Le programme d'installation comprend le workbench et le noyau du proxy réseau. Une utilisation quotidienne ne nécessite pas l'installation de Go, Node.js, Docker ou Clash. Le premier lancement nécessite toujours une connexion Internet pour télécharger l’image Linux et les outils de développement. Cage ne fournit ni service proxy réseau ni compte Claude.
5667
57删除:Version actuelle : `0.1.1-alpha`. Le code source, le site Web et les versions sont publics. Reportez-vous aux notes de chaque version pour la signature du programme d'installation, la notarisation Apple et la portée de la validation. L'installation sur une machine propre, la compatibilité sur les Mac physiques exécutant macOS 14, l'autorisation réelle du compte Claude et les demandes de modèle nécessitent toujours une validation complète.
68新增:Consultez les [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) pour les versions publiques. Le code source, le site Web et les versions sont publics. Reportez-vous aux notes de chaque version pour la signature du programme d'installation, la notarisation Apple et la portée de la validation. L'installation sur une machine propre, la compatibilité sur les Mac physiques exécutant macOS 14, l'autorisation réelle du compte Claude et les demandes de modèle nécessitent toujours une validation complète.
5869
5970Les mises à jour macOS et Windows passent par le proxy choisi, sans connexion directe de secours. Enregistrez et arrêtez les tâches avant l’installation. macOS exige une signature Developer ID du même éditeur et la vérification Apple ; Windows exige une signature Authenticode de confiance et la même clé publique de l’éditeur. La version préliminaire Windows non signée et Linux se mettent à jour manuellement. [Mise à jour et désinstallation](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Pour l'index complet, voir [Index des documents](docs/README.md).
96107
97108Le projet évolue rapidement. Rejoignez le groupe communautaire pour partager vos commentaires ; les responsables de la communauté sont les bienvenus.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## Origines et licences
102115
@@ -119,3 +132,12 @@ Merci aux projets suivants pour leurs capacités fondamentales et leurs référe
119132- [code-server](https://github.com/coder/code-server): l'éditeur de code basé sur un navigateur.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): références pour l'environnement de travail et le design d'interaction.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) et [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): références pour les vérifications du réseau et les diagnostics de sécurité.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.ko.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**클로드 양을 우리에 가둬서 우리가 함께하는 시간을 더 잘 보호할 수 있도록**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[프로젝트 웹사이트](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [앱 다운로드](https://lee-xeo.github.io/Claude-Cage/ko/#download) · [시작하기](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [기여](CONTRIBUTING.md)
11新增:**[프로젝트 웹사이트](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [앱 다운로드](https://lee-xeo.github.io/Claude-Cage/ko/#download) · [시작하기](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [기여](CONTRIBUTING.md) · [사용 문서 (중국어)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Anthropic에 지쳤습니다
1218
@@ -21,7 +27,9 @@ Claude Cage는 Linux 터미널, 브라우저 및 파일 편집기를 단일 데
2127
2228**Cage를 사용한 환경 점검 결과:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| 네트워크 및 격리 검사 | 커뮤니티 브라우저 검사 |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="네트워크 및 격리 검사" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="커뮤니티 브라우저 검사" width="400" /></a> |
2533
2634**Cage의 기본 인터페이스:**
2735
@@ -33,6 +41,9 @@ Claude Cage는 Linux 터미널, 브라우저 및 파일 편집기를 단일 데
3341- **공유하는 내용을 제어하세요.** 기본 작업공간과 명시적으로 열린 프로젝트 폴더만 공유됩니다. 호스트의 Claude 로그인 상태, 브라우저 프로필 및 SSH 키는 자동으로 가져오지 않습니다.
3442- **네트워크 상태를 확인하세요.** 내장된 네트워크 프록시 관리를 통해 구독을 가져오고, 엔드포인트를 선택하고, 종료 IP를 확인할 수 있습니다. 중요한 검사가 통과될 때까지 환경은 오프라인 상태로 유지됩니다. 네트워크 프록시를 사용할 수 없는 경우 직접 연결로 대체할 수 없습니다.
3543- **다음에 계속하세요.** 도구, 파일 및 로그인 상태는 가상 디스크에 유지됩니다. 창을 닫아도 백그라운드 작업이 계속 실행될 수 있습니다.
44新增:- **Claude Code 계정을 여러 개 관리하세요.** 새 Claude 터미널에 계정을 배정하고 5시간·7일 사용 한도를 확인할 수 있습니다. 실행 중인 터미널의 계정은 자동으로 바뀌지 않습니다.
45新增:- **휴대폰에서 작업을 이어가세요.** 개발용 모바일 클라이언트로 컴퓨터에 연결해 구조화된 CLI 세션과 도구 승인을 처리합니다. 원격 브라우저는 별도 허용이 필요합니다. 모바일 클라이언트는 소스에서 개발 버전을 빌드해야 하며, 임의의 일반 터미널을 제어하는 기능은 아닙니다.
46新增:- **클라우드에서 Cage를 실행하세요.** 요구 조건을 충족하는 Linux x86_64 VPS에 Cage를 배포하고 SSH로 연결합니다. KVM은 필요 없으며 데이터와 네트워크 출구는 서버에 있습니다.
3647
3748## 빠른 시작
3849
@@ -54,7 +65,7 @@ Cage는 macOS, Windows, Linux를 지원합니다. 대상은 macOS 14+의 Apple S
5465
5566설치 프로그램에는 워크벤치와 네트워크 프록시 코어가 포함되어 있습니다. 일상적인 사용에는 Go, Node.js, Docker 또는 Clash를 설치할 필요가 없습니다. 처음 실행 시에는 Linux 이미지와 개발 도구를 다운로드하기 위해 인터넷 연결이 필요합니다. Cage는 네트워크 프록시 서비스나 Claude 계정을 제공하지 않습니다.
5667
57删除:현재 버전: `0.1.1-alpha`. 소스 코드, 웹사이트, 릴리스는 공개되어 있습니다. 설치 프로그램 서명, Apple 공증 및 검증 범위에 대해서는 각 릴리스의 노트를 참조하세요. 클린 머신 설치, macOS 14를 실행하는 실제 Mac에서의 호환성, 실제 Claude 계정 인증 및 모델 요청에는 여전히 완전한 검증이 필요합니다.
68新增:공개 버전은 [Releases](https://github.com/Lee-xeo/Claude-Cage/releases)를 확인하세요. 소스 코드, 웹사이트, 릴리스는 공개되어 있습니다. 설치 프로그램 서명, Apple 공증 및 검증 범위에 대해서는 각 릴리스의 노트를 참조하세요. 클린 머신 설치, macOS 14를 실행하는 실제 Mac에서의 호환성, 실제 Claude 계정 인증 및 모델 요청에는 여전히 완전한 검증이 필요합니다.
5869
5970macOS 및 Windows 인앱 업데이트는 선택한 프록시로 다운로드하며 직접 연결로 전환하지 않습니다. 설치 전에 작업을 저장하고 중지하세요. macOS는 동일 게시자의 Developer ID 서명과 Apple 검증이 필요하며, Windows는 신뢰할 수 있는 Authenticode 서명과 동일 게시자 공개 키가 필요합니다. 서명 없는 Windows 미리 보기와 Linux 패키지는 수동으로 업데이트합니다. [업데이트 및 제거](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ macOS 및 Windows 인앱 업데이트는 선택한 프록시로 다운로드하
96107
97108이 프로젝트는 빠르게 발전하고 있습니다. 피드백을 공유하려면 커뮤니티 그룹에 가입하세요. 커뮤니티 관리자를 환영합니다.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## 원산지 및 라이선스
102115
@@ -119,3 +132,12 @@ Cage는 독립적인 커뮤니티 프로젝트이며 Anthropic과 관련이 없
119132- [code-server](https://github.com/coder/code-server): 브라우저 기반 코드 편집기입니다.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): 작업 환경 및 인터랙션 디자인에 대한 참고 자료입니다.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) 그리고 [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): 네트워크 점검 및 보안 진단을 위한 참고 자료입니다.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.md+40 −12看文件
@@ -1,18 +1,24 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**把 Claude 大小姐关起来,为了更好地保护我们的相遇**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[项目主页](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [下载应用](https://lee-xeo.github.io/Claude-Cage/#download) · [开始使用](docs/getting-started.md) · [常见问题](docs/troubleshooting.md) · [参与开发](CONTRIBUTING.md)
11新增:**[项目主页](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [下载应用](https://lee-xeo.github.io/Claude-Cage/#download) · [使用文档](https://lee-xeo.github.io/Claude-Cage/docs/) · [常见问题](https://lee-xeo.github.io/Claude-Cage/docs/troubleshooting/) · [参与开发](CONTRIBUTING.md)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## 受够了 Anthropic
1218
1319作为一个只是想和 Claude 对话与合作的正常用户,受够了折腾各种 VPS,指纹浏览器,环境检测,面对封号的担惊受怕和财产损失。我们提出 **Claude Cage** 项目:**一个开箱即用的桌面程序,配置好自己的网络代理,集中管理隔离环境、时区语言和环境检查。**
1420
15删除:Claude Cage 是一个轻量 Linux 虚拟机,把 Linux 终端、浏览器和文件编辑器放进同一个桌面应用。支持以下几个重点功能:
21新增:Claude Cage 把 Linux 终端、浏览器、文件编辑器和按需安装的 Claude Desktop 放进同一个桌面工作台。可以在本机运行轻量虚拟机,也可以通过 SSH 将工作环境部署到自己的 Linux 服务器;手机开发客户端可连接电脑,处理 Claude Code 会话与工具审批。支持以下几个重点功能:
1622
1723- 和主机隔离的网络设置,Cage 自己接管和代理内部的所有网络流量
1824- 和主机隔离的指纹设置,包括时区、语言等,支持自动与代理 IP 同步
@@ -21,7 +27,9 @@ Claude Cage 是一个轻量 Linux 虚拟机,把 Linux 终端、浏览器和文
2127
2228**使用 Cage 的环境检测结果:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| 网络与隔离检查 | 浏览器环境检测(社区参考) |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="网络与隔离检查" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="浏览器环境检测(社区参考)" width="400" /></a> |
2533
2634**Cage 运行主界面:**
2735
@@ -33,6 +41,11 @@ Claude Cage 是一个轻量 Linux 虚拟机,把 Linux 终端、浏览器和文
3341- **控制共享范围。** 只共享默认工作区和明确打开的项目文件夹;主机的 Claude 登录、浏览器配置和 SSH 密钥不会自动导入。
3442- **看清网络状态。** 内置代理管理支持导入订阅、选择节点和检查出口。关键检查未通过时,环境保持离线;代理不可用时没有直连回退。
3543- **下次继续使用。** 工具、文件和登录状态保存在虚拟磁盘里,关闭窗口可以保留后台任务。
44新增:- **管理多个 Claude Code 订阅。** 独立登录多个账号,查看五小时和七天额度,为新建 Claude 终端分配账号;正在运行的终端保留原账号。[多账号与额度](https://lee-xeo.github.io/Claude-Cage/docs/accounts/)
45新增:- **从手机继续处理任务。** Android / iPhone 开发客户端通过二维码或配对码连接电脑,创建和继续结构化 Claude Code 会话、处理工具审批,以及操作远程浏览器和 Claude Desktop。需要包含移动功能的构建,普通终端会话仍在原终端操作。[手机连接](https://lee-xeo.github.io/Claude-Cage/docs/mobile/)
46新增:- **把环境放到自己的服务器。** 从侧栏添加 SSH 主机,核验指纹后部署或连接,在符合条件的 Linux x86_64 VPS 运行环境,无需 KVM。项目、账户和网络配置保存在服务器,断开客户端可保留任务。[云端部署与 SSH](https://lee-xeo.github.io/Claude-Cage/docs/cloud/)
47新增:
48新增:浏览器还提供收藏夹、无痕会话、Cookie 管理、扩展导入和密码保险箱;外观、资源上限、环境存储位置与工具更新都可以在工作台管理。各项入口、使用步骤和错误处理见[完整使用文档](https://lee-xeo.github.io/Claude-Cage/docs/)。功能以所用构建为准,手机端目前需要开发构建,公开安装包范围以对应 Release 说明为准。
3649
3750## 快速开始
3851
@@ -54,7 +67,7 @@ Cage 支持 macOS、Windows 和 Linux:macOS 14+ 的 Apple Silicon Mac、Window
5467
5568安装包随附工作台和代理核心,日常使用无需安装 Go、Node.js、Docker 或 Clash。首次启动仍需联网下载 Linux 镜像与开发工具;Cage 不提供代理服务或 Claude 账户。
5669
57删除:当前版本为 `0.1.5-alpha.2`。源码、主页与发行物公开;安装包的签名、公证和验收范围以对应 Release 说明为准。干净机器安装、macOS 14 实机兼容性、真实 Claude 授权与模型请求仍需完整验收。
70新增:源码、主页与发行物公开;可下载版本、功能、签名、公证和平台验收范围以[公开 Release](https://github.com/Lee-xeo/Claude-Cage/releases)说明为准。源码中的新增能力可能尚未进入公开包,手机开发客户端的安装与连接方式见[移动端文档](https://lee-xeo.github.io/Claude-Cage/docs/mobile/)。
5871
5972支持应用内更新的 macOS 和 Windows 版本通过所选代理下载,无直连回退;安装前请保存并停止任务。macOS 要求同一发布者的 Developer ID 签名并通过 Apple 验证,Windows 要求可信 Authenticode 签名和相同发布者公钥。Windows 未签名预览版和 Linux 系统包需手动更新。详见[升级与卸载](docs/getting-started.md#升级与卸载)。
6073
@@ -83,20 +96,27 @@ Cage 支持 macOS、Windows 和 Linux:macOS 14+ 的 Apple Silicon Mac、Window
8396
8497## 文档与贡献
8598
86删除:完整入口见[文档导航](docs/README.md)。
99新增:面向用户的[官网使用文档](https://lee-xeo.github.io/Claude-Cage/docs/)支持按功能浏览、搜索与章节直达。源码与设计资料见[仓库文档导航](docs/README.md)。
87100
88101| 你要做什么 | 从这里开始 |
89102|---|---|
90删除:| 第一次安装、配置代理、打开项目 | [开始使用](docs/getting-started.md) |
91删除:| 处理下载、启动、联网和登录问题 | [常见问题与恢复](docs/troubleshooting.md) |
92删除:| 了解按键、外观、数据保存和退出行为 | [日常使用](docs/getting-started.md#日常使用) |
103新增:| 第一次安装、配置代理、打开项目 | [安装与首次启动](https://lee-xeo.github.io/Claude-Cage/docs/installation/) |
104新增:| 添加多个订阅、查看额度和分配终端 | [多账号与额度](https://lee-xeo.github.io/Claude-Cage/docs/accounts/) |
105新增:| 手机扫码、工具审批、远程浏览器 | [手机连接与远程会话](https://lee-xeo.github.io/Claude-Cage/docs/mobile/) |
106新增:| 在自己的 VPS 部署和连接环境 | [云端部署与 SSH](https://lee-xeo.github.io/Claude-Cage/docs/cloud/) |
107新增:| 了解每一项设置及何时生效 | [设置参考](https://lee-xeo.github.io/Claude-Cage/docs/settings/) |
108新增:| 维护存储、资源、更新与备份 | [维护、资源与数据](https://lee-xeo.github.io/Claude-Cage/docs/maintenance/) |
109新增:| 处理下载、启动、联网和登录问题 | [故障排查](https://lee-xeo.github.io/Claude-Cage/docs/troubleshooting/) |
110新增:| 了解文件、按键和关闭与退出行为 | [项目、终端与文件](https://lee-xeo.github.io/Claude-Cage/docs/workbench/) |
93111| 从源码构建或提交改进 | [贡献指南](CONTRIBUTING.md) |
94112| 了解模块与网络约束 | [工作台设计](docs/design/workbench.md) |
95113| 报告可复现问题 | [GitHub Issues](https://github.com/Lee-xeo/Claude-Cage/issues) |
96114
97115本项目仍在快速迭代中,欢迎加入交流群提意见,欢迎社区大佬一起维护
98116
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
117新增:<p align="center">
118新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="Claude Cage QQ 交流群二维码(群号:1134250870)" width="240" /></a>
119新增:</p>
100120
101121## 来源与许可
102122
@@ -119,3 +139,11 @@ Cage 是独立社区项目,与 Anthropic 无隶属关系。
119139- [code-server](https://github.com/coder/code-server):浏览器中的代码编辑器。
120140- [AIO Sandbox](https://github.com/agent-infra/sandbox):工作环境和交互体验参考。
121141- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) 和 [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian):网络检查和安全诊断方法参考。
142新增:
143新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
144新增: <picture>
145新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
146新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
147新增: <img alt="Claude Cage 的 GitHub Star 增长曲线" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
148新增: </picture>
149新增:</a>
修改README.my.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Miss Claude ကို လှောင်အိမ်ထဲတွင် ထားပါ၊ ထို့ကြောင့် ကျွန်ုပ်တို့၏အချိန်များကို အတူတကွ ပိုမိုကောင်းမွန်စွာ ကာကွယ်နိုင်မည်ဖြစ်သည်။**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[ပရောဂျက်ဝက်ဘ်ဆိုက်](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [အက်ပ်ကို ဒေါင်းလုဒ်လုပ်ရန်](https://lee-xeo.github.io/Claude-Cage/my/#download) · [စတင်လုပ်ဆောင်ခြင်း။](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [ပါဝင်ကူညီပါ။](CONTRIBUTING.md)
11新增:**[ပရောဂျက်ဝက်ဘ်ဆိုက်](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [အက်ပ်ကို ဒေါင်းလုဒ်လုပ်ရန်](https://lee-xeo.github.io/Claude-Cage/my/#download) · [စတင်လုပ်ဆောင်ခြင်း။](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [ပါဝင်ကူညီပါ။](CONTRIBUTING.md) · [အသုံးပြုမှုလမ်းညွှန် (တရုတ်ဘာသာ)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Anthropic ကို စိတ်ကုန်နေပြီ
1218
@@ -21,7 +27,9 @@ Claude Cage သည် desktop အပလီကေးရှင်းတစ်ခ
2127
2228**Cage ဖြင့် ပတ်ဝန်းကျင်စစ်ဆေးမှုရလဒ်များ**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| ကွန်ရက်နှင့် သီးခြားခွဲထားမှု စစ်ဆေးချက်များ | အသိုင်းအဝိုင်း၏ ဘရောက်ဇာ စစ်ဆေးချက် |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="ကွန်ရက်နှင့် သီးခြားခွဲထားမှု စစ်ဆေးချက်များ" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="အသိုင်းအဝိုင်း၏ ဘရောက်ဇာ စစ်ဆေးချက်" width="400" /></a> |
2533
2634**Cage ၏ အဓိက အင်တာဖေ့စ်**
2735
@@ -33,6 +41,9 @@ Claude Cage သည် desktop အပလီကေးရှင်းတစ်ခ
3341- **သင်မျှဝေသောအရာကို ထိန်းချုပ်ပါ။** ပုံသေအလုပ်ခွင်နှင့် အတိအလင်းဖွင့်ထားသော ပရောဂျက်ဖိုင်တွဲများကိုသာ မျှဝေပါသည်။ လက်ခံသူ၏ Claude အကောင့်ဝင်ခြင်းအခြေအနေ၊ ဘရောက်ဆာပရိုဖိုင်များနှင့် SSH ကီးများကို အလိုအလျောက် ထည့်သွင်းမည်မဟုတ်ပါ။
3442- **သင်၏ကွန်ရက်အခြေအနေကိုကြည့်ပါ။** Built-in ကွန်ရက် proxy စီမံခန့်ခွဲမှုသည် သင့်အား စာရင်းသွင်းမှုများကို တင်သွင်းရန်၊ အဆုံးမှတ်များကို ရွေးချယ်ကာ ထွက်ပေါက် IP ကို ​​စစ်ဆေးနိုင်စေပါသည်။ အရေးကြီးသောစစ်ဆေးမှုများမပြီးမချင်း ပတ်ဝန်းကျင်သည် အော့ဖ်လိုင်းဖြစ်နေသည်။ ကွန်ရက်ပရောက်စီကို မရရှိနိုင်ပါက၊ တိုက်ရိုက်ချိတ်ဆက်မှုသို့ ပြန်လှည့်စရာမရှိပါ။
3543- **နောက်တစ်ကြိမ် ဆက်ရန်။** ကိရိယာများ၊ ဖိုင်များနှင့် အကောင့်ဝင်ခြင်းအခြေအနေသည် virtual disk ပေါ်တွင် ဆက်လက်ရှိနေပါသည်။ ဝင်းဒိုးကိုပိတ်သည့်အခါ နောက်ခံလုပ်ဆောင်စရာများကို ဆက်လက်လုပ်ဆောင်နိုင်သည်။
44新增:- **Claude Code အကောင့်များစွာကို စီမံပါ။** Claude terminal အသစ်များအတွက် အကောင့်ခွဲဝေပေးပြီး ၅ နာရီနှင့် ၇ ရက် အသုံးပြုခွင့်ပမာဏကို ကြည့်နိုင်သည်။ လက်ရှိလည်ပတ်နေသော terminal ၏ အကောင့်ကို အလိုအလျောက် မပြောင်းပါ။
45新增:- **ဖုန်းမှ အလုပ်ဆက်လုပ်ပါ။** ဖွံ့ဖြိုးရေးသုံး မိုဘိုင်း client သည် ကွန်ပျူတာနှင့် ချိတ်ဆက်ကာ ဖွဲ့စည်းထားသော CLI session များနှင့် tool ခွင့်ပြုချက်များကို ကိုင်တွယ်ပေးသည်။ အဝေးထိန်း browser အတွက် သီးခြားခွင့်ပြုချက်လိုသည်။ မိုဘိုင်း client ကို source code မှ development build ပြုလုပ်ရပြီး မည်သည့် ပုံမှန် terminal ကိုမဆို လွှဲယူထိန်းချုပ်ခြင်း မပြုပါ။
46新增:- **Cage ကို cloud ပေါ်တွင် အသုံးပြုပါ။** လိုအပ်ချက်နှင့်ကိုက်ညီသော Linux x86_64 VPS တွင် Cage ကို တပ်ဆင်ပြီး SSH ဖြင့် ချိတ်ဆက်ပါ။ KVM မလိုအပ်ပါ။ ဒေတာနှင့် ကွန်ရက်ထွက်ပေါက်သည် server ပေါ်တွင် ရှိသည်။
3647
3748## အမြန်စတင်ပါ။
3849
@@ -54,7 +65,7 @@ Cage သည် macOS၊ Windows နှင့် Linux ကို ပံ့ပိ
5465
5566ထည့်သွင်းသူတွင် workbench နှင့် network proxy core ပါဝင်သည်။ နေ့စဉ်အသုံးပြုမှုသည် Go၊ Node.js၊ Docker သို့မဟုတ် Clash ကို ထည့်သွင်းရန် မလိုအပ်ပါ။ Linux ရုပ်ပုံနှင့် ဖွံ့ဖြိုးတိုးတက်ရေးကိရိယာများကို ဒေါင်းလုဒ်လုပ်ရန် ပထမဦးစွာ လွှင့်တင်ရန် အင်တာနက်ချိတ်ဆက်မှု လိုအပ်နေသေးသည်။ Cage သည် ကွန်ရက် ပရောက်စီ ဝန်ဆောင်မှု သို့မဟုတ် Claude အကောင့်ကို မပေးပေ။
5667
57删除:လက်ရှိဗားရှင်း- `0.1.1-alpha`. အရင်းအမြစ်ကုဒ်၊ ဝဘ်ဆိုက်နှင့် ထုတ်ဝေမှုများကို အများသူငှာဖြစ်သည်။ တပ်ဆင်သူလက်မှတ်ထိုးခြင်းအတွက် ထုတ်ဝေမှုတစ်ခုစီ၏ မှတ်စုများ၊ Apple notarization နှင့် တရားဝင်မှုအတိုင်းအတာကို ကိုးကားပါ။ စက်သန့်ရှင်းမှု တပ်ဆင်မှု၊ macOS 14 အသုံးပြုသည့် ရုပ်ပိုင်းဆိုင်ရာ Mac များတွင် လိုက်ဖက်ညီမှု၊ အစစ်အမှန် Claude အကောင့်ခွင့်ပြုချက်နှင့် မော်ဒယ်တောင်းဆိုမှုများသည် အပြည့်အဝ တရားဝင်မှု လိုအပ်နေသေးသည်။
68新增:အများပြည်သူသုံး ဗားရှင်းများကို [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) တွင် ကြည့်ပါ။ အရင်းအမြစ်ကုဒ်၊ ဝဘ်ဆိုက်နှင့် ထုတ်ဝေမှုများကို အများသူငှာဖြစ်သည်။ တပ်ဆင်သူလက်မှတ်ထိုးခြင်းအတွက် ထုတ်ဝေမှုတစ်ခုစီ၏ မှတ်စုများ၊ Apple notarization နှင့် တရားဝင်မှုအတိုင်းအတာကို ကိုးကားပါ။ စက်သန့်ရှင်းမှု တပ်ဆင်မှု၊ macOS 14 အသုံးပြုသည့် ရုပ်ပိုင်းဆိုင်ရာ Mac များတွင် လိုက်ဖက်ညီမှု၊ အစစ်အမှန် Claude အကောင့်ခွင့်ပြုချက်နှင့် မော်ဒယ်တောင်းဆိုမှုများသည် အပြည့်အဝ တရားဝင်မှု လိုအပ်နေသေးသည်။
5869
5970macOS နှင့် Windows အပ်ဒိတ်များသည် ရွေးထားသော proxy ကို သုံးပြီး တိုက်ရိုက်ချိတ်ဆက်မှုသို့ မပြောင်းပါ။ မတပ်ဆင်မီ အလုပ်ကို သိမ်းပြီး ရပ်ပါ။ macOS တွင် ထုတ်ဝေသူတူသော Developer ID လက်မှတ်နှင့် Apple အတည်ပြုချက် လိုအပ်သည်။ Windows တွင် ယုံကြည်ရသော Authenticode လက်မှတ်နှင့် ထုတ်ဝေသူ၏ တူညီသော public key လိုအပ်သည်။ လက်မှတ်မပါ Windows အစမ်းဗားရှင်းနှင့် Linux ကို ကိုယ်တိုင် အပ်ဒိတ်လုပ်ရသည်။ [အပ်ဒိတ်နှင့် ဖယ်ရှားခြင်း](docs/getting-started.md#升级与卸载)။
6071
@@ -96,7 +107,9 @@ workbench သို့ပြန်သွားပြီး 'Start Cage environme
96107
97108ပရောဂျက်က အရှိန်အဟုန်နဲ့ တိုးတက်နေတယ်။ တုံ့ပြန်ချက်မျှဝေရန် ကွန်မြူနတီအဖွဲ့သို့ ဝင်ရောက်ပါ။ ရပ်ရွာထိန်းသိမ်းသူ များကို ကြိုဆိုပါတယ်။
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## မူရင်းနှင့်လိုင်စင်
102115
@@ -119,3 +132,12 @@ Cage သည် လွတ်လပ်သောအသိုင်းအဝို
119132- [code-server](https://github.com/coder/code-server) - ဘရောက်ဆာအခြေခံကုဒ်တည်းဖြတ်သူ။
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): လုပ်ငန်းခွင်ပတ်ဝန်းကျင်နှင့် အပြန်အလှန်အကျိုးပြုမှုဒီဇိုင်းအတွက် ကိုးကားချက်များ။
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) နှင့် [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): ကွန်ရက်စစ်ဆေးမှုများနှင့် လုံခြုံရေးဆိုင်ရာ စစ်ဆေးမှုများအတွက် ကိုးကားချက်များ။
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.prs.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**خانم Claude را در Cage نگه دارید تا بتوانیم از زمان با هم بودنمان بهتر محافظت کنیم**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[وب سایت پروژه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [دانلود برنامه](https://lee-xeo.github.io/Claude-Cage/prs/#download) · [شروع کردن](docs/getting-started.md) · [سوالات متداول](docs/troubleshooting.md) · [مشارکت کنید](CONTRIBUTING.md)
11新增:**[وب سایت پروژه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [دانلود برنامه](https://lee-xeo.github.io/Claude-Cage/prs/#download) · [شروع کردن](docs/getting-started.md) · [سوالات متداول](docs/troubleshooting.md) · [مشارکت کنید](CONTRIBUTING.md) · [رهنمای استفاده (چینی)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## از Anthropic خسته شده‌ایم
1218
@@ -21,7 +27,9 @@ Claude Cage یک ماشین مجازی لینوکس سبک وزن است که ت
2127
2228**نتایج بررسی محیط با Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| بررسی شبکه و جداسازی | بررسی مرورگر توسط جامعۀ کاربران |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="بررسی شبکه و جداسازی" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="بررسی مرورگر توسط جامعۀ کاربران" width="400" /></a> |
2533
2634**رابط اصلی Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage یک ماشین مجازی لینوکس سبک وزن است که ت
3341- **آنچه را که به اشتراک می گذارید کنترل کنید.** فقط فضای کاری پیش‌فرض و فولدر‌های پروژه به‌صراحت باز شده به اشتراک گذاشته می‌شوند. وضعیت ورود به سیستم Claude میزبان، نمایه‌های مرورگر و کلیدهای SSH به‌طور خودکار وارد نمی‌شوند.
3442- **وضعیت شبکه خود را ببینید.** مدیریت پروکسی شبکه داخلی به شما امکان می‌دهد اشتراک‌ها را وارد کنید، نقاط پایانی را انتخاب کنید و IP خروجی را بررسی کنید. محیط آفلاین می‌ماند تا زمانی که بررسی‌های حیاتی با موفقیت انجام شوند. اگر پراکسی شبکه در دسترس نباشد، هیچ بازگشتی به اتصال مستقیم وجود ندارد.
3543- **دفعه بعد ادامه بده** ابزارها، فایل‌ها و وضعیت ورود به سیستم روی دیسک مجازی باقی می‌مانند. وقتی پنجره را می‌بندید، کارهای پس‌زمینه می‌توانند همچنان اجرا شوند.
44新增:- **چند حساب Claude Code را مدیریت کنید.** به ترمینال‌های جدید Claude حساب اختصاص دهید و سهمیه‌های ۵ ساعته و ۷ روزه را ببینید. حساب ترمینال‌های در حال اجرا خودکار عوض نمی‌شود.
45新增:- **کار را از تیلفون ادامه دهید.** کلاینت توسعهٔ موبایل به کمپیوتر وصل می‌شود تا نشست‌های ساختاریافتهٔ CLI و تأیید ابزارها را مدیریت کنید؛ مرورگر راه دور اجازهٔ جداگانه می‌خواهد. باید نسخهٔ توسعهٔ موبایل را از کد منبع بسازید؛ این قابلیت هر ترمینال معمولی موجود را در اختیار نمی‌گیرد.
46新增:- **Cage را در فضای ابری اجرا کنید.** از طریق SSH به Cage مستقر روی VPS سازگار با Linux x86_64 وصل شوید؛ KVM لازم نیست. داده‌ها و خروجی شبکه روی سرور قرار دارند.
3647
3748## شروع سریع
3849
@@ -54,7 +65,7 @@ Cage از macOS، Windows و Linux پشتیبانی می‌کند: Apple Silicon
5465
5566نصب کننده شامل میز کار و هسته پروکسی شبکه است. استفاده روزانه نیازی به نصب Go، Node.js، Docker یا Clash ندارد. اولین راه‌اندازی همچنان به اتصال اینترنت برای دانلود تصویر لینوکس و ابزارهای توسعه نیاز دارد. Cage نه سرویس پروکسی شبکه و نه حساب Claude ارائه می دهد.
5667
57删除:نسخه فعلی: `0.1.1-alpha`. کد منبع، وب‌سایت و نسخه‌ها عمومی هستند. به یادداشت‌های هر نسخه برای امضای نصب‌کننده، تأیید اسناد رسمی اپل و دامنه اعتبارسنجی مراجعه کنید. نصب ماشین تمیز، سازگاری در مک های فیزیکی دارای سیستم عامل macOS 14، مجوز واقعی حساب Claude، و درخواست های مدل هنوز به تأیید کامل نیاز دارند.
68新增:برای نسخه‌های عمومی موجود، [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) را ببینید. کد منبع، وب‌سایت و نسخه‌ها عمومی هستند. به یادداشت‌های هر نسخه برای امضای نصب‌کننده، تأیید اسناد رسمی اپل و دامنه اعتبارسنجی مراجعه کنید. نصب ماشین تمیز، سازگاری در مک های فیزیکی دارای سیستم عامل macOS 14، مجوز واقعی حساب Claude، و درخواست های مدل هنوز به تأیید کامل نیاز دارند.
5869
5970به‌روزرسانی macOS و Windows از پراکسی انتخاب‌شده دریافت می‌شود و به اتصال مستقیم برنمی‌گردد. پیش از نصب، کار را ذخیره و متوقف کنید. macOS به امضای Developer ID همان ناشر و تأیید Apple نیاز دارد؛ Windows به امضای معتبر Authenticode و همان کلید عمومی ناشر نیاز دارد. نسخۀ آزمایشی بدون امضای Windows و بسته‌های Linux دستی به‌روز می‌شوند. [به‌روزرسانی و حذف](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Cage از macOS، Windows و Linux پشتیبانی می‌کند: Apple Silicon
96107
97108این پروژه به سرعت در حال پیشرفت است. برای به اشتراک گذاشتن بازخورد به گروه جامعه بپیوندید. از نگهبانان جامعه استقبال می شود.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## مبدا و مجوز
102115
@@ -119,3 +132,12 @@ Cage یک پروژه اجتماعی مستقل است و به آنتروپیک
119132- [code-server](https://github.com/coder/code-server): ویرایشگر کد مبتنی بر مرورگر.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): مراجع برای طراحی محیط کار و تعامل.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) و [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): مراجع برای بررسی شبکه و تشخیص امنیتی.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.ps.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**مس کلاډ په پنجره کې وساتئ، نو موږ کولی شو خپل وخت په ګډه خوندي کړو**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[د پروژې ویب پاڼه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [اپلیکیشن ډاونلوډ کړئ](https://lee-xeo.github.io/Claude-Cage/ps/#download) · [پیل کول](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [مرسته وکړي](CONTRIBUTING.md)
11新增:**[د پروژې ویب پاڼه](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [اپلیکیشن ډاونلوډ کړئ](https://lee-xeo.github.io/Claude-Cage/ps/#download) · [پیل کول](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [مرسته وکړي](CONTRIBUTING.md) · [د کارولو لارښود (په چینایي)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## له Anthropic څخه ستړي شوي یو
1218
@@ -21,7 +27,9 @@
2127
2228**د Cage سره د چاپیریال چک پایلې:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| د شبکې او جلاوالي کتنې | د ټولنې د براوزر کتنه |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="د شبکې او جلاوالي کتنې" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="د ټولنې د براوزر کتنه" width="400" /></a> |
2533
2634**د Cage اصلي انٹرفیس:**
2735
@@ -33,6 +41,9 @@
3341- **هغه څه چې تاسو یې شریک کړئ کنټرول کړئ.** یوازې ډیفالټ کاري ځای او په ښکاره ډول خلاص شوي پروژې فولډر شریک شوي. د کوربه کلاډ لاسلیک حالت، د براوزر پروفایلونه، او د SSH کیلي په اوتومات ډول نه واردیږي.
3442- **ستاسو د شبکې حالت وګورئ.** د جوړ شوي شبکې پراکسي مدیریت تاسو ته اجازه درکوي ګډون وارد کړئ، پای ټکي وټاکئ، او د وتلو IP چیک کړئ. چاپېریال تر هغه وخته پورې آفلاین پاتې کیږي چې مهمې معاینات تېر شي. که چیرې د شبکې پراکسي شتون ونلري، نو مستقیم اتصال ته بدیل تګ نه کېږي.
3543- **بل ځل دوام ورکړئ.** اوزار، فایلونه، او د ننوتلو حالت په مجازی ډیسک کې دوام لري. کله چې تاسو کړکۍ وتړئ د شاليد دندې دوام کولی شي.
44新增:- **د Claude Code څو حسابونه اداره کړئ.** نوو Claude ټرمینلونو ته حسابونه وټاکئ او د ۵ ساعتونو او ۷ ورځو سهمیې وګورئ. د روانو ټرمینلونو حسابونه په اوتومات ډول نه بدلېږي.
45新增:- **له موبایل څخه کار ته دوام ورکړئ.** د موبایل پراختیایي کلاینت له کمپیوټر سره نښلي، څو جوړښت لرونکې CLI ناستې او د وسیلو منظورۍ اداره کړئ؛ لرې براوزر جلا اجازه غواړي. د موبایل پراختیایي نسخه باید له سرچینې جوړه کړئ؛ دا د هر عادي موجود ټرمینل کنټرول نه کوي.
46新增:- **Cage په کلاوډ کې وچلوئ.** د SSH له لارې په یوه مناسب Linux x86_64 VPS کې نصب شوي Cage سره وصل شئ؛ KVM ته اړتیا نشته. معلومات او د شبکې وتون په سرور کې وي.
3647
3748## چټک پیل
3849
@@ -54,7 +65,7 @@ Cage د macOS، Windows او Linux ملاتړ کوي: Apple Silicon له macOS 1
5465
5566انسټالر کې ورک بینچ او د شبکې پراکسي کور شامل دي. ورځنی استعمال د Go، Node.js، Docker، یا Clash نصبولو ته اړتیا نلري. لومړی لانچ لاهم د لینکس عکس او پراختیا وسیلو ډاونلوډ کولو لپاره انټرنیټ پیوستون ته اړتیا لري. Cage نه د شبکې پراکسي خدمت وړاندې کوي او نه د کلاډ حساب.
5667
57删除:اوسنۍ نسخه: `0.1.1-alpha`. د سرچینې کوډ، ویب پاڼه، او خپرونه عامه دي. د انسټالر لاسلیک کولو، د ایپل نوټاریزیشن، او د اعتبار ساحه لپاره د هرې خوشې کولو یادښتونو ته مراجعه وکړئ. د کلین ماشین نصب کول، د macOS 14 چلولو فزیکي ماکونو کې مطابقت، د ریښتیني کلاډ حساب واک، او د ماډل غوښتنې لاهم بشپړ تایید ته اړتیا لري.
68新增:د شته عامه نسخو لپاره [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) وګورئ. د سرچینې کوډ، ویب پاڼه، او خپرونه عامه دي. د انسټالر لاسلیک کولو، د ایپل نوټاریزیشن، او د اعتبار ساحه لپاره د هرې خوشې کولو یادښتونو ته مراجعه وکړئ. د کلین ماشین نصب کول، د macOS 14 چلولو فزیکي ماکونو کې مطابقت، د ریښتیني کلاډ حساب واک، او د ماډل غوښتنې لاهم بشپړ تایید ته اړتیا لري.
5869
5970د macOS او Windows اوسمهالونه د ټاکل شوي پراکسي له لارې ښکته کېږي، مستقیم اتصال ته نه اوړي. تر نصب مخکې کار وساتئ او دندې ودروئ. macOS د هماغه خپروونکي Developer ID لاسلیک او د Apple تایید غواړي؛ Windows د باور وړ Authenticode لاسلیک او د خپروونکي هماغه عامه کیلي غواړي. د Windows بې لاسلیکه مخکتنه او Linux کڅوړې په لاسي ډول اوسمهالېږي. [اوسمهالول او لرې کول](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Cage د macOS، Windows او Linux ملاتړ کوي: Apple Silicon له macOS 1
96107
97108پروژه په چټکۍ سره وده کوي. د نظر شریکولو لپاره د ټولنې ګروپ کې ګډون وکړئ؛ د ټولنې ساتونکي ښه راغلاست.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## اصل او جواز ورکول
102115
@@ -119,3 +132,12 @@ Cage یوه خپلواکه ټولنه پروژه ده او د انتروپیک
119132- [code-server](https://github.com/coder/code-server): د براوزر پر بنسټ کوډ مدیر.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): د کاري چاپیریال او تعامل ډیزاین لپاره حوالې.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) او [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): د شبکې چکونو او امنیت تشخیص لپاره حوالې.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.ru.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Держите мисс Клод в клетке, чтобы мы могли лучше проводить время вместе.**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[Сайт проекта](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Скачать приложение](https://lee-xeo.github.io/Claude-Cage/ru/#download) · [Начало работы](docs/getting-started.md) · [Часто задаваемые вопросы](docs/troubleshooting.md) · [Внести свой вклад](CONTRIBUTING.md)
11新增:**[Сайт проекта](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Скачать приложение](https://lee-xeo.github.io/Claude-Cage/ru/#download) · [Начало работы](docs/getting-started.md) · [Часто задаваемые вопросы](docs/troubleshooting.md) · [Внести свой вклад](CONTRIBUTING.md) · [Руководство (на китайском)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Надоело Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage — это легкая виртуальная машина Linux,
2127
2228**Результаты проверки среды с помощью Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| Проверка сети и изоляции | Проверка браузера от сообщества |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="Проверка сети и изоляции" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="Проверка браузера от сообщества" width="400" /></a> |
2533
2634**Основной интерфейс Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage — это легкая виртуальная машина Linux,
3341- **Контролируйте то, чем вы делитесь.** Совместно используются только рабочее пространство по умолчанию и явно открытые папки проекта. Состояние входа в систему Claude хоста, профили браузера и ключи SSH не импортируются автоматически.
3442- **Посмотрите состояние вашей сети.** Встроенное управление сетевыми прокси-серверами позволяет импортировать подписки, выбирать конечные точки и проверять выходной IP-адрес. Среда остается в автономном режиме до тех пор, пока не пройдут критические проверки. Если сетевой прокси-сервер недоступен, возврата к прямому соединению нет.
3543- **Продолжайте в следующий раз.** Инструменты, файлы и состояние входа сохраняются на виртуальном диске. Фоновые задачи могут продолжать выполняться, когда вы закрываете окно.
44新增:- **Управляйте несколькими аккаунтами Claude Code.** Новые терминалы Claude получают аккаунт автоматически; можно проверять квоты за 5 часов и 7 дней. В уже запущенных терминалах аккаунт автоматически не меняется.
45新增:- **Продолжайте работу с телефона.** Мобильный клиент для разработки подключается к компьютеру для структурированных CLI-сеансов и подтверждения инструментов; удалённому браузеру требуется отдельное разрешение. Клиент нужно собрать из исходников; он не перехватывает произвольные обычные терминалы.
46新增:- **Запускайте Cage в облаке.** Подключайтесь по SSH к Cage на совместимом VPS с Linux x86_64 без KVM. Данные и выход в сеть находятся на сервере.
3647
3748## Быстрый старт
3849
@@ -54,7 +65,7 @@ Cage поддерживает macOS, Windows и Linux: Apple Silicon с macOS 14
5465
5566Установщик включает в себя рабочую среду и ядро ​​сетевого прокси. Ежедневное использование не требует установки Go, Node.js, Docker или Clash. При первом запуске по-прежнему требуется подключение к Интернету для загрузки образа Linux и инструментов разработки. Cage не предоставляет ни услуги сетевого прокси, ни учетную запись Claude.
5667
57删除:Текущая версия: `0.1.1-alpha`. Исходный код, веб-сайт и релизы являются общедоступными. Подробную информацию о подписании установщика, нотариальном заверении Apple и объеме проверки см. в примечаниях к каждому выпуску. Установка на чистом компьютере, совместимость с физическими компьютерами Mac под управлением macOS 14, авторизация реальной учетной записи Claude и запросы моделей по-прежнему требуют полной проверки.
68新增:Актуальные публичные версии указаны в [Releases](https://github.com/Lee-xeo/Claude-Cage/releases). Исходный код, веб-сайт и релизы являются общедоступными. Подробную информацию о подписании установщика, нотариальном заверении Apple и объеме проверки см. в примечаниях к каждому выпуску. Установка на чистом компьютере, совместимость с физическими компьютерами Mac под управлением macOS 14, авторизация реальной учетной записи Claude и запросы моделей по-прежнему требуют полной проверки.
5869
5970Обновления macOS и Windows загружаются через выбранный прокси без прямого подключения. Сохраните работу и остановите задачи перед установкой. macOS требует подпись Developer ID того же издателя и проверку Apple; Windows — доверенную подпись Authenticode и тот же открытый ключ издателя. Неподписанная предварительная версия Windows и Linux обновляются вручную. [Обновление и удаление](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Cage поддерживает macOS, Windows и Linux: Apple Silicon с macOS 14
96107
97108Проект быстро развивается. Присоединяйтесь к группе сообщества, чтобы поделиться отзывами; сопровождающие сообщества приветствуются.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## Происхождение и лицензирование
102115
@@ -119,3 +132,12 @@ Cage — это независимый общественный проект, н
119132- [code-server](https://github.com/coder/code-server): редактор кода на основе браузера.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): ссылки на рабочую среду и дизайн взаимодействия.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) и [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): ссылки для проверки сети и диагностики безопасности.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.so.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**Ku hay Miss Claude qafis, si aan si wanaagsan u ilaalin karno waqtigeena wada jirka ah**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[Mareegta mashruuca](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Soo dejiso abka](https://lee-xeo.github.io/Claude-Cage/so/#download) · [Bilaabidda](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Wax ku darso](CONTRIBUTING.md)
11新增:**[Mareegta mashruuca](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [Soo dejiso abka](https://lee-xeo.github.io/Claude-Cage/so/#download) · [Bilaabidda](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [Wax ku darso](CONTRIBUTING.md) · [Hagaha isticmaalka (Shiine)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## Waan ka daalnay Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage waa mashiin macmal ah oo Linux ah oo fudud kaas oo isku dara termina
2127
2228**Natiijooyinka hubinta deegaanka ee Cage:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| Hubinta shabakadda iyo go’doominta | Hubinta biraawsarka ee bulshada |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="Hubinta shabakadda iyo go’doominta" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="Hubinta biraawsarka ee bulshada" width="400" /></a> |
2533
2634**Interface ugu weyn ee Cage:**
2735
@@ -33,6 +41,9 @@ Claude Cage waa mashiin macmal ah oo Linux ah oo fudud kaas oo isku dara termina
3341- **Xakamee waxa aad wadaagto.** Kaliya goobta shaqada ee caadiga ah iyo galka mashruuca ee si cad loo furay ayaa la wadaagaa. Xaaladda soo galitaanka Claude ee martida loo yahay, boggaga browserka, iyo furayaasha SSH si toos ah looma soo dejiyo.
3442- **Eeg heerka shabakadaada** Maaraynta wakiilnimada shabakada ee ku dhex jirta ayaa kuu ogolaanaysa inaad soo dejiso rukunsiyada, dooro meelaha dhamaadka, oo aad hubiso IP-ga ka baxa. Deegaanku internetka kuma xirmayo ilaa hubinnada muhiimka ahi ay si guul leh u gudbaan. Haddii wakiillada shabakadu maqan tahay, ma dhacayso xiriir toos ah.
3543- **Sii wad marka xigta** Qalabka, faylalka, iyo xaaladda gelitaanku waxay ku sii jiraan saxanka casriga ah. Hawlaha asalka ahi waxay sii socon karaan markaad daaqadda xidhid.
44新增:- **Maamul akoonno badan oo Claude Code ah.** Akoon ayaa loo qoondeeyaa terminal kasta oo Claude ah oo cusub; waxaad arki kartaa qoondada 5 saacadood iyo 7 maalmood. Akoonka terminal socda si toos ah isuma beddelo.
45新增:- **Shaqada ka sii wad telefoonka.** Macmiilka moobilka ee horumarinta wuxuu ku xirmaa kombiyuutarka si loo adeegsado kulamada CLI ee habaysan iyo oggolaanshaha qalabka; biraawsarka fog wuxuu u baahan yahay oggolaansho gaar ah. Waa inaad macmiilka moobilka ka dhistaa koodhka isha; ma maamulo terminal kasta oo caadi ah oo hore u furnaa.
46新增:- **Cage ku socodsii daruurta.** SSH kaga xirmo Cage lagu rakibay VPS ku habboon oo Linux x86_64 ah, adigoon u baahnayn KVM. Xogta iyo halka shabakadu ka baxdo waxay ku yaallaan serverka.
3647
3748## Bilaw degdeg ah
3849
@@ -54,7 +65,7 @@ Cage wuxuu taageeraa macOS, Windows iyo Linux: Apple Silicon oo leh macOS 14+, W
5465
5566Rakibahu waxa ka mid ah bench-ka shaqada iyo xudunta wakiilka network. Isticmaalka maalinlaha ah uma baahna rakibida Go, Node.js, Docker, ama Clash. Daahfurka ugu horreeya wuxuu weli u baahan yahay isku xirka internetka si loo soo dejiyo sawirka Linux iyo aaladaha horumarinta. Cage ma bixiso adeeg wakiil shabakad ama akoon Claude.
5667
57删除:Nooca hadda: `0.1.1-alpha`. Koodhka isha, mareegaha, iyo sii daynta waa dadwayne. Tixraac qoraalada sii daynta kasta ee saxeexa rakibaha, notarization Apple, iyo baaxadda ansixinta. Ku rakibida mashiinka nadiifka ah, waafaqid ku saabsan Macs-ka jireed ee ku shaqeeya macOS 14, oggolaanshaha koontada Claude dhabta ah, iyo codsiyada moodeelka ayaa wali u baahan ansaxinta buuxda.
68新增:Noocyada dadweynaha ee la heli karo ka eeg [Releases](https://github.com/Lee-xeo/Claude-Cage/releases). Koodhka isha, mareegaha, iyo sii daynta waa dadwayne. Tixraac qoraalada sii daynta kasta ee saxeexa rakibaha, notarization Apple, iyo baaxadda ansixinta. Ku rakibida mashiinka nadiifka ah, waafaqid ku saabsan Macs-ka jireed ee ku shaqeeya macOS 14, oggolaanshaha koontada Claude dhabta ah, iyo codsiyada moodeelka ayaa wali u baahan ansaxinta buuxda.
5869
5970Cusboonaysiinta macOS iyo Windows waxay adeegsataa wakiilka la doortay, iyada oo aan loo noqon xiriir toos ah. Kaydi shaqada oo jooji hawlaha ka hor rakibidda. macOS wuxuu u baahan yahay saxiixa Developer ID ee isla daabacaha iyo xaqiijinta Apple; Windows wuxuu u baahan yahay Authenticode la aamini karo iyo isla furaha guud ee daabacaha. Nooca Windows ee aan saxiixnayn iyo Linux gacanta ayaa loo cusboonaysiiyaa. [Cusboonaysiin iyo saarid](docs/getting-started.md#升级与卸载).
6071
@@ -96,7 +107,9 @@ Si aad u hesho tusmada buuxda, eeg [Tusmada dhokumentiyada](docs/README.md).
96107
97108Mashruucu si xawli ah ayuu u socdaa. Ku biir kooxda bulshada si aad ula wadaagto jawaab celinta; ilaaliyayaasha bulshada waa la soo dhawaynayaa.
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## Asalka iyo shatiga
102115
@@ -119,3 +132,12 @@ Waad ku mahadsan tahay mashaariicda soo socota ee kartida aasaasiga ah iyo tixra
119132- [code-server](https://github.com/coder/code-server): tifaftiraha koodhka ku salaysan browserka.
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): tixraacyada jawiga shaqada iyo naqshadeynta isdhexgalka.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) iyo [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): tixraacyada hubinta shabakada iyo ogaanshaha amniga.
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.ti.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**ሚስ ክላውድ ኣብ ጓጓ ኣቐምጥዋ፡ ምእንቲ ብሓባር ዘለና ግዜ ብዝበለጸ ክንከላኸለሉ ንኽእል**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[መርበብ ሓበሬታ ፕሮጀክት](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [ነቲ መተግበሪ ኣውርድ](https://lee-xeo.github.io/Claude-Cage/ti/#download) · [ምጅማር](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [ኣበርክቶ ግበሩ](CONTRIBUTING.md)
11新增:**[መርበብ ሓበሬታ ፕሮጀክት](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [ነቲ መተግበሪ ኣውርድ](https://lee-xeo.github.io/Claude-Cage/ti/#download) · [ምጅማር](docs/getting-started.md) · [FAQ](docs/troubleshooting.md) · [ኣበርክቶ ግበሩ](CONTRIBUTING.md) · [መምርሒ ኣጠቓቕማ (ብቻይንኛ)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## ብAnthropic ተሰላቺና
1218
@@ -21,7 +27,9 @@
2127
2228**ውጽኢት ምፍታሽ ከባቢ ምስ Cage፤**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| መርመራ መርበብን ምፍላይን | ናይ ማሕበረሰብ መርመራ መርበብ መዳህሰሲ |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="መርመራ መርበብን ምፍላይን" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="ናይ ማሕበረሰብ መርመራ መርበብ መዳህሰሲ" width="400" /></a> |
2533
2634**ቀንዲ መተሓላለፊ Cage፤**
2735
@@ -33,6 +41,9 @@
3341- **ነቲ እተካፍሎ ተቖጻጸሮ።** እቲ ነባሪ ናይ ስራሕ ቦታን ብግልጺ ዝተኸፍቱ ናይ ፕሮጀክት ማህደርን ጥራይ እዮም ዝካፈሉ። ናይቲ ኣአንጋዲ ናይ Claude መእተዊ ኩነታት፣ ናይ መርበብ ሓበሬታ ፕሮፋይላትን SSH መፍትሕታትን ብኣውቶማቲክ ኣይኣትዉን እዮም።
3442- **ኩነታት መርበብካ ርአ።** ኣብ ውሽጢ ዝተሃንጸ ምሕደራ ፕሮክሲ መርበብ ምዝገባታት ከተእቱ፣ መወዳእታ ነጥብታት ክትመርጽን መውጽኢ IP ክትምርምርን የኽእለካ። እቲ ከባቢ ክሳብ ወሳኒ ምፍታሽ ዝሓልፍ ካብ መስመር ወጻኢ ይጸንሕ። እቲ ናይ መርበብ ፕሮክሲ እንተዘይተረኺቡ፡ ናብ ቀጥታዊ ምትእስሳር ዝኾነ ምምላስ የለን።
3543- **ኣብ ዝቕጽል ግዜ ቀጽል።** መሳርሒታት፡ ፋይላትን ናይ ምእታው ኩነታትን ኣብቲ ቨርቹዋል ዲስክ ይጸንሑ። መስኮት ምስ ዓጸኻ ናይ ድሕረ ባይታ ዕማማት ክቕጽሉ ይኽእሉ።
44新增:- **ብዙሓት ናይ Claude Code ኣካውንታት ኣመሓድር።** ንሓደስቲ Claude ተርሚናላት ኣካውንት ይምደብ፤ ናይ 5 ሰዓትን 7 መዓልትን ኣጠቓቕማ ገደባት ክትርኢ ትኽእል። ዝሰርሑ ዘለዉ ተርሚናላት ኣካውንት ብኣውቶማቲክ ኣይቀይሩን።
45新增:- **ካብ ስልክኻ ስራሕ ቀጽል።** ናይ ልምዓት ሞባይል ክላየንት ምስ ኮምፒውተር ተራኺቡ ዝተወደቡ CLI ክፍለ ግዜታትን ፍቓድ መሳርሒታትን የቕርብ፤ ናይ ርሑቕ ቦታ ዳህሳሲ ፍሉይ ፍቓድ የድልዮ። ነቲ ሞባይል ክላየንት ካብ ምንጪ ኮድ ክትሃንጾ ኣለካ፤ ዝኾነ ንቡር ተርሚናል ኣይቆጻጸርን።
46新增:- **Cage ኣብ ክላውድ ኣካይድ።** ነቲ መስፈርታት ዘማልእ Linux x86_64 VPS ዝተተኽለ Cage ብSSH ተራኸቦ፤ KVM ኣየድልን። ዳታን መውጽኢ መርበብን ኣብ ሰርቨር እዮም።
3647
3748## ቅልጡፍ ምጅማር
3849
@@ -54,7 +65,7 @@ Cage macOS፣ Windows እና Linux ይድግፍ፦ Apple Silicon ምስ macOS 14
5465
5566እቲ መተካእታ ንወርክቤንችን ኔትወርክ ፕሮክሲ ኮርን የጠቓልል። መዓልታዊ ኣጠቓቕማ Go, Node.js, Docker, ወይ Clash ምትካል ኣየድልዮን እዩ። መጀመርታ ምጅማር ሕጂ ውን ናይ ሊኑክስ ምስልን መሳርሒታት ምዕባለን ንምውራድ ናይ ኢንተርነት ምትእስሳር የድሊ። Cage ናይ መርበብ ፕሮክሲ ኣገልግሎት ይኹን ናይ Claude ኣካውንት ኣይህብን እዩ።
5667
57删除:ናይ ሕጂ ስሪት፤ `0.1.1-alpha`. እቲ ምንጪ ኮድ፡ መርበብ ሓበሬታን ምውጻእን ንህዝቢ ዝቐርብ እዩ። ንመተካእታ ምፍራም፣ ኣፕል ኖታራይዜሽንን ስፍሓት ምጽዳቕን ዝምልከት ናይ ነፍሲ ወከፍ ምውጻእ መዘኻኸሪታት ተወከስ። ጽሩይ-ማሽን ምትካል፡ ኣብ macOS 14 ዝሰርሓ ፊዚካዊ ማክስ ምትእስሳር፡ ሓቀኛ ክላውድ ኣካውንት ፍቓድ፡ ከምኡ’ውን ናይ ሞዴል ሕቶታት ሕጂ’ውን ምሉእ ምጽዳቕ የድልዮም።
68新增:ንዝርከቡ ወግዓዊ ስሪታት [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) ተወከስ። እቲ ምንጪ ኮድ፡ መርበብ ሓበሬታን ምውጻእን ንህዝቢ ዝቐርብ እዩ። ንመተካእታ ምፍራም፣ ኣፕል ኖታራይዜሽንን ስፍሓት ምጽዳቕን ዝምልከት ናይ ነፍሲ ወከፍ ምውጻእ መዘኻኸሪታት ተወከስ። ጽሩይ-ማሽን ምትካል፡ ኣብ macOS 14 ዝሰርሓ ፊዚካዊ ማክስ ምትእስሳር፡ ሓቀኛ ክላውድ ኣካውንት ፍቓድ፡ ከምኡ’ውን ናይ ሞዴል ሕቶታት ሕጂ’ውን ምሉእ ምጽዳቕ የድልዮም።
5869
5970ምሕዳስ macOS እና Windows ብዝተመርጸ ፕሮክሲ ይወርድ፤ ናብ ቀጥታ ርክብ ኣይቅየርን። ቅድሚ ምትካል ስራሕ ዓቅብን ደው ኣብልን። macOS ናይ ሓደ ኣሕታሚ Developer ID ፊርማን ምርግጋጽ Appleን የድልዮ፤ Windows ዝእመን Authenticode ፊርማን ተመሳሳሊ ህዝባዊ መፍትሕ ኣሕታሚን የድልዮ። ዘይተፈረመ Windows ቅድመ ርእይቶን Linuxን ብኢድ ይሕደሱ። [ምሕዳስን ምእላይን](docs/getting-started.md#升级与卸载)።
6071
@@ -96,7 +107,9 @@ Cage macOS፣ Windows እና Linux ይድግፍ፦ Apple Silicon ምስ macOS 14
96107
97108እቲ ፕሮጀክት ብቕልጡፍ ይምዕብል ኣሎ። ርእይቶ ንምክፋል ኣብቲ ናይ ማሕበረሰብ ጉጅለ ​​ተጸንበሩ፤ ሕብረተሰብ ዝሕልዉ ሰባት ድሉዋት እዮም።
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## መበቆልን ፍቓድን ምሃብ
102115
@@ -119,3 +132,12 @@ Cage ናጻ ማሕበረሰባዊ ፕሮጀክት ኮይኑ ምስ ኣንትሮ
119132- [code-server](https://github.com/coder/code-server): እቲ ኣብ መርበብ ሓበሬታ ዝተመርኮሰ ናይ ኮድ ኣርታዒ።
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox): መወከሲታት ንሃዋህው ስራሕን ዲዛይን ምትእስሳርን.
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) ከምኡ’ውን... [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian): መወከሲታት ንናይ መርበብ ምፍታሽን ናይ ድሕነት መርመራታትን።
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage GitHub Star History" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
修改README.zh-TW.md+29 −7看文件
@@ -1,12 +1,18 @@
1删除:# Claude Cage
1新增:<div align="center">
22
3删除:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
3新增:<h1>Claude Cage</h1>
44
55**把 Claude 大小姐關起來,為了更好地保護我們的相遇**
66
7删除:<img src="assets/claude-cage-character.png" alt="hugo" style="zoom: 25%;" />
7新增:<img src="assets/claude-cage-character.png" alt="Claude Cage" width="320" />
8新增:
9新增:[![Release](https://img.shields.io/github/v/release/Lee-xeo/Claude-Cage?include_prereleases)](https://github.com/Lee-xeo/Claude-Cage/releases) [![CI](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Lee-xeo/Claude-Cage/actions/workflows/ci.yml) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
810
9删除:[專案主頁](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [下載應用程式](https://lee-xeo.github.io/Claude-Cage/zh-TW/#download) · [開始使用](docs/getting-started.md) · [常見問題](docs/troubleshooting.md) · [參與開發](CONTRIBUTING.md)
11新增:**[專案主頁](https://lee-xeo.github.io/Claude-Cage/) · [Français](https://lee-xeo.github.io/Claude-Cage/fr/) · [下載應用程式](https://lee-xeo.github.io/Claude-Cage/zh-TW/#download) · [開始使用](docs/getting-started.md) · [常見問題](docs/troubleshooting.md) · [參與開發](CONTRIBUTING.md) · [使用文件(簡體中文)](https://lee-xeo.github.io/Claude-Cage/docs/)**
12新增:
13新增:[简体中文](README.md) · [繁體中文](README.zh-TW.md) · [Русский](README.ru.md) · [العربية](README.ar.md) · [فارسی](README.fa.md) · [한국어](README.ko.md) · [Español](README.es.md) · [မြန်မာဘာသာ](README.my.md) · [Беларуская](README.be.md) · [پښتو](README.ps.md) · [دری](README.prs.md) · [አማርኛ](README.am.md) · [Soomaali](README.so.md) · [ትግርኛ](README.ti.md) · [Français](README.fr.md)
14新增:
15新增:</div>
1016
1117## 受夠了 Anthropic
1218
@@ -21,7 +27,9 @@ Claude Cage 是一個輕量 Linux 虛擬機器,把 Linux 終端、瀏覽器和
2127
2228**使用 Cage 的環境檢測結果:**
2329
24删除:<img src="assets/network-checks.png" alt="image-20261101144540952" style="zoom:25%;" /><img src="assets/community-browser-check.png" alt="image-20261101144620093" style="zoom:18%;" />
30新增:| 網路與隔離檢查 | 社群瀏覽器檢查 |
31新增:| :---: | :---: |
32新增:| <a href="assets/network-checks.png"><img src="assets/network-checks.png" alt="網路與隔離檢查" width="400" /></a> | <a href="assets/community-browser-check.png"><img src="assets/community-browser-check-cropped.png" alt="社群瀏覽器檢查" width="400" /></a> |
2533
2634**Cage 執行主介面:**
2735
@@ -33,6 +41,9 @@ Claude Cage 是一個輕量 Linux 虛擬機器,把 Linux 終端、瀏覽器和
3341- **控制共享範圍。** 只共享預設工作區和明確開啟的專案資料夾;主機的 Claude 登入、瀏覽器配置和 SSH 金鑰不會自動匯入。
3442- **看清網路狀態。** 內建代理管理支援匯入訂閱、選擇節點和檢查出口。關鍵檢查未透過時,環境保持離線;代理不可用時沒有直連回退。
3543- **下次繼續使用。** 工具、檔案和登入狀態儲存在虛擬磁碟裡,關閉視窗可以保留後臺任務。
44新增:- **管理多個 Claude Code 帳號。** 為新建的 Claude 終端分配帳號,查看 5 小時/7 天額度;執行中的終端不會自動換號。
45新增:- **用手機接續工作。** 手機開發客戶端連接電腦,使用結構化 CLI 會話及工具審批;遠端瀏覽器需單獨授權。手機端需自行建置開發版本,無法接管任意普通終端。
46新增:- **在雲端執行環境。** 透過 SSH 連接部署在符合條件的 Linux x86_64 VPS 上的 Cage,無需 KVM;資料與網路出口位於伺服器。
3647
3748## 快速開始
3849
@@ -54,7 +65,7 @@ Cage 支援 macOS、Windows 和 Linux:macOS 14+ 的 Apple Silicon Mac、Window
5465
5566安裝包隨附工作臺和代理核心,日常使用無需安裝 Go、Node.js、Docker 或 Clash。首次啟動仍需聯網下載 Linux 映象與開發工具;Cage 不提供代理服務或 Claude 賬戶。
5667
57删除:當前版本為 `0.1.1-alpha`。原始碼、主頁與發行物公開;安裝包的簽名、公證和驗收範圍以對應 Release 說明為準。乾淨機器安裝、macOS 14 實機相容性、真實 Claude 授權與模型請求仍需完整驗收。
68新增:公開版本以 [Releases](https://github.com/Lee-xeo/Claude-Cage/releases) 為準。原始碼、主頁與發行物公開;安裝包的簽名、公證和驗收範圍以對應 Release 說明為準。乾淨機器安裝、macOS 14 實機相容性、真實 Claude 授權與模型請求仍需完整驗收。
5869
5970支援應用程式內更新的 macOS 和 Windows 版本透過所選代理下載,無直連回退;安裝前請儲存並停止工作。macOS 要求相同發布者的 Developer ID 簽章並通過 Apple 驗證,Windows 要求可信 Authenticode 簽章及相同發布者公鑰。Windows 未簽章預覽版和 Linux 系統包需手動更新。詳見[升級與解除安裝](docs/getting-started.md#升级与卸载)。
6071
@@ -96,7 +107,9 @@ Cage 支援 macOS、Windows 和 Linux:macOS 14+ 的 Apple Silicon Mac、Window
96107
97108本專案仍在快速迭代中,歡迎加入交流群提意見,歡迎社群大佬一起維護
98109
99删除:<img src="assets/community-qq.png" alt="qq" style="zoom:25%;" />
110新增:<p align="center">
111新增: <a href="assets/community-qq.png"><img src="assets/community-qq.png" alt="QQ · 1134250870" width="240" /></a>
112新增:</p>
100113
101114## 來源與許可
102115
@@ -119,3 +132,12 @@ Cage 是獨立社群專案,與 Anthropic 無隸屬關係。
119132- [code-server](https://github.com/coder/code-server):瀏覽器中的程式碼編輯器。
120133- [AIO Sandbox](https://github.com/agent-infra/sandbox):工作環境和互動體驗參考。
121134- [claude-switcher](https://github.com/YOURSJEYO/claude-switcher) 和 [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian):網路檢查和安全診斷方法參考。
135新增:
136新增:
137新增:<a href="https://www.star-history.com/?repos=Lee-xeo%2FClaude-Cage&amp;type=date">
138新增: <picture>
139新增: <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date&amp;theme=dark" />
140新增: <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" />
141新增: <img alt="Claude Cage 的 GitHub Star 成長曲線" src="https://api.star-history.com/svg?repos=Lee-xeo/Claude-Cage&amp;type=Date" width="800" />
142新增: </picture>
143新增:</a>
删除RELEASING.md+0 −51
@@ -1,51 +0,0 @@
1删除:# Releasing agent-vm
2删除:
3删除:This is the retained upstream release procedure. For Claude Cage, use
4删除:[the macOS release guide](docs/releasing.md), [public distribution and Pages deployment](docs/public-releases.md), and `scripts/package-macos.sh`.
5删除:The upstream Homebrew/Nix/multi-platform artifacts are not Cage releases.
6删除:
7删除:`release.sh` checks a commit, tags it, builds a tarball per platform from the tag, publishes them
8删除:on GitHub with their `SHA256SUMS`, and prints the Homebrew lines. It runs on a Mac: the macOS
9删除:binaries need its SDK and `codesign`; Linux and Windows are cross-built there. It bumps and
10删除:commits nothing.
11删除:
12删除:Needs: git, make, Go, the Xcode command line tools, `gh` logged in, and for signed Windows
13删除:binaries `osslsigncode` (`brew install osslsigncode`).
14删除:
15删除:## A release
16删除:
17删除:1. In an ordinary commit on the branch: `NEXT_VERSION := X.Y.Z` in the Makefile, and CHANGELOG.md's
18删除: `## Unreleased` renamed `## X.Y.Z`. Push it, and wait for CI (the `go` workflow) to pass on it.
19删除:2. On the Mac, in a clean clone of that commit:
20删除:
21删除: ```bash
22删除: ./release.sh X.Y.Z --dry-run # every check and the builds, nothing changed
23删除: ./release.sh X.Y.Z
24删除: ```
25删除:
26删除: - Windows binaries, signed: `AGENT_VM_WINDOWS_PFX=<certificate and key, .pfx>` and
27删除: `AGENT_VM_WINDOWS_PFX_PASS=<its password>`. Without, they go out unsigned, with a warning.
28删除: - Homebrew: `AGENT_VM_TAP=<clone of the tap>` updates `Formula/agent-vm.rb` there (each
29删除: platform's url and sha256) and prints the commands to commit it.
30删除: - The Linux `.deb` and `.rpm` (`packaging/nfpm.yaml`) are made with nfpm, built with Go at the
31删除: version pinned in `release.sh` (`NFPM_VERSION`; `AGENT_VM_NFPM=<binary>` uses another). They
32删除: are release assets and in `SHA256SUMS`, after the tarballs.
33删除: - A run that tagged and then failed is resumed by running it again.
34删除:3. In a commit after it: `NEXT_VERSION` to the next version, and a new `## Unreleased` section.
35删除:
36删除:## After it
37删除:
38删除:- Check: `gh release view vX.Y.Z` shows it, and on a test machine
39删除: `curl -fsSL https://www.agent-vm.org/install.sh | sh -s -- --version X.Y.Z` gives X.Y.Z.
40删除:- The Homebrew formula has one url and sha256 per platform (`on_macos`/`on_linux`,
41删除: `on_arm`/`on_intel`), installing the tarball's `agent-vm`: that is the shape `AGENT_VM_TAP` updates.
42删除: Then, in the tap: `brew audit --strict sylvinus/tap/agent-vm`, `brew reinstall` and `brew test`
43删除: before pushing.
44删除:- `flake.nix` builds from source, with its `vendorHash` for the Go dependencies. When go.mod or
45删除: go.sum change, `release.sh` stops until it is updated: on a machine with Nix, set
46删除: `pkgs.lib.fakeHash`, run `nix build .#agent-vm` (Linux), put the hash it prints back, and update
47删除: the `go.mod+go.sum:` checksum line next to it (the error gives the value). The hash is of the
48删除: downloaded modules only (`proxyVendor`), so patches to `third_party/` leave it as it is. Do the
49删除: same after `nix flake update`: `flake.lock` pins nixpkgs, and with it the Go that downloads them.
50删除:- `--not-latest` publishes a release without making it GitHub's latest: the installer's default
51删除: stays the previous release, and the Homebrew formula is left alone, `AGENT_VM_TAP` or not.
新增assets/community-browser-check-cropped.png看文件

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

删除docs/BACKLOG.md+0 −41
@@ -1,41 +0,0 @@
1删除:# Upstream agent-vm backlog
2删除:
3删除:This file retains upstream ideas and their original status. It is historical reference, not the Cage roadmap or a statement of current platform support. Cage desktop targets Apple Silicon macOS; current usage and development entry points are in the [Cage documentation index](README.md).
4删除:
5删除:Known upstream gaps and ideas follow.
6删除:
7删除:## Windows, natively
8删除:
9删除:Status: built, not yet tried.
10删除:
11删除:agent-vm runs on Windows without Git Bash now, its paths handled as `C:/...`
12删除:and seen by the VM as `/c/...`, as in 0.2, and its tests run on any OS. Nothing
13删除:of it has run on a Windows machine yet: setup, the shares, the network
14删除:isolation, the port check.
15删除:
16删除:## Review the agent's writes
17删除:
18删除:Status: idea.
19删除:
20删除:Every write of the VM goes through agent-vm's SFTP server. It could keep them
21删除:aside and let you review the diff, and apply all or part of it to the real
22删除:folder. A first step: the list of every path the VM wrote during a session.
23删除:
24删除:## Run a VM inside the VM
25删除:
26删除:Status: needs an M3.
27删除:
28删除:A `--allow-nested-vm` flag, for testing VM tooling from in there. Lima supports
29删除:nested virtualization, but it is off by default and cannot be turned on
30删除:unconditionally: below an Apple M3, Lima fails to start the VM instead of
31删除:degrading, so every VM would stop starting. The flag would have to detect host
32删除:support first. Nothing here has an M3 to test it on. It would also hand the
33删除:agent a hypervisor interface.
34删除:
35删除:## Run the VMs on another machine
36删除:
37删除:Status: designed, not built.
38删除:
39删除:One install on your laptop driving VMs on a box you rent. Close the laptop, the
40删除:agent keeps working. Open questions: addressing a VM by name rather than by
41删除:working directory, and who owns deleting a workspace.
删除docs/agent-vm-upstream.md+0 −57
@@ -1,57 +0,0 @@
1删除:# agent-vm
2删除:
3删除:Run AI coding agents in a disposable Linux VM per project, with permissions bypassed. The VM gets your project directory and nothing else of yours: no SSH keys, no browser sessions, no rest of your disk.
4删除:
5删除:One binary with [Lima](https://lima-vm.io/) built in. 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 and Linux; Windows is experimental.
6删除:
7删除:**Documentation: [www.agent-vm.org](https://www.agent-vm.org/)** · Chat: [#agent-vm:matrix.org](https://matrix.to/#/#agent-vm:matrix.org)
8删除:
9删除:## Install
10删除:
11删除:```bash
12删除:curl -fsSL https://www.agent-vm.org/install.sh | sh
13删除:```
14删除:
15删除:Or `brew install sylvinus/tap/agent-vm`; on Linux, the `.deb` or `.rpm` of the [latest release](https://github.com/sylvinus/agent-vm/releases/latest), or `nix run github:sylvinus/agent-vm` (QEMU included). From a clone, with Go (and on macOS the Xcode command line tools): `./agent-vm.sh install` builds it and links it onto your `PATH`; after a `git pull`, run it again. See [Install](https://www.agent-vm.org/#install) for prerequisites.
16删除:
17删除:## Use
18删除:
19删除:```bash
20删除:agent-vm setup # build the base template, once
21删除:cd your-project
22删除:agent-vm claude # or opencode, codex, vibe, pi
23删除:agent-vm shell # a shell in this project's VM
24删除:agent-vm run npm test # one command in it
25删除:agent-vm code # VS Code in the browser (setup --preinstall=default,code-claude)
26删除:agent-vm --readonly shell # nothing on the host writable from the VM
27删除:agent-vm --scratch claude # nothing of yours mounted, VM deleted on exit
28删除:agent-vm stop # or rm; list for all VMs
29删除:agent-vm doctor # what is wrong, and what to run
30删除:```
31删除:
32删除:Everyday use: [Usage](https://www.agent-vm.org/#usage). Every command, option, file and variable: [Reference](https://www.agent-vm.org/#reference).
33删除:
34删除:## Security
35删除:
36删除:The agent is root in its VM and has the network. What it can reach on your machine is what crosses the shares:
37删除:
38删除:- Every `.git` and `.hg`, and the folder of a `core.hooksPath` inside the project, are read-only for the VM: the file server built into agent-vm enforces it on your machine. Before a VM boots, agent-vm stops on what it cannot protect and asks whether to go on: [Protecting .git](https://www.agent-vm.org/#git).
39删除:- Files your machine runs without asking (`.envrc`, `.vscode/tasks.json`, `.pre-commit-config.yaml`...) are guarded: when the VM writes one, a dialog asks you first, and the write is refused where none can be shown. Add or remove paths in `~/.agent-vm/guarded`.
40删除:- The agent writes the project folder: on your machine, open it in your editor and use git there, and run everything else in the VM. Open agent-vm projects in VS Code's Restricted Mode, and never connect an editor to the VM over SSH (Remote-SSH trusts the VM with your machine: [SSH from your machine](https://www.agent-vm.org/#ssh-from-your-machine)). Editors, agents, commit hooks and commands you run on the host can run code the agent wrote: [What else reads the project](https://www.agent-vm.org/#what-else-on-your-machine-reads-the-project).
41删除:- The VM reaches the internet, not your machine nor your local network: what it may reach there, or the only domains it may reach, go in `~/.agent-vm/network`. A port the VM listens on is forwarded to your machine's loopback, unless something there uses it already or it is in 32768-60999, the range the guest picks random ports from.
42删除:
43删除:## Development
44删除:
45删除:```bash
46删除:make # _output/bin/agent-vm
47删除:make test-go # no VM; 0.2's recorded behavior where it is compared
48删除:go test -tags e2e ./internal/vm/ ./internal/cli/ # real VMs
49删除:make check-third-party test-third-party # Lima, sshocker, pkg/sftp, gvisor-tap-vsock: upstream + patches/
50删除:make fuzz FUZZTIME=5m # each fuzzer; their seeds run with the tests
51删除:```
52删除:
53删除:Releases: [RELEASING.md](RELEASING.md). The website is in [`www/`](www/README.md). Changes: [CHANGELOG.md](CHANGELOG.md).
54删除:
55删除:## License
56删除:
57删除:MIT
删除docs/ci-cd.md+0 −104
@@ -1,104 +0,0 @@
1删除:# 三平台检查与发布
2删除:
3删除:Cage 的日常推送会检查 macOS、Windows 和 Linux,并保存测试安装包。公开发布需要用户明确要求后单独触发;日常推送、测试重跑和测试包下载都不会升级版本号或创建 Release。
4删除:
5删除:工作流需要与对应的三平台应用源码一并合入远端后才生效。本地保存配置不会改变 GitHub 上既有工作流的行为;首次接入应先完成源码整理与三平台检查,再启用显式发布入口。
6删除:
7删除:## 日常开发
8删除:
9删除:向工作分支或 main 推送代码、提交 Pull Request 后,`Three-platform checks and test packages` 会运行以下流程:
10删除:
11删除:1. 检查版本一致性、发布逻辑测试和工作流语法。
12删除:2. 从同一个提交分别构建 Apple Silicon macOS、Windows x64 和 Linux x64。
13删除:3. 执行对应测试与安装检查,保存可下载的测试包和验收报告。
14删除:
15删除:在仓库的 [Actions 页面](https://github.com/Lee-xeo/Claude-Cage/actions) 打开本次运行,可在 Artifacts 中下载测试包。测试包沿用 `VERSION` 中的版本号,每次运行以提交 SHA 区分;macOS 包保留完整 App 权限,Windows 包明确标为未签名,Linux 输出 `.deb`。测试包不会进入应用更新源。
16删除:
17删除:Windows 的 NSIS 文件匹配按打包工具所在平台使用路径分隔符,Windows runner 和其他主机上的交叉打包共用一份安装脚本。Linux 原生验收在 Ubuntu 22.04 托管 runner 上的一次性 Debian 12 容器内以普通用户运行;Ubuntu 24.04 的宿主策略会额外限制容器用户的 UID 映射。容器放开 bubblewrap 所需的外层 AppArmor、seccomp 和挂载限制,并先验证命名空间可用,应用自身的 WebKit 沙箱保持开启。这些容器设置不进入发行包,也不改变用户主机的安全配置。
18删除:
19删除:Windows 配套的 QEMU 源码归档使用固定提交、换行设置和 tar 权限,生成后核对固定摘要再写入缓存,避免开发者或 runner 的 Git 默认设置改变归档内容。该校验在安装器压缩前执行,摘要不符时立即停止。
20删除:
21删除:官网文件的普通推送只做检查和构建。官网部署随显式发布流程完成,也可以由维护者明确运行网站部署工作流。
22删除:
23删除:## 明确发版后的自动流程
24删除:
25删除:用户要求发版后,维护者在 main 上运行 `Publish Cage after an explicit release request`。也可以在收到用户的发版指令后执行:
26删除:
27删除:```sh
28删除:gh workflow run release.yml --repo Lee-xeo/Claude-Cage --ref main -f bump=prerelease
29删除:```
30删除:
31删除:`prerelease` 用于继续当前 Alpha/Beta 序列;`patch` 发布修订版本(已有预发行时转为对应正式版);`minor` 和 `major` 分别提升次版本、主版本。流程从源码版本、已存在的规范版本标签和 Release 中取最高版本作为起点,避免复用已占用的版本,包括草稿。
32删除:
33删除:例如最高已用版本为 `0.2.0-alpha.1`,选择 `prerelease` 会生成 `0.2.0-alpha.2`,选择 `patch` 会生成 `0.2.0`。普通推送不会执行这些计算和修改。
34删除:
35删除:发布流程依次执行:
36删除:
37删除:1. 检查签名、公证与对应源码材料是否配置齐全。缺少任何必需材料就停止,尚不创建版本提交。
38删除:2. 在 `codex/release/<运行编号>` 候选分支同步 `VERSION` 与 UI、官网的 package/lock 版本,只修改五个版本文件。
39删除:3. 三个平台构建同一个候选提交,完成各自的检查。macOS 执行 Developer ID 签名与 Apple 公证,Windows 执行可信 Authenticode 签名,Linux 生成系统安装包。
40删除:4. 核对三端产物版本和源码 SHA,一起校验安装包、随附组件对应源码及统一 `SHA256SUMS`。
41删除:5. 确认 main 没有被其他提交推进,原子快进 main 并创建版本标签。创建草稿 Release,上传并核对全部附件,最后公开发布。
42删除:6. 重新验证本次公开版本,并部署指向该版本的官网。
43删除:
44删除:任一平台失败时不会公开 Release。构建过程中 main 出现新提交,也会停止发布;流程不强推、不覆盖别人的提交。候选分支保留本次版本与提交,便于失败后继续。
45删除:
46删除:发布使用普通版本与预发行通道的既有规则。硬件虚拟化、真实桌面操作和 Claude 账户使用仍属于实机验收,不能由托管 CI 编译成功替代;发行说明需要如实说明范围。
47删除:
48删除:## 首次配置发布材料
49删除:
50删除:在仓库 Settings → Environments 中使用 `cage-release` 环境,仅允许 main 部署。日常构建不进入这个环境,也不接触签名材料。配置操作不会自行触发发版。
51删除:
52删除:以下内容放入该环境的 Secrets,不能提交到源码或粘贴到公开日志:
53删除:
54删除:| Secret | 用途 |
55删除:|---|---|
56删除:| `CAGE_MACOS_P12_BASE64` | 含 Developer ID Application 私钥的 P12 文件,以 Base64 保存 |
57删除:| `CAGE_MACOS_P12_PASSWORD` | P12 导出密码 |
58删除:| `CAGE_MACOS_SIGNING_IDENTITY` | 完整的 Developer ID Application 身份名称 |
59删除:| `CAGE_MACOS_NOTARY_KEY_BASE64` | App Store Connect 团队 API 私钥,以 Base64 保存 |
60删除:| `CAGE_MACOS_NOTARY_KEY_ID` | API Key ID |
61删除:| `CAGE_MACOS_NOTARY_ISSUER_ID` | API Issuer ID |
62删除:| `CAGE_MACOS_PROVISIONING_PROFILE_BASE64` | 可选;原生能力需要时提供对应 Provisioning Profile |
63删除:| `CAGE_ESIGNER_USERNAME` | 使用 eSigner 时,SSL.com 登录用户名 |
64删除:| `CAGE_ESIGNER_PASSWORD` | 使用 eSigner 时,SSL.com 登录密码 |
65删除:| `CAGE_ESIGNER_CREDENTIAL_ID` | 使用 eSigner 时,已启用的签名凭据 ID |
66删除:| `CAGE_ESIGNER_TOTP_SECRET` | 使用 eSigner 无人值守签名时,验证器的 TOTP 密钥;不是每 30 秒变化的六位验证码 |
67删除:| `CAGE_WINDOWS_PFX_BASE64` | 仅证书存储方案需要:含可信代码签名私钥的 PFX 文件,以 Base64 保存 |
68删除:| `CAGE_WINDOWS_PFX_PASSWORD` | 仅证书存储方案需要:PFX 密码 |
69删除:
70删除:Windows 签名方式和对应源码地址放入同一环境的 Variables:
71删除:
72删除:| Variable | 用途 |
73删除:|---|---|
74删除:| `CAGE_WINDOWS_SIGNING_PROVIDER` | 云签名填 `esigner`;留空或填 `certificate-store` 使用证书存储方案 |
75删除:| `CAGE_ESIGNER_CERTIFICATE_SERIAL` | 使用 eSigner 时,预期发布者证书的十六进制序列号,不含空格 |
76删除:| `CAGE_WINDOWS_QEMU_SOURCE_URL` | 经核对的完整 QEMU 对应源码归档公开 HTTPS 地址,不含认证信息或临时签名参数,包含随附库与固件源码 |
77删除:| `CAGE_WINDOWS_QEMU_SOURCE_SHA256` | 该归档的 SHA-256 |
78删除:
79删除:Windows 的普通开发包不需要证书。正式发布缺少可信证书时停止,不能用自签名证书或未签名包代替。eSigner 使用云端私钥,不要求 PFX;构建逐个签名应用、后端、Mihomo、卸载器和安装器,再由 Windows 验证信任链、时间戳及预期证书。任何一步失败就停止。首次签名的本机操作见 [Windows 维护者说明](windows.md#维护者构建与验收)。
80删除:
81删除:macOS 使用临时钥匙串,Windows 证书存储方案使用临时证书导入。eSigner 使用固定摘要的官方 CodeSignTool 和 Java 21,通过临时参数文件传递密码,进程命令行只包含该文件路径;运行结束清理参数文件及工具日志。保留服务端恶意软件检查设置。发布产物只包含安装包、对应源码和摘要;中间公证凭据、私钥与配置文件不进入附件。
82删除:
83删除:签名文件通常体积较小,按 GitHub Secret 的限制保存;首次使用前应在相应平台确认凭据可用。是否把账号密码和 TOTP 密钥交给 GitHub 必须由证书持有人决定;只做本机手动签名不需要保存这些 Secrets。材料存在不代表签名、公证或安装一定成功,正式构建仍会验证。
84删除:
85删除:## 失败后继续
86删除:
87删除:从原来的 Actions 运行选择重跑失败任务。相同运行编号复用同一个候选版本,不再次升级版本号。已经上传到本次私有草稿且摘要匹配的文件会复用;不匹配的本次草稿附件可重新上传。公开 Release 的附件不会被自动替换。
88删除:
89删除:如果发布已经完成而官网部署失败,可以重跑网站任务;发布步骤重跑会确认公开附件仍与验证结果一致。不要新建另一轮发布来重试同一个版本,也不要手工编辑仍在执行中的候选分支或草稿附件。
90删除:
91删除:若 main 已经有新提交,需要重新发起一次明确的发布请求,让新提交参与同一轮验证。Actions 测试产物默认保留 14 天;产物过期后需要重新构建对应候选提交。
92删除:
93删除:## 工作流与验证边界
94删除:
95删除:- `.github/workflows/ci.yml`:日常只读检查与测试包入口。
96删除:- `.github/workflows/release.yml`:显式发布入口及三端汇总。
97删除:- `macos-build.yml`、`windows-build.yml`、`linux-build.yml`:日常与发布共用的构建、检查契约。
98删除:- `.github/workflows/www.yml`:官网检查与显式部署,发布时使用明确的版本标签。
99删除:- `scripts/release-version.mjs`:版本选择、五文件同步内容与产物来源记录。
100删除:- `scripts/release-control.mjs`:候选提交、完整附件校验和发布重试。
101删除:
102删除:GitHub 允许通过 `workflow_call` 复用构建任务;环境凭据在实际执行的任务上加载。[GitHub 文档](https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows) 使用 `GITHUB_TOKEN` 创建的 push/Release 事件通常不会再触发其他工作流,因此发布入口直接调用网站工作流,不依赖隐式事件串联。[触发规则](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow)
103删除:
104删除:根目录 `release.sh` 保留的是上游 agent-vm 的发行流程,不用于 Cage 三平台自动发布。
删除docs/design/cloud-deployment.md+0 −98
@@ -1,98 +0,0 @@
1删除:# 云服务器部署与桌面远程连接
2删除:
3删除:Cage 可以把工作环境放在用户自己的 Linux 服务器上。本地电脑显示同一套工作台,负责键盘、输入法、剪贴板和明确选择的文件传输;服务器运行终端、浏览器、编辑器与 Claude Desktop,并保存项目、账户和网络配置。目标服务器无需 KVM,采用 rootless 容器运行环境。
4删除:
5删除:本文面向维护者,说明本地与云端如何协作、数据保存在哪里,以及必须验证的边界。服务器前提和安装步骤见[部署说明](../../deploy/cloud/README.md)。
6删除:
7删除:## 从本地进入云端工作台
8删除:
9删除:用户在工作台左侧栏打开“SSH”,添加服务器名称、SSH 地址、端口、用户名和本机密钥文件或 SSH agent。自定义安装可在“云端安装路径”填写服务器上的程序和配置路径。首次连接需要核对 SSH 主机指纹;指纹变化时停止连接,要求重新核对。密钥口令只参与本次连接,不保存到主机配置。
10删除:
11删除:SSH 身份验证完成后,客户端检测云端 Cage。已就绪的服务直接连接,已停止且能确认归属的用户服务自动启动。空配置目录须由用户点击「部署并连接」,客户端才上传程序和安装脚本。服务器准备独立的 rootless 引擎,从 Debian 基础镜像安装工作环境。云端就绪后,客户端取得一次性入口,在连接服务内换取会话。工作台随后显示服务器的账户解锁页。打开项目时选择服务器目录;上传仍使用本机文件选择器;下载记录区分服务器文件与已经另存到本机的副本。客户端始终显示当前主机,避免在错误的环境操作。
12删除:
13删除:同一个 Cage 应用提供本机与 SSH 两种运行方式。选择 SSH 时在左栏管理连接,打开应用默认进入本机首页,本机虚拟机由用户手动启动。本机存在运行中的环境或任务时,连接卡片提供停止、保留与取消。进程与数据归属见[桌面入口与资源设计](desktop-environments.md)。SSH 连接由客户端内置的 Go 实现负责,三个平台复用各自的原生窗口、文件选择器、剪贴板和输入法。Windows 需要 WebView2,Linux 需要 GTK/WebKitGTK。
14删除:
15删除:## 整体关系
16删除:
17删除:```mermaid
18删除:flowchart LR
19删除: subgraph Client[用户电脑]
20删除: UI[随客户端安装的工作台]
21删除: Native[原生窗口与本机文件操作]
22删除: Connection[本地连接服务]
23删除: UI --> Connection
24删除: UI --> Native
25删除: Native --> Connection
26删除: end
27删除: subgraph Server[用户的 Linux 云服务器]
28删除: Control[常驻 Cage 控制服务]
29删除: Files[已授权项目目录]
30删除: Proxy[内置代理与网络门槛]
31删除: Network[gVisor 用户态网络]
32删除: Container[独立用户命名空间中的持久容器]
33删除: Control --> Container
34删除: Control --> Files
35删除: Files -->|受目录约束的 SFTP / SSHFS| Container
36删除: Container -->|唯一 TAP 网络设备| Network
37删除: Network --> Proxy
38删除: end
39删除: Connection -->|SSH 内的 HTTP / WebSocket / SSE| Control
40删除: Proxy --> Internet[已选择的外部代理]
41删除:```
42删除:
43删除:云端控制服务保持回环监听,SSH 承担加密连接与主机身份验证。浏览器、桌面、声音和终端复用现有业务协议,不分别开放公网端口。本地只代理业务 API,不加载云端提供的工作台 HTML 或脚本;原生桥仍只接受本地受认证页面的调用。
44删除:
45删除:## 谁保存什么
46删除:
47删除:| 数据或操作 | 本地电脑 | 云服务器 |
48删除:| --- | --- | --- |
49删除:| 服务器连接配置 | 私有 `remote-hosts.json`;不保存密钥内容和口令 | 不保存客户端私钥 |
50删除:| 项目与工具 | 只保存用户明确下载的副本 | 持久项目目录及完整容器文件系统 |
51删除:| Cage 账户、浏览器资料、保险箱 | 提供解锁与使用界面 | 当前服务器配置的真源 |
52删除:| 网络节点、出口、DNS、时区和语言 | 显示与操作配置 | 执行配置并负责失败关闭 |
53删除:| 键盘习惯与界面布局 | 按客户端和远端实例保存 | 不因另一台客户端的键盘改变运行环境 |
54删除:| 网站上传与本机下载 | 选择文件、读取内容、另存、打开本机记录 | 接收上传内容,提供下载字节 |
55删除:| 快捷登录 | macOS 钥匙串保存受保护的设备凭据 | 保存对应授权;Windows/Linux 沿用密码入口 |
56删除:
57删除:默认服务端配置仍位于 `~/.claude-cage`。统一桌面入口将连接记录放在本机配置目录的 `desktop-entry/` 子目录,首次启动兼容原配置目录和旧开发客户端 `client/` 中的主机列表与云端下载记录。显式配置路径会转为绝对路径,并传给启动和文件助手。容器的完整可写文件系统属于 rootless 引擎的数据目录;图形化部署将引擎数据放在服务端配置目录的 `cloud-host/engine/data/`,手动部署示例使用 `container-engine/data/`,并记录实际存储位置。停止、更新应用和卸载管理程序均不得删除容器、引擎数据、账户或项目。
58删除:
59删除:macOS 的远程快捷登录同时绑定本机连接配置、已经核对的 SSH 指纹、云端实例身份和账户身份。两台服务器即使使用同样的目录,也不会共用本机钥匙串凭据。账户仍沿用每种快捷登录一份授权的现有模型;此功能不引入多租户或团队权限。
60删除:
61删除:## 连接身份与断线行为
62删除:
63删除:本机的一条连接配置由 `host_id` 标识;一份云端持久数据由随机生成并持久保存的 `instance_id` 标识;每次认证连接生成新的 `connection_id`。云端实例身份是 64 位小写十六进制字符串,不随 IP、端口、版本或进程变化。
64删除:
65删除:HTTP、文件助手、WebSocket 和 SSE 都绑定发起时的连接。切换主机或断开后,旧连接的请求被取消或拒绝;文件选择器、输入法与异步响应的迟到结果不能进入新主机。连接失败不会自动改为操作本地 Cage,也不会重放可能已经成功的修改请求。
66删除:
67删除:退出桌面应用或断开 SSH 释放本地连接。隐藏窗口与退出分别处理。云端服务、终端和浏览器继续运行,重连读取已有会话。“锁定 Cage”与“停止环境”仍是明确的云端操作。客户端更新只管理本地程序与连接;服务器更新需要独立保存工作并停止相关服务。
68删除:
69删除:## 无 KVM 容器的隔离方式
70删除:
71删除:服务器需要 cgroup v2、可委派的 CPU/内存/进程数控制器、用户命名空间、FUSE、TUN 和可用的 rootless 容器引擎。当前验收使用独立的 rootless Docker;Podman 的命令适配存在,但没有真实验收时应标为未验证。Docker 的 systemd 容器在自己的 cgroup 命名空间内挂载委派的 cgroup2,不能绑定宿主的整棵 cgroup 文件系统。
72删除:
73删除:工作容器以 `network=none` 创建,不发布容器端口。容器内部的 TAP 助手将以太网帧送到宿主 Cage 网络进程。这个网络进程调用已有的 TCP 目的地限制、代理拨号、DNS 与联网授权门槛;三个钩子均必须存在,不能回落到宿主直连。停止网关后关闭所有出站连接,容器保留离线文件和进程。
74删除:
75删除:TAP 助手、systemd 和 SSHFS 所需权限局限在 rootless 用户命名空间内。容器不使用特权模式,不接入宿主网络或进程命名空间,不获得 Docker socket,也不直接绑定宿主项目目录。项目继续通过现有受目录约束的文件传输服务共享,保留 Git 元数据保护。容器内跳过 zram、内核模块与 swap 初始化,资源限制由服务器的 cgroup 承担。
76删除:
77删除:每次完整启动时,运行环境先在容器自己的挂载命名空间建立共享传播组,再启动项目共享与应用。这样,已经运行的浏览器和编辑器也能看到后来添加的项目;应用的子命名空间只接收项目挂载,不向宿主反向传播。重连不会重设传播组或重启应用。旧容器若仍使用不兼容的私有挂载状态,界面要求先保存工作、停止并重新启动环境,保留原容器和完整文件系统。
78删除:
79删除:CPU、内存与进程数的硬上限设在宿主用户 systemd 管理的父级资源组。容器只能看到自己的子级 cgroup,内部 root 可以管理服务分配,但提高内层上限仍受外部父级限制。启动时核验引擎的 cgroup v2/systemd 模式、实际父级归属和内核读回值;核验失败时不发布环境就绪状态,界面明确显示资源限制尚未通过核验。
80删除:
81删除:容器与云主机共享内核,其隔离强度与原有虚拟机不同。云主机管理员仍能访问此用户的进程和数据;该运行方式不提供互不信任租户之间的安全保证。Cage 的网络检查只报告实际策略与采样证据,不宣称完整的容器逃逸防护审计已经完成。
82删除:
83删除:Docker 普通 bridge 默认提供出网能力;`internal` 网络仍允许访问网关对应的宿主服务,因此两者均不能直接替代 Cage 的受控网络。[Docker bridge](https://docs.docker.com/engine/network/drivers/bridge/) · [internal 网络边界](https://docs.docker.com/reference/cli/docker/network/create/#network-internal-mode---internal)。rootless 资源限制依赖 cgroup v2 与 systemd,部署时必须核对实际生效的限制。[Docker rootless 资源限制](https://docs.docker.com/engine/security/rootless/tips/#limiting-resources)。
84删除:
85删除:## 维护者从哪里修改
86删除:
87删除:| 范围 | 主要入口 |
88删除:| --- | --- |
89删除:| 主机配置、SSH、指纹、握手与连接代次 | `internal/remotehost/` |
90删除:| 本地业务转发、入口身份和文件助手 | `internal/workbench/remote_gateway.go`、`remote_entry.go`、`remote_files.go` |
91删除:| 容器生命周期、真实状态、TAP、SSH 与受控网络 | `internal/containerenv/` |
92删除:| 现有工作台的运行方式分派 | `internal/workbench/runtime.go`、`resources.go`、`safety.go` |
93删除:| 云端 CLI 与脚本导出 | `cmd/cage/container.go`、`cmd/cage/main.go` |
94删除:| 统一桌面入口、按需本机控制服务、SSH 切换 | `cmd/cage/`、`internal/workbench/desktop_entry.go`、`desktop_gateway.go`、`desktop_local.go` |
95删除:| 工作环境选择、连接状态与远程目录 | `ui/src/remote-hosts.jsx`、`client-context.mjs`、`project-dialog.jsx` |
96删除:| 原生文件、登录、更新与数据目录 | `desktop/Cage.swift`、`desktop/AccountDevice.swift`、`desktop/windows/`、`desktop/linux/` |
97删除:
98删除:原有本地虚拟机实现继续拥有其磁盘、网络与平台能力。容器使用真实的 `state/container/environment/` 目录、容器标识与运行检查,不生成虚假的 Lima 配置来通过现有判断。
删除docs/design/control-service.md+0 −57
@@ -1,57 +0,0 @@
1删除:# 控制服务的职责与资源归属
2删除:
3删除:本文面向修改工作台后端的维护者,用于定位业务操作、连接和退出流程。用户操作及界面约定见[工作台设计](workbench.md),联网授权见[网络检查设计](network-checks.md),代理进程与凭据见[内置代理设计](managed-proxy.md)。
4删除:
5删除:## 调用关系
6删除:
7删除:桌面窗口加载 React 工作台。工作台通过本机受认证的 HTTP、WebSocket 和 SSE 接口调用控制服务;控制服务协调同一份配置的持久 VM、项目共享、终端与浏览器。客机中的网页、编辑器和终端进程不获得主机管理接口的凭据。
8删除:
9删除:远程模式由本地连接服务提供应用自带的工作台,再通过 SSH 转发业务接口。云端控制服务协调持久容器、服务器项目与网络门槛,桌面断开连接后云端任务继续。两端的身份边界见[云端部署设计](cloud-deployment.md)。桌面连接服务的退出条件以及本机控制服务按需启动、按状态回收的方案见[桌面入口与资源设计](desktop-environments.md)。
10删除:
11删除:`internal/workbench/` 内的入口按职责组织,服务接口保持包内可见。当前只有工作台调用这些服务,尚未引入新的界面框架或公共 SDK。
12删除:
13删除:| 位置 | 负责什么 | 由谁持有资源 |
14删除:| --- | --- | --- |
15删除:| `server.go`、`control_lifecycle.go` | 监听、认证、路由、控制身份与空闲接管 | 控制服务持有配置锁和监听器 |
16删除:| `lifecycle.go`、`lifecycle_http.go` | 请求准入、服务取消、活动等待和受控退出 | 控制服务持有生命周期与请求计数 |
17删除:| `jobs.go` | 作业准入、串行执行、取消、进度与结果 | 作业管理器持有执行上下文;细节见[作业约定](workbench.md#作业与后台监测) |
18删除:| `jobs_service.go`、`jobs_http.go` | 联网意图与账户完成规则、HTTP 响应 | 工作台保存业务状态;HTTP 返回作业快照 |
19删除:| `terminal_service.go`、`terminal_session.go` | 会话创建、容量、进程回收、历史输出和订阅 | 终端管理器持有 PTY,会话持有输入队列、读写循环与订阅 |
20删除:| `terminal.go`、`websocket.go` | 终端协议、WebSocket 升级与请求取消 | 每个请求持有自己的显示连接 |
21删除:| `browser_client.go`、`browser_service.go` | 客机控制运输、就绪状态、项目授权和宿主路径转换 | 浏览器客户端持有 HTTP 连接池,每个响应持有取消资源 |
22删除:| `browser_http.go`、`browser_files.go`、`browser_workspaces.go` | 浏览器动作、文件流和事件快照的 HTTP 适配 | 请求持有响应体与订阅,客机服务持有浏览器进程 |
23删除:| `vnc.go`、`audio.go` | 远程画面与声音传输 | 显示请求持有主机连接、读写循环及临时 SSH 进程 |
24删除:| `projects.go` | 已授权目录、共享记录、SFTP 连接及错误状态 | 控制服务持有共享连接,具体目录仍由项目授权限定 |
25删除:| `runtime.go`、`safety.go`、`proxy.go` | 环境操作、网络检查与代理业务协调 | 仍使用现有 VM、网络门槛与受管代理实现 |
26删除:
27删除:HTTP 层解析输入和映射状态码,工作台业务层核对授权、配置和环境状态,资源拥有者负责取消与清理。自动代理恢复与订阅刷新直接使用作业提交入口。
28删除:
29删除:## 关闭的范围
30删除:
31删除:关闭终端查看连接只释放该连接与订阅;会话继续接收输出,重连从保存的历史与实时输出继续。历史快照和订阅注册在同一把锁下完成,避免重连时遗漏夹在两者之间的数据。慢订阅者会被断开,不阻塞其他终端用户。删除终端或停止环境会关闭 PTY,并等待读写循环和主机进程结束。
32删除:
33删除:终端输入由会话按接收顺序写入 PTY,查看连接不阻塞在底层写入上。输入队列满时断开当前查看连接,已经接受的输入继续由会话处理;停止会话会取消尚未写入的排队输入。因此,客机暂时不读取输入时,关闭页面或锁定账户仍能及时释放查看连接。
34删除:
35删除:浏览器客户端只连接固定的客机控制地址,不使用主机 HTTP 代理,也不跟随重定向。短操作、事件订阅和文件传输共用运输边界,分别采用对应期限。取消某个订阅只释放该响应;关闭客户端会取消全部在途操作并释放空闲连接,客机浏览器的登录资料和进程不由客户端销毁。
36删除:
37删除:声音和远程画面请求结束前,先关闭底层传输解除阻塞,再等待传输循环退出。画面输入使用有界队列;客机持续拒绝接收输入时断开当前画面连接,避免无限积压。关闭窗口、锁定账户和服务退出通过请求取消触发这些清理。
38删除:
39删除:## 受控退出顺序
40删除:
41删除:控制服务受控退出时,按以下顺序释放主机资源:
42删除:
43删除:1. 封闭请求与作业准入,取消服务生命周期及在途检查。
44删除:2. 封闭终端创建,关闭已有 PTY,解除可能阻塞的输入写入。
45删除:3. 取消作业,等待作业、监测和活动请求完成。请求结束包括其订阅、传输循环和临时进程的清理。
46删除:4. 取得操作锁,停止项目共享并等待其子进程;释放浏览器空闲连接,关闭网络门槛并停止受管代理。
47删除:5. 清除已发布的控制记录,由入口释放配置锁。
48删除:
49删除:该流程不调用 VM 停止命令,保留磁盘、环境身份、项目授权和持久联网意图。应用窗口关闭不退出控制服务。用户执行“停止环境”仍由现有环境操作停止 VM;版本接管仍要求没有运行环境、作业和存活终端。
50删除:
51删除:等待不能发生在请求准入锁内,也不能由持有操作锁的接管请求等待自身退出。接管确认响应具有明确长度,发送后释放操作锁,再异步启动关闭流程。
52删除:
53删除:## 平台与构建边界
54删除:
55删除:macOS/Linux 继续使用 Unix PTY,Windows 继续使用 ConPTY。Unix 主端使用可中断读写的描述符,调整尺寸不切回阻塞模式;主机进程结束后,若后代仍持有 PTY 且主端尚未收到 EOF,会话继续接收输出,明确关闭会释放主端并等待会话回收。工作台不新增杀死进程树的规则。
56删除:
57删除:控制锁、路径映射、隐藏进程窗口和代理进程继续由现有平台实现负责。客机脚本仍位于 `internal/cage/`,构建与发布脚本仍位于 `scripts/`,嵌入资源、CI 和安装器沿用当前入口。职责拆分不改变发布版本或签名策略。
删除docs/design/desktop-environments.md+0 −58
@@ -1,58 +0,0 @@
1删除:# 同一个 Cage 中的本机与远程环境
2删除:
3删除:桌面产品只提供一个 Cage 图标、一套工作台和一条更新路径。远程工作台顶部显示所连接的主机。工作台从左侧栏的「SSH」打开主机列表。从只用云端的电脑打开 Cage,应当可以直接连接服务器,本机虚拟机无需启动。
4删除:
5删除:完整桌面应用默认打开本机工作台,由本机控制服务提供账户和首页。macOS 上已验证连接真实 SSH、释放空闲本机后台和重新进入本机的流程。运行中环境的停止确认、任务状态变化与取消在隔离用例中验证。
6删除:
7删除:## 打开与切换
8删除:
9删除:首次打开直接进入原有本机账户页或本机工作台。打开首页只连接本机控制服务。已停止的虚拟机要等用户点击「启动 Cage 环境」才启动。即使虚拟机一直处于停止状态,用户仍可从侧栏「SSH」添加主机并进入远程工作台。主动断开远程时留在 SSH 主机列表。
10删除:
11删除:进入工作台后,点击侧栏「SSH」,左侧项目栏在原位换为主机列表,右侧仍显示当前工作。用加号新建主机配置,选择已保存的主机后可连接、编辑或移除,返回箭头切回项目栏。本机仍运行时,验证目标成功后弹出确认卡片,显示已知的活动终端或正在执行的操作。提交选择后,终端、项目和浏览器随当前环境切换。远程主机缺少 Cage 服务时,在该主机下显示部署入口或说明。已有部署直接连接。服务器条件见[部署说明](../../deploy/cloud/README.md)。
12删除:
13删除:| 用户操作 | 本机如何处理 |
14删除:| --- | --- |
15删除:| 从已停止的本机环境切到远程 | 先验证远端可用。本入口启动的控制服务确认空闲且可以退出后,关闭其监测、代理和进程,进入远程工作台。独立启动的服务沿用自己的生命周期。 |
16删除:| 连接另一台远程主机时,本机仍在运行 | 远端可用后,在当前页展示本机正在运行的环境、已知任务及终端,提供「停止本机并切换」「保留本机运行并切换」「取消」。停止会结束运行中的程序,用户可以返回保存工作。 |
17删除:| 保留本机任务,稍后想释放内存 | 窗口持续显示「本机也在运行」,可回到本机继续原终端,也可从这里明确停止本机。只有本机控制服务确认停止并退出后,才显示已释放。 |
18删除:| 远程断线,或从远程切回本机 | 断线时显示原主机和「重新连接」,云端任务继续。用户明确选本机时才接入本机服务。退出 Cage 释放客户端的 SSH、画面和音频连接。 |
19删除:
20删除:运行着的虚拟机本身就需要内存,即使当前没有打开终端,也要让用户决定是否停止。缺少可靠的运行状态时显示「本机状态待确认」。正进行安装、迁移或已有其他调用者占用环境时,由本机控制服务决定是否可以停止,并说明原因。窗口未观察到活动不能作为自动停止的依据。
21删除:
22删除:## 谁负责释放内存
23删除:
24删除:同一个应用包内分开两种进程职责。原生窗口和轻量连接服务随桌面使用,负责环境选择、SSH、原生文件操作和工作台接口转发。本机控制服务随本机工作负载运行,负责账户、虚拟机、终端、挂载、代理和网络检查。保留任务时也保留保护这些任务的网络控制。云端控制服务由服务器独立管理。
25删除:
26删除:```mermaid
27删除:flowchart LR
28删除: A["一个 Cage 窗口"] --> B["环境选择与连接服务"]
29删除: B -->|"选远程 · SSH"| C["服务器上的 Cage"]
30删除: C --> D["云端容器、项目与网络"]
31删除: B -->|"选本机 · 受认证的本机连接"| E["本机控制服务"]
32删除: E --> F["本机虚拟机、项目与代理"]
33删除:```
34删除:
35删除:打开本机首页时虚拟机保持其原有运行状态。进入工作台后再加载所需界面模块,终端、画面解码和音频按视图开启,并在离开时释放连接与缓冲。原生窗口、系统 WebView、SSH 和正在显示的画面仍会占用本机内存。安装在磁盘上的程序和持久虚拟磁盘,与这些正在占用内存的进程分开管理。首次选本机再检查 Linux 的虚拟化依赖、Windows 的虚拟化能力和 macOS 的本机运行组件。离开本机不卸载组件或删除磁盘。
36删除:
37删除:本机控制服务可以复用现有的私有控制记录、令牌和进程身份检查。连接服务必须有独立的锁、控制记录、认证和退出路径。当前完整服务会启动监测,退出时还会关闭终端、共享和代理,直接用它兼任轻量入口会影响留下的本机任务。[服务初始化](../../internal/workbench/server.go) · [已有后台认证](../../internal/workbench/desktop.go) · [退出与资源回收](../../internal/workbench/lifecycle.go)
38删除:
39删除:## 切换过程中保护工作
40删除:
41删除:发起切换时,当前工作台仍拥有原环境。连接服务先验证目标的主机身份、协议和控制服务可达性,候选连接仅可执行握手。验证失败或用户取消就关闭候选连接,原工作台继续使用。云端 Cage 账户的解锁仍属于目标环境。
42删除:
43删除:选择停止本机后,先冻结旧窗口的新业务操作,由原控制服务在操作锁内复核环境身份和任务,执行停止并核对该次作业结果。接着核实该配置的虚拟机、代理与本机控制服务已退出,再切换工作台。停止失败就显示本机实际状态和恢复操作。若本机已成功停止而远程随后断线,显示「本机已停止」和远端重连入口,避免把已完成的停止伪装成一次完整回滚。选择保留时只关闭旧窗口的显示连接,并按现有账户离开规则清理解锁材料,保留本机任务所属的控制服务。
44删除:
45删除:每次成功进入本机或远程都生成新的连接标识。工作台重新绑定终端、下载、上传和输入事件,旧标识的请求失效。特别是从本机切到远程再切回本机,先前文件选择器的回调仍应失效。在远程工作台选择「停止本机环境」须使用明确指向本机配置的管理操作,按本机账户规则授权。本机账户锁定时,卡片提供「返回本机解锁」,取消尚未提交的连接并进入本机。随后用本机控制服务的作业结果更新提示,云端任务继续。
46删除:
47删除:首版每份配置一个活动工作台,再次打开同一配置聚焦已有窗口。三平台均区分窗口隐藏与应用退出。隐藏窗口释放无订阅的画面、音频与解码资源。应用正常退出或窗口进程异常终止时,轻量连接服务关闭 SSH、监听器及附属日志进程后退出。
48删除:
49删除:## 已有用户与验收
50删除:
51删除:沿用 Cage 的应用身份和原本机配置路径,原账户、快捷登录、项目和虚拟磁盘继续由本机控制服务管理。主机列表、上次选择和远程文件的本机保存记录归入口管理。兼容已有完整应用与独立开发客户端的两处记录时,保留主机 UUID、SSH 指纹和云端实例标识。同一主机标识有冲突时,两份记录都列出;来自旧独立入口的冲突项分配新标识,首次连接重新核对指纹。显式指定的配置路径继续限定各自的数据范围。原生快捷登录按环境类型核对账户绑定,单独校验本次连接标识。更新面向同一个桌面应用,当前选中的服务器不会接收桌面更新的停止命令。
52删除:
53删除:实际验收需在 macOS、Windows、Linux 用隔离配置跑四条路径。
54删除:
55删除:1. 本机环境原本已停止。从打开 Cage 到远程编辑文件,再断线重连,记录进程启动事件。确认本机虚拟机全程保持停止,切到远程后释放入口启动的空闲本机控制服务。
56删除:2. 本机终端持续写入时切到远程。取消、远程握手失败和「保留运行」都应能回到同一个继续写入的终端。选择「停止并切换」后核对本机进程退出、磁盘和已保存文件保留,云端任务照常运行。
57删除:3. 同一窗口走本机 → 远程 → 本机,验证先前延迟的文件操作被拒绝。在远程工作台停止本机后,验证云端终端中的任务继续运行。正常退出和窗口进程异常终止后,只应留下用户明确保留的本机工作负载及其控制服务。
58删除:4. 在相同窗口大小、标签数和静置时间下,记录本机首页、远程工作台、本机运行、释放后远程工作台的进程树、内存和空闲 CPU。将窗口与 WebView、连接服务、虚拟化进程、代理分别列出,以各平台合适的内存指标对照。内存收益待实测后公布。
删除docs/design/diagnostics.md+0 −62
@@ -1,62 +0,0 @@
1删除:# 日志与诊断包
2删除:
3删除:Cage 将界面、后台、原生窗口和受管子进程的故障记录到本机,便于在故障发生后定位原因。用户从“设置 → 环境与恢复 → 日志与诊断”导出 ZIP;应用无法打开时可使用命令行。日志和诊断包均保存在本机,不自动上传。
4删除:
5删除:## 收集范围
6删除:
7删除:| 来源 | 记录内容 |
8删除:|---|---|
9删除:| 控制服务 | 启动、退出、标准输出、错误输出、异常堆栈 |
10删除:| 后台任务 | 操作开始、完成、取消或失败,以及管理操作输出;界面保留末尾约 24 KB |
11删除:| 工作台接口 | 错误状态与路由模板、主动返回的错误、处理器异常;不记录请求正文和认证头 |
12删除:| 工作台界面 | 全局脚本异常、未处理的 Promise 拒绝、React 渲染异常、接口连接失败和原生调用失败 |
13删除:| 原生窗口 | 启动、导航、WebView 进程异常、桥调用和更新失败;通过本机辅助程序写入同一存储 |
14删除:| 内置代理 | 配置校验错误、运行输出和非正常退出 |
15删除:| 虚拟机 | 主机代理的诊断输出,以及 Cage 浏览器、编辑器、显示、音频和 Desktop 服务输出 |
16删除:
17删除:终端输入输出、项目文件、剪贴板内容、请求正文、完整配置、浏览历史和登录数据库不作为诊断材料采集。底层虚拟机的串口文件、生命周期协议文件,以及第三方应用自行保存的日志不属于 Cage 诊断存储,也不自动收入诊断包。
18删除:
19删除:## 脱敏与存储
20删除:
21删除:主机日志使用私有配置目录下的 `logs/`,记录格式为 JSONL,包含 UTC 时间、级别、来源、消息和进程号。Unix 文件使用 `0600`、目录使用 `0700`;Windows 沿用仅当前用户与 SYSTEM 可访问的 DACL。
22删除:
23删除:写入前遮盖凭据字段、认证与 Cookie 头、常见 API 密钥和令牌、私钥、网址、邮箱、IP 地址及常见本机文件路径。子进程输出先组合成完整行,再执行脱敏;跨多次写入的密钥仍按同一行处理。超过 24 KiB 的单行整行省略,私钥块整段省略。导出时再次脱敏。自动规则无法识别所有自由文本中的敏感信息,分享前仍应检查诊断包。
24删除:
25删除:| 存储 | 保留与清理 |
26删除:|---|---|
27删除:| 本机统一日志 | 最多保留 14 天、总容量 40 MiB,单文件约 5 MiB;跨天或达到大小上限时轮转,优先删除最旧文件 |
28删除:| 客机 Cage 服务日志 | 独立的 `cage` journal namespace,预算 10 MiB、保留 14 天;服务输出使用与主机相同的脱敏规则,再交给 journald |
29删除:
30删除:主机在服务启动、日志写入、查询容量、导出及每小时执行清理,多个进程通过系统文件锁协调写入和轮转。日志时间以文件中最早的事件校验,持续使用的小文件也会到期。应用关闭期间不运行清理,下一次启动时补清。客机由 journald 管理归档及清理,实际占用可能受活动 journal 文件和文件系统开销影响。
31删除:
32删除:旧的后台、代理和安装日志在服务启动时迁入统一存储:只读取有限尾部,脱敏后删除原始文件;超过保留期限的旧文件直接清理。Cage 安装过程直接写入统一日志。上游 agent-vm 独立使用时保留其原有日志行为。
33删除:
34删除:## 导出与故障恢复
35删除:
36删除:三端桌面程序提供本机保存窗口,取消后不生成诊断包。保存先写同目录私有临时文件,完成校验后替换目标文件,失败时保留已有目标。普通浏览器使用文件下载。诊断包生成期间不修改环境或停止任务。
37删除:
38删除:ZIP 只包含固定范围的文件:
39删除:
40删除:- `manifest.json`:格式版本、应用版本、操作系统、架构、Go 版本、日志策略和客机收集结果。
41删除:- `logs/*.jsonl`:仍在保留范围内的脱敏主机日志。
42删除:- `guest/services.log`:客机可访问时,收集最近 150 行 Cage 服务日志,最多 48 KiB。
43删除:- `README.txt`:内容范围与分享前检查说明。
44删除:
45删除:客机收集设置超时;离线或读取失败时,诊断包仍包含主机日志,清单记录缺失原因。命令行入口为 `cage diagnostics --json /absolute/path/cage-diagnostics.zip`。它通过本机启动凭证连接控制服务;控制服务不可用或启动记录损坏时直接导出本机日志。
46删除:
47删除:前端每分钟最多接受 20 条上报,队列最多 20 条,单条消息最多 4096 个字符。后台暂时断开时每 5 秒尝试补报;关闭或崩溃的页面无法保留内存队列。服务端每分钟最多接受 60 条界面上报。日志失败不替代原始错误,断电、磁盘不可写、强制终止等情形仍可能丢失最后一段记录。
48删除:
49删除:## 接口与平台职责
50删除:
51删除:| 入口 | 行为 |
52删除:|---|---|
53删除:| `GET /api/diagnostics` | 返回保留策略、本机容量及文件数 |
54删除:| `POST /api/diagnostics/events` | 接受 `frontend`、`react` 来源;限制正文 32 KiB,不接收文件路径 |
55删除:| `GET /api/diagnostics/export` | 返回完整 ZIP;同一服务只允许同时生成一份 |
56删除:| 原生 `exportDiagnostics` | 本机保存窗口,再调用统一 CLI;网页不能指定任意保存路径 |
57删除:| `cage diagnostic-event` | 从标准输入接收原生错误,写入前脱敏 |
58删除:| `cage log-relay controller\|proxy` | 在子进程外收集输出,控制服务异常退出时仍能保存故障信息 |
59删除:
60删除:HTTP 入口沿用工作台的 Host、Origin、会话认证。诊断接口允许持有效工作台会话的锁定页面使用,使登录界面的异常也能记录;不返回账户、代理或项目配置。原生桥继续只接受当前工作台主框架。macOS 的 launchd 通过输出中继启动代理;Windows、Linux 在原有进程身份校验和停止流程下收集代理输出。
61删除:
62删除:客机日志配置随环境组件更新部署。已有运行环境需先保存浏览器和编辑器中的修改,再使用现有的组件更新流程;应用不会为启用日志而静默重启环境。
删除docs/design/managed-proxy.md+0 −124
@@ -1,124 +0,0 @@
1删除:# Cage 内置代理
2删除:
3删除:本文说明 Cage 内置代理的产品范围和工程边界。应用随附独立核心,管理订阅、节点和代理生命周期;客机公网 UDP、IPv6、ICMP 持续阻断。联网授权规则见[网络检测设计](network-checks.md),界面入口见[工作台设计](workbench.md)。发行版本的验证范围以 GitHub Release 说明为准;本地验收截图和原始运行数据不随源码发布。
4删除:
5删除:## 用户怎样使用
6删除:
7删除:用户安装 Cage 后,在应用内添加代理订阅或导入本地配置,在节点页选择最终出口,按需添加中转并点击「应用代理」,检查出口后启动环境。浏览器、终端、Claude Code 及其子进程共用 Cage 管理的出口;即使没有安装本机 Clash,仍能完成这一过程。
8删除:
9删除:代理页提供已配置节点、最近检测出口、核心状态及连接反馈。用户更换节点后,旧连接结束,新节点通过检查才恢复对外联网;终端进程和项目文件保留。修改本地端口时需要重启环境,界面提前提示终端中断。代理不可用时明确显示离线原因和重试入口,不回退主机直连。
10删除:
11删除:## 首版基本功能
12删除:
13删除:| 入口 | 用户可完成的操作 | 失败和恢复 |
14删除:|---|---|---|
15删除:| 订阅 | 添加多个订阅、修改名称、手动更新、设置定期更新、删除;有服务端数据时显示流量与到期信息 | 更新失败保留最后可用版本,展示失败原因和更新时间;删除当前来源时要求另选节点或保持离线 |
16删除:| 本地导入 | 导入 Clash/Mihomo YAML 完整配置或节点集合;手动添加 HTTP/SOCKS5 节点 | 显示格式及协议兼容性错误;不借助第三方在线转换服务上传订阅凭据 |
17删除:| 节点 | 按来源查看和搜索,选择单节点或组合中转与最终出口,预览后统一应用;支持单节点或批量延迟检测 | 草稿未应用时不改变当前网络;配置验证或核心启动失败保留草稿和原配置;出口检查失败保留新配置并关闭外网;离开设置前确认是否放弃;延迟成功不代表环境已放行 |
18删除:| 连接状态 | 查看核心是否就绪、当前实际节点、出口 IP/地区、实时速率和本次流量 | 区分核心未启动、节点连接失败、环境检查未通过及主动暂停 |
19删除:| 诊断 | 查看连接和状态摘要,停止或重启 Cage 自己的核心,配置独立端口 | 不操作本机其他代理实例;重启期间关闭 Cage 外网;核心原始日志保存在私有目录,不向页面公开 |
20删除:
21删除:订阅支持含 `proxies` 或 `payload` 的 Clash/Mihomo YAML,也接受含内联节点的完整配置。只含远程 provider 的配置、Base64 列表和各类分享链接暂不支持,需提供节点订阅地址或先导出 YAML。支持 HTTP、SOCKS5、SS、SSR、VMess、VLESS、Trojan、Hysteria、Hysteria2、TUIC、AnyTLS、Mieru;Mieru 可使用 TCP/UDP 传输、端口范围、复用、握手模式和流量模式参数,具体字段仍须由固定版本核心校验。导入内容里的代理链必须引用同一来源内的具体节点,选择分组和 DIRECT 链路会被拒绝。界面配置的代理链可以组合不同来源的节点。
22删除:
23删除:### 在界面中配置代理链
24删除:
25删除:住宅代理无法从国内直接连接时,在「节点」页选择「链式代理」,将国内可连接的代理设为中转,将住宅代理设为最终出口。列表按流量顺序展示,例如「Cage → 中转节点 → 住宅代理 → 目标网站」。最终出口决定目标网站看到的 IP;节点名称与协议不能证明其出口属于住宅网络。可继续添加中转,节点不得重复。下拉选项在容器内展开,撑开页面;支持键盘选择与收起。
26删除:
27删除:节点列表用于选择最终出口,修改后须点击「应用代理」生效。配置区、当前链路摘要分别显示草稿与已保存的配置,修改期间当前链路继续工作。应用前会验证整条链路的配置;生效时沿用关闭旧连接、更新配置版本与重新检查出口的流程。配置验证或核心启动失败时保留原有保存配置,核心启动失败后可能处于停止状态,需要重试。新配置启动后若出口检查失败,保留新配置并关闭业务外网,待修复后重新检测;不因此直连或绕过中转。订阅参数校验通过与核心启动成功均不代表远端链路连通,仍须检查实际出口。
28删除:
29删除:界面代理链以可选的 `chain` 节点 ID 列表独立保存,按入口到出口排序,`selected` 指向最后一跳。生成运行配置时,复制节点字段并按顺序覆盖每一跳的 `dialer-proxy`,第一跳清除原有前置代理;订阅原文和凭据保持不变。单节点模式显式保存一个节点并清除该节点原有前置代理。旧配置没有 `chain` 时继续遵循已导入的代理链,状态接口返回其实际顺序。
30删除:
31删除:订阅更新按稳定节点 ID 保留界面链路。如果更新移除了链路中的节点,拒绝该更新并保留最后可用来源;删除多节点链路正在使用的来源时,要求先应用其他配置。已明确选择单节点时可删除其来源,随后停止代理并保持离线。不会静默删掉中转或更换最终出口。
32删除:
33删除:每份导入内容最多 8 MiB,全部来源保存后的 JSON 总量最多 32 MiB。累计超限时拒绝保存并保留原文件,用户仍可查看或删除已有来源。
34删除:
35删除:默认手动选择固定节点,与现有出口 IP 变化规则协作。自动测速可以提供建议;自动切换和负载均衡涉及出口变化,需单独设计准入流程,首版不静默启用。
36删除:
37删除:节点列表和工作台状态栏共用 HTTPS `www.gstatic.com/generate_204` 延迟检测,核心固定开启 `unified-delay`。第二次 HEAD 请求成功时,显示已建立连接上的 HTTP 往返耗时;首次建连和握手仍会发生,但不计入该数值。核心在第二次请求失败时会回退首轮计时,因此界面说明为“通常不含建连开销”。延迟不代表带宽、网页首开耗时或环境已经放行。核心就绪检查同时核对这一设置,旧口径的运行实例需在应用代理时重新生成配置并启动。
38删除:
39删除:## 流量与模块职责
40删除:
41删除:```text
42删除:Cage 浏览器 / 终端 / 开发工具
43删除: ↓
44删除: VM 外网络约束与联网检查
45删除: ↓
46删除: Cage 专属本地代理监听端口
47删除: ↓
48删除: Cage 随附的 Mihomo 独立进程
49删除: ↓
50删除: 用户选定的代理节点
51删除: ↓
52删除: 互联网
53删除:
54删除:Cage 代理管理界面 → 已认证的 Cage 控制服务 → 私有控制 socket
55删除:```
56删除:
57删除:复用现有 VM 外网络出口接管流量。该边界覆盖不遵循 HTTP_PROXY 等环境变量的程序;项目内程序不能自行关闭这层约束。SSH、显示及文件共享保留现有内部管理通道。
58删除:
59删除:Mihomo 以随 App 分发的独立进程运行,由 Cage 控制服务负责启动、就绪检查、停止和配置切换;故障后用户可以重新应用节点或重启核心。运行不引用 `/Applications/Clash Verge.app`,不搜索 PATH。构建固定 `v1.19.33`,校验官方发布压缩包的 SHA-256,并将来源与 GPL-3.0 许可资料放入制品。工作台或 App 窗口关闭而环境保留运行时,独立 launchd 任务继续提供代理;明确停止环境会停止该核心。
60删除:
61删除:Linux 将核心作为普通用户的独立后台进程运行,窗口关闭后继续提供代理。私有进程记录包含可执行文件、启动时间与系统启动标识;停止前用 pidfd 固定并核验进程身份,避免误停复用同一 PID 的其他程序。Linux 根据 IPv4 默认路由与物理设备归属选择 PCI、USB 或 virtio 网卡,排除隧道、桥接和容器 veth;找不到符合条件的出口时保持离线。实现需要 Linux 5.3 或更新内核。
62删除:
63删除:前端继续使用 Cage 现有认证接口,不直接持有核心控制权限。核心控制 socket 放在主机私有目录,guest 无法访问;订阅 URL、节点凭据和完整配置同样不进入共享项目、普通日志或状态接口。socket 的目录和文件权限必须落实,不能依赖核心 HTTP secret 保护 Unix socket。
64删除:
65删除:导入内容只提供节点、必要的代理链和来源信息;Cage 自己生成运行配置。外部配置不能覆盖监听端口、控制接口、TUN、DNS 边界、文件路径或全局出站规则。Cage 业务流量统一走选定节点,不引入订阅中的 DIRECT 回退规则。
66删除:
67删除:## 依赖安装与更新
68删除:
69删除:Cage 的环境组件同步、固定工具升级和 Claude Desktop 安装需要在业务网络尚未放行时下载依赖。这些操作使用短时维护通道:固定安装脚本经 SSH 连接主机上的认证代理,再通过当前所选节点访问软件源。维护操作不授予业务联网权限,不解除人工暂停,也不向普通终端注入代理凭据。
70删除:
71删除:维护代理只接受 Debian、NodeSource、GitHub 发布文件、npm、Anthropic 下载服务和 Cage 选用的国内镜像域名。HTTP 请求限于 80 端口的 GET/HEAD,HTTPS 隧道按目标域名和 443 端口授权。APT 按 Debian 官方签名索引中的摘要验证从南大、中科大下载的 Chromium 安全更新包。来自中科大的 code-server 和来自 npmmirror 的 mise 采用 Cage 固定的归档摘要,npmmirror 上的 Claude Code 可执行包采用 npm 官方提供的完整性摘要。各安装器负责校验隧道内下载的内容。临时凭据经 SSH 标准输入传递,任务结束、失败或取消时关闭连接并清理凭据。三个平台共用这条路径,所选代理不可用时下载失败。
72删除:
73删除:## 与本机 Clash 共存
74删除:
75删除:使用独立配置、缓存、日志、进程和监听地址,仅绑定 loopback。默认沿用 Cage 专用端口 `17896`,占用时给出冲突提示并允许配置其他端口;不终止占用者,也不连接来源未知的现有监听器。代理入口采用 Cage 私有认证。
76删除:
77删除:Cage 不设置主机系统代理,不开启主机 TUN,不修改本机 Clash 的节点选择。退出和停止只处理 Cage 自己的进程;用户选择保留环境运行时,对应代理也必须保留。
78删除:
79删除:代理启动时,Cage 根据 macOS 的硬件端口、IPv4 可达状态和默认路由选择当前物理网卡,并绑定代理核心到该网卡。默认路由指向 TUN 时,按系统报告的网络优先级选择可达的物理网卡。未找到可用物理网卡时保持外网关闭,不启用未绑定的代理路径。此规则适用于 Cage 自带核心;用户在 Cage 外运行的代理进程不属于其生命周期。
80删除:
81删除:控制服务约每 5 秒检查一次物理网卡。发现网卡变化或检测到断网后恢复时,先撤销现有联网授权,再重启 Cage 专用代理、绑定当前网卡并重新执行完整检查。原 VM、终端和共享文件保留;代理节点、静态 IP 和地区基准不变。用户手动暂停过外网时只更新代理绑定,恢复联网仍需用户重新检测。相同网卡上未被采样发现的短暂断网,由代理的连接重建和现有出口监测处理。
82删除:
83删除:物理网卡绑定约束 Cage 代理核心的宿主传输路径;客机仍只能连接指定代理,公网 UDP、IPv6 和 ICMP 的限制不变。绑定效果需要在实际 macOS 路由和 VPN 环境中验证,不能据此推导整台宿主机的所有进程均已绕过 VPN。
84删除:
85删除:## 订阅和节点域名的启动依赖
86删除:
87删除:Cage 业务 DNS 继续通过选定节点发送,不回退主机解析器。订阅下载、首次节点服务器域名解析属于代理自身的启动通信,需要与业务流量分开说明。
88删除:
89删除:订阅默认经当前配置的代理下载;没有节点时可导入本地文件,或明确选择通过主机网络下载。手动更新提供相同的主机下载选项;自动更新始终使用已配置代理,失败后至少间隔 15 分钟重试。下载只接受 HTTPS,限制大小和重定向次数,不静默切换路径,不调用本机 Clash 接口。
90删除:
91删除:主机下载的域名和核心节点服务器域名使用两个 IP 定位的加密 DNS:Cloudflare `https://1.1.1.1/dns-query` 和[阿里公共 DNS](https://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/download%2Fpdf%2F171662%2FAPI_Reference_intl_en-US.pdf) `https://223.5.5.5/dns-query`。二者并行查询,单个服务不可达不会阻塞另一个;主机下载的启动解析最多等待 8 秒,收到有效公网 IPv4 后取消其余请求。节点域名解析由 Mihomo 的多服务器解析器执行。这部分通信通过主机网络,域名可能发送给两个 DNS 服务,独立于业务 DNS;状态和诊断页面列出这两个服务。两者失败时不回退系统 DNS、明文 DNS 或未经验证的 TLS 连接。客机业务 DNS 仍经选定节点发送。
92删除:
93删除:## 节点切换与检查
94删除:
95删除:节点和订阅更新由同一控制服务串行应用,避免并发更新覆盖用户刚选的节点。应用前保存可恢复配置并验证候选内容;失败保留原版本。
96删除:
97删除:自动订阅更新和物理网卡恢复会保留用户手动暂停外网的状态。人工代理操作可以按现有流程重新检查并恢复联网;如果用户在下载订阅或应用核心期间再次暂停,较新的暂停优先,操作完成后仍保持离线。
98删除:
99删除:生效切换先关闭现有联网授权并断开旧业务连接,再应用新节点、检查核心实际选择,最后重新执行准入。代理配置的 `proxy_revision` 随切换和核心重启更新,纳入配置指纹。VM 外门槛只允许在其余配置相同的条件下更新该版本,同时撤销旧报告和连接;地址、DNS、语言等变化仍需重启 VM。界面分别显示尚未配置、尚未应用、代理已停止、待启动环境、正在检查和外网未放行;只有当前节点已应用、核心读回匹配且 VM 放行仍有效时才显示已联网。
100删除:
101删除:手动切换不能悄悄改写已绑定的静态 IP 或地区基准。新节点不符合用户保存的出口规则时保持离线,引导用户另选节点或明确修改规则。
102删除:
103删除:## 协议范围
104删除:
105删除:当前只允许客机公网 IPv4 TCP,DNS 经相同代理发送 DoH;公网 UDP、IPv6 和 ICMP 均阻断。随附 Mihomo 本身支持某种协议,不代表客机出口已经接通该协议。
106删除:
107删除:客机 UDP、IPv6 和 ICMP 保持阻断,不因选用支持这些协议的节点而开放。核心到代理服务器的传输协议由节点决定,例如 Hysteria 的传输可使用 UDP;这不构成客机任意 UDP 出站通道。
108删除:
109删除:## 接入点与验收
110删除:
111删除:`internal/managedproxy` 维护来源、运行配置、下载与核心控制;`internal/cage/egress.go` 及网络准入负责业务出口;`internal/workbench/proxy.go` 承接经工作台认证的管理接口;`ui/src/proxy-settings.jsx` 提供节点、订阅、连接及诊断页面。`scripts/fetch-proxy-core.sh` 固定核心制品,`scripts/build-app.sh` 将其随 App 分发。节点管理器是唯一出口配置来源,网络设置仅提供加密 DNS,不接受手工指定本地出口地址。`proxy_url` 与 `proxy_revision` 是管理器生成的内部字段,通用设置和配置恢复无法覆盖它们。未选节点、未应用或配置版本不一致时,启动、探测和网络授权均拒绝放行。
112删除:
113删除:来源与核心操作使用工作台已有的串行任务机制。管理接口包括 `GET /api/proxy`、`POST /api/proxy/{import,refresh,edit,delete,select,route,restart,stop}`、`POST /api/proxy/delay` 及连接和诊断摘要的 GET 接口。前端不能传入任意核心控制路径。订阅 URL、认证和节点原始参数只存在私有来源文件中,GET 状态只返回来源主机名、节点显示信息与脱敏的有序 `route` 节点 ID。`route` 操作以 `node_ids` 提交完整链路,统一校验并应用;不会逐个修改已在使用的节点。
114删除:
115删除:验收必须覆盖:未安装 Clash 时从导入到客机联网;与本机 Clash 系统代理/TUN 分别共存;订阅更新失败与选中节点被移除;真实节点切换后旧连接关闭、旧报告失效;核心崩溃后业务和 DNS 均无直连回退;App 停止、退出、保留运行和重新进入;凭据及管理接口未向 guest 暴露。模拟测试和核心延迟测试不能代替这些安装版路径。
116删除:
117删除:## 核心能力依据
118删除:
119删除:- [Mihomo 核心说明](https://raw.githubusercontent.com/MetaCubeX/mihomo/Meta/README.md):协议、远程节点来源、控制能力和许可说明。
120删除:- [代理集合](https://wiki.metacubex.one/config/proxy-providers/):远程来源、更新周期和健康检查。
121删除:- [全局配置](https://wiki.metacubex.one/config/general/):监听地址、认证、控制接口及 Unix socket 的权限边界。
122删除:- [控制 API](https://wiki.metacubex.one/api/):节点与连接等管理能力。
123删除:
124删除:这些来源支持核心选型;Cage 接入效果仍需按上述验收证明。
删除docs/design/network-checks.md+0 −69
@@ -1,69 +0,0 @@
1删除:# 网络检查与出口规则
2删除:
3删除:Cage 先启动可离线使用的环境,再检查网络与配置。关键项通过后才放行外网;IP 信誉和地区语言建议作为提示。检查失败时仍可使用共享文件、终端和客机本地网页。
4删除:
5删除:## 用户可配置的规则
6删除:
7删除:- 静态 IP:保存一个 IPv4 地址,检测请求的出口必须与之相同。
8删除:- 动态 IP:允许换地址,可限定同一城市、同一国家/地区,或不限制地区。城市同时比较国家、州/省和城市名称。
9删除:- 已保存的地址和地区不会被重检、重启或后台定位结果自动替换。首次未配置时可以采用检测结果;改动已有基准需要在设置中明确保存。
10删除:- 时区和语言可以在启动或应用设置时采用出口地区建议。运行中的环境不会因后台监测静默重启。语言采用内置地区默认值;多语言地区允许手动覆盖,未提供建议的地区保留已选语言。
11删除:- 位置查询失败后可点击“手动设置时区和语言”,关闭两个自动开关并编辑系统时区、系统语言与网页首选语言。使用静态 IP 或不限制地区时,手动模式在保存和启动时仅测量出口 IP,跳过位置查询;国家或城市限制仍需实际位置证据。切换手动模式不会修改出口规则。
12删除:
13删除:地区约束依据 IP 数据库,属于近似定位。运行中约每 30 秒采样一次,发现越界或无法确认受限地区时暂停外网。通用 HTTP/SOCKS5 协议不能约束代理运营方每条连接使用哪个出口,因此 Cage 的规则是**检查采样并在发现异常后阻断**;上游的静态出口、会话粘性和地区路由仍需由代理本身保证。
14删除:
15删除:## 检查和执行的位置
16删除:
17删除:```mermaid
18删除:flowchart LR
19删除: UI[本机工作台] -->|发起检查与查看报告| Control[本机控制服务]
20删除: Control -->|私有 Unix socket| Gate[VM 外出站控制]
21删除: Guest[客机浏览器与终端] --> Gate
22删除: Gate -->|报告通过后| Proxy[用户指定的代理]
23删除: Proxy --> Internet[外部网站]
24删除: Gate -->|检查期间的固定请求| Probe[受限检测服务]
25删除: Probe --> Proxy
26删除: Control -->|独立管理连接| Guest
27删除:```
28删除:
29删除:VM 外出站控制由 hostagent 持有。新实例默认关闭外网,guest 内的 sudo、网页和命令行均不能修改放行状态。控制接口不监听 TCP,凭据保存在未共享的宿主目录中。
30删除:
31删除:检查期间仅提供 `198.18.0.254:80` 的内部检测服务。它终止客机请求,只允许固定路径,另行构造指定的 HTTPS 出口查询或 DNS 查询。URL、查询参数、请求体和客机请求头均不转发;每轮限制外部探测次数。其他公网 TCP 和公共 DNS 请求继续被拒绝。
32删除:
33删除:当前版本的客机公网出站仅支持经代理的 IPv4 TCP。公网 IPv6、UDP 与 ICMP 被拒绝;DNS 使用同一代理转发到配置的 DoH 服务。SSH、显示与共享文件的内部管理连接独立保留。
34删除:
35删除:初次构建基础镜像是明确的引导阶段:基础构建 VM 没有项目挂载,通过指定代理安装开发工具。此例外不适用于项目 VM。
36删除:
37删除:## 什么证据可以放行
38删除:
39删除:报告绑定配置指纹、本次 VM 运行标识和本轮检查标识。必须包含出站策略、终端检测通道、DNS、系统配置、浏览器配置、共享文件、管理接口、故障关闭、UDP、IPv6 和出口规则的证据。必需项目缺失、ID 重复、关键结果未知和检查会话已撤销时,都不能授权联网;额外的提示项不替代必需项目。
40删除:
41删除:不同检查的证据范围明确区分:
42删除:
43删除:- 运行时策略检查确认当前加载的地址族、协议和私网访问规则。
44删除:- 客机探针尝试访问公网及宿主管理端口,并与 VM 外网络层的拒绝记录核对。UDP 超时本身不作为通过依据。
45删除:- 共享文件使用临时文件完成双向往返;宿主私有目录使用无敏感内容的探针验证不可读,同时检查挂载范围。
46删除:- 浏览器通过隐藏、临时的诊断页面读回 Chromium 的时区、语言和平台,避免读取账号页面或改变可见标签的焦点。检测完成或失败后,先等待隐藏页面关闭,再销毁其临时浏览环境;页面关闭失败时保留该环境并从用户标签中排除,避免销毁仍被引用的环境导致整个浏览器崩溃。
47删除:- 故障演练只在检测专用连接中注入代理不可用,验证终端、浏览器和 DNS 的失败路径,不停止用户的代理进程。
48删除:
49删除:这些证据支持列明的采样和策略结论,不能代替完整虚拟化逃逸审计,也不能判定账号资格或预测封禁。
50删除:
51删除:## 运行中如何收回授权
52删除:
53删除:放行授权有效 90 秒,由本机控制服务在非破坏性监测通过后续期。监测检查出口规则以及系统和浏览器的配置读回。控制服务失联时授权自动到期;关闭外网时会取消进行中的连接建立并关闭已有连接,包括 DNS 连接池所持的连接。
54删除:
55删除:全面检查报告最多有效 24 小时。配置变化、VM 重启和新一轮检查会使旧授权失效;检测过程中产生的旧报告不能重新打开已经关闭的网络。后台监测不自行重复故障演练。
56删除:
57删除:临时观察失败、代理探测失败或授权续期失败后,环境先保持离线,再由独立恢复任务重新执行完整检查;全部关键项通过后恢复联网。失败采用最长五分钟的退避,已知内存压力持续时延后重检。恢复绑定当前 VM、配置、授权代次和人工暂停序号,手动暂停、停止或新检查会使旧请求作废;已确认的配置不匹配不会作为临时故障恢复。见[计算资源与压力恢复](resources.md)。
58删除:
59删除:暂停不进入普通任务队列,会立即取消检查和后台监测,再关闭出站。放行和续期与暂停串行核对,已撤销的检查不能重新放行。停止环境可取消正在启动或检查的任务;被取消任务的完成消息不会覆盖停止结果。工作台为启动任务记录私有停止标记,分离运行的 hostagent 在初始化前及运行中读取该标记,避免取消后的后台启动继续拉起 VM。标记绑定单个任务,不影响下一次启动。
60删除:
61删除:人工暂停意图和暂停序号保存在私有 `network-intent.json`,控制服务启动监测前恢复;后台重启、订阅定期刷新和网卡恢复不会解除暂停。记录缺失时无法判断旧配置的暂停意图,因此默认关闭,等待用户明确恢复;损坏或无法读取时同样保持关闭并提示原因。启动、重检、恢复或应用环境配置,以及手动应用代理配置,可请求恢复;恢复必须先成功保存,且不能覆盖请求提交之后发生的暂停。暂停保存失败仍会撤销当前放行并报错,恢复保存失败也保持关闭。
62删除:
63删除:## 外部服务与隐私
64删除:
65删除:固定出口查询使用 [ipify 的公开接口](https://www.ipify.org/)。地区信息优先查询 [ipwho.is](https://ipwhois.io/documentation),连接失败、超时、限流或位置无效时改查 [IP.SB](https://ip.sb/api/)。每个服务的请求最多等待 8 秒,取消检查会停止后续查询。两项位置查询都通过选定代理,携带已经测得的出口 IP;返回 IP 必须与之相同,国家代码和 IANA 时区必须有效。备用服务不会改变出口规则、时区或语言的保存基准。
66删除:
67删除:同一 IP 的位置缓存一小时,最多保存 64 条,以减少查询和配额占用。各服务的免费额度和可用性由服务商决定;所有服务均失败时,报告会区分已取得出口 IP 与位置查询失败,受国家或城市约束的网络继续保持关闭。用户可关闭自动时区和自动语言并手动选择;手动时区、语言不能替代出口地区的检测证据。
68删除:
69删除:社区检测网站仅在用户点击时从 Cage 浏览器打开,不自动抓取内部接口或上传完整报告。来源、许可及可采用的方法见[社区工具核查](../research/community-safety-tools.md)。分享报告会去掉配置指纹、运行标识、代理凭据、IP 地址和本机路径,不能用于放行环境。
删除docs/design/password-vault.md+0 −52
@@ -1,52 +0,0 @@
1删除:# 密码保险箱
2删除:
3删除:密码保险箱为 Cage 浏览器保存网站账号密码。用户提交登录表单后,在 Cage 的浏览器工具区确认保存;再次访问同一网站时,展开“密码”,选择账号填入表单,再自行提交登录。保存提示不代表网站已验证密码,用户应先确认登录成功。相同网站和用户名对应一条记录,密码变化时提示更新,同一网站可以保存多个账号。
4删除:
5删除:## 使用与锁定
6删除:
7删除:设置中的“密码保险箱”提供搜索、手动添加、编辑、删除及恢复网站保存提示。虚拟机未启动时仍可管理密码。编辑已有记录时,密码留空表示保留原密码;查看和复制明文均需再次输入 Cage 账户密码。明文显示在 30 秒后、窗口失焦或页面隐藏时关闭。复制使用现有三平台剪贴板桥,复制后的内容由系统剪贴板管理。
8删除:
9删除:保险箱与 Cage 共用解锁状态,包括已启用的记住登录和指纹解锁。手动锁定后,主机拒绝密码库接口,并取消已授权的在途请求。退出账户和控制服务关闭沿用账户锁定流程。每次解锁产生新的浏览器授权标识,上一轮的候选记录与填充请求不能跨解锁继续使用。
10删除:
11删除:浏览器的账号列表在页面内展开并占据布局空间。键盘 Tab 可以移动到账号,Enter 填充,Escape 收起列表并把焦点移回触发按钮。保存提示支持保存、暂不保存和此网站不再提示;拒绝提示的站点可以在设置中恢复。
12删除:
13删除:## 数据归属与保护
14删除:
15删除:主机控制服务拥有密码库,文件为当前配置目录中的 `password-vault.json`,默认位于 `~/.claude-cage`。所有记录及拒绝提示的网站整体使用 AES-256-GCM 加密,随机 nonce,每次保存原子替换文件。使用账户内部密钥通过带用途标识的 HMAC-SHA256 派生保险箱密钥;用户修改 Cage 密码时仍包装同一个账户内部密钥,已有密码库无需重新加密。文件访问权限沿用主机私有文件实现,Windows 使用相应 ACL。
16删除:
17删除:主机按请求解密,事务与账户锁定共用互斥锁,完成后不保留密码库缓存。列表只返回网站、用户名、记录标识与更新时间。查看密码时再次验证不会改变账户解锁周期,也不会重新启用自动登录。解密、格式或权限检查失败时拒绝修改原文件。
18删除:
19删除:密码库文件与 `account.json` 必须一起备份,并保留可用的 Cage 账户密码;单独复制密码库不能恢复账号。安装、更新和卸载保留配置目录,本功能不迁移或清理个人数据。密码库没有云同步、在线找回或独立主密码。
20删除:
21删除:客机浏览器只短期持有用户提交的待保存密码以及本次选择填入的密码。主机不会将密码库文件、完整账号列表或保险箱派生密钥发送给客机。账户内部密钥的既有 Desktop 密钥环用途见[工作台账户设计](workbench.md#本地账户与锁定)。保险箱依赖现有主机与客机的访问边界;它不防止已取得主机账户权限的程序读取运行中数据,也不阻止当前网页读取已填入它的密码。
22删除:
23删除:## 浏览器接入
24删除:
25删除:macOS、Windows、Linux 使用同一份 Go 接口、React 界面及客机 Chromium 模块。原生窗口继续使用已有账户和剪贴板能力,没有新增平台专属密钥库。客机设置 Chromium 的 `PasswordManagerEnabled=false` 策略,关闭原生密码管理器的新增保存;按 Chromium 策略语义,原有密码记录保留且可能继续填充,不自动迁移或删除。客机模块进入现有环境组件指纹,旧环境需要完成组件更新后使用网页保存与填充。
26删除:
27删除:网页表单识别和填充在 Chromium 独立脚本环境中运行,通过私有 CDP 管道连接浏览器控制器。网页主脚本无法直接调用保存绑定。控制器只接受所跟踪顶层框架的绑定事件,且只从活动标签接收可信提交、登录按钮点击或输入框中的 Enter。表单提交前读取本次值,以支持提交后立即跳转的网站。浏览器不会判断服务端登录是否成功。
28删除:
29删除:仅支持 HTTPS 顶层页面。匹配使用完整 origin,包含协议、主机与非默认端口,不跨子域自动共享。填充绑定到所选账号、活动标签和当前文档随机标识;在实际写入输入框前再次检查 origin 与文档标识。导航后旧请求失效,不自动提交。常见的先填邮箱、再填密码页面可以在同 origin 内短期关联用户名;HTTP、iframe、封闭 Shadow DOM、验证码和 Passkey 不在自动识别范围。Claude 账号面板的临时授权上下文沿用其独立生命周期,不参与密码捕获。
30删除:
31删除:主机在已解锁的工作台中每两秒请求浏览器状态,为捕获授予 6.5 秒有效期。断连、关闭工作台或停止刷新后授权到期,客机清除候选;显式锁定同时尝试立即撤销。每个标签最多一条候选,总量最多八条,最长保留两分钟,关闭标签也清除。普通标签列表、事件流和诊断日志不携带密码。密码候选只通过专用认证接口进入主机,给前端的保存提示已移除密码。
32删除:
33删除:## 接口与实现入口
34删除:
35删除:| 接口 | 行为 |
36删除:|---|---|
37删除:| `GET /api/vault` | 已解锁账户的记录摘要及拒绝提示列表 |
38删除:| `POST /api/vault` | `save`、`delete`、`unblock`;`reveal` 额外验证 `account_password` |
39删除:| `POST /api/vault/browser` | `status`、`save`、`never`、`dismiss`、`fill` |
40删除:| 客机 `POST /vault` | 现有 Bearer 认证下的短期捕获与定向填充,不向网页开放 |
41删除:
42删除:主机实现见 `internal/workbench/vault_store.go`、`vault_http.go`。网页识别与文档校验见 `internal/cage/browser-vault.mjs`。界面见 `ui/src/password-vault.jsx`。原生保存策略依据为 Chromium 的 [PasswordManagerEnabled 定义](https://raw.githubusercontent.com/chromium/chromium/main/components/policy/resources/templates/policy_definitions/PasswordManager/PasswordManagerEnabled.yaml)。协议依据为 Chromium 的 [Page 独立脚本环境](https://chromedevtools.github.io/devtools-protocol/tot/Page/)与 [Runtime 绑定](https://chromedevtools.github.io/devtools-protocol/tot/Runtime/)。
43删除:
44删除:## 验证入口
45删除:
46删除:- `go test ./internal/workbench -run TestVault`:加密、锁定、账户改密、重开、损坏保护、网站规范化、再次验证和接口脱敏。
47删除:- `node scripts/browser-vault-smoke.mjs`:真实 Chromium 中的识别、填充、跨站与导航检查。
48删除:- `node scripts/vault-controller-smoke.mjs`:隔离 HTTPS 站点通过生产控制器和私有 CDP 管道验证捕获、填充、接口认证及导航与锁定。通过 `CAGE_TEST_BROWSER_PATH` 指定测试 Chromium,仅测试适配器忽略临时站点证书。
49删除:- `node ui/scripts/password-vault-smoke.mjs`:设置、保存提示和键盘布局交互。
50删除:- `node scripts/vault-service-smoke.mjs`:真实界面连接隔离 Go 服务,验证加密落盘、后台重启及锁定;先构建 `_output/vault-qa/cage`。
51删除:
52删除:浏览器脚本使用 `CAGE_PLAYWRIGHT_MODULE` 指定现有 Playwright 安装。所有测试只使用临时配置和虚构网站,不连接用户的邮箱或个人密码库。平台编译结果与原生系统实测范围分别记录在本地验收报告中。
删除docs/design/resources.md+0 −57
@@ -1,57 +0,0 @@
1删除:# 计算资源与压力恢复
2删除:
3删除:Cage 按环境内程序的需求调整可用内存。浏览器、编辑器、终端和渲染任务共享同一虚拟机;任务结束后,持续空闲的内存逐步归还主机。资源上限遵循主机份额政策,默认使用一半物理内存及一半逻辑 CPU;小内存机器的内存上限最低为 2 GiB,CPU 最低为一个核心。现有 `AGENT_VM_HOST_SHARE` 覆盖规则继续适用,无法读取主机配置时使用 4 GiB、2 CPU。
4删除:
5删除:CPU 的实际使用时间由主机调度器按负载分配。配置的核心数约束最大并行度,空闲时无需持续占满这些核心。内存的启动容量、当前分配目标、客机可用容量和主机实际占用是不同指标;设置页分别展示上限和客机观测,主机活动监视器还包括虚拟化开销与系统内存管理的影响。
6删除:
7删除:## 用户操作
8删除:
9删除:“设置 → 环境与恢复 → 计算资源”显示自动上限、环境内存用量、当前可用容量、CPU 使用率及本次启动后的系统 OOM 终止计数。内存用量不含可回收缓存。采样失败显示未知,不以过期数据表示正常运行。
10删除:
11删除:Claude Desktop 服务因 OOM 退出时,应用页直接显示内存不足及检查计算资源的提示。状态读取暂时失败与用户操作失败分别保存;下一次读取成功清除读取错误,操作失败仍保留供用户处理。
12删除:
13删除:新环境及已停止环境在启动时应用主机份额。已经运行的环境保持原启动容量;需要提高容量或加载新控制逻辑时,用户点击“重启并应用自动资源配置”,确认保存后重启。正在运行的命令会结束,项目文件、虚拟磁盘和登录资料保留。重启不解除手动暂停网络的状态。
14删除:
15删除:自动分配仍受主机容量限制。持续超出上限的任务可能失败;减少并行渲染、降低任务规模或使用内存更多的机器才会降低其实际资源需求。137 是常见的强制终止退出码,不能单独证明 OOM。诊断中出现同一时段 OOM 计数增加,才是客机发生内存不足终止的直接证据之一。
16删除:
17删除:## 控制位置与平台
18删除:
19删除:```text
20删除:客机系统指标 → 虚拟机主机后台 → 内存分配目标 → 平台虚拟化设备
21删除: ↓
22删除: 私有状态与日志 → 工作台资源页面
23删除:```
24删除:
25删除:资源循环属于虚拟机的主机后台,与 VM 同生共灭。关闭界面不会停止内存调节,停止 VM 前取消采样并等待控制循环结束。控制能力不暴露给客机,客机观测只能影响既定上限内的分配,不能修改主机份额或其他 VM。
26删除:
27删除:| 平台 | 调整机制 | 当前边界 |
28删除:|---|---|---|
29删除:| macOS | Apple Virtualization 的传统 Virtio balloon | 目标不得超过启动容量;宿主处于严重内存压力时暂缓增长 |
30删除:| Windows | QEMU balloon 命令,经本机 QMP socket | 同样受启动容量约束;采样子进程不弹出控制台 |
31删除:| Linux | QEMU balloon 命令,经本机 QMP socket | 同样受启动容量约束;客机采用共同的 Linux 指标 |
32删除:
33删除:三平台共享策略、状态格式和设置界面;平台编译通过不能代替实机回收测量。Windows 当前运行独立 QEMU,WSL 的自动回收设置不适用于 Cage。
34删除:
35删除:## 调整策略
36删除:
37删除:后台约每两秒通过现有私有 SSH 通道读取内存、交换区、CPU、内存等待时间和 OOM 计数。单次读取限定三秒、16 KiB,不采集命令内容、项目文件或进程参数。
38删除:
39删除:内存紧张时立即请求恢复到启动上限;一般增长保留至少 1 GiB 或活动内存四分之一的余量。只有余量持续充足 30 秒,才按每次 256 MiB 逐步回收。Linux balloon 计数用于确认上一次回收已经完成,并从客机用量中排除已经归还的页面;不同内核是否同步减少 MemTotal 不影响这一口径。最低目标为 2 GiB,且不超过本次启动上限。
40删除:
41删除:采样失败停止缩容。在主机未出现严重压力时,恢复既定上限,以免客机缺内存到无法执行采样命令。主机严重内存压力优先限制继续增长,仍只回收客机有余量的部分。压缩交换区最多为启用时客机内存的四分之一、且不超过 2 GiB,实际使用时才消耗内存,用于缓冲突发申请;它不能增加物理内存,也不能保证任何任务都不会 OOM。内核不支持压缩交换区时保留资源控制并报告服务失败。
42删除:
43删除:资源摘要保存在 VM 私有目录的 `cage-resources.json`,包括时间、进程标识、上限、目标和系统指标。超过十秒的摘要视为过期。目标调整和 OOM 计数增长写入统一脱敏日志。`GET /api/environment/resources` 返回资源状态;`POST` 提交明确的重启应用操作,沿用工作台认证和任务串行规则。
44删除:
45删除:## 内部断网后的恢复
46删除:
47删除:客机或浏览器无法响应联网监测时,现有出口授权仍会收回。连续监测失联导致授权到期也会关闭已有连接;资源优化不会放松出口、DNS、地区和配置检查。
48删除:
49删除:临时观察失败、代理探测失败或授权续期失败后,后台等待并重新执行完整检查;全部必需项目通过后才恢复联网。失败采用逐步退避,间隔最长五分钟。已观测到资源压力时延后重检,避免额外检查争抢资源。
50删除:
51删除:恢复请求绑定 VM 运行标识、配置、出口授权代次和人工暂停序号。排队期间发生手动暂停、停止、配置改变或另一轮检查,旧恢复请求作废。已读回的配置确实不匹配时,不将它作为临时超时自动恢复。人工暂停始终需要用户明确恢复。详细出口条件见[网络检查设计](network-checks.md)。
52删除:
53删除:## 能力依据
54删除:
55删除:- [Apple balloon 设备](https://developer.apple.com/documentation/virtualization/vzvirtiotraditionalmemoryballoondevice)及[目标容量约束](https://developer.apple.com/documentation/virtualization/vzvirtiotraditionalmemoryballoondevice/targetvirtualmachinememorysize):运行时调整需客机配合,且受启动容量限制。
56删除:- [QEMU balloon 观测](https://www.qemu.org/docs/master/interop/virtio-balloon-stats.html):客机驱动观测可能不可用或滞后,必须区分请求与实际状态。
57删除:- [Linux zram](https://docs.kernel.org/admin-guide/blockdev/zram.html):压缩块设备、动态创建和交换区启用。
删除docs/design/workbench.md+0 −258
@@ -1,258 +0,0 @@
1删除:# Cage 工作台
2删除:
3删除:Cage 面向在本机或自有服务器项目中工作的用户。主界面管理当前工作环境的项目、网页、终端和文件编辑器;设置页集中管理环境配置。界面采用 Codex 桌面端的侧栏与内容区结构,保留 Cage 的名称和图标。每份环境配置提供一个独立账户,不依赖集中式云端账户服务。
4删除:
5删除:工作台左侧的“SSH”在原位打开主机列表,顶部显示当前环境。远程模式保持相同的工作台,项目目录和应用运行在服务器,本地负责原生输入与明确的文件传输。同一桌面入口的启动顺序和本机内存释放方案见[桌面环境切换设计](desktop-environments.md)。下文的虚拟机、主机共享与本机安装说明描述本地运行方式。无 KVM 容器、SSH 连接与两端数据归属见[云服务器部署](cloud-deployment.md)。
6删除:
7删除:## 本地账户与锁定
8删除:
9删除:每份 Cage 配置只有一个本地账户,与同一个持久环境关联。首次使用设置用户名和密码,随后通过密码解锁;左下角显示头像和用户名,菜单提供“设置”“锁定 Cage”和“退出账户”。从该菜单打开设置时默认显示“账户”,可在同一页切换到其他设置分组。头像接受不超过 2 MB 的 PNG/JPEG,在本机居中裁切为 128×128 PNG,资料和密码分别保存。
10删除:
11删除:“锁定 Cage”关闭工作台的终端与画面连接,保留后台进程;重新解锁恢复连接。“退出账户”先停止环境,成功后清除驻留解锁材料。停止失败时保留登录状态并报告错误。退出应用清除内存中的解锁材料,后台任务继续运行;启用记住登录后,再次打开可自动进入。锁定不会撤销运行中应用已持有的令牌。
12删除:
13删除:私有 `account.json` 保存账户资料和加密后的随机内部密钥。密码通过 Argon2id(64 MiB、3 轮、2 路)派生 AES-GCM 包装密钥,修改密码只重新包装同一内部密钥。内部密钥经 SSH stdin 和客机私有 FIFO 交给密钥环,用户密码不传入客机;秘密不写入 URL、命令参数、日志或前端持久存储。启动失败不覆盖已有未知密码的密钥环。
14删除:
15删除:控制接口沿用来源和主机会话校验,并增加账户解锁要求;锁定时取消现有显示连接,异步环境任务不受影响。账户元数据、登录及外观读取可在锁定时访问。账户文件损坏时拒绝启动,避免误建新账户覆盖旧密钥。此功能不加密项目或整个虚拟磁盘,不提供不同操作系统用户之间的额外隔离,也没有在线密码找回。
16删除:
17删除:macOS 的“登录与解锁”提供记住登录与 Touch ID 两项开关。首次创建账户时默认勾选记住登录,用户可取消;手动关闭后不会在后续启动时重新开启。记住登录允许重新打开应用直接进入;手动锁定会持久保存必须验证的状态,即使后台重启也拒绝自动登录。密码或 Touch ID 成功解锁后解除该限制。退出账户撤销所有本机快捷登录凭据,之后需要密码重新开启。
18删除:
19删除:每种快捷登录使用独立随机凭据包装同一个内部密钥。原生启动器通过受认证的本机接口交换凭据,网页只获得状态;后端不接受指纹成功的布尔值作为解锁依据。自动登录凭据保存在本机登录钥匙串,访问受应用代码签名控制;指纹凭据存入 Data Protection Keychain 并使用 `biometryCurrentSet`,必须通过系统指纹验证才能读取。指纹变化、取消、钥匙串不可用时保留密码入口。带指纹功能的构建需要匹配应用标识的 Developer ID 描述文件,构建可通过 `CAGE_PROVISIONING_PROFILE` 指定;缺少系统授权时不会改为不受保护的指纹凭据。
20删除:
21删除:快捷登录开关同时依据账户授权记录与当前目录对应的钥匙串状态。凭据缺失或可检查的凭据标识不匹配时,开关显示为未开启,登录页停止自动尝试并提示使用密码后重新开启。目录迁移不会搜索或转移原目录的凭据。检查过程不读取解锁密钥、不弹出认证窗口、不撤销授权;钥匙串暂时不可访问时显示检查失败并允许重试。受指纹保护的记录可能需要认证才能检查属性,此时保留 Touch ID 入口,凭据标识仍在实际解锁时核验。开启、关闭、失败及账户目录或授权变化后重新检查状态。Windows 和 Linux 返回不支持快捷登录,公共界面保留密码入口。
22删除:
23删除:密码保险箱随本地账户解锁和锁定,提供网站密码保存、选择填充与再次验证后的查看和复制。数据归属、浏览器校验及恢复条件见[密码保险箱设计](password-vault.md)。
24删除:
25删除:## 主界面
26删除:
27删除:Cage 只使用一个持久环境,VM、账户登录态、开发工具和家目录在所有项目间共享。项目对应实际共享的文件夹,左侧项目列表直接读取控制服务保存的目录,包含默认工作区;每个目录下只列出在该目录创建的终端。折叠目录不影响其中的终端进程。
28删除:
29删除:浏览器是独立的应用入口,网页使用内容区顶部的横向标签栏,不归属于项目。点击左侧“浏览器”返回仍在运行的浏览页面,顶部加号与 ⌘T 新建网页。文件编辑器页也在顶部标签栏显示,并在标题中标明打开的目录;打开项目与切换终端均不关闭已有网页。终端内容区显示所属目录及终端名称。
30删除:
31删除:网页标签及标签搜索列表显示 Chromium 已取得的网站图标。客机扩展通过原生图标缓存读取 32×32 PNG,每个图标最多 8192 字符,再随标签状态传给工作台。图标缺失或解码失败时显示地球。图标请求沿用 Chromium 对网页的图片加载策略,页面内路由变化保留图标,网页更换图标后更新显示。
32删除:
33删除:```text
34删除:┌──────────────────┬──────────────────────────────────────┐
35删除:│ Cage │ 网页 A × │ 网页 B × │ 文件 · A × │ + │
36删除:│ 工作台 ├──────────────────────────────────────┤
37删除:│ 浏览器 │ ← → ↻ 地址栏 │
38删除:│ 下载 ├──────────────────────────────────────┤
39删除:│ │ │
40删除:│ 项目 + │ 当前工作内容 │
41删除:│ ▾ 项目 A ↗ >_ │ │
42删除:│ 终端 1 │ │
43删除:│ ▾ 项目 B ↗ >_ │ │
44删除:│ 终端 2 │ │
45删除:│ │ │
46删除:│ 运行状态 ├──────────────────────────────────────┤
47删除:│ 设置 │ 网络状态 停止环境 │
48删除:└──────────────────┴──────────────────────────────────────┘
49删除:```
50删除:
51删除:未启动时,主界面提供“启动 Cage 环境”,无需选择项目。每份配置只创建和使用一个持久 VM;默认工作区通常为 `~/.claude-cage-workspace`。环境就绪后可直接使用浏览器和终端,再按需打开本地文件夹。重新打开应用继续连接同一环境。
52删除:
53删除:打开项目时,主机通过已有受目录约束的 SFTP 实现,把用户选定的文件夹动态挂载到当前 VM:macOS 使用同名路径,Windows 的 `C:\Users\name\project` 映射为 `/c/Users/name/project`。项目 A 切换到 B 后,A 的共享目录、终端进程、浏览器和编辑器页保持运行。每个项目行右侧有两个按钮:打开图标在 code-server 中打开该目录,终端图标在该目录新建终端。终端工具栏则在当前终端所属目录创建新会话。明确打开的目录继续保留,并在环境重启时恢复共享。所有项目处于同一环境,可以访问其中已共享的目录、工具和账号。
54删除:
55删除:VM 身份固定保存在主机私有的 `environment.json`;最后打开的项目保存在 `workbench.json`,明确打开的目录保存于 `projects.json`。控制服务通过 `/api/status` 的 `projects` 返回完整目录列表,不设最近使用条数限制。Cage 与 Claude Desktop 的项目选择器直接读取同一份 `projects` 列表,支持选择已有项目和明确添加本机目录。`POST /api/projects/open` 由项目系统处理:`add` 表示用户明确添加目录,普通消费者请求只接受已授权目录;`activate` 仅用于保存 Cage 当前项目。接口返回规范化后的主机路径,消费者通过既有映射取得客机路径。终端与编辑器创建请求可携带 `workspace`,只接受默认目录、当前目录及已保存的项目目录;省略时沿用最后打开的项目。前端的目录选择不修改共享授权,也不影响浏览器。首次升级优先保留原有环境的虚拟磁盘;历史其他 VM 不自动删除。项目切换不改变环境身份,也不触发代理探测、网络重检或环境重启。网络与系统配置的修改继续按既有流程验证并重启。
56删除:
57删除:标签支持重命名、置顶、拖动排序和关闭。浏览器标签通过右键或 Shift+F10 打开操作菜单。鼠标移入侧栏终端行或键盘焦点进入该行时,右侧显示置顶、重命名和删除按钮。重命名只改变显示名称;置顶标签排列在各自列表前方,拖动调整同一列表内部的顺序。名称、置顶与顺序保存在本地。⌘1–9 与 ⌘⇧[ / ] 按当前列表的显示顺序切换:浏览器中切换顶部网页,终端中切换同目录的终端。关闭当前网页后激活相邻浏览器页。刷新后重新连接仍存活的终端与浏览器,已结束的进程不因标签恢复而重新启动。
58删除:
59删除:浏览器标签栏与新建按钮垂直居中,标签总宽度随内容区调整,不显示横向滚动条。空间充足时标签最大宽度为 220px;拥挤时当前标签优先保留标题空间,其他标签平分剩余宽度。极窄标签保留可点击位置和悬停标题,右侧搜索入口可按名称或网址查找所有页面。指针拖动时标签跟随移动,相邻标签实时让位;松手保存顺序,Esc 或指针取消恢复原顺序。置顶和普通标签分别在各自分组内排序。
60删除:
61删除:打开至少两个标签后,可将顶部的网页或编辑器标签、侧栏的终端标签拖到内容区。左半区或右半区高亮时松手,标签会在该侧打开。拖动时按 Esc 可取消。每一侧保留自己的页眉。网页有标签栏和地址栏,终端页眉显示项目、会话名和会话操作,终端标签统一在侧栏管理。点击某一侧的“退出分屏”可放大该侧并保留两个标签。关闭一侧的标签后,另一侧恢复为单页。
62删除:
63删除:两个网页并排时,客机 Chromium 将原有标签组成原生分屏。两页分别按自己的可用宽度排版,都能直接点击、滚动和输入。拖动两页之间的分隔线可调整宽度。工作台通过一条远程画面连接显示整个浏览器窗口,地址栏、快捷键、输入法和剪贴板操作跟随当前标签。双网页分屏要求客机 Chromium 155 或更高版本,且两个标签能够在同一浏览器配置中打开。网页与终端并排时,浏览器只占自己的一侧。两个终端并排时,各自按面板尺寸调整行列,切换焦点沿用原终端会话。
64删除:
65删除:地址栏右侧星标与 ⌘D 打开当前网页的收藏编辑框,收藏夹按钮与 ⌘⇧O 打开收藏面板。收藏支持名称、HTTP(S) 地址、单层收藏夹分组、搜索、移动和删除;删除收藏夹将其中的收藏移至未分类。打开收藏通过现有浏览器新建页接口进入 VM,不在主机执行收藏网址。文件编辑器与内部浏览器页面不提供收藏。
66删除:
67删除:收藏由主机控制服务保存在当前配置目录的私有 `favorites.json`,Unix 权限为 `0600`,Windows 使用仅当前用户与 SYSTEM 可访问的显式 DACL;所有项目共用,应用和控制服务重启后保留,不与 Chromium 或外部浏览器同步。`GET /api/favorites` 返回 `items` 与 `folders`;`POST /api/favorites` 通过 `save`、`delete`、`save_folder`、`delete_folder` 操作单条记录,沿用工作台认证与来源校验。修改在专用互斥锁下读取最新文件并原子写入,避免并发新增覆盖其他窗口的收藏。保存失败保留编辑输入,读取失败不覆盖原文件。收藏操作不更改 VM、网络或共享目录状态。
68删除:
69删除:## Claude 入口与终端
70删除:
71删除:浏览器下方提供 `claude.ai` 和 `Claude Desktop` 两个入口。前者在 Cage 浏览器中新建官网页面;后者管理同一份官方 Linux 桌面应用,Chat 与 Code 在应用内切换。Desktop 的安装、登录资料和工作进程均位于当前持久环境中,文件访问沿用已共享的项目范围。Cage 管理安装、启动、状态与关闭,不读取应用会话,也不自动操作其中的任务。
72删除:
73删除:首次进入 Desktop 页面只读取状态,点击“下载并安装”才下载安装包。安装使用 Anthropic 官方 apt 源,校验固定的签名密钥指纹并由 apt 验证软件包;不安装推荐依赖中的 QEMU/KVM,不承诺需要嵌套虚拟机的 Cowork 功能。下载通过[依赖维护通道](managed-proxy.md#依赖安装与更新)使用所选代理,无需业务网络已放行,失败可重试;没有直接联网回退。已安装的应用在进入页面时启动,切换到浏览器或终端保持应用运行;“关闭应用”在提醒保存后停止进程及图形会话,保留登录数据。更新或修复需要先关闭应用。
74删除:
75删除:Desktop 使用编码用户 `cage`、独立的 X11 显示 `:78` 与按需启动的 systemd 服务。虚拟屏幕、窗口管理器、会话总线和应用属于同一服务,停止服务时一起回收。现有浏览器保持使用 `cage-browser` 和 `:77`。Desktop 的 VNC 只监听客机私有 Unix socket,经当前环境的 SSH 标准输入输出通道连接工作台,不创建可被自动转发的 TCP 监听端口。工作台沿用认证与来源校验,网页脚本无法调用应用控制接口。浏览器的 `claude://` 回调仅交给正在运行的官方应用;其他外部协议不由该入口执行。系统密钥环保存应用登录状态,由 Cage 使用账户内部密钥自动创建和解锁。Claude 自身的账号登录仍由用户完成。
76删除:
77删除:项目行的终端图标、终端工具栏与新建终端快捷键均打开类型选择框。普通终端提供 shell;Claude 终端在所选项目中新建交互 shell,并运行设置中的启动命令,默认 `claude`。命令支持参数及单行 shell 表达式,仅在客机执行;退出 Claude 后返回 shell。命令保存在私有 `workbench.json` 的 `claude_terminal_command` 字段,留空恢复默认,拒绝换行、NUL 和超过 4096 字节的输入。保存不重启环境,也不修改现有终端;刷新或重连不会重复执行启动命令。
78删除:
79删除:浏览器将 `claude://` 链接成功转交给正在运行的 Claude Desktop 后,工作台自动显示 Claude Desktop。转交失败时保持当前页面;该通知只表示应用接收了链接,登录是否成功由 Claude 自身显示。客机打开链接的脚本通过浏览器服务的认证接口 `/desktop-focus` 发送通知,现有浏览器事件流以 `desktopFocus: true` 传递一次切换请求。通知不包含回调链接和登录凭据,不保存在浏览器状态中,重连或普通状态更新不会重新触发切换。三个主机平台共用此链路。
80删除:
81删除:应用状态与操作由 `/api/claude-desktop`、`/api/claude-desktop/{install,start,stop}` 提供。安装和启动沿用工作台异步任务。终端创建接口 `POST /api/terminals` 接受普通终端、Claude 终端和账号面板发起的官方登录终端(`shell`、`claude`、`claude-login`)。省略类型时打开普通终端。Claude 启动命令只读取已保存的偏好。
82删除:
83删除:Desktop 默认按内容区域的逻辑像素显示,窗口尺寸和侧栏变化会同步调整虚拟屏幕。工具栏的“显示大小”提供 75%、90%、100%、110%、125% 和 150%,默认 100%;较小的值可显示更多内容,较大的值放大文字和控件。选项在按钮下方浮出,展开和收起时工具栏高度与桌面区域尺寸保持不变。偏好保存在当前工作台的本机存储中,调整立即生效,保持应用和画面连接。
84删除:
85删除:尺寸调整与其他客机控制脚本共用 SSH 执行入口,在客机内明确使用 `/bin/bash --noprofile --norc -c`。SSH 登录仍经过用户的默认 shell,控制脚本的重定向和错误处理由 Bash 执行,避免 zsh 中的 mise 初始化状态使尺寸锁创建提前返回失败。脚本整体经过 shell 引号转义,三个主机平台共用同一执行方式。
86删除:
87删除:应用以 `--force-device-scale-factor=2` 启动;虚拟屏幕宽高为内容区域的 CSS 尺寸乘以 `2 / 显示大小`,noVNC 将画面等比适配回内容区域。虚拟屏幕每边最多 8192 像素,超过上限时按同一比例缩减宽高。尺寸提交串行执行,快速调整窗口时以最新尺寸为准;失败后最多自动重试三次,持续失败显示“重试调整”。macOS、Windows 与 Linux 共用此显示链路。应用启动缩放参数在下次打开应用时生效,工具栏的显示大小无需重启。
88删除:
89删除:## Claude Code 账号面板
90删除:
91删除:“设置 → Claude 账号”有两个入口。环境就绪后,Cage 在客机用户的主目录调用官方 CLI 检查默认登录。检测到订阅时展示邮箱,用户点击“加入调度”后,新的工作台终端才可按账号池策略分配到该身份。加入时会重新核对邮箱和组织,避免用户看到 A 时点击,实际加入的却是 B。没有任何已登记账号时,旧的 Claude 终端入口继续沿用环境原有登录。
92删除:
93删除:“登录新账号”使用独立的配置目录打开官方登录终端,用户在临时浏览器中完成授权。成功后按邮箱登记,无需预填名称,后续可以设置备注。工作台只记录身份和额度摘要,订阅凭据由 CLI 自行管理。
94删除:
95删除:默认目录同一时间只代表一种身份。从 A 改成 B 后,A 的原记录不再用于分配新终端,旧终端仍标记其启动时的账号,B 不继承 A 的参与状态或额度。已有 CLI 进程如何处理外部登录变化由 CLI 决定,继续使用前应确认身份。独立登录各有自己的目录,同时保留多个订阅时更适合使用这个入口。Desktop 的登录不参与发现和调度。
96删除:
97删除:把一个账号暂停后,它的现有终端可以继续工作或断开后重连,下一次新建终端会从余下的账号中选择。所有账号停用、登录失效或额度窗口用尽时,创建会显示原因。已有安装在尚未添加任何账号时继续使用旧配置目录。账号暂停不执行登出,也不删除历史。
98删除:
99删除:每个账号以 Claude Code 的像素角色 Clawd 标识。卡片内的 `5h` 和 `7d` 分别显示已用百分比和距重置的时间。打开账号面板会启动一次额度查询,短时间内重复打开可复用最近的检查。点击“检查状态”会立即检查指定账号。同一身份的并发请求共用在途查询,账号较多时限制并发。列表轮询和倒计时本身不向 Claude 发起新查询。
100删除:
101删除:额度由官方 CLI 的 `/usage` 控制接口提供,命令只查询用量,不发送模型提示。账号身份在查询前后分别核验,身份改变时丢弃本次结果。上次查询时间与每个窗口最近读到数值的时间分开记录。只有一个窗口返回时,另一个保留上次读数。没有数据、查询失败或环境离线时显示相应原因。窗口已过重置时间的旧值只能作为历史参考,不能代表新窗口的用量。受管会话的状态行仍可补充额度读数。账号列表独立滚动,添加入口保持可见。
102删除:
103删除:调度绑定于新建的工作台终端。Cage 重连时复用原进程,不会将一段对话或未完成的工具调用自动搬到另一个订阅。同一项目五分钟内重开,负载和额度接近时优先复用原账号。会话历史按 CLI 配置目录保存,`--continue` 在本次分配的目录中找对话。复用普通终端默认登录也会沿用该目录的历史。独立命令行和绕过受管启动器的自定义命令不参与调度。[数据来源与集成取舍](../research/2026-11-04-claude-account-pool.md)
104删除:
105删除:## 主机输入法
106删除:
107删除:浏览器与 Claude Desktop 共用主机输入法接入:主机负责拼音和候选词,客机应用在自己的输入框内绘制组合文字。选词确认、更新和取消分别传递;普通按键与文字传递共用 noVNC 输入队列,确认后的回车必须等待文字提交完成。全角问号 `?`、逗号等直接产生的字符走文字通道,避免有限的 X11 按键映射丢失字符。Desktop 的兼容粘贴路径会暂时释放远端已按下的修饰键,完成 Ctrl+V 后恢复,保证按住 Shift 输入问号时行为正确。
108删除:
109删除:每个客机图形会话有独立的 IBus 输入桥与权限为 0600 的 Unix socket。浏览器的会话总线只允许 IBus portal 激活;Desktop 沿用自身的会话总线与密钥环。控制请求通过现有认证服务的 `POST /api/input` 进入,不增加网络监听端口。浏览器服务直接访问自己的输入桥,通过固定 sudo helper 把 Desktop 请求交给主用户的输入桥。文字不写入日志、诊断包或状态文件。
110删除:
111删除:输入协议的 `target` 为 `browser` 或 `desktop`,`id` 为活动浏览器标签标识或 `desktop`;`mode` 为 `status`、`begin`、`update`、`commit`、`cancel`。开始组合时绑定客机输入上下文和随机组合会话标识,更新附带递增序号。选段范围采用 UTF-16,下游转换为 IBus 字符索引。目标失焦、标签切换、过期或重复的提交被拒绝;用户点击另一个输入框前先取消组合。程序主动改变焦点时,应用可能按自身原生规则确认已有组合文字,迟到的确认不会进入新输入框。
112删除:
113删除:活动组合通过状态请求续期,断连后十秒内清理未确认文字。文字光标坐标来自客机输入上下文,按实际画布位置和像素比例转换;主机窗口移动由各平台原生坐标转换负责。macOS 使用 AppKit 文本客户端,Windows 使用 Win32 原生编辑控件与 IMM,Linux 使用 GTK 输入上下文。原生接入仅在当前远端输入框确认可用时启用;密码框、未完成组件更新的环境等继续使用已有的确认文字输入方式。
114删除:
115删除:实现和验收范围见[输入法实施记录](../test-reports/2026-11-04-native-ime/progress.md)。三平台构建通过与真实系统输入法验收分别记录,不能互相替代。
116删除:
117删除:## 声音输出
118删除:
119删除:浏览器、Claude Desktop 和环境内其他程序的声音通过工作台在本机播放,输出设备由本机系统选择。底部提供静音和音量控制,偏好保存在当前工作台的本地存储中。首次播放如果受到 WebView 自动播放限制,点击页面或“启用声音”即可继续。切换标签、项目或设置页保持声音;静音、停止环境、锁定账户及退出应用关闭播放连接,重新连接从当前声音开始。
120删除:
121删除:客机的 `cage-audio.service` 仅加载虚拟输出 `cage_output` 及其 monitor,通过限定用户组的 Unix socket 接受应用音频,不加载麦克风或物理设备。浏览器与主用户通过统一的 PulseAudio 配置连接该设备。工作台 `GET /api/audio` 返回固定格式或建立 WebSocket,沿用主机来源、会话和账户认证;每条播放连接经现有 SSH 通道运行固定的 monitor 采集命令。账户访问上下文取消会结束音频请求,客户端断开会结束对应采集进程。每个控制服务最多接受四条音频连接,不增加客机网络监听端口。
122删除:
123删除:传输格式为 48 kHz 双声道 16 位小端 PCM,每条消息通常包含 20 ms 音频。AudioWorklet 适配本机采样率,起播缓冲为 60 ms,缓存上限为 250 ms;积压或中断后清理旧音频。声音输出独立于业务外网放行,依赖安装使用维护通道。macOS、Windows 和 Linux 共用后端及 Web Audio 播放器,不申请本机麦克风权限。
124删除:
125删除:## 设置页
126删除:
127删除:设置占据完整窗口,左侧分类为账户、通用、外观、网络与代理、IP 变化规则、时区与语言、环境与恢复;右侧显示表单,底部固定保存区。离开未保存的表单需要确认,保存失败保留输入。返回工作台保留选中的标签与终端,并恢复可见浏览器画面的连接。
128删除:
129删除:通用页提供浏览器默认网站,缺省为 `https://www.bing.com/`。该偏好保存在 `workbench.json` 的 `browser_home_url`,只接受不含认证信息的 HTTP(S) 网址;保存同步至客机浏览器,无需重启 VM 或终端。工作台新建网页、浏览器最后一页关闭后的补充页使用这个地址;连接时将恢复的空白页和 Chromium 内置新标签页转到该地址,已有普通网页继续保留。
130删除:
131删除:网络表单区分已配置值与真实探测结果。代理密码保持遮蔽,留空表示保留;探测结果提供 IP、位置和检测时间。自动时区和语言设置说明来源与应用时机。项目选择放在主界面,环境与恢复页只展示共享目录和配置恢复操作。
132删除:
133删除:网络与代理页提供[内置代理](managed-proxy.md)的节点、订阅、连接和诊断入口,节点管理器是唯一出口来源,DNS 单独配置并经当前节点转发。节点切换撤销旧连接和检测授权,保留终端进程;更换本地端口需要重启环境。公网 UDP、IPv6、ICMP 持续阻断。
134删除:
135删除:## 视觉与交互
136删除:
137删除:外观以可独立配置的浅色、深色主题组织,支持跟随系统切换。主题包含强调色、背景、文字、对比度、界面及代码字体和侧栏透明度。可选的元素颜色覆盖用于侧栏、工具栏、文字层级、输入、边框、按钮、交互与状态;终端另有背景、前景、光标、选区及完整 ANSI 颜色覆盖。未覆盖的颜色继续由基础色和对比度推导,恢复自动颜色即删除对应覆盖。字号在界面层统一缩放。标准侧栏宽 248px,较窄窗口使用 224px;设置正文最大宽度 720px。原生窗口与终端跟随当前主题,VM 内的编辑器及网页保留自身外观。
138删除:
139删除:内置主题目录统一维护主题系列、分组、用途说明及浅深变体。Codex、Solarized、Ayu 的既有标识与默认配色保持兼容;新增编辑器、阅读及无障碍搭配只在用户选择后应用。预设切换整体复制配色及终端色板,删除上一个预设或自定义留下的颜色覆盖,保留用户字体。高对比与蓝橙配色明确启用不透明窗口;切换回其他主题后可通过“半透明侧栏”自行调整。
140删除:
141删除:无障碍预设以可计算的颜色对比作为验收依据:蓝橙配色的主要文字、辅助文字、链接、状态文字和终端 ANSI 文字对其使用背景达到 4.5:1,高对比配色达到 7:1;焦点和边框对相邻背景达到 3:1。对比度检查覆盖未编辑的内置配置,用户改色后不再保证这些阈值。该检查不代表整款应用的 WCAG 合规认证。成功、警告和错误继续通过不同图标及文字表达;蓝橙配色用于减少红绿依赖,不承诺适用于所有色觉差异。
142删除:
143删除:外观由控制服务独立保存至 appearance.json,前端自动提交,修改失败保留输入并允许重试。读取、保存和本机 Codex 导入分别通过 GET /api/appearance、POST /api/appearance、GET /api/appearance/codex 完成,沿用工作台认证。外观操作不走环境配置应用流程,不重启 VM 或终端;本机导入只复制当前偏好,不创建持续文件监听。
144删除:
145删除:自定义主题库与当前外观一同保存于 appearance.json,最多 50 项。每项具有独立标识、名称及浅深两套主题快照;应用主题只替换两套主题,保留模式、字号和交互偏好。修改当前配色不会自动改写已命名主题,用户需明确选择更新或另存。删除主题仅移除快照。Codex 同步保留此主题库。
146删除:
147删除:主题文件契约为 `{format: "cage-theme", version: 1, name, lightTheme, darkTheme}`。每套主题包含 `preset/accent/surface/ink/contrast/opaqueWindows/fonts`,以及可选的 `colors` 和 `terminal` 颜色表。前端在导入前严格校验版本、字段、字体、六位 HEX 颜色与 256 KB 文件上限;后端对当前主题及全部快照再次校验,未知颜色键、无效颜色、重复标识或超限主题库均不得替换已保存文件。外观保存请求上限为 512 KB。
148删除:
149删除:macOS 的 `importTheme/exportTheme` 原生操作仅接受受信任工作台主框架调用,通过系统文件窗口读写 UTF-8 JSON。Windows 桥接执行相同操作;浏览器使用文件输入与 Blob 下载。取消文件窗口不改动外观,导入同名主题分配新标识,导出内容只含主题配置。原生标题栏跟随当前侧栏颜色,已有终端直接更新 xterm 主题而不重连。
150删除:
151删除:按钮按下即时反馈,项目列表在 180ms 内展开,设置页在 160ms 内进入;减少动态效果模式下直接显示最终状态。工作台终端保持连接。浏览器画面不可见时关闭显示连接,重新可见时重连;浏览器进程、页面、下载和登录状态继续保留。原生窗口隐藏、最小化或关闭也会暂停显示连接,单纯失去键盘焦点不触发暂停。
152删除:
153删除:主要验证视口为 1280×850 与原生最小窗口的内容区 820×558。更窄页面可收起侧栏;设置表单独立滚动,保存操作持续可见。环境连接正常且外网放行仍有效时,品牌区、工作台和状态栏显示绿色带对钩盾牌,并提供状态文字。连接中断、检查中、网络关闭或放行过期时撤销绿色标记;VM 运行但浏览器连接未就绪时显示恢复入口。
154删除:
155删除:界面保留实际网络状态、项目路径和失败原因,日志与详细检查按需打开。
156删除:
157删除:底部状态栏显示当前代理节点到 `www.gstatic.com/generate_204` 的 HTTP 延迟,单位为毫秒。环境运行且没有配置任务时立即检测,之后每 30 秒更新;点击延迟可重新检测。节点或配置版本变化后丢弃旧读数,停止或控制连接中断时显示“延迟 —”,检测失败显示“延迟不可用”。测速沿用内置核心的节点检测接口,不启动代理、不改变节点和外网放行状态;延迟成功不代表环境已获准联网。
158删除:
159删除:## 模块职责
160删除:
161删除:Linux 原生窗口使用 GTK 3 与 WebKitGTK,Windows 使用 WinForms 与 WebView2,macOS 使用 Swift 与 WKWebView;三个平台消费同一 `cage desktop --json` 入口和原生桥协议。Windows 使用 QEMU/WHPX 与 Windows ConPTY,Mac 使用 Apple 虚拟化与 POSIX PTY,客机软件及代理出口约束共用。Linux 使用 QEMU/KVM 与 POSIX PTY,更新通过系统安装包手动完成。平台构建与边界见 [Windows 指南](../windows.md)和 [Linux 指南](../linux.md)。
162删除:
163删除:主机控制服务管理配置、VM 生命周期、会话与只通向该配置唯一 VM 的连接。前端只调用这个服务。终端在 VM 的 SSH 会话中执行;浏览器控制器和 Chromium 在 VM 内运行。编辑器页面也通过 VM 浏览器呈现,避免将来自 guest 的任意网页脚本作为主机控制页面加载。
164删除:
165删除:应用窗口仅加载本机工作台。外部地址统一交给 VM 浏览器;所有网页与编码进程的网络仍由现有 VM 外代理出口接管。
166删除:
167删除:Chromium 通过继承的私有调试管道接受标签与导航命令,不开放 CDP 端口。网页由用户手工操作,启动时关闭 Blink 的 `AutomationControlled` 标记,避免仅因工作台控制管道而向网页报告自动化模式。浏览器服务停止时,先由控制器通知 Chromium 保存标签和配置后退出,再清理剩余子进程。此设置保留浏览器控制与登录态,不保证第三方网站的人机验证一定通过。
168删除:
169删除:当前标签的 `back`、`forward` 可用状态同时包含在 `/tabs` 响应和 `/events` 快照中。完整页面导航、页面内历史变化和标签激活都会刷新 Chromium 的导航历史;过期的异步查询结果不会覆盖较新的状态。工作台只有在状态所属标签与当前标签一致时才启用前进、后退按钮,实时推送连接正常时无需轮询标签接口。macOS、Windows、Linux 共用此逻辑。
170删除:
171删除:## 验收重点
172删除:
173删除:1. 从应用启动到可操作,无需查终端找端口或复制访问密码。
174删除:2. 多网页/多终端切换时状态保持,关闭和恢复行为可预期。
175删除:3. 网络和系统设置清晰区分草稿、验证结果及已应用值;失败保留输入和原配置。
176删除:4. 代理断线时真实请求失败,控制台仍可操作并支持重试;IP 自动时区只使用代理出口位置。
177删除:5. 只将默认工作区和明确打开的项目文件共享给 VM;控制会话、主机代理凭据和主机 API 不向 guest 网页开放。
178删除:6. 在 1440×900、较窄窗口及放大文字时检查标签、表单与主要操作的可读性。
179删除:
180删除:## 连接与状态约定
181删除:
182删除:日常入口免密。App 持有主机私有启动密钥,通过 localhost 换取有效期 60 秒的一次性入口,再建立 HttpOnly 会话;浏览器和编辑器的内部凭据由工作台管理。链接消费后从地址栏移除,不能重复使用。直接打开一个未认证的控制地址会要求从 App 或启动器进入,不提供人工密码表单。
183删除:
184删除:虚拟显示由 Xtigervnc 提供,直接监听仅限 guest 私有 Unix socket;X0tigervnc 负责文本剪贴板与显示传输。Chromium 以普通全屏模式运行,隐藏原生浏览器栏并允许用户通过 F12 打开开发者工具;kiosk 模式会禁止开发者工具。轻量窗口管理器让 Chromium 随显示区域调整,不提供桌面壳。工作台通过浏览器控制器调整显示模式,以 2 倍像素呈现;画面连接断开时按有上限的间隔重试,不因此重启 VM 或终端。
185删除:
186删除:### 网页复制按钮
187删除:
188删除:用户在 Cage 浏览器点击复制按钮时,客机观察该页面原生复制 API 的完成结果,将这次操作的纯文本传给本机。支持 `Clipboard.writeText`、单项 `Clipboard.write` 的 `text/plain`,以及 `execCommand('copy')` 中明确设置的文本和普通输入框的选中文字。需要浏览器确认用户激活,页面、工作台画面和本机窗口均须处于当前焦点。文字上限为 65536 个 UTF-16 码元;富文本、图片和无法确认准确文字的 DOM 选区通过现有复制快捷键或文本传递面板处理。
189删除:
190删除:工作台在鼠标输入发送前通过 RFB 输入队列确认客机已收到 `/copy-context` 的随机操作标识。复制 API 开始时保存该标识,完成后在当前 `/events` 连接发送一次 `clipboard` 命名事件,数据为 `{id,text,context}`。工作台失焦、切换页面或重连会撤销旧标识,因此切回同一标签也不会接受旧操作的迟到结果。
191删除:
192删除:复制内容不写入标签快照或持久存储,重连不会重复发送。主机转发保持原文,工作台核对来源标签、操作标识和输入焦点后调用三平台共用的 `clipboardWrite` 原生接口。普通点击、拖选或无关的 RFB 剪贴板通知不能授权这条写入路径。已有网页如果改写了观察所需的浏览器 API,当前文档会跳过安装,刷新后在页面脚本之前安装。
193删除:
194删除:### 图片与文件输入
195删除:
196删除:工作内容区接受本机截图、复制的文件和文件拖入,地址栏及设置表单保留本地输入行为。截图使用图片粘贴;文件保留原名与字节,单个上限 2 GB,一次最多 100 个。网页拖入交给落点,文件粘贴按当前焦点模拟拖入;Desktop 将文件放入私有图形会话剪贴板并请求当前输入位置粘贴,目标须支持文件附件。终端接收经过 shell 引号处理的客机文件路径,不自动提交命令。
197删除:
198删除:macOS、Windows、Linux 的 `clipboardReadContent` 原生操作在明确粘贴时返回 `{png: base64}`、`{text: string}` 或 `{fileSelection: string, count: number}`;原有 `clipboardRead` 文本契约保留。文件句柄由原生层保存十分钟且仅使用一次,本机路径不交给网页。`chooseUploadFiles` 返回相同句柄,`uploadHostFiles` 通过独立原生进程读取所选文件并流式传入已建立的上传窗口。
199删除:
200删除:`POST /api/input/files/start`、`finish`、`cancel` 管理文件批次,`POST /api/input/files/{target}/{id}` 接收二进制流,沿用会话、来源及账户解锁校验。浏览器批次绑定标签,提交时核对活动标签;Desktop 批次由私有会话服务管理;终端标识必须对应存活会话。失败的浏览器或 Desktop 批次不提交部分附件。终端已经保存的附件保留,失败时不插入部分路径。
201删除:
202删除:`POST /api/input/image` 接收 `png`、`target` 和 `id`,沿用会话、来源及账户解锁校验。目标为 `browser`、`desktop` 或 `terminal`;浏览器必须提供活动标签标识,终端必须提供存活会话标识。每张 PNG 最大 20 MB、4000 万像素,控制服务解码校验后才交给客机。浏览器通过已有受认证控制通道执行,标签检查和图片输入与标签激活共用操作队列;Desktop 和终端通过 SSH stdin 传入图片,不把图片或主机文件路径放入命令参数。
203删除:
204删除:客机图片助手以目标应用用户运行。网页使用 `cage-browser` 的 `:77` 显示,Desktop 使用 `cage` 的 `:78` 显示及其 Xauthority。GTK 提供 `image/png` 剪贴板并处理大图片的分段传输,xdotool 发送粘贴按键;收到目标的数据请求后返回。剪贴板所有者最多保留 120 秒,被替换后留出 10 秒完成已有传输。终端附件使用随机文件名写入 `~/.local/share/cage/attachments/`,权限为 `0600`,目录为 `0700`,不自动清理仍可能被任务引用的图片。Cage 的图片传递不借助外部存储服务,也不扩大主机目录共享范围;目标网页或应用可按自身行为上传附件。
205删除:
206删除:前端在异步读取、转换图片前保留输入队列位置;图片失败会取消已排在其后的回车等输入,避免提交缺少附件的内容。切换标签或断开连接时,尚未发送的输入取消。接口成功表示图片已传入应用剪贴板或保存为客机文件;目标应用是否将它接受为附件仍由应用自身决定。反向图片复制与旧版独立 noVNC 页面不属于此接口。文件输入使用上述独立流式接口。
207删除:
208删除:自动时区查询通过已选代理完成。应用配置前验证,随后停止环境、保存前一份配置并重启;探测失败保留原配置。运行中不会因定期位置探测自动重启。用户选择恢复配置时,同样明确提示终端中断,并启动恢复后的环境。按键偏好单独保存,不重启环境。
209删除:
210删除:共享下载先存入 guest 私有目录,完成后以编码用户权限统一写入 Cage 环境默认工作区的 Downloads。同名文件不覆盖,路径与符号链接受到检查。终端通过专用 SSH 连接进入 guest,禁用本机转义、本机命令、代理转发及宿主环境继承。工作台刷新可以连接仍在运行的会话;控制服务或 VM 重启后的旧终端不能复原。
211删除:
212删除:下载列表区分下载中、保存中、已保存、失败和已取消。只有完整文件在共享目录中发布后才显示已保存;写入失败保留客机源文件,可在修复空间或共享连接后重试。状态原子保存在浏览器私有目录,控制器恢复后只对已完整下载且源文件仍在的项目提供保存重试;下载被中断时需要从原网页重新下载。列表保留最近 50 条结束记录,最多同时处理 50 个未结束下载,保存过程串行执行。成功保存后清理对应客机源文件;清理失败显示提示,已保存文件保持可用。
213删除:
214删除:侧栏“下载”与浏览器工具栏提供同一下载列表。工作台观察到下载完成后,通过三平台系统保存窗口提供另存为;上传选择尚未结束时延后弹出。取消另存为保留默认位置的文件,历史记录不会在应用重开时反复弹窗。用户可以打开文件、在文件管理器中显示位置,或再次另存为;操作系统使用对应文件的默认应用。文件不会在下载后自动打开。
215删除:
216删除:本机保存由原生桥调用 `browser-file --json save|open|reveal` 完成。浏览器页面只提供下载标识与建议文件名,目标路径来自系统保存窗口;HTTP 接口不接受任意本机读写路径。控制接口按下载标识检查已完成记录,读取默认工作区中的文件,或在共享保存失败时从客机按标识流式读取完整源文件。另存为先写目标目录中的临时文件,核对传递长度并同步到磁盘后原子发布;失败保留原目标文件。默认下载位置和另存为位置分别按记录保存于主机私有 `browser-downloads/`,用户选择的位置优先,停止 VM 后仍可查看,界面最多返回最近 100 个本机位置。来源、账户及会话校验继续生效,账户锁定会取消进行中的文件传递。
217删除:
218删除:网页的标准文件输入使用 CDP 拦截选择请求。每个请求绑定标签、会话和原输入节点,工作台通过三平台原生桥调用本机系统选择器;普通浏览器访问工作台时使用 HTML 文件输入。文件通过受认证的 `POST /api/browser/files/uploads/{id}` 流式传递,保留原始字节和文件名,单个上限 2 GB,多选最多 100 个。全部文件到达后才设置原网页的文件输入;取消或导航使旧请求失效,失败批次不提交部分文件。客机临时文件权限为 `0600`,目录为 `0700`;已提交文件保留到原文档导航、标签关闭或浏览器控制器重启,以支持网页延后读取 File 对象。网页自身的上传、格式校验与账户权限由网页处理,Cage 不代替网站提交消息或请求。
219删除:
220删除:Claude Desktop 的私有 D-Bus 会话运行 `org.freedesktop.portal.FileChooser` 服务;应用启动时要求版本 3 的文件选择接口。工作台读取待选请求,再调用本机选择器;选择结果经现有 SSH 通道传入会话专用 Unix socket,成功后向原调用者返回客机文件 URI,取消时返回取消响应。普通文件选择通过上传副本传递;文件夹请求打开 Cage 的统一项目选择器,直接选择已有项目,或通过“添加本机项目…”完成目录授权与动态共享。Claude 只消费已授权项目,不保存另一份共享列表,也不修改 Cage 当前项目或其他消费者的会话。项目打开、重新连接和目录交付与环境启停共用操作锁。共享完成后,控制服务检查所选目录已在项目列表中,再按主机平台映射为客机路径并返回文件 URI。取消选择返回取消响应,未授权或未挂载的目录不能交给应用。上传副本保留到 Desktop 图形会话重建,以支持应用延后读取,不扩大主机目录共享范围。
221删除:
222删除:Claude Desktop 的 `SaveFile` 请求先取得客机私有下载位置。Chromium 下载在临时文件重命名后完成;直接导出在实际写入并关闭文件后完成。创建空占位文件不算下载成功。完成文件使用浏览器已有的原子复制规则发布到默认工作区的 Downloads,再进入同一个下载列表和三平台本机另存为窗口。取消另存为保留默认位置,文件不会自动打开。下载失败显示原因;已完整写入的源文件可重试保存,进程重启后未确认完整的下载需要重新发起。Desktop 私有下载记录保存在编码用户的持久目录,只公开最近 50 条结束记录;源文件保留,以兼容应用再次读取保存位置。工作台仅接受默认工作区 Downloads 下经过文件名校验的完成记录,不接受客机提供的任意主机路径,也不把浏览器控制凭据交给 Desktop。
223删除:
224删除:编辑器由独立系统服务监督,进程异常退出时自动重新启动。工作台的编辑器恢复操作只重启该服务并重新加载项目页面,保留 VM、浏览器和工作台终端。迁移旧版编辑器时,先核对用户、安装目录、Cage 私有配置和监听参数;无法确认身份的进程不自动停止。
225删除:
226删除:## 作业与后台监测
227删除:
228删除:启动、停止、设置应用和组件更新由工作台的私有作业管理器统一准入与串行执行。HTTP 请求只提交操作并返回作业状态;自动代理恢复与订阅刷新直接使用同一提交入口。页面请求结束不会取消已接受的作业。
229删除:
230删除:停止操作可以取消正在执行或等待执行的旧作业。重复停止返回同一作业;停止过程中请求退出账户,会在该次停止成功后锁定账户,失败则保留登录状态。进度与日志绑定执行时的作业身份,已被替代或结束的作业不能覆盖后续结果。设置操作在准入时记录人工暂停代次,后发生的暂停继续生效。
231删除:
232删除:控制服务拥有作业、监测和活动请求的生命周期。受控退出先封闭准入,取消在途操作并关闭 PTY,再等待任务、订阅与传输循环完成,释放项目共享、浏览器连接和受管代理,最后释放配置锁。窗口关闭仍保留后台,VM 磁盘与持久配置保持不变;停止环境和空闲接管继续遵守各自条件。职责位置、回收顺序与平台边界见[控制服务职责](control-service.md)。
233删除:
234删除:## 更新与后台接管
235删除:
236删除:应用启动后自动检查更新,运行期间每六小时重查;失败后每五分钟重试,隐藏窗口时暂停检查,恢复显示后按到期间隔重查。正常状态不显示入口,发现新版时在左下角显示金色圆形下载按钮,悬浮说明目标版本及停止环境、重启的影响。用户保存工作后点击一次即可开始,不显示更新卡片;下载时按钮显示环形进度与百分比,校验及安装时显示忙碌状态。失败显示原因并保留重试入口。Linux 使用系统安装包更新,不显示自动安装按钮。
237删除:
238删除:点击后通过所选受管代理下载 Release 安装包并核验摘要、应用身份及平台签名:macOS 检查同一 Developer ID Team 与 Apple 验证结果;Windows 检查 Authenticode 信任链、相同发布者公钥和安装器版本。通过后自动停止环境、安装并重启,不再二次确认;代理失败无直连回退。安装或新工作台启动失败时尝试恢复旧 App,无法恢复时保留备份和失败信息。ad-hoc 或未签名开发构建不进入自动安装流程。
239删除:
240删除:更新源为公开 GitHub Releases 接口,不需要 GitHub 凭据,也不读取浏览器登录会话。访问失败时显示原因;草稿、附件缺失或非公开发行物不能作为可用更新。首次安装使用对应平台的 macOS DMG、Windows EXE 或 Linux DEB。macOS 与可信签名的 Windows 版本由应用内更新器检查和下载;Windows 未签名预览版和 Linux 系统包手动更新。
241删除:
242删除:应用启动通过私有启动密钥核对正在运行的控制服务。身份包含完整版本、当前可执行文件的 SHA-256 和控制协议号;文件摘要在进程启动时固定,同版本号的不同构建也能区分。相同构建复用后台;不同构建只有在没有运行环境、作业和存活终端时才自动接管。接管期间拒绝新任务,停止独立代理并优雅退出控制服务,然后由新程序取得同一配置的控制锁。
243删除:
244删除:已有工作时,原生窗口显示“更新待完成”,可明确打开现有环境保存文件,也可在保存后选择停止环境并完成更新。连接旧后台时,窗口标题和关于窗口持续标明更新未完成,不能只用新 App 的版本号代表全部运行组件。
245删除:
246删除:不支持版本握手的旧控制服务需要一次明确的停止与迁移操作。启动器使用认证会话提交停止,确认同一任务成功、环境停止和终端关闭,再核对进程所属用户、可执行文件、完整启动参数、工作目录、监听端口和启动时间后发送退出信号。身份变化、停止失败或退出超时都会中止更新,不发送强制杀死信号。此兼容操作仅支持 macOS,普通启动不会执行。
247删除:
248删除:安装器共用 `cage prepare-update --json`:空闲后台退出后返回 `prepared`,存在运行环境时返回 `stop_required`;安装器继续调用 `prepare-update --stop --json` 完成停止与退出。单次更新点击已授权该停止操作,安装器不再弹出确认。失败以非零退出码和 `error` 状态返回。该入口不启动新后台;安装器替换应用并重新打开后,由常规启动入口接管。
249删除:
250删除:## 持久环境的组件与工具版本
251删除:
252删除:应用与 Linux 磁盘分别升级。Cage 的浏览器控制器、显示服务、编辑器服务和下载辅助程序以嵌入资源的统一摘要标识;只有完整启动脚本成功后,才向客机写入 root 所有的组件清单。工作台连接时读取该清单,缺失、协议不兼容或摘要不符都会显示需要更新,不能仅因健康检查成功就把旧组件标为就绪。
253删除:
254删除:“更新环境组件”在现有 VM 中重新应用幂等脚本,重启浏览器与编辑器相关服务,保留磁盘、项目、账户和工作台独立终端。操作前需要保存浏览器和编辑器中的修改;编辑器内的集成终端可能结束。脚本失败时清单保持无效,用户可查看任务结果并重试。已有运行依赖完整时,组件更新可在暂停外网时执行;用户的暂停状态继续保留。
255删除:
256删除:“更新环境工具”是单独的显式操作,需要环境正在运行且组件已经同步。Chromium 使用 Debian 软件源的更新,code-server、mise 和 Claude 使用随 App 固定的最低版本;当前版本更高时保留现有版本。初次安装与后续升级共用固定安装器,下载包核验摘要后才安装。工具更新不重建磁盘,完成后重新启动相关服务并核对组件状态。依赖维护通道不以业务网络放行为前提;更新期间继续维护已有的业务联网检查与短期续租,用户手动暂停外网的状态保持不变,停止环境会取消安装。
257删除:
258删除:`GET /api/environment/versions` 只在用户查看环境设置时读取工具版本,不加入周期状态查询。返回控制服务实际构建、组件的 `current` / `required`、后端判定的 `update_required`、工具实际与最低版本,以及 `tools_update_allowed`。组件与工具更新分别通过 `POST /api/environment/update`、`POST /api/environment/tools` 提交到现有作业队列。应用原生版本来自 App 的版本信息,不能用旧控制服务的版本代替。
删除docs/public-releases.md+0 −77
@@ -1,77 +0,0 @@
1删除:# 公开发行与主页部署
2删除:
3删除:本页供维护者发布 Cage 安装包并维护项目主页。公开下载源为 [GitHub Releases](https://github.com/Lee-xeo/Claude-Cage/releases),项目主页为 <https://lee-xeo.github.io/Claude-Cage/>。macOS 构建、签名与公证步骤见[发布 macOS 安装包](releasing.md),Windows 安装器、签名及验收要求见 [Windows 指南](windows.md#维护者构建与验收),Linux 系统包构建与验收见 [Linux 指南](linux.md#维护者构建与验收)。
4删除:
5删除:## 自动发布入口
6删除:
7删除:日常推送只检查并保存测试包,不升级版本号或公开发布。收到用户明确发版指令后,使用 [三平台 CI/CD](ci-cd.md) 的显式发布入口;它统一准备版本、验证三平台、上传完整草稿并公开发布。以下手工步骤用于维护和故障恢复,同样需要用户的发版授权。
8删除:
9删除:## 发布安装包
10删除:
11删除:`VERSION` 表示正在构建的应用版本;主页按平台展示可下载的公开附件。发布新版本时,先完成相关测试、提交源码并推送对应的 `v<版本>` 标签,再按平台发行文档生成已签名且通过公证的 macOS DMG、完成签名和实机验收的 Windows 安装器,以及通过发行验收的 Linux DEB。
12删除:
13删除:三平台的安装包命名为:
14删除:
15删除:- `Cage-<版本>-macos-arm64.dmg`。
16删除:- `Cage-<版本>-windows-amd64-setup.exe`。
17删除:- `Cage-<版本>-linux-amd64.deb`。
18删除:
19删除:各平台随附与代理核心版本一致的 `mihomo-v<版本>-source.tar.gz`。Windows 还须附带该构建的 QEMU 主程序源码和包含随附库/固件的完整对应源码归档。三平台共用一份 `SHA256SUMS`,摘要在最终签名和公证票据附加后生成;不要用一个平台的清单覆盖另一个平台的清单。未签名开发包不得作为正式平台附件。
20删除:
21删除:Linux 用户通过系统包管理器手动安装,应用不自动替换系统文件。发布说明必须区分云端容器测试与真实 Linux/KVM 桌面验收;未完成的项目不得列为通过。合并工具接受各平台目录,并去除相同内容的重复源码附件。
22删除:
23删除:使用本地合并工具核对平台目录中的摘要并生成统一发布目录:
24删除:
25删除:```sh
26删除:node scripts/prepare-release-assets.mjs \
27删除: --output _output/publish-vVERSION \
28删除: _output/releases/VERSION _output/releases/VERSION/windows \
29删除: _output/releases/VERSION/linux
30删除:```
31删除:
32删除:把 `VERSION` 替换为实际版本。输出目录必须不存在;工具拒绝摘要错误、不同内容的同名文件和开发安装器,相同源码附件只保留一份。该工具只准备文件,签名、公证与实机检查仍由对应平台流程完成。
33删除:
34删除:先创建草稿并上传全部附件,再发布草稿。Alpha 版本标为预发行;所有 `gh` 命令显式指定 `--repo Lee-xeo/Claude-Cage`,避免 fork 的默认仓库指向上游。已发布的安装包不原地覆盖,修正二进制时使用新版本号。
35删除:
36删除:人工公开发布 Release 会运行 `Website and public releases`:匿名下载附件,核对 SHA-256、应用版本、Developer ID 签名、公证票据与 Gatekeeper;通过后重建并部署主页。自动发布入口直接调用同一网站流程。草稿不会进入公开下载列表;编辑历史 Release 不自动重新部署网站。验收失败时,该轮主页部署停止,维护者应检查 Actions 日志并修正发行物。
37删除:
38删除:GitHub 匿名 API 的额度耗尽时,指定版本的验证流程从该版本公开的 SHA256SUMS 和附件响应重建下载清单。此路径不使用维护者令牌;清单只能包含该版本安装包和允许的源码附件,所有文件仍须匿名下载并通过摘要、签名与公证检查。没有指定版本的自动列表检查继续报告 API 限流。
39删除:
40删除:版本标签对应的源码须包含发布工作流。需要复验时,使用下文带 `release_tag` 的手动命令。
41删除:
42删除:GitHub Release 一旦公开,应用内更新即可读到它,早于这项事后检查完成。因此,本地打包验收必须在发布草稿前通过,不能依赖 Actions 作为安装包公开前的审批门槛。CI 中若用默认 `GITHUB_TOKEN` 发布 Release,不会触发后续工作流,须另外显式调用网站工作流;手工网页发布或 `gh` 用户凭据发布会正常触发。
43删除:
44删除:## 应用内更新
45删除:
46删除:支持应用内更新的客户端直接读取公开 Release,经所选受管代理下载,没有主机直连回退。正式客户端忽略预发行;预发行客户端可接收更新的预发行或正式版本。客户端仍独立核对摘要、应用身份、平台签名:macOS 检查同一 Developer ID Team 和 Apple 验证结果,Windows 检查 Authenticode 信任链及相同发布者公钥。
47删除:
48删除:首个内测版本为 `0.1.0-alpha.1`,macOS 首次安装使用 DMG,Windows 使用对应 EXE;后续版本可通过应用内入口升级。公开源校验与单元测试不能证明真实用户环境下的替换、重启和回滚已经验收;每次发布均须在 Release 中说明实际验证范围。
49删除:
50删除:可在不安装、不启动 App 的情况下验证公开附件:
51删除:
52删除:```sh
53删除:node www/scripts/sync-release.mjs --tag v0.1.0-alpha.1 \
54删除: --output /tmp/cage-release-check/release.json \
55删除: --archive-directory /tmp/cage-release-check/assets
56删除:bash scripts/verify-macos-release.sh /tmp/cage-release-check/assets
57删除:```
58删除:
59删除:## 主页与措辞同步
60删除:
61删除:GitHub Pages 的发布源设为 GitHub Actions。普通推送只做网站检查和构建;显式发版后由发布流程验证对应版本并部署。维护者明确需要重新部署时使用:
62删除:
63删除:```sh
64删除:gh workflow run www.yml --repo Lee-xeo/Claude-Cage --ref main
65删除:```
66删除:
67删除:需要同时重验某个公开安装包时,在命令后增加 `-f release_tag=v0.1.0-alpha.1`,替换为实际版本。
68删除:
69删除:主页的“下载应用”打开 macOS、Windows、Linux 平台选择。默认版本来自具有完整 macOS 资产的公开 Release;同一版本的 Windows 正式安装器或 Linux DEB 具有有效摘要时,同时提供对应下载。缺少公开安装包的平台仍显示系统要求,并链接安装与构建说明。
70删除:
71删除:三平台安装包统一归入 `v<版本>` Release,不单独建立平台预览标签。同一预发行条目可以附带 Windows 未签名安装器及其对应的 Mihomo、QEMU 主程序源码,全部列入共用的 `SHA256SUMS`。Windows 入口显示“预览版 · 未签名”,需手动安装和更新。该入口不改变应用内更新规则;签名限制、系统兼容性与验收范围须在发行说明中写明。
72删除:
73删除:用户明确授权公开未签名预览后,维护者可手动触发 `platform-preview.yml`,提供成功的三平台 CI run ID 并启用 `unsigned_windows`。工作流要求对应 `v<版本>` 预发行条目已经存在,从该次 CI 取得原始产物、核对源码版本和摘要后补充缺少的平台附件,上传后核对 GitHub digest,最后更新共用校验清单。已有的同名安装包必须内容一致,不被覆盖;发行说明记录 Windows/Linux 的实际源码提交。随后调用官网工作流,匿名下载三平台安装包、核对摘要,并验证 macOS 签名与公证,成功后部署官网。普通推送不会触发发布。
74删除:
75删除:主页构建从公开 Release 刷新下载链接,避免源码版本领先安装包时出现失效下载。图片、样式、404 返回链接与兼容重定向均使用 `/Claude-Cage/` 子路径。
76删除:
77删除:产品正文由维护者确认的 README 驱动人工同步。README 修改完成后,再更新网页措辞及多语言版本,并分别核对功能范围、安装条件与验收限制。网站部署本身不会自动翻译 README。
删除docs/releasing.md+0 −68
@@ -1,68 +0,0 @@
1删除:# 发布 macOS 安装包
2删除:
3删除:本页供维护者构建和发布 Cage。用户安装说明见[开始使用](getting-started.md)。发行目标为 Apple Silicon、macOS 14 或更新版本;安装包包含应用、控制程序、代理核心和许可证,首次启动再下载 Linux 环境与开发工具。
4删除:
5删除:## 构建前准备
6删除:
7删除:需要 macOS、Xcode Command Line Tools、Go(版本见 `go.mod`)、Node.js 24、`uv`。`VERSION` 是 App、控制程序和安装包的版本来源。`CFBundleShortVersionString` 使用数字版本,关于窗口显示包含 Alpha 标记的完整版本。
8删除:
9删除:每次发行都须对本次构建完成签名、公证和安装包验收。版本与通过范围以对应 Release 及其构建记录为准,其他版本的结果不能覆盖本次构建。
10删除:
11删除:对外分发还需要 Apple Developer ID Application 证书与配套私钥,以及已保存到钥匙串的 `notarytool` 凭据。证书、私钥和公证凭据只保存在钥匙串或 CI Secret 中,不写入源码或发布附件。按 [Apple 公证说明](https://developer.apple.com/documentation/security/customizing-the-notarization-workflow) 配置认证后,可先用 `xcrun notarytool history --keychain-profile <名称>` 验证。
12删除:
13删除:## 构建并验证
14删除:
15删除:先完成产品改动和相关测试,再运行发行脚本:
16删除:
17删除:```sh
18删除:export CAGE_SIGNING_IDENTITY='Developer ID Application: 你的名称 (TEAMID)'
19删除:export CAGE_NOTARY_PROFILE='你的公证凭据名称'
20删除:unset CAGE_BUILD_OUTPUT
21删除:bash scripts/package-macos.sh
22删除:```
23删除:
24删除:脚本从源码构建,逐一签名嵌套程序,给控制程序保留虚拟化权限,并启用 Hardened Runtime 与可信时间戳。App 和 DMG 分别提交 Apple 公证、附加票据并验证。公证未通过、签名错误或 Gatekeeper 拒绝时,脚本失败,不生成“可发布”的成功提示。
25删除:
26删除:产物位于 `_output/releases/<版本>/`:
27删除:
28删除:- `Cage-<版本>-macos-arm64.dmg`:供用户拖入应用程序文件夹安装。
29删除:- `mihomo-<核心版本>-source.tar.gz`:随包独立代理程序的对应上游源码,须与安装包一起上传。
30删除:- `SHA256SUMS`:上述两个附件的 SHA-256 校验值。
31删除:- `app-notarization.json`、`dmg-notarization.json`、`Cage-notarization.zip`:本地公证过程记录,不作为用户下载附件。
32删除:
33删除:应用内 `Contents/Resources/licenses/` 包含主项目、Go 依赖、前端运行依赖、Mihomo 与 noVNC 的许可材料,以及实际随包使用的 noVNC 修改后源码。维护者应在依赖变化后运行 `scripts/licenses` 更新 Go 依赖许可集合。发行脚本会拒绝缺少许可证的前端运行依赖。
34删除:
35删除:只做本机开发时可运行 `bash scripts/build-app.sh`,未设置签名身份会使用 ad-hoc 签名。`--install` 可安装到 `~/Applications/Cage.app`,会替换该位置的旧版本。此构建方式不完成公证,不能作为已经通过 Gatekeeper 的下载包宣传。
36删除:
37删除:构建先在临时目录验证新 App,再替换目标;目标中的 App 或控制程序仍在运行时,脚本拒绝覆盖。默认目标为 `_output/Cage.app`,并清理构建目录中的其他 Cage App。独立验证可将 `CAGE_BUILD_OUTPUT` 设为绝对 `.app` 路径且不使用 `--install`,此时不清理其他副本。正式打包使用默认目标,应先取消这个自定义变量。
38删除:
39删除:使用 `--install` 时,安装副本先验证再替换到 `~/Applications/Cage.app`,随后清理构建目录及两个 Applications 目录中的其他 Cage App。清理按应用标识核对,跳过符号链接、其他软件,以及 App 或控制程序仍在运行的副本,不删除配置、虚拟磁盘、项目或历史 DMG。目标本身在构建前和替换前均检查是否运行。安装前须保存文件、停止环境并退出。发行打包成功时也会清理构建目录中的 App 副本。
40删除:
41删除:## Apple 返回等待或失败时
42删除:
43删除:公证结果文件保存提交 ID。超时后先查询原提交,不重复上传同一包:
44删除:
45删除:```sh
46删除:xcrun notarytool info <提交ID> --keychain-profile "$CAGE_NOTARY_PROFILE"
47删除:xcrun notarytool log <提交ID> --keychain-profile "$CAGE_NOTARY_PROFILE" _output/notarization-log.json
48删除:```
49删除:
50删除:App 提交已 Accepted 时,运行 `xcrun stapler staple _output/Cage.app`,再执行 `bash scripts/package-macos.sh --from-notarized-app` 接续 DMG 制作。此选项要求 App 版本与 `VERSION` 一致且已有有效票据;源码有新改动时必须重新完整构建。
51删除:
52删除:DMG 提交已 Accepted 时,直接对原 DMG 执行 `xcrun stapler staple`、`xcrun stapler validate` 和 `spctl --assess --type open --context context:primary-signature --verbose=2`。附加票据会改变文件内容,必须重新生成校验值。公证被拒时根据 Apple 日志修复并重建;不能用移除隔离属性或关闭 Gatekeeper 代替验收。
53删除:
54删除:## 发布与安装验收
55删除:
56删除:发行物通过公开的 GitHub Releases 分发。推送前检查提交内容不包含个人配置、节点凭据、登录链接和未脱敏截图;先推送源码提交及对应版本标签,再创建草稿、上传 DMG、Mihomo 源码与校验文件,附件完整后发布。公开源验证与主页自动部署见[公开发行与主页部署](public-releases.md)。
57删除:
58删除:从实际 DMG 复制 App 后验证签名、票据与首次入口。用独立临时配置验证空状态,避免覆盖维护者正在使用的环境。每次发布说明分别列出已验证项和仍需真实用户操作的项目:干净 Mac 安装、首次镜像下载、代理配置、Claude 授权及模型请求、重启恢复、升级和卸载。单独通过公证不能替代这些产品验证。
59删除:
60删除:应用内更新读取公开 Release 中与版本对应的 `Cage-<版本>-macos-arm64.dmg` 和 `SHA256SUMS`,通过所选受管代理获取,无直连回退。发布包及其中的控制程序、代理核心和更新安装器须由与当前 App 相同的 Developer ID Team 签名,并通过公证与 Gatekeeper 验证;ad-hoc 开发构建会被自动安装流程拒绝。公开下载源无需 GitHub 凭据;发布者仍须按每个版本分别验证下载、安装与重启,不能将附件公开可读等同于升级验收通过。
61删除:
62删除:客户端自动检查新版,仅在有可安装更新时显示圆形按钮。用户保存工作后点击一次,下载校验完成即停止环境和控制服务、替换 App 并重启,不再二次确认。版本接管与启动失败恢复见[工作台设计](design/workbench.md#更新与后台接管)。配置、代理和虚拟磁盘位于用户数据目录,替换或删除 App 不会自动删除这些数据;Linux 组件与工具另行升级。
63删除:
64删除:## 客机工具版本与来源
65删除:
66删除:`internal/cage/tool-versions.env` 保存 Cage 首装和受管升级使用的最低版本及平台摘要,`guest-tools.sh` 是共用安装器。code-server 固定为 [4.145.0 官方发行版](https://github.com/coder/code-server/releases/tag/v4.145.0),mise 固定为 [2026.10.25 官方发行版](https://github.com/jdx/mise/releases/tag/v2026.10.25);arm64 与 amd64 资产的 SHA-256 来自各项目 GitHub Release API 的资产 `digest` 字段。code-server 首选中科大固定版本的 .deb,缺包时自动回到 GitHub。mise 首选 npmmirror 上的上游平台包,各架构的 npm 归档和 GitHub 发布归档分别固定 SHA-256。调整 mise 版本时,从 npm 官方注册表核对完整性,并比对两个归档内可执行文件的字节。校验失败的文件不能安装。Claude Code 使用 npm 的固定版本 `2.1.314`,npm 校验注册表的包完整性。Chromium 采用 Debian 签名软件源选定的版本。对 Debian 官方安全库中的 chromium 和 chromium-common,先从南大、中科大取同一 .deb,使用官方索引中的 SHA-256 验证,再交给原 APT 操作安装。自定义安全仓库或缺少 python3-apt 的精简环境继续使用原 APT 配置。
67删除:
68删除:升级这些最低版本时,需要同时核对官方资产、更新摘要并验证现有持久环境,不能只改显示版本。受管升级保留较新的已安装版本,不清理用户配置,不重建 Linux 磁盘。组件脚本与工具包分别维护:组件摘要正确只证明 Cage 脚本匹配,不表示所有工具已升级或已完成漏洞审计。
删除docs/research/2026-10-30-agent-vm-assessment.md+0 −61
@@ -1,61 +0,0 @@
1删除:# 基于 agent-vm 开发 Claude Cage 的选型建议
2删除:
3删除:查询日期:2026-10-30。状态:已核对固定版本源码,尚未构建、启动 VM 或验证真实登录与网络行为。本文是二次开发选型建议,不表示用户已批准具体底座及全部实现方案。
4删除:
5删除:**建议优先以 [sylvinus/agent-vm](https://github.com/sylvinus/agent-vm) 为二次开发底座。** 它已具备本地 Linux VM、项目目录共享、Claude Code、浏览器版 VS Code 和 Chromium,能够复用的部分比单独采用 Lima 或 code-server 更多。AIO Sandbox 保留为交互形态参考。
6删除:
7删除:本次检查基于提交 `652688aae92c35ce536b9be52262e1cc5ec6e03a`。源码从 GitHub 固定提交压缩包读取,没有运行安装脚本、访问本机 Claude 凭据或创建外部 fork。下文链接均指向该提交,便于复查。
8删除:
9删除:## 需求与现成能力
10删除:
11删除:目标是在本机打开一个隔离工作区,使用文件、CLI 和浏览器完成 Claude 编码全流程。主机指定项目目录双向共享;登录、授权、模型请求及工具运行留在 cage 内;时区和语言独立配置;全部对外通信必须经指定 HTTP/SOCKS5 代理,失败时断网。
12删除:
13删除:| 用户可见的行为 | 上游已有能力 | 需要二次开发的部分 |
14删除:|---|---|---|
15删除:| 在本机启动隔离工作区 | 每项目 Linux VM,内嵌 Lima,提供创建、复用、停止及诊断入口 | cage 专用配置与启动检查 |
16删除:| 在网页中看文件和运行 Claude | 已有 code-server 入口及 Claude 安装选项 | 保留必要组件,统一工作区入口 |
17删除:| 操作浏览器完成登录 | 已有 Chromium、xvfb、浏览器自动化配置 | 增加可交互浏览器画面、独立持久用户目录和 cage 内授权回调 |
18删除:| 单独设置时区和语言 | Linux guest 可以承载这些设置 | 配置系统时区、locale、浏览器语言;清除不必要的宿主继承并检查实际生效值 |
19删除:| 指定代理不可绕过 | 主机侧网络栈已提供访问策略检查 | 从公网可达策略改为强制代理,关闭直连、宿主 DNS 和启动阶段的旁路 |
20删除:| 与主机共享项目文件 | 已有目录共享,主机侧保护部分文件 | 挂载白名单、专用凭据存储、实际项目 IO 验证;Git 写权限单独决定 |
21删除:
22删除:上游能力来源:[README](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/README.md)、[安装配置](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/agent-vm.setup.sh)、[网页编辑器入口](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/cli/code.go)。适配判断与改造项为本次分析。
23删除:
24删除:## 为什么适合二次开发
25删除:
26删除:项目主许可为 MIT,仓库中包含 CLI、VM 管理、主机侧网络与文件保护、安装配置、构建入口,以及修改过的第三方源码和补丁。至少在本次源码检查范围内,关键入口可定位,不必依赖一个没有构建定义的预制容器。是否可在本机完整构建仍须实际验证。[LICENSE](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/LICENSE)、[Makefile](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/Makefile)、[第三方源码来源](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/third_party/SOURCES)
27删除:
28删除:其网络策略在主机侧执行。VM 内即使拥有管理员权限,也不能直接修改主机进程中的策略。上游还拒绝给 VM 增加另一张绕开该网络栈的网卡。这是实现“代理故障即断网”的有用基础,但目前策略和出站行为仍不符合本项目要求。[策略接入](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/limaembed/limaembed.go#L45)、[额外网络检查](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/vm/networkconfined.go#L15)
29删除:
30删除:选择它也有维护代价:它内嵌并修改了 Lima、文件共享服务和网络栈,需要跟踪第三方升级与补丁;本次不能承诺这是一个已经充分验证的成熟安全产品。初期应尽量沿已有扩展点改造,避免同时更换共享文件机制、虚拟机后端和用户界面。
31删除:
32删除:## 已确认的关键缺口
33删除:
34删除:**网络默认仍可直连公网。** `Policy.Allows` 在没有域名限制时允许公共地址;TCP 和 UDP 转发在通过策略后直接调用主机网络连接。因此,设置 HTTP_PROXY 或增加一个域名白名单都不能独立实现本项目要求。[访问策略](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/netguard/netguard.go#L183)、[TCP 转发](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/third_party/gvisor-tap-vsock/pkg/services/forwarder/tcp.go#L36)、[UDP 转发](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/third_party/gvisor-tap-vsock/pkg/services/forwarder/udp.go#L32)
35删除:
36删除:建议保留 TUN 接管思路,并把主机侧策略收紧为只允许指定代理端点及明确列出的内部服务。TUN 被关闭或篡改后,外层仍拒绝其他目的地。DNS 必须一起改造:上游给宿主 DNS 服务开有内部例外,解析代码还会使用主机默认解析器,仅限制 TCP/UDP 的通常转发路径会漏掉它。初次设置、镜像下载、软件安装与常态运行的出站也应分别列清楚,避免首次启动为了安装依赖临时开放直连。[网络补丁](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/patches/lima/0005-network-isolation-hooks.patch)、[DNS 解析](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/third_party/lima/pkg/hostagent/dns/dns.go#L192)
37删除:
38删除:**浏览器默认主要服务于无界面自动化。** 上游 Chrome DevTools MCP 使用 `--headless=true --isolated=true`。需要增加可供用户操作的浏览器窗口传输,并单独持久化登录所用的浏览器配置。code-server 的登录链接处理不能继续默认打开主机中的授权网站;需要把链接交给 cage 内浏览器。[浏览器配置](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/agent-vm.setup.sh#L605)、[编辑器链接参数](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/cli/code.go#L225)
39删除:
40删除:**独立地区设置需要明确成为 cage 配置。** 在检查的应用配置与安装入口中,没有找到同时管理系统时区、系统 locale 和浏览器语言的完整配置契约。建议统一配置并分别验证终端与浏览器的实际值。上游会继承宿主代理环境;cage 应显式控制代理、排除列表等设置,防止本机全局配置改变 cage 的行为。[代理继承处理](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/agent-vm.setup.sh#L76)
41删除:
42删除:**共享文件有明确的 Git 使用限制。** 上游默认将 `.git` 等路径设为只读,因而 Claude 不能直接在共享仓库中提交。这个限制保护主机侧 Git 配置,也影响编码流程。初期可以先验证源码编辑与测试,保留默认保护;是否允许 cage 写共享 `.git`,应在要求完整 Git 工作流时单独决定。它当前使用受限的 reverse-sshfs/SFTP 路径,不能未经评估直接换成此前泛用 Lima 方案中的 virtiofs,否则会失去上游已有的文件保护机制。[共享限制](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/internal/vm/lima.go#L136)、[上游安全说明](https://github.com/sylvinus/agent-vm/blob/652688aae92c35ce536b9be52262e1cc5ec6e03a/README.md#security)
43删除:
44删除:## 实现边界与最小验证顺序
45删除:
46删除:建议第一轮只处理本机 macOS、单个 cage、单个指定 HTTP/SOCKS5 代理,以及一个明确共享的项目目录。入口包括 code-server 和 cage 内浏览器,不增加完整桌面、多用户平台或云端调度。
47删除:
48删除:1. 在独立构建目录验证固定版本的构建与现有 VM 生命周期;运行未加固的上游前,必须明确它的直接公网出口,不能拿真实 Claude 登录态先行试用。
49删除:2. 补主机侧默认拒绝、指定代理通道和受控 DNS。先用无凭据探针验证正常请求、错误代理、断开代理、关闭 TUN、重启、IPv6 与 UDP 阻断。
50删除:3. 设置并验证系统时区、locale、浏览器语言和独立持久目录;增加最小交互式浏览器入口。
51删除:4. 实际完成一次 cage 内登录、授权回调、模型请求、项目修改与测试,最后核对主机共享目录中的结果。
52删除:
53删除:第一轮通过的含义是:在约定权限范围内,指定代理是唯一外部出口;网络故障不会回退直连;用户的主机浏览器资料、家目录及凭据没有被自动导入;共享仅发生在指定项目路径。时区与语言独立配置和可见值得到验证。“完全安全”不作为无边界承诺,主机管理员、虚拟化底座与明确共享的文件始终在信任边界内。
54删除:
55删除:## 其他候选的结论
56删除:
57删除:- AIO Sandbox:功能接近,但上一份调研中确认的公开构建资料缺口仍未解除,因此不优先作为需要自行掌握关键实现的底座。参见[综合调研](2026-10-30-cage-options.md)。
58删除:- [dbort/claudevm](https://github.com/dbort/claudevm):项目更小,但 README 明确说明防火墙在 guest 内、默认用户可用 sudo 关闭它,且登录令牌通过主机浏览器获取;核心缺口比 agent-vm 更多。
59删除:- [Isolade](https://github.com/isolade/isolade):面向多 agent、多仓库和凭据代理的完整工作台,与本次精简文件、CLI、浏览器的目标相比,需要先消化更多产品机制,暂不优先。
60删除:
61删除:这些是本次目标下的适配判断,不是对项目整体质量的排名。最终采用 agent-vm 前仍需构建和真实 VM 验证;本次完成了选型所需的关键源码核查。
删除docs/research/2026-10-30-cage-options.md+0 −119
@@ -1,119 +0,0 @@
1删除:# Claude Cage 选型调研
2删除:
3删除:查询日期:2026-10-30。本文面向项目发起人,供选择实现路线使用。结论来自官方文档、项目仓库及仓库目录检查;未安装候选软件,未进行 Claude 登录、代理故障或资源占用实测。
4删除:
5删除:目标是在 macOS 上提供一个可隔离的开发环境,用户只使用文件、CLI 和浏览器,不需要完整桌面。Claude Code 本体、它启动的工具、登录浏览器和授权回调均留在环境内;时区、系统语言和浏览器语言单独配置;外部通信只允许经过用户指定的 HTTP / SOCKS5 代理;项目目录与主机共享。
6删除:
7删除:**可行,已有接近成品的方案。功能上最接近的是 AIO Sandbox;针对基于开源项目二次开发的要求,当前优先评估 agent-vm。** 它已集成 Lima、Claude Code、共享目录和网页编辑器,具体源码证据、缺口及建议见[二次开发选型](2026-10-30-agent-vm-assessment.md)。本文保留各组件和替代路线的综合比较。
8删除:
9删除:## 用户实际使用的环境
10删除:
11删除:打开一个本地 Web 入口,即可访问项目文件、运行 Claude Code,并切换到 cage 内的浏览器完成登录。主机浏览器承载编辑器界面及远程浏览器画面;访问登录网站、保存 Cookie 和接收授权回调的浏览器进程运行在 cage 内。
12删除:
13删除:```mermaid
14删除:flowchart TB
15删除: UI[主机浏览器:文件、终端、远程浏览器入口]
16删除: FILES[主机指定项目目录]
17删除: subgraph VM[专用轻量 Linux VM:Lima]
18删除: subgraph WORK[工作容器:独立用户、时区、语言及持久数据]
19删除: IDE[code-server:文件与终端]
20删除: CC[Claude Code 与工具进程]
21删除: BR[Chromium:登录、授权及浏览]
22删除: IDE --> CC
23删除: end
24删除: GW[独立网络网关:sing-box TUN]
25删除: FW[工作进程无法修改的防火墙]
26删除: WORK --> GW --> FW
27删除: end
28删除: UI <-->|本地受控入口| WORK
29删除: FILES <-->|限定目录共享| WORK
30删除: FW -->|只允许指定代理及必要受控连接| PROXY[HTTP / SOCKS5 代理]
31删除: PROXY --> NET[外部服务]
32删除:```
33删除:
34删除:这是建议架构,尚未实现。图中的 VM 可以没有桌面系统。交互式浏览器仍需要最小显示服务及画面传输组件,但不必安装完整桌面套件。LinuxServer 的 Chromium 镜像已有通过 Selkies 向浏览器传输单应用界面的路径,可作为参考。[单应用浏览器文档](https://docs.linuxserver.io/images/docker-chromium/)
35删除:
36删除:## 现有项目与适配程度
37删除:
38删除:| 项目 | 已有能力 | 对本需求的缺口与判断 |
39删除:|---|---|---|
40删除:| [AIO Sandbox](https://github.com/agent-infra/sandbox) | 在同一容器中集成 Chromium、可交互浏览器画面、终端、文件、VS Code Server 和 MCP | 功能最接近,可先做概念验证;需要补强制出口、Claude 登录集成及权限边界。公开仓库标注 Apache-2.0,但完整镜像自行构建能力仍有缺口,见下文 |
41删除:| [code-server](https://github.com/coder/code-server) | MIT 开源,提供浏览器中的 VS Code,可承载文件操作和开发终端 | 适合做精简入口;自身不提供 VM 隔离、独立登录浏览器和防泄漏网络 |
42删除:| [OpenVSCode Server](https://github.com/gitpod-io/openvscode-server) | 将 VS Code 放在服务器运行,通过浏览器访问 | 同类入口备选;隔离、浏览器和网络需要另外组合 |
43删除:| [Docker Sandboxes](https://docs.docker.com/ai/sandboxes/) | 每个 sandbox 使用独立 Linux 内核的 microVM,支持 Claude 和主机工作目录共享 | 现成隔离底座候选;HTTP/SOCKS5 上游支持仍标为实验性,浏览器登录默认便利功能涉及主机浏览器,需要定制与验证 |
44删除:| [Kasm Workspaces](https://docs.kasm.com/docs/1.18.0/guide/egress) | 容器化浏览器、桌面、会话管理和 VPN 出口 | 更偏多用户工作空间平台;当前单机、无桌面需求无需优先采用。原生 VPN 路线也不直接匹配本次 HTTP/SOCKS5 出口 |
45删除:| [UTM](https://github.com/utmapp/UTM) | macOS 虚拟机管理、图形操作及共享目录 | 可以承载完整环境;更适合手工管理 VM,当前形态优先考虑可编排的 Lima |
46删除:| [ClaudeCage](https://github.com/PACHAKUTlQ/ClaudeCage) | 面向 Claude Code 的便携命令行沙箱 | 仓库已于 2026-10-16 归档;未覆盖本次完整 Web 开发环境与强制代理要求,不选作底座 |
47删除:
48删除:表中适配排序是本次需求下的判断。Docker 的 microVM 与网络边界参见[隔离文档](https://docs.docker.com/ai/sandboxes/security/isolation),目录共享参见[架构文档](https://docs.docker.com/ai/sandboxes/architecture/),代理条件参见[上游代理文档](https://docs.docker.com/ai/sandboxes/configuration/upstream-proxy/)。Kasm Workspaces 的商业平台许可和开源组件需要分别判断:[平台许可](https://docs.kasm.com/docs/1.19.0/reference/license)、[开源 KasmVNC](https://github.com/kasmtech/KasmVNC)。
49删除:
50删除:## AIO Sandbox:最接近现成产品的候选
51删除:
52删除:官方说明明确支持在同一容器中共享文件系统,同时提供浏览器、Shell、文件操作和 VS Code Server。浏览器下载的文件可以直接被终端和文件接口读取;用户可通过 VNC 入口操作浏览器,通过 code-server 入口处理代码。[功能说明](https://sandbox.agent-infra.com/guide/start/introduction)
53删除:
54删除:与本需求相关的现成配置包括:
55删除:
56删除:- 设置工作目录并挂载主机项目目录。[工作目录](https://sandbox.agent-infra.com/guide/advanced/workspace)
57删除:- 设置浏览器语言、界面语言和启动参数。[浏览器配置](https://sandbox.agent-infra.com/guide/advanced/browser-config)
58删除:- 通过 `DISABLE_JUPYTER` 停止不需要的 Jupyter 服务;停用服务不代表镜像体积随之缩小。[环境配置](https://sandbox.agent-infra.com/guide/advanced/env-config)
59删除:- 将 agent 本体运行在容器内,与浏览器、文件和工具共享同一执行环境。[Agent In Sandbox](https://sandbox.agent-infra.com/guide/start/agent-sandbox)
60删除:- README 的 Compose 示例包含 `TZ` 配置;发行说明 v1.11.0 写明恢复原生 arm64 镜像构建支持。选用时仍应核对固定镜像标签的实际架构。[README](https://github.com/agent-infra/sandbox)、[发行说明](https://github.com/agent-infra/sandbox/releases)
61删除:
62删除:它尚不能直接被认定为满足全部隔离要求。官方代理说明提供 `PROXY_SERVER` 以及代理排除项,没有给出覆盖所有进程、所有协议、启动和故障阶段的禁止直连保证。安全说明也将默认用途定位为可信本地开发。[代理说明](https://sandbox.agent-infra.com/guide/advanced/proxy-network)、[安全说明](https://sandbox.agent-infra.com/guide/advanced/security)
63删除:
64删除:另一个实质性限制是源码完整性:本次检查公开仓库 `main` 的文件树,`docker/` 只有 `.gitkeep`,没有找到 Dockerfile 或完整运行服务端实现。公开仓库的 Apache-2.0 标识不能单独证明预制镜像的全部运行组件都可从此仓库重建。因此,它适合先评估使用体验;若要求全部关键组件可审计、可自行构建,应先解决这个缺口。[公开 docker 目录](https://github.com/agent-infra/sandbox/tree/main/docker)、[本次检查用仓库文件树 API](https://api.github.com/repos/agent-infra/sandbox/git/trees/main?recursive=1)
65删除:
66删除:## 更精简、可掌握的组合路线
67删除:
68删除:建议以专用 Lima VM 为 macOS 上的底座,里面运行工作容器与独立网关。工作容器放 code-server、Claude Code、Chromium 及必要的图形传输组件,避免装入整套桌面、Notebook 和额外 agent 服务。Lima 是开源 Linux VM 管理工具,支持自动文件共享;在 macOS 的 VZ 后端可使用 virtiofs。已有 Colima 也可作为容器运行底座备选,需建立独立实例并收紧默认挂载。[Lima 仓库](https://github.com/lima-vm/lima)、[共享目录](https://lima-vm.io/docs/config/mount/)、[Colima](https://github.com/abiosoft/colima)
69删除:
70删除:code-server 与 OpenVSCode Server 只承担用户入口。把它们直接安装在主机上,并不会形成底层隔离。LinuxServer Chromium/Firefox 镜像和 Selkies 可提供单应用画面传输,选用前需核对运行权限、浏览器自身沙箱和所选标签的实际组件。[code-server](https://github.com/coder/code-server)、[OpenVSCode Server](https://github.com/gitpod-io/openvscode-server)、[Chromium](https://docs.linuxserver.io/images/docker-chromium/)、[Firefox](https://docs.linuxserver.io/images/docker-firefox/)
71删除:
72删除:这条路线的开发工作集中在启动配置、挂载白名单、浏览器启动与授权衔接、持久数据,以及网络验收;无需重写编辑器、终端或浏览器。当前不建议为单机需求引入多用户调度平台或 Kubernetes。
73删除:
74删除:## HTTP / SOCKS5 出口如何兜底
75删除:
76删除:sing-box 提供 TUN 入口、HTTP 出站和 SOCKS 出站,可以作为这次代理网关的候选。普通 HTTP CONNECT 主要承载 TCP;SOCKS5 的 UDP 是否可用取决于实际服务端及配置。TUN 不会凭空补齐上游协议能力。对上游不支持的流量应拒绝,不允许自动转为主机直连。[TUN](https://sing-box.sagernet.org/configuration/inbound/tun/)、[HTTP 出站](https://sing-box.sagernet.org/configuration/outbound/http/)、[SOCKS 出站](https://sing-box.sagernet.org/configuration/outbound/socks/)
77删除:
78删除:以下是建议实现条件,不能从“已设置代理”或“已启用 TUN”推导为已经成立:
79删除:
80删除:1. 工作容器没有第二条可用的公网出口。外部防火墙默认拒绝,网关只放行到指定代理端点的必要连接。
81删除:2. Claude、浏览器及其子进程不能修改网关或防火墙。工作容器不授予网络管理能力,不暴露容器引擎控制 socket;网络管理权限仅属于网关。
82删除:3. 防火墙先于工作服务生效。代理退出、配置错误、认证失败、TUN 消失或 VM 重启时保持禁止直连。
83删除:4. DNS 查询同样通过指定代理链处理,例如经代理访问 DoH;IPv6、UDP、QUIC 和 WebRTC 必须纳入覆盖或阻断。代理服务器域名自身的解析也要确定启动策略,不能暗中放宽为任意直连 DNS。
84删除:5. 本地 UI 与授权回环属于明确允许的内部通信。允许主机访问 cage 的 UI,不应扩大成 cage 可主动访问所有主机服务或局域网。
85删除:6. 如果指定代理本身轮换出口 IP,cage 无法仅凭固定代理地址保证固定公网 IP;还需代理供应方提供固定出口,并实测。
86删除:
87删除:“绝对兜底”的可验收含义应为:在约定权限和可信底座内,启动、运行及故障阶段均无非指定出口。它不包含主机管理员主动解除防护、内核漏洞等无限威胁范围。
88删除:
89删除:Gluetun 的内置防火墙具备 VPN 断线保护,但其主要上游是 OpenVPN/WireGuard;内置 HTTP 代理是让其他程序接入 Gluetun 的入口,不能据此认定它能把任意 HTTP/SOCKS5 代理当 VPN 出口。本次无需优先采用。[Gluetun](https://github.com/passteque/gluetun)、[防火墙说明](https://github.com/qdm12/gluetun-wiki/blob/main/faq/firewall.md)
90删除:
91删除:## 登录、系统信息与文件共享的边界
92删除:
93删除:Claude Code 应直接运行在 cage 内,浏览器和本地 MCP 服务也位于同一隔离范围。仅让主机 Claude 调用 cage 的工具,不能覆盖 Claude 自身的请求与系统信息读取。Claude 官方内置沙箱主要限制工具命令,文档明确列出了在其之外运行的本体功能、工具和服务,因此不够单独满足本需求。[Claude 沙箱边界](https://code.claude.com/docs/en/sandboxing)
94删除:
95删除:登录 URL 应在 cage 内的真实浏览器打开。最简单的授权衔接是让 CLI 与浏览器共享网络命名空间,使浏览器的 `localhost` 能到达 CLI 回调;如果分开容器,应显式安排回调路径或使用官方支持的手动授权码流程,并仍在 cage 内浏览器登录。不能默认点击终端链接后由主机浏览器完成授权。[Claude 登录故障说明](https://support.claude.com/en/articles/14552646-troubleshoot-claude-code-installation-and-authentication)
96删除:
97删除:独立时区与语言可通过 guest 系统配置、locale 和浏览器语言设置实现,需要同时检查终端及浏览器实际值。时区独立不意味着需要让系统时钟偏离真实时间。Linux VM 也不提供“任意硬件信息都可伪装”的保证;可见 CPU 特征、浏览器特征及应用自身标识需要按实际需求检查。目标可定义为隔离主机用户数据、进程环境和凭据,不能直接扩展为“外部服务无法关联身份”。
98删除:
99删除:文件共享应只开放指定项目路径,并将浏览器用户目录、Claude 凭据和 cage 家目录放入专用持久存储。Lima 文档的默认挂载包括只读主机家目录,严格隔离部署需要显式替换,不能直接沿用。[Lima 默认配置](https://lima-vm.io/docs/config/)
100删除:
101删除:可写共享目录中的删除、修改会真实影响主机文件,这是共享的预期效果。项目里的脚本与 Git 配置也会被共同修改;主机后续执行这些内容仍会产生主机侧效果。macOS 与 Linux 的文件权限、大小写、文件监听和依赖二进制差异需用实际项目验证,尤其不应直接混用两个系统的编译产物和依赖目录。[Lima 挂载及文件监听限制](https://lima-vm.io/docs/config/mount/)
102删除:
103删除:## 下一步建议与验证范围
104删除:
105删除:二次开发底座优先按[agent-vm 源码评估](2026-10-30-agent-vm-assessment.md)推进选型;AIO Sandbox 用于参考完整体验。本文中的独立组件组合仍可作为替代方案,具体采用尚待确定。
106删除:
107删除:后续最小验证应覆盖这些真实行为:
108删除:
109删除:| 验证项 | 通过条件 |
110删除:|---|---|
111删除:| 完整登录 | cage 内 Claude 发起登录、cage 内浏览器完成授权、回调成功、发送一次实际请求;主机浏览器不直接访问授权站点 |
112删除:| 出口一致 | CLI、浏览器和子进程均经指定代理;抓包检查非代理目标的连接尝试 |
113删除:| 故障断网 | 停代理、错误凭据、删除 TUN、重启网关及冷启动时均无直连;恢复后能重新工作 |
114删除:| 协议覆盖 | DNS、IPv6、UDP/QUIC、WebRTC 与绑定网卡的连接都符合允许或阻断策略 |
115删除:| 权限边界 | 工作进程不能修改外部网关、访问主机引擎 socket、未共享主机目录或其他 cage |
116删除:| 本地设置 | 终端和浏览器分别核对时区、locale、语言、家目录及机器标识 |
117删除:| 文件与持久化 | 两侧修改项目文件可见;重启后 cage 登录态保留;非授权目录不可见 |
118删除:
119删除:以上均为待验证事项。本次调研未证明任何组合已经通过完整验收,也未测量启动耗时、内存或文件 IO 性能。
删除docs/research/2026-11-03-windows-privacy-guard-comparison.md+0 −56
@@ -1,56 +0,0 @@
1删除:# Windows Privacy Guard 与 Cage 的比较
2删除:
3删除:本文供 Cage 维护者判断产品差异与可借鉴的能力。核查日期:2026-11-03。外部项目固定到提交 `cf7e6ed14736b8f9762a10bb3e94ee6f40cac797`;Cage 依据当前工作区,HEAD 为 `7090ecf5a3464b46d6b05442e456d929839889fe`,包含尚未提交的在途修改。本次阅读文档和关键源码,没有部署外部项目、执行其脚本或进行两产品的运行性能与泄露对照测试。
4删除:
5删除:## 阅读版:用户会遇到什么差别
6删除:
7删除:Cage 的主要优势是把浏览器、终端和开发工具放进统一的隔离环境,并在环境外控制网络。Windows Privacy Guard 的主要优势是保留 Windows 原生使用方式,提供定向登录清理、应用联网保护和独立浏览器入口。两者都有失败关闭和证据过期机制;虚拟机隔离与浏览器抗追踪需要分别评价。
8删除:
9删除:例如,让 Claude 调用 Python 下载依赖时,Cage 内新进程继续经过相同的虚拟机出口。Windows 应用保护要检查这个 Python 进程是否属于防火墙登记范围,不能从 Claude 主程序通过验收推导整个工具链都已受保护。此判断来自两边的约束对象:应用身份与虚拟机网络,见下文源码证据。
10删除:
11删除:| 用户关心的方面 | Windows Privacy Guard | Cage 当前实现与边界 |
12删除:|---|---|---|
13删除:| 日常工作方式 | Windows 上的 Claude 桌面应用、独立 Edge/Brave 配置;通过启动器、后台服务和面板协作 | 同一窗口管理 Linux 终端、浏览器、编辑器及 Linux 桌面应用;需要虚拟化和额外磁盘、内存,具体开销未对测 |
14删除:| 本机文件与登录资料 | 定向清理 Claude 登录残留;独立浏览器配置不复制普通浏览器登录。项目未建立通用的宿主文件隔离边界 | 主机目录按授权共享,宿主登录与密钥不自动导入。共享文件仍可被修改、删除;所有项目共用一个环境 |
15删除:| 网络保护范围 | 防火墙按登记的可执行文件/包身份限制出口;手动浏览器另有代理参数、偏好和进程检查,不承诺按浏览器配置文件实现内核隔离 | 在虚拟机外约束客机业务流量,不依赖应用是否遵循代理环境变量;宿主应用不属于这个范围 |
16删除:| DNS、UDP、IPv6 | 有作用域 DNS、WebRTC 偏好、Windows 内核规则。某入口的策略通过不能替代其他入口的实包验证 | 客机业务 DNS 经同一代理;公网 UDP、IPv6、ICMP 拒绝。代理自身启动解析与业务 DNS 分别说明 |
17删除:| 时区与语言 | 当前手动浏览器快照要求 Windows 系统为丹佛时区、浏览器英语;准备工具不会自动修改整机时区 | 改虚拟机内时区、语言和浏览器偏好,宿主可保持原设置;可按出口建议配置 |
18删除:| 浏览器抗追踪 | Brave 入口采用浏览器原生隐私功能;日常手动入口不连接调试协议 | Chromium 通过私有调试管道管理标签。已隔离宿主环境,但未建立与 Brave 原生指纹随机化等价的能力 |
19删除:| 部署与维护 | 可构建源码、Skill 和面板;依赖用户准备多个组件,缺少通用的完整安装事务 | 应用集成工作台与代理管理。macOS、Windows、Linux 的实测范围不同,不能概括为三平台全面验收 |
20删除:
21删除:外部能力与限制依据:[后端说明](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/README.md)、[手动浏览器说明](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/references/manual-browsers.md)、[定向清理与项目范围](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/README.md)。Cage 依据:[工作台设计](../design/workbench.md)、[网络检查](../design/network-checks.md)、[内置代理](../design/managed-proxy.md)。
22删除:
23删除:### 截图能够支持的结论
24删除:
25删除:外部项目的截图记录了维护者某次出口、DNS、WebRTC、时区和语言的结果。项目明确说明这些图片来自不同阶段与浏览器。面板的 36 条 WFP 规则核验属于内核策略身份与条件检查,没有宣称同时完成 UDP/IPv6 正负实包对照。语言评分 57→23 和 Brave 的 B 级均来自第三方检测,不能作为两产品整体安全性或账号风险的排名。[截图与限定条件](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/docs/before-after.md)
26删除:
27删除:Cage 保留中文字体与 Emoji 字体以支持正常使用,因此也不应把消除这些字体信号作为安全验收目标。虚拟机使网页接触客机环境,但客机自身的浏览器、字体、渲染和持久登录仍可形成关联信号。Brave 对部分可指纹化值进行随机化的机制,与运行在虚拟机中的 Chromium 是不同能力;具体效果仍需同条件测试。[Brave 机制说明](https://brave.com/privacy-updates/3-fingerprint-randomization/)
28删除:
29删除:### 出口监测的实际取舍
30删除:
31删除:外部网关将出口许可设为 4 秒,并有高频本地检查和出口采样;Cage 的放行租约为 90 秒,运行监测约每 30 秒检查一次。外部实现更强调证据新鲜度,代价可能是探测成本和网络抖动时的暂停,这属于代码推断,尚未做体验对照。它还实现了无新结果时保留连接但暂停转发的限时分支,不能把 4 秒理解为所有连接一律立即关闭。[外部网关源码](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/guard.py#L47-L64)
32删除:
33删除:两边都无法仅凭周期探测保证代理服务商每条连接使用相同出口。Cage 的 90 秒租约也不表示代理断线后会直连;实际转发没有直连回退。两种失败需要分开:代理不可用,以及代理仍可用但出口在两次采样间改变。[Cage 网络约束](../design/network-checks.md)
34删除:
35删除:### 建议
36删除:
37删除:1. 保留 Cage 的统一虚拟机边界。它覆盖任意客机工具的方式更适合开发工作台,且可保留宿主原有时区、浏览器和登录状态。
38删除:2. 借鉴外部项目的证据展示:分别显示配置读回、运行时约束、实际流量测试及其时间与范围。Cage 已有对应分层设计,可进一步检查界面是否足够清楚。
39删除:3. 将浏览器抗追踪作为独立评估项。如评估 Brave,应在相同代理、相同站点和相同使用任务下比较兼容性、关联信号与资源开销;不能仅凭一次评分决定替换浏览器。
40删除:4. 复核出口异常发现时间与误暂停之间的平衡,先测故障行为和探测成本,再决定是否调整周期,不直接照搬 4 秒参数。
41删除:
42删除:这些是后续建议,本次没有改变产品设计、配置或运行中的环境。Cage 的平台文档记录了 Windows 11 单台实体机验收,以及 Linux 云端/软件模拟验证;Windows 10、Linux KVM 与部分真实业务路径仍有未测项。[Windows 范围](../windows.md)、[Linux 范围](../linux.md)
43删除:
44删除:## 证据版:关键实现位置
45删除:
46删除:| 结论 | 外部项目源码 | Cage 当前工作区 |
47删除:|---|---|---|
48删除:| 按应用身份限制与按 VM 限制的区别 | [ClaudeWfpGuard.cs:195](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/wfp/ClaudeWfpGuard.cs#L195):身份条件与四类拒绝规则 | `internal/cage/egress.go:24`、`:49`;`internal/vm/networkconfined.go:18`:拒绝不经受控网络的驱动与额外网卡 |
49删除:| 业务 DNS 不走宿主解析回退 | [install-scoped-dns.ps1](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/dns/install-scoped-dns.ps1):指定域的 NRPT 定向 | `internal/cage/egress.go:131`:经同一代理发送 DNS;代理启动解析边界另见设计文档 |
50删除:| 短期放行证据 | [guard.py:47](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/guard.py#L47):4 秒许可及无结果暂停 | `internal/cage/gate.go:21`:90 秒;`internal/workbench/safety.go:553`:约 30 秒监测间隔 |
51删除:| 浏览器原生偏好与调试管道 | [brave_browser_policy.py:17](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/brave_browser_policy.py#L17):读回 WebRTC 偏好;同文件 `arguments` 定义启动参数 | `internal/cage/browser-agent.mjs:37`:Chromium 私有调试管道、关闭 AutomationControlled 标记与 QUIC;这些选项不能证明没有可检测特征 |
52删除:| 系统时区归属 | [brave_browser_policy.py:13](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/backend/source/brave_browser_policy.py#L13) 与手动浏览器说明:固定 Denver/Windows 时区要求 | `internal/cage/guest-env.sh:3`:设置客机时区;`:9`:客机进程环境 |
53删除:| 中文字体保留 | [before-after.md](https://github.com/SWL-1229/claude-windows-privacy-guard/blob/cf7e6ed14736b8f9762a10bb3e94ee6f40cac797/docs/before-after.md):说明仍存在中文字体与 Emoji 信号 | `internal/cage/guest-setup.sh:3`:安装 Noto CJK 与 Emoji 字体 |
54删除:| 项目之间共用环境 | 外部项目没有提供通用项目 VM 隔离机制 | `docs/design/workbench.md:44`、`:46`:单持久 VM 与已授权项目共享;不能宣传为项目之间隔离 |
55删除:
56删除:本次核对用于比较机制与交付范围,不构成完整安全审计。源码存在、维护者截图、离线测试、当前机器真实运行验证是不同证据等级。
删除docs/research/2026-11-04-claude-account-pool.md+0 −31
@@ -1,31 +0,0 @@
1删除:# Claude Code 多账号与订阅额度
2删除:
3删除:核对日期为 2026 年 11 月 5 日。Cage 的账号面板管理用户本人可以使用的订阅。用户可以同时打开两个项目终端,查看各自使用的账号,也可以暂停一个账号接收新终端。账号的登录、模型请求和续期均由客机里的官方 Claude Code 处理。
4删除:
5删除:## 两个现有工具的取舍
6删除:
7删除:| 工具及模式 | 用户能做什么 | Cage 的选择 |
8删除:| --- | --- | --- |
9删除:| CC Switch v4.0.25,隔离终端 | 在独立配置目录中并行使用多个账号。另有更换全局登录的模式,据项目说明,进行中的会话也可能改用新账号。订阅账号不参加它的代理故障转移。 | 借鉴独立目录。Cage 在创建终端时完成分配,暂停账号后原终端仍属于它。[项目说明](https://github.com/farion1231/cc-switch/blob/v4.0.25/docs/guides/claude-official-accounts-guide-zh.md) |
10删除:| CCS v8.10.0,原生账号 | 为工作和个人账号分开登录,配置目录和默认会话历史各自独立。 | 每个账号保留官方 CLI 的独立配置和历史。Cage 共用同一 VM、项目文件和网络出口。[原生账号说明](https://docs.ccs.kaitran.ca/providers/concepts/claude-accounts) |
11删除:| CCS,代理号池 | 另行配置代理凭据,按请求路由。提供会话粘性、账号冷却和流开始前的故障转移。 | 订阅路径在官方 CLI 创建会话时分配,不接管请求流,工具执行途中不会由 Cage 自动重放。[号池说明](https://docs.ccs.kaitran.ca/features/pool) · [路由源码](https://github.com/kaitranntt/ccs/blob/v8.10.0/src/cliproxy/routing/routing-strategy.ts) |
12删除:
13删除:CC Switch 和 CCS 的额度功能中都能找到读取订阅凭据、调用 OAuth 用量端点的代码。这个端点不是本方案面向 Cage 的公开额度接口。Anthropic 允许用户在原版 Claude Code 中自己登录,也明确限制第三方收集或中转订阅令牌、代表用户用订阅凭据路由请求。产品内运行官方 CLI 还须遵守有关商业条款、保留原版认证方式和由用户直接结算的条件。[CC Switch 用量源码](https://github.com/farion1231/cc-switch/blob/v4.0.25/src-tauri/src/services/subscription.rs) · [CCS 用量源码](https://github.com/kaitranntt/ccs/blob/v8.10.0/src/web-server/usage/native-quota-collector.ts) · [Anthropic 对产品集成与认证的说明](https://code.claude.com/docs/en/legal-and-compliance)
14删除:
15删除:## 登录与存储
16删除:
17删除:一个 Cage 本地账户解锁整份工作台,可以在一个 Linux 客机中管理多个 CLI 登录。主机保存名称、订阅身份摘要、是否参与调度和最近用量。面板中的新登录各有一个固定的配置目录。普通终端的默认登录则引用原目录,Cage 单独核对邮箱和组织,发现身份后需用户选择加入调度。CLI 自己把登录状态写入该目录,用户在临时浏览器中完成官方授权。认证页面的 Cookie 与日常浏览器隔离,授权参数不出现在工作台标签元数据或最近网址中。操作系统用户相同的客机程序仍处于同一信任边界,不能把配置目录当作不同租户之间的安全隔离。[官方多账号认证](https://code.claude.com/docs/en/authentication#log-in-with-multiple-accounts) · [凭据存储](https://code.claude.com/docs/en/authentication#credential-management)
18删除:
19删除:桌面应用有自己的账号登录。官方文档明确区分 CLI 和 Desktop 的认证配置。网页或桌面端的账号菜单可以在同邮箱绑定的个人和团队组织之间切换。未查到让外部程序给 Desktop 的每段对话指定个人 Pro 登录的受支持接口。Cage 当前也只管理一个 Desktop 服务与密钥环。首版把调度范围限定在工作台新建的 Claude Code 终端。普通 shell、独立命令行、Desktop 和网页继续使用各自的登录。[Claude Code 认证](https://code.claude.com/docs/en/authentication#credential-management) · [官方账号切换说明](https://support.claude.com/en/articles/13189465-log-in-to-your-claude-account) · [Cage 工作台](../design/workbench.md)
20删除:
21删除:## 调度和缓存
22删除:
23删除:终端 A 已经在改文件时,即使用户停用其账号,或服务端报告额度用完,Cage 都保留 A 的进程、项目和登录目录。已有连接重连原终端。只有新建终端才在可用账号间分配。这也避免了把已执行的文件编辑、测试或 shell 命令再运行一次。终端关闭后,Claude 的历史仍在该账号的目录。关闭终端或停止 VM 和暂时断开查看有不同结果。
24删除:
25删除:配置目录隔离本地历史,服务端自己管理提示缓存。同一账号、相同模型和稳定的提示前缀有利于缓存复用,跨账号继续一段对话不能承诺缓存命中。新项目开新会话,也不该因为选到同一账号就展示“缓存已命中”。需要验证时可以观察官方状态行提供的缓存读取量,以及支持版本的主会话命中率。订阅的额度无须通过主动发送模型请求来探测。[Claude Code 缓存字段](https://code.claude.com/docs/en/statusline#prompt-cache-fields) · [Claude API 的缓存边界](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#cache-storage-and-sharing)
26删除:
27删除:## 额度能看到什么
28删除:
29删除:Pro 账号的五小时和七天窗口分别显示用量。账号面板通过客机里的官方 Claude Code 主动查询 `/usage` 的结构化数据,会话状态行作为补充。控制请求 `get_usage` 支持只取订阅额度,跳过本地历史分析。该结构在官方 SDK 中仍标为实验性,字段缺失时应保留旧读数并说明结果。CLI 确认登录和能否取回用量是两个独立结果;有百分比但无重置时间时,只能显示百分比。其他设备也使用同一订阅,查到的数值可能来自 CLI 的近期缓存。[Claude Code 用量查询](https://code.claude.com/docs/en/costs#using-the-usage-command) · [官方 SDK 0.3.314 类型定义](https://unpkg.com/@anthropic-ai/[email protected]/sdk.d.ts) · [状态行字段](https://code.claude.com/docs/en/statusline#available-data)
30删除:
31删除:调度先排除已暂停、身份不可用和仍在耗尽窗口内的账号。可分配的账号中优先选占用终端较少的,再比较有时效的额度,负载相同、余量接近时,优先沿用这个项目最近五分钟分配到的账号。其余平手情形按轮次分配。五分钟是本地调度偏好,不代表服务端缓存的寿命。已登录但暂时查不到额度的账号仍可分配终端。没有任何可用账号时向用户说明原因。不回退到隐藏账号、付费 API 或其他出口。零个账号记录的已有安装继续走原终端入口,原有个人数据不需搬迁。独立新登录经官方身份确认后才计入账号池。旧版留下的未绑定草稿仍可以撤销。
删除docs/research/2026-11-04-native-ime.md+0 −80
@@ -1,80 +0,0 @@
1删除:# 主机输入法与远端应用的原生输入体验
2删除:
3删除:日期:2026-11-04。本文供维护者决定实现方向;先说明用户能获得什么,再列实验依据与需要接入的边界。
4删除:
5删除:## 结论与用户体验
6删除:
7删除:完整方案有可行路径:继续使用主机输入法、候选词和个人词库,让远端应用在自己的输入框内显示拼音、分词与组合文字,再把文字光标位置传回主机定位候选窗。
8删除:
9删除:客机浏览器的关键链路已经通过独立实验。正式交付仍需实现三平台主机接入,并在 Claude Desktop 的真实编辑器中验收。可行性实验使用独立会话。后续实现和实际输入验收单独记录于[实施进度](../test-reports/2026-11-04-native-ime/progress.md),该记录区分源码接入、构建和真实输入体验。
10删除:
11删除:例如输入 `ni'hao` 时,远端输入框应原位出现带组合标记的文字;选中“你好”后只确认一次。按取消键撤掉未确认文字;移动文字光标或跨行后,下一次输入的候选窗应出现在新的输入位置。主机上的地址栏、设置表单和终端继续由各自的本地输入控件处理。
12删除:
13删除:## 已验证的部分
14删除:
15删除:实验使用当前 Linux 客机的 Chromium 156.0.8078.73、GTK 3、IBus 1.5.32;独立显示、会话总线和临时用户目录。软件包仅通过 apt 下载、校验和解压,没有安装进系统。输入内容均为固定测试文字。后续图形实验限制在 700 MiB 内存的独立服务中,服务退出时回收全部进程。
16删除:
17删除:| 问题 | 实验结果 | 含义 |
18删除:|---|---|---|
19删除:| 拼音能否由远端输入框原位绘制 | `prefix suffix` 的光标处显示 `prefix ni'haosuffix`,产生真实组合输入事件 | 不需要覆盖远端输入框,也不依赖剪贴板来显示组合文字 |
20删除:| 确认时会不会重复输入 | 最终值为 `prefix 你好suffix` | 组合更新与提交可分别传递 |
21删除:| 已有选区能否替换 | “你好”选区被确认后的“是”替换 | 应用自己的编辑器负责选区操作 |
22删除:| 取消会不会留下拼音 | 撤销组合文字后恢复 `prefix 是suffix` | 本次无选区的取消场景通过;其他取消语义仍须验收 |
23删除:| 富文本与 emoji | 富文本内原位组合,最终得到 `rich text中🙂` | 普通输入框与浏览器富文本均有基础支持 |
24删除:| 光标坐标能否跨行变化 | 两个位置分别报告 `[242,734,0,54]`、`[302,790,0,52]` | 有实际文字位置数据,坐标需结合显示缩放转换 |
25删除:| 第一次聚焦是否立即有坐标 | 初始坐标为空 | 不能把最近点击位置当作精确光标位置 |
26删除:| 能否主动刷新坐标并避免字母重复 | 输入桥消费主机已处理的真实 `n` 按键,得到 `[332,614,0,52]`,原文仍为 `prefix suffix` | 值得采用“主机处理组合输入、客机消费相应按键”的同步方式 |
27删除:| 密码框是否沿用相同处理 | 组合文字未出现在密码框,输入类型提示也未返回有效值 | 必须单独识别安全输入状态;不能仅依赖输入类型字段 |
28删除:
29删除:以上是客机输入链路实验。程序化聚焦和选区配合原生 X11 按键完成测试;没有冒充主机真实中文输入法的完整人工验收。结果、原型和重现方法见[实验记录](../test-reports/2026-11-04-native-ime/README.md)。
30删除:
31删除:## 推荐的职责划分
32删除:
33删除:主机输入法负责按键解释、候选词、选词、组合范围和确认。客机应用负责文本布局、选区替换及组合文字绘制。Cage 负责有顺序地传递组合输入,以及把客机坐标转换成主机屏幕坐标。
34删除:
35删除:建议为浏览器用户和 Desktop 用户各自提供私有的 IBus 输入桥,与各自的显示和会话总线保持相同生命周期。控制通道沿已有认证服务与 SSH 传输,不创建公开端口。正式实现可以采用小型原生客机服务;实验中的 Python、GI 和完整 IBus 解压目录不代表产品必须引入同样的依赖集合。
36删除:
37删除:现有 noVNC 链路继续承接画面、鼠标和普通按键。由主机输入法处理的按键进入组合会话后,由客机输入桥消费,促使应用刷新光标信息;组合文字通过输入法接口更新。这个顺序已在 Chromium 证明可行,生产实现还需验证候选翻页、修饰键、重复键和切换输入框时的并发行为。
38删除:
39删除:三平台共用客机桥和输入会话协议;主机接入点分别验证:
40删除:
41删除:| 主机 | 推荐接入点 | 本轮证据与范围 |
42删除:|---|---|---|
43删除:| macOS | AppKit 原生文本输入客户端,提供组合文字、选区及字符屏幕矩形 | 官方接口契约已查证;本机 WKWebView 实测 `EditContext` 为 `undefined`,原生接入尚未实现 |
44删除:| Windows | 原生文本输入控件或 TSF 文本存储,向系统提供文字范围的屏幕矩形 | 官方接口契约已查证;需要用实际 WebView2 宿主与系统输入法测试 |
45删除:| Linux | 原生 GTK 输入上下文,接收组合文字和格式,设置候选窗定位 | 官方接口契约已查证;本轮客机 GTK 实验通过,主机 Cage 原生窗口尚未接入 |
46删除:
47删除:普通网页组合事件能提供文字更新,但不足以证明三平台的分词格式、替换范围和候选窗定位均满足完整目标。原生主机适配是推荐方向,三平台验收须分别完成。
48删除:
49删除:## 必须在实现中保持的契约
50删除:
51删除:- **输入目标与顺序。** 每次聚焦生成新的目标标识与组合会话,更新带递增序号;浏览器切标签、切应用、失焦和断连均终止旧会话。迟到的确认不得进入新的输入框。
52删除:- **确认语义。** 组合更新、确认和取消独立传递。普通按键路径与组合路径共用顺序,候选确认的回车不能又变成远端提交消息的回车。
53删除:- **字符范围。** 明确主机 UTF-16、IBus 字符索引和 UTF-8 字节偏移之间的转换,包含 emoji 与组合字符;不能直接复用字符串长度。
54删除:- **显示坐标。** 客机文字矩形转换时包含 2 倍显示像素、Desktop 缩放、画面适配、侧栏、窗口位置和主机屏幕缩放。零宽光标有效,零高或过期矩形不能当作可用定位。
55删除:- **输入格式。** 保留组合内的选中片段、光标位置和下划线;本次原型只发送整段下划线,尚未验证主机分词格式。
56删除:- **密码与数据范围。** 安全输入状态需要可靠识别。输入文字和周边内容不进入日志、诊断导出或持久存储;仅在活动输入会话中传递完成编辑所需的数据。
57删除:- **完成边界。** 接口成功应区分已收到、已交给活动输入上下文、已确认提交。失焦后不得盲目重试提交。
58删除:
59删除:这些属于新的跨端输入契约,本文记录推荐方案,尚未把它们当作当前产品已实现的能力。
60删除:
61删除:## 其他路线与未解决项
62删除:
63删除:浏览器已有的调试控制通道可以发送组合文字;Linux 输入法桥则有机会让浏览器和 Desktop 共用同一套协议。Claude Desktop 4.4212.0 的隔离启动明确拒绝调试参数,应用资源校验也限制了替换测试资源,因此本轮没有通过调试通道测试其真实编辑器。正式实现应使用应用支持的 Linux 输入法入口,并在真实应用中验收。
64删除:
65删除:辅助功能接口可作为补充坐标来源。实验中默认启用辅助功能状态仍未收到 Chromium 事件;显式开启渲染器辅助功能后收到普通输入框坐标与密码角色。富文本末尾部分事件返回零矩形,因此不能把该接口作为所有输入框精确定位的唯一依据。真实按键由输入桥消费的实验,为继续研究实时光标同步提供了更直接的路径。
66删除:
67删除:本轮未覆盖主机真实中文输入法的候选翻页与分词格式、日本语/韩语、多显示器、不同缩放、编辑器自绘输入区域、切换焦点时的迟到提交、密码框完整行为,以及 Claude Desktop 真实输入框。要宣称“原生无感”,必须完成这些与产品支持范围相符的验收,不能只以 API 调用或客机实验通过为依据。
68删除:
69删除:## 一手来源
70删除:
71删除:以下资料查询日期均为 2026-11-04。实现方向是根据接口与本地实验作出的判断,不是资料对 Cage 的兼容承诺。
72删除:
73删除:- [IBus Engine](https://ibus.github.io/docs/ibus-1.5/IBusEngine.html):组合文字、提交、光标位置和按键处理接口。
74删除:- [Chromium 的 GTK 输入上下文实现](https://github.com/chromium/chromium/blob/main/ui/gtk/input_method_context_impl_gtk.cc):组合文字及属性转换;光标位置在按键处理时传给 GTK,密码框使用简单输入上下文。
75删除:- [Chromium 的 Linux 输入方法实现](https://github.com/chromium/chromium/blob/main/ui/base/ime/linux/input_method_auralinux.cc):从应用文字客户端获取光标矩形,并传给输入上下文。
76删除:- [AppKit 文本输入客户端](https://developer.apple.com/documentation/appkit/nstextinputclient):组合文字、选区、替换范围和字符位置的主机契约。
77删除:- [Windows 文本范围位置接口](https://learn.microsoft.com/en-us/windows/win32/api/textstor/nf-textstor-itextstoreacp2-gettextext):文本范围的屏幕坐标契约。
78删除:- [GTK 输入上下文](https://docs.gtk.org/gtk3/class.IMContext.html)与[光标位置](https://docs.gtk.org/gtk3/method.IMContext.set_cursor_location.html):主机组合输入与候选窗定位接口。
79删除:- [EditContext 规范](https://www.w3.org/TR/edit-context/):由绘制者提供字符矩形的浏览器输入接口;本机是否具备能力以探针结果为准。
80删除:- [AT-SPI 字符矩形](https://gnome.pages.gitlab.gnome.org/at-spi2-core/libatspi/method.Text.get_character_extents.html):辅助功能坐标接口,其在 Cage 中的适用范围仍需实测。
删除docs/research/2026-11-04-notarization-upload.md+0 −60
@@ -1,60 +0,0 @@
1删除:# 公证上传超时:原因与可用路径
2删除:
3删除:供 Cage 发行维护者排查本次 `v0.1.4-alpha` 发布使用。查询与验证日期:2026-11-04。
4删除:
5删除:## 结论
6删除:
7删除:当前主机代理数据路径的上传吞吐过低,导致 `notarytool` 的 S3 请求在分片传完前超时。换用标准 S3 客户端后,经同一代理仍慢;仅让该客户端显式直连 S3,原始 App ZIP 在 22.18 秒上传成功,Apple 随后返回 Accepted,审核日志无问题。DMG 同样在 24.51 秒上传成功并获 Accepted。
8删除:
9删除:这组对照支持定位到本次代理数据路径;尚未区分代理核心、节点、节点上游和本机到节点之间的具体瓶颈,不能据此认定 `notarytool` 分片实现存在缺陷,也不能推广为所有代理都不可用。
10删除:
11删除:## 对照证据
12删除:
13删除:所有实验保留原始安装包与签名,使用相同主机。未修改 Cage 环境出口规则。
14删除:
15删除:| 对照 | 上传方式 | 结果 |
16删除:|---|---|---|
17删除:| GitHub,1 MiB 相同附件 | 当前主机代理 | 33.08 秒,服务端确认收到 |
18删除:| GitHub,1 MiB 相同附件 | 仅该命令直连 | 4.56 秒,服务端确认收到 |
19删除:| App ZIP,50,070,047 字节 | 官方 REST + boto3 单次 PUT,沿用代理 | 468.92 秒仍只读出约 10.35 MB;停止该对照 |
20删除:| 相同 App ZIP | 相同客户端、单次 PUT,仅 S3 `Config(proxies={})` | 22.18 秒,S3 HTTP 200,Content-MD5 校验通过,ETag 与 MD5 一致 |
21删除:| 签名 DMG,55,297,096 字节 | 官方 REST + 显式直连单次 PUT | 24.51 秒,S3 确认上传,Apple Accepted |
22删除:
23删除:App ZIP 的 SHA-256:`df21bcac8abf9f6027fbaa7bb33723482d8e0a675a6e8652734144c884a7dfd3`。App 公证 ID:`7221e51e-8f1f-4b98-9e49-41a1609d1e09`;DMG 公证 ID:`7cfcb1a9-1791-4cc0-9b49-52b410e26256`。这些产物对应首个候选提交 `670b537`;用户随后要求纳入主分支的两项修复,最终发行产物须重新构建与公证。
24删除:
25删除:本机过程证据在 `docs/test-reports/2026-11-04-release/` 与忽略目录 `_output/notary-debug/`;包含原始测量、服务端确认、公证状态和审核日志。后者不进入公开附件。
26删除:
27删除:## 为什么总表现为分片超时
28删除:
29删除:本机工具为 `notarytool 1.1.2 (41)`。详细日志显示,认证和创建提交返回 HTTP 200,随后工具使用 5 MB 分片,错误发生在 S3 上传阶段,历史错误中的 `completedParts` 为空。API 中的 In Progress 只表示已登记提交,不能证明文件已经完整上传。
30删除:
31删除:命令帮助将 `--timeout` 定义为等待公证结果的期限,它不延长上传请求。工具二进制还包含独立配置 `nt-upload-connection-timeout`;受控实验设为 900 秒后,日志明确确认该值,但上传仍慢,因此停止实验并恢复原先不存在的配置。具体默认上传期限未核定。
32删除:
33删除:标准客户端经代理能持续传出超过 5 MB,证明不存在已证实的“文件传到 5 MB 就被拒绝”的硬限制;在慢链路上,原生工具的单次请求期限更早暴露了问题。传出字节数也不能代替 S3 成功响应。
34删除:
35删除:## 本次采用的替代流程
36删除:
37删除:1. 使用已有本机 App Store Connect API 密钥,生成短期 JWT,仅向 Apple 认证。
38删除:2. 将待上传文件的 SHA-256 和名称提交给官方 Notary API,取得该次提交的临时 S3 凭据。
39删除:3. 以标准 boto3 单次 PUT 上传同一文件,显式限定本次 S3 客户端的网络路径,提供 Content-Length 与 Content-MD5。收到 S3 HTTP 200 后才记录上传完成。
40删除:4. 查询同一个提交 ID,等待 Accepted 并取得审核日志;不通过重复提交轮询状态。
41删除:5. 使用系统 `stapler` 附加票据,核对 Developer ID、票据、Gatekeeper 和包内版本,然后生成公开校验清单。
42删除:
43删除:私钥只在本机读取;临时 AWS 凭据不落盘,不写入 GitHub,不放入公开日志。主机和 Cage 的代理开关、节点选择与出口策略保持原状。本次仅改变维护者发行上传客户端的传输路径。凭据、私有路径与签名上传链接不得加入研究正文或公开发行物。
44删除:
45删除:## 一手依据
46删除:
47删除:- [Apple:通过 Web 提交公证](https://developer.apple.com/documentation/notaryapi/submitting-software-for-notarization-over-the-web):支持直接使用 REST API 与标准 S3 客户端,创建提交和上传文件是两个步骤,返回的 S3 凭据有时效。
48删除:- [Apple:Submit Software](https://developer.apple.com/documentation/notaryapi/submit-software):提交名称与 SHA-256 对应待上传的精确文件。
49删除:- [Apple:自定义公证流程](https://developer.apple.com/documentation/security/customizing-the-notarization-workflow):说明上传、查询、日志与默认 S3 加速端点。
50删除:- [AWS:boto3 配置](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html):客户端 `Config.proxies` 优先于环境变量。
51删除:- [AWS:S3 分片边界](https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html):普通分片最低 5 MiB,最后一个分片例外;缩小到任意 KB 不能作为通用修复。
52删除:- 本机 `xcrun notarytool submit --help`、工具字符串、详细运行日志及实际上传回执:用于核验本机行为。隐藏配置仅用于受控诊断,不作为持久发行配置。
53删除:
54删除:## 最终发行结果
55删除:
56删除:用户要求将主分支后续两项修复一并纳入。最终版本来自 `11d44cabde8e3f560a364a818fa3d63bded658d3`,三平台 CI 全通过;新的 App 上传 21.98 秒、DMG 上传 18.89 秒,两者均获 Accepted,审核日志无问题。最终 App 公证 ID `3d9c5d7c-6b20-4fcc-8969-eee36711db32`,DMG 公证 ID `129453c5-04fd-446d-9bf8-17f753663d50`。
57删除:
58删除:[公开 v0.1.4-alpha](https://github.com/Lee-xeo/Claude-Cage/releases/tag/v0.1.4-alpha) 已发布,[官网](https://lee-xeo.github.io/Claude-Cage/) 已更新。[最终公开验证与部署](https://github.com/Lee-xeo/Claude-Cage/actions/runs/41848921422) 完成三平台安装包的匿名下载、摘要校验,以及 macOS 签名、公证、票据与 Gatekeeper。Windows 使用明确授权的未签名预览包。主机代理选择和临时工具设置均已恢复。
59删除:
60删除:GitHub 匿名元数据接口另发生额度耗尽;发布验证脚本现对指定版本使用公开 SHA256SUMS 与附件响应作为备用清单来源,拒绝任意路径、重复项、错误版本和缺失附件,并继续完整匿名下载验证。该维护改动为 `3ea7973`,不改变已发行应用的源码或字节。
删除docs/research/2026-11-04-windows-code-signing.md+0 −45
@@ -1,45 +0,0 @@
1删除:# Cage Windows 代码签名选择
2删除:
3删除:本文供 Cage 维护者选择签名服务、估算费用并定位接入工作。核查日期为 2026-11-04;源码依据当前工作区,HEAD 为 `aebefa5`,包含其他尚未提交的修改。本文只记录调研结果,未购买证书、提交申请、改变签名实现或发布应用。
4删除:
5删除:## 阅读版:安装者会看到什么
6删除:
7删除:公开可信代码签名使 Windows 能验证发布者身份以及文件是否被修改。签名后的新软件仍可能出现 SmartScreen 提示,需要逐步积累信誉;微软明确说明 EV 证书也不再自动获得跳过提示的待遇。自签证书适用于受控测试环境,不能直接解决公众下载时的信任问题。[微软签名选项](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/code-signing-options)、[SmartScreen 说明](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/smartscreen-reputation)
8删除:
9删除:申请主体决定安装界面显示的发布者:个人证书显示经过验证的个人姓名,组织证书显示组织名称。SSL.com 提供无需注册公司的 IV 个人代码签名证书;具体地区的身份材料能否受理,须由签发方确认。[SSL.com IV 产品](https://www.ssl.com/products/software-integrity/code-signing/iv/)
10删除:
11删除:### 可选择的服务
12删除:
13删除:| 方案 | 申请条件与费用 | Cage 的选择条件 |
14删除:|---|---|---|
15删除:| 微软 Artifact Signing(原 Trusted Signing) | 个人目前限美国、加拿大;组织支持地区包含美国、加拿大、欧盟、英国、澳大利亚、新西兰、日本、韩国、新加坡、瑞士、挪威、以色列,未列中国大陆。基础套餐 $9.99/月,含 5,000 次签名 | 有符合条件的主体时评估;更换 Azure 部署区域不能代替身份资格 |
16删除:| SSL.com IV + eSigner | IV 单年证书标价 $129;云签名最低 $20/月,含 20 次,或年付 $180 含 240 次。证书费另计 | 个人希望使用自己的姓名、通过 CI 签名时的候选;需先确认大陆身份受理、最终报价及续签规则 |
17删除:| SignPath Foundation 免费开源签名 | 要求 OSI 开源许可证、持续维护、已有发布、满足签名政策、构建来源和团队角色要求;证书签发给 SignPath Foundation | Cage 的 MIT 许可证满足其中一项;完整依赖、随附运行时和构建流程仍须审核,不能据此认定已符合全部条件 |
18删除:
19删除:表中信息分别来自[微软资格要求](https://learn.microsoft.com/en-us/azure/artifact-signing/quickstart)、[微软价格](https://azure.microsoft.com/en-in/products/artifact-signing)、[SSL.com 证书价格](https://www.ssl.com/products/software-integrity/code-signing/iv/)、[eSigner 价格](https://www.ssl.com/guide/esigner-pricing-for-code-signing/)、[SignPath 条款](https://signpath.org/terms.html)。价格以实际结算为准,不含可能的税费和汇率变化。以 IV 单年证书加 eSigner 年付最低套餐估算,挂牌合计为 $309/年;这不是已确认可受理的报价。
20删除:
21删除:### 从申请到可用的步骤
22删除:
23删除:1. 确定个人或组织申请,以及用户安装时应看到的发布者身份。
24删除:2. 确认签发方接受该主体所在地区的材料。个人准备政府签发的身份证明,其他身份、地址及联系方式材料按签发方要求提交;组织按其验证清单准备材料。身份证明应在签发方的验证入口提交。[SSL.com 验证要求](https://www.ssl.com/faqs/ssl-ov-validation-requirements/)
25删除:3. 选择云签名或兼容的硬件令牌。公开可信 OV/IV 代码签名私钥受硬件保护,不能默认会拿到可导出的 PFX 私钥文件。云签名更适合 Cage 现有的 GitHub 托管构建流程。[SSL.com 私钥存储要求](https://www.ssl.com/guide/esigner-pricing-for-code-signing/)
26删除:4. 接入签名服务,完成应用、后端、卸载器和安装器签名及时间戳;签名后再计算下载摘要。
27删除:5. 在 Windows 验证签名信任、首次安装、保留数据的覆盖安装,以及两个签名版本之间的应用内更新。现有未签名版本仍需手动安装首个签名版本,见 [Windows 更新规则](../windows.md#更新与卸载)。
28删除:
29删除:SignPath 还要求不能以项目证书直接给其他项目的独立二进制签名,但允许在签名安装包中包含未签名的上游开源二进制。Cage 当前会对随附的 Mihomo 可执行文件加签,申请时须明确处理这一差异,并核对 WebView2 等随附组件是否符合其 System Libraries 例外。[SignPath 签名范围与许可条件](https://signpath.org/terms.html)
30删除:
31删除:## 证据版:Cage 接入范围
32删除:
33删除:| 当前行为 | 实现位置 | 接入时须处理的事项 |
34删除:|---|---|---|
35删除:| Windows CI 从 Secret 还原 PFX、导入当前用户证书库 | `scripts/ci-windows-build.ps1:21`;`.github/workflows/windows-build.yml:104` | 按所选服务改用云签名认证或硬件提供程序;PFX 上传方式不能作为新证书的默认接入假设 |
36删除:| 使用证书指纹调用 SignTool,并添加 SHA-256 时间戳及验证签名 | `scripts/windows-common.ps1:94` | 保留签名验证,按服务要求配置调用方式和时间戳端点 |
37删除:| 对窗口程序、后端、Mihomo 加签 | `scripts/build-windows.ps1:127` | 核对签名范围与服务条款;普通构建不消耗生产签名配额 |
38删除:| NSIS 构建时对卸载器加签;打包后对安装器加签 | `packaging/windows/Cage.nsi:44`;`scripts/package-windows.ps1:68` | 接入必须覆盖卸载器签名命令,不能只替换安装器最后一步 |
39删除:| 更新器验证 Windows 信任,并比较当前程序与更新包的发布者公钥摘要 | `desktop/windows/Authenticode.cs:25`、`:32`、`:37` | 服务切换、换钥、证书续签时验证升级连续性;同名发布者不足以通过该检查 |
40删除:
41删除:按当前流程,每个完整签名构建包含 5 个签名对象,最低 20 次/月套餐理论上覆盖 4 次完整构建,重试和额外测试另计。此计数来自脚本,不代表签名服务对失败、重试或批次请求的最终计费规则。
42删除:
43删除:微软 Artifact Signing 使用短期证书并自动管理证书与密钥生命周期。若选择该服务,须核对不同签名日期的公钥是否相同,并处理 Cage 当前公钥固定规则与轮换之间的关系;不能仅凭一次安装成功认定后续更新可用。[微软证书管理](https://learn.microsoft.com/en-us/azure/artifact-signing/concept-certificate-management)
44删除:
45删除:本次没有修改打包流程、接口或数据格式,因此 macOS 和 Linux 无实现变更。Windows 云签名、硬件签名及签名版本升级均未实测。后续实现需同步检查共用发行就绪检查、三平台工作流及说明,继续保留明确发版触发点。
删除docs/research/community-safety-tools.md+0 −39
@@ -1,39 +0,0 @@
1删除:# 社区检测工具与 Cage 的接入边界
2删除:
3删除:本文供 Cage 的维护者选择检测来源和实现方式。核查日期为 2026-10-31;网页服务随时可能改变,仓库结论绑定到下列源码树快照(Git tree)。
4删除:
5删除:## 接入结论
6删除:
7删除:Cage 的联网准入采用分级规则:隔离、出站约束和配置生效属于必需检查;IP 信誉与地区语言建议属于提示。社区工具可以补充检查项目和解释,但第三方评分不能证明本机隔离有效,也不能预测账号是否被限制。
8删除:
9删除:| 来源 | 已核查的用途 | Cage 的接入方式 |
10删除:|---|---|---|
11删除:| [ip.net.coffee/claude](https://ip.net.coffee/claude/) | 出口、ASN、IP 属性与信誉评分,DNS、WebRTC 和浏览器信息检查 | 提供在 Cage 浏览器中打开的入口;结果注明第三方来源。自动取数暂不依赖其网页内部接口 |
12删除:| [fuck-claude.com](https://fuck-claude.com/) | 浏览器时区、语言、字体、Intl 等信号的加权估计;页面明确区分估计与 Claude 的实际判断 | 作为自愿使用的浏览器诊断入口。中文语言或字体本身不构成 Cage 隔离失败 |
13删除:| [claude-switcher](https://github.com/YOURSJEYO/claude-switcher/tree/525c261a3f162a149100ed8eb36dfc82767e841f) | Mac 代理、环境检查与进程守护 | 参考 STUN 结果解释、出口一致性和故障提示;不引入其整机配置修改与账号切换流程 |
14删除:| [Claude-Guardian](https://github.com/DUNHKpcc/Claude-Guardian/tree/06fe998d753f697c47ae0b67be5fe91451532a1f) | 面向 Agent 的准备、诊断和修复工作流;包含网络检查与证据判定脚本 | 参考证据完整性、故障演练和生命周期检查方法;不安装或运行其宿主修改脚本 |
15删除:
16删除:两个网页的前端均包含外部统计脚本。打开时,站点会收到访问所需的网络信息,并可读取其页面内可访问的浏览器信息。因此入口只在用户点击后打开,位置必须是 Cage 内的浏览器。不能从 Mac 工作台页面执行它们的浏览器检测,再把结果当成 Cage 的结果。源码依据:[IP 检测页脚本](https://ip.net.coffee/claude/claude-page.js?v=20260916a)、[浏览器检测页脚本](https://fuck-claude.com/_astro/Detector.astro_astro_type_script_index_0_lang.BjyUZeoD.js)。
17删除:
18删除:IP 检测页调用了 `/api/geoip/`、`/api/iprisk/` 等接口。这只能确认网页的实现方式;本次尚未核实供第三方集成的稳定接口约定、使用条件和限额。自动接入应先补齐这些信息,并明确超时、服务停用和格式变化时显示“未知”。不抓取分数后伪装为 Cage 自有检测,也不把私人配置、凭据或完整报告提交给检测站。
19删除:
20删除:## 值得采用的检查方法
21删除:
22删除:Claude-Guardian 的出口判定器区分已建立证据、已观察到违规和证据不完整;它处理调用者提供的观察数据,本身不采集网络流量。只有所需层次齐全才形成肯定结论,重启、休眠唤醒和网络变化的检查另外记录。这适合 Cage 的报告设计:每项都要说明采样位置、方法、时间和适用配置。来源:[egress_verifier.py](https://github.com/DUNHKpcc/Claude-Guardian/blob/06fe998d753f697c47ae0b67be5fe91451532a1f/skills/claude-guardian/scripts/egress_verifier.py)。
23删除:
24删除:claude-switcher 的 STUN 检查会区分返回了哪个出口、探测失败,以及没有 UDP 响应。它的安全说明也明确进程守护与防火墙的能力差异。Cage 应保留这种限定:超时不能单独证明拦截有效,需要与 VM 外网络层实际拒绝请求的证据结合。来源:[STUN 检查与调用方](https://github.com/YOURSJEYO/claude-switcher/blob/525c261a3f162a149100ed8eb36dfc82767e841f/core/claude-switch.sh#L1256)、[安全边界](https://github.com/YOURSJEYO/claude-switcher/blob/525c261a3f162a149100ed8eb36dfc82767e841f/SECURITY.md)。
25删除:
26删除:对 Cage 的具体要求如下:
27删除:
28删除:- 网络约束在 VM 外执行。停止浏览器进程、隐藏按钮或 guest 内的守护程序不能替代出站控制。
29删除:- 报告绑定配置和本次 VM 运行实例。重启、配置变化或关键监测失败后,旧报告不能继续授权联网。
30删除:- 关键项包含失败、未知和未检测状态。缺失证据不能通过空列表、默认值或第三方高分补齐。
31删除:- 明确区分代码策略检查、真实 guest 探针和外部观测。检查一个 HTTP 出口不能概括 DNS、IPv6、UDP 或浏览器的全部路径。
32删除:- 故障演练在启动检查或用户主动重检时执行。运行中的监测不擅自停止代理或中断用户任务来制造故障。
33删除:- 发生阻断后,报告应解释原因,并保留本地终端、文件和修复入口。
34删除:
35删除:## 许可与使用范围
36删除:
37删除:claude-switcher 的仓库许可证为 [MIT](https://github.com/YOURSJEYO/claude-switcher/blob/525c261a3f162a149100ed8eb36dfc82767e841f/LICENSE);Claude-Guardian 的项目说明标明 [GPL-3.0-only](https://github.com/DUNHKpcc/Claude-Guardian/blob/06fe998d753f697c47ae0b67be5fe91451532a1f/README.md#反馈与许可)。本次仅阅读资料和源码,没有复制第三方实现到 Cage。直接复用、打包分发或翻译大段资料前,需要核对相应文件的许可及归属。
38删除:
39删除:社区关于封禁原因、评分权重和使用节奏的说法,保留为有来源的经验,不升级为平台官方规则。Anthropic 的[位置数据说明](https://privacy.claude.com/en/articles/11186740-does-claude-use-my-location)提及 IP 和其他信号;它没有公开一套可由这些社区分数替代的账号安全判定。
删除flake.lock+0 −27
@@ -1,27 +0,0 @@
1删除:{
2删除: "nodes": {
3删除: "nixpkgs": {
4删除: "locked": {
5删除: "lastModified": 1792094642,
6删除: "narHash": "sha256-zp8ToDMnqZcu4o4IH9pdwXFXGp7yLm/M0dEnNWnyd7I=",
7删除: "owner": "NixOS",
8删除: "repo": "nixpkgs",
9删除: "rev": "fe13242281a67641c0102cdb1087f0ebe586c7df",
10删除: "type": "github"
11删除: },
12删除: "original": {
13删除: "owner": "NixOS",
14删除: "ref": "nixos-unstable",
15删除: "repo": "nixpkgs",
16删除: "type": "github"
17删除: }
18删除: },
19删除: "root": {
20删除: "inputs": {
21删除: "nixpkgs": "nixpkgs"
22删除: }
23删除: }
24删除: },
25删除: "root": "root",
26删除: "version": 7
27删除:}
删除flake.nix+0 −124
@@ -1,124 +0,0 @@
1删除:# Upstream agent-vm reference only. Cage is built by scripts/build-app.sh;
2删除:# this retained Nix target is not updated or supported for Cage releases.
3删除:{
4删除: description = "agent-vm: AI coding agents in a disposable Linux VM per project";
5删除:
6删除: inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
7删除:
8删除: outputs =
9删除: { self, nixpkgs }:
10删除: let
11删除: # Linux only for now: on macOS the binary needs cgo, the SDK and the
12删除: # virtualization entitlement (nixpkgs' lima signs it with
13删除: # darwin.sigtool), none of which this build sets up.
14删除: systems = [
15删除: "x86_64-linux"
16删除: "aarch64-linux"
17删除: ];
18删除: forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
19删除:
20删除: # The version, the build tags and Lima's version are the Makefile's and
21删除: # third_party/SOURCES's: there is one place to change each.
22删除: linesOf = file: builtins.filter builtins.isString (builtins.split "\n" (builtins.readFile file));
23删除: lineWith =
24删除: file: prefix:
25删除: builtins.head (
26删除: builtins.filter (l: builtins.substring 0 (builtins.stringLength prefix) l == prefix) (linesOf file)
27删除: );
28删除: makeVar =
29删除: name:
30删除: let
31删除: prefix = "${name} := ";
32删除: in
33删除: builtins.substring (builtins.stringLength prefix) (-1) (lineWith ./Makefile prefix);
34删除: # lima <upstream> <commit> <version> <left out>
35删除: limaVersion = builtins.elemAt (builtins.filter (s: builtins.isString s && s != "") (
36删除: builtins.split " +" (lineWith ./third_party/SOURCES "lima ")
37删除: )) 3;
38删除: in
39删除: {
40删除: packages = forAllSystems (pkgs: rec {
41删除: agent-vm = pkgs.buildGoModule {
42删除: pname = "agent-vm";
43删除: version = makeVar "NEXT_VERSION";
44删除: src = self;
45删除:
46删除: # The downloaded modules only: a vendor folder would hold
47删除: # third_party/ too (go.mod's replaces), and change with each patch.
48删除: proxyVendor = true;
49删除: # Changes with go.mod and go.sum: set pkgs.lib.fakeHash here, build,
50删除: # and nix prints the new one. release.sh refuses a release when
51删除: # this checksum of `cat go.mod go.sum` is not the current one:
52删除: # update it with the hash.
53删除: # go.mod+go.sum: d2f7908dea2c14beea6faa181d7a4cf4c709f35b94f0cc30392d4d2044f645ba
54删除: vendorHash = "sha256-zfAasYQEKqcrGi4OI3UKJyq3VoUCmNE5lU4JKPtJDmc=";
55删除:
56删除: subPackages = [ "cmd/agent-vm" ];
57删除: tags = pkgs.lib.splitString "," (makeVar "TAGS");
58删除: env.CGO_ENABLED = "0";
59删除: ldflags = [
60删除: "-s"
61删除: "-w"
62删除: "-X github.com/sylvinus/agent-vm/internal/version.Version=${makeVar "NEXT_VERSION"}"
63删除: "-X github.com/lima-vm/lima/v2/pkg/version.Version=${limaVersion}"
64删除: # QEMU comes with it, first on its PATH (cmd/agent-vm/main.go), as
65删除: # nixpkgs' lima does with a wrapper: a wrapped binary would make
66删除: # `agent-vm install` link past the wrapper. qemu_kvm, this host's
67删除: # architecture only, is a third smaller than qemu. ssh is the
68删除: # system's.
69删除: "-X main.extraPath=${pkgs.lib.makeBinPath [ pkgs.qemu_kvm ]}"
70删除: ];
71删除:
72删除: nativeBuildInputs = [ pkgs.gzip ];
73删除:
74删除: # go.mod names the Go the project is developed with, and nixpkgs
75删除: # has it a few days after a release: the build uses nixpkgs' (the
76删除: # sandbox cannot download a toolchain).
77删除: postPatch = ''
78删除: sed -i 's/^go [0-9.]*$/go ${pkgs.go.version}/' go.mod
79删除: '';
80删除:
81删除: # What the Makefile's `assets` target does: the guest agent runs in
82删除: # the Linux guest, of this machine's architecture, and is embedded
83删除: # in the binary with Lima's templates.
84删除: preBuild =
85删除: let
86删除: guestArch = if pkgs.stdenv.hostPlatform.isAarch64 then "aarch64" else "x86_64";
87删除: assets = "internal/limaembed/assets";
88删除: in
89删除: ''
90删除: go build -trimpath -ldflags "-s -w -X github.com/lima-vm/lima/v2/pkg/version.Version=${limaVersion}" \
91删除: -o ${assets}/lima-guestagent.Linux-${guestArch} github.com/lima-vm/lima/v2/cmd/lima-guestagent
92删除: gzip -9 -n -f ${assets}/lima-guestagent.Linux-${guestArch}
93删除: rm -rf ${assets}/templates
94删除: cp -R third_party/lima/templates ${assets}/templates
95删除: '';
96删除:
97删除: # The module download shares preBuild with the build, and has no
98删除: # modules to build the guest agent from yet.
99删除: overrideModAttrs = _: {
100删除: preBuild = "";
101删除: };
102删除:
103删除: # The tests run in CI, on the three platforms.
104删除: doCheck = false;
105删除:
106删除: meta = {
107删除: description = "Run AI coding agents in a disposable Linux VM per project";
108删除: homepage = "https://www.agent-vm.org/";
109删除: license = pkgs.lib.licenses.mit;
110删除: mainProgram = "agent-vm";
111删除: platforms = systems;
112删除: };
113删除: };
114删除: default = agent-vm;
115删除: });
116删除:
117删除: apps = forAllSystems (pkgs: {
118删除: default = {
119删除: type = "app";
120删除: program = "${self.packages.${pkgs.stdenv.hostPlatform.system}.agent-vm}/bin/agent-vm";
121删除: };
122删除: });
123删除: };
124删除:}
新增internal/limaembed/lima-version+1 −0看文件
@@ -0,0 +1 @@
1新增:v2.3.0-beta.0-98-g928babab
删除packaging/nfpm.yaml+0 −53
@@ -1,53 +0,0 @@
1删除:# The .deb and .rpm of a Linux build, made by release.sh (linux_packages) with
2删除:# nfpm, run in the folder of that build's tarball. The variables come from
3删除:# release.sh. QEMU and ssh are recommended, not required: apt and dnf install
4删除:# recommends by default; RHEL and its rebuilds name QEMU qemu-kvm, and a QEMU
5删除:# from elsewhere on the PATH does too. `agent-vm setup` says what is missing.
6删除:name: agent-vm
7删除:arch: ${GOARCH}
8删除:platform: linux
9删除:version: ${VERSION}
10删除:release: "1"
11删除:section: utils
12删除:priority: optional
13删除:maintainer: Sylvain Zimmer <[email protected]>
14删除:description: |
15删除: Run AI coding agents in a disposable Linux VM per project.
16删除: The VM gets the project directory and nothing else of the host's.
17删除:homepage: https://www.agent-vm.org/
18删除:license: MIT
19删除:
20删除:contents:
21删除: - src: agent-vm
22删除: dst: /usr/bin/agent-vm
23删除: file_info:
24删除: mode: 0755
25删除: - src: README.md
26删除: dst: /usr/share/doc/agent-vm/README.md
27删除: - src: CHANGELOG.md
28删除: dst: /usr/share/doc/agent-vm/CHANGELOG.md
29删除: - src: LICENSE
30删除: dst: /usr/share/doc/agent-vm/LICENSE
31删除: - src: NOTICE
32删除: dst: /usr/share/doc/agent-vm/NOTICE
33删除: - src: THIRD_PARTY_LICENSES
34删除: dst: /usr/share/doc/agent-vm/THIRD_PARTY_LICENSES
35删除: - src: runtime.example.sh
36删除: dst: /usr/share/doc/agent-vm/runtime.example.sh
37删除:
38删除:# The RPM records the build host's name: fixed, so that the same commit gives
39删除:# the same RPM on any machine.
40删除:rpm:
41删除: buildhost: agent-vm
42删除:
43删除:overrides:
44删除: deb:
45删除: recommends:
46删除: - ${QEMU_DEB}
47删除: - qemu-utils
48删除: - openssh-client
49删除: rpm:
50删除: recommends:
51删除: - ${QEMU_RPM}
52删除: - qemu-img
53删除: - openssh-clients
删除patches/README.md+0 −177
@@ -1,177 +0,0 @@
1删除:# Patches to Lima, sshocker, pkg/sftp and gvisor-tap-vsock
2删除:
3删除:agent-vm builds Lima, sshocker, pkg/sftp and gvisor-tap-vsock from `third_party/`: each one is its upstream commit
4删除:(`third_party/SOURCES`) with the patches of this folder applied, in name order. Every patch is a
5删除:change meant for upstream, kept small enough to be sent as a PR on its own. Never edit
6删除:`third_party/` by hand: change a patch, then `scripts/third-party-sync <name>`. CI runs
7删除:`scripts/third-party-sync all --check`.
8删除:
9删除:## Why
10删除:
11删除:agent-vm shares the project with `mountType: reverse-sshfs`, `sftpDriver: builtin` and
12删除:`readonlyNames`. The SFTP server is sshocker's rooted server on top of pkg/sftp's `RequestServer`.
13删除:It runs inside the Lima hostagent, which with vz also runs the VM: a panic there kills the VM.
14删除:
15删除:| # | Bug | Effect | Fixed by |
16删除:|---|-----|--------|----------|
17删除:| 1 | `openFile` reads `r.AttrFlags()`/`r.Attributes()` on Open requests, where pkg/sftp stores the open flags in `r.Flags`. `SSH_FXF_APPEND` is the bit of `ATTR_PERMISSIONS`, `Attributes()` fails and returns nil. | Any `O_APPEND` open (`>>`, loggers) panics the hostagent: the VM dies. | sshocker 0003 |
18删除:| 2 | RequestServer runs READ/WRITE on 8 parallel workers and everything else on another one, with no ordering between them (only CLOSE waits). | Rewriting a block 8 times leaves an older write last on the host in 241/300 runs; `write` then `ftruncate` leaves the wrong content in 214/300; FSTAT after WRITE returns the old size and the guest reads short files (206/300). OpenSSH: 0/300. | sftp 0001, sshocker 0004 |
19删除:| 3 | [pkg/sftp#664](https://github.com/pkg/sftp/issues/664): FSTAT/FSETSTAT act on the path the handle was opened with. | After a rename, `ftruncate(fd)`/`fstat(fd)` hit whatever file is now at the old path. | sftp 0002, sshocker 0004 |
20删除:| 4 | `SSH_FXF_APPEND` is ignored, the client's offset is used. | With sshfs's attribute cache, an append right after the host grew the file overwrites the host's data. | sshocker 0005 |
21删除:| 5 | pkg/sftp drops MKDIR attributes. | `mkdir -m 700` gives 0755 on the host. | sftp 0003 |
22删除:| 6 | `isNoopTimes` and unix `setstat` use `r.Attributes()` without a nil check. | A SETSTAT whose attributes are shorter than its flags announce panics the hostagent. | sshocker 0005 |
23删除:| 7 | A handle answers packets meant for another kind: READ on a write-only handle, WRITE on a read-only one, READDIR on a file, READ on a directory. | A READ on a write-only handle wrote zeros into the file. | sftp 0004 |
24删除:| 8 | No bound on open handles. | A guest holding thousands of handles exhausts the hostagent's file descriptors. | sftp 0004 (`WithRSMaxHandles`), sshocker 0006 (4096) |
25删除:| 9 | A panic in a handler kills the server. | One bad request ends every share and, in the hostagent, the VM. | sftp 0004 |
26删除:| 10 | `orderID`s compared as plain uint32. | Past 2^32 packets, responses go out in the wrong order. | sftp 0004 |
27删除:| 11 | `statusFromError` matches errnos with `==`, not `errors.As`, and maps ENOTDIR, ELOOP, EINVAL, ENOSYS unlike OpenSSH. | A wrapped EACCES is a generic failure. | sftp 0004 |
28删除:| 12 | ATTRS report mtime as atime; `[email protected]` unsupported. | Wrong access times; `fsync()` in the guest does nothing on the host. | sftp 0004 |
29删除:| 13 | Opening a FIFO or a device blocks; a directory is read whole when opened. | A FIFO in the project blocks the server, which handles one request at a time. | sshocker 0006 |
30删除:| 14 | FSETSTAT on a read handle applies to whatever is at the path now; a no-replace rename checks then renames. | A chmod through a read handle reaches the file that replaced it; a no-replace rename can overwrite. | sshocker 0006 |
31删除:| 15 | Windows: names NtCreateFile accepts but Win32 cannot open or delete (trailing dots or spaces, `NUL`, `COM1`...). | The VM creates files the user cannot remove on the host. | sshocker 0006 |
32删除:| 16 | `ReverseSSHFS.Close` dereferences a nil command; the rooted server leaks its root fd when ssh fails to start. | A crash on a close before start; an fd per failed start. | sshocker 0006 |
33删除:| 17 | `readonlyNames` compared with `strings.EqualFold`: APFS also ignores normalization (`é` and `e` + U+0301) and folds case fully (`ß` as `ss`). | On macOS the guest writes a read-only name that is not ASCII (a hooks folder) under another spelling. | sshocker 0007 |
34删除:| 18 | When the first sshfs mount fails, Lima retries with `-o nonempty` in place of the share's options. | The share is mounted again without `cache=no` (sshfs's attribute cache back on). | lima 0003 |
35删除:| 19 | The host's event for a removal the guest asked for is relayed back as a host deletion. | The guest's next removal of a file it created again is taken for the relayed one and not done: the file stays on the host. | sshocker 0009 |
36删除:| 20 | The client sets any mode bit, setuid, setgid and sticky included. | A file the host runs carries the privileges of its owner. | sshocker 0006 |
37删除:| 21 | `instance.StartWithPaths` starts the hostagent with `exec.CommandContext`: os/exec kills it when the caller's context ends, also after Start returned. | The end of the agent-vm command that started a VM kills its hostagent: QEMU runs on without it (Broken, every later start fails), vz VMs die. | lima 0006 |
38删除:| 22 | QEMU's `socket` and `stream` netdevs fall through to `net_fill_rstate` with `size == -1` when `recv()` returns EAGAIN (QEMU 10.2.4 at least). | QEMU aborts (`Assertion 'size == 0' failed`) under sustained traffic on Linux with KVM: the instance stops, mid-setup. Windows keeps the `stream` netdev and so the risk. | lima 0008 |
39删除:
40删除:## The patches
41删除:
42删除:| Patch | Upstream | Status | Content |
43删除:|-------|----------|--------|---------|
44删除:| `lima/0001-mounts-add-sshfs.readonlyNames` | lima-vm/lima | [#5529](https://github.com/lima-vm/lima/issues/5529), PR #5531 open | `mounts[*].sshfs.readonlyNames`, enforced by the rooted SFTP server. A writable mount of a folder holding another writable mount must list the same names. |
45删除:| `lima/0002-hostagent-relay-host-deletions` | lima-vm/lima | with #5531 | The hostagent relays deletions made on the host to the guest's sshfs (`ExpectRemove`). |
46删除:| `lima/0003-hostagent-keep-sshfs-options-on-retry` | lima-vm/lima | not sent | Bug 18: the retry adds `nonempty` to the options. No test: it needs a guest whose first mount fails. |
47删除:| `lima/0004-portfwd-not-next-to-a-host-program` | lima-vm/lima | not sent | A guest port is forwarded only when no host program uses it: with `SO_REUSEADDR`, a listener on 127.0.0.1:P is allowed next to a host program's 0.0.0.0:P on macOS and BSD, and takes its local connections. The port is tried on 127.0.0.1, ::1, 0.0.0.0 and :: first (with `SO_EXCLUSIVEADDRUSE` on Windows); one in use gives a `failed` port-forward event. Tests `TestForwardNotNextToHostProgram`, `TestForwardFreePort`. |
48删除:| `lima/0005-network-isolation-hooks` | lima-vm/lima | not sent | Hooks for agent-vm's network policy: `usernet.Outbound` and `usernet.AllowHostService` (the hostagent's DNS ports), `dns.Names`/`dns.Answered` (a name refused is NXDOMAIN, never looked up). QEMU gets its own netstack per instance, as vz has, so the policy applies to both, and its guest's DNS is the gateway's. QEMU is handed the connected socket, or on Windows, which cannot pass it, connects itself (`stream` netdev, QEMU 7.2 or later). `usernet.Names` and `usernet.Answered` reach the gateway's DNS server through gvisor-tap-vsock 0002, and a host service is allowed for its network and port on 127.0.0.1 only. Tests `TestNamesAnswered`, `TestOutboundHostServices`; the rest is covered by agent-vm's e2e (`internal/vm/lima_e2e_test.go`). |
49删除:| `lima/0006-instance-hostagent-outlives-start-context` | lima-vm/lima | not sent; the issue to open is the patch's header | Bug 21: `exec.Command`. No Lima test (its unit tests start no hostagent): agent-vm's e2e (`internal/cli/e2e_test.go`) fails without it. The header also reports the QEMU driver's "send on closed channel" panic that follows, not fixed here. |
50删除:| `lima/0007-qemu-features-own-outputs` | lima-vm/lima | not sent | `inspectFeatures` ran its four help requests into the same buffers: each feature text held the earlier ones'. One buffer per request (`qemuHelp`). Test `TestInspectFeaturesOwnOutputs`. |
51删除:| `lima/0008-qemu-dgram-netdev` | lima-vm/lima | not sent; the issue to open at QEMU is the patch's header | Bug 22: QEMU gets the netstack through a datagram socketpair (`-netdev dgram`, `GVisorNetstackOpts.DgramConn`), as vz does; the `socket` netdev, and its unix socket listener, only for a QEMU older than 7.2, and Windows (the `stream` netdev has the bug too). Tests `TestDgramConn`, `TestDgramPair`, `TestFdDgramTemplate`; the netdev choice is covered by agent-vm's e2e. |
52删除:| `lima/0009-start-channels-buffered` | lima-vm/lima | not sent | `StartWithPaths` left the losing goroutine of its race blocked on an unbuffered send, for as long as the program lives. No test: it starts a hostagent. |
53删除:| `lima/0011-windows-native-usernet-socket` | lima-vm/lima | not sent | Opens the per-instance network control endpoint with its native filesystem path. Constructing `unix://C:\\...` fails URL parsing on Windows. `TestNetstackWindowsNativeSocketPaths` connects to both control and QEMU AF_UNIX listeners on Windows. |
54删除:| `lima/0012-dynamic-memory` | lima-vm/lima | not sent | Adds an optional hostagent resource controller with bounded private SSH observations, VZ memory targets and deadline-bound QEMU balloon commands. Stops the controller before the VM and suppresses probe consoles on Windows. VZ borrowed device wrappers retain VM ownership instead of releasing it from a temporary Go finalizer. Protocol, cancellation and capacity checks are covered in `TestMemoryTargetQMPProtocolAndCancellation`; Cage owns the adaptive policy and live acceptance. |
55删除:| `lima/0013-resumable-image-downloads` | lima-vm/lima | not sent | Resumes digest-pinned cached image downloads under the existing cache lock. Validates byte ranges and the complete digest before publication; retains partial data on interruption, handles servers that ignore or reject Range, and discards corrupted data. Local HTTP tests cover retries, cancellation and cache reuse. |
56删除:| `lima/0018-windows-bundled-firmware-path` | lima-vm/lima | not sent | On Windows, prefer the firmware shipped with QEMU. For a non-ASCII directory, start QEMU there and pass the firmware basename to the pflash drive. |
57删除:| `lima/0019-whpx-qemu64-cpu-features` | lima-vm/lima | not sent | When the Windows x64 default is `qemu64`, add the SSSE3, SSE4.1, SSE4.2 and POPCNT features that Windows Hypervisor Platform reports. Preserve explicit CPU choices. |
58删除:| `sshocker/0001-rooted-server-readonly-names` | lima-vm/sshocker | fork branch `readonly-names` | The builtin server serves only the mounted directory, and `ReadonlyNames`. |
59删除:| `sshocker/0002-expect-remove` | lima-vm/sshocker | fork branch `expect-remove` | `ExpectRemove`, for 0002 of Lima. |
60删除:| `sshocker/0003-append-fix` | lima-vm/sshocker | not sent | Bug 1. Tests `TestRootedOpenAppend`, `TestRootedOpenMode`. No pkg/sftp dependency: send first. |
61删除:| `sshocker/0004-664-sequential` | lima-vm/sshocker | after a pkg/sftp release | Bugs 2, 3: `WithRSSequential()`, FSTAT on the handle's file, FSETSTAT on it for writable handles only. Tests `TestRootedFstatFsetstatAfterRename`, `TestRootedFsetstatReadHandle`. Needs sftp 0001, 0002. |
62删除:| `sshocker/0005-append-mkdir-guards` | lima-vm/sshocker | nil guards now, `O_APPEND` after pkg/sftp | Bugs 4, 6. Tests `TestRootedAppendAfterHostWrite`, `TestRootedSetstatShortAttributes`. Needs sftp 0001 (ordering of appends), 0003 (mkdir modes). |
63删除:| `sshocker/0006-robustness` | lima-vm/sshocker | not sent | Bugs 8, 13 to 16. Tests `TestRootedFifo`, `TestRenameNoReplace`, `TestRootedReadHandleSetstatAfterRename`, `TestRootedListLarge`, `TestRootedMaxHandles`, `TestReverseSSHFSCloseNotStarted`, `TestWritableNameWin32`. Also: the client never sets the setuid, setgid or sticky bits (`TestRootedNoSpecialBits`), `Close` waits for the processes it killed (`TestCloseReaps`), and a directory renamed while open lists its own entries, not those of a symlink put in its place (`TestRootedListNoEscape`). Needs sftp 0004. |
64删除:| `sshocker/0007-name-folding-fuzz` | lima-vm/sshocker | not sent | Bug 17: names compared in NFD, fully case-folded (`golang.org/x/text`). Test `TestSameName`. `FoldName` (`fold.go`) is exported, so that Guard's users fold as the server does, and drops the code points casefold file systems ignore (`TestFoldNameIgnorables`, `FuzzFoldIgnorables`, `TestSameNameCasefold`). Fuzzers: `FuzzSameNameFS` (the host file system as the oracle: run it on macOS and Windows), `FuzzSameNameEqualFold`, `FuzzRootedOps` (a hostile client's request sequences: nothing outside the root read or changed, `.git` intact). `make fuzz`. |
65删除:| `sshocker/0008-write-guard` | lima-vm/sshocker | not sent | `reversesshfs.Guard`: asked before a write, create, rename or removal of a path, which it may refuse (EACCES). agent-vm asks the user for the files the host runs (`internal/guard`). `entry` is true for a name being created, moved, linked or removed: then a folder holding a guarded path matters too. On Windows Guard is asked with the normalized names (8.3 short names replaced by long ones). Tests `TestRootedGuard`, `TestRootedGuardParents`. |
66删除:| `sshocker/0009-relay-ignore-own-removals` | lima-vm/sshocker | not sent | `ExpectRemove` returns false, and the removal is not relayed, when the server just removed or moved the path away itself; a removal of a path the guest created again since is the guest's own. An operation that failed takes its record back. Tests `TestRootedOwnRemovalNotRelayed`, `TestRootedFailedRemovalNotOwn`, `TestRootedTokenDroppedByCreate`, `TestExpectRemoveMany`, `TestExpiringKeyAddedAgain`. Needs 0002. |
67删除:| `sftp/0001-sequential` | pkg/sftp | issue to open (draft below) | Bug 2: `WithRSSequential()`, opt-in, one worker, packets in order, as OpenSSH's sftp-server. Test `TestPacketManagerSequential`. |
68删除:| `sftp/0002-664-handle-file` | pkg/sftp | references #664 | Bug 3: `Request.HandleFile()` for FSTAT/FSETSTAT. Test `TestRequestHandleFile`. |
69删除:| `sftp/0003-mkdir-attrs` | pkg/sftp | not sent | Bug 5. Test `TestRequestMkdirAttributes`; for a standalone PR, move it to the end of `request-server_test.go`. |
70删除:| `sftp/0004-robustness` | pkg/sftp | not sent, one PR per item | Bugs 7 to 12. Tests `TestRequestHandlePacketMismatch`, `TestRequestServerMaxHandles`, `TestRequestServerHandlerPanic`, `TestRequestFsync`, `TestRequestServerOrderIDWrap`, `TestStatusFromErrorErrno`, `TestFileStatFromInfoAtime`; `TestRequestReaddir` updated (ENOTDIR is `SSH_FX_NO_SUCH_FILE`, as in OpenSSH). |
71删除:| `sftp/0005-fuzz-request-server` | pkg/sftp | not sent | `FuzzRequestServer`: any bytes after INIT, to a server set as sshocker sets it; it never panics nor hangs. Its seed is a WRITE at a huge offset, which made `InMemHandler` allocate it. |
72删除:| `gvisor-tap-vsock/0001-outbound-policy` | containers/gvisor-tap-vsock | not sent | `Configuration.Outbound`: the TCP and UDP forwarders refuse a destination it denies, checked after NAT (the gateway's address is the host's loopback by then). No test of its own: agent-vm's e2e connects to denied and allowed addresses. |
73删除:| `gvisor-tap-vsock/0002-dns-policy` | containers/gvisor-tap-vsock | not sent | `Configuration.DNSNames` and `DNSAnswered`: the gateway's DNS server answers NXDOMAIN, over UDP and TCP, for a name `DNSNames` refuses, without asking the host's resolver, and tells `DNSAnswered` the IPv4 addresses it gave, so that `Outbound` can allow those only. Test `TestPolicy`. |
74删除:| `gvisor-tap-vsock/0003-accept-ended-by-context` | containers/gvisor-tap-vsock | not sent | `Switch.Accept` returns nil, and logs nothing, when its connection ends after the program cancelled the context. Test `TestAcceptEndedByContext`. |
75删除:
76删除:Lima's `0b63ae0` of the fork (`replace` of sshocker) is gone: agent-vm's `go.mod` replaces all
77删除:three modules. FSETSTAT through a read handle keeps the path checks (0004): a read handle can be
78删除:opened through a symlink into `.git` (`TestRootedFsetstatReadHandle`).
79删除:
80删除:Every test was checked to fail with its fix removed. Keep that property when rebasing: revert the
81删除:fix, see the test fail, restore.
82删除:
83删除:## Working on a patch
84删除:
85删除:```bash
86删除:scripts/third-party-sync sshocker # third_party/sshocker from SOURCES and patches
87删除:scripts/third-party-sync sshocker --ref <commit> # move to another upstream commit
88删除:scripts/third-party-sync all --check # what CI runs
89删除:```
90删除:
91删除:To change a patch: clone upstream at the commit of `SOURCES`, `git am` (or `git apply`) the
92删除:patches before it, make the change, and write the patch back with `git format-patch` or `git diff`.
93删除:Rebasing on a new upstream: the same, from the new commit, then `--ref`.
94删除:
95删除:Tests run from agent-vm's module root, so that each library is built with the others patched (run
96删除:inside `third_party/<name>`, Go would use the unpatched dependencies of its own `go.mod`):
97删除:
98删除:```bash
99删除:go test -vet=off -race github.com/pkg/sftp/... # pkg/sftp's vet fails on upstream code
100删除:go test -race github.com/lima-vm/sshocker/pkg/...
101删除:go test $(go list github.com/lima-vm/lima/v2/pkg/... | grep -v /mcp)
102删除:go test github.com/containers/gvisor-tap-vsock/pkg/...
103删除:tests/sftp/run # through real sshfs, see tests/sftp/run
104删除:```
105删除:
106删除:Lima's MCP packages and sshocker's command are not part of agent-vm's build, so their
107删除:dependencies are not in its `go.sum`: they are left out above. gvisor-tap-vsock is synced
108删除:without its `vendor` and `tools` folders.
109删除:
110删除:`go test -fuzz` only fuzzes the main modules: `tests/fuzz/go.work` makes the vendored sshocker and
111删除:pkg/sftp ones (not Lima: its MCP server's requirements would take part in the build). `make fuzz`
112删除:runs every fuzzer of both and of agent-vm, `FUZZTIME` each.
113删除:
114删除:### Through real sshfs
115删除:
116删除:`tests/sftp/run` builds sshocker's rooted server outside Lima and runs `tests/sftp/fs_suite.py`
117删除:through sshfs with Lima's and agent-vm's options; `--openssh` runs OpenSSH's sftp-server as the
118删除:control. A DIFF the control shows too comes from sshfs or SFTP v3, not from the server. Last run
119删除:(2026-10-04, Linux arm64, WORK on ext4): no CRASH, HANG or FDLEAK, and 10 DIFFs, each of which
120删除:OpenSSH's sftp-server shows too (it has an 11th, `utime_symlink_nofollow`: it fails `lutimes`):
121删除:
122删除:- `utimes_ranges`, `utime_now_and_touch`: SFTP v3 times are 32-bit seconds.
123删除:- `chown_ops`, `rename_matrix`, `names`: SFTP v3 has few status codes (EPERM, ENOTEMPTY,
124删除: ENAMETOOLONG come back as EACCES or EPERM).
125删除:- `renameat2_flags`, `special_files`: no RENAME_EXCHANGE, FIFO, xattr or O_TMPFILE over sshfs.
126删除:- `links`: `st_nlink` stays 1 after `link()` until sshfs's attribute cache expires.
127删除:- `create_modes`: the server's umask applies, as with OpenSSH.
128删除:- `huge_offsets`: EIO on ext4, with OpenSSH as well; none on tmpfs.
129删除:
130删除:Not run yet: sshocker's tests on macOS (`rooted_darwin.go`, `unix.Futimes`, `O_APPEND` writes)
131删除:and on Windows (`appendWrite`, `fsetstat` on a handle, `FILE_READ_ATTRIBUTES` on write-only opens):
132删除:only vetted. The CI matrix covers them.
133删除:
134删除:## Upstream
135删除:
136删除:Upstream, each step waits for a release of the previous one: pkg/sftp, then sshocker, then Lima.
137删除:pkg/sftp merges rarely and some of these patches add API, so split what needs no pkg/sftp release:
138删除:
139删除:- **sshocker, now:** 0003 (crash on append), and the nil guards of 0005. Crash fixes for any Lima
140删除: user of the builtin driver. 0001 and 0002 go with the Lima #5531 discussion.
141删除:- **pkg/sftp:** an issue for the ordering bug (below), then a PR with 0001; a PR with 0002
142删除: referencing #664; a PR with 0003. Rebase each on pkg/sftp's master separately: none needs
143删除: another's code.
144删除:- **sshocker, after a pkg/sftp release:** the rest of 0004 and 0005. `O_APPEND` waits too: without
145删除: sequential processing two appends can land in either order.
146删除:- **Lima:** once sshocker has released, #5531 needs no `replace`.
147删除:
148删除:Each patch merged upstream is dropped from here when `SOURCES` moves past it. Never push, tag or
149删除:open a PR without the owner's go-ahead.
150删除:
151删除:Lima's contribution rules (`website/content/en/docs/community/contributing.md`, "AI Contribution
152删除:Rules"): the human who submits signs off every commit (`git commit -s`, DCO), writes the PR
153删除:description and answers reviews themselves, and discloses AI help with an `Assisted-by:` trailer.
154删除:New Go files need an SPDX header there.
155删除:
156删除:### Draft: pkg/sftp issue for the ordering bug
157删除:
158删除:> **RequestServer: requests run out of order with the WRITEs sent before them**
159删除:>
160删除:> `packetManager.workerChan` sends READ and WRITE to `SftpServerWorkerCount` workers and every other
161删除:> packet to another worker; only CLOSE waits for the reads and writes in flight. So:
162删除:> - two WRITEs to the same range run in either order: through sshfs, rewriting a 4 KiB block 8 times
163删除:> left an older write last in 241 runs out of 300;
164删除:> - a FSETSTAT (`ftruncate(fd)`) after a WRITE can run first: wrong file content in 214/300;
165删除:> - a FSTAT after a WRITE can return the old size, and the kernel caches it: short reads in 206/300.
166删除:>
167删除:> OpenSSH's sftp-server, same sshfs, same tests: 0/300. Proposal: `WithRSSequential()`, opt-in, one worker
168删除:> processing packets in the order received (PR attached). Responses were already sent in order.
169删除:
170删除:## Wanted from Lima (proposals, no patch yet)
171删除:
172删除:- **Expose sshfs's `dcache_timeout`** (`sshfs.cacheTimeout`, passed as `-o dcache_timeout=`): agent-vm
173删除: turns sshfs's cache off on writable shares, because with the default 20 s timeout the VM can
174删除: write back a file as it was before the host changed it. A 1 s cache would keep most of the speed.
175删除:- **Network isolation between VMs** (agent-vm's own Lima config, not a patch): any VM can listen on
176删除: a port Lima forwards to the host, so it can lure the browser to another VM's `agent-vm code` host
177删除: name. Per-VM `portForwards`, or forwarding off by default.
删除promo/README.md+0 −44
@@ -1,44 +0,0 @@
1删除:# Claude Cage 宣传片
2删除:
3删除:一支约 61 秒的宣传片,横屏 1920×1080 和竖屏 1080×1920 两个版本,60 fps,画面和配乐都由代码生成。
4删除:
5删除:| 时间 | 段落 | 内容 |
6删除:|---|---|---|
7删除:| 0–4s | 冷开场 | 还原 “Your account is on hold” 停用页,滚到 “Reviews take about 10 days.”,随后缩成证据卡,砸出损失:订阅打水漂、余额不能用、项目停摆。 |
8删除:| 4–15s | 痛点 | VPS、指纹浏览器、远程 Mac mini 的月账单;全局代理把整台电脑拖下水;传统虚拟机又重又慢还得自己配;“就不能,简单一点吗?” |
9删除:| 15–20s | 方案 | 像素 Logo 落笼,定位语“为 Claude 量身定制的轻量虚拟机”,开箱即用,只需配置自己的代理。 |
10删除:| 20–43s | 真实工作台 | 用当前版本工作台的真实截图做底:「网络与隔离检查」11 项逐个打勾、外网放行 → 状态栏的出口与时区 → 内置 Claude Desktop 对话 → 项目上新建「Claude 终端」进入 Claude Code → 授权页在 Cage 浏览器打开并完成登录 → 回到终端干活。 |
11删除:| 43–49s | 多账号调度 | “Claude 账号”面板:多个订阅的 5h / 7d 额度,新建终端按负载和余量自动分配,额度用尽的账号本轮跳过。 |
12删除:| 49–53s | 卖点汇总 | 轻量开箱即用 · 自带泄漏审查 · 与主机隔离 · 开源接受审查。 |
13删除:| 53–57s | 写给相遇 | 角色插画与“把 Claude 关起来,是为了更好地保护我们的相遇。” |
14删除:| 57–61s | 片尾 | Logo、平台、主页与 GitHub 地址、非隶属声明。 |
15删除:
16删除:痛点里的账单金额、停用页日期、节点名、账号邮箱与额度、终端对话都是示意内容,改文案直接编辑 `index.html`。
17删除:
18删除:## 文件
19删除:
20删除:- `index.html`:舞台、各幕布局和样式。
21删除:- `promo.js`:每一帧都是时间的纯函数 `render(t)`,预览、拖动和导出看到的画面完全一致。
22删除:- `timeline.js`:画面与配乐共用的时间点,改节奏只改这里。
23删除:- `plates/`:第三幕的底图,是真实工作台界面的 2x 截图。横屏用 1440×860 的窗口,竖屏用 760×1100 的窄窗口(`plates/portrait/`,工作台自带的窄屏布局),竖屏因此能整宽展示、字号够大。`layout.js` 记录侧栏按钮、状态栏、检查弹窗每一行等位置;Claude Desktop、终端文字、浏览器页面和逐行打勾由 `promo.js` 叠加绘制。
24删除:- `capture-plates.mjs`:用模拟接口加载 `internal/workbench/web` 里构建好的工作台,按横竖两种窗口尺寸重新截取 `plates/` 并生成 `layout.js`。
25删除:- `soundtrack.mjs`:按时间轴合成配乐与音效,输出 `out/soundtrack.wav`。
26删除:- `render.mjs`:本地静态服务 + 无头 Chrome 逐帧截图 + ffmpeg 编码;`--portrait` 输出竖屏。
27删除:- `chrome.mjs`:在 macOS、Windows、Linux 上查找 Chrome / Chromium / Edge。
28删除:
29删除:## 使用
30删除:
31删除:需要 Node.js 18+ 和本机的 Chrome、Chromium 或 Edge(macOS、Windows、Linux 的常见安装位置会自动查找,也可以用 `CHROME_PATH` 指定)。ffmpeg 由 `ffmpeg-static` 提供;如果 npm 提示安装脚本未授权,执行 `npm install-scripts approve ffmpeg-static` 后重新安装。
32删除:
33删除:```bash
34删除:cd promo
35删除:npm install
36删除:npm run preview # 打开打印出的地址实时预览:空格播放/暂停,←/→ 跳转,?t=12.5 定位
37删除:npm run render # 合成配乐并导出横屏 out/claude-cage-promo.mp4
38删除:npm run render:vertical # 竖屏 9:16,导出 out/claude-cage-promo-vertical.mp4(预览加 ?portrait)
39删除:npm run render:draft # 960×540 / 30 fps 快速草稿
40删除:npm run plates # 工作台界面更新后,先构建 UI,再重截第三幕底图
41删除:node render.mjs --frames 8.6,24,33 # 只导出这些时间点的 PNG
42删除:```
43删除:
44删除:页面使用 Google Fonts(Inter、Noto Sans SC、Noto Serif SC、JetBrains Mono),渲染时需要能访问字体服务;离线时会退回系统字体,排版会有轻微差异。
删除promo/capture-plates.mjs+0 −158
@@ -1,158 +0,0 @@
1删除:// Capture the real workbench UI as the promo's Act 3 plates (plates/*.png, 2x).
2删除:// Serves the built UI from internal/workbench/web against a small mock API, so
3删除:// no VM is needed. Rebuild the UI first (make, or `npm run build` in ui/) when
4删除:// the workbench changes, then run `npm run plates`.
5删除://
6删除:// Remote panes (Claude Desktop, the browser page) and terminal text are hidden;
7删除:// promo.js draws them on top of the plates.
8删除:import { createReadStream, existsSync, mkdirSync, statSync, writeFileSync } from 'node:fs';
9删除:import { createServer } from 'node:http';
10删除:import { extname, join, resolve } from 'node:path';
11删除:import { fileURLToPath } from 'node:url';
12删除:import { findChrome } from './chrome.mjs';
13删除:
14删除:const here = fileURLToPath(new URL('.', import.meta.url));
15删除:const web = resolve(here, '..', 'internal', 'workbench', 'web');
16删除:const out = join(here, 'plates');
17删除:if (!existsSync(join(web, 'index.html'))) {
18删除: console.error(`No built workbench UI at ${web}. Build it first (make, or npm run build in ui/).`);
19删除: process.exit(1);
20删除:}
21删除:
22删除:// ---------- mock API ----------
23删除:let scene = 'home';
24删除:const until = new Date(Date.now() + 864e5).toISOString();
25删除:const WS = '/workspace/hello-cage';
26删除:const dev = { id: 't2', kind: 'shell', workspace: WS, title: '开发终端' };
27删除:const claude = { id: 't1', kind: 'claude', workspace: WS, title: 'Claude 终端', claude_account_id: 'a1' };
28删除:const authorize = { id: 'b1', kind: 'browser', title: 'Authorize · Claude', url: 'https://claude.ai/oauth/authorize?code=true&client_id=claude-code' };
29删除:// The eleven critical checks, as the safety dialog lists them.
30删除:const CHECKS = ['VM 外出站约束', '终端检测通道', 'DNS 与解析约束', '系统时区与语言', '浏览器时区与语言', '共享文件与宿主私有目录',
31删除: '宿主管理接口', '代理故障关闭', 'UDP 出站约束', 'IPv6 出站约束', '出口符合已保存规则'];
32删除:const created = '2026-11-05T06:30:12Z';
33删除:const report = state => ({
34删除: created_at: created,
35删除: checks: CHECKS.map((title, i) => ({ id: `c${i}`, title, critical: true, state, checked_at: created, evidence: '' })),
36删除:});
37删除:const safety = () => scene === 'safety-run'
38删除: ? { gate: { mode: 'checking', until }, exit_ip: '203.0.113.8', report: report('unknown') }
39删除: : { gate: { mode: 'open', until }, exit_ip: '203.0.113.8', ...(scene === 'safety-done' ? { report: report('passed') } : {}) };
40删除:const job = () => scene === 'safety-run'
41删除: ? { id: 'j1', running: true, kind: 'safety', message: '正在核对网络与隔离…', error: '' }
42删除: : { id: 'j0', running: false, kind: 'start', message: '', error: '' };
43删除:const routes = {
44删除: 'GET /api/settings': () => ({ timezone: 'America/Los_Angeles', auto_timezone: true, browser_home_url: 'https://claude.ai/' }),
45删除: 'GET /api/proxy': () => ({ active: true, selected: 'la-01', groups: [], sources: [] }),
46删除: 'GET /api/account': () => ({ exists: true, unlocked: true, username: 'lee', devices: {}, require_authentication: false }),
47删除: 'GET /api/status': () => ({
48删除: ready: true, vm_running: true, workspace: WS, environment_workspace: '/workspace', environment_directory: '/workspace',
49删除: projects: [WS, '/workspace/api-server'], project_errors: [], can_restore: false,
50删除: job: job(),
51删除: location: { ip: '203.0.113.8', country: 'US', city: 'Los Angeles' },
52删除: safety: safety(), keyboard: {},
53删除: }),
54删除: 'GET /api/browser/tabs': () => (scene === 'browser' ? { tabs: [authorize], active: 'b1' } : { tabs: [], active: '' }),
55删除: 'GET /api/terminals': () => (scene === 'term' || scene === 'browser' ? [dev, claude] : [dev]),
56删除: 'GET /api/claude-desktop': () => ({ installed: true, running: scene === 'desktop', version: '1.2.0', managed: true }),
57删除: 'GET /api/favorites': () => ({ items: [], folders: [] }),
58删除: 'GET /api/claude-accounts': () => ({ accounts: [{ id: 'a1', label: '工作', email: '[email protected]', enabled: true, status: 'ready', plan: 'Max', source: 'login' }] }),
59删除: 'GET /api/browser/files/saved': () => [],
60删除: 'GET /api/input/files/desktop/requests': () => ({ uploads: [] }),
61删除:};
62删除:const TYPES = { '.html': 'text/html', '.js': 'text/javascript', '.css': 'text/css', '.png': 'image/png', '.svg': 'image/svg+xml' };
63删除:const server = createServer((req, res) => {
64删除: const url = new URL(req.url, 'http://x');
65删除: if (url.pathname.startsWith('/api/')) {
66删除: const route = routes[`${req.method} ${url.pathname}`];
67删除: res.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify(route ? route() : {}));
68删除: return;
69删除: }
70删除: let file = join(web, url.pathname === '/' ? 'index.html' : url.pathname);
71删除: if (!file.startsWith(web) || !existsSync(file) || !statSync(file).isFile()) file = join(web, 'index.html');
72删除: res.writeHead(200, { 'content-type': TYPES[extname(file)] || 'application/octet-stream' });
73删除: createReadStream(file).pipe(res);
74删除:});
75删除:await new Promise(ok => server.listen(0, '127.0.0.1', ok));
76删除:const origin = `http://127.0.0.1:${server.address().port}`;
77删除:
78删除:// ---------- scenes ----------
79删除:const hide = `.view-overlay,.terminal-note,.remote-canvas,.xterm{visibility:hidden!important}
80删除:*:focus,*:focus-visible{outline:none!important;box-shadow:none!important}`;
81删除:const press = label => `(() => {
82删除: const b = ${JSON.stringify(label)}.startsWith('.') ? document.querySelector(${JSON.stringify(label)})
83删除: : [...document.querySelectorAll('button')].find(b => b.getAttribute('aria-label') === ${JSON.stringify(label)} || b.textContent.trim().startsWith(${JSON.stringify(label)}));
84删除: if (!b) throw new Error('button not found: ' + ${JSON.stringify(label)});
85删除: b.click();
86删除:})()`;
87删除:const scenes = [
88删除: ['home', 'home', []],
89删除: ['desktop', 'desktop', ['Claude Desktop']],
90删除: ['menu', 'desktop', ['Claude Desktop', '在 hello-cage 新建终端']],
91删除: ['term', 'term', ['Claude 终端']],
92删除: ['browser', 'browser', ['打开浏览器']],
93删除: ['safety-run', 'safety-run', ['.sidebar-status']],
94删除: ['safety-done', 'safety-done', ['.sidebar-status']],
95删除:];
96删除:const wait = ms => new Promise(ok => setTimeout(ok, ms));
97删除:// Landscape matches the 16:9 cut; portrait is a tall window the vertical cut can show at full width.
98删除:const sizes = [
99删除: ['landscape', 1440, 860, out],
100删除: ['portrait', 760, 1100, join(out, 'portrait')],
101删除:];
102删除:// What promo.js needs to know about each plate, measured from the live DOM.
103删除:const measure = () => {
104删除: const box = el => { if (!el) return null; const r = el.getBoundingClientRect(); return [r.left, r.top, r.width, r.height].map(v => Math.round(v * 10) / 10); };
105删除: const button = text => [...document.querySelectorAll('button')].find(b => b.getAttribute('aria-label') === text || b.textContent.trim().startsWith(text));
106删除: const status = document.querySelector('.status-bar');
107删除: return {
108删除: sidebar: box(document.querySelector('.workspace-sidebar')),
109删除: header: box(document.querySelector('.content-heading, .claude-desktop-toolbar')),
110删除: status: box(status),
111删除: statusItems: [...status.querySelectorAll(':scope > button')].filter(b => b.offsetParent).slice(0, 3).map(box),
112删除: shield: box(document.querySelector('.sidebar-status')),
113删除: desktopNav: box(button('Claude Desktop')),
114删除: termIcon: box(button('在 hello-cage 新建终端')),
115删除: claudeItem: box(document.querySelector('.terminal-create-menu button:nth-child(2)')),
116删除: navigation: box(document.querySelector('.navigation-row')),
117删除: dialog: box(document.querySelector('[role="dialog"]')),
118删除: summary: box(document.querySelector('.safety-summary')),
119删除: count: box(document.querySelector('.safety-section-heading > span')),
120删除: rows: [...document.querySelectorAll('.safety-check > summary')].map(box),
121删除: };
122删除:};
123删除:
124删除:const { default: puppeteer } = await import('puppeteer-core');
125删除:const browser = await puppeteer.launch({ executablePath: findChrome(), headless: true, args: ['--hide-scrollbars', '--force-color-profile=srgb'] });
126删除:const layout = {};
127删除:try {
128删除: for (const [orientation, width, height, dir] of sizes) {
129删除: mkdirSync(dir, { recursive: true });
130删除: layout[orientation] = { width, height };
131删除: for (const [name, state, steps] of scenes) {
132删除: scene = state;
133删除: const page = await browser.newPage();
134删除: await page.setViewport({ width, height, deviceScaleFactor: 2 });
135删除: await page.emulateTimezone('Asia/Shanghai');
136删除: await page.goto(origin + '/', { waitUntil: 'networkidle0' });
137删除: await page.addStyleTag({ content: hide });
138删除: await wait(1500);
139删除: for (const label of steps) { await page.evaluate(press(label)); await wait(900); }
140删除: if (name === 'menu') {
141删除: // Hover the Claude terminal item, as the cursor is about to click it.
142删除: await page.evaluate(() => {
143删除: document.querySelector('.terminal-create-menu button:nth-child(2)').style.background = 'var(--hover)';
144删除: document.activeElement?.blur();
145删除: });
146删除: }
147删除: await wait(400);
148删除: await page.screenshot({ path: join(dir, `${name}.png`) });
149删除: layout[orientation][name] = await page.evaluate(measure);
150删除: console.log(join(dir, `${name}.png`));
151删除: await page.close();
152删除: }
153删除: }
154删除: writeFileSync(join(out, 'layout.js'), `// Generated by capture-plates.mjs: where things sit on each plate, in workbench pixels.\nwindow.PLATE_LAYOUT = ${JSON.stringify(layout)};\n`);
155删除:} finally {
156删除: await browser.close();
157删除: server.close();
158删除:}
删除promo/chrome.mjs+0 −28
@@ -1,28 +0,0 @@
1删除:// Locate a Chrome, Chromium or Edge executable on macOS, Windows or Linux.
2删除:import { existsSync } from 'node:fs';
3删除:import { join } from 'node:path';
4删除:
5删除:export function findChrome() {
6删除: if (process.env.CHROME_PATH) return process.env.CHROME_PATH;
7删除: const pf = process.env.PROGRAMFILES || 'C:\\Program Files';
8删除: const pf86 = process.env['PROGRAMFILES(X86)'] || 'C:\\Program Files (x86)';
9删除: const local = process.env.LOCALAPPDATA || '';
10删除: const candidates = {
11删除: darwin: [
12删除: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
13删除: '/Applications/Chromium.app/Contents/MacOS/Chromium',
14删除: '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
15删除: ],
16删除: win32: [
17删除: join(pf, 'Google\\Chrome\\Application\\chrome.exe'),
18删除: join(pf86, 'Google\\Chrome\\Application\\chrome.exe'),
19删除: join(local, 'Google\\Chrome\\Application\\chrome.exe'),
20删除: join(pf86, 'Microsoft\\Edge\\Application\\msedge.exe'),
21删除: join(pf, 'Microsoft\\Edge\\Application\\msedge.exe'),
22删除: ],
23删除: linux: ['/usr/bin/google-chrome', '/usr/bin/google-chrome-stable', '/usr/bin/chromium', '/usr/bin/chromium-browser', '/snap/bin/chromium'],
24删除: }[process.platform] || [];
25删除: const found = candidates.find(p => existsSync(p));
26删除: if (!found) throw new Error('Chrome not found. Set CHROME_PATH to a Chrome, Chromium or Edge executable.');
27删除: return found;
28删除:}
删除promo/index.html+0 −674
@@ -1,674 +0,0 @@
1删除:<!doctype html>
2删除:<html lang="zh-CN">
3删除:<head>
4删除:<meta charset="utf-8" />
5删除:<meta name="viewport" content="width=device-width, initial-scale=1" />
6删除:<title>Claude Cage · 宣传片</title>
7删除:<link rel="preconnect" href="https://fonts.googleapis.com" />
8删除:<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9删除:<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&family=Source+Serif+4:opsz,[email protected],500;8..60,600&display=block" />
10删除:<style>
11删除::root {
12删除: --paper: #faf8f4;
13删除: --ink: #2b2724;
14删除: --muted: #7a726a;
15删除: --line: #e7e2db;
16删除: --accent: #b95032;
17删除: --orange: #ef6f45;
18删除: --night: #0f0d0c;
19删除: --cream: #f3ebe1;
20删除: --ok: #2f8a4c;
21删除: --sans: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
22删除: --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
23删除: --mono: "JetBrains Mono", "SF Mono", "Menlo", "Noto Sans Mono CJK SC", monospace;
24删除:}
25删除:* { box-sizing: border-box; }
26删除:html, body { margin: 0; height: 100%; background: #050404; overflow: hidden; }
27删除:body { font-family: var(--sans); -webkit-font-smoothing: antialiased; font-synthesis: none; }
28删除:
29删除:/* ---------- stage ---------- */
30删除:#viewport { position: fixed; inset: 0; display: grid; place-items: center; }
31删除:#stage {
32删除: position: relative; width: 1920px; height: 1080px; overflow: hidden;
33删除: background: var(--night); transform-origin: 0 0; flex: none;
34删除:}
35删除:.layer { position: absolute; inset: 0; will-change: opacity, transform; }
36删除:.center { position: absolute; left: 0; right: 0; text-align: center; }
37删除:.c { display: inline-block; white-space: pre; will-change: opacity, transform, filter; }
38删除:
39删除:#grain {
40删除: position: absolute; inset: -200px; pointer-events: none; z-index: 50; mix-blend-mode: overlay;
41删除: background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
42删除: opacity: .35;
43删除:}
44删除:#vignette { position: absolute; inset: 0; pointer-events: none; z-index: 49;
45删除: background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 55%, rgba(20,12,6,.22) 100%); }
46删除:
47删除:/* ---------- act 1 · the problem ---------- */
48删除:#night { background: radial-gradient(ellipse 70% 60% at 50% 55%, #1a1210 0%, #0c0908 70%); }
49删除:#nightGlow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at 50% 58%, rgba(255,80,50,.22), transparent 70%); opacity: 0; }
50删除:#flash { position: absolute; inset: 0; background: #ffe6dc; opacity: 0; z-index: 3; pointer-events: none; }
51删除:.beat { position: absolute; inset: 0; will-change: opacity, transform; }
52删除:.kick { position: absolute; left: 0; right: 0; top: 92px; text-align: center; font: 600 19px/1 var(--mono); letter-spacing: .3em; color: #ff7a55; }
53删除:.kick i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5a36; margin-right: 14px; vertical-align: 2px; box-shadow: 0 0 0 5px rgba(255,90,54,.18); }
54删除:.head { position: absolute; left: 0; right: 0; top: 140px; text-align: center; font: 700 70px/1.25 var(--sans); color: #f7f0e9; letter-spacing: -.005em; }
55删除:.head em, .q em { font-style: normal; color: #ff6a45; }
56删除:.dark-card { background: linear-gradient(180deg, rgba(56,46,42,.92), rgba(32,27,25,.92)); border: 1px solid rgba(255,240,225,.10);
57删除: box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); border-radius: 22px; color: #f4ece4; }
58删除:
59删除:/* beat 1 */
60删除:#hold { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #f8f7f3; transform-origin: 50% 50%; z-index: 2; }
61删除:#holdScroll { position: absolute; left: 50%; top: 0; width: 900px; margin-left: -450px; text-align: center; color: #2b2a27; font-family: "Inter", sans-serif; will-change: transform; }
62删除:#holdScroll h1 { margin: 112px 0 0; font: 500 118px/1.04 "Source Serif 4", Georgia, serif; letter-spacing: -.028em; color: #1c1b19; }
63删除:#holdScroll .lock { display: block; width: 132px; height: 165px; margin: 52px auto 44px; }
64删除:#holdScroll p { margin: 0 0 30px; font: 400 33px/1.45 "Inter", sans-serif; color: #3b3a36; }
65删除:#holdScroll p b { font-weight: 600; color: #1c1b19; }
66删除:#holdScroll .next { text-align: left; margin: 46px 0 24px; color: #57554f; }
67删除:#holdScroll .hcard { text-align: left; background: #fff; border: 1.5px solid #dcd9d2; border-radius: 40px; padding: 40px 48px 14px; }
68删除:#holdScroll .step { display: grid; grid-template-columns: 46px 1fr; margin-bottom: 30px; font: 400 35px/1.3 "Inter", sans-serif; color: #2b2a27; }
69删除:#holdScroll .step p { margin: 6px 0 0; font-size: 29px; line-height: 1.4; color: #8a877f; }
70删除:#holdMark { background: linear-gradient(transparent 58%, rgba(226,92,58,.30) 58%) no-repeat 0 0 / 0% 100%; color: #8a877f; }
71删除:#holdTint { position: absolute; inset: 0; background: #2a0d06; opacity: 0; pointer-events: none; }
72删除:#losses { position: absolute; left: 0; right: 0; top: 722px; display: flex; justify-content: center; gap: 24px; }
73删除:.loss { width: 284px; padding: 26px 28px; border-radius: 18px; text-align: left; }
74删除:.loss span { display: block; font: 500 19px/1 var(--sans); color: rgba(244,236,228,.5); text-decoration: line-through; text-decoration-color: rgba(255,106,69,.7); }
75删除:.loss b { display: block; margin-top: 14px; font: 700 34px/1.1 var(--sans); color: #ff6a45; }
76删除:
77删除:/* beat 2 */
78删除:#receipt { position: absolute; left: 50%; top: 318px; width: 780px; margin-left: -390px; padding: 34px 44px 30px; background: #f3ece2; color: #2b2522;
79删除: border-radius: 6px 6px 0 0; box-shadow: 0 50px 100px rgba(0,0,0,.55); font-family: var(--mono); }
80删除:#receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px;
81删除: background: linear-gradient(-45deg, transparent 12px, #f3ece2 0) 0 0/24px 18px repeat-x, linear-gradient(45deg, transparent 12px, #f3ece2 0) 0 0/24px 18px repeat-x; }
82删除:#receipt .rh { display: flex; justify-content: space-between; font: 600 18px/1 var(--mono); letter-spacing: .12em; color: #8a7f75; padding-bottom: 18px; border-bottom: 2px dashed #cfc4b7; }
83删除:#receipt .rr { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; font-size: 28px; border-bottom: 1px dashed #ddd3c7; }
84删除:#receipt .rr span { font-family: var(--sans); font-weight: 500; }
85删除:#receipt .rt { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 6px; font: 700 34px/1 var(--mono); color: #c2401f; }
86删除:#receipt .rt span { font-family: var(--sans); }
87删除:#receipt .rn { margin-top: 12px; text-align: right; font: 600 22px/1.3 var(--serif); color: #c2401f; }
88删除:
89删除:/* beat 3 */
90删除:#wires { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; }
91删除:#wires path { fill: none; stroke: #ff6a45; stroke-width: 2.5; stroke-linecap: round; opacity: .75; }
92删除:#pcLabel { position: absolute; left: 700px; top: 318px; width: 270px; font: 600 18px/1 var(--mono); letter-spacing: .2em; color: rgba(244,236,228,.45); text-align: center; }
93删除:.app-chip { position: absolute; left: 700px; width: 270px; height: 78px; padding: 0 22px; display: flex; align-items: center; gap: 16px; font: 600 25px/1 var(--sans); border-radius: 16px; }
94删除:.app-chip i { width: 36px; height: 36px; border-radius: 10px; display: block; flex: none; }
95删除:.warn { position: absolute; right: 1260px; height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-radius: 12px; white-space: nowrap;
96删除: background: rgba(255,90,54,.16); border: 1px solid rgba(255,106,69,.5); color: #ffb69c; font: 600 20px/1 var(--sans); }
97删除:.warn svg { width: 20px; height: 20px; }
98删除:#proxyNode { position: absolute; left: 1330px; top: 470px; width: 240px; height: 240px; margin: 0; border-radius: 50%; display: grid; place-content: center; text-align: center;
99删除: background: radial-gradient(circle at 50% 40%, #4a2318, #2a1510); border: 2px solid rgba(255,106,69,.6); box-shadow: 0 0 80px rgba(255,90,54,.25); color: #fff; }
100删除:#proxyNode b { font: 700 32px/1.2 var(--sans); }
101删除:#proxyNode span { margin-top: 10px; font: 500 17px/1.3 var(--sans); color: rgba(255,220,205,.7); }
102删除:
103删除:/* beat 4 */
104删除:#vmWin { position: absolute; left: 50%; top: 332px; width: 1080px; margin-left: -540px; overflow: hidden; border-radius: 16px; }
105删除:#vmWin .tb { height: 56px; display: flex; align-items: center; gap: 9px; padding: 0 20px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.07); font: 500 17px var(--sans); color: rgba(244,236,228,.6); }
106删除:#vmWin .tb i { width: 12px; height: 12px; border-radius: 50%; background: #5b524d; display: block; }
107删除:#vmWin .tb span { margin-left: 14px; }
108删除:#vmWin .bd { padding: 34px 40px 38px; display: grid; gap: 28px; }
109删除:.vm-row { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: baseline; font: 500 27px/1.2 var(--sans); }
110删除:.vm-row small { font: 500 22px/1 var(--mono); color: rgba(244,236,228,.55); }
111删除:.vm-bar { grid-column: 1 / -1; height: 14px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
112删除:.vm-bar i { display: block; height: 100%; border-radius: 10px; background: #d9cfc5; transform-origin: 0 50%; }
113删除:#vmMemRow small { color: #ff8a66; }
114删除:#vmTodo { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.07); }
115删除:#vmTodo .lbl { width: 100%; font: 500 21px/1 var(--sans); color: rgba(244,236,228,.5); padding-top: 18px; }
116删除:#vmTodo span { padding: 14px 22px; border-radius: 12px; border: 1px dashed rgba(244,236,228,.35); font: 500 24px/1 var(--sans); color: rgba(244,236,228,.85); }
117删除:
118删除:/* beat 5 */
119删除:.q { position: absolute; left: 0; right: 0; top: 476px; text-align: center; font: 700 104px/1.2 var(--sans); color: #f7f0e9; letter-spacing: .01em; }
120删除:
121删除:/* ---------- act 2 · room ---------- */
122删除:#room { background: var(--paper); }
123删除:#roomLight { position: absolute; inset: 0;
124删除: background: radial-gradient(ellipse 55% 50% at 50% 42%, #fffdf9 0%, rgba(255,253,249,0) 70%),
125删除: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(239,111,69,.10), transparent 70%); }
126删除:#logoWrap { position: absolute; left: 50%; top: 178px; width: 270px; height: 270px; margin-left: -135px; }
127删除:#logoWrap svg, .logo-svg { width: 100%; height: 100%; overflow: visible; }
128删除:.logo-svg rect { transform-box: fill-box; transform-origin: center; shape-rendering: crispEdges; }
129删除:#wordmark { top: 486px; font: 700 64px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
130删除:#roomPos { top: 600px; font: 700 62px/1.2 var(--sans); color: var(--ink); letter-spacing: -.005em; }
131删除:#roomPos em { font-style: normal; color: var(--accent); }
132删除:#roomSub { top: 708px; font: 500 30px/1.4 var(--sans); color: var(--muted); letter-spacing: .04em; }
133删除:#roomSub em { font-style: normal; color: var(--ink); font-weight: 600; }
134删除:
135删除:/* ---------- act 3 · app ---------- */
136删除:#app { background: radial-gradient(ellipse 70% 60% at 50% 40%, #fffdfa, var(--paper) 70%), var(--paper); }
137删除:#appFloor { position: absolute; left: 50%; top: 980px; width: 1600px; height: 160px; margin-left: -800px;
138删除: background: radial-gradient(closest-side, rgba(90,60,30,.16), transparent); filter: blur(10px); }
139删除:#capShade { position: absolute; left: 0; right: 0; top: 0; height: 250px; z-index: 4; pointer-events: none;
140删除: background: linear-gradient(180deg, var(--paper) 0%, rgba(250,248,244,.96) 52%, rgba(250,248,244,0) 100%); }
141删除:#caption { position: absolute; left: 112px; top: 54px; z-index: 5; display: flex; align-items: baseline; gap: 26px;
142删除: padding: 0; }
143删除:#caption .num { font: 600 22px/1 var(--mono); color: var(--accent); letter-spacing: .08em; position: relative; top: -6px; }
144删除:#caption .txt { display: grid; gap: 10px; }
145删除:#caption .title { font: 650 40px/1.1 var(--sans); color: var(--ink); letter-spacing: -.01em; }
146删除:#caption .sub { font: 400 22px/1.3 var(--sans); color: var(--muted); letter-spacing: .01em; }
147删除:#caption .slot { position: relative; height: 100px; width: 1500px; }
148删除:#caption .cap { position: absolute; left: 0; top: 0; display: flex; gap: 26px; align-items: baseline; }
149删除:#progressDots { position: absolute; right: 112px; top: 68px; z-index: 5; display: flex; gap: 10px; }
150删除:#progressDots i { display: block; width: 34px; height: 4px; border-radius: 4px; background: #e4ddd4; overflow: hidden; position: relative; }
151删除:#progressDots i b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
152删除:
153删除:#cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
154删除:#win { position: relative; width: 1440px; height: 860px; border-radius: 14px; overflow: hidden; background: #fff;
155删除: box-shadow: 0 0 0 1px rgba(40,25,10,.10), 0 50px 120px -20px rgba(70,40,15,.30), 0 18px 40px -12px rgba(70,40,15,.18); }
156删除:#win .plate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
157删除:.pane { position: absolute; left: 249px; right: 0; bottom: 32px; overflow: hidden; }
158删除:.ring2 { position: absolute; border-radius: 8px; box-shadow: 0 0 0 2px rgba(185,80,50,.8); background: rgba(185,80,50,.07); opacity: 0; }
159删除:
160删除:/* safety dialog: rows flip from pending to passed one at a time */
161删除:#checkFx { position: absolute; inset: 0; pointer-events: none; }
162删除:#checkFx .row { position: absolute; background-repeat: no-repeat; opacity: 0; }
163删除:#checkFx .flash { position: absolute; inset: 0; background: rgba(39,131,92,.10); opacity: 0; }
164删除:#checkFx .spin { position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff;
165删除: box-shadow: 0 0 0 3px #fff; border: 2px solid #cfe0f6; border-top-color: #2f7fe0; opacity: 0; }
166删除:#checkCount { position: absolute; height: 17px; padding-right: 6px; background: #fff; font: 400 14px/17px "Noto Sans SC", "PingFang SC", sans-serif; color: #363636; white-space: nowrap; opacity: 0; }
167删除:
168删除:/* Claude Desktop, running inside the VM display */
169删除:#paneDesktop { top: 42px; background: #faf9f5; }
170删除:.cd { position: absolute; inset: 0; display: flex; font-family: "Inter", "Noto Sans SC", sans-serif; color: #3d3929; }
171删除:.cd-side { width: 236px; flex: none; background: #f3f1ea; border-right: 1px solid #e6e2d8; padding: 18px 14px; }
172删除:.cd-logo { font: 600 22px/1 "Source Serif 4", Georgia, serif; letter-spacing: -.01em; padding: 6px 8px 20px; color: #3d3929; }
173删除:.cd-new { display: flex; align-items: center; gap: 10px; padding: 8px; font: 500 15px/1 "Inter", sans-serif; color: #b6593a; }
174删除:.cd-new i { width: 24px; height: 24px; border-radius: 50%; background: #d97757; color: #fff; display: grid; place-items: center; font: 500 17px/1 "Inter", sans-serif; font-style: normal; }
175删除:.cd-nav { margin-top: 6px; }
176删除:.cd-nav div { padding: 9px 8px; border-radius: 9px; font: 400 15px/1 "Inter", sans-serif; color: #4a463d; }
177删除:.cd-nav div.on { background: #e8e4d9; }
178删除:.cd-rec { margin: 24px 8px 8px; font: 500 12.5px/1 "Inter", sans-serif; color: #8d8778; }
179删除:.cd-side .it { padding: 8px; font: 400 14px/1.2 "Inter", "Noto Sans SC", sans-serif; color: #57534a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; }
180删除:.cd-side .it.on { background: #e8e4d9; color: #2f2c26; }
181删除:.cd-main { position: relative; flex: 1; }
182删除:.cd-hello { position: absolute; left: 0; right: 0; top: 214px; text-align: center; font: 400 42px/1.2 "Source Serif 4", Georgia, serif; color: #3d3929; letter-spacing: -.01em; }
183删除:.cd-hello span { color: #d97757; margin-right: 14px; font-family: "Inter", sans-serif; }
184删除:.cd-input { position: absolute; left: 50%; width: 680px; margin-left: -340px; top: 300px; background: #fff; border: 1px solid #e3dfd5; border-radius: 20px;
185删除: box-shadow: 0 4px 22px rgba(60,50,30,.07); padding: 18px 20px 14px; }
186删除:.cd-input .tx { min-height: 26px; font: 400 17px/1.5 "Inter", "Noto Sans SC", sans-serif; color: #2f2c26; }
187删除:.cd-input .ph { color: #9b968a; }
188删除:.cd-input .row { display: flex; align-items: center; gap: 10px; margin-top: 26px; font: 400 14px/1 "Inter", sans-serif; color: #6f6a5f; }
189删除:.cd-input .row .pl { width: 32px; height: 32px; border: 1px solid #e3dfd5; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
190删除:.cd-input .row .md { margin-left: auto; }
191删除:.cd-input .row .send { width: 34px; height: 34px; border-radius: 10px; background: #e8b8a5; color: #fff; display: grid; place-items: center; font: 600 18px/1 "Inter", sans-serif; }
192删除:.cd-chat { position: absolute; left: 50%; width: 720px; margin-left: -360px; top: 46px; }
193删除:.cd-user { margin-left: auto; width: fit-content; max-width: 540px; background: #efece3; border-radius: 16px; padding: 12px 18px; font: 400 16.5px/1.6 "Inter", "Noto Sans SC", sans-serif; color: #2f2c26; }
194删除:.cd-reply { margin-top: 26px; font: 400 19px/1.8 "Source Serif 4", "Noto Serif SC", Georgia, serif; color: #2f2c26; }
195删除:.cd-reply p { margin: 0 0 8px; }
196删除:.cd-reply .li { padding-left: 4px; }
197删除:
198删除:/* Claude Code in the Claude terminal */
199删除:#paneTerm { top: 41px; background: #fff; padding: 24px 30px; font: 400 15px/1.75 "JetBrains Mono", "Noto Sans Mono CJK SC", monospace; color: #2b2b2b; }
200删除:#paneTerm .tl { position: absolute; left: 30px; right: 30px; top: 22px; }
201删除:#paneTerm .ln { white-space: pre; min-height: 26px; }
202删除:#paneTerm .acc { color: #c15f3c; }
203删除:#paneTerm .dim { color: #8a8a8a; }
204删除:#paneTerm .g { color: #3f8f4f; }
205删除:#paneTerm b { font-weight: 600; }
206删除:#paneTerm .box { width: 640px; margin: 2px 0 12px; padding: 10px 18px; border: 1.5px solid #d97757; border-radius: 8px; white-space: pre; line-height: 1.75; }
207删除:.tcaret { display: inline-block; width: 9px; height: 19px; background: #2b2b2b; vertical-align: -4px; margin-left: 1px; }
208删除:
209删除:/* claude.ai authorisation, inside the Cage browser */
210删除:#paneBrowser { top: 114px; background: #faf9f5; }
211删除:.auth { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Inter", "Noto Sans SC", sans-serif; }
212删除:.auth-card { width: 500px; text-align: center; }
213删除:.auth-word { font: 600 32px/1 "Source Serif 4", Georgia, serif; color: #3d3929; margin-bottom: 26px; letter-spacing: -.01em; }
214删除:.auth h3 { margin: 0 0 10px; font: 600 25px/1.35 "Inter", sans-serif; color: #262420; }
215删除:.auth .who { margin-bottom: 22px; font: 400 15px/1.5 "Inter", sans-serif; color: #7b766b; }
216删除:.auth ul { list-style: none; margin: 0 0 22px; padding: 14px 20px; text-align: left; background: #fff; border: 1px solid #e6e2d8; border-radius: 14px; }
217删除:.auth li { display: flex; gap: 12px; padding: 7px 0; font: 400 15.5px/1.45 "Inter", sans-serif; color: #3d3929; }
218删除:.auth li i { font-style: normal; color: #3f8f4f; font-weight: 700; }
219删除:.auth .go { height: 48px; border-radius: 12px; background: #1f1e1d; color: #fff; font: 600 16px/48px "Inter", sans-serif; }
220删除:.auth .no { margin-top: 10px; height: 44px; border-radius: 12px; border: 1px solid #e0dcd2; font: 500 15px/44px "Inter", sans-serif; color: #57534a; }
221删除:.auth-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: "Inter", sans-serif; }
222删除:.auth-done .ok { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: #e7f2ea; color: #2f8a4c; display: grid; place-items: center; font: 700 30px/1 "Inter", sans-serif; }
223删除:.auth-done h3 { margin: 0 0 10px; font: 600 26px/1.3 "Inter", sans-serif; color: #262420; }
224删除:.auth-done p { margin: 0; font: 400 16px/1.5 "Inter", sans-serif; color: #7b766b; }
225删除:
226删除:/* cursor */
227删除:#cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 30; pointer-events: none; will-change: transform; }
228删除:#cursor svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
229删除:#ripple { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid rgba(185,80,50,.55); z-index: 29; opacity: 0; }
230删除:
231删除:/* ---------- act 3b · accounts ---------- */
232删除:#accts { background: radial-gradient(ellipse 70% 60% at 50% 40%, #fffdfa, var(--paper) 70%), var(--paper); }
233删除:#accts .cap { position: absolute; left: 112px; top: 54px; display: flex; gap: 26px; align-items: baseline; }
234删除:#accts .cap .num { font: 600 22px/1 var(--mono); color: var(--accent); letter-spacing: .08em; position: relative; top: -6px; }
235删除:#accts .cap .txt { display: grid; gap: 10px; }
236删除:#accts .cap .title { font: 650 40px/1.1 var(--sans); color: var(--ink); letter-spacing: -.01em; }
237删除:#accts .cap .sub { font: 400 22px/1.3 var(--sans); color: var(--muted); }
238删除:#accts .dots { position: absolute; right: 112px; top: 68px; display: flex; gap: 10px; }
239删除:#accts .dots i { display: block; width: 34px; height: 4px; border-radius: 4px; background: #e4ddd4; overflow: hidden; position: relative; }
240删除:#accts .dots b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; }
241删除:#acctPanel { position: absolute; left: 150px; top: 214px; width: 960px; padding: 34px 36px 26px; background: #fff; border-radius: 22px;
242删除: box-shadow: 0 0 0 1px rgba(40,25,10,.08), 0 50px 110px -30px rgba(70,40,15,.28); }
243删除:.ap-head { display: flex; justify-content: space-between; align-items: flex-start; }
244删除:.ap-head h3 { margin: 0; font: 700 30px/1.2 var(--sans); color: #1f1d1b; }
245删除:.ap-head p { margin: 8px 0 0; font: 400 18px/1.4 var(--sans); color: #7a736c; }
246删除:.ap-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 11px; background: #1d1b1a; color: #fff; font: 500 18px/1 var(--sans); }
247删除:.ap-sub { margin: 26px 0 14px; display: flex; align-items: baseline; gap: 10px; font: 600 18px/1 var(--sans); color: #3c3936; }
248删除:.ap-sub span { color: #8b8580; font-weight: 500; }
249删除:.ap-sub small { margin-left: auto; font: 400 16px/1 var(--sans); color: #8b8580; }
250删除:.acct { position: relative; margin-top: 14px; padding: 20px 22px 18px; border: 1px solid #e7e2db; border-radius: 16px; background: #fffdfb; }
251删除:.acct .ring { position: absolute; inset: -2px; border-radius: 17px; box-shadow: 0 0 0 3px rgba(81,148,137,.55), 0 0 30px rgba(81,148,137,.25); opacity: 0; }
252删除:.acct .row1 { display: flex; align-items: center; gap: 16px; }
253删除:.acct .av { width: 54px; height: 54px; border-radius: 15px; background: #f9e6de; display: grid; place-items: center; flex: none; }
254删除:.acct .av svg { width: 36px; height: 24px; }
255删除:.acct .nm { display: flex; align-items: center; gap: 10px; font: 650 22px/1.2 var(--sans); color: #1f1d1b; }
256删除:.acct .plan { padding: 3px 8px; border-radius: 6px; background: #f1eeea; font: 600 14px/1.2 var(--sans); color: #3c3936; }
257删除:.acct .meta { margin-top: 6px; display: flex; gap: 12px; align-items: center; font: 400 16px/1 var(--sans); color: #8b8580; }
258删除:.acct .meta .ok { display: flex; align-items: center; gap: 6px; color: #3c3936; }
259删除:.acct .meta .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f8a4c; }
260删除:.acct .load { margin-left: auto; position: relative; height: 34px; min-width: 120px; padding: 0 14px; border-radius: 10px; background: #f4f1ed; display: flex; align-items: center; gap: 8px; font: 500 16px/1 var(--sans); color: #4a4642; }
261删除:.acct .load em { font: 600 17px/1 var(--mono); font-style: normal; color: #1f1d1b; }
262删除:.acct .skip { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 10px; background: rgba(217,87,58,.10); color: #b5452a; display: flex; align-items: center; font: 600 16px/1 var(--sans); }
263删除:.acct .tog { display: flex; align-items: center; gap: 10px; font: 500 16px/1 var(--sans); color: #4a4642; }
264删除:.acct .tog i { width: 40px; height: 23px; border-radius: 12px; background: #519489; position: relative; display: block; }
265删除:.acct .tog i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; }
266删除:.acct .quota { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
267删除:.acct .qr { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font: 400 15px/1 var(--sans); color: #8b8580; }
268删除:.acct .qr b { font: 600 16px/1 var(--mono); color: #1f1d1b; }
269删除:.acct .qr .bar { height: 9px; border-radius: 6px; background: #eeeae4; overflow: hidden; }
270删除:.acct .qr .bar i { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; }
271删除:.acct .qr .five i { background: #d06e4f; }
272删除:.acct .qr .seven i { background: #4f8e83; }
273删除:.acct .qr strong { font: 600 16px/1 var(--mono); color: #1f1d1b; }
274删除:.acct .qr small { grid-column: 2 / -1; font: 400 14px/1 var(--sans); color: #8b8580; }
275删除:.acct.done .qr .five i { background: #c94a2c; }
276删除:#termCol { position: absolute; left: 1330px; top: 330px; width: 440px; }
277删除:.tlabel { font: 600 17px/1 var(--mono); letter-spacing: .2em; color: #a39b92; margin-bottom: 22px; }
278删除:.tpill { position: absolute; left: 0; width: 440px; height: 92px; padding: 0 22px; display: flex; align-items: center; gap: 16px; background: #1f1c1a; color: #f3ece4; border-radius: 16px;
279删除: box-shadow: 0 30px 60px -20px rgba(40,20,10,.45); font: 500 20px/1.2 var(--mono); }
280删除:.tpill .ti { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #e9a487; flex: none; }
281删除:.tpill .ti svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
282删除:.tpill b { display: block; font: 600 21px/1.2 var(--sans); }
283删除:.tpill small { display: block; margin-top: 6px; font: 400 15px/1 var(--sans); color: rgba(243,236,228,.55); }
284删除:.tpill .to { margin-left: auto; padding: 8px 12px; border-radius: 9px; background: rgba(81,148,137,.25); color: #9fd6cb; font: 600 16px/1 var(--sans); white-space: nowrap; }
285删除:#acctWires { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
286删除:#acctWires path { fill: none; stroke: #519489; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
287删除:
288删除:/* ---------- act 4 · perks ---------- */
289删除:#perks { background: radial-gradient(ellipse 70% 60% at 50% 40%, #fffdfa, var(--paper) 70%), var(--paper); }
290删除:#perksHead { top: 196px; font: 700 66px/1.2 var(--sans); color: var(--ink); }
291删除:#perksHead em { font-style: normal; color: var(--accent); }
292删除:#perkRow { position: absolute; left: 0; right: 0; top: 400px; display: flex; justify-content: center; gap: 26px; }
293删除:.perk { width: 380px; height: 350px; padding: 38px 34px; background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(40,25,10,.07), 0 30px 70px -24px rgba(70,40,15,.22); }
294删除:.perk .pi { width: 72px; height: 72px; border-radius: 18px; background: #f8ece6; color: var(--accent); display: grid; place-items: center; }
295删除:.perk .pi svg { width: 40px !important; height: 40px !important; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
296删除:.perk h3 { margin: 30px 0 14px; font: 700 34px/1.25 var(--sans); color: var(--ink); letter-spacing: -.01em; }
297删除:.perk p { margin: 0; font: 400 22px/1.6 var(--sans); color: var(--muted); }
298删除:
299删除:/* ---------- act 5 · letter ---------- */
300删除:#letter { background: radial-gradient(ellipse 70% 80% at 30% 50%, #2b1d15 0%, #17110d 60%, #0e0a08 100%); }
301删除:#art { position: absolute; left: 150px; top: 120px; width: 840px; height: 840px; overflow: hidden; border-radius: 6px;
302删除: -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 58%, transparent 100%);
303删除: mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 58%, transparent 100%); }
304删除:#art img { width: 100%; height: 100%; display: block; will-change: transform; }
305删除:#artLight { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,210,160,.35) 48%, transparent 66%); mix-blend-mode: screen; }
306删除:#letterText { position: absolute; left: 1090px; top: 360px; font-family: var(--serif); color: var(--cream); }
307删除:#letterText .l { display: block; font-size: 58px; font-weight: 600; line-height: 1.75; letter-spacing: .05em; }
308删除:#letterText .l em { font-style: normal; color: #f5a37c; }
309删除:#letterKicker { position: absolute; left: 1094px; top: 300px; font: 500 18px/1 var(--mono); letter-spacing: .3em; color: rgba(243,235,225,.42); }
310删除:
311删除:/* ---------- act 6 · end ---------- */
312删除:#end { background: var(--paper); }
313删除:#endLogo { position: absolute; left: 50%; top: 286px; width: 180px; height: 180px; margin-left: -90px; }
314删除:#endWord { top: 500px; font: 700 84px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
315删除:#endSub { top: 612px; font: 500 30px/1.4 var(--serif); color: #4d4640; letter-spacing: .08em; }
316删除:#endPlat { top: 702px; display: flex; justify-content: center; gap: 18px; font: 500 20px/1 var(--sans); color: var(--muted); }
317删除:#endPlat span { padding: 10px 18px; border: 1px solid #e2dbd2; border-radius: 999px; background: #fff; }
318删除:#endGit { top: 836px; font: 500 20px/1 var(--mono); color: #8d847b; letter-spacing: .02em; }
319删除:#endUrl { top: 786px; font: 500 24px/1 var(--mono); color: var(--accent); letter-spacing: .02em; }
320删除:#endNote { top: 978px; font: 400 15px/1.5 var(--sans); color: #a39b92; letter-spacing: .04em; }
321删除:
322删除:/* ---------- portrait 9:16 ---------- */
323删除:body.portrait #stage { width: 1080px; height: 1920px; }
324删除:/* act 1 */
325删除:body.portrait .kick { top: 230px; }
326删除:body.portrait .head { top: 290px; font-size: 76px; line-height: 1.3; }
327删除:body.portrait .head > span, body.portrait .head > em { display: block; }
328删除:body.portrait #hold { width: 1080px; height: 1920px; }
329删除:body.portrait #holdScroll { top: 250px; }
330删除:body.portrait #losses { top: 1430px; }
331删除:body.portrait .loss { width: 300px; }
332删除:body.portrait #receipt { top: 640px; }
333删除:body.portrait #pcLabel { left: 410px; top: 590px; font-size: 21px; }
334删除:body.portrait .app-chip { left: 410px; }
335删除:body.portrait .warn { right: 690px; font-size: 23px; height: 54px; }
336删除:body.portrait #proxyNode { left: 420px; top: 1330px; }
337删除:body.portrait #vmWin { top: 640px; width: 980px; margin-left: -490px; }
338删除:body.portrait .q { top: 760px; font-size: 128px; line-height: 1.35; }
339删除:body.portrait .q > span, body.portrait .q > em { display: block; }
340删除:/* act 2 */
341删除:body.portrait #logoWrap { top: 560px; }
342删除:body.portrait #wordmark { top: 880px; }
343删除:body.portrait #roomPos { top: 990px; font-size: 56px; }
344删除:body.portrait #roomSub { top: 1092px; font-size: 32px; }
345删除:/* act 3: the real workbench in a tall window, shown at full width */
346删除:body.portrait #capShade { height: 380px; background: linear-gradient(180deg, var(--paper) 0%, rgba(250,248,244,.96) 70%, rgba(250,248,244,0) 100%); }
347删除:body.portrait #caption { left: 64px; top: 104px; }
348删除:body.portrait #caption .slot { width: 952px; height: 190px; }
349删除:body.portrait #caption .cap, body.portrait #accts .cap { gap: 20px; }
350删除:body.portrait #caption .title, body.portrait #accts .cap .title { font-size: 54px; }
351删除:body.portrait #caption .sub, body.portrait #accts .cap .sub { font-size: 29px; line-height: 1.42; max-width: 880px; }
352删除:body.portrait #progressDots { right: auto; left: 64px; top: 60px; }
353删除:body.portrait #appFloor { top: 1720px; width: 1100px; margin-left: -550px; }
354删除:body.portrait .cd-side { display: none; }
355删除:body.portrait .cd-hello { top: 300px; font-size: 36px; }
356删除:body.portrait .cd-input { width: 480px; margin-left: -240px; top: 380px; }
357删除:body.portrait .cd-input .tx { font-size: 16.5px; }
358删除:body.portrait .cd-chat { width: 484px; margin-left: -242px; top: 34px; }
359删除:body.portrait .cd-user { font-size: 15.5px; max-width: 440px; }
360删除:body.portrait .cd-reply { font-size: 17.5px; line-height: 1.75; }
361删除:body.portrait #paneTerm { font-size: 14.5px; }
362删除:body.portrait #paneTerm .tl { left: 22px; right: 16px; top: 18px; }
363删除:body.portrait #paneTerm .box { width: 480px; }
364删除:body.portrait #paneTerm .sfx { display: none; }
365删除:body.portrait .auth-card { width: 450px; }
366删除:body.portrait .auth h3 { font-size: 23px; }
367删除:/* act 3b */
368删除:body.portrait #accts .cap { left: 64px; top: 104px; }
369删除:body.portrait #accts .dots { right: auto; left: 64px; top: 60px; }
370删除:body.portrait #acctPanel { left: 60px; top: 330px; padding: 38px 36px 30px; }
371删除:body.portrait .ap-head h3 { font-size: 38px; }
372删除:body.portrait .ap-head p { font-size: 21px; max-width: 560px; line-height: 1.45; }
373删除:body.portrait .ap-btn { font-size: 21px; height: 54px; padding: 0 20px; }
374删除:body.portrait .ap-sub { font-size: 21px; }
375删除:body.portrait .ap-sub small { font-size: 19px; }
376删除:body.portrait .acct { padding: 22px 24px 20px; }
377删除:body.portrait .acct .av { width: 60px; height: 60px; }
378删除:body.portrait .acct .nm { font-size: 27px; }
379删除:body.portrait .acct .plan { font-size: 16px; }
380删除:body.portrait .acct .meta { font-size: 18px; }
381删除:body.portrait .acct .tog, body.portrait .acct .load, body.portrait .acct .skip { font-size: 19px; }
382删除:body.portrait .acct .load { height: 40px; min-width: 116px; }
383删除:body.portrait .acct .skip { height: 40px; }
384删除:body.portrait .acct .quota { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
385删除:body.portrait .acct .qr { grid-template-columns: 40px 1fr auto auto; font-size: 17px; }
386删除:body.portrait .acct .qr b, body.portrait .acct .qr strong { font-size: 19px; }
387删除:body.portrait .acct .qr .bar { height: 11px; }
388删除:body.portrait .acct .qr small { grid-column: auto; font-size: 16px; min-width: 170px; text-align: right; }
389删除:body.portrait #termCol { left: 280px; top: 1290px; }
390删除:body.portrait .tlabel { font-size: 20px; }
391删除:body.portrait .tpill { width: 520px; height: 104px; }
392删除:body.portrait .tpill b { font-size: 24px; }
393删除:body.portrait .tpill small { font-size: 18px; }
394删除:body.portrait .tpill .to { font-size: 19px; }
395删除:/* act 4 */
396删除:body.portrait #perksHead { top: 380px; font-size: 68px; }
397删除:body.portrait #perkRow { top: 560px; flex-wrap: wrap; width: 980px; left: 50px; gap: 26px 26px; }
398删除:body.portrait .perk { width: 477px; height: 440px; }
399删除:body.portrait .perk h3 { font-size: 40px; }
400删除:body.portrait .perk p { font-size: 25px; }
401删除:/* act 5 */
402删除:body.portrait #art { left: 90px; top: 220px; width: 900px; height: 900px; }
403删除:body.portrait #letterKicker { left: 120px; top: 1240px; }
404删除:body.portrait #letterText { left: 116px; top: 1290px; }
405删除:body.portrait #letterText .l { font-size: 66px; }
406删除:/* act 6 */
407删除:body.portrait #endLogo { top: 500px; width: 230px; height: 230px; margin-left: -115px; }
408删除:body.portrait #endWord { top: 790px; font-size: 104px; }
409删除:body.portrait #endSub { top: 925px; font-size: 38px; }
410删除:body.portrait #endPlat { top: 1020px; font-size: 27px; }
411删除:body.portrait #endPlat span { padding: 13px 24px; }
412删除:body.portrait #endUrl { top: 1140px; font-size: 33px; }
413删除:body.portrait #endGit { top: 1200px; font-size: 25px; }
414删除:body.portrait #endNote { top: 1740px; font-size: 21px; }
415删除:
416删除:/* ---------- preview controls ---------- */
417删除:#controls { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px; display: flex; align-items: center; gap: 14px;
418删除: background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #eee; font: 500 13px var(--mono); z-index: 100; opacity: 0; transition: opacity .25s; }
419删除:body:hover #controls { opacity: 1; }
420删除:#controls button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,.12); }
421删除:#controls input { flex: 1; accent-color: #ef6f45; }
422删除:body.render #controls { display: none; }
423删除:</style>
424删除:</head>
425删除:<body>
426删除:<div id="viewport">
427删除:<div id="stage">
428删除:
429删除: <!-- ============ ACT 1 · THE PROBLEM ============ -->
430删除: <section class="layer" id="night">
431删除: <div id="nightGlow"></div>
432删除:
433删除: <div class="beat" id="b1">
434删除: <div class="kick"><i></i>痛点 01 · 封号</div>
435删除: <div class="head"><span data-split>一次封号,</span><em data-split>钱和进度一起清零。</em></div>
436删除: <div id="hold">
437删除: <div id="holdScroll">
438删除: <h1>Your account is<br />on hold</h1>
439删除: <svg class="lock" viewBox="0 0 120 150" fill="none" stroke="#1c1b19" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M33.5 66C32.5 41 34.5 19.5 60 18.5c25.5-1 28 21.5 27 47.5"/><path d="M45.5 66c-.5-19 1-33.5 14.5-34.5 14-1 15.5 15 15 34.5"/><path d="M14.5 67.5c30-2 61-1.5 92 0 1 26 .5 52 1 78.5-31 1.5-61 1-92 .5-.5-26.5-1-52.5-1-79z" fill="#fff"/><path d="M60 91c-8.5.5-11.5 10-5.5 15l-4.5 16.5h20.5L66 106c5.5-5.5 2.5-15.5-6-15z"/></svg>
440删除: <p>We put your account on hold on <b>Nov 3, 2026 at 02:47</b> because of unusual activity. Your chats and data are safe.</p>
441删除: <p>If you think this hold is an error, you can request an account review.</p>
442删除: <p class="next">What happens next:</p>
443删除: <div class="hcard">
444删除: <div class="step"><span>1</span><div>Request a review<p>Tell us more about what happened.</p></div></div>
445删除: <div class="step"><span>2</span><div>We’ll review your account<p>A team member will review your request and account activity together.</p></div></div>
446删除: <div class="step"><span>3</span><div>We’ll email you the outcome<p><span id="holdMark">Reviews take about 10 days.</span></p></div></div>
447删除: </div>
448删除: </div>
449删除: <div id="holdTint"></div>
450删除: </div>
451删除: <div id="losses">
452删除: <div class="loss dark-card"><span>Max 订阅</span><b>$200 打水漂</b></div>
453删除: <div class="loss dark-card"><span>API 余额</span><b>无法再用</b></div>
454删除: <div class="loss dark-card"><span>手上的项目</span><b>被迫停摆</b></div>
455删除: </div>
456删除: </div>
457删除:
458删除: <div class="beat" id="b2">
459删除: <div class="kick"><i></i>痛点 02 · 折腾</div>
460删除: <div class="head"><span data-split>VPS、指纹浏览器,</span><em data-split>甚至远程租 Mac mini。</em></div>
461删除: <div id="receipt">
462删除: <div class="rh"><span>每月账单</span><span>只为用上 CLAUDE</span></div>
463删除: <div class="rr"><span>海外 VPS</span><b>¥68 / 月</b></div>
464删除: <div class="rr"><span>指纹浏览器</span><b>¥99 / 月</b></div>
465删除: <div class="rr"><span>住宅 IP</span><b>¥120 / 月</b></div>
466删除: <div class="rr"><span>远程租用 Mac mini</span><b>¥399 / 月</b></div>
467删除: <div class="rt"><span>合计</span><b>¥686 / 月</b></div>
468删除: <div class="rn">+ 无数个折腾到深夜的晚上</div>
469删除: </div>
470删除: </div>
471删除:
472删除: <div class="beat" id="b3">
473删除: <div class="kick"><i></i>痛点 03 · 网络</div>
474删除: <div class="head"><span data-split>开着全局代理,</span><em data-split>整台电脑都跟着绕路。</em></div>
475删除: <svg id="wires" viewBox="0 0 1920 1080"></svg>
476删除: <div id="pcLabel">你的电脑</div>
477删除: <div id="appChips"></div>
478删除: <div id="proxyNode"><b>全局代理</b><span>所有流量<br />都走海外出口</span></div>
479删除: </div>
480删除:
481删除: <div class="beat" id="b4">
482删除: <div class="kick"><i></i>痛点 04 · 虚拟机</div>
483删除: <div class="head"><span data-split>换成传统虚拟机?</span><em data-split>又重又慢,还得自己配。</em></div>
484删除: <div id="vmWin" class="dark-card">
485删除: <div class="tb"><i></i><i></i><i></i><span>虚拟机安装向导</span></div>
486删除: <div class="bd">
487删除: <div class="vm-row"><span>ubuntu-24.04-desktop.iso</span><small id="vmEta">剩余 1 小时 52 分</small><div class="vm-bar"><i id="vmDl"></i></div></div>
488删除: <div class="vm-row" id="vmMemRow"><span>分配内存</span><small id="vmMemTxt">4 GB / 16 GB</small><div class="vm-bar"><i id="vmMem"></i></div></div>
489删除: <div id="vmTodo"><div class="lbl">装好之后,你还得自己配:</div><span>代理</span><span>时区与语言</span><span>浏览器指纹</span><span>Claude Code</span></div>
490删除: </div>
491删除: </div>
492删除: </div>
493删除:
494删除: <div class="beat" id="b5">
495删除: <div class="q"><span data-split>就不能,</span><em data-split>简单一点吗?</em></div>
496删除: </div>
497删除:
498删除: <div id="flash"></div>
499删除: </section>
500删除:
501删除: <!-- ============ ACT 2 · ROOM ============ -->
502删除: <section class="layer" id="room">
503删除: <div id="roomLight"></div>
504删除: <div id="logoWrap"></div>
505删除: <div class="center" id="wordmark" data-split>Claude Cage</div>
506删除: <div class="center" id="roomPos"><span data-split>为 Claude 量身定制的</span><em data-split>轻量虚拟机</em></div>
507删除: <div class="center" id="roomSub"><span data-split>开箱即用,一切都已备好。你只需要,</span><em data-split>配置自己的代理。</em></div>
508删除: </section>
509删除:
510删除: <!-- ============ ACT 3 · APP ============ -->
511删除: <section class="layer" id="app">
512删除: <div id="appFloor"></div>
513删除: <div id="capShade"></div>
514删除: <div id="caption">
515删除: <div class="slot">
516删除: <div class="cap" data-cap="0"><span class="num">01</span><div class="txt"><div class="title">配好代理,环境即刻就绪</div><div class="sub">11 项泄漏检查通过才放行外网;出口、时区和语言始终一致。</div></div></div>
517删除: <div class="cap" data-cap="1"><span class="num">02</span><div class="txt"><div class="title">内置 Claude Desktop</div><div class="sub">官方桌面应用直接跑在 Cage 里,Chat 和 Code 都能用。</div></div></div>
518删除: <div class="cap" data-cap="2"><span class="num">03</span><div class="txt"><div class="title">一键打开 Claude Code 终端</div><div class="sub">在项目上新建「Claude 终端」,自动分配账号,直接进入 Claude Code。</div></div></div>
519删除: <div class="cap" data-cap="3"><span class="num">04</span><div class="txt"><div class="title">浏览器登录,也在笼子里</div><div class="sub">授权页在 Cage 浏览器里打开,出口一致;登录完回到终端就能干活。</div></div></div>
520删除: </div>
521删除: </div>
522删除: <div id="progressDots"><i><b></b></i><i><b></b></i><i><b></b></i><i><b></b></i><i><b></b></i></div>
523删除: <div id="cam">
524删除: <div id="win">
525删除: <img class="plate" data-plate="home" src="plates/home.png" alt="" />
526删除: <img class="plate" data-plate="desktop" src="plates/desktop.png" alt="" />
527删除: <img class="plate" data-plate="menu" src="plates/menu.png" alt="" />
528删除: <img class="plate" data-plate="term" src="plates/term.png" alt="" />
529删除: <img class="plate" data-plate="browser" src="plates/browser.png" alt="" />
530删除: <img class="plate" data-plate="safety-run" src="plates/safety-run.png" alt="" />
531删除: <img class="plate" data-plate="safety-done" src="plates/safety-done.png" alt="" />
532删除: <div id="checkFx"><div id="checkCount"></div></div>
533删除:
534删除: <div class="pane" id="paneDesktop">
535删除: <div class="cd">
536删除: <div class="cd-side">
537删除: <div class="cd-logo">Claude</div>
538删除: <div class="cd-new"><i>+</i>New chat</div>
539删除: <div class="cd-nav"><div class="on">Chats</div><div>Projects</div><div>Code</div></div>
540删除: <div class="cd-rec">Recents</div>
541删除: <div class="it on" id="cdRecent">README 改写</div>
542删除: <div class="it">API 设计评审</div>
543删除: <div class="it">周报草稿</div>
544删除: <div class="it">hello-cage 架构梳理</div>
545删除: </div>
546删除: <div class="cd-main">
547删除: <div class="cd-hello" id="cdHello"><span>✻</span>Good evening, Lee</div>
548删除: <div class="cd-chat" id="cdChat">
549删除: <div class="cd-user" id="cdUser"></div>
550删除: <div class="cd-reply" id="cdReply">
551删除: <p>好的。我先读了 README 和 package.json,建议这样改:</p>
552删除: <p class="li">1. 开头一句话讲清 hello-cage 是什么、给谁用;</p>
553删除: <p class="li">2. 安装、配置、运行合成三步,每步一条命令;</p>
554删除: <p class="li">3. 末尾补上常见问题和许可说明。</p>
555删除: </div>
556删除: </div>
557删除: <div class="cd-input" id="cdInput"><div class="tx"><span class="ph" id="cdPh">How can I help you today?</span><span id="cdTx"></span><i class="tcaret" id="cdCaret"></i></div>
558删除: <div class="row"><span class="pl">+</span><span class="md">Claude ⌄</span><span class="send" id="cdSend">↑</span></div></div>
559删除: </div>
560删除: </div>
561删除: </div>
562删除:
563删除: <div class="pane" id="paneTerm">
564删除: <div class="tl" id="termA">
565删除: <div class="ln"><span class="dim">/workspace/hello-cage $</span> claude</div>
566删除: <div class="box"><span class="acc">✻</span> Welcome to <b>Claude Code</b></div>
567删除: <div class="ln">Select login method:</div>
568删除: <div class="ln"> </div>
569删除: <div class="ln"><span class="acc">❯ 1. Claude account with subscription</span><span class="dim sfx"> · Pro, Max, Team, or Enterprise</span></div>
570删除: <div class="ln"> 2. Anthropic Console account<span class="dim sfx"> · API usage billing</span></div>
571删除: <div class="ln"> </div>
572删除: <div class="ln acc" id="termOpening">Opening browser to sign in…</div>
573删除: </div>
574删除: <div class="tl" id="termB">
575删除: <div class="ln"><span class="g">✓</span> Login successful. Press <b>Enter</b> to continue…</div>
576删除: <div class="box"><span class="acc">✻</span> Welcome to <b>Claude Code</b>!<br /><span class="dim"> cwd: /workspace/hello-cage</span></div>
577删除: <div class="ln"><span class="dim">&gt;</span> <span id="termPrompt"></span><i class="tcaret" id="termCaret"></i></div>
578删除: <div class="ln" data-r="0">● 我先看一下路由结构。</div>
579删除: <div class="ln" data-r="1"><span class="g">●</span> <b>Read</b>(src/server.js)<span class="dim"> ⎿ Read 64 lines</span></div>
580删除: <div class="ln" data-r="2"><span class="g">●</span> <b>Update</b>(src/server.js)<span class="dim"> ⎿ Added GET /healthz</span></div>
581删除: <div class="ln" data-r="3">● <span id="termFinal"></span></div>
582删除: </div>
583删除: </div>
584删除:
585删除: <div class="pane" id="paneBrowser">
586删除: <div class="auth" id="authAsk">
587删除: <div class="auth-card">
588删除: <div class="auth-word">Claude</div>
589删除: <h3>Claude Code would like to connect to your Claude account</h3>
590删除: <div class="who">Signed in as [email protected]</div>
591删除: <ul><li><i>✓</i>Use your Claude subscription in Claude Code</li><li><i>✓</i>Read your profile and organization</li><li><i>✓</i>Show your usage limits</li></ul>
592删除: <div class="go" id="authGo">Authorize</div>
593删除: <div class="no">Cancel</div>
594删除: </div>
595删除: </div>
596删除: <div class="auth-done" id="authDone"><div class="ok">✓</div><h3>You’re all set up for Claude Code.</h3><p>You can close this window and return to your terminal.</p></div>
597删除: </div>
598删除:
599删除:
600删除: <div id="ripple"></div>
601删除: <div id="cursor"><svg viewBox="0 0 26 26"><path d="M5 2.8v18.6l4.6-4.4 3 6.6 3.1-1.4-3-6.4h6.5z" fill="#111" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"/></svg></div>
602删除: </div>
603删除: </div>
604删除: </section>
605删除:
606删除: <!-- ============ ACT 3b · ACCOUNTS ============ -->
607删除: <section class="layer" id="accts">
608删除: <div class="cap"><span class="num">05</span><div class="txt"><div class="title">多账号,自动调度</div><div class="sub">登录你自己的多个订阅。每开一个新终端,自动分给更空闲的账号。</div></div></div>
609删除: <div class="dots"><i><b></b></i><i><b></b></i><i><b></b></i><i><b></b></i><i><b></b></i></div>
610删除: <svg id="acctWires" viewBox="0 0 1920 1080"></svg>
611删除: <div id="acctPanel">
612删除: <div class="ap-head"><div><h3>Claude 账号</h3><p>登录新账号,或把已登录的订阅加入调度。新建 Claude 终端时自动分配。</p></div><div class="ap-btn">+ 登录新账号</div></div>
613删除: <div class="ap-sub">账号列表 <span>3</span><small>3 个启用调度</small></div>
614删除: <div class="acct"><div class="ring"></div>
615删除: <div class="row1"><div class="av"><svg viewBox="0 0 16 10" fill="#D97757" shape-rendering="crispEdges"><path fill-rule="evenodd" d="M2 0h12v4h2v2h-2v2H2V6H0V4h2z M4 2v2h1V2z M11 2v2h1V2z"/><path d="M3 8h1v2H3z M5 8h1v2H5z M10 8h1v2h-1z M12 8h1v2h-1z"/></svg></div><div><div class="nm">工作<span class="plan">Max</span></div><div class="meta"><span class="ok">已登录</span><span>[email protected]</span></div></div><div class="load">终端 <em>0</em></div><div class="tog"><i></i><span>参与分配</span></div></div>
616删除: <div class="quota"><div class="qr"><b>5h</b><div class="bar five"><i style="transform:scaleX(0.32)"></i></div><strong>32%</strong><small>2 小时 14 分后重置</small></div><div class="qr"><b>7d</b><div class="bar seven"><i style="transform:scaleX(0.18)"></i></div><strong>18%</strong><small>4 天后重置</small></div></div>
617删除: </div>
618删除: <div class="acct"><div class="ring"></div>
619删除: <div class="row1"><div class="av"><svg viewBox="0 0 16 10" fill="#D97757" shape-rendering="crispEdges"><path fill-rule="evenodd" d="M2 0h12v4h2v2h-2v2H2V6H0V4h2z M4 2v2h1V2z M11 2v2h1V2z"/><path d="M3 8h1v2H3z M5 8h1v2H5z M10 8h1v2h-1z M12 8h1v2h-1z"/></svg></div><div><div class="nm">个人<span class="plan">Pro</span></div><div class="meta"><span class="ok">已登录</span><span>[email protected]</span></div></div><div class="load">终端 <em>0</em></div><div class="tog"><i></i><span>参与分配</span></div></div>
620删除: <div class="quota"><div class="qr"><b>5h</b><div class="bar five"><i style="transform:scaleX(0.58)"></i></div><strong>58%</strong><small>3 小时 40 分后重置</small></div><div class="qr"><b>7d</b><div class="bar seven"><i style="transform:scaleX(0.41)"></i></div><strong>41%</strong><small>5 天后重置</small></div></div>
621删除: </div>
622删除: <div class="acct"><div class="ring"></div>
623删除: <div class="row1"><div class="av"><svg viewBox="0 0 16 10" fill="#D97757" shape-rendering="crispEdges"><path fill-rule="evenodd" d="M2 0h12v4h2v2h-2v2H2V6H0V4h2z M4 2v2h1V2z M11 2v2h1V2z"/><path d="M3 8h1v2H3z M5 8h1v2H5z M10 8h1v2h-1z M12 8h1v2h-1z"/></svg></div><div><div class="nm">备用<span class="plan">Pro</span></div><div class="meta"><span class="ok">已登录</span><span>[email protected]</span></div></div><div class="skip">本轮跳过</div><div class="tog"><i></i><span>参与分配</span></div></div>
624删除: <div class="quota"><div class="qr"><b>5h</b><div class="bar five"><i style="transform:scaleX(1.0)"></i></div><strong>100%</strong><small>额度用尽 · 47 分后重置</small></div><div class="qr"><b>7d</b><div class="bar seven"><i style="transform:scaleX(0.63)"></i></div><strong>63%</strong><small>2 天后重置</small></div></div>
625删除: </div>
626删除: </div>
627删除: <div id="termCol"><div class="tlabel">新建终端</div><div class="tpill"><div class="ti"><svg viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="17" height="15" rx="2.5"/><path d="M7.5 9.5l3 2.5-3 2.5M12.5 15h4"/></svg></div><div><b>新建 Claude 终端</b><small>~/hello-cage</small></div><span class="to">→ 工作</span></div><div class="tpill"><div class="ti"><svg viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="17" height="15" rx="2.5"/><path d="M7.5 9.5l3 2.5-3 2.5M12.5 15h4"/></svg></div><div><b>新建 Claude 终端</b><small>~/api-server</small></div><span class="to">→ 个人</span></div><div class="tpill"><div class="ti"><svg viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="17" height="15" rx="2.5"/><path d="M7.5 9.5l3 2.5-3 2.5M12.5 15h4"/></svg></div><div><b>新建 Claude 终端</b><small>~/blog</small></div><span class="to">→ 工作</span></div></div>
628删除: </section>
629删除:
630删除: <!-- ============ ACT 4 · PERKS ============ -->
631删除: <section class="layer" id="perks">
632删除: <div class="center" id="perksHead"><span data-split>一切,</span><em data-split>都已经帮你做好了。</em></div>
633删除: <div id="perkRow">
634删除: <div class="perk"><div class="pi"><svg viewBox="0 0 24 24"><path d="M12 3 20 7.5v9L12 21l-8-4.5v-9z"/><path d="M4 7.5l8 4.5 8-4.5M12 12v9"/></svg></div><h3>轻量,开箱即用</h3><p>一个桌面应用,装好终端、浏览器和编辑器。不用另装 Docker 或 Clash。</p></div>
635删除: <div class="perk"><div class="pi"><svg viewBox="0 0 24 24"><path d="M12 3.5l7.5 2.8v5.6c0 4.3-3.2 7.6-7.5 8.6-4.3-1-7.5-4.3-7.5-8.6V6.3z"/><path d="M8.8 12.2l2.2 2.2 4.3-4.6"/></svg></div><h3>自带泄漏审查</h3><p>出口、DNS、时区、UDP、IPv6 等 11 项关键检查。有一项不过,就不联网。</p></div>
636删除: <div class="perk"><div class="pi"><svg viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="17" height="11.5" rx="1.5"/><path d="M2 19.5h20M9.5 10.2l1.8 1.8 3.3-3.4"/></svg></div><h3>与主机隔离</h3><p>Claude 的网络、指纹与登录都留在 Cage 里。你的电脑照常上网、照常工作。</p></div>
637删除: <div class="perk"><div class="pi"><svg viewBox="0 0 24 24"><path d="M8.5 8 4.5 12l4 4M15.5 8l4 4-4 4M13.5 5.5l-3 13"/></svg></div><h3>开源,接受审查</h3><p>MIT 许可,代码全部公开。每一行都欢迎社区来看、来挑错。</p></div>
638删除: </div>
639删除: </section>
640删除:
641删除: <!-- ============ ACT 5 · LETTER ============ -->
642删除: <section class="layer" id="letter">
643删除: <div id="art"><img src="../assets/claude-cage-character.png" alt="" /><div id="artLight"></div></div>
644删除: <div id="letterKicker">CLAUDE CAGE</div>
645删除: <div id="letterText">
646删除: <span class="l" data-split>把 Claude 关起来,</span>
647删除: <span class="l" data-split>是为了更好地保护</span>
648删除: <span class="l"><em data-split>我们的相遇。</em></span>
649删除: </div>
650删除: </section>
651删除:
652删除: <!-- ============ ACT 6 · END ============ -->
653删除: <section class="layer" id="end">
654删除: <div id="endLogo"></div>
655删除: <div class="center" id="endWord">Claude Cage</div>
656删除: <div class="center" id="endSub">为 Claude 量身定制的轻量虚拟机</div>
657删除: <div class="center" id="endPlat"><span>macOS</span><span>Windows</span><span>Linux</span></div>
658删除: <div class="center" id="endUrl">lee-xeo.github.io/Claude-Cage</div>
659删除: <div class="center" id="endGit">github.com/Lee-xeo/Claude-Cage</div>
660删除: <div class="center" id="endNote">开源 · MIT 许可 · 欢迎社区审查 · 独立社区项目,与 Anthropic 无隶属关系</div>
661删除: </section>
662删除:
663删除: <div id="vignette"></div>
664删除: <div id="grain"></div>
665删除:</div>
666删除:</div>
667删除:
668删除:<div id="controls"><button id="play">播放</button><span id="tc">00.00</span><input id="scrub" type="range" min="0" step="0.01" /><button id="restart">重来</button></div>
669删除:
670删除:<script src="timeline.js"></script>
671删除:<script src="plates/layout.js"></script>
672删除:<script src="promo.js"></script>
673删除:</body>
674删除:</html>
删除promo/package-lock.json+0 −1120
@@ -1,1120 +0,0 @@
1删除:{
2删除: "name": "claude-cage-promo",
3删除: "lockfileVersion": 3,
4删除: "requires": true,
5删除: "packages": {
6删除: "": {
7删除: "name": "claude-cage-promo",
8删除: "dependencies": {
9删除: "ffmpeg-static": "^5.2.0",
10删除: "puppeteer-core": "^24.0.0"
11删除: }
12删除: },
13删除: "node_modules/@derhuerst/http-basic": {
14删除: "version": "8.2.4",
15删除: "resolved": "https://registry.npmjs.org/@derhuerst/http-basic/-/http-basic-8.2.4.tgz",
16删除: "integrity": "sha512-F9rL9k9Xjf5blCz8HsJRO4diy111cayL2vkY2XE4r4t3n0yPXVYy3KD3nJ1qbrSn9743UWSXH4IwuCa/HWlGFw==",
17删除: "license": "MIT",
18删除: "dependencies": {
19删除: "caseless": "^0.12.0",
20删除: "concat-stream": "^2.0.0",
21删除: "http-response-object": "^3.0.1",
22删除: "parse-cache-control": "^1.0.1"
23删除: },
24删除: "engines": {
25删除: "node": ">=6.0.0"
26删除: }
27删除: },
28删除: "node_modules/@puppeteer/browsers": {
29删除: "version": "2.13.2",
30删除: "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.13.2.tgz",
31删除: "integrity": "sha512-5EUZSUIc37H6aIXyWO0Z4y8NlF8NnjgmqeQgOGiswAU7pY0HOo16ho4+alIWmSfdZnjqBRawMsP3I5YqLSn6kw==",
32删除: "license": "Apache-2.0",
33删除: "dependencies": {
34删除: "debug": "^4.4.3",
35删除: "extract-zip": "^2.0.1",
36删除: "progress": "^2.0.3",
37删除: "proxy-agent": "^6.5.0",
38删除: "semver": "^7.7.4",
39删除: "tar-fs": "^3.1.1",
40删除: "yargs": "^17.7.2"
41删除: },
42删除: "bin": {
43删除: "browsers": "lib/cjs/main-cli.js"
44删除: },
45删除: "engines": {
46删除: "node": ">=18"
47删除: }
48删除: },
49删除: "node_modules/@tootallnate/quickjs-emscripten": {
50删除: "version": "0.23.0",
51删除: "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
52删除: "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
53删除: "license": "MIT"
54删除: },
55删除: "node_modules/@types/node": {
56删除: "version": "10.17.60",
57删除: "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz",
58删除: "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==",
59删除: "license": "MIT"
60删除: },
61删除: "node_modules/@types/yauzl": {
62删除: "version": "2.10.3",
63删除: "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
64删除: "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",
65删除: "license": "MIT",
66删除: "optional": true,
67删除: "dependencies": {
68删除: "@types/node": "*"
69删除: }
70删除: },
71删除: "node_modules/agent-base": {
72删除: "version": "6.0.2",
73删除: "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
74删除: "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
75删除: "license": "MIT",
76删除: "dependencies": {
77删除: "debug": "4"
78删除: },
79删除: "engines": {
80删除: "node": ">= 6.0.0"
81删除: }
82删除: },
83删除: "node_modules/ansi-regex": {
84删除: "version": "5.0.1",
85删除: "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
86删除: "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
87删除: "license": "MIT",
88删除: "engines": {
89删除: "node": ">=8"
90删除: }
91删除: },
92删除: "node_modules/ansi-styles": {
93删除: "version": "4.3.0",
94删除: "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
95删除: "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
96删除: "license": "MIT",
97删除: "dependencies": {
98删除: "color-convert": "^2.0.1"
99删除: },
100删除: "engines": {
101删除: "node": ">=8"
102删除: },
103删除: "funding": {
104删除: "url": "https://github.com/chalk/ansi-styles?sponsor=1"
105删除: }
106删除: },
107删除: "node_modules/ast-types": {
108删除: "version": "0.13.4",
109删除: "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
110删除: "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
111删除: "license": "MIT",
112删除: "dependencies": {
113删除: "tslib": "^2.0.1"
114删除: },
115删除: "engines": {
116删除: "node": ">=4"
117删除: }
118删除: },
119删除: "node_modules/b4a": {
120删除: "version": "1.9.0",
121删除: "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.9.0.tgz",
122删除: "integrity": "sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==",
123删除: "license": "Apache-2.0",
124删除: "peerDependencies": {
125删除: "react-native-b4a": "*"
126删除: },
127删除: "peerDependenciesMeta": {
128删除: "react-native-b4a": {
129删除: "optional": true
130删除: }
131删除: }
132删除: },
133删除: "node_modules/bare-events": {
134删除: "version": "2.9.2",
135删除: "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.9.2.tgz",
136删除: "integrity": "sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==",
137删除: "license": "Apache-2.0",
138删除: "peerDependencies": {
139删除: "bare-abort-controller": "*"
140删除: },
141删除: "peerDependenciesMeta": {
142删除: "bare-abort-controller": {
143删除: "optional": true
144删除: }
145删除: }
146删除: },
147删除: "node_modules/bare-fs": {
148删除: "version": "4.8.4",
149删除: "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.8.4.tgz",
150删除: "integrity": "sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==",
151删除: "license": "Apache-2.0",
152删除: "dependencies": {
153删除: "bare-events": "^2.5.4",
154删除: "bare-path": "^3.0.0",
155删除: "bare-stream": "^2.6.4",
156删除: "bare-url": "^2.2.2",
157删除: "fast-fifo": "^1.3.2"
158删除: },
159删除: "engines": {
160删除: "bare": ">=1.28.0"
161删除: },
162删除: "peerDependencies": {
163删除: "bare-buffer": "*"
164删除: },
165删除: "peerDependenciesMeta": {
166删除: "bare-buffer": {
167删除: "optional": true
168删除: }
169删除: }
170删除: },
171删除: "node_modules/bare-path": {
172删除: "version": "3.1.2",
173删除: "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.1.2.tgz",
174删除: "integrity": "sha512-ZyKbsuuqK6Ag0K8pX6V5Txq6XeJRvY+wXucnFGRjiyVYP9YWDpIQugk/b+enRYrEYBJaqLzghRQpXPMR7341Nw==",
175删除: "license": "Apache-2.0"
176删除: },
177删除: "node_modules/bare-stream": {
178删除: "version": "2.13.4",
179删除: "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.4.tgz",
180删除: "integrity": "sha512-PcrQ8lVLbiJscNm1Kez+Yp4Gy4AHGcN1lzwjvf5NybWen7VvEgUfyfnXYJ2zNqWnzOfCb1Abq6lH8ti0syQszA==",
181删除: "license": "Apache-2.0",
182删除: "dependencies": {
183删除: "b4a": "^1.8.1",
184删除: "streamx": "^2.25.0",
185删除: "teex": "^1.0.1"
186删除: },
187删除: "peerDependencies": {
188删除: "bare-abort-controller": "*",
189删除: "bare-buffer": "*",
190删除: "bare-events": "*"
191删除: },
192删除: "peerDependenciesMeta": {
193删除: "bare-abort-controller": {
194删除: "optional": true
195删除: },
196删除: "bare-buffer": {
197删除: "optional": true
198删除: },
199删除: "bare-events": {
200删除: "optional": true
201删除: }
202删除: }
203删除: },
204删除: "node_modules/bare-url": {
205删除: "version": "2.5.5",
206删除: "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.5.5.tgz",
207删除: "integrity": "sha512-iM9qJCruvpt2rPaLsrumVDru9pogI7PHziHIa9kTNRFt8C8HuSa+kI9kFezK+NvHEFnnz71rKGZ1EAilq/3V/Q==",
208删除: "license": "Apache-2.0",
209删除: "dependencies": {
210删除: "bare-path": "^3.0.0"
211删除: }
212删除: },
213删除: "node_modules/basic-ftp": {
214删除: "version": "5.3.1",
215删除: "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.3.1.tgz",
216删除: "integrity": "sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==",
217删除: "license": "MIT",
218删除: "engines": {
219删除: "node": ">=10.0.0"
220删除: }
221删除: },
222删除: "node_modules/buffer-crc32": {
223删除: "version": "0.2.13",
224删除: "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
225删除: "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
226删除: "license": "MIT",
227删除: "engines": {
228删除: "node": "*"
229删除: }
230删除: },
231删除: "node_modules/buffer-from": {
232删除: "version": "1.1.2",
233删除: "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
234删除: "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
235删除: "license": "MIT"
236删除: },
237删除: "node_modules/caseless": {
238删除: "version": "0.12.0",
239删除: "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
240删除: "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==",
241删除: "license": "Apache-2.0"
242删除: },
243删除: "node_modules/chromium-bidi": {
244删除: "version": "14.0.0",
245删除: "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-14.0.0.tgz",
246删除: "integrity": "sha512-9gYlLtS6tStdRWzrtXaTMnqcM4dudNegMXJxkR0I/CXObHalYeYcAMPrL19eroNZHtJ8DQmu1E+ZNOYu/IXMXw==",
247删除: "license": "Apache-2.0",
248删除: "dependencies": {
249删除: "mitt": "^3.0.1",
250删除: "zod": "^3.24.1"
251删除: },
252删除: "peerDependencies": {
253删除: "devtools-protocol": "*"
254删除: }
255删除: },
256删除: "node_modules/cliui": {
257删除: "version": "8.0.1",
258删除: "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
259删除: "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
260删除: "license": "ISC",
261删除: "dependencies": {
262删除: "string-width": "^4.2.0",
263删除: "strip-ansi": "^6.0.1",
264删除: "wrap-ansi": "^7.0.0"
265删除: },
266删除: "engines": {
267删除: "node": ">=12"
268删除: }
269删除: },
270删除: "node_modules/color-convert": {
271删除: "version": "2.0.1",
272删除: "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
273删除: "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
274删除: "license": "MIT",
275删除: "dependencies": {
276删除: "color-name": "~1.1.4"
277删除: },
278删除: "engines": {
279删除: "node": ">=7.0.0"
280删除: }
281删除: },
282删除: "node_modules/color-name": {
283删除: "version": "1.1.4",
284删除: "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
285删除: "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
286删除: "license": "MIT"
287删除: },
288删除: "node_modules/concat-stream": {
289删除: "version": "2.0.0",
290删除: "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
291删除: "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
292删除: "engines": [
293删除: "node >= 6.0"
294删除: ],
295删除: "license": "MIT",
296删除: "dependencies": {
297删除: "buffer-from": "^1.0.0",
298删除: "inherits": "^2.0.3",
299删除: "readable-stream": "^3.0.2",
300删除: "typedarray": "^0.0.6"
301删除: }
302删除: },
303删除: "node_modules/data-uri-to-buffer": {
304删除: "version": "6.0.2",
305删除: "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
306删除: "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
307删除: "license": "MIT",
308删除: "engines": {
309删除: "node": ">= 14"
310删除: }
311删除: },
312删除: "node_modules/debug": {
313删除: "version": "4.4.3",
314删除: "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
315删除: "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
316删除: "license": "MIT",
317删除: "dependencies": {
318删除: "ms": "^2.1.3"
319删除: },
320删除: "engines": {
321删除: "node": ">=6.0"
322删除: },
323删除: "peerDependenciesMeta": {
324删除: "supports-color": {
325删除: "optional": true
326删除: }
327删除: }
328删除: },
329删除: "node_modules/degenerator": {
330删除: "version": "5.0.1",
331删除: "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
332删除: "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
333删除: "license": "MIT",
334删除: "dependencies": {
335删除: "ast-types": "^0.13.4",
336删除: "escodegen": "^2.1.0",
337删除: "esprima": "^4.0.1"
338删除: },
339删除: "engines": {
340删除: "node": ">= 14"
341删除: }
342删除: },
343删除: "node_modules/devtools-protocol": {
344删除: "version": "0.0.1608973",
345删除: "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1608973.tgz",
346删除: "integrity": "sha512-Tpm17fxYzt+J7VrGdc1k8YdRqS3YV7se/M6KeemEqvUbq/n7At1rWVuXMxQgpWkdwSdIEKYbU//Bve+Shm4YNQ==",
347删除: "license": "BSD-3-Clause"
348删除: },
349删除: "node_modules/emoji-regex": {
350删除: "version": "8.0.0",
351删除: "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
352删除: "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
353删除: "license": "MIT"
354删除: },
355删除: "node_modules/end-of-stream": {
356删除: "version": "1.4.5",
357删除: "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
358删除: "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
359删除: "license": "MIT",
360删除: "dependencies": {
361删除: "once": "^1.4.0"
362删除: }
363删除: },
364删除: "node_modules/env-paths": {
365删除: "version": "2.2.1",
366删除: "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
367删除: "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
368删除: "license": "MIT",
369删除: "engines": {
370删除: "node": ">=6"
371删除: }
372删除: },
373删除: "node_modules/escalade": {
374删除: "version": "3.2.0",
375删除: "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
376删除: "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
377删除: "license": "MIT",
378删除: "engines": {
379删除: "node": ">=6"
380删除: }
381删除: },
382删除: "node_modules/escodegen": {
383删除: "version": "2.1.0",
384删除: "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
385删除: "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
386删除: "license": "BSD-2-Clause",
387删除: "dependencies": {
388删除: "esprima": "^4.0.1",
389删除: "estraverse": "^5.2.0",
390删除: "esutils": "^2.0.2"
391删除: },
392删除: "bin": {
393删除: "escodegen": "bin/escodegen.js",
394删除: "esgenerate": "bin/esgenerate.js"
395删除: },
396删除: "engines": {
397删除: "node": ">=6.0"
398删除: },
399删除: "optionalDependencies": {
400删除: "source-map": "~0.6.1"
401删除: }
402删除: },
403删除: "node_modules/esprima": {
404删除: "version": "4.0.1",
405删除: "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
406删除: "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
407删除: "license": "BSD-2-Clause",
408删除: "bin": {
409删除: "esparse": "bin/esparse.js",
410删除: "esvalidate": "bin/esvalidate.js"
411删除: },
412删除: "engines": {
413删除: "node": ">=4"
414删除: }
415删除: },
416删除: "node_modules/estraverse": {
417删除: "version": "5.3.0",
418删除: "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
419删除: "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
420删除: "license": "BSD-2-Clause",
421删除: "engines": {
422删除: "node": ">=4.0"
423删除: }
424删除: },
425删除: "node_modules/esutils": {
426删除: "version": "2.0.3",
427删除: "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
428删除: "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
429删除: "license": "BSD-2-Clause",
430删除: "engines": {
431删除: "node": ">=0.10.0"
432删除: }
433删除: },
434删除: "node_modules/events-universal": {
435删除: "version": "1.0.1",
436删除: "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz",
437删除: "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==",
438删除: "license": "Apache-2.0",
439删除: "dependencies": {
440删除: "bare-events": "^2.7.0"
441删除: }
442删除: },
443删除: "node_modules/extract-zip": {
444删除: "version": "2.0.1",
445删除: "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
446删除: "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
447删除: "license": "BSD-2-Clause",
448删除: "dependencies": {
449删除: "debug": "^4.1.1",
450删除: "get-stream": "^5.1.0",
451删除: "yauzl": "^2.10.0"
452删除: },
453删除: "bin": {
454删除: "extract-zip": "cli.js"
455删除: },
456删除: "engines": {
457删除: "node": ">= 10.17.0"
458删除: },
459删除: "optionalDependencies": {
460删除: "@types/yauzl": "^2.9.1"
461删除: }
462删除: },
463删除: "node_modules/fast-fifo": {
464删除: "version": "1.3.2",
465删除: "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
466删除: "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==",
467删除: "license": "MIT"
468删除: },
469删除: "node_modules/fd-slicer": {
470删除: "version": "1.1.0",
471删除: "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
472删除: "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
473删除: "license": "MIT",
474删除: "dependencies": {
475删除: "pend": "~1.2.0"
476删除: }
477删除: },
478删除: "node_modules/ffmpeg-static": {
479删除: "version": "5.3.0",
480删除: "resolved": "https://registry.npmjs.org/ffmpeg-static/-/ffmpeg-static-5.3.0.tgz",
481删除: "integrity": "sha512-H+K6sW6TiIX6VGend0KQwthe+kaceeH/luE8dIZyOP35ik7ahYojDuqlTV1bOrtEwl01sy2HFNGQfi5IDJvotg==",
482删除: "hasInstallScript": true,
483删除: "license": "GPL-3.0-or-later",
484删除: "dependencies": {
485删除: "@derhuerst/http-basic": "^8.2.0",
486删除: "env-paths": "^2.2.0",
487删除: "https-proxy-agent": "^5.0.0",
488删除: "progress": "^2.0.3"
489删除: },
490删除: "engines": {
491删除: "node": ">=16"
492删除: }
493删除: },
494删除: "node_modules/get-caller-file": {
495删除: "version": "2.0.5",
496删除: "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
497删除: "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
498删除: "license": "ISC",
499删除: "engines": {
500删除: "node": "6.* || 8.* || >= 10.*"
501删除: }
502删除: },
503删除: "node_modules/get-stream": {
504删除: "version": "5.2.0",
505删除: "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
506删除: "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
507删除: "license": "MIT",
508删除: "dependencies": {
509删除: "pump": "^3.0.0"
510删除: },
511删除: "engines": {
512删除: "node": ">=8"
513删除: },
514删除: "funding": {
515删除: "url": "https://github.com/sponsors/sindresorhus"
516删除: }
517删除: },
518删除: "node_modules/get-uri": {
519删除: "version": "6.0.5",
520删除: "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz",
521删除: "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==",
522删除: "license": "MIT",
523删除: "dependencies": {
524删除: "basic-ftp": "^5.0.2",
525删除: "data-uri-to-buffer": "^6.0.2",
526删除: "debug": "^4.3.4"
527删除: },
528删除: "engines": {
529删除: "node": ">= 14"
530删除: }
531删除: },
532删除: "node_modules/http-proxy-agent": {
533删除: "version": "7.0.2",
534删除: "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
535删除: "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
536删除: "license": "MIT",
537删除: "dependencies": {
538删除: "agent-base": "^7.1.0",
539删除: "debug": "^4.3.4"
540删除: },
541删除: "engines": {
542删除: "node": ">= 14"
543删除: }
544删除: },
545删除: "node_modules/http-proxy-agent/node_modules/agent-base": {
546删除: "version": "7.1.4",
547删除: "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
548删除: "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
549删除: "license": "MIT",
550删除: "engines": {
551删除: "node": ">= 14"
552删除: }
553删除: },
554删除: "node_modules/http-response-object": {
555删除: "version": "3.0.2",
556删除: "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz",
557删除: "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==",
558删除: "license": "MIT",
559删除: "dependencies": {
560删除: "@types/node": "^10.0.3"
561删除: }
562删除: },
563删除: "node_modules/https-proxy-agent": {
564删除: "version": "5.0.1",
565删除: "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
566删除: "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
567删除: "license": "MIT",
568删除: "dependencies": {
569删除: "agent-base": "6",
570删除: "debug": "4"
571删除: },
572删除: "engines": {
573删除: "node": ">= 6"
574删除: }
575删除: },
576删除: "node_modules/inherits": {
577删除: "version": "2.0.4",
578删除: "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
579删除: "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
580删除: "license": "ISC"
581删除: },
582删除: "node_modules/ip-address": {
583删除: "version": "10.7.6",
584删除: "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz",
585删除: "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==",
586删除: "license": "MIT",
587删除: "engines": {
588删除: "node": ">= 12"
589删除: }
590删除: },
591删除: "node_modules/is-fullwidth-code-point": {
592删除: "version": "3.0.0",
593删除: "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
594删除: "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
595删除: "license": "MIT",
596删除: "engines": {
597删除: "node": ">=8"
598删除: }
599删除: },
600删除: "node_modules/lru-cache": {
601删除: "version": "7.18.3",
602删除: "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
603删除: "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
604删除: "license": "ISC",
605删除: "engines": {
606删除: "node": ">=12"
607删除: }
608删除: },
609删除: "node_modules/mitt": {
610删除: "version": "3.0.1",
611删除: "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
612删除: "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
613删除: "license": "MIT"
614删除: },
615删除: "node_modules/ms": {
616删除: "version": "2.1.3",
617删除: "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
618删除: "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
619删除: "license": "MIT"
620删除: },
621删除: "node_modules/netmask": {
622删除: "version": "2.1.1",
623删除: "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.1.1.tgz",
624删除: "integrity": "sha512-eonl3sLUha+S1GzTPxychyhnUzKyeQkZ7jLjKrBagJgPla13F+uQ71HgpFefyHgqrjEbCPkDArxYsjY8/+gLKA==",
625删除: "license": "MIT",
626删除: "engines": {
627删除: "node": ">= 0.4.0"
628删除: }
629删除: },
630删除: "node_modules/once": {
631删除: "version": "1.4.0",
632删除: "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
633删除: "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
634删除: "license": "ISC",
635删除: "dependencies": {
636删除: "wrappy": "1"
637删除: }
638删除: },
639删除: "node_modules/pac-proxy-agent": {
640删除: "version": "7.2.0",
641删除: "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
642删除: "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
643删除: "license": "MIT",
644删除: "dependencies": {
645删除: "@tootallnate/quickjs-emscripten": "^0.23.0",
646删除: "agent-base": "^7.1.2",
647删除: "debug": "^4.3.4",
648删除: "get-uri": "^6.0.1",
649删除: "http-proxy-agent": "^7.0.0",
650删除: "https-proxy-agent": "^7.0.6",
651删除: "pac-resolver": "^7.0.1",
652删除: "socks-proxy-agent": "^8.0.5"
653删除: },
654删除: "engines": {
655删除: "node": ">= 14"
656删除: }
657删除: },
658删除: "node_modules/pac-proxy-agent/node_modules/agent-base": {
659删除: "version": "7.1.4",
660删除: "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
661删除: "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
662删除: "license": "MIT",
663删除: "engines": {
664删除: "node": ">= 14"
665删除: }
666删除: },
667删除: "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": {
668删除: "version": "7.0.6",
669删除: "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
670删除: "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
671删除: "license": "MIT",
672删除: "dependencies": {
673删除: "agent-base": "^7.1.2",
674删除: "debug": "4"
675删除: },
676删除: "engines": {
677删除: "node": ">= 14"
678删除: }
679删除: },
680删除: "node_modules/pac-resolver": {
681删除: "version": "7.0.1",
682删除: "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
683删除: "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
684删除: "license": "MIT",
685删除: "dependencies": {
686删除: "degenerator": "^5.0.0",
687删除: "netmask": "^2.0.2"
688删除: },
689删除: "engines": {
690删除: "node": ">= 14"
691删除: }
692删除: },
693删除: "node_modules/parse-cache-control": {
694删除: "version": "1.0.1",
695删除: "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz",
696删除: "integrity": "sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg=="
697删除: },
698删除: "node_modules/pend": {
699删除: "version": "1.2.0",
700删除: "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
701删除: "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
702删除: "license": "MIT"
703删除: },
704删除: "node_modules/progress": {
705删除: "version": "2.0.3",
706删除: "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
707删除: "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
708删除: "license": "MIT",
709删除: "engines": {
710删除: "node": ">=0.4.0"
711删除: }
712删除: },
713删除: "node_modules/proxy-agent": {
714删除: "version": "6.5.0",
715删除: "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
716删除: "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
717删除: "license": "MIT",
718删除: "dependencies": {
719删除: "agent-base": "^7.1.2",
720删除: "debug": "^4.3.4",
721删除: "http-proxy-agent": "^7.0.1",
722删除: "https-proxy-agent": "^7.0.6",
723删除: "lru-cache": "^7.14.1",
724删除: "pac-proxy-agent": "^7.1.0",
725删除: "proxy-from-env": "^1.1.0",
726删除: "socks-proxy-agent": "^8.0.5"
727删除: },
728删除: "engines": {
729删除: "node": ">= 14"
730删除: }
731删除: },
732删除: "node_modules/proxy-agent/node_modules/agent-base": {
733删除: "version": "7.1.4",
734删除: "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
735删除: "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
736删除: "license": "MIT",
737删除: "engines": {
738删除: "node": ">= 14"
739删除: }
740删除: },
741删除: "node_modules/proxy-agent/node_modules/https-proxy-agent": {
742删除: "version": "7.0.6",
743删除: "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
744删除: "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
745删除: "license": "MIT",
746删除: "dependencies": {
747删除: "agent-base": "^7.1.2",
748删除: "debug": "4"
749删除: },
750删除: "engines": {
751删除: "node": ">= 14"
752删除: }
753删除: },
754删除: "node_modules/proxy-from-env": {
755删除: "version": "1.1.0",
756删除: "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
757删除: "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
758删除: "license": "MIT"
759删除: },
760删除: "node_modules/pump": {
761删除: "version": "3.0.4",
762删除: "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
763删除: "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
764删除: "license": "MIT",
765删除: "dependencies": {
766删除: "end-of-stream": "^1.1.0",
767删除: "once": "^1.3.1"
768删除: }
769删除: },
770删除: "node_modules/puppeteer-core": {
771删除: "version": "24.43.1",
772删除: "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.43.1.tgz",
773删除: "integrity": "sha512-T5ScUMAsmhdNbgDR41AGESYeS6V9MSgetkSnVhhW+gXvzC42VesKCn5ld87gAZDJ6vLHL9GkRvY9WtQWSnwFbw==",
774删除: "license": "Apache-2.0",
775删除: "dependencies": {
776删除: "@puppeteer/browsers": "2.13.2",
777删除: "chromium-bidi": "14.0.0",
778删除: "debug": "^4.4.3",
779删除: "devtools-protocol": "0.0.1608973",
780删除: "typed-query-selector": "^2.12.2",
781删除: "webdriver-bidi-protocol": "0.4.1",
782删除: "ws": "^8.20.0"
783删除: },
784删除: "engines": {
785删除: "node": ">=18"
786删除: }
787删除: },
788删除: "node_modules/readable-stream": {
789删除: "version": "3.6.2",
790删除: "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
791删除: "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
792删除: "license": "MIT",
793删除: "dependencies": {
794删除: "inherits": "^2.0.3",
795删除: "string_decoder": "^1.1.1",
796删除: "util-deprecate": "^1.0.1"
797删除: },
798删除: "engines": {
799删除: "node": ">= 6"
800删除: }
801删除: },
802删除: "node_modules/require-directory": {
803删除: "version": "2.1.1",
804删除: "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
805删除: "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
806删除: "license": "MIT",
807删除: "engines": {
808删除: "node": ">=0.10.0"
809删除: }
810删除: },
811删除: "node_modules/safe-buffer": {
812删除: "version": "5.2.1",
813删除: "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
814删除: "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
815删除: "funding": [
816删除: {
817删除: "type": "github",
818删除: "url": "https://github.com/sponsors/feross"
819删除: },
820删除: {
821删除: "type": "patreon",
822删除: "url": "https://www.patreon.com/feross"
823删除: },
824删除: {
825删除: "type": "consulting",
826删除: "url": "https://feross.org/support"
827删除: }
828删除: ],
829删除: "license": "MIT"
830删除: },
831删除: "node_modules/semver": {
832删除: "version": "7.8.6",
833删除: "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
834删除: "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
835删除: "license": "ISC",
836删除: "bin": {
837删除: "semver": "bin/semver.js"
838删除: },
839删除: "engines": {
840删除: "node": ">=10"
841删除: }
842删除: },
843删除: "node_modules/smart-buffer": {
844删除: "version": "4.2.0",
845删除: "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
846删除: "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
847删除: "license": "MIT",
848删除: "engines": {
849删除: "node": ">= 6.0.0",
850删除: "npm": ">= 3.0.0"
851删除: }
852删除: },
853删除: "node_modules/socks": {
854删除: "version": "2.8.10",
855删除: "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz",
856删除: "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==",
857删除: "license": "MIT",
858删除: "dependencies": {
859删除: "ip-address": "^10.1.1",
860删除: "smart-buffer": "^4.2.0"
861删除: },
862删除: "engines": {
863删除: "node": ">= 10.0.0",
864删除: "npm": ">= 3.0.0"
865删除: }
866删除: },
867删除: "node_modules/socks-proxy-agent": {
868删除: "version": "8.0.5",
869删除: "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
870删除: "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
871删除: "license": "MIT",
872删除: "dependencies": {
873删除: "agent-base": "^7.1.2",
874删除: "debug": "^4.3.4",
875删除: "socks": "^2.8.3"
876删除: },
877删除: "engines": {
878删除: "node": ">= 14"
879删除: }
880删除: },
881删除: "node_modules/socks-proxy-agent/node_modules/agent-base": {
882删除: "version": "7.1.4",
883删除: "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
884删除: "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
885删除: "license": "MIT",
886删除: "engines": {
887删除: "node": ">= 14"
888删除: }
889删除: },
890删除: "node_modules/source-map": {
891删除: "version": "0.6.1",
892删除: "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
893删除: "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
894删除: "license": "BSD-3-Clause",
895删除: "optional": true,
896删除: "engines": {
897删除: "node": ">=0.10.0"
898删除: }
899删除: },
900删除: "node_modules/streamx": {
901删除: "version": "2.28.1",
902删除: "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.28.1.tgz",
903删除: "integrity": "sha512-zEzXb0s5Cds7tqMH6rhZ05lcJydCWiQPEwiNngVqzsxCc962vLY4Uw+mW7od8kDH258k2Uz/JrOkdIAAhSh9VA==",
904删除: "license": "MIT",
905删除: "dependencies": {
906删除: "events-universal": "^1.0.0",
907删除: "fast-fifo": "^1.3.2",
908删除: "text-decoder": "^1.1.0"
909删除: }
910删除: },
911删除: "node_modules/string_decoder": {
912删除: "version": "1.3.0",
913删除: "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
914删除: "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
915删除: "license": "MIT",
916删除: "dependencies": {
917删除: "safe-buffer": "~5.2.0"
918删除: }
919删除: },
920删除: "node_modules/string-width": {
921删除: "version": "4.2.3",
922删除: "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
923删除: "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
924删除: "license": "MIT",
925删除: "dependencies": {
926删除: "emoji-regex": "^8.0.0",
927删除: "is-fullwidth-code-point": "^3.0.0",
928删除: "strip-ansi": "^6.0.1"
929删除: },
930删除: "engines": {
931删除: "node": ">=8"
932删除: }
933删除: },
934删除: "node_modules/strip-ansi": {
935删除: "version": "6.0.1",
936删除: "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
937删除: "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
938删除: "license": "MIT",
939删除: "dependencies": {
940删除: "ansi-regex": "^5.0.1"
941删除: },
942删除: "engines": {
943删除: "node": ">=8"
944删除: }
945删除: },
946删除: "node_modules/tar-fs": {
947删除: "version": "3.1.3",
948删除: "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.3.tgz",
949删除: "integrity": "sha512-/hU4AXnIdZu+Gvl1pk0oI5f5HxWsCJRtY2aFaJdk9VvyL48DWU6iU5WAIPG+wIi1YvWA6eTJvIviP/tMAZZNwQ==",
950删除: "license": "MIT",
951删除: "dependencies": {
952删除: "pump": "^3.0.0",
953删除: "tar-stream": "^3.1.5"
954删除: },
955删除: "optionalDependencies": {
956删除: "bare-fs": "^4.0.1",
957删除: "bare-path": "^3.0.0"
958删除: }
959删除: },
960删除: "node_modules/tar-stream": {
961删除: "version": "3.2.2",
962删除: "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.2.tgz",
963删除: "integrity": "sha512-+8NeqHRjQWH9nYlwo2gamAMImZCVzI4UoEgDpWorBt9OEfppiZn+uSkskzQKPWIZyji/C8fpWO7u69G0DX0tbg==",
964删除: "license": "MIT",
965删除: "dependencies": {
966删除: "b4a": "^1.9.0",
967删除: "bare-fs": "^4.8.2",
968删除: "fast-fifo": "^1.3.2",
969删除: "streamx": "^2.28.1"
970删除: }
971删除: },
972删除: "node_modules/teex": {
973删除: "version": "1.0.1",
974删除: "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz",
975删除: "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==",
976删除: "license": "MIT",
977删除: "dependencies": {
978删除: "streamx": "^2.12.5"
979删除: }
980删除: },
981删除: "node_modules/text-decoder": {
982删除: "version": "1.2.7",
983删除: "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.7.tgz",
984删除: "integrity": "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==",
985删除: "license": "Apache-2.0",
986删除: "dependencies": {
987删除: "b4a": "^1.6.4"
988删除: }
989删除: },
990删除: "node_modules/tslib": {
991删除: "version": "2.9.1",
992删除: "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
993删除: "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
994删除: "license": "0BSD"
995删除: },
996删除: "node_modules/typed-query-selector": {
997删除: "version": "2.12.3",
998删除: "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.3.tgz",
999删除: "integrity": "sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==",
1000删除: "license": "MIT"
1001删除: },
1002删除: "node_modules/typedarray": {
1003删除: "version": "0.0.6",
1004删除: "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
1005删除: "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
1006删除: "license": "MIT"
1007删除: },
1008删除: "node_modules/util-deprecate": {
1009删除: "version": "1.0.2",
1010删除: "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1011删除: "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
1012删除: "license": "MIT"
1013删除: },
1014删除: "node_modules/webdriver-bidi-protocol": {
1015删除: "version": "0.4.1",
1016删除: "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.1.tgz",
1017删除: "integrity": "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw==",
1018删除: "license": "Apache-2.0"
1019删除: },
1020删除: "node_modules/wrap-ansi": {
1021删除: "version": "7.0.0",
1022删除: "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
1023删除: "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
1024删除: "license": "MIT",
1025删除: "dependencies": {
1026删除: "ansi-styles": "^4.0.0",
1027删除: "string-width": "^4.1.0",
1028删除: "strip-ansi": "^6.0.0"
1029删除: },
1030删除: "engines": {
1031删除: "node": ">=10"
1032删除: },
1033删除: "funding": {
1034删除: "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1035删除: }
1036删除: },
1037删除: "node_modules/wrappy": {
1038删除: "version": "1.0.2",
1039删除: "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1040删除: "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1041删除: "license": "ISC"
1042删除: },
1043删除: "node_modules/ws": {
1044删除: "version": "8.22.1",
1045删除: "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz",
1046删除: "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==",
1047删除: "license": "MIT",
1048删除: "engines": {
1049删除: "node": ">=10.0.0"
1050删除: },
1051删除: "peerDependencies": {
1052删除: "bufferutil": "^4.0.1",
1053删除: "utf-8-validate": ">=5.0.2"
1054删除: },
1055删除: "peerDependenciesMeta": {
1056删除: "bufferutil": {
1057删除: "optional": true
1058删除: },
1059删除: "utf-8-validate": {
1060删除: "optional": true
1061删除: }
1062删除: }
1063删除: },
1064删除: "node_modules/y18n": {
1065删除: "version": "5.0.8",
1066删除: "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
1067删除: "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
1068删除: "license": "ISC",
1069删除: "engines": {
1070删除: "node": ">=10"
1071删除: }
1072删除: },
1073删除: "node_modules/yargs": {
1074删除: "version": "17.7.3",
1075删除: "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
1076删除: "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
1077删除: "license": "MIT",
1078删除: "dependencies": {
1079删除: "cliui": "^8.0.1",
1080删除: "escalade": "^3.1.1",
1081删除: "get-caller-file": "^2.0.5",
1082删除: "require-directory": "^2.1.1",
1083删除: "string-width": "^4.2.3",
1084删除: "y18n": "^5.0.5",
1085删除: "yargs-parser": "^21.1.1"
1086删除: },
1087删除: "engines": {
1088删除: "node": ">=12"
1089删除: }
1090删除: },
1091删除: "node_modules/yargs-parser": {
1092删除: "version": "21.1.1",
1093删除: "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
1094删除: "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
1095删除: "license": "ISC",
1096删除: "engines": {
1097删除: "node": ">=12"
1098删除: }
1099删除: },
1100删除: "node_modules/yauzl": {
1101删除: "version": "2.10.0",
1102删除: "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
1103删除: "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
1104删除: "license": "MIT",
1105删除: "dependencies": {
1106删除: "buffer-crc32": "~0.2.3",
1107删除: "fd-slicer": "~1.1.0"
1108删除: }
1109删除: },
1110删除: "node_modules/zod": {
1111删除: "version": "3.25.76",
1112删除: "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
1113删除: "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
1114删除: "license": "MIT",
1115删除: "funding": {
1116删除: "url": "https://github.com/sponsors/colinhacks"
1117删除: }
1118删除: }
1119删除: }
1120删除:}
删除promo/package.json+0 −17
@@ -1,17 +0,0 @@
1删除:{
2删除: "name": "claude-cage-promo",
3删除: "private": true,
4删除: "description": "Claude Cage promo video, rendered from code.",
5删除: "scripts": {
6删除: "preview": "node render.mjs --preview",
7删除: "plates": "node capture-plates.mjs",
8删除: "soundtrack": "node soundtrack.mjs",
9删除: "render": "node soundtrack.mjs && node render.mjs",
10删除: "render:vertical": "node soundtrack.mjs && node render.mjs --portrait",
11删除: "render:draft": "node soundtrack.mjs && node render.mjs --fps 30 --scale 0.5"
12删除: },
13删除: "dependencies": {
14删除: "ffmpeg-static": "^5.2.0",
15删除: "puppeteer-core": "^24.0.0"
16删除: }
17删除:}
删除promo/plates/browser.png

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

删除promo/plates/desktop.png

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

删除promo/plates/home.png

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

删除promo/plates/layout.js+0 −2
@@ -1,2 +0,0 @@
1删除:// Generated by capture-plates.mjs: where things sit on each plate, in workbench pixels.
2删除:window.PLATE_LAYOUT = {"landscape":{"width":1440,"height":860,"home":{"sidebar":[0,0,248,860],"header":[248,0,1192,40],"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"desktop":{"sidebar":[0,0,248,860],"header":[248,0,1192,43],"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"menu":{"sidebar":[0,0,248,860],"header":[248,0,1192,43],"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":[58,377,170,39],"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"term":{"sidebar":[0,0,248,860],"header":[248,0,1192,40],"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"browser":{"sidebar":[0,0,248,860],"header":null,"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":[248,40,1192,40],"dialog":null,"summary":null,"count":null,"rows":[]},"safety-run":{"sidebar":[0,0,248,860],"header":[248,0,1192,40],"status":[248,828,1192,32],"statusItems":[[268,833.5,63,22],[356,833.5,181,22],[562,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":[340,20,760,820],"summary":[363,105,714,83.8],"count":[427,211.3,561,17],"rows":[[364,280.4,712,41],[364,322.4,712,41],[364,364.4,712,41],[364,406.4,712,41],[364,448.4,712,41],[364,490.4,712,41],[364,532.4,712,41],[364,574.4,712,41],[364,616.4,712,41],[364,658.4,712,41],[364,700.4,712,41]]},"safety-done":{"sidebar":[0,0,248,860],"header":[248,0,1192,40],"status":[248,828,1192,32],"statusItems":[[268,833.5,73.9,22],[366.9,833.5,181,22],[573,833.5,164.7,22]],"shield":[12,761,223,33],"desktopNav":[12,156,223,36],"termIcon":[209,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":[340,20,760,820],"summary":[363,105,714,83.8],"count":[427,211.3,561,17],"rows":[[364,280.4,712,41],[364,322.4,712,41],[364,364.4,712,41],[364,406.4,712,41],[364,448.4,712,41],[364,490.4,712,41],[364,532.4,712,41],[364,574.4,712,41],[364,616.4,712,41],[364,658.4,712,41],[364,700.4,712,41]]}},"portrait":{"width":760,"height":1100,"home":{"sidebar":[0,0,224,1100],"header":[224,0,536,40],"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"desktop":{"sidebar":[0,0,224,1100],"header":[224,0,536,43],"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"menu":{"sidebar":[0,0,224,1100],"header":[224,0,536,43],"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":[34,377,170,39],"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"term":{"sidebar":[0,0,224,1100],"header":[224,0,536,40],"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":null,"summary":null,"count":null,"rows":[]},"browser":{"sidebar":[0,0,224,1100],"header":null,"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":[224,40,536,40],"dialog":null,"summary":null,"count":null,"rows":[]},"safety-run":{"sidebar":[0,0,224,1100],"header":[224,0,536,40],"status":[224,1068,536,32],"statusItems":[[244,1073.5,63,22],[319,1073.5,181,22],[512,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":[20,20,720,1060],"summary":[43,105,674,83.8],"count":[107,211.3,521,17],"rows":[[44,280.4,672,41],[44,322.4,672,41],[44,364.4,672,41],[44,406.4,672,41],[44,448.4,672,41],[44,490.4,672,41],[44,532.4,672,41],[44,574.4,672,41],[44,616.4,672,41],[44,658.4,672,41],[44,700.4,672,41]]},"safety-done":{"sidebar":[0,0,224,1100],"header":[224,0,536,40],"status":[224,1068,536,32],"statusItems":[[244,1073.5,73.9,22],[329.9,1073.5,181,22],[523,1073.5,52.4,22]],"shield":[12,1001,199,33],"desktopNav":[12,156,199,36],"termIcon":[185,297.5,26,26],"claudeItem":null,"navigation":null,"dialog":[20,20,720,1060],"summary":[43,105,674,83.8],"count":[107,211.3,521,17],"rows":[[44,280.4,672,41],[44,322.4,672,41],[44,364.4,672,41],[44,406.4,672,41],[44,448.4,672,41],[44,490.4,672,41],[44,532.4,672,41],[44,574.4,672,41],[44,616.4,672,41],[44,658.4,672,41],[44,700.4,672,41]]}}};
删除promo/plates/menu.png

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

删除promo/plates/portrait/browser.png

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

删除promo/plates/portrait/desktop.png

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

删除promo/plates/portrait/home.png

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

删除promo/plates/portrait/menu.png

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

删除promo/plates/portrait/safety-done.png

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

删除promo/plates/portrait/safety-run.png

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

删除promo/plates/portrait/term.png

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

删除promo/plates/safety-done.png

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

删除promo/plates/safety-run.png

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

删除promo/plates/term.png

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

删除promo/promo.js+0 −801
@@ -1,801 +0,0 @@
1删除:/* Claude Cage promo · every frame is a pure function of time.
2删除: * render(t) sets all styles from t, so preview playback, scrubbing and the
3删除: * frame-by-frame export in render.mjs all show exactly the same picture. */
4删除:(() => {
5删除: 'use strict';
6删除: const T = window.TL;
7删除: // ?portrait renders the 9:16 cut: same timeline, re-laid out for 1080 × 1920.
8删除: const PORTRAIT = new URLSearchParams(location.search).has('portrait');
9删除: if (PORTRAIT) { T.width = 1080; T.height = 1920; document.body.classList.add('portrait'); }
10删除: // Positions computed here rather than in CSS, per orientation.
11删除: const L = PORTRAIT
12删除: ? { chipY: 650, chipStep: 108, chipX: 680, node: [540, 1330], holdScale: 0.38, holdLift: -35, holdScroll: 0,
13删除: panelTop: 330, colLeft: 280, colTop: 1290, pillStep: 124, pillH: 104, inputDrop: 500, zBase: 1.32, shadeFrom: 1.45, rings: 2 }
14删除: : { chipY: 360, chipStep: 98, chipX: 972, node: [1330, 590], holdScale: 0.36, holdLift: -70, holdScroll: 430,
15删除: panelTop: 214, colLeft: 1330, colTop: 330, pillStep: 112, pillH: 92, inputDrop: 360, zBase: 1.0, shadeFrom: 1.15, rings: 3 };
16删除: // The real workbench, captured at a landscape or a tall window size (see capture-plates.mjs).
17删除: const PL = window.PLATE_LAYOUT[PORTRAIT ? 'portrait' : 'landscape'];
18删除: const PLATES = PORTRAIT ? 'plates/portrait/' : 'plates/';
19删除: const mid = ([x, y, w, h]) => [x + w / 2, y + h / 2];
20删除: const $ = (s, r = document) => r.querySelector(s);
21删除: const $$ = (s, r = document) => [...r.querySelectorAll(s)];
22删除:
23删除: // ---------- math ----------
24删除: const clamp = (x, a = 0, b = 1) => Math.min(b, Math.max(a, x));
25删除: const p = (t, a, b) => clamp((t - a) / (b - a));
26删除: const lerp = (a, b, k) => a + (b - a) * k;
27删除: const E = {
28删除: out: x => 1 - Math.pow(1 - x, 3),
29删除: out5: x => 1 - Math.pow(1 - x, 5),
30删除: in: x => x * x * x,
31删除: io: x => (x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2),
32删除: sine: x => -(Math.cos(Math.PI * x) - 1) / 2,
33删除: back: (x, s = 1.6) => 1 + (s + 1) * Math.pow(x - 1, 3) + s * Math.pow(x - 1, 2),
34删除: };
35删除: // Fade in over [a, a+fi], fade out over [b-fo, b].
36删除: const win = (t, a, b, fi = 0.5, fo = 0.5) => Math.min(E.out(p(t, a, a + fi)), 1 - E.io(p(t, b - fo, b)));
37删除: const hash = n => { const x = Math.sin(n * 127.1 + 311.7) * 43758.5453; return x - Math.floor(x); };
38删除:
39删除: const css = (el, o) => {
40删除: if (!el) return;
41删除: const s = el.style;
42删除: if (o.o !== undefined) { s.opacity = o.o.toFixed(4); s.visibility = o.o <= 0.001 ? 'hidden' : 'visible'; }
43删除: if (o.tf !== undefined) s.transform = o.tf;
44删除: if (o.f !== undefined) s.filter = o.f;
45删除: };
46删除: const blur = v => (v > 0.05 ? `blur(${v.toFixed(2)}px)` : 'none');
47删除:
48删除: // ---------- text ----------
49删除: function split(el) {
50删除: const text = el.textContent;
51删除: el.textContent = '';
52删除: el._chars = [...text].map(ch => {
53删除: const s = document.createElement('span');
54删除: s.className = 'c';
55删除: s.textContent = ch;
56删除: el.appendChild(s);
57删除: return s;
58删除: });
59删除: }
60删除: function reveal(el, t, start, { stagger = 0.045, dur = 0.7, y = 18, b = 10 } = {}) {
61删除: el._chars.forEach((c, i) => {
62删除: const k = E.out(p(t, start + i * stagger, start + i * stagger + dur));
63删除: css(c, { o: k, tf: `translateY(${((1 - k) * y).toFixed(2)}px)`, f: blur((1 - k) * b) });
64删除: });
65删除: }
66删除: const revealEnd = (el, start, { stagger = 0.045, dur = 0.7 } = {}) => start + (el._chars.length - 1) * stagger + dur;
67删除:
68删除: // A stack of labels that roll vertically at the given switch times.
69删除: function flip(el, t, times, h = 18) {
70删除: const spans = el._spans || (el._spans = [...el.children]);
71删除: let v = 0;
72删除: times.forEach(at => { v += E.io(p(t, at, at + 0.42)); });
73删除: spans.forEach((s, i) => {
74删除: const d = i - v;
75删除: s.style.position = 'absolute';
76删除: css(s, { o: clamp(1 - Math.abs(d) * 1.4), tf: `translateY(${(d * h).toFixed(2)}px)` });
77删除: });
78删除: }
79删除:
80删除: // ---------- pixel logo ----------
81删除: const SVGNS = 'http://www.w3.org/2000/svg';
82删除: const ORANGE = '#ef6f45', DARK = '#252321';
83删除: function rect(svg, x, y, w, h, fill) {
84删除: const r = document.createElementNS(SVGNS, 'rect');
85删除: r.setAttribute('x', x); r.setAttribute('y', y); r.setAttribute('width', w); r.setAttribute('height', h);
86删除: r.setAttribute('fill', fill);
87删除: svg.appendChild(r);
88删除: return r;
89删除: }
90删除: function buildLogo(svg) {
91删除: svg.setAttribute('viewBox', '0 0 926 926');
92删除: const cells = [];
93删除: const u = 46, bx = 187, by = 280;
94删除: const add = (x, y, w, h) => cells.push({ el: rect(svg, x, y, w + 0.8, h + 0.8, ORANGE), cx: x + w / 2, cy: y + h / 2 });
95删除: for (let r = 0; r < 7; r++) for (let c = 0; c < 12; c++) add(bx + c * u, by + r * u, u, u);
96删除: for (const r of [3, 4]) { add(bx - 69, by + r * u, 69, u); add(bx + 12 * u, by + r * u, 69, u); }
97删除: for (const x of [230, 338, 535, 642]) { add(x, 602, 55, 40); add(x, 642, 55, 40); }
98删除: cells.forEach((c, i) => {
99删除: const d = Math.hypot(c.cx - 463, c.cy - 450) / 420;
100删除: c.delay = d * 0.75 + hash(i) * 0.22;
101删除: });
102删除: // Seamless body drawn once every pixel has landed.
103删除: const solid = [
104删除: rect(svg, bx, by, 12 * u, 7 * u, ORANGE), rect(svg, bx - 69, by + 3 * u, 12 * u + 138, 2 * u, ORANGE),
105删除: ...[230, 338, 535, 642].map(x => rect(svg, x, 600, 55, 82, ORANGE)),
106删除: ];
107删除: const settle = Math.max(...cells.map(c => c.delay)) + 0.42;
108删除: const eyes = [rect(svg, 338, 345, 51, 95, DARK), rect(svg, 537, 345, 51, 95, DARK)];
109删除: const frame = [
110删除: rect(svg, 35, 80, 855, 67, DARK), rect(svg, 35, 761, 855, 67, DARK),
111删除: rect(svg, 35, 80, 65, 748, DARK), rect(svg, 825, 80, 65, 748, DARK),
112删除: ];
113删除: const bars = [rect(svg, 268, 80, 54, 748, DARK), rect(svg, 604, 80, 54, 748, DARK)];
114删除: return { svg, cells, solid, settle, eyes, frame, bars };
115删除: }
116删除: // Assemble the logo: pixels pop from the centre, the frame draws, two bars drop.
117删除: function logoAt(L, t, { pixels, frame, bars, blink, speed = 1 }) {
118删除: const whole = t >= pixels + L.settle * speed;
119删除: L.solid.forEach(r => css(r, { o: whole ? 1 : 0 }));
120删除: L.cells.forEach(c => {
121删除: if (whole) { css(c.el, { o: 0 }); return; }
122删除: const k = p(t, pixels + c.delay * speed, pixels + c.delay * speed + 0.42 * speed);
123删除: const e = k >= 1 ? 1 : Math.max(0, E.back(k, 2.2));
124删除: css(c.el, { o: k > 0 ? 1 : 0, tf: `scale(${e.toFixed(4)})` });
125删除: });
126删除: const eye = E.back(p(t, pixels + 0.95 * speed, pixels + 1.3 * speed), 1.8);
127删除: const bl = blink.reduce((m, b) => Math.min(m, 1 - Math.sin(Math.PI * p(t, b, b + 0.2)) * 0.92), 1);
128删除: L.eyes.forEach(e => css(e, { o: eye > 0 ? 1 : 0, tf: `scaleY(${(Math.max(0, eye) * bl).toFixed(4)})` }));
129删除: L.frame.forEach((r, i) => {
130删除: const k = E.io(p(t, frame + (i >> 1) * 0.12, frame + (i >> 1) * 0.12 + 0.5 * speed));
131删除: css(r, { o: k > 0 ? 1 : 0, tf: i < 2 ? `scaleX(${k.toFixed(4)})` : `scaleY(${k.toFixed(4)})` });
132删除: });
133删除: L.bars.forEach((r, i) => {
134删除: const k = p(t, bars[i], bars[i] + 0.34 * speed);
135删除: const e = E.back(k, 1.1);
136删除: css(r, { o: clamp(k * 10), tf: `translateY(${((1 - e) * -760).toFixed(2)}px)` });
137删除: });
138删除: }
139删除: // Tiny landing bump for each bar.
140删除: const barImpact = (t, bars) => bars.reduce((s, b) => s + Math.sin(Math.PI * p(t, b + 0.3, b + 0.5)) * 1, 0);
141删除:
142删除: // ---------- icons ----------
143删除: const ico = d => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${d}</svg>`;
144删除: const WARN = '<path d="M12 3.5 2.8 19.5h18.4z"/><path d="M12 10v4M12 16.8v.2"/>';
145删除: const APPS = [
146删除: { n: '微信', c: '#3fb950', w: '异地登录提醒' },
147删除: { n: '网上银行', c: '#d7a03b', w: '安全验证失败' },
148删除: { n: '公司 VPN', c: '#5a8de0', w: '内网连不上' },
149删除: { n: '国内网站', c: '#9b7fe0', w: '打开变慢' },
150删除: { n: 'Claude', c: '#d97757', w: '时区与 IP 对不上' },
151删除: ];
152删除:
153删除: // ---------- build ----------
154删除: const els = {};
155删除: function build() {
156删除: $$('[data-split]').forEach(split);
157删除:
158删除: const chips = $('#appChips'), wires = $('#wires');
159删除: els.apps = APPS.map((a, i) => {
160删除: const y = L.chipY + i * L.chipStep;
161删除: const chip = document.createElement('div');
162删除: chip.className = 'app-chip dark-card';
163删除: chip.style.top = y + 'px';
164删除: chip.innerHTML = `<i style="background:${a.c}"></i>${a.n}`;
165删除: const warn = document.createElement('div');
166删除: warn.className = 'warn';
167删除: warn.style.top = (y + 14) + 'px';
168删除: warn.innerHTML = `${ico(WARN)}${a.w}`;
169删除: chips.append(chip, warn);
170删除: const y0 = y + 39;
171删除: const path = document.createElementNS(SVGNS, 'path');
172删除: const [nx, ny] = L.node;
173删除: path.setAttribute('d', PORTRAIT
174删除: ? `M${L.chipX} ${y0} C 900 ${y0}, ${nx + (i - 2) * 40} ${ny - 160}, ${nx + (i - 2) * 40} ${ny}`
175删除: : `M${L.chipX} ${y0} C 1150 ${y0}, 1170 ${ny}, ${nx} ${ny}`);
176删除: const dot = document.createElementNS(SVGNS, 'circle');
177删除: dot.setAttribute('r', 6);
178删除: dot.setAttribute('fill', '#ffb08f');
179删除: wires.append(path, dot);
180删除: const len = path.getTotalLength();
181删除: path.style.strokeDasharray = `${len}`;
182删除: return { chip, warn, path, dot, len };
183删除: });
184删除:
185删除: const svgLogo = document.createElementNS(SVGNS, 'svg');
186删除: svgLogo.classList.add('logo-svg');
187删除: $('#logoWrap').appendChild(svgLogo);
188删除: els.logo = buildLogo(svgLogo);
189删除: const svgEnd = document.createElementNS(SVGNS, 'svg');
190删除: svgEnd.classList.add('logo-svg');
191删除: $('#endLogo').appendChild(svgEnd);
192删除: els.endLogo = buildLogo(svgEnd);
193删除:
194删除: els.caps = $$('#caption .cap');
195删除: els.dots = $$('#progressDots b');
196删除: els.plates = $$('#win .plate');
197删除: Object.assign($('#win').style, { width: PL.width + 'px', height: PL.height + 'px' });
198删除: els.plates.forEach(el => { el.src = PLATES + el.dataset.plate + '.png'; });
199删除: // Panes sit where the real UI leaves its remote views and terminal empty.
200删除: const side = PL.home.sidebar[2] + 1, foot = PL.home.status[3];
201删除: const place = (el, top) => Object.assign(el.style, { left: side + 'px', top: top + 'px', bottom: foot + 'px' });
202删除: place($('#paneDesktop'), PL.desktop.header[3]);
203删除: place($('#paneTerm'), PL.term.header[3]);
204删除: place($('#paneBrowser'), PL.browser.navigation[1] + PL.browser.navigation[3] + 34);
205删除: // One overlay per check row, cut from the "all passed" plate.
206删除: const S = PL['safety-done'], fx = $('#checkFx');
207删除: els.checkRows = S.rows.map(([x, y, w, h]) => {
208删除: const row = document.createElement('div');
209删除: row.className = 'row';
210删除: Object.assign(row.style, {
211删除: left: x + 'px', top: y + 'px', width: w + 'px', height: h + 'px',
212删除: backgroundImage: `url(${PLATES}safety-done.png)`, backgroundSize: `${PL.width}px ${PL.height}px`, backgroundPosition: `${-x}px ${-y}px`,
213删除: });
214删除: row.innerHTML = '<div class="flash"></div>';
215删除: const spin = document.createElement('div');
216删除: spin.className = 'spin';
217删除: Object.assign(spin.style, { left: (x + 20.5) + 'px', top: (y + h / 2) + 'px' });
218删除: fx.append(row, spin);
219删除: return { row, spin };
220删除: });
221删除: const [cx, cy, , ch] = S.count;
222删除: Object.assign($('#checkCount').style, { left: cx + 'px', top: cy + 'px', height: ch + 'px' });
223删除: // Status-bar highlights: exit, location and (when the window is wide enough to show it) timezone.
224删除: els.rings = PL.home.statusItems.slice(0, L.rings).map(([x, y, w, h]) => {
225删除: const ring = document.createElement('div');
226删除: ring.className = 'ring2';
227删除: Object.assign(ring.style, { left: (x - 5) + 'px', top: y + 'px', width: (w + 10) + 'px', height: h + 'px' });
228删除: $('#win').insertBefore(ring, $('#ripple'));
229删除: return ring;
230删除: });
231删除: els.cdReply = $$('#cdReply p');
232删除: els.termA = $$('#termA > *');
233删除: els.termB = $$('#termB > *');
234删除: els.reply2 = $$('#termB [data-r]');
235删除: els.acctBars = $$('#acctPanel .bar i').map(el => ({ el, v: parseFloat(el.style.transform.slice(7)) }));
236删除: els.accts = $$('#acctPanel .acct');
237删除: els.accts[2].classList.add('done');
238删除: els.pills = $$('#termCol .tpill');
239删除: els.pills.forEach((pl, j) => { pl.style.top = (40 + j * L.pillStep) + 'px'; });
240删除: }
241删除:
242删除: // Window-local position of an element's centre (offsets ignore transforms).
243删除: const win0 = () => $('#win');
244删除: function center(el, dx = 0, dy = 0) {
245删除: let x = 0, y = 0, n = el;
246删除: const root = win0();
247删除: while (n && n !== root) { x += n.offsetLeft; y += n.offsetTop; n = n.offsetParent; }
248删除: return [x + el.offsetWidth / 2 + dx, y + el.offsetHeight / 2 + dy];
249删除: }
250删除:
251删除: let cursorKeys, clicks;
252删除: function measure() {
253删除: const A = T.app;
254删除: // Sidebar targets come from the captured layout; pane targets are measured.
255删除: const desk = mid(PL.home.desktopNav), icon = mid(PL.home.termIcon), claudeItem = mid(PL.menu.claudeItem);
256删除: const input = center($('#cdInput'), 0, -22);
257删除: const go = center($('#authGo'));
258删除: // [time, x, y, opacity]
259删除: const shield = mid(PL.home.shield);
260删除: cursorKeys = [
261删除: [A.step1 - 0.2, 620, 700, 0], [A.step1 + 0.1, 420, 740, 1], [A.safetyOpen - 0.05, ...shield, 1], [A.safetyOpen + 0.25, ...shield, 1],
262删除: [A.safetyOpen + 0.7, 260, 700, 0],
263删除: [A.step2 + 0.1, 760, 560, 0], [A.step2 + 0.3, 620, 420, 1], [A.clickDesktop - 0.05, ...desk, 1], [A.clickDesktop + 0.25, ...desk, 1],
264删除: [A.clickInput - 0.05, ...input, 1], [A.clickInput + 0.35, ...input, 1], [A.clickInput + 0.75, input[0] + 30, input[1] + 60, 0],
265删除: [A.step3, 620, 520, 0], [A.step3 + 0.25, 420, 430, 1], [A.clickTermIcon - 0.05, ...icon, 1], [A.clickTermIcon + 0.2, ...icon, 1],
266删除: [A.clickClaudeTerm - 0.05, ...claudeItem, 1], [A.clickClaudeTerm + 0.15, ...claudeItem, 1], [A.clickClaudeTerm + 0.55, 300, 520, 0],
267删除: [A.browserOpen + 0.2, go[0] + 160, go[1] + 140, 0], [A.browserOpen + 0.45, go[0] + 120, go[1] + 110, 1],
268删除: [A.clickAuthorize - 0.05, ...go, 1], [A.clickAuthorize + 0.25, ...go, 1], [A.clickAuthorize + 0.7, go[0] + 40, go[1] + 60, 0],
269删除: ];
270删除: // Wires from each new terminal to the account it lands on.
271删除: const wires = $('#acctWires');
272删除: wires.textContent = '';
273删除: els.acctWires = ACCT_ASSIGN.map((ai, j) => {
274删除: const acct = els.accts[ai];
275删除: const ay = L.panelTop + acct.offsetTop + acct.offsetHeight / 2;
276删除: const py = L.colTop + 40 + j * L.pillStep + L.pillH / 2;
277删除: const path = document.createElementNS(SVGNS, 'path');
278删除: path.setAttribute('d', PORTRAIT
279删除: ? `M${L.colLeft + 524} ${py} C 1062 ${py}, 1078 ${ay}, 1024 ${ay}`
280删除: : `M${L.colLeft - 4} ${py} C 1220 ${py}, 1225 ${ay}, 1114 ${ay}`);
281删除: const dot = document.createElementNS(SVGNS, 'circle');
282删除: dot.setAttribute('r', 8);
283删除: dot.setAttribute('fill', '#519489');
284删除: wires.append(path, dot);
285删除: return { path, dot, len: path.getTotalLength() };
286删除: });
287删除: clicks = [[A.safetyOpen, shield], [A.clickDesktop, desk], [A.clickInput, input], [A.clickTermIcon, icon], [A.clickClaudeTerm, claudeItem], [A.clickAuthorize, go]];
288删除: }
289删除:
290删除: // ---------- camera ----------
291删除: // [time, zoom, focusX, focusY, anchorX, anchorY]
292删除: const BASE = [1.0, 720, 430, 960, 612];
293删除: const A0 = T.app;
294删除: const CAM = [
295删除: [A0.rise, ...BASE], [A0.safetyOpen, ...BASE],
296删除: [A0.safetyOpen + 0.6, 1.18, 720, 520, 960, 760], [A0.allPass + 0.7, 1.18, 720, 520, 960, 760],
297删除: [A0.rings[0] - 0.2, 1.75, 505, 846, 960, 900], [A0.step2 - 0.7, 1.75, 505, 846, 960, 900],
298删除: [A0.step2, ...BASE], [A0.desktopBoot, ...BASE],
299删除: [A0.desktopBoot + 0.6, 1.1, 860, 440, 960, 630], [A0.step3, 1.1, 860, 440, 960, 630],
300删除: [A0.clickTermIcon - 0.1, 1.7, 170, 380, 720, 620], [A0.clickClaudeTerm + 0.1, 1.7, 170, 380, 720, 620],
301删除: [A0.termLines + 0.5, 1.08, 820, 430, 960, 630], [A0.browserOpen, 1.08, 820, 430, 960, 630],
302删除: [A0.browserOpen + 0.4, 1.12, 844, 450, 960, 630], [A0.backToTerm - 0.2, 1.12, 844, 450, 960, 630],
303删除: [A0.backToTerm + 0.3, 1.1, 820, 420, 960, 630], [A0.out, 1.22, 760, 330, 960, 620],
304删除: ];
305删除: // The tall cut shows the narrow window at full width, cutting in only where a detail matters.
306删除: const PB = [1.32, 380, 550, 540, 1026];
307删除: const CAM_P = [
308删除: [A0.rise, ...PB], [A0.safetyOpen, ...PB],
309删除: [A0.safetyOpen + 0.6, 1.42, 380, 470, 540, 1010], [A0.allPass + 0.7, 1.42, 380, 470, 540, 1010],
310删除: [A0.rings[0] - 0.2, 2.6, 380, 1084, 540, 1400], [A0.step2 - 0.7, 2.6, 380, 1084, 540, 1400],
311删除: [A0.step2, ...PB], [A0.clickTermIcon - 0.6, ...PB],
312删除: [A0.clickTermIcon - 0.1, 2.0, 230, 330, 490, 980], [A0.clickClaudeTerm + 0.1, 2.0, 230, 330, 490, 980],
313删除: [A0.termLines + 0.5, ...PB], [A0.backToTerm + 0.3, ...PB],
314删除: [A0.out, 1.42, 380, 420, 540, 1000],
315删除: ];
316删除: function camAt(t) {
317删除: const K = PORTRAIT ? CAM_P : CAM;
318删除: if (t <= K[0][0]) return K[0].slice(1);
319删除: for (let i = 0; i < K.length - 1; i++) {
320删除: const a = K[i], b = K[i + 1];
321删除: if (t <= b[0]) {
322删除: const k = E.io(p(t, a[0], b[0]));
323删除: return a.slice(1).map((v, j) => lerp(v, b[j + 1], k));
324删除: }
325删除: }
326删除: return K[K.length - 1].slice(1);
327删除: }
328删除: function cursorAt(t) {
329删除: const K = cursorKeys;
330删除: if (t <= K[0][0]) return K[0].slice(1);
331删除: for (let i = 0; i < K.length - 1; i++) {
332删除: const a = K[i], b = K[i + 1];
333删除: if (t <= b[0]) {
334删除: const k = E.io(p(t, a[0], b[0]));
335删除: return [lerp(a[1], b[1], k), lerp(a[2], b[2], k), lerp(a[3], b[3], k)];
336删除: }
337删除: }
338删除: return K[K.length - 1].slice(1);
339删除: }
340删除:
341删除: // ---------- acts ----------
342删除: // Fast, punchy reveal for the problem headlines.
343删除: const punch = (el, t, at) => reveal(el, t, at, { stagger: 0.022, dur: 0.38, y: 26, b: 8 });
344删除: const slam = (el, t, at, { from = 1.35, rot = 0, dur = 0.38 } = {}) => {
345删除: const k = p(t, at, at + dur);
346删除: const e = E.out5(k);
347删除: css(el, { o: clamp(k * 5), tf: `scale(${lerp(from, 1, e).toFixed(4)}) rotate(${(rot * (1 - e * 0.6)).toFixed(2)}deg)`, f: blur((1 - clamp(k * 3)) * 10) });
348删除: };
349删除:
350删除: function pain(t) {
351删除: const P = T.pain;
352删除: const layer = $('#night');
353删除: css(layer, { o: t < P.end ? 1 : 0 });
354删除: if (t >= P.end) return;
355删除:
356删除: // Hard cuts: every hit shakes the frame and flashes it for a few frames.
357删除: const hits = [[P.slam, 0.5], [P.holdShrink, 0.8], [P.b2, 0.55], [P.b3, 0.55], [P.b4, 0.55], [P.vmMem, 0.45], ...P.losses.map(x => [x, 0.32]), [P.total, 0.3]];
358删除: let shake = 0, flash = 0;
359删除: hits.forEach(([h, k]) => {
360删除: const q = p(t, h, h + 0.35), f = p(t, h, h + 0.13);
361删除: if (q > 0 && q < 1) shake = Math.max(shake, (1 - q) * k);
362删除: if (f > 0 && f < 1) flash = Math.max(flash, (1 - f) * k);
363删除: });
364删除: const sx = Math.sin(t * 97) * 12 * shake, sy = Math.cos(t * 83) * 8 * shake;
365删除: css($('#flash'), { o: flash * 0.2 });
366删除: css($('#nightGlow'), { o: t < P.b5 ? 0.45 + shake * 0.8 : 0 });
367删除:
368删除: const starts = [P.slam, P.b2, P.b3, P.b4, P.b5, P.end];
369删除: $$('#night .beat').forEach((b, i) => {
370删除: const a = starts[i], z = starts[i + 1];
371删除: const k = E.out5(p(t, a, a + 0.4));
372删除: css(b, { o: t >= a && t < z ? 1 : 0, tf: `translate(${sx.toFixed(2)}px, ${sy.toFixed(2)}px) scale(${(lerp(1.05, 1, k) + Math.max(0, t - a) * 0.006).toFixed(4)})` });
373删除: const kick = b.querySelector('.kick');
374删除: const ka = i === 0 ? P.holdShrink + 0.1 : a + 0.05;
375删除: if (kick) css(kick, { o: E.out(p(t, ka, ka + 0.25)) });
376删除: const head = b.querySelector('.head');
377删除: if (head) {
378删除: const at = i === 0 ? P.losses[2] + 0.2 : a + 0.12;
379删除: punch(head.children[0], t, at);
380删除: punch(head.children[1], t, at + 0.22);
381删除: }
382删除: });
383删除:
384删除: // 01 · banned: the on-hold screen people recognise, then it shrinks into evidence.
385删除: const sc = E.io(p(t, P.holdScroll[0], P.holdScroll[1]));
386删除: const sk = E.io(p(t, P.holdShrink, P.holdShrink + 0.5));
387删除: const hs = lerp(1 + Math.min(t, P.holdShrink) * 0.014, L.holdScale, sk);
388删除: const hold = $('#hold');
389删除: css(hold, { tf: `translateY(${(L.holdLift * sk).toFixed(2)}px) scale(${hs.toFixed(4)}) rotate(${(-1.6 * sk).toFixed(3)}deg)` });
390删除: hold.style.borderRadius = sk > 0 ? `${(16 / hs).toFixed(1)}px` : '0';
391删除: hold.style.boxShadow = sk > 0 ? `0 0 0 ${(3 / hs).toFixed(1)}px rgba(255,106,69,${(0.7 * sk).toFixed(3)}), 0 ${(40 / hs).toFixed(0)}px ${(110 / hs).toFixed(0)}px rgba(0,0,0,${(0.6 * sk).toFixed(3)})` : 'none';
392删除: $('#holdScroll').style.transform = `translateY(${(-L.holdScroll * sc * (1 - sk)).toFixed(2)}px)`;
393删除: css($('#holdTint'), { o: 0.14 * sk });
394删除: const mk = E.out(p(t, P.holdMark, P.holdMark + 0.4));
395删除: const mark = $('#holdMark');
396删除: mark.style.backgroundSize = `${(mk * 100).toFixed(2)}% 100%`;
397删除: mark.style.color = mk > 0.2 ? '#b5452a' : '#8a877f';
398删除: $$('#losses .loss').forEach((el, i) => slam(el, t, P.losses[i], { from: 1.4, rot: [-3, 2, -2][i], dur: 0.3 }));
399删除:
400删除: // 02 · bills
401删除: const rk = E.out5(p(t, P.b2, P.b2 + 0.5));
402删除: css($('#receipt'), { o: clamp(rk * 3), tf: `translateY(${((1 - rk) * 240 - Math.max(0, t - P.b2) * 6).toFixed(2)}px)` });
403删除: $$('#receipt .rr').forEach((el, i) => {
404删除: const k = E.out5(p(t, P.rows[i], P.rows[i] + 0.25));
405删除: css(el, { o: k, tf: `translateX(${((1 - k) * -24).toFixed(2)}px)` });
406删除: });
407删除: slam($('#receipt .rt'), t, P.total, { from: 1.25, dur: 0.3 });
408删除: css($('#receipt .rn'), { o: E.out(p(t, P.total + 0.35, P.total + 0.7)) });
409删除:
410删除: // 03 · the whole machine behind a global proxy
411删除: css($('#pcLabel'), { o: E.out(p(t, P.b3 + 0.1, P.b3 + 0.4)) });
412删除: slam($('#proxyNode'), t, P.wires + 0.15, { from: 0.6, dur: 0.45 });
413删除: els.apps.forEach((a, i) => {
414删除: const k = E.out5(p(t, P.b3 + 0.08 + i * 0.05, P.b3 + 0.4 + i * 0.05));
415删除: css(a.chip, { o: k, tf: `translateX(${((1 - k) * -30).toFixed(2)}px)` });
416删除: const w = E.io(p(t, P.wires + i * 0.06, P.wires + 0.5 + i * 0.06));
417删除: a.path.style.strokeDashoffset = `${(a.len * (1 - w)).toFixed(2)}`;
418删除: const pt = a.path.getPointAtLength(((t * 0.55 + i * 0.21) % 1) * a.len);
419删除: a.dot.setAttribute('cx', pt.x.toFixed(2));
420删除: a.dot.setAttribute('cy', pt.y.toFixed(2));
421删除: a.dot.style.opacity = w >= 1 ? 0.9 : 0;
422删除: const at = P.tags[i];
423删除: const wk = Math.max(0, E.back(p(t, at, at + 0.35), 2));
424删除: css(a.warn, { o: clamp(p(t, at, at + 0.12) * 1), tf: `scale(${wk.toFixed(4)})` });
425删除: a.warn.style.transformOrigin = '100% 50%';
426删除: a.chip.style.borderColor = t > at ? 'rgba(255,106,69,.65)' : 'rgba(255,240,225,.10)';
427删除: });
428删除:
429删除: // 04 · a heavy VM that still needs everything set up
430删除: slam($('#vmWin'), t, P.vm, { from: 1.12, dur: 0.4 });
431删除: const dl = 0.11 + Math.max(0, t - P.vm) * 0.004;
432删除: $('#vmDl').style.transform = `scaleX(${dl.toFixed(4)})`;
433删除: $('#vmEta').textContent = t < P.vmMem ? '下载中 · 剩余 1 小时 52 分' : '下载中 · 剩余 2 小时 07 分';
434删除: const mem = E.out5(p(t, P.vmMem, P.vmMem + 0.45));
435删除: const memEl = $('#vmMem');
436删除: memEl.style.transform = `scaleX(${lerp(0.25, 0.93, mem).toFixed(4)})`;
437删除: memEl.style.background = mem > 0.3 ? '#ff6a45' : '#d9cfc5';
438删除: $('#vmMemTxt').textContent = mem > 0.3 ? '14.9 GB / 16 GB · 主机开始卡顿' : '4 GB / 16 GB';
439删除: css($('#vmTodo .lbl'), { o: E.out(p(t, P.vmTodo[0] - 0.2, P.vmTodo[0] + 0.1)) });
440删除: $$('#vmTodo span').forEach((el, i) => slam(el, t, P.vmTodo[i], { from: 1.3, dur: 0.25 }));
441删除:
442删除: // and the question
443删除: const [qa, qb] = $('#b5 .q').children;
444删除: reveal(qa, t, P.b5 + 0.2, { stagger: 0.06, dur: 0.5, y: 20, b: 10 });
445删除: reveal(qb, t, P.b5 + 0.65, { stagger: 0.06, dur: 0.5, y: 20, b: 10 });
446删除: const qo = 1 - E.io(p(t, P.end - 0.35, P.end));
447删除: css($('#b5 .q'), { tf: `scale(${(1 + Math.max(0, t - P.b5) * 0.015).toFixed(4)})`, f: blur((1 - qo) * 14) });
448删除: }
449删除:
450删除: function room(t) {
451删除: const R = T.room;
452删除: const layer = $('#room');
453删除: const o = E.out(p(t, R.start, R.start + 0.45));
454删除: const gone = E.io(p(t, R.end - 0.6, R.end));
455删除: css(layer, { o: t >= R.end ? 0 : o });
456删除: if (t < R.start || t >= R.end) return;
457删除: $('#roomLight').style.transform = `scale(${lerp(0.6, 1, E.out(p(t, R.start, R.start + 2.5))).toFixed(4)})`;
458删除:
459删除: logoAt(els.logo, t, { pixels: R.pixels, frame: R.frame, bars: R.bars, blink: [R.blink], speed: 0.7 });
460删除: const bump = barImpact(t, R.bars);
461删除: const lift = E.io(p(t, R.end - 0.9, R.end));
462删除: css($('#logoWrap'), { o: 1 - gone, tf: `translateY(${(bump * 6 - lift * 40).toFixed(2)}px) scale(${(1 - lift * 0.06).toFixed(4)})` });
463删除:
464删除: reveal($('#wordmark'), t, R.word, { stagger: 0.035, dur: 0.6 });
465删除: const [pa, pb] = $('#roomPos').children;
466删除: reveal(pa, t, R.pos, { stagger: 0.035, dur: 0.6 });
467删除: reveal(pb, t, R.pos + 0.4, { stagger: 0.07, dur: 0.6, y: 24 });
468删除: const [sa, sb] = $('#roomSub').children;
469删除: reveal(sa, t, R.sub, { stagger: 0.025, dur: 0.6, y: 10 });
470删除: reveal(sb, t, R.sub + 0.75, { stagger: 0.04, dur: 0.6, y: 10 });
471删除: ['#wordmark', '#roomPos', '#roomSub'].forEach(id => css($(id), { o: 1 - gone, tf: `translateY(${(-lift * 40).toFixed(2)}px)` }));
472删除: }
473删除:
474删除: // Which real-UI plate is on screen at time t.
475删除: function plateAt(t) {
476删除: const A = T.app;
477删除: if (t < A.safetyOpen + 0.05) return 'home';
478删除: if (t < A.allPass) return 'safety-run';
479删除: if (t < A.safetyClose) return 'safety-done';
480删除: if (t < A.clickDesktop + 0.05) return 'home';
481删除: if (t < A.clickTermIcon + 0.05) return 'desktop';
482删除: if (t < A.clickClaudeTerm + 0.05) return 'menu';
483删除: if (t < A.browserOpen) return 'term';
484删除: if (t < A.backToTerm) return 'browser';
485删除: return 'term';
486删除: }
487删除: const typed = (t, text, [a, b]) => {
488删除: const chars = [...text];
489删除: const n = t < a ? 0 : Math.min(chars.length, Math.floor(p(t, a, b) * chars.length) + 1);
490删除: return chars.slice(0, n).join('');
491删除: };
492删除: const DESK_MSG = '帮我把 hello-cage 的 README 改得更清楚';
493删除: const TERM_MSG = '给 hello-cage 加一个健康检查接口';
494删除: const TERM_FINAL = '已添加 GET /healthz,返回 200 和当前版本号。';
495删除:
496删除: function app(t) {
497删除: const A = T.app;
498删除: const lo = E.out(p(t, A.rise - 0.3, A.rise + 0.4)) * (1 - E.io(p(t, A.out + 0.4, A.end)));
499删除: css($('#app'), { o: lo });
500删除: if (lo <= 0) return;
501删除:
502删除: // captions + progress
503删除: const capWin = [[A.step1, A.step2 - 0.2], [A.step2, A.step3 - 0.2], [A.step3, A.step4 - 0.2], [A.step4, A.out]];
504删除: els.caps.forEach((c, i) => {
505删除: const [a, b] = capWin[i];
506删除: const kin = E.out(p(t, a, a + 0.7)), kout = E.io(p(t, b - 0.35, b));
507删除: css(c, { o: kin * (1 - kout), tf: `translateY(${((1 - kin) * 22 - kout * 14).toFixed(2)}px)`, f: blur((1 - kin) * 8 + kout * 8) });
508删除: const k2 = E.out(p(t, a + 0.12, a + 0.9));
509删除: css(c.children[1].lastChild, { o: k2, tf: `translateY(${((1 - k2) * 10).toFixed(2)}px)` });
510删除: els.dots[i].style.transform = `scaleX(${E.io(p(t, a, b)).toFixed(4)})`;
511删除: });
512删除: css($('#progressDots'), { o: win(t, A.step1, A.out, 0.6, 0.4) });
513删除:
514删除: // camera + window entrance / exit
515删除: const [z, fx, fy, ax, ay] = camAt(t);
516删除: const rise = E.out5(p(t, A.rise, A.rise + 1.3));
517删除: const exit = E.io(p(t, A.out, A.end));
518删除: const zz = z * lerp(0.94, 1, rise) * lerp(1, 0.9, exit);
519删除: const tx = ax - fx * zz, ty = ay - fy * zz + (1 - rise) * 160 - exit * 20;
520删除: css($('#cam'), { o: clamp(rise * 1.6) * (1 - exit), tf: `translate(${tx.toFixed(2)}px, ${ty.toFixed(2)}px) scale(${zz.toFixed(5)})`, f: blur(exit * 10) });
521删除: css($('#appFloor'), { o: rise * (1 - exit) * clamp(1 - (z - L.zBase) * 3) });
522删除: css($('#capShade'), { o: clamp((z - L.shadeFrom) * 4) });
523删除:
524删除: const plate = plateAt(t);
525删除: // The safety dialog fades in, settles to "all passed", then fades away; other changes are cuts.
526删除: const fade = {
527删除: 'safety-run': t >= A.safetyOpen ? E.out(p(t, A.safetyOpen + 0.05, A.safetyOpen + 0.25)) : 0,
528删除: 'safety-done': t >= A.allPass && t < A.safetyClose + 0.3 ? E.io(p(t, A.allPass, A.allPass + 0.35)) * (1 - E.io(p(t, A.safetyClose, A.safetyClose + 0.25))) : 0,
529删除: };
530删除: els.plates.forEach(el => {
531删除: const name = el.dataset.plate;
532删除: let o = name === plate ? 1 : 0;
533删除: if (name === 'home' && (plate === 'safety-run' || plate === 'safety-done')) o = 1;
534删除: if (name === 'safety-run') o = plate === 'safety-run' ? fade[name] : plate === 'safety-done' ? 1 : 0;
535删除: if (name === 'safety-done') o = fade[name];
536删除: css(el, { o });
537删除: });
538删除:
539删除: // 01 · the eleven critical checks pass one by one
540删除: const inDialog = t >= A.safetyOpen && t < A.allPass + 0.4;
541删除: let passed = 0;
542删除: els.checkRows.forEach(({ row, spin }, i) => {
543删除: const at = A.checks + 0.15 + i * A.checkStep;
544删除: if (t >= at) passed++;
545删除: css(row, { o: inDialog ? E.out(p(t, at, at + 0.18)) * fade['safety-run'] : 0 });
546删除: css(row.firstChild, { o: Math.sin(Math.PI * p(t, at, at + 0.5)) });
547删除: css(spin, { o: inDialog && t >= A.checks && t < at ? fade['safety-run'] : 0, tf: `rotate(${((t * 420) % 360).toFixed(1)}deg)` });
548删除: });
549删除: $('#checkCount').textContent = `${passed} / 11 通过`;
550删除: css($('#checkCount'), { o: inDialog && t < A.allPass + 0.35 ? fade['safety-run'] : 0 });
551删除: const press = at => 1 - Math.sin(Math.PI * p(t, at - 0.02, at + 0.16)) * 0.05;
552删除:
553删除: // 01 · ready: the status bar tells you where you exit from
554删除: els.rings.forEach((r, i) => css(r, { o: win(t, A.rings[i], A.step2 - 0.4, 0.3, 0.4) }));
555删除:
556删除: // 02 · Claude Desktop running inside the VM display
557删除: const desk = plate === 'desktop' || plate === 'menu';
558删除: css($('#paneDesktop'), { o: desk ? E.out(p(t, A.desktopBoot, A.desktopBoot + 0.45)) : 0 });
559删除: if (desk) {
560删除: const sent = t >= A.send;
561删除: const draft = sent ? '' : typed(t, DESK_MSG, A.typeMsg);
562删除: $('#cdTx').textContent = draft;
563删除: $('#cdPh').style.display = draft ? 'none' : '';
564删除: const typing = t > A.typeMsg[0] && t < A.typeMsg[1] + 0.2;
565删除: css($('#cdCaret'), { o: t >= A.clickInput && (typing || Math.floor(t * 2.2) % 2 === 0) ? 1 : 0 });
566删除: $('#cdSend').style.background = draft ? '#d97757' : '#e8b8a5';
567删除: const mv = E.io(p(t, A.send, A.send + 0.45));
568删除: css($('#cdHello'), { o: E.out(p(t, A.desktopBoot + 0.3, A.desktopBoot + 0.8)) * (1 - mv), tf: `translateY(${(-mv * 30).toFixed(2)}px)` });
569删除: css($('#cdInput'), { tf: `translateY(${(mv * L.inputDrop).toFixed(2)}px)` });
570删除: $('#cdUser').textContent = DESK_MSG;
571删除: const ck = E.out(p(t, A.send + 0.15, A.send + 0.5));
572删除: css($('#cdChat'), { o: ck, tf: `translateY(${((1 - ck) * 12).toFixed(2)}px)` });
573删除: els.cdReply.forEach((el, i) => {
574删除: const at = lerp(A.reply[0], A.reply[1], i / els.cdReply.length);
575删除: const k = E.out(p(t, at, at + 0.35));
576删除: css(el, { o: k, tf: `translateY(${((1 - k) * 8).toFixed(2)}px)` });
577删除: });
578删除: }
579删除:
580删除: // 03 · Claude terminal: Claude Code starts and asks to sign in
581删除: css($('#paneTerm'), { o: plate === 'term' ? 1 : 0 });
582删除: const back = t >= A.backToTerm;
583删除: css($('#termA'), { o: back ? 0 : 1 });
584删除: css($('#termB'), { o: back ? 1 : 0 });
585删除: els.termA.forEach((ln, i) => {
586删除: const at = i === els.termA.length - 1 ? A.opening : A.termLines + i * 0.1;
587删除: const k = E.out(p(t, at, at + 0.25));
588删除: css(ln, { o: k, tf: `translateY(${((1 - k) * 6).toFixed(2)}px)` });
589删除: });
590删除: if (t >= A.opening) $('#termOpening').style.opacity = String(0.55 + 0.45 * Math.abs(Math.sin((t - A.opening) * 5)));
591删除:
592删除: // 04 · authorise in the Cage browser, then back to work
593删除: css($('#paneBrowser'), { o: plate === 'browser' ? E.out(p(t, A.browserOpen, A.browserOpen + 0.3)) : 0 });
594删除: const dn = E.out(p(t, A.authDone, A.authDone + 0.35));
595删除: css($('#authAsk'), { o: 1 - dn });
596删除: css($('#authDone'), { o: dn, tf: `scale(${lerp(0.96, 1, dn).toFixed(4)})` });
597删除: $('#authGo').style.transform = `scale(${press(A.clickAuthorize).toFixed(4)})`;
598删除: els.termB.forEach((ln, i) => {
599删除: if (ln.dataset.r !== undefined) return;
600删除: const at = A.backToTerm + 0.1 + i * 0.25;
601删除: const k = E.out(p(t, at, at + 0.3));
602删除: css(ln, { o: k, tf: `translateY(${((1 - k) * 6).toFixed(2)}px)` });
603删除: });
604删除: $('#termPrompt').textContent = typed(t, TERM_MSG, A.typePrompt);
605删除: const blinkOn = Math.floor(t * 2.2) % 2 === 0;
606删除: css($('#termCaret'), { o: t < A.enterPrompt && (t > A.typePrompt[0] || blinkOn) ? 1 : 0 });
607删除: els.reply2.forEach((r, i) => {
608删除: const k = E.out(p(t, A.reply2[i], A.reply2[i] + 0.35));
609删除: css(r, { o: k, tf: `translateY(${((1 - k) * 6).toFixed(2)}px)` });
610删除: });
611删除: $('#termFinal').textContent = TERM_FINAL.slice(0, Math.floor(p(t, A.reply2[3], A.reply2[3] + 1.0) * TERM_FINAL.length));
612删除:
613删除: // cursor + clicks
614删除: const [cx, cy, co] = cursorAt(t);
615删除: const pressK = clicks.reduce((m, [at]) => Math.max(m, Math.sin(Math.PI * p(t, at - 0.04, at + 0.14))), 0);
616删除: css($('#cursor'), { o: co, tf: `translate(${(cx - 5).toFixed(2)}px, ${(cy - 3).toFixed(2)}px) scale(${(1 - pressK * 0.16).toFixed(4)})` });
617删除: let rip = null;
618删除: clicks.forEach(([at, pos]) => { if (t >= at && t < at + 0.55) rip = [p(t, at, at + 0.55), pos]; });
619删除: if (rip) {
620删除: const [k, [x, y]] = rip;
621删除: css($('#ripple'), { o: (1 - k) * 0.9, tf: `translate(${x.toFixed(2)}px, ${y.toFixed(2)}px) scale(${lerp(0.3, 1.5, E.out(k)).toFixed(4)})` });
622删除: } else css($('#ripple'), { o: 0 });
623删除: }
624删除:
625删除: // Terminal j goes to account ACCT_ASSIGN[j]: fewest terminals first, then the most quota left.
626删除: const ACCT_ASSIGN = [0, 1, 0];
627删除: function accounts(t) {
628删除: const C = T.accounts;
629删除: const o = E.io(p(t, C.start, C.start + 0.5)) * (1 - E.io(p(t, C.out, C.end)));
630删除: css($('#accts'), { o });
631删除: if (o <= 0) return;
632删除: const kc = E.out(p(t, C.start + 0.1, C.start + 0.8));
633删除: css($('#accts .cap'), { o: kc, tf: `translateY(${((1 - kc) * 22).toFixed(2)}px)`, f: blur((1 - kc) * 8) });
634删除: $$('#accts .dots b').forEach((b, i) => { b.style.transform = `scaleX(${i < 4 ? 1 : E.io(p(t, C.start, C.out)).toFixed(4)})`; });
635删除: const pk = E.out5(p(t, C.panel, C.panel + 0.6));
636删除: css($('#acctPanel'), { o: clamp(pk * 1.5), tf: `translateY(${((1 - pk) * 50).toFixed(2)}px)` });
637删除: els.accts.forEach((r, i) => {
638删除: const k = E.out5(p(t, C.rows[i], C.rows[i] + 0.5));
639删除: css(r, { o: k, tf: `translateY(${((1 - k) * 20).toFixed(2)}px)` });
640删除: const mine = ACCT_ASSIGN.map((a, j) => (a === i ? C.terms[j] + 0.45 : null)).filter(x => x !== null);
641删除: const em = r.querySelector('.load em');
642删除: if (em) em.textContent = String(mine.filter(x => t >= x).length);
643删除: css(r.querySelector('.ring'), { o: mine.reduce((m, x) => Math.max(m, Math.sin(Math.PI * p(t, x - 0.1, x + 0.7))), 0) });
644删除: const skip = r.querySelector('.skip');
645删除: if (skip) css(skip, { o: E.out(p(t, C.terms[0] + 0.2, C.terms[0] + 0.5)), tf: `translateX(${(Math.sin(t * 60) * 3 * Math.sin(Math.PI * p(t, C.terms[0] + 0.2, C.terms[0] + 0.6))).toFixed(2)}px)` });
646删除: });
647删除: els.acctBars.forEach(({ el, v }, n) => {
648删除: const row = Math.floor(n / 2);
649删除: el.style.transform = `scaleX(${(v * E.out(p(t, C.rows[row] + 0.25, C.rows[row] + 1.0))).toFixed(4)})`;
650删除: });
651删除: css($('#termCol .tlabel'), { o: E.out(p(t, C.terms[0] - 0.4, C.terms[0])) });
652删除: els.pills.forEach((pl, j) => {
653删除: const at = C.terms[j];
654删除: const k = E.out5(p(t, at, at + 0.45));
655删除: css(pl, { o: clamp(k * 2), tf: `translateX(${((1 - k) * 90).toFixed(2)}px)` });
656删除: css(pl.querySelector('.to'), { o: E.out(p(t, at + 0.5, at + 0.7)), tf: `scale(${Math.max(0, E.back(p(t, at + 0.5, at + 0.8), 2)).toFixed(4)})` });
657删除: const w = els.acctWires[j];
658删除: const d = E.io(p(t, at + 0.1, at + 0.5));
659删除: w.path.style.opacity = (d > 0 ? lerp(0.9, 0.35, p(t, at + 0.6, at + 1.4)) : 0).toFixed(3);
660删除: const pt = w.path.getPointAtLength(d * w.len);
661删除: w.dot.setAttribute('cx', pt.x.toFixed(2));
662删除: w.dot.setAttribute('cy', pt.y.toFixed(2));
663删除: w.dot.style.opacity = d > 0 && d < 1 ? 1 : 0;
664删除: });
665删除: }
666删除:
667删除: function perks(t) {
668删除: const P = T.perks;
669删除: const o = E.io(p(t, P.start, P.start + 0.6)) * (1 - E.io(p(t, P.out, P.end)));
670删除: css($('#perks'), { o });
671删除: if (o <= 0) return;
672删除: const [a, b] = $('#perksHead').children;
673删除: reveal(a, t, P.head, { stagger: 0.05, dur: 0.6 });
674删除: reveal(b, t, P.head + 0.2, { stagger: 0.045, dur: 0.6 });
675删除: $$('#perkRow .perk').forEach((el, i) => {
676删除: const k = E.out5(p(t, P.tiles[i], P.tiles[i] + 0.75));
677删除: css(el, { o: clamp(k * 1.5), tf: `translateY(${((1 - k) * 70).toFixed(2)}px)` });
678删除: el.querySelector('.pi').style.transform = `scale(${Math.max(0, E.back(p(t, P.tiles[i] + 0.15, P.tiles[i] + 0.55), 2.2)).toFixed(4)})`;
679删除: });
680删除: const drift = p(t, P.start, P.end);
681删除: $('#perkRow').style.transform = `translateY(${(-drift * 14).toFixed(2)}px)`;
682删除: $('#perksHead').style.transform = `translateY(${(-drift * 8).toFixed(2)}px)`;
683删除: }
684删除:
685删除: function letter(t) {
686删除: const L = T.letter;
687删除: const layer = $('#letter');
688删除: const o = E.io(p(t, L.start, L.start + 0.9)) * (1 - E.io(p(t, L.out, L.end)));
689删除: css(layer, { o });
690删除: if (o <= 0) return;
691删除: const img = $('#art img');
692删除: const k = p(t, L.start, L.end);
693删除: img.style.transform = `scale(${lerp(1.12, 1.0, E.out(k)).toFixed(5)}) translate(${lerp(-10, 6, k).toFixed(2)}px, ${lerp(8, -4, k).toFixed(2)}px)`;
694删除: const ar = E.out(p(t, L.start + 0.2, L.start + 1.8));
695删除: css($('#art'), { o: ar, f: blur((1 - ar) * 14) });
696删除: const sweep = E.io(p(t, L.start + 0.6, L.start + 3.2));
697删除: css($('#artLight'), { o: Math.sin(Math.PI * sweep) * 0.9, tf: `translateX(${lerp(-70, 70, sweep).toFixed(2)}%)` });
698删除: css($('#letterKicker'), { o: E.out(p(t, L.lines[0] - 0.6, L.lines[0] + 0.4)) * 1 });
699删除: const ls = $$('#letterText [data-split]');
700删除: ls.forEach((el, i) => reveal(el, t, L.lines[i], { stagger: 0.055, dur: 0.8, y: 14, b: 12 }));
701删除: const drift = E.out(p(t, L.lines[0], L.end));
702删除: $('#letterText').style.transform = `translateY(${(-drift * 14).toFixed(2)}px)`;
703删除: }
704删除:
705删除: function end(t) {
706删除: const N = T.end;
707删除: const layer = $('#end');
708删除: const o = E.io(p(t, N.start, N.start + 0.8));
709删除: css(layer, { o });
710删除: if (o <= 0) return;
711删除: const a = N.start + 0.3;
712删除: logoAt(els.endLogo, t, { pixels: a, frame: a + 0.55, bars: [a + 0.85, a + 1.0], blink: [N.blink], speed: 0.7 });
713删除: css($('#endLogo'), { tf: `translateY(${(barImpact(t, [a + 0.85, a + 1.0]) * 4).toFixed(2)}px)` });
714删除: const k = (d, dur = 0.8) => E.out(p(t, a + d, a + d + dur));
715删除: const rise = (el, d) => { const v = k(d); css(el, { o: v, tf: `translateY(${((1 - v) * 16).toFixed(2)}px)`, f: blur((1 - v) * 6) }); };
716删除: rise($('#endWord'), 0.9);
717删除: rise($('#endSub'), 1.15);
718删除: $$('#endPlat span').forEach((s, i) => rise(s, 1.45 + i * 0.1));
719删除: rise($('#endUrl'), 1.85);
720删除: rise($('#endGit'), 2.05);
721删除: rise($('#endNote'), 2.3);
722删除: }
723删除:
724删除: function chrome(t, frame) {
725删除: const dark = (t > T.pain.holdShrink && t < T.room.start + 0.4) || (t > T.letter.start + 0.4 && t < T.letter.out + 0.4);
726删除: const g = $('#grain');
727删除: g.style.opacity = dark ? 0.55 : 0.3;
728删除: g.style.transform = `translate(${Math.floor(hash(frame) * 200) - 100}px, ${Math.floor(hash(frame + 0.5) * 200) - 100}px)`;
729删除: $('#vignette').style.opacity = dark ? 1 : 0.5;
730删除: }
731删除:
732删除: function render(t) {
733删除: t = clamp(t, 0, T.duration);
734删除: pain(t);
735删除: room(t);
736删除: app(t);
737删除: accounts(t);
738删除: perks(t);
739删除: letter(t);
740删除: end(t);
741删除: chrome(t, Math.round(t * T.fps));
742删除: }
743删除:
744删除: // ---------- boot ----------
745删除: const params = new URLSearchParams(location.search);
746删除: const renderMode = params.has('render');
747删除: if (renderMode) document.body.classList.add('render');
748删除:
749删除: function fit() {
750删除: const stage = $('#stage');
751删除: const s = renderMode ? 1 : Math.min(innerWidth / T.width, innerHeight / T.height);
752删除: stage.style.position = 'absolute';
753删除: stage.style.left = ((innerWidth - T.width * s) / 2) + 'px';
754删除: stage.style.top = ((innerHeight - T.height * s) / 2) + 'px';
755删除: stage.style.transform = `scale(${s})`;
756删除: }
757删除:
758删除: build();
759删除: fit();
760删除: addEventListener('resize', fit);
761删除: render(0);
762删除:
763删除: const ready = (async () => {
764删除: await document.fonts.ready;
765删除: const img = $('#art img');
766删除: if (!img.complete) await new Promise(r => { img.onload = img.onerror = r; });
767删除: try { await img.decode(); } catch { /* the frame still renders without the image */ }
768删除: measure();
769删除: render(0);
770删除: })();
771删除:
772删除: window.__promo = {
773删除: ready,
774删除: duration: T.duration,
775删除: fps: T.fps,
776删除: seek: t => render(t),
777删除: };
778删除:
779删除: if (renderMode) return;
780删除:
781删除: // Preview player.
782删除: let now = parseFloat(params.get('t') || '0'), playing = !params.has('t'), last = null;
783删除: const scrub = $('#scrub'), tc = $('#tc'), play = $('#play');
784删除: scrub.max = T.duration;
785删除: const show = () => { render(now); scrub.value = now; tc.textContent = now.toFixed(2).padStart(5, '0'); play.textContent = playing ? '暂停' : '播放'; };
786删除: const loop = ts => {
787删除: if (playing && last !== null) { now += (ts - last) / 1000; if (now >= T.duration) { now = T.duration; playing = false; } }
788删除: last = ts;
789删除: show();
790删除: requestAnimationFrame(loop);
791删除: };
792删除: ready.then(() => requestAnimationFrame(loop));
793删除: play.onclick = () => { if (now >= T.duration) now = 0; playing = !playing; };
794删除: $('#restart').onclick = () => { now = 0; playing = true; };
795删除: scrub.oninput = () => { now = parseFloat(scrub.value); playing = false; };
796删除: addEventListener('keydown', e => {
797删除: if (e.code === 'Space') { e.preventDefault(); play.onclick(); }
798删除: if (e.code === 'ArrowRight') { now = Math.min(T.duration, now + (e.shiftKey ? 0.1 : 1)); playing = false; }
799删除: if (e.code === 'ArrowLeft') { now = Math.max(0, now - (e.shiftKey ? 0.1 : 1)); playing = false; }
800删除: });
801删除:})();
删除promo/render.mjs+0 −137
@@ -1,137 +0,0 @@
1删除:// Render the promo to MP4: serve the repo, step the page frame by frame in
2删除:// headless Chrome, and pipe the frames plus the soundtrack into ffmpeg.
3删除://
4删除:// node render.mjs full 1920×1080 @ 60 fps → out/claude-cage-promo.mp4
5删除:// node render.mjs --fps 30 --scale 0.5 quick draft
6删除:// node render.mjs --frames 12,20.5,33 stills only → out/frame-*.png
7删除:// node render.mjs --portrait 9:16 cut → out/claude-cage-promo-vertical.mp4 (combines with the flags above)
8删除:// node render.mjs --preview serve the page for live preview
9删除://
10删除:// Chrome: set CHROME_PATH, otherwise the usual install locations on macOS,
11删除:// Windows and Linux are tried.
12删除:import { spawn } from 'node:child_process';
13删除:import { createReadStream, existsSync, mkdirSync, statSync } from 'node:fs';
14删除:import { createServer } from 'node:http';
15删除:import { createRequire } from 'node:module';
16删除:import { extname, join, normalize, resolve, sep } from 'node:path';
17删除:import { fileURLToPath } from 'node:url';
18删除:import { findChrome } from './chrome.mjs';
19删除:
20删除:const require = createRequire(import.meta.url);
21删除:const here = fileURLToPath(new URL('.', import.meta.url));
22删除:const root = resolve(here, '..');
23删除:const outDir = join(here, 'out');
24删除:const TL = require('./timeline.js');
25删除:
26删除:const args = process.argv.slice(2);
27删除:const opt = (name, fallback) => {
28删除: const i = args.indexOf(`--${name}`);
29删除: return i >= 0 ? args[i + 1] : fallback;
30删除:};
31删除:const fps = Number(opt('fps', TL.fps));
32删除:const scale = Number(opt('scale', 1));
33删除:const portrait = args.includes('--portrait');
34删除:const [W, H] = portrait ? [1080, 1920] : [TL.width, TL.height];
35删除:const output = resolve(opt('out', join(outDir, portrait ? 'claude-cage-promo-vertical.mp4' : 'claude-cage-promo.mp4')));
36删除:const audio = resolve(opt('audio', join(outDir, 'soundtrack.wav')));
37删除:
38删除:const TYPES = {
39删除: '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', '.mjs': 'text/javascript; charset=utf-8',
40删除: '.css': 'text/css', '.png': 'image/png', '.jpg': 'image/jpeg', '.svg': 'image/svg+xml', '.json': 'application/json',
41删除: '.mp4': 'video/mp4', '.wav': 'audio/wav',
42删除:};
43删除:
44删除:function serve(port = 0) {
45删除: const server = createServer((req, res) => {
46删除: const path = decodeURIComponent(new URL(req.url, 'http://x').pathname);
47删除: const file = normalize(join(root, path.endsWith('/') ? path + 'index.html' : path));
48删除: if (!(file + sep).startsWith(root + sep) || !existsSync(file) || !statSync(file).isFile()) {
49删除: res.writeHead(404).end('not found');
50删除: return;
51删除: }
52删除: res.writeHead(200, { 'content-type': TYPES[extname(file)] || 'application/octet-stream', 'cache-control': 'no-store' });
53删除: createReadStream(file).pipe(res);
54删除: });
55删除: return new Promise(ok => server.listen(port, '127.0.0.1', () => ok(server)));
56删除:}
57删除:
58删除:async function openPage(server) {
59删除: const { default: puppeteer } = await import('puppeteer-core');
60删除: const browser = await puppeteer.launch({
61删除: executablePath: findChrome(),
62删除: headless: true,
63删除: args: ['--hide-scrollbars', '--force-color-profile=srgb', '--font-render-hinting=none', '--disable-lcd-text'],
64删除: });
65删除: const page = await browser.newPage();
66删除: await page.setViewport({ width: W, height: H, deviceScaleFactor: scale });
67删除: const { port } = server.address();
68删除: page.on('pageerror', e => console.error('page error:', e.message));
69删除: await page.goto(`http://127.0.0.1:${port}/promo/index.html?render${portrait ? '&portrait' : ''}`, { waitUntil: 'networkidle0', timeout: 120000 });
70删除: await page.evaluate(() => window.__promo.ready);
71删除: // Touch every act once so lazily loaded font subsets are in before frame 0.
72删除: for (let t = 0; t < TL.duration; t += 0.5) await page.evaluate(x => window.__promo.seek(x), t);
73删除: await page.evaluate(() => document.fonts.ready);
74删除: return { browser, page };
75删除:}
76删除:
77删除:async function stills(times) {
78删除: const server = await serve();
79删除: const { browser, page } = await openPage(server);
80删除: mkdirSync(outDir, { recursive: true });
81删除: for (const t of times) {
82删除: await page.evaluate(x => window.__promo.seek(x), t);
83删除: const path = join(outDir, `frame-${portrait ? 'v-' : ''}${t.toFixed(2)}.png`);
84删除: await page.screenshot({ path, type: 'png' });
85删除: console.log(path);
86删除: }
87删除: await browser.close();
88删除: server.close();
89删除:}
90删除:
91删除:async function video() {
92删除: const ffmpeg = require('ffmpeg-static');
93删除: const server = await serve();
94删除: const { browser, page } = await openPage(server);
95删除: mkdirSync(outDir, { recursive: true });
96删除: const total = Math.round(TL.duration * fps);
97删除: const hasAudio = existsSync(audio);
98删除: if (!hasAudio) console.warn(`No soundtrack at ${audio}; run "node soundtrack.mjs" first. Rendering silent video.`);
99删除: const w = Math.round(W * scale), h = Math.round(H * scale);
100删除: const ff = spawn(ffmpeg, [
101删除: '-y', '-loglevel', 'error',
102删除: '-f', 'image2pipe', '-c:v', 'mjpeg', '-framerate', String(fps), '-i', '-',
103删除: ...(hasAudio ? ['-i', audio] : []),
104删除: '-vf', `scale=${w}:${h}:flags=lanczos,format=yuv420p`,
105删除: '-c:v', 'libx264', '-preset', scale < 1 ? 'veryfast' : 'slow', '-crf', '16', '-tune', 'animation',
106删除: '-colorspace', 'bt709', '-color_primaries', 'bt709', '-color_trc', 'bt709',
107删除: ...(hasAudio ? ['-c:a', 'aac', '-b:a', '256k', '-shortest'] : []),
108删除: '-movflags', '+faststart', output,
109删除: ], { stdio: ['pipe', 'inherit', 'inherit'] });
110删除: const done = new Promise((ok, fail) => ff.on('close', c => (c === 0 ? ok() : fail(new Error(`ffmpeg exited ${c}`)))));
111删除:
112删除: const started = Date.now();
113删除: for (let i = 0; i < total; i++) {
114删除: await page.evaluate(x => window.__promo.seek(x), i / fps);
115删除: const buf = await page.screenshot({ type: 'jpeg', quality: 96, optimizeForSpeed: false });
116删除: if (!ff.stdin.write(buf)) await new Promise(r => ff.stdin.once('drain', r));
117删除: if (i % fps === 0) {
118删除: const s = (Date.now() - started) / 1000;
119删除: process.stdout.write(`\r${i}/${total} frames · ${s.toFixed(0)}s elapsed · ~${((s / (i + 1)) * (total - i)).toFixed(0)}s left `);
120删除: }
121删除: }
122删除: ff.stdin.end();
123删除: await done;
124删除: await browser.close();
125删除: server.close();
126删除: console.log(`\n${output}`);
127删除:}
128删除:
129删除:if (args.includes('--preview')) {
130删除: const server = await serve(Number(opt('port', 4173)));
131删除: console.log(`Preview: http://127.0.0.1:${server.address().port}/promo/index.html`);
132删除: console.log('Space play/pause · ←/→ seek 1s (Shift: 0.1s) · ?t=12.5 opens paused at a time');
133删除:} else if (opt('frames')) {
134删除: await stills(opt('frames').split(',').map(Number));
135删除:} else {
136删除: await video();
137删除:}
删除promo/social/README.md+0 −5
@@ -1,5 +0,0 @@
1删除:# Cage 社交宣传素材
2删除:
3删除:本目录保存横版、竖版及社区风格的正式配图,以及对应的生成提示词。文件名含 `x` 的配图用于横版社交平台,含 `xiaohongshu` 的配图用于竖版发布;同名的 v2 为后续修订稿。图中文字与界面用于产品宣传,不表示用户账户或网络验收结果。
4删除:
5删除:宣传片源码位于上一级目录,导出成片位于 `promo/out/`,不纳入源码提交。生成服务的调用元数据、中间候选图与私有诊断输出不进入公开源码。
删除promo/social/cage-anime-cover-prompt.txt+0 −11
@@ -1,11 +0,0 @@
1删除:Use case: ads-marketing, open-source community anime key visual.
2删除:Input image 1: the ACTUAL Claude Cage website cover art, the identity and narrative reference. Make a polished Chinese anime promotional poster based on it, portrait 1536x2048. Preserve the same recognizable orange long-haired adult anime heroine, amber eyes, orange flower hair ornament, black ribbon, modest cream high-neck blouse and dark clothing, warm bronze cage window, extended hand offering a cream envelope sealed with an orange flower wax seal. Preserve her gently aloof, slightly pouty gaze at viewer and warm golden-hour light. This is an affectionate fictional mascot scene, no menace. Render beautiful clean 2D anime linework and nuanced cel shading, luminous hair, delicate face, confident hands and perspective, with painterly warm background. Avoid photorealism, 3D plastic, chibi and extra characters.
3删除:Art direction: an elegant anime illustration artbook cover for a small developer-made open-source project, warm cream paper, burnt orange and dark charcoal typography. Illustration occupies most of the poster, a tall bronze window as natural frame, heroine's face prominent, envelope reaching toward viewer at lower center. Compose the full artwork and text together with excellent readability. Top title region in warm cream, transition naturally into rich illustration; small restrained footer. Strong negative space and generous margins. No dense sales brochure, no feature cards, no prices, no badges, no buttons, no QR, no legal small print, no official endorsement, no watermark. The visual should feel inviting and slightly playful, low commercial intensity.
4删除:Render ONLY this exact copy, correctly and clearly:
5删除:Small top brand: "Claude Cage"
6删除:Large main headline in two lines: "把 Claude 大小姐" / "关起来。"
7删除:One supporting line: "一个为 Claude 准备的开源小窝"
8删除:Near bottom, modest readable feature line: "代理隔离 · 环境自动配置 · 多账号调度"
9删除:Footer platform line: "macOS / Windows / Linux"
10删除:Footer repository: "github.com/Lee-xeo/Claude-Cage"
11删除:No extra text or tiny pseudo-writing. Do not put words on the envelope. Keep typography separate from the heroine's face and hands. Output a finished ready-to-share poster, not a mockup of a poster on a wall.
删除promo/social/cage-anime-cover-x-prompt.txt+0 −9
@@ -1,9 +0,0 @@
1删除:Use case: ads-marketing, open-source community anime key visual. Adapt the supplied finished Claude Cage portrait poster into a beautifully composed landscape 2048x1152 X/Twitter image. Keep the same adult orange-haired anime heroine, amber eyes, orange flower ornaments, dark ribbon, modest cream blouse, bronze cage window, reaching hand and sealed envelope, warm golden evening lighting and cream paper artbook identity. Preserve face identity, nuanced 2D anime rendering and warm wistful expression. Recompose, do not stretch or crop the portrait. Left 47%: quiet cream negative space with generous typography. Right 53%: full-height anime illustration, face large and unobstructed inside bronze window, envelope reaching across lower center. Hair and golden light can softly bridge the two halves. Sophisticated illustrated cover, not sales campaign; no price, no buttons, no disclaimers, no cards, no added characters, no watermark.
2删除:Use ONLY the exact following text, all correctly spelled, readable and inside 72px safe margins:
3删除:Small brand at upper left: "Claude Cage"
4删除:Large headline on left in three lines: "把 Claude" / "大小姐" / "关起来。"
5删除:Subhead below: "一个为 Claude 准备的开源小窝"
6删除:Three compact separate readable lines lower left: "代理隔离" / "环境自动配置" / "多账号调度"
7删除:Footer left: "macOS / Windows / Linux"
8删除:Repository along bottom left: "github.com/Lee-xeo/Claude-Cage"
9删除:Keep text on calm light background, no text on heroine or envelope. Footer comfortably above lower edge. Retain original's artbook-like burnt-orange and charcoal typography, refined spacing and low commercial intensity.
删除promo/social/cage-anime-x.png

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

删除promo/social/cage-anime-xiaohongshu.png

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

删除promo/social/cage-x-2048x1152-v2-prompt.txt+0 −2
@@ -1,2 +0,0 @@
1删除:Edit this existing Cage advertisement with a narrowly scoped design revision. Remove the entire oversized orange '0 元' price and '软件使用费' caption. Do NOT replace them with any oversized words. Rebalance the vacated space with generous intentional whitespace and the existing glass cage illustration. Keep '完全开源' only in the existing feature section, with the same modest prominence as the other features. The focus should now clearly be the main headline and protective glass-cube mascot. No price, zero-cost, or sale-like message. Change the bottom orange CTA from '免费获取' to '查看源码'; if it contains '参与共建', keep that phrase. Preserve all other existing Chinese text verbatim, including main title, subtitle, steps strip, feature descriptions, platform names, GitHub URL and fine print. Preserve logo, ivory background, black typography, orange and sage accents, mascot design, premium polished glass/metal rendering, overall visual identity. Maintain careful legibility and editorial alignment. Do not introduce new copy.
2删除:Landscape: keep the large headline at left and glass cage at right. Use the former price area below the subtitle as calm whitespace, subtly vertically balance the headline block if needed. Keep all four bottom feature columns.
删除promo/social/cage-x-2048x1152.png

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

删除promo/social/cage-x-v2.png

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

删除promo/social/cage-x-v3-prompt.txt+0 −1
@@ -1 +0,0 @@
1删除:Perform a precise local text removal on the supplied finished poster. Remove ONLY the two small fine-print lines at the bottom right, to the right of the GitHub URL. The exact lines to completely erase are: "代理与 Claude 服务费用另计;首次启动需下载环境。" and "网络隔离不承诺免封号;Windows / Linux 为预览版。". Seamlessly reconstruct the existing warm ivory paper background underneath. Leave the area blank. Do not add replacement text. Keep the entire rest of the image unchanged: same dimensions, exact composition, all other Chinese wording and typography, logo, headline, glass cage and orange mascot, network lines, setup bar, four feature blocks, platform icons and names, orange source-code CTA, GitHub icon and URL. Do not recompose, recenter, crop, or resize any element. This is removal of the specified fine-print block only.
删除promo/social/cage-xiaohongshu-1536x2048-v2-prompt.txt+0 −2
@@ -1,2 +0,0 @@
1删除:Edit this existing Cage advertisement with a narrowly scoped design revision. Remove the entire oversized orange '0 元' price and '软件使用费' caption. Do NOT replace them with any oversized words. Rebalance the vacated space with generous intentional whitespace and the existing glass cage illustration. Keep '完全开源' only in the existing feature section, with the same modest prominence as the other features. The focus should now clearly be the main headline and protective glass-cube mascot. No price, zero-cost, or sale-like message. Change the bottom orange CTA from '免费获取' to '查看源码'; if it contains '参与共建', keep that phrase. Preserve all other existing Chinese text verbatim, including main title, subtitle, steps strip, feature descriptions, platform names, GitHub URL and fine print. Preserve logo, ivory background, black typography, orange and sage accents, mascot design, premium polished glass/metal rendering, overall visual identity. Maintain careful legibility and editorial alignment. Do not introduce new copy.
2删除:Portrait: thoughtfully recenter the hero cube within its illustration area, retaining the surrounding network motif; leave breathing room where the price was. Preserve the lower feature grid layout.
删除promo/social/cage-xiaohongshu-1536x2048.png

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

删除promo/social/cage-xiaohongshu-v2.png

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

删除promo/social/cage-xiaohongshu-v3-prompt.txt+0 −1
@@ -1 +0,0 @@
1删除:Perform a precise local text removal on the supplied finished poster. Remove ONLY the two small fine-print lines at the bottom left, below the platform and GitHub footer row. The exact lines to completely erase are: "代理与 Claude 服务费用另计;首次启动需下载环境。" and "网络隔离不承诺免封号;Windows / Linux 为预览版。". Seamlessly reconstruct the existing warm ivory paper background underneath. Leave the area blank. Do not add replacement text. Keep the entire rest of the image unchanged: same dimensions, exact composition, all other Chinese wording and typography, logo, headline, glass cage and orange mascot, network lines, setup bar, four feature blocks, platform icons and names, orange source-code CTA, GitHub icon and URL. Do not recompose, recenter, crop, or resize any element. This is removal of the specified fine-print block only.
删除promo/social/community-01-readme-prompt.txt+0 −16
@@ -1,16 +0,0 @@
1删除:Use case: ads-marketing, specifically an independent OPEN SOURCE COMMUNITY PROJECT introduction, not a commercial advertisement.
2删除:Create a complete finished Chinese poster 1536x2048. Input image is ONLY the actual Cage logo reference: orange pixel creature behind black cage bars. Preserve recognizable logo identity but do not scale the reference to fill poster. This is a new art direction.
3删除:Audience: developers and Claude users sharing a useful open source tool on Xiaohongshu and X. Quiet, sincere, useful, inviting. Strong readable Chinese typography with generous margins, clear hierarchy. No price, no "0元", no sales pitch, no button CTA, no glossy glass/metal cube, no security shield, no exaggerated safety claims, no disclaimer/fine-print block at bottom, no QR, no official endorsement, no invented stats, no extra text.
4删除:Keep all body copy at genuinely phone-readable size; repository URL must be accurate.
5删除:
6删除:Direction A: minimal open-source README / beautifully typeset independent project release sheet. Almost white warm paper #FAF9F6, charcoal type, very small vermilion accents. Flat graphic design, no 3D. A clean small Cage logo at top beside an understated OPEN SOURCE label. Large but calm mixed Latin and Chinese title, left aligned. Middle features a small charming flat pixel Cage mascot with simple fine network lines inside a thin outline of a workspace; it should occupy at most one quarter of page and feel like a diagrammatic illustration, not a luxury product. Lots of calm whitespace. Below, three vertically stacked text sections, divided by thin horizontal lines, simple small index numbers. Plain footer invitation, not boxed. Aim for a GitHub project beautifully introduced by its maintainer.
7删除:Use EXACT copy:
8删除:Top: "Cage" and "OPEN SOURCE"
9删除:Headline: "给 Claude 一个" / "独立的工作环境。"
10删除:Introduction: "一个开源桌面工具,把环境搭建和网络检查放在一起。"
11删除:Section 01: "配置自己的代理,启动环境" / "环境自动准备,浏览器、终端、编辑器一处就绪。"
12删除:Section 02: "网络隔离,有据可查" / "内置泄漏检查,代理断开不回退直连。"
13删除:Section 03: "支持多账号调度" / "新建 Claude Code 终端时自动分配账号。"
14删除:Footer invitation: "代码公开,欢迎提 Issue、审查与贡献。"
15删除:Platforms: "macOS / Windows / Linux"
16删除:Repo: "github.com/Lee-xeo/Claude-Cage"
删除promo/social/community-01-readme-x-prompt.txt+0 −5
@@ -1,5 +0,0 @@
1删除:Use case: ads-marketing, independent open source community introduction.
2删除:Adapt the supplied finished Cage portrait poster into a carefully recomposed 2048x1152 LANDSCAPE image for X/Twitter. Preserve this particular reference's distinctive visual style, palette, logo, illustration, and ALL Chinese and English copy VERBATIM. Do not merely crop or stretch. No new copy, no commercial CTA, no prices, no safety guarantees, no disclaimers, no extra labels. The reference is the complete source of copy and style.
3删除:Composition: compact logo/brand at top left, left-aligned main headline and short introduction in left 55 percent; move the main illustration to the upper right 40 percent; arrange the functional notes in a generous full-width lower section with clear hierarchy, and use a plain understated bottom contribution invitation, platform names, repository. Keep font sizes comfortably readable and avoid a dense brochure. Use 72px minimum margins. Preserve line weight and character design, no glossy 3D makeover. Rebalance so it feels designed for landscape, not squeezed.
4删除:Exact repository: github.com/Lee-xeo/Claude-Cage
5删除:Keep the white README-like editorial design. The three numbered sections may run across three columns below the main headline/illustration area.
删除promo/social/community-01-readme-x.png

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

删除promo/social/community-01-readme-xiaohongshu.png

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

删除promo/social/community-02-dev-notes-prompt.txt+0 −18
@@ -1,18 +0,0 @@
1删除:Use case: ads-marketing, specifically an independent OPEN SOURCE COMMUNITY PROJECT introduction, not a commercial advertisement.
2删除:Create a complete finished Chinese poster 1536x2048. Input image is ONLY the actual Cage logo reference: orange pixel creature behind black cage bars. Preserve recognizable logo identity but do not scale the reference to fill poster. This is a new art direction.
3删除:Audience: developers and Claude users sharing a useful open source tool on Xiaohongshu and X. Quiet, sincere, useful, inviting. Strong readable Chinese typography with generous margins, clear hierarchy. No price, no "0元", no sales pitch, no button CTA, no glossy glass/metal cube, no security shield, no exaggerated safety claims, no disclaimer/fine-print block at bottom, no QR, no official endorsement, no invented stats, no extra text.
4删除:Keep all body copy at genuinely phone-readable size; repository URL must be accurate.
5删除:
6删除:Direction B: maintainer's personal developer notebook / open source field notes. Warm off-white faint square-grid paper. Deep ink navy typography, restrained burnt orange handwritten underlines. Editorial but friendly, human-made, very organized. Main headline typeset in readable Chinese sans, supporting annotation in neat handwritten Chinese, not sloppy. Centerpiece: hand-drawn 2D laptop/workbench with browser, terminal, editor as three simplified panes containing NO tiny pseudo text; small orange pixel mascot standing by it, drawn from logo. Light pencil arrows connect three real readable annotations "浏览器" "终端" "编辑器". The diagram should feel like someone explaining their small tool, not mock official UI. Beneath, 3 concise handwritten-note rows with simple checkboxes or dashes, no feature cards. Tiny Cage logo top. A few charming orange pencil marks, no unnecessary decoration. Calm, personal.
7删除:Use EXACT copy:
8删除:Top: "Cage / 开发者手记"
9删除:Headline: "只是想好好用 Claude," / "于是做了个开源工具。"
10删除:Subhead: "把反复折腾的环境配置,整理成一个桌面应用。"
11删除:Illustration labels only: "浏览器" / "终端" / "编辑器"
12删除:Notes:
13删除:"配置代理,环境自动准备"
14删除:"内置泄漏检查,代理断开不回退直连"
15删除:"多账号调度:新建 Claude Code 终端时分配"
16删除:Small invitation above footer: "还在持续打磨,欢迎一起提问题、改代码。"
17删除:Footer: "macOS / Windows / Linux"
18删除:Repo: "github.com/Lee-xeo/Claude-Cage"
删除promo/social/community-02-dev-notes-x-prompt.txt+0 −5
@@ -1,5 +0,0 @@
1删除:Use case: ads-marketing, independent open source community introduction.
2删除:Adapt the supplied finished Cage portrait poster into a carefully recomposed 2048x1152 LANDSCAPE image for X/Twitter. Preserve this particular reference's distinctive visual style, palette, logo, illustration, and ALL Chinese and English copy VERBATIM. Do not merely crop or stretch. No new copy, no commercial CTA, no prices, no safety guarantees, no disclaimers, no extra labels. The reference is the complete source of copy and style.
3删除:Composition: compact logo/brand at top left, left-aligned main headline and short introduction in left 55 percent; move the main illustration to the upper right 40 percent; arrange the functional notes in a generous full-width lower section with clear hierarchy, and use a plain understated bottom contribution invitation, platform names, repository. Keep font sizes comfortably readable and avoid a dense brochure. Use 72px minimum margins. Preserve line weight and character design, no glossy 3D makeover. Rebalance so it feels designed for landscape, not squeezed.
4删除:Exact repository: github.com/Lee-xeo/Claude-Cage
5删除:Keep handwritten notebook style, the laptop labels 浏览器 / 终端 / 编辑器, and the personal maintainer tone. Headline can wrap in two lines, and the three check notes may sit in the lower third.
删除promo/social/community-02-dev-notes-x.png

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

删除promo/social/community-02-dev-notes-xiaohongshu.png

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

删除promo/social/community-03-pixel-club-prompt.txt+0 −18
@@ -1,18 +0,0 @@
1删除:Use case: ads-marketing, specifically an independent OPEN SOURCE COMMUNITY PROJECT introduction, not a commercial advertisement.
2删除:Create a complete finished Chinese poster 1536x2048. Input image is ONLY the actual Cage logo reference: orange pixel creature behind black cage bars. Preserve recognizable logo identity but do not scale the reference to fill poster. This is a new art direction.
3删除:Audience: developers and Claude users sharing a useful open source tool on Xiaohongshu and X. Quiet, sincere, useful, inviting. Strong readable Chinese typography with generous margins, clear hierarchy. No price, no "0元", no sales pitch, no button CTA, no glossy glass/metal cube, no security shield, no exaggerated safety claims, no disclaimer/fine-print block at bottom, no QR, no official endorsement, no invented stats, no extra text.
4删除:Keep all body copy at genuinely phone-readable size; repository URL must be accurate.
5删除:
6删除:Direction C: playful indie open source pixel-art club poster. Pale soft mint background, dark forest green typography, orange pixel mascot, small cream accents. Strictly flat 2D pixel art with deliberately hard pixel edges for the illustration. Chinese TEXT must be clean readable modern sans, not garbled pixel font. Large centered typography with airy spacing. In the central third, a cozy tiny pixel-art workspace/garden: friendly orange mascot from logo inside a modest outlined workspace, one small terminal monitor, leafy pixels and a short orange network cable. No prison atmosphere, no glossy/glass rendering, no neon cyberpunk. The visual should feel like a community hobby project sticker / game jam poster, not enterprise software ad. Bottom half has plain aligned short functional notes, thin pixel divider, friendly understated contribution line. Avoid sales badges and call-to-action buttons.
7删除:Use EXACT copy:
8删除:Top: "Cage" and "一个开源小项目"
9删除:Headline: "少折腾环境," / "多做点有意思的事。"
10删除:Subheading: "为 Claude 准备的独立工作空间"
11删除:Functional notes:
12删除:"配置自己的代理 · 环境自动准备"
13删除:"内置泄漏检查 · 代理断开不回退直连"
14删除:"支持多账号调度"
15删除:Smaller but readable qualification directly below last note: "新建 Claude Code 终端时分配"
16删除:Community line: "欢迎围观、提 Issue,也欢迎一起写代码。"
17删除:Footer: "macOS / Windows / Linux"
18删除:Repo: "github.com/Lee-xeo/Claude-Cage"
删除promo/social/community-03-pixel-club-x-prompt.txt+0 −5
@@ -1,5 +0,0 @@
1删除:Use case: ads-marketing, independent open source community introduction.
2删除:Adapt the supplied finished Cage portrait poster into a carefully recomposed 2048x1152 LANDSCAPE image for X/Twitter. Preserve this particular reference's distinctive visual style, palette, logo, illustration, and ALL Chinese and English copy VERBATIM. Do not merely crop or stretch. No new copy, no commercial CTA, no prices, no safety guarantees, no disclaimers, no extra labels. The reference is the complete source of copy and style.
3删除:Composition: compact logo/brand at top left, left-aligned main headline and short introduction in left 55 percent; move the main illustration to the upper right 40 percent; arrange the functional notes in a generous full-width lower section with clear hierarchy, and use a plain understated bottom contribution invitation, platform names, repository. Keep font sizes comfortably readable and avoid a dense brochure. Use 72px minimum margins. Preserve line weight and character design, no glossy 3D makeover. Rebalance so it feels designed for landscape, not squeezed.
4删除:Exact repository: github.com/Lee-xeo/Claude-Cage
5删除:Keep the mint background and flat green/orange pixel illustration. Keep the qualification 新建 Claude Code 终端时分配 immediately beside or below 支持多账号调度.
删除promo/social/community-03-pixel-club-x.png

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

删除promo/social/community-03-pixel-club-xiaohongshu.png

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

删除promo/social/landscape-prompt.txt+0 −17
@@ -1,17 +0,0 @@
1删除:Use case: ads-marketing. Adapt the supplied finished Cage portrait advertisement into an independently composed landscape X/Twitter ad at 2048x1152 (16:9). Preserve the visual identity: warm ivory, oversized black Chinese sans typography, vivid orange, small sage green icons, beautiful glass-and-metal protective cube with orange voxel mascot. Preserve exact logo identity. Do not crop or stretch the portrait. Redesign into a balanced wide composition: compact top brand line; left half strong two-line headline and subtitle, big orange '0 元' with '软件使用费'; right half large crisp hero cube and orange protected network route, soft studio light. Below main hero a full-width slim orange three-step setup bar. Under it four neat horizontally arranged feature groups, typography led, divided by hairlines. Bottom platform and GitHub line with legible fine print. All text highly legible, careful alignment, generous 64px safe margins. Stylish premium editorial campaign, not cluttered.
2删除:Render only this exact Chinese copy, do not invent any text:
3删除:Brand: 'Cage' / '为 Claude 而造'
4删除:Main title: '用 Claude,' / '少一点折腾。'
5删除:Subtitle: '担心网络泄露?把隔离与检查交给 Cage。'
6删除:Price: '0 元' / '软件使用费'
7删除:Steps bar: '下载安装 → 配置代理 → 开始使用'
8删除:Steps note: '环境自动准备,省去手动搭建'
9删除:Features:
10删除:'代理隔离' with '代理断开不回退直连'
11删除:'多账号调度' with '新建 Claude Code 终端时分配'
12删除:'完全开源' with '欢迎审查与贡献'
13删除:'轻量跨平台' with '浏览器、终端、编辑器一体'
14删除:Footer: 'macOS / Windows / Linux' and '免费获取 ↗ github.com/Lee-xeo/Claude-Cage'
15删除:Fine print: '代理与 Claude 服务费用另计;首次启动需下载环境。'
16删除:'网络隔离不承诺免封号;Windows / Linux 为预览版。'
17删除:No QR code, no extra labels, no endorsement, no watermark. Finished ready-to-share professional artwork.
删除promo/social/portrait-prompt.txt+0 −25
@@ -1,25 +0,0 @@
1删除:Use case: ads-marketing. Create a finished, beautiful Chinese software advertisement poster for Cage, portrait 3:4 1536x2048, ready to post on Xiaohongshu. Input reference is the actual Cage logo: preserve its recognizable orange pixel creature and dark cage bars in a small top-left brand icon. This is a new ad design, not an alteration of the logo file.
2删除:Art direction: high-end contemporary independent developer product campaign, warm ivory background #F7F3EB, nearly black expressive large Chinese sans typography, vivid vermilion orange #EF663A, tiny sage-green safety cues. Strong Swiss editorial alignment combined with playful collectible 3D product art. Crisp typography, confident asymmetry, ample space, phone-readable, no gratuitous gradients, no cyberpunk, no stock photo humans, no generic dashboard cards everywhere.
3删除:Composition: top slim brand line with logo and Cage on left, '为 Claude 而造' right. Huge flush-left two-line headline in upper quarter. Small supporting line below. Central hero: an exquisite isometric transparent glass protective cube/cage containing the friendly orange blocky pixel mascot from logo; softly glowing orange interior, subtle brushed-metal rails and studio shadows, abstract disconnected network line outside and protected single orange route to cube, conveys isolated environment and safety. No words on illustration, no fake UI. Integrate an oversized typographic '0 元' and caption '软件使用费' beside hero, like an editorial price statement, not a sale sticker.
4删除:Lower half: one prominent horizontal orange installation strip, then neat 2 by 2 typography-led feature blocks separated by delicate rules, simple line symbols. Bottom platform line and clear GitHub CTA. Fine print still readable.
5删除:Render ONLY the following exact copy, preserve all Chinese characters, no other invented text:
6删除:Brand: 'Cage' / '为 Claude 而造'
7删除:Headline: '用 Claude,' / '少一点折腾。'
8删除:Subtitle: '担心网络泄露?把隔离与检查交给 Cage。'
9删除:Price: '0 元' / '软件使用费'
10删除:Orange strip headline: '下载安装 → 配置代理 → 开始使用'
11删除:Orange strip smaller: '环境自动准备,省去手动搭建'
12删除:Feature 1 heading: '代理隔离,安心开工'
13删除:Feature 1 body: '代理断开不回退直连 · 内置泄漏检查'
14删除:Feature 2 heading: '多账号,自动分配'
15删除:Feature 2 body: '新建 Claude Code 终端时调度'
16删除:Feature 3 heading: '完全开源,欢迎审查'
17删除:Feature 3 body: '代码公开 · 欢迎贡献'
18删除:Feature 4 heading: '轻量环境,专为 Claude'
19删除:Feature 4 body: '浏览器、终端、编辑器,一处就绪'
20删除:Platform line: 'macOS / Windows / Linux'
21删除:CTA: '免费获取,参与共建 ↗'
22删除:Repository: 'github.com/Lee-xeo/Claude-Cage'
23删除:Fine print in two clean lines: '代理与 Claude 服务费用另计;首次启动需下载环境。'
24删除:'网络隔离不承诺免封号;Windows / Linux 为预览版。'
25删除:No version numbers, no unsupported 100% security, no official Anthropic endorsement, no QR code, no watermark. All content comfortably inside safe margins. Final must look like meticulously art-directed professional social ad with strong typography, not a dense brochure.
删除promo/soundtrack.mjs+0 −330
@@ -1,330 +0,0 @@
1删除:// Synthesise the promo soundtrack from the shared timeline: a driving pulse and
2删除:// hard impacts under the problem, a warm piano in D major once Cage appears,
3删除:// UI foley that lands on every click, keystroke and passing check, and a quiet
4删除:// melody under the closing lines. Writes out/soundtrack.wav (48 kHz, 16-bit).
5删除:import { mkdirSync, writeFileSync } from 'node:fs';
6删除:import { createRequire } from 'node:module';
7删除:import { join } from 'node:path';
8删除:import { fileURLToPath } from 'node:url';
9删除:
10删除:const require = createRequire(import.meta.url);
11删除:const TL = require('./timeline.js');
12删除:const here = fileURLToPath(new URL('.', import.meta.url));
13删除:
14删除:const SR = 48000;
15删除:const N = Math.ceil(TL.duration * SR);
16删除:const dry = [new Float32Array(N), new Float32Array(N)];
17删除:const wet = [new Float32Array(N), new Float32Array(N)]; // reverb send
18删除:
19删除:const mtof = m => 440 * Math.pow(2, (m - 69) / 12);
20删除:let seed = 7;
21删除:const rnd = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
22删除:
23删除:function put(i, l, r, send) {
24删除: if (i < 0 || i >= N) return;
25删除: dry[0][i] += l; dry[1][i] += r;
26删除: wet[0][i] += l * send; wet[1][i] += r * send;
27删除:}
28删除:const panLR = pan => [Math.cos((pan + 1) * Math.PI / 4), Math.sin((pan + 1) * Math.PI / 4)];
29删除:
30删除:// Sum of decaying partials, stepped with a rotation instead of Math.sin.
31删除:function partials(t0, list, { attack = 0.004, pan = 0, send = 0.3, len }) {
32删除: const [gl, gr] = panLR(pan);
33删除: const start = Math.round(t0 * SR);
34删除: const n = Math.min(Math.round(len * SR), N - start);
35删除: if (n <= 0) return;
36删除: const buf = new Float32Array(n);
37删除: for (const { f, a, decay } of list) {
38删除: if (f >= SR / 2.2) continue;
39删除: const w = 2 * Math.PI * f / SR, cw = Math.cos(w), sw = Math.sin(w);
40删除: let c = 1, s = 0, env = a;
41删除: const k = Math.exp(-decay / SR);
42删除: for (let i = 0; i < n; i++) {
43删除: buf[i] += s * env;
44删除: const nc = c * cw - s * sw; s = c * sw + s * cw; c = nc;
45删除: env *= k;
46删除: }
47删除: }
48删除: const atk = Math.max(1, Math.round(attack * SR)), rel = Math.round(0.08 * SR);
49删除: for (let i = 0; i < n; i++) {
50删除: let e = i < atk ? i / atk : 1;
51删除: if (i > n - rel) e *= (n - i) / rel;
52删除: put(start + i, buf[i] * e * gl, buf[i] * e * gr, send);
53删除: }
54删除:}
55删除:
56删除:function piano(t, m, vel = 0.5, { len = 5, pan, send = 0.38, bright = 1 } = {}) {
57删除: const f0 = mtof(m);
58删除: const list = [];
59删除: for (let h = 1; h <= 9; h++) {
60删除: const f = f0 * h * Math.sqrt(1 + 0.00015 * h * h);
61删除: const a = vel * 0.22 * Math.pow(h, -1.25 - (1 - bright) * 0.6) * (h === 1 ? 1 : 0.9 + 0.2 * rnd());
62删除: list.push({ f, a, decay: 1.1 + h * 0.75 + f0 / 900 });
63删除: }
64删除: // soft hammer
65删除: list.push({ f: f0 * 0.5 * 1.002, a: vel * 0.02, decay: 2.5 });
66删除: partials(t, list, { attack: 0.006, pan: pan ?? clampPan((m - 62) / 30), send, len });
67删除:}
68删除:const clampPan = x => Math.max(-0.6, Math.min(0.6, x));
69删除:
70删除:function pad(t0, t1, notes, vol = 0.05, { fadeIn = 1.5, fadeOut = 1.5, cutoff = 1400, send = 0.6 } = {}) {
71删除: const start = Math.round(t0 * SR), end = Math.min(N, Math.round(t1 * SR));
72删除: const a = 1 - Math.exp(-2 * Math.PI * cutoff / SR);
73删除: notes.forEach((m, ni) => {
74删除: const f0 = mtof(m);
75删除: [-6, 0, 6].forEach((cents, vi) => {
76删除: const f = f0 * Math.pow(2, cents / 1200);
77删除: const [gl, gr] = panLR(vi === 0 ? -0.5 : vi === 2 ? 0.5 : 0);
78删除: const H = Math.min(10, Math.floor(5000 / f));
79删除: const osc = [];
80删除: for (let h = 1; h <= H; h++) { const w = 2 * Math.PI * f * h / SR; osc.push([Math.cos(w), Math.sin(w), Math.cos(h * vi + ni), Math.sin(h * vi + ni), 1 / h]); }
81删除: let lp = 0;
82删除: for (let i = start; i < end; i++) {
83删除: let x = 0;
84删除: for (const o of osc) { const nc = o[2] * o[0] - o[3] * o[1]; o[3] = o[2] * o[1] + o[3] * o[0]; o[2] = nc; x += o[3] * o[4]; }
85删除: lp += a * (x - lp);
86删除: const tt = (i - start) / SR, tl = (end - i) / SR;
87删除: const e = Math.min(1, tt / fadeIn) * Math.min(1, tl / fadeOut);
88删除: const g = lp * e * vol / notes.length;
89删除: put(i, g * gl, g * gr, send);
90删除: }
91删除: });
92删除: });
93删除:}
94删除:
95删除:function sine(t, f, vol, decay, { f1 = f, glide = 0.05, pan = 0, send = 0.25, attack = 0.002 } = {}) {
96删除: const [gl, gr] = panLR(pan);
97删除: const start = Math.round(t * SR), n = Math.round(Math.min(3, 7 / decay) * SR);
98删除: let ph = 0;
99删除: for (let i = 0; i < n; i++) {
100删除: const tt = i / SR;
101删除: const fr = f1 + (f - f1) * Math.exp(-tt / glide);
102删除: ph += 2 * Math.PI * fr / SR;
103删除: const e = Math.min(1, tt / attack) * Math.exp(-tt * decay);
104删除: const x = Math.sin(ph) * e * vol;
105删除: put(start + i, x * gl, x * gr, send);
106删除: }
107删除:}
108删除:
109删除:function noise(t, len, vol, { lo = 400, hi = 6000, shape = x => Math.sin(Math.PI * x), pan = 0, send = 0.4 } = {}) {
110删除: const [gl, gr] = panLR(pan);
111删除: const start = Math.round(t * SR), n = Math.round(len * SR);
112删除: let l1 = 0, l2 = 0;
113删除: for (let i = 0; i < n; i++) {
114删除: const k = i / n;
115删除: const fc = lo + (hi - lo) * shape(k);
116删除: const a = 1 - Math.exp(-2 * Math.PI * fc / SR);
117删除: l1 += a * (rnd() * 2 - 1 - l1);
118删除: l2 += (1 - Math.exp(-2 * Math.PI * lo * 0.5 / SR)) * (l1 - l2);
119删除: const x = (l1 - l2) * shape(k) * vol;
120删除: put(start + i, x * gl, x * gr, send);
121删除: }
122删除:}
123删除:
124删除:const click = (t, vol = 0.12, pan = 0.1) => { noise(t, 0.018, vol, { lo: 2500, hi: 7000, shape: x => 1 - x, pan, send: 0.08 }); sine(t, 1900, vol * 0.25, 120, { pan, send: 0.05 }); };
125删除:const key = (t, i) => { noise(t, 0.012, 0.05 + 0.02 * rnd(), { lo: 1800 + rnd() * 900, hi: 5000, shape: x => 1 - x, pan: -0.15 + rnd() * 0.3, send: 0.04 }); };
126删除:const tock = (t, vol = 0.35) => { sine(t, 180, vol, 14, { f1: 70, glide: 0.04, send: 0.2 }); noise(t, 0.03, vol * 0.25, { lo: 300, hi: 1200, shape: x => 1 - x, send: 0.1 }); };
127删除:const pip = (t, f = 2200, vol = 0.05) => sine(t, f, vol, 30, { send: 0.3 });
128删除:const bell = (t, m, vol) => {
129删除: const f = mtof(m);
130删除: partials(t, [[1, 1, 1.4], [2.76, 0.4, 3], [5.4, 0.18, 5], [8.93, 0.08, 7]].map(([r, a, d]) => ({ f: f * r, a: a * vol, decay: d })), { attack: 0.003, len: 4, send: 0.55, pan: clampPan((m - 74) / 20) });
131删除:};
132删除:
133删除:// ---------- score ----------
134删除:const { pain: P, room: R, app: A, accounts: C, perks: K, letter: L, end: En } = TL;
135删除:
136删除:// Act 1 · the problem: a driving pulse, an impact on every cut, then silence.
137删除:const kick = (t, vol) => { sine(t, 95, vol, 9, { f1: 42, glide: 0.035, send: 0.08 }); noise(t, 0.012, vol * 0.25, { lo: 1500, hi: 4000, shape: x => 1 - x, send: 0.02 }); };
138删除:const boom = (t, k) => {
139删除: sine(t, 72, 0.36 * k, 2.6, { f1: 30, glide: 0.12, send: 0.35 });
140删除: noise(t, 0.6, 0.14 * k, { lo: 90, hi: 1600, shape: x => Math.pow(1 - x, 3), send: 0.55 });
141删除: noise(t, 0.04, 0.12 * k, { lo: 3000, hi: 9000, shape: x => 1 - x, send: 0.2 });
142删除:};
143删除:const stamp = (t, vol = 0.3) => { tock(t, vol); noise(t, 0.05, vol * 0.3, { lo: 800, hi: 5000, shape: x => 1 - x, send: 0.15 }); };
144删除:const bpm = 60 / 128;
145删除:pad(0, P.b5 + 0.04, [26, 38, 45, 51], 0.05, { fadeIn: 0.4, fadeOut: 0.04, cutoff: 650, send: 0.45 });
146删除:for (let t = P.holdShrink, i = 0; t < P.b5 - 0.05; t += bpm, i++) {
147删除: const build = 0.55 + 0.45 * (t / P.b5);
148删除: kick(t, 0.22 * build);
149删除: sine(t, mtof(i % 8 === 6 ? 39 : 38), 0.05 * build, 6, { send: 0.1 });
150删除: noise(t + bpm / 2, 0.02, 0.035 * build, { lo: 5000, hi: 9000, shape: x => 1 - x, send: 0.05, pan: 0.3 });
151删除:}
152删除:// The on-hold screen lands like a thunderclap, then the ears ring.
153删除:boom(P.slam, 1.15);
154删除:noise(P.slam, 0.09, 0.3, { lo: 1500, hi: 12000, shape: x => 1 - x, send: 0.6 });
155删除:sine(P.slam, 3150, 0.022, 0.9, { send: 0.15 });
156删除:sine(P.slam, 3170, 0.016, 0.8, { send: 0.15, pan: 0.4 });
157删除:piano(P.holdMark, 38, 0.5, { len: 2, bright: 0.4, send: 0.5 });
158删除:piano(P.holdMark, 39, 0.3, { len: 2, bright: 0.4, send: 0.5 });
159删除:boom(P.holdShrink, 0.8);
160删除:[P.b2, P.b3, P.b4].forEach(t => boom(t, 0.7));
161删除:P.losses.forEach(t => stamp(t, 0.32));
162删除:P.rows.forEach(t => noise(t, 0.05, 0.06, { lo: 2500, hi: 6000, shape: x => 1 - x, send: 0.1 }));
163删除:stamp(P.total, 0.4); sine(P.total, mtof(50), 0.08, 2, { send: 0.4 }); sine(P.total, mtof(51), 0.07, 2, { send: 0.4 });
164删除:noise(P.wires - 0.1, 0.6, 0.05, { lo: 400, hi: 5000, shape: x => x, send: 0.35 });
165删除:P.tags.forEach((t, i) => { sine(t, mtof(84), 0.05, 10, { pan: -0.3, send: 0.3 }); sine(t + 0.09, mtof(80), 0.05, 9, { pan: -0.3, send: 0.3 }); });
166删除:boom(P.vmMem, 0.45);
167删除:sine(P.vmMem, 110, 0.06, 1.5, { send: 0.2 }); sine(P.vmMem, 116.5, 0.06, 1.5, { send: 0.2 }); // grinding beat
168删除:P.vmTodo.forEach(t => stamp(t, 0.22));
169删除:// the question: a breath of silence, one low note, then a riser into the light
170删除:piano(P.b5 + 0.2, 38, 0.5, { len: 2.5, bright: 0.5, send: 0.6 });
171删除:noise(P.end - 0.95, 0.95, 0.09, { lo: 300, hi: 9000, shape: x => x * x * x, send: 0.5 });
172删除:sine(P.end - 0.95, 900, 0.03, 0.4, { f1: 180, glide: 0.5, send: 0.6 });
173删除:
174删除:// Act 2 · the answer: release into D major, pixels sparkle, bars land.
175删除:pad(R.start - 0.05, K.out + 0.6, [50, 57, 62, 66], 0.05, { fadeIn: 1.2, fadeOut: 1.4, cutoff: 1500, send: 0.7 });
176删除:[26, 38, 50, 57, 62, 66, 69, 76].forEach((m, i) => piano(R.start + i * 0.03, m, 0.48 - i * 0.03, { len: 5, bright: 0.8, send: 0.55 }));
177删除:bell(R.start, 86, 0.08);
178删除:const sparkle = [86, 88, 90, 93, 95, 98];
179删除:for (let i = 0; i < 14; i++) pip(R.pixels + 0.04 + i * 0.05 + rnd() * 0.03, mtof(sparkle[Math.floor(rnd() * sparkle.length)]), 0.025 + rnd() * 0.015);
180删除:noise(R.frame, 0.45, 0.035, { lo: 600, hi: 3500, send: 0.4 });
181删除:R.bars.forEach(b => tock(b + 0.24, 0.42));
182删除:pip(R.blink, 3100, 0.03);
183删除:[62, 66, 69, 74].forEach((m, i) => piano(R.word + i * 0.04, m, 0.26, { len: 4 }));
184删除:piano(R.pos + 0.4, 81, 0.3, { len: 4, bright: 0.9 });
185删除:piano(R.pos + 0.62, 86, 0.24, { len: 4, bright: 0.9 });
186删除:piano(R.sub + 0.75, 78, 0.26, { len: 4, bright: 0.9 });
187删除:
188删除:// Act 3 · the app: an unhurried D-major arpeggio under the UI.
189删除:const beat = 60 / 76, bar = beat * 4, arpStart = A.rise + 0.45;
190删除:const chords = [
191删除: [38, [62, 66, 69]], [37, [61, 64, 69]], [35, [62, 66, 71]], [31, [62, 67, 71]],
192删除: [42, [62, 66, 69]], [40, [62, 67, 71]], [33, [62, 64, 69]], [33, [61, 64, 69]],
193删除: [38, [62, 66, 69]],
194删除:];
195删除:chords.forEach(([bass, [a, b, c]], ci) => {
196删除: const t0 = arpStart + ci * bar;
197删除: if (t0 > C.out) return;
198删除: piano(t0, bass, 0.42, { len: bar + 0.6, bright: 0.5, send: 0.35 });
199删除: piano(t0 + beat * 2, bass + 7, 0.24, { len: bar, bright: 0.5, send: 0.35 });
200删除: const pat = [a, b + 12, c, a + 12, b, c + 12, a + 12, b + 12];
201删除: pat.forEach((m, k) => {
202删除: const t = t0 + k * beat / 2;
203删除: if (t > C.out + 0.3) return;
204删除: piano(t, m, (k % 2 ? 0.16 : 0.22) * (k === 0 ? 1.2 : 1), { len: 2.6, send: 0.42 });
205删除: });
206删除:});
207删除:// 01 · the safety dialog: one rising plink per passed check, a chime when all eleven pass.
208删除:noise(A.safetyOpen, 0.3, 0.03, { lo: 500, hi: 3000, send: 0.3 });
209删除:[74, 76, 78, 79, 81, 83, 85, 86, 88, 90, 91].forEach((m, i) =>
210删除: sine(A.checks + 0.15 + i * A.checkStep, mtof(m), 0.05, 7, { send: 0.45, pan: -0.3 + i * 0.06 }));
211删除:[74, 78, 81, 86].forEach((m, i) => bell(A.allPass + i * 0.05, m, 0.09));
212删除:noise(A.safetyClose, 0.3, 0.025, { lo: 500, hi: 2500, send: 0.3 });
213删除:// 01 · ready: one chime per highlighted status item.
214删除:A.rings.forEach((t, i) => sine(t, mtof([79, 83, 86][i]), 0.045, 7, { send: 0.45 }));
215删除:[A.safetyOpen, A.clickDesktop, A.clickInput, A.clickTermIcon, A.clickClaudeTerm, A.clickAuthorize].forEach(t => click(t));
216删除:// 02 · Claude Desktop boots, a message is typed and answered.
217删除:noise(A.desktopBoot - 0.05, 0.45, 0.03, { lo: 500, hi: 3500, send: 0.35 });
218删除:const typeKeys = (text, [a, b]) => { const n = [...text].length; for (let i = 0; i < n; i++) key(a + (i / n) * (b - a), i); };
219删除:typeKeys('帮我把 hello-cage 的 README 改得更清楚', A.typeMsg);
220删除:click(A.send, 0.09, -0.1);
221删除:for (let i = 0; i < 4; i++) pip(A.reply[0] + i * (A.reply[1] - A.reply[0]) / 4, 1250 + i * 80, 0.02);
222删除:// 03 · the Claude terminal starts and asks to sign in.
223删除:noise(A.clickTermIcon + 0.02, 0.2, 0.025, { lo: 900, hi: 4000, send: 0.2 });
224删除:for (let i = 0; i < 7; i++) noise(A.termLines + i * 0.1, 0.015, 0.03, { lo: 2500, hi: 6000, shape: x => 1 - x, send: 0.05 });
225删除:pip(A.opening, 1500, 0.03);
226删除:// 04 · authorise in the Cage browser, then back to the terminal.
227删除:noise(A.browserOpen - 0.05, 0.4, 0.035, { lo: 600, hi: 4000, send: 0.35 });
228删除:[74, 78, 81, 86].forEach((m, i) => bell(A.authDone + i * 0.05, m, 0.085));
229删除:noise(A.backToTerm - 0.05, 0.35, 0.03, { lo: 600, hi: 3500, send: 0.3 });
230删除:typeKeys('给 hello-cage 加一个健康检查接口', A.typePrompt);
231删除:click(A.enterPrompt, 0.1, -0.1);
232删除:A.reply2.forEach(t => pip(t, 1250, 0.02));
233删除:
234删除:// Act 3b · accounts: each new terminal clicks, travels and lands on its account.
235删除:noise(C.panel - 0.05, 0.4, 0.03, { lo: 500, hi: 3000, send: 0.3 });
236删除:C.rows.forEach(t => noise(t, 0.03, 0.035, { lo: 2500, hi: 6000, shape: x => 1 - x, send: 0.1 }));
237删除:C.terms.forEach((t, j) => {
238删除: click(t, 0.1);
239删除: noise(t + 0.1, 0.4, 0.02, { lo: 800, hi: 4000, send: 0.25, pan: 0.3 });
240删除: sine(t + 0.45, mtof([79, 83, 86][j]), 0.05, 6, { send: 0.45, pan: -0.2 });
241删除:});
242删除:sine(C.terms[0] + 0.22, mtof(55), 0.05, 7, { send: 0.3 }); sine(C.terms[0] + 0.3, mtof(52), 0.04, 7, { send: 0.3 }); // skipped account
243删除:
244删除:// Act 4 · perks: a lift to G, one chime per card.
245删除:piano(K.head, 31, 0.4, { len: 5, bright: 0.5, send: 0.45 });
246删除:[55, 59, 62, 67].forEach((m, i) => piano(K.head + 0.05 + i * 0.05, m, 0.2, { len: 4.5, send: 0.5 }));
247删除:[74, 78, 81, 86].forEach((m, i) => bell(K.tiles[i], m, 0.07));
248删除:piano(K.tiles[3] + 1.2, 33, 0.32, { len: 4, bright: 0.5, send: 0.45 });
249删除:[57, 61, 64, 69].forEach((m, i) => piano(K.tiles[3] + 1.25 + i * 0.05, m, 0.16, { len: 3.5, send: 0.5 }));
250删除:
251删除:// Act 5 · the letter: chords breathe, a melody answers each line.
252删除:noise(K.out, 1.0, 0.03, { lo: 300, hi: 2500, send: 0.7 });
253删除:pad(L.start - 0.2, En.start + 1.2, [43, 55, 59, 62, 66], 0.06, { fadeIn: 1.5, fadeOut: 1.4, cutoff: 1100, send: 0.75 });
254删除:const lchords = [[L.start, 31, [55, 59, 62, 66]], [L.lines[0], 42, [57, 62, 66]], [L.lines[1], 40, [55, 59, 62, 67]], [L.lines[2], 33, [57, 62, 64]], [L.lines[2] + 1.2, 33, [57, 61, 64]]];
255删除:lchords.forEach(([t, bass, notes]) => {
256删除: piano(t, bass, 0.4, { len: 4.5, bright: 0.45, send: 0.5 });
257删除: notes.forEach((m, i) => piano(t + 0.06 + i * 0.07, m, 0.17, { len: 4, bright: 0.6, send: 0.55 }));
258删除:});
259删除:[[0, 0, 81], [0, 0.45, 78], [1, 0, 79], [1, 0.45, 76], [2, 0, 76], [2, 0.45, 78], [2, 1.2, 76]].forEach(([li, dt, m]) => {
260删除: piano(L.lines[li] + dt, m, 0.3, { len: 3.5, send: 0.55, bright: 0.9 });
261删除:});
262删除:
263删除:// Act 6 · end card: resolve home, bars land, one last blink.
264删除:[26, 38, 45, 54, 64, 69, 74].forEach((m, i) => piano(En.start + 0.05 + i * 0.06, m, 0.42 - i * 0.025, { len: 6.2, bright: 0.65, send: 0.6 }));
265删除:pad(En.start, TL.duration, [38, 50, 57, 64, 66], 0.05, { fadeIn: 1.2, fadeOut: 3.2, cutoff: 1200, send: 0.8 });
266删除:const endA = En.start + 0.3;
267删除:[endA + 0.85 + 0.24, endA + 1.0 + 0.24].forEach(t => tock(t, 0.22));
268删除:piano(endA + 2.5, 86, 0.16, { len: 4, send: 0.7 });
269删除:pip(En.blink, 3100, 0.03);
270删除:
271删除:// ---------- reverb (Freeverb) ----------
272删除:function freeverb(input, spread) {
273删除: const s = SR / 44100;
274删除: const combT = [1116, 1188, 1277, 1356, 1422, 1491, 1557, 1617].map(x => Math.round((x + spread) * s));
275删除: const apT = [556, 441, 341, 225].map(x => Math.round((x + spread) * s));
276删除: const out = new Float32Array(N);
277删除: const room = 0.86, damp = 0.28;
278删除: const combs = combT.map(n => ({ b: new Float32Array(n), i: 0, f: 0 }));
279删除: const aps = apT.map(n => ({ b: new Float32Array(n), i: 0 }));
280删除: for (let i = 0; i < N; i++) {
281删除: const x = input[i] * 0.015;
282删除: let y = 0;
283删除: for (const c of combs) {
284删除: const o = c.b[c.i];
285删除: c.f = o * (1 - damp) + c.f * damp;
286删除: c.b[c.i] = x + c.f * room;
287删除: if (++c.i >= c.b.length) c.i = 0;
288删除: y += o;
289删除: }
290删除: for (const a of aps) {
291删除: const o = a.b[a.i];
292删除: a.b[a.i] = y + o * 0.5;
293删除: if (++a.i >= a.b.length) a.i = 0;
294删除: y = o - y;
295删除: }
296删除: out[i] = y;
297删除: }
298删除: return out;
299删除:}
300删除:const rv = [freeverb(wet[0], 0), freeverb(wet[1], 23)];
301删除:
302删除:// ---------- master ----------
303删除:const mix = [new Float32Array(N), new Float32Array(N)];
304删除:let peak = 0;
305删除:for (let i = 0; i < N; i++) {
306删除: for (let c = 0; c < 2; c++) {
307删除: const v = dry[c][i] + rv[c][i] * 2.4 + rv[1 - c][i] * 0.4;
308删除: mix[c][i] = v;
309删除: peak = Math.max(peak, Math.abs(v));
310删除: }
311删除:}
312删除:const gain = 0.86 / peak;
313删除:const pcm = Buffer.alloc(N * 4);
314删除:for (let i = 0; i < N; i++) {
315删除: const t = i / SR;
316删除: const fade = Math.min(1, t / 0.05) * Math.min(1, (TL.duration - t) / 1.6);
317删除: for (let c = 0; c < 2; c++) {
318删除: const v = Math.tanh(mix[c][i] * gain * 1.1) * fade;
319删除: pcm.writeInt16LE(Math.round(Math.max(-1, Math.min(1, v)) * 32767), i * 4 + c * 2);
320删除: }
321删除:}
322删除:const header = Buffer.alloc(44);
323删除:header.write('RIFF', 0); header.writeUInt32LE(36 + pcm.length, 4); header.write('WAVE', 8);
324删除:header.write('fmt ', 12); header.writeUInt32LE(16, 16); header.writeUInt16LE(1, 20); header.writeUInt16LE(2, 22);
325删除:header.writeUInt32LE(SR, 24); header.writeUInt32LE(SR * 4, 28); header.writeUInt16LE(4, 32); header.writeUInt16LE(16, 34);
326删除:header.write('data', 36); header.writeUInt32LE(pcm.length, 40);
327删除:mkdirSync(join(here, 'out'), { recursive: true });
328删除:const path = join(here, 'out', 'soundtrack.wav');
329删除:writeFileSync(path, Buffer.concat([header, pcm]));
330删除:console.log(`${path} · ${TL.duration}s · peak gain ${gain.toFixed(2)}`);
删除promo/timeline.js+0 −115
@@ -1,115 +0,0 @@
1删除:// Shared timing for the promo page (promo.js) and the soundtrack (soundtrack.mjs).
2删除:// All values are seconds from the start of the video. Loaded as a classic script
3删除:// in the browser and through require() in Node.
4删除:(function (root) {
5删除: const TL = {
6删除: duration: 61.3,
7删除: fps: 60,
8删除: width: 1920,
9删除: height: 1080,
10删除:
11删除: // Act 1 · the problem: the real on-hold screen, then four hard-cut beats.
12删除: pain: {
13删除: slam: 0.12,
14删除: holdScroll: [0.75, 1.75],
15删除: holdMark: 1.55,
16删除: holdShrink: 2.1,
17删除: losses: [2.6, 2.9, 3.2],
18删除: b2: 4.3,
19删除: rows: [4.65, 4.95, 5.25, 5.55],
20删除: total: 5.9,
21删除: b3: 7.3,
22删除: wires: 7.65,
23删除: tags: [8.15, 8.45, 8.75, 9.05, 9.35],
24删除: b4: 10.3,
25删除: vm: 10.45,
26删除: vmMem: 11.4,
27删除: vmTodo: [11.8, 12.05, 12.3, 12.55],
28删除: b5: 13.1,
29删除: end: 14.65,
30删除: },
31删除:
32删除: // Act 2 · the answer.
33删除: room: {
34删除: start: 14.65,
35删除: pixels: 14.9,
36删除: frame: 15.55,
37删除: bars: [15.9, 16.1],
38删除: blink: 16.9,
39删除: word: 16.45,
40删除: pos: 17.0,
41删除: sub: 17.65,
42删除: end: 20.3,
43删除: },
44删除:
45删除: // Act 3 · the real workbench: ready → Claude Desktop → Claude terminal → browser login.
46删除: app: {
47删除: rise: 20.0,
48删除: step1: 21.0,
49删除: safetyOpen: 21.5,
50删除: checks: 21.8,
51删除: checkStep: 0.2,
52删除: allPass: 24.0,
53删除: safetyClose: 24.8,
54删除: rings: [25.5, 25.8, 26.1],
55删除: step2: 26.6,
56删除: clickDesktop: 27.35,
57删除: desktopBoot: 27.5,
58删除: clickInput: 28.3,
59删除: typeMsg: [28.45, 29.65],
60删除: send: 29.8,
61删除: reply: [30.1, 31.4],
62删除: step3: 31.7,
63删除: clickTermIcon: 32.4,
64删除: clickClaudeTerm: 33.1,
65删除: termLines: 33.3,
66删除: opening: 34.25,
67删除: step4: 34.6,
68删除: browserOpen: 34.75,
69删除: clickAuthorize: 35.9,
70删除: authDone: 36.05,
71删除: backToTerm: 36.8,
72删除: typePrompt: [37.6, 38.7],
73删除: enterPrompt: 38.8,
74删除: reply2: [39.05, 39.55, 40.05, 40.65],
75删除: out: 42.6,
76删除: end: 43.6,
77删除: },
78删除:
79删除: // Act 3b · several accounts, assigned per terminal.
80删除: accounts: {
81删除: start: 43.2,
82删除: panel: 43.45,
83删除: rows: [43.65, 43.8, 43.95],
84删除: terms: [44.6, 45.45, 46.3],
85删除: out: 48.2,
86删除: end: 48.8,
87删除: },
88删除:
89删除: // Act 4 · everything that comes in the box.
90删除: perks: {
91删除: start: 48.6,
92删除: head: 48.9,
93删除: tiles: [49.4, 49.65, 49.9, 50.15],
94删除: out: 52.6,
95删除: end: 53.2,
96删除: },
97删除:
98删除: // Act 5 · why the cage exists.
99删除: letter: {
100删除: start: 53,
101删除: lines: [53.7, 54.5, 55.3],
102删除: out: 56.3,
103删除: end: 56.9,
104删除: },
105删除:
106删除: // Act 6 · end card.
107删除: end: {
108删除: start: 56.9,
109删除: blink: 59.9,
110删除: },
111删除: };
112删除:
113删除: if (typeof module === 'object' && module.exports) module.exports = TL;
114删除: else root.TL = TL;
115删除:})(this);
删除release.sh+0 −633
@@ -1,633 +0,0 @@
1删除:#!/usr/bin/env bash
2删除:#
3删除:# Cut an agent-vm release.
4删除:#
5删除:# ./release.sh X.Y.Z check, then tag, push and publish
6删除:# ./release.sh X.Y.Z --dry-run run every check and build, change nothing
7删除:# ./release.sh X.Y.Z --yes no confirmation prompt
8删除:# ./release.sh X.Y.Z --bypass-checks without waiting for the CI workflow
9删除:# ./release.sh X.Y.Z --not-latest not GitHub's latest release
10删除:# ./release.sh notes X.Y.Z print that version's CHANGELOG.md section
11删除:#
12删除:# --not-latest: the curl installer keeps installing the latest release, and
13删除:# this one only with --version X.Y.Z; the Homebrew formula is left alone.
14删除:# RELEASE_BRANCH=<branch> releases from that branch instead of main. See
15删除:# RELEASING.md.
16删除:#
17删除:# It bumps and commits nothing. First, in an ordinary commit on main: set
18删除:# NEXT_VERSION := X.Y.Z in the Makefile and rename CHANGELOG.md's "##
19删除:# Unreleased" to "## X.Y.Z". Push it and let CI pass. This script then checks
20删除:# that commit and publishes it:
21删除:#
22删除:# 1. clean tree, on main, level with origin/main, tag vX.Y.Z not taken (or
23删除:# already on this commit with no release: a failed run, resumed at 5)
24删除:# 2. the Makefile's NEXT_VERSION is X.Y.Z, CHANGELOG.md has a non-empty
25删除:# X.Y.Z section
26删除:# 3. the CI workflow passed on this commit
27删除:# 4. annotated tag vX.Y.Z, pushed
28删除:# 5. GitHub release: the CHANGELOG section as notes, plus
29删除:# agent-vm-X.Y.Z-<os>-<arch>.tar.gz for each platform and their
30删除:# SHA256SUMS. Each tarball holds that platform's binary, agent-vm, built
31删除:# here from the tag, agent-vm.sh, and LICENSE, NOTICE and
32删除:# THIRD_PARTY_LICENSES: the curl installer takes the one of the
33删除:# machine, unpacks it and runs `agent-vm.sh install`. The Linux builds
34删除:# also come as agent-vm_X.Y.Z_<arch>.deb and agent-vm-X.Y.Z-1.<arch>.rpm
35删除:# (packaging/nfpm.yaml; nfpm is built with Go at a pinned version, or
36删除:# AGENT_VM_NFPM names a binary), listed in SHA256SUMS after the tarballs.
37删除:# The release is
38删除:# created as a draft, its assets are downloaded back and compared with
39删除:# the local ones, and only then is it published; then the published
40删除:# assets are downloaded once more and checked against SHA256SUMS (and
41删除:# the binary of this machine is run). A draft left by a failed run is
42删除:# replaced when it is resumed.
43删除:# 6. the url and sha256 lines for the Homebrew formula, per platform. With
44删除:# AGENT_VM_TAP=<path to a homebrew-tap clone>, Formula/agent-vm.rb there
45删除:# (checked to exist before step 1) is updated too: each url naming a
46删除:# platform's tarball, and the sha256 after it. The commands to commit it
47删除:# are printed.
48删除:#
49删除:# Runs on macOS: the macOS binaries need its SDK (vz, through cgo) and
50删除:# codesign, and its Go builds the Linux and Windows ones too (without cgo,
51删除:# which they never use). A dry run elsewhere builds those only, with a
52删除:# warning.
53删除:#
54删除:# The Windows binaries are signed (Authenticode, with osslsigncode) when
55删除:# AGENT_VM_WINDOWS_PFX names the certificate and key, a PKCS#12 file, and
56删除:# AGENT_VM_WINDOWS_PFX_PASS is its password; timestamped by
57删除:# AGENT_VM_WINDOWS_TIMESTAMP (default http://timestamp.digicert.com; empty:
58删除:# none). Without, they are unsigned, with a warning: Windows warns before
59删除:# running one downloaded by a browser.
60删除:#
61删除:# SHA256SUMS is signed with minisign when AGENT_VM_MINISIGN_KEY names the
62删除:# secret key (minisign -G makes one): SHA256SUMS.minisig is published next to
63删除:# it, and the curl installer checks it when its MINISIGN_PUBKEY is set.
64删除:# Without, a warning: the checksums then only prove the download is intact.
65删除:#
66删除:# Needs git, make, Go, the Xcode command line tools, gh (logged in), curl, tar
67删除:# and shasum or sha256sum. A dry run reads origin without fetching, and without
68删除:# gh skips the checks that need it, with a warning.
69删除:
70删除:set -euo pipefail
71删除:
72删除:REPO_DIR="$(CDPATH= cd -P -- "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd)"
73删除:BRANCH="${RELEASE_BRANCH:-main}"
74删除:PLATFORMS="darwin-arm64 darwin-amd64 linux-arm64 linux-amd64 windows-arm64 windows-amd64"
75删除:
76删除:c_g=''; c_y=''; c_r=''; c_0=''
77删除:if [ -t 1 ]; then c_g=$'\033[32m'; c_y=$'\033[33m'; c_r=$'\033[31m'; c_0=$'\033[0m'; fi
78删除:ok() { printf '%s✓%s %s\n' "$c_g" "$c_0" "$*"; }
79删除:warn() { printf '%s!%s %s\n' "$c_y" "$c_0" "$*"; }
80删除:die() { printf '%s✗%s %s\n' "$c_r" "$c_0" "$*" >&2; exit 1; }
81删除:
82删除:usage() {
83删除: sed -n '5,10p' "$0" | sed 's/^# \{0,1\}//' >&2
84删除: exit 2
85删除:}
86删除:
87删除:valid_version() {
88删除: [[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
89删除:}
90删除:
91删除:# The "## X.Y.Z" section of CHANGELOG.md, without its heading and without
92删除:# leading or trailing blank lines. Empty when there is none. The file is
93删除:# wrapped for reading in a terminal, GitHub is not: a paragraph or list item
94删除:# continued on the next lines is joined into one line. Code fences, headings,
95删除:# tables and quotes are left as written.
96删除:changelog_notes() {
97删除: awk -v v="$1" '
98删除: /^## / { if (inside) exit; inside = ($2 == v); next }
99删除: inside { lines[++n] = $0 }
100删除: END {
101删除: first = 1; while (first <= n && lines[first] ~ /^[ \t]*$/) first++
102删除: last = n; while (last >= first && lines[last] ~ /^[ \t]*$/) last--
103删除: for (i = first; i <= last; i++) {
104删除: l = lines[i]
105删除: if (fence) { print l; if (l ~ /^[ \t]*(```|~~~)/) fence = 0; continue }
106删除: if (l ~ /^[ \t]*(```|~~~)/ || l ~ /^[ \t]*$/) {
107删除: if (joinable) printf "\n"
108删除: print l; joinable = 0; fence = (l ~ /[`~]/); continue
109删除: }
110删除: if (joinable && l !~ /^[ \t]*([-*+]|[0-9]+[.)])[ \t]/ && l !~ /^[ \t]*[#|>]/) {
111删除: sub(/^[ \t]+/, "", l); printf " %s", l; continue
112删除: }
113删除: if (joinable) printf "\n"
114删除: printf "%s", l
115删除: joinable = (l !~ /^[ \t]*[#|>]/)
116删除: if (!joinable) printf "\n"
117删除: }
118删除: if (joinable) printf "\n"
119删除: }
120删除: ' "$REPO_DIR/CHANGELOG.md"
121删除:}
122删除:
123删除:sha256_of() {
124删除: if command -v shasum >/dev/null 2>&1; then shasum -a 256 "$1" | cut -d' ' -f1
125删除: elif command -v sha256sum >/dev/null 2>&1; then sha256sum "$1" | cut -d' ' -f1
126删除: else die "neither shasum nor sha256sum is installed"
127删除: fi
128删除:}
129删除:
130删除:# Show a command, then run it, unless this is a dry run.
131删除:run() {
132删除: printf ' $ %s\n' "$*"
133删除: [ -n "$DRY_RUN" ] || "$@"
134删除:}
135删除:
136删除:# package <ref> <version> <outdir> <platform>...: in outdir, built from ref,
137删除:# agent-vm-<version>-<platform>.tar.gz for each platform, holding the binary
138删除:# (agent-vm), agent-vm.sh and the docs.
139删除:package() {
140删除: local ref="$1" version="$2" out="$3"; shift 3
141删除: local src="$out/src" stage p os arch bin
142删除: mkdir -p "$src"
143删除: git -C "$REPO_DIR" archive "$ref" | tar -x -C "$src"
144删除: for p in "$@"; do
145删除: os="${p%-*}"; arch="${p#*-}"
146删除: stage="$out/stage-$p/agent-vm-$version"
147删除: mkdir -p "$stage"
148删除: echo " building $p"
149删除: # The Makefile sets cgo (macOS only). GOWORK=off: a go.work above $WORK
150删除: # would take part in the build.
151删除: make -C "$src" clean >/dev/null
152删除: env -u CGO_ENABLED GOWORK=off make -C "$src" agent-vm GOOS="$os" GOARCH="$arch" VERSION="$version" \
153删除: >"$out/build-$p.log" 2>&1 || { tail -n 20 "$out/build-$p.log" >&2; die "the $p build failed: $out/build-$p.log"; }
154删除: bin=agent-vm
155删除: [ "$os" != windows ] || bin=agent-vm.exe
156删除: cp "$src/_output/bin/$bin" "$src/agent-vm.sh" "$src/LICENSE" "$src/NOTICE" "$src/THIRD_PARTY_LICENSES" \
157删除: "$src/README.md" "$src/CHANGELOG.md" "$src/runtime.example.sh" "$stage/"
158删除: [ "$os" != windows ] || [ -z "${AGENT_VM_WINDOWS_PFX:-}" ] || sign_windows "$stage/$bin" "$out"
159删除: make_tarball "$out/agent-vm-$version-$p.tar.gz" "$out/stage-$p" "agent-vm-$version"
160删除: [ "$os" != linux ] || linux_packages "$ref" "$version" "$out" "$arch" "$stage"
161删除: done
162删除:}
163删除:
164删除:# nfpm, which makes the .deb and .rpm: AGENT_VM_NFPM names a binary, else the
165删除:# pinned version is built with Go (once, into $WORK/bin).
166删除:NFPM_VERSION=v2.48.0
167删除:nfpm_bin() {
168删除: if [ -n "${AGENT_VM_NFPM:-}" ]; then echo "$AGENT_VM_NFPM"; return; fi
169删除: local bin="$WORK/bin/nfpm"
170删除: if [ ! -x "$bin" ]; then
171删除: ( cd "$WORK" && GOWORK=off GOBIN="$WORK/bin" go install "github.com/goreleaser/nfpm/v2/cmd/nfpm@$NFPM_VERSION" ) >"$WORK/nfpm-build.log" 2>&1 \
172删除: || { tail -n 20 "$WORK/nfpm-build.log" >&2; die "could not build nfpm $NFPM_VERSION (or set AGENT_VM_NFPM)"; }
173删除: fi
174删除: echo "$bin"
175删除:}
176删除:
177删除:# linux_packages <ref> <version> <outdir> <goarch> <stagedir>: in outdir,
178删除:# agent-vm_<version>_<goarch>.deb and agent-vm-<version>-1.<arch>.rpm, from
179删除:# packaging/nfpm.yaml and the files of the tarball's folder. The dates inside
180删除:# are the commit's, so the same commit gives the same packages.
181删除:linux_packages() {
182删除: local ref="$1" version="$2" out="$3" goarch="$4" stage="$5" nfpm rpmarch qdeb qrpm
183删除: case "$goarch" in
184删除: amd64) rpmarch=x86_64; qdeb=qemu-system-x86; qrpm=qemu-system-x86-core ;;
185删除: arm64) rpmarch=aarch64; qdeb=qemu-system-arm; qrpm=qemu-system-aarch64-core ;;
186删除: *) die "no .deb or .rpm for $goarch" ;;
187删除: esac
188删除: nfpm="$(nfpm_bin)"
189删除: echo " packaging linux-$goarch (.deb, .rpm)"
190删除: local vars=(GOARCH="$goarch" VERSION="$version" QEMU_DEB="$qdeb" QEMU_RPM="$qrpm"
191删除: SOURCE_DATE_EPOCH="$(git -C "$REPO_DIR" log -1 --format=%ct "$ref")")
192删除: ( cd "$stage" \
193删除: && env "${vars[@]}" "$nfpm" package -f "$out/src/packaging/nfpm.yaml" -p deb -t "$out/agent-vm_${version}_${goarch}.deb" \
194删除: && env "${vars[@]}" "$nfpm" package -f "$out/src/packaging/nfpm.yaml" -p rpm -t "$out/agent-vm-${version}-1.${rpmarch}.rpm" ) \
195删除: >"$out/nfpm-$goarch.log" 2>&1 || { tail -n 20 "$out/nfpm-$goarch.log" >&2; die "packaging linux-$goarch failed: $out/nfpm-$goarch.log"; }
196删除: printf '%s\n' "agent-vm_${version}_${goarch}.deb" "agent-vm-${version}-1.${rpmarch}.rpm" >> "$out/packages.list"
197删除:}
198删除:
199删除:# make_tarball <tarball> <dir> <name>: <name> of <dir> as a tarball owned by
200删除:# root (numeric ids), with no extended attributes and no AppleDouble files
201删除:# (macOS's bsdtar adds both), and a gzip header without a date. GNU tar and
202删除:# bsdtar spell the ownership options differently.
203删除:make_tarball() {
204删除: local tarball="$1" dir="$2" name="$3" opts
205删除: chmod -R u+rwX,go+rX,go-w "$dir/$name"
206删除: if tar --version 2>/dev/null | grep -q bsdtar; then
207删除: opts=(--uid 0 --gid 0 --uname root --gname root --numeric-owner --no-xattrs)
208删除: else
209删除: opts=(--owner=0 --group=0 --numeric-owner --no-xattrs --sort=name)
210删除: fi
211删除: COPYFILE_DISABLE=1 tar "${opts[@]}" -cf - -C "$dir" "$name" | gzip -n -9 > "$tarball"
212删除:}
213删除:
214删除:# sign_windows <exe> <workdir>: Authenticode signature (see the top). The
215删除:# password goes through a file, not the command line.
216删除:sign_windows() {
217删除: local exe="$1" pass="$2/pfx-pass" ts="${AGENT_VM_WINDOWS_TIMESTAMP-http://timestamp.digicert.com}"
218删除: local args=(sign -pkcs12 "$AGENT_VM_WINDOWS_PFX" -readpass "$pass" -h sha256 -n agent-vm -i https://www.agent-vm.org/)
219删除: [ -z "$ts" ] || args+=(-t "$ts")
220删除: ( umask 077; printf '%s' "${AGENT_VM_WINDOWS_PFX_PASS:-}" > "$pass" )
221删除: osslsigncode "${args[@]}" -in "$exe" -out "$exe.signed" >"$exe.sign.log" 2>&1 \
222删除: || { rm -f "$pass"; cat "$exe.sign.log" >&2; die "could not sign $exe"; }
223删除: rm -f "$pass" "$exe.sign.log"
224删除: mv "$exe.signed" "$exe"
225删除:}
226删除:
227删除:# fetch <url> <file>: HTTPS only, as the installer downloads, with retries (a
228删除:# release is not instantly served everywhere).
229删除:fetch() {
230删除: curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL --retry 5 --retry-delay 3 --retry-all-errors -o "$2" "$1"
231删除:}
232删除:
233删除:# verify_draft: the draft's assets, downloaded back, are the local files, and
234删除:# their checksums are the ones in the downloaded SHA256SUMS.
235删除:verify_draft() {
236删除: local d="$WORK/draft" a f sum
237删除: if [ -n "$DRY_RUN" ]; then
238删除: echo " the draft's assets would be downloaded and compared with the local ones"
239删除: return
240删除: fi
241删除: mkdir -p "$d"
242删除: gh release download "$TAG" --dir "$d" \
243删除: || die "could not download the draft of $TAG: it is left as it is; running this again replaces it"
244删除: [ "$(cd "$d" && ls | LC_ALL=C sort)" = "$( { for a in "${assets[@]}" "$WORK/SHA256SUMS"; do basename "$a"; done; } | LC_ALL=C sort)" ] \
245删除: || die "the draft of $TAG does not hold the assets uploaded: $(cd "$d" && ls | tr '\n' ' ')"
246删除: for a in "${assets[@]}" "$WORK/SHA256SUMS"; do
247删除: cmp -s "$a" "$d/$(basename "$a")" || die "$(basename "$a") in the draft differs from the local file"
248删除: done
249删除: while read -r sum f; do
250删除: [ "$(sha256_of "$d/$f")" = "$sum" ] || die "$f in the draft does not match SHA256SUMS"
251删除: done < "$d/SHA256SUMS"
252删除: ok "the draft holds the assets uploaded, and their checksums match"
253删除:}
254删除:
255删除:# smoke_test: the published release, downloaded as a user does: the checksums
256删除:# are those of the local files, from the tag's URL and from latest/ (what the
257删除:# installer reads) when this is the latest release, the signature is valid,
258删除:# and this machine's binary reports the version.
259删除:smoke_test() {
260删除: local d="$WORK/smoke" sum f p os arch pub bin
261删除: if [ -n "$DRY_RUN" ]; then
262删除: echo " the published assets would be downloaded and checked against SHA256SUMS"
263删除: return
264删除: fi
265删除: mkdir -p "$d/x"
266删除: fetch "$BASE/SHA256SUMS" "$d/SHA256SUMS" || die "could not download $BASE/SHA256SUMS"
267删除: cmp -s "$d/SHA256SUMS" "$WORK/SHA256SUMS" || die "the published SHA256SUMS differs from the local one"
268删除: if [ -z "$NOT_LATEST" ]; then
269删除: fetch "https://github.com/$SLUG/releases/latest/download/SHA256SUMS" "$d/latest-SHA256SUMS" \
270删除: || die "could not download latest/SHA256SUMS"
271删除: cmp -s "$d/latest-SHA256SUMS" "$WORK/SHA256SUMS" || die "latest/SHA256SUMS is not this release's"
272删除: fi
273删除: while read -r sum f; do
274删除: fetch "$BASE/$f" "$d/$f" || die "could not download $BASE/$f"
275删除: [ "$(sha256_of "$d/$f")" = "$sum" ] || die "the published $f does not match SHA256SUMS"
276删除: done < "$WORK/SHA256SUMS"
277删除: if [ -f "$WORK/SHA256SUMS.minisig" ]; then
278删除: fetch "$BASE/SHA256SUMS.minisig" "$d/SHA256SUMS.minisig" || die "could not download SHA256SUMS.minisig"
279删除: pub="$(sed -n 's/^MINISIGN_PUBKEY="\(.*\)"$/\1/p' "$REPO_DIR/www/public/install.sh")"
280删除: if [ -z "$pub" ]; then
281删除: warn "MINISIGN_PUBKEY in www/public/install.sh is empty: the installer does not check the signature"
282删除: else
283删除: minisign -V -P "$pub" -m "$d/SHA256SUMS" -x "$d/SHA256SUMS.minisig" >/dev/null \
284删除: || die "the published signature does not verify with the installer's MINISIGN_PUBKEY"
285删除: ok "the signature verifies with the installer's MINISIGN_PUBKEY"
286删除: fi
287删除: fi
288删除: ok "the published assets match SHA256SUMS"
289删除: os="$(uname -s | tr '[:upper:]' '[:lower:]')"
290删除: case "$(uname -m)" in x86_64) arch=amd64 ;; aarch64) arch=arm64 ;; *) arch="$(uname -m)" ;; esac
291删除: p="$os-$arch"
292删除: f="agent-vm-$VERSION-$p.tar.gz"
293删除: if [ -f "$d/$f" ]; then
294删除: tar -x -z -o -f "$d/$f" -C "$d/x" || die "could not unpack $f"
295删除: bin="$d/x/agent-vm-$VERSION/agent-vm"
296删除: if [ -x "$bin" ] && [ "$("$bin" version)" = "$VERSION" ]; then
297删除: ok "the $p binary reports $VERSION"
298删除: else
299删除: die "the $p binary in $f does not run, or reports another version"
300删除: fi
301删除: fi
302删除:}
303删除:
304删除:# --- arguments -----------------------------------------------------------------
305删除:[ $# -ge 1 ] || usage
306删除:if [ "$1" = "notes" ]; then
307删除: [ $# -eq 2 ] && valid_version "$2" || usage
308删除: notes="$(changelog_notes "$2")"
309删除: [ -n "$notes" ] || die "CHANGELOG.md has no '## $2' section, or it is empty"
310删除: printf '%s\n' "$notes"
311删除: exit 0
312删除:fi
313删除:
314删除:VERSION="$1"; shift
315删除:valid_version "$VERSION" || die "not a version: '$VERSION' (expected X.Y.Z)"
316删除:TAG="v$VERSION"
317删除:DRY_RUN=""; ASSUME_YES=""; BYPASS_CHECKS=""; NOT_LATEST=""
318删除:while [ $# -gt 0 ]; do
319删除: case "$1" in
320删除: --dry-run) DRY_RUN=1 ;;
321删除: --yes) ASSUME_YES=1 ;;
322删除: --bypass-checks) BYPASS_CHECKS=1 ;;
323删除: --not-latest) NOT_LATEST=1 ;;
324删除: *) usage ;;
325删除: esac
326删除: shift
327删除:done
328删除:
329删除:cd "$REPO_DIR"
330删除:for t in git make go; do
331删除: command -v "$t" >/dev/null 2>&1 || die "$t is required"
332删除:done
333删除:if [ -n "${AGENT_VM_RELEASE_TEST_NO_MACOS:-}" ]; then
334删除: # tests/release.sh, against a throwaway repository: the whole run, here.
335删除: PLATFORMS="linux-arm64 linux-amd64 windows-arm64 windows-amd64"
336删除:elif [ "$(uname -s)" != Darwin ]; then
337删除: [ -n "$DRY_RUN" ] || die "a release is built on macOS: the macOS binaries need its SDK and codesign"
338删除: PLATFORMS="linux-arm64 linux-amd64 windows-arm64 windows-amd64"
339删除: warn "not on macOS: this dry run builds the Linux and Windows binaries only"
340删除:fi
341删除:if [ -n "${AGENT_VM_WINDOWS_PFX:-}" ]; then
342删除: command -v osslsigncode >/dev/null 2>&1 || die "osslsigncode is required to sign the Windows binaries (brew install osslsigncode)"
343删除: [ -f "$AGENT_VM_WINDOWS_PFX" ] || die "no file at $AGENT_VM_WINDOWS_PFX (AGENT_VM_WINDOWS_PFX)"
344删除:else
345删除: warn "AGENT_VM_WINDOWS_PFX is not set: the Windows binaries are not signed"
346删除:fi
347删除:if [ -n "${AGENT_VM_MINISIGN_KEY:-}" ]; then
348删除: command -v minisign >/dev/null 2>&1 || die "minisign is required to sign SHA256SUMS (brew install minisign)"
349删除: [ -f "$AGENT_VM_MINISIGN_KEY" ] || die "no file at $AGENT_VM_MINISIGN_KEY (AGENT_VM_MINISIGN_KEY)"
350删除:else
351删除: warn "AGENT_VM_MINISIGN_KEY is not set: SHA256SUMS is not signed"
352删除:fi
353删除:command -v curl >/dev/null 2>&1 || die "curl is required"
354删除:# A dry run changes nothing, here included: no fetch (origin is read with
355删除:# ls-remote), and gh only for reading, skipped with a warning when it is
356删除:# missing or not logged in.
357删除:GH=1
358删除:if ! command -v gh >/dev/null 2>&1 || ! gh auth status >/dev/null 2>&1; then
359删除: [ -n "$DRY_RUN" ] || die "gh is required, and logged in"
360删除: GH=""
361删除: warn "gh is missing or not logged in: the checks that need it are skipped"
362删除:fi
363删除:
364删除:# Checked now, not at step 6: by then the tag is pushed and the release out.
365删除:if [ -n "${AGENT_VM_TAP:-}" ]; then
366删除: FORMULA="$AGENT_VM_TAP/Formula/agent-vm.rb"
367删除: [ -f "$FORMULA" ] || die "no formula at $FORMULA (AGENT_VM_TAP): create it first, or unset AGENT_VM_TAP"
368删除:fi
369删除:
370删除:# --- 1. the repository ---------------------------------------------------------
371删除:echo "Checking the repository"
372删除:dirty="$(git status --porcelain)"
373删除:[ -z "$dirty" ] || die "the working tree is not clean:
374删除:$dirty"
375删除:ok "working tree is clean"
376删除:
377删除:current="$(git rev-parse --abbrev-ref HEAD)"
378删除:[ "$current" = "$BRANCH" ] || die "on branch '$current', not '$BRANCH' (RELEASE_BRANCH overrides)"
379删除:ok "on $BRANCH"
380删除:
381删除:head="$(git rev-parse HEAD)"
382删除:# `|| true`: under set -e and pipefail, a failed ls-remote would exit here
383删除:# without a word; the check below says what went wrong.
384删除:remote_head="$(git ls-remote origin "refs/heads/$BRANCH" | cut -f1)" || true
385删除:[ -n "$remote_head" ] || die "could not read origin/$BRANCH"
386删除:[ "$head" = "$remote_head" ] \
387删除: || die "HEAD is not origin/$BRANCH: push or pull first"
388删除:ok "level with origin/$BRANCH (${head:0:12})"
389删除:
390删除:# A tag already at HEAD with no release behind it is a previous run that
391删除:# pushed the tag and then failed: pick up from the release. The commit a tag
392删除:# names: the peeled line of an annotated tag, or the tag itself.
393删除:tag_commit() {
394删除: local local_c remote
395删除: if local_c="$(git rev-parse -q --verify "refs/tags/$TAG^{commit}")"; then
396删除: printf '%s\n' "$local_c"
397删除: return
398删除: fi
399删除: remote="$(git ls-remote --tags origin "refs/tags/$TAG" "refs/tags/$TAG^{}")"
400删除: printf '%s\n' "$remote" | awk -v t="refs/tags/$TAG" '$2 == t "^{}" { p = $1 } $2 == t { l = $1 } END { print (p != "" ? p : l) }'
401删除:}
402删除:# release_state: none, draft or published, for $TAG. Listed, not viewed: gh
403删除:# finds drafts by tag in some versions and not in others.
404删除:release_state() {
405删除: local s
406删除: s="$(gh release list --limit 200 --json tagName,isDraft \
407删除: --jq ".[] | select(.tagName == \"$TAG\") | if .isDraft then \"draft\" else \"published\" end")" \
408删除: || die "could not list the releases with gh"
409删除: printf '%s\n' "${s:-none}"
410删除:}
411删除:RESUME=""; DRAFT=""
412删除:if git rev-parse -q --verify "refs/tags/$TAG" >/dev/null \
413删除: || [ -n "$(git ls-remote --tags origin "refs/tags/$TAG")" ]; then
414删除: if [ -z "$GH" ]; then
415删除: die "tag $TAG already exists (without gh, whether it has a release cannot be checked)"
416删除: fi
417删除: state="$(release_state)"
418删除: if [ "$(tag_commit)" = "$head" ] && [ "$state" != published ]; then
419删除: RESUME=1
420删除: if [ "$state" = draft ]; then
421删除: DRAFT=1
422删除: warn "tag $TAG is already at ${head:0:12}, with a draft release: resuming from the release, the draft is replaced"
423删除: else
424删除: warn "tag $TAG is already at ${head:0:12}, with no release: resuming from the release"
425删除: fi
426删除: else
427删除: die "tag $TAG already exists"
428删除: fi
429删除:else
430删除: ok "tag $TAG is free"
431删除: # A draft without a tag: left by a run that was stopped by hand.
432删除: if [ -n "$GH" ] && [ "$(release_state)" = draft ]; then
433删除: die "a draft release for $TAG exists without its tag: delete it (gh release delete $TAG) and run this again"
434删除: fi
435删除:fi
436删除:
437删除:# --- 2. version and changelog --------------------------------------------------
438删除:echo "Checking the version"
439删除:next="$(awk '$1 == "NEXT_VERSION" && $2 == ":=" { print $3 }' Makefile)"
440删除:[ "$next" = "$VERSION" ] \
441删除: || die "the Makefile's NEXT_VERSION is '$next': set it to $VERSION and commit"
442删除:ok "the Makefile's NEXT_VERSION is $VERSION"
443删除:
444删除:NOTES="$(changelog_notes "$VERSION")"
445删除:[ -n "$NOTES" ] || die "CHANGELOG.md has no '## $VERSION' section, or it is empty"
446删除:ok "CHANGELOG.md has a $VERSION section ($(printf '%s\n' "$NOTES" | wc -l | tr -d ' ') lines)"
447删除:
448删除:# Shipped in each tarball; scripts/licenses makes the last (CI checks it is
449删除:# up to date).
450删除:for f in LICENSE NOTICE THIRD_PARTY_LICENSES; do
451删除: [ -s "$f" ] || die "$f is missing or empty (scripts/licenses makes THIRD_PARTY_LICENSES)"
452删除:done
453删除:ok "LICENSE, NOTICE and THIRD_PARTY_LICENSES are there"
454删除:
455删除:# flake.nix's vendorHash is of the Go dependencies: it notes the checksum of
456删除:# go.mod and go.sum it was made for.
457删除:if [ -f flake.nix ]; then
458删除: mods="$(cat go.mod go.sum | sha256_of /dev/stdin)"
459删除: grep -q "go.mod+go.sum: $mods\$" flake.nix \
460删除: || die "flake.nix's vendorHash is not for this go.mod and go.sum: update it and its 'go.mod+go.sum: $mods' line (see the comment there)"
461删除: ok "flake.nix's vendorHash is for this go.mod and go.sum"
462删除:fi
463删除:
464删除:# --- 3. tests ------------------------------------------------------------------
465删除:# CI is the authority: it runs on Linux, macOS and Windows.
466删除:# --bypass-checks skips the workflow only: the checks above decide what the
467删除:# tag and the release are, and still apply.
468删除:echo "Checking the tests"
469删除:# Every run of the workflow on the commit counts (a push and a pull request
470删除:# have one each): none, one still going, or one failed stops the release;
471删除:# cancelled and skipped runs are ignored, and one must have succeeded.
472删除:CI_JQ='
473删除: if length == 0 then "none"
474删除: elif any(.[]; .status != "completed") then "running"
475删除: elif any(.[]; .conclusion == "failure" or .conclusion == "timed_out" or .conclusion == "action_required" or .conclusion == "startup_failure") then "failed"
476删除: elif any(.[]; .conclusion == "success") then "passed"
477删除: else "none" end
478删除:'
479删除:ci="skipped"
480删除:[ -z "$GH" ] || [ -n "$BYPASS_CHECKS" ] || ci="$(gh run list --workflow go.yml --commit "$head" --limit 50 \
481删除: --json status,conclusion --jq "$CI_JQ" 2>/dev/null || true)"
482删除:case "$ci" in
483删除: skipped)
484删除: if [ -n "$BYPASS_CHECKS" ]; then warn "the CI workflow on ${head:0:12} was not checked (--bypass-checks)"
485删除: else warn "the CI workflow on ${head:0:12} was not checked (no gh)"; fi ;;
486删除: passed) ok "the CI workflow passed on ${head:0:12}" ;;
487删除: none|"") die "no passing CI workflow run for ${head:0:12} (or gh could not list them): push and wait for CI" ;;
488删除: failed) die "the CI workflow failed on ${head:0:12}" ;;
489删除: running) die "the CI workflow is still running on ${head:0:12}" ;;
490删除: *) die "unexpected CI state for ${head:0:12}: $ci" ;;
491删除:esac
492删除:for f in agent-vm.sh agent-vm.setup.sh runtime.example.sh release.sh tests/*.sh scripts/*; do
493删除: [[ -f "$f" ]] || continue
494删除: head -1 "$f" | grep -Eq '^#!.*(bash|/sh|env sh)' || continue
495删除: bash -n "$f" || die "syntax error in $f"
496删除:done
497删除:sh -n www/public/install.sh || die "syntax error in www/public/install.sh"
498删除:ok "syntax checks pass here"
499删除:
500删除:# --- confirmation --------------------------------------------------------------
501删除:echo
502删除:if [ -n "$DRY_RUN" ]; then
503删除: echo "Dry run: everything checks out. A real run would do:"
504删除:elif [ -z "$ASSUME_YES" ]; then
505删除: printf 'Tag %s at %s, push it and publish the release? [y/N] ' "$TAG" "${head:0:12}"
506删除: reply=''
507删除: IFS= read -r reply 2>/dev/null </dev/tty || reply=''
508删除: case "$reply" in [Yy]*) ;; *) echo "Aborted, nothing was changed."; exit 1 ;; esac
509删除:fi
510删除:
511删除:# --- 4-5. tag, push, build, release ----------------------------------------------
512删除:WORK="$(mktemp -d)"
513删除:trap 'rm -rf "$WORK"' EXIT
514删除:printf '%s\n' "$NOTES" > "$WORK/notes.md"
515删除:
516删除:if [ -z "$RESUME" ]; then
517删除: run git tag -a "$TAG" -m "agent-vm $VERSION"
518删除: run git push origin "refs/tags/$TAG"
519删除:elif [ -z "$(git ls-remote --tags origin "refs/tags/$TAG")" ]; then
520删除: # Resumed from a tag that only exists here: `gh release create --verify-tag`
521删除: # needs it on origin.
522删除: run git push origin "refs/tags/$TAG"
523删除:elif ! git rev-parse -q --verify "refs/tags/$TAG" >/dev/null; then
524删除: # Resumed from a tag that only exists on origin: the binaries are built from it.
525删除: run git fetch --quiet origin "refs/tags/$TAG:refs/tags/$TAG"
526删除:fi
527删除:# Built from the tag, not the working tree, so the asset is what was tagged.
528删除:# It only writes into $WORK, so a dry run builds it too (from HEAD, which is
529删除:# what the tag points at, or would) to show the checksum.
530删除:ref="$TAG"
531删除:[ -z "$DRY_RUN" ] || ref="HEAD"
532删除:echo "Building the tarballs"
533删除:# shellcheck disable=SC2086
534删除:package "$ref" "$VERSION" "$WORK" $PLATFORMS
535删除:assets=()
536删除:: > "$WORK/SHA256SUMS"
537删除:for p in $PLATFORMS; do
538删除: f="agent-vm-$VERSION-$p.tar.gz"
539删除: sha="$(sha256_of "$WORK/$f")"
540删除: printf '%s %s\n' "$sha" "$f" >> "$WORK/SHA256SUMS"
541删除: assets+=("$WORK/$f")
542删除: ok "$f: $(du -h "$WORK/$f" | cut -f1), sha256 $sha"
543删除:done
544删除:# The Linux packages, after the tarballs: the installer reads only the
545删除:# tarballs' lines of SHA256SUMS.
546删除:if [ -f "$WORK/packages.list" ]; then
547删除: while read -r f; do
548删除: sha="$(sha256_of "$WORK/$f")"
549删除: printf '%s %s\n' "$sha" "$f" >> "$WORK/SHA256SUMS"
550删除: assets+=("$WORK/$f")
551删除: ok "$f: $(du -h "$WORK/$f" | cut -f1), sha256 $sha"
552删除: done < "$WORK/packages.list"
553删除:fi
554删除:if [ -n "${AGENT_VM_MINISIGN_KEY:-}" ]; then
555删除: # Prompts for the key's password, on the terminal.
556删除: if [ -z "$DRY_RUN" ]; then
557删除: minisign -S -s "$AGENT_VM_MINISIGN_KEY" -m "$WORK/SHA256SUMS" -x "$WORK/SHA256SUMS.minisig" \
558删除: -t "agent-vm $VERSION SHA256SUMS" >/dev/null || die "could not sign SHA256SUMS"
559删除: assets+=("$WORK/SHA256SUMS.minisig")
560删除: ok "SHA256SUMS signed with minisign"
561删除: else
562删除: echo " \$ minisign -S -s <AGENT_VM_MINISIGN_KEY> -m SHA256SUMS"
563删除: fi
564删除:fi
565删除:
566删除:SLUG=""
567删除:[ -z "$GH" ] || SLUG="$(gh repo view --json nameWithOwner --jq .nameWithOwner 2>/dev/null)" || SLUG=""
568删除:# Else owner/repo from the origin URL, https or ssh.
569删除:[ -n "$SLUG" ] || SLUG="$(git remote get-url origin | sed -E 's#^.*github\.com[:/]##; s#\.git$##')"
570删除:BASE="https://github.com/$SLUG/releases/download/$TAG"
571删除:
572删除:# --- 5. the release, as a draft, checked, then published ---------------------------
573删除:# A draft is invisible: the installer and `releases/latest` never see a
574删除:# release that is half uploaded or wrong.
575删除:if [ -n "$DRAFT" ]; then
576删除: run gh release delete "$TAG" --yes
577删除:fi
578删除:run gh release create "$TAG" --draft --verify-tag --title "agent-vm $VERSION" \
579删除: --notes-file "$WORK/notes.md" "${assets[@]}" "$WORK/SHA256SUMS"
580删除:verify_draft
581删除:publish=(--draft=false --latest)
582删除:[ -z "$NOT_LATEST" ] || publish=(--draft=false --latest=false)
583删除:run gh release edit "$TAG" "${publish[@]}"
584删除:# In a subshell, for die: a failure here must not skip the Homebrew lines
585删除:# below, which are about the release that is out.
586删除:SMOKE_FAILED=""
587删除:( smoke_test ) || SMOKE_FAILED=1
588删除:
589删除:# --- 6. Homebrew -----------------------------------------------------------------
590删除:echo
591删除:echo "Homebrew formula, per platform (each tarball's agent-vm is the binary):"
592删除:while read -r sha f; do
593删除: case "$f" in *.tar.gz) ;; *) continue ;; esac
594删除: echo " url \"$BASE/$f\""
595删除: echo " sha256 \"$sha\""
596删除:done < "$WORK/SHA256SUMS"
597删除:
598删除:if [ -n "${AGENT_VM_TAP:-}" ]; then
599删除: if [ -n "$NOT_LATEST" ]; then
600删除: warn "$FORMULA is not updated (--not-latest): brew keeps the latest release"
601删除: elif [ -n "$DRY_RUN" ]; then
602删除: echo "Dry run: $FORMULA would be updated."
603删除: elif [ -n "$SMOKE_FAILED" ]; then
604删除: warn "$FORMULA is not updated: the published release failed its checks"
605删除: else
606删除: # Each url naming a platform's tarball gets this release's, and the
607删除: # sha256 after it that tarball's. A `bottle do` block has sha256 lines
608删除: # of its own, after no url: left alone.
609删除: awk -v base="$BASE" -v version="$VERSION" -v sums="$WORK/SHA256SUMS" '
610删除: BEGIN { while ((getline l < sums) > 0) { split(l, a, " "); p = a[2]; if (p !~ /\.tar\.gz$/) continue; sub(/^agent-vm-[0-9.]+-/, "", p); sub(/\.tar\.gz$/, "", p); sha[p] = a[1] } }
611删除: /^[[:space:]]*url / {
612删除: for (p in sha) if (index($0, "-" p ".tar.gz")) {
613删除: sub(/url .*/, "url \"" base "/agent-vm-" version "-" p ".tar.gz\""); want = p
614删除: }
615删除: }
616删除: want != "" && /^[[:space:]]*sha256 / { sub(/sha256 .*/, "sha256 \"" sha[want] "\""); want = "" }
617删除: { print }' "$FORMULA" > "$WORK/formula.rb"
618删除: mv "$WORK/formula.rb" "$FORMULA"
619删除: ok "updated $FORMULA"
620删除: echo " Review and publish it:"
621删除: echo " git -C \"$AGENT_VM_TAP\" diff"
622删除: echo " git -C \"$AGENT_VM_TAP\" commit -am \"agent-vm $VERSION\" && git -C \"$AGENT_VM_TAP\" push"
623删除: fi
624删除:fi
625删除:
626删除:echo
627删除:if [ -n "$DRY_RUN" ]; then
628删除: ok "dry run complete, nothing was changed"
629删除:elif [ -n "$SMOKE_FAILED" ]; then
630删除: die "agent-vm $VERSION is published, but the check of what users download failed (above): look at it by hand; to take it back, gh release edit $TAG --draft"
631删除:else
632删除: ok "agent-vm $VERSION is released"
633删除:fi
修改scripts/build-windows.ps1+1 −1看文件
@@ -29,7 +29,7 @@ try {
2929 Invoke-BuildTool $npm @('--prefix', 'ui', 'ci', '--no-audit', '--no-fund')
3030 Invoke-BuildTool $npm @('run', '--prefix', 'ui', 'build')
3131 }
32删除: $limaVersion = ((Get-Content 'third_party/SOURCES' | Where-Object { $_ -match '^lima\s' }) -split '\s+')[3]
32新增: $limaVersion = (Get-Content 'internal/limaembed/lima-version' -Raw).Trim()
3333 $assets = Join-Path $repository 'internal/limaembed/assets'
3434 $guest = Join-Path $assets 'lima-guestagent.Linux-x86_64'
3535 $env:GOOS = 'linux'; $env:GOARCH = 'amd64'; $env:CGO_ENABLED = '0'
修改scripts/collect-app-licenses.mjs+1 −1看文件
@@ -25,7 +25,7 @@ for (const [path, entry] of Object.entries(lock.packages)) {
2525}
2626writeFileSync(join(target, "npm", "NOTICE.txt"), `${notices.join("\n")}\n`);
2727const novnc = join(root, "ui/vendor/novnc");
28删除:for (const file of ["LICENSE.txt", "AUTHORS", "README.cage.md", "docs", "vendor/pako/LICENSE"]) {
28新增:for (const file of ["LICENSE.txt", "AUTHORS", "NOTICE.cage", "docs", "vendor/pako/LICENSE"]) {
2929 mkdirSync(join(target, "novnc", file.includes("/") ? file.slice(0, file.lastIndexOf("/")) : ""), { recursive: true });
3030 cpSync(join(novnc, file), join(target, "novnc", file), { recursive: true });
3131}
删除scripts/third-party-sync+0 −103
@@ -1,103 +0,0 @@
1删除:#!/usr/bin/env bash
2删除:#
3删除:# Rebuild third_party/<name> from its upstream commit (third_party/SOURCES)
4删除:# and patches/<name>/*.patch, applied in name order.
5删除:#
6删除:# scripts/third-party-sync <name>|all rewrite third_party/<name>
7删除:# scripts/third-party-sync <name>|all --check fail when third_party/<name> differs
8删除:# scripts/third-party-sync <name> --ref <commit> rebuild from <commit>, and record it
9删除:#
10删除:# A patch that does not apply stops it, with nothing changed: rebase that
11删除:# patch on the new upstream first. Edits made by hand in third_party/ are
12删除:# lost here and caught by --check (contents, executable bits and symbolic
13删除:# links): make them a patch instead.
14删除:#
15删除:# Needs git, awk, find, diff and, to rewrite third_party/<name>, rsync.
16删除:
17删除:set -euo pipefail
18删除:
19删除:ROOT="$(CDPATH= cd -P -- "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null && pwd)"
20删除:SOURCES="$ROOT/third_party/SOURCES"
21删除:
22删除:die() { printf 'third-party-sync: %s\n' "$*" >&2; exit 1; }
23删除:usage() { sed -n '5,7p' "$0" | sed 's/^# \{0,1\}//' >&2; exit 2; }
24删除:
25删除:[ $# -ge 1 ] || usage
26删除:target="$1"; shift
27删除:mode=write ref=""
28删除:while [ $# -gt 0 ]; do
29删除: case "$1" in
30删除: --check) mode=check ;;
31删除: --ref) [ $# -ge 2 ] || usage; ref="$2"; shift ;;
32删除: *) usage ;;
33删除: esac
34删除: shift
35删除:done
36删除:[ -z "$ref" ] || [ "$target" != all ] || die "--ref needs one name, not all"
37删除:[ -z "$ref" ] || [ "$mode" == write ] || die "--ref and --check do not go together"
38删除:
39删除:names="$(awk '!/^#/ && NF { print $1 }' "$SOURCES")"
40删除:if [ "$target" != all ]; then
41删除: printf '%s\n' "$names" | grep -qx -- "$target" || die "no '$target' in $SOURCES"
42删除: names="$target"
43删除:fi
44删除:
45删除:TMP="$(mktemp -d)"
46删除:trap 'rm -rf "$TMP"' EXIT
47删除:
48删除:# <name>: the upstream tree with the patches applied, in $TMP/<name>.
49删除:build() {
50删除: local name="$1" url commit version omit p dir="$TMP/$1"
51删除: read -r url commit version omit <<< "$(awk -v n="$name" '$1 == n { print $2, $3, $4, $5 }' "$SOURCES")"
52删除: [ -z "$ref" ] || commit="$ref"
53删除: git clone --quiet --filter=blob:none --no-checkout "$url" "$dir"
54删除: git -C "$dir" -c advice.detachedHead=false checkout --quiet "$commit"
55删除: commit="$(git -C "$dir" rev-parse HEAD)"
56删除: version="$(git -C "$dir" describe --tags --match 'v[0-9]*' --always)"
57删除: for p in "$ROOT/patches/$name"/*.patch; do
58删除: [ -e "$p" ] || continue
59删除: git -C "$dir" apply --whitespace=nowarn "$p" \
60删除: || die "$name: ${p#"$ROOT"/} does not apply on $commit"
61删除: done
62删除: # Submodules (Lima's harnesses under hack/bats/lib) are never vendored:
63删除: # the clone above leaves their folders empty, and empty folders cannot be
64删除: # committed, so without this the check always differs.
65删除: git -C "$dir" ls-files -s | awk '$1 == "160000" { sub(/^[^\t]*\t/, ""); print }' \
66删除: | while IFS= read -r g; do rm -rf "${dir:?}/$g"; done
67删除: find "$dir" -type d -empty -delete
68删除: rm -rf "$dir/.git"
69删除: if [ "$omit" != - ]; then
70删除: local o
71删除: for o in ${omit//,/ }; do rm -rf "${dir:?}/$o"; done
72删除: fi
73删除: printf '%s %s\n' "$commit" "$version" > "$TMP/$name.commit"
74删除:}
75删除:
76删除:# What diff -r does not see: the files that are executable, and the symbolic
77删除:# links (git records the one mode bit, and links as such).
78删除:shape() {
79删除: ( cd "$1" && { find . -type f -perm -u+x -exec echo "x {}" \; ; find . -type l -exec echo "l {}" \; ; } | LC_ALL=C sort )
80删除:}
81删除:
82删除:st=0
83删除:for name in $names; do
84删除: build "$name"
85删除: if [ "$mode" == check ]; then
86删除: if diff -r -q "$TMP/$name" "$ROOT/third_party/$name" >&2 \
87删除: && diff <(shape "$TMP/$name") <(shape "$ROOT/third_party/$name") >&2; then
88删除: printf 'third_party/%s: upstream and patches, unchanged\n' "$name"
89删除: else
90删除: printf 'third_party/%s: differs from upstream and patches (above)\n' "$name" >&2
91删除: st=1
92删除: fi
93删除: continue
94删除: fi
95删除: rsync -a --delete "$TMP/$name/" "$ROOT/third_party/$name/"
96删除: read -r commit version < "$TMP/$name.commit"
97删除: awk -v n="$name" -v c="$commit" -v v="$version" '
98删除: $1 == n && !/^#/ { $0 = sprintf("%-10s %-41s %-41s %-27s %s", $1, $2, c, v, $5) }
99删除: { print }' \
100删除: "$SOURCES" > "$TMP/SOURCES" && cat "$TMP/SOURCES" > "$SOURCES"
101删除: printf 'third_party/%s: rebuilt (%s)\n' "$name" "$version"
102删除:done
103删除:exit "$st"
删除third_party/SOURCES+0 −9
@@ -1,9 +0,0 @@
1删除:# The upstream commit each third_party/<name> is made from, before
2删除:# patches/<name>/*.patch, and its `git describe` (the Lima version the build
3删除:# reports). scripts/third-party-sync reads and updates this file.
4删除:#
5删除:# name upstream commit version left out
6删除:lima https://github.com/lima-vm/lima 928babab2139418b5733cf0ee39cd568ce8e065c v2.3.0-beta.0-98-g928babab website
7删除:sshocker https://github.com/lima-vm/sshocker bda6eca2979ae19ac0917f914093721c88813726 v0.3.11 -
8删除:sftp https://github.com/pkg/sftp fc82c354c0d87349411e30a08bef297c9f132105 v1.13.11 -
9删除:gvisor-tap-vsock https://github.com/containers/gvisor-tap-vsock 9cfc86f66679ef0feed0f20ba1df558fe2bef5c6 v0.8.9 vendor,tools
删除third_party/gvisor-tap-vsock/.gitattributes+0 −1
@@ -1 +0,0 @@
1删除:/pkg/types/version.go export-subst
删除third_party/gvisor-tap-vsock/.github/dependabot.yml+0 −17
@@ -1,17 +0,0 @@
1删除:version: 2
2删除:updates:
3删除:- package-ecosystem: gomod
4删除: directory: "/"
5删除: schedule:
6删除: interval: daily
7删除: open-pull-requests-limit: 10
8删除:- package-ecosystem: gomod
9删除: directory: "/tools"
10删除: schedule:
11删除: interval: daily
12删除: open-pull-requests-limit: 10
13删除:- package-ecosystem: github-actions
14删除: directory: "/"
15删除: schedule:
16删除: interval: daily
17删除: open-pull-requests-limit: 10
删除third_party/gvisor-tap-vsock/.github/workflows/go.yml+0 −83
@@ -1,83 +0,0 @@
1删除:name: Go
2删除:
3删除:on:
4删除: push:
5删除: branches: [ main ]
6删除: pull_request:
7删除: branches: [ main ]
8删除:
9删除:jobs:
10删除:
11删除: build:
12删除: runs-on: ubuntu-22.04 # explicitly use older ubuntu, see commit 428c40018f
13删除: timeout-minutes: 30
14删除: strategy:
15删除: fail-fast: false
16删除: matrix:
17删除: go-version: ["1.25.x", "1.26.x"]
18删除: steps:
19删除: - uses: actions/checkout@v6
20删除: with:
21删除: fetch-depth: 0 # history/tags are needed for automatic version generation
22删除: fetch-tags: true
23删除:
24删除: - name: Set up Go
25删除: uses: actions/setup-go@v6
26删除: with:
27删除: go-version: ${{ matrix.go-version }}
28删除:
29删除: - name: Build
30删除: run: |
31删除: make cross qemu-wrapper vm win-gvproxy win-sshproxy image
32删除: mv bin/gvproxy.exe bin/gvproxy-windowsgui.exe
33删除:
34删除: - uses: actions/upload-artifact@v7
35删除: if: matrix.go-version == '1.25.x'
36删除: with:
37删除: name: gvisor-tap-vsock-binaries
38删除: path: bin/*
39删除:
40删除: tests:
41删除: runs-on: ubuntu-latest # The runner must support nested virt
42删除: needs: build # Don't bother testing if cross arch build fails
43删除: timeout-minutes: 30
44删除: steps:
45删除: - uses: actions/checkout@v6
46删除:
47删除: - name: Install qemu
48删除: run: |
49删除: sudo apt update
50删除: sudo apt install qemu-kvm
51删除: sudo usermod -a -G kvm $USER
52删除:
53删除: - name: Set up Go
54删除: uses: actions/setup-go@v6
55删除: with:
56删除: go-version: 'stable'
57删除:
58删除: - name: Test
59删除: run: |
60删除: sudo -s -u ${USER} bash -c 'make test'
61删除:
62删除: - uses: actions/upload-artifact@v7
63删除: if: always()
64删除: with:
65删除: name: qcon
66删除: path: test/qcon.log
67删除:
68删除: win-sshproxy-tests:
69删除: runs-on: windows-latest # Only builds/runs on windows
70删除: timeout-minutes: 30
71删除: steps:
72删除: - uses: actions/checkout@v6
73删除:
74删除: - name: Set up Go
75删除: uses: actions/setup-go@v6
76删除: with:
77删除: go-version: 'stable'
78删除:
79删除: - name: Build
80删除: run: make win-sshproxy
81删除:
82删除: - name: Test
83删除: run: go test -v .\test-win-sshproxy
删除third_party/gvisor-tap-vsock/.github/workflows/golangci-lint.yml+0 −20
@@ -1,20 +0,0 @@
1删除:name: golangci-lint
2删除:
3删除:on:
4删除: push:
5删除: branches: [ main ]
6删除: pull_request:
7删除: branches: [ main ]
8删除:
9删除:jobs:
10删除: golangci:
11删除: name: lint
12删除: runs-on: ubuntu-latest
13删除: steps:
14删除: - uses: actions/checkout@v6
15删除: - name: Set up Go
16删除: uses: actions/setup-go@v6
17删除: with:
18删除: go-version: 'stable'
19删除: - name: golangci-lint
20删除: run: make cross-lint
删除third_party/gvisor-tap-vsock/.github/workflows/release.yml+0 −59
@@ -1,59 +0,0 @@
1删除:name: Release build
2删除:
3删除:on:
4删除: push:
5删除: tags:
6删除: - 'v*'
7删除:
8删除:jobs:
9删除: build:
10删除: runs-on: ubuntu-22.04 # explicitly use older ubuntu, see commit 428c40018f
11删除: timeout-minutes: 30
12删除: strategy:
13删除: fail-fast: false
14删除: steps:
15删除: - name: Checkout source code
16删除: uses: actions/checkout@v6
17删除: with:
18删除: fetch-depth: 1
19删除:
20删除: - name: >-
21删除: WORKAROUND: Fetch tags that points to the revisions
22删除: checked-out(actions/checkout#1467)
23删除: run: |-
24删除: git fetch --tags --force
25删除:
26删除: - name: Set up Go
27删除: uses: actions/setup-go@v6
28删除: with:
29删除: go-version: 'stable'
30删除:
31删除: - name: Build
32删除: run: |
33删除: make cross qemu-wrapper vm win-gvproxy win-sshproxy image
34删除: mv bin/gvproxy.exe bin/gvproxy-windowsgui.exe
35删除:
36删除: - name: Log in to Quay.io
37删除: uses: redhat-actions/podman-login@v1
38删除: with:
39删除: username: ${{ secrets.QUAY_USER_NAME }}
40删除: password: ${{ secrets.QUAY_PASSWORD }}
41删除: registry: quay.io
42删除:
43删除: - name: Push Image
44删除: run: |
45删除: make push
46删除:
47删除: - uses: actions/upload-artifact@v7
48删除: with:
49删除: name: gvisor-tap-vsock-binaries
50删除: path: bin/*
51删除:
52删除: - name: Create release on github
53删除: env:
54删除: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55删除: run: |
56删除: gh release create --draft --generate-notes --verify-tag ${{github.ref_name}}
57删除: cd bin
58删除: sha256sum * >> sha256sums
59删除: gh release upload ${{github.ref_name}} *
删除third_party/gvisor-tap-vsock/.gitignore+0 −4
@@ -1,4 +0,0 @@
1删除:bin/
2删除:capture.pcap
3删除:tmp/
4删除:test/qcon.log
删除third_party/gvisor-tap-vsock/CODE-OF-CONDUCT.md+0 −3
@@ -1,3 +0,0 @@
1删除:## The gvisor-tap-vsock Project Community Code of Conduct
2删除:
3删除:The gvisor-tap-vsock project follows the [Containers Community Code of Conduct](https://github.com/containers/common/blob/main/CODE-OF-CONDUCT.md).
删除third_party/gvisor-tap-vsock/DEVELOPMENT.md+0 −86
@@ -1,86 +0,0 @@
1删除:### Debugging test
2删除:
3删除:#### MacOS
4删除:
5删除:You could debug tests with [Delve](https://github.com/go-delve/delve) debugger.
6删除:Run:
7删除:```shell
8删除:make test-mac-debug
9删除:```
10删除:This command will run build `gvisor` binary with debugger enabled.
11删除:
12删除:>Note: By default it would use `--continue` `dlv` option to not pause `gvisor` execution on start, if debugger is not connected.
13删除:> To pause `gvisor` execution until debugger is connected just remove `"--continue"` parameter from this [line](./test-vfkit/vfkit_suite_test.go#L93)
14删除:
15删除:And debug server with `2345` port, you could use any `delve` client to interact with debugger
16删除:
17删除:##### GoLand Example
18删除:Create new `Go Remote` debug configuration:
19删除:1. Click Edit | Run Configurations. Alternatively, click the list of run/debug configurations on the toolbar and select Edit Configurations.
20删除:2. In the Run/Debug Configurations dialog, click the Add button (the Add button) and select Go Remote.
21删除:3. Set meaningful name
22删除:4. In the Host field, keep `localhost`
23删除:5. In the Port field, keep `2345` port number
24删除:6. Click **OK** button
25删除:
26删除:Run `gvisor` tests with debug with:
27删除:```shell
28删除:make test-mac-debug
29删除:```
30删除:wait until `Listening for remote connections (connections are not authenticated nor encrypted)` message it appears.
31删除:Click on debug button on Golang, ensure that your `Go Remote` profile is selected.
32删除:
33删除:Have fun with debugging.
34删除:
35删除:##### VSCode
36删除:Create/edit `launch.json` by adding this configuration:
37删除:```json
38删除: {
39删除: "name": "Connect to Gvisor",
40删除: "type": "go",
41删除: "request": "attach",
42删除: "mode": "remote",
43删除: "remotePath": "${workspaceFolder}",
44删除: "port": 2345,
45删除: "host": "localhost"
46删除: }
47删除:```
48删除:Run `gvisor` tests with debug with:
49删除:```shell
50删除:make test-mac-debug
51删除:```
52删除:wait until `Listening for remote connections (connections are not authenticated nor encrypted)` message it appears.
53删除:Execute the launch attach request(`Connect to Gvisor`).
54删除:
55删除:Have fun with debugging.
56删除:
57删除:##### CLI Example
58删除:
59删除:Connect to debugger server with:
60删除:```shell
61删除:dlv connect :2345
62删除:```
63删除:Example of usage:
64删除:```shell
65删除:Type 'help' for list of commands.
66删除:(dlv) break main.main
67删除:Breakpoint 1 set at 0xe735776 for main.main() ./work/redhat/gvisor-tap-vsock/cmd/gvproxy/main.go:59
68删除:(dlv) continue
69删除:> [Breakpoint 1] main.main() ./work/redhat/gvisor-tap-vsock/cmd/gvproxy/main.go:59 (hits goroutine(1):1 total:1) (PC: 0xe735776)
70删除: 54: hostIP = "192.168.127.254"
71删除: 55: host = "host"
72删除: 56: gateway = "gateway"
73删除: 57: )
74删除: 58:
75删除:=> 59: func main() {
76删除: 60: version := types.NewVersion("gvproxy")
77删除: 61: version.AddFlag()
78删除: 62: flag.Var(&endpoints, "listen", "control endpoint")
79删除: 63: flag.BoolVar(&debug, "debug", false, "Print debug info")
80删除: 64: flag.IntVar(&mtu, "mtu", 1500, "Set the MTU")
81删除:```
82删除:More info about CLI client [here](https://github.com/go-delve/delve/blob/master/Documentation/cli/README.md)
83删除:
84删除:#### Editor integration
85删除:
86删除:For available editor integration look [there](https://github.com/go-delve/delve/blob/master/Documentation/EditorIntegration.md)
文件末尾没有换行
删除third_party/gvisor-tap-vsock/README.md+0 −250
@@ -1,250 +0,0 @@
1删除:# gvisor-tap-vsock
2删除:
3删除:
4删除:A replacement for [libslirp](https://gitlab.com/qemu-project/libslirp) and [VPNKit](https://github.com/moby/vpnkit), written in pure Go.
5删除:It is based on the network stack of [gVisor](https://github.com/google/gvisor/tree/master/pkg/tcpip).
6删除:
7删除:Compared to libslirp, gvisor-tap-vsock brings a configurable DNS server and dynamic port forwarding.
8删除:
9删除:It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux.
10删除:
11删除:## Build
12删除:
13删除:```
14删除:make
15删除:```
16删除:
17删除:## Run with QEMU (Linux or macOS)
18删除:
19删除:Usually with QEMU, to not run as root, you would have to use `-netdev user,id=n0`.
20删除:With this project, this is the same but you have to run a daemon on the host.
21删除:
22删除:There 2 ways for the VM to communicate with the daemon: with a tcp port or with a unix socket.
23删除:
24删除:- With gvproxy and the VM discussing on a tcp port:
25删除:```
26删除:(terminal 1) $ bin/gvproxy -debug -listen unix:///tmp/network.sock -listen-qemu tcp://0.0.0.0:1234
27删除:(terminal 2) $ qemu-system-x86_64 (all your qemu options) -netdev socket,id=vlan,connect=127.0.0.1:1234 -device virtio-net-pci,netdev=vlan,mac=5a:94:ef:e4:0c:ee
28删除:```
29删除:
30删除:- With gvproxy and the VM discussing on a unix socket:
31删除:```
32删除:(terminal 1) $ bin/gvproxy -debug -listen unix:///tmp/network.sock -listen-qemu unix:///tmp/qemu.sock
33删除:(terminal 2) $ bin/qemu-wrapper /tmp/qemu.sock qemu-system-x86_64 (all your qemu options) -netdev socket,id=vlan,fd=3 -device virtio-net-pci,netdev=vlan,mac=5a:94:ef:e4:0c:ee
34删除:```
35删除:
36删除:Starting from Qemu version 7.2.0 it is possible to run w/o a wrapper:
37删除:```
38删除:(terminal 1) $ bin/gvproxy -debug -listen unix:///tmp/network.sock -listen-qemu unix:///tmp/qemu.sock
39删除:(terminal 2) $ qemu-system-x86_64 (all your qemu options) -netdev stream,id=vlan,addr.type=unix,addr.path=/tmp/qemu.sock -device virtio-net-pci,netdev=vlan,mac=5a:94:ef:e4:0c:ee
40删除:```
41删除:
42删除:## Run with User Mode Linux
43删除:
44删除:```
45删除:(terminal 1) $ bin/gvproxy -debug -listen unix:///tmp/network.sock -listen-bess unixpacket:///tmp/bess.sock
46删除:(terminal 2) $ linux.uml vec0:transport=bess,dst=/tmp/bess.sock,depth=128,gro=1,mac=5a:94:ef:e4:0c:ee root=/dev/root rootfstype=hostfs init=/bin/bash mem=2G
47删除:(terminal 2: UML)$ ip addr add 192.168.127.2/24 dev vec0
48删除:(terminal 2: UML)$ ip link set vec0 up
49删除:(terminal 2: UML)$ ip route add default via 192.168.127.254
50删除:```
51删除:
52删除:More docs about the User Mode Linux with BESS socket transport: https://www.kernel.org/doc/html/latest/virt/uml/user_mode_linux_howto_v2.html#bess-socket-transport
53删除:
54删除:## Run with [vfkit](https://github.com/crc-org/vfkit)
55删除:
56删除:With vfkit 0.1.0 or newer, gvproxy can be used without any helper running in the VM:
57删除:
58删除:```
59删除:(terminal 1) $ bin/gvproxy -debug -listen unix:///tmp/network.sock --listen-vfkit unixgram:///tmp/vfkit.sock
60删除:(terminal 2) $ vfkit (all your vfkit options) --device virtio-net,unixSocketPath=/tmp/vfkit.sock,mac=5a:94:ef:e4:0c:ee
61删除:```
62删除:
63删除:## Run with vsock
64删除:
65删除:Made for Windows but also works for Linux and macOS with vfkit.
66删除:
67删除:### Host
68删除:
69删除:#### Windows prerequisites
70删除:
71删除:```
72删除:$service = New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\GuestCommunicationServices" -Name "00000400-FACB-11E6-BD58-64006A7986D3"
73删除:$service.SetValue("ElementName", "gvisor-tap-vsock")
74删除:```
75删除:
76删除:More docs: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/make-integration-service
77删除:
78删除:In the VM, be sure to have `hv_sock` module loaded.
79删除:
80删除:#### Linux prerequisites
81删除:
82删除:On Fedora 32, it worked out of the box. On others distros, you might have to look at https://github.com/mdlayher/vsock#requirements.
83删除:
84删除:#### macOS prerequisites
85删除:
86删除:
87删除:`vfkit` must be started with a vsock device: `--device virtio-vsock,port=1024,socketURL=/tmp/vfkit-vsock-1024.sock`
88删除:Then you can launch `gvproxy` with the following listen argument:
89删除:`--listen unix:///tmp/vfkit-vsock-1024.sock`
90删除:
91删除:#### Run
92删除:
93删除:```
94删除:(host) $ sudo bin/gvproxy -debug -listen vsock://:1024 -listen unix:///tmp/network.sock
95删除:```
96删除:
97删除:### VM
98删除:
99删除:With a container:
100删除:```
101删除:(vm) # docker run -d --name=gvisor-tap-vsock --privileged --net=host -it quay.io/crcont/gvisor-tap-vsock:latest
102删除:(vm) $ ping -c1 192.168.127.1
103删除:(vm) $ curl http://redhat.com
104删除:```
105删除:
106删除:With the executable:
107删除:```
108删除:(vm) # ./gvforwarder -debug
109删除:```
110删除:
111删除:## Services
112删除:
113删除:### API
114删除:
115删除:When `gvproxy` is started with the `--listen` or `--services` option, it exposes a HTTP API on the host.
116删除:This API can be used with curl.
117删除:
118删除:```
119删除:$ gvproxy --listen unix:///tmp/network.sock .... &
120删除:
121删除:$ curl --unix-socket /tmp/network.sock http:/unix/stats
122删除:{
123删除: "BytesSent": 0,
124删除: "BytesReceived": 0,
125删除: "UnknownProtocolRcvdPackets": 0,
126删除: "MalformedRcvdPackets": 0,
127删除:...
128删除:```
129删除:
130删除:N.B: The `--services` option exposes the same HTTP API as the `--listen` option, but without the `/connect` endpoint. This is useful for scenarios where the `gvforwarder`/`vm` tool is not run on the guest but you still want to expose services and stats endpoints.
131删除:
132删除:### Gateway
133删除:
134删除:The executable running on the host runs a virtual gateway that can be used by the VM.
135删除:It runs a DHCP server. It allows VMs to configure the network automatically (IP, MTU, DNS, search domain, etc.).
136删除:
137删除:### DNS
138删除:
139删除:The gateway also runs a DNS server. It can be configured to serve static zones.
140删除:
141删除:Activate it by changing the `/etc/resolv.conf` file inside the VM with:
142删除:```
143删除:nameserver 192.168.127.1
144删除:```
145删除:
146删除:### Port forwarding
147删除:
148删除:Dynamic port forwarding is supported over the host HTTP API when `gvproxy` was
149删除:started with `--listen` or `--services`, but also in the VM over http://192.168.127.1:80.
150删除:
151删除:Expose a port:
152删除:```
153删除:$ curl --unix-socket /tmp/network.sock http:/unix/services/forwarder/expose -X POST -d '{"local":":6443","remote":"192.168.127.2:6443"}'
154删除:```
155删除:
156删除:Unexpose a port:
157删除:```
158删除:$ curl --unix-socket /tmp/network.sock http:/unix/services/forwarder/unexpose -X POST -d '{"local":":6443"}'
159删除:```
160删除:
161删除:List exposed ports:
162删除:```
163删除:$ curl --unix-socket /tmp/network.sock http:/unix/services/forwarder/all | jq .
164删除:[
165删除: {
166删除: "local": ":2222",
167删除: "remote": "192.168.127.2:22"
168删除: },
169删除: {
170删除: "local": ":6443",
171删除: "remote": "192.168.127.2:6443"
172删除: }
173删除:]
174删除:
175删除:```
176删除:
177删除:### Tunneling
178删除:
179删除:The HTTP API exposed on the host can be used to connect to a specific IP and port inside the virtual network.
180删除:A working example for SSH can be found [here](https://github.com/containers/gvisor-tap-vsock/blob/master/cmd/ssh-over-vsock).
181删除:
182删除:## Limitations
183删除:
184删除:* ICMP is not forwarded outside the network.
185删除:
186删除:## Performance
187删除:
188删除:Using iperf3, it can achieve between 1.6 and 2.3Gbits/s depending on which side the test is performed (tested with a mtu of 4000 with QEMU on macOS).
189删除:
190删除:## How it works with vsock
191删除:
192删除:### Internet access
193删除:
194删除:![schema](./doc/curl.png)
195删除:
196删除:0. A tap network interface is running in the VM. It's the default gateway.
197删除:1. User types `curl redhat.com`
198删除:2. Linux kernel sends raw Ethernet packets to the tap device.
199删除:3. Tap device sends these packets to a process on the host using [vsock](https://wiki.qemu.org/Features/VirtioVsock)
200删除:4. The process on the host maintains both internal (host to VM) and external (host to Internet endpoint) connections. It uses regular syscalls to connect to external endpoints.
201删除:
202删除:This is the same behaviour as [slirp](https://wiki.qemu.org/index.php/Documentation/Networking#User_Networking_.28SLIRP.29).
203删除:
204删除:### Expose a port
205删除:
206删除:![schema](./doc/http.png)
207删除:
208删除:1. The process on the host binds the port 80.
209删除:2. Each time, a client sends a http request, the process creates and sends the appropriate Ethernet packets to the VM.
210删除:3. The tap device receives the packets and injects them in the kernel.
211删除:4. The http server receives the request and send back the response.
212删除:
213删除:## Notifications
214删除:
215删除:`gvproxy` can send notifications over a unix socket about hypervisor
216删除:connections, and about network switch connections/disconnections.
217删除:
218删除:These notifications can be enabled with the `--notification unix://$NOTIF_PATH` argument.
219删除:`$NOTIF_PATH` is the path to a listening unix socket.
220删除:`gvproxy` will then send json messages on this socket.
221删除:
222删除:To receive notifications, 2 terminals need to be opened.
223删除:
224删除:### Terminal 1:
225删除:
226删除:```bash
227删除:$ nc -k -U -l /tmp/notification.sock
228删除:```
229删除:
230删除:### Terminal 2:
231删除:
232删除:```bash
233删除:$ gvproxy --notification unix:///tmp/notification.sock
234删除:```
235删除:
236删除:The terminal where `nc` is running will print:
237删除:```json
238删除:{"notification_type":"ready"}
239删除:{"notification_type":"connection_established","mac_address":"5a:94:ef:e4:0c:ee"}
240删除:{"notification_type":"connection_closed","mac_address":"5a:94:ef:e4:0c:ee"}
241删除:```
242删除:
243删除:Notification types:
244删除:- `ready` - sent when gvproxy is ready to accept connections
245删除:- `connection_established` - sent when a VM connects (includes `mac_address`)
246删除:- `connection_closed` - sent when a VM disconnects (includes `mac_address`)
247删除:- `hypervisor_error` - sent on hypervisor errors
248删除:
249删除:## Development
250删除:Developers who want to work on gvisor-tap-vsock should visit the [Development](./DEVELOPMENT.md) document.
删除third_party/gvisor-tap-vsock/SECURITY.md+0 −3
@@ -1,3 +0,0 @@
1删除:## Security and Disclosure Information Policy for the gvisor-tap-vsock Project
2删除:
3删除:The gvisor-tap-vsock project follows the [Security and Disclosure Information Policy](https://github.com/containers/common/blob/main/SECURITY.md) for the Containers Projects.
删除third_party/gvisor-tap-vsock/cmd/qemu-wrapper/README.md+0 −6
@@ -1,6 +0,0 @@
1删除:Qemu doesn't accept a unix socket as netdev, only a file descriptro.
2删除:This wrapper is filling the gap.
3删除:
4删除:```
5删除:$ ./qemu-wrapper /tmp/qemu.sock qemu-system-x86_64 [...] -netdev socket,id=vlan,fd=3 -device virtio-net-pci,netdev=vlan
6删除:```
删除third_party/gvisor-tap-vsock/doc/MAINTAINERS.md+0 −53
@@ -1,53 +0,0 @@
1删除:## Releasing gvisor-tap-vsock
2删除:
3删除:Here are the steps to follow to make a gvisor-tap-vsock release.
4删除:Releases are automated through this GitHub Actions workflow:
5删除:https://github.com/containers/gvisor-tap-vsock/blob/main/.github/workflows/release.yml
6删除:
7删除:- fetch the latest upstream code, and optionally check it out locally: `git remote update`
8删除:- create a v0.1.0 tag for a 0.1.0 release: `git tag -s v0.1.0 origin/main`
9删除:- push the tag: `git push origin v0.1.0`
10删除:- wait until the "Release build" GitHub Actions workflow completes
11删除:- go to https://github.com/containers/gvisor-tap-vsock/releases. There should now be a v0.1.0 release with a Draft tag
12删除:- edit the release notes. I put new features first, then bug fixes, and I add a "## Dependencies Updates" section listing dependabot updates
13删除:- check "Make this release the latest" and click on "Publish"
14删除:- release is done !
15删除:
16删除:There are a few more post release steps which can be done by other people.
17删除:packit will automatically create fedora PRs to update gvisor-tap-vsock in the
18删除:misc fedora releases. These pull requests need to be approved. After the PRs
19删除:are approved, packit will create the corresponding updates in bodhi:
20删除:https://bodhi.fedoraproject.org/updates/?packages=gvisor-tap-vsock
21删除:
22删除:## Updating the gvisor.dev/gvisor go module
23删除:
24删除:The upstream repository is hosted at https://github.com/google/gvisor
25删除:However neither the `main` branch nor the `release-xxxx` tags can be directly used with gvisor-tap-vsock as they expect to be built with the bazel build system.
26删除:If you try to use them, you will get compilation errors because some generated files are missing:
27删除:```
28删除:$ go get gvisor.dev/[email protected]
29删除:$ go mod tidy
30删除:$ go mod vendor
31删除:$ make
32删除:go build -ldflags "-s -w -X github.com/containers/gvisor-tap-vsock/pkg/types.gitVersion=v0.8.7-78-g742b82bb-dirty" -o bin/gvproxy ./cmd/gvproxy
33删除:# gvisor.dev/gvisor/pkg/bits
34删除:vendor/gvisor.dev/gvisor/pkg/bits/uint64_arch.go:35:9: undefined: MaskOf64
35删除:# gvisor.dev/gvisor/pkg/waiter
36删除:vendor/gvisor.dev/gvisor/pkg/waiter/waiter.go:140:2: undefined: waiterEntry
37删除:vendor/gvisor.dev/gvisor/pkg/waiter/waiter.go:211:7: undefined: waiterList
38删除:make: *** [Makefile:16: gvproxy] Error 1
39删除:```
40删除:
41删除:There’s a [`go`](https://github.com/google/gvisor/tree/go) branch with the required generated files, see [this link](https://github.com/google/gvisor?tab=readme-ov-file#using-go-get) for more details.
42删除:You want a commit of the form: `2214e5a4d Merge release-20251215.0-20-g28c24757e (automated)`:
43删除:
44删除:```
45删除:$ go get gvisor.dev/gvisor@2214e5a4d
46删除:$ go mod tidy
47删除:$ go mod vendor
48删除:$ make
49删除:go build -ldflags "-s -w -X github.com/containers/gvisor-tap-vsock/pkg/types.gitVersion=v0.8.7-79-gb594f2e7" -o bin/gvproxy ./cmd/gvproxy
50删除:go build -ldflags "-s -w -X github.com/containers/gvisor-tap-vsock/pkg/types.gitVersion=v0.8.7-79-gb594f2e7" -o bin/qemu-wrapper ./cmd/qemu-wrapper
51删除:GOOS=linux CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/containers/gvisor-tap-vsock/pkg/types.gitVersion=v0.8.7-79-gb594f2e7" -o bin/gvforwarder ./cmd/vm
52删除:$
53删除:```
删除third_party/lima/.github/ISSUE_TEMPLATE/bug_report.yaml+0 −7
@@ -1,7 +0,0 @@
1删除:name: Bug report
2删除:description: Report a potential bug
3删除:body:
4删除:- type: textarea
5删除: attributes:
6删除: label: Description
7删除: description: Please make sure to include the version of Lima and the host OS
删除third_party/lima/.github/ISSUE_TEMPLATE/config.yml+0 −8
@@ -1,8 +0,0 @@
1删除:blank_issues_enabled: true
2删除:contact_links:
3删除:- name: Ask a question (GitHub Discussions)
4删除: url: https://github.com/lima-vm/lima/discussions
5删除: about: We use GitHub Discussions for questions, GitHub issues for tracking bug reports and feature requests
6删除:- name: Chat with Lima users and developers
7删除: url: https://slack.cncf.io/
8删除: about: CNCF slack has `#lima` channel
删除third_party/lima/.github/ISSUE_TEMPLATE/feature_request.yaml+0 −6
@@ -1,6 +0,0 @@
1删除:name: Feature request
2删除:description: Request a feature
3删除:body:
4删除:- type: textarea
5删除: attributes:
6删除: label: Description
删除third_party/lima/.github/actions/setup_cache_for_template/action.yml+0 −79
@@ -1,79 +0,0 @@
1删除:name: 'setup cache for template'
2删除:description: 'setup cache for template'
3删除:inputs:
4删除: arch:
5删除: description: arch to setup cache for
6删除: required: false
7删除: template:
8删除: description: template yaml file
9删除: required: true
10删除:runs:
11删除: using: "composite"
12删除: steps:
13删除: - name: "detect platform for download directory"
14删除: id: detect-platform
15删除: run: |
16删除: if [[ "$(uname)" == "Darwin" ]]; then
17删除: download_dir=~/Library/Caches/lima/download
18删除: else
19删除: download_dir=~/.cache/lima/download
20删除: fi
21删除: echo "download-dir=$download_dir" >> "$GITHUB_OUTPUT"
22删除: shell: bash
23删除: - name: "create cache parameters from template"
24删除: if: always()
25删除: id: cache-params-from-template
26删除: run: |
27删除: set -eux
28删除: source hack/cache-common-inc.sh
29删除: print_cache_informations_from_template "${INPUTS_TEMPLATE}" "${INPUTS_ARCH}" >> "$GITHUB_OUTPUT"
30删除: shell: bash
31删除: env:
32删除: INPUTS_TEMPLATE: ${{ inputs.template }}
33删除: INPUTS_ARCH: ${{ inputs.arch }}
34删除:
35删除: - name: "Cache ${{ steps.cache-params-from-template.outputs.image-path }}"
36删除: if: ${{ steps.cache-params-from-template.outputs.image-key != '' }}
37删除: # avoid using `~` in path that will be expanded to platform specific home directory
38删除: uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
39删除: with:
40删除: path: ${{ steps.cache-params-from-template.outputs.image-path }}
41删除: key: ${{ steps.cache-params-from-template.outputs.image-key }}
42删除: enableCrossOsArchive: true
43删除:
44删除: - name: "Cache ${{ steps.cache-params-from-template.outputs.kernel-path }}"
45删除: if: ${{ steps.cache-params-from-template.outputs.kernel-key != '' }}
46删除: # avoid using `~` in path that will be expanded to platform specific home directory
47删除: uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
48删除: with:
49删除: path: ${{ steps.cache-params-from-template.outputs.kernel-path }}
50删除: key: ${{ steps.cache-params-from-template.outputs.kernel-key }}
51删除: enableCrossOsArchive: true
52删除:
53删除: - name: "Cache ${{ steps.cache-params-from-template.outputs.initrd-path }}"
54删除: if: ${{ steps.cache-params-from-template.outputs.initrd-key != '' }}
55删除: # avoid using `~` in path that will be expanded to platform specific home directory
56删除: uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
57删除: with:
58删除: path: ${{ steps.cache-params-from-template.outputs.initrd-path }}
59删除: key: ${{ steps.cache-params-from-template.outputs.initrd-key }}
60删除: enableCrossOsArchive: true
61删除:
62删除: - name: "Cache ${{ steps.cache-params-from-template.outputs.containerd-key }}"
63删除: if: ${{ steps.cache-params-from-template.outputs.containerd-key != '' }}
64删除: uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
65删除: with:
66删除: path: ${{ steps.cache-params-from-template.outputs.containerd-path }}
67删除: key: ${{ steps.cache-params-from-template.outputs.containerd-key }}
68删除: enableCrossOsArchive: true
69删除:
70删除: - name: "Create symbolic link named ${{ steps.detect-platform.outputs.download-dir }} pointing to .download"
71删除: run: |
72删除: set -eux
73删除: [ -d .download ] || mkdir -p .download
74删除: path_to_cache=${STEPS_DETECT_PLATFORM_OUTPUTS_DOWNLOAD_DIR}
75删除: mkdir -p "$(dirname "$path_to_cache")"
76删除: ln -sfn "$PWD/.download" "$path_to_cache"
77删除: shell: bash
78删除: env:
79删除: STEPS_DETECT_PLATFORM_OUTPUTS_DOWNLOAD_DIR: ${{ steps.detect-platform.outputs.download-dir }}
删除third_party/lima/.github/actions/upload_failure_logs_if_exists/action.yml+0 −32
@@ -1,32 +0,0 @@
1删除:name: 'upload failure-logs if exists'
2删除:description: 'upload failure-logs if exists'
3删除:inputs:
4删除: suffix:
5删除: description: suffix to append to the name of the artifact
6删除: required: false
7删除: default: ''
8删除:runs:
9删除: using: "composite"
10删除: steps:
11删除: - name: "Check if failure-logs exists"
12删除: if: always()
13删除: id: check-if-failure-logs-exists
14删除: run: echo "exists=$([ -d "failure-logs" ] && echo "true" || echo "false")" >> "$GITHUB_OUTPUT"
15删除: shell: bash
16删除: - id: normalize-suffix
17删除: # To avoid using special characters in artifact name, normalize the suffix
18删除: if: steps.check-if-failure-logs-exists.outputs.exists == 'true'
19删除: run: |
20删除: suffix="${INPUTS_SUFFIX}"
21删除: suffix="${suffix//[^a-zA-Z0-9_]/_}"
22删除: suffix="${suffix:+-$suffix}"
23删除: echo "result=$suffix" >> "$GITHUB_OUTPUT"
24删除: shell: bash
25删除: env:
26删除: INPUTS_SUFFIX: ${{ inputs.suffix }}
27删除: - name: "Upload failure-logs"
28删除: if: steps.check-if-failure-logs-exists.outputs.exists == 'true'
29删除: uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
30删除: with:
31删除: name: failure-logs-${{ github.job }}${{ steps.normalize-suffix.outputs.result }}
32删除: path: failure-logs/
删除third_party/lima/.github/dependabot.yml+0 −31
@@ -1,31 +0,0 @@
1删除:version: 2
2删除:updates:
3删除:- package-ecosystem: gomod
4删除: directories:
5删除: - "/"
6删除: - "/hack/tools"
7删除: schedule:
8删除: interval: daily
9删除: open-pull-requests-limit: 10
10删除: groups:
11删除: golang-x:
12删除: patterns:
13删除: - "golang.org/x/*"
14删除: k8s:
15删除: patterns:
16删除: - "k8s.io/*"
17删除: cooldown:
18删除: default-days: 7
19删除:- package-ecosystem: github-actions
20删除: directory: "/"
21删除: schedule:
22删除: interval: daily
23删除: open-pull-requests-limit: 10
24删除: groups:
25删除: # codeql.yaml pins init and analyze to one SHA, so bumping them apart leaves
26删除: # the workflow on two versions until the second PR merges.
27删除: codeql-action:
28删除: patterns:
29删除: - "github/codeql-action*"
30删除: cooldown:
31删除: default-days: 7
删除third_party/lima/.github/workflows/codeql.yaml+0 −72
@@ -1,72 +0,0 @@
1删除:name: "CodeQL Advanced"
2删除:
3删除:on:
4删除: # paths-ignore should be kept in sync with test.yml
5删除: push:
6删除: branches: ["master"]
7删除: paths-ignore:
8删除: - "docs/**"
9删除: - "website/**"
10删除: - "**.md"
11删除: pull_request:
12删除: branches: ["master"]
13删除: paths-ignore:
14删除: - "docs/**"
15删除: - "website/**"
16删除: - "**.md"
17删除: schedule:
18删除: - cron: '33 19 * * 5'
19删除: workflow_dispatch:
20删除:
21删除:permissions:
22删除: contents: read
23删除:
24删除:env:
25删除: GOTOOLCHAIN: local
26删除:
27删除:jobs:
28删除: analyze:
29删除: name: Analyze (${{ matrix.language }})
30删除: runs-on: 'ubuntu-latest'
31删除: permissions:
32删除: security-events: write
33删除: # required to fetch internal or private CodeQL packs
34删除: packages: read
35删除:
36删除: strategy:
37删除: fail-fast: false
38删除: matrix:
39删除: include:
40删除: - language: go
41删除: build-mode: autobuild
42删除: steps:
43删除: - name: Checkout repository
44删除: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
45删除: with:
46删除: persist-credentials: false
47删除:
48删除: - name: Set up Go
49删除: uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
50删除: with:
51删除: go-version-file: go.mod
52删除:
53删除: - name: Initialize CodeQL
54删除: uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
55删除: with:
56删除: languages: ${{ matrix.language }}
57删除: build-mode: ${{ matrix.build-mode }}
58删除:
59删除: - if: matrix.build-mode == 'manual'
60删除: shell: bash
61删除: run: |
62删除: echo 'If you are using a "manual" build mode for one or more of the' \
63删除: 'languages you are analyzing, replace this with the commands to build' \
64删除: 'your code, for example:'
65删除: echo ' make bootstrap'
66删除: echo ' make release'
67删除: exit 1
68删除:
69删除: - name: Perform CodeQL Analysis
70删除: uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
71删除: with:
72删除: category: "/language:${{matrix.language}}"
删除third_party/lima/.github/workflows/lint-quick.yml+0 −45
@@ -1,45 +0,0 @@
1删除:name: lint-quick
2删除:
3删除:# These checks cover the whole tree, docs included, so this workflow runs
4删除:# without the paths-ignore filter that test.yml uses to skip docs-only changes.
5删除:on:
6删除: push:
7删除: branches:
8删除: - master
9删除: - 'release/**'
10删除: pull_request:
11删除:
12删除:permissions:
13删除: contents: read
14删除:
15删除:jobs:
16删除: lint-quick:
17删除: name: "Quick lints"
18删除: runs-on: ubuntu-24.04
19删除: timeout-minutes: 15
20删除: steps:
21删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22删除: with:
23删除: persist-credentials: false
24删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
25删除: with:
26删除: go-version: stable
27删除: cache: false
28删除: - name: Run editorconfig-checker
29删除: run: make editorconfig-checker
30删除: - name: Run yamllint
31删除: run: make yamllint
32删除: - name: Run file and directory name linter
33删除: uses: ls-lint/action@02e380fe8733d499cbfc9e22276de5085508a5bd # v2.3.1
34删除: - name: Check hyperlinks
35删除: uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
36删除: with:
37删除: args: >-
38删除: --exclude https://img.shields.io
39删除: --exclude http://127.0.0.1:8080
40删除: --exclude https://github.com/lima-vm/lima/releases/download
41删除: --exclude https://xbarapp.com
42删除: --exclude https://api.github.com
43删除: --exclude https://cloud-native.slack.com
44删除: README.md
45删除: token: ${{ secrets.GITHUB_TOKEN }}
删除third_party/lima/.github/workflows/release.yml+0 −151
@@ -1,151 +0,0 @@
1删除:# Forked from https://github.com/containerd/nerdctl/blob/v0.8.1/.github/workflows/release.yml
2删除:# Apache License 2.0
3删除:
4删除:name: Release
5删除:on:
6删除: # paths-ignore should be kept in sync with test.yml
7删除: push:
8删除: branches:
9删除: - 'master'
10删除: tags:
11删除: - 'v*'
12删除: paths-ignore:
13删除: - "docs/**"
14删除: - "website/**"
15删除: - "**.md"
16删除: pull_request:
17删除: branches:
18删除: - 'master'
19删除: paths-ignore:
20删除: - "docs/**"
21删除: - "website/**"
22删除: - "**.md"
23删除:env:
24删除: GO111MODULE: on
25删除: GOTOOLCHAIN: local
26删除:permissions:
27删除: contents: read
28删除:
29删除:jobs:
30删除: artifacts-darwin:
31删除: name: Artifacts Darwin
32删除: # The latest release of macOS is used to enable new features.
33删除: # https://github.com/lima-vm/lima/issues/2767
34删除: #
35删除: # Apparently, a binary built on a newer version of macOS can still run on
36删除: # an older release of macOS without an error.
37删除: # This is quite different from Linux and glibc.
38删除: runs-on: macos-26
39删除: timeout-minutes: 20
40删除: steps:
41删除: - name: "Show xcode and SDK version"
42删除: run: |
43删除: # Xcode version
44删除: xcodebuild -version
45删除: # macOS SDK version
46删除: xcrun --show-sdk-version || true
47删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
48删除: with:
49删除: persist-credentials: false
50删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
51删除: with:
52删除: go-version: stable
53删除: cache: false
54删除: - name: Make darwin artifacts
55删除: run: make artifacts-darwin
56删除: - name: "Upload artifacts"
57删除: uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
58删除: with:
59删除: name: artifacts-darwin
60删除: path: _artifacts/
61删除: - name: Make darwin sbom
62删除: run: make sbom-app
63删除: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
64删除: with:
65删除: name: sbom-darwin
66删除: path: "*Darwin*bom.json"
67删除: release:
68删除: # An old release of Ubuntu is chosen for glibc compatibility
69删除: runs-on: ubuntu-22.04
70删除: needs: artifacts-darwin
71删除: timeout-minutes: 20
72删除: # The maximum access is "read" for PRs from public forked repos
73删除: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
74删除: permissions:
75删除: contents: write # for releases
76删除: id-token: write # for provenances
77删除: attestations: write # for provenances
78删除: steps:
79删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
80删除: with:
81删除: persist-credentials: false
82删除: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
83删除: with:
84删除: name: artifacts-darwin
85删除: path: _artifacts/
86删除: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
87删除: with:
88删除: name: sbom-darwin
89删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
90删除: with:
91删除: go-version: stable
92删除: cache: false
93删除: - name: Install gcc
94删除: run: |
95删除: sudo apt-get update
96删除: sudo apt-get install -y gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu
97删除: - name: "Compile binaries (Linux)"
98删除: run: make artifacts-linux
99删除: - name: "Make json schema"
100删除: run: make artifacts-jsonschema
101删除: - name: "Compile binaries (Windows)"
102删除: run: make artifacts-windows
103删除: - name: "Make misc artifacts"
104删除: run: make artifacts-misc
105删除: - name: "Validate artifacts"
106删除: run: ./hack/validate-artifact.sh ./_artifacts/*.tar.gz ./_artifacts/*.zip
107删除: - name: "SHA256SUMS"
108删除: run: |
109删除: ( cd _artifacts; sha256sum *.tar.gz *.zip ) | tee /tmp/SHA256SUMS
110删除: mv /tmp/SHA256SUMS _artifacts/SHA256SUMS
111删除: - name: "The sha256sum of the SHA256SUMS file"
112删除: run: (cd _artifacts; sha256sum SHA256SUMS)
113删除: - name: "Prepare the release note"
114删除: run: |
115删除: shasha=$(sha256sum _artifacts/SHA256SUMS | awk '{print $1}')
116删除: cat <<-EOF | tee /tmp/release-note.txt
117删除: (Changes to be documented)
118删除:
119删除: ## Usage
120删除: \`\`\`console
121删除: $ limactl create
122删除: $ limactl start
123删除: ...
124删除: INFO[0029] READY. Run \`lima\` to open the shell.
125删除:
126删除: $ lima uname
127删除: Linux
128删除: \`\`\`
129删除:
130删除: - - -
131删除: The binaries were built automatically on GitHub Actions.
132删除: The build log is available for 90 days: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
133删除:
134删除: The Software Bill of Materials (SBOM) is in the *.sbom.tar.gz artifact.
135删除: It does not cover software that is downloaded during Lima operation, such as nerdctl-full*.tar.gz or the cloud images.
136删除:
137删除: The sha256sum of the SHA256SUMS file itself is \`${shasha}\` .
138删除: - - -
139删除: Release manager: [ADD YOUR NAME HERE] (@[ADD YOUR GITHUB ID HERE])
140删除: EOF
141删除: - uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
142删除: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
143删除: with:
144删除: subject-path: _artifacts/*
145删除: - name: "Create release"
146删除: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
147删除: env:
148删除: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149删除: run: |
150删除: tag="${GITHUB_REF##*/}"
151删除: gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" _artifacts/*
删除third_party/lima/.github/workflows/scorecard.yml+0 −65
@@ -1,65 +0,0 @@
1删除:name: Scorecard supply-chain security
2删除:on:
3删除: # For Branch-Protection check. Only the default branch is supported. See
4删除: # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5删除: branch_protection_rule:
6删除: # To guarantee Maintained check is occasionally updated. See
7删除: # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8删除: schedule:
9删除: - cron: '23 13 * * 4'
10删除: push:
11删除: branches:
12删除: - master
13删除: workflow_dispatch:
14删除:
15删除:# Declare default permissions as read only.
16删除:permissions: read-all
17删除:
18删除:jobs:
19删除: analysis:
20删除: name: Scorecard analysis
21删除: runs-on: ubuntu-latest
22删除: permissions:
23删除: # Needed to upload the results to code-scanning dashboard.
24删除: security-events: write
25删除: # Needed to publish results and get a badge (see publish_results below).
26删除: id-token: write
27删除:
28删除: steps:
29删除: - name: "Checkout code"
30删除: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31删除: with:
32删除: persist-credentials: false
33删除:
34删除: - name: "Run analysis"
35删除: uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
36删除: with:
37删除: results_file: results.sarif
38删除: results_format: sarif
39删除: # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
40删除: # - you want to enable the Branch-Protection check on a *public* repository, or
41删除: # - you are installing Scorecard on a *private* repository
42删除: # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
43删除: # repo_token: ${{ secrets.SCORECARD_TOKEN }}
44删除:
45删除: # Public repositories:
46删除: # - Publish results to OpenSSF REST API for easy access by consumers
47删除: # - Allows the repository to include the Scorecard badge.
48删除: # - See https://github.com/ossf/scorecard-action#publishing-results.
49删除: publish_results: true
50删除:
51删除: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
52删除: # format to the repository Actions tab.
53删除: - name: "Upload artifact"
54删除: uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
55删除: with:
56删除: name: SARIF file
57删除: path: results.sarif
58删除: retention-days: 5
59删除:
60删除: # Upload the results to GitHub's code scanning dashboard (optional).
61删除: # Commenting out will disable upload of results to your repo's Code Scanning dashboard
62删除: - name: "Upload to code-scanning"
63删除: uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
64删除: with:
65删除: sarif_file: results.sarif
删除third_party/lima/.github/workflows/spell.yml+0 −27
@@ -1,27 +0,0 @@
1删除:# split from test.yml so as to run spell checks for doc-only PRs too
2删除:name: spell
3删除:
4删除:on:
5删除: push:
6删除: branches:
7删除: - master
8删除: - 'release/**'
9删除: pull_request:
10删除:
11删除:permissions:
12删除: contents: read
13删除:
14删除:jobs:
15删除: spell:
16删除: name: "Spell check"
17删除: runs-on: ubuntu-24.04
18删除: timeout-minutes: 5
19删除: steps:
20删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21删除: with:
22删除: persist-credentials: false
23删除: - uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
24删除: with:
25删除: check_filenames: true
26删除: check_hidden: true
27删除: # by default, codespell uses configuration from the .codespellrc
删除third_party/lima/.github/workflows/test.yml+0 −709
@@ -1,709 +0,0 @@
1删除:name: test
2删除:
3删除:on:
4删除: push:
5删除: branches:
6删除: - master
7删除: - 'release/**'
8删除: paths-ignore:
9删除: - "docs/**"
10删除: - "website/**"
11删除: - "**.md"
12删除: pull_request:
13删除: paths-ignore:
14删除: - "docs/**"
15删除: - "website/**"
16删除: - "**.md"
17删除:env:
18删除: LIMACTL_CREATE_ARGS: ""
19删除: GOTOOLCHAIN: local
20删除:
21删除:permissions:
22删除: contents: read
23删除:
24删除:jobs:
25删除: lints:
26删除: name: "Lints"
27删除: runs-on: ubuntu-24.04
28删除: timeout-minutes: 30
29删除: steps:
30删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31删除: with:
32删除: persist-credentials: false
33删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
34删除: with:
35删除: go-version: stable
36删除: cache: false
37删除: - name: Install protoc and Go plugins
38删除: run: |
39删除: sudo apt-get update
40删除: sudo apt-get install -y protobuf-compiler
41删除: make install-protoc-tools
42删除: - name: Verify generated files
43删除: run: make generate check-generated
44删除: - name: Run nobin
45删除: run: make nobin
46删除: - name: Install shellcheck
47删除: run: |
48删除: sudo apt-get update
49删除: sudo apt-get install -y shellcheck
50删除: - name: Run shellcheck
51删除: run: make shellcheck
52删除: - name: Run shfmt
53删除: run: make shfmt
54删除: - name: Install go-licenses
55删除: # TODO: move to `go tool` after upgrading to v2
56删除: run: go install github.com/google/[email protected]
57删除: - name: Check licenses
58删除: run: make go-licenses
59删除: - name: Check the gomodjail confinement of Go dependencies
60删除: run: NO_COLOR=true make gomodjail
61删除: - name: Check social reputation of Go dependencies
62删除: run: make gosocialcheck
63删除: - name: Check license boilerplates
64删除: run: make ltag
65删除: - name: Check protobuf files
66删除: run: make protolint
67删除: - name: Run zizmor
68删除: uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
69删除: with:
70删除: # No need to hide the result in https://github.com/lima-vm/lima/security (private),
71删除: # as anybody can already run zizmor locally to find vulnerabilities.
72删除: # https://github.com/lima-vm/lima/pull/4846#pullrequestreview-4135088525
73删除: advanced-security: false
74删除:
75删除: lint-go:
76删除: name: "Lint Go"
77删除: timeout-minutes: 30
78删除: strategy:
79删除: matrix:
80删除: runs-on: [ubuntu-24.04, macos-26, windows-2025]
81删除: runs-on: ${{ matrix.runs-on }}
82删除: steps:
83删除: - name: Force git to use LF
84删除: # This step is required on Windows to work around golangci-lint issues with formatters. See https://github.com/golangci/golangci-lint/discussions/5840
85删除: # TODO: replace with a checkout option when https://github.com/actions/checkout/issues/226 is implemented
86删除: if: runner.os == 'Windows'
87删除: run: |
88删除: git config --global core.autocrlf false
89删除: git config --global core.eol lf
90删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
91删除: with:
92删除: persist-credentials: false
93删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
94删除: with:
95删除: go-version: stable
96删除: cache: false
97删除: - id: golangci-lint-version
98删除: shell: bash
99删除: working-directory: hack/tools
100删除: run: |
101删除: echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint/v2)" >> $GITHUB_OUTPUT
102删除: - name: Run golangci-lint
103删除: uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
104删除: with:
105删除: version: ${{ steps.golangci-lint-version.outputs.GOLANGCI_LINT_VERSION }}
106删除: args: --verbose
107删除: skip-cache: true
108删除:
109删除: security:
110删除: name: "Vulncheck"
111删除: runs-on: ubuntu-24.04
112删除: timeout-minutes: 5
113删除: steps:
114删除: - uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1.1.0
115删除:
116删除: unit:
117删除: name: "Unit tests"
118删除: runs-on: ubuntu-24.04
119删除: timeout-minutes: 30
120删除: strategy:
121删除: fail-fast: false
122删除: matrix:
123删除: # For non-Homebrew we have to support an old release of Go
124删除: go-version: ["oldstable", "stable"]
125删除: steps:
126删除: - name: Install test dependencies
127删除: run: |
128删除: sudo apt-get update
129删除: sudo apt-get install -y --no-install-recommends qemu-utils
130删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
131删除: with:
132删除: persist-credentials: false
133删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
134删除: with:
135删除: go-version: ${{ matrix.go-version }}
136删除: cache: false
137删除: - name: Unit tests
138删除: run: go test -v ./...
139删除: - name: Make
140删除: run: make
141删除: - name: Install
142删除: run: sudo make install
143删除: - name: Verify templates match `limactl edit` format
144删除: run: |
145删除: find templates -name '*.yaml' -exec limactl edit --set 'del(.nothing)' {} \;
146删除: git diff-index --exit-code HEAD
147删除: - name: Uninstall
148删除: run: sudo make uninstall
149删除:
150删除: windows:
151删除: name: "Windows tests (WSL2)"
152删除: runs-on: windows-2025
153删除: timeout-minutes: 45
154删除: steps:
155删除: - name: Enable WSL2
156删除: run: |
157删除: wsl --set-default-version 2
158删除: wsl --shutdown
159删除: wsl --update
160删除: wsl --status
161删除: wsl --version
162删除: wsl --list --online
163删除: - name: Install WSL2 distro
164删除: timeout-minutes: 1
165删除: run: |
166删除: # FIXME: At least one distro has to be installed here,
167删除: # otherwise `wsl --list --verbose` (called from Lima) fails:
168删除: # https://github.com/lima-vm/lima/pull/1826#issuecomment-1729993334
169删除: # The distro image itself is not consumed by Lima.
170删除: # Starting with WSL2 version 2.5.7.0 the distro will be rejected
171删除: # if it doesn't contain /bin/sh and /etc.
172删除: # ------------------------------------------------------------------
173删除: mkdir dummy
174删除: mkdir dummy\bin
175删除: mkdir dummy\etc
176删除: echo "" >dummy\bin\sh
177删除: tar -cf dummy.tar --format ustar -C dummy .
178删除: wsl --import dummy $env:TEMP dummy.tar
179删除: wsl --list --verbose
180删除: - name: Set gitconfig
181删除: run: |
182删除: git config --global core.autocrlf false
183删除: git config --global core.eol lf
184删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
185删除: with:
186删除: # Submodules are required by the BATS port-forwarding test
187删除: submodules: true
188删除: persist-credentials: false
189删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
190删除: with:
191删除: go-version: stable
192删除: cache: false
193删除: - name: Unit tests
194删除: run: go test -v ./...
195删除: - name: Make
196删除: run: make
197删除: - name: Integration tests (WSL2, Windows host)
198删除: run: |
199删除: $env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + $env:PATH
200删除: pacman -Sy --noconfirm diffutils jq socat w3m
201删除: $env:MSYS2_ENV_CONV_EXCL = 'HOME_HOST;HOME_GUEST;_LIMA_WINDOWS_EXTRA_PATH'
202删除: $env:HOME_HOST = $(cygpath.exe "$env:USERPROFILE")
203删除: $env:HOME_GUEST = "/mnt$env:HOME_HOST"
204删除: $env:LIMACTL_CREATE_ARGS = '--vm-type=wsl2 --mount-type=wsl2 --containerd=system'
205删除: $env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
206删除: bash.exe -c "./hack/test-templates.sh templates/experimental/wsl2.yaml"
207删除: - name: Run BATS port-forwarding test (WSL2, Windows host)
208删除: run: |
209删除: $env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + $env:PATH
210删除: $env:MSYS2_ENV_CONV_EXCL = '_LIMA_WINDOWS_EXTRA_PATH;LIMA_BATS_PORT_FORWARDING_BASE_TEMPLATE'
211删除: $env:LIMACTL_CREATE_ARGS = '--vm-type=wsl2 --mount-type=wsl2 --containerd=system'
212删除: $env:LIMA_BATS_PORT_FORWARDING_BASE_TEMPLATE = 'template:experimental/wsl2'
213删除: $env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
214删除: bash.exe -c "./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/tests/port-forwarding.bats"
215删除:
216删除: windows-qemu:
217删除: name: "Windows tests (QEMU)"
218删除: runs-on: windows-2025
219删除: timeout-minutes: 45
220删除: steps:
221删除: - name: Set gitconfig
222删除: run: |
223删除: git config --global core.autocrlf false
224删除: git config --global core.eol lf
225删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
226删除: with:
227删除: # Submodules are required by the BATS port-forwarding test
228删除: submodules: true
229删除: persist-credentials: false
230删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
231删除: with:
232删除: go-version: stable
233删除: cache: false
234删除: - name: Make
235删除: run: make
236删除: - name: Install QEMU
237删除: run: |
238删除: winget install --silent --accept-source-agreements --accept-package-agreements --disable-interactivity SoftwareFreedomConservancy.QEMU
239删除: - name: Integration tests (QEMU, Windows host)
240删除: run: |
241删除: $env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + 'C:\Program Files\QEMU;' + $env:PATH
242删除: pacman -Sy --noconfirm diffutils jq socat w3m
243删除: $env:MSYS2_ENV_CONV_EXCL = 'HOME_HOST;HOME_GUEST;_LIMA_WINDOWS_EXTRA_PATH'
244删除: $env:HOME_HOST = $(cygpath.exe "$env:USERPROFILE")
245删除: $env:HOME_GUEST = "$env:HOME_HOST"
246删除: $env:LIMACTL_CREATE_ARGS = '--vm-type=qemu'
247删除: $env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
248删除: bash.exe -c "./hack/test-templates.sh templates/default.yaml"
249删除: - name: Run BATS port-forwarding test (QEMU, Windows host)
250删除: run: |
251删除: $env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + 'C:\Program Files\QEMU;' + $env:PATH
252删除: $env:MSYS2_ENV_CONV_EXCL = '_LIMA_WINDOWS_EXTRA_PATH'
253删除: $env:LIMACTL_CREATE_ARGS = '--vm-type=qemu'
254删除: $env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
255删除: bash.exe -c "./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/tests/port-forwarding.bats"
256删除:
257删除: qemu:
258删除: name: "Integration tests (QEMU, macOS host)"
259删除: runs-on: macos-15-large # Intel
260删除: timeout-minutes: 120
261删除: steps:
262删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
263删除: with:
264删除: # Submodules are required by the BATS port-forwarding test
265删除: submodules: true
266删除: persist-credentials: false
267删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
268删除: with:
269删除: go-version: stable
270删除: cache: false
271删除: - name: Unit tests
272删除: run: go test -v ./...
273删除: - name: Make
274删除: run: make
275删除: - name: "Inject `no_timer_check` to kernel cmdline"
276删除: # workaround to https://github.com/lima-vm/lima/issues/84
277删除: run: |
278删除: export PATH="$PWD/_output/bin:$PATH"
279删除: ./hack/inject-cmdline-to-template.sh _output/share/lima/templates/_images/ubuntu.yaml no_timer_check
280删除: - name: Install
281删除: run: sudo make install
282删除: - name: Validate jsonschema
283删除: run: make schema-limayaml.json
284删除: - name: Validate templates
285删除: # Can't validate base templates in `_default` because they have no images
286删除: run: find -L templates -name '*.yaml' ! -path '*/_default/*' | xargs limactl validate
287删除: - name: Install test dependencies
288删除: # QEMU: required by Lima itself
289删除: # bash: required by test-templates.sh and BATS (OS version of bash is too old)
290删除: # coreutils: required by test-templates.sh for the "timeout" command
291删除: # w3m : required by test-templates.sh for port forwarding tests
292删除: # socat: required by the BATS port-forwarding test
293删除: run: brew install qemu bash coreutils w3m socat
294删除: - name: "Adjust LIMACTL_CREATE_ARGS"
295删除: run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu" >>$GITHUB_ENV
296删除: - name: Cache image used by default.yaml
297删除: uses: $/.github/actions/setup_cache_for_template
298删除: with:
299删除: template: templates/default.yaml
300删除: - name: "Show cache"
301删除: run: ./hack/debug-cache.sh
302删除: # GHA macOS is slow and flaky, so we only test default.yaml here.
303删除: # Other yamls are tested on Linux instances.
304删除: - name: "Test default.yaml"
305删除: uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
306删除: with:
307删除: timeout_minutes: 30
308删除: retry_on: error
309删除: max_attempts: 3
310删除: command: ./hack/test-templates.sh templates/default.yaml
311删除: - name: "Run BATS port-forwarding test (QEMU, macOS host)"
312删除: run: ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/tests/port-forwarding.bats
313删除: env:
314删除: LIMA_BATS_ALL_TESTS_RETRIES: "2"
315删除: - if: always()
316删除: uses: $/.github/actions/upload_failure_logs_if_exists
317删除: - name: "Show cache"
318删除: if: always()
319删除: run: ./hack/debug-cache.sh
320删除:
321删除: # Non-default templates are tested on Linux instances of GHA,
322删除: # as they seem more stable than macOS instances.
323删除: qemu-linux:
324删除: name: "Integration tests (QEMU, Linux host)"
325删除: runs-on: ubuntu-24.04
326删除: timeout-minutes: 120
327删除: strategy:
328删除: fail-fast: false
329删除: matrix:
330删除: # Most templates use 9p as the mount type
331删除: template:
332删除: - alpine.yaml
333删除: - debian.yaml # reverse-sshfs
334删除: - fedora.yaml
335删除: - archlinux.yaml
336删除: - opensuse.yaml
337删除: - docker.yaml
338删除: - ../hack/test-templates/alpine-iso-9p-writable.yaml # Covers alpine-iso.yaml
339删除: - ../hack/test-templates/net-user-v2.yaml
340删除: - ../hack/test-templates/test-misc.yaml # TODO: merge net-user-v2 into test-misc
341删除: steps:
342删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
343删除: with:
344删除: persist-credentials: false
345删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
346删除: with:
347删除: go-version: stable
348删除: cache: false
349删除: - name: Make
350删除: run: make
351删除: - name: Install
352删除: run: sudo make install
353删除: - name: Cache image used by templates/${{ matrix.template }}
354删除: uses: $/.github/actions/setup_cache_for_template
355删除: with:
356删除: template: templates/${{ matrix.template }}
357删除: - name: Install test dependencies
358删除: run: |
359删除: sudo apt-get update
360删除: sudo ./hack/install-qemu.sh
361删除: sudo apt-get install -y --no-install-recommends w3m
362删除: - name: Install ansible-playbook
363删除: run: |
364删除: sudo apt-get install -y --no-install-recommends ansible
365删除: if: matrix.template == '../hack/test-templates/test-misc.yaml'
366删除: - name: "Show cache"
367删除: run: ./hack/debug-cache.sh
368删除: - name: "Test"
369删除: uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
370删除: with:
371删除: timeout_minutes: 30
372删除: retry_on: error
373删除: max_attempts: 3
374删除: command: ./hack/test-templates.sh templates/${{ matrix.template }}
375删除: - if: always()
376删除: uses: $/.github/actions/upload_failure_logs_if_exists
377删除: with:
378删除: suffix: ${{ matrix.template }}
379删除: - name: "Show cache"
380删除: run: ./hack/debug-cache.sh
381删除:
382删除: bats:
383删除: name: "Integration tests (BATS)"
384删除: runs-on: ubuntu-24.04
385删除: timeout-minutes: 45
386删除: steps:
387删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
388删除: with:
389删除: # BATS tests don't expect lima version warnings like:
390删除: # msg="treating lima version \"ea336ae\" from \"/Users/runner/.lima-bats/dummy/lima-version\" as very latest release"
391删除: fetch-depth: 0
392删除: submodules: true
393删除: persist-credentials: false
394删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
395删除: with:
396删除: go-version: stable
397删除: cache: false
398删除: - name: Make
399删除: run: make
400删除: - name: Install
401删除: run: sudo make install
402删除: - name: Install test dependencies
403删除: run: |
404删除: sudo apt-get update
405删除: # socat is used by the port-forwarding tests
406删除: sudo apt-get install -y socat
407删除: sudo ./hack/install-qemu.sh
408删除: - name: Cache image used by templates/default.yaml
409删除: uses: $/.github/actions/setup_cache_for_template
410删除: with:
411删除: template: templates/default.yaml
412删除: - name: "Run BATS integration tests"
413删除: run: make bats
414删除: env:
415删除: # The url-github.bats tests makes GitHub API requests
416删除: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
417删除: - name: Cache image used by templates/k8s.yaml
418删除: uses: $/.github/actions/setup_cache_for_template
419删除: with:
420删除: template: templates/k8s.yaml
421删除: - name: "Run BATS k8s tests"
422删除: run: ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/extras/k8s.bats
423删除: env:
424删除: LIMA_BATS_ALL_TESTS_RETRIES: 3
425删除: - name: Cache image used by templates/freebsd.yaml
426删除: uses: $/.github/actions/setup_cache_for_template
427删除: with:
428删除: template: templates/freebsd.yaml
429删除: - name: "Run BATS freebsd tests"
430删除: run: |
431删除: set -eux -o pipefail
432删除: # xorriso is required for creating Joliet filesystem
433删除: sudo apt-get install -y xorriso
434删除: ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/extras/freebsd.bats
435删除:
436删除: colima:
437删除: name: "Colima tests (QEMU, Linux host)"
438删除: runs-on: ubuntu-24.04
439删除: timeout-minutes: 120
440删除: steps:
441删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
442删除: with:
443删除: # fetch-depth is set to 0 to let `limactl --version` print semver-ish version
444删除: # fetch-depth: 0 is required for Colima integration test because Colima
445删除: # checks Lima's version and requires proper semantic version format
446删除: fetch-depth: 0
447删除: ref: ${{ github.event.pull_request.head.sha }}
448删除: submodules: true
449删除: persist-credentials: false
450删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
451删除: with:
452删除: go-version: stable
453删除: cache: false
454删除: - name: Make
455删除: run: make
456删除: - name: Install
457删除: run: sudo make install
458删除: - name: Install colima
459删除: id: install-colima
460删除: run: |
461删除: git clone https://github.com/abiosoft/colima
462删除: cd colima
463删除: latest="$(git tag --sort=-v:refname | head -n1)"
464删除: git checkout "$latest"
465删除: make
466删除: sudo make install
467删除: echo "version=$latest" >>$GITHUB_OUTPUT
468删除: - name: Install test dependencies
469删除: run: |
470删除: sudo apt-get update
471删除: sudo ./hack/install-qemu.sh
472删除: - name: Cache colima
473删除: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
474删除: with:
475删除: path: ~/.cache/colima
476删除: key: colima-${{ steps.install-colima.outputs.version }}
477删除: lookup-only: true
478删除: - name: Run BATS colima tests
479删除: run: ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/extras/colima.bats
480删除:
481删除: vmnet:
482删除: name: "VMNet tests (QEMU)"
483删除: runs-on: macos-15-large # Intel
484删除: timeout-minutes: 120
485删除: steps:
486删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
487删除: with:
488删除: persist-credentials: false
489删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
490删除: with:
491删除: go-version: stable
492删除: cache: false
493删除: - name: Make
494删除: run: make
495删除: - name: "Inject `no_timer_check` to kernel cmdline"
496删除: # workaround to https://github.com/lima-vm/lima/issues/84
497删除: run: |
498删除: export PATH="$PWD/_output/bin:$PATH"
499删除: ./hack/inject-cmdline-to-template.sh _output/share/lima/templates/_images/ubuntu.yaml no_timer_check
500删除: - name: Install
501删除: run: sudo make install
502删除: - name: "Adjust LIMACTL_CREATE_ARGS"
503删除: run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu --network=lima:shared" >>$GITHUB_ENV
504删除: - name: Cache image used by default .yaml
505删除: uses: $/.github/actions/setup_cache_for_template
506删除: with:
507删除: template: templates/default.yaml
508删除: - name: Install test dependencies
509删除: run: brew install qemu bash coreutils w3m
510删除: - name: Install socket_vmnet
511删除: env:
512删除: SOCKET_VMNET_VERSION: v1.2.2
513删除: run: |
514删除: (
515删除: cd ~
516删除: git clone https://github.com/lima-vm/socket_vmnet
517删除: cd socket_vmnet
518删除: git checkout $SOCKET_VMNET_VERSION
519删除: sudo git config --global --add safe.directory /Users/runner/socket_vmnet
520删除: sudo make PREFIX=/opt/socket_vmnet install
521删除: )
522删除: limactl sudoers | sudo tee /etc/sudoers.d/lima
523删除: - name: Unit test (pkg/networks) with socket_vmnet
524删除: # Set -count=1 to disable cache
525删除: run: go test -v -count=1 ./pkg/networks/...
526删除: - name: Test socket_vmnet
527删除: uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
528删除: with:
529删除: timeout_minutes: 30
530删除: retry_on: error
531删除: max_attempts: 3
532删除: command: ./hack/test-templates.sh templates/default.yaml
533删除: - if: always()
534删除: uses: $/.github/actions/upload_failure_logs_if_exists
535删除:
536删除: upgrade:
537删除: name: "Upgrade tests (QEMU, macOS host)"
538删除: runs-on: macos-15-large # Intel
539删除: timeout-minutes: 120
540删除: strategy:
541删除: matrix:
542删除: oldver: ["v0.15.1"] # The default VM type was always QEMU until Lima v1.0
543删除: steps:
544删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
545删除: with:
546删除: persist-credentials: false
547删除: - name: Fetch homebrew-core commit messages
548删除: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
549删除: with:
550删除: # needed by ./hack/brew-install-version.sh
551删除: repository: homebrew/homebrew-core
552删除: path: homebrew-core
553删除: fetch-depth: 0
554删除: filter: tree:0
555删除: persist-credentials: false
556删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
557删除: with:
558删除: go-version: stable
559删除: cache: false
560删除: - name: Cache image used by ${{ matrix.oldver }}/examples/ubuntu-lts.yaml
561删除: uses: $/.github/actions/setup_cache_for_template
562删除: with:
563删除: template: https://raw.githubusercontent.com/lima-vm/lima/${{ matrix.oldver }}/examples/ubuntu-lts.yaml
564删除: - name: Install test dependencies
565删除: run: |
566删除: brew install bash coreutils
567删除: # QEMU 9.1.0 seems to break on GitHub runners, both on Monterey and Ventura
568删除: # We revert back to 8.2.1, which seems to work fine
569删除: git config --global user.name "GitHub Actions Bot"
570删除: git config --global user.email "nobody@localhost"
571删除: ./hack/brew-install-version.sh qemu 8.2.1
572删除: - name: Test
573删除: uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
574删除: with:
575删除: timeout_minutes: 30
576删除: retry_on: error
577删除: max_attempts: 3
578删除: command: ./hack/test-upgrade.sh ${{ matrix.oldver }} ${{ github.sha }}
579删除: - if: always()
580删除: uses: $/.github/actions/upload_failure_logs_if_exists
581删除:
582删除: vz:
583删除: name: "Integration tests (vz)"
584删除: runs-on: macos-15-large # Intel
585删除: timeout-minutes: 120
586删除: strategy:
587删除: fail-fast: false
588删除: matrix:
589删除: template:
590删除: - default.yaml
591删除: steps:
592删除: - name: "Adjust LIMACTL_CREATE_ARGS"
593删除: # --cpus=1 is needed for running vz on GHA: https://github.com/lima-vm/lima/pull/1511#issuecomment-1574937888
594删除: run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --cpus 1 --memory 1" >>$GITHUB_ENV
595删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
596删除: with:
597删除: # Submodules are required by the BATS port-forwarding test
598删除: submodules: true
599删除: persist-credentials: false
600删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
601删除: with:
602删除: go-version: stable
603删除: cache: false
604删除: - name: Make
605删除: run: make
606删除: - name: Install
607删除: run: sudo make install
608删除: - name: Cache image used by templates/${{ matrix.template }}
609删除: uses: $/.github/actions/setup_cache_for_template
610删除: with:
611删除: template: templates/${{ matrix.template }}
612删除: - name: Install test dependencies
613删除: run: brew install bash coreutils w3m socat
614删除: - name: Uninstall qemu
615删除: run: brew uninstall --ignore-dependencies --force qemu
616删除: - name: Test
617删除: run: ./hack/test-templates.sh templates/${{ matrix.template }}
618删除: - name: "Run BATS port-forwarding test (vz, macOS host)"
619删除: if: matrix.template == 'default.yaml'
620删除: run: ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/tests/port-forwarding.bats
621删除: env:
622删除: LIMA_BATS_ALL_TESTS_RETRIES: "2"
623删除: - if: failure()
624删除: uses: $/.github/actions/upload_failure_logs_if_exists
625删除: with:
626删除: suffix: ${{ matrix.template }}
627删除:
628删除: # gomodjail is a library sandbox for Go
629删除: # https://github.com/AkihiroSuda/gomodjail
630删除: #
631删除: # The static analysis mode (`gomodjail analyze`) is enforced by the "Lints" job above.
632删除: # This job exercises the legacy dynamic mode (`gomodjail run`), which enforces a similar
633删除: # (but not identical) policy at runtime, via syscall interception.
634删除: #
635删除: # This is an early experiment.
636删除: # CI failures that only occurs with gomodjail shall not block merging PRs.
637删除: gomodjail:
638删除: name: "gomodjail, dynamic mode (experimental; failures shall not block merging PRs)"
639删除: runs-on: macos-15-large # Intel
640删除: timeout-minutes: 30
641删除: steps:
642删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
643删除: with:
644删除: persist-credentials: false
645删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
646删除: with:
647删除: go-version: stable
648删除: cache: false
649删除: - name: Install gomodjail
650删除: env:
651删除: GOMODJAIL_VERSION: v2.0.1
652删除: run: |
653删除: set -eux -o pipefail
654删除: git clone --depth=1 --branch="${GOMODJAIL_VERSION}" https://github.com/AkihiroSuda/gomodjail
655删除: cd gomodjail
656删除: make binaries install
657删除: - name: Install Lima
658删除: # gomodjail depends on symbols
659删除: run: |
660删除: make KEEP_SYMBOLS=1 binaries
661删除: sudo make install
662删除: - name: Cache image used by templates/default.yaml
663删除: uses: $/.github/actions/setup_cache_for_template
664删除: with:
665删除: template: templates/default.yaml
666删除: - name: Smoke test
667删除: run: gomodjail run --go-mod=./go.mod -- limactl start --tty=false
668删除:
669删除: cross:
670删除: name: "Cross-compile (NetBSD, DragonFlyBSD)"
671删除: runs-on: ubuntu-24.04
672删除: timeout-minutes: 30
673删除: steps:
674删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
675删除: with:
676删除: persist-credentials: false
677删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
678删除: with:
679删除: go-version: stable
680删除: cache: false
681删除: - run: GOOS=netbsd go build ./...
682删除: - run: GOOS=dragonfly go build ./...
683删除:
684删除: qemu-linux-old:
685删除: name: "Smoke tests (QEMU, old Linux host)"
686删除: runs-on: ubuntu-22.04 # QEMU 6.2
687删除: timeout-minutes: 30
688删除: steps:
689删除: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
690删除: with:
691删除: persist-credentials: false
692删除: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
693删除: with:
694删除: go-version: stable
695删除: cache: false
696删除: - name: Make
697删除: run: make
698删除: - name: Install
699删除: run: sudo make install
700删除: - name: Cache image used by templates/default.yaml
701删除: uses: $/.github/actions/setup_cache_for_template
702删除: with:
703删除: template: templates/default.yaml
704删除: - name: Install test dependencies
705删除: run: |
706删除: sudo apt-get update
707删除: sudo ./hack/install-qemu.sh
708删除: - name: Smoke test
709删除: run: limactl start --tty=false
删除third_party/lima/.gitignore+0 −7
@@ -1,7 +0,0 @@
1删除:_output/
2删除:_artifacts/
3删除:lima.REJECTED.yaml
4删除:default-template.yaml
5删除:schema-limayaml.json
6删除:.config
7删除:*.local.md
删除third_party/lima/ADOPTERS.md+0 −8
@@ -1,8 +0,0 @@
1删除:# Adopters
2删除:
3删除:- [Rancher Desktop](https://rancherdesktop.io/): Kubernetes and container management to the desktop
4删除:- [Colima](https://github.com/abiosoft/colima): Docker (and Kubernetes) on macOS with minimal setup
5删除:- [Finch](https://github.com/runfinch/finch): Finch is a command line client for local container development
6删除:- [Podman Desktop](https://podman-desktop.io/): Podman Desktop GUI has a plug-in for Lima virtual machines
7删除:
8删除:For a full list, check out: <https://github.com/lima-vm/lima/discussions/2390>
删除third_party/lima/AGENTS.md+0 −52
@@ -1,52 +0,0 @@
1删除:# AGENTS.md
2删除:
3删除:Guidance for AI coding agents working in the Lima repository. It points to the authoritative docs
4删除:instead of duplicating them, so it stays in sync with the code.
5删除:
6删除:## AI contribution rules
7删除:
8删除:Read @website/content/en/docs/community/contributing.md and follow its "AI Contribution Rules"
9删除:section.
10删除:
11删除:## Build, test, lint
12删除:
13删除:Lima is `github.com/lima-vm/lima/v2` (imports use the `/v2` suffix). The build
14删除:uses a GNU Makefile; output goes to `_output/`.
15删除:
16删除:```bash
17删除:make native # build limactl + native guestagent + templates (fastest full dev build)
18删除:make minimal # build just limactl + native guestagent + default template
19删除:go test ./... # unit tests - never boot VMs
20删除:make bats # integration tests (BATS); boot real VMs (needs git submodules)
21删除:make lint # editorconfig, golangci-lint, yamllint, ls-lint, shellcheck, ltag, ...
22删除:make generate # regenerate protobuf after editing a .proto file
23删除:```
24删除:
25删除:Unit tests never execute VMs; anything that boots a VM is a BATS or template test under `hack/`
26删除:(for example `./hack/test-templates.sh ./templates/default.yaml`). Every commit must be signed off
27删除:with `git commit -s`, or CI fails.
28删除:
29删除:## Where things are
30删除:
31删除:Pointers to the authoritative sources - read these rather than a duplicated copy here.
32删除:
33删除:- Architecture, the three processes (`limactl` / hostagent / guestagent), the on-disk `${LIMA_HOME}`
34删除: layout, and every `LIMA_CIDATA_*` variable:
35删除: [`website/content/en/docs/dev/internals.md`](website/content/en/docs/dev/internals.md).
36删除:- Config / data model: `pkg/limatype` (core `LimaYAML` / `Instance` types), `pkg/limayaml`
37删除: (load / default / validate), `pkg/limatmpl` and `pkg/templatestore` (templates).
38删除:- Drivers (virtualization backends): `pkg/driver/`
39删除:- Guest provisioning: `pkg/cidata/` builds `cidata.iso` (guestagent binary, boot scripts, and the
40删除: `user-data` file). `user-data` uses the cloud-config YAML format defined by cloud-init, which a
41删除: guest may consume with an implementation other than Python cloud-init.
42删除:- Instance lifecycle: `pkg/instance/`.
43删除:
44删除:## Conventions
45删除:
46删除:- New Go, shell, Dockerfile, and Makefile files need an SPDX header (`ltag` enforces this in CI;
47删除: other file types, including markdown, are exempt).
48删除:- Keep the `gomodjail` / `gosocialcheck` annotations in `go.mod`. `make gomodjail` statically
49删除: verifies that the modules annotated `gomodjail:confined` cannot reach a denied capability
50删除: (filesystem, network, process execution, raw syscalls, ...); when a dependency bump makes one
51删除: of them reach a capability, `make gomodjail-fix` downgrades that annotation to
52删除: `gomodjail:unconfined` instead of confining it by hand.
删除third_party/lima/CLAUDE.md+0 −6
@@ -1,6 +0,0 @@
1删除:# CLAUDE.md
2删除:
3删除:@AGENTS.md
4删除:
5删除:`AGENTS.md` is the shared guidance for AI coding agents in this repository; the `@` line above makes
6删除:the harness load it. Personal, machine-local overrides may live in `CLAUDE.local.md` (gitignored).
删除third_party/lima/MAINTAINERS.md+0 −1
@@ -1 +0,0 @@
1删除:Moved to <https://lima-vm.io/docs/community/governance/>.
删除third_party/lima/README.md+0 −121
@@ -1,121 +0,0 @@
1删除:[[🌎**Web site**]](https://lima-vm.io/)
2删除:[[📖**Documentation**]](https://lima-vm.io/docs/)
3删除:[[👤**Slack (`#lima`)**]](https://slack.cncf.io)
4删除:
5删除:<picture>
6删除: <source media="(prefers-color-scheme: dark)" srcset="website/static/images/logo-dark.svg">
7删除: <img alt="Shows a stylized 'Lima' text in bold, modern font" src="website/static/images/logo.svg" width=400 />
8删除:</picture>
9删除:
10删除:# Lima: Linux Machines
11删除:
12删除:[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/lima-vm/lima)
13删除:[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/6505/badge)](https://www.bestpractices.dev/projects/6505)
14删除:[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/lima-vm/lima/badge)](https://scorecard.dev/viewer/?uri=github.com/lima-vm/lima)
15删除:
16删除:[Lima](https://lima-vm.io/) launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2).
17删除:
18删除:The original goal of Lima was to promote [containerd](https://containerd.io) including [nerdctl (contaiNERD ctl)](https://github.com/containerd/nerdctl)
19删除:to Mac users, but Lima can be used for non-container applications as well.
20删除:
21删除:Lima also supports other container engines (Docker, Podman, Kubernetes, etc.) and non-macOS hosts (Linux, NetBSD, etc.).
22删除:
23删除:## Getting started
24删除:Set up (Homebrew):
25删除:```bash
26删除:brew install lima
27删除:limactl start
28删除:```
29删除:
30删除:To run Linux commands:
31删除:```bash
32删除:lima uname -a
33删除:```
34删除:
35删除:To run containers with containerd:
36删除:```bash
37删除:lima nerdctl run --rm hello-world
38删除:```
39删除:
40删除:To run containers with Docker:
41删除:```bash
42删除:limactl start template:docker
43删除:export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock')
44删除:docker run --rm hello-world
45删除:```
46删除:
47删除:To run containers with Kubernetes:
48删除:```bash
49删除:limactl start template:k8s
50删除:export KUBECONFIG=$(limactl list k8s --format 'unix://{{.Dir}}/copied-from-guest/kubeconfig.yaml')
51删除:kubectl apply -f ...
52删除:```
53删除:
54删除:See <https://lima-vm.io/docs/> for the further information.
55删除:
56删除:## Software Bill of Materials (SBOM)
57删除:
58删除:The "sbom" download contains SBOM in the CycloneDX format since v2.3.
59删除:
60删除:There are both "app" \*.bom.json and "mod" bom.json files:
61删除:
62删除:- SBOMs generated with "app" include only those modules that the target application
63删除: actually depends on. Modules required by tests or packages that are not imported
64删除: by the application are not included. Build constraints are evaluated, which enables
65删除: a very detailed view of what's really compiled into an application's binary.
66删除:
67删除:- SBOMs generated with "mod" include the aggregate of modules required by all
68删除: packages in the target module. This optionally includes modules required by
69删除: tests and test packages. Build constraints are NOT evaluated, allowing for
70删除: a "whole picture" view on the target module's dependencies.
71删除:
72删除:## Contributing
73删除:
74删除:We welcome contributions! Please see our [Contributing Guide](https://lima-vm.io/docs/community/contributing/) for details on:
75删除:
76删除:- **Developer Certificate of Origin (DCO)**: All commits must be signed off with `git commit -s`
77删除:- Code licensing and pull request guidelines
78删除:- Testing requirements
79删除:
80删除:## Community
81删除:### Adopters
82删除:
83删除:Container environments:
84删除:- [Rancher Desktop](https://rancherdesktop.io/): Kubernetes and container management to the desktop
85删除:- [Colima](https://github.com/abiosoft/colima): Docker (and Kubernetes) on macOS with minimal setup
86删除:- [Finch](https://github.com/runfinch/finch): Finch is a command line client for local container development
87删除:- [Podman Desktop](https://podman-desktop.io/): Podman Desktop GUI has a plug-in for Lima virtual machines
88删除:
89删除:GUI:
90删除:- [Lima xbar plugin](https://github.com/unixorn/lima-xbar-plugin): [xbar](https://xbarapp.com/) plugin to start/stop VMs from the menu bar and see their running status.
91删除:- [lima-gui](https://github.com/afbjorklund/lima-gui): Qt GUI for Lima
92删除:
93删除:### Communication channels
94删除:<!-- Duplicated from https://lima-vm.io/docs/community/ -->
95删除:- [GitHub Discussions](https://github.com/lima-vm/lima/discussions)
96删除:- `#lima` channel in the CNCF Slack
97删除: - New account: <https://slack.cncf.io/>
98删除: - Login: <https://cloud-native.slack.com/>
99删除:- Community meetings on Zoom (tentatively monthly)
100删除: - Meeting notes & agenda proposals: https://github.com/lima-vm/lima/discussions/categories/meetings
101删除: - Calendar: https://zoom-lfx.platform.linuxfoundation.org/meetings/lima
102删除:
103删除:### Social media accounts
104删除:
105删除:Follow us for project updates, release announcements, and community news:
106删除:
107删除:- https://x.com/@TheLimaProject
108删除:- https://mastodon.social/@TheLimaProject
109删除:
110删除:### Code of Conduct
111删除:Lima follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
112删除:
113删除:- - -
114删除:**We are a [Cloud Native Computing Foundation](https://cncf.io/) incubating project.**
115删除:
116删除:<picture>
117删除: <source media="(prefers-color-scheme: dark)" srcset="https://www.cncf.io/wp-content/uploads/2022/07/cncf-white-logo.svg">
118删除: <img src="https://www.cncf.io/wp-content/uploads/2022/07/cncf-color-bg.svg" width=300 />
119删除:</picture>
120删除:
121删除:The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see [Trademark Usage](https://www.linuxfoundation.org/legal/trademark-usage).
删除third_party/lima/ROADMAP.md+0 −1
@@ -1 +0,0 @@
1删除:Moved to <https://lima-vm.io/docs/community/roadmap/>.
删除third_party/lima/docs/README.md+0 −4
@@ -1,4 +0,0 @@
1删除:Moved to <https://lima-vm.io/docs/>
2删除:
3删除:> [!NOTE]
4删除:> The document source can be found in [`../website/content/en/docs/`](../website/content/en/docs/).
删除third_party/lima/hack/bats/README.md+0 −4
@@ -1,4 +0,0 @@
1删除:# BATS Integration Tests
2删除:
3删除:See the [Testing](https://lima-vm.io/docs/dev/testing/) page for how to run these tests
4删除:and the [BATS Style Guide](https://lima-vm.io/docs/dev/testing/bats-style/) for coding conventions.
删除third_party/lima/hack/bats/extras/README.md+0 −6
@@ -1,6 +0,0 @@
1删除:# Extra tests
2删除:
3删除:The extra tests located in this directory are not automatically executed via `make bats`.
4删除:
5删除:Some tests are executed on the CI, some ones are not.
6删除:Refer to the configuration of the GitHub Actions to see what tests are executed.
删除third_party/lima/templates/README.md+0 −161
@@ -1,161 +0,0 @@
1删除:## Quick usage
2删除:
3删除:To create and start a new instance from the template `fedora`:
4删除:```bash
5删除:# Note: In Lima 1.x, template URLs included leading slashes, e.g. `template://fedora`.
6删除:limactl create template:fedora
7删除:limactl start fedora
8删除:```
9删除:or
10删除:```bash
11删除:limactl start template:fedora
12删除:# For the second time onward, just run `limactl start fedora`
13删除:```
14删除:
15删除:To open a shell:
16删除:```bash
17删除:limactl shell fedora
18删除:```
19删除:or
20删除:```bash
21删除:export LIMA_INSTANCE=fedora
22删除:lima
23删除:```
24删除:
25删除:## Template list
26删除:
27删除:⭐ = ["Tier 1"](#tier)
28删除:
29删除:☆ = ["Tier 2"](#tier)
30删除:
31删除:### Default
32删除:
33删除:- [`default`](./default.yaml) (⭐Ubuntu, with containerd/nerdctl)
34删除:
35删除:### Linux distributions
36删除:
37删除:- [`almalinux-8`](./almalinux-8.yaml): AlmaLinux 8
38删除:- [`almalinux-9`](./almalinux-9.yaml): AlmaLinux 9
39删除:- [`almalinux-10`](./almalinux-10.yaml), `almalinux`: AlmaLinux 10
40删除:- [`experimental/almalinux-kitten-10`](./experimental/almalinux-kitten-10.yaml), `experimental/almalinux-kitten`: AlmaLinux Kitten 10
41删除:- [`alpine-3.21`](./alpine-3.21.yaml): Alpine Linux 3.21
42删除:- [`alpine-3.22`](./alpine-3.22.yaml): Alpine Linux 3.22
43删除:- [`alpine-3.23`](./alpine-3.23.yaml), `alpine`: ☆Alpine Linux 3.23
44删除:- [`alpine-iso`](./alpine-iso.yaml): ☆Alpine Linux (ISO9660 image). Compatible with the `alpine` template used in Lima prior to v1.0.
45删除:- [`archlinux`](./archlinux.yaml): ☆Arch Linux
46删除:- [`centos-stream-9`](./centos-stream-9.yaml), `centos-stream`: CentOS Stream 9
47删除:- [`centos-stream-10`](./centos-stream-10.yaml): CentOS Stream 10
48删除:- [`debian-11`](./debian-11.yaml): Debian GNU/Linux 11 (Bullseye)
49删除:- [`debian-12`](./debian-12.yaml): Debian GNU/Linux 12 (Bookworm)
50删除:- [`debian-13`](./debian-13.yaml), `debian`: ⭐Debian GNU/Linux 13 (Trixie)
51删除:- [`fedora-41`](./fedora-41.yaml): Fedora 41
52删除:- [`fedora-42`](./fedora-42.yaml): Fedora 42
53删除:- [`fedora-43`](./fedora-43.yaml), Fedora 43
54删除:- [`fedora-44`](./fedora-44.yaml), `fedora`: ⭐Fedora 44
55删除:- [`opensuse-leap-15`](./opensuse-leap-15.yaml): openSUSE Leap 15
56删除:- [`opensuse-leap-16`](./opensuse-leap-16.yaml), `opensuse-leap`, `opensuse`: ⭐openSUSE Leap 16
57删除:- [`oraclelinux-8`](./oraclelinux-8.yaml): Oracle Linux 8
58删除:- [`oraclelinux-9`](./oraclelinux-9.yaml): Oracle Linux 9
59删除:- [`oraclelinux-10`](./oraclelinux-10.yaml), `oraclelinux`: Oracle Linux 10
60删除:- [`rocky-8`](./rocky-8.yaml): Rocky Linux 8
61删除:- [`rocky-9`](./rocky-9.yaml): Rocky Linux 9
62删除:- [`rocky-10`](./rocky-10.yaml), `rocky`: Rocky Linux 10
63删除:- [`ubuntu-20.04`](./ubuntu-20.04.yaml): Ubuntu 20.04 LTS (Focal Fossa)
64删除:- [`ubuntu-22.04`](./ubuntu-22.04.yaml): Ubuntu 22.04 LTS (Jammy Jellyfish)
65删除:- [`ubuntu-24.04`](./ubuntu-24.04.yaml): Ubuntu 24.04 LTS (Noble Numbat)
66删除:- [`ubuntu-24.10`](./ubuntu-24.10.yaml): Ubuntu 24.10 (Oracular Oriole)
67删除:- [`ubuntu-25.04`](./ubuntu-25.04.yaml): Ubuntu 25.04 (Plucky Puffin)
68删除:- [`ubuntu-25.10`](./ubuntu-25.10.yaml): Ubuntu 25.10 (Questing Quokka)
69删除:- [`ubuntu-26.04`](./ubuntu-26.04.yaml), `ubuntu`, `ubuntu-lts`: Ubuntu 26.04 (Resolute Raccoon)
70删除: - Same as `default` but comment lines are omitted from the YAML
71删除:- [`experimental/ubuntu-next`](./experimental/ubuntu-next.yaml): Ubuntu vNext
72删除:- [`experimental/gentoo`](./experimental/gentoo.yaml): Gentoo
73删除:- [`experimental/opensuse-tumbleweed`](./experimental/opensuse-tumbleweed.yaml): openSUSE Tumbleweed
74删除:- [`experimental/debian-sid`](./experimental/debian-sid.yaml): Debian Sid
75删除:- [`experimental/fedora-rawhide`](./experimental/fedora-rawhide.yaml): Fedora Rawhide
76删除:
77删除:### Non-Linux
78删除:
79删除:NOTE: support for non-Linux OSes is [experimental](https://lima-vm.io/docs/releases/experimental/).
80删除:For running macOS guests, you need a macOS host that is same or newer than the guest OS.
81删除:
82删除:- [`macos-15`](./macos-15.yaml): [macOS](https://lima-vm.io/docs/usage/guests/macos/) 15 (Sequoia)
83删除:- [`macos-26`](./macos-26.yaml): [macOS](https://lima-vm.io/docs/usage/guests/macos/) 26 (Tahoe)
84删除:- [`macos-27`](./macos-27.yaml), `macos`: [macOS](https://lima-vm.io/docs/usage/guests/macos/) 27 (Golden Gate)
85删除:- [`freebsd-15`](./freebsd-15.yaml), `freebsd`: [FreeBSD](https://lima-vm.io/docs/usage/guests/freebsd/) 15
86删除:- [`experimental/freebsd-current`](./experimental/freebsd-current.yaml): [FreeBSD](https://lima-vm.io/docs/usage/guests/freebsd/) CURRENT
87删除:- [`windows-2025`](./windows-2025.yaml): [Windows](https://lima-vm.io/docs/usage/guests/windows/) server 2025
88删除:
89删除:### Alternative package managers
90删除:
91删除:- [`linuxbrew`](./linuxbrew.yaml), `homebrew-linux`: [Homebrew](https://brew.sh) on Linux (Ubuntu)
92删除:- [`homebrew-macos`](./homebrew-macos.yaml): [Homebrew](https://brew.sh) on macOS
93删除:
94删除:### Containers
95删除:
96删除:#### Container engines
97删除:
98删除:- [`apptainer`](./apptainer.yaml): [Apptainer](https://lima-vm.io/docs/examples/containers/apptainer/)
99删除:- [`apptainer-rootful`](./apptainer-rootful.yaml): [Apptainer](https://lima-vm.io/docs/examples/containers/apptainer/) (rootful)
100删除:- [`docker`](./docker.yaml): ⭐[Docker](https://lima-vm.io/docs/examples/containers/docker/)
101删除:- [`docker-rootful`](./docker-rootful.yaml): [Docker](https://lima-vm.io/docs/examples/containers/docker/) (rootful)
102删除:- [`podman`](./podman.yaml): [Podman](https://lima-vm.io/docs/examples/containers/podman/)
103删除:- [`podman-rootful`](./podman-rootful.yaml): [Podman](https://lima-vm.io/docs/examples/containers/podman/) (rootful)
104删除:- LXD is installed in the default Ubuntu template, so there is no `lxd`
105删除:
106删除:#### Container image builders
107删除:
108删除:- [`buildkit`](./buildkit.yaml): BuildKit
109删除:
110删除:#### Container orchestration
111删除:
112删除:- [`faasd`](./faasd.yaml): [Faasd](https://docs.openfaas.com/deployment/edge/)
113删除:- [`k0s`](./k0s.yaml): [k0s](https://k0sproject.io/) Zero Friction Kubernetes
114删除:- [`k3s`](./k3s.yaml): Kubernetes via k3s
115删除:- [`k8s`](./k8s.yaml): ⭐[Kubernetes](https://lima-vm.io/docs/examples/containers/kubernetes/) via kubeadm
116删除:- [`experimental/rke2`](./experimental/rke2.yaml): RKE2
117删除:- [`experimental/u7s`](./experimental/u7s.yaml): [Usernetes](https://github.com/rootless-containers/usernetes): Rootless Kubernetes
118删除:
119删除:### AI agents
120删除:
121删除:See <https://lima-vm.io/docs/examples/ai/>.
122删除:
123删除:### Optional feature enablers
124删除:
125删除:- [`experimental/vnc`](./experimental/vnc.yaml): use vnc display and xorg server
126删除:- [`experimental/alsa`](./experimental/alsa.yaml): use alsa and default audio device
127删除:- [`experimental/hcs`](./experimental/hcs.yaml): use [HCS driver](https://lima-vm.io/docs/config/vmtype/hcs/) on Windows hosts
128删除:
129删除:### Lost+found
130删除:
131删除:<details>
132删除:<summary>Details</summary>
133删除:<p>
134删除:
135删除:- `centos`: Removed in Lima v0.8.0, as CentOS 8 reached [EOL](https://www.centos.org/centos-linux-eol/).
136删除: Replaced by [`almalinux`](./almalinux.yaml), [`centos-stream`](./centos-stream.yaml), [`oraclelinux`](./oraclelinux.yaml),
137删除: and [`rocky`](./rocky.yaml).
138删除:- `singularity`: Moved to [`apptainer-rootful`](./apptainer-rootful.yaml) in Lima v0.13.0, as Singularity was renamed to Apptainer.
139删除:- `experimental/apptainer`: Moved to [`apptainer`](./apptainer.yaml) in Lima v0.13.0.
140删除:- `experimental/{almalinux,centos-stream-9,oraclelinux,rocky}-9`: Moved to [`almalinux-9`](./almalinux-9.yaml), [`centos-stream-9`](./centos-stream-9.yaml),
141删除: [`oraclelinux-9`](./oraclelinux-9.yaml), and [`rocky-9`](./rocky-9.yaml) in Lima v0.13.0.
142删除:- `nomad`: Removed in Lima v0.17.1, as Nomad is [no longer free software](https://github.com/hashicorp/nomad/commit/b3e30b1dfa185d9437a25830522da47b91f78816)
143删除:- `centos-stream-8`: Remove in Lima v0.23.0, as CentOS Stream 8 reached [EOL](https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/).
144删除:- `deprecated/centos-7`: Remove in Lima v0.23.0, as CentOS 7 reached [EOL](https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/).
145删除:- `experimental/vz`: Merged into the default template in Lima v1.0. See also <https://lima-vm.io/docs/config/vmtype/>.
146删除:- `experimental/armv7l`: Merged into the `default` template in Lima v1.0. Use `limactl create --arch=armv7l template:default`.
147删除:- `experimental/riscv64`: Merged into the `default` template in Lima v1.0. Use `limactl create --arch=riscv64 template:default`.
148删除:- `vmnet`: Removed in Lima v1.0. Use `limactl create --network=lima:shared template:default` instead. See also <https://lima-vm.io/docs/config/network/>.
149删除:- `experimental/net-user-v2`: Removed in Lima v1.0. Use `limactl create --network=lima:user-v2 template:default` instead. See also <https://lima-vm.io/docs/config/network/>.
150删除:- `experimental/9p`: Removed in Lima v1.0. Use `limactl create --vm-type=qemu --mount-type=9p template:default` instead. See also <https://lima-vm.io/docs/config/mount/>.
151删除:- `experimental/virtiofs-linux`: Removed in Lima v1.0. Use `limactl create --mount-type=virtiofs-linux template:default` instead. See also <https://lima-vm.io/docs/config/mount/>.
152删除:
153删除:</p>
154删除:</details>
155删除:
156删除:## Tier
157删除:
158删除:- "Tier 1" (marked with ⭐): Good stability. Regularly tested on the CI.
159删除:- "Tier 2" (marked with ☆): Moderate stability. Regularly tested on the CI.
160删除:
161删除:Other templates are tested only occasionally and manually.
删除third_party/sftp/.github/workflows/.editorconfig+0 −2
@@ -1,2 +0,0 @@
1删除:[*.yml]
2删除:indent_size = 2
删除third_party/sftp/.github/workflows/CI.yml+0 −38
@@ -1,38 +0,0 @@
1删除:name: CI
2删除:
3删除:on:
4删除: push:
5删除: branches: [master]
6删除: pull_request:
7删除:
8删除:jobs:
9删除: run-tests:
10删除: name: Run test cases
11删除: runs-on: ${{ matrix.os }}
12删除: strategy:
13删除: matrix:
14删除: os: [ubuntu-latest, macos-latest]
15删除: go: ['1.26', '1.25']
16删除: exclude:
17删除: - os: macos-latest
18删除: go: '1.25'
19删除:
20删除: steps:
21删除: - uses: actions/checkout@v7
22删除:
23删除: - name: Set up Go
24删除: uses: actions/setup-go@v6
25删除: with:
26删除: go-version: ${{ matrix.go }}
27删除:
28删除: - name: Run tests
29删除: run: |
30删除: make integration
31删除: make integration_w_race
32删除:
33删除: - name: Run tests on 32-bit arch
34删除: if: startsWith(matrix.os, 'ubuntu-')
35删除: run: |
36删除: make integration
37删除: env:
38删除: GOARCH: 386
删除third_party/sftp/.github/workflows/cifuzz.yml+0 −26
@@ -1,26 +0,0 @@
1删除:name: CIFuzz
2删除:on: [pull_request]
3删除:jobs:
4删除: Fuzzing:
5删除: runs-on: ubuntu-latest
6删除: steps:
7删除: - name: Build Fuzzers
8删除: id: build
9删除: uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
10删除: with:
11删除: oss-fuzz-project-name: 'go-sftp'
12删除: dry-run: false
13删除: language: go
14删除: - name: Run Fuzzers
15删除: uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
16删除: with:
17删除: oss-fuzz-project-name: 'go-sftp'
18删除: fuzz-seconds: 300
19删除: dry-run: false
20删除: language: go
21删除: - name: Upload Crash
22删除: uses: actions/upload-artifact@v7
23删除: if: failure() && steps.build.outcome == 'success'
24删除: with:
25删除: name: artifacts
26删除: path: ./out/artifacts
删除third_party/sftp/.gitignore+0 −10
@@ -1,10 +0,0 @@
1删除:.*.swo
2删除:.*.swp
3删除:
4删除:server_standalone/server_standalone
5删除:
6删除:examples/*/id_rsa
7删除:examples/*/id_rsa.pub
8删除:
9删除:memprofile.out
10删除:memprofile.svg
删除third_party/sftp/README.md+0 −44
@@ -1,44 +0,0 @@
1删除:sftp
2删除:----
3删除:
4删除:The `sftp` package provides support for file system operations on remote ssh
5删除:servers using the SFTP subsystem. It also implements an SFTP server for serving
6删除:files from the filesystem.
7删除:
8删除:![CI Status](https://github.com/pkg/sftp/workflows/CI/badge.svg?branch=master&event=push) [![Go Reference](https://pkg.go.dev/badge/github.com/pkg/sftp.svg)](https://pkg.go.dev/github.com/pkg/sftp)
9删除:
10删除:usage and examples
11删除:------------------
12删除:
13删除:See [https://pkg.go.dev/github.com/pkg/sftp](https://pkg.go.dev/github.com/pkg/sftp) for
14删除:examples and usage.
15删除:
16删除:The basic operation of the package mirrors the facilities of the
17删除:[os](http://golang.org/pkg/os) package.
18删除:
19删除:The Walker interface for directory traversal is heavily inspired by Keith
20删除:Rarick's [fs](https://pkg.go.dev/github.com/kr/fs) package.
21删除:
22删除:roadmap
23删除:-------
24删除:
25删除:* There is way too much duplication in the Client methods. If there was an
26删除: unmarshal(interface{}) method this would reduce a heap of the duplication.
27删除:
28删除:contributing
29删除:------------
30删除:
31删除:We welcome pull requests, bug fixes and issue reports.
32删除:
33删除:Before proposing a large change, first please discuss your change by raising an
34删除:issue.
35删除:
36删除:For API/code bugs, please include a small, self contained code example to
37删除:reproduce the issue. For pull requests, remember test coverage.
38删除:
39删除:We try to handle issues and pull requests with a 0 open philosophy. That means
40删除:we will try to address the submission as soon as possible and will work toward
41删除:a resolution. If progress can no longer be made (eg. unreproducible bug) or
42删除:stops (eg. unresponsive submitter), we will close the bug.
43删除:
44删除:Thanks.
删除third_party/sftp/SECURITY.md+0 −13
@@ -1,13 +0,0 @@
1删除:# Security Policy
2删除:
3删除:## Supported Versions
4删除:
5删除:Security updates are provided for the latest released version of this package.
6删除:We also welcome vulnerability reports for the development version to help us ensure it is secure before the next release.
7删除:
8删除:## Reporting a Vulnerability
9删除:
10删除:If you believe you’ve found a security vulnerability in this project, we strongly encourage you to report it privately using GitHub’s [security advisory system](https://github.com/pkg/sftp/security/advisories/new).
11删除:This will allow us to review and address the issue before public disclosure.
12删除:
13删除:Thank you for helping us keep the project secure.
删除third_party/sftp/examples/go-sftp-server/README.md+0 −12
@@ -1,12 +0,0 @@
1删除:Example SFTP server implementation
2删除:===
3删除:
4删除:In order to use this example you will need an RSA key.
5删除:
6删除:On linux-like systems with openssh installed, you can use the command:
7删除:
8删除:```
9删除:ssh-keygen -t rsa -f id_rsa
10删除:```
11删除:
12删除:Then you will be able to run the sftp-server command in the current directory.
删除third_party/sftp/request-readme.md+0 −53
@@ -1,53 +0,0 @@
1删除:# Request Based SFTP API
2删除:
3删除:The request based API allows for custom backends in a way similar to the http
4删除:package. In order to create a backend you need to implement 4 handler
5删除:interfaces; one for reading, one for writing, one for misc commands and one for
6删除:listing files. Each has 1 required method and in each case those methods take
7删除:the Request as the only parameter and they each return something different.
8删除:These 4 interfaces are enough to handle all the SFTP traffic in a simplified
9删除:manner.
10删除:
11删除:The Request structure has 5 public fields which you will deal with.
12删除:
13删除:- Method (string) - string name of incoming call
14删除:- Filepath (string) - POSIX path of file to act on
15删除:- Flags (uint32) - 32bit bitmask value of file open/create flags
16删除:- Attrs ([]byte) - byte string of file attribute data
17删除:- Target (string) - target path for renames and sym-links
18删除:
19删除:Below are the methods and a brief description of what they need to do.
20删除:
21删除:### Fileread(*Request) (io.Reader, error)
22删除:
23删除:Handler for "Get" method and returns an io.Reader for the file which the server
24删除:then sends to the client.
25删除:
26删除:### Filewrite(*Request) (io.Writer, error)
27删除:
28删除:Handler for "Put" method and returns an io.Writer for the file which the server
29删除:then writes the uploaded file to. The file opening "pflags" are currently
30删除:preserved in the Request.Flags field as a 32bit bitmask value. See the [SFTP
31删除:spec](https://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt#section-6.3) for
32删除:details.
33删除:
34删除:### Filecmd(*Request) error
35删除:
36删除:Handles "SetStat", "Rename", "Rmdir", "Mkdir" and "Symlink" methods. Makes the
37删除:appropriate changes and returns nil for success or an filesystem like error
38删除:(eg. os.ErrNotExist). The attributes are currently propagated in their raw form
39删除:([]byte) and will need to be unmarshalled to be useful. See the respond method
40删除:on sshFxpSetstatPacket for example of you might want to do this.
41删除:
42删除:### Fileinfo(*Request) ([]os.FileInfo, error)
43删除:
44删除:Handles "List", "Stat", "Readlink" methods. Gathers/creates FileInfo structs
45删除:with the data on the files and returns in a list (list of 1 for Stat and
46删除:Readlink).
47删除:
48删除:
49删除:## TODO
50删除:
51删除:- Add support for API users to see trace/debugging info of what is going on
52删除:inside SFTP server.
53删除:- Unmarshal the file attributes into a structure on the Request object.
删除third_party/sshocker/.github/dependabot.yml+0 −16
@@ -1,16 +0,0 @@
1删除:version: 2
2删除:updates:
3删除:- package-ecosystem: gomod
4删除: directory: "/"
5删除: schedule:
6删除: interval: weekly
7删除: open-pull-requests-limit: 10
8删除: reviewers:
9删除: - AkihiroSuda
10删除:- package-ecosystem: github-actions
11删除: directory: "/"
12删除: schedule:
13删除: interval: weekly
14删除: open-pull-requests-limit: 10
15删除: reviewers:
16删除: - AkihiroSuda
删除third_party/sshocker/.github/workflows/main.yml+0 −27
@@ -1,27 +0,0 @@
1删除:name: CI
2删除:on:
3删除: push:
4删除: branches:
5删除: - master
6删除: - 'release/**'
7删除: pull_request:
8删除:permissions:
9删除: contents: read
10删除:jobs:
11删除: main:
12删除: strategy:
13删除: matrix:
14删除: go-version: [oldstable, stable]
15删除: platform: [ubuntu-latest, macos-latest, windows-latest]
16删除: runs-on: ${{ matrix.platform }}
17删除: steps:
18删除: - uses: actions/checkout@v7
19删除: with:
20删除: fetch-depth: 1
21删除: - uses: actions/setup-go@v7
22删除: with:
23删除: go-version: ${{ matrix.go-version }}
24删除: - run: make
25删除: - if: "${{ matrix.platform != 'windows-latest' }}"
26删除: run: sudo make install
27删除: - run: go test -covermode=atomic -race -v ./...
删除third_party/sshocker/.github/workflows/release.yml+0 −58
@@ -1,58 +0,0 @@
1删除:name: Release
2删除:on:
3删除: push:
4删除: tags:
5删除: - 'v*'
6删除: - 'test-action-release-*'
7删除:permissions:
8删除: contents: read
9删除:jobs:
10删除: release:
11删除: strategy:
12删除: matrix:
13删除: go-version: [stable]
14删除: os: [ubuntu-24.04]
15删除: runs-on: ${{ matrix.os }}
16删除: timeout-minutes: 20
17删除: permissions:
18删除: contents: write # for releases
19删除: id-token: write # for provenances
20删除: attestations: write # for provenances
21删除: steps:
22删除: - uses: actions/checkout@v7
23删除: with:
24删除: path: go/src/github.com/lima-vm/sshocker
25删除: - uses: actions/setup-go@v7
26删除: with:
27删除: go-version: ${{ matrix.go-version }}
28删除: - name: "Compile binaries"
29删除: working-directory: go/src/github.com/lima-vm/sshocker
30删除: run: make cross
31删除: - name: "SHA256SUMS"
32删除: working-directory: go/src/github.com/lima-vm/sshocker
33删除: run: ( cd ./bin; sha256sum sshocker-* ) | tee /tmp/SHA256SUMS
34删除: - name: "Prepare the release note"
35删除: working-directory: go/src/github.com/lima-vm/sshocker
36删除: run: |
37删除: cat << EOF | tee /tmp/release-note.txt
38删除: #### Changes
39删除: (To be documented)
40删除:
41删除: #### Install
42删除: \`\`\`
43删除: curl -o sshocker --fail -L https://github.com/${{ github.repository }}/releases/download/${tag}/sshocker-\$(uname -s)-\$(uname -m)
44删除: chmod +x sshocker
45删除: \`\`\`
46删除:
47删除: #### About the binaries
48删除: The binaries were built automatically on GitHub Actions.
49删除: See the log to verify SHA256SUMS.
50删除: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
51删除: EOF
52删除: - name: "Create release"
53删除: working-directory: go/src/github.com/lima-vm/sshocker
54删除: env:
55删除: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56删除: run: |
57删除: tag="${GITHUB_REF##*/}"
58删除: gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" ./bin/* /tmp/SHA256SUMS
删除third_party/sshocker/.gitignore+0 −1
@@ -1 +0,0 @@
1删除:/bin
删除third_party/sshocker/README.md+0 −71
@@ -1,71 +0,0 @@
1删除:# sshocker: ssh + reverse sshfs + port forwarder, in Docker-like CLI
2删除:
3删除:```console
4删除:$ sshocker -p 8080:80 -v .:/mnt/sshfs [email protected]
5删除:```
6删除:* Forward connections to the port 8080 on the client to the port 80 on `example.com`
7删除:* Mount the current directory on the client as `/mnt/sshfs` on `example.com`
8删除:
9删除:This is akin to `docker run -p 8080:80 -v $(pwd):/mnt IMAGE`, but `sshocker` is for remote hosts, not for containers.
10删除:
11删除:## Install
12删除:
13删除:Download from https://github.com/lima-vm/sshocker/releases .
14删除:
15删除:To download using curl:
16删除:```
17删除:curl -o sshocker --fail -L https://github.com/lima-vm/sshocker/releases/latest/download/sshocker-$(uname -s)-$(uname -m)
18删除:chmod +x sshocker
19删除:```
20删除:
21删除:To compile from source:
22删除:```console
23删除:make
24删除:sudo make install
25删除:```
26删除:
27删除:Tested on macOS client and Linux server. May not work on other environments, especially on Windows.
28删除:
29删除:To use reverse sshfs, `sshfs` needs to be installed on the server (not on the client):
30删除:
31删除:```console
32删除:$ ssh [email protected] -- sudo apt-get install -y sshfs
33删除:```
34删除:
35删除:## Usage
36删除:Global flags:
37删除:* `--debug=(true|false)` (default: `false`): debug mode
38删除:
39删除:### Subcommand: `run` (default)
40删除:sshocker's equivalent of `docker run`.
41删除:
42删除:e.g.
43删除:```console
44删除:$ sshocker run -p 8080:80 -v .:/mnt/sshfs [email protected]
45删除:```
46删除:
47删除:`run` can be omitted, e.g.
48删除:```console
49删除:$ sshocker -p 8080:80 -v .:/mnt/sshfs [email protected]
50删除:```
51删除:
52删除:Flags (similar to `docker run` flags):
53删除:* `-v LOCALDIR:REMOTEDIR[:ro]`: Mount a reverse SSHFS
54删除:* `-p [[LOCALIP:]LOCALPORT:]REMOTEPORT`: Expose a port
55删除:
56删除:SSH flags:
57删除:* `-F`, `--ssh-config=FILE`: specify SSH config file used for `ssh -F`
58删除:* `--ssh-persist=(true|false)` (default: `true`): enable ControlPersist
59删除:
60删除:SSHFS flags:
61删除:* `--sshfs-noempty` (default: `false`): enable sshfs nonempty
62删除:
63删除:SFTP server flags:
64删除:* `--driver=DRIVER` (default: `auto`): SFTP server driver. `builtin` (legacy) or `openssh-sftp-server` (robust and secure, recommended).
65删除: `openssh-sftp-server` is chosen by default when the OpenSSH SFTP Server binary is detected.
66删除:* `--openssh-sftp-server=BINARY`: OpenSSH SFTP Server binary.
67删除: Automatically detected when installed in well-known locations such as `/usr/libexec/sftp-server`.
68删除:
69删除:### Subcommand: `help`
70删除:Shows help
71删除:
新增ui/vendor/novnc/NOTICE.cage+6 −0看文件
@@ -0,0 +1,6 @@
1新增:noVNC is distributed under MPL-2.0. See LICENSE.txt and docs/LICENSE.MPL-2.0.
2新增:
3新增:The Cage workbench includes local changes for clipboard transfer, native input
4新增:method composition, frame retention during resize, and decoder cleanup.
5新增:The modified source is included in the application under licenses/novnc-source.
6新增:Other component licenses are included under docs/ and vendor/pako/LICENSE.
删除ui/vendor/novnc/README.cage.md+0 −6
@@ -1,6 +0,0 @@
1删除:# noVNC source used by the trusted workbench
2删除:
3删除:Upstream: https://github.com/novnc/noVNC/tree/v1.6.0
4删除:Release archive SHA-256: 5066103959ef4e9b10f37e5a148627360dd8414e4cf8a7db92bdbd022e728aaa
5删除:
6删除:Only core, vendor and license files are retained. This source is obtained from the official release, never copied from a mutable guest. The build copies it into `.generated/novnc` and applies `internal/cage/novnc-patch.py`, the same patch used by the legacy VM viewer. The patch serializes clipboard transfers and lets the workbench attach an editable keyboard target for host IME composition. Legacy viewers retain their canvas keyboard target. Modified RFB code retains its MPL-2.0 header; the complete modification source is shipped in this repository.
删除ui/vendor/novnc/vendor/pako/README.md+0 −6
@@ -1,6 +0,0 @@
1删除:This is an ES6-modules-compatible version of
2删除:https://github.com/nodeca/pako, based on pako version 1.0.3.
3删除:
4删除:It's more-or-less a direct translation of the original, with unused parts
5删除:removed, and the dynamic support for non-typed arrays removed (since ES6
6删除:modules don't work well with dynamic exports).
删除www/README.md+0 −28
@@ -1,28 +0,0 @@
1删除:# Cage 项目主页
2删除:
3删除:主页地址为 <https://lee-xeo.github.io/Claude-Cage/>,面向首次使用者介绍产品、公开安装包、开始使用步骤与使用边界。
4删除:
5删除:在本目录执行:
6删除:
7删除:```sh
8删除:npm ci
9删除:npm run dev # http://localhost:4822/Claude-Cage/
10删除:npm run check
11删除:npm run build # dist/
12删除:```
13删除:
14删除:默认中文入口与其他语言路由位于 `src/pages/`,共用 `src/components/CageHome.astro`。`src/i18n/cage.ts` 从根目录对应 README 提取正文,`src/i18n/languages.ts` 定义下拉框中的 15 种语言及界面短文案。样式位于 `src/styles/cage.css`,工作台截图位于 `public/`,README 共用素材位于根目录 `assets/`。`astro.config.mjs` 的 `site` 和 `base` 分别指定站点域名与项目子路径;内部链接、图片和重定向使用 `import.meta.env.BASE_URL`。自定义部署可通过 `SITE_URL` 和 `SITE_BASE` 覆盖。
15删除:
16删除:“下载应用”在所有语言中打开同一个三平台选择弹窗,列出 macOS、Windows、Linux 的系统要求、可用安装包、版本说明与安装指南。没有公开包的平台提供安装与构建说明。弹窗支持键盘操作、Esc、关闭按钮和点击背景关闭;禁用 JavaScript 时下载区仍提供平台链接。
17删除:
18删除:下载信息来自 `src/data/release.json`,表示可公开下载的版本,可以低于根目录 `VERSION` 所标记的开发版本。三平台附件统一放在 `v<版本>` Release。`downloadURL` 为 macOS 包,`windowsDownloadURL` 和 `linuxDownloadURL` 为同版本可选安装包;预发行条目的 Windows 未签名包通过 `windowsPreview` 保存下载信息,始终标注未签名,不进入签名安装包的自动更新入口。同步时核对安装包及配套源码摘要。从仓库根目录运行 `node www/scripts/sync-release.mjs`,即可从匿名 GitHub API 刷新公开版本;带 `--archive-directory` 时下载并核验三平台包。普通本地构建使用已保存的数据,不要求联网。
19删除:
20删除:GitHub Actions 在网站文件或 README 的普通推送与 PR 中检查和构建;公开 Release 发布或维护者手动运行时部署 GitHub Pages。Release 事件会先下载实际 macOS 安装包与对应 Mihomo 源码,验证摘要、Developer ID 签名、Apple 公证和 Gatekeeper,失败时不会部署这一轮网站。Windows、Linux 的发行验收由对应平台流程负责。发布操作见[公开发行与主页部署](../docs/public-releases.md)。
21删除:
22删除:根目录 README 是维护者确认产品措辞的来源。README 修改触发主页重新构建;发布工作流只刷新下载版本并读取现有译文,不自动生成翻译。中文主页为 `/`,其他语言使用 `/<语言代码>/`,语言范围与根目录 README 导航一致,不提供英语。语言选择器在控件下方悬浮展开链接列表,不改变正文位置。支持键盘展开、链接导航与 Esc 收起,禁用 JavaScript 时仍可展开和跳转。各语言使用独立 URL;阿拉伯语、波斯语、普什图语、达里语使用从右向左布局。网页正文直接复用对应 README 译文,结构调整时构建会提示维护者同步映射。
23删除:
24删除:GitHub Pages 是当前主页的发布目标,部署配置由仓库工作流维护。
25删除:
26删除:维护者明确授权 Windows 未签名公开预览后,可手动运行 `platform-preview.yml`,提供已经成功的三平台 CI run ID 并启用 `unsigned_windows`。流程从该次 CI 获取安装包,核对源码版本、原始摘要、配套源码和上传后的 GitHub digest,补充到已存在的 `v<版本>` 预发行条目,合并校验清单并记录各平台源码提交,随后调用官网验收与部署。流程不创建新 Release 或标签,日常推送不触发发布,现有 macOS 安装包不被覆盖。
27删除:
28删除:`public/install.sh` 仍被上游 `release.sh` 与安装器测试使用,保留用于 agent-vm 兼容流程,不作为 Cage 安装入口。