Repository navigation
T-1246 T-1239⑤ Cry Bot InstaBox 云电脑:把工具/画面/快照接进服务端 - #65
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
操作者通过 --allow-credential-hit 放行以下凭据扫描命中(仅列位置): |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
操作者通过 --allow-credential-hit 放行以下凭据扫描命中(仅列位置): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
台账任务
台账任务:T-1246
改了什么
改了什么
接通服务端回合工具、VNC、快照路由与电脑面板;补齐缺钥匙禁选、设置保存后刷新、截图预览、快照等待预算、真实快照对象形状和 pt-br 的 bot 译法;修复配置测试隐式 any。文件清单与
git status --short --untracked-files=all一致,未提交 git:为什么
已有配置 schema、section 合并、加载及环境覆盖继续复用,并由真实入口验证保存、读回、广播和末四位脱敏。新增
wiring.ts统一机器缓存与凭据;单个智能体的普通/群聊回合绑定 工具,画面沿用vps/<botId>,服务端按机器编号区分连接,换机后旧连接失效。共用电脑、本地 VM、多屏保持原路径。快照 API 单次请求上限 30 秒,轮询按剩余时间缩短 wait;服务端路由留 700 秒、前端留 720 秒。创建快照的 operations/list 断言移至 restore 之前。入口为 15463/15515 行,电脑面板为 1774/1782 行。
测试命令与结果摘要
pnpm exec vitest run <文件> --maxWorkers=1:48 个相关文件最终全部通过,包含①–④全部 测试、server/index.test.ts(338)、server/config.test.ts(257)、server/bot-box/env.test.ts(11)、行数门禁及前端回归。完整逐文件命令见日志。CRYBOT_CDP_CHROME=/usr/bin/chromium,无浏览器用例跳过;桌面代理 HTTP 测试另连续 3 次通过(38)。pnpm exec tsc -p tsconfig.server.json、pnpm exec tsc -p tsconfig.json:最终均通过。pnpm exec oxlint --deny-warnings、node scripts/generate-locale.mjs --check、git diff --check:通过。完整输出(含修正前的 fixture/type-check 失败)见 verification.txt。
第 2 轮
改了什么(本轮文件清单,与
git status --short --untracked-files=all一致;未提交):为什么:快照变更与 VNC 启动复用 Boat/VPS 生命周期锁;快照复用普通回合、群聊、例行任务和控制占用检查,VNC 取锁后复查智能体及凭据。快照全流程共用 600 秒截止时间,单请求仍限 30 秒,覆盖查机、分页、轮询、正文读取与恢复后的桌面启动,并在断连时取消。回归覆盖双向并发、删机窗口及慢响应;box/vps 用例执行电脑工具并断言各自假后端收到命令。入口仍为 15463 行。
测试命令与结果摘要:
pnpm exec vitest run <文件> --maxWorkers=1:22 个文件逐个通过,含server/instabox/全部、server/index.test.ts、快照路由、Boat/env 与行数门禁;7 个 e2e 文件及桌面代理 HTTP 测试均连续 3 次通过,VNC 设置CRYBOT_CDP_CHROME=/usr/bin/chromium,浏览器用例实际执行。pnpm exec tsc -p tsconfig.server.json、pnpm exec tsc -p tsconfig.json、改动文件pnpm exec oxlint --deny-warnings、git diff --check:全部通过。第 3 轮
改了什么(未提交):
验收证据
审核、安全审查和测试结论见本 PR 检查状态及评论。
风险与回退
待补充风险;合并后可通过 revert 压缩提交回退。
🤖 Generated with Claude Code