跳到主要内容

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

提交记录
修改scripts/test-windows-installation-files.ps1+7 −4看文件
@@ -118,12 +118,15 @@ function Test-InstallerTransaction {
118118 if (Test-Path $key) {
119119 if ((Get-ItemProperty $key).InstallLocation -ne $target) { throw 'NSIS fixture registration changed owner; retained for inspection.' }
120120 Run-Fixture (Join-Path $target 'Uninstall.exe') @('/S')
121删除: $deadline = [DateTime]::UtcNow.AddSeconds(20)
122删除: while ((Test-Path -LiteralPath $target) -and [DateTime]::UtcNow -lt $deadline) { Start-Sleep -Milliseconds 100 }
121新增: # NSIS can return from its bootstrapper while the TEMP worker is
122新增: # still running. Its helper removes the target before NSIS clears
123新增: # registration and shortcuts, so target disappearance is not done.
124新增: $deadline = [DateTime]::UtcNow.AddSeconds(120)
125新增: while (((Test-Path -LiteralPath $target) -or (Test-Path $key) -or (Test-Path -LiteralPath $desktop) -or (Test-Path -LiteralPath $menu)) -and [DateTime]::UtcNow -lt $deadline) { Start-Sleep -Milliseconds 100 }
123126 }
124127 }
125删除: Check (!(Test-Path $key) -and !(Test-Path -LiteralPath $desktop) -and !(Test-Path -LiteralPath $menu)) 'NSIS fixture left registry or shortcut changes.'
126删除: Check (!(Test-Path -LiteralPath $target)) 'NSIS fixture did not uninstall its owned files.'
128新增: $remaining = @{target = (Test-Path -LiteralPath $target); registration = (Test-Path $key); desktopShortcut = (Test-Path -LiteralPath $desktop); startMenu = (Test-Path -LiteralPath $menu)}
129新增: Check (!($remaining.Values -contains $true)) ('NSIS fixture did not finish uninstalling owned artifacts: ' + ($remaining | ConvertTo-Json -Compress))
127130 Write-Output 'PASS: production NSIS silently installed/uninstalled its text-only fixture through PowerShell 5.1 transactions; no application or VM was started.'
128131}
129132try {