docs: seal connection diagnostics Q release and retrospective
@@ -210,3 +210,11 @@ docs/live-delivery-p-evidence/**/*.txt binary
|
||||
docs/live-delivery-p-offline.txt binary
|
||||
docs/live-delivery-p-git-index.txt binary
|
||||
docs/live-delivery-p-index-first.txt binary
|
||||
|
||||
docs/network-q-evidence/** -text -whitespace
|
||||
docs/network-q-evidence/**/*.log binary
|
||||
docs/network-q-evidence/**/*.txt binary
|
||||
docs/network-q-offline.txt binary
|
||||
docs/network-q-git-index.txt binary
|
||||
docs/network-q-release-identity.json -text
|
||||
docs/network-q-index-first-diff.txt binary
|
||||
|
||||
@@ -39,3 +39,5 @@
|
||||
!docs/delivery-integrity-i-evidence/**/*.log
|
||||
!/docs/live-context-o-evidence/**/*.log
|
||||
!/docs/live-delivery-p-evidence/**/*.log
|
||||
|
||||
!/docs/network-q-evidence/**/*.log
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Agent Workbench项目执行规范
|
||||
|
||||
Q已实现所属连接DNS/TCP/TLS有界诊断,1.24.6准备独立发行。69相关、11宿主、14安装/旧版升级和补强4热升级回归通过,新UI9组/历史五类26组通过并回看截图;正式初始61项目77会话/6167记录/13115事件/outbox基线已保存,原PID36552/Provider和Key保持,原生窗口已关闭。诊断无凭据/HTTP/模型调用,只证明端点直连,不认证代理API路线或模型能力。按docs/QA-NETWORK-DIAGNOSTICS-Q.md完成不可变独立重建、安装、正式升级/全原状态、原生入口、封存后再新有界Node,不重跑旧失败。无子代理、不推送。
|
||||
Q已本地交付:1.24.6/source54dbe3d6/候选20261103151145294,所属DNS/TCP/TLS有界诊断,0凭据读取/HTTP/模型调用。69相关、11宿主、14安装旧版升级、4补强热升级、新UI源码/便携/实际安装各9组、五类历史26组、560输入独立重建22/22、三归档/便携、12实际安装和16+9文件流程通过;其中555跟踪输入及5例示dist均独立核对。正式保留原PID36552/Provider/61项目77会话/6167记录/13115事件及outbox,全部原表行/导出/工件和公开模型中心在网页/原生回看后再次精确保持,9229关闭。438份/89228582字节证据封存离线通过,见docs/QA-NETWORK-DIAGNOSTICS-Q.md及docs/network-q-release-identity.json。实际更新677755ms重复核验单列性能。下一新有界预检/Node,不重放旧失败;React/Python/Purge收益和1.25仍按计划。不委派、不提取/复制/重存Key、不推送。
|
||||
|
||||
P已完成新的jojocode5b4/Chat JSON独立实测:预检1请求/112报告tokens/0工具/strict matched;新Node首请求UND_ERR_CONNECT_TIMEOUT,0工具/修改/检查/交付,1未知预留10141,未重试切池或续跑旧Task。两轮12次无HTTP TLS握手11成功/1固定IPv6超时,仅证明观察波动,不是唯一根因或API稳定性证明。正式仍1.24.5/source676103c4/PID36552/原Provider,未改产品或重打包。原59公开项目75导出/3605工件/207原尝试及原行、预算/高性能池按声明核对保持;当前61项目77会话/6167记录/13115事件/outbox/3610工件,新增均归属P。目标连接3→4→5/凭据1,原缺省身份三字段显式恢复record/[]/空串规范化单列;全局/legacy展示修订61→65,9229关闭。75份/55891232字节证据离线通过,见docs/QA-LIVE-DELIVERY-P.md及回顾。下一先所属连接DNS/TCP/TLS诊断开发和独立验证,再新有界Node;不能为通过强制IPv4/关闭证书/扩大预算。真实Node、React/Python、原版Purge收益仍未验收,1.25和更新性能保持计划。不委派子代理、不重启正式进程、不提取/复制/重存Key,不推送。
|
||||
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
# Agent Workbench 更新记录
|
||||
|
||||
## 1.24.6 · 所属连接网络诊断(发行验收中)
|
||||
## 1.24.6 · 所属连接网络诊断(已本地交付)
|
||||
|
||||
- 模型中心新增“连接诊断”,连接卡可直接进入;显示 DNS、TCP、TLS 耗时、地址族和证书结果。
|
||||
- 绑定原连接修订,最多约12秒,一次一项;可停止、刷新、重新打开并查看最近30条历史,重启中断不重放。
|
||||
- 无需模型Key,不发送HTTP或模型请求;代理存在时明确只检查端点直连,不更改模型选线、预算、健康或能力结论。
|
||||
- 诊断纳入宿主停止和升级活动控制,保留证书校验与现有运输参数,不强制IPv4。真实工程交付和Purge收益保持独立验收。
|
||||
|
||||
- 560源码ZIP输入独立重建22/22、三归档/便携、12实际安装与16+9文件操作、正式网页/原生入口及随后全原状态核对通过;保留PID36552/Provider和全部原数据。438份材料离线核验通过,详见docs/QA-NETWORK-DIAGNOSTICS-Q.md。
|
||||
|
||||
## 1.24.5 · 真实任务上下文去重(已本地交付)
|
||||
|
||||
- 完整任务目标在系统请求视图只保留一次,原合同、追加要求、限制与验收条件仍完整保存。
|
||||
|
||||
@@ -19,6 +19,16 @@
|
||||
|
||||
## 发行状态
|
||||
|
||||
1.24.6 进入不可变候选的独立源码重建、归档、便携和实际安装验收。正式升级、升级后全原状态核对、实际入口回看与封存以随后收据为准,未完成项目不提前记通过。
|
||||
1.24.6 已本地交付,source `54dbe3d6fc7b068e37010222a09cff244975b2c0`,候选 `20261103151145294`。正式不可变身份见 [network-q-release-identity.json](network-q-release-identity.json)。
|
||||
|
||||
- 源码 ZIP 的 560 输入独立离线重建,22/22 编译产物完全一致;555 跟踪输入之外的 5 份原示例 `dist` 文件用 ZIP 自带原构建脚本复现,逐 SHA 一致。包未改写。
|
||||
- 三归档、实际便携、12 组隔离安装/更新/故障回滚/重启/卸载及安装后 16 组成果、9 组文件流程通过;新诊断界面在源码、便携和实际安装副本各 9 组通过。
|
||||
- 正式安装保留 PID36552/原 Provider,61 项目、77 会话、6167 记录、13115 事件及 outbox、全部原表行/全导出/3610 工件文件和公开模型中心精确保持。网页桌面/390px、实际原生入口回看后再次核对相同结果,9229 关闭。
|
||||
- 原生启动器首次未及时返回可操作窗口,随后一次清单找到实际 1.24.6;没有重复启动。原生已核对诊断范围、原端点/修订及空历史,未执行远程检查。保留原生窗口供用户查看。
|
||||
- 操作阶段耗时 677755 ms,驱动全程约 697 秒;重复全清单与目录核验已量化,后续单列性能优化。
|
||||
|
||||
438 份、89228582 字节原材料封存于 `docs/network-q-evidence`,清单 SHA-256 为 `35b7ebeca80a056ad72e99dd60b8ca8d726588fd05e4386b2755262cc21def35`。`node scripts/verify-network-q-evidence.mjs` 已离线逐字节核对源码、构建、界面、安装与原状态结果,不重放原驱动;收据 [network-q-offline.txt](network-q-offline.txt)。本地 Git 再逐文件核对索引原字节,不推送远端。
|
||||
|
||||
本阶段配置模型请求为 0。新 Node 完整交付、React/Python 及原版 Purge 收益仍按后续独立预算验收。
|
||||
|
||||
Git收尾:含清单439份/89355230字节在索引中逐SHA与原件一致,无日志漏收。首次diff检查提示封存编译产物的原有空白及一份原源码副本的末尾空行,原输出见[network-q-index-first-diff.txt](network-q-index-first-diff.txt);仅证据目录关闭空白风格检查,原字节未改写,产品源码检查保持。
|
||||
|
||||
@@ -2,14 +2,18 @@
|
||||
|
||||
P 的单次连接超时不能仅凭若干 TLS 成功或一个 IPv6 失败判定唯一根因。Q 将 DNS、TCP、TLS 的可核对结果接到所属连接,保留失败阶段与原修订;API、协议、Key、型号及工程能力继续分别判断。
|
||||
|
||||
开发验收已通过核心、相关模型/宿主/升级回归,以及新界面和五类旧界面。回查截图修正了验收器等待旧结果的竞态,避免“测试通过但没有核对当前结果”。正式基线、不可变构建身份、安装与最终全原状态收据需要完整绑定后才交付。
|
||||
开发验收已通过核心、相关模型/宿主/升级回归,以及新界面和五类旧界面。回查截图修正了验收器等待旧结果的竞态,避免“测试通过但没有核对当前结果”。正式基线、不可变构建身份、安装与最终全原状态已完整绑定。1.24.6/source54dbe3d6完成本地交付,438份证据离线核验通过;原PID/Provider和全部原数据保持。
|
||||
|
||||
后续按以下顺序执行:
|
||||
|
||||
1. 完成 Q 发行、正式原 PID/Provider 升级、原状态复核、网页/原生入口和离线证据核验,本地 Git 收尾。
|
||||
1. Q发行、原PID/Provider升级、原状态复核、网页/原生入口和离线核验已完成;本地Git封存与原字节索引核对作为本轮最后收尾。
|
||||
2. 明确选择已启用连接,先运行所属诊断;代理存在时直连结果只作为范围有限的观察。另建单次有界身份预检,保留请求/返回与用量,不续跑 P/O 旧任务。
|
||||
3. 新 Node 工程保持原九测试与 16K/2048 配置、最多 8 请求/90000 tokens;检查完整修改、测试、审查和 Git 闭环。失败保留,未知用量不补造,不自动增加预算或切池。
|
||||
4. Node 通过再分别做 React/Python,最后执行原版 Purge 的独立 AB/BA。原版已加载与是否带来收益分别判定,停止或失败不记作节省。
|
||||
5. 1.25 的其余能力和完整目录重复核验性能保持计划。先量化更新耗时,不以取消完整性或防篡改校验换取快。
|
||||
|
||||
本阶段不发送配置模型请求;不更改用户当前高性能池或重新启用旧连接,不提取、复制、重存 Key,不推送远端。
|
||||
|
||||
具体回顾:验收器等待旧修订结果的竞态已纠正,最终检查等待修订2和active=0;源码包5份额外示例构建已独立逐SHA复现,不隐去输入差异。正式升级操作677755ms,重复full-manifest和directory-inventory阶段是后续性能审查的实际依据。新功能不证明API稳定性或自主工程收益,旧P/O失败继续保留。
|
||||
|
||||
Git证据回查:439份含清单/89355230字节索引原字节一致,首次diff对原编译空白的提示通过限定证据目录属性解决,没有修剪封存原件。见network-q-git-index.txt及原首检查记录。
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"_approval-presentation-QyCkfhWb.js": {
|
||||
"file": "assets/approval-presentation-QyCkfhWb.js",
|
||||
"name": "approval-presentation"
|
||||
},
|
||||
"index.html": {
|
||||
"file": "assets/desktop-DHz0VY6c.js",
|
||||
"name": "desktop",
|
||||
"src": "index.html",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_approval-presentation-QyCkfhWb.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/desktop-DC8YSCxQ.css"
|
||||
]
|
||||
},
|
||||
"mobile.html": {
|
||||
"file": "assets/mobile-DdtBN08G.js",
|
||||
"name": "mobile",
|
||||
"src": "mobile.html",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_approval-presentation-QyCkfhWb.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/mobile-joLHctQw.css"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="2" y="2" width="60" height="60" rx="14" fill="#154b4a"/><path d="M12 44l8-25h6l8 25h-6l-2-6H18l-2 6zm8-11h5l-2.5-8zm14-14h5l3 17 3-13h5l3 13 3-17h5l-5 25h-6l-2.5-13L45 44h-6z" fill="#fcfdfc"/></svg>
|
||||
|
After Width: | Height: | Size: 268 B |
@@ -0,0 +1,8 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#154b4a" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" /><title>Agent Workbench · 本地编程工作台</title> <script type="module" crossorigin src="/assets/desktop-DHz0VY6c.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/approval-presentation-QyCkfhWb.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/desktop-DC8YSCxQ.css">
|
||||
</head>
|
||||
<body><div id="root"></div></body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
"/assets/approval-presentation-QyCkfhWb.js",
|
||||
"/assets/mobile-DdtBN08G.js",
|
||||
"/assets/mobile-joLHctQw.css"
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><rect width="192" height="192" rx="36" fill="#172b43"/><path d="M42 55h108v82H42z" fill="none" stroke="#f3f6fa" stroke-width="9"/><path d="m60 78 16 18-16 18m32 0h35" fill="none" stroke="#8bd0b9" stroke-width="9" stroke-linecap="square"/></svg>
|
||||
|
After Width: | Height: | Size: 307 B |
@@ -0,0 +1,12 @@
|
||||
const CACHE = 'workbench-mobile-65469da75610f50cf284';
|
||||
const FILES = ["/","/mobile.webmanifest","/mobile-icon.svg","/mobile-touch-icon.png","/assets/approval-presentation-QyCkfhWb.js","/assets/mobile-DdtBN08G.js","/assets/mobile-joLHctQw.css"];
|
||||
self.addEventListener('install', event => event.waitUntil(caches.open(CACHE).then(cache => cache.addAll(FILES)).then(() => self.skipWaiting())));
|
||||
self.addEventListener('activate', event => event.waitUntil(caches.keys().then(names => Promise.all(names.filter(name => name.startsWith('workbench-mobile-') && name !== CACHE).map(name => caches.delete(name)))).then(() => self.clients.claim())));
|
||||
self.addEventListener('fetch', event => {
|
||||
const url = new URL(event.request.url);
|
||||
if (event.request.method !== 'GET' || url.origin !== self.location.origin || url.search || !FILES.includes(url.pathname)) return;
|
||||
event.respondWith(fetch(event.request).then(response => {
|
||||
if (response.ok) { const copy = response.clone(); event.waitUntil(caches.open(CACHE).then(cache => cache.put(event.request, copy))); }
|
||||
return response;
|
||||
}).catch(async () => (await caches.match(event.request)) || Response.error()));
|
||||
});
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /><meta name="theme-color" content="#172b43" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="apple-mobile-web-app-title" content="Workbench" /><link rel="manifest" href="/mobile.webmanifest" /><link rel="icon" type="image/svg+xml" href="/mobile-icon.svg" /><link rel="apple-touch-icon" href="/mobile-touch-icon.png" /><title>Agent Workbench · 手机伴随端</title> <script type="module" crossorigin src="/assets/mobile-DdtBN08G.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/approval-presentation-QyCkfhWb.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/mobile-joLHctQw.css">
|
||||
</head><body><div id="mobile-root"></div></body></html>
|
||||
@@ -0,0 +1 @@
|
||||
{"id":"/","name":"Agent Workbench 手机伴随端","short_name":"Workbench","lang":"zh-CN","start_url":"/","scope":"/","display":"standalone","background_color":"#f1f4f7","theme_color":"#172b43","icons":[{"src":"/mobile-icon.svg","sizes":"any","type":"image/svg+xml","purpose":"any"},{"src":"/mobile-touch-icon.png","sizes":"256x256","type":"image/png","purpose":"any"}]}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
// src/desktop/preload.cjs
|
||||
var { contextBridge, ipcRenderer } = require("electron");
|
||||
contextBridge.exposeInMainWorld("desktopWorkbench", Object.freeze({
|
||||
protocol: "agent-workbench-desktop-v1",
|
||||
status: () => ipcRenderer.invoke("awb:desktop-status"),
|
||||
pickProject: () => ipcRenderer.invoke("awb:desktop-pick-project"),
|
||||
projectFolder: (projectId) => ipcRenderer.invoke("awb:desktop-project-folder", { projectId }),
|
||||
openFilePreview: (input) => ipcRenderer.invoke("awb:desktop-file-preview", input),
|
||||
reviewTask: (input) => ipcRenderer.invoke("awb:desktop-review-task", input),
|
||||
revealFile: (input) => ipcRenderer.invoke("awb:desktop-reveal-file", input),
|
||||
stopHost: () => ipcRenderer.invoke("awb:desktop-stop-host"),
|
||||
browsingLayout: (input) => ipcRenderer.invoke("awb:browsing-layout", input)
|
||||
}));
|
||||
@@ -0,0 +1,453 @@
|
||||
// src/desktop/host-cli.mjs
|
||||
import fs5 from "node:fs";
|
||||
import path6 from "node:path";
|
||||
import os from "node:os";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
// src/core/desktop/host-controller.mjs
|
||||
import fs4 from "node:fs";
|
||||
import path5 from "node:path";
|
||||
import { spawn, execFileSync as execFileSync2 } from "node:child_process";
|
||||
import { randomBytes, randomUUID as randomUUID2 } from "node:crypto";
|
||||
import { setTimeout as delay } from "node:timers/promises";
|
||||
|
||||
// src/shared/contracts/desktop-host.mjs
|
||||
import { createHmac, timingSafeEqual } from "node:crypto";
|
||||
var HOST_PROTOCOL = "agent-workbench-host-v1";
|
||||
var HOST_REGISTRATION_FILE = "host-authority-v1.json";
|
||||
var hostError = (message, code = "HOST_IDENTITY_REJECTED", status = 409) => Object.assign(new Error(message), { code, status });
|
||||
var canonicalHost = (value) => Array.isArray(value) ? value.map(canonicalHost) : value && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonicalHost(value[key])])) : value;
|
||||
function hostProof(identity, challenge, secret) {
|
||||
if (!/^[a-f0-9]{64}$/.test(challenge) || !Buffer.isBuffer(secret) || secret.length !== 32) throw hostError("\u5BBF\u4E3B\u6838\u9A8C\u6311\u6218\u683C\u5F0F\u65E0\u6548\u3002", "HOST_CHALLENGE_INVALID", 400);
|
||||
return createHmac("sha256", secret).update(JSON.stringify(canonicalHost({ identity, challenge }))).digest("hex");
|
||||
}
|
||||
function verifyHostProof(reply, challenge, secret) {
|
||||
if (!reply?.identity || reply.challenge !== challenge || !/^[a-f0-9]{64}$/.test(reply.proof ?? "")) throw hostError("\u5BBF\u4E3B\u6CA1\u6709\u63D0\u4F9B\u5339\u914D\u7684\u5B9E\u4F8B\u6838\u9A8C\u3002");
|
||||
const actual = Buffer.from(reply.proof, "hex"), expected = Buffer.from(hostProof(reply.identity, challenge, secret), "hex");
|
||||
if (!timingSafeEqual(actual, expected)) throw hostError("\u7AEF\u53E3\u54CD\u5E94\u4E0D\u5C5E\u4E8E\u767B\u8BB0\u7684\u6267\u884C\u5BBF\u4E3B\u3002");
|
||||
return reply.identity;
|
||||
}
|
||||
|
||||
// src/core/process-environment.mjs
|
||||
import path from "node:path";
|
||||
function projectEnvironment(extra = {}) {
|
||||
const allowed = /^(path|pathext|systemroot|systemdrive|windir|comspec|temp|tmp|userprofile|homedrive|homepath|home|appdata|localappdata|programfiles(?:\(x86\))?|commonprogramfiles(?:\(x86\))?|lang|lc_all)$/i;
|
||||
const environment = Object.fromEntries(Object.entries(process.env).filter(([name]) => allowed.test(name)));
|
||||
const inheritedPath = Object.entries(environment).find(([name]) => name.toLowerCase() === "path")?.[1] || "";
|
||||
for (const name of Object.keys(environment)) if (name.toLowerCase() === "path") delete environment[name];
|
||||
return { ...environment, PATH: [path.dirname(process.execPath), inheritedPath].filter(Boolean).join(path.delimiter), ...extra };
|
||||
}
|
||||
|
||||
// src/core/desktop/process-identity.mjs
|
||||
import fs2 from "node:fs";
|
||||
import path3 from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { createHash } from "node:crypto";
|
||||
|
||||
// src/core/desktop/file-state.mjs
|
||||
import fs from "node:fs";
|
||||
import path2 from "node:path";
|
||||
import { randomUUID } from "node:crypto";
|
||||
var normalized = (value) => process.platform === "win32" ? value.toLowerCase() : value;
|
||||
var samePath = (a, b) => normalized(path2.resolve(a)) === normalized(path2.resolve(b));
|
||||
function assertLocalTree(absolute, { missing = false } = {}) {
|
||||
const resolved = path2.resolve(absolute), parsed = path2.parse(resolved);
|
||||
let current = parsed.root;
|
||||
const components = resolved.slice(parsed.root.length).split(path2.sep).filter(Boolean);
|
||||
for (const component of components) {
|
||||
if (component.includes(":") || component.includes("\0")) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u683C\u5F0F\u65E0\u6548\u3002");
|
||||
current = path2.join(current, component);
|
||||
let stat;
|
||||
try {
|
||||
stat = fs.lstatSync(current);
|
||||
} catch (cause) {
|
||||
if (missing && cause.code === "ENOENT") return resolved;
|
||||
throw cause;
|
||||
}
|
||||
if (stat.isSymbolicLink() || !samePath(current, fs.realpathSync.native(current))) throw hostError("\u672C\u673A\u72B6\u6001\u4E0D\u63A5\u53D7\u94FE\u63A5\u6216\u91CD\u89E3\u6790\u76EE\u5F55\u3002");
|
||||
if (stat.isFile() && stat.nlink !== 1) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u8DEF\u5F84\u3002");
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
function ownedChild(root, relative, { missing = false } = {}) {
|
||||
if (typeof relative !== "string") throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u65E0\u6548\u3002");
|
||||
assertLocalTree(root);
|
||||
const base = fs.realpathSync.native(root), target = path2.resolve(base, relative);
|
||||
if (path2.isAbsolute(relative) || path2.win32.isAbsolute(relative) || relative.includes("\0") || !normalized(target).startsWith(normalized(base + path2.sep))) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u8D85\u51FA\u6240\u5C5E\u76EE\u5F55\u3002");
|
||||
let existing = target;
|
||||
while (!fs.existsSync(existing)) {
|
||||
if (!missing) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u4E0D\u5B58\u5728\u3002", "HOST_REGISTRATION_MISSING");
|
||||
const parent = path2.dirname(existing);
|
||||
if (parent === existing) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u65E0\u6CD5\u6838\u5BF9\u3002");
|
||||
existing = parent;
|
||||
}
|
||||
const real = fs.realpathSync.native(existing);
|
||||
if (!samePath(base, real) && !normalized(real).startsWith(normalized(base + path2.sep))) throw hostError("\u672C\u673A\u72B6\u6001\u94FE\u63A5\u8D85\u51FA\u6240\u5C5E\u76EE\u5F55\u3002");
|
||||
if (fs.lstatSync(existing).isSymbolicLink()) throw hostError("\u672C\u673A\u72B6\u6001\u4E0D\u63A5\u53D7\u94FE\u63A5\u6216\u91CD\u89E3\u6790\u76EE\u5F55\u3002");
|
||||
const stat = fs.statSync(existing);
|
||||
if (stat.isFile() && stat.nlink !== 1) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u8DEF\u5F84\u3002");
|
||||
return assertLocalTree(target, { missing });
|
||||
}
|
||||
function readState(file, maximum = 4 * 1024 * 1024) {
|
||||
assertLocalTree(file);
|
||||
const stat = fs.lstatSync(file);
|
||||
if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1 || stat.size > maximum) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u683C\u5F0F\u6216\u4F5C\u7528\u8303\u56F4\u65E0\u6548\u3002");
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(file, "utf8").replace(/^\uFEFF/, ""));
|
||||
} catch {
|
||||
throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u635F\u574F\uFF0C\u8BF7\u6838\u5BF9\u539F\u8BB0\u5F55\u3002");
|
||||
}
|
||||
}
|
||||
function writeState(file, value) {
|
||||
assertLocalTree(file, { missing: true });
|
||||
const directory = path2.dirname(file), temporary = path2.join(directory, "." + path2.basename(file) + "-" + randomUUID() + ".tmp");
|
||||
if (fs.existsSync(file)) readState(file);
|
||||
try {
|
||||
const descriptor = fs.openSync(temporary, "wx", 384);
|
||||
try {
|
||||
fs.writeFileSync(descriptor, JSON.stringify(value, null, 2) + "\n");
|
||||
fs.fsyncSync(descriptor);
|
||||
} finally {
|
||||
fs.closeSync(descriptor);
|
||||
}
|
||||
assertLocalTree(file, { missing: true });
|
||||
fs.renameSync(temporary, file);
|
||||
} finally {
|
||||
if (fs.existsSync(temporary)) fs.unlinkSync(temporary);
|
||||
}
|
||||
}
|
||||
|
||||
// src/core/desktop/process-identity.mjs
|
||||
function windowsProcessObservationScript(pid) {
|
||||
if (!Number.isInteger(pid) || pid < 1 || pid > 2147483647) throw hostError("\u5BBF\u4E3BPID\u65E0\u6548\u3002");
|
||||
const query = 'Get-CimInstance Win32_Process -Filter "ProcessId=' + pid + '"';
|
||||
return "$ErrorActionPreference='Stop';$ProgressPreference='SilentlyContinue';[Console]::OutputEncoding=New-Object System.Text.UTF8Encoding($false);$awbProcess=" + query + ';if($null -eq $awbProcess){Write-Output "null";exit 0};try{$awbOwner=Invoke-CimMethod -InputObject $awbProcess -MethodName GetOwnerSid;if($awbOwner.ReturnValue -ne 0 -or -not $awbOwner.Sid){throw "Owner identity unavailable"};}catch{$awbRemaining=' + query + ';if($null -eq $awbRemaining){Write-Output "null";exit 0};throw};[pscustomobject]@{pid=[int]$awbProcess.ProcessId;parentPid=[int]$awbProcess.ParentProcessId;createdAt=$awbProcess.CreationDate.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ");executable=$awbProcess.ExecutablePath;userSid=$awbOwner.Sid}|ConvertTo-Json -Compress';
|
||||
}
|
||||
function observeWindowsProcess(pid) {
|
||||
if (process.platform !== "win32") throw hostError("\u6B64\u684C\u9762\u5BBF\u4E3B\u6838\u9A8C\u9700\u8981Windows\u3002", "HOST_PLATFORM_UNSUPPORTED");
|
||||
const script = windowsProcessObservationScript(pid);
|
||||
try {
|
||||
const shell = path3.join(process.env.SystemRoot || "C:\\Windows", "System32/WindowsPowerShell/v1.0/powershell.exe");
|
||||
const output = execFileSync(
|
||||
shell,
|
||||
["-NoProfile", "-NonInteractive", "-EncodedCommand", Buffer.from(script, "utf16le").toString("base64")],
|
||||
{ windowsHide: true, encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 15e3, maxBuffer: 65536, env: projectEnvironment() }
|
||||
);
|
||||
const value = JSON.parse(output.trim().replace(/^\uFEFF/, ""));
|
||||
if (value === null) return null;
|
||||
if (value.pid !== pid || !Number.isFinite(Date.parse(value.createdAt)) || !/^S-1-\d+(?:-\d+)+$/.test(value.userSid) || !value.executable || !fs2.existsSync(value.executable)) throw new Error("Invalid observation");
|
||||
return { ...value, executable: fs2.realpathSync.native(value.executable) };
|
||||
} catch {
|
||||
throw hostError("\u65E0\u6CD5\u6838\u5BF9Windows\u5BBF\u4E3B\u521B\u5EFA\u3001\u7528\u6237\u6216\u53EF\u6267\u884C\u8EAB\u4EFD\uFF1B\u4E0D\u4F1A\u590D\u7528\u6216\u505C\u6B62\u672A\u77E5\u8FDB\u7A0B\u3002", "HOST_PROCESS_UNVERIFIED");
|
||||
}
|
||||
}
|
||||
function binaryIdentity(file) {
|
||||
assertLocalTree(file);
|
||||
const absolute = fs2.realpathSync.native(file), stat = fs2.lstatSync(absolute);
|
||||
if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1 || stat.size > 256 * 1024 * 1024) throw hostError("\u5BBF\u4E3B\u53EF\u6267\u884C\u6587\u4EF6\u8EAB\u4EFD\u65E0\u6548\u3002");
|
||||
return { path: absolute, bytes: stat.size, sha256: createHash("sha256").update(fs2.readFileSync(absolute)).digest("hex") };
|
||||
}
|
||||
|
||||
// src/core/desktop/app-installation.mjs
|
||||
import fs3 from "node:fs";
|
||||
import path4 from "node:path";
|
||||
import { createHash as createHash2 } from "node:crypto";
|
||||
function inspectHostInstallation(directory, { full = false, onProgress = null } = {}) {
|
||||
assertLocalTree(directory);
|
||||
const root = fs3.realpathSync.native(path4.resolve(directory));
|
||||
if (!fs3.statSync(root).isDirectory()) throw hostError("\u5BBF\u4E3B\u5B89\u88C5\u76EE\u5F55\u65E0\u6548\u3002");
|
||||
const digest = (value) => createHash2("sha256").update(value).digest("hex");
|
||||
const manifestFile = path4.join(root, "MANIFEST.json"), manifest = fs3.existsSync(manifestFile) ? readState(manifestFile, 16 * 1024 * 1024) : null;
|
||||
if (manifest && (manifest.app !== "agent-workbench" || !Array.isArray(manifest.files) || manifest.files.length > 6e4)) throw hostError("\u5BBF\u4E3B\u53D1\u884C\u6E05\u5355\u65E0\u6548\u3002");
|
||||
const version = manifest?.version ?? (fs3.existsSync(path4.join(root, "package.json")) ? readState(path4.join(root, "package.json")).version : null);
|
||||
if (typeof version !== "string" || !/^\d+\.\d+\.\d+$/.test(version)) throw hostError("\u5BBF\u4E3B\u5B89\u88C5\u7248\u672C\u65E0\u6548\u3002");
|
||||
const files = /* @__PURE__ */ new Set(["dist-server/server.mjs", "dist-server/hot-upgrade.mjs", "dist-client/index.html"]);
|
||||
if (!manifest || fs3.existsSync(path4.join(root, "dist-server/host-launcher.mjs"))) files.add("dist-server/host-launcher.mjs");
|
||||
if (fs3.existsSync(path4.join(root, "dist-server/install-manager.mjs"))) files.add("dist-server/install-manager.mjs");
|
||||
for (const relative of ["dist-desktop/main.cjs", "dist-desktop/preload.cjs"]) if (fs3.existsSync(path4.join(root, relative))) files.add(relative);
|
||||
const names = /* @__PURE__ */ new Map();
|
||||
for (const row of manifest?.files ?? []) {
|
||||
if (!row || typeof row.path !== "string" || row.path.includes("\\") || row.path.split("/").includes("..") || names.has(row.path) || !/^[a-f0-9]{64}$/.test(row.sha256 ?? "") || !Number.isSafeInteger(row.bytes) || row.bytes < 0) throw hostError("\u5BBF\u4E3B\u6E05\u5355\u5305\u542B\u91CD\u590D\u6216\u8D8A\u754C\u8F93\u5165\u3002");
|
||||
names.set(row.path, row);
|
||||
if (full || /^(dist-client|dist-server|dist-desktop)\//.test(row.path)) files.add(row.path);
|
||||
}
|
||||
if (!manifest || manifest.kind === "source") for (const entry of fs3.readdirSync(path4.join(root, "dist-client/assets"))) files.add("dist-client/assets/" + entry);
|
||||
const selected = [...files].sort(), totalBytes = selected.reduce((sum, name) => sum + (names.get(name)?.bytes ?? 0), 0);
|
||||
let completedFiles = 0, completedBytes = 0;
|
||||
const report = (currentPath) => onProgress?.({ scope: full ? "full-manifest" : "loaded-inputs", root, totalFiles: selected.length, totalBytes: manifest ? totalBytes : null, completedFiles, completedBytes, currentPath });
|
||||
report(null);
|
||||
const inputs = selected.map((relative) => {
|
||||
const file = ownedChild(root, relative), identity = binaryIdentity(file), declared = names.get(relative);
|
||||
if (manifest?.kind === "portable" && !declared) throw hostError("\u5B9E\u9645\u5BBF\u4E3B\u7A0B\u5E8F\u4E0D\u5728\u539F\u53D1\u884C\u6E05\u5355\u4E2D\u3002");
|
||||
if (declared && (identity.bytes !== declared.bytes || identity.sha256 !== declared.sha256)) throw hostError("\u5B9E\u9645\u5BBF\u4E3B\u7A0B\u5E8F\u4E0E\u539F\u53D1\u884C\u6E05\u5355\u4E0D\u4E00\u81F4\u3002");
|
||||
completedFiles++;
|
||||
completedBytes += identity.bytes;
|
||||
report(relative);
|
||||
return { path: relative, bytes: identity.bytes, sha256: identity.sha256 };
|
||||
});
|
||||
const result = {
|
||||
root,
|
||||
version,
|
||||
kind: manifest?.kind ?? "development-build",
|
||||
manifestSha256: manifest ? digest(fs3.readFileSync(manifestFile)) : null,
|
||||
inputs,
|
||||
verification: full ? "full-manifest" : "loaded-host-and-client-inputs"
|
||||
};
|
||||
return { ...result, identitySha256: digest(JSON.stringify(canonicalHost(result))) };
|
||||
}
|
||||
|
||||
// src/core/desktop/host-controller.mjs
|
||||
var HOST_ENVIRONMENT = Object.freeze(["AGENT_WORKBENCH_DEEPSEEK_ROOT", "AGENT_WORKBENCH_PURGE_ROOT", "AGENT_WORKBENCH_PYTHON_PATH", "AGENT_WORKBENCH_TEST_PYTHON"]);
|
||||
async function jsonResponse(response) {
|
||||
if (!response.ok) throw hostError("\u672C\u673A\u5BBF\u4E3B\u63A5\u53E3\u62D2\u7EDD\u64CD\u4F5C\uFF08HTTP " + response.status + "\uFF09\u3002", "HOST_API_REJECTED", response.status);
|
||||
const chunks = [];
|
||||
let length = 0;
|
||||
for await (const chunk of response.body) {
|
||||
length += chunk.length;
|
||||
if (length > 4 * 1024 * 1024) throw hostError("\u672C\u673A\u5BBF\u4E3B\u54CD\u5E94\u8FC7\u5927\u3002");
|
||||
chunks.push(chunk);
|
||||
}
|
||||
try {
|
||||
return JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
||||
} catch {
|
||||
throw hostError("\u7AEF\u53E3\u672A\u8FD4\u56DE\u6709\u6548\u7684\u5BBF\u4E3B\u534F\u8BAE\u3002");
|
||||
}
|
||||
}
|
||||
var HostController = class {
|
||||
constructor({ appRoot: appRoot2, dataRoot: dataRoot2, port = 4318, nodePath: nodePath2 = null, timeoutMs = 45e3, environment = {} }) {
|
||||
if (!Number.isInteger(port) || port < 1 || port > 65535 || typeof dataRoot2 !== "string" || !path5.isAbsolute(dataRoot2)) throw hostError("\u684C\u9762\u5BBF\u4E3B\u76EE\u5F55\u6216\u7AEF\u53E3\u65E0\u6548\u3002");
|
||||
this.installation = inspectHostInstallation(appRoot2);
|
||||
this.appRoot = this.installation.root;
|
||||
assertLocalTree(dataRoot2, { missing: true });
|
||||
fs4.mkdirSync(dataRoot2, { recursive: true });
|
||||
this.dataRoot = fs4.realpathSync.native(dataRoot2);
|
||||
const bundled = path5.join(this.appRoot, "runtime/node.exe");
|
||||
const executable = nodePath2 ?? (fs4.existsSync(bundled) ? bundled : !process.versions.electron ? process.execPath : null);
|
||||
if (!executable) throw hostError("\u684C\u9762\u5B89\u88C5\u7F3A\u5C11\u72EC\u7ACBNode\u5BBF\u4E3B\u3002");
|
||||
this.node = binaryIdentity(executable);
|
||||
const version = execFileSync2(this.node.path, ["--version"], { encoding: "utf8", windowsHide: true, timeout: 1e4, env: projectEnvironment() }).trim();
|
||||
if (!/^v24\./.test(version)) throw hostError("\u684C\u9762\u5BBF\u4E3B\u9700\u8981\u5DF2\u7ECF\u6838\u9A8C\u7684Node24\u8FD0\u884C\u5668\u3002");
|
||||
this.node.version = version;
|
||||
this.port = port;
|
||||
this.url = "http://127.0.0.1:" + port;
|
||||
this.timeoutMs = Math.min(6e4, Math.max(1e3, timeoutMs));
|
||||
const allowed = new Set(HOST_ENVIRONMENT);
|
||||
if (Object.keys(environment).some((key) => !allowed.has(key) || typeof environment[key] !== "string" || !path5.isAbsolute(environment[key]))) throw hostError("\u5BBF\u4E3B\u542F\u52A8\u53EA\u63A5\u53D7\u5DF2\u58F0\u660E\u7684\u672C\u673A\u8FD0\u884C\u5668\u8DEF\u5F84\u3002");
|
||||
this.environment = environment;
|
||||
}
|
||||
async api(route, { method = "GET", input = null, timeoutMs = 15e3 } = {}) {
|
||||
if (typeof route !== "string" || !route.startsWith("/") || route.startsWith("//")) throw hostError("\u5BBF\u4E3B\u63A5\u53E3\u8DEF\u5F84\u65E0\u6548\u3002");
|
||||
return jsonResponse(await fetch(this.url + "/api" + route, {
|
||||
method,
|
||||
headers: {
|
||||
Connection: "close",
|
||||
...this.token ? { "X-Workbench-Token": this.token } : {},
|
||||
...input ? { "Content-Type": "application/json" } : {}
|
||||
},
|
||||
body: input ? JSON.stringify(input) : void 0,
|
||||
signal: AbortSignal.timeout(timeoutMs)
|
||||
}));
|
||||
}
|
||||
async health() {
|
||||
try {
|
||||
return await this.api("/health", { timeoutMs: 1500 });
|
||||
} catch (cause) {
|
||||
if (cause.cause?.code === "ECONNREFUSED" || cause.cause?.errors?.every((value) => value.code === "ECONNREFUSED")) return null;
|
||||
throw hostError("\u7AEF\u53E3\u88AB\u5360\u7528\u6216\u54CD\u5E94\u65E0\u6CD5\u6838\u5BF9\uFF1B\u4E0D\u4F1A\u542F\u52A8\u53E6\u4E00\u5957\u5BBF\u4E3B\u3002", "HOST_PORT_UNVERIFIED");
|
||||
}
|
||||
}
|
||||
async connect() {
|
||||
const health = await this.health();
|
||||
if (!health) return null;
|
||||
if (health.app !== "agent-workbench" || health.ready !== true || !Number.isInteger(health.pid)) throw hostError("\u7AEF\u53E3\u5C5E\u4E8E\u672A\u77E5\u670D\u52A1\u3002");
|
||||
const bootstrap = await this.api("/bootstrap");
|
||||
if (bootstrap.version !== this.installation.version || typeof bootstrap.token !== "string") throw hostError("\u8FD0\u884C\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u4F7F\u7528\u660E\u786E\u7684\u5347\u7EA7\u6D41\u7A0B\u3002", "HOST_VERSION_MISMATCH");
|
||||
this.token = bootstrap.token;
|
||||
const challenge = randomBytes(32).toString("hex"), reply = await this.api("/host/identity?challenge=" + challenge);
|
||||
ownedChild(this.dataRoot, ".secrets");
|
||||
const registration = readState(ownedChild(this.dataRoot, ".secrets/" + HOST_REGISTRATION_FILE), 16384);
|
||||
if (registration.schema !== 1 || registration.protocol !== HOST_PROTOCOL || !/^[A-Za-z0-9+/]{43}=$/.test(registration.secret ?? "")) throw hostError("\u672C\u673A\u539F\u6CE8\u518C\u683C\u5F0F\u65E0\u6CD5\u6838\u5BF9\u3002");
|
||||
const identity = verifyHostProof(reply, challenge, Buffer.from(registration.secret, "base64"));
|
||||
const actual = observeWindowsProcess(identity.pid), caller = observeWindowsProcess(process.pid);
|
||||
if (!actual || !caller || identity.pid !== health.pid || identity.pid !== registration.pid || identity.createdAt !== actual.createdAt || identity.createdAt !== registration.createdAt || identity.instanceId !== registration.instanceId || identity.ownerId !== registration.ownerId || identity.userSid !== actual.userSid || identity.userSid !== registration.userSid || identity.userSid !== caller.userSid || identity.protocol !== HOST_PROTOCOL || identity.version !== this.installation.version || identity.port !== this.port || !samePath(identity.dataRoot, this.dataRoot) || !samePath(identity.runtimeRoot, this.appRoot) || identity.runtimeIdentity !== this.installation.identitySha256 || !samePath(identity.executable.path, actual.executable) || identity.executable.sha256 !== this.node.sha256 || binaryIdentity(actual.executable).sha256 !== this.node.sha256) throw hostError("\u5B9E\u9645PID\u521B\u5EFA\u3001\u7528\u6237\u3001\u7A0B\u5E8F\u3001\u5B89\u88C5\u6216\u6570\u636E\u76EE\u5F55\u4E0E\u539F\u5BBF\u4E3B\u767B\u8BB0\u4E0D\u4E00\u81F4\u3002");
|
||||
const info = readState(ownedChild(this.dataRoot, "service-info.json"));
|
||||
if (info.pid !== identity.pid || info.instanceId !== identity.instanceId || info.createdAt !== identity.createdAt || info.port !== this.port || info.userSid !== identity.userSid || info.ownerId !== identity.ownerId || info.runtimeIdentity !== identity.runtimeIdentity || !samePath(info.appRoot, identity.appRoot) || !samePath(info.dataRoot, this.dataRoot) || !samePath(info.runtimeRoot, this.appRoot)) throw hostError("\u672C\u673A\u5BBF\u4E3B\u7D22\u5F15\u4E0E\u5B9E\u9645\u5B9E\u4F8B\u4E0D\u4E00\u81F4\u3002");
|
||||
this.identity = identity;
|
||||
return { url: this.url, identity };
|
||||
}
|
||||
async lock(action) {
|
||||
const lockDirectory = ownedChild(this.dataRoot, ".desktop-launch.lock", { missing: true }), nonce = randomUUID2(), observed = observeWindowsProcess(process.pid);
|
||||
const deadline = Date.now() + this.timeoutMs;
|
||||
while (true) {
|
||||
try {
|
||||
fs4.mkdirSync(lockDirectory, { mode: 448 });
|
||||
break;
|
||||
} catch (cause) {
|
||||
if (cause.code !== "EEXIST") throw cause;
|
||||
ownedChild(this.dataRoot, ".desktop-launch.lock");
|
||||
const ownerFile2 = path5.join(lockDirectory, "owner.json");
|
||||
if (fs4.existsSync(ownerFile2)) {
|
||||
ownedChild(this.dataRoot, ".desktop-launch.lock/owner.json");
|
||||
const owner = readState(ownerFile2, 16384);
|
||||
if (!Number.isInteger(owner.pid) || typeof owner.createdAt !== "string" || typeof owner.nonce !== "string") throw hostError("\u542F\u52A8\u9501\u7684\u539F\u8EAB\u4EFD\u65E0\u6CD5\u6838\u5BF9\u3002");
|
||||
const active = observeWindowsProcess(owner.pid);
|
||||
if (active && active.createdAt === owner.createdAt && (owner.userSid !== active.userSid || owner.userSid !== observed.userSid)) throw hostError("\u542F\u52A8\u9501\u4E0D\u5C5E\u4E8E\u5F53\u524DWindows\u7528\u6237\u3002");
|
||||
if (!active || active.createdAt !== owner.createdAt) {
|
||||
if (readState(ownerFile2).nonce !== owner.nonce) continue;
|
||||
const archive = ownedChild(this.dataRoot, ".desktop-launch-stale-" + randomUUID2(), { missing: true });
|
||||
try {
|
||||
fs4.renameSync(lockDirectory, archive);
|
||||
} catch (error) {
|
||||
if (!["ENOENT", "EEXIST"].includes(error.code)) throw error;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
} else if (Date.now() - fs4.statSync(lockDirectory).mtimeMs > 1e4) throw hostError("\u542F\u52A8\u9501\u7F3A\u5C11\u539F\u8BB0\u5F55\uFF0C\u8BF7\u6838\u5BF9\u8BE5\u76EE\u5F55\u3002");
|
||||
if (Date.now() >= deadline) throw hostError("\u6B63\u5728\u7B49\u5F85\u539F\u542F\u52A8\u64CD\u4F5C\uFF0C\u8BF7\u6838\u5BF9\u5F53\u524D\u5BBF\u4E3B\u3002", "HOST_START_PENDING");
|
||||
await delay(100);
|
||||
}
|
||||
}
|
||||
const ownerFile = path5.join(lockDirectory, "owner.json");
|
||||
try {
|
||||
writeState(ownerFile, { schema: 1, pid: process.pid, createdAt: observed.createdAt, userSid: observed.userSid, nonce });
|
||||
return await action();
|
||||
} finally {
|
||||
if (fs4.existsSync(ownerFile) && readState(ownerFile).nonce === nonce) {
|
||||
fs4.unlinkSync(ownerFile);
|
||||
fs4.rmdirSync(lockDirectory);
|
||||
}
|
||||
}
|
||||
}
|
||||
async start() {
|
||||
return this.lock(async () => {
|
||||
const existing = await this.connect();
|
||||
if (existing) return { ...existing, reused: true };
|
||||
const intentFile = ownedChild(this.dataRoot, "desktop-launch-state.json", { missing: true });
|
||||
if (fs4.existsSync(intentFile)) {
|
||||
const intent = readState(intentFile);
|
||||
if (intent.pid && !["exited", "failed"].includes(intent.state)) {
|
||||
const actual = observeWindowsProcess(intent.pid);
|
||||
if (actual && actual.createdAt === intent.createdAt) throw hostError("\u539F\u542F\u52A8\u8FDB\u7A0B\u4ECD\u6D3B\u52A8\u4F46\u6CA1\u6709\u53EF\u6838\u9A8C\u63A5\u53E3\uFF0C\u8BF7\u6838\u5BF9\u539F\u65E5\u5FD7\uFF1B\u4E0D\u4F1A\u518D\u542F\u52A8\u53E6\u4E00\u8FDB\u7A0B\u3002", "HOST_START_UNVERIFIED");
|
||||
}
|
||||
}
|
||||
const logs = ownedChild(this.dataRoot, "logs", { missing: true });
|
||||
if (!fs4.existsSync(logs)) fs4.mkdirSync(logs);
|
||||
const id = randomUUID2(), stdoutPath = path5.join(logs, "desktop-host-" + id + "-stdout.log"), stderrPath = path5.join(logs, "desktop-host-" + id + "-stderr.log");
|
||||
let output, errors, child;
|
||||
try {
|
||||
output = fs4.openSync(stdoutPath, "wx", 384);
|
||||
errors = fs4.openSync(stderrPath, "wx", 384);
|
||||
child = spawn(this.node.path, [ownedChild(this.appRoot, "dist-server/server.mjs")], {
|
||||
cwd: this.appRoot,
|
||||
windowsHide: true,
|
||||
detached: true,
|
||||
env: projectEnvironment({ ...this.environment, AGENT_WORKBENCH_APP_DIR: this.appRoot, AGENT_WORKBENCH_DATA_DIR: this.dataRoot, AGENT_WORKBENCH_PORT: String(this.port) }),
|
||||
stdio: ["ignore", output, errors]
|
||||
});
|
||||
} finally {
|
||||
if (output !== void 0) fs4.closeSync(output);
|
||||
if (errors !== void 0) fs4.closeSync(errors);
|
||||
}
|
||||
let failure = null;
|
||||
child.on("error", (cause) => {
|
||||
failure = cause;
|
||||
});
|
||||
child.unref();
|
||||
const observedChild = child.pid ? observeWindowsProcess(child.pid) : null;
|
||||
writeState(intentFile, {
|
||||
schema: 1,
|
||||
state: observedChild ? "starting" : "failed",
|
||||
id,
|
||||
pid: child.pid ?? null,
|
||||
createdAt: observedChild?.createdAt ?? null,
|
||||
appRoot: this.appRoot,
|
||||
dataRoot: this.dataRoot,
|
||||
port: this.port,
|
||||
stdoutPath,
|
||||
stderrPath
|
||||
});
|
||||
const deadline = Date.now() + this.timeoutMs;
|
||||
while (Date.now() < deadline) {
|
||||
if (failure || child.exitCode !== null) throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u67E5\u770B\u672C\u673A\u542F\u52A8\u8BB0\u5F55\u3002", "HOST_START_FAILED");
|
||||
await delay(100);
|
||||
let health;
|
||||
try {
|
||||
health = await this.health();
|
||||
} catch (cause) {
|
||||
if (cause.code !== "HOST_PORT_UNVERIFIED") throw cause;
|
||||
const waiting = observeWindowsProcess(child.pid);
|
||||
if (!waiting || !observedChild || waiting.createdAt !== observedChild.createdAt || waiting.userSid !== observedChild.userSid || !samePath(waiting.executable, this.node.path)) throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u542F\u52A8\u8FDB\u7A0B\u5DF2\u7ED3\u675F\u6216\u8EAB\u4EFD\u53D8\u5316\uFF0C\u8BF7\u6838\u5BF9\u539F\u65E5\u5FD7\u3002", "HOST_START_FAILED");
|
||||
continue;
|
||||
}
|
||||
if (!health) continue;
|
||||
if (health.pid !== child.pid) throw hostError("\u542F\u52A8\u671F\u95F4\u7AEF\u53E3\u88AB\u5176\u4ED6\u8FDB\u7A0B\u5360\u7528\u3002");
|
||||
const connected = await this.connect();
|
||||
if (connected) {
|
||||
writeState(intentFile, { ...readState(intentFile), state: "ready", instanceId: connected.identity.instanceId });
|
||||
return { ...connected, reused: false, logs: { stdoutPath, stderrPath } };
|
||||
}
|
||||
}
|
||||
throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u5C1A\u672A\u5B8C\u6210\u6CE8\u518C\uFF1B\u4E0D\u4F1A\u91CD\u65B0\u542F\u52A8\u6216\u7ED3\u675F\u672A\u77E5\u8FDB\u7A0B\u3002", "HOST_START_UNVERIFIED");
|
||||
});
|
||||
}
|
||||
async status() {
|
||||
if (!await this.connect()) return { state: "not-running", url: this.url };
|
||||
return this.api("/host/status");
|
||||
}
|
||||
async stop() {
|
||||
return this.lock(async () => {
|
||||
const connection = await this.connect();
|
||||
if (!connection) return { state: "not-running", url: this.url };
|
||||
const original = connection.identity;
|
||||
await this.api("/host/stop", { method: "POST", input: {
|
||||
instanceId: original.instanceId,
|
||||
createdAt: original.createdAt,
|
||||
runtimeIdentity: original.runtimeIdentity,
|
||||
confirmation: "stop-owned-host"
|
||||
}, timeoutMs: this.timeoutMs });
|
||||
const deadline = Date.now() + this.timeoutMs;
|
||||
while (Date.now() < deadline) {
|
||||
await delay(200);
|
||||
const observed = observeWindowsProcess(original.pid);
|
||||
if (!observed) {
|
||||
if (await this.health()) throw hostError("\u539F\u5BBF\u4E3B\u5DF2\u7ED3\u675F\uFF0C\u4F46\u7AEF\u53E3\u5B58\u5728\u5176\u4ED6\u670D\u52A1\u3002");
|
||||
return { state: "stopped", identity: original, processExited: true };
|
||||
}
|
||||
if (observed.createdAt !== original.createdAt) throw hostError("\u539FPID\u5DF2\u88AB\u590D\u7528\uFF0C\u4E0D\u4F1A\u7ED3\u675F\u65B0\u7684\u8FDB\u7A0B\u3002");
|
||||
}
|
||||
throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u9000\u51FA\u4ECD\u5F85\u6838\u5BF9\uFF0C\u8BF7\u4FDD\u7559\u539F\u5B9E\u4F8B\u8BB0\u5F55\u3002", "HOST_STOP_UNVERIFIED");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// src/desktop/host-cli.mjs
|
||||
var args = process.argv.slice(2);
|
||||
if (args.includes("--help")) {
|
||||
console.log("node host-launcher.mjs <start|status|stop> [--app-root <absolute>] [--data-root <absolute>] [--node <absolute>] [--port <1..65535>]");
|
||||
process.exit(0);
|
||||
}
|
||||
var command = args.shift();
|
||||
if (!["start", "status", "stop"].includes(command)) throw new Error("Use --help for a supported desktop host operation.");
|
||||
var options = {};
|
||||
while (args.length) {
|
||||
const flag = args.shift(), value = args.shift();
|
||||
if (!["--app-root", "--data-root", "--node", "--port"].includes(flag) || !value || options[flag] !== void 0) throw new Error("Invalid or repeated host option.");
|
||||
options[flag] = value;
|
||||
}
|
||||
var defaultRoot = path6.resolve(path6.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
var appRoot = options["--app-root"] || process.env.AGENT_WORKBENCH_APP_DIR || defaultRoot;
|
||||
var dataRoot = options["--data-root"] || process.env.AGENT_WORKBENCH_DATA_DIR || path6.join(process.env.LOCALAPPDATA || path6.join(os.homedir(), ".local/share"), "AgentWorkbench");
|
||||
var nodePath = options["--node"] || (fs5.existsSync(path6.join(appRoot, "runtime/node.exe")) ? path6.join(appRoot, "runtime/node.exe") : process.execPath);
|
||||
try {
|
||||
const controller = new HostController({
|
||||
appRoot,
|
||||
dataRoot,
|
||||
nodePath,
|
||||
port: Number(options["--port"] || process.env.AGENT_WORKBENCH_PORT || 4318),
|
||||
environment: Object.fromEntries(HOST_ENVIRONMENT.filter((key) => process.env[key]).map((key) => [key, process.env[key]]))
|
||||
});
|
||||
console.log(JSON.stringify(await controller[command]()));
|
||||
} catch (cause) {
|
||||
console.error(JSON.stringify({ success: false, code: cause.code || "HOST_FAILED", message: cause.message }));
|
||||
process.exitCode = 1;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { snapshotPersistentData } from '../src/core/desktop/install-manager.mjs';
|
||||
export const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
export const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object' ? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
|
||||
export const digest = value => hash(JSON.stringify(canonical(value)));
|
||||
export function databaseSnapshot(dataRoot) {
|
||||
const database = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true }); database.exec('BEGIN');
|
||||
try {
|
||||
assert.equal(database.prepare('PRAGMA quick_check').get().quick_check, 'ok');
|
||||
const tables = {};
|
||||
for (const { name, sql } of database.prepare("SELECT name,sql FROM sqlite_schema WHERE type='table' ORDER BY name").all()) {
|
||||
assert.match(name, /^[a-z_]+$/);
|
||||
const rows = database.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(row => !(name === 'metadata' && row.key === 'runtimeOwner'));
|
||||
tables[name] = { count: rows.length, schemaSha256: hash(sql), sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
|
||||
}
|
||||
const sessionIds = database.prepare('SELECT id FROM sessions ORDER BY id').all().map(row => row.id);
|
||||
const owner = database.prepare("SELECT value FROM metadata WHERE key='runtimeOwner'").get();
|
||||
return { tables, sessionIds, ownerSha256: owner ? digest(owner) : null, scope: 'Every original table schema and row field hashed, excluding only runtimeOwner lifecycle metadata. No row payload or credential is returned.' };
|
||||
} finally { database.exec('ROLLBACK'); database.close(); }
|
||||
}
|
||||
export async function publicSnapshot(url, dataRoot) {
|
||||
const healthResponse = await fetch(url + '/api/health', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(healthResponse.status, 200);
|
||||
const health = await healthResponse.json(), bootResponse = await fetch(url + '/api/bootstrap', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(bootResponse.status, 200);
|
||||
const bootstrap = await bootResponse.json(); const token = bootstrap.token;
|
||||
const api = async route => { const response = await fetch(url + '/api' + route, { headers: { 'X-Workbench-Token': token, Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.ok(response.ok, route + ': HTTP ' + response.status); return response.json(); };
|
||||
const database = databaseSnapshot(dataRoot), exports = [];
|
||||
for (const id of database.sessionIds) {
|
||||
const report = await api('/sessions/' + id + '/export');
|
||||
exports.push({ id, project: digest(report.project), session: digest(report.session), execution: digest(report.execution) });
|
||||
}
|
||||
const center = await api('/model-center');
|
||||
// This is the documented public model-center view; Provider's private map and
|
||||
// API key are never accessed. Only this public object is retained for schema-aware comparison.
|
||||
const modelCenter = structuredClone(center);
|
||||
return { observedAt: new Date().toISOString(), version: health.version, pid: health.pid, runtimeRoot: bootstrap.runtimeRoot,
|
||||
configSha256: digest(bootstrap.config), projectsSha256: digest(bootstrap.projects), sessionsSha256: digest(bootstrap.sessions), modelCenterSha256: digest(modelCenter), modelCenter,
|
||||
projects: bootstrap.projects.length, visibleSessions: bootstrap.sessions.length, hasKey: !!bootstrap.config.hasKey,
|
||||
active: bootstrap.sessions.filter(value => ['running', 'awaiting_approval', 'stopping'].includes(value.status)).map(value => ({ id: value.id, status: value.status })),
|
||||
storage: bootstrap.storage, eventCursor: bootstrap.eventCursor, database, exports, persistent: snapshotPersistentData(dataRoot),
|
||||
scope: 'Read-only public state, every original session export digest, original table/row/schema hashes and every original artifact byte hash. No credential extraction, model probe, execution or mutation.' };
|
||||
}
|
||||
export function compareOriginalState(before, after, { modelCenterSchemaChange = false } = {}) {
|
||||
for (const field of ['pid', 'hasKey', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor']) assert.deepEqual(after[field], before[field], field);
|
||||
assert.deepEqual(canonical(after.database.tables), canonical(before.database.tables), 'All original table schemas and every persistent row');
|
||||
assert.deepEqual(after.database.sessionIds, before.database.sessionIds); assert.deepEqual(after.exports, before.exports);
|
||||
assert.deepEqual(after.persistent, before.persistent, 'Every original artifact byte, persistent row and public disk config');
|
||||
if (modelCenterSchemaChange) {
|
||||
const original = structuredClone(before.modelCenter), next = structuredClone(after.modelCenter);
|
||||
// 1.15 changes only the public explanatory text about optional DPAPI storage.
|
||||
// Existing IDs, routes, revisions, credentials-present bits and all original attempts remain exact.
|
||||
assert.match(next.storage.restart, /临时凭据.*已明确本机加密保存/);
|
||||
next.storage.restart = original.storage.restart;
|
||||
assert.deepEqual(next, original, 'Original public model center, except versioned storage explanation');
|
||||
return { modelCenterChange: { path: '/storage/restart', original: before.modelCenter.storage.restart, actual: after.modelCenter.storage.restart }, originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact' };
|
||||
}
|
||||
assert.equal(after.modelCenterSha256, before.modelCenterSha256);
|
||||
return { originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact', originalModelCenter: 'exact' };
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import fs from 'node:fs';
|
||||
const file='.qa/network-q/validation-roots.json',roots=JSON.parse(fs.readFileSync(file));
|
||||
Object.assign(roots,{'rebuild':'.qa/packaged-build-61586920-5467-4c73-861c-aa4a38f11a34','install':'.qa/desktop-install-618c8130-2ac2-4a74-89f8-c74fe75d081c','installed-ui':'.qa/network-q-ui-0fbc1026-fec5-4d7f-9a0a-02062f2b1b70'});
|
||||
fs.writeFileSync(file,JSON.stringify(roots,null,2)+'\n');
|
||||
@@ -0,0 +1,9 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import {publicSnapshot} from './desktop-f-state.mjs';
|
||||
const root=path.resolve('.qa/network-q'); fs.mkdirSync(root,{recursive:true});
|
||||
const state=await publicSnapshot('http://127.0.0.1:4318','C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench');
|
||||
assert.equal(state.version,'1.24.5'); assert.equal(state.pid,36552); assert.equal(state.hasKey,true); assert.deepEqual(state.active,[]);
|
||||
fs.writeFileSync(path.join(root,'initial-private-state.json'),JSON.stringify(state,null,2)+'\n',{flag:'wx'});
|
||||
console.log(JSON.stringify({success:true,version:state.version,pid:state.pid,projects:state.projects,sessions:state.database.sessionIds.length,eventCursor:state.eventCursor,tables:Object.fromEntries(Object.entries(state.database.tables).map(([k,v])=>[k,v.count])),scope:'Hash-only original persistent rows/artifacts; documented public model-center. No credentials.'}));
|
||||
@@ -0,0 +1,54 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { chromium } from 'playwright';
|
||||
|
||||
const narrowOnly = process.argv[2] === 'narrow';
|
||||
assert.ok(process.argv.length === 2 || process.argv.length === 3 && narrowOnly);
|
||||
const root = path.resolve('.qa/network-q/release/browser-review' + (narrowOnly ? '-narrow' : ''));
|
||||
assert.equal(fs.existsSync(root), false); fs.mkdirSync(root);
|
||||
const origin = 'http://127.0.0.1:4318', errors = [], rejectedWrites = [], views = [];
|
||||
const health = await (await fetch(origin + '/api/health')).json();
|
||||
assert.equal(health.version, '1.24.6'); assert.equal(health.pid, 36552);
|
||||
const browser = await chromium.launch({ channel: 'msedge', headless: true });
|
||||
let outcome;
|
||||
try {
|
||||
for (const [name, viewport] of [['desktop', { width: 1440, height: 1000 }], ['narrow', { width: 390, height: 844 }]].filter(([name]) => !narrowOnly || name === 'narrow')) {
|
||||
const context = await browser.newContext({ viewport }); const page = await context.newPage();
|
||||
page.on('pageerror', error => errors.push({ name, message: error.message }));
|
||||
await page.route('**/api/**', async route => {
|
||||
if (['GET', 'HEAD'].includes(route.request().method())) await route.continue();
|
||||
else { rejectedWrites.push({ name, method: route.request().method(), url: route.request().url() }); await route.abort(); }
|
||||
});
|
||||
await page.goto(origin + '/?release=1.24.6', { waitUntil: 'domcontentloaded' });
|
||||
await page.locator('.connection.connected').waitFor({ state: 'attached', timeout: 20000 });
|
||||
const networkIdle = await page.waitForLoadState('networkidle', { timeout: 5000 }).then(() => true, () => false);
|
||||
const text = await page.locator('body').innerText();
|
||||
fs.writeFileSync(path.join(root, name + '.txt'), text, { flag: 'wx' });
|
||||
assert.match(await page.title(), /Agent Workbench/);
|
||||
assert.match(await page.locator('.version-entry').textContent(), /1\.24\.6/);
|
||||
assert.ok(!(await page.locator('.message-input textarea').count()) || await page.locator('.message-input textarea').inputValue() === '');
|
||||
const screenshot = path.join(root, name + '.png'); await page.screenshot({ path: screenshot, fullPage: true });
|
||||
const overflow = await page.evaluate(() => ({ viewport: innerWidth, document: document.documentElement.scrollWidth }));
|
||||
assert.ok(overflow.document <= viewport.width + 1, JSON.stringify(overflow));
|
||||
await page.getByRole('button', {name:'打开模型中心',exact:true}).click();
|
||||
const dialog=page.getByRole('dialog',{name:'模型中心',exact:true});
|
||||
await dialog.getByRole('navigation',{name:'模型中心分类'}).getByRole('button',{name:'连接诊断',exact:true}).click();
|
||||
const panel=page.getByRole('region',{name:'模型连接诊断',exact:true});
|
||||
await panel.getByLabel('诊断连接',{exact:true}).selectOption('5b4daed9-b2f7-4de0-b949-573eba70c7b3');
|
||||
await panel.getByText('这条连接还没有检查记录。',{exact:true}).waitFor();
|
||||
assert.match(await panel.innerText(),/无需 Key,不发送模型请求/);
|
||||
assert.equal(await panel.getByRole('button',{name:'开始直连检查',exact:true}).isEnabled(),true);
|
||||
const diagnosisScreenshot=path.join(root,name+'-diagnostics.png'); await page.screenshot({path:diagnosisScreenshot,fullPage:true});
|
||||
const panelOverflow=await panel.evaluate(element=>({width:element.clientWidth,scroll:element.scrollWidth}));
|
||||
assert.ok(panelOverflow.scroll<=panelOverflow.width+1);
|
||||
fs.writeFileSync(path.join(root,name+'-diagnostics.txt'),await panel.innerText(),{flag:'wx'});
|
||||
views.push({ name, viewport, screenshot, diagnosisScreenshot, panelOverflow, overflow, connected: true, networkIdle, bodyFile: name + '.txt' });
|
||||
await context.close();
|
||||
}
|
||||
assert.deepEqual(errors, []); assert.deepEqual(rejectedWrites, []);
|
||||
outcome = { success: true, version: health.version, pid: health.pid, views, errors, rejectedWrites, realModelRequests: 0,
|
||||
scope: 'Read-only actual production Edge render in two viewports; API writes blocked and none attempted. No task start, fixture model, credential or existing browser profile access.' };
|
||||
} catch (error) { outcome = { success: false, error: error.stack, views, errors, rejectedWrites }; process.exitCode = 1; }
|
||||
finally { await browser.close(); fs.writeFileSync(path.join(root, 'result.json'), JSON.stringify(outcome, null, 2) + '\n', { flag: 'wx' }); }
|
||||
console.log(JSON.stringify(outcome));
|
||||
@@ -0,0 +1,19 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { createHash } from 'node:crypto';
|
||||
const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
|
||||
const hash = file => createHash('sha256').update(fs.readFileSync(file)).digest('hex');
|
||||
const freeze = read('.qa/network-q/release/product-freeze-final.json'), build = read('.qa/packaged-build-61586920-5467-4c73-861c-aa4a38f11a34/result.json');
|
||||
assert.equal(build.success, true);
|
||||
const extra = build.inputs.filter(row => !freeze.files.some(input => input.path === row.path));
|
||||
assert.deepEqual(extra.map(row => row.path).sort(), ['cli.mjs','normalize.mjs','package.json','render.mjs','summary.mjs'].map(name => 'examples/delivery-report/dist/' + name).sort());
|
||||
for (const input of freeze.files) assert.equal(build.inputs.find(row => row.path === input.path)?.sha256, input.sha256);
|
||||
const exampleRoot = path.join(build.destination, 'examples/delivery-report');
|
||||
execFileSync(process.execPath, ['scripts/build.mjs'], { cwd: exampleRoot, windowsHide: true });
|
||||
for (const input of extra) assert.equal(hash(path.join(build.destination, input.path)), input.sha256);
|
||||
const result = { success: true, trackedInputs: freeze.files.length, archiveInputs: build.inputCount, extra, unchanged: true,
|
||||
sourceCommit: freeze.sourceCommit, scope: 'Five ignored example dist files are declared in the source archive manifest. Rebuilt by the exact independently extracted tracked example build/source files and matched each original byte hash. No extra Workbench compile input or package mutation.', realModelRequests: 0 };
|
||||
fs.writeFileSync('.qa/network-q/release/extra-example-inputs.json', JSON.stringify(result, null, 2) + '\n', { flag: 'wx' });
|
||||
console.log(JSON.stringify(result));
|
||||
@@ -0,0 +1,84 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import net from 'node:net';
|
||||
import { spawn, execFileSync } from 'node:child_process';
|
||||
import { publicSnapshot, compareOriginalState, hash } from './desktop-f-state.mjs';
|
||||
import { inspectHostInstallation } from '../src/core/desktop/app-installation.mjs';
|
||||
|
||||
const root = path.resolve('.qa/network-q/formal-release'); fs.mkdirSync(root, { recursive: true });
|
||||
const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
|
||||
const save = (name, value) => fs.writeFileSync(path.join(root, name), JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
|
||||
const release = read('releases/latest.json'), sourceCommit = release.documentation.sourceCommit;
|
||||
const manifest = read(path.join(release.portableRoot, 'MANIFEST.json')); assert.equal(manifest.version, '1.24.6');
|
||||
const url = 'http://127.0.0.1:4318', installRoot = 'C:/Users/wangy/AppData/Local/Programs/AgentWorkbench';
|
||||
const dataRoot = 'C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench';
|
||||
const mode = process.argv[2]; assert.ok(['before', 'install', 'final'].includes(mode));
|
||||
assert.ok(!fs.existsSync(path.join(root, mode + '.json')), 'Keep prior receipts; do not retry unknown installation.');
|
||||
const startedAt = new Date().toISOString();
|
||||
async function api(route) {
|
||||
const boot = await (await fetch(url + '/api/bootstrap', { signal: AbortSignal.timeout(20000) })).json();
|
||||
const response = await fetch(url + '/api' + route, { headers: { 'X-Workbench-Token': boot.token, Connection: 'close' }, signal: AbortSignal.timeout(20000) });
|
||||
assert.equal(response.status, 200, route); return response.json();
|
||||
}
|
||||
async function inspectorClosed() {
|
||||
await new Promise((resolve, reject) => {
|
||||
const socket = net.createConnection({ host: '127.0.0.1', port: 9229 }); socket.setTimeout(1500);
|
||||
socket.once('connect', () => { socket.destroy(); reject(Error('Inspector open.')); });
|
||||
socket.once('error', error => { socket.destroy(); error.code === 'ECONNREFUSED' ? resolve() : reject(error); });
|
||||
socket.once('timeout', () => { socket.destroy(); reject(Error('Inspector state unknown.')); });
|
||||
});
|
||||
}
|
||||
let result;
|
||||
try {
|
||||
assert.equal(execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(), sourceCommit);
|
||||
assert.equal(execFileSync('git', ['status', '--porcelain'], { encoding: 'utf8' }).trim(), '');
|
||||
await inspectorClosed();
|
||||
const current = await publicSnapshot(url, dataRoot), host = await api('/host/status');
|
||||
assert.equal(current.pid, 36552); assert.equal(current.hasKey, true); assert.deepEqual(current.active, []); assert.equal(host.activity.active, false);
|
||||
if (mode === 'before') {
|
||||
compareOriginalState(read('.qa/network-q/initial-private-state.json'), current);
|
||||
assert.equal(current.version, '1.24.5'); assert.equal(host.desktopWindows.count, 0);
|
||||
assert.match(current.runtimeRoot.replaceAll('\\', '/'), /\/versions\/Agent-Workbench-1\.24\.5-win-x64-20261103133956264$/);
|
||||
const archived = read('.qa/archives-validation.json'), portable = read('.qa/release-validation.json');
|
||||
assert.equal(archived.success, true); assert.equal(portable.success, true); assert.equal(portable.appRoot, release.portableRoot);
|
||||
save('private-before.json', current); save('pointer-before.json', read(path.join(installRoot, 'current.json'))); save('release.json', release);
|
||||
result = { success: true, version: current.version, pid: current.pid, projects: current.projects,
|
||||
sessions: current.database.sessionIds.length, tables: Object.fromEntries(Object.entries(current.database.tables).map(([name, table]) => [name, table.count])),
|
||||
runtimeRoot: current.runtimeRoot, sourceCommit, hasKey: current.hasKey, active: current.active };
|
||||
} else {
|
||||
const before = read(path.join(root, 'private-before.json')); compareOriginalState(before, current);
|
||||
assert.deepEqual(release, read(path.join(root, 'release.json')));
|
||||
if (mode === 'install') {
|
||||
assert.equal(current.version, '1.24.5'); assert.equal(host.desktopWindows.count, 0);
|
||||
assert.deepEqual(read(path.join(installRoot, 'current.json')), read(path.join(root, 'pointer-before.json')));
|
||||
assert.equal(hash(fs.readFileSync(release.installer.path)), release.installer.sha256);
|
||||
const logFile = path.join(root, 'installer.log'), fd = fs.openSync(path.join(root, 'installer-process.log'), 'wx'); let code;
|
||||
try {
|
||||
code = await new Promise((resolve, reject) => {
|
||||
const child = spawn(release.installer.path, ['/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART', '/LOG=' + logFile,
|
||||
'/DIR=' + installRoot, '/DATA_ROOT=' + dataRoot, '/PORT=4318'], { windowsHide: true, stdio: ['ignore', fd, fd] });
|
||||
child.once('error', reject); child.once('close', resolve);
|
||||
});
|
||||
} finally { fs.closeSync(fd); }
|
||||
save('installer-exit.json', { code, finishedAt: new Date().toISOString() }); assert.equal(code, 0, 'Unknown/failed install is not automatically replayed.');
|
||||
} else assert.equal(read(path.join(root, 'install.json')).success, true);
|
||||
const after = await publicSnapshot(url, dataRoot), retention = compareOriginalState(before, after);
|
||||
assert.equal(after.version, '1.24.6'); assert.equal(after.pid, before.pid); assert.equal(after.hasKey, true);
|
||||
const candidate = path.join(installRoot, 'versions', path.basename(release.portableRoot));
|
||||
assert.equal(fs.realpathSync.native(after.runtimeRoot), fs.realpathSync.native(candidate));
|
||||
const identity = inspectHostInstallation(candidate), pointer = read(path.join(installRoot, 'current.json'));
|
||||
assert.equal(pointer.active.directory, path.basename(candidate)); assert.equal(pointer.active.manifestSha256, identity.manifestSha256);
|
||||
assert.equal(pointer.active.runtimeIdentity, identity.identitySha256);
|
||||
const operation = fs.readdirSync(path.join(installRoot, '.installation')).filter(name => /^progress-.*\.json$/.test(name))
|
||||
.map(name => read(path.join(installRoot, '.installation', name))).sort((a, b) => b.updatedAt.localeCompare(a.updatedAt))[0];
|
||||
assert.equal(operation.state, 'completed'); assert.equal(operation.candidate.manifestSha256, identity.manifestSha256);
|
||||
save(mode + '-private-after.json', after);
|
||||
result = { success: true, version: after.version, pid: after.pid, runtimeRoot: after.runtimeRoot, projects: after.projects,
|
||||
sessions: after.database.sessionIds.length, hasKey: after.hasKey, retention, pointer, operation,
|
||||
desktopWindows: (await api('/host/status')).desktopWindows.count, inspectorClosed: true, sourceCommit };
|
||||
}
|
||||
} catch (error) { result = { success: false, error: error.stack }; process.exitCode = 1; }
|
||||
result = { ...result, mode, startedAt, finishedAt: new Date().toISOString(), realModelRequests: 0,
|
||||
scope: 'Public API/full original row/export/artifact hashes; installer retains original running host and Provider. No credential extraction or task replay.' };
|
||||
save(mode + '.json', result); console.log(JSON.stringify(result));
|
||||
@@ -0,0 +1,15 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
const root = path.resolve('.qa/network-q/release'); fs.mkdirSync(root, { recursive: true });
|
||||
assert.equal(execFileSync('git', ['status', '--porcelain'], { encoding: 'utf8' }).trim(), '');
|
||||
const names = execFileSync('git', ['ls-files', '-z', '--', 'src', 'public', 'scripts', 'tests', 'examples', 'benchmarks', 'research', 'package.json', 'package-lock.json', 'vite.config.ts', 'tsconfig.json', 'index.html', 'mobile.html'], { encoding: 'utf8' }).split('\0').filter(Boolean).filter(name =>
|
||||
/^(?:src|public|scripts|tests|examples|benchmarks|research)\//.test(name) || ['package.json','package-lock.json','vite.config.ts','tsconfig.json','index.html','mobile.html'].includes(name));
|
||||
const record = file => { const bytes = fs.readFileSync(file); return { path: file.replaceAll('\\', '/'), bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }; };
|
||||
const walk = folder => fs.readdirSync(folder, { withFileTypes: true }).flatMap(entry => entry.isDirectory() ? walk(path.join(folder, entry.name)) : [path.join(folder, entry.name)]);
|
||||
const result = { sourceCommit: execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(), version: '1.24.6', createdAt: new Date().toISOString(),
|
||||
files: names.sort().map(record), compiled: ['dist-client','dist-server','dist-desktop'].flatMap(walk).sort().map(record), realModelRequests: 0 };
|
||||
fs.writeFileSync(path.join(root, 'product-freeze-final.json'), JSON.stringify(result, null, 2) + '\n', { flag: 'wx' });
|
||||
console.log(JSON.stringify({ success: true, files: result.files.length, compiled: result.compiled.length, sourceCommit: result.sourceCommit }));
|
||||
@@ -0,0 +1,19 @@
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
const hash = value => createHash('sha256').update(value).digest('hex');
|
||||
const prefix = 'docs/network-q-evidence/', manifest = JSON.parse(fs.readFileSync(prefix + 'manifest.json'));
|
||||
const files = [...manifest.entries.map(row => prefix + row.path), prefix + 'manifest.json'].sort();
|
||||
const indexed = execFileSync('git', ['ls-files','-z','--','docs/network-q-evidence'], { encoding:'utf8', windowsHide:true }).split('\0').filter(Boolean).sort();
|
||||
assert.deepEqual(indexed, files);
|
||||
const output = execFileSync('git', ['cat-file','--batch'], { input: files.map(file => ':' + file).join('\n') + '\n', windowsHide:true, maxBuffer:256*1024*1024 });
|
||||
let cursor = 0, bytes = 0;
|
||||
for (const file of files) {
|
||||
const end = output.indexOf(10,cursor), header = output.subarray(cursor,end).toString('ascii');
|
||||
assert.match(header,/^[a-f0-9]+ blob \d+$/); const size = Number(header.split(' ')[2]);
|
||||
cursor = end+1; const body = output.subarray(cursor,cursor+size); cursor += size; assert.equal(output[cursor++],10);
|
||||
const disk = fs.readFileSync(file); assert.equal(body.length,disk.length); assert.equal(hash(body),hash(disk),file); bytes += size;
|
||||
}
|
||||
assert.equal(cursor,output.length);
|
||||
console.log(JSON.stringify({success:true,count:files.length,bytes,manifestSha256:hash(fs.readFileSync(prefix+'manifest.json')),scope:'Every original evidence file and manifest staged in Git, with identical SHA-256 and bytes. No log omissions or line-ending transformation.'}));
|
||||
@@ -0,0 +1,7 @@
|
||||
import fs from 'node:fs';
|
||||
const file='.qa/network-q/validation-roots.json',roots=JSON.parse(fs.readFileSync(file));
|
||||
const record=JSON.parse(fs.readFileSync('.qa/existing-results-installed-ui.json'));
|
||||
if(record.version!=='1.24.6')throw Error('Wrong installed proof version');
|
||||
for(const [i,proof]of record.proofs.entries())roots[i?'installed-files':'installed-results']=proof.proof.directory??proof.proof.root;
|
||||
fs.writeFileSync(file,JSON.stringify(roots,null,2)+'\n');
|
||||
console.log(JSON.stringify(Object.fromEntries(Object.entries(roots).filter(([k])=>k.startsWith('installed-')))));
|
||||
@@ -0,0 +1,60 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
if (process.argv.includes('--help')) { console.log('node scripts/verify-network-q-evidence.mjs — read-only SHA-256, source/build/UI/install and original-state reconciliation for sealed Q evidence. No model or original driver replay.'); process.exit(0); }
|
||||
assert.equal(process.argv.length, 2);
|
||||
const root = path.resolve('docs/network-q-evidence');
|
||||
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
const read = relative => JSON.parse(fs.readFileSync(path.join(root, relative), 'utf8').replace(/^\uFEFF/, ''));
|
||||
const manifest = read('manifest.json'), names = new Set(); let bytes = 0;
|
||||
for (const entry of manifest.entries) {
|
||||
assert.equal(names.has(entry.path), false); names.add(entry.path);
|
||||
const file = path.resolve(root, entry.path); assert.ok(file.startsWith(root + path.sep));
|
||||
const body = fs.readFileSync(file); assert.equal(body.length, entry.bytes); assert.equal(hash(body), entry.sha256); bytes += body.length;
|
||||
}
|
||||
const walk = directory => fs.readdirSync(directory, { withFileTypes: true }).flatMap(entry => entry.isDirectory() ? walk(path.join(directory, entry.name)) : [path.relative(root, path.join(directory, entry.name)).replaceAll('\\', '/')]);
|
||||
assert.deepEqual(walk(root).filter(name => name !== 'manifest.json').sort(), [...names].sort());
|
||||
assert.equal(manifest.count, names.size); assert.equal(manifest.bytes, bytes); assert.equal(manifest.realModelRequests, 0);
|
||||
const freeze = read('receipts/release/product-freeze-final.json'), identity = read('release-identity.json');
|
||||
assert.equal(freeze.sourceCommit, manifest.sourceCommit); assert.equal(identity.sourceCommit, manifest.sourceCommit); assert.equal(identity.version, '1.24.6');
|
||||
assert.equal(freeze.compiled.length, 22);
|
||||
for (const item of freeze.compiled) assert.equal(hash(fs.readFileSync(path.join(root, 'compiled', item.path))), item.sha256);
|
||||
for (const item of freeze.files.filter(item => names.has('source-bytes/' + item.path))) assert.equal(hash(fs.readFileSync(path.join(root, 'source-bytes', item.path))), item.sha256);
|
||||
const build = read('validation/rebuild/result.json'); assert.equal(build.success, true); assert.equal(build.sourceCommit, manifest.sourceCommit);
|
||||
const exampleInputs = read('receipts/release/extra-example-inputs.json'); assert.equal(exampleInputs.success, true);
|
||||
assert.equal(exampleInputs.extra.length, 5); assert.equal(exampleInputs.trackedInputs, freeze.files.length);
|
||||
assert.equal(build.inputCount, freeze.files.length + exampleInputs.extra.length); assert.equal(build.compiled.length, 22); assert.deepEqual(build.mismatches, []);
|
||||
for (const item of build.compiled) assert.deepEqual(item.actual, item.expected);
|
||||
for (const name of ['archives', 'portable']) assert.equal(read('validation/' + name + '.json').success, true);
|
||||
for (const name of ['source-ui', 'portable-ui', 'installed-ui']) {
|
||||
const result = read('validation/' + name + '/result.json'); assert.equal(result.success, true); assert.equal(result.targetVersion, '1.24.6');
|
||||
assert.equal(result.checks.length, 9); assert.equal(result.realModelRequests, 0); assert.equal(result.httpRequests, 0); assert.deepEqual(result.errors, []);
|
||||
assert.equal(result.plainBytes, 0); assert.equal(result.originalSelectionPreserved, true); assert.ok(result.jobs.every(job => job.status !== 'running'));
|
||||
}
|
||||
const installation = read('validation/install/result.json'); assert.equal(installation.success, true); assert.equal(installation.version, '1.24.6');
|
||||
assert.equal(installation.results.length, 12); assert.equal(installation.realModelRequests, 0); assert.ok(installation.results.every(result => result.passed));
|
||||
for (const proof of installation.installedUI.proofs) { assert.equal(proof.proof.success, true); assert.equal(proof.proof.version, '1.24.6'); }
|
||||
for (const [name, count] of [['installed-results', 16], ['installed-files', 9]]) {
|
||||
const proof = read('validation/' + name + '/result.json'); assert.equal(proof.success, true); assert.equal(proof.checks.length, count); assert.deepEqual(proof.errors, []);
|
||||
}
|
||||
for (const [name, count] of [['network-q-regression.log',69],['network-q-host-regression.log',11],['network-q-install-regression.log',14],['network-q-upgrade-retention.log',4]]) {
|
||||
const log=fs.readFileSync(path.join(root,'logs',name),'utf8'); assert.match(log,new RegExp('pass '+count+'\\b')); assert.match(log,/fail 0\b/);
|
||||
}
|
||||
const before = read('receipts/formal-release/private-before.json'), initial = read('receipts/initial-private-state.json');
|
||||
function sameOriginal(left, right) {
|
||||
for (const key of ['pid','hasKey','configSha256','projectsSha256','sessionsSha256','eventCursor','exports','persistent','modelCenterSha256']) assert.deepEqual(right[key], left[key], key);
|
||||
assert.deepEqual(right.database.tables, left.database.tables); assert.deepEqual(right.database.sessionIds, left.database.sessionIds);
|
||||
}
|
||||
sameOriginal(initial, before);
|
||||
for (const name of ['install','final']) {
|
||||
const result = read('receipts/formal-release/' + name + '.json'); assert.equal(result.success, true); assert.equal(result.pid, 36552); assert.equal(result.version, '1.24.6');
|
||||
sameOriginal(before, read('receipts/formal-release/' + name + '-private-after.json'));
|
||||
}
|
||||
const browser = read('receipts/release/browser-review/result.json'); assert.equal(browser.success, true); assert.equal(browser.views.length, 2);
|
||||
assert.deepEqual(browser.errors, []); assert.deepEqual(browser.rejectedWrites, []);
|
||||
const native = read('receipts/native/result.json'); assert.equal(native.success, true); assert.equal(native.version, '1.24.6'); assert.equal(native.realModelRequests, 0);
|
||||
const final = read('receipts/formal-release/final.json'); assert.equal(final.inspectorClosed, true); assert.equal(final.hasKey, true);
|
||||
console.log(JSON.stringify({ success: true, version: identity.version, sourceCommit: manifest.sourceCommit, manifestSha256: hash(fs.readFileSync(path.join(root, 'manifest.json'))),
|
||||
count: names.size, bytes, compiled: 22, inputs: build.inputCount, formalPid: final.pid, originalSessions: before.database.sessionIds.length,
|
||||
originalRowsExportsArtifactsAndModelCenter: 'exact', realModelRequests: 0, scope: 'Read-only offline byte/identity/result reconciliation; no original drivers replayed.' }));
|
||||
@@ -0,0 +1,13 @@
|
||||
import fs from 'node:fs';
|
||||
const roots={
|
||||
'source-ui':'.qa/network-q-ui-0bd8dac9-dd16-484c-8ed6-213ab119709e',
|
||||
'source-ui-first':'.qa/network-q-ui-24865bee-6fbd-4d8c-8b13-188a35852693',
|
||||
'source-ui-intermediate':'.qa/network-q-ui-4d016cde-305e-4dcd-b8b4-c7f322b531f7',
|
||||
'portable-ui':'.qa/network-q-ui-32904838-5901-47e0-9a46-fb8657fc08eb',
|
||||
'source-selection':'.qa/model-selection-k-48e8fd63-e23b-464b-a4e4-4a85fbce15b4',
|
||||
'source-center':'.qa/model-center-ui-9bc54d8d-2e3a-49d7-ada9-7483fd733bc4',
|
||||
'source-identity':'.qa/model-identity-ui-c10fa597-3be6-4b2f-aad2-8c321868d65e',
|
||||
'source-wait':'.qa/model-wait-ui-86051db0-5055-4c64-93c2-b34aecfcab6d',
|
||||
'source-protocols':'.qa/model-protocols-ui-1269b9a9-c768-481a-90d1-dff1cb0dd3ce'
|
||||
};
|
||||
fs.writeFileSync('.qa/network-q/validation-roots.json',JSON.stringify(roots,null,2)+'\n',{flag:'wx'});
|
||||
@@ -0,0 +1,22 @@
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
import path from 'node:path';
|
||||
import { createHash } from 'node:crypto';
|
||||
const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
|
||||
const hash = file => createHash('sha256').update(fs.readFileSync(file)).digest('hex');
|
||||
const release = read('releases/latest.json'), freeze = read('.qa/network-q/release/product-freeze-final.json'), roots = read('.qa/network-q/validation-roots.json');
|
||||
assert.equal(release.documentation.sourceCommit, freeze.sourceCommit);
|
||||
assert.equal(read(path.join(release.portableRoot, 'MANIFEST.json')).version, '1.24.6');
|
||||
for (const file of freeze.compiled) assert.equal(hash(path.join(release.portableRoot, file.path)), file.sha256);
|
||||
for (const name of ['source-ui','portable-ui','installed-ui']) {
|
||||
const result = read(path.join(roots[name], 'result.json')); assert.equal(result.success, true); assert.equal(result.checks.length, 9); assert.equal(result.realModelRequests, 0);
|
||||
}
|
||||
const build = read(path.join(roots.rebuild, 'result.json')); assert.equal(build.success, true); assert.equal(build.compiled.length, 22); assert.equal(build.inputCount, 560);
|
||||
assert.equal(read('.qa/archives-validation.json').success, true); assert.equal(read('.qa/release-validation.json').success, true);
|
||||
const install = read(path.join(roots.install, 'result.json')); assert.equal(install.success, true); assert.equal(install.results.length, 12); assert.equal(install.realModelRequests, 0);
|
||||
const result = { success: true, version: '1.24.6', sourceCommit: freeze.sourceCommit, candidate: release.portableRoot,
|
||||
independentInputs: build.inputCount, compiled: build.compiled.length, isolatedInstallGroups: install.results.length,
|
||||
sourcePortableInstalledDiagnostics: '9+9+9', realModelRequests: 0,
|
||||
scope: 'All independent candidate gates complete before formal install. Each result belongs to the fixed source commit/candidate; original PID/Provider/data will be compared after actual upgrade.' };
|
||||
fs.writeFileSync('.qa/network-q/release/preinstall-review.json', JSON.stringify(result, null, 2) + '\n', { flag: 'wx' });
|
||||
console.log(JSON.stringify(result));
|
||||
@@ -0,0 +1,50 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
const read = file => JSON.parse(fs.readFileSync(file, 'utf8').replace(/^\uFEFF/, ''));
|
||||
const base = path.resolve('docs/network-q-evidence'); assert.equal(fs.existsSync(base), false); fs.mkdirSync(base);
|
||||
const entries = [];
|
||||
function copy(file, relative) {
|
||||
const target = path.resolve(base, relative); assert.ok(target.startsWith(base + path.sep));
|
||||
const bytes = fs.readFileSync(file); fs.mkdirSync(path.dirname(target), { recursive: true }); fs.writeFileSync(target, bytes, { flag: 'wx' });
|
||||
entries.push({ path: relative.replaceAll('\\', '/'), bytes: bytes.length, sha256: hash(bytes), source: path.resolve(file) });
|
||||
}
|
||||
function walk(root, destination, filter = () => true) {
|
||||
for (const name of fs.readdirSync(root, { withFileTypes: true })) {
|
||||
const source = path.join(root, name.name), relative = path.posix.join(destination, name.name);
|
||||
if (name.isDirectory()) walk(source, relative, filter); else if (filter(source)) copy(source, relative);
|
||||
}
|
||||
}
|
||||
const release = read('releases/latest.json'), freeze = read('.qa/network-q/release/product-freeze-final.json');
|
||||
assert.equal(release.documentation.sourceCommit, freeze.sourceCommit); assert.equal(freeze.version, '1.24.6');
|
||||
walk('.qa/network-q', 'receipts');
|
||||
for (const name of fs.readdirSync('.qa').filter(name => /^network-q-.*\.log$/.test(name))) copy('.qa/' + name, 'logs/' + name);
|
||||
for (const name of fs.readdirSync('.qa').filter(name => /^network-q-(?:baseline|freeze|formal-release|browser-review|seal|extra-inputs|prepare-roots|offline|installed-roots|add-roots|release-review|index)\.mjs$/.test(name))) copy('.qa/' + name, 'drivers/' + name + '.txt');
|
||||
copy('.qa/network-q-retrospective-notes.json', 'review-notes.json');
|
||||
copy('.qa/desktop-f-state.mjs', 'drivers/desktop-f-state.mjs.txt');
|
||||
for (const file of freeze.compiled) { assert.equal(hash(fs.readFileSync(file.path)), file.sha256); copy(file.path, 'compiled/' + file.path); }
|
||||
for (const file of freeze.files.filter(file => /^src\//.test(file.path) || /network-diagnostics|upgrade-model-center|qa-evidence/.test(file.path))) {
|
||||
assert.equal(hash(fs.readFileSync(file.path)), file.sha256); copy(file.path, 'source-bytes/' + file.path);
|
||||
}
|
||||
const roots = read('.qa/network-q/validation-roots.json');
|
||||
for (const [name, root] of Object.entries(roots)) {
|
||||
assert.ok(path.resolve(root).startsWith(path.resolve('.qa') + path.sep));
|
||||
for (const entry of fs.readdirSync(root, { withFileTypes: true })) if (entry.isFile() && /\.(?:json|png|jpg|log|txt)$/.test(entry.name))
|
||||
copy(path.join(root, entry.name), 'validation/' + name + '/' + entry.name);
|
||||
}
|
||||
copy('.qa/archives-validation.json', 'validation/archives.json'); copy('.qa/release-validation.json', 'validation/portable.json');
|
||||
copy('releases/latest.json', 'release.json');
|
||||
const identity = { version: '1.24.6', sourceCommit: freeze.sourceCommit, candidate: path.basename(release.portableRoot),
|
||||
portableManifestSha256: hash(fs.readFileSync(path.join(release.portableRoot, 'MANIFEST.json'))),
|
||||
sourceManifestSha256: hash(fs.readFileSync(path.join(release.sourceRoot, 'MANIFEST.json'))),
|
||||
installer: release.installer, archives: Object.fromEntries(['portable','source','evidence'].map(kind => [kind, release[kind]])),
|
||||
realModelRequests: 0 };
|
||||
fs.writeFileSync('docs/network-q-release-identity.json', JSON.stringify(identity, null, 2) + '\n', { flag: 'wx' });
|
||||
copy('docs/network-q-release-identity.json', 'release-identity.json');
|
||||
const manifest = { schemaVersion: 1, createdAt: new Date().toISOString(), sourceCommit: freeze.sourceCommit, version: '1.24.6',
|
||||
scope: 'Q implementation, original test/build receipts, isolated runtime/UI/install and unchanged formal-host state. No configured model requests or credential values. Frozen drivers are evidence, not an instruction to replay.',
|
||||
realModelRequests: 0, count: entries.length, bytes: entries.reduce((sum, entry) => sum + entry.bytes, 0), entries: entries.sort((a,b) => a.path.localeCompare(b.path)) };
|
||||
fs.writeFileSync(path.join(base, 'manifest.json'), JSON.stringify(manifest, null, 2) + '\n', { flag: 'wx' });
|
||||
console.log(JSON.stringify({ success: true, count: manifest.count, bytes: manifest.bytes, manifestSha256: hash(fs.readFileSync(path.join(base, 'manifest.json'))) }));
|
||||
@@ -0,0 +1 @@
|
||||
{"success": true, "version": "1.24.6", "testedAt": "2026-11-03T15:17:10.733061+00:00", "archives": [{"kind": "portable", "path": "D:\\Ai-project\\REA\u9006\u5411\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294.zip", "files": 10944, "crcPassed": true, "manifestAndDirectoryMatch": true, "sha256": "d142770c8cdc18378d34cdca768d2704301de55b44781e5c435220f4b8525eeb"}, {"kind": "source", "path": "D:\\Ai-project\\REA\u9006\u5411\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-source-20261103151145294.zip", "files": 31345, "crcPassed": true, "manifestAndDirectoryMatch": true, "sha256": "92e000f9c97abdb2da44c544cea6a3c3a5ce21a317e93d364af51588956a0302"}, {"kind": "evidence", "path": "D:\\Ai-project\\REA\u9006\u5411\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-evidence-20261103151145294.zip", "files": 20087, "crcPassed": true, "manifestAndDirectoryMatch": true, "sha256": "19e626a672324b108e7d504cf535a344e9d8213fa078ef5537b133edad18b148"}], "extractionRoot": null}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
> local-agent-workbench@1.24.6 build
|
||||
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
|
||||
|
||||
vite v7.3.7 building client environment for production...
|
||||
transforming...
|
||||
✓ 1761 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
dist-client/index.html 0.60 kB │ gzip: 0.41 kB
|
||||
dist-client/.vite/manifest.json 0.65 kB │ gzip: 0.24 kB
|
||||
dist-client/mobile.html 0.84 kB │ gzip: 0.47 kB
|
||||
dist-client/assets/mobile-joLHctQw.css 12.39 kB │ gzip: 3.22 kB
|
||||
dist-client/assets/desktop-DC8YSCxQ.css 173.13 kB │ gzip: 32.79 kB
|
||||
dist-client/assets/mobile-DdtBN08G.js 26.97 kB │ gzip: 9.31 kB
|
||||
dist-client/assets/approval-presentation-QyCkfhWb.js 227.03 kB │ gzip: 71.74 kB
|
||||
dist-client/assets/desktop-DHz0VY6c.js 413.75 kB │ gzip: 117.64 kB
|
||||
✓ built in 1.24s
|
||||
Mobile shell built: 3 allowed assets; API and project data are never cached.
|
||||
Server bundle built.
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
> local-agent-workbench@1.24.5 build
|
||||
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
|
||||
|
||||
You are using Node.js 16.13.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
|
||||
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/node_modules/vite/dist/node/chunks/config.js:8
|
||||
import fsp, { constants } from "node:fs/promises";
|
||||
^^^^^^^^^
|
||||
SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'constants'
|
||||
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
|
||||
at async ModuleJob.run (node:internal/modules/esm/module_job:181:5)
|
||||
at async Promise.all (index 0)
|
||||
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
|
||||
at async CAC.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/node_modules/vite/dist/node/cli.js:626:28)
|
||||
@@ -0,0 +1,19 @@
|
||||
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (568.3372ms)
|
||||
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (544.1938ms)
|
||||
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (640.1047ms)
|
||||
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1085.8413ms)
|
||||
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1164.3539ms)
|
||||
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (491.1615ms)
|
||||
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (686.4617ms)
|
||||
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (624.1168ms)
|
||||
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1005.8225ms)
|
||||
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (672.933ms)
|
||||
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (766.3376ms)
|
||||
ℹ tests 11
|
||||
ℹ suites 0
|
||||
ℹ pass 11
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 8572.4881
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"trackedInputs":555,"archiveInputs":560,"extra":[{"path":"examples/delivery-report/dist/cli.mjs","bytes":818,"sha256":"b8223dd1c0a98b3b7a0cd716db0ae053a2ca17fbd8272b005adcedd3ce5f7a69"},{"path":"examples/delivery-report/dist/normalize.mjs","bytes":1254,"sha256":"57eb47b09913b131982a14c276ba5292aba4c94e0f475c97955221f6a7b7cdcd"},{"path":"examples/delivery-report/dist/package.json","bytes":18,"sha256":"1239d4d885dcad42201a27ed9324f8f0f760b78700d8db9ced39a511cffe7eae"},{"path":"examples/delivery-report/dist/render.mjs","bytes":375,"sha256":"d449524d731a55ef51d0143f38ee8b73db56363c78babc385fa58df7f2a542f0"},{"path":"examples/delivery-report/dist/summary.mjs","bytes":427,"sha256":"bf7ada9e5dbca167df2b9a5306c1d9399b4a658fb0777c73812856687ad0c5ef"}],"unchanged":true,"sourceCommit":"54dbe3d6fc7b068e37010222a09cff244975b2c0","scope":"Five ignored example dist files are declared in the source archive manifest. Rebuilt by the exact independently extracted tracked example build/source files and matched each original byte hash. No extra Workbench compile input or package mutation.","realModelRequests":0}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.24.5","pid":36552,"projects":61,"sessions":77,"tables":{"events":13115,"metadata":6,"outbox":13115,"projects":61,"records":6167,"sessions":77,"sqlite_sequence":1},"runtimeRoot":"C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.5-win-x64-20261103133956264","sourceCommit":"54dbe3d6fc7b068e37010222a09cff244975b2c0","hasKey":true,"active":[],"mode":"before","startedAt":"2026-11-03T15:18:51.525Z","finishedAt":"2026-11-03T15:19:00.274Z","realModelRequests":0,"scope":"Public API/full original row/export/artifact hashes; installer retains original running host and Provider. No credential extraction or task replay."}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.24.6","pid":36552,"views":[{"name":"desktop","viewport":{"width":1440,"height":1000},"screenshot":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\desktop.png","diagnosisScreenshot":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\desktop-diagnostics.png","panelOverflow":{"width":1196,"scroll":1196},"overflow":{"viewport":1440,"document":1440},"connected":true,"networkIdle":true,"bodyFile":"desktop.txt"},{"name":"narrow","viewport":{"width":390,"height":844},"screenshot":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\narrow.png","diagnosisScreenshot":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\narrow-diagnostics.png","panelOverflow":{"width":328,"scroll":328},"overflow":{"viewport":390,"document":390},"connected":true,"networkIdle":true,"bodyFile":"narrow.txt"}],"errors":[],"rejectedWrites":[],"realModelRequests":0,"scope":"Read-only actual production Edge render in two viewports; API writes blocked and none attempted. No task start, fixture model, credential or existing browser profile access."}
|
||||
@@ -0,0 +1,19 @@
|
||||
✔ a rebuilt source archive binds actual generated client assets and retains its original running identity after disk changes (2151.3338ms)
|
||||
✔ host challenge proof rejects a stale challenge, changed identity and changed signature (1.0383ms)
|
||||
✔ stop confirmation binds the original instance, creation and loaded runtime (0.2726ms)
|
||||
✔ state paths reject escaping, linked ancestors, ambiguous hardlinks and damaged JSON (1096.7251ms)
|
||||
✔ failed registration publishes no initialized memory and can complete after its actual inputs are supplied (3349.3211ms)
|
||||
✔ host shutdown cancels an un-signalled HTTP model request and refuses later requests until recovered (1.5807ms)
|
||||
✔ host shutdown cancels model-pool acquisition and releases queue ownership without inventing attempts (953.8534ms)
|
||||
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1721.6749ms)
|
||||
✔ failed adoption restores the original virtual data-root name and original open database (826.0803ms)
|
||||
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (941.0262ms)
|
||||
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (942.9114ms)
|
||||
ℹ tests 11
|
||||
ℹ suites 0
|
||||
ℹ pass 11
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 7715.8365
|
||||
@@ -0,0 +1,3 @@
|
||||
PASS offline-install
|
||||
PASS build
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\packaged-build-61586920-5467-4c73-861c-aa4a38f11a34","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\packaged-build-61586920-5467-4c73-861c-aa4a38f11a34\\result.json","inputCount":560,"compiledFiles":22,"mismatches":0}
|
||||
@@ -0,0 +1 @@
|
||||
{"success":true,"version":"1.24.5","pid":36552,"projects":61,"sessions":77,"eventCursor":13115,"tables":{"events":13115,"metadata":6,"outbox":13115,"projects":61,"records":6167,"sessions":77,"sqlite_sequence":1},"scope":"Hash-only original persistent rows/artifacts; documented public model-center. No credentials."}
|
||||
@@ -0,0 +1,22 @@
|
||||
✔ full candidate validation returns the exact loaded-input host identity and rejects undeclared or altered files (1256.2234ms)
|
||||
✔ installation requires separate absolute program/data directories and a candidate in its own versions namespace (1045.5441ms)
|
||||
✔ staging retains the original data and pointer without querying or restarting a host (6703.9658ms)
|
||||
✔ a post-pointer failure restores every original pointer byte and persistent row; a first-install failure removes only its published pointer (22413.1256ms)
|
||||
✔ changed active manifest and concurrent pointer changes are rejected without overwriting the unknown record (5045.4558ms)
|
||||
✔ an unregistered non-HTTP listener blocks preflight even when service-info is absent (2625.9378ms)
|
||||
✔ uninstall archives its original pointer and preserves every data row/artifact instead of recursively deleting data (6132.047ms)
|
||||
✔ preflight rejects an unrelated program root or changed native bootstrap while preserving its original bytes (4500.4789ms)
|
||||
✔ a changed owned bootstrap follows its candidate and a post-pointer fault restores both original bytes (15902.3964ms)
|
||||
✔ an external bootstrap change after preflight is preserved and never overwritten as an update or rollback (7101.7483ms)
|
||||
✔ owned startup retries only read-only observation after a slow health response and attests the same original child (5903.1964ms)
|
||||
✔ unverified startup expires with its original live child and never treats timeout or an unrelated health PID as proof (9103.1419ms)
|
||||
✔ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (5645.1945ms)
|
||||
✔ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (15073.3526ms)
|
||||
ℹ tests 14
|
||||
ℹ suites 0
|
||||
ℹ pass 14
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 72842.8341
|
||||
@@ -0,0 +1,13 @@
|
||||
PASS actual clean user-level installation
|
||||
PASS actual installer rejects an open attested desktop window
|
||||
PASS actual update rejects a pending owned model request
|
||||
PASS actual installer rejects a persistent original task approval
|
||||
PASS actual manifest fault installer preserves original pointer, PID and all data
|
||||
PASS actual pointer-published fault rolls original host and pointer back
|
||||
PASS actual update retains original PID, instance, DPAPI ciphertext and every persistent byte
|
||||
PASS installed native bootstrap verifies and opens the registered release
|
||||
PASS native desktop remains registered before explicit owned cleanup
|
||||
PASS real host restart restores the owned saved credential and actual HTTP authentication
|
||||
PASS actual installed current results and saved HTML user paths
|
||||
PASS actual uninstall closes only the idle owned host and preserves user data
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-install-618c8130-2ac2-4a74-89f8-c74fe75d081c
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-source-20261103151145294",
|
||||
"evidenceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-evidence-20261103151145294",
|
||||
"portable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294.zip",
|
||||
"bytes": 242826539,
|
||||
"sha256": "d142770c8cdc18378d34cdca768d2704301de55b44781e5c435220f4b8525eeb"
|
||||
},
|
||||
"source": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-source-20261103151145294.zip",
|
||||
"bytes": 967345427,
|
||||
"sha256": "92e000f9c97abdb2da44c544cea6a3c3a5ce21a317e93d364af51588956a0302"
|
||||
},
|
||||
"evidence": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-evidence-20261103151145294.zip",
|
||||
"bytes": 726162616,
|
||||
"sha256": "19e626a672324b108e7d504cf535a344e9d8213fa078ef5537b133edad18b148"
|
||||
},
|
||||
"documentation": {
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"originalFiles": 20087,
|
||||
"originalBytes": 2278478825,
|
||||
"shippedFiles": 149,
|
||||
"shippedBytes": 1144828,
|
||||
"evidenceManifestSha256": "def04389cd0817f4ebb1837c42f5d581b0ba7408b2e8b76156f4d1aec2c4bb85"
|
||||
},
|
||||
"installer": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294-Setup.exe",
|
||||
"bytes": 213233219,
|
||||
"sha256": "df1455bd0d9e85e8788aa0be06c171d45aa580eb5cde22854a66f4e2b265b358",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-b905e1b4-ede3-4de0-9831-5926c982cf0e\\installer.iss",
|
||||
"version": "1.24.6",
|
||||
"candidateDirectory": "Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"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": 10944,
|
||||
"licenseTexts": 135,
|
||||
"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 @@
|
||||
{"success":true,"version":"1.24.6","sourceCommit":"54dbe3d6fc7b068e37010222a09cff244975b2c0","candidate":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294","independentInputs":560,"compiled":22,"isolatedInstallGroups":12,"sourcePortableInstalledDiagnostics":"9+9+9","realModelRequests":0,"scope":"All independent candidate gates complete before formal install. Each result belongs to the fixed source commit/candidate; original PID/Provider/data will be compared after actual upgrade."}
|
||||
@@ -0,0 +1,79 @@
|
||||
✔ model registry keeps original credentials/endpoint intact, rejects stale edits, and forgets only volatile keys on restart (1212.4998ms)
|
||||
✔ config import previews exact revisions, keeps secrets volatile, syncs only when enabled and preserves manual edits on conflicts (935.6421ms)
|
||||
✔ real HTTP pool fails over 429 to another model and never repeats completed tools; attempts seal actual request bytes and Run identity (3944.0751ms)
|
||||
✔ pool rotation and weights select members on new Runs; disabled and missing credentials are excluded without requests (5221.7042ms)
|
||||
✔ 401 blocks the credential revision; updating the key restores availability without leaking error echoes (1601.996ms)
|
||||
✔ queued request cancellation and in-flight disable release only owned leases and do not dispatch another HTTP request (1049.5114ms)
|
||||
✔ compiled model-center HTTP API persists public profiles, blocks forged origins, and local operations never invoke a model (2340.8516ms)
|
||||
✔ model registry disk failures restore routing, pool profiles and credential references without partial updates (528.304ms)
|
||||
✔ model selection and saved configuration commit together and failures preserve the original mode and endpoint (569.9199ms)
|
||||
✔ configuration imports roll back the entire batch and retain one usable preview after validation or commit failure (615.0078ms)
|
||||
✔ identity distinguishes missing, invalid, mixed, exact and explicitly declared aliases without guessing (1.2109ms)
|
||||
✔ chat-completions JSON rejects a different model before tool dispatch, retaining source and reported usage (2267.6142ms)
|
||||
✔ chat-completions SSE rejects a different model before tool dispatch, retaining source and reported usage (1949.1466ms)
|
||||
✔ responses JSON rejects a different model before tool dispatch, retaining source and reported usage (2032.6097ms)
|
||||
✔ responses SSE rejects a different model before tool dispatch, retaining source and reported usage (2038.6688ms)
|
||||
✔ record policy accepts missing identity but keeps it explicit, and strict declared mapping is frozen in the consumption (1.4629ms)
|
||||
✔ mixed streamed identities cannot pass strict mode, and interrupted streams retain observed identifiers without authenticating them (1.2657ms)
|
||||
✔ identity refusal never fails over to another pool member and raw response model cannot leak known credentials (1727.0246ms)
|
||||
✔ strict refusal remains visible even when the same original response exhausts the budget (1675.2894ms)
|
||||
✔ strict identity crosses the controlled engine bridge with its original source and zero tool dispatch (15584.904ms)
|
||||
✔ frozen direct connection policy and delivery reports preserve response identity without filling historical gaps (2828.121ms)
|
||||
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (572.0972ms)
|
||||
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (719.0372ms)
|
||||
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (1846.5694ms)
|
||||
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (2215.2194ms)
|
||||
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
|
||||
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (1288.7645ms)
|
||||
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (1409.6191ms)
|
||||
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (1804.0093ms)
|
||||
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1684.6094ms)
|
||||
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (6187.8619ms)
|
||||
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
|
||||
✔ chat-completions (1838.8817ms)
|
||||
✔ responses (2184.0373ms)
|
||||
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (4023.3854ms)
|
||||
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.3009ms)
|
||||
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (781.158ms)
|
||||
✔ capability routing skips text-only members before acquiring a lease and records exact refusal in the original Run (1976.6647ms)
|
||||
✔ all incompatible members reject with no network request, no lease, preserved Task and explicit non-dispatched ledger (1466.125ms)
|
||||
✔ explicit synthetic tool probe verifies only actual matching call, never executes it and loses verification on revision changes (932.7386ms)
|
||||
✔ plain text probe cannot verify tools; wrong tool nonce and client supplied evidence cannot claim verified support (1084.2536ms)
|
||||
✔ a disabled connection invalidates an in-flight probe even when toggle mutates its original registry object (913.635ms)
|
||||
✔ selected connection owns the actual endpoint, credential, wire model and mismatch even when legacy is configured for GPT (3605.4767ms)
|
||||
✔ budget-only API and demo/real selection preserve routes, reject injected endpoint fields and publish authoritative selection without keys (2641.5094ms)
|
||||
✔ another session cannot change default model, mode or budgets while a request is active (4591.1286ms)
|
||||
✔ owned IPv4 service works after a failed IPv6 candidate without a second model POST or global DNS change (25.3584ms)
|
||||
✔ environment HTTP proxy tunnels the owned request and NO_PROXY sends a separate direct request (10.5611ms)
|
||||
✔ original connect timeout has a bounded nested cause and does not masquerade as response generation timeout (0.808ms)
|
||||
✔ POST accepted then reset is unknown, is charged once and never automatically retried (3.7444ms)
|
||||
✔ partial HTTP bodies retain original request id and bytes, and an unknown pool attempt never switches model (2191.1393ms)
|
||||
✔ response wait timeout after an accepted POST is unknown; cancellation closes the owned socket and permits explicit reuse (143.3542ms)
|
||||
✔ older configurations receive bounded wait defaults without changing the original object (1.016ms)
|
||||
✔ active stream survives sixty seconds; byte activity resets idle but cannot extend total deadline (0.7984ms)
|
||||
✔ silent stream has its own accurate deadline; caller cancellation and cleanup preserve their cause (1.7826ms)
|
||||
✔ waiting for headers is bounded independently of stream-idle time (0.2255ms)
|
||||
✔ wait settings persist, pin new runs and leave model pool, credentials and old run snapshots intact (717.2764ms)
|
||||
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (1106.2369ms)
|
||||
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (669.9139ms)
|
||||
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (808.4455ms)
|
||||
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1722.0253ms)
|
||||
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1372.0119ms)
|
||||
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (820.0204ms)
|
||||
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (1135.8582ms)
|
||||
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (1237.3817ms)
|
||||
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1135.7222ms)
|
||||
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (940.1191ms)
|
||||
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (967.7105ms)
|
||||
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1442.1466ms)
|
||||
✔ failed adoption restores the original virtual data-root name and original open database (784.9474ms)
|
||||
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (808.5393ms)
|
||||
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (763.7999ms)
|
||||
ℹ tests 69
|
||||
ℹ suites 0
|
||||
ℹ pass 69
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 52605.6788
|
||||
@@ -0,0 +1,7 @@
|
||||
PASS connection form stores only the volatile credential and renders configured status without exposing it
|
||||
PASS pool editor saves weighted members and binds selection for new Runs
|
||||
PASS schema-bound import preview, opt-in automatic sync, revision update and sync shutdown keep credentials hidden
|
||||
PASS real historical pagination detects the owned corrupted older artifact, retains its identity and leaves original bytes unchanged
|
||||
PASS local inspection shows real database and artifact checks and emits zero model requests
|
||||
PASS 390px model-center modal and connection cards remain operable without horizontal page overflow
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\model-center-ui-9bc54d8d-2e3a-49d7-ada9-7483fd733bc4
|
||||
@@ -0,0 +1,4 @@
|
||||
PASS strict policy and multiple declared aliases save and reload at desktop and 390px without a model call
|
||||
PASS strict mismatch pauses before any proposal, retains reported usage, persists on refresh and downloads SHA-verified original
|
||||
PASS physical request ledger retains the same identity and source without page errors
|
||||
{"success":true,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\model-identity-ui-c10fa597-3be6-4b2f-aad2-8c321868d65e","checks":3}
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS actual form saves Responses and declared stream, refresh preserves both and narrow editor remains operable
|
||||
PASS separate text, nonce tool and actual SSE probes bind only their requested capability and own attempts
|
||||
PASS actual pooled task excludes text-only before dispatch, executes original tool once and downloads SHA-matched original SSE
|
||||
PASS desktop and actual paired gateway show same bounded stream; mobile stops original HTTP with zero fragment tool dispatch or replay
|
||||
PASS truncated output keeps explicit unknown ledger, partial evidence and no automatic failover or incomplete tool execution
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\model-protocols-ui-1269b9a9-c768-481a-90d1-dff1cb0dd3ce
|
||||
@@ -0,0 +1,8 @@
|
||||
PASS sidebar and header share the authoritative multi-model selector; selection persists without a request
|
||||
PASS add from primary entry keeps the previous default, supports a new selection and survives reload without paid probes
|
||||
PASS budget-only saves preserve the pool and original connection editing is explicitly secondary and cancellable
|
||||
PASS actual pool request reaches only the selected endpoint; changing defaults preserves the sealed old Run and shows both identities
|
||||
PASS opening refreshes another tab selection and choosing a real connection exits demo without losing profiles
|
||||
PASS 390px header and sidebar both add and switch with long model labels and no page overflow
|
||||
PASS active request locks route and add controls and server rejects budget overrides across sessions
|
||||
{"success":true,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\model-selection-k-48e8fd63-e23b-464b-a4e4-4a85fbce15b4","checks":7}
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS desktop saves seconds, preserves original pool/member and sends no model request
|
||||
PASS invalid timeout rejected without saving
|
||||
PASS saved values survive reload; narrow screen remains usable
|
||||
PASS active request locks wait changes in both API and UI
|
||||
PASS actual stalled stream shows exact idle reason, saves unknown use, never writes or retries
|
||||
{"success":true,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\model-wait-ui-86051db0-5055-4c64-93c2-b34aecfcab6d","checks":5,"screenshots":4}
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS connection-card entry binds the exact saved target, works without a Key and shows an honest empty state
|
||||
PASS real loopback TCP success separates missing IPv6, HTTPS proxy scope and untested model API capability
|
||||
PASS refresh restores the original saved result without repeating network work
|
||||
PASS connection failure stays attached to the selected endpoint and shows its real TCP error code
|
||||
PASS running TLS check disables duplicate start and explicit stop closes owned sockets before reporting stopped
|
||||
PASS closing and reopening the model center recovers the same active check and retains explicit stop
|
||||
PASS old revisions remain visible, stale starts reject before any socket, and refreshing permits a new bounded check
|
||||
PASS 390px success and failure states fit without page or panel overflow and retain touch-sized actions
|
||||
PASS original routing, budgets, model ledger and capability results remain unchanged; no HTTP or credential text is sent
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q-ui-0fbc1026-fec5-4d7f-9a0a-02062f2b1b70","checks":9}
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS connection-card entry binds the exact saved target, works without a Key and shows an honest empty state
|
||||
PASS real loopback TCP success separates missing IPv6, HTTPS proxy scope and untested model API capability
|
||||
PASS refresh restores the original saved result without repeating network work
|
||||
PASS connection failure stays attached to the selected endpoint and shows its real TCP error code
|
||||
PASS running TLS check disables duplicate start and explicit stop closes owned sockets before reporting stopped
|
||||
PASS closing and reopening the model center recovers the same active check and retains explicit stop
|
||||
PASS old revisions remain visible, stale starts reject before any socket, and refreshing permits a new bounded check
|
||||
PASS 390px success and failure states fit without page or panel overflow and retain touch-sized actions
|
||||
PASS original routing, budgets, model ledger and capability results remain unchanged; no HTTP or credential text is sent
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q-ui-32904838-5901-47e0-9a46-fb8657fc08eb","checks":9}
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS connection-card entry binds the exact saved target, works without a Key and shows an honest empty state
|
||||
PASS real loopback TCP success separates missing IPv6, HTTPS proxy scope and untested model API capability
|
||||
PASS refresh restores the original saved result without repeating network work
|
||||
PASS connection failure stays attached to the selected endpoint and shows its real TCP error code
|
||||
PASS running TLS check disables duplicate start and explicit stop closes owned sockets before reporting stopped
|
||||
PASS closing and reopening the model center recovers the same active check and retains explicit stop
|
||||
PASS old revisions remain visible, stale starts reject before any socket, and refreshing permits a new bounded check
|
||||
PASS 390px success and failure states fit without page or panel overflow and retain touch-sized actions
|
||||
PASS original routing, budgets, model ledger and capability results remain unchanged; no HTTP or credential text is sent
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q-ui-4d016cde-305e-4dcd-b8b4-c7f322b531f7","checks":9}
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS connection-card entry binds the exact saved target, works without a Key and shows an honest empty state
|
||||
PASS real loopback TCP success separates missing IPv6, HTTPS proxy scope and untested model API capability
|
||||
PASS refresh restores the original saved result without repeating network work
|
||||
PASS connection failure stays attached to the selected endpoint and shows its real TCP error code
|
||||
PASS running TLS check disables duplicate start and explicit stop closes owned sockets before reporting stopped
|
||||
PASS closing and reopening the model center recovers the same active check and retains explicit stop
|
||||
PASS old revisions remain visible, stale starts reject before any socket, and refreshing permits a new bounded check
|
||||
PASS 390px success and failure states fit without page or panel overflow and retain touch-sized actions
|
||||
PASS original routing, budgets, model ledger and capability results remain unchanged; no HTTP or credential text is sent
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q-ui-0bd8dac9-dd16-484c-8ed6-213ab119709e","checks":9}
|
||||
@@ -0,0 +1,10 @@
|
||||
PASS connection-card entry binds the exact saved target, works without a Key and shows an honest empty state
|
||||
PASS real loopback TCP success separates missing IPv6, HTTPS proxy scope and untested model API capability
|
||||
PASS refresh restores the original saved result without repeating network work
|
||||
PASS connection failure stays attached to the selected endpoint and shows its real TCP error code
|
||||
PASS running TLS check disables duplicate start and explicit stop closes owned sockets before reporting stopped
|
||||
PASS closing and reopening the model center recovers the same active check and retains explicit stop
|
||||
PASS old revisions remain visible, stale starts reject before any socket, and refreshing permits a new bounded check
|
||||
PASS 390px success and failure states fit without page or panel overflow and retain touch-sized actions
|
||||
PASS original routing, budgets, model ledger and capability results remain unchanged; no HTTP or credential text is sent
|
||||
{"success":true,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q-ui-24865bee-6fbd-4d8c-8b13-188a35852693","checks":9}
|
||||
@@ -0,0 +1,12 @@
|
||||
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1438.3183ms)
|
||||
✔ failed adoption restores the original virtual data-root name and original open database (699.623ms)
|
||||
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (513.9326ms)
|
||||
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (507.6104ms)
|
||||
ℹ tests 4
|
||||
ℹ suites 0
|
||||
ℹ pass 4
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 3471.3699
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.5",
|
||||
"pid": 36552,
|
||||
"projects": 61,
|
||||
"sessions": 77,
|
||||
"tables": {
|
||||
"events": 13115,
|
||||
"metadata": 6,
|
||||
"outbox": 13115,
|
||||
"projects": 61,
|
||||
"records": 6167,
|
||||
"sessions": 77,
|
||||
"sqlite_sequence": 1
|
||||
},
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.5-win-x64-20261103133956264",
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"hasKey": true,
|
||||
"active": [],
|
||||
"mode": "before",
|
||||
"startedAt": "2026-11-03T15:18:51.525Z",
|
||||
"finishedAt": "2026-11-03T15:19:00.274Z",
|
||||
"realModelRequests": 0,
|
||||
"scope": "Public API/full original row/export/artifact hashes; installer retains original running host and Provider. No credential extraction or task replay."
|
||||
}
|
||||
@@ -0,0 +1,401 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.6",
|
||||
"pid": 36552,
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"projects": 61,
|
||||
"sessions": 77,
|
||||
"hasKey": true,
|
||||
"retention": {
|
||||
"originalRows": "exact",
|
||||
"originalExports": "exact",
|
||||
"originalArtifactBytes": "exact",
|
||||
"originalModelCenter": "exact"
|
||||
},
|
||||
"pointer": {
|
||||
"schema": 1,
|
||||
"app": "agent-workbench-installation",
|
||||
"installId": "74c11bdd-4895-459b-8403-097f79980b41",
|
||||
"revision": 22,
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"port": 4318,
|
||||
"active": {
|
||||
"directory": "Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"version": "1.24.6",
|
||||
"manifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"runtimeIdentity": "2c662dee28c0c61b57e2f77dbb546667af7b6938aaf848e5a6facde973cad2e1"
|
||||
},
|
||||
"previous": {
|
||||
"directory": "Agent-Workbench-1.24.5-win-x64-20261103133956264",
|
||||
"version": "1.24.5",
|
||||
"manifestSha256": "44e442109062fd2f33891aa414ff7b328f951948de1836cd1caf9b775342ec81",
|
||||
"runtimeIdentity": "ff2a8b8d69648a32740c9725e2d88a4e4c34bd95d69497798fdd67409a45d7d9"
|
||||
},
|
||||
"activatedAt": "2026-11-03T15:47:56.270Z"
|
||||
},
|
||||
"operation": {
|
||||
"schema": 1,
|
||||
"id": "26eda9b08b5444d812718b48fe818e97c741d86ace40627507ebf1158b2c38d1",
|
||||
"installRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench",
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"command": "activate",
|
||||
"expectedManifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"startedAt": "2026-11-03T15:36:38.566Z",
|
||||
"sequence": 1246,
|
||||
"history": [
|
||||
{
|
||||
"stage": "preparing",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:36:39.170Z",
|
||||
"finishedAt": "2026-11-03T15:36:39.176Z",
|
||||
"elapsedMs": 6
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:36:39.176Z",
|
||||
"finishedAt": "2026-11-03T15:36:39.204Z",
|
||||
"elapsedMs": 28
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:36:39.204Z",
|
||||
"finishedAt": "2026-11-03T15:37:42.858Z",
|
||||
"elapsedMs": 63654
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:37:42.858Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.608Z",
|
||||
"elapsedMs": 41751
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:38:24.608Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.739Z",
|
||||
"elapsedMs": 131
|
||||
},
|
||||
{
|
||||
"stage": "inspect-root",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:38:24.739Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.767Z",
|
||||
"elapsedMs": 28
|
||||
},
|
||||
{
|
||||
"stage": "inspect-host",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:38:24.767Z",
|
||||
"finishedAt": "2026-11-03T15:38:28.326Z",
|
||||
"elapsedMs": 3559
|
||||
},
|
||||
{
|
||||
"stage": "preparing",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:39:03.647Z",
|
||||
"finishedAt": "2026-11-03T15:39:03.654Z",
|
||||
"elapsedMs": 6
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:39:03.654Z",
|
||||
"finishedAt": "2026-11-03T15:39:03.687Z",
|
||||
"elapsedMs": 33
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10944,
|
||||
"totalFiles": 10944,
|
||||
"completedBytes": 657071308,
|
||||
"totalBytes": 657071308,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:39:03.687Z",
|
||||
"finishedAt": "2026-11-03T15:41:41.446Z",
|
||||
"elapsedMs": 157760
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10945,
|
||||
"totalFiles": 10945,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:41:41.446Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.027Z",
|
||||
"elapsedMs": 41582
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9306746,
|
||||
"totalBytes": 9306746,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:42:23.027Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.170Z",
|
||||
"elapsedMs": 143
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:42:23.170Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.201Z",
|
||||
"elapsedMs": 31
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:42:23.201Z",
|
||||
"finishedAt": "2026-11-03T15:43:25.326Z",
|
||||
"elapsedMs": 62125
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:43:25.326Z",
|
||||
"finishedAt": "2026-11-03T15:44:07.179Z",
|
||||
"elapsedMs": 41854
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:44:07.179Z",
|
||||
"finishedAt": "2026-11-03T15:44:10.616Z",
|
||||
"elapsedMs": 3437
|
||||
},
|
||||
{
|
||||
"stage": "snapshot-data",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:10.616Z",
|
||||
"finishedAt": "2026-11-03T15:44:17.305Z",
|
||||
"elapsedMs": 6689
|
||||
},
|
||||
{
|
||||
"stage": "retain-host",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:17.305Z",
|
||||
"finishedAt": "2026-11-03T15:44:21.388Z",
|
||||
"elapsedMs": 4083
|
||||
},
|
||||
{
|
||||
"stage": "verify-data",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:21.388Z",
|
||||
"finishedAt": "2026-11-03T15:44:28.045Z",
|
||||
"elapsedMs": 6657
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:28.045Z",
|
||||
"finishedAt": "2026-11-03T15:44:28.072Z",
|
||||
"elapsedMs": 27
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:44:28.072Z",
|
||||
"finishedAt": "2026-11-03T15:45:30.274Z",
|
||||
"elapsedMs": 62202
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:45:30.274Z",
|
||||
"finishedAt": "2026-11-03T15:46:11.907Z",
|
||||
"elapsedMs": 41633
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:46:11.907Z",
|
||||
"finishedAt": "2026-11-03T15:46:12.040Z",
|
||||
"elapsedMs": 133
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:46:12.040Z",
|
||||
"finishedAt": "2026-11-03T15:46:12.062Z",
|
||||
"elapsedMs": 22
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10944,
|
||||
"totalFiles": 10944,
|
||||
"completedBytes": 657071308,
|
||||
"totalBytes": 657071308,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:46:12.062Z",
|
||||
"finishedAt": "2026-11-03T15:47:14.197Z",
|
||||
"elapsedMs": 62136
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10945,
|
||||
"totalFiles": 10945,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:47:14.197Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.122Z",
|
||||
"elapsedMs": 41925
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9306746,
|
||||
"totalBytes": 9306746,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:47:56.122Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.260Z",
|
||||
"elapsedMs": 138
|
||||
},
|
||||
{
|
||||
"stage": "publish-pointer",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:47:56.260Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.274Z",
|
||||
"elapsedMs": 13
|
||||
},
|
||||
{
|
||||
"stage": "verify-publication",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:47:56.274Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.321Z",
|
||||
"elapsedMs": 47
|
||||
}
|
||||
],
|
||||
"process": {
|
||||
"pid": 3100,
|
||||
"createdAt": "2026-11-03T15:39:01.804Z"
|
||||
},
|
||||
"candidate": {
|
||||
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"version": "1.24.6",
|
||||
"manifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"runtimeIdentity": "2c662dee28c0c61b57e2f77dbb546667af7b6938aaf848e5a6facde973cad2e1"
|
||||
},
|
||||
"state": "completed",
|
||||
"stage": "completed",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"interruptible": false,
|
||||
"label": "版本激活完成",
|
||||
"detail": {
|
||||
"activeVersion": "1.24.6",
|
||||
"receiptFile": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\.installation\\operation-2c0de4e0-1349-4bad-ac5b-adcdb57ee2b2.json"
|
||||
},
|
||||
"stageStartedAt": "2026-11-03T15:47:56.321Z",
|
||||
"updatedAt": "2026-11-03T15:47:56.321Z",
|
||||
"elapsedMs": 677755
|
||||
},
|
||||
"desktopWindows": 1,
|
||||
"inspectorClosed": true,
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"mode": "final",
|
||||
"startedAt": "2026-11-03T15:50:38.918Z",
|
||||
"finishedAt": "2026-11-03T15:50:55.349Z",
|
||||
"realModelRequests": 0,
|
||||
"scope": "Public API/full original row/export/artifact hashes; installer retains original running host and Provider. No credential extraction or task replay."
|
||||
}
|
||||
@@ -0,0 +1,401 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.6",
|
||||
"pid": 36552,
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"projects": 61,
|
||||
"sessions": 77,
|
||||
"hasKey": true,
|
||||
"retention": {
|
||||
"originalRows": "exact",
|
||||
"originalExports": "exact",
|
||||
"originalArtifactBytes": "exact",
|
||||
"originalModelCenter": "exact"
|
||||
},
|
||||
"pointer": {
|
||||
"schema": 1,
|
||||
"app": "agent-workbench-installation",
|
||||
"installId": "74c11bdd-4895-459b-8403-097f79980b41",
|
||||
"revision": 22,
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"port": 4318,
|
||||
"active": {
|
||||
"directory": "Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"version": "1.24.6",
|
||||
"manifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"runtimeIdentity": "2c662dee28c0c61b57e2f77dbb546667af7b6938aaf848e5a6facde973cad2e1"
|
||||
},
|
||||
"previous": {
|
||||
"directory": "Agent-Workbench-1.24.5-win-x64-20261103133956264",
|
||||
"version": "1.24.5",
|
||||
"manifestSha256": "44e442109062fd2f33891aa414ff7b328f951948de1836cd1caf9b775342ec81",
|
||||
"runtimeIdentity": "ff2a8b8d69648a32740c9725e2d88a4e4c34bd95d69497798fdd67409a45d7d9"
|
||||
},
|
||||
"activatedAt": "2026-11-03T15:47:56.270Z"
|
||||
},
|
||||
"operation": {
|
||||
"schema": 1,
|
||||
"id": "26eda9b08b5444d812718b48fe818e97c741d86ace40627507ebf1158b2c38d1",
|
||||
"installRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench",
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"command": "activate",
|
||||
"expectedManifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"startedAt": "2026-11-03T15:36:38.566Z",
|
||||
"sequence": 1246,
|
||||
"history": [
|
||||
{
|
||||
"stage": "preparing",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:36:39.170Z",
|
||||
"finishedAt": "2026-11-03T15:36:39.176Z",
|
||||
"elapsedMs": 6
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:36:39.176Z",
|
||||
"finishedAt": "2026-11-03T15:36:39.204Z",
|
||||
"elapsedMs": 28
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:36:39.204Z",
|
||||
"finishedAt": "2026-11-03T15:37:42.858Z",
|
||||
"elapsedMs": 63654
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:37:42.858Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.608Z",
|
||||
"elapsedMs": 41751
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:38:24.608Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.739Z",
|
||||
"elapsedMs": 131
|
||||
},
|
||||
{
|
||||
"stage": "inspect-root",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:38:24.739Z",
|
||||
"finishedAt": "2026-11-03T15:38:24.767Z",
|
||||
"elapsedMs": 28
|
||||
},
|
||||
{
|
||||
"stage": "inspect-host",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:38:24.767Z",
|
||||
"finishedAt": "2026-11-03T15:38:28.326Z",
|
||||
"elapsedMs": 3559
|
||||
},
|
||||
{
|
||||
"stage": "preparing",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:39:03.647Z",
|
||||
"finishedAt": "2026-11-03T15:39:03.654Z",
|
||||
"elapsedMs": 6
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:39:03.654Z",
|
||||
"finishedAt": "2026-11-03T15:39:03.687Z",
|
||||
"elapsedMs": 33
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10944,
|
||||
"totalFiles": 10944,
|
||||
"completedBytes": 657071308,
|
||||
"totalBytes": 657071308,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:39:03.687Z",
|
||||
"finishedAt": "2026-11-03T15:41:41.446Z",
|
||||
"elapsedMs": 157760
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10945,
|
||||
"totalFiles": 10945,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:41:41.446Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.027Z",
|
||||
"elapsedMs": 41582
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9306746,
|
||||
"totalBytes": 9306746,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:42:23.027Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.170Z",
|
||||
"elapsedMs": 143
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:42:23.170Z",
|
||||
"finishedAt": "2026-11-03T15:42:23.201Z",
|
||||
"elapsedMs": 31
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:42:23.201Z",
|
||||
"finishedAt": "2026-11-03T15:43:25.326Z",
|
||||
"elapsedMs": 62125
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:43:25.326Z",
|
||||
"finishedAt": "2026-11-03T15:44:07.179Z",
|
||||
"elapsedMs": 41854
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:44:07.179Z",
|
||||
"finishedAt": "2026-11-03T15:44:10.616Z",
|
||||
"elapsedMs": 3437
|
||||
},
|
||||
{
|
||||
"stage": "snapshot-data",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:10.616Z",
|
||||
"finishedAt": "2026-11-03T15:44:17.305Z",
|
||||
"elapsedMs": 6689
|
||||
},
|
||||
{
|
||||
"stage": "retain-host",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:17.305Z",
|
||||
"finishedAt": "2026-11-03T15:44:21.388Z",
|
||||
"elapsedMs": 4083
|
||||
},
|
||||
{
|
||||
"stage": "verify-data",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:21.388Z",
|
||||
"finishedAt": "2026-11-03T15:44:28.045Z",
|
||||
"elapsedMs": 6657
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:44:28.045Z",
|
||||
"finishedAt": "2026-11-03T15:44:28.072Z",
|
||||
"elapsedMs": 27
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10939,
|
||||
"totalFiles": 10939,
|
||||
"completedBytes": 656901557,
|
||||
"totalBytes": 656901557,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:44:28.072Z",
|
||||
"finishedAt": "2026-11-03T15:45:30.274Z",
|
||||
"elapsedMs": 62202
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10940,
|
||||
"totalFiles": 10940,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:45:30.274Z",
|
||||
"finishedAt": "2026-11-03T15:46:11.907Z",
|
||||
"elapsedMs": 41633
|
||||
},
|
||||
{
|
||||
"stage": "verify-current",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9260774,
|
||||
"totalBytes": 9260774,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:46:11.907Z",
|
||||
"finishedAt": "2026-11-03T15:46:12.040Z",
|
||||
"elapsedMs": 133
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:46:12.040Z",
|
||||
"finishedAt": "2026-11-03T15:46:12.062Z",
|
||||
"elapsedMs": 22
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "full-manifest",
|
||||
"counts": {
|
||||
"completedFiles": 10944,
|
||||
"totalFiles": 10944,
|
||||
"completedBytes": 657071308,
|
||||
"totalBytes": 657071308,
|
||||
"currentPath": "scripts/upgrade-running.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:46:12.062Z",
|
||||
"finishedAt": "2026-11-03T15:47:14.197Z",
|
||||
"elapsedMs": 62136
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "directory-inventory",
|
||||
"counts": {
|
||||
"completedFiles": 10945,
|
||||
"totalFiles": 10945,
|
||||
"completedBytes": null,
|
||||
"totalBytes": null,
|
||||
"currentPath": "THIRD_PARTY_NOTICES.txt"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:47:14.197Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.122Z",
|
||||
"elapsedMs": 41925
|
||||
},
|
||||
{
|
||||
"stage": "verify-candidate",
|
||||
"scope": "loaded-inputs",
|
||||
"counts": {
|
||||
"completedFiles": 22,
|
||||
"totalFiles": 22,
|
||||
"completedBytes": 9306746,
|
||||
"totalBytes": 9306746,
|
||||
"currentPath": "dist-server/server.mjs"
|
||||
},
|
||||
"startedAt": "2026-11-03T15:47:56.122Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.260Z",
|
||||
"elapsedMs": 138
|
||||
},
|
||||
{
|
||||
"stage": "publish-pointer",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:47:56.260Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.274Z",
|
||||
"elapsedMs": 13
|
||||
},
|
||||
{
|
||||
"stage": "verify-publication",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"startedAt": "2026-11-03T15:47:56.274Z",
|
||||
"finishedAt": "2026-11-03T15:47:56.321Z",
|
||||
"elapsedMs": 47
|
||||
}
|
||||
],
|
||||
"process": {
|
||||
"pid": 3100,
|
||||
"createdAt": "2026-11-03T15:39:01.804Z"
|
||||
},
|
||||
"candidate": {
|
||||
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"version": "1.24.6",
|
||||
"manifestSha256": "64aa8b2ae90df30eb33b9d2f60b458c3fcf61de7cbc778ac2d08fd0f7437127d",
|
||||
"runtimeIdentity": "2c662dee28c0c61b57e2f77dbb546667af7b6938aaf848e5a6facde973cad2e1"
|
||||
},
|
||||
"state": "completed",
|
||||
"stage": "completed",
|
||||
"scope": null,
|
||||
"counts": null,
|
||||
"interruptible": false,
|
||||
"label": "版本激活完成",
|
||||
"detail": {
|
||||
"activeVersion": "1.24.6",
|
||||
"receiptFile": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\.installation\\operation-2c0de4e0-1349-4bad-ac5b-adcdb57ee2b2.json"
|
||||
},
|
||||
"stageStartedAt": "2026-11-03T15:47:56.321Z",
|
||||
"updatedAt": "2026-11-03T15:47:56.321Z",
|
||||
"elapsedMs": 677755
|
||||
},
|
||||
"desktopWindows": 0,
|
||||
"inspectorClosed": true,
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"mode": "install",
|
||||
"startedAt": "2026-11-03T15:36:27.286Z",
|
||||
"finishedAt": "2026-11-03T15:48:04.142Z",
|
||||
"realModelRequests": 0,
|
||||
"scope": "Public API/full original row/export/artifact hashes; installer retains original running host and Provider. No credential extraction or task replay."
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"code": 0,
|
||||
"finishedAt": "2026-11-03T15:47:56.428Z"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"app": "agent-workbench-installation",
|
||||
"installId": "74c11bdd-4895-459b-8403-097f79980b41",
|
||||
"revision": 21,
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"port": 4318,
|
||||
"active": {
|
||||
"directory": "Agent-Workbench-1.24.5-win-x64-20261103133956264",
|
||||
"version": "1.24.5",
|
||||
"manifestSha256": "44e442109062fd2f33891aa414ff7b328f951948de1836cd1caf9b775342ec81",
|
||||
"runtimeIdentity": "ff2a8b8d69648a32740c9725e2d88a4e4c34bd95d69497798fdd67409a45d7d9"
|
||||
},
|
||||
"previous": {
|
||||
"directory": "Agent-Workbench-1.24.4-win-x64-20261103112054864",
|
||||
"version": "1.24.4",
|
||||
"manifestSha256": "a7a0a64bda8babe16bec85b9f1b5e195291779b79db8cff478e3a9fe123e8c2f",
|
||||
"runtimeIdentity": "af61c35c5465880fd73fb76a597972286fe49f8fd6a3d2cd8ac706845d05c00d"
|
||||
},
|
||||
"activatedAt": "2026-11-03T14:16:07.371Z"
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-source-20261103151145294",
|
||||
"evidenceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-evidence-20261103151145294",
|
||||
"portable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294.zip",
|
||||
"bytes": 242826539,
|
||||
"sha256": "d142770c8cdc18378d34cdca768d2704301de55b44781e5c435220f4b8525eeb"
|
||||
},
|
||||
"source": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-source-20261103151145294.zip",
|
||||
"bytes": 967345427,
|
||||
"sha256": "92e000f9c97abdb2da44c544cea6a3c3a5ce21a317e93d364af51588956a0302"
|
||||
},
|
||||
"evidence": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-evidence-20261103151145294.zip",
|
||||
"bytes": 726162616,
|
||||
"sha256": "19e626a672324b108e7d504cf535a344e9d8213fa078ef5537b133edad18b148"
|
||||
},
|
||||
"documentation": {
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"originalFiles": 20087,
|
||||
"originalBytes": 2278478825,
|
||||
"shippedFiles": 149,
|
||||
"shippedBytes": 1144828,
|
||||
"evidenceManifestSha256": "def04389cd0817f4ebb1837c42f5d581b0ba7408b2e8b76156f4d1aec2c4bb85"
|
||||
},
|
||||
"installer": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294-Setup.exe",
|
||||
"bytes": 213233219,
|
||||
"sha256": "df1455bd0d9e85e8788aa0be06c171d45aa580eb5cde22854a66f4e2b265b358",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-b905e1b4-ede3-4de0-9831-5926c982cf0e\\installer.iss",
|
||||
"version": "1.24.6",
|
||||
"candidateDirectory": "Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"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": 10944,
|
||||
"licenseTexts": 135,
|
||||
"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,10 @@
|
||||
{
|
||||
"window": {
|
||||
"app": "process:C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.5-win-x64-20261103133956264\\desktop\\AgentWorkbench.exe",
|
||||
"id": 24317444,
|
||||
"title": "Agent Workbench · 本地编程工作台"
|
||||
},
|
||||
"screenshotId": "screenshot-0",
|
||||
"observedAt": "2026-11-03T15:09:37.010Z",
|
||||
"scope": "Formal 1.24.5 window before upgrade; no input content changed."
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
连接诊断
|
||||
检查端点的 DNS、TCP 和 TLS。无需 Key,不发送模型请求。
|
||||
刷新
|
||||
诊断连接
|
||||
诊断连接
|
||||
开始直连检查
|
||||
https://api.apikey.fan/v1 · 配置修订 11
|
||||
本次只检查端点直连路径,保留证书校验;握手通过不能证明 Key、型号或模型能力可用。检查最多约 12 秒,离开后结果保留。
|
||||
先检查连接,再判断问题阶段
|
||||
选择已保存的连接并开始检查。这里会保留解析地址、连接耗时和证书核对结果,原任务不会被重新执行。
|
||||
近期检查
|
||||
保存最近 30 条;点击查看原记录。
|
||||
这条连接还没有检查记录。
|
||||
|
After Width: | Height: | Size: 106 KiB |
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.6",
|
||||
"window": {
|
||||
"app": "process:C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.6-win-x64-20261103151145294\\desktop\\AgentWorkbench.exe",
|
||||
"id": 16253852,
|
||||
"title": "Agent Workbench · 本地编程工作台"
|
||||
},
|
||||
"screenshot": "diagnostics.jpg",
|
||||
"screenshotId": "screenshot-0",
|
||||
"observedAt": "2026-11-03T15:50:38.628Z",
|
||||
"checks": [
|
||||
"existing installed bootstrap opened actual 1.24.6 desktop",
|
||||
"model-center native navigation reached diagnostics",
|
||||
"saved endpoint/revision, scope and empty history visible without starting a check"
|
||||
],
|
||||
"launchObservation": "Bootstrap launch first reported no window; one fresh list_windows found the actual versioned process. It was not launched again.",
|
||||
"realModelRequests": 0,
|
||||
"scope": "Actual formal native window observation. No credential access, diagnostic/model start, project write or old task replay."
|
||||
}
|
||||
|
After Width: | Height: | Size: 164 KiB |
@@ -0,0 +1,25 @@
|
||||
连接诊断
|
||||
|
||||
检查端点的 DNS、TCP 和 TLS。无需 Key,不发送模型请求。
|
||||
|
||||
刷新
|
||||
诊断连接
|
||||
原模型连接
|
||||
apikey
|
||||
apikey
|
||||
jojocode
|
||||
开始直连检查
|
||||
|
||||
https://jojocode.com/v1 · 配置修订 5
|
||||
|
||||
本次只检查端点直连路径,保留证书校验;握手通过不能证明 Key、型号或模型能力可用。检查最多约 12 秒,离开后结果保留。
|
||||
|
||||
先检查连接,再判断问题阶段
|
||||
|
||||
选择已保存的连接并开始检查。这里会保留解析地址、连接耗时和证书核对结果,原任务不会被重新执行。
|
||||
|
||||
近期检查
|
||||
|
||||
保存最近 30 条;点击查看原记录。
|
||||
|
||||
这条连接还没有检查记录。
|
||||
|
After Width: | Height: | Size: 94 KiB |
@@ -0,0 +1,121 @@
|
||||
AW
|
||||
Agent Workbench
|
||||
本地编程工作台 · 正式版
|
||||
当前项目
|
||||
expense-project
|
||||
identity-only
|
||||
expense-project
|
||||
expense-project
|
||||
identity-only
|
||||
identity-only
|
||||
identity-only
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
python-source · python actual engineering
|
||||
python-source
|
||||
react-source · react actual engineering
|
||||
react-source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
python-source · python actual engineering
|
||||
python-source
|
||||
react-source · react actual engineering
|
||||
react-source
|
||||
测试
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
source · 真实收支报告
|
||||
source
|
||||
python-source · python actual engineering
|
||||
python-source
|
||||
react-source · react actual engineering
|
||||
react-source
|
||||
starter-project(示例)
|
||||
starter-project
|
||||
starter-project
|
||||
python-source · python actual engineering
|
||||
python-source
|
||||
react-source · react actual engineering
|
||||
react-source
|
||||
来源工程 · 四模块真实模型独立交付
|
||||
来源工程
|
||||
多文件变更集交付工程
|
||||
多文件变更集交付工程
|
||||
精确补丁交付工程
|
||||
交付报告工程
|
||||
交付报告工程
|
||||
vLLM-MVP
|
||||
模型连接验证
|
||||
starter-project
|
||||
D:\Ai-project\REA逆向\Agent-Workbench\releases\Agent-Workbench-1.14.0-win-x64-20261030235440461\examples\starter-project
|
||||
当前为自带示例,可打开自己的项目开始开发
|
||||
任务会话
|
||||
新建任务
|
||||
↵
|
||||
新任务
|
||||
项目文件 4
|
||||
⌃ K
|
||||
src
|
||||
catalog.js
|
||||
tests
|
||||
catalog.test.mjs
|
||||
package.json
|
||||
README.md
|
||||
机制研究与设计
|
||||
项目记忆
|
||||
运行诊断
|
||||
模型与连接
|
||||
高性能
|
||||
本地服务已连接
|
||||
v1.24.6
|
||||
starter-project
|
||||
任务
|
||||
新任务
|
||||
手机连接
|
||||
模型中心
|
||||
高性能
|
||||
本地项目
|
||||
就绪
|
||||
从项目到结果
|
||||
读懂项目。
|
||||
把每一步做好。
|
||||
|
||||
给出一个任务,读取依据、工具执行和文件改动会在这里连成完整过程。
|
||||
|
||||
了解这个项目,并提出一项改进
|
||||
查找关键实现,解释调用关系
|
||||
检查项目,并准备可审查的修改
|
||||
文件修改先审查,终端命令逐次确认。
|
||||
添加截图
|
||||
每任务1张 · PNG/JPEG · 原图≤2MB
|
||||
starter-project
|
||||
高性能
|
||||
Ctrl + Enter 发送 · 会话自动保存
|
||||
改动与执行结果可追溯
|
||||
文件
|
||||
改动
|
||||
轨迹
|
||||
任务
|
||||
索引
|
||||
浏览
|
||||
查看项目文件
|
||||
|
||||
从左侧打开文件,或让助手先读取项目。
|
||||
|
||||
读取范围限定在当前项目
|
||||
|
After Width: | Height: | Size: 50 KiB |
@@ -0,0 +1,25 @@
|
||||
连接诊断
|
||||
|
||||
检查端点的 DNS、TCP 和 TLS。无需 Key,不发送模型请求。
|
||||
|
||||
刷新
|
||||
诊断连接
|
||||
原模型连接
|
||||
apikey
|
||||
apikey
|
||||
jojocode
|
||||
开始直连检查
|
||||
|
||||
https://jojocode.com/v1 · 配置修订 5
|
||||
|
||||
本次只检查端点直连路径,保留证书校验;握手通过不能证明 Key、型号或模型能力可用。检查最多约 12 秒,离开后结果保留。
|
||||
|
||||
先检查连接,再判断问题阶段
|
||||
|
||||
选择已保存的连接并开始检查。这里会保留解析地址、连接耗时和证书核对结果,原任务不会被重新执行。
|
||||
|
||||
近期检查
|
||||
|
||||
保存最近 30 条;点击查看原记录。
|
||||
|
||||
这条连接还没有检查记录。
|
||||
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,21 @@
|
||||
starter-project
|
||||
任务
|
||||
新任务
|
||||
高性能
|
||||
就绪
|
||||
从项目到结果
|
||||
读懂项目。
|
||||
把每一步做好。
|
||||
|
||||
给出一个任务,读取依据、工具执行和文件改动会在这里连成完整过程。
|
||||
|
||||
了解这个项目,并提出一项改进
|
||||
查找关键实现,解释调用关系
|
||||
检查项目,并准备可审查的修改
|
||||
文件修改先审查,终端命令逐次确认。
|
||||
添加截图
|
||||
每任务1张 · PNG/JPEG · 原图≤2MB
|
||||
starter-project
|
||||
高性能
|
||||
Ctrl + Enter 发送 · 会话自动保存
|
||||
改动与执行结果可追溯
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.6",
|
||||
"pid": 36552,
|
||||
"views": [
|
||||
{
|
||||
"name": "desktop",
|
||||
"viewport": {
|
||||
"width": 1440,
|
||||
"height": 1000
|
||||
},
|
||||
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\desktop.png",
|
||||
"diagnosisScreenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\desktop-diagnostics.png",
|
||||
"panelOverflow": {
|
||||
"width": 1196,
|
||||
"scroll": 1196
|
||||
},
|
||||
"overflow": {
|
||||
"viewport": 1440,
|
||||
"document": 1440
|
||||
},
|
||||
"connected": true,
|
||||
"networkIdle": true,
|
||||
"bodyFile": "desktop.txt"
|
||||
},
|
||||
{
|
||||
"name": "narrow",
|
||||
"viewport": {
|
||||
"width": 390,
|
||||
"height": 844
|
||||
},
|
||||
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\narrow.png",
|
||||
"diagnosisScreenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\network-q\\release\\browser-review\\narrow-diagnostics.png",
|
||||
"panelOverflow": {
|
||||
"width": 328,
|
||||
"scroll": 328
|
||||
},
|
||||
"overflow": {
|
||||
"viewport": 390,
|
||||
"document": 390
|
||||
},
|
||||
"connected": true,
|
||||
"networkIdle": true,
|
||||
"bodyFile": "narrow.txt"
|
||||
}
|
||||
],
|
||||
"errors": [],
|
||||
"rejectedWrites": [],
|
||||
"realModelRequests": 0,
|
||||
"scope": "Read-only actual production Edge render in two viewports; API writes blocked and none attempted. No task start, fixture model, credential or existing browser profile access."
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"success": true,
|
||||
"trackedInputs": 555,
|
||||
"archiveInputs": 560,
|
||||
"extra": [
|
||||
{
|
||||
"path": "examples/delivery-report/dist/cli.mjs",
|
||||
"bytes": 818,
|
||||
"sha256": "b8223dd1c0a98b3b7a0cd716db0ae053a2ca17fbd8272b005adcedd3ce5f7a69"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/normalize.mjs",
|
||||
"bytes": 1254,
|
||||
"sha256": "57eb47b09913b131982a14c276ba5292aba4c94e0f475c97955221f6a7b7cdcd"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/package.json",
|
||||
"bytes": 18,
|
||||
"sha256": "1239d4d885dcad42201a27ed9324f8f0f760b78700d8db9ced39a511cffe7eae"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/render.mjs",
|
||||
"bytes": 375,
|
||||
"sha256": "d449524d731a55ef51d0143f38ee8b73db56363c78babc385fa58df7f2a542f0"
|
||||
},
|
||||
{
|
||||
"path": "examples/delivery-report/dist/summary.mjs",
|
||||
"bytes": 427,
|
||||
"sha256": "bf7ada9e5dbca167df2b9a5306c1d9399b4a658fb0777c73812856687ad0c5ef"
|
||||
}
|
||||
],
|
||||
"unchanged": true,
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"scope": "Five ignored example dist files are declared in the source archive manifest. Rebuilt by the exact independently extracted tracked example build/source files and matched each original byte hash. No extra Workbench compile input or package mutation.",
|
||||
"realModelRequests": 0
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"success": true,
|
||||
"version": "1.24.6",
|
||||
"sourceCommit": "54dbe3d6fc7b068e37010222a09cff244975b2c0",
|
||||
"candidate": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.6-win-x64-20261103151145294",
|
||||
"independentInputs": 560,
|
||||
"compiled": 22,
|
||||
"isolatedInstallGroups": 12,
|
||||
"sourcePortableInstalledDiagnostics": "9+9+9",
|
||||
"realModelRequests": 0,
|
||||
"scope": "All independent candidate gates complete before formal install. Each result belongs to the fixed source commit/candidate; original PID/Provider/data will be compared after actual upgrade."
|
||||
}
|
||||