fix(desktop): retain source Electron loader and resolve registered external sources
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
桌面提供原生项目目录选择、当前项目/文件定位和所属Task审查入口。文件入口核对已登记项目、实际路径和原SHA;不会把任意渲染页参数转为系统命令。六个固定preload方法运行在隔离窗口中,模型和客户端仍通过原Task/Run、文件审查与逐次命令审批执行。
|
||||
|
||||
本机已有DeepSeek Harness和Purge可从随包来源登记定位,安装到其它磁盘后仍核对实际版本与关键文件。查找依次使用明确填写的目录、专用环境设置、程序所在位置及已有登记;用户可以在引擎页填写当前绝对目录后重新检测。来源检测为只读操作,Purge提示实验默认关闭,登记内容不作为执行命令。
|
||||
|
||||
模型Key默认只存于执行宿主内存。新填写或本次确认导入时,可选「本机加密保存」:当前Windows用户的DPAPI密文与连接登记共同提交。临时连接在宿主重启后显示待配置;保存连接可关闭启动自动加载、删除本机保存,或单独清除内存。关闭连接调度与删除密文是不同操作,界面分别显示状态。旧内存连接不因安装升级自动持久化,公开配置/会话/报告无明文Key。
|
||||
|
||||
密文绑定当前用户、数据目录、连接及配置修订;来源变化、损坏或解密失败会显示不能加载并保留原保存块。不同Windows账号登录尚未实际验收,错误SID/entropy/损坏和自有凭据实际重启/HTTP认证已分别验证。不要手动复制密文到另一数据目录作为连接迁移。
|
||||
|
||||
@@ -59,3 +59,7 @@ E已提交b77783b。已统一1.15.0元数据/独立证据路径、离线随包El
|
||||
c5c8a84的[首基线](desktop-host-final-code-baseline.json)包含358输入、12构建和40基准;[首轮完整历史UI](desktop-host-f-first-all-ui-evidence.json)23类179组通过,原报告/日志/PNG独立按字节封存。首个不可变20261031035920330的11837便携/12112源码文件归档及独立解压通过,但源码完整回归/实际窗口/三工程仍在运行,不将该候选标为可部署。
|
||||
|
||||
只读确认C盘安装目录会丢失D盘SDK/Purge自动定位,原research register存在仍不能解决;已保存[原迁移复现](desktop-host-f-source-relocation-before.json)。原轮结束后需增加严格受限的已登记来源候选、保持现有输入/版本守卫,再本地提交和新冻结。正式进程仍1.14/PID23172,安装与状态保留部署待完成,真实推理/Purge收益继续暂缓。
|
||||
|
||||
[首轮独立源码原结果](desktop-host-f-first-source-evidence.json)已封存:484/484回归通过、八阶段原日志保持,但实际随包Electron在appReady之前退出,后续窗口/原生UI/桌面三工程未执行,整包未通过。[两份实际运行库对照](desktop-host-f-electron-resource-probe.json)核对全部文件SHA,只差default_app.asar;同字节Electron使用缺失版exit1、完整版本的自有主程序appReady/exit0,未改首候选或独立源码现场。
|
||||
|
||||
修复为源码保留并核对固定default_app.asar;同时增加128KB/64目标上限、普通UTF-8登记文件、固定ID/版本及绝对路径核对,来源登记只作为原位置搜索之后的候选。7/7新边界专项与[实际C盘来源复验](desktop-host-f-source-relocation-after.json)通过,两项来源的关键输入身份与D盘原位置一致;构建及[相关引擎/提示/登记整轮33/33](desktop-host-f-relocation-related.tap)通过。新不可变源码/桌面/安装/便携/正式升级仍待验。
|
||||
|
||||
@@ -48,3 +48,7 @@
|
||||
## F发行前回顾
|
||||
|
||||
A–E原证据和五个提交保持。F把离线源码Electron运行、重建客户端资产身份和全部dist构建范围纳入验收;完整回归/新归档/实际安装/状态保留部署继续执行。首个npm构建由系统旧Node16抢占,固定子进程PATH为实际Node24.22.1后通过,原失败未覆盖。当前17宿主/窗口/安装/旧升级专项通过,不代表最终整轮已通过。
|
||||
|
||||
首轮358输入/12构建/40基准、23类179组UI及独立484/484通过,但真正随包Electron启动失败;源码未携带默认应用loader,现有开发目录中正常窗口不能证明离线包正常。原完整日志保留,两份同字节二进制/全运行库SHA对照和自有appReady证明只有default_app.asar差异影响启动,修复后需新不可变源码整轮再验。
|
||||
|
||||
另一个安装回归由实际C盘只读复现发现:原D盘研究登记存在,但定位仅搜索程序祖先。登记可提供候选路径,不能代表已核验来源或授权加载插件;修复保持显式目录/环境/原位置优先,限制登记大小、固定目标和普通绝对路径,真实版本与全部关键输入仍由原解析器核对。原复现、7项边界、实际新位置身份和构建分别记录;最终发行仍需自己的完整输入和原安装证据。
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"confirmed": true,
|
||||
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-resource-probe-f36d6198-efb2-4ff6-88b1-c5ff7911ced5",
|
||||
"originalSourceRoot": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330",
|
||||
"missing": [
|
||||
{
|
||||
"path": "resources/default_app.asar",
|
||||
"sha256": "eac55d6cfcf4eab7e31a45356567f549ef7eb669e3699226b48a8492ad34f510"
|
||||
}
|
||||
],
|
||||
"failed": {
|
||||
"name": "incomplete-source-runtime",
|
||||
"executable": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\runtime\\electron\\electron.exe",
|
||||
"binarySha256": "010ea51bfb528c8143513439aa93fb40754403daa2023f9decd4517da71706ab",
|
||||
"pid": 6132,
|
||||
"exitCode": 1,
|
||||
"timedOut": false,
|
||||
"ownedAppReady": false,
|
||||
"log": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-resource-probe-f36d6198-efb2-4ff6-88b1-c5ff7911ced5\\incomplete-source-runtime-log.txt",
|
||||
"logSha256": "7eb70257593da06f682a3ddda54a9d260d4fc514f645237f5ca74b08f8da61a6",
|
||||
"processExited": true
|
||||
},
|
||||
"passed": {
|
||||
"name": "full-runtime",
|
||||
"executable": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\node_modules\\electron\\dist\\electron.exe",
|
||||
"binarySha256": "010ea51bfb528c8143513439aa93fb40754403daa2023f9decd4517da71706ab",
|
||||
"pid": 40012,
|
||||
"exitCode": 0,
|
||||
"timedOut": false,
|
||||
"ownedAppReady": true,
|
||||
"log": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-resource-probe-f36d6198-efb2-4ff6-88b1-c5ff7911ced5\\full-runtime-log.txt",
|
||||
"logSha256": "be307d2c10bc6bfbd2739b51184b50b15bc546f3ba886bc6e94db99c20a494f0",
|
||||
"processExited": true
|
||||
},
|
||||
"sourceRuntimeUnchanged": true,
|
||||
"scope": "Actual same-byte Electron binaries and runtime file SHA inventories differ only by default_app.asar. A private owned main script and userData prove incomplete runtime exits before appReady while complete runtime succeeds. No Workbench host, source SDK/plugin, user credentials or original release is modified."
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"success": true,
|
||||
"candidateAccepted": false,
|
||||
"codeCommit": "c5c8a84",
|
||||
"version": "1.15.0",
|
||||
"sourceRoot": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330",
|
||||
"failedStage": "actual contained Electron window",
|
||||
"tests": {
|
||||
"tests": 484,
|
||||
"pass": 484,
|
||||
"fail": 0,
|
||||
"cancelled": 0,
|
||||
"skipped": 0,
|
||||
"todo": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"source": ".qa/source-package-validation.json",
|
||||
"path": "docs/desktop-host-f-first-source/001-source-package-validation.json",
|
||||
"bytes": 67729,
|
||||
"sha256": "95509039eaa01682c2be1c828d97561e69067fb71d7a3f7e02d1eee9ecb318f8"
|
||||
},
|
||||
{
|
||||
"source": ".qa/desktop-host-f-source-first-result.json",
|
||||
"path": "docs/desktop-host-f-first-source/002-desktop-host-f-source-first-result.json",
|
||||
"bytes": 60672,
|
||||
"sha256": "a3f2d3cfffb240b220693b48487ad8511b40b7b1d45f318f1be749e57d72fdd0"
|
||||
},
|
||||
{
|
||||
"source": ".qa/desktop-host-f-source-first-log.txt",
|
||||
"path": "docs/desktop-host-f-first-source/003-desktop-host-f-source-first-log.txt",
|
||||
"bytes": 5353,
|
||||
"sha256": "82ad3b148b2710c262910988436cbb1bc81833137a4b581c1c041ccd40a7bf8a"
|
||||
},
|
||||
{
|
||||
"source": ".qa/archives-validation.json",
|
||||
"path": "docs/desktop-host-f-first-source/004-archives-validation.json",
|
||||
"bytes": 932,
|
||||
"sha256": "3549c2bc1f8189eda23b69c05aaa8224d7edf2919ddaeb43ad7427f6fcafdbb9"
|
||||
},
|
||||
{
|
||||
"source": "releases/latest.json",
|
||||
"path": "docs/desktop-host-f-first-source/005-latest.json",
|
||||
"bytes": 2874,
|
||||
"sha256": "47f9b1ac9b4cee54ee3a62b5ea2dffedd120bea0bb4e9bdb1be3df0345baf014"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\result.json",
|
||||
"path": "docs/desktop-host-f-first-source/006-result.json",
|
||||
"bytes": 67729,
|
||||
"sha256": "95509039eaa01682c2be1c828d97561e69067fb71d7a3f7e02d1eee9ecb318f8"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\inputs.json",
|
||||
"path": "docs/desktop-host-f-first-source/007-inputs.json",
|
||||
"bytes": 56446,
|
||||
"sha256": "7e97053b50a034ad24379657759ab712e22563f081a3a7f5f5e3fa3fc9e0de1f"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\install.log",
|
||||
"path": "docs/desktop-host-f-first-source/008-install-log.txt",
|
||||
"bytes": 25,
|
||||
"sha256": "3b816a4ec5d5b7dc15d32b8e938b4c50a0085fe24c7768bbc9723314c1ba6539"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\build.log",
|
||||
"path": "docs/desktop-host-f-first-source/009-build-log.txt",
|
||||
"bytes": 685,
|
||||
"sha256": "8c346201fb678d538cf68be99cc3216271f9a64369640ee52e20994cfc75d388"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\rea.log",
|
||||
"path": "docs/desktop-host-f-first-source/010-rea-log.txt",
|
||||
"bytes": 926,
|
||||
"sha256": "ae7623beecf981b8050a77370a1c6d728afe37254e52b076f2471d984b9dc540"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\engines.log",
|
||||
"path": "docs/desktop-host-f-first-source/011-engines-log.txt",
|
||||
"bytes": 399,
|
||||
"sha256": "c55cbd5801403ec0e519cb840d5743fcb25f29920a826a123519308c37d14c8b"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\browser.log",
|
||||
"path": "docs/desktop-host-f-first-source/012-browser-log.txt",
|
||||
"bytes": 1254,
|
||||
"sha256": "4979439f4572c9fb6d5cdd1edbbe19fa03487d5b57a7de28d17bd8b6d384e922"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\controlled-engine.log",
|
||||
"path": "docs/desktop-host-f-first-source/013-controlled-engine-log.txt",
|
||||
"bytes": 826,
|
||||
"sha256": "937952604e765d4ac879ecc5d844d068b6c0befaa17b3b0f2508e9b41be28ff5"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\tests.tap",
|
||||
"path": "docs/desktop-host-f-first-source/014-tests.tap",
|
||||
"bytes": 131942,
|
||||
"sha256": "0723f2da017b3f8313beefe4c7e1677db7240f27b1db5a4a44b25013474f48d8"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c\\desktop-window.log",
|
||||
"path": "docs/desktop-host-f-first-source/015-desktop-window-log.txt",
|
||||
"bytes": 3766,
|
||||
"sha256": "330c69ee34a719ceb60ff2ebc370384c0f520c5ed83557629542d3d27444b9c7"
|
||||
},
|
||||
{
|
||||
"source": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-latest.json",
|
||||
"path": "docs/desktop-host-f-first-source/016-desktop-window-latest.json",
|
||||
"bytes": 4709,
|
||||
"sha256": "e5d9ccb2b408d7c466c7e0fac83678126adbb13f0b2bbe6db3e6d8edb1a2f0ce"
|
||||
}
|
||||
],
|
||||
"scope": "Original completed first independent source acceptance. Offline install/build/REA/SDK/Edge/controlled delivery and 484 tests passed; actual shipped Electron failed. This original candidate is not deployed; failure result and all eight original stage logs are preserved unchanged."
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
* -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
*.txt binary
|
||||
*.tap binary
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,64 @@
|
||||
{"sourceRoot":"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330","directory":"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\package-validation-df3be9f3-e226-4d3a-bbd2-6da692c4ba2c","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: tests
|
||||
Source package: actual contained Electron window
|
||||
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 window failed (1): node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
electron.launch: Process failed to launch!
|
||||
Call log:
|
||||
[2m - <launching> "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\runtime\electron\electron.exe" "--inspect=0" "--remote-debugging-port=0" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\dist-desktop\main.cjs" "--app-root" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330" "--data-root" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\.qa\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\data" "--node" "D:\Ai-project\REA逆向\tools\node-v24.22.1-win-x64\node.exe" "--port" "57219" "--hidden-window"[22m
|
||||
[2m - <launched> pid=44088[22m
|
||||
[2m - [pid=44088][out][22m
|
||||
[2m - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging[22m
|
||||
[2m - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - [pid=44088][err] Debugger attached.[22m
|
||||
[2m - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=[22m
|
||||
[2m - [pid=44088] <kill>[22m
|
||||
[2m - [pid=44088] <will force kill>[22m
|
||||
[2m - [pid=44088] <process did exit: exitCode=1, signal=null>[22m
|
||||
[2m - [pid=44088] starting temporary directories cleanup[22m
|
||||
[2m - [pid=44088] finished temporary directories cleanup[22m
|
||||
|
||||
at async launch (D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\scripts\verify-desktop-window.mjs:33:19)
|
||||
at async file:///D:/AWQA15/source-check-470b8ef7b8594a39bcd849eb5b930cb9/Agent-Workbench-1.15.0-source-20261031035920330/scripts/verify-desktop-window.mjs:51:28 {
|
||||
log: [
|
||||
' - <launching> "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\runtime\\electron\\electron.exe" "--inspect=0" "--remote-debugging-port=0" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\dist-desktop\\main.cjs" "--app-root" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330" "--data-root" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\\data" "--node" "D:\\Ai-project\\REA逆向\\tools\\node-v24.22.1-win-x64\\node.exe" "--port" "57219" "--hidden-window"',
|
||||
' - <launched> pid=44088',
|
||||
' - [pid=44088][out]',
|
||||
' - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging',
|
||||
' - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - [pid=44088][err] Debugger attached.',
|
||||
' - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=',
|
||||
' - [pid=44088] <kill>',
|
||||
' - [pid=44088] <will force kill>',
|
||||
' - [pid=44088] <process did exit: exitCode=1, signal=null>',
|
||||
' - [pid=44088] starting temporary directories cleanup',
|
||||
' - [pid=44088] finished temporary directories cleanup'
|
||||
],
|
||||
name: 'Error'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
|
||||
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
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.15.0",
|
||||
"testedAt": "2026-10-31T04:02:11.203143+00:00",
|
||||
"archives": [
|
||||
{
|
||||
"kind": "portable",
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-win-x64-20261031035920330.zip",
|
||||
"files": 11837,
|
||||
"crcPassed": true,
|
||||
"manifestAndDirectoryMatch": true,
|
||||
"sha256": "3eb57efde6270bf9332a7f80a52d7f5994fd0d4df5b0ef64615de55c0339d4c3"
|
||||
},
|
||||
{
|
||||
"kind": "source",
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-source-20261031035920330.zip",
|
||||
"files": 12112,
|
||||
"crcPassed": true,
|
||||
"manifestAndDirectoryMatch": true,
|
||||
"sha256": "4ce62d9d13e73378dbc1e49423a14a4fc0abf52619223ce8f6b83dfb29511d5e"
|
||||
}
|
||||
],
|
||||
"extractionRoot": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-win-x64-20261031035920330",
|
||||
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-source-20261031035920330",
|
||||
"portable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-win-x64-20261031035920330.zip",
|
||||
"bytes": 266461737,
|
||||
"sha256": "3eb57efde6270bf9332a7f80a52d7f5994fd0d4df5b0ef64615de55c0339d4c3"
|
||||
},
|
||||
"source": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-source-20261031035920330.zip",
|
||||
"bytes": 266663264,
|
||||
"sha256": "4ce62d9d13e73378dbc1e49423a14a4fc0abf52619223ce8f6b83dfb29511d5e"
|
||||
},
|
||||
"installer": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.15.0-win-x64-20261031035920330-Setup.exe",
|
||||
"bytes": 235986778,
|
||||
"sha256": "7a763a5b294abf33f400ddb249c7c301f3f2703ae7b8a84f0ecf269a2fba9ae2",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-6eb61977-efbb-4fd0-9461-d23d78b824d7\\installer.iss",
|
||||
"version": "1.15.0",
|
||||
"candidateDirectory": "Agent-Workbench-1.15.0-win-x64-20261031035920330",
|
||||
"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": 11837,
|
||||
"licenseTexts": 86,
|
||||
"browserRuntime": {
|
||||
"playwrightVersion": "1.64.1",
|
||||
"packages": [
|
||||
{
|
||||
"name": "playwright",
|
||||
"version": "1.64.1",
|
||||
"files": 60
|
||||
},
|
||||
{
|
||||
"name": "playwright-core",
|
||||
"version": "1.64.1",
|
||||
"files": 115
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
|
||||
added 88 packages in 7s
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
> local-agent-workbench@1.15.0 build
|
||||
> tsc --noEmit && vite build && node scripts/build-server.mjs
|
||||
|
||||
[36mvite v7.3.7 [32mbuilding client environment for production...[36m[39m
|
||||
transforming...
|
||||
[32m✓[39m 1718 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
[2mdist-client/[22m[32mindex.html [39m[1m[2m 0.50 kB[22m[1m[22m[2m │ gzip: 0.37 kB[22m
|
||||
[2mdist-client/[22m[35massets/index-CxHXL0MO.css [39m[1m[2m130.90 kB[22m[1m[22m[2m │ gzip: 25.10 kB[22m
|
||||
[2mdist-client/[22m[36massets/index-DluFw6fs.js [39m[1m[2m496.30 kB[22m[1m[22m[2m │ gzip: 146.12 kB[22m
|
||||
[32m✓ built in 1.44s[39m
|
||||
Server bundle built.
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.15.0","directory":"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\rea-integration-57deb48a-0e6c-464c-a513-2d80b63c9838","results":[{"operation":"javascript","evidenceId":"ev_bf828fce01438fcdb559984718fdff6a990f8f1d2d441d72bba047966576aecc","targetSha256":"a0ddec479a18fa857c99b0adb8d609cc1ef99af2b83a2f1623ba129c9f826eb8","advertisedTools":229,"rootExited":true},{"operation":"pe-imports","evidenceId":"ev_38f79a8ad94f780fceb46df01e6401d14f56bd52060d6c06ac74586565e15a6a","targetSha256":"7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973","advertisedTools":229,"rootExited":true},{"operation":"pe-resources","evidenceId":"ev_9bd7b2c222c2e6aab6bc7bb39e0ad3796988c2c2c0e67bd4a92cf06b0fa03876","targetSha256":"7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973","advertisedTools":229,"rootExited":true}]}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.15.0","directory":"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\native-engine-a63c75bc-d649-4a50-a956-eade497b851e","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.15.0","directory":"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\browser-native-bd7a5bea-ca75-4087-86ea-c9efb7389201","results":[{"jobId":"08a03d94-ca22-40fe-86cd-25e1587264d6","taskId":"ea7bd1e8-5917-4714-bc42-536f3527c51d","viewport":{"width":1280,"height":900},"status":"passed","assertions":{"total":3,"passed":3,"failed":0},"resultSha256":"8c1bd10644aefbd31a7b5b3c31f68e88f66ebdea8570e1fb2a29d0a827416e84","buildSha256":"1128c86f9108e72bc1ada18b7c48c9f865283f46d5e530b99caa04d7507f46cd","screenshotSha256":"a0b9187034642bb65372f74db669b60f07c0888d7ce86deb60a4a202b505ca54","browserExited":true,"reusedOriginalJob":true},{"jobId":"e3b109dd-57b0-4fc2-a820-6b97adaa0c60","taskId":"ea7bd1e8-5917-4714-bc42-536f3527c51d","viewport":{"width":390,"height":844},"status":"passed","assertions":{"total":3,"passed":3,"failed":0},"resultSha256":"7ef4974ec179ba502376168ff94af45243f2df71f954bb58525b189f873ab3d7","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-OJ3oo2
|
||||
{"success":true,"version":"1.15.0","directory":"C:\\Users\\wangy\\AppData\\Local\\Temp\\awb-controlled-OJ3oo2","cases":4,"rootExited":true,"fixtureModelRequests":7,"realModelRequests":0}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,43 @@
|
||||
node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
electron.launch: Process failed to launch!
|
||||
Call log:
|
||||
[2m - <launching> "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\runtime\electron\electron.exe" "--inspect=0" "--remote-debugging-port=0" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\dist-desktop\main.cjs" "--app-root" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330" "--data-root" "D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\.qa\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\data" "--node" "D:\Ai-project\REA逆向\tools\node-v24.22.1-win-x64\node.exe" "--port" "57219" "--hidden-window"[22m
|
||||
[2m - <launched> pid=44088[22m
|
||||
[2m - [pid=44088][out][22m
|
||||
[2m - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging[22m
|
||||
[2m - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5[22m
|
||||
[2m - [pid=44088][err] Debugger attached.[22m
|
||||
[2m - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=[22m
|
||||
[2m - [pid=44088] <kill>[22m
|
||||
[2m - [pid=44088] <will force kill>[22m
|
||||
[2m - [pid=44088] <process did exit: exitCode=1, signal=null>[22m
|
||||
[2m - [pid=44088] starting temporary directories cleanup[22m
|
||||
[2m - [pid=44088] finished temporary directories cleanup[22m
|
||||
|
||||
at async launch (D:\AWQA15\source-check-470b8ef7b8594a39bcd849eb5b930cb9\Agent-Workbench-1.15.0-source-20261031035920330\scripts\verify-desktop-window.mjs:33:19)
|
||||
at async file:///D:/AWQA15/source-check-470b8ef7b8594a39bcd849eb5b930cb9/Agent-Workbench-1.15.0-source-20261031035920330/scripts/verify-desktop-window.mjs:51:28 {
|
||||
log: [
|
||||
' - <launching> "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\runtime\\electron\\electron.exe" "--inspect=0" "--remote-debugging-port=0" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\dist-desktop\\main.cjs" "--app-root" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330" "--data-root" "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\\data" "--node" "D:\\Ai-project\\REA逆向\\tools\\node-v24.22.1-win-x64\\node.exe" "--port" "57219" "--hidden-window"',
|
||||
' - <launched> pid=44088',
|
||||
' - [pid=44088][out]',
|
||||
' - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging',
|
||||
' - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5',
|
||||
' - [pid=44088][err] Debugger attached.',
|
||||
' - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=',
|
||||
' - [pid=44088] <kill>',
|
||||
' - [pid=44088] <will force kill>',
|
||||
' - [pid=44088] <process did exit: exitCode=1, signal=null>',
|
||||
' - [pid=44088] starting temporary directories cleanup',
|
||||
' - [pid=44088] finished temporary directories cleanup'
|
||||
],
|
||||
name: 'Error'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"success": false,
|
||||
"root": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33",
|
||||
"appRoot": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330",
|
||||
"dataRoot": "D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\\data",
|
||||
"stage": "start",
|
||||
"results": [],
|
||||
"errors": [],
|
||||
"requests": [],
|
||||
"message": "electron.launch: Process failed to launch!\nCall log:\n\u001b[2m - <launching> \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\runtime\\electron\\electron.exe\" \"--inspect=0\" \"--remote-debugging-port=0\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\dist-desktop\\main.cjs\" \"--app-root\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\" \"--data-root\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\\data\" \"--node\" \"D:\\Ai-project\\REA逆向\\tools\\node-v24.22.1-win-x64\\node.exe\" \"--port\" \"57219\" \"--hidden-window\"\u001b[22m\n\u001b[2m - <launched> pid=44088\u001b[22m\n\u001b[2m - [pid=44088][out]\u001b[22m\n\u001b[2m - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging\u001b[22m\n\u001b[2m - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - [pid=44088][err] Debugger attached.\u001b[22m\n\u001b[2m - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=\u001b[22m\n\u001b[2m - [pid=44088] <kill>\u001b[22m\n\u001b[2m - [pid=44088] <will force kill>\u001b[22m\n\u001b[2m - [pid=44088] <process did exit: exitCode=1, signal=null>\u001b[22m\n\u001b[2m - [pid=44088] starting temporary directories cleanup\u001b[22m\n\u001b[2m - [pid=44088] finished temporary directories cleanup\u001b[22m\n",
|
||||
"stack": "electron.launch: Process failed to launch!\nCall log:\n\u001b[2m - <launching> \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\runtime\\electron\\electron.exe\" \"--inspect=0\" \"--remote-debugging-port=0\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\dist-desktop\\main.cjs\" \"--app-root\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\" \"--data-root\" \"D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\.qa\\desktop-window-4e61fa7f-69b6-443c-adba-490df803ea33\\data\" \"--node\" \"D:\\Ai-project\\REA逆向\\tools\\node-v24.22.1-win-x64\\node.exe\" \"--port\" \"57219\" \"--hidden-window\"\u001b[22m\n\u001b[2m - <launched> pid=44088\u001b[22m\n\u001b[2m - [pid=44088][out]\u001b[22m\n\u001b[2m - [pid=44088][err] Debugger listening on ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - [pid=44088][err] For help, see: https://nodejs.org/learn/getting-started/debugging\u001b[22m\n\u001b[2m - <ws connecting> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - <ws connected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5\u001b[22m\n\u001b[2m - [pid=44088][err] Debugger attached.\u001b[22m\n\u001b[2m - <ws disconnected> ws://127.0.0.1:58838/eabfe04a-eb46-4b75-8173-d4d3f2fedab5 code=1006 reason=\u001b[22m\n\u001b[2m - [pid=44088] <kill>\u001b[22m\n\u001b[2m - [pid=44088] <will force kill>\u001b[22m\n\u001b[2m - [pid=44088] <process did exit: exitCode=1, signal=null>\u001b[22m\n\u001b[2m - [pid=44088] starting temporary directories cleanup\u001b[22m\n\u001b[2m - [pid=44088] finished temporary directories cleanup\u001b[22m\n\n at async launch (D:\\AWQA15\\source-check-470b8ef7b8594a39bcd849eb5b930cb9\\Agent-Workbench-1.15.0-source-20261031035920330\\scripts\\verify-desktop-window.mjs:33:19)\n at async file:///D:/AWQA15/source-check-470b8ef7b8594a39bcd849eb5b930cb9/Agent-Workbench-1.15.0-source-20261031035920330/scripts/verify-desktop-window.mjs:51:28",
|
||||
"native": false
|
||||
}
|
||||
@@ -0,0 +1,208 @@
|
||||
TAP version 13
|
||||
# Subtest: engine detection seals the actual CLI, SDK, profile and Node and rejects mixed versions without launch
|
||||
ok 1 - engine detection seals the actual CLI, SDK, profile and Node and rejects mixed versions without launch
|
||||
---
|
||||
duration_ms: 1572.3025
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: owned engine probe waits for real ready identity, verifies six native responses and saves immutable task evidence
|
||||
ok 2 - owned engine probe waits for real ready identity, verifies six native responses and saves immutable task evidence
|
||||
---
|
||||
duration_ms: 2190.5202
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an invalid startup nonce is rejected before initialize and preserves the process close and partial report
|
||||
ok 3 - an invalid startup nonce is rejected before initialize and preserves the process close and partial report
|
||||
---
|
||||
duration_ms: 1533.2212
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: SDK identity and session directory mismatches retain raw responses and never become verified
|
||||
ok 4 - SDK identity and session directory mismatches retain raw responses and never become verified
|
||||
---
|
||||
duration_ms: 5009.9958
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cancel during a pending initialize closes only the owned process without sending an unsupported MCP cancellation
|
||||
ok 5 - cancel during a pending initialize closes only the owned process without sending an unsupported MCP cancellation
|
||||
---
|
||||
duration_ms: 1567.6336
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cancel before readiness sends no protocol request and a user retry creates a different process and record
|
||||
ok 6 - cancel before readiness sends no protocol request and a user retry creates a different process and record
|
||||
---
|
||||
duration_ms: 1973.2373
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source or scratch changes and unexpected model traffic fail after preserving the actual observed result
|
||||
ok 7 - source or scratch changes and unexpected model traffic fail after preserving the actual observed result
|
||||
---
|
||||
duration_ms: 4875.9553
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: unowned idle notifications stay quarantined and server requests receive a rejection without granting operations
|
||||
ok 8 - unowned idle notifications stay quarantined and server requests receive a rejection without granting operations
|
||||
---
|
||||
duration_ms: 2762.6046
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: engine probe environment excludes parent secrets and NODE_OPTIONS while preserving operating system paths
|
||||
ok 9 - engine probe environment excludes parent secrets and NODE_OPTIONS while preserving operating system paths
|
||||
---
|
||||
duration_ms: 1291.8626
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: foreign sessions and altered reports or task bindings cannot reuse verified engine evidence
|
||||
ok 10 - foreign sessions and altered reports or task bindings cannot reuse verified engine evidence
|
||||
---
|
||||
duration_ms: 1638.7162
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: restart never replays an active engine check or stops a historical PID, and keeps prior task state
|
||||
ok 11 - restart never replays an active engine check or stops a historical PID, and keeps prior task state
|
||||
---
|
||||
duration_ms: 1835.1335
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: model argument validation and runtime activity do not grant external engine prompt or project execution
|
||||
ok 12 - model argument validation and runtime activity do not grant external engine prompt or project execution
|
||||
---
|
||||
duration_ms: 859.7965
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a follow-up question receives the actual failed engine check from its original Task and keeps its report unchanged
|
||||
ok 13 - a follow-up question receives the actual failed engine check from its original Task and keeps its report unchanged
|
||||
---
|
||||
duration_ms: 2534.6201
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
|
||||
ok 14 - two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
|
||||
---
|
||||
duration_ms: 1352.5938
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: incomplete, unsupported, relative and oversized sources cannot enable the experiment
|
||||
ok 15 - incomplete, unsupported, relative and oversized sources cannot enable the experiment
|
||||
---
|
||||
duration_ms: 1055.5124
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
|
||||
ok 16 - invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
|
||||
---
|
||||
duration_ms: 2631.8242
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source edits between detection and plan are rejected without creating a parent Task
|
||||
ok 17 - source edits between detection and plan are rejected without creating a parent Task
|
||||
---
|
||||
duration_ms: 2176.0754
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source edits after sealing cannot launch a child and do not reset its cumulative budget
|
||||
ok 18 - source edits after sealing cannot launch a child and do not reset its cumulative budget
|
||||
---
|
||||
duration_ms: 7867.1715
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
|
||||
ok 19 - literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
|
||||
---
|
||||
duration_ms: 24017.2698
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source changes after a model response stop before any native tool is accepted, retaining the actual usage once
|
||||
ok 20 - source changes after a model response stop before any native tool is accepted, retaining the actual usage once
|
||||
---
|
||||
duration_ms: 8227.9167
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source changes while approval is pending invalidate the old permission before an engineering check starts
|
||||
ok 21 - source changes while approval is pending invalidate the old permission before an engineering check starts
|
||||
---
|
||||
duration_ms: 10703.9141
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
|
||||
ok 22 - altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
|
||||
---
|
||||
duration_ms: 1732.6069
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
|
||||
ok 23 - the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
|
||||
---
|
||||
duration_ms: 1660.4912
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a missing or duplicated experimental section in the actual input is rejected before any model dispatch
|
||||
ok 24 - a missing or duplicated experimental section in the actual input is rejected before any model dispatch
|
||||
---
|
||||
duration_ms: 15484.8148
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: experimental prompt overhead still participates in the original complete-input budget guard
|
||||
ok 25 - experimental prompt overhead still participates in the original complete-input budget guard
|
||||
---
|
||||
duration_ms: 7530.951
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source detection HTTP remains local-authenticated and read-only with no configured model requests
|
||||
ok 26 - source detection HTTP remains local-authenticated and read-only with no configured model requests
|
||||
---
|
||||
duration_ms: 1733.9798
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an installed app outside the source drive resolves registered SDK and Purge through actual input verification
|
||||
ok 27 - an installed app outside the source drive resolves registered SDK and Purge through actual input verification
|
||||
---
|
||||
duration_ms: 826.6132
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source
|
||||
ok 28 - standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source
|
||||
---
|
||||
duration_ms: 732.9515
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: registered hints keep explicit roots, environment and existing app-relative candidates in their original priority
|
||||
ok 29 - registered hints keep explicit roots, environment and existing app-relative candidates in their original priority
|
||||
---
|
||||
duration_ms: 932.5346
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates
|
||||
ok 30 - unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates
|
||||
---
|
||||
duration_ms: 700.5717
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source
|
||||
ok 31 - oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source
|
||||
---
|
||||
duration_ms: 652.1831
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a linked registry directory is rejected without reading or deleting its external source
|
||||
ok 32 - a linked registry directory is rejected without reading or deleting its external source
|
||||
---
|
||||
duration_ms: 647.4719
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: matching research declarations do not replace actual installed version and critical-source checks
|
||||
ok 33 - matching research declarations do not replace actual installed version and critical-source checks
|
||||
---
|
||||
duration_ms: 767.5801
|
||||
type: 'test'
|
||||
...
|
||||
1..33
|
||||
# tests 33
|
||||
# suites 0
|
||||
# pass 33
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 86302.5805
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"success": true,
|
||||
"originalRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
|
||||
"relocatedRoot": "C:\\Users\\wangy\\AppData\\Local\\Temp\\awb-source-relocation-a428065e-080c-47de-8472-19d3b443135b",
|
||||
"registerSha256": "0737e1bc7b9706a27719a68f727e5f0b02672daff4dd3b2e0dbe19ee357f5857",
|
||||
"original": {
|
||||
"engine": {
|
||||
"status": "available",
|
||||
"root": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness",
|
||||
"version": "0.2.1-rc.2",
|
||||
"identitySha256": "65483d7f8aa644d890100a22bc52555ce91c009ba2d213b510f3da1a9ede7ff3"
|
||||
},
|
||||
"purge": {
|
||||
"status": "available",
|
||||
"root": "D:\\Ai-project\\REA逆向\\dsh-purge-1.1.78-windows\\source\\upstream",
|
||||
"version": "1.1.78",
|
||||
"identitySha256": "5634a28a0cf09e2ce017882a15eeaaa9c598d9306920fec46d717183b9d0e6e7"
|
||||
}
|
||||
},
|
||||
"relocated": {
|
||||
"engine": {
|
||||
"status": "available",
|
||||
"root": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness",
|
||||
"version": "0.2.1-rc.2",
|
||||
"identitySha256": "65483d7f8aa644d890100a22bc52555ce91c009ba2d213b510f3da1a9ede7ff3"
|
||||
},
|
||||
"purge": {
|
||||
"status": "available",
|
||||
"root": "D:\\Ai-project\\REA逆向\\dsh-purge-1.1.78-windows\\source\\upstream",
|
||||
"version": "1.1.78",
|
||||
"identitySha256": "5634a28a0cf09e2ce017882a15eeaaa9c598d9306920fec46d717183b9d0e6e7"
|
||||
}
|
||||
},
|
||||
"scope": "Actual installed external SDK and Purge resolved from a separate C: app folder using the original register bytes and no two source environment overrides. All real critical-file identities match the original D: resolution. No SDK/plugin launch or model/user-data modification."
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
## 2026-10-31 1.15 Windows桌面发行阶段
|
||||
|
||||
- 首轮源码76897正常结束exit1:484/484完整回归通过,实际随包Electron启动失败,八阶段原日志/输入/结果16份原字节封存。实际两运行库SHA只差default_app.asar,缺失版exit1/完整版自有appReady+exit0且原源码现场保持;修复源码保留固定loader。安装来源新增受限登记候选,7/7边界与C盘实际SDK/Purge身份复验、重建通过;相关引擎回归运行中,新冻结/最终源码/安装/便携/保留状态正式升级待完成。原UI98份已封存并提交be32951,正式1.14/PID23172保持。
|
||||
|
||||
- F接续c5c8a84,358输入/12构建/40基准保持。首轮历史UI23类179组、原日志/PNG已按原字节封存到desktop-host-f-first-all-ui-evidence;首个不可变20261031035920330归档/独立解压通过。源码会话76897已完成离线安装/重建/REA/SDK/Edge/受控工程,完整回归与实际Electron/三工程尚未结束,不计整轮通过。只读确认安装到C盘后已登记D盘SDK/Purge来源自动定位失效,保存原复现,待原轮结束后修复并新候选重验。正式1.14/PID23172/原内存连接保持,真实推理0请求。
|
||||
|
||||
## 2026-10-31 1.14 受控外部引擎阶段
|
||||
|
||||
@@ -32,8 +32,11 @@ export function buildNativeLauncher(root, output) {
|
||||
fs.writeFileSync(recordFile, JSON.stringify(record, null, 2)); return record;
|
||||
}
|
||||
export function copyDesktopBundle(root, output, plan, { source = false, launcher = null } = {}) {
|
||||
if (source && digest(path.join(plan.directory, 'resources/default_app.asar')) !== 'eac55d6cfcf4eab7e31a45356567f549ef7eb669e3699226b48a8492ad34f510') {
|
||||
throw new Error('The source Electron runtime requires its fixed default application loader.');
|
||||
}
|
||||
const destination = path.join(output, source ? 'runtime/electron' : 'desktop');
|
||||
fs.cpSync(plan.directory, destination, { recursive: true, filter: file => path.basename(file) !== 'default_app.asar' });
|
||||
fs.cpSync(plan.directory, destination, { recursive: true, filter: file => source || path.basename(file) !== 'default_app.asar' });
|
||||
if (!source) {
|
||||
fs.renameSync(path.join(destination, 'electron.exe'), path.join(destination, 'AgentWorkbench.exe'));
|
||||
const app = path.join(destination, 'resources/app'); fs.mkdirSync(app, { recursive: true });
|
||||
|
||||
@@ -3,6 +3,7 @@ import path from 'node:path';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { createRequire } from 'node:module';
|
||||
import { engineDigest, engineError, ENGINE_LIMITS } from '../../shared/contracts/engines.mjs';
|
||||
import { registeredSourceRoots } from './registered-sources.mjs';
|
||||
|
||||
export const DEEPSEEK_VERSION = '0.2.1-rc.2';
|
||||
export const DEEPSEEK_PROFILE = 'sdk-minimal';
|
||||
@@ -33,6 +34,7 @@ function candidates(appDirectory) {
|
||||
roots.push(path.join(parent, 'DeepSeek-Harness-Desktop', 'deepseek-harness'));
|
||||
const next = path.dirname(parent); if (next === parent) break; parent = next;
|
||||
}
|
||||
roots.push(...registeredSourceRoots(appDirectory, 'deepseek-harness'));
|
||||
return [...new Set(roots)];
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import path from 'node:path';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { engineError, engineCanonicalDigest } from '../../shared/contracts/engines.mjs';
|
||||
import { engineFileIdentity } from './deepseek-installation.mjs';
|
||||
import { registeredSourceRoots } from './registered-sources.mjs';
|
||||
|
||||
export const PURGE_SOURCE_FILES = Object.freeze(['package.json', 'lib/index.js', 'lib/identity.js', 'lib/core.js',
|
||||
'lib/continue-retry.js', 'lib/capability-protocol.js', 'cordis.patch.yml', 'LICENSE', 'NOTICE']);
|
||||
@@ -23,6 +24,7 @@ function sourceCandidates(appDirectory) {
|
||||
roots.push(path.join(parent, 'dsh-purge-1.1.78-windows/source/upstream'), path.join(parent, 'DeepSeek-Harness-Desktop/plugins/dsh-purge'));
|
||||
const next = path.dirname(parent); if (next === parent) break; parent = next;
|
||||
}
|
||||
roots.push(...registeredSourceRoots(appDirectory, 'purge'));
|
||||
return [...new Set(roots)];
|
||||
}
|
||||
export function resolvePurgeSource(appDirectory = process.cwd(), requestedRoot = undefined) {
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const registryLimit = 128 * 1024;
|
||||
const sources = Object.freeze({
|
||||
'deepseek-harness': [{ id: 'deepseek-harness', version: '0.2.1-rc.2', name: '@deepseek-ai/dsh-root' }],
|
||||
purge: [{ id: 'dsh-purge-standalone', version: '1.1.78', name: 'dsh-purge', nested: true },
|
||||
{ id: 'dsh-purge-desktop', version: '1.1.81', name: 'dsh-purge' }],
|
||||
});
|
||||
const absoluteDirectory = value => typeof value === 'string' && value.length <= 2048 && value === value.trim()
|
||||
&& value.isWellFormed() && !/[\x00-\x1f]/.test(value) && path.isAbsolute(value)
|
||||
&& (process.platform !== 'win32' || /^[a-z]:[\\/]/i.test(value));
|
||||
const samePath = (left, right) => process.platform === 'win32' ? left.toLowerCase() === right.toLowerCase() : left === right;
|
||||
|
||||
function readRegistry(appDirectory) {
|
||||
const directory = path.join(fs.realpathSync.native(appDirectory), 'research'), filename = path.join(directory, 'targets.json');
|
||||
const folder = fs.lstatSync(directory), declared = fs.lstatSync(filename);
|
||||
if (!folder.isDirectory() || folder.isSymbolicLink() || !declared.isFile() || declared.isSymbolicLink()
|
||||
|| declared.size > registryLimit) return null;
|
||||
const descriptor = fs.openSync(filename, 'r');
|
||||
try {
|
||||
const before = fs.fstatSync(descriptor);
|
||||
if (!before.isFile() || before.dev !== declared.dev || before.ino !== declared.ino || before.size > registryLimit) return null;
|
||||
const bytes = Buffer.alloc(registryLimit + 1); let length = 0, count;
|
||||
while (length < bytes.length && (count = fs.readSync(descriptor, bytes, length, bytes.length - length, null)) > 0) length += count;
|
||||
const after = fs.fstatSync(descriptor), current = fs.lstatSync(filename), currentFolder = fs.lstatSync(directory);
|
||||
if (length > registryLimit || length !== before.size || !current.isFile() || current.isSymbolicLink()
|
||||
|| !currentFolder.isDirectory() || currentFolder.isSymbolicLink() || folder.dev !== currentFolder.dev || folder.ino !== currentFolder.ino
|
||||
|| before.dev !== current.dev || before.ino !== current.ino || before.size !== after.size || before.mtimeMs !== after.mtimeMs
|
||||
|| before.ctimeMs !== after.ctimeMs || after.size !== current.size || after.mtimeMs !== current.mtimeMs) return null;
|
||||
const registry = JSON.parse(new TextDecoder('utf8', { fatal: true }).decode(bytes.subarray(0, length)));
|
||||
return registry.schemaVersion === 1 && registry.product === 'Agent Workbench' && Array.isArray(registry.targets)
|
||||
&& registry.targets.length <= 64 ? registry : null;
|
||||
} finally { fs.closeSync(descriptor); }
|
||||
}
|
||||
|
||||
// The research register supplies only local lookup hints. Actual source/version/
|
||||
// critical-input verification and all execution approvals remain in the resolvers.
|
||||
export function registeredSourceRoots(appDirectory, kind) {
|
||||
if (!Object.hasOwn(sources, kind)) return [];
|
||||
try {
|
||||
const registry = readRegistry(appDirectory); if (!registry) return [];
|
||||
const roots = [];
|
||||
for (const source of sources[kind]) {
|
||||
const matches = registry.targets.filter(target => target?.id === source.id);
|
||||
if (matches.length !== 1) continue;
|
||||
const target = matches[0], metadata = source.nested ? (Array.isArray(target.metadata) ? target.metadata[0] : null) : target.metadata;
|
||||
if (target.fixedSourceVersion !== source.version || !absoluteDirectory(target.localRoot) || !metadata || Array.isArray(metadata)
|
||||
|| metadata.name !== source.name || metadata.version !== source.version || !absoluteDirectory(metadata.path)
|
||||
|| path.basename(metadata.path) !== 'package.json') continue;
|
||||
const root = path.resolve(source.nested ? path.dirname(metadata.path) : target.localRoot);
|
||||
if (source.nested) {
|
||||
const relative = path.relative(path.resolve(target.localRoot), root);
|
||||
if (!relative || relative === '..' || relative.startsWith('..' + path.sep) || path.isAbsolute(relative)) continue;
|
||||
} else if (!samePath(path.resolve(metadata.path), path.join(root, 'package.json'))) continue;
|
||||
roots.push(root);
|
||||
}
|
||||
return [...new Set(roots)];
|
||||
} catch { return []; }
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import os from 'node:os';
|
||||
import { fixture } from './helpers.mjs';
|
||||
import { createEngineFixture } from '../scripts/engine-fixtures.mjs';
|
||||
import { createPurgeSource } from './fixtures/purge-source.mjs';
|
||||
import { registeredSourceRoots } from '../src/core/engines/registered-sources.mjs';
|
||||
import { resolveDeepSeekInstallation } from '../src/core/engines/deepseek-installation.mjs';
|
||||
import { resolvePurgeSource } from '../src/core/engines/purge-strategy.mjs';
|
||||
|
||||
function setup(t) {
|
||||
const f = fixture(t), appRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'awb-engine-register-'));
|
||||
const inherited = Object.fromEntries(['AGENT_WORKBENCH_DEEPSEEK_ROOT', 'AGENT_WORKBENCH_PURGE_ROOT'].map(name => [name, process.env[name]]));
|
||||
for (const name of Object.keys(inherited)) delete process.env[name];
|
||||
t.after(() => {
|
||||
for (const [name, value] of Object.entries(inherited)) { if (value === undefined) delete process.env[name]; else process.env[name] = value; }
|
||||
const absolute = path.resolve(appRoot); assert.ok(absolute.startsWith(path.resolve(os.tmpdir()) + path.sep)); assert.match(path.basename(absolute), /^awb-engine-register-/);
|
||||
fs.rmSync(absolute, { recursive: true, force: true });
|
||||
});
|
||||
const sdk = createEngineFixture(path.join(f.root, 'external sdk'));
|
||||
const shell = path.join(f.root, 'external purge shell'), purge178 = createPurgeSource(path.join(shell, 'source/upstream'));
|
||||
const purge181 = createPurgeSource(path.join(f.root, 'external purge desktop'), '1.1.81');
|
||||
const targets = [
|
||||
{ id: 'deepseek-harness', localRoot: sdk, fixedSourceVersion: '0.2.1-rc.2', metadata: { path: path.join(sdk, 'package.json'), name: '@deepseek-ai/dsh-root', version: '0.2.1-rc.2' } },
|
||||
{ id: 'dsh-purge-standalone', localRoot: shell, fixedSourceVersion: '1.1.78', metadata: [{ path: path.join(purge178, 'package.json'), name: 'dsh-purge', version: '1.1.78' }] },
|
||||
{ id: 'dsh-purge-desktop', localRoot: purge181, fixedSourceVersion: '1.1.81', metadata: { path: path.join(purge181, 'package.json'), name: 'dsh-purge', version: '1.1.81' } },
|
||||
];
|
||||
const file = path.join(appRoot, 'research/targets.json'); fs.mkdirSync(path.dirname(file));
|
||||
const write = (next = targets) => fs.writeFileSync(file, JSON.stringify({ schemaVersion: 1, product: 'Agent Workbench', targets: next }));
|
||||
write(); return { ...f, appRoot, sdk, shell, purge178, purge181, targets, file, write };
|
||||
}
|
||||
|
||||
test('an installed app outside the source drive resolves registered SDK and Purge through actual input verification', t => {
|
||||
const f = setup(t), engine = resolveDeepSeekInstallation(f.appRoot), purge = resolvePurgeSource(f.appRoot);
|
||||
assert.equal(engine.status, 'available'); assert.equal(engine.root, f.sdk); assert.equal(engine.inputs.length, 13);
|
||||
assert.equal(purge.status, 'available'); assert.equal(purge.root, f.purge178); assert.equal(purge.inputs.length, 9); assert.equal(purge.defaultEnabled, false);
|
||||
assert.equal(fs.existsSync(path.join(f.sdk, 'wire.jsonl')), false); // Detection never launches the declared SDK or imports throwing Purge code.
|
||||
});
|
||||
|
||||
test('standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source', t => {
|
||||
const f = setup(t); fs.writeFileSync(path.join(f.shell, 'package.json'), '{"name":"installer-shell"}');
|
||||
f.targets[1].metadata.push({ ...f.targets[1].metadata[0], path: path.join(f.purge181, 'package.json') }); f.write();
|
||||
assert.deepEqual(registeredSourceRoots(f.appRoot, 'purge'), [f.purge178, f.purge181]);
|
||||
assert.equal(resolvePurgeSource(f.appRoot).root, f.purge178);
|
||||
fs.unlinkSync(path.join(f.purge178, 'package.json'));
|
||||
const next = resolvePurgeSource(f.appRoot); assert.equal(next.status, 'available'); assert.equal(next.version, '1.1.81'); assert.equal(next.root, f.purge181);
|
||||
});
|
||||
|
||||
test('registered hints keep explicit roots, environment and existing app-relative candidates in their original priority', t => {
|
||||
const f = setup(t), envSdk = createEngineFixture(path.join(f.root, 'env-sdk')), envPurge = createPurgeSource(path.join(f.root, 'env-purge'));
|
||||
const nearbySdk = createEngineFixture(path.join(f.appRoot, 'DeepSeek-Harness-Desktop/deepseek-harness'));
|
||||
const nearbyPurge = createPurgeSource(path.join(f.appRoot, 'dsh-purge-1.1.78-windows/source/upstream'));
|
||||
assert.equal(resolveDeepSeekInstallation(f.appRoot).root, nearbySdk); assert.equal(resolvePurgeSource(f.appRoot).root, nearbyPurge);
|
||||
process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT = envSdk; process.env.AGENT_WORKBENCH_PURGE_ROOT = envPurge;
|
||||
assert.equal(resolveDeepSeekInstallation(f.appRoot).root, envSdk); assert.equal(resolvePurgeSource(f.appRoot).root, envPurge);
|
||||
assert.equal(resolveDeepSeekInstallation(f.appRoot, f.sdk).root, f.sdk); assert.equal(resolvePurgeSource(f.appRoot, f.purge181).root, f.purge181);
|
||||
assert.throws(() => resolveDeepSeekInstallation(f.appRoot, 'relative')); assert.throws(() => resolvePurgeSource(f.appRoot, 'relative'));
|
||||
});
|
||||
|
||||
test('unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates', t => {
|
||||
const f = setup(t), target = f.targets[0];
|
||||
const invalid = [
|
||||
[{ ...target, id: 'arbitrary-engine' }], [target, target], [{ ...target, fixedSourceVersion: '9.9' }],
|
||||
[{ ...target, localRoot: 'relative' }], [{ ...target, metadata: { ...target.metadata, version: '9.9' } }],
|
||||
[{ ...target, metadata: { ...target.metadata, path: path.join(f.purge181, 'package.json') } }],
|
||||
[{ ...target, metadata: { ...target.metadata, name: 'unregistered-package' } }],
|
||||
];
|
||||
for (const value of invalid) { f.write(value); assert.deepEqual(registeredSourceRoots(f.appRoot, 'deepseek-harness'), []); }
|
||||
f.write([{ ...f.targets[1], metadata: [{ ...f.targets[1].metadata[0], path: path.join(f.sdk, 'package.json') }] }]);
|
||||
assert.deepEqual(registeredSourceRoots(f.appRoot, 'purge'), []); assert.deepEqual(registeredSourceRoots(f.appRoot, 'unknown'), []);
|
||||
});
|
||||
|
||||
test('oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source', t => {
|
||||
const f = setup(t);
|
||||
for (const value of [Buffer.alloc(128 * 1024 + 1), Buffer.from('{broken'), Buffer.from([0xff, 0xfe]), JSON.stringify({ schemaVersion: 1, product: 'Agent Workbench', targets: Array(65).fill(f.targets[0]) })]) {
|
||||
fs.writeFileSync(f.file, value); assert.deepEqual(registeredSourceRoots(f.appRoot, 'deepseek-harness'), []);
|
||||
}
|
||||
fs.unlinkSync(f.file); fs.mkdirSync(f.file); assert.deepEqual(registeredSourceRoots(f.appRoot, 'deepseek-harness'), []);
|
||||
});
|
||||
|
||||
test('a linked registry directory is rejected without reading or deleting its external source', t => {
|
||||
const f = setup(t), external = path.join(f.root, 'linked-register'); fs.mkdirSync(external); fs.copyFileSync(f.file, path.join(external, 'targets.json'));
|
||||
fs.unlinkSync(f.file); fs.rmdirSync(path.dirname(f.file)); fs.symlinkSync(external, path.dirname(f.file), process.platform === 'win32' ? 'junction' : 'dir');
|
||||
assert.deepEqual(registeredSourceRoots(f.appRoot, 'deepseek-harness'), []); assert.deepEqual(registeredSourceRoots(f.appRoot, 'purge'), []);
|
||||
assert.equal(fs.existsSync(path.join(external, 'targets.json')), true); fs.unlinkSync(path.dirname(f.file));
|
||||
});
|
||||
|
||||
test('matching research declarations do not replace actual installed version and critical-source checks', t => {
|
||||
const f = setup(t); assert.equal(resolveDeepSeekInstallation(f.appRoot).status, 'available'); assert.equal(resolvePurgeSource(f.appRoot).status, 'available');
|
||||
const cli = path.join(f.sdk, 'apps/cli/package.json'), metadata = JSON.parse(fs.readFileSync(cli)); metadata.version = '9.9'; fs.writeFileSync(cli, JSON.stringify(metadata));
|
||||
assert.equal(resolveDeepSeekInstallation(f.appRoot).status, 'unsupported');
|
||||
fs.unlinkSync(path.join(f.purge178, 'LICENSE')); const purge = resolvePurgeSource(f.appRoot); assert.equal(purge.status, 'unavailable'); assert.equal(purge.root, f.purge178);
|
||||
assert.equal(fs.existsSync(path.join(f.sdk, 'wire.jsonl')), false);
|
||||
});
|
||||
Reference in New Issue
Block a user