test(desktop): await responsive state after native viewport reset
This commit is contained in:
@@ -62,3 +62,5 @@ DSH-purge源码位于`D:\Ai-project\REA逆向\dsh-purge-1.1.78-windows`;DeepSe
|
||||
当前Windows安装版与本机加密已完整交付,原实际范围见QA-1.15;1.16真实手机配对/审批/停止/恢复/撤销核心已通过,最终完整发行仍待验。尚未交付:OS沙箱、固定DeepSeek受控桥以外的引擎工程接入、未知WorkBuddy格式自动导入、多协议流式/多模态,以及稳定的全自主工程成功率。按上表逐项实现和验收,不用界面入口或夹具结果替代完成。
|
||||
|
||||
1.15交付回顾保留的体验改进:在不减少完整性核对的前提下研究安装/激活校验耗时和进度反馈,并补超长自定义安装路径的提前拒绝。当前正式安装与原数据核对已通过,以上优化尚未实现,不与1.16真实手机验收混计。
|
||||
|
||||
1.16收口后的下一具体方案见[1.17模型协议、流式与能力路由草案](PLAN-1.17.md)。先核对当前Provider/池/请求账本,再按实际协议增加能力登记、适配、流式中断和可解释选路;真实模型工程依用户已有配置选择单独验收,视觉/语音和自我迭代按前置顺序继续。
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
# 1.17 执行草案:模型协议、流式执行与能力路由
|
||||
|
||||
接续1.16手机伴随端。此文件只登记后续方案,不表示已实现或已开始产品变更;1.16最终独立发行和正式部署完成后,再从已验收的本地Git基线开具体分支。继续保持原Task/Run、工具结果、项目字节、审批和数据,按切片开发、验证、回顾并本地提交。
|
||||
|
||||
用户目标是让接入的多个模型在真实工程中稳定承担合适工作。当前基础是兼容Chat协议的多连接、轮询/权重、Run粘连、并发租约、冷却及请求账本,另有受控DeepSeek引擎桥;这些不证明所有品牌的原生协议、流式、视觉或语音都可用。WorkBuddy未知配置格式、未知登录态导入及真实Purge收益仍须独立核验。
|
||||
|
||||
## 本阶段应交付的成果
|
||||
|
||||
用户能看到每条连接的实际协议和已验证能力,选择适合工程任务的模型或池;不支持工具调用的成员不会接到需要工具的任务。请求超时、429、认证失败、流中断和取消各自有明确状态与原始依据,已开始执行的工具不因换线路而再次执行。桌面和手机继续显示同一Run的实际状态及已完成结果。
|
||||
|
||||
先审查现有Provider、ModelHub、受控引擎桥、连接导入和请求账本,固定扩展位置与向后兼容契约;再依据对应官方协议文档和指定版本逐项实现。协议名称、上游宣称或一次普通文本应答均不能单独证明工具、多模态或中断能力。
|
||||
|
||||
| 切片 | 实现范围 | 可核验的结束条件 |
|
||||
| --- | --- | --- |
|
||||
| A:协议与能力登记 | 固定连接协议、模型标识、文本/工具/流式/附件声明与实际检测结果,保留来源及检测版本 | 旧连接可读;声明、已测、不支持、未知分别显示;检测不用正式任务数据,不暗中发付费请求 |
|
||||
| B:协议适配 | 先增加一种经过文档与样本核对的实际协议,统一请求/应答、工具参数、错误和原用量映射 | 同一受控Node任务经过真实Provider链路完成;保留工具ID/结果配对,未知用量不补造;原兼容协议回归保持 |
|
||||
| C:流式与停止 | 增量文本/工具片段、请求身份、序列、断开、明确取消、迟到结果与原账本 | 半截工具参数不执行;断网/取消不重复调度;已派发而结果未知仍保留unknown;实际HTTP进程与原Task/Run对应 |
|
||||
| D:按能力选池 | 在现有租约/冷却/轮询基础上增加任务所需能力筛选、可解释拒绝和有界切换 | 不兼容成员不被选中;401/429/超时分开记账;完成工具不因换成员重放;池耗尽准确反馈,不承诺上游永不中断 |
|
||||
| E:真实任务界面 | 协议/能力配置、检测范围、当前选路、流状态、中断核对和失败原因;沿用已有品牌与中文任务布局 | 用户可完成添加、检测、禁用、入池、执行、停止与核对全流程;实际桌面/390px/iPhone观察状态与原事件一致 |
|
||||
| F:工程与发行回顾 | 固定Node/React/Python样本、故障注入、完整历史回归、独立源码/便携/安装与保留状态升级 | 原失败保留;模型协议、夹具执行、真实推理收益分别报告;版本与源码/工件/实际部署身份可追溯 |
|
||||
|
||||
## 真实模型与评测边界
|
||||
|
||||
用户此前选择先完成本地验收、稍后配置连接,该选择继续有效。开发和协议回归使用自有loopback夹具,不读取已有客户端未知登录态,不抽取模型Key;实际模型工程与收益对照等待用户在工作台配置连接并按已有执行权限运行。固定回答夹具可以证明协议、账本和工具链路,不能证明模型能自主解决工程需求。未有真实样本的协议/能力要明确保留未验状态。
|
||||
|
||||
评测首先固定输入工程、需求、允许范围与外部独立检查,保存首次失败、修复、检查、浏览器交互、本地Git及人工介入;比较结果以成功率、错误修改、耗时和原已报告用量为依据。不要只增加测试数量而缺少实际工程结果。
|
||||
|
||||
## 后续分层
|
||||
|
||||
视觉、语音和附件在协议/能力/取消契约明确后,作为独立切片接入,分别处理项目授权、文件类型/大小、保留期限、缓存失效和实际样本。通用电脑操作、未知格式自动导入、其它代理引擎和OS沙箱另设具体版本及验收条件。自我迭代最后建立在独立分支、固定工程评测、多模型复核与可回退发行之上;候选失败不能修改正在运行的版本。
|
||||
|
||||
安装校验耗时、进度反馈和超长自定义安装路径预检继续作为已有体验欠项登记;性能优化必须保留完整性与数据核对,不以减少校验掩盖延迟。
|
||||
@@ -53,3 +53,5 @@
|
||||
最终候选`20261031110231367`已创建,源码13513/便携13229文件的ZIP CRC、每文件SHA、原目录与清单核对通过;完整安装器与同载荷独立QA AppId编译通过。来源`0cc8b4c`,378份输入(含mobile.html)、22构建、40基准固定。解压源码同卷转为短物理目录`D:\AWQA16\s-b475fc72`,逐文件核对13513个原字节;离线重建、REA/SDK/Edge/受控工程与7组手机专项通过,完整519项及桌面后续仍运行中,未记整轮成功。实际观察独立重建源码的390px报告与手机管理截图:原SHA提示、长路径换行、窄屏模态滚动均可读;属于Edge中继渲染观察,原生iPhone证据仍为上述用户反馈及原宿主结果。
|
||||
|
||||
实机修正候选的1958文件与最终包逐字节相同:1957份程序/页面/Node/npm/公共资源对应完整portable,根package.json仅是QA source版本元数据、与最终source一致,portable按原MANIFEST识别版本;未向最终发行补文件。378冻结输入Git追溯为354份原字节、19份仅声明CRLF/LF及5份由原生成器精确派生;131份依赖许可、133份现有许可和完整notices与两包保持。上游许可原行尾空格保留,Git只对该原文范围作空白检查例外,产品/其它文档守卫不放宽。
|
||||
|
||||
首个最终候选的完整519项已结束:519通过,0失败/取消/跳过;实际窗口7项、原生UI9组通过。随后三工程在Python完成父10项检查后、第14/16节点因capture收尾等待「关闭检视区」超时而失败,整轮独立source仍为失败;[27份原字节现场](companion-f-first-source-failure/manifest.json)保留。实际HTML/PNG显示1440px正常宽屏、无模态与页面错误;QA将窗口390→1440后未等待尺寸和React响应式状态,isVisible与click之间按钮名称变化。只补QA等待尺寸/窄屏按钮隐藏,不改产品;新候选仍须完成全套独立源码及发行门槛,不把旧原TAP改写为整轮成功。
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
* -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
*.txt binary
|
||||
*.tap binary
|
||||
+1975
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"success": false,
|
||||
"phase": "source",
|
||||
"startedAt": "2026-10-31T11:09:06.081Z",
|
||||
"finishedAt": "2026-10-31T11:38:29.258Z",
|
||||
"exitCode": 1,
|
||||
"logPath": ".qa/companion-final-source.log",
|
||||
"logBytes": 3977,
|
||||
"logSha256": "a97f094cb2e15c92a5fb8e62015bedfc8db03fe3287cf602471c5c1759a87f61",
|
||||
"pointer": {
|
||||
"path": ".qa/source-package-validation.json",
|
||||
"sha256": "258b49771b221d932c2becb5b631675c77d390db83822dca30366feae4a11cf0"
|
||||
},
|
||||
"unchangedInputs": true,
|
||||
"codeCommit": "0cc8b4c1709a6c5c1f13001958fd2abbbe900126",
|
||||
"release": {
|
||||
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-win-x64-20261031110231367",
|
||||
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-source-20261031110231367",
|
||||
"setupSha256": "fc743f6cc4fc342b3d784dc18c33fda8c037f1de2f9e04c98f412b840bf3bba3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{"sourceRoot":"D:\\AWQA16\\s-b475fc72","directory":"D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d","nodeVersion":"v24.22.1","python":{"version":"3.10.11","pytest":"8.4.2","path":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\dev-task-plans\\.qa\\python-3.10\\Scripts\\python.exe"}}
|
||||
Source package: install
|
||||
Source package: build
|
||||
Source package: contained REA
|
||||
Source package: native DeepSeek SDK
|
||||
Source package: contained browser runtime
|
||||
Source package: compiled controlled-engine delivery
|
||||
Source package: contained companion gateway and UI
|
||||
Source package: tests
|
||||
Source package: actual contained Electron window
|
||||
Source package: actual contained Electron engine UI
|
||||
Source package: actual contained Electron engineering projects
|
||||
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-source-package.mjs:62
|
||||
code === 0 && !timedOut ? resolve(tail) : reject(new Error(stage + (timedOut ? ' timed out after 30 minutes' : ' failed (' + code + ')') + ': ' + tail));
|
||||
^
|
||||
|
||||
Error: actual contained Electron engineering projects failed (1): PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
PASS node: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS node: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS react: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS react: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS react: separately reviewed parent merge passes all 9 functional tests and actual build/compile
|
||||
PASS react: real Edge desktop/390px filtering, trimmed search, one-task toggle and complete totals pass
|
||||
PASS react: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS react: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS python: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS python: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS python: separately reviewed parent merge passes all 10 functional tests and actual build/compile
|
||||
EVIDENCE D:\AWQA16\s-b475fc72\.qa\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f
|
||||
{"success":false,"cases":14,"directory":"D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f","realModelRequests":0,"error":"locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('button', { name: '关闭检视区', exact: true })\u001b[22m\n\n at closeInspector (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:36:169)\n at async Object.capture (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:101:5)\n at async runSample (D:\\AWQA16\\s-b475fc72\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/AWQA16/s-b475fc72/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
|
||||
at Array.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-source-package.mjs:62:56)
|
||||
at callFinishedCallbacks (node:internal/streams/writable:984:25)
|
||||
at finish (node:internal/streams/writable:955:3)
|
||||
at node:internal/streams/writable:938:13
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
|
||||
|
||||
Node.js v24.22.1
|
||||
+2213
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-win-x64-20261031110231367",
|
||||
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-source-20261031110231367",
|
||||
"portable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-win-x64-20261031110231367.zip",
|
||||
"bytes": 343794043,
|
||||
"sha256": "9ede945a1ff8c3b7ab9f4e3577ac0e2f03500dc52fbeef8c6aa379a2def5e4ba"
|
||||
},
|
||||
"source": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-source-20261031110231367.zip",
|
||||
"bytes": 343907681,
|
||||
"sha256": "d8c0b6b7fa2b8a1c2248f89d7ae5417782bbd2de23ac12a881dc334f5cfc9b8f"
|
||||
},
|
||||
"installer": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-win-x64-20261031110231367-Setup.exe",
|
||||
"bytes": 311633003,
|
||||
"sha256": "fc743f6cc4fc342b3d784dc18c33fda8c037f1de2f9e04c98f412b840bf3bba3",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-f63f7175-f297-4faa-a6ca-81920e548a6b\\installer.iss",
|
||||
"version": "1.16.0",
|
||||
"candidateDirectory": "Agent-Workbench-1.16.0-win-x64-20261031110231367",
|
||||
"qaFixture": null
|
||||
},
|
||||
"desktopRuntime": {
|
||||
"version": "45.2.0",
|
||||
"sha256": "010ea51bfb528c8143513439aa93fb40754403daa2023f9decd4517da71706ab",
|
||||
"bytes": 249810432,
|
||||
"executable": "desktop/AgentWorkbench.exe",
|
||||
"scope": "Fixed original Windows Electron runtime, full license texts, isolated application loader and native bootstrap; original executable hash unchanged."
|
||||
},
|
||||
"nativeLauncher": {
|
||||
"bytes": 12288,
|
||||
"sha256": "e3d31cb7ce5009d3ca5a96d04dc16b1add0bd1f5cde7e1304461de6713d37463",
|
||||
"inputs": {
|
||||
"compiler": "46809206887326d2d24db1eff1f3064de972c3451abe766b49111450a5e08e00",
|
||||
"source": "1c8e7d7ee5c383897bec48e9aadb8051b47c09686f74bbf34e0b6b695cd01ae5",
|
||||
"icon": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
|
||||
},
|
||||
"compiler": "Windows .NET Framework C# compiler; source-bound cached original output, no deterministic-build claim."
|
||||
},
|
||||
"nodeVersion": "v24.22.1",
|
||||
"reaRuntime": {
|
||||
"version": "6.8.0",
|
||||
"protocolVersion": "2025-03-26",
|
||||
"packages": 149,
|
||||
"files": 8413,
|
||||
"bytes": 142395402,
|
||||
"lockSha256": "687fb3fa3089a12f239dd5e87d9fa07df55a87df4935931d495a92600a1b0f6e"
|
||||
},
|
||||
"portableFiles": 13229,
|
||||
"licenseTexts": 133,
|
||||
"browserRuntime": {
|
||||
"playwrightVersion": "1.64.1",
|
||||
"packages": [
|
||||
{
|
||||
"name": "playwright",
|
||||
"version": "1.64.1",
|
||||
"files": 60
|
||||
},
|
||||
{
|
||||
"name": "playwright-core",
|
||||
"version": "1.64.1",
|
||||
"files": 115
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-installer-qa-bf672069-9dc0-4681-97aa-4ad1827e1c77.exe",
|
||||
"bytes": 311633063,
|
||||
"sha256": "0fbf0a2d5dc5c95da05c47187951bc75cc768f18affa77f20c719a9bc892178b",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-d7ebd98d-a35d-42d0-8484-a6d8180c88ae\\installer.iss",
|
||||
"version": "1.16.0",
|
||||
"candidateDirectory": "Agent-Workbench-1.16.0-win-x64-20261031110231367",
|
||||
"qaFixture": {
|
||||
"appId": "bf672069-9dc0-4681-97aa-4ad1827e1c77",
|
||||
"fault": "none"
|
||||
},
|
||||
"productSetup": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.16.0-win-x64-20261031110231367-Setup.exe",
|
||||
"bytes": 311633003,
|
||||
"sha256": "fc743f6cc4fc342b3d784dc18c33fda8c037f1de2f9e04c98f412b840bf3bba3",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-f63f7175-f297-4faa-a6ca-81920e548a6b\\installer.iss",
|
||||
"version": "1.16.0",
|
||||
"candidateDirectory": "Agent-Workbench-1.16.0-win-x64-20261031110231367",
|
||||
"qaFixture": null
|
||||
},
|
||||
"samePayloadManifestSha256": "01d48607a35700ed5c843e2d4bac4731561061f39b697b03b310376a3b4a8405",
|
||||
"sourceComparison": "Only isolated QA AppId/group and output destination/name differ; entire product payload and installation behavior are exact. Product setup will separately stage the existing formal installation."
|
||||
}
|
||||
@@ -0,0 +1,280 @@
|
||||
{
|
||||
"success": true,
|
||||
"at": "2026-10-31T11:19:51.299Z",
|
||||
"codeCommit": "0cc8b4c1709a6c5c1f13001958fd2abbbe900126",
|
||||
"inputFiles": 378,
|
||||
"exactInputs": 354,
|
||||
"normalized": [
|
||||
{
|
||||
"path": "package-lock.json",
|
||||
"bytes": 107932,
|
||||
"sha256": "f65f08e62c0aa815f068b615c6f1ee396ad287745519eada7b45d0ec8bab354b",
|
||||
"gitBytes": 104789,
|
||||
"gitSha256": "a6970d796564a1fa1bdfb6d57cf855f8d7421e85facf2769f9da18ac8464bad6",
|
||||
"attributes": [
|
||||
"package-lock.json: text: auto",
|
||||
"package-lock.json: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "package.json",
|
||||
"bytes": 3162,
|
||||
"sha256": "bcc2685fd554ffa4573f9d2709d2aa76bfc086907fd91bc786cd3e6767b3deb2",
|
||||
"gitBytes": 3096,
|
||||
"gitSha256": "83b1df152c0554b77a9d4aba7e6ee71cb7da43baf8f4c38b264664edd1a608cc",
|
||||
"attributes": [
|
||||
"package.json: text: auto",
|
||||
"package.json: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/package.mjs",
|
||||
"bytes": 11486,
|
||||
"sha256": "a083e2b6058c35641de30ceee3f8d4226afccbd7569f7d9cbd9d3ca216eadbfe",
|
||||
"gitBytes": 11349,
|
||||
"gitSha256": "bb34f3de1c67ce6411d7ff9fdbe304da1b2f269a337957b98d6a407b94b38a2d",
|
||||
"attributes": [
|
||||
"scripts/package.mjs: text: auto",
|
||||
"scripts/package.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/qa-evidence.mjs",
|
||||
"bytes": 812,
|
||||
"sha256": "95287a84ae459e83e3206432096c8011aace94742b4e11666417de1a91a1d3ce",
|
||||
"gitBytes": 795,
|
||||
"gitSha256": "33ce3997f4983e6ffe85fd69a06cda949783946f27363c55bafa1f7caf8594e9",
|
||||
"attributes": [
|
||||
"scripts/qa-evidence.mjs: text: auto",
|
||||
"scripts/qa-evidence.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/upgrade-running.mjs",
|
||||
"bytes": 13525,
|
||||
"sha256": "fea70bf9a90647287cfacd9999b2c74f6413676dc4eb16f07650600b0c64336b",
|
||||
"gitBytes": 13359,
|
||||
"gitSha256": "5f1237abffb44376124400a18f1d64fd394ee27dfda7163f4070e331ef6df834",
|
||||
"attributes": [
|
||||
"scripts/upgrade-running.mjs: text: auto",
|
||||
"scripts/upgrade-running.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-all-ui.mjs",
|
||||
"bytes": 10134,
|
||||
"sha256": "9a2d7d8e2364a349769d1cc821fd811fd82734bbbeaa96065f7bcdf2aa98f5a1",
|
||||
"gitBytes": 10028,
|
||||
"gitSha256": "04d2cd7d7899bcfede665234d28d979586e0a5e34105c635329f2dd5c53e9b2d",
|
||||
"attributes": [
|
||||
"scripts/verify-all-ui.mjs: text: auto",
|
||||
"scripts/verify-all-ui.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-change-sets-ui.mjs",
|
||||
"bytes": 16297,
|
||||
"sha256": "f80951a6ee7a384055c858f9d574fc79d683eb21f3d22ec7a55ed4574ae5d30f",
|
||||
"gitBytes": 16156,
|
||||
"gitSha256": "2f7910bd4acfc4fbfaf6f2df77d69ea5e68fbea1c6f930dff004f43687231d8d",
|
||||
"attributes": [
|
||||
"scripts/verify-change-sets-ui.mjs: text: auto",
|
||||
"scripts/verify-change-sets-ui.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-context-ui.mjs",
|
||||
"bytes": 18681,
|
||||
"sha256": "5d6acb44ce4f0cb16e3b7ec41ba790890a763aca361b68576b30ff45be730654",
|
||||
"gitBytes": 18485,
|
||||
"gitSha256": "80c18e78d36185c24581dd44f193854e0aa1cc9b169b35f2cf79b9fc5f13ca90",
|
||||
"attributes": [
|
||||
"scripts/verify-context-ui.mjs: text: auto",
|
||||
"scripts/verify-context-ui.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-controlled-release.mjs",
|
||||
"bytes": 21822,
|
||||
"sha256": "8f923aad7e76ce4585d167f5f9833710eea36327499b27db724a51e0feed2e0a",
|
||||
"gitBytes": 21623,
|
||||
"gitSha256": "59d9a6a50491a058e98ed684629ac0af0b7c6a4bb8d4533469eb880cfb78f6e7",
|
||||
"attributes": [
|
||||
"scripts/verify-controlled-release.mjs: text: auto",
|
||||
"scripts/verify-controlled-release.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-release.mjs",
|
||||
"bytes": 17424,
|
||||
"sha256": "bc6d4c6346b89a67f50df4c94f99634e06d5eae00009f515b0a1ef65ed729845",
|
||||
"gitBytes": 17242,
|
||||
"gitSha256": "26e304f5eeccb020df63780b5c9c7d22be0b2220b0a3cb0f39e625127f0dce7f",
|
||||
"attributes": [
|
||||
"scripts/verify-release.mjs: text: auto",
|
||||
"scripts/verify-release.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-source-package.mjs",
|
||||
"bytes": 14568,
|
||||
"sha256": "5ba21ee76113ba6aa616ba64144725ae6e4193c2ab5f787fe1f96dbf419f2e45",
|
||||
"gitBytes": 14413,
|
||||
"gitSha256": "e1fe72a91a6d10064c436f90aee256c075bcd5e8d2e2b09bef359552835f030b",
|
||||
"attributes": [
|
||||
"scripts/verify-source-package.mjs: text: auto",
|
||||
"scripts/verify-source-package.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-ui.mjs",
|
||||
"bytes": 18880,
|
||||
"sha256": "d9e7b3e8eb0ff80168acfd5d320685db6d4e1f53827cac4b96cffd5e54c758b6",
|
||||
"gitBytes": 18623,
|
||||
"gitSha256": "cd57dd67aada66f667a4e62b7a8f76a79d3c09acd7ba7c658b89e6d38dc6be9f",
|
||||
"attributes": [
|
||||
"scripts/verify-ui.mjs: text: auto",
|
||||
"scripts/verify-ui.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "scripts/verify-workers-ui.mjs",
|
||||
"bytes": 18894,
|
||||
"sha256": "927903362bf7d00ad1ab6dda8b5ddd7564852c656874ff5524283f4d35c622cd",
|
||||
"gitBytes": 18747,
|
||||
"gitSha256": "3f2599d4d52f998204d5396e96c2fe2da652127a64739c64c8b986a5d14f0aad",
|
||||
"attributes": [
|
||||
"scripts/verify-workers-ui.mjs: text: auto",
|
||||
"scripts/verify-workers-ui.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "src/client/SkillCenter.tsx",
|
||||
"bytes": 9303,
|
||||
"sha256": "b227ffdccf1d90ac969f1e4e2a56c592b7c9eac13746bf0c90ee9d9e702e9f10",
|
||||
"gitBytes": 9240,
|
||||
"gitSha256": "de7a4426aef468a73a9522da9883592ab0cc29a1f2b3786b764cd51a304347b2",
|
||||
"attributes": [
|
||||
"src/client/SkillCenter.tsx: text: auto",
|
||||
"src/client/SkillCenter.tsx: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "src/client/mobile/MobileApp.tsx",
|
||||
"bytes": 23955,
|
||||
"sha256": "bd550ee31b58a322e904b0a42852fe8da383a6c5d776c4b7d452ea09962d82ed",
|
||||
"gitBytes": 23824,
|
||||
"gitSha256": "d941cd49b9f0a51eadb3242240b1ca071b0583e6c75c11863341d5aac9638621",
|
||||
"attributes": [
|
||||
"src/client/mobile/MobileApp.tsx: text: auto",
|
||||
"src/client/mobile/MobileApp.tsx: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "src/client/mobile/mobile.css",
|
||||
"bytes": 11111,
|
||||
"sha256": "807ce41a2a55ca41626fa26cbe3c968dfe7d750cf684df2e6631663e1135ad1e",
|
||||
"gitBytes": 11107,
|
||||
"gitSha256": "1a37b259ed6872f4a33e8109cd860ea4f8911a4b5f4949eefd8a7a1c7bfd0d25",
|
||||
"attributes": [
|
||||
"src/client/mobile/mobile.css: text: auto",
|
||||
"src/client/mobile/mobile.css: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "src/client/styles.css",
|
||||
"bytes": 39993,
|
||||
"sha256": "ea11c2f013247217ef689db321f642e54f364179082fa9cc53028040592aacb5",
|
||||
"gitBytes": 39969,
|
||||
"gitSha256": "92ca836ac4ece22a1b4e0eb8599ea571ac987903ff8525316419780056051528",
|
||||
"attributes": [
|
||||
"src/client/styles.css: text: auto",
|
||||
"src/client/styles.css: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "src/server/diagnostics.mjs",
|
||||
"bytes": 8093,
|
||||
"sha256": "cc3c71d26e221300633106dd310c37fedf4208a75e0c95650f13c89f58d2191e",
|
||||
"gitBytes": 7965,
|
||||
"gitSha256": "408ea2b410b1dc14504176ed360ace676e72c43b9ca814106f8c4466a85b08ab",
|
||||
"attributes": [
|
||||
"src/server/diagnostics.mjs: text: auto",
|
||||
"src/server/diagnostics.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
},
|
||||
{
|
||||
"path": "tests/skills.test.mjs",
|
||||
"bytes": 17628,
|
||||
"sha256": "c7228c190337bb5f2b9ab5a85ad34b78fd03541854e83197d7c4d2506bb3c6c6",
|
||||
"gitBytes": 17438,
|
||||
"gitSha256": "977e987ccdeab5bf07fd3dd1788d8ba866a3dc3715c9dd947982a9abfbab7e06",
|
||||
"attributes": [
|
||||
"tests/skills.test.mjs: text: auto",
|
||||
"tests/skills.test.mjs: eol: lf"
|
||||
],
|
||||
"scope": "Only repository-declared CRLF/LF normalization; full normalized buffer matches committed blob."
|
||||
}
|
||||
],
|
||||
"generated": [
|
||||
{
|
||||
"path": "examples/delivery-report/dist/cli.mjs",
|
||||
"bytes": 818,
|
||||
"sha256": "b8223dd1c0a98b3b7a0cd716db0ae053a2ca17fbd8272b005adcedd3ce5f7a69",
|
||||
"source": "examples/delivery-report/src/cli.mjs",
|
||||
"generator": "examples/delivery-report/scripts/build.mjs",
|
||||
"generatorSha256": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/normalize.mjs",
|
||||
"bytes": 1254,
|
||||
"sha256": "57eb47b09913b131982a14c276ba5292aba4c94e0f475c97955221f6a7b7cdcd",
|
||||
"source": "examples/delivery-report/src/normalize.mjs",
|
||||
"generator": "examples/delivery-report/scripts/build.mjs",
|
||||
"generatorSha256": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/package.json",
|
||||
"bytes": 18,
|
||||
"sha256": "1239d4d885dcad42201a27ed9324f8f0f760b78700d8db9ced39a511cffe7eae",
|
||||
"source": null,
|
||||
"generator": "examples/delivery-report/scripts/build.mjs",
|
||||
"generatorSha256": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/render.mjs",
|
||||
"bytes": 375,
|
||||
"sha256": "d449524d731a55ef51d0143f38ee8b73db56363c78babc385fa58df7f2a542f0",
|
||||
"source": "examples/delivery-report/src/render.mjs",
|
||||
"generator": "examples/delivery-report/scripts/build.mjs",
|
||||
"generatorSha256": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/summary.mjs",
|
||||
"bytes": 427,
|
||||
"sha256": "bf7ada9e5dbca167df2b9a5306c1d9399b4a658fb0777c73812856687ad0c5ef",
|
||||
"source": "examples/delivery-report/src/summary.mjs",
|
||||
"generator": "examples/delivery-report/scripts/build.mjs",
|
||||
"generatorSha256": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302"
|
||||
}
|
||||
],
|
||||
"scope": "Every frozen source/QA/build input tied to the committed source or exact generated example derivation; unchanged build bytes independently recorded."
|
||||
}
|
||||
+11759
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import http from 'node:http';
|
||||
import { randomUUID, createHash } from 'node:crypto';
|
||||
import { _electron, expect } from 'playwright/test';
|
||||
import { createRequestHandler, createSessionPublisher } from '../src/server/app.mjs';
|
||||
import { hostAuthority } from '../src/core/desktop/host-authority.mjs';
|
||||
import { desktopExecutableIdentity } from '../src/core/desktop/app-installation.mjs';
|
||||
import { projectEnvironment } from '../src/core/process-environment.mjs';
|
||||
|
||||
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
export async function desktopProjectQa({ store, provider, runtime, sample, kind }) {
|
||||
const appRoot = path.resolve(process.env.AGENT_WORKBENCH_DESKTOP_QA_APP_ROOT || process.cwd()), server = http.createServer(), clients = new Set(), token = randomUUID();
|
||||
runtime.appDirectory = appRoot; store.claimRuntime(); store.on('update', createSessionPublisher(clients));
|
||||
server.on('request', createRequestHandler({ appDirectory: appRoot, server, store, provider, runtime, token, clients, started: Date.now(), getPort: () => server.address().port, shutdown: () => {} }));
|
||||
await new Promise(resolve => server.listen(0, '127.0.0.1', resolve));
|
||||
const authority = hostAuthority({ appDirectory: appRoot, server, store, provider, runtime }); authority.initialize();
|
||||
let application, page, selected; const events = [], errors = [], screenshots = [];
|
||||
async function launch() {
|
||||
const executable = desktopExecutableIdentity(appRoot).path, packaged = executable.toLowerCase().endsWith('agentworkbench.exe');
|
||||
application = await _electron.launch({ executablePath: executable,
|
||||
args: [...(packaged ? [] : [path.join(appRoot, 'dist-desktop/main.cjs')]), '--app-root', appRoot, '--data-root', store.directory, '--node', process.execPath, '--port', String(server.address().port), '--hidden-window'],
|
||||
cwd: appRoot, env: projectEnvironment(), timeout: 60000 });
|
||||
page = await application.firstWindow(); page.on('pageerror', error => errors.push(error.message));
|
||||
await page.locator('.connection.connected').waitFor({ timeout: 30000 });
|
||||
if (selected) await select(selected);
|
||||
}
|
||||
async function select(session) {
|
||||
selected = session;
|
||||
const project = page.getByRole('combobox', { name: '当前项目', exact: true });
|
||||
if (!await project.isVisible()) await page.getByRole('button', { name: '展开项目栏', exact: true }).click();
|
||||
await project.selectOption(session.projectId);
|
||||
await expect.poll(() => page.evaluate(() => localStorage.getItem('awb-session')), { timeout: 20000 }).toBe(session.id);
|
||||
}
|
||||
async function closeInspector() { const close = page.getByRole('button', { name: '关闭检视区', exact: true }); if (await close.isVisible().catch(() => false)) await close.click(); }
|
||||
async function review(session, ids) {
|
||||
await select(session); await closeInspector();
|
||||
const prepared = [...store.core.change_set.values()].find(value => value.sessionId === session.id && value.status === 'prepared' && JSON.stringify(value.files.map(file => file.changeId).sort()) === JSON.stringify(ids.slice().sort()));
|
||||
if (prepared) {
|
||||
await page.getByRole('button', { name: '隔离协作', exact: true }).click();
|
||||
await page.getByRole('button', { name: '打开父工程变更集审查', exact: true }).click();
|
||||
await page.getByRole('button', { name: '审查变更集', exact: true }).click();
|
||||
} else {
|
||||
if (await page.getByRole('button', { name: '查看改动', exact: true }).isVisible()) await page.getByRole('button', { name: '查看改动', exact: true }).click();
|
||||
else await page.locator('.inspector-tabs').getByRole('button', { name: /^改动/ }).click();
|
||||
await page.getByRole('button', { name: '组合审查', exact: true }).click();
|
||||
await page.getByRole('dialog', { name: '选择要一起审查的提案', exact: true }).getByRole('button', { name: '封存审查范围', exact: true }).click();
|
||||
}
|
||||
const dialog = page.getByRole('dialog', { name: '多文件变更集审查', exact: true });
|
||||
const confirm = dialog.getByRole('button', { name: '确认应用全部 ' + ids.length + ' 项', exact: true }); await confirm.waitFor();
|
||||
const matching = [...store.core.change_set.values()].filter(value => value.sessionId === session.id && value.status !== 'completed' && JSON.stringify(value.files.map(file => file.changeId).sort()) === JSON.stringify(ids.slice().sort()));
|
||||
assert.equal(matching.length, 1); const set = matching[0];
|
||||
await confirm.click(); await expect(dialog).toContainText('全部应用完成'); await page.keyboard.press('Escape');
|
||||
assert.equal(set.status, 'completed'); events.push({ action: 'actual-desktop-file-review', taskId: session.taskId, changeSetId: set.id, fingerprint: set.fingerprint, paths: set.files.map(value => value.path) }); return set;
|
||||
}
|
||||
async function approve(session, approval) {
|
||||
await select(session); await closeInspector();
|
||||
const button = page.getByRole('button', { name: '确认执行', exact: true }); await button.waitFor({ timeout: 20000 });
|
||||
assert.equal(session.approvals.filter(value => value.status === 'pending').length, 1); assert.equal(session.approvals.find(value => value.status === 'pending').id, approval.id);
|
||||
await button.click(); await expect.poll(() => approval.status).toBe('approved'); events.push({ action: 'actual-desktop-original-approval', approvalId: approval.id, taskId: session.taskId });
|
||||
}
|
||||
async function cycle(session, label) {
|
||||
await select(session); const identity = authority.identity(), eventSeq = session.eventSeq, taskId = session.taskId, runId = session.runId;
|
||||
const originalEvents = () => {
|
||||
const events = []; let cursor = 0;
|
||||
while (cursor < eventSeq) {
|
||||
const chunk = store.eventsAfter(cursor, { sessionId: session.id, limit: 500 });
|
||||
events.push(...chunk.events.filter(value => value.seq <= eventSeq));
|
||||
if (!chunk.hasMore || chunk.nextCursor >= eventSeq) break;
|
||||
assert.ok(chunk.nextCursor > cursor); cursor = chunk.nextCursor;
|
||||
}
|
||||
return events;
|
||||
};
|
||||
const retainedEvents = originalEvents(); assert.equal(retainedEvents.at(-1).seq, eventSeq);
|
||||
const completed = () => [...store.core.tool.values()].filter(value => value.sessionId === session.id && value.state === 'completed');
|
||||
const prior = hash(Buffer.from(JSON.stringify(completed()))), approvals = session.approvals.map(value => ({ id: value.id, status: value.status }));
|
||||
await application.close(); application = null;
|
||||
assert.equal(runtime.isActive(session.id), true); assert.equal(authority.identity().instanceId, identity.instanceId); assert.equal(process.pid, identity.pid);
|
||||
await launch(); assert.equal(session.taskId, taskId); assert.equal(session.runId, runId); assert.ok(session.eventSeq >= eventSeq); assert.deepEqual(originalEvents(), retainedEvents);
|
||||
const replay = await page.evaluate(async ({ sessionId, cursor }) => {
|
||||
const bootstrap = await (await fetch('/api/bootstrap')).json();
|
||||
const response = await fetch('/api/events/history?session=' + encodeURIComponent(sessionId) + '&after=' + cursor + '&limit=500', { headers: { 'x-workbench-token': bootstrap.token } });
|
||||
if (!response.ok) throw Error('Original desktop event replay failed (' + response.status + ')'); return response.json();
|
||||
}, { sessionId: session.id, cursor: eventSeq - 1 });
|
||||
assert.deepEqual(replay.events[0], retainedEvents.at(-1)); assert.ok(replay.events.every((value, index) => !index || value.seq > replay.events[index - 1].seq));
|
||||
assert.equal(hash(Buffer.from(JSON.stringify(completed()))), prior); assert.deepEqual(session.approvals.map(value => ({ id: value.id, status: value.status })), approvals);
|
||||
events.push({ action: label, hostPid: process.pid, taskId, runId, eventSeq, reopenedEventSeq: session.eventSeq, replayCursor: replay.nextCursor,
|
||||
retainedEvents: retainedEvents.length, retainedEventsSha256: hash(Buffer.from(JSON.stringify(retainedEvents))), instanceId: identity.instanceId, completedToolSha256: prior, approvals });
|
||||
}
|
||||
async function capture(session, label) {
|
||||
await select(session); await closeInspector(); await page.getByRole('button', { name: '隔离协作', exact: true }).click();
|
||||
for (const width of [1440, 390]) {
|
||||
const native = await application.browserWindow(page); await native.evaluate((value, width) => { value.showInactive(); value.setContentSize(width, 900); }, width);
|
||||
await expect.poll(() => page.evaluate(() => innerWidth)).toBe(width);
|
||||
const filename = path.join(sample, kind + '-' + label + '-' + width + '.png'); await page.screenshot({ path: filename }); fs.writeFileSync(filename + '.html', await page.content());
|
||||
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth), false); screenshots.push({ file: filename, width, sha256: hash(fs.readFileSync(filename)) });
|
||||
}
|
||||
await (await application.browserWindow(page)).evaluate(value => value.setContentSize(1440, 1000));
|
||||
await page.keyboard.press('Escape'); await expect(page.getByRole('dialog', { name: '隔离协作', exact: true })).toBeHidden();
|
||||
await closeInspector();
|
||||
}
|
||||
await launch();
|
||||
return { select, review, approve, cycle, capture, events, screenshots, errors, get page() { return page; },
|
||||
async resize(width, height) { await (await application.browserWindow(page)).evaluate((value, size) => { value.showInactive(); value.setContentSize(size.width, size.height); }, { width, height }); await expect.poll(() => page.evaluate(() => innerWidth)).toBe(width); },
|
||||
async download(filename, trigger) {
|
||||
const id = randomUUID();
|
||||
await application.evaluate(({ session }, { id, filename }) => {
|
||||
globalThis.workbenchQaDownloads ??= {};
|
||||
globalThis.workbenchQaDownloads[id] = { state: 'waiting' };
|
||||
session.defaultSession.once('will-download', (_event, item) => {
|
||||
const value = globalThis.workbenchQaDownloads[id]; value.suggestedFilename = item.getFilename(); value.state = 'started';
|
||||
item.setSavePath(filename); // Actual Electron DownloadItem; only the owned destination selection is a QA fixture.
|
||||
item.once('done', (_event, state) => { value.state = state; value.bytes = item.getReceivedBytes(); value.totalBytes = item.getTotalBytes(); });
|
||||
});
|
||||
}, { id, filename });
|
||||
await trigger(); await expect.poll(() => application.evaluate((_electron, id) => globalThis.workbenchQaDownloads[id].state, id), { timeout: 30000 }).toBe('completed');
|
||||
const value = await application.evaluate((_electron, id) => globalThis.workbenchQaDownloads[id], id);
|
||||
assert.equal(value.bytes, value.totalBytes); assert.equal(fs.statSync(filename).size, value.bytes);
|
||||
events.push({ action: 'actual-electron-native-download', ...value, file: filename, sha256: hash(fs.readFileSync(filename)), scope: 'Actual DownloadItem and transferred bytes; own output path chosen by QA without exercising the Windows save dialog.' });
|
||||
return value;
|
||||
},
|
||||
scope: 'Real Electron renderer and fixed native main/preload; own in-process Node fixture host, actual native Harness/HTTP/check/Git. The whole fixture host is never exited from its desktop UI.',
|
||||
async failure(error) { if (!page || page.isClosed()) return; const filename = path.join(sample, kind + '-desktop-failure'); fs.writeFileSync(filename + '.html', await page.content()); fs.writeFileSync(filename + '.json', JSON.stringify({ error: error.stack, dialogs: await page.getByRole('dialog').allTextContents(), errors, events }, null, 2)); await (await application.browserWindow(page)).evaluate(value => value.showInactive()); await page.screenshot({ path: filename + '.png' }); },
|
||||
async close() { await application?.close(); for (const response of clients) response.destroy(); server.closeAllConnections(); await new Promise(resolve => server.close(resolve)); assert.deepEqual(errors, []); } };
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash, randomUUID } from 'node:crypto';
|
||||
import { spawn, execFileSync } from 'node:child_process';
|
||||
|
||||
if (process.argv.includes('--help')) { console.log('node scripts/verify-source-package.mjs [--native-engines] - validate independently extracted source after verify-archives.py --extract-source; set the absolute QA Python and archive root.'); process.exit(0); }
|
||||
if (process.argv.slice(2).some(value => value !== '--native-engines')) throw new Error('Unsupported argument; use --help.');
|
||||
|
||||
const workspace = process.cwd();
|
||||
const evidence = JSON.parse(fs.readFileSync('.qa/archives-validation.json', 'utf8'));
|
||||
assert.equal(evidence.success, true);
|
||||
assert.ok(evidence.extractionRoot, 'Run python scripts/verify-archives.py --extract-source first.');
|
||||
const sourceRoot = fs.realpathSync.native(evidence.extractionRoot);
|
||||
const archiveQaRoot = path.resolve(process.env.AGENT_WORKBENCH_ARCHIVE_QA_ROOT || '.qa');
|
||||
assert.ok(sourceRoot.startsWith(archiveQaRoot + path.sep));
|
||||
const npmCli = path.join(path.dirname(process.execPath), 'node_modules/npm/bin/npm-cli.js');
|
||||
assert.ok(fs.existsSync(npmCli), 'Use Node with its bundled npm.');
|
||||
const files = (root, relative = '') => fs.readdirSync(path.join(root, relative), { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))
|
||||
.flatMap(entry => entry.isDirectory() ? files(root, path.join(relative, entry.name)) : [path.join(relative, entry.name)]);
|
||||
const digest = file => createHash('sha256').update(fs.readFileSync(file)).digest('hex');
|
||||
const buildFolders = ['dist-client', 'dist-server', ...(['1.15.0', '1.16.0'].includes(evidence.version) ? ['dist-desktop'] : [])];
|
||||
const expected = Object.fromEntries(buildFolders.flatMap(folder => files(path.join(workspace, folder)).map(relative => [path.join(folder, relative), digest(path.join(workspace, folder, relative))])));
|
||||
const allowedEnv = /^(path|pathext|systemroot|systemdrive|windir|comspec|temp|tmp|userprofile|homedrive|homepath|home|appdata|localappdata|programfiles(?:\(x86\))?|commonprogramfiles(?:\(x86\))?|lang|lc_all|AGENT_WORKBENCH_TEST_PYTHON|AGENT_WORKBENCH_DEEPSEEK_ROOT|AGENT_WORKBENCH_PURGE_ROOT)$/i;
|
||||
const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => allowedEnv.test(key)));
|
||||
const inheritedPath = Object.entries(env).find(([key]) => key.toLowerCase() === 'path')?.[1] || '';
|
||||
for (const key of Object.keys(env)) if (key.toLowerCase() === 'path') delete env[key];
|
||||
env.PATH = [path.dirname(process.execPath), inheritedPath].filter(Boolean).join(path.delimiter);
|
||||
const directory = path.join(sourceRoot, '.qa', 'package-validation-' + randomUUID());
|
||||
fs.mkdirSync(directory, { recursive: true });
|
||||
const inputFolders = ['src', 'tests', 'scripts', ...['benchmarks', 'public', 'examples', 'research'].filter(folder => fs.existsSync(path.join(sourceRoot, folder)))];
|
||||
const inputNames = [...inputFolders.flatMap(folder => files(path.join(sourceRoot, folder)).map(relative => path.join(folder, relative))),
|
||||
'package.json', 'package-lock.json', 'vite.config.ts', 'tsconfig.json', 'index.html', ...(evidence.version === '1.16.0' ? ['mobile.html'] : []), ...['.gitattributes', '.gitignore', 'Start-Desktop.cmd', 'Start-Workbench.cmd', 'Stop-Workbench.cmd'].filter(name => fs.existsSync(path.join(sourceRoot, name)))].sort();
|
||||
const snapshot = () => inputNames.map(relative => ({ path: relative.replaceAll('\\', '/'), bytes: fs.statSync(path.join(sourceRoot, relative)).size, sha256: digest(path.join(sourceRoot, relative)) }));
|
||||
const inputs = snapshot(); fs.writeFileSync(path.join(directory, 'inputs.json'), JSON.stringify(inputs, null, 2));
|
||||
let stage = 'environment preflight', python = null;
|
||||
const resultFile = path.join(workspace, '.qa/source-package-validation.json');
|
||||
const logs = [];
|
||||
function save(result) {
|
||||
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(result, null, 2));
|
||||
fs.writeFileSync(resultFile, JSON.stringify(result, null, 2));
|
||||
}
|
||||
|
||||
function run(args, logName) {
|
||||
console.log('Source package: ' + stage);
|
||||
return new Promise((resolve, reject) => {
|
||||
const logPath = path.join(directory, logName);
|
||||
const outputFile = fs.createWriteStream(logPath);
|
||||
const child = spawn(process.execPath, args, { cwd: sourceRoot, env, windowsHide: true, stdio: ['ignore', 'pipe', 'pipe'] });
|
||||
let tail = '', timedOut = false;
|
||||
const capture = bytes => { outputFile.write(bytes); tail = (tail + bytes.toString('utf8')).slice(-12000); };
|
||||
child.stdout.on('data', capture); child.stderr.on('data', capture);
|
||||
const timer = setTimeout(() => {
|
||||
timedOut = true;
|
||||
if (process.platform === 'win32' && child.pid) {
|
||||
try { execFileSync('taskkill.exe', ['/PID', String(child.pid), '/T', '/F'], { windowsHide: true, timeout: 10000, stdio: 'ignore' }); } catch { child.kill(); }
|
||||
} else child.kill();
|
||||
}, 30 * 60 * 1000);
|
||||
child.once('error', error => { clearTimeout(timer); outputFile.end(); reject(error); });
|
||||
child.once('close', code => { clearTimeout(timer); outputFile.end(() => {
|
||||
logs.push({ stage, path: logPath, sha256: digest(logPath), bytes: fs.statSync(logPath).size });
|
||||
code === 0 && !timedOut ? resolve(tail) : reject(new Error(stage + (timedOut ? ' timed out after 30 minutes' : ' failed (' + code + ')') + ': ' + tail));
|
||||
}); });
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
assert.equal(JSON.parse(fs.readFileSync(path.join(sourceRoot, 'package.json'), 'utf8')).version, evidence.version);
|
||||
assert.match(process.version, /^v24\./, 'Source package validation requires Node.js 24.');
|
||||
if (env.AGENT_WORKBENCH_TEST_PYTHON) {
|
||||
assert.ok(path.isAbsolute(env.AGENT_WORKBENCH_TEST_PYTHON) && fs.existsSync(env.AGENT_WORKBENCH_TEST_PYTHON), 'AGENT_WORKBENCH_TEST_PYTHON must name an existing absolute QA interpreter.');
|
||||
const executable = fs.realpathSync.native(env.AGENT_WORKBENCH_TEST_PYTHON);
|
||||
python = JSON.parse(execFileSync(executable, ['-I', '-c', 'import json,sys,pytest; print(json.dumps({"version":sys.version.split()[0],"pytest":pytest.__version__}))'], { env, windowsHide: true, encoding: 'utf8', timeout: 10000 }));
|
||||
assert.ok(Number(python.version.split('.')[0]) === 3 && Number(python.version.split('.')[1]) >= 10, 'QA Python must be 3.10 or newer.');
|
||||
assert.equal(python.pytest, '8.4.2', 'Install the fixed QA requirements before validating the source package.');
|
||||
python.path = executable; env.AGENT_WORKBENCH_TEST_PYTHON = executable;
|
||||
}
|
||||
console.log(JSON.stringify({ sourceRoot, directory, nodeVersion: process.version, python }));
|
||||
stage = 'install';
|
||||
await run([npmCli, 'ci', '--offline', '--ignore-scripts', '--no-audit', '--no-fund'], 'install.log');
|
||||
stage = 'build'; await run([npmCli, 'run', 'build'], 'build.log');
|
||||
const actualFiles = buildFolders.flatMap(folder => files(path.join(sourceRoot, folder)).map(relative => path.join(folder, relative)));
|
||||
assert.deepEqual(actualFiles.slice().sort(), Object.keys(expected).sort());
|
||||
for (const [relative, sha256] of Object.entries(expected)) assert.equal(digest(path.join(sourceRoot, relative)), sha256, relative);
|
||||
let actualRea = null;
|
||||
if (['1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0'].includes(evidence.version)) {
|
||||
stage = 'contained REA';
|
||||
const reaOutput = await run(['scripts/verify-rea.mjs', '--app-root', sourceRoot, '--contained'], 'rea.log');
|
||||
actualRea = JSON.parse(reaOutput.trim().split('\n').at(-1));
|
||||
assert.equal(actualRea.success, true); assert.equal(actualRea.version, evidence.version); assert.equal(actualRea.results.length, 3);
|
||||
assert.ok(actualRea.results.every(item => item.rootExited === true));
|
||||
}
|
||||
let actualEngine = null;
|
||||
if (['1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0'].includes(evidence.version) && process.argv.includes('--native-engines')) {
|
||||
stage = 'native DeepSeek SDK';
|
||||
const output = await run(['scripts/verify-engines.mjs'], 'engines.log');
|
||||
actualEngine = JSON.parse(output.trim().split('\n').at(-1));
|
||||
assert.equal(actualEngine.success, true); assert.equal(actualEngine.version, evidence.version);
|
||||
assert.equal(actualEngine.modelRequests, 0); assert.equal(actualEngine.rootExited, true); assert.equal(actualEngine.nativeMethods.length, 6);
|
||||
}
|
||||
let actualBrowser = null;
|
||||
if (['1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0'].includes(evidence.version)) {
|
||||
stage = 'contained browser runtime';
|
||||
const output = await run(['scripts/verify-browser.mjs', '--app-root', sourceRoot, '--contained'], 'browser.log');
|
||||
actualBrowser = JSON.parse(output.trim().split('\n').at(-1));
|
||||
assert.equal(actualBrowser.success, true); assert.equal(actualBrowser.version, evidence.version);
|
||||
assert.equal(actualBrowser.rootExited, true); assert.equal(actualBrowser.results.length, 2);
|
||||
assert.ok(actualBrowser.results.every(value => value.status === 'passed' && value.browserExited));
|
||||
assert.equal(actualBrowser.modelRequests, 0);
|
||||
}
|
||||
let actualControlled = null;
|
||||
if (['1.14.0', '1.15.0', '1.16.0'].includes(evidence.version)) {
|
||||
stage = 'compiled controlled-engine delivery';
|
||||
const output = await run(['scripts/verify-controlled-release.mjs', '--app-root', sourceRoot], 'controlled-engine.log');
|
||||
actualControlled = JSON.parse(output.trim().split('\n').at(-1));
|
||||
assert.equal(actualControlled.success, true); assert.equal(actualControlled.version, evidence.version); assert.equal(actualControlled.rootExited, true);
|
||||
assert.equal(actualControlled.realModelRequests, 0); assert.equal(actualControlled.cases, 4); assert.ok(actualControlled.fixtureModelRequests > 0);
|
||||
}
|
||||
let actualCompanion = null;
|
||||
if (evidence.version === '1.16.0') {
|
||||
stage = 'contained companion gateway and UI';
|
||||
const output = await run(['scripts/verify-companion-ui.mjs', '--app-root', sourceRoot], 'companion-ui.log');
|
||||
const location = [...output.matchAll(/^EVIDENCE (.+)\r?$/gm)].at(-1)?.[1]?.trim();
|
||||
assert.ok(location && path.resolve(location).startsWith(path.join(sourceRoot, '.qa') + path.sep));
|
||||
actualCompanion = JSON.parse(fs.readFileSync(path.join(location, 'result.json'), 'utf8'));
|
||||
assert.equal(actualCompanion.success, true); assert.equal(actualCompanion.version, evidence.version);
|
||||
assert.equal(fs.realpathSync.native(actualCompanion.appRoot), sourceRoot); assert.equal(actualCompanion.containedRuntime, true);
|
||||
assert.equal(actualCompanion.passed.length, 7); assert.deepEqual(actualCompanion.errors, []); assert.equal(actualCompanion.realModelRequests, 0);
|
||||
}
|
||||
stage = 'tests';
|
||||
const output = await run(['--test', '--test-concurrency=2', '--test-reporter=tap', ...files(path.join(sourceRoot, 'tests')).filter(file => !file.includes(path.sep) && file.endsWith('.test.mjs')).map(file => path.join('tests', file))], 'tests.tap');
|
||||
const stats = Object.fromEntries([...output.matchAll(/^# (tests|pass|fail|cancelled|skipped|todo) (\d+)\s*$/gm)].map(match => [match[1], Number(match[2])]));
|
||||
assert.ok(stats.tests > 0); assert.equal(stats.pass, stats.tests); for (const key of ['fail', 'cancelled', 'skipped', 'todo']) assert.equal(stats[key], 0);
|
||||
let actualDesktop = null;
|
||||
if (['1.15.0', '1.16.0'].includes(evidence.version)) {
|
||||
stage = 'actual contained Electron window'; await run(['scripts/verify-desktop-window.mjs'], 'desktop-window.log');
|
||||
const window = JSON.parse(fs.readFileSync(path.join(sourceRoot, '.qa/desktop-window-latest.json'), 'utf8'));
|
||||
assert.equal(window.success, true); assert.equal(path.resolve(window.appRoot), sourceRoot); assert.equal(window.results.length, 7);
|
||||
stage = 'actual contained Electron engine UI'; await run(['scripts/verify-controlled-ui.mjs', '--desktop'], 'desktop-controlled-ui.log');
|
||||
const uiLocation = JSON.parse(fs.readFileSync(path.join(sourceRoot, '.qa/desktop-controlled-ui-location.json'), 'utf8'));
|
||||
const ui = JSON.parse(fs.readFileSync(uiLocation.result, 'utf8')); assert.equal(ui.passed, true); assert.equal(ui.testedVersion, evidence.version); assert.equal(ui.assertions.length, 9);
|
||||
stage = 'actual contained Electron engineering projects'; await run(['scripts/verify-controlled-projects.mjs', '--desktop'], 'desktop-projects.log');
|
||||
const projectLocation = JSON.parse(fs.readFileSync(path.join(sourceRoot, '.qa/desktop-projects-location.json'), 'utf8'));
|
||||
const projects = JSON.parse(fs.readFileSync(projectLocation.result, 'utf8')); assert.equal(projects.success, true); assert.equal(projects.testedVersion, evidence.version); assert.equal(projects.cases.length, 16);
|
||||
assert.deepEqual(projects.results.map(value => value.parentCheck.results[0].tests.passed), [8, 9, 10]);
|
||||
actualDesktop = { window, ui, projects, scope: 'Independently rebuilt source and its shipped Electron binary; original window/engine/engineering assertions. Own credentials/HTTP fixtures; Windows native picker and complete host crash/stop have separate actual evidence.' };
|
||||
}
|
||||
assert.deepEqual(snapshot(), inputs, 'Source package inputs changed during validation.');
|
||||
const result = { success: true, version: evidence.version, testedAt: new Date().toISOString(), sourceRoot, directory, nodeVersion: process.version, python, offlineInstall: true,
|
||||
inputs, inputFiles: inputs.length, logs, buildMatchedFiles: Object.keys(expected).length, buildFiles: Object.entries(expected).map(([path, sha256]) => ({ path: path.replaceAll('\\', '/'), sha256 })), tests: stats, actualRea, actualEngine, actualBrowser, actualControlled, actualDesktop, actualCompanion, credentialsHandling: 'Only build/runtime environment paths are inherited; no configured model credentials are used. The controlled-engine stage supplies a declared owned local response fixture.' };
|
||||
save(result); console.log(JSON.stringify({ success: true, version: result.version, sourceRoot, directory, tests: stats, nodeVersion: process.version, python, inputFiles: inputs.length, buildMatchedFiles: result.buildMatchedFiles, rea: !!actualRea?.success, engine: !!actualEngine?.success, browser: !!actualBrowser?.success, controlled: !!actualControlled?.success }));
|
||||
} catch (error) {
|
||||
save({ success: false, version: evidence.version, testedAt: new Date().toISOString(), stage, error: error.message, sourceRoot, directory, nodeVersion: process.version, python, inputs, logs });
|
||||
throw error;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
added 135 packages in 6s
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
> local-agent-workbench@1.16.0 build
|
||||
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
|
||||
|
||||
[36mvite v7.3.7 [32mbuilding client environment for production...[36m[39m
|
||||
transforming...
|
||||
[32m✓[39m 1725 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
[2mdist-client/[22m[32m.vite/manifest.json [39m[1m[2m 0.55 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m
|
||||
[2mdist-client/[22m[32mindex.html [39m[1m[2m 0.58 kB[22m[1m[22m[2m │ gzip: 0.40 kB[22m
|
||||
[2mdist-client/[22m[32mmobile.html [39m[1m[2m 0.82 kB[22m[1m[22m[2m │ gzip: 0.45 kB[22m
|
||||
[2mdist-client/[22m[35massets/mobile-CPi1xsK3.css [39m[1m[2m 11.10 kB[22m[1m[22m[2m │ gzip: 2.97 kB[22m
|
||||
[2mdist-client/[22m[35massets/desktop-BaQ1ZMRu.css [39m[1m[2m134.24 kB[22m[1m[22m[2m │ gzip: 25.64 kB[22m
|
||||
[2mdist-client/[22m[36massets/mobile-tKLJoem9.js [39m[1m[2m 21.38 kB[22m[1m[22m[2m │ gzip: 7.64 kB[22m
|
||||
[2mdist-client/[22m[36massets/x-Cc3T3VuL.js [39m[1m[2m225.51 kB[22m[1m[22m[2m │ gzip: 70.77 kB[22m
|
||||
[2mdist-client/[22m[36massets/desktop-DmqBcePV.js [39m[1m[2m277.30 kB[22m[1m[22m[2m │ gzip: 78.12 kB[22m
|
||||
[32m✓ built in 1.10s[39m
|
||||
Mobile shell built: 3 allowed assets; API and project data are never cached.
|
||||
Server bundle built.
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.16.0","directory":"D:\\AWQA16\\s-b475fc72\\.qa\\rea-integration-c1b56a2f-eba4-4069-8db9-c62e978c2fb1","results":[{"operation":"javascript","evidenceId":"ev_46eed01b93ab21ef49a04e4c2052127c873cdaaa6729b013a3781f89c637f29b","targetSha256":"582afd7ed3580fed236395874d027a672ada8b0c74ed7042999eda5c7dd4f983","advertisedTools":229,"rootExited":true},{"operation":"pe-imports","evidenceId":"ev_8ea48ee497c12ff223313fab5d2aba0e2b826e1322005fe8a560493979247b0f","targetSha256":"7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973","advertisedTools":229,"rootExited":true},{"operation":"pe-resources","evidenceId":"ev_01f82f4d62a25c95f03909e2f9ed4cbb3d1d2470c8a04cee057bada8f56fdb1f","targetSha256":"7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973","advertisedTools":229,"rootExited":true}]}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.16.0","directory":"D:\\AWQA16\\s-b475fc72\\.qa\\native-engine-5d4c184c-c7b2-45ba-b40d-f4ab9aea1cba","sdkVersion":"0.2.1-rc.2","nativeMethods":["initialize","session/working-directory/get","session/wait","session/resume","session/cancel","shutdown"],"modelRequests":0,"rootExited":true}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.16.0","directory":"D:\\AWQA16\\s-b475fc72\\.qa\\browser-native-6b578449-fac8-4c5f-93fb-91b900568a7c","results":[{"jobId":"39e54609-ed99-4d40-9b11-b069e7b852c8","taskId":"d5006b30-ab6c-4678-b193-10e89e16d72f","viewport":{"width":1280,"height":900},"status":"passed","assertions":{"total":3,"passed":3,"failed":0},"resultSha256":"41f31eec2162238cab7c45b830c67ae62067973836b3e1bd60cabd974bcb2104","buildSha256":"1128c86f9108e72bc1ada18b7c48c9f865283f46d5e530b99caa04d7507f46cd","screenshotSha256":"a0b9187034642bb65372f74db669b60f07c0888d7ce86deb60a4a202b505ca54","browserExited":true,"reusedOriginalJob":true},{"jobId":"f495d0e9-fa00-449e-a8c6-05be8705fa08","taskId":"d5006b30-ab6c-4678-b193-10e89e16d72f","viewport":{"width":390,"height":844},"status":"passed","assertions":{"total":3,"passed":3,"failed":0},"resultSha256":"929fcb4964386561dc664bc82b9a117a90f317fdfa47c9c3d40f26f1fe2c2e4a","buildSha256":"1128c86f9108e72bc1ada18b7c48c9f865283f46d5e530b99caa04d7507f46cd","screenshotSha256":"590ef1090d857bc7a7eb30ed790f918d76ebabe4d53b54b82948de4db20cfb4f","browserExited":true,"reusedOriginalJob":true}],"modelRequests":0,"rootExited":true}
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS compiled host seals actual Harness/source identities and prepares one owned worktree while retaining parent bytes and staging
|
||||
PASS compiled native execution retains failing tests, requires original check approvals, seals literal prompt/model/receipts/results and accounts each owned HTTP request once
|
||||
PASS compiled parent review and immutable merge pass the original 8 functional tests and actual ESM build
|
||||
PASS compiled Git delivery contains only reviewed modules, preserves staged/unstaged/untracked owner bytes and completes the parent with sealed original evidence
|
||||
EVIDENCE C:\Users\wangy\AppData\Local\Temp\awb-controlled-roqewA
|
||||
{"success":true,"version":"1.16.0","directory":"C:\\Users\\wangy\\AppData\\Local\\Temp\\awb-controlled-roqewA","cases":4,"rootExited":true,"fixtureModelRequests":7,"realModelRequests":0}
|
||||
@@ -0,0 +1,8 @@
|
||||
PASS desktop explicitly enables HTTPS and downloads the actual public CA without changing OS trust
|
||||
PASS 390px real gateway pairing clears fragment, displays scoped task list and registers the same device in desktop
|
||||
PASS phone UI confirms original Task/Run approval and the existing Runtime executes one command
|
||||
PASS original paginated diff and counted check/report display verified content from the same Task
|
||||
PASS disconnect and refresh recover from persistent seq without submitting a new command or Run
|
||||
PASS PWA service worker stores the shell and no API/project response
|
||||
PASS desktop revocation removes mobile project content immediately on the next read while preserving the original completed tool
|
||||
EVIDENCE D:\AWQA16\s-b475fc72\.qa\companion-ui-76f5fc39-2f0e-463f-8c11-dc4cb7b97ca5
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
actual Electron process registered and original host reused: passed
|
||||
sandboxed renderer and fixed preload: passed
|
||||
external navigation, requests and popups rejected: passed
|
||||
offline original task and approval retained across refresh and window close: passed
|
||||
actual command approval, proposal and project check: passed
|
||||
current project, task and file desktop entry scope: passed
|
||||
native stop cancelled, then original host explicitly stopped: passed
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
|
||||
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
|
||||
PASS 390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow
|
||||
PASS mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes
|
||||
PASS closing a run view ignores an old delayed record failure and keeps the selected task unchanged
|
||||
PASS explicit child file review and check approval create a new native Run, retain previous evidence and account actual model requests once
|
||||
PASS parent collection reads the original controlled-worker proof and explicit retention preserves every owner byte
|
||||
PASS actual native stop closes the owned process tree, preserves one unknown model attempt and dispatches no late tool
|
||||
PASS 390px recovery requires reading the owned observation before explicit review and preserves original outcome/report and cumulative budget
|
||||
EVIDENCE D:\AWQA16\s-b475fc72\.qa\desktop-controlled-ui-da202127-95ae-479e-97b5-7c6e3e5624ea
|
||||
@@ -0,0 +1,16 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
PASS node: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS node: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS react: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS react: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS react: separately reviewed parent merge passes all 9 functional tests and actual build/compile
|
||||
PASS react: real Edge desktop/390px filtering, trimmed search, one-task toggle and complete totals pass
|
||||
PASS react: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS react: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS python: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS python: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS python: separately reviewed parent merge passes all 10 functional tests and actual build/compile
|
||||
EVIDENCE D:\AWQA16\s-b475fc72\.qa\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f
|
||||
{"success":false,"cases":14,"directory":"D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f","realModelRequests":0,"error":"locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('button', { name: '关闭检视区', exact: true })\u001b[22m\n\n at closeInspector (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:36:169)\n at async Object.capture (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:101:5)\n at async runSample (D:\\AWQA16\\s-b475fc72\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/AWQA16/s-b475fc72/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
{"directory":"D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f","result":"D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f\\result.json"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"error": "locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('button', { name: '关闭检视区', exact: true })\u001b[22m\n\n at closeInspector (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:36:169)\n at async Object.capture (D:\\AWQA16\\s-b475fc72\\scripts\\desktop-project-qa.mjs:101:5)\n at async runSample (D:\\AWQA16\\s-b475fc72\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/AWQA16/s-b475fc72/scripts/verify-controlled-projects.mjs:253:71",
|
||||
"dialogs": [],
|
||||
"errors": [],
|
||||
"events": [
|
||||
{
|
||||
"action": "close-and-reopen-window-during-owned-model-request",
|
||||
"hostPid": 37676,
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5",
|
||||
"runId": "9e7ce8d0-e512-402a-b087-8fd30b7589e1",
|
||||
"eventSeq": 38,
|
||||
"reopenedEventSeq": 41,
|
||||
"replayCursor": 41,
|
||||
"retainedEvents": 20,
|
||||
"retainedEventsSha256": "fb4595e6a3b5b11ca9f23563c74cbb9d9c88d31e2f4a8856a68f0c88b68810db",
|
||||
"instanceId": "f714cffc-2d0d-4d15-818b-42b384902c17",
|
||||
"completedToolSha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
|
||||
"approvals": []
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5",
|
||||
"changeSetId": "baea6351-0a1d-48bb-83b5-2cb18b01741d",
|
||||
"fingerprint": "3946132b622614e03f2a9e742517959a738724751158c3ff56f3cf285f53ae46",
|
||||
"paths": [
|
||||
"money.py",
|
||||
"schedule.py",
|
||||
"tests/test_money.py",
|
||||
"tests/test_schedule.py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "close-and-reopen-window-during-original-approval",
|
||||
"hostPid": 37676,
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5",
|
||||
"runId": "fd6f9eed-f3cd-4437-8b7b-1c0231f8bbb3",
|
||||
"eventSeq": 187,
|
||||
"reopenedEventSeq": 190,
|
||||
"replayCursor": 190,
|
||||
"retainedEvents": 166,
|
||||
"retainedEventsSha256": "60343eaf21ebd4be82b65f9dcc015fde8bf2fc0bee94c7ac9655d0860d90bae9",
|
||||
"instanceId": "f714cffc-2d0d-4d15-818b-42b384902c17",
|
||||
"completedToolSha256": "a8ff51a5b7c626555414ab83ea8f02767744e9041d7cd7c056e7616a8249be53",
|
||||
"approvals": [
|
||||
{
|
||||
"id": "c94d4d36-1ce1-4f8e-a51e-7e2ba21aed0a",
|
||||
"status": "pending"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "c94d4d36-1ce1-4f8e-a51e-7e2ba21aed0a",
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5",
|
||||
"changeSetId": "e3b92574-4160-4cf3-ac36-3f89692a071c",
|
||||
"fingerprint": "7b6ec4f578c3820c1ac85ac77689bc857ecb9f26a7b9a58eee0dd9755eefb544",
|
||||
"paths": [
|
||||
"money.py",
|
||||
"schedule.py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "5856c1a2-98d3-4ff2-a07a-52d7a4de45ed",
|
||||
"taskId": "2ee00a32-f17d-4e68-b6c8-a60be047f9b5"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "3b099cc3-2e08-442a-8169-422de2b92388",
|
||||
"changeSetId": "72bac342-2f10-4a5d-bf31-91f2d244f195",
|
||||
"fingerprint": "f28734d2d8139c86b20e350bfc1f4e1f5e00157cb15237ed193bff650ffec664",
|
||||
"paths": [
|
||||
"money.py",
|
||||
"schedule.py",
|
||||
"tests/test_money.py",
|
||||
"tests/test_schedule.py"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"success": true,
|
||||
"acceptanceCompleted": false,
|
||||
"sourceRoot": "D:\\AWQA16\\s-b475fc72",
|
||||
"tests": {
|
||||
"tests": 519,
|
||||
"pass": 519,
|
||||
"fail": 0,
|
||||
"cancelled": 0,
|
||||
"skipped": 0,
|
||||
"todo": 0
|
||||
},
|
||||
"completedEngineeringNodes": 14,
|
||||
"records": [
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-source-original-validation.json",
|
||||
"archived": "docs/companion-f-first-source-failure/001-companion-final-source-original-validation.json",
|
||||
"bytes": 69451,
|
||||
"sha256": "258b49771b221d932c2becb5b631675c77d390db83822dca30366feae4a11cf0"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-source-result.json",
|
||||
"archived": "docs/companion-f-first-source-failure/002-companion-final-source-result.json",
|
||||
"bytes": 891,
|
||||
"sha256": "84c2323521be4f4a37cc7afdc707f24079ab8f9a240aad9f9c3c546caeabb310"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-source.log",
|
||||
"archived": "docs/companion-f-first-source-failure/003-companion-final-source-log.txt",
|
||||
"bytes": 3977,
|
||||
"sha256": "a97f094cb2e15c92a5fb8e62015bedfc8db03fe3287cf602471c5c1759a87f61"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\docs\\mobile-companion-release-code-baseline.json",
|
||||
"archived": "docs/companion-f-first-source-failure/004-mobile-companion-release-code-baseline.json",
|
||||
"bytes": 74831,
|
||||
"sha256": "bf353c0f8dc4c6c1ccca2ce71f0a2330b792ab5cf2158b8eb38ed5e2209ae4fa"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\latest.json",
|
||||
"archived": "docs/companion-f-first-source-failure/005-latest.json",
|
||||
"bytes": 2875,
|
||||
"sha256": "67ed2dff4d2c9d835c98cfcbdc16ea2ae497f75c7276270201e2455e3959d3f1"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-qa-installer.json",
|
||||
"archived": "docs/companion-f-first-source-failure/006-companion-final-qa-installer.json",
|
||||
"bytes": 1654,
|
||||
"sha256": "ea84daa12d193df78900de68668c276386cb81675f36c7f17bd03ae014a55c25"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-code-git-audit.json",
|
||||
"archived": "docs/companion-f-first-source-failure/007-companion-final-code-git-audit.json",
|
||||
"bytes": 12017,
|
||||
"sha256": "75be18b1b88f63458609ba322cad3a8d41cb194445be04004fbcc49c5ef337a1"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\companion-final-real-phone-package-equivalence.json",
|
||||
"archived": "docs/companion-f-first-source-failure/008-companion-final-real-phone-package-equivalence.json",
|
||||
"bytes": 451808,
|
||||
"sha256": "fa0c88efddccb4d650ea67629186bdcb8854c3e5dd7f5e42b2eba77e76a2c158"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs",
|
||||
"archived": "docs/companion-f-first-source-failure/009-desktop-project-qa.mjs",
|
||||
"bytes": 12024,
|
||||
"sha256": "48d374ad88f1211ec28d8031738353994216b8eee8101302a0c0aa1848b3ad0e"
|
||||
},
|
||||
{
|
||||
"original": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-source-package.mjs",
|
||||
"archived": "docs/companion-f-first-source-failure/010-verify-source-package.mjs",
|
||||
"bytes": 14568,
|
||||
"sha256": "5ba21ee76113ba6aa616ba64144725ae6e4193c2ab5f787fe1f96dbf419f2e45"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\install.log",
|
||||
"archived": "docs/companion-f-first-source-failure/011-install-log.txt",
|
||||
"bytes": 26,
|
||||
"sha256": "55f059aff763b6da4f1cbe6c3a969cc32ff31ca7b93b142a9870c91f9eb8d0c8"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\build.log",
|
||||
"archived": "docs/companion-f-first-source-failure/012-build-log.txt",
|
||||
"bytes": 1398,
|
||||
"sha256": "71bf64101ac1a6f3d21d4af1fca3421b3e9d9cad4c71b94d100cde33cf42b652"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\rea.log",
|
||||
"archived": "docs/companion-f-first-source-failure/013-rea-log.txt",
|
||||
"bytes": 842,
|
||||
"sha256": "efd7c3daf2010189ba59e46874e358e025b2df36b0ad6446ca3a55ada5625cbe"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\engines.log",
|
||||
"archived": "docs/companion-f-first-source-failure/014-engines-log.txt",
|
||||
"bytes": 315,
|
||||
"sha256": "3272d896ca310e8fcf23c8c4ef500c0c2beb367b150ffc3a28dbee4a5d0239eb"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\browser.log",
|
||||
"archived": "docs/companion-f-first-source-failure/015-browser-log.txt",
|
||||
"bytes": 1170,
|
||||
"sha256": "1b8658f449e9ca16166f822de6a86426dca2cfd0427c886596f94fa818821039"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\controlled-engine.log",
|
||||
"archived": "docs/companion-f-first-source-failure/016-controlled-engine-log.txt",
|
||||
"bytes": 826,
|
||||
"sha256": "811fcc7bccd29e91527e15dcf61b74fdacff021928467bfdc02cfca340c8a8d7"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\companion-ui.log",
|
||||
"archived": "docs/companion-f-first-source-failure/017-companion-ui-log.txt",
|
||||
"bytes": 787,
|
||||
"sha256": "675a4dbb40d32320d8abb885c8e17c71a40bbe270395196cccace4785e47c284"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\tests.tap",
|
||||
"archived": "docs/companion-f-first-source-failure/018-tests.tap",
|
||||
"bytes": 140861,
|
||||
"sha256": "578e3469173651d1da73db2344c6dc1b618876f7df63f93bce45390cfb17398f"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\desktop-window.log",
|
||||
"archived": "docs/companion-f-first-source-failure/019-desktop-window-log.txt",
|
||||
"bytes": 443,
|
||||
"sha256": "cee441de460c225f3f95d86edc53baa9bffc1c60b4d8756145138d28002cd2e1"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\desktop-controlled-ui.log",
|
||||
"archived": "docs/companion-f-first-source-failure/020-desktop-controlled-ui-log.txt",
|
||||
"bytes": 1203,
|
||||
"sha256": "5dfaa447431c6b301ecae014d4b3b11b27f38cdbc9bc7f55f0f39b1fea724763"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\desktop-projects.log",
|
||||
"archived": "docs/companion-f-first-source-failure/021-desktop-projects-log.txt",
|
||||
"bytes": 2405,
|
||||
"sha256": "0966ae974c969e28d6b1254ecdcd4c11e192fde4a12042924be4d3a01eba611e"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\package-validation-336fb000-8614-4702-9c12-a7db9bad786d\\inputs.json",
|
||||
"archived": "docs/companion-f-first-source-failure/022-inputs.json",
|
||||
"bytes": 59529,
|
||||
"sha256": "5ae73b733a9ae842e9dd561a1a3c3d2d2ff24bbdf076a0cbfeb64f3e30ddc7ae"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-location.json",
|
||||
"archived": "docs/companion-f-first-source-failure/023-desktop-projects-location.json",
|
||||
"bytes": 205,
|
||||
"sha256": "c2c5855af5fd4f7c5a4840655dc81e2fbd68974ca5187800d4c4b8faad6278f4"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f\\result.json",
|
||||
"archived": "docs/companion-f-first-source-failure/024-result.json",
|
||||
"bytes": 2475070,
|
||||
"sha256": "333801da3955a2dddd2dd525cb7b69bc482631ef36f87464ab10ce9a8926bdbf"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f\\python\\python-desktop-failure.json",
|
||||
"archived": "docs/companion-f-first-source-failure/025-python-desktop-failure.json",
|
||||
"bytes": 3389,
|
||||
"sha256": "b2efb15d1b798e2d01295606e70a2b6c598d6a8575fc718d2f9eb9e6d73079f1"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f\\python\\python-desktop-failure.html",
|
||||
"archived": "docs/companion-f-first-source-failure/026-python-desktop-failure.html",
|
||||
"bytes": 32518,
|
||||
"sha256": "5ef1d6737613009a075f8fa56cdddb2feff1331764c228014aa3dbbd0cb7b7b1"
|
||||
},
|
||||
{
|
||||
"original": "D:\\AWQA16\\s-b475fc72\\.qa\\desktop-projects-981811c2-7421-4a2c-8da4-c74bad29330f\\python\\python-desktop-failure.png",
|
||||
"archived": "docs/companion-f-first-source-failure/027-python-desktop-failure.png",
|
||||
"bytes": 116144,
|
||||
"sha256": "57e433cd50c4f7e9c8776ae96caf98e0dcdc7dbf90d4ab72313265c8899d2140"
|
||||
}
|
||||
],
|
||||
"diagnosis": "capture() resets Electron content size from 390 to 1440 and immediately checks/clicks the narrow-only close button. Its role disappears when the React resize state catches up. Original failure HTML/screenshot show desktop layout, dialogs empty and no page errors. Wait for the requested viewport and responsive control state before continuing. Product behavior and build bytes are unchanged."
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
# 统一执行进度
|
||||
|
||||
首个最终候选完整源码519/519通过,但三工程14/16时在Python capture收尾等待窄屏关闭按钮超时,整轮source明确失败、后续门槛未执行。27份原报告/TAP/HTML/PNG和来源清单封存companion-f-first-source-failure。实际截图为1440px正常宽屏、dialogs空、page errors空;capture()将390恢复1440后未等Electron尺寸/React narrow状态稳定,isVisible与click之间按钮名称变化。只修QA等待:尺寸与窄屏按钮隐藏都确认后再继续;产品源码和22构建保持。将生成新不可变候选并重新执行独立源码完整流程,旧519通过和14节点保留为历史,不补写原失败。
|
||||
|
||||
独立源码完整519/519已结束,0失败/取消/跳过,实际窗口7项和原生UI9组通过,三工程验证继续。安装验证沿用同载荷7组断言,结合1.15已记录的完整清单校验耗时,在首次运行前把自有QA安装父进程等待设15分钟(正式stage同样15分钟),不改产品/安装器/断言或任务预算,避免用5分钟外层超时截断仍在进行的完整核验。
|
||||
|
||||
实机候选与最终包等价预检首轮拒绝缺少portable根package.json;它是QA source候选的版本元数据,正式portable使用MANIFEST。原脚本保留,改为仅该文件对最终source核对,其余1957文件对portable逐字节核对,不向最终包补文件或修改原清单。
|
||||
|
||||
独立源码手机7组结束后,实际查看其mobile-original-report与desktop-management-narrow两张原PNG:SHA提示、原文本/路径换行和窄屏模态可读。131份锁定依赖许可与两包逐字节核对,133份现有许可/完整notices保持。378输入Git追溯通过:354原字节相同、19项仅声明CRLF/LF、5项由原生成器精确派生;未将源码工作区回归当最终独立源码完成。
|
||||
|
||||
@@ -97,6 +97,10 @@ export async function desktopProjectQa({ store, provider, runtime, sample, kind
|
||||
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth), false); screenshots.push({ file: filename, width, sha256: hash(fs.readFileSync(filename)) });
|
||||
}
|
||||
await (await application.browserWindow(page)).evaluate(value => value.setContentSize(1440, 1000));
|
||||
// Electron resize and React's responsive state settle independently.
|
||||
// Await both before querying a control whose accessible name changes.
|
||||
await expect.poll(() => page.evaluate(() => innerWidth)).toBe(1440);
|
||||
await expect(page.getByRole('button', { name: '关闭检视区', exact: true })).toBeHidden();
|
||||
await page.keyboard.press('Escape'); await expect(page.getByRole('dialog', { name: '隔离协作', exact: true })).toBeHidden();
|
||||
await closeInspector();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user