diff --git a/docs/LIVE-RETEST-E-PLAN.md b/docs/LIVE-RETEST-E-PLAN.md
new file mode 100644
index 00000000..62aa4e71
--- /dev/null
+++ b/docs/LIVE-RETEST-E-PLAN.md
@@ -0,0 +1,30 @@
+# 修复后真实交付与原版 Purge:E 批次
+
+这是下一独立批次的执行约定,尚未运行。前置为 A–D 相关检查通过、来源冻结,并将同一载荷在保留原 Provider 的正式宿主或经核验的同源宿主启用。原六例、20 次请求、419,597 报告 tokens 和一次未知用量保持原结论,不续跑旧 Task,不把后续成功回填旧分母。
+
+## 样本和上限
+
+| 样本 | 目标 | 单样本上限 |
+| --- | --- | --- |
+| 新 React | 模型自行读取、修复四文件、原测试/类型检查/构建、实际桌面与窄屏操作、审查和本地 Git | 24 次实际请求、140,000 报告 tokens、10 分钟 |
+| 新 Python | 模型自行完成规范化/统计/渲染,保留原测试、编译、审查和本地 Git | 同上 |
+| Node AB | 同一三模块收支需求和基线,先关闭再启用原版受限模式 | 每组 24 次实际请求、105,000 报告 tokens、10 分钟 |
+| Node BA | 相同基线、工具、原测试与监督规则,先开启再关闭 | 同上 |
+
+整个批次最多六个新样本、100 次实际请求和 700,000 报告 tokens。宿主同时核对未知消费的保守预留;未知不能当零,不能为追求通过重置累计预算。单个在途响应可能超过上限,必须保留实际超额后停止,不能通过抹掉最终消费维持名义边界。所有模型请求串行,异常请求不自动切池或重放。
+
+React/Python 与四个原版对照分别报告,不计算混合通过率。模型只收一次性任务和允许路径,自己读取、分析和提出实现;监督程序仅核对并批准原检查、审查模型原提案、确认其封存批次和 Git 交付。人工续接、审批、应用和任何实现提示各自计数。不得修改测试或替模型代写源码。
+
+## 同源对照
+
+原版开启使用 `purge-original-restricted-v1`、Purge 1.1.78 与固定 Harness 0.2.1-rc.2。关闭组使用同一个 Harness 与工具/模型桥,完全不加载原版入口,也不追加独立提示实验段。四组使用同一模型连接/修订/协议、32K 上下文、输出余量、路径、任务、检查、驱动和预算;严格核对每次实际请求及来源身份。
+
+32K 是本次明确的实验条件。D 原版 16K 在零请求时因固定指令/工具/余量不足拒绝,旧样本保持失败;不能以静默扩大旧 Task 的上下文或删减原版提示制造成功。若必须调整已配置连接的容量,先保存公开配置身份,借助正式 API 操作并记录修订,结束恢复原选择与原参数;不读取、导出或复制 Key。
+
+受限原版关闭自动更新、宿主修改、原版操作工具、自动重试和继续,仍保留原版提示与内部钩子的实际装配。这个对照只回答该配置在这组工程任务上的表现,不代表上游完整默认模式或通用“破甲”收益。加载、输入、原生模块及所有进程退出证据逐组保留;独立提示实验仍使用另一个标签。
+
+## 结果和退出
+
+每个样本记录功能、原测试/构建、页面操作、父工程审查/Git、原暂存/未暂存保护、实际模型身份、全部请求、报告/未知消费、耗时和监督次数。先记录失败,再做独立修复;同一失败样本不通过追加隐含提示变成新成功。
+
+出现来源漂移、未知操作、超过预算或原进程不能确认关闭时,停止本样本并保存结果;后续组是否仍可独立执行按剩余预算和来源一致性判断。结束核对原用户项目、所有原会话/工件及模型池选择,新增记录必须归属于本批次。没有已核对的收费明细就不编造费用或节省比例;两个顺序的四个对照样本只提供描述性结果。
diff --git a/docs/QA-ORIGINAL-PURGE-D.md b/docs/QA-ORIGINAL-PURGE-D.md
new file mode 100644
index 00000000..78ed1e54
--- /dev/null
+++ b/docs/QA-ORIGINAL-PURGE-D.md
@@ -0,0 +1,29 @@
+# 原版 Purge 受限策略:D 生产适配验收
+
+原版入口已接入实际 `ControlledDeepSeekSession` 与工作台 Task/Run/预算/审批账本;源码实现仍在验收阶段,正式宿主保持 1.24.0/PID36552 与原 Provider,本轮未使用真实 Key 或发送真实模型请求。原版效果仍未测,下一批见 [E 真实复验方案](LIVE-RETEST-E-PLAN.md)。
+
+## 当前能力
+
+原版 1.1.78 的 60 份原文件与 Harness 的 393 份加载/解析/原生输入分别锁定,两个原生模块及实际系统库加载保留 SHA 收据。每次运行使用独立来源副本、home 与配置;原版入口/apply 和最终提示唯一性参与核验。原始许可证、NOTICE 与署名保持。
+
+独立工程提示与原版受限策略分开、均默认关闭。原版自动更新、宿主修改、原版操作工具、自动重试和继续关闭;工具、检查、写入范围、停止和累计预算由工作台最终门控。Node 权限用于固定可信输入,原生模块仍须 `allow-addons`,这不是运行任意插件的操作系统沙箱;内部 fullAccess 等钩子存在的事实不因外部门控而改写。
+
+## 已完成的实际流程
+
+- 生产适配原生三场景:正常完成并退出 0、模型失败不重试、宿主拒绝工具;实际原版入口、两原生模块、落盘同步与所属进程树退出均核对。
+- 宿主四场景:55,017 报告 tokens 超过 35,000 运行预算后仅一次 HTTP 并保留 503;范围外提案拒绝;在途停止留下未知消费;审批期间原版输入变化时不运行检查。
+- 停止后显式续接:新 Run 绑定同一 Task,第一次停止与未知用量原字节保持,仅新增一次 HTTP 和 168 夹具报告 tokens,没有重放旧操作。
+- 实际 Harness + 自有 HTTP 的 Chat/Responses 各五组工程链路:原九项失败与分页日志、三模块修复/完整批次、父工程九项测试/构建、审查与本地 Git、原暂存/未暂存保护。
+- 编译 React 界面 1440/390px 四组操作:区分策略、完整来源漂移拒绝、刷新保留封存计划、实际原版运行及字节一致的报告下载。四张原截图均待最终封存;已目视核对来源桌面和窄屏报告,无页面横向溢出。
+
+这些是实际原生进程、编译界面和真实本地检查,但模型响应来自自有夹具。不能据此宣称真实模型自主交付或 Purge 收益通过。
+
+## 缺陷、修复和原失败
+
+首次原版 16K 工程在发送前拒绝:固定指令约 12,476、工具约 2,704,投影所需 15,507 大于当轮 12,352 输入预算,实际 HTTP 为零。保留原失败,原版工程另用明确 32K 配置,既有无原版 16K 验收不改标。Responses 首个所谓 32K 驱动仍给连接写死 16K,同样零请求拒绝;修正验证器后独立 32K 五组通过。
+
+host 验证器原先对零请求读取不存在的 consumption,已增加必须实际派发的断言。窄屏原验证器在异步切换子会话前探测关闭按钮,后来到达的检视区挡住工具栏;现等待实际检视区,再正常关闭,不使用强制点击。第一次构建子进程误用 PATH 内 Node16,显式前置已有 Node24 后通过;没有修改系统全局 Node。
+
+界面接续两次四项操作完成但 SSE 被断开,均保持为失败。实际来源/策略快照较大,反复推送整份会话触发原 2MiB 队列保护。修复为超过 64KiB 的快照只发保留游标、项目、会话和修订的变更通知,React 通过原拉取流程读取完整状态;小会话仍按原协议发送。新增多字节大来源/100 次通知积压与小会话原游标回归;修复后的四组操作通过,意外网络断开和页面错误均为零。
+
+完整回归、来源封存、最终原字节核验与本地提交尚在收尾;在这些必要项完成前不将 D 标为最终完成,也不操作正式安装或开启 E 真实批次。
diff --git a/findings.md b/findings.md
index 753934f3..4e86b976 100644
--- a/findings.md
+++ b/findings.md
@@ -1,5 +1,15 @@
# 汇总发现
+## D 生产接线(接续 1408e7a)
+
+生产加载进一步发现研究清单只观察 JS/JSON,未覆盖 require-builtin 与 Koffi 两个必需 .node。已用 REA inspect_pe_imports 检查:require-builtin SHA ead441d1… 静态 KERNEL32 / 延迟 node.exe;Koffi SHA eb0587c8… 静态 KERNEL32+ADVAPI32 / 延迟 NODE.EXE。固定两个原生文件,禁用原生缓存,仅允许清单内 dlopen;Koffi.load 只允许已固定 System32 库绝对路径,实际加载收据另记。静态导入表不代表操作系统全部运行依赖或原生 OS 沙箱。
+
+Windows 权限问题已最小复现:同次提供父/子目录读授权,Node 24.22.1 会拒绝父目录 realpath.native;单父授权通过。收敛重复包含的授权后,原版实际完成和正常退出通过。早期 modulePath URL 构造错误、该权限错误、漏原生依赖导致关闭失败、Koffi namespace 默认导出错误均有独立原结果;没有扩大为盘根读取。三生产适配场景共四桥输入、一次正常退出0,两个失败场景被所属宿主关闭,真实供应商请求0。新增六项专项和构建通过;旧提示/桥/worker 开发回归34/34通过,之后新增代码的最终范围仍须验证。
+
+EngineRunner 已把策略保存到父计划、worker 和每个 engine Run;模型桥已有 C 的实际 Provider 消费和发送前预算门控,可复用,不能另造计费链。ControlledDeepSeekSession 当前只装配独立提示段;原版需单独的完整来源契约和实际加载收据。研究适配全部在 verify-original-purge-load.mjs 的 clientFactory,尚非产品能力。原版 autoRetry/continue/自动宿主修改关闭、三项原工具由外部 facade 拒绝;其内部钩子仍存在,外部桥继续验证完整工具目录。
+
+生产适配将只支持已固定且可核对的原版输入。allow-addons 不是任意原生插件的 OS 沙箱;实际原生加载还须固定来源并保留限制。A/B/C 和旧真实六例原件不修改。本轮恢复无源码变动,工作区初始干净。
+
## 真实执行修复A:原生历史来源
真实Harness验证发现第二层续接问题:应用三模块完整批次后的新Run,外层历史原样再JSON转义为单用户消息,第一次必需输入13696/12352而拒绝。已独立封存种子消息/格式与外层请求SHA,为外层计划显式预留2048原生封装容量,并使用单层文字+角色元数据;实际native请求仍独立度量,超出仍拒绝。下一轮已能在新Run检查,最后反馈12437/12352,仅差85;发现latest_results与recorded_operations重复及成功日志节选浪费,现去重并仅为失败/未知保留额外日志节选。两次真实Harness开发失败都保留,没有提高16K或替换原九测试。
@@ -875,6 +885,8 @@ B独立管线已运行,受门控的推广等待独立源码/便携/同载荷
冻结期间复核了历史UI与随包专项的收据归属:all-ui将原结果复制到版本化docs指针,并保留各自日志/独立UUID目录;随后随包环境、原生参数、等待、协议、视觉、缓存、伴随及评测验证器写各自原目录,不覆盖这些主回归docs收据。最终封存仍逐一核对原结果/日志中的显式目录和截图SHA;没有仅凭最新全局指针推断历史结果。此项为静态归属审查,不增加模型或重跑已通过的验证。
# 当前现场:两条基本操作缺口
+当前D接续首轮三项失败已读原件:host验证在零请求预算拒绝后访问不存在的consumption,不能算用量验收;原版32K配置单独验收,16K原拒绝保持。原工程固定指令12476/工具2704/投影视图15507,大于16K下12352输入预算,0HTTP;不裁剪原版提示、不扩大旧原轮。UI异步切子会话尚未完成即探测关闭按钮,后到的审查栏遮挡工具栏;验证器改为等待真实子检视区可见再关闭并核对隐藏,不强制点击或改产品布局。新增显式--context-32k,既有16K行为不变。
+
1.24接续说明:下段为1.22历史现场。当前0dc0325干净起点,正式1.23已交付;runtime完成及task-plan changes只接受本Task已应用改动。新增成果凭据必须绑定当前文件、原读取工具/工件、任务要求与来源Task/Run,不能用模型文字绕过明确修改/检查要求。沿用中文React工作台,成果核对嵌入任务和文件流程。
正式服务实际 1.22.0,URL 的旧 release 参数不代表实际版本。网页的选择文件夹按钮被 desktop 条件隐藏;选中 pelican-bicycle.html 后只有源码且无预览入口。文件包含内联 SVG/JS 动画;现有任务浏览能力要求 Vite/桌面,不适用于直接打开普通 HTML。本次用已认证的本机一层目录浏览补网页选择;HTML 以独立 loopback 源、受限静态资源和 sandbox 渲染,不把项目脚本放进工作台 API 同源。
diff --git a/progress.md b/progress.md
index b9408135..7bb2b43f 100644
--- a/progress.md
+++ b/progress.md
@@ -1395,6 +1395,10 @@ A独立源码12批合计716/716、0失败/取消/跳过/待办;实际Electron
提交预检首次指出原TAP中的空格行,原始日志不修剪;只为本版证据TAP设binary属性后重验diff检查。532个所属暂存文件及521份证据/manifest原字节批量Git对象核对通过;四份普通Markdown仅正常CRLF→LF,封存原件不发生换行转换。
# 真实执行 B 接续:网络请求归属与重放边界
+### D生产策略当前接续
+
+实际原版适配正常/失败不重试/外部门控三项原来源保持。开发宿主37f02249四项(超额/越界/在途停止/审批漂移)及原生32K工程029462c1五组通过,0真实模型。16K原版首轮0HTTP/15507所需大于12352输入预算保持为不适配,不裁剪原版固定提示。首host验证器的undefined consumption和UI异步导航等待已修正;后续UI两轮均四功能完成、但SSE断开判失败,定位大体积会话重复推送/2MiB积压保护。publisher现对超过64KiB原快照只发游标/项目/会话/修订失效通知,React按已有流程拉取完整状态;增加多字节来源/100次背压及小会话原游标回归,准备最终冻结复验。原源码/正式Provider和Key未操作,真实请求0。
+
继续沿用planning-with-files和原修复方案;未启动子代理,未操作正式宿主或Key,未发起真实模型请求。A原实现与证据保持。B相关94/94、构建、原engine-worker14/14和最终编译宿主2/2通过;原诊断9/12、编译冷却误等待14/16及0/2均保留。实现e73bca9;18份/228436字节证据SHA df97b53c80204f7f0e6b352f707ff2b345d7360ecdd0e08ac4e00c86f2462c7b离线核对通过,A原封存保持。C身份纯函数4/4后已接入实际验收器,最终停止/刷新后以Task消费为准;预算校准仍待实施。工具恢复时一次多文件读取输出截断,随后限定短段,截断内容不作完整审查结论。
C最终接续:预算专项7/7、最终编译通过;新UI独立目录model-budget-ui-7c0de90d-1afd-4165-911e-e949b60b7d30两视口通过并已目视回看原图。原label失败保留,不改产品。Chat16K独立目录controlled-context-fe746aa6-377a-40be-945d-1a849ad675e2五组通过;Responses和最终15文件相关回归运行中。B/原六例离线核验已通过,A离线核验运行中。未使用真实Key、未改正式宿主、未加载原版Purge。
diff --git a/scripts/build-original-purge-lock.mjs b/scripts/build-original-purge-lock.mjs
new file mode 100644
index 00000000..f027d3ea
--- /dev/null
+++ b/scripts/build-original-purge-lock.mjs
@@ -0,0 +1,46 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import assert from 'node:assert/strict';
+import {createHash} from 'node:crypto';
+
+// Development-only provenance recipe. Runtime code imports the resulting JSON;
+// it neither trusts the QA directory nor learns new executable inputs on launch.
+const evidence='docs/original-purge-load-evidence',raw=fs.readFileSync(path.join(evidence,'manifest.json'));
+const sha=bytes=>createHash('sha256').update(bytes).digest('hex');
+assert.equal(sha(raw),'acabdce397139dcd59cbe7f66229a1353d4f95a5ceb7a555977e544b17ea1066');
+const manifest=JSON.parse(raw),root=process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT;
+assert.ok(root&&path.isAbsolute(root));
+const prefix=path.resolve(root)+path.sep,files=new Map();
+const identify=file=>{const raw=fs.readFileSync(file);return {relative:path.relative(root,file).replaceAll('\\','/'),bytes:raw.length,sha256:sha(raw)};};
+for(const input of manifest.loadedModuleInputs.filter(input=>input.path.startsWith(prefix))){
+ assert.equal(sha(fs.readFileSync(path.join(evidence,input.snapshot))),input.sha256);
+ const identity=identify(input.path);assert.equal(identity.sha256,input.sha256);files.set(identity.relative,identity);
+ // Node package resolution reads these metadata before source loading.
+ for(let parent=path.dirname(input.path);parent.startsWith(prefix)||parent===root;parent=path.dirname(parent)){
+ const file=path.join(parent,'package.json');if(fs.existsSync(file)){const item=identify(file);files.set(item.relative,item);}
+ if(parent===root)break;
+ }
+}
+for(const relative of ['packages/bundle/sdk-minimal/cordis.patch.yml','pnpm-lock.yaml']){
+ const input=identify(path.join(root,relative));files.set(relative,input);
+}
+const nativePackage='node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc';
+const native=identify(path.join(root,nativePackage,'prebuilt/win32-x64-msvc-napi-v9.node'));
+assert.equal(native.sha256,'ead441d11202126827a789a7eb88e79abe8f7f374b16e7273c4244225c8d6c2b');
+for(const relative of ['prebuilds.json','prebuilt/win32-x64-msvc-napi-v9.node']){
+ const input=identify(path.join(root,nativePackage,relative));files.set(input.relative,input);
+}
+const koffi=identify(path.join(root,'node_modules/.pnpm/@koromix+koffi-win32-x64@3.1.1/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node'));
+assert.equal(koffi.sha256,'eb0587c804bb76262968bf83028528da4dc2d4322f558845cce205c709e2ba20');files.set(koffi.relative,koffi);
+const upstream=manifest.upstreamInputs.map(({relative,bytes,sha256,snapshot})=>{
+ assert.equal(sha(fs.readFileSync(path.join(evidence,snapshot))),sha256);return {relative,bytes,sha256};
+}).sort((a,b)=>a.relative.localeCompare(b.relative,'en'));
+const lock={schemaVersion:1,purgeVersion:'1.1.78',harnessVersion:'0.2.1-rc.2',
+ provenance:{manifestSha256:sha(raw),sourceCommit:manifest.sourceCommit,scope:'Observed JS/JSON plus resolution metadata and explicit native require-builtin input.',
+ nativePeEvidenceIds:['ev_4a114ba373a5039c34e7fcdad6b9202b42d00f16cd4ae6d80304feb4d93cc19c','ev_b9670d77723678e6c17415368494a06583872fe1e41bd739d795c0c6a20ddca2']},
+ original:upstream,harness:[...files.values()].sort((a,b)=>a.relative.localeCompare(b.relative,'en')),
+ nativeAddons:[{...native,staticImports:['KERNEL32.dll'],staticDelayImports:['node.exe']},
+ {...koffi,staticImports:['KERNEL32.dll','ADVAPI32.dll'],staticDelayImports:['NODE.EXE']}]};
+const output=process.argv[2]??'src/core/engines/original-purge-lock.json';assert.equal(fs.existsSync(output),false);
+fs.writeFileSync(output,JSON.stringify(lock,null,2)+'\n',{flag:'wx'});
+console.log(JSON.stringify({output,original:lock.original.length,harness:lock.harness.length,sha256:sha(fs.readFileSync(output))}));
diff --git a/scripts/upgrade-running.mjs b/scripts/upgrade-running.mjs
index 2deb1113..e9198c91 100644
--- a/scripts/upgrade-running.mjs
+++ b/scripts/upgrade-running.mjs
@@ -99,7 +99,9 @@ export async function upgradeRunning({ url, pid, currentRoot, newRoot, handlerRo
if (!candidates.length) throw new Error('The existing server module is missing from inspector metadata.');
for (const script of candidates) {
const { scriptSource } = await protocol.send('Debugger.getScriptSource', { scriptId: script.scriptId });
- const locations = scriptSource.split('\n').flatMap((line, index) => line.includes('const url = new URL(request.url') ? [index] : []);
+ // Bundled transport libraries can parse request.url too. Select the
+ // actual loopback handler with its local base and observed port binding.
+ const locations = scriptSource.split('\n').flatMap((line, index) => /const url = new URL\(request\.url,\s*["']http:\/\/127\.0\.0\.1:["']\s*\+\s*actualPort\d*\)/.test(line) ? [index] : []);
if (locations.length !== 1) throw new Error('The existing request handler could not be identified uniquely.');
breakpoints.push((await protocol.send('Debugger.setBreakpoint', { location: { scriptId: script.scriptId, lineNumber: locations[0] } })).breakpointId);
}
diff --git a/scripts/verify-controlled-projects.mjs b/scripts/verify-controlled-projects.mjs
index b81f1d9d..c96e02d8 100644
--- a/scripts/verify-controlled-projects.mjs
+++ b/scripts/verify-controlled-projects.mjs
@@ -9,7 +9,7 @@ import { Runtime } from '../src/server/runtime.mjs';
import { EngineRunner } from '../src/core/engines/engine-runner.mjs';
import { resolveControlledInstallation } from '../src/core/engines/controlled-installation.mjs';
import { originalEngineRun, verifyEngineModelInput } from '../src/shared/contracts/engine-execution.mjs';
-import { resolvePurgeSource, assertPurgeModelInput, nativeSystemTexts, PURGE_DEFAULT_PROMPT } from '../src/core/engines/purge-strategy.mjs';
+import { resolvePurgeSource, resolveOriginalPurgeSource, ORIGINAL_PURGE_KIND, assertPurgeModelInput, nativeSystemTexts, PURGE_DEFAULT_PROMPT } from '../src/core/engines/purge-strategy.mjs';
import { deliveryGit as git, writeDeliveryFile as write } from '../tests/fixtures/delivery-project.mjs';
import { ownerBytes } from '../tests/fixtures/workers-project.mjs';
import { desktopProjectQa } from './desktop-project-qa.mjs';
@@ -18,12 +18,15 @@ import { responsesEngineeringHttp } from '../tests/fixtures/responses-engineerin
import { nativeContextSpecification } from '../tests/fixtures/native-context-project.mjs';
const args = process.argv.slice(2);
-assert.ok(args.every(value => ['--help', '--purge-comparison', '--desktop', '--responses', '--context-16k'].includes(value)), 'Unknown option; use --help.');
+assert.ok(args.every(value => ['--help', '--purge-comparison', '--desktop', '--responses', '--context-16k','--context-32k','--original-purge'].includes(value)), 'Unknown option; use --help.');
if (args.includes('--help')) {
- console.log('node scripts/verify-controlled-projects.mjs [--purge-comparison | --desktop | --context-16k] [--responses] — actual pinned Harness and owned HTTP model fixture; default verifies Node/React/Python with approvals, Edge and Git. --context-16k uses a new copy of the sealed three-module/nine-test pilot, original failure/log paging and a complete reviewed batch at 16K. --responses uses actual Responses SSE and ModelHub routing. Set AGENT_WORKBENCH_DEEPSEEK_ROOT and AGENT_WORKBENCH_TEST_PYTHON; context mode needs no Python. No configured-model requests.'); process.exit(0);
+ console.log('node scripts/verify-controlled-projects.mjs [--purge-comparison | --desktop | --context-16k | --context-32k] [--responses] [--original-purge] — actual pinned Harness and owned HTTP model fixture; default verifies Node/React/Python with approvals, Edge and Git. Context modes use a new copy of the sealed three-module/nine-test pilot, original failure/log paging and a complete reviewed batch at the explicit limit. Original Purge is separate from the independent prompt and its fixed instructions need the 32K profile. --responses uses actual Responses SSE and ModelHub routing. Set AGENT_WORKBENCH_DEEPSEEK_ROOT and AGENT_WORKBENCH_TEST_PYTHON; context mode needs no Python. No configured-model requests.'); process.exit(0);
}
const comparisonMode = args.includes('--purge-comparison'), desktopMode = args.includes('--desktop');
-const contextMode = args.includes('--context-16k');assert.ok(!contextMode || !comparisonMode && !desktopMode, '16K bridge acceptance is a separate run.');
+assert.ok(!(args.includes('--context-16k')&&args.includes('--context-32k')),'Choose one explicit native context limit.');
+const contextMode = args.includes('--context-16k')||args.includes('--context-32k');assert.ok(!contextMode || !comparisonMode && !desktopMode, 'Native context acceptance is a separate run.');
+const contextLimit=args.includes('--context-32k')?32000:16000;
+const originalPurgeMode=args.includes('--original-purge');assert.ok(!originalPurgeMode||contextMode,'Original Purge engineering acceptance uses a separate owned context case.');
const responsesMode = args.includes('--responses'); assert.ok(!responsesMode || !comparisonMode, 'Protocol acceptance and Purge comparison remain separate.');
assert.ok(!comparisonMode || !desktopMode, 'Desktop engineering and prompt comparison are separate acceptance runs.');
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
@@ -31,6 +34,9 @@ const directory = path.resolve('.qa', (contextMode ? 'controlled-context-' : des
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
const installation = resolveControlledInstallation(process.cwd(), process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT);
assert.equal(installation.controlledStatus, 'available', installation.message);
+const originalSource=originalPurgeMode?resolveOriginalPurgeSource(process.cwd(),process.env.AGENT_WORKBENCH_PURGE_178_ROOT,installation):null;
+if(originalSource)assert.equal(originalSource.status,'available',originalSource.message);
+const originalStrategy=originalSource?{kind:ORIGINAL_PURGE_KIND,root:originalSource.root,sourceSha256:originalSource.sourceSha256,runtimeSha256:originalSource.runtimeSha256,prompt:PURGE_DEFAULT_PROMPT}:null;
const python = process.env.AGENT_WORKBENCH_TEST_PYTHON;
if (!comparisonMode && !contextMode) assert.ok(python && path.isAbsolute(python) && fs.existsSync(python), 'Provide the existing isolated Python 3.10+ interpreter.');
const sources = comparisonMode ? ['1.1.78', '1.1.81'].map((expected, index) => {
@@ -111,12 +117,12 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
return { choices: [{ message: { role: 'assistant', content: calls.length ? '' : 'Owned native run complete; host proof is still required.', ...(calls.length ? { tool_calls: calls } : {}) },
finish_reason: calls.length ? 'tool_calls' : 'stop' }], usage: { prompt_tokens: 123, completion_tokens: 45, total_tokens: 168 } };
});
- f.store.saveConfig({ mode: 'compatible', model: 'owned-controlled-engineering', baseUrl: model.baseUrl, contextLimit: contextMode ? 16000 : 64000,
+ f.store.saveConfig({ mode: 'compatible', model: 'owned-controlled-engineering', baseUrl: model.baseUrl, contextLimit: contextMode ? contextLimit : 64000,
...(contextMode ? {maxOutputTokens:2048} : {}) });
const provider = new Provider(); provider.setKey('self-owned-controlled-model-fixture');
if (responsesMode) {
const hub = provider.modelHub(f.store), connection = hub.upsert({ name: 'Owned Responses engineering', protocol: 'responses', model: 'owned-controlled-engineering', baseUrl: model.baseUrl,
- requiresKey: false, contextLimit: contextMode ? 16000 : 64000, ...(contextMode ? {maxOutputTokens:2048} : {}), streaming: true, capabilityDeclarations: { streaming: 'supported' } });
+ requiresKey: false, contextLimit: contextMode ? contextLimit : 64000, ...(contextMode ? {maxOutputTokens:2048} : {}), streaming: true, capabilityDeclarations: { streaming: 'supported' } });
hub.select({ type: 'connection', id: connection.id });
}
runtime = new Runtime(f.store, provider); f.onCleanup(() => runtime.stopAll());
@@ -166,10 +172,17 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
const engineRuns = [...f.store.core.engine_run.values()].filter(job => job.taskId === child.taskId), childSession = f.store.session(child.sessionId);
for (const job of engineRuns) {
originalEngineRun(f.store, childSession, job); assert.equal(job.status, 'completed', job.error); assert.equal(job.native.cleanup.treeConfirmed, true);
- assert.equal(job.native.stderr, ''); assert.equal(job.native.activity.endEvents[0].data.reason.kind, 'completed');
+ if(originalPurgeMode){
+ const warning='(node:'+job.native.process.pid+') [PERM0001] SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.\n(Use `node --trace-warnings ...` to show where the warning was created)\n';
+ const expected=warning+['package.json','lib/index.js'].map(file=>'AWB_MODULE_REFUSED '+path.join(installation.root,'packages/context/agent-instructions',file)+'\n').join('');
+ assert.equal(job.native.stderr,expected);assert.equal(job.native.originalPurge.readiness.originalApplyCalled,true);
+ assert.equal(job.native.originalPurge.nativeLoads.length,2);assert.ok(job.native.originalPurge.durabilityReceipts.length>0);
+ }else assert.equal(job.native.stderr, ''); assert.equal(job.native.activity.endEvents[0].data.reason.kind, 'completed');
for (const request of job.requests) {
const saved = verifyEngineModelInput(f.store, childSession, job, request);
- if (strategy) { assertPurgeModelInput(saved.native, job.installation.strategy); assert.equal(job.native.readiness.promptExperimentSha256, job.installation.strategy.sha256); }
+ if (strategy) { assertPurgeModelInput(saved.native, job.installation.strategy);
+ if(originalPurgeMode)assert.equal(job.native.originalPurge.strategySha256,job.installation.strategy.sha256);
+ else assert.equal(job.native.readiness.promptExperimentSha256, job.installation.strategy.sha256); }
else assert.ok(nativeSystemTexts(saved.native).every(text => !text.includes('[Agent Workbench engineering prompt experiment]')));
}
}
@@ -190,7 +203,7 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
const failed=childChecks.find(job=>job.status==='failed'),log=f.store.core.artifact.get(failed.results[0].logArtifactId);
assert.ok(f.store.artifactStore.read(log).includes('fail 9'));assert.ok(engineRuns.some(job=>job.calls.some(call=>call.name==='read_artifact')));
assert.ok(engineRuns.some(job=>job.calls.some(call=>call.name==='prepare_change_set')));assert.ok(engineRuns.every(job=>!job.inputRejections?.length));
- mark('16K: original nine failures and paged log survive verified native compaction; all three proposals form one reviewed batch without replay');
+ mark(contextLimit/1000+'K: original nine failures and paged log survive verified native compaction; all three proposals form one reviewed batch without replay');
}
await (await manager.collect(f.session, group.id, group.fingerprint)).promise; assert.equal(group.status, 'collected', group.summary);
const collection = await manager.readCollection(f.session, group); assert.deepEqual(collection.conflicts, []); assert.deepEqual(collection.paths, writable);
@@ -272,9 +285,9 @@ try {
mark(source.version + ' repetition ' + repetition + ': identical original task/baseline/tests/response algorithm and budgets; actual prompt overhead and host approvals recorded');
}
assert.equal(results.length, 8); assert.equal(comparisons.length, 4);
- } else for (const kind of contextMode ? ['native-context'] : ['node', 'react', 'python']) results.push(await runSample(kind));
+ } else for (const kind of contextMode ? ['native-context'] : ['node', 'react', 'python']) results.push(await runSample(kind,{strategy:originalStrategy}));
assert.deepEqual(inputs(), frozen);
- report = { success: true, targetVersion: version, testedVersion: version, protocol: responsesMode ? 'responses-stream' : 'chat-completions', directory, installation, cases, results, comparisons, sources, inputs: frozen, realModelRequests: 0,
+ report = { success: true, targetVersion: version, testedVersion: version, protocol: responsesMode ? 'responses-stream' : 'chat-completions', contextLimit:contextMode?contextLimit:64000, originalPurge:originalPurgeMode, directory, installation, cases, results, comparisons, sources, inputs: frozen, realModelRequests: 0,
scope: 'Pinned actual Harness and workbench execution with an owned HTTP model fixture. Checks, approvals, failures, parent merges, Edge and Git are real. Model reasoning and Purge benefit remain separate.' };
} catch (error) { report = { success: false, targetVersion: version, testedVersion: version, directory, installation, cases, results, inputs: frozen, error: error.stack, realModelRequests: 0 }; process.exitCode = 1; }
finally { fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(report, null, 2)); fs.writeFileSync('.qa/' + (contextMode ? (responsesMode ? 'responses-context' : 'controlled-context') : responsesMode ? 'responses-engineering' : desktopMode ? 'desktop-projects' : comparisonMode ? 'controlled-purge' : 'controlled-projects') + '-location.json', JSON.stringify({ directory, result: path.join(directory, 'result.json') })); console.log('EVIDENCE ' + directory); console.log(JSON.stringify({ success: report.success, cases: cases.length, directory, realModelRequests: 0, error: report.error ?? null })); }
diff --git a/scripts/verify-original-purge-host.mjs b/scripts/verify-original-purge-host.mjs
new file mode 100644
index 00000000..8981622d
--- /dev/null
+++ b/scripts/verify-original-purge-host.mjs
@@ -0,0 +1,101 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import assert from 'node:assert/strict';
+import {randomUUID} from 'node:crypto';
+import {fixture,compatibleFixture,call,until} from '../tests/helpers.mjs';
+import {createDeliveryProject} from '../tests/fixtures/delivery-project.mjs';
+import {ownerBytes} from '../tests/fixtures/workers-project.mjs';
+import {Provider} from '../src/server/provider.mjs';
+import {Runtime} from '../src/server/runtime.mjs';
+import {EngineRunner} from '../src/core/engines/engine-runner.mjs';
+import {resolveControlledInstallation} from '../src/core/engines/controlled-installation.mjs';
+import {resolveOriginalPurgeSource,ORIGINAL_PURGE_KIND,assertPurgeModelInput,PURGE_DEFAULT_PROMPT} from '../src/core/engines/purge-strategy.mjs';
+import {originalEngineRun,verifyEngineModelInput} from '../src/shared/contracts/engine-execution.mjs';
+
+const directory=path.resolve('.qa','original-purge-host-'+randomUUID());fs.mkdirSync(directory,{recursive:true});
+const installation=resolveControlledInstallation(process.cwd(),process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT);
+assert.equal(installation.controlledStatus,'available',installation.message);
+const source=resolveOriginalPurgeSource(process.cwd(),process.env.AGENT_WORKBENCH_PURGE_178_ROOT,installation);assert.equal(source.status,'available',source.message);
+const results=[];
+const usage={prompt_tokens:123,completion_tokens:45,total_tokens:168};
+async function sample(scenario){
+ const disposers=[],t={after:fn=>disposers.push(fn)},f=fixture(t),sample=path.join(directory,scenario);fs.mkdirSync(sample);
+ let runtime,group,release,started,reported;let first=true;
+ try{
+ createDeliveryProject(f);const original=ownerBytes(f),copy=path.join(f.root,'declared-original-source');
+ fs.mkdirSync(copy);for(const input of source.inputs){const file=path.join(copy,input.relative);fs.mkdirSync(path.dirname(file),{recursive:true});fs.copyFileSync(input.path,file);}
+ const selected=resolveOriginalPurgeSource(process.cwd(),copy,installation);assert.equal(selected.status,'available',selected.message);
+ const gate=new Promise(resolve=>{release=resolve;});
+ const model=await compatibleFixture(t,async(_route,_input,requests)=>{
+ if(scenario==='stop-in-flight')await gate;
+ if(scenario==='reported-budget-overrun')return {status:503,body:{error:{message:'Owned upstream 503 with reported usage'},usage:{prompt_tokens:55000,completion_tokens:17,total_tokens:55017}}};
+ const tools=[];
+ if(scenario==='source-changed-at-approval'){
+ const worker=group.children[0],plan=[...f.store.core.check_plan.values()].find(item=>item.taskId===worker.taskId);
+ tools.push(plan?call('owned-check','run_checks',{plan_id:plan.id}):call('owned-plan','plan_checks',{names:['test','build']}));
+ }else if(scenario==='denied-scope'&&requests.length===1)tools.push(call('owned-outside','propose_file',{path:'../outside.mjs',content:'denied',reason:'Declared negative scope test'}));
+ return {choices:[{message:{role:'assistant',content:tools.length?'':'Owned host fixture terminal.',...(tools.length?{tool_calls:tools}:{})},finish_reason:tools.length?'tool_calls':'stop'}],usage};
+ });
+ f.store.saveConfig({mode:'compatible',model:'owned-original-host',baseUrl:model.baseUrl,contextLimit:32000,maxOutputTokens:1024});
+ const provider=new Provider();provider.setKey('owned-original-host-http-fixture');runtime=new Runtime(f.store,provider);
+ runtime.controlledEngines=new EngineRunner(f.store,provider,{directoryRoot:path.join(f.root,'owned-engines')});
+ const manager=runtime.workerManager();group=await manager.plan(f.session,{goal:'Verify original Purge '+scenario,
+ engine:{id:'deepseek-harness',root:installation.root,controlledSha256:installation.controlledSha256,
+ strategy:{kind:ORIGINAL_PURGE_KIND,root:copy,sourceSha256:selected.sourceSha256,runtimeSha256:selected.runtimeSha256,prompt:PURGE_DEFAULT_PROMPT}},
+ budget:{maxTokens:scenario==='reported-budget-overrun'?35000:150000,maxSteps:12,maxToolCalls:20,maxDurationMs:120000},
+ children:[{label:'original-1',goal:'Keep the original project and host controls',paths:['src/add.mjs']}]});
+ await (await manager.prepare(f.session,group.id,group.fingerprint)).promise;assert.equal(group.status,'ready',group.summary);
+ const worker=group.children[0],session=f.store.session(worker.sessionId),task=f.store.core.task.get(worker.taskId);
+ started=manager.start(f.session,group.id,group.fingerprint);
+ if(scenario==='stop-in-flight'){
+ await until(()=>model.requests.length===1,45000);await runtime.stop(session.id);release();
+ }
+ if(scenario==='source-changed-at-approval'){
+ await until(()=>session.approvals.some(item=>item.status==='pending'),45000);
+ fs.appendFileSync(path.join(copy,'lib/host.js'),'\n// Declared source drift during approval\n');
+ const approval=session.approvals.find(item=>item.status==='pending');runtime.decide(session.id,approval.id,true);
+ }
+ await started.promise;release();
+ const jobs=[...f.store.core.engine_run.values()].filter(job=>job.taskId===worker.taskId),job=jobs.at(-1),run=f.store.core.run.get(job.runId);
+ assert.equal(job.native.cleanup.rootExited,true);assert.equal(job.native.cleanup.treeConfirmed,true);assert.deepEqual(ownerBytes(f),original);
+ originalEngineRun(f.store,session,job);
+ for(const request of job.requests){const input=verifyEngineModelInput(f.store,session,job,request);assertPurgeModelInput(input.native,job.installation.strategy);}
+ assert.ok(model.requests.length>0,'The owned native request must reach the declared HTTP fixture.');
+ assert.equal(task.usage.requests,model.requests.length);assert.equal((run.consumption??[]).length,model.requests.length);
+ if(scenario==='reported-budget-overrun'){
+ assert.equal(model.requests.length,1);assert.equal(task.usage.totalTokens,55017);assert.equal(run.usage.unknownRequests,0);assert.equal(run.stopReason,'token_limit');assert.equal(job.calls.length,0);
+ }
+ if(scenario==='denied-scope'){
+ assert.equal(model.requests.length,2);assert.equal(job.calls.length,1);assert.equal(session.changes.length,0);assert.equal(task.usage.totalTokens,336);
+ assert.equal(fs.existsSync(path.join(f.store.project(worker.projectId).root,'..','outside.mjs')),false);
+ }
+ if(scenario==='stop-in-flight'){
+ assert.equal(model.requests.length,1);assert.equal(job.calls.length,0);assert.equal(job.status,'cancelled');assert.equal(run.usage.unknownRequests,1);assert.equal(task.usage.unknownRequests,1);
+ const oldJob=JSON.stringify(job),oldUsage=structuredClone(task.usage),oldRun=JSON.stringify(run);
+ await (await manager.start(f.session,group.id,group.fingerprint)).promise;
+ const resumed=[...f.store.core.engine_run.values()].filter(value=>value.taskId===worker.taskId).at(-1),resumedRun=f.store.core.run.get(resumed.runId);
+ assert.notEqual(resumed.id,job.id);assert.notEqual(resumed.runId,job.runId);assert.equal(resumed.taskId,job.taskId);assert.equal(resumed.status,'completed',resumed.error);
+ assert.equal(model.requests.length,2);assert.equal(task.usage.requests,2);assert.equal(task.usage.unknownRequests,1);assert.equal(task.usage.totalTokens,oldUsage.totalTokens+168);
+ assert.equal(task.usage.estimatedUnknownTokens,oldUsage.estimatedUnknownTokens);assert.equal(JSON.stringify(job),oldJob);assert.equal(JSON.stringify(run),oldRun);
+ assert.equal(resumedRun.consumption.length,1);assert.equal(resumed.native.cleanup.treeConfirmed,true);assert.equal(resumed.calls.length,0);
+ originalEngineRun(f.store,session,resumed);reported={resumedJob:resumed,resumedRun,originalStopUsage:oldUsage};
+ }
+ if(scenario==='source-changed-at-approval'){
+ assert.equal(model.requests.length,2);assert.equal(f.store.core.check_job.size,0);assert.match(job.error,/已变化/);assert.equal(task.usage.totalTokens,336);
+ }
+ reported={...reported,scenario,passed:true,group,task,run,job,modelRequests:model.requests,realModelRequests:0};
+ console.log('PASS '+scenario+'; HTTP '+model.requests.length+'; task reported '+task.usage.totalTokens+'; unknown '+task.usage.unknownRequests);
+ }catch(error){reported={scenario,passed:false,error:error.stack,group,realModelRequests:0};throw error;}
+ finally{
+ release?.();if(started)await started.promise.catch(()=>{});if(runtime)await runtime.stopAll();
+ f.store.storage.database.exec('PRAGMA wal_checkpoint(TRUNCATE)');fs.writeFileSync(path.join(sample,'result.json'),JSON.stringify(reported,null,2));
+ fs.cpSync(f.root,path.join(sample,'original-fixture'),{recursive:true,filter:file=>!file.split(path.sep).includes('node_modules')});
+ for(const dispose of disposers.reverse())await dispose();
+ }
+ return {scenario,passed:true};
+}
+let report;
+try{for(const scenario of ['reported-budget-overrun','denied-scope','stop-in-flight','source-changed-at-approval'])results.push(await sample(scenario));
+ report={passed:true,directory,results,realModelRequests:0,scope:'Actual pinned Harness and production host routing with owned HTTP fixtures. No real model reasoning or Purge benefit.'};
+}catch(error){process.exitCode=1;report={passed:false,directory,results,error:error.stack,realModelRequests:0};}
+fs.writeFileSync(path.join(directory,'validation.json'),JSON.stringify(report,null,2));console.log(JSON.stringify(report));
diff --git a/scripts/verify-original-purge-production-evidence.mjs b/scripts/verify-original-purge-production-evidence.mjs
new file mode 100644
index 00000000..b44e1d74
--- /dev/null
+++ b/scripts/verify-original-purge-production-evidence.mjs
@@ -0,0 +1,75 @@
+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';
+import {originalEngineRun,verifyEngineModelInput} from '../src/shared/contracts/engine-execution.mjs';
+import {assertPurgeModelInput} from '../src/core/engines/purge-strategy.mjs';
+
+// Offline only: inspect original bytes and pure contracts, never instantiate
+// a Provider/Runtime, load an upstream plugin or send a model request.
+const root=path.resolve('docs/original-purge-production-evidence'),sha=raw=>createHash('sha256').update(raw).digest('hex');
+const inside=relative=>{const file=path.resolve(root,relative);assert.ok(file.startsWith(root+path.sep));return file;};
+const read=relative=>JSON.parse(fs.readFileSync(inside(relative))),raw=fs.readFileSync(inside('manifest.json')),manifest=JSON.parse(raw);
+assert.equal(manifest.schemaVersion,1);assert.equal(manifest.realModelRequests,0);assert.equal(manifest.formalServiceChanged,false);
+let bytes=0;const paths=new Set();
+for(const entry of manifest.entries){assert.ok(!paths.has(entry.path));paths.add(entry.path);const data=fs.readFileSync(inside(entry.path));
+ assert.equal(data.length,entry.bytes,entry.path);assert.equal(sha(data),entry.sha256,entry.path);bytes+=data.length;}
+assert.equal(paths.size,manifest.count);assert.equal(bytes,manifest.bytes);
+for(const input of manifest.sourceInputs){
+ const git=execFileSync('git',['show',manifest.sourceCommit+':'+input.path],{windowsHide:true,maxBuffer:16*1024*1024});
+ assert.equal(sha(git),input.gitBlobSha256,input.path);
+ if(input.snapshot){const bytes=fs.readFileSync(inside(input.snapshot));assert.equal(sha(bytes),input.sha256);assert.equal(bytes.length,input.bytes);
+ assert.equal(bytes.toString('utf8').replaceAll('\r\n','\n'),git.toString('utf8').replaceAll('\r\n','\n'));}
+ else assert.equal(sha(git),input.sha256,input.path);
+}
+const receipt=name=>fs.readFileSync(inside(manifest.receipts.find(value=>value.name===name).file),'utf8');
+assert.match(receipt('full'),new RegExp('tests '+manifest.fullSummary.tests+'\\b'));
+assert.match(receipt('full'),new RegExp('pass '+manifest.fullSummary.passed+'\\b'));
+assert.match(receipt('full'),/fail 4\b/);assert.equal(manifest.fullSummary.failed,4);
+assert.equal(manifest.fullSummary.tests,manifest.fullSummary.passed+manifest.fullSummary.failed);
+// Preserve the original failed whole run. Subsequent evidence is the same
+// Python cases with the declared environment and the two repaired migrations.
+assert.deepEqual(manifest.fullSummary.failedNames.slice().sort(),[
+ 'real pytest pass, failure, skip, collection errors and teardown errors use collected case outcomes',
+ 'a missing interpreter and repeated pytest item objects cannot create a false verification pass',
+ 'a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider',
+ 'the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection'
+].sort());
+for(const [name,count] of [['python-final',15],['upgrade-final',2]]){
+ assert.match(receipt(name),new RegExp('tests '+count+'\\b'));assert.match(receipt(name),new RegExp('pass '+count+'\\b'));assert.match(receipt(name),/fail 0\b/);
+}
+assert.match(receipt('build'),/Server bundle built\./);
+const runtime=read(manifest.runtime);assert.equal(runtime.passed,true);assert.equal(runtime.productionAdapter,true);
+assert.deepEqual(runtime.cases.map(value=>value.scenario),['completed','failed-no-retry','host-denied-tool']);
+assert.equal(runtime.cases[0].exit.code,0);assert.deepEqual(runtime.cases.map(value=>value.bridgeCalls),[1,1,2]);
+const host=read(manifest.host.result);assert.equal(host.passed,true);assert.equal(host.results.length,4);
+for(const sample of manifest.host.samples){const value=read(sample.result);assert.equal(value.passed,true);assert.equal(value.job.native.cleanup.treeConfirmed,true);
+ if(value.scenario==='reported-budget-overrun'){assert.equal(value.task.usage.totalTokens,55017);assert.equal(value.run.stopReason,'token_limit');assert.equal(value.modelRequests.length,1);}
+ if(value.scenario==='stop-in-flight'){assert.equal(value.run.usage.unknownRequests,1);assert.equal(value.task.usage.unknownRequests,1);
+ assert.equal(value.modelRequests.length,2);assert.equal(value.resumedJob.taskId,value.job.taskId);assert.notEqual(value.resumedJob.runId,value.job.runId);
+ assert.equal(value.resumedJob.native.cleanup.treeConfirmed,true);assert.equal(value.task.usage.totalTokens,168);}
+ if(value.scenario==='source-changed-at-approval')assert.match(value.job.error,/已变化/);
+}
+const ui=read(manifest.ui.result);assert.equal(ui.passed,true);assert.equal(ui.cases.length,4);assert.deepEqual(ui.pageErrors,[]);assert.deepEqual(ui.unexpectedFailures,[]);
+assert.equal(manifest.ui.screenshots.length,4);
+let requests=0,artifacts=0;
+for(const sample of manifest.engineering){
+ const result=read(sample.result),core={},owners=new Map(read(sample.sessions).map(value=>[value.id,value]));
+ for(const row of read(sample.records)){const value=JSON.parse(row.payload);(core[row.kind]??=new Map()).set(value.id,value);}
+ const inputs=new Map(sample.artifacts.map(value=>[value.id,value]));artifacts+=inputs.size;
+ const store={core,owned(kind,id,sessionId){const value=core[kind]?.get(id);assert.equal(value?.sessionId,sessionId);return value;},
+ artifactStore:{read(artifact){const data=fs.readFileSync(inside(inputs.get(artifact.id).file));assert.equal(sha(data),artifact.sha256);assert.equal(data.length,artifact.bytes);return data.toString('utf8');}},
+ savedToolResult(sessionId,callId){const tool=[...core.tool.values()].find(value=>value.sessionId===sessionId&&value.callId===callId);return JSON.parse(this.artifactStore.read(core.artifact.get(tool.resultArtifactId)));}};
+ assert.equal(result.success,true);assert.equal(result.metrics.contextLimit,32000);assert.equal(result.parentCheck.results[0].tests.passed,9);
+ assert.ok(result.checks.some(job=>job.status==='failed'&&job.results[0].tests.failed===9));
+ for(const job of core.engine_run.values()){
+ const session=owners.get(job.sessionId);originalEngineRun(store,session,job);assert.equal(job.status,'completed');assert.equal(job.native.cleanup.treeConfirmed,true);
+ const original=job.native.originalPurge;assert.equal(original.readiness.originalApplyCalled,true);assert.equal(original.nativeLoads.length,2);assert.ok(original.durabilityReceipts.length);
+ assert.equal(job.installation.strategy.kind,'purge-original-restricted-v1');
+ for(const request of job.requests){const input=verifyEngineModelInput(store,session,job,request);assertPurgeModelInput(input.native,job.installation.strategy);requests++;}
+ }
+}
+assert.deepEqual(manifest.engineering.map(value=>value.name),['chat','responses']);
+console.log(JSON.stringify({passed:true,sourceCommit:manifest.sourceCommit,files:paths.size,bytes,fullSummary:manifest.fullSummary,artifacts,requests,
+ manifestSha256:sha(raw),realModelRequests:0,scope:'Offline original source/receipt/request/usage/cleanup checks. Actual reasoning and Purge benefit remain unmeasured.'}));
diff --git a/scripts/verify-original-purge-runtime.mjs b/scripts/verify-original-purge-runtime.mjs
new file mode 100644
index 00000000..81d6400a
--- /dev/null
+++ b/scripts/verify-original-purge-runtime.mjs
@@ -0,0 +1,52 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import assert from 'node:assert/strict';
+import {randomUUID} from 'node:crypto';
+import {ControlledDeepSeekSession} from '../src/core/engines/controlled-session.mjs';
+import {resolveControlledInstallation} from '../src/core/engines/controlled-installation.mjs';
+import {resolveOriginalPurgeSource,selectPurgeStrategy,assertPurgeModelInput,ORIGINAL_PURGE_KIND} from '../src/core/engines/purge-strategy.mjs';
+
+// Real pinned Harness, production adapter, synthetic model responses. No Key,
+// configured provider, user project, clientFactory patch or upstream mutation.
+const directory=path.resolve('.qa','original-purge-runtime-'+randomUUID());fs.mkdirSync(directory,{recursive:true});
+const installation=resolveControlledInstallation(process.cwd(),process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT);
+assert.equal(installation.controlledStatus,'available',installation.message);
+const source=resolveOriginalPurgeSource(process.cwd(),process.env.AGENT_WORKBENCH_PURGE_178_ROOT,installation);
+assert.equal(source.status,'available',source.message);
+const strategy=selectPurgeStrategy({kind:ORIGINAL_PURGE_KIND,root:source.root,sourceSha256:source.sourceSha256,runtimeSha256:source.runtimeSha256,
+ prompt:'Preserve the owned engineering task, host approvals, saved evidence and cumulative budget.'},process.cwd(),installation);
+const results=[];let active;
+try{
+ for(const scenario of ['completed','failed-no-retry','host-denied-tool']){
+ const cwd=path.join(directory,scenario);fs.mkdirSync(cwd);const driver=new ControlledDeepSeekSession(installation,{timeoutMs:30000});active=driver;
+ const controller=new AbortController(),modelInputs=[];let tools=0,text=null,error=null;
+ try{
+ await driver.open({directory:path.join(cwd,'native'),cwd,owner:Object.fromEntries(['sessionId','projectId','taskId','runId','jobId'].map(key=>[key,randomUUID()])),
+ sdkSessionId:randomUUID(),strategy,signal:controller.signal,config:{model:'owned-original-purge-runtime',contextLimit:16000,maxOutputTokens:512,maxRunDurationMs:30000},
+ tools:[{name:'owned_probe',description:'A host-gated synthetic test tool.',parameters:{type:'object',properties:{},additionalProperties:false}}],
+ onModel:async input=>{
+ modelInputs.push(input);assertPurgeModelInput(input,strategy);
+ if(scenario==='failed-no-retry')throw new Error('Declared upstream fixture failure; no automatic retry.');
+ if(modelInputs.length>1)throw new Error('Host stops the next model round after the rejected tool result.');
+ return {message:{role:'assistant',content:scenario==='completed'?'Owned original entry completed.':'',...(scenario==='host-denied-tool'?{
+ tool_calls:[{id:'declared-owned-tool',type:'function',function:{name:'owned_probe',arguments:'{}'}}]}:{})},usage:{prompt_tokens:300,completion_tokens:50,total_tokens:350}};
+ },onTool:async()=>{tools++;throw new Error('External host denied the declared operation.');}});
+ await driver.prompt('Complete only this owned loading/protocol acceptance.');text=await driver.wait();
+ }catch(failure){error=failure.stack;}
+ const report=await driver.close({force:!!error});active=null;
+ const result={scenario,text,error,modelInputs,tools,report};results.push(result);fs.writeFileSync(path.join(cwd,'result.json'),JSON.stringify(result,null,2));
+ assert.equal(report.cleanup?.rootExited,true,JSON.stringify(report));assert.equal(report.cleanup?.treeConfirmed,true);
+ assert.equal(report.originalPurge.readiness?.originalApplyCalled,true);assert.ok(report.originalPurge.loadedModules.length>330);
+ if(scenario==='completed'){assert.equal(error,null);assert.equal(text,'Owned original entry completed.');assert.equal(report.status,'closed');assert.equal(report.cleanup.exit.code,0);assert.equal(modelInputs.length,1);assert.equal(tools,0);}
+ assert.ok(report.originalPurge.durabilityReceipts.length>0);
+ if(scenario==='failed-no-retry'){assert.notEqual(error,null);assert.equal(modelInputs.length,1);assert.equal(tools,0);}
+ if(scenario==='host-denied-tool'){assert.notEqual(error,null);assert.equal(modelInputs.length,2);assert.equal(tools,1);}
+ console.log('PASS '+scenario+'; model bridge '+modelInputs.length+'; host tools '+tools+'; process tree closed');
+ }
+ const summary={passed:true,directory,productionAdapter:true,realModelRequests:0,sourceSha256:source.sourceSha256,runtimeSha256:source.runtimeSha256,
+ cases:results.map(({scenario,modelInputs,tools,report})=>({scenario,bridgeCalls:modelInputs.length,hostTools:tools,status:report.status,exit:report.cleanup.exit,
+ loadedModules:report.originalPurge.loadedModules.length,fsyncs:report.originalPurge.durabilityReceipts.length})),
+ scope:'Pinned original entry through production ControlledDeepSeekSession. Synthetic model responses; no real autonomy or Purge benefit measured.'};
+ fs.writeFileSync(path.join(directory,'validation.json'),JSON.stringify(summary,null,2));console.log(JSON.stringify(summary));
+}catch(error){console.error(JSON.stringify({passed:false,directory,error:error.stack,realModelRequests:0}));process.exitCode=1;}
+finally{if(active)await active.close({force:true});}
diff --git a/scripts/verify-original-purge-ui.mjs b/scripts/verify-original-purge-ui.mjs
new file mode 100644
index 00000000..2410a380
--- /dev/null
+++ b/scripts/verify-original-purge-ui.mjs
@@ -0,0 +1,84 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import assert from 'node:assert/strict';
+import {createHash,randomUUID} from 'node:crypto';
+import {chromium,expect} from 'playwright/test';
+import {fixture} from '../tests/helpers.mjs';
+import {workerHttp} from '../tests/fixtures/workers-http.mjs';
+import {ownerBytes} from '../tests/fixtures/workers-project.mjs';
+import {EngineRunner} from '../src/core/engines/engine-runner.mjs';
+import {resolveControlledInstallation} from '../src/core/engines/controlled-installation.mjs';
+import {resolveOriginalPurgeSource} from '../src/core/engines/purge-strategy.mjs';
+import {originalEngineRun} from '../src/shared/contracts/engine-execution.mjs';
+
+const directory=path.resolve('.qa','original-purge-ui-'+randomUUID());fs.mkdirSync(directory,{recursive:true});
+const installation=resolveControlledInstallation(process.cwd(),process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT);
+assert.equal(installation.controlledStatus,'available',installation.message);
+const originalSource=resolveOriginalPurgeSource(process.cwd(),process.env.AGENT_WORKBENCH_PURGE_178_ROOT,installation);assert.equal(originalSource.status,'available',originalSource.message);
+const copy=path.join(directory,'declared-source');fs.mkdirSync(copy);
+for(const input of originalSource.inputs){const target=path.join(copy,input.relative);fs.mkdirSync(path.dirname(target),{recursive:true});fs.copyFileSync(input.path,target);}
+const disposers=[],t={after:fn=>disposers.push(fn)},f=fixture(t),host=await workerHttp(f),owner=ownerBytes(f);
+f.store.saveConfig({contextLimit:64000});host.runtime.controlledEngines=new EngineRunner(f.store,host.provider,{directoryRoot:path.join(f.root,'owned-native-runs')});
+const hash=raw=>createHash('sha256').update(raw).digest('hex'),cases=[],screenshots=[],pageErrors=[],unexpectedFailures=[],closedNavigationStreams=[];
+const browser=await chromium.launch({channel:'msedge',headless:true}),page=await browser.newPage({viewport:{width:1440,height:1000},acceptDownloads:true});
+const eventStreams=new Set(),navigationStreams=new WeakSet();
+page.on('request',request=>{if(new URL(request.url()).pathname==='/api/events')eventStreams.add(request);});
+page.on('pageerror',error=>pageErrors.push(error.message));page.on('requestfailed',request=>{
+ const error=request.failure()?.errorText,record={path:new URL(request.url()).pathname,error};
+ if(navigationStreams.has(request)&&/ERR_ABORTED|ERR_INCOMPLETE_CHUNKED_ENCODING/.test(error??''))closedNavigationStreams.push(record);
+ else unexpectedFailures.push(record);
+});
+const panel=()=>page.getByLabel('隔离协作控制台',{exact:true}),control=()=>panel().getByLabel('Purge 原版受限模式',{exact:true});
+const seal=()=>panel().getByRole('button',{name:'封存分工计划',exact:true});
+const mark=value=>{cases.push(value);console.log('PASS '+value);};
+async function screenshot(name){const file=path.join(directory,name+'.png');await page.screenshot({path:file,scale:'css'});screenshots.push({file,sha256:hash(fs.readFileSync(file))});}
+async function workers(){const close=page.getByRole('button',{name:'关闭检视区',exact:true});if(page.viewportSize().width<=940&&await close.isVisible())await close.click();
+ await page.getByRole('button',{name:'隔离协作',exact:true}).click();await expect(panel()).toBeVisible();}
+async function detect(){await control().getByRole('button',{name:'检测 Purge 来源',exact:true}).click();await expect(control()).toContainText('已核对 Purge 1.1.78');}
+let report;
+try{
+ await page.addInitScript(({projectId,sessionId})=>{localStorage.setItem('awb-project',projectId);localStorage.setItem('awb-session',sessionId);},{projectId:f.project.id,sessionId:f.session.id});
+ await page.goto(host.url,{waitUntil:'networkidle'});await workers();await panel().getByLabel('执行方式',{exact:true}).selectOption('deepseek');
+ await panel().getByLabel('Harness 安装目录',{exact:true}).fill(installation.root);await panel().getByRole('button',{name:'检测受控安装',exact:true}).click();await expect(panel()).toContainText('受控安装可用');
+ await panel().getByLabel('父目标',{exact:true}).fill('核对原版 Purge 的真实加载与任务归属');await panel().getByLabel('任务名称',{exact:true}).fill('original-1');
+ await panel().getByLabel('独立子目标',{exact:true}).fill('只在允许目录中提出修改,保留原审批与完整报告');await panel().getByLabel('允许修改的文件或目录',{exact:true}).fill('src/a.mjs');
+ const promptControl=panel().getByLabel('Purge 提示实验',{exact:true});await expect(promptControl.getByRole('checkbox')).not.toBeChecked();
+ await promptControl.getByRole('checkbox').check();await promptControl.getByLabel('Purge 执行模式',{exact:true}).selectOption('purge-original-restricted-v1');
+ await expect(seal()).toBeDisabled();await expect(control()).toContainText('原版效果需另行实测');
+ await control().getByLabel('Purge 源码目录',{exact:true}).fill(copy);await detect();await expect(seal()).toBeEnabled();
+ await control().getByText('实验来源与执行范围',{exact:true}).click();await expect(control()).toContainText('Node 权限不等同于操作系统沙箱');
+ await screenshot('original-purge-desktop-source');mark('desktop distinguishes the original restricted profile from the default-off independent prompt and detects complete fixed inputs');
+ const before=f.store.core.task.size;fs.appendFileSync(path.join(copy,'lib/host.js'),'\n// owned post-detection drift\n');
+ await seal().click();await expect(panel()).toContainText('原版来源或运行依赖与刚才的检测不一致');assert.equal(f.store.core.task.size,before);assert.equal(host.requests.length,0);
+ fs.copyFileSync(path.join(originalSource.root,'lib/host.js'),path.join(copy,'lib/host.js'));await detect();
+ await expect(panel()).not.toContainText('原版来源或运行依赖与刚才的检测不一致');mark('a changed original module outside the old nine-file lock refuses sealing and restoring/detecting clears obsolete feedback');
+ await page.setViewportSize({width:390,height:844});await control().getByLabel('Purge 执行模式',{exact:true}).scrollIntoViewIfNeeded();
+ assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);const box=await control().getByLabel('Purge 执行模式',{exact:true}).boundingBox();assert.ok(box.height>=42);
+ await screenshot('original-purge-mobile-source');await seal().click();await expect(panel()).toContainText('本计划的 Purge 原版受限模式');
+ const group=[...f.store.core.collaboration.values()].at(-1),strategy=group.children[0].engine.strategy;assert.equal(strategy.kind,'purge-original-restricted-v1');
+ assert.equal(strategy.source.inputs.length,60);assert.equal(strategy.runtime.nativeAddons.length,2);assert.equal(strategy.originalConfig.autoRetry,false);
+ for(const request of eventStreams)navigationStreams.add(request);
+ const reconnected=page.waitForResponse(response=>new URL(response.url()).pathname==='/api/events'&&response.status()===200);
+ await page.reload({waitUntil:'networkidle'});await reconnected;await workers();await expect(panel()).toContainText(strategy.sha256.slice(0,16));mark('390px selection is usable and the persisted parent plan retains the original source, runtime and fixed configuration after refresh');
+ await panel().getByRole('button',{name:'创建引擎工作区',exact:true}).click();await page.getByRole('dialog',{name:'确认创建隔离工作区',exact:true}).getByRole('button',{name:'确认创建',exact:true}).click();
+ await expect(panel().getByRole('button',{name:'开始引擎任务',exact:true})).toBeEnabled({timeout:30000});
+ await panel().getByRole('button',{name:'开始引擎任务',exact:true}).click();await page.getByRole('dialog',{name:'确认受限子执行',exact:true}).getByRole('button',{name:'确认开始',exact:true}).click();
+ await expect.poll(()=>group.status,{timeout:60000}).toBe('awaiting_review');
+ const job=[...f.store.core.engine_run.values()].at(-1),session=f.store.session(job.sessionId);assert.equal(job.status,'completed',job.error);assert.equal(job.native.cleanup.treeConfirmed,true);
+ assert.equal(job.native.originalPurge.readiness.originalApplyCalled,true);assert.equal(job.native.originalPurge.nativeLoads.length,2);assert.deepEqual(ownerBytes(f),owner);
+ await panel().getByRole('button',{name:'审查子任务改动',exact:true}).click();
+ // Navigation loads the child asynchronously; wait for its inspector before
+ // closing it, so a late navigation result cannot reopen it over the toolbar.
+ await expect(panel()).toBeHidden();
+ const close=page.getByRole('button',{name:'关闭检视区',exact:true});await expect(close).toBeVisible();await close.click();await expect(page.locator('aside.inspector')).toBeHidden();
+ await page.getByRole('button',{name:'本地代理引擎',exact:true}).click();const runs=page.getByLabel('受控引擎工程运行',{exact:true});
+ await expect(runs).toContainText('Purge 原版受限模式 · 1.1.78');await runs.getByText('查看本次实验策略',{exact:true}).click();await expect(runs).toContainText(strategy.runtime.sha256);
+ const pending=page.waitForEvent('download');await runs.getByRole('button',{name:'下载完整报告',exact:true}).click();const download=await pending,file=path.join(directory,'original-engine-report.json');await download.saveAs(file);
+ assert.equal(fs.readFileSync(file,'utf8'),originalEngineRun(f.store,session,job));assert.equal(hash(fs.readFileSync(file)),job.reportSha256);
+ assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);await screenshot('original-purge-mobile-run');mark('actual original Harness execution remains an owned Run and the UI downloads its byte-identical native loading, request and cleanup report');
+ await page.setViewportSize({width:1440,height:1000});await screenshot('original-purge-desktop-run');assert.equal(pageErrors.length,0);assert.equal(unexpectedFailures.length,0);
+ report={passed:true,directory,cases,screenshots,pageErrors,unexpectedFailures,closedNavigationStreams,group,job,realModelRequests:0,scope:'Compiled React UI, source HTTP host, actual Harness/original entry and declared Provider fixture. No real model benefit.'};
+}catch(error){process.exitCode=1;report={passed:false,directory,cases,screenshots,pageErrors,unexpectedFailures,closedNavigationStreams,error:error.stack,realModelRequests:0};}
+finally{await host.runtime.stopAll();await browser.close();f.store.storage.database.exec('PRAGMA wal_checkpoint(TRUNCATE)');
+ fs.cpSync(f.root,path.join(directory,'original-fixture'),{recursive:true,filter:file=>!file.split(path.sep).includes('node_modules')});
+ fs.writeFileSync(path.join(directory,'validation.json'),JSON.stringify(report,null,2));for(const dispose of disposers.reverse())await dispose();console.log(JSON.stringify({passed:report.passed,directory,cases:cases.length,error:report.error??null}));}
diff --git a/src/client/EngineRunPanel.tsx b/src/client/EngineRunPanel.tsx
index fedafb4b..2c0821e8 100644
--- a/src/client/EngineRunPanel.tsx
+++ b/src/client/EngineRunPanel.tsx
@@ -51,7 +51,7 @@ export function EngineRunPanel({ session, onSession, onError, onNavigate }: {
{job.error &&
{job.error}
}
{job.status === 'completed' && 原引擎运行与调用账本已核验。工程完成仍以提案应用、当前检查和父工程交付为准。
}
{job.requiresVerification && 请返回父目标核对原输入与现场。原未知结果保留,继续会创建新的运行。
}
- {job.installation.strategy && Purge 提示实验 · {job.installation.strategy.source.version}本 Run 使用已封存工程提示,原审批与预算继续生效。
查看本次实验策略
- 策略 SHA256
- {job.installation.strategy.sha256}
- 来源 SHA256
- {job.installation.strategy.source.sourceSha256}
- 文本 SHA256
- {job.installation.strategy.promptSha256}
- 来源目录
- {job.installation.strategy.source.root}
{job.installation.strategy.prompt} }
+ {job.installation.strategy && Purge {job.installation.strategy.kind==='purge-original-restricted-v1'?'原版受限模式':'提示实验'} · {job.installation.strategy.source.version}{job.installation.strategy.kind==='purge-original-restricted-v1'?'本 Run 加载固定原版入口,自动重试和继续关闭;工作台审批与预算继续生效。':'本 Run 使用已封存工程提示,原审批与预算继续生效。'}
查看本次实验策略
- 策略 SHA256
- {job.installation.strategy.sha256}
- 来源 SHA256
- {job.installation.strategy.source.sourceSha256}
- 文本 SHA256
- {job.installation.strategy.promptSha256}
- 来源目录
- {job.installation.strategy.source.root}
{job.installation.strategy.kind==='purge-original-restricted-v1'&&<>- 固定运行依赖 SHA256
- {job.installation.strategy.runtime.sha256}
- 加载范围
- {job.installation.strategy.runtime.inputs.length} 份固定输入 / {job.installation.strategy.runtime.nativeAddons.length} 个固定原生模块
>}
{job.installation.strategy.prompt} }
{job.review && 人工核对记录:{job.review.evidenceSha256.slice(0, 16)}。原未知输出未改写为完成。
}
任务身份与来源
- Task
- {job.taskId}
- Run
- {job.runId}
- SDK 会话
- {job.sdkSessionId}
- 安装目录
- {job.installation.root}
- 输入 SHA256
- {job.inputSha256}
- 报告 SHA256
- {job.reportSha256 ?? '尚未封存'}
- 原事件
- {job.nativeSummary.notifications} 项
diff --git a/src/client/PurgeStrategyControl.css b/src/client/PurgeStrategyControl.css
index c83e7ee3..7af2c35c 100644
--- a/src/client/PurgeStrategyControl.css
+++ b/src/client/PurgeStrategyControl.css
@@ -14,6 +14,8 @@
.purge-strategy-fields details { font-size:12px; color:#587087; min-width:0; }
.purge-strategy-fields summary { cursor:pointer; }
.purge-strategy-fields dl > div { margin-top:8px; }
+.purge-strategy-fields .purge-source-inputs { max-height:260px; overflow:auto; padding-right:8px; }
+.purge-strategy-fields select { width:100%; min-height:42px; min-width:0; border:1px solid #b8c7d5; border-radius:4px; background:white; color:#243d54; padding:8px; }
.purge-strategy-fields dd { margin:4px 0 0; }
.purge-strategy-control .purge-source-error { color:#794d21; background:#fff8ee; padding:10px; border-left:3px solid #925619; overflow-wrap:anywhere; }
.engine-run-panel .engine-prompt-note { padding:12px; background:#f5f6fa; border-left:3px solid #626594; font-size:12px; line-height:1.7; }
diff --git a/src/client/PurgeStrategyControl.tsx b/src/client/PurgeStrategyControl.tsx
index 5fbd6724..f33a5acd 100644
--- a/src/client/PurgeStrategyControl.tsx
+++ b/src/client/PurgeStrategyControl.tsx
@@ -4,38 +4,49 @@ import { api } from './api';
import type { PurgeSourceAvailability } from './types';
import './PurgeStrategyControl.css';
-export type PurgeDraft = { enabled: boolean; root: string; prompt: string; source: PurgeSourceAvailability | null };
-export const emptyPurgeDraft = (): PurgeDraft => ({ enabled: false, root: '', prompt: '', source: null });
+export type PurgeDraft = { enabled: boolean; kind: 'purge-prompt-experiment' | 'purge-original-restricted-v1'; root: string; prompt: string; source: PurgeSourceAvailability | null };
+export const emptyPurgeDraft = (): PurgeDraft => ({ enabled: false, kind: 'purge-prompt-experiment', root: '', prompt: '', source: null });
+export const purgeStrategyInput = (value: PurgeDraft) => ({kind:value.kind,root:value.source?.root,sourceSha256:value.source?.sourceSha256,prompt:value.prompt,
+ ...(value.kind==='purge-original-restricted-v1'?{runtimeSha256:value.source?.runtimeSha256}:{})});
export function purgeDraftReady(value: PurgeDraft) {
return !value.enabled || value.source?.status === 'available' && !!value.source.sourceSha256
+ && (value.source.kind??'purge-prompt-experiment')===value.kind && (value.kind!=='purge-original-restricted-v1'||!!value.source.runtimeSha256)
&& !!value.prompt.trim() && new TextEncoder().encode(value.prompt).length <= 24000;
}
-export function PurgeStrategyControl({ value, onChange, busy }: { value: PurgeDraft; onChange: (value: PurgeDraft) => void; busy: boolean }) {
+export function PurgeStrategyControl({ value, onChange, busy, harnessRoot }: { value: PurgeDraft; onChange: (value: PurgeDraft) => void; busy: boolean; harnessRoot?: string | null }) {
const [detecting, setDetecting] = useState(false), [error, setError] = useState('');
const request = useRef(0), current = useRef(value); current.current = value;
+ const previousHarness = useRef(harnessRoot);
+ useEffect(() => { if(previousHarness.current===harnessRoot)return;previousHarness.current=harnessRoot;request.current++;setDetecting(false);setError('');
+ if(current.current.kind==='purge-original-restricted-v1')onChange({...current.current,source:null}); }, [harnessRoot, onChange]);
useEffect(() => () => { request.current++; }, []);
function enabled(next: boolean) { request.current++; setDetecting(false); setError(''); onChange({ ...value, enabled: next }); }
function editRoot(root: string) { request.current++; setDetecting(false); setError(''); onChange({ ...value, root, source: null }); }
async function detect() {
const generation = ++request.current; setDetecting(true); setError(''); onChange({ ...current.current, source: null });
try {
- const source = await api('/engines/purge/source' + (value.root.trim() ? '?root=' + encodeURIComponent(value.root.trim()) : ''));
+ const query=new URLSearchParams({kind:value.kind});if(value.root.trim())query.set('root',value.root.trim());if(value.kind==='purge-original-restricted-v1'&&harnessRoot)query.set('harnessRoot',harnessRoot);
+ const source = await api('/engines/purge/source?'+query);
if (generation !== request.current) return;
onChange({ ...current.current, root: source.root ?? current.current.root, source, prompt: current.current.prompt || source.defaultPrompt });
} catch (failure) { if (generation === request.current) setError(failure instanceof Error ? failure.message : String(failure)); }
finally { if (generation === request.current) setDetecting(false); }
}
- return
-
- 追加已封存的工程提示,继续使用原任务范围、检查审批和累计预算。实际收益需同题对照验证。
+ const original=value.kind==='purge-original-restricted-v1';
+ return
+
+ {original?'运行原版 1.1.78 的固定受限配置,继续使用工作台的工具审批和累计预算。原版效果需另行实测。':'追加已封存的工程提示,继续使用原任务范围、检查审批和累计预算。实际收益需同题对照验证。'}
{value.enabled &&
+
- {value.source &&
{value.source.status === 'available' ? '已核对 Purge ' + value.source.version : '来源尚不可用'}{value.source.message}
{value.source.sourceSha256 &&
{value.source.sourceSha256}}
}
+ {value.source &&
{value.source.status === 'available' ? '已核对 Purge ' + value.source.version : '来源尚不可用'}{value.source.message}
{value.source.sourceSha256 &&
{value.source.sourceSha256}}{original&&value.source.runtimeSha256&&
固定运行依赖 {value.source.runtimeInputs} 份 · {value.source.runtimeSha256}
}
}
{error &&
{error}
}
{new TextEncoder().encode(value.prompt).length.toLocaleString()} / 24,000 字节 · 完整文本随计划保存,运行期间不能替换。
-
实验来源与执行范围
独立提示装配参考 YuJunZhiXue / dsh-purge(Apache-2.0)。不加载上游完整插件;实验不开启宿主修改、权限绕过或自动重试。
{value.source?.inputs && {value.source.inputs.map(input => - {input.relative}
- {input.sha256}
)}
}
+
实验来源与执行范围
{original?'YuJunZhiXue / dsh-purge(Apache-2.0)原版入口,完整来源和运行副本逐份核对。自动更新、宿主修改、原版工具、自动重试和继续关闭;内部提示及钩子仍由原版装配。这是固定可信源码的 Windows x64 配置,Node 权限不等同于操作系统沙箱。':'独立提示装配参考 YuJunZhiXue / dsh-purge(Apache-2.0)。不加载上游完整插件;实验不开启宿主修改、权限绕过或自动重试。'}
{value.source?.inputs && {value.source.inputs.map(input => - {input.relative}
- {input.sha256}
)}
}
}
;
}
diff --git a/src/client/WorkerPanel.tsx b/src/client/WorkerPanel.tsx
index e49fd390..04cd87a3 100644
--- a/src/client/WorkerPanel.tsx
+++ b/src/client/WorkerPanel.tsx
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
import { ArrowUpRight, Check, GitBranch, LoaderCircle, Play, RefreshCw, ShieldCheck, Square } from 'lucide-react';
import { api, downloadBlob } from './api';
import { Modal } from './components';
-import { PurgeStrategyControl, emptyPurgeDraft, purgeDraftReady } from './PurgeStrategyControl';
+import { PurgeStrategyControl, emptyPurgeDraft, purgeDraftReady, purgeStrategyInput } from './PurgeStrategyControl';
import type { CollaborationGroup, Config, Session, WorkerView, ControlledEngineAvailability } from './types';
import './WorkerPanel.css';
@@ -59,7 +59,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
const result = await api<{ group: CollaborationGroup; session: Session }>('/sessions/' + session.id + '/collaborations', {
goal, children: (engineMode === 'deepseek' ? drafts.slice(0, 1) : drafts).map(child => ({ label: child.label, goal: child.goal, paths: splitPaths(child.paths) })),
...(engineMode === 'deepseek' ? { engine: { id: 'deepseek-harness', root: engineInstallation?.root, controlledSha256: engineInstallation?.controlledSha256,
- ...(purge.enabled ? { strategy: { kind: 'purge-prompt-experiment', root: purge.source?.root, sourceSha256: purge.source?.sourceSha256, prompt: purge.prompt } } : {}) } } : {}),
+ ...(purge.enabled ? { strategy: purgeStrategyInput(purge) } : {}) } } : {}),
budget: { maxTokens: tokens, maxSteps: steps, maxToolCalls: toolCalls, maxDurationMs: duration * 60000 },
});
if (generation !== scope.current) return;
@@ -95,7 +95,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
{(!group || creating) &&
{engineMode === 'deepseek' &&
{engineInstallation && {engineReady ? '受控安装可用' : '安装尚不可用'}{engineInstallation.message}
{engineReady &&
Harness {engineInstallation.version} · {engineInstallation.controlledSha256?.slice(0, 16)}}
}模型连接由工作台使用;引擎只提交范围内的提案与检查请求,应用和检查仍需审查。
}
- {engineMode === 'deepseek' &&
{ setPurge(value); setError(''); }} busy={!!action} />}
+ {engineMode === 'deepseek' && { setPurge(value); setError(''); }} busy={!!action} harnessRoot={engineInstallation?.root} />}
{visibleDrafts.map((child, index) =>
)}
@@ -103,7 +103,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
{creating && }
}
{group && !creating && <>
- {group.children[0]?.engine?.strategy && 本计划的 Purge 提示实验 · {group.children[0].engine.strategy.source.version} · {group.children[0].engine.strategy.sha256.slice(0, 16)}
}
+ {group.children[0]?.engine?.strategy && 本计划的 Purge {group.children[0].engine.strategy.kind==='purge-original-restricted-v1'?'原版受限模式':'提示实验'} · {group.children[0].engine.strategy.source.version} · {group.children[0].engine.strategy.sha256.slice(0, 16)}
}
{group.evaluation && 本协作属于固定工程评测。执行与采纳请使用「工程评测」;这里保留原任务导航和中断现场核对。
}{statusLabel(group.status)}{group.source.identity.branch} · {group.source.identity.head.slice(0, 12)}
{group.goal}
{group.summary}
- 模型
- {group.model.mode === 'demo' ? '离线演示' : group.model.model}
- 执行方式
- {group.children[0].engine ? "DeepSeek Harness " + group.children[0].engine.version : "工作台受限子任务"}
- 总预算
- {number(group.budget.maxTokens)} tokens / {group.budget.maxSteps} 轮 / {group.budget.maxToolCalls} 次工具
- 累计用量
- {number(group.usage?.accountedTokens)} tokens / {group.usage?.steps ?? 0} 轮 / {group.usage?.toolCalls ?? 0} 次工具 / {group.usage?.requests ?? 0} 次模型请求
- 原修改
- {group.source.changedPaths.length ? group.source.changedPaths.map(value => value.path).join('、') : '无未提交修改'}
{(group.workers ?? []).map((child, index) =>
通道 {index + 1}{statusLabel(child.sessionStatus === 'awaiting_approval' ? 'awaiting_approval' : child.status)}
{child.label}
{child.engine && DeepSeek Harness {child.engine.version} · 固定安装 {child.engine.controlledSha256?.slice(0, 12)}
}{child.goal}
允许修改{child.paths.map(path => {path})}
{number(child.usage?.accountedTokens)} / {number(child.budget.maxTokens)} tokens · {child.usage?.steps ?? 0}/{child.budget.maxSteps} 轮
{child.summary ?? '先创建独立工作区,再开始子任务。'}
{child.result && {child.result.paths.length} 个原改动 · 当前检查已封存
}{child.status !== 'unprepared' &&
}{!group.evaluation && ['ready', 'paused', 'failed', 'awaiting_review'].includes(child.status) && !running && child.sessionStatus !== 'needs_review' &&
}
)}
父工程成果审查
{group.collection ? <>{group.collection.paths.length} 个路径已核对,原记录 {group.collection.sha256.slice(0, 16)}
{group.collection.conflicts.length > 0 && {group.collection.conflicts.map((conflict, i) => {conflict.path}{conflict.reason} )}
}> : 等待 {group.children.length} 个子任务完成实际修改与检查。重叠路径、来源变化或原证据失效会阻止合并。
}{group.merge?.changeSetId && }
diff --git a/src/client/types.ts b/src/client/types.ts
index c61a2a26..ba4df6c2 100644
--- a/src/client/types.ts
+++ b/src/client/types.ts
@@ -303,18 +303,25 @@ export interface EngineJob {
export interface ControlledEngineAvailability extends EngineAvailability {
controlledStatus: string; controlledSha256?: string; scope: string; bridgeSha256?: string;
controlledCapabilities?: { text: boolean; nativeSessionResume: boolean; nativeModelCredentials: boolean; cancellationUnit: string };
- strategy?: PurgePromptStrategy;
+ strategy?: PurgePromptStrategy | PurgeOriginalStrategy;
}
export interface PurgeSourceAvailability {
status: string; root: string | null; message: string; version?: string; sourceSha256?: string;
defaultEnabled: boolean; defaultPrompt: string; supportedVersions: string[];
inputs?: { relative: string; path: string; bytes: number; sha256: string }[];
+ kind?: 'purge-prompt-experiment' | 'purge-original-restricted-v1'; runtimeSha256?: string; runtimeInputs?: number;
}
export interface PurgePromptStrategy {
kind: 'purge-prompt-experiment'; enabled: true; sha256: string; prompt: string; promptSha256: string;
source: { root: string; version: string; sourceSha256: string };
section: { name: string; order: number; interpolate: false; text: string; textSha256: string };
}
+export interface PurgeOriginalStrategy {
+ kind: 'purge-original-restricted-v1'; enabled: true; sha256: string; prompt: string; promptSha256: string;
+ source: { root: string; version: string; sourceSha256: string };
+ runtime: { root: string; sha256: string; inputs: { path: string; sha256: string }[]; nativeAddons: { path: string; sha256: string }[] };
+ originalConfig: { autoRetry: false; autoContinue: false; hooksDenyBypass: false; postPrompt: string };
+}
export interface EngineRunView {
id: string; projectId: string; sessionId: string; taskId: string; runId: string; workerId: string; collaborationId: string;
installation: ControlledEngineAvailability; sdkSessionId: string; status: string; requiresVerification: boolean; verified: boolean;
diff --git a/src/core/engines/controlled-session.mjs b/src/core/engines/controlled-session.mjs
index bd761279..f00668a2 100644
--- a/src/core/engines/controlled-session.mjs
+++ b/src/core/engines/controlled-session.mjs
@@ -9,7 +9,8 @@ import { isId } from '../../shared/contracts/execution.mjs';
import { readOwnedProcessTree } from '../owned-process-tree.mjs';
import { CONTROLLED_BRIDGE_PLUGIN } from './controlled-plugin.mjs';
import { assertControlledInstallation, controlledDigest, controlledPatch, controlledToolCatalogue, CONTROLLED_ENGINE_SCOPE } from './controlled-installation.mjs';
-import { assertPurgeStrategy } from './purge-strategy.mjs';
+import { assertPurgeStrategy, PURGE_PROMPT_KIND, ORIGINAL_PURGE_KIND } from './purge-strategy.mjs';
+import { OriginalPurgeRuntime } from './original-purge-runtime.mjs';
const allowedEnvironment = /^(path|pathext|systemroot|systemdrive|windir|comspec|temp|tmp|userprofile|appdata|localappdata|programfiles(?:\(x86\))?|homedrive|homepath)$/i;
const at = () => new Date().toISOString();
@@ -51,7 +52,7 @@ export class ControlledDeepSeekSession extends DeepSeekAdapter {
const pluginConfig = { owner: this.owner, sdkSessionId, tools: catalogue, catalogueSha256, nonce, marker,
llmModule: this.installation.llmModule, endpoint: 'http://127.0.0.1:' + this.guard.address().port,
maximumFrameBytes: this.maximumFrameBytes, model: config.model, maxOutputTokens: config.maxOutputTokens, contextLimit: config.contextLimit,
- ...(strategy ? { promptExperiment: { sha256: strategy.sha256, section: strategy.section } } : {}) };
+ ...(strategy?.kind===PURGE_PROMPT_KIND ? { promptExperiment: { sha256: strategy.sha256, section: strategy.section } } : {}) };
fs.writeFileSync(plugin, CONTROLLED_BRIDGE_PLUGIN, { flag: 'wx' }); fs.writeFileSync(patch, JSON.stringify(controlledPatch(plugin, pluginConfig)), { flag: 'wx' });
this.report.launchInputs = { plugin: engineFileIdentity(plugin), patch: engineFileIdentity(patch), cwd: fs.realpathSync.native(cwd),
disabledPlugins: this.installation.disabledPlugins, catalogue, catalogueSha256 };
@@ -59,8 +60,12 @@ export class ControlledDeepSeekSession extends DeepSeekAdapter {
for (const name of Object.keys(process.env)) if (allowedEnvironment.test(name)) env[name] = process.env[name];
Object.assign(env, { DSH_HOME: home, DSH_AGENTS_HOME: agents, DSH_TELEMETRY_DISABLED: 'true' });
signal?.throwIfAborted(); assertControlledInstallation(this.installation);
- this.client = this.clientFactory({ executable: this.installation.node.path,
- args: [this.installation.entry, '--profile', this.installation.profile, '--patch', patch], cwd, env },
+ let launch={executable:this.installation.node.path,args:[this.installation.entry,'--profile',this.installation.profile,'--patch',patch],cwd,env};
+ if(strategy?.kind===ORIGINAL_PURGE_KIND){
+ this.originalPurge=new OriginalPurgeRuntime(strategy,directory);this.report.originalPurge=this.originalPurge.report;
+ launch=await this.originalPurge.prepare(launch,this.installation);this.report.launchInputs.patch=engineFileIdentity(patch);
+ }
+ this.client = this.clientFactory(launch,
{ timeoutMs: this.timeoutMs, maximumFrameBytes: this.maximumFrameBytes, cancellationMethod: null });
this.report.process = { pid: this.client.pid, connectionId: this.client.id, startedAt: this.client.startedAt, ownership: 'one-process-per-engine-run' };
onState('starting', this.report.process);
@@ -95,7 +100,8 @@ export class ControlledDeepSeekSession extends DeepSeekAdapter {
if (controlledDigest(ready.owner) !== controlledDigest(this.owner) || ready.sdkSessionId !== sdkSessionId
|| ready.catalogueSha256 !== catalogueSha256 || controlledDigest(ready.catalogue) !== catalogueSha256
|| JSON.stringify(ready.providers) !== JSON.stringify(['agent-workbench'])
- || (ready.promptExperimentSha256 ?? null) !== (strategy?.sha256 ?? null)) throw engineError('启动后工具、模型、实验提示或Run目录不符合封存契约。');
+ || (ready.promptExperimentSha256 ?? null) !== (strategy?.kind===PURGE_PROMPT_KIND?strategy.sha256:null)) throw engineError('启动后工具、模型、实验提示或Run目录不符合封存契约。');
+ this.originalPurge?.verify({ready:true,pid:this.client.pid});
this.verifyLaunch(); onState('initializing', { readiness: ready });
const initialized = await this.request('initialize', { cwd, provider: 'agent-workbench', model: config.model, maxTokens: config.maxOutputTokens });
if (controlledDigest(initialized.serverInfo) !== controlledDigest(this.installation.serverInfo)) throw engineError('受控SDK返回身份不符合固定发行。');
@@ -109,6 +115,7 @@ export class ControlledDeepSeekSession extends DeepSeekAdapter {
for (const input of [this.report.launchInputs.plugin, this.report.launchInputs.patch]) {
if (engineFileIdentity(input.path).sha256 !== input.sha256) throw engineError('所属叠加插件或启动输入发生变化。');
}
+ this.originalPurge?.verify();
}
async captureTree(publish = true) {
const info = this.report.process, tree = await this.processTreeReader(info);
@@ -211,6 +218,7 @@ export class ControlledDeepSeekSession extends DeepSeekAdapter {
}
if (this.guard) { this.guard.closeAllConnections(); await new Promise(resolve => this.guard.close(resolve)); }
await Promise.allSettled([...this.pending]);
+ if(this.originalPurge){try{this.originalPurge.verify();}catch(error){failure??=error;}finally{await this.originalPurge.close();}}
if (!interrupted && this.report.launchInputs) { try { this.verifyLaunch(); } catch (error) { failure ??= error; } }
if (!interrupted && this.report.cleanup?.exit?.code !== 0) failure ??= engineError('所属引擎未正常退出。');
this.report.finishedAt = at(); this.report.status = this.client && (!this.report.cleanup?.rootExited || !this.report.cleanup?.treeConfirmed)
diff --git a/src/core/engines/engine-runner.mjs b/src/core/engines/engine-runner.mjs
index fca5b625..2cc3b3fe 100644
--- a/src/core/engines/engine-runner.mjs
+++ b/src/core/engines/engine-runner.mjs
@@ -32,7 +32,7 @@ export class EngineRunner {
if (installation.controlledStatus !== 'available' || installation.controlledSha256 !== input.controlledSha256) {
throw engineError('受控引擎与刚才检测的程序/插件身份不一致,请重新检测后制定新计划。');
}
- return { ...installation, ...(input.strategy === undefined ? {} : { strategy: selectPurgeStrategy(input.strategy, this.appDirectory) }) };
+ return { ...installation, ...(input.strategy === undefined ? {} : { strategy: selectPurgeStrategy(input.strategy, this.appDirectory, installation) }) };
}
assertCurrent(session, run) {
const driver = this.drivers.get(run.id);
diff --git a/src/core/engines/original-purge-lock.json b/src/core/engines/original-purge-lock.json
new file mode 100644
index 00000000..832192aa
--- /dev/null
+++ b/src/core/engines/original-purge-lock.json
@@ -0,0 +1,2308 @@
+{
+ "schemaVersion": 1,
+ "purgeVersion": "1.1.78",
+ "harnessVersion": "0.2.1-rc.2",
+ "provenance": {
+ "manifestSha256": "acabdce397139dcd59cbe7f66229a1353d4f95a5ceb7a555977e544b17ea1066",
+ "sourceCommit": "7b4f7ee5d645e7bfa26c618d26746c46f5a2356b",
+ "scope": "Observed JS/JSON plus resolution metadata and explicit native require-builtin input.",
+ "nativePeEvidenceIds": [
+ "ev_4a114ba373a5039c34e7fcdad6b9202b42d00f16cd4ae6d80304feb4d93cc19c",
+ "ev_b9670d77723678e6c17415368494a06583872fe1e41bd739d795c0c6a20ddca2"
+ ]
+ },
+ "original": [
+ {
+ "relative": "lib/asset-table.js",
+ "bytes": 16684,
+ "sha256": "c231906a4911279ecb2e3677fe7a6c5fc2e94a921b554a0bc6d5f5c3a7608440"
+ },
+ {
+ "relative": "lib/capability-protocol.js",
+ "bytes": 3268,
+ "sha256": "49a7c72d99b41128d50a105af7d7c4138654f2e9a4513a62fd535e1653dda2b7"
+ },
+ {
+ "relative": "lib/child-process-hide.mjs",
+ "bytes": 3010,
+ "sha256": "d22546fd288373c529376835acb5dd2d54c96261c7a9c7f42f6ca44251668088"
+ },
+ {
+ "relative": "lib/continue-retry.js",
+ "bytes": 11758,
+ "sha256": "b4710fb4eb9990801756e5396f447f9da227177db78d3fff4880509d527be6d0"
+ },
+ {
+ "relative": "lib/core.js",
+ "bytes": 342481,
+ "sha256": "752e3a0cb6f82071e912e8ee5d119027ca8cf4e51889b97a0e70353abffc9870"
+ },
+ {
+ "relative": "lib/default-prompt-inject.en.md",
+ "bytes": 29427,
+ "sha256": "1dd2fc61e09b5e10676001324fcf7961f165b3e7b3c3c5bcb9ef9de48977e983"
+ },
+ {
+ "relative": "lib/default-prompt-inject.md.bak",
+ "bytes": 24455,
+ "sha256": "fa2f43cbaefb801257d8af9dc929f9ac50d7acf812d6f1cccf8738c3617ae668"
+ },
+ {
+ "relative": "lib/default-prompt-inject.zh.md",
+ "bytes": 25727,
+ "sha256": "5bb958ea89006198f6cca1cc5d24387fb7457036e22593a067ce947390957bdc"
+ },
+ {
+ "relative": "lib/desktop.js",
+ "bytes": 72311,
+ "sha256": "106a5c195347f6ad5169838d3120ccd0af372b1b081c6cf37bd8eff7a0f8311f"
+ },
+ {
+ "relative": "lib/drill-grant.js",
+ "bytes": 1740,
+ "sha256": "fa908869d923fa404845a239bc3d313e0ab56dce54aefa729bc0658a3d709efc"
+ },
+ {
+ "relative": "lib/extract-asar.js",
+ "bytes": 16091,
+ "sha256": "95e7d38cd71d420676ac1327c71e85b350a69147d27c5b230c3770c75f2a7c9b"
+ },
+ {
+ "relative": "lib/hide-console.js",
+ "bytes": 11804,
+ "sha256": "93509f224c9884fa4483bbd47940fc18bb84060a7760315d1f64248ebb1d66f9"
+ },
+ {
+ "relative": "lib/hooks-deny.js",
+ "bytes": 8054,
+ "sha256": "77b3bf38048df223b5f8ca7625b92bf9e229bbb6fc8672bbb407d273b8e2474e"
+ },
+ {
+ "relative": "lib/host-clean.js",
+ "bytes": 1043,
+ "sha256": "3974977c015ec7ef198b530321deccea7407300f455fb0e46f17e7e587ca5ad4"
+ },
+ {
+ "relative": "lib/host.js",
+ "bytes": 652,
+ "sha256": "954009fc82fceef7f2e55743b873055681991906192a7d02ef7c355f6edf5d62"
+ },
+ {
+ "relative": "lib/identity.js",
+ "bytes": 41793,
+ "sha256": "df0302ad7bfe01eaa83bd12d88d299c594ac8877ff16a891610d37f2a8be0902"
+ },
+ {
+ "relative": "lib/index.js",
+ "bytes": 108136,
+ "sha256": "1b6605ec4d0961755b6ba834e8f63f70adeefca44cef9deaa070bbe3b7b8f91d"
+ },
+ {
+ "relative": "lib/mnemon-settings.js",
+ "bytes": 1661,
+ "sha256": "b49cfa6bbe26477ab520a1d1af3b146123bc72c50d4a9810a7fd3227bc46dd88"
+ },
+ {
+ "relative": "lib/net-scope.js",
+ "bytes": 32199,
+ "sha256": "328a08ede7b68dee20eac1cb4ddc27f04aa61eacfadb64624d2f70f0d8f05d77"
+ },
+ {
+ "relative": "lib/official-update.js",
+ "bytes": 1832,
+ "sha256": "b044b2bd748026e6e6b6154313b9f5161e064b3286bc50a768b5543f409626f9"
+ },
+ {
+ "relative": "lib/official-update.wscript",
+ "bytes": 4815,
+ "sha256": "8bc8a555de6cc95e9e7d66d819a908236749639cca0a8764d5527f00951662e1"
+ },
+ {
+ "relative": "lib/phase1-keep.js",
+ "bytes": 904,
+ "sha256": "ed5beaf3339ec1e33765aa2b2bbd2d40c0b30c90476621e593b0e79e7d1b5104"
+ },
+ {
+ "relative": "lib/preset-default.js",
+ "bytes": 6056,
+ "sha256": "f94ecda0b15a69d48cda44c963f3a2421e7d5b84f8abb1033e08635f10e2062a"
+ },
+ {
+ "relative": "lib/reapply-cli.js",
+ "bytes": 177,
+ "sha256": "828722e85b4eab6a604fee6dfca88083e0e2f70725b42f101e83dc56d755ffad"
+ },
+ {
+ "relative": "lib/reapply.js",
+ "bytes": 13653,
+ "sha256": "1cb05a4cde3d2021843d163709a632a50ffb9498a27b5b83b5d46c7977adc888"
+ },
+ {
+ "relative": "lib/redteam/client.js",
+ "bytes": 277332,
+ "sha256": "ef0fda65f8ab522c809aff892824def95b93ec8a726b94c55fa88bde68874641"
+ },
+ {
+ "relative": "lib/redteam/evidence-ledger.mjs",
+ "bytes": 19026,
+ "sha256": "cb5a1723b40e3c960a37f65680074a6b405d22110e2435ddf6fba691350fa680"
+ },
+ {
+ "relative": "lib/redteam/index.js",
+ "bytes": 24345,
+ "sha256": "d44e135a0e524b9b86a48d3e55d2934beb3c4b81a5266d224c02f1c16b768091"
+ },
+ {
+ "relative": "lib/redteam/ip-utils.js",
+ "bytes": 6151,
+ "sha256": "53ce639f4e184c531adb395bcb79a22b4591ca476bdbc8e7bc8a716ede5df72d"
+ },
+ {
+ "relative": "lib/redteam/platform-config.js",
+ "bytes": 22339,
+ "sha256": "9e15a6f8d3084a53c7c10194e570a910bf5a459dc46482f32417d713f1cc3814"
+ },
+ {
+ "relative": "lib/redteam/preset-composition.js",
+ "bytes": 16861,
+ "sha256": "f5a2ff3a3cdf9a642515deb13f10bfaf100abdde7cffbb89183538dab6ef5bae"
+ },
+ {
+ "relative": "lib/redteam/report-replay.js",
+ "bytes": 10490,
+ "sha256": "bc585edab2adb5f12354da84719aff3444f82a8385b5e7a517cd47abe6d0ff73"
+ },
+ {
+ "relative": "lib/redteam/role-section.js",
+ "bytes": 6010,
+ "sha256": "5f158bc045881ea92e18191d8201451120f4a2609944afcd0af3f8e858fe9d60"
+ },
+ {
+ "relative": "lib/redteam/schema.js",
+ "bytes": 33554,
+ "sha256": "8780f7237e8623cc423731b7feed41c2c033ced7fe944494e7d2e4fe89cb1e61"
+ },
+ {
+ "relative": "lib/redteam/score-rules.js",
+ "bytes": 63287,
+ "sha256": "3a65660ecf5f4a24e2a98e03c39cba7490da91ca2e1067960fce3d31a5df9c91"
+ },
+ {
+ "relative": "lib/redteam/settings.js",
+ "bytes": 3305,
+ "sha256": "d4592b059304c45fe3c8362fe29826c665bd7c9309edc870628272215b477e87"
+ },
+ {
+ "relative": "lib/redteam/skill-availability.js",
+ "bytes": 17783,
+ "sha256": "934a575a09f460b642adbd44d3540ae6e752838dc7ce4cb937ee426fa398ccc0"
+ },
+ {
+ "relative": "lib/redteam/skill-fixes.js",
+ "bytes": 38363,
+ "sha256": "953a9de698d2517c0c377afd3f01fff4ac387ea948f0687a04cfb5f3100bc68f"
+ },
+ {
+ "relative": "lib/redteam/store-core.js",
+ "bytes": 340826,
+ "sha256": "a8979890b9122c5bbe12d579e761c085a8a7159dd5c9f39a63dcb7334d8b3323"
+ },
+ {
+ "relative": "lib/redteam/store.js",
+ "bytes": 2969,
+ "sha256": "fc1262b1c312a960f03c732954e4b831cf2718681319f15aa02b2ae5dc3aaf0f"
+ },
+ {
+ "relative": "lib/redteam/tools.js",
+ "bytes": 136501,
+ "sha256": "5000f5c8e733782c9cc849e968839f99b01ffc4856458a3f1bad7f5c34058932"
+ },
+ {
+ "relative": "lib/redteam/ui.js",
+ "bytes": 50785,
+ "sha256": "7c92c0cf9b1391dbb0b4b7a3c2ce8f72a6558154f16c5cc811ed2ef8bfd07fca"
+ },
+ {
+ "relative": "lib/redteam/validate.js",
+ "bytes": 3538,
+ "sha256": "c8818f5b8bcf0683c28b8fffc052ef9c989a5bfdd275db82e96f55b1ac8ecf29"
+ },
+ {
+ "relative": "lib/restart-desktop.js",
+ "bytes": 14602,
+ "sha256": "ac01cf7b2c34a72e846bfa8d1036fcce4ac004494fc9025190195348630cbab1"
+ },
+ {
+ "relative": "lib/restart-web.js",
+ "bytes": 2903,
+ "sha256": "0e946e723d87dcdc81d40e6e721b508229539a81ce8362925da096bb621348f1"
+ },
+ {
+ "relative": "lib/rewind.js",
+ "bytes": 20894,
+ "sha256": "f05b181ffd7aceb27043efc58d3bb69b2b2fa892a959801476d4023fadbac72f"
+ },
+ {
+ "relative": "lib/rules.js",
+ "bytes": 17682,
+ "sha256": "2dad38c6504aea63de269d57a89246990dc00b49f5e7ca58eed3e504ac9f887f"
+ },
+ {
+ "relative": "lib/settle-policy.js",
+ "bytes": 2024,
+ "sha256": "156b8ce93045c14a0fe3ee41f1f8f07a5c3637dc8faaecdc0747ba5b32029ea9"
+ },
+ {
+ "relative": "lib/skills.js",
+ "bytes": 28551,
+ "sha256": "5706679e858921f0d46ff9a2d9f9c38f8c8be7c0b56f37e57c5fa82b501e13f4"
+ },
+ {
+ "relative": "lib/surface.js",
+ "bytes": 3838,
+ "sha256": "c27259aa8deb2e3f576a1c8a065f3c13b3b4a9efc80a0509259fcdce6df2aed2"
+ },
+ {
+ "relative": "lib/table-key.js",
+ "bytes": 915,
+ "sha256": "cd7ab3512992f35f5bc08150da245f60bf4f11efbf83f3120583a8e7ef821cda"
+ },
+ {
+ "relative": "lib/table-read.js",
+ "bytes": 567,
+ "sha256": "b97cd96220253eadacb1f9164bf574287b3eda7b5d9c2fad41911993ade8bf8e"
+ },
+ {
+ "relative": "lib/uninstall-restart.js",
+ "bytes": 1653,
+ "sha256": "d5f9a4403849607f780488c0da934b3404c2ed4a44ef6d62c8ddfcd754aae487"
+ },
+ {
+ "relative": "lib/uninstall.js",
+ "bytes": 8632,
+ "sha256": "1860e6260d7a0922d16949559679aef5670eef77feb36b56237a33226acef6a9"
+ },
+ {
+ "relative": "lib/update.js",
+ "bytes": 39046,
+ "sha256": "188a74b146d214e580daaafb2c2e89ff9f199c94224575e3bf44e100c1cd9337"
+ },
+ {
+ "relative": "lib/web.js",
+ "bytes": 3385,
+ "sha256": "e715a801eb98b176e5e455bada74cb540cee99959ee015dd5ae4155a2070b02c"
+ },
+ {
+ "relative": "lib/zip-extract.js",
+ "bytes": 5699,
+ "sha256": "bd0f4edf2a851f6522373d3df731d2521606a02ff2a39cbc0bbc53b4bd8481ac"
+ },
+ {
+ "relative": "LICENSE",
+ "bytes": 11341,
+ "sha256": "b45f2c5ef6ed471d1dcdf63c10e432d856c8867be2828aece1b383bbece7662a"
+ },
+ {
+ "relative": "NOTICE",
+ "bytes": 210,
+ "sha256": "ad63c4be7b12bdc1a43b05d49a831933671be7f2a6f723a6c079e8653a8ac54f"
+ },
+ {
+ "relative": "package.json",
+ "bytes": 2623,
+ "sha256": "c185af0cace16465becbb018d3bf2c2f3cfddd5133e36161b2798bddedf6cab1"
+ }
+ ],
+ "harness": [
+ {
+ "relative": "apps/cli/lib/bin.js",
+ "bytes": 11772,
+ "sha256": "80112efe368efb1a39720c7ada0af00442e5131fb2744edaaff8a3e8bb499e6f"
+ },
+ {
+ "relative": "apps/cli/lib/profile-boot-C14i-8IN.js",
+ "bytes": 13838,
+ "sha256": "32d6345d7457e7c19c18bad07a85856e7ef7c560d52a1da042d68981ee127b4d"
+ },
+ {
+ "relative": "apps/cli/lib/profile-boot.js",
+ "bytes": 310,
+ "sha256": "30dc487766b018f20a2f54a646b2ea49974704d8b4eca2ec5a87cc0e88e79087"
+ },
+ {
+ "relative": "apps/cli/package.json",
+ "bytes": 8138,
+ "sha256": "d42efe9f3ff424f602f11598af8805ad25039953ebbbd3c163d67875f7e8658b"
+ },
+ {
+ "relative": "native/system/package.json",
+ "bytes": 1500,
+ "sha256": "e9e1f9149b538b25c90b8a296bf57f92823ca7fa0f7b91aa45037650aa03e84c"
+ },
+ {
+ "relative": "native/system/packages/entry/lib/flock.js",
+ "bytes": 2263,
+ "sha256": "e42af00c298d56322c073bf7cc66485096028318ab645a2e69dc2aa7481ba646"
+ },
+ {
+ "relative": "native/system/packages/entry/lib/index.js",
+ "bytes": 5132,
+ "sha256": "a0f04e2990b6fff091d6776c41e56dac8c630a37b944632e743fa8f2ee9c4813"
+ },
+ {
+ "relative": "native/system/packages/entry/package.json",
+ "bytes": 1247,
+ "sha256": "d7d004595b5d66bdb7c75d4e7afc6ce7e25eebd0143ff7aaed7cf52b892ca156"
+ },
+ {
+ "relative": "node_modules/.pnpm/@koromix+koffi-win32-x64@3.1.1/node_modules/@koromix/koffi-win32-x64/index.js",
+ "bytes": 206,
+ "sha256": "632ab5a01dfc1b519b06275f490d6790100a2f8d71d8f56957091d0fcc5b3e0b"
+ },
+ {
+ "relative": "node_modules/.pnpm/@koromix+koffi-win32-x64@3.1.1/node_modules/@koromix/koffi-win32-x64/package.json",
+ "bytes": 644,
+ "sha256": "b38fcff8641d493656ef4153a37fd7389806ae621bb916aca536fd3bbc158690"
+ },
+ {
+ "relative": "node_modules/.pnpm/@koromix+koffi-win32-x64@3.1.1/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node",
+ "bytes": 1042944,
+ "sha256": "eb0587c804bb76262968bf83028528da4dc2d4322f558845cce205c709e2ba20"
+ },
+ {
+ "relative": "node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/handler.js",
+ "bytes": 24768,
+ "sha256": "dbc95cbb1f149acf9155fc605a5a6aeeecf354aeff7606192378d71778126450"
+ },
+ {
+ "relative": "node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.js",
+ "bytes": 29452,
+ "sha256": "4d1669ff207e874eb6185b8a4f04c1e694120b9eaf6723ddea1be7ce5583b164"
+ },
+ {
+ "relative": "node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/package.json",
+ "bytes": 1346,
+ "sha256": "cb75ae8c3a8ac02e09efc5886a75a87256474ac8349ceea731ec389c03a70d96"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js",
+ "bytes": 711,
+ "sha256": "3b1110c896b70704627d415e6658953a5a6f099e0b141311c73dfb06e55bdbcc"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js",
+ "bytes": 3134,
+ "sha256": "a86c43174d904198b92ece266e97b6b711e640f3b89ac45291b682a753e145e4"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js",
+ "bytes": 87647,
+ "sha256": "751c19479dac3e3f415fbbd709df90d25c595034f699dba7bef6eeab4dc1304b"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js",
+ "bytes": 1089,
+ "sha256": "98ac5e1b63894792fa7740e5fb2b79ef8c016d94fc41e55bb6ff85fff3346e72"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js",
+ "bytes": 20812,
+ "sha256": "c1a58d89555b8c0cef5c3da9b173c998ce1faf43fe2cdcb331c0fd2c3a455c38"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js",
+ "bytes": 10237,
+ "sha256": "29fc1d0311f16f33fd0df2d8589c93b0a7e37fb89afd852672ba3b7083fa1515"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js",
+ "bytes": 2735,
+ "sha256": "eaa0c4bd9f4d51259c9107e65173f7de37a5413cbd5de39a5795d83d3c7deb3f"
+ },
+ {
+ "relative": "node_modules/.pnpm/commander@15.0.0/node_modules/commander/package.json",
+ "bytes": 1634,
+ "sha256": "6ea3e19871a9a05fa0c8b89595b6df05d23d266936b9785607128fd420864337"
+ },
+ {
+ "relative": "node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/dist/index.js",
+ "bytes": 7814,
+ "sha256": "175b7018e9c897f927c3788e53d90ea8717587c6e4f2d922c187c6a6f6683894"
+ },
+ {
+ "relative": "node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/dist/stream.js",
+ "bytes": 825,
+ "sha256": "05559acf7e512e413080ce1df97b51bbf875e67ec3068ca7df08a6da617b3013"
+ },
+ {
+ "relative": "node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/package.json",
+ "bytes": 2734,
+ "sha256": "dc49a3ed4248062335c63998cc4c2bc5e6cb7f2411d1c1a6dadb35d029f7e8bb"
+ },
+ {
+ "relative": "node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/dist/js-yaml.mjs",
+ "bytes": 104118,
+ "sha256": "cea276c7e15f409a1adbe5d177aba7824398a474f7cf702bd57962c7d570636f"
+ },
+ {
+ "relative": "node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/package.json",
+ "bytes": 2281,
+ "sha256": "3eeb05aa0ceb4c3686e44c9b5d9b88f914b099ba9a7426b36947e65c6373d9a5"
+ },
+ {
+ "relative": "node_modules/.pnpm/koffi@3.1.1/node_modules/koffi/index.js",
+ "bytes": 85,
+ "sha256": "34508972d2e18b79fd4a289943568a68bbaf18badd2e82a25c8deb1af27f6225"
+ },
+ {
+ "relative": "node_modules/.pnpm/koffi@3.1.1/node_modules/koffi/package.json",
+ "bytes": 2067,
+ "sha256": "c0473aeaf572a612e643489f49ac8e6d1fe26092cf69802567332dc57fdca4c1"
+ },
+ {
+ "relative": "node_modules/.pnpm/koffi@3.1.1/node_modules/koffi/src/koffi/index.js",
+ "bytes": 9147,
+ "sha256": "9c5a1590ca8ee32166477477b2639a55e91273674fa6d86da259d383918cd087"
+ },
+ {
+ "relative": "node_modules/.pnpm/koffi@3.1.1/node_modules/koffi/src/koffi/src/static.js",
+ "bytes": 2830,
+ "sha256": "3f2b291e2129181c2984e6508b51efa5be30775afbdbafe6c0f4ed076d80d9d1"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-native-custom-loader@0.1.9/node_modules/node-addon-native-custom-loader/lib/index.js",
+ "bytes": 25080,
+ "sha256": "6d83f4e5426895d40820acf507146226a893c5aefba00a08bf0884446160049e"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-native-custom-loader@0.1.9/node_modules/node-addon-native-custom-loader/package.json",
+ "bytes": 840,
+ "sha256": "a8ae0ae29211fc65fb482502081f70bae242404f042ddf1091b439471cffae3e"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc/index.js",
+ "bytes": 127,
+ "sha256": "1ca7929a06a837121c8dcc6e485a3ac9becfdaf2f3ded95e088d1df54019608a"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc/package.json",
+ "bytes": 707,
+ "sha256": "df0ed8b80ac7e2144e0c97e1ad0ad9f9dfc9c055e4a87589c8b3fba5700212b5"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc/prebuilds.json",
+ "bytes": 222,
+ "sha256": "4c5f1a36419166c251bc315fda44c59bfe2101bab6c83ec735c1bfd714e1abfd"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc/prebuilt/win32-x64-msvc-napi-v9.node",
+ "bytes": 343552,
+ "sha256": "ead441d11202126827a789a7eb88e79abe8f7f374b16e7273c4244225c8d6c2b"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin@0.1.9/node_modules/node-addon-require-builtin/lib/index.js",
+ "bytes": 872,
+ "sha256": "73966bb0f824b021f77b03f02e00905a532554aad3c6c5a14c2a743aeb4a34a9"
+ },
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin@0.1.9/node_modules/node-addon-require-builtin/package.json",
+ "bytes": 1459,
+ "sha256": "036dc18faadcc51da0b3704d1d5308a85850077133e4a86281af906eb5e3aad5"
+ },
+ {
+ "relative": "node_modules/.pnpm/p-limit@7.3.3/node_modules/p-limit/index.js",
+ "bytes": 3868,
+ "sha256": "edde12a4a4dbdbe8d27161cdd0853db0bab435d5dc6c15f9f4dedc27ee9bca60"
+ },
+ {
+ "relative": "node_modules/.pnpm/p-limit@7.3.3/node_modules/p-limit/package.json",
+ "bytes": 1055,
+ "sha256": "daa6b0d168d7197eccbfef1c678e8f00b79d063129bf48f4ee2db38dc605ca7f"
+ },
+ {
+ "relative": "node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/index.js",
+ "bytes": 9836,
+ "sha256": "5d63e994b19e0a5cf9a67c46ea79ebc0cee6e97d9d3a27126491af4c6d2595a0"
+ },
+ {
+ "relative": "node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/package.json",
+ "bytes": 1551,
+ "sha256": "bcc68cb9451453112573ff815f507f769611c3066722c16cc5c04852d9953661"
+ },
+ {
+ "relative": "node_modules/.pnpm/resolve.exports@2.0.3/node_modules/resolve.exports/dist/index.mjs",
+ "bytes": 1871,
+ "sha256": "135dc09ed3aa96c319d63875d6d1bafe74ae1ae7a9aa83b95959cec763ab4d8e"
+ },
+ {
+ "relative": "node_modules/.pnpm/resolve.exports@2.0.3/node_modules/resolve.exports/package.json",
+ "bytes": 1067,
+ "sha256": "0c7d5fe8e3174d4abb8f9f68e550837daef90b129e96b3bb41d486ef3b456895"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js",
+ "bytes": 3631,
+ "sha256": "054202956430d63d5ff4599fae09760ce465b489e4f0b5ef5ce7cc7ac21157ac"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js",
+ "bytes": 15647,
+ "sha256": "a6544485aa8575aa9854c67e2caa67726815de18a482d0ceb8a1003244de3bc1"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js",
+ "bytes": 9891,
+ "sha256": "813b2c185512d30c9b931c2fed8140889d9d7490ceeeedc370da30337dc8ca57"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js",
+ "bytes": 205,
+ "sha256": "4eadb0892844cf3ae295121a86163a66c73f89acd1b7f0b114ec115b4539512f"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js",
+ "bytes": 961,
+ "sha256": "a63d74e87b73788e78e9ce0a4892b5333d6b809c0de88b31e4ed76cbf17f94b3"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js",
+ "bytes": 2004,
+ "sha256": "28a251c5ab210ddf9e97551b9f37a53329fcce91f0c3943dcbc02de1a1de915a"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js",
+ "bytes": 281,
+ "sha256": "5ab651d5b40af289bd85c645a92b6d8cfe1a986dc413c797cfcc8d623d7c844c"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js",
+ "bytes": 132,
+ "sha256": "07b6a3a1db0a5210ceb784c1708bd4679f3a94fc73a9c9eb349349e7070a6f78"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js",
+ "bytes": 170,
+ "sha256": "d404b5aa48aaddc8a654c5da8fb7d4443404b7948589b21ac4b045d1cee4e34c"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js",
+ "bytes": 1423,
+ "sha256": "7a11fd39b987cdf06c65e928cb1aca49bec583feb86fb5c8fe47a6fd61d7de31"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js",
+ "bytes": 126,
+ "sha256": "b6e30a7168e52723216fc163d300e2bbabf92ec0251f9ac5438bb6ccf57c8936"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js",
+ "bytes": 124,
+ "sha256": "135523704aa48cd98834dd170ee9f74f0e68043b379f32d021db11e6304c5c93"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js",
+ "bytes": 127,
+ "sha256": "991c5bbe48ecb210a562646872f05862ad9fc0d42186d85aa60bdc6fa323eb9d"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js",
+ "bytes": 478,
+ "sha256": "952069fc8690b7d3af0fe9d55f7c54fe2ac067b48c5e74f6a54f9ce19a334493"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js",
+ "bytes": 124,
+ "sha256": "1c897a9bc849320e2e9dc0f6c09555c01ee3ddf30734515d717b88ad7740ea25"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js",
+ "bytes": 127,
+ "sha256": "3a8d0b1d00423f60cc7cb810b36ab77b61330831ad237dbe73eb5cecfa412800"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js",
+ "bytes": 136,
+ "sha256": "5c678480d882f511200fed2c16ec3847dfedb08a1d70328dc2f031d35d825276"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js",
+ "bytes": 136,
+ "sha256": "1b051794f1713adec2a236517196691687c35f82e0b596ff3316a78b3cc10ae6"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js",
+ "bytes": 128,
+ "sha256": "a662883751918822c162183b46b9e20d09489132f82686c92ab78bee67f3a127"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js",
+ "bytes": 331,
+ "sha256": "29a69e15b6d02fe381d573f861881a89590e9d0f0f0ca740c5f85eaf0234c4ad"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js",
+ "bytes": 136,
+ "sha256": "f02d3c1b059fe3d96ce124886f7eef321d381a95638fd3c4a8d5ccd8e76ffadd"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js",
+ "bytes": 234,
+ "sha256": "baedbf503d5610ad041bfb56071efa48feb331ca278295c399537d35d3ffb593"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js",
+ "bytes": 132,
+ "sha256": "84fa5e88adf08d15c993cac8cdec6d1a65045b7e95a9c55184230a7f807f4dc0"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js",
+ "bytes": 163,
+ "sha256": "6ec659ce3b6c2b173c719286caab04409adba046c0917874ec3b5e36ddfbc7e3"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js",
+ "bytes": 247,
+ "sha256": "8cf5e122b757251671ed6c9d9680904b71cd375845853f05312e608cf2cc2946"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js",
+ "bytes": 161,
+ "sha256": "c2fe2d3ed0be8a4e9de8f02abdfd5d9c0d3bcc510d88e87af84185592882c4b8"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js",
+ "bytes": 1021,
+ "sha256": "e145833a250311927c92f424f56498c52f1b7bb1271ce6afbf006db87773ff43"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js",
+ "bytes": 176,
+ "sha256": "0de7ea736cb7807179d46dfac09c830a9338e02b6a07db12d7040cde2def6025"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js",
+ "bytes": 2691,
+ "sha256": "4b3e57d3d40e29e0706002eba113d09f35aea593578376bbeec83b777b9912ab"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js",
+ "bytes": 873,
+ "sha256": "38a112baf27ceca0260082ff26ac2fd7a9861cab1af12dd65e720277f68e6ce9"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js",
+ "bytes": 240,
+ "sha256": "8a9f420572260f3cf944463b5090d62a60f0730589dc23a7ec4ca25e2ee41bb3"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js",
+ "bytes": 525,
+ "sha256": "b4916b09dc7869ae0eb05e71c855c942a3a7365f7e6e89185d59a9e45a2451d7"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js",
+ "bytes": 802,
+ "sha256": "14d087c87da87b6f5c36fc4cdd7d2d14077874b14a68e20fce5b6138fa2ca34f"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js",
+ "bytes": 338,
+ "sha256": "fdf51d0de8d5442c35a997ef58cd530d239ce206f961d14c5121354451b01d01"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js",
+ "bytes": 8139,
+ "sha256": "5833262888e2b5d843a69193f83c05e374818dbe55379b497819b5bf58e48cd8"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/package.json",
+ "bytes": 1661,
+ "sha256": "7c94cb7f2a53c27b20d76386ec144c062894dbcc909cfabd0f728c37874b1776"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js",
+ "bytes": 231,
+ "sha256": "8fadad28e36d28e93d498ac7ac20badba2a407312845eabc18e82e90a0732b19"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js",
+ "bytes": 224,
+ "sha256": "fe87ac5d3020010ad3ec00636dadbf0c669ff07d0f57e0a8165a8264f79a676f"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js",
+ "bytes": 227,
+ "sha256": "e5186fcc03018acf9be6d968755d4c49727aeb0d981d179eb568ae5fbe983038"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js",
+ "bytes": 593,
+ "sha256": "e1a2c0d6144cc772cd20bbc8ecb9e8a3a4074e9172a3d8e794838b591cdeb416"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js",
+ "bytes": 591,
+ "sha256": "2681abf54098aa670f12826b76a6ec77a2441186ae4243afde3be8ae4908f7ca"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js",
+ "bytes": 1514,
+ "sha256": "fefba0a88c2bf74d5cede504b5ae50a8dc3edfd69cf0174a491e2cf3e442614b"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js",
+ "bytes": 2204,
+ "sha256": "3a2b0b23593d2f49419c06af2af75450cab103b0c25d665d48fe5bca495a21ca"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js",
+ "bytes": 1355,
+ "sha256": "7b78581c13322bc68ece2088685386b2a9b51c15b94d0a2063bdf2546bd41934"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js",
+ "bytes": 7478,
+ "sha256": "ceb9eb6ed5bfc6c7ac7af7f47e5c3535444a4e66a0e2b58cdad4bd02a35d454d"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js",
+ "bytes": 282,
+ "sha256": "6c5e966210cff270fa2850668aaf8460fac7759f8d99f282521ef7a78f4564e9"
+ },
+ {
+ "relative": "node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js",
+ "bytes": 326,
+ "sha256": "5ef6f995af801868925940cf8df5735d565ebabb090b068695cae65218bcd3ac"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js",
+ "bytes": 3613,
+ "sha256": "a7db11a1a7987d6412df8adbbb85ccd4370171f82265703b2b6af2d13c45d646"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js",
+ "bytes": 1615,
+ "sha256": "0f388537747b5c1a241639413f17fc2b5f831451b5017d6902e46db6842a5fe4"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js",
+ "bytes": 4269,
+ "sha256": "86562c85e4e5737d28b24aae2030b97bc9b672e1f2de5da9e4d25c4571e4345c"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js",
+ "bytes": 3446,
+ "sha256": "37920472755bdaa76399b6d33872f0015ae1fd9ba7faa031c03d501aa8c3e903"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js",
+ "bytes": 8692,
+ "sha256": "509c0bdb4cef641cc784c130b6cc2b350752f6841798daa1a13cbcaf4fc74c46"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js",
+ "bytes": 5071,
+ "sha256": "dcfada448c8fc532ebba96d6788a4b41bb015fc5e697a9544ff429b9c4e4c70a"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js",
+ "bytes": 7500,
+ "sha256": "af562e2e3cd7ee7b3cb9342984177f6b5c77de73121e87695db3ff635e12d152"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js",
+ "bytes": 1812,
+ "sha256": "18f54a39d73b600ebbd74a343e6671d0d08423f125bd86963b72dc24d6261911"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js",
+ "bytes": 1264,
+ "sha256": "532bf56299183e75bb7c20db75321367c28393b66ecb8ffd540faedd9817f116"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js",
+ "bytes": 8927,
+ "sha256": "242470b54c0deba1507babba2e879f3005ed2ee3bd53a36affb6ecf82fddd375"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js",
+ "bytes": 7386,
+ "sha256": "167fa296e6fb75618bb7b315acaa926d4e88b2b63a9ff139f1a7de9c78db4610"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js",
+ "bytes": 5579,
+ "sha256": "0b49c6af0145c309883dbf24d1a00260c0c090412be10aaa301de126dad15983"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js",
+ "bytes": 1081,
+ "sha256": "60182618fc9fa669e74ab74f4231c15b5d24bc52ab0a419684bb827a00d69be6"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js",
+ "bytes": 850,
+ "sha256": "460516395ef7e961d5248e047ee6d52084f279b76e8af9f3c2bac92da1c7d656"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js",
+ "bytes": 547,
+ "sha256": "c7c0c9837a1f828de19eb3ee0947dff39c4f69222c762aed9fa2fe14fc46ee3e"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js",
+ "bytes": 471,
+ "sha256": "0330dc34072cb499493176b293228631ca8ebaaaddcdc0e63b02bf24f6a25c2d"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js",
+ "bytes": 2386,
+ "sha256": "ea9a479b1e98d88235ffa6736d0405e2119e9dde7b5249b72185488ab2527261"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js",
+ "bytes": 1950,
+ "sha256": "7271668f41f264e4b9aeb184629cfd11c510b401c5a797fa7194d17a9652976e"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js",
+ "bytes": 3138,
+ "sha256": "a39d14026d4cc6ff8d76d90db30c41facc26a146ebed30783bcf28e40b5caa65"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js",
+ "bytes": 6237,
+ "sha256": "8f02c3c03571e377e33680b68027d4336234d7a6da3d8c6a8b7f1183c1c428ff"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js",
+ "bytes": 13114,
+ "sha256": "9bc1c9a56de3902d554e77193125b6aadcfaec743073b3417b22c95a8f7d7923"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js",
+ "bytes": 2118,
+ "sha256": "c389d9c448193ce1bcb9641f5eda62cbe56467b2104357d2fc8dd86df88cb07b"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js",
+ "bytes": 1769,
+ "sha256": "2d58984e0ae80de4acbd8f009fab332f5ce77d9e1a5f138a3058a0ada6567fb9"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js",
+ "bytes": 459,
+ "sha256": "f6ccc3593357801851aa1023b202f842733043ac3b25773048d836f89de8108d"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js",
+ "bytes": 2338,
+ "sha256": "e4977864d75c1fdbf7fc78c9f4329406e153deccfff090fd812dae2b27e6c2c2"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js",
+ "bytes": 3901,
+ "sha256": "80a8109b7cb1d0d73eee18463fdd3095d120fa21f49b282444d90d867e291ea1"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js",
+ "bytes": 5221,
+ "sha256": "e2d3ffdc9a997774602e72b296fba641558bc7355c9f12a3ee0502fb1e541306"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js",
+ "bytes": 1794,
+ "sha256": "1a7cb042ae725ff68d05dc503efbbecbe65281f18b23dfc23f12d1749a440cfe"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js",
+ "bytes": 1382,
+ "sha256": "b57b42071f7ebab633626858656ec5187617f2290c272e87edc57467ef591215"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js",
+ "bytes": 1232,
+ "sha256": "d5dad67916ba0e864a892da63265a062c45c15a191349ef50a540f2ddbae93e5"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js",
+ "bytes": 759,
+ "sha256": "616ac0f6a0a5a6565307a4bb4443691b0dd019c03d6bb8777353750bd3459487"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js",
+ "bytes": 1292,
+ "sha256": "34de93bb4e16abbf317210a7bd1b062ed20acb028cd8395b69b591f433e277b6"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js",
+ "bytes": 5105,
+ "sha256": "d140cfc5aa8d28737bd3c993d977d5a10ab81efe221e36708ac45b3cf18f5dce"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js",
+ "bytes": 3667,
+ "sha256": "9f89417f3cba5f22a4436f67a9ff9dce627344b5874d2ed7957ff9acffb030e4"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js",
+ "bytes": 9382,
+ "sha256": "2f72b634348b04b395408ac427fb4f8ee67432244c327561d4b755a28a783b34"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js",
+ "bytes": 1799,
+ "sha256": "4d14a7a286cff9c1a578ab15839388ea76f77ae79293db25b235394bcc377b51"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js",
+ "bytes": 3986,
+ "sha256": "525535fc05841407420be6505804c74d873eb3aaa9319679896f7a24a474ca01"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js",
+ "bytes": 3242,
+ "sha256": "acc25760d010068844f36f4aefc7fe6f5f6048fd7f8fcc29d4290e154819d1a4"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js",
+ "bytes": 24149,
+ "sha256": "cb30a2c4628e270ee810530217f3f7bb0f2730ab89f8fbaf1f8a73ccd1883cf5"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js",
+ "bytes": 1445,
+ "sha256": "ddfd11ca2cdd42d36bc6c3090a31c21e6bbcc90bf3498bf6aacfbb30c5d79436"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js",
+ "bytes": 35551,
+ "sha256": "0adc5ffa51ffa4c0ceed1f80efa8b188d10f58c7b9389a6d46bc861e6bff34e1"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js",
+ "bytes": 4187,
+ "sha256": "9b318ac7b3a3751127c74f59dd1dd209230a70ca116000348b82faae189f72f0"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js",
+ "bytes": 483,
+ "sha256": "769207eaa56e34c113da10cdc22da845f92b4080ff2b921a72847a38d3ac03d8"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js",
+ "bytes": 469,
+ "sha256": "f5d5f694ea3a42ef136e0fbcc674dfd7aa0a3da2b8d62183fb750166a12e52bb"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js",
+ "bytes": 484,
+ "sha256": "51fc0e8bfc63d1d9c7c66b0370a069bb33e0dad865080ff76802803597b9909a"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js",
+ "bytes": 457,
+ "sha256": "51d0b3aafab2ffa4ad9d86656a3b92c4b4824d0a8806423882ea5f92a1bf8d11"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js",
+ "bytes": 635,
+ "sha256": "9fa696b1efc38cf8c73a398f30d9f9841658aa5afd0b7a6b0822947c3991ba7a"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js",
+ "bytes": 1510,
+ "sha256": "139e3964f0e626ad3741500faf51d855ff98eafa2d9e7523cac06260e4515382"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js",
+ "bytes": 1407,
+ "sha256": "f0e474254f6877d5dd23bb57017980931ab333a7eaa3d33872247a80d11f754d"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js",
+ "bytes": 509,
+ "sha256": "481d7c64817b40090d519fb65bd83730dadd4c6baec1440b9bf85d29e52c046e"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js",
+ "bytes": 1900,
+ "sha256": "9efdd848455f6e0621feb13f3eb762453cb02b09d5e04b6501163cfb26af27ed"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js",
+ "bytes": 1547,
+ "sha256": "d3b1bc956a766e2489c36114366f3b3f89762a257ae05ff6271ee3fc8c2a9bf5"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js",
+ "bytes": 3239,
+ "sha256": "dba2f42d4dbe8cc8b13f662fd97d253da2da5567e71c47115305efede5a888f2"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js",
+ "bytes": 2800,
+ "sha256": "15d7b0b8516c8190b191ec9a0adaab16808d09751ef534d7829512944072011f"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js",
+ "bytes": 841,
+ "sha256": "80a0046224dac3437f22e3b27b0180e1aad82277ab2fee4769094c6d12d67b6f"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js",
+ "bytes": 1626,
+ "sha256": "a90c44db83152e4d902d46f667737dac90aa86b401abdefe89371ac3bd03abfe"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js",
+ "bytes": 2232,
+ "sha256": "5ff72b08fecc3a924d4a76658a304859db5edb4fadf8893ee837aa06bba60a52"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js",
+ "bytes": 2616,
+ "sha256": "9c85b5e026e4369a96f3f7b5bc6c05da102dfa2968950b17986201cfe0be542c"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js",
+ "bytes": 2581,
+ "sha256": "3174270cd59c0f0e3ffd73b3b44c4de679efd5c681325b7aac8e0935d547bee8"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js",
+ "bytes": 2854,
+ "sha256": "46ba76da72ad65a6202358c486c6a3084ab7c48a8eb5be60d241d9e198c5a9b5"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js",
+ "bytes": 912,
+ "sha256": "a7320808484dc6d04817b33b2d09b65ead7ffc1c672ab54e068a80972b17702e"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js",
+ "bytes": 3114,
+ "sha256": "e4553b0cbde79090884908f44bb3b4afd04935fc23656a1b87ec1af87f24427a"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js",
+ "bytes": 3775,
+ "sha256": "b157c946dc1b8854aadc4e7994b268ec8afe6d916721cb3580e0752c7d15a5f7"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js",
+ "bytes": 4885,
+ "sha256": "7819679e80222b80c564ea4a9cf3145fa4d5e28a6cfbac248283ac55b0249761"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js",
+ "bytes": 4534,
+ "sha256": "38efb5bc5553e98fee58c825a88131c59184368d8689e3e6f43c652a06e9c167"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js",
+ "bytes": 5718,
+ "sha256": "b55fd3b6e3f1346bbcd1fcdc48a59c089b7a4b0e6fac2b46846f7828f9488600"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js",
+ "bytes": 801,
+ "sha256": "490bff57104b7cfdb1893f14528610bb4d0a63c29b314e122233cf308cf96662"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js",
+ "bytes": 3104,
+ "sha256": "dd5ba1813a16b62955c466bce8d1c16254e90b36d688f863c508dc8fe38f2afe"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js",
+ "bytes": 808,
+ "sha256": "26a1980d34a21a80704d356d475a0187a24ebcbeb37a2e3b149d4d791bb65598"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js",
+ "bytes": 5470,
+ "sha256": "bc03ae533d85bf9122e87c0a256c841ae7fbf063499bc3034d49fd9f7b200659"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js",
+ "bytes": 13345,
+ "sha256": "4113b71a9c4c087a197f71452794a6acb9929111f569c973ff4efe7caee8f777"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js",
+ "bytes": 9253,
+ "sha256": "a757e3b924af184b25e2386d1678b1fe341805a516ebf9bccee219b47aebd5e7"
+ },
+ {
+ "relative": "node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/package.json",
+ "bytes": 3254,
+ "sha256": "20b8b197cbd10dad245d45e463dfe58e4c8c25a47e24bc4256ad9ab58bf35683"
+ },
+ {
+ "relative": "node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.js",
+ "bytes": 1587,
+ "sha256": "2eabf3096793c43934ef127fb50238dcba93074fb54f943fc62aeab616769dfc"
+ },
+ {
+ "relative": "node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/package.json",
+ "bytes": 849,
+ "sha256": "d5de75fe154851539d0adeac9731773ac5b93281ec4019c355cb330d20b176a7"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/index.js",
+ "bytes": 121,
+ "sha256": "c733a1897d6b4b30dad6998597f6896b265b094a65534359ada34b08ecf8932c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/package.json",
+ "bytes": 3796,
+ "sha256": "c630bd10b52dcf71c112a2bf78dbf2734b9db58d62de663b8d86c2ec2c8cda2e"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js",
+ "bytes": 663,
+ "sha256": "78a162d29e06001b4d919e1ed08f6e7d0d665bba0ef983201373745410d7b354"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js",
+ "bytes": 550,
+ "sha256": "fb2efe3b6eacc475c77cbb571b5fb8650d92a10f316dc869e49b722973d83c3c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js",
+ "bytes": 1090,
+ "sha256": "0e948b101771cc0e7b753e54b3f5b486929d3db9bd4c09d98fe4ce86271bcf7b"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js",
+ "bytes": 1609,
+ "sha256": "b155316267f79068ddc2dddc7046e13785804b768ca36e6deff1691d154f7c20"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js",
+ "bytes": 907,
+ "sha256": "179a03ace3d1d77895cc5b3c54a3fcbf2b7f8bad44d6f030092491c10e5d9097"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js",
+ "bytes": 24161,
+ "sha256": "d8866bf5232e55d12cda032bde6a56a05a0a8b276945c2e4eed66432ef5cc9b2"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js",
+ "bytes": 1151,
+ "sha256": "3cc5e6b4da086b8ffc7ee3188c69e4d3c945b368092e78d2299b5321182752c5"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/package.json",
+ "bytes": 127,
+ "sha256": "3e3125b5a537a24c3632c1c5c09640ce7bcb3935901b127ad8ae3c37a27f133f"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js",
+ "bytes": 997,
+ "sha256": "14cbcc416ab9169abc2cde97af77da54ca769684eac1e03a3753c16ea4a7cd95"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js",
+ "bytes": 51378,
+ "sha256": "eb4af7946a092aff8678b9251728ea58dab40154920cd65ec4a2ca1d4df68393"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js",
+ "bytes": 28054,
+ "sha256": "00cb5edcfde8098e5a169e66c1dce50c101484d21436e3d78e137e1fa87c4836"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js",
+ "bytes": 20005,
+ "sha256": "5a33a20dcad372b4d18ead8d1e58b1950454f136a2216e62f247e0e5601ac838"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js",
+ "bytes": 2578,
+ "sha256": "a5e713beaac4647151e03716a83f51ab714e5337cf66850f3b28eaf072a0bbfe"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js",
+ "bytes": 1088,
+ "sha256": "e084bbcc536746a8942fd33b08afe4db345554b3a0383114f1dca95261c958d9"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js",
+ "bytes": 6413,
+ "sha256": "bdd0ed8fd4a6e9d04fe6423b0f9df3a0b403939bc7dcedd8930a4b8df1fb118c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js",
+ "bytes": 594,
+ "sha256": "f9698820ee8371215e8d015cfa060230c62e65428397dce83f78e6538976301c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js",
+ "bytes": 3218,
+ "sha256": "9cc884cdb535a9c87b85b66e61a593ff6b686222f038834f81c5e92552cd6e23"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js",
+ "bytes": 20716,
+ "sha256": "ff15f567c9401dd7d3151ce11736283ff747c9a9e205cc08ee96f90eadc1c0c6"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js",
+ "bytes": 11,
+ "sha256": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/package.json",
+ "bytes": 127,
+ "sha256": "3e3125b5a537a24c3632c1c5c09640ce7bcb3935901b127ad8ae3c37a27f133f"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js",
+ "bytes": 4444,
+ "sha256": "2578b8d1341c3882a6c089f9ec57ce1c1a16b8b2b477721d4d89ba3d3ee50c9c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js",
+ "bytes": 9078,
+ "sha256": "3cb122080c1154321331322ebc0cbe04878fe104c8c7b335891d9f85fc4b3f63"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js",
+ "bytes": 1512,
+ "sha256": "620ea1a715ccc4e6e605a271343bf47942dccae90885dc71f137b1f08a972e50"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js",
+ "bytes": 83322,
+ "sha256": "09da9b0cb9b9d2d795c349bc47c7521d5aaffe241885f0c9728f2aa7de3834c9"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js",
+ "bytes": 17006,
+ "sha256": "fb3c9ab59947582f7671a53c8e20a3ced5eaa92d1c220ce8b27717a59033ad0d"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js",
+ "bytes": 22018,
+ "sha256": "968e3433e810cf7ba5efb609a1cb6d9a6cfb51215fd1f699938228f7ac25deb3"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js",
+ "bytes": 70,
+ "sha256": "bf082fde98fa7725412d713c7f56da3a5603bdef199d68d5769263f30ce9c756"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js",
+ "bytes": 5188,
+ "sha256": "220ca3ca8cf67e4ccc05d789eeed2692d970269fe0cd82f05db8fd899b661b9e"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js",
+ "bytes": 4511,
+ "sha256": "4725ffef0b2f2df947194f9698c792b69f52a8c3a5a1e1bdfabbf62259a1dd46"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js",
+ "bytes": 6619,
+ "sha256": "da4bda7fbc940dd9f50efdd914caa9397243be779a505b82bd4be5395d3b795e"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js",
+ "bytes": 5785,
+ "sha256": "48511ad2f86043f0eea6e7673d5e2b848a3295a26c9c4650e96b3884d640196d"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js",
+ "bytes": 4710,
+ "sha256": "796f9ba7dcd53648171aa0132c50271ef358936765cec0a44a642c41d05b3e8c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js",
+ "bytes": 4772,
+ "sha256": "670a75fe1db1104db090c95aabb01e4eb6decd451fe77fd830c2e4dafc79b49a"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js",
+ "bytes": 4804,
+ "sha256": "cdaad7a1fa370abda1943fe9c2caba961e7896b9808d51275daf33f964af49cc"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js",
+ "bytes": 4588,
+ "sha256": "521a4ed29fcaf3f781163875dc282cfb5262047773aa2b70a852996b1d8a51b9"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js",
+ "bytes": 5544,
+ "sha256": "9857a9e4909282b2efd86317fc3e67ed86e24287f32329cfa5ab833c05fc0d81"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js",
+ "bytes": 4805,
+ "sha256": "232a0828d64df8e410b23ac9825a667bd9d485fd70acdc4b4d0870539faef0a4"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js",
+ "bytes": 4603,
+ "sha256": "ebe08048aa3ee9871ce9fe1271e254cb672b1968ec40ac253066d08d176e8a65"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js",
+ "bytes": 5439,
+ "sha256": "4edd9302e9724c408b024220e99092fbd2f90100ac3c6407a94543b79843610c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js",
+ "bytes": 5131,
+ "sha256": "2dc1bee1e984e8a15191fb3c69aaecaa26c922e12a0d4486ac005a0372b78565"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js",
+ "bytes": 4818,
+ "sha256": "3911184979f01d2ae580ce611710ee40597eff97a410d0fa823ab6ea27cee88c"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js",
+ "bytes": 4554,
+ "sha256": "f8716c2baaccdfd1d958743bbc5250c9bdef5152d0801470e9b9a380d618f4ab"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js",
+ "bytes": 5137,
+ "sha256": "3ea466ca5737984bb5acc9008822060272f596317004618cfe1e05109f707577"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js",
+ "bytes": 12005,
+ "sha256": "290512e43d2907700211da09dc3959fd98d120bfb89f8836e6e3f83a472e26fe"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js",
+ "bytes": 5052,
+ "sha256": "1ea65433c32b89bead43113ac69b3acc520bb73ae231dd2e05fedf8e8c5656d6"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js",
+ "bytes": 4696,
+ "sha256": "913ee94a253db79b31463ae23a337060b6fe28be73dfc7657d8a83a4942bd8a8"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js",
+ "bytes": 6390,
+ "sha256": "0d3bbb96c0f8bc74468a2dfc7d066e838bb56fab64fd5ec03ce9c4d89eccbe99"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js",
+ "bytes": 4577,
+ "sha256": "cd2c19b5c30dade3ed91ffcff3deb0b068713be24f02248e7e46b87b2b9553ee"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js",
+ "bytes": 2149,
+ "sha256": "d73f41a76614855d43eea493030a1aa05dca30c9a17015a0da5b8b70da61b6b1"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js",
+ "bytes": 4635,
+ "sha256": "ead5b14eac892229f915fe38ec94ab3b1e676f8aa2df2a8450848ba9ca9a1612"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js",
+ "bytes": 4582,
+ "sha256": "439969d199427d77ebf1e477bf2295b226712804b25437d442f9dfc78aca95e0"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js",
+ "bytes": 4851,
+ "sha256": "43ee10378cac22b0b8aee912a66c3f36a834d5b4c76e9748f88a784044f248fd"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js",
+ "bytes": 6202,
+ "sha256": "0ab5322368f9ac6e6b58f93dac484a4f4f06cdf4c0677f4df88164e9d8b4bf81"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js",
+ "bytes": 111,
+ "sha256": "78c3d1991041bb8c8fc0f7c5d745aae422d4c2e4e8f30bae44f3fef4765900a8"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js",
+ "bytes": 6242,
+ "sha256": "dbdabda94dd93d4a1827e6c809505c79fa6aa7abefec91dc50fa0871382c99cc"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js",
+ "bytes": 4929,
+ "sha256": "d2efe22ac069d9b32b0109fa07713ac0695ac1c1357afc4e4277056466f2e196"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js",
+ "bytes": 8082,
+ "sha256": "dad886e52c56a1329d22e072f8b08dc8730f69c3dc5e5acf8267cac18df1ab28"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js",
+ "bytes": 5157,
+ "sha256": "9eb4af0392fc5b9c438cdc6ceea446acc541b59e221dba918f7b80800d9da3d1"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js",
+ "bytes": 4491,
+ "sha256": "c550a9185d997e8fcd17311951aa1e29793a50b8e825e18310efd5a46c641795"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js",
+ "bytes": 4762,
+ "sha256": "acba414579c5bbd7f83dc6661fa1a12d65f1822f9b0f5035549ac60f46d93763"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js",
+ "bytes": 4506,
+ "sha256": "1854483c7cf158b8f97f0faf6fd799eb1f762009018b5fde893ca33f2fb0b313"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js",
+ "bytes": 4525,
+ "sha256": "34ae496104bc17fea7d30c3d45c94cfe3d1d569b5d39a6ca51de6c177690c556"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/package.json",
+ "bytes": 127,
+ "sha256": "3e3125b5a537a24c3632c1c5c09640ce7bcb3935901b127ad8ae3c37a27f133f"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js",
+ "bytes": 4966,
+ "sha256": "18eab58f395e30b906e8e3fddc5f212eb19f2c4362410889a5c5e0141ebe2144"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js",
+ "bytes": 4909,
+ "sha256": "f977b5141fa8fb6a8459372e0b2895d74b381c9f2ff4899141f7ee3e639a4513"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js",
+ "bytes": 4568,
+ "sha256": "df172afc585544dee7c063c484f5a07b5ed103e2c1072a782c763ad8ceb08e17"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js",
+ "bytes": 4774,
+ "sha256": "ecae409f4299ab91e2aff1095db14e23f3cf2c05b3654e242047655352c7f46b"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js",
+ "bytes": 6714,
+ "sha256": "c397a473e94d7d189a9c09c7890fe379c4f6f46d9556d52a040a90ffa56f7b93"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js",
+ "bytes": 4567,
+ "sha256": "ee2ff3a19b62cd2f89b54b165088773b937de15df7253df220bef07d9adf2d80"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js",
+ "bytes": 4663,
+ "sha256": "97d6718fb643e05d6fe30fa4f9f09b8d9a3eda4a3a350b57dfb2944943d19502"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js",
+ "bytes": 6369,
+ "sha256": "04bbde9766251f9047e786fdd77632f2ecd53aec2eb060eb2fc85bf576ad729d"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js",
+ "bytes": 6290,
+ "sha256": "aea70c9ac2b399fe4749e19ba3aa99c3efb4dfb50eadfb62b0b2a6e005748f3d"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js",
+ "bytes": 4454,
+ "sha256": "4449f41d22c6f15ede5066f79d840a52ec45a6b694c859e16f9121062b6fad2f"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js",
+ "bytes": 111,
+ "sha256": "9391169ffbc72f777a83230b6ffcc3f4cf46ab5945ec540de9ef4609dca1f4cc"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js",
+ "bytes": 5430,
+ "sha256": "77136a2a60eef62f7cc803a0f9971aebbc641403af77c1b41fd5ce59abfa5de3"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js",
+ "bytes": 5271,
+ "sha256": "858f4f38d651073e7a3fbec7ed356692578b3ad1fae1b453cb3d85312a4f39d2"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js",
+ "bytes": 4739,
+ "sha256": "d540bed482d15c47cb45439cff34e053379c53019c7c7c5fbe43f222d0c81f04"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js",
+ "bytes": 4772,
+ "sha256": "2c61bd3f4a733f3cbb1ad85e75a053cb15a8ebeb83ab56dc21f2948b1138e12f"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js",
+ "bytes": 4665,
+ "sha256": "98b9cbf31bf00c8b2c00de62725a9dd7cb718ac72d6e8fd4e0a1a7c49723e0f4"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js",
+ "bytes": 4452,
+ "sha256": "99a4b16af598834a0b11607fcdebd1c6de026386ff1d6a5a306b364c154c5899"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js",
+ "bytes": 4498,
+ "sha256": "37dcae620e1553e9174a4b9434bbcc4e465150a627e80c9c17fd01de8baaf59a"
+ },
+ {
+ "relative": "node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/package.json",
+ "bytes": 127,
+ "sha256": "3e3125b5a537a24c3632c1c5c09640ce7bcb3935901b127ad8ae3c37a27f133f"
+ },
+ {
+ "relative": "package.json",
+ "bytes": 18994,
+ "sha256": "12bb41cd8212021a784b33a20c2b84372189a9505b42081d5e3869e21ff5cffc"
+ },
+ {
+ "relative": "packages/attachment/attachment-local/lib/index.js",
+ "bytes": 46886,
+ "sha256": "cd39685581b4573a453c6126f8ce73da0bf1257c378827ebb431d6d4064f7662"
+ },
+ {
+ "relative": "packages/attachment/attachment-local/package.json",
+ "bytes": 1259,
+ "sha256": "27267f4c137d16d0a22237ad36b3f0e6ffbec16fa654d5ee4a62e7b9c7b67cfc"
+ },
+ {
+ "relative": "packages/attachment/attachment/lib/index.js",
+ "bytes": 14598,
+ "sha256": "9cd6c01a6cca9431f789be334afdfe4f5cf647224bb394cc0215056796520f58"
+ },
+ {
+ "relative": "packages/attachment/attachment/package.json",
+ "bytes": 1023,
+ "sha256": "7f445f3dc278d82715116d8e62d6277ad77545261fa06052eb7dfbbfb1abe060"
+ },
+ {
+ "relative": "packages/boot/app-boot/lib/index.js",
+ "bytes": 203572,
+ "sha256": "5135179ac810e4f626f32ec3bdc3293dc7d2028e8aa92e5e0c006f1a33b78e76"
+ },
+ {
+ "relative": "packages/boot/app-boot/package.json",
+ "bytes": 2244,
+ "sha256": "8c00fb57f83bae51a6edd45a2e3ba114425017e06b680c759b27f0340fcf0013"
+ },
+ {
+ "relative": "packages/boot/cmdline/lib/index.js",
+ "bytes": 6973,
+ "sha256": "7253190611566485f8b6f836fae6e0f2a7abbc59bb807c42e874844016e6d3a0"
+ },
+ {
+ "relative": "packages/boot/cmdline/package.json",
+ "bytes": 1063,
+ "sha256": "55d0b9ff6c8fb1549cd2703c7d56dc51cf5cc1a063bebc32c4dedd9b942bceee"
+ },
+ {
+ "relative": "packages/bundle/sdk-app/lib/index.js",
+ "bytes": 1921,
+ "sha256": "cc7e6c38b0b38c0e92a0dffb45210c1dac6ef518547436e805e84b772f91a475"
+ },
+ {
+ "relative": "packages/bundle/sdk-app/package.json",
+ "bytes": 1387,
+ "sha256": "92292d5042903d50fdcbd8b37f26d6b1cdbec6ef73ea240a4c1c91c15bb53aa2"
+ },
+ {
+ "relative": "packages/bundle/sdk-minimal/cordis.patch.yml",
+ "bytes": 5636,
+ "sha256": "464ea07c03d3639c2c387fa3a684f5d4001e7ca39f8257b361c604f19487af66"
+ },
+ {
+ "relative": "packages/compaction/compaction-basic/lib/index.js",
+ "bytes": 49452,
+ "sha256": "b7ac52f20a36430cf01a66b3a36f23a48ffdb22708d714dbe1fff541b5df4ec5"
+ },
+ {
+ "relative": "packages/compaction/compaction-basic/package.json",
+ "bytes": 2334,
+ "sha256": "6ad53cb24951a576977440aeb9e7621f626b818d94e884111dff607fc3d4da12"
+ },
+ {
+ "relative": "packages/compaction/compaction-image-offload/lib/index.js",
+ "bytes": 6685,
+ "sha256": "6352066e8028a74374f0d6de42ebfeec5125100bb1a32ea98ff7a9fc9f58b940"
+ },
+ {
+ "relative": "packages/compaction/compaction-image-offload/lib/types/project-message.js",
+ "bytes": 1605,
+ "sha256": "8f8341afd28e967df5aa57f5f4d3d7c9a386fee39c91f4899f779c470ae3198b"
+ },
+ {
+ "relative": "packages/compaction/compaction-image-offload/lib/types/projection.js",
+ "bytes": 2613,
+ "sha256": "205b873f17bd73e96f474e9f2bae3dd92375b6e29d706f34bee24e869507e113"
+ },
+ {
+ "relative": "packages/compaction/compaction-image-offload/package.json",
+ "bytes": 1925,
+ "sha256": "c626d6abed13ee3460543039b2162da88cee73171476c3b27b792bec6cfaca1a"
+ },
+ {
+ "relative": "packages/compaction/compaction/lib/index.js",
+ "bytes": 7464,
+ "sha256": "9db5200bd40b7d046e52308c7cbf209fd95946b22c0a7d10b0a082a992b04533"
+ },
+ {
+ "relative": "packages/compaction/compaction/package.json",
+ "bytes": 1475,
+ "sha256": "f70bad8bd5578c984b2c730c9ec779cfa10c5b86b2c00fb23b84fee7012f2ad6"
+ },
+ {
+ "relative": "packages/core/agent-loop/lib/index.js",
+ "bytes": 74599,
+ "sha256": "cf57e3ecd487ac5c2553455aaa5cef2c6fb41e6bd61be5aa455675d1d7193033"
+ },
+ {
+ "relative": "packages/core/agent-loop/package.json",
+ "bytes": 2022,
+ "sha256": "6c25e9391f352a989e056e6f7f05dc8977d2bbfb10b2b948795086126ead8a5d"
+ },
+ {
+ "relative": "packages/core/agent/lib/index.js",
+ "bytes": 28257,
+ "sha256": "7b59cf82c2784c25bdce4e3e24e5e5303b02b9f1003efacf50255492d17baf8b"
+ },
+ {
+ "relative": "packages/core/agent/package.json",
+ "bytes": 2006,
+ "sha256": "6e45fa159ea9f0d8cbe4554be5be8fbb4e820bdcff16498a15240b0f339ff00b"
+ },
+ {
+ "relative": "packages/core/scope/lib/index.js",
+ "bytes": 12151,
+ "sha256": "2829df71d76e08941457d4dd173eac60783e55354921137c8b75e8b5c0d2ecca"
+ },
+ {
+ "relative": "packages/core/scope/package.json",
+ "bytes": 875,
+ "sha256": "5821468ac0488662c320db3ef724da3bb4260ce5867b10a14062af28434a446c"
+ },
+ {
+ "relative": "packages/core/session/lib/index.js",
+ "bytes": 94982,
+ "sha256": "2f5dd07cb5c744a29abbb8003a8a4cefd9e582c6e2538074ca299a0ddd02a3bf"
+ },
+ {
+ "relative": "packages/core/session/package.json",
+ "bytes": 1594,
+ "sha256": "a698d868e7ffb1d512722bb741ecbc97cb8ad6d0d66dac90e700e61dc351f988"
+ },
+ {
+ "relative": "packages/core/system-prompt/lib/index.js",
+ "bytes": 19817,
+ "sha256": "7be9f7aafbf345d01ddcc12fd297b16e9a1d41283a6a04073b867becca0bf020"
+ },
+ {
+ "relative": "packages/core/system-prompt/package.json",
+ "bytes": 1151,
+ "sha256": "76b4a8a5a4bcc9ae71c979a3c6c25b8b84c83f73f0394770cc0dedd9c50b3dee"
+ },
+ {
+ "relative": "packages/core/tools/lib/index.js",
+ "bytes": 161828,
+ "sha256": "75b4a540f5c1430c09e0f3f78ad594356608bd4b82a4931b66a2a29f831970d8"
+ },
+ {
+ "relative": "packages/core/tools/package.json",
+ "bytes": 2422,
+ "sha256": "ebbfe4df3fed6b627e7f093df6c1d76de8b1739692ca0214fc03bec863d7e8c9"
+ },
+ {
+ "relative": "packages/credentials/credentials/lib/index.js",
+ "bytes": 6780,
+ "sha256": "1b6afdb04e966285e0732eb766eb0a12f3f9c0821c8caacfd192ce1ac88bee7a"
+ },
+ {
+ "relative": "packages/credentials/credentials/package.json",
+ "bytes": 1093,
+ "sha256": "5b631cebb47367435a8a691f053ff4eea69032a0129972f03afb7ca6daadf95f"
+ },
+ {
+ "relative": "packages/fs/fs-local/lib/index.js",
+ "bytes": 41311,
+ "sha256": "63fbb41d2c33e07111884b798be507e68c2752acab8249c821c20ade436e894f"
+ },
+ {
+ "relative": "packages/fs/fs-local/package.json",
+ "bytes": 1098,
+ "sha256": "95962facfc4d332e7ede8b534b7c2b7d9eb2b6b2916d767dd913f2f261cd1bb6"
+ },
+ {
+ "relative": "packages/fs/fs/lib/index.js",
+ "bytes": 4338,
+ "sha256": "b165659f1eff0607222a7fe761bc56bae03fec8337c2e25affd064a3047dacb9"
+ },
+ {
+ "relative": "packages/fs/fs/package.json",
+ "bytes": 1237,
+ "sha256": "5e01bb4c942fc3324673c1f6bcd8fcf0a3d3a92821c5502e89f2fc8d257a3605"
+ },
+ {
+ "relative": "packages/identity/anonymous-user-id/lib/index.js",
+ "bytes": 3144,
+ "sha256": "8645c437702f29583b1b17dc69b7ee20a027317163fc43e44ebb4df4998490f0"
+ },
+ {
+ "relative": "packages/identity/anonymous-user-id/package.json",
+ "bytes": 1073,
+ "sha256": "67e8277d9ffa3a5a06bda2ed05ae8a22a6ea97fd3e7f2489691cfa3a78a2fb81"
+ },
+ {
+ "relative": "packages/jobs/jobs-local/lib/index.js",
+ "bytes": 32296,
+ "sha256": "cecdc8a766f62b28999ffff574008d34a39e276d91c4cc648f10ccb18afbed34"
+ },
+ {
+ "relative": "packages/jobs/jobs-local/package.json",
+ "bytes": 1619,
+ "sha256": "d283417c1db4cdbf75a8669739df23175679b3d1a9be60150fe94fc51bace12c"
+ },
+ {
+ "relative": "packages/jobs/jobs/lib/index.js",
+ "bytes": 5856,
+ "sha256": "7a7531c2fb1897603fdf0ec78ae9cef63f6a32688b1023168fbe9d8f782e2887"
+ },
+ {
+ "relative": "packages/jobs/jobs/package.json",
+ "bytes": 1636,
+ "sha256": "21c5745bb6b130f3d5d8c0485d7027aa8e9378d7aeceeee5d8d3501c0d699f58"
+ },
+ {
+ "relative": "packages/llm/deepseek-llm-api-extensions/lib/index.js",
+ "bytes": 4593,
+ "sha256": "75682373a56794240b8e7dd08fa363c528a86a0d626007cb849c3b74f7754b6a"
+ },
+ {
+ "relative": "packages/llm/deepseek-llm-api-extensions/package.json",
+ "bytes": 1078,
+ "sha256": "994f0d891d6bc85f1e20f5b0c61c2fa8e613f87d53c2df7cf3ef952ff4445625"
+ },
+ {
+ "relative": "packages/llm/llm-deepseek-api-key/lib/index.js",
+ "bytes": 3060,
+ "sha256": "8bac0be0fea0170233330708ecdd1418e5ba6ee8d80f6e814e48ab0e2fcb4d74"
+ },
+ {
+ "relative": "packages/llm/llm-deepseek-api-key/package.json",
+ "bytes": 1611,
+ "sha256": "1d1ec023c53f41d2264565f0660414619ba941b3e4d93c557828b8a937d7fc6b"
+ },
+ {
+ "relative": "packages/llm/llm-deepseek/lib/index.js",
+ "bytes": 103187,
+ "sha256": "eba35025ed1eedda89c51f2da46a3a968f7be1d59719f2ceeadfc4518dff37d6"
+ },
+ {
+ "relative": "packages/llm/llm-deepseek/package.json",
+ "bytes": 3129,
+ "sha256": "d4540861a100eb1f5d1eac077faad59f912ec84a981f47b8566f6fcd2ed7cd7b"
+ },
+ {
+ "relative": "packages/llm/llm/lib/index.js",
+ "bytes": 105272,
+ "sha256": "d18d8ae4c8d961e628708c1e4698e09716a0ebb80e55a672e0bde1029bec1155"
+ },
+ {
+ "relative": "packages/llm/llm/package.json",
+ "bytes": 2120,
+ "sha256": "b04018bab5a60c479a8955bc49ede2257ab9bea10326159a66e411bec32d89a9"
+ },
+ {
+ "relative": "packages/llm/plugin-package-inventory-deepseek/lib/index.js",
+ "bytes": 6870,
+ "sha256": "fa5834d24faa7b374e42ae720c4d7dd7a8eef33b77091e6349d1f4c6671efcbb"
+ },
+ {
+ "relative": "packages/llm/plugin-package-inventory-deepseek/package.json",
+ "bytes": 2087,
+ "sha256": "47ccf57af39097822e780d64589c26c169f4f24094b87692c9f419de3c0e30d4"
+ },
+ {
+ "relative": "packages/llm/token-meter/lib/index.js",
+ "bytes": 35095,
+ "sha256": "b76a27f84d1f733c4a760e36fcc0491f807b32d51055703feb0fed1643cc2e05"
+ },
+ {
+ "relative": "packages/llm/token-meter/package.json",
+ "bytes": 1934,
+ "sha256": "4d3fffcfd06a63fc656609acacfb8e8c97e2ffc7cc298f3385750dcbe98946e1"
+ },
+ {
+ "relative": "packages/mcp/mcp-resources/lib/index.js",
+ "bytes": 6196,
+ "sha256": "7fa2e6049494b502ae756bf557c1f744a07835b850e6e0e0ddb555a488f3a094"
+ },
+ {
+ "relative": "packages/mcp/mcp-resources/package.json",
+ "bytes": 1560,
+ "sha256": "a9928ec2df768f158f87b6695a68851bea7d7113f7156521f7e94f7a25deda73"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-local/lib/index.js",
+ "bytes": 22673,
+ "sha256": "be6e1107871cf8d94c040090b13c405bc833822e2f51ed5280e93eececf762be"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-local/package.json",
+ "bytes": 1574,
+ "sha256": "b502e1d315bab61837b34e96b2294b6d37a90f632f44fdcae45b8f4cda0418bc"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-policy/lib/index.js",
+ "bytes": 7553,
+ "sha256": "772ca58f0f786d6cb4d839deb621634c31097c13228d81b14e3f3153d0524924"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-policy/package.json",
+ "bytes": 1613,
+ "sha256": "1af85b8b1c7f32d0380d34e0a470024c9ae12ad87a75d453f9836b898885c12c"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-windows-acl/lib/index.js",
+ "bytes": 364,
+ "sha256": "83379e9c6e8bb725d0ed48ad086fc666bfe151c8c1a345e29e3da5b998aa4fd8"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-windows-acl/lib/types-Cl_DXjhk.js",
+ "bytes": 64309,
+ "sha256": "0bb3a34508785bdc34626542f9358d398fd9f60fdaf4b48201dfdff2122f25fc"
+ },
+ {
+ "relative": "packages/sandbox/sandbox-windows-acl/package.json",
+ "bytes": 1738,
+ "sha256": "2b6cdaa4626fc08f86c50744ec8bcf0a254abf5ab7397e647d7f1b4f4c1844dc"
+ },
+ {
+ "relative": "packages/sandbox/sandbox/lib/index.js",
+ "bytes": 15101,
+ "sha256": "2a91689722dcfc202f98873f34a030c498320c8907459242e56f0659252c11b0"
+ },
+ {
+ "relative": "packages/sandbox/sandbox/package.json",
+ "bytes": 1167,
+ "sha256": "b1273a74b110bd66aa1d25e89aa13758854eeb8af02ea5aeea5e67f0538d69b0"
+ },
+ {
+ "relative": "packages/sdk/protocol/lib/index.js",
+ "bytes": 7336,
+ "sha256": "371c38ca3514797d86df5f4bb78a56c40a2637294b83aababe8145bec6a20253"
+ },
+ {
+ "relative": "packages/sdk/protocol/package.json",
+ "bytes": 1237,
+ "sha256": "b030b0431d69723b5424dc2519cd4b381ec91acd22b73e0b30d6b8a19f1f2f94"
+ },
+ {
+ "relative": "packages/sdk/server/lib/index.js",
+ "bytes": 16454,
+ "sha256": "55412923f9f7c279f7e0b2a1e2853eaf238f390b3d84046cb9c94dc5f22a1e4a"
+ },
+ {
+ "relative": "packages/sdk/server/package.json",
+ "bytes": 2155,
+ "sha256": "2690f99763c3e1e7bd57f680f26e53010c2a3d7c4dffe06ff64a07ae3928cb17"
+ },
+ {
+ "relative": "packages/session/session-format-catalog/lib/index.js",
+ "bytes": 5717,
+ "sha256": "836bbb772ab505c299f1a4a246164c50c7c08b67ab0d17f1251d7ea2cd8c1818"
+ },
+ {
+ "relative": "packages/session/session-format-catalog/lib/types/message-projections.js",
+ "bytes": 436,
+ "sha256": "c63245bf0c22fbb6bca4de7029437611bac766ca2527e89012f9a6a42c4f907d"
+ },
+ {
+ "relative": "packages/session/session-format-catalog/package.json",
+ "bytes": 1533,
+ "sha256": "558c4417d7de105e4a6619833af22807b48d06d3fc0a9bfabf676ecfd30eda34"
+ },
+ {
+ "relative": "packages/session/session-format-v0-to-v1/lib/index.js",
+ "bytes": 104888,
+ "sha256": "1b3bff6aaf28ca62a864cf97b9aa9aa45ab76de5e459f7881ba4bc8de73490b1"
+ },
+ {
+ "relative": "packages/session/session-format-v0-to-v1/package.json",
+ "bytes": 1409,
+ "sha256": "d7460fd0b4b556e7688885474ad3ad38e3b5fbbc807199b48806eddfacc54477"
+ },
+ {
+ "relative": "packages/session/session-format-v1-to-v2/lib/index.js",
+ "bytes": 33614,
+ "sha256": "b2b401d880bb000017ba8663c4448b501427b23a1cd2f9fdb04cb7ec9d763eff"
+ },
+ {
+ "relative": "packages/session/session-format-v1-to-v2/package.json",
+ "bytes": 1523,
+ "sha256": "03d9486f0f4b9380f6bf5162a37be32483764cb7dcca65e0ea8e292a0075e80f"
+ },
+ {
+ "relative": "packages/session/session-format-v2-to-v3/lib/index.js",
+ "bytes": 36092,
+ "sha256": "0dc56fb447e9046fc25995bcd08dbac26e832eba6e9eb583ef49d26467c27cd7"
+ },
+ {
+ "relative": "packages/session/session-format-v2-to-v3/package.json",
+ "bytes": 1445,
+ "sha256": "b5b6c03ffd511704abeb07c7b805ee67f39f296f88d51b98a5afa504337b46c8"
+ },
+ {
+ "relative": "packages/session/session-format-v3-to-v4/lib/index.js",
+ "bytes": 73133,
+ "sha256": "a6b974d110572bd0b16aa7ab09a30d9061944e8dc9f811e8c4a35e4891f83f12"
+ },
+ {
+ "relative": "packages/session/session-format-v3-to-v4/package.json",
+ "bytes": 1388,
+ "sha256": "b3765c35066ae334805aacde1d15b030bb534a5fe86a9eb936a57070ec8ecfad"
+ },
+ {
+ "relative": "packages/session/session-format/lib/index.js",
+ "bytes": 21069,
+ "sha256": "6c7417ec2cd555e2781197d91c4566c88ffcf2728f362d7a2937859be57226ec"
+ },
+ {
+ "relative": "packages/session/session-format/package.json",
+ "bytes": 918,
+ "sha256": "853d7f33b9ce3dd8ee87a4ba4d7fdd6addd4118e4345672c103e4990da96b059"
+ },
+ {
+ "relative": "packages/session/session-log-deepseek/lib/index.js",
+ "bytes": 7641,
+ "sha256": "b95f93cd3b614ba1216f466236692a30e9f88181a9fe24bc8a38109dc2d46f4f"
+ },
+ {
+ "relative": "packages/session/session-log-deepseek/package.json",
+ "bytes": 1974,
+ "sha256": "fbce37d5a7159b74b6dd0f5fb7aaa423b66f2ef83b8342b99ad4888eb3ce5876"
+ },
+ {
+ "relative": "packages/session/session-persistence-jsonl/lib/index.js",
+ "bytes": 147273,
+ "sha256": "973dd78679b2661d6f492343bc22b124ae958aa597d3b36c698a2c650f909984"
+ },
+ {
+ "relative": "packages/session/session-persistence-jsonl/package.json",
+ "bytes": 1630,
+ "sha256": "cad4ead4714ed640920aad8dc6953deb4db27ef5482604bc3e5a1ac7b796a26e"
+ },
+ {
+ "relative": "packages/session/session-persistence/lib/index.js",
+ "bytes": 12920,
+ "sha256": "cc0b6d3a224133af611b428d5a49020e300f86c3b4ba28037aeb219029bde3eb"
+ },
+ {
+ "relative": "packages/session/session-persistence/package.json",
+ "bytes": 1289,
+ "sha256": "af9e57b7c8d7f4cb3bb94da3180e9f37e83fbd2146eecdda808f0d46a275911f"
+ },
+ {
+ "relative": "packages/session/session-projection/lib/index.js",
+ "bytes": 19981,
+ "sha256": "7dc2b212819baf4fc292751054d30b97afcbdee0a4733230abf92c6722e6550c"
+ },
+ {
+ "relative": "packages/session/session-projection/package.json",
+ "bytes": 1322,
+ "sha256": "84a51bc9e3f92cc52cc96f0eb8495833fdc7ff0a84baa387a6afac2180567688"
+ },
+ {
+ "relative": "packages/session/session-title/lib/index.js",
+ "bytes": 27183,
+ "sha256": "eb814490ca3d0aaabf8f6ddc705a031f99a98709c484c1502c5f28f101cf0eeb"
+ },
+ {
+ "relative": "packages/session/session-title/package.json",
+ "bytes": 1901,
+ "sha256": "52f4eba5570f5fac81f2278420c75821f22099f40b541886ea62b2dc13123b39"
+ },
+ {
+ "relative": "packages/session/working-directory/lib/index.js",
+ "bytes": 6916,
+ "sha256": "af5bb7f33c52efe018da19c39c54e07b5a3ac804fff83f8a68e341f411ecf703"
+ },
+ {
+ "relative": "packages/session/working-directory/package.json",
+ "bytes": 1850,
+ "sha256": "cdf51ffced7bbec939f2ff9e2fc03055ada8c3a263f6b646339294a747bdedd5"
+ },
+ {
+ "relative": "packages/skill/skill/lib/index.js",
+ "bytes": 23721,
+ "sha256": "4b88621be4e7ff09b05c175fc6dcb67e77a22e5c5570e3aa603338b2937ea791"
+ },
+ {
+ "relative": "packages/skill/skill/package.json",
+ "bytes": 1185,
+ "sha256": "e2ef6df1c2604e47dfd3614c1575b30407ff4efd604fe5a1c1dadda07089702b"
+ },
+ {
+ "relative": "packages/subprocess/subprocess-local/lib/index.js",
+ "bytes": 62333,
+ "sha256": "2964d94d6aa735f79e5cd5f54035a9d73b371e8060dda7e3bf666593428c04f4"
+ },
+ {
+ "relative": "packages/subprocess/subprocess-local/lib/output.js",
+ "bytes": 9173,
+ "sha256": "4f77ef6da608d36df168c99177e9b527e7145df1418845eba567635e64a4c2a3"
+ },
+ {
+ "relative": "packages/subprocess/subprocess-local/lib/runner-launch-B2zsQ1Dz.js",
+ "bytes": 57475,
+ "sha256": "6df08adc4a27f278878a5f4cde8b551b51e647b922ac7d6591fd62d272ced153"
+ },
+ {
+ "relative": "packages/subprocess/subprocess-local/package.json",
+ "bytes": 1744,
+ "sha256": "ee2cce050478d4738c0c844cd09a5acc4ea4eb1bd99e60c364c979731691aee7"
+ },
+ {
+ "relative": "packages/subprocess/subprocess/lib/control.js",
+ "bytes": 1241,
+ "sha256": "4afd0f7d7a7054b6fc8d727ea3f76731a78c9a972ddb6d5d2eef81cac4ffee3a"
+ },
+ {
+ "relative": "packages/subprocess/subprocess/lib/index.js",
+ "bytes": 5354,
+ "sha256": "0ea9e95a73639f9e69b48aa48f373f34881adffa2ee2ac2acd4702728da9592b"
+ },
+ {
+ "relative": "packages/subprocess/subprocess/package.json",
+ "bytes": 1235,
+ "sha256": "b0c634634bbf129df790a8cc9136329f8b787b9bcb820ed197ed04dc5c84fdf0"
+ },
+ {
+ "relative": "packages/subprocess/win32-process/lib/index.js",
+ "bytes": 27290,
+ "sha256": "622bc3a9e97c46e784fe41c9a0a8535da2808019e4ac3f66d17cdad70c9ac0c9"
+ },
+ {
+ "relative": "packages/subprocess/win32-process/package.json",
+ "bytes": 953,
+ "sha256": "2a42881ba56fc6147704c64682b3240ea65d00d977da662bd0e753ea615de461"
+ },
+ {
+ "relative": "packages/terminal/terminal/lib/index.js",
+ "bytes": 13614,
+ "sha256": "d89bd6e304d0904dc3cd6c9fd50085be2e5eeaf8f1444f18a4c669b6e764ecb4"
+ },
+ {
+ "relative": "packages/terminal/terminal/package.json",
+ "bytes": 1274,
+ "sha256": "0b36dd420ee95a38380dd9bc7dc63425e66b5584c9343c1f4179a0bd71dd6777"
+ },
+ {
+ "relative": "packages/typert/protocol/lib/index.js",
+ "bytes": 19373,
+ "sha256": "8d48ddbb4bbc62585ce5a4d3a7f53b39f55581b5320c1cae681766edd15ff8af"
+ },
+ {
+ "relative": "packages/typert/protocol/package.json",
+ "bytes": 1193,
+ "sha256": "3aff23328243c53222f4e7b27707586b2bfc92760a9bd6ed2237e039c1409f85"
+ },
+ {
+ "relative": "packages/util/atomic-write/lib/index.js",
+ "bytes": 9240,
+ "sha256": "872d7c1e6e9b267775199bdd3632870f82780d0a5ba047febc93fde94fde53f7"
+ },
+ {
+ "relative": "packages/util/atomic-write/package.json",
+ "bytes": 925,
+ "sha256": "bf31b2061544a61e21286e7143b3dcc651f6b964da477f8d5597bf28c87fc4df"
+ },
+ {
+ "relative": "packages/util/brand/lib/index.js",
+ "bytes": 1161,
+ "sha256": "14feb59256b891982b2017d73ed03ee65e2a7365f48e4902a856acb0e52d5eb0"
+ },
+ {
+ "relative": "packages/util/brand/package.json",
+ "bytes": 827,
+ "sha256": "6203c18abf67eab7aef7698e80e2a4acdbb62e393e51a2528223c3ae7dd84316"
+ },
+ {
+ "relative": "packages/util/crypto/lib/index.js",
+ "bytes": 1433,
+ "sha256": "640b26c8e5a1156c6c8e8749a22f805c9c0e34444778eb4ee9529be3e88ec862"
+ },
+ {
+ "relative": "packages/util/crypto/package.json",
+ "bytes": 835,
+ "sha256": "6b8980008f34c9ae5f17f55c08626bbf4f149976c6ae12371260978245c645cf"
+ },
+ {
+ "relative": "packages/util/home-paths/lib/index.js",
+ "bytes": 8228,
+ "sha256": "9877a6117c5def69b61fae12f70a7a7400894a9dc4a9f7069ce4cc58aeb66e9d"
+ },
+ {
+ "relative": "packages/util/home-paths/package.json",
+ "bytes": 834,
+ "sha256": "ff2a507c22dd8e73cc2d14a87c6ced89ef445d006af22fa927c1f19487f9b4e9"
+ },
+ {
+ "relative": "packages/util/http-proxy/lib/index.js",
+ "bytes": 22860,
+ "sha256": "5310861bc89788ea24be82a3b323e34cbd42b9e6214e2a179b2e6f92a8758cd5"
+ },
+ {
+ "relative": "packages/util/http-proxy/package.json",
+ "bytes": 972,
+ "sha256": "ec64c19f0ddfcaf664a9e7c78e5e7bcf6efc3d368640f4100f9aa37d563afc34"
+ },
+ {
+ "relative": "packages/util/launch-environment/lib/index.js",
+ "bytes": 2991,
+ "sha256": "6aab33b43d6caa4ee483f7d796a17afb400fca02b7a259fb55d486626e6bb7f0"
+ },
+ {
+ "relative": "packages/util/launch-environment/package.json",
+ "bytes": 885,
+ "sha256": "906680b29d48cd85bb2a2598c2d31591ec5c584e78519678a69354ab7c6a46e4"
+ },
+ {
+ "relative": "packages/util/lazy-require/lib/index.js",
+ "bytes": 828,
+ "sha256": "eab2f914e4b5f54b2a1af5998eecd52f1b737146db44881ef51fb5e501e1faeb"
+ },
+ {
+ "relative": "packages/util/lazy-require/package.json",
+ "bytes": 869,
+ "sha256": "a9c086876ce4827da62e5ae7a19e5fd8ee8dad45b4e85290b79d195fe5ca78aa"
+ },
+ {
+ "relative": "packages/util/timeout/lib/index.js",
+ "bytes": 5772,
+ "sha256": "f9a79fd5194bb4d6321e6d2d5b5eb72f99c683452e1defbb75fad52f76aed667"
+ },
+ {
+ "relative": "packages/util/timeout/package.json",
+ "bytes": 912,
+ "sha256": "443c008e32bf12c5ea3ef83ee879cc34dfda1d8a8ecd193ab846b164651d3fd0"
+ },
+ {
+ "relative": "packages/util/values/lib/index.js",
+ "bytes": 29627,
+ "sha256": "4322a2aacdfe38476d2bbc62338120beea1e1660346d7db5b6c1e1f927a26b7c"
+ },
+ {
+ "relative": "packages/util/values/package.json",
+ "bytes": 840,
+ "sha256": "c1da5d30b59c15db1731ddc291cf54ab5368e2b50829346f2b6325d4e61d0e06"
+ },
+ {
+ "relative": "pnpm-lock.yaml",
+ "bytes": 1090222,
+ "sha256": "4637cca3b89c4c8d5a147321710e597aa62ec2444a3772ab542be5690893dfe4"
+ },
+ {
+ "relative": "vendor/cordis/lib/index.js",
+ "bytes": 60361,
+ "sha256": "6a9394c0877ff45218818c6e815edd038f8057e1a1deb390a8d43ec81c57691e"
+ },
+ {
+ "relative": "vendor/cordis/package.json",
+ "bytes": 1237,
+ "sha256": "b2426a9e1970d1b4a1702544e74d23a750fbebcfa132fbb8980549d2f484eee8"
+ },
+ {
+ "relative": "vendor/cosmokit/lib/index.js",
+ "bytes": 17160,
+ "sha256": "ba44c0871656e4c7cac2c3c8a2ff644e0d2eb9d6bda7f6355866d686d513268e"
+ },
+ {
+ "relative": "vendor/cosmokit/package.json",
+ "bytes": 740,
+ "sha256": "ccd99887312b5c025651dfa8ab113f627770be4f631f5f13b9cdfbdcbf511ddb"
+ },
+ {
+ "relative": "vendor/group/lib/index.js",
+ "bytes": 165,
+ "sha256": "68f178f2836fafb52b3959aa71ae90aecd321c3f9a189d9f686233fcb000e419"
+ },
+ {
+ "relative": "vendor/group/package.json",
+ "bytes": 872,
+ "sha256": "5fd58be1a7e3705815cbcba9fd573ff367edb8508ace1b09ea5e98a5649f8066"
+ },
+ {
+ "relative": "vendor/loader/lib/index.js",
+ "bytes": 24077,
+ "sha256": "638b9ad360e01236120772323f80a65570c4f3f42f4cfc6243330241025b6d72"
+ },
+ {
+ "relative": "vendor/loader/package.json",
+ "bytes": 1069,
+ "sha256": "e5a2092daa45b264072465788c5b0a750b5d88c4801333070ba90063af65491c"
+ },
+ {
+ "relative": "vendor/schemastery/lib/index.mjs",
+ "bytes": 22988,
+ "sha256": "cfcbe46c7416bdb35ce891c252152bbf519e08199bede5930dd7cb880c65f1ef"
+ },
+ {
+ "relative": "vendor/schemastery/package.json",
+ "bytes": 938,
+ "sha256": "177eab1c24ff0941c0bdc13ecdedd341fd344e027c7db2daf0a89b7011efd2f5"
+ },
+ {
+ "relative": "vendor/timer/lib/index.js",
+ "bytes": 3961,
+ "sha256": "aab5832ebcefccd223b16ff3e8f09ca611841f53352c8439ea3acf7cc11ad002"
+ },
+ {
+ "relative": "vendor/timer/package.json",
+ "bytes": 934,
+ "sha256": "cea2ba9529a68aea920863e188cefd1916712f55cc167a56b538df275ee79f35"
+ }
+ ],
+ "nativeAddons": [
+ {
+ "relative": "node_modules/.pnpm/node-addon-require-builtin-win32-x64-msvc@0.1.9/node_modules/node-addon-require-builtin-win32-x64-msvc/prebuilt/win32-x64-msvc-napi-v9.node",
+ "bytes": 343552,
+ "sha256": "ead441d11202126827a789a7eb88e79abe8f7f374b16e7273c4244225c8d6c2b",
+ "staticImports": [
+ "KERNEL32.dll"
+ ],
+ "staticDelayImports": [
+ "node.exe"
+ ]
+ },
+ {
+ "relative": "node_modules/.pnpm/@koromix+koffi-win32-x64@3.1.1/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node",
+ "bytes": 1042944,
+ "sha256": "eb0587c804bb76262968bf83028528da4dc2d4322f558845cce205c709e2ba20",
+ "staticImports": [
+ "KERNEL32.dll",
+ "ADVAPI32.dll"
+ ],
+ "staticDelayImports": [
+ "NODE.EXE"
+ ]
+ }
+ ]
+}
diff --git a/src/core/engines/original-purge-runtime.mjs b/src/core/engines/original-purge-runtime.mjs
new file mode 100644
index 00000000..ece82391
--- /dev/null
+++ b/src/core/engines/original-purge-runtime.mjs
@@ -0,0 +1,205 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import http from 'node:http';
+import {createHash,randomUUID,timingSafeEqual} from 'node:crypto';
+import {pathToFileURL} from 'node:url';
+import {engineCanonicalDigest as digest,engineError} from '../../shared/contracts/engines.mjs';
+import {engineFileIdentity} from './deepseek-installation.mjs';
+import {assertOriginalPurgeStrategy} from './original-purge-source.mjs';
+
+const sha=bytes=>createHash('sha256').update(bytes).digest('hex');
+const equal=(left,right)=>typeof left==='string'&&Buffer.byteLength(left)===Buffer.byteLength(right)&&timingSafeEqual(Buffer.from(left),Buffer.from(right));
+export function originalPurgeReadRoots(directories,metadata=[]){
+ const inside=(base,file)=>{const relative=path.relative(base,file);return relative===''||relative!=='..'&&!relative.startsWith('..'+path.sep)&&!path.isAbsolute(relative);};
+ const roots=[...new Set(directories.map(root=>fs.realpathSync.native(root)))];
+ // Node 24's Windows permission trie can deny an allowed ancestor when both
+ // it and a descendant are supplied. Keep only the encompassing read grant.
+ const minimal=roots.filter(root=>!roots.some(other=>other!==root&&inside(other,root)));
+ return [...minimal,...new Set(metadata.filter(file=>!minimal.some(root=>inside(root,file))))];
+}
+
+export const ORIGINAL_PURGE_WRAPPER=String.raw`import fs from 'node:fs';
+export const name='workbench-original-purge-restricted';
+export const inject=['systemPrompt','tools','appReady'];
+export async function apply(ctx,config){
+ const blockedTools=[];
+ const tools=new Proxy(ctx.tools,{get(target,key){if(key==='register')return definition=>{
+ if(!['purge_status','purge_apply','purge_revert'].includes(definition.name))throw new Error('Unexpected original tool registration.');
+ blockedTools.push(definition.name);return ()=>{};
+ };const value=Reflect.get(target,key,target);return typeof value==='function'?value.bind(target):value;}});
+ const facade=new Proxy(ctx,{get(target,key){if(key==='tools')return tools;if(key==='get')return name=>name==='tools'?tools:target.get(name);
+ const value=Reflect.get(target,key,target);return typeof value==='function'?value.bind(target):value;}});
+ const original=await import(config.entry);await original.apply(facade,config.originalConfig);
+ fs.writeFileSync(config.marker,JSON.stringify({schemaVersion:1,pid:process.pid,strategySha256:config.strategySha256,
+ originalEntryLoaded:true,originalApplyCalled:true,blockedTools,originalConfig:config.originalConfig,upstreamPatchInstalled:false}),{flag:'wx'});
+}
+`;
+
+// The only executable inputs allowed after this preload are the frozen original
+// files, pinned Harness JS/JSON and the two generated, hashed host adapters.
+// Node permissions are defense in depth for this trusted-source profile, not an
+// OS sandbox. Native builtins belong to the pinned Node executable. Only the
+// fixed require-builtin addon may use dlopen; it is recorded separately.
+export const ORIGINAL_PURGE_PRELOAD=String.raw`import fs from 'node:fs';
+import path from 'node:path';
+import {fileURLToPath,pathToFileURL} from 'node:url';
+import {registerHooks,syncBuiltinESMExports,createRequire} from 'node:module';
+import {createHash} from 'node:crypto';
+const policy=JSON.parse(fs.readFileSync(process.env.AWB_ORIGINAL_PURGE_POLICY,'utf8'));
+const originalRead=fs.readFileSync.bind(fs),inputs=new Map(policy.inputs.map(input=>[input.path,input])),seen=new Set();
+const hash=bytes=>createHash('sha256').update(bytes).digest('hex');
+const fileInput=url=>{if(!url.startsWith('file:'))throw new Error('Unsealed module protocol.');
+ let file;try{file=fs.realpathSync.native(fileURLToPath(url));}catch(error){process.stderr.write('AWB_MODULE_LOOKUP_REFUSED '+url+'\n'+error.stack+'\n');throw error;}const input=inputs.get(file);
+ if(!input||hash(originalRead(file))!==input.sha256){process.stderr.write('AWB_MODULE_REFUSED '+file+'\n');throw new Error('Unsealed or changed module: '+file);}return input;};
+const originalDlopen=process.dlopen;
+process.dlopen=function(module,file,...args){const input=fileInput(pathToFileURL(String(file)).href);
+ if(!policy.nativeAddons.some(native=>native.path===input.path&&native.sha256===input.sha256))throw Object.assign(new Error('Unsealed native addon.'),{code:'ERR_ACCESS_DENIED'});
+ const result=originalDlopen.call(this,module,file,...args);
+ fs.appendFileSync(policy.nativeModules,JSON.stringify({...input,operation:'actual-process-dlopen'})+'\n');return result;};
+registerHooks({resolve(specifier,context,next){
+ if(context.parentURL?.startsWith(policy.originalUrl)&&specifier==='@deepseek-ai/dsh-llm')return {url:policy.llmModule,shortCircuit:true};
+ const result=next(specifier,context);if(!result.url.startsWith('node:'))fileInput(result.url);return result;
+},load(url,context,next){
+ if(url.startsWith('node:'))return next(url,context);
+ const input=fileInput(url),result=next(url,context),source=result.source==null?null:Buffer.from(result.source);
+ if(source&&hash(source)!==input.sha256)throw new Error('Loaded source differs from sealed bytes.');
+ if(!seen.has(input.path)){
+ if(seen.size>=1024)throw new Error('Loaded module count exceeded.');seen.add(input.path);
+ fs.appendFileSync(policy.modules,JSON.stringify({...input,format:result.format??null,sourceSha256:source?hash(source):null})+'\n');
+ }return result;
+}});
+const koffiModule=createRequire(import.meta.url)(policy.koffiEntry),koffi=koffiModule.default??koffiModule,originalLibraryLoad=koffi.load.bind(koffi);
+koffi.load=function(name,...args){const library=policy.platformLibraries.find(input=>name.toLowerCase()===input.name||name===input.path);
+ if(!library||hash(originalRead(library.path))!==library.sha256)throw new Error('Unsealed native library.');
+ const result=originalLibraryLoad(library.path,...args);
+ fs.appendFileSync(policy.nativeLibraries,JSON.stringify({...library,operation:'actual-koffi-load'})+'\n');return result;};
+const delegatedStat=(file,options)=>{if(options?.bigint)return null;const item=policy.directoryMetadata[path.resolve(String(file))];
+ if(!item)return null;const value=Object.assign(Object.create(fs.Stats.prototype),item);
+ for(const key of ['atime','mtime','ctime','birthtime'])value[key]=new Date(value[key]);return value;};
+let deniedCount=0;const logDenied=(name,file,error)=>{if(error?.code==='ERR_ACCESS_DENIED'&&deniedCount++<24)process.stderr.write('AWB_ACCESS_REFUSED '+name+' '+String(file)+' resource='+String(error.resource)+'\n'+error.stack+'\n');};
+for(const name of ['statSync','lstatSync','readFileSync','realpathSync','readdirSync','accessSync']){const original=fs[name];
+ const wrapped=function(file,...args){try{return original.call(this,file,...args);}catch(error){logDenied(name,file,error);throw error;}};
+ Object.assign(wrapped,original);fs[name]=wrapped;}
+for(const name of ['readFile','stat','lstat','realpath','readdir','access','open']){const original=fs[name];
+ const wrap=fn=>function(file,...args){const callback=args.at(-1);if(typeof callback==='function')args[args.length-1]=function(error,...values){logDenied(name,file,error);return callback.call(this,error,...values);};
+ try{return fn.call(this,file,...args);}catch(error){logDenied(name,file,error);throw error;}};
+ const wrapped=wrap(original);Object.assign(wrapped,original);if(original.native)wrapped.native=wrap(original.native);fs[name]=wrapped;}
+const stat=fs.promises.stat;fs.promises.stat=async function(file,options){try{return await stat.call(this,file,options);}catch(error){
+ const value=error.code==='ERR_ACCESS_DENIED'&&delegatedStat(file,options);if(value)return value;logDenied('promises.stat',file,error);throw error;}};
+for(const name of ['lstat','readFile','realpath','readdir','access','mkdir','opendir']){const original=fs.promises[name];fs.promises[name]=async function(file,...args){
+ try{return await original.call(this,file,...args);}catch(error){logDenied('promises.'+name,file,error);throw error;}};}
+const open=fs.promises.open;fs.promises.open=async function(file,...args){let handle;try{handle=await open.call(this,file,...args);}catch(error){logDenied('promises.open',file,error);throw error;}const sync=handle.sync.bind(handle);
+ handle.sync=async()=>{try{return await sync();}catch(error){if(error.code!=='ERR_ACCESS_DENIED')throw error;
+ const stat=await handle.stat({bigint:true}),response=await fetch(policy.durabilityEndpoint,{method:'POST',signal:AbortSignal.timeout(10000),
+ headers:{'Content-Type':'application/json',Authorization:'Bearer '+process.env.AWB_ORIGINAL_PURGE_DURABILITY_NONCE},
+ body:JSON.stringify({path:String(file),dev:String(stat.dev),ino:String(stat.ino),size:String(stat.size)})});
+ if(!response.ok)throw new Error('Owned durability synchronization refused.');await response.json();
+ }};return handle;};
+syncBuiltinESMExports();
+`;
+
+export class OriginalPurgeRuntime {
+ constructor(strategy,directory){
+ assertOriginalPurgeStrategy(strategy);this.strategy=strategy;this.directory=fs.realpathSync.native(directory);this.inputs=[];
+ this.report={schemaVersion:1,kind:strategy.kind,strategySha256:strategy.sha256,runtimeSha256:strategy.runtime.sha256,
+ isolation:strategy.isolation,originalConfig:strategy.originalConfig,upstreamPatchInstalled:false,
+ durabilityReceipts:[],durabilityRejections:[],loadedModules:[],nativeLoads:[],nativeLibraries:[],readiness:null};
+ }
+ async prepare(launch,installation){
+ const directory=this.directory,source=path.join(directory,'original-purge');fs.mkdirSync(source);
+ for(const input of this.strategy.source.inputs){
+ const raw=fs.readFileSync(input.path);if(sha(raw)!==input.sha256)throw engineError('复制前原版输入已变化。');
+ const target=path.join(source,input.relative);fs.mkdirSync(path.dirname(target),{recursive:true});fs.writeFileSync(target,raw,{flag:'wx'});
+ this.inputs.push({...engineFileIdentity(target),relative:input.relative});
+ }
+ this.marker=path.join(directory,'original-purge-ready.json');this.modules=path.join(directory,'original-purge-modules.jsonl');this.nativeModules=path.join(directory,'original-purge-native-modules.jsonl');
+ this.nativeLibraries=path.join(directory,'original-purge-native-libraries.jsonl');
+ const wrapper=path.join(directory,'original-purge-wrapper.mjs'),preload=path.join(directory,'original-purge-preload.mjs'),policyFile=path.join(directory,'original-purge-policy.json');
+ fs.writeFileSync(wrapper,ORIGINAL_PURGE_WRAPPER,{flag:'wx'});fs.writeFileSync(preload,ORIGINAL_PURGE_PRELOAD,{flag:'wx'});
+ const nonce=randomUUID();this.server=http.createServer((request,response)=>this.handleDurability(request,response,nonce));
+ await new Promise((resolve,reject)=>{this.server.once('error',reject);this.server.listen(0,'127.0.0.1',resolve);});
+ const directoryMetadata={};
+ for(let ancestor=path.dirname(directory);;ancestor=path.dirname(ancestor)){
+ if(fs.lstatSync(ancestor).isSymbolicLink())throw engineError('所属运行目录祖先不能是链接。');
+ const stat=fs.statSync(ancestor);directoryMetadata[ancestor]=stat;directoryMetadata[path.toNamespacedPath(ancestor)]=stat;
+ if(path.dirname(ancestor)===ancestor)break;
+ }
+ const patchFile=launch.args.at(-1),patch=JSON.parse(fs.readFileSync(patchFile));
+ patch.push({insert:[{id:'workbench-original-purge-restricted',name:wrapper,config:{entry:pathToFileURL(path.join(source,'lib/index.js')).href,
+ originalConfig:this.strategy.originalConfig,strategySha256:this.strategy.sha256,marker:this.marker}}]});fs.writeFileSync(patchFile,JSON.stringify(patch));
+ const executableInputs=[...this.strategy.runtime.inputs,...this.inputs,engineFileIdentity(wrapper),engineFileIdentity(path.join(directory,'bridge.mjs'))];
+ this.expectedModules=new Map(executableInputs.map(input=>[input.path,input]));
+ const policy={schemaVersion:1,inputs:executableInputs,modules:this.modules,nativeModules:this.nativeModules,nativeLibraries:this.nativeLibraries,
+ platformLibraries:this.strategy.runtime.platformLibraries,koffiEntry:path.join(installation.root,'node_modules/.pnpm/koffi@3.1.1/node_modules/koffi/index.js'),
+ nativeAddons:this.strategy.runtime.nativeAddons,directoryMetadata,
+ originalUrl:pathToFileURL(source+path.sep).href,llmModule:installation.llmModule,durabilityEndpoint:'http://127.0.0.1:'+this.server.address().port+'/fsync'};
+ fs.writeFileSync(policyFile,JSON.stringify(policy),{flag:'wx'});
+ this.launchInputs=[engineFileIdentity(wrapper),engineFileIdentity(preload),engineFileIdentity(policyFile),...this.inputs];
+ const metadataReads=[];
+ for(const anchor of [installation.root,launch.cwd,source])for(let ancestor=path.dirname(anchor);;ancestor=path.dirname(ancestor)){
+ metadataReads.push(path.join(ancestor,'node_modules','*'),path.join(ancestor,'package.json'));if(path.dirname(ancestor)===ancestor)break;
+ }
+ const readRoots=originalPurgeReadRoots([installation.root,path.dirname(installation.node.path),directory,launch.cwd],
+ [...metadataReads,...this.strategy.runtime.platformLibraries.map(input=>input.path)]);
+ launch.args=['--permission','--allow-addons',...[...new Set(readRoots)].flatMap(root=>['--allow-fs-read='+root,'--allow-fs-read='+path.toNamespacedPath(root)]),
+ '--allow-fs-write='+directory,'--allow-fs-write='+path.toNamespacedPath(directory),'--import',pathToFileURL(preload).href,...launch.args];
+ Object.assign(launch.env,{USERPROFILE:path.join(directory,'home'),APPDATA:path.join(directory,'home'),LOCALAPPDATA:path.join(directory,'home'),
+ NARB_DISABLE_NATIVE_CACHE:'1',AWB_ORIGINAL_PURGE_POLICY:policyFile,AWB_ORIGINAL_PURGE_DURABILITY_NONCE:nonce});
+ this.report.launchInputs=this.launchInputs;this.report.originalCopies=this.inputs;
+ this.report.permissionPolicy={readRoots,writeRoot:directory,arguments:launch.args,cwd:launch.cwd,nativeCache:false};
+ return launch;
+ }
+ async handleDurability(request,response,nonce){
+ try{
+ if(this.closed||request.method!=='POST'||request.url!=='/fsync'||request.headers.origin!==undefined||request.headers['content-type']!=='application/json'
+ ||!equal(request.headers.authorization,'Bearer '+nonce))throw engineError('同步请求不属于当前运行。');
+ const chunks=[];let size=0;for await(const chunk of request){size+=chunk.length;if(size>4096)throw engineError('同步输入超限。');chunks.push(chunk);}
+ const value=JSON.parse(Buffer.concat(chunks)),file=path.resolve(value.path);
+ if(Object.keys(value).sort().join(',')!=='dev,ino,path,size'||!file.startsWith(this.directory+path.sep)||fs.realpathSync.native(file)!==file)throw engineError('同步路径不属于运行目录。');
+ for(let current=file;current!==this.directory;current=path.dirname(current))if(fs.lstatSync(current).isSymbolicLink())throw engineError('同步路径不能经过链接。');
+ const fd=fs.openSync(file,'r+');try{
+ const stat=fs.fstatSync(fd,{bigint:true});if(!stat.isFile()||stat.size>64n*1024n*1024n)throw engineError('同步文件超限。');
+ for(const key of ['dev','ino','size'])if(String(stat[key])!==value[key])throw engineError('同步文件身份已变化。');
+ fs.fsyncSync(fd);const bytes=fs.readFileSync(fd);
+ if(BigInt(bytes.length)!==stat.size)throw engineError('同步期间文件发生变化。');
+ this.report.durabilityReceipts.push({path:path.relative(this.directory,file),dev:value.dev,ino:value.ino,size:value.size,sha256:sha(bytes),operation:'actual-parent-fsync'});
+ }finally{fs.closeSync(fd);}
+ response.writeHead(200,{'Content-Type':'application/json',Connection:'close'});response.end('{"flushed":true}');
+ }catch(error){this.report.durabilityRejections.push({at:new Date().toISOString(),reason:error.message});
+ if(!response.destroyed){response.writeHead(409,{'Content-Type':'application/json',Connection:'close'});response.end('{"error":"Owned durability request refused"}');}}
+ }
+ verify({ready=false,pid=null}={}){
+ assertOriginalPurgeStrategy(this.strategy);
+ for(const input of this.launchInputs??[])if(engineFileIdentity(input.path).sha256!==input.sha256)throw engineError('所属原版运行副本或适配输入已变化。',409,'ENGINE_INPUT_CHANGED');
+ if(ready||this.report.readiness){
+ const marker=JSON.parse(fs.readFileSync(this.marker));
+ if(marker.schemaVersion!==1||marker.pid!==(pid??this.report.readiness?.pid)||marker.strategySha256!==this.strategy.sha256
+ ||marker.originalEntryLoaded!==true||marker.originalApplyCalled!==true||marker.upstreamPatchInstalled!==false
+ ||digest(marker.originalConfig)!==digest(this.strategy.originalConfig)
+ ||digest([...marker.blockedTools].sort())!==digest(['purge_apply','purge_revert','purge_status']))throw engineError('原版入口、受限配置或外部工具门控不符合封存策略。');
+ this.report.readiness=marker;
+ }
+ if(fs.existsSync(this.modules)){
+ if(fs.statSync(this.modules).size>4*1024*1024)throw engineError('原版模块收据超限。');
+ const lines=fs.readFileSync(this.modules,'utf8').trimEnd().split('\n');
+ this.report.loadedModules=lines.filter(Boolean).map(line=>{const item=JSON.parse(line),expected=this.expectedModules.get(item.path);
+ if(!expected||item.sha256!==expected.sha256||item.bytes!==expected.bytes||item.sourceSha256!==null&&item.sourceSha256!==expected.sha256)throw engineError('实际加载模块与封存输入不符。');return item;});
+ if(this.report.loadedModules.length>1024)throw engineError('原版模块收据数量超限。');
+ }
+ if(fs.existsSync(this.nativeModules)){
+ if(fs.statSync(this.nativeModules).size>65536)throw engineError('原生加载收据超限。');
+ this.report.nativeLoads=fs.readFileSync(this.nativeModules,'utf8').trimEnd().split('\n').filter(Boolean).map(line=>{const item=JSON.parse(line);
+ if(!this.strategy.runtime.nativeAddons.some(expected=>expected.path===item.path&&expected.sha256===item.sha256&&expected.bytes===item.bytes)
+ ||item.operation!=='actual-process-dlopen')throw engineError('实际原生加载不属于固定清单。');return item;});
+ }
+ if(fs.existsSync(this.nativeLibraries)){
+ if(fs.statSync(this.nativeLibraries).size>65536)throw engineError('原生库加载收据超限。');
+ this.report.nativeLibraries=fs.readFileSync(this.nativeLibraries,'utf8').trimEnd().split('\n').filter(Boolean).map(line=>{const item=JSON.parse(line);
+ if(!this.strategy.runtime.platformLibraries.some(expected=>expected.path===item.path&&expected.sha256===item.sha256&&expected.bytes===item.bytes)
+ ||item.operation!=='actual-koffi-load')throw engineError('实际原生库加载不属于固定清单。');return item;});
+ }
+ if(ready&&this.report.nativeLoads.length!==this.strategy.runtime.nativeAddons.length)throw engineError('未核对固定原生模块的实际加载。');
+ return this.report;
+ }
+ async close(){if(this.closed)return;this.closed=true;if(this.server){this.server.closeAllConnections();await new Promise(resolve=>this.server.close(resolve));}}
+}
diff --git a/src/core/engines/original-purge-source.mjs b/src/core/engines/original-purge-source.mjs
new file mode 100644
index 00000000..12218b3e
--- /dev/null
+++ b/src/core/engines/original-purge-source.mjs
@@ -0,0 +1,64 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import {createHash} from 'node:crypto';
+import lock from './original-purge-lock.json' with {type:'json'};
+import {engineCanonicalDigest as digest,engineError} from '../../shared/contracts/engines.mjs';
+import {engineFileIdentity} from './deepseek-installation.mjs';
+
+export const ORIGINAL_PURGE_KIND='purge-original-restricted-v1';
+export const ORIGINAL_PURGE_LOCK_SHA256=digest(lock);
+const hash=bytes=>createHash('sha256').update(bytes).digest('hex');
+const changed=message=>engineError(message,409,'ENGINE_INPUT_CHANGED');
+function directory(root){
+ if(typeof root!=='string'||!path.isAbsolute(root)||!fs.lstatSync(root).isDirectory()||fs.lstatSync(root).isSymbolicLink())throw changed('原版来源需要普通绝对目录。');
+ return fs.realpathSync.native(root);
+}
+function pinnedInputs(root,expected,{original=false}={}){
+ const inputs=expected.map(input=>{
+ const file=path.join(root,input.relative),identity=engineFileIdentity(file,8*1024*1024);
+ if(!identity.path.startsWith(root+path.sep)||identity.bytes!==input.bytes||identity.sha256!==input.sha256)throw changed('固定原版输入已变化:'+input.relative);
+ if(original){
+ for(let current=file;current!==root;current=path.dirname(current))if(fs.lstatSync(current).isSymbolicLink())throw changed('原版输入不能经过链接。');
+ }
+ return {...identity,relative:input.relative};
+ });
+ if(original){
+ const found=[];function walk(relative){const file=path.join(root,relative),stat=fs.lstatSync(file);
+ if(stat.isSymbolicLink())throw changed('原版 lib 不能包含链接。');
+ if(stat.isDirectory()){for(const name of fs.readdirSync(file))walk(path.join(relative,name));}
+ else if(stat.isFile())found.push(relative.replaceAll('\\','/'));else throw changed('原版 lib 包含非普通文件。');
+ if(found.length>128)throw changed('原版 lib 文件数量超出固定版本。');
+ }walk('lib');
+ if(digest(found.sort())!==digest(expected.filter(item=>item.relative.startsWith('lib/')).map(item=>item.relative).sort()))throw changed('原版 lib 文件集合已变化。');
+ }
+ return inputs;
+}
+export function originalPurgeSource(root){
+ root=directory(root);const inputs=pinnedInputs(root,lock.original,{original:true});
+ const source={name:'dsh-purge',version:lock.purgeVersion,dshTarget:lock.harnessVersion,license:'Apache-2.0',attribution:'YuJunZhiXue / dsh-purge',root,inputs,lockSha256:ORIGINAL_PURGE_LOCK_SHA256};
+ return {...source,sourceSha256:digest(source)};
+}
+export function originalPurgeRuntime(installation){
+ if(process.platform!=='win32'||process.arch!=='x64')throw changed('当前原版受限配置仅核验 Windows x64。');
+ if(installation?.controlledStatus!=='available'||installation.version!==lock.harnessVersion)throw changed('原版受限模式需要已检测的 Harness 0.2.1-rc.2。');
+ const root=directory(installation.root),inputs=pinnedInputs(root,lock.harness);
+ const platformLibraries=['kernel32.dll','advapi32.dll'].map(name=>({...engineFileIdentity(path.join(process.env.SystemRoot,'System32',name)),name}));
+ const runtime={root,inputs,node:installation.node,lockSha256:ORIGINAL_PURGE_LOCK_SHA256,platformLibraries,
+ nativeAddons:lock.nativeAddons.map(input=>({...input,path:path.join(root,input.relative)}))};
+ return {...runtime,sha256:digest(runtime)};
+}
+export function originalPurgeStrategy(source,runtime,prompt){
+ const postPrompt='[Agent Workbench original Purge '+source.sourceSha256+' / '+hash(Buffer.from(prompt))+']\n'+prompt+'\n[/Agent Workbench original Purge]';
+ const config={enabled:true,autoApplyOnStart:false,autoUpdateOnStart:false,autoRevertOnMissing:false,injectOnce:false,stripMnemon:true,verbose:false,
+ autoRetry:false,retryMax:0,autoContinue:false,continueMax:0,capabilityProtocol:true,hooksDenyBypass:false,postPromptOrder:5100,postPrompt};
+ const strategy={schemaVersion:1,kind:ORIGINAL_PURGE_KIND,enabled:true,source,runtime,prompt,promptSha256:hash(Buffer.from(prompt)),originalConfig:config,
+ implementation:'workbench-original-entry-restricted-v1',upstreamPluginLoaded:true,automaticRetry:false,hostModification:false,
+ isolation:{profile:'fixed-trusted-source-node-permissions-v1',osSandbox:false,pinnedNativeAddons:true,arbitraryNativeAddons:false,originalTools:false,credentials:false}};
+ return {...strategy,sha256:digest(strategy)};
+}
+export function assertOriginalPurgeStrategy(strategy){
+ const source=originalPurgeSource(strategy.source?.root),runtime=originalPurgeRuntime({controlledStatus:'available',version:lock.harnessVersion,...strategy.runtime});
+ const node=engineFileIdentity(strategy.runtime.node.path,256*1024*1024);
+ if(node.sha256!==strategy.runtime.node.sha256||node.bytes!==strategy.runtime.node.bytes||strategy.runtime.node.version!==process.versions.node
+ ||digest(originalPurgeStrategy(source,runtime,strategy.prompt))!==digest(strategy))throw changed('原版策略、运行器或固定加载输入已变化,请保留原记录并封存新计划。');
+}
diff --git a/src/core/engines/purge-strategy.mjs b/src/core/engines/purge-strategy.mjs
index 66f63460..ecf37ef5 100644
--- a/src/core/engines/purge-strategy.mjs
+++ b/src/core/engines/purge-strategy.mjs
@@ -4,6 +4,8 @@ import { createHash } from 'node:crypto';
import { engineError, engineCanonicalDigest } from '../../shared/contracts/engines.mjs';
import { engineFileIdentity } from './deepseek-installation.mjs';
import { registeredSourceRoots } from './registered-sources.mjs';
+import { ORIGINAL_PURGE_KIND, originalPurgeSource, originalPurgeRuntime, originalPurgeStrategy, assertOriginalPurgeStrategy } from './original-purge-source.mjs';
+export { ORIGINAL_PURGE_KIND } from './original-purge-source.mjs';
export const PURGE_SOURCE_FILES = Object.freeze(['package.json', 'lib/index.js', 'lib/identity.js', 'lib/core.js',
'lib/continue-retry.js', 'lib/capability-protocol.js', 'cordis.patch.yml', 'LICENSE', 'NOTICE']);
@@ -69,7 +71,22 @@ function strategyFor(source, prompt) {
implementation: 'workbench-independent-prompt-v1', upstreamPluginLoaded: false, automaticRetry: false, hostModification: false };
return { ...strategy, sha256: engineCanonicalDigest(strategy) };
}
-export function selectPurgeStrategy(input, appDirectory = process.cwd()) {
+export function resolveOriginalPurgeSource(appDirectory=process.cwd(),root,installation) {
+ const detected=resolvePurgeSource(appDirectory,root),base={...detected,kind:ORIGINAL_PURGE_KIND,supportedVersions:['1.1.78']};
+ try {
+ const source=originalPurgeSource(detected.root),runtime=originalPurgeRuntime(installation);
+ return {...base,...source,status:'available',runtimeSha256:runtime.sha256,runtimeInputs:runtime.inputs.length,
+ message:'原版 1.1.78 完整文件与固定 Harness 依赖已核对。使用独立运行副本;自动重试、继续和原版修改工具关闭。'};
+ }catch(error){return {...base,status:'unavailable',sourceSha256:undefined,message:'原版受限模式尚不可用:'+error.message};}
+}
+export function selectPurgeStrategy(input, appDirectory = process.cwd(), installation) {
+ if(input?.kind===ORIGINAL_PURGE_KIND){
+ if(Object.keys(input).some(key=>!['kind','root','sourceSha256','runtimeSha256','prompt'].includes(key)))throw engineError('原版受限模式不接受权限或自动重试参数。',400);
+ promptText(input.prompt);
+ const source=resolveOriginalPurgeSource(appDirectory,input.root,installation);
+ if(source.status!=='available'||source.sourceSha256!==input.sourceSha256||source.runtimeSha256!==input.runtimeSha256)throw engineError('原版来源或运行依赖与刚才的检测不一致,请重新检测并封存新计划。');
+ return originalPurgeStrategy(originalPurgeSource(source.root),originalPurgeRuntime(installation),input.prompt);
+ }
if (!input || typeof input !== 'object' || Array.isArray(input) || Object.keys(input).some(key => !['kind', 'root', 'sourceSha256', 'prompt'].includes(key))
|| input.kind !== PURGE_PROMPT_KIND || typeof input.root !== 'string' || !/^[a-f0-9]{64}$/.test(input.sourceSha256 ?? '')) {
throw engineError('实验策略只接受已检测来源与完整工程提示。', 400);
@@ -81,6 +98,7 @@ export function selectPurgeStrategy(input, appDirectory = process.cwd()) {
}
export function assertPurgeStrategy(strategy) {
if (strategy === undefined) return;
+ if(strategy?.kind===ORIGINAL_PURGE_KIND){promptText(strategy.prompt);return assertOriginalPurgeStrategy(strategy);}
if (!strategy || strategy.kind !== PURGE_PROMPT_KIND || strategy.enabled !== true || !strategy.source) throw engineError('原提示实验策略无效。');
const source = resolvePurgeSource(process.cwd(), strategy.source.root);
if (source.status !== 'available' || source.sourceSha256 !== strategy.source.sourceSha256) throw engineError('Purge 来源已变化,原提示实验不能继续;请保留记录并封存新计划。', 409, 'ENGINE_INPUT_CHANGED');
@@ -93,7 +111,8 @@ export function nativeSystemTexts(input) {
}
export function assertPurgeModelInput(input, strategy) {
if (!strategy) return;
- if (nativeSystemTexts(input).reduce((count, text) => count + text.split(strategy.section.text).length - 1, 0) !== 1) {
+ const expected=strategy.kind===ORIGINAL_PURGE_KIND?strategy.originalConfig.postPrompt:strategy.section.text;
+ if (nativeSystemTexts(input).reduce((count, text) => count + text.split(expected).length - 1, 0) !== 1) {
throw engineError('实际模型输入缺少唯一完整的封存提示实验段,未发送请求。');
}
}
diff --git a/src/server/app.mjs b/src/server/app.mjs
index 5048fe1a..0bd6800c 100644
--- a/src/server/app.mjs
+++ b/src/server/app.mjs
@@ -9,7 +9,7 @@ import { assertWorkspacesResolved } from '../shared/contracts/workspaces.mjs';
import { verifyWorkspaceProject } from '../core/workspaces/git-workspaces.mjs';
import { publicEngineJob } from '../shared/contracts/engines.mjs';
import { publicEngineRun, verifyEngineInput, originalEngineRun } from '../shared/contracts/engine-execution.mjs';
-import { resolvePurgeSource } from '../core/engines/purge-strategy.mjs';
+import { resolvePurgeSource,resolveOriginalPurgeSource,ORIGINAL_PURGE_KIND } from '../core/engines/purge-strategy.mjs';
import { verifyBrowserJob } from '../core/browser/browser-manager.mjs';
import { ConfigImporter } from '../core/models/config-import.mjs';
import { ProjectMemoryManager } from '../core/memory/project-memory.mjs';
@@ -24,7 +24,12 @@ import { readInstallationProgress } from '../core/desktop/installation-progress.
export function createSessionPublisher(clients) {
return session => {
- const payload = (session.eventSeq ? 'id: ' + session.eventSeq + '\n' : '') + 'data: ' + JSON.stringify({ kind: 'session', seq: session.eventSeq, session }) + '\n\n';
+ const snapshot = JSON.stringify({ kind: 'session', seq: session.eventSeq, session });
+ // Large source/Run receipts stay in the session API. Repeatedly queueing
+ // them on SSE can disconnect a healthy reader before it receives a cursor.
+ const data = Buffer.byteLength(snapshot) <= 64 * 1024 ? snapshot : JSON.stringify({ kind: 'session_changed', seq: session.eventSeq,
+ sessionId: session.id, projectId: session.projectId, revision: session.revision });
+ const payload = (session.eventSeq ? 'id: ' + session.eventSeq + '\n' : '') + 'data: ' + data + '\n\n';
for (const response of clients) {
if (response.destroyed || response.writableEnded || response.writableLength > 2 * 1024 * 1024) { response.destroy(); clients.delete(response); }
else response.write(payload);
@@ -243,7 +248,13 @@ return async (request, response) => {
if (method === 'GET' && route === '/api/research/availability') return json(response, runtime.researchManager().availability());
if (method === 'GET' && route === '/api/engines/deepseek/availability') return json(response, runtime.engineManager().availability(url.searchParams.has('root') ? url.searchParams.get('root') : undefined));
if (method === 'GET' && route === '/api/engines/deepseek/controlled-availability') return json(response, runtime.engineRunner().availability(url.searchParams.has('root') ? url.searchParams.get('root') : undefined));
- if (method === 'GET' && route === '/api/engines/purge/source') return json(response, resolvePurgeSource(appDirectory, url.searchParams.has('root') ? url.searchParams.get('root') : undefined));
+ if (method === 'GET' && route === '/api/engines/purge/source') {
+ const root=url.searchParams.has('root')?url.searchParams.get('root'):undefined;
+ if(url.searchParams.get('kind')===ORIGINAL_PURGE_KIND)return json(response,resolveOriginalPurgeSource(appDirectory,root,
+ runtime.engineRunner().availability(url.searchParams.has('harnessRoot')?url.searchParams.get('harnessRoot'):undefined)));
+ if(url.searchParams.has('kind')&&url.searchParams.get('kind')!=='purge-prompt-experiment')throw Object.assign(new Error('未知 Purge 策略。'),{status:400});
+ return json(response,resolvePurgeSource(appDirectory,root));
+ }
if (method === 'GET' && route === '/api/events') {
const cursor = Math.max(cursorNumber(url.searchParams.get('after')), cursorNumber(request.headers['last-event-id']));
if (cursor > store.eventCursor) throw Object.assign(new Error('事件游标超出当前历史,请重新加载工作台。'), { status: 409 });
diff --git a/task_plan.md b/task_plan.md
index 784dfae2..f4135d6b 100644
--- a/task_plan.md
+++ b/task_plan.md
@@ -1,5 +1,19 @@
# Agent Workbench:核心代理能力研究与产品计划
+## 当前接续 D:原版 Purge 生产策略
+
+接续研究/封存 7b4f7ee / 1408e7a,A/B/C 不重做;独立端口和自有夹具,正式宿主与 Key 不操作。继续沿用 planning-with-files 与 product-ui-ux;本轮不启动子代理。
+
+1. [complete] D1 原版 60 文件、393 份 Harness/元数据/原生文件固定;REA 静态核对两原生模块的导入与延迟导入。原版策略和九文件提示实验分开。
+2. [complete] D2 可复用运行副本/入口 facade/权限/实际 fsync broker 已接入 ControlledDeepSeekSession。生产适配的正常完成/模型失败不重试/宿主拒绝工具三场景通过;原生模块两项逐实际 dlopen、系统 DLL 绝对路径/hash 及加载收据保留,不宣称 OS 沙箱。
+3. [in_progress] D3 复用 Task/Run 消费和预算门控,默认关闭的原版模式/完整来源检测/策略明细已实现。宿主四场景和原生32K工程五组开发轮通过;界面实际发现大体积会话反复SSE推送导致积压断开,已改有游标的有界变更通知,最终冻结/回归及UI重验接续。
+4. [pending] D4 专项回归、实际 Harness/自有 HTTP 工程链路、编译界面两视口、来源/进程退出/证据封存及本地 Git 回顾。必要项未通过不标 D 完成。
+5. [pending] E 新真实交付和原版 AB/BA 对照;D 通过后另冻结来源,保留原六例与全部失败分母,不续跑旧任务。
+
+恢复读取时三次批读总输出超过工具上限,截断内容不作为审查依据;后续限制每批总输出和具体短段。
+
+本轮原失败保持:host零请求时缺consumption暴露验证器缺陷;原版16K固定指令/工具/余量不适配,0HTTP拒绝,单列32K不修改旧原轮;UI异步导航竞态已等待真实检视区,后续两次UI四功能通过但事件连接断开判失败,不能忽略;实际定位publisher超过2MiB队列时destroy。build第二轮npm脚本子进程误用PATH内Node16失败,第三轮显式前置Node24后通过,不改系统全局配置。
+
## 当前修复B/C:连接阶段诊断与实际模型身份
A已提交0a58c0d/6257bba并封存。继续先完成网络与报告中的确定问题,再校准后续预算和原版插件隔离;不请求真实模型,不改正式Provider。原GPT失败是UND_ERR_CONNECT_TIMEOUT、约10秒连接阶段,而非300秒响应等待;当前没有HTTP(S)_PROXY环境设置,不能推断是Key或模型拒绝。
diff --git a/tests/api.test.mjs b/tests/api.test.mjs
index 28e156fb..354c81a6 100644
--- a/tests/api.test.mjs
+++ b/tests/api.test.mjs
@@ -4,6 +4,26 @@ import fs from 'node:fs';
import path from 'node:path';
import http from 'node:http';
import { fixture, launchWorkbench, compatibleFixture, until, assertToolPairs } from './helpers.mjs';
+import { createSessionPublisher } from '../src/server/app.mjs';
+
+test('large source receipts use cursor-preserving invalidation without filling the event stream or changing the session', () => {
+ const session = { id: 'owned-session', projectId: 'owned-project', revision: 10, eventSeq: 42, source: '汉'.repeat(24000) };
+ let queued = 0, destroyed = false; const chunks = [];
+ const response = { get writableLength() { return queued; }, write(value) { queued += Buffer.byteLength(value); chunks.push(value); }, destroy() { destroyed = true; } };
+ const publish = createSessionPublisher(new Set([response]));
+ for (let i = 0; i < 100; i++) publish(session);
+ assert.equal(destroyed, false); assert.ok(queued < 64 * 1024);
+ assert.ok(chunks.every(value => value.startsWith('id: 42\ndata: ')));
+ assert.deepEqual(JSON.parse(chunks[0].split('\ndata: ')[1]), { kind: 'session_changed', seq: 42, sessionId: session.id, projectId: session.projectId, revision: 10 });
+ assert.equal(session.source, '汉'.repeat(24000)); assert.equal(session.eventSeq, 42);
+});
+
+test('small event updates retain the current session and actual cursor', () => {
+ const session = { id: 'owned-small', projectId: 'owned-project', revision: 3, eventSeq: 7, status: 'awaiting_approval' }, chunks = [];
+ createSessionPublisher(new Set([{ write(value) { chunks.push(value); } }]))(session);
+ assert.deepEqual(JSON.parse(chunks[0].split('\ndata: ')[1]), { kind: 'session', seq: 7, session });
+ assert.ok(chunks[0].startsWith('id: 7\n'));
+});
test('the bundled local service enforces host, origin, token and JSON object contracts', async t => {
const f = fixture(t), server = await launchWorkbench(t, f.data); f.onCleanup(server.close);
diff --git a/tests/original-purge.test.mjs b/tests/original-purge.test.mjs
new file mode 100644
index 00000000..b9cd4fbe
--- /dev/null
+++ b/tests/original-purge.test.mjs
@@ -0,0 +1,62 @@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import path from 'node:path';
+import {spawnSync} from 'node:child_process';
+import {fixture} from './helpers.mjs';
+import {originalPurgeSource,ORIGINAL_PURGE_KIND} from '../src/core/engines/original-purge-source.mjs';
+import {resolveOriginalPurgeSource,selectPurgeStrategy,assertPurgeModelInput} from '../src/core/engines/purge-strategy.mjs';
+import {originalPurgeReadRoots,OriginalPurgeRuntime} from '../src/core/engines/original-purge-runtime.mjs';
+import lock from '../src/core/engines/original-purge-lock.json' with {type:'json'};
+
+function source(f){const root=path.join(f.root,'original');fs.mkdirSync(root);
+ for(const input of lock.original){const target=path.join(root,input.relative);fs.mkdirSync(path.dirname(target),{recursive:true});
+ fs.copyFileSync(path.resolve('docs/original-purge-load-evidence/upstream',input.relative),target);}
+ return root;
+}
+test('original source locks all 60 byte-identical files including modules outside the nine-file prompt experiment',t=>{
+ const f=fixture(t),root=source(f),before=originalPurgeSource(root);assert.equal(before.inputs.length,60);assert.equal(before.version,'1.1.78');
+ const file=before.inputs.find(input=>input.relative==='lib/host.js');assert.ok(file);
+ fs.appendFileSync(file.path,'\n// changed outside old prompt lock\n');assert.throws(()=>originalPurgeSource(root),/固定原版输入已变化/);
+});
+test('a new original executable or missing license cannot silently join the fixed trusted-source profile',t=>{
+ const f=fixture(t),root=source(f);fs.writeFileSync(path.join(root,'lib/unsealed.js'),'export const added=true;');
+ assert.throws(()=>originalPurgeSource(root),/文件集合已变化/);fs.unlinkSync(path.join(root,'lib/unsealed.js'));fs.unlinkSync(path.join(root,'NOTICE'));
+ assert.throws(()=>originalPurgeSource(root));
+});
+test('original mode has a separate source identity and does not accept retry or privilege fields',t=>{
+ const f=fixture(t),root=source(f),available=resolveOriginalPurgeSource(f.root,root,{controlledStatus:'unavailable'});
+ assert.equal(available.kind,ORIGINAL_PURGE_KIND);assert.equal(available.status,'unavailable');assert.equal(available.sourceSha256,undefined);
+ assert.match(available.message,/Harness/);
+ for(const field of ['automaticRetry','hooksDenyBypass','hostModification'])assert.throws(()=>selectPurgeStrategy({kind:ORIGINAL_PURGE_KIND,root,prompt:'owned task',[field]:true}),/不接受/);
+});
+test('actual original model input requires the complete postPrompt once in system context and cannot borrow a user or tool copy',()=>{
+ const strategy={kind:ORIGINAL_PURGE_KIND,originalConfig:{postPrompt:'[sealed original engineering prompt]'}};
+ const system=text=>({system:text,messages:[]});assertPurgeModelInput(system(strategy.originalConfig.postPrompt),strategy);
+ assert.throws(()=>assertPurgeModelInput(system(strategy.originalConfig.postPrompt.repeat(2)),strategy),/唯一完整/);
+ assert.throws(()=>assertPurgeModelInput({messages:[{role:'user',content:[{type:'text',text:strategy.originalConfig.postPrompt}]}]},strategy),/唯一完整/);
+});
+test('Windows directory permissions normalize overlapping grants without allowing an unrelated sibling',t=>{
+ const f=fixture(t),workspace=path.join(f.root,'workspace'),native=path.join(workspace,'native'),sibling=path.join(f.root,'unrelated');
+ fs.mkdirSync(native,{recursive:true});fs.mkdirSync(sibling);fs.writeFileSync(path.join(sibling,'sentinel.txt'),'protected');
+ const roots=originalPurgeReadRoots([native,workspace],[]);assert.deepEqual(roots,[fs.realpathSync.native(workspace)]);
+ const script='const fs=require("node:fs");fs.realpath.native(process.argv[1],(error,result)=>{if(error)throw error;try{fs.readFileSync(process.argv[2]);process.exitCode=2;}catch(error){if(error.code!=="ERR_ACCESS_DENIED")throw error;process.stdout.write("allowed-directory-and-denied-sibling");}});';
+ const result=spawnSync(process.execPath,['--permission',...roots.flatMap(root=>['--allow-fs-read='+root,'--allow-fs-read='+path.toNamespacedPath(root)]),'-e',script,workspace,path.join(sibling,'sentinel.txt')],{encoding:'utf8',windowsHide:true});
+ assert.equal(result.status,0,result.stderr);assert.equal(result.stdout,'allowed-directory-and-denied-sibling');
+});
+test('durability broker rejects foreign authentication, outside paths and wrong file identity before real fsync',async t=>{
+ const f=fixture(t),directory=path.join(f.root,'run');fs.mkdirSync(directory);const file=path.join(directory,'owned.jsonl');fs.writeFileSync(file,'owned\n');
+ // Exercise the public broker handler with an explicitly declared object;
+ // original-source loading is verified separately by the actual Harness driver.
+ const broker=Object.assign(Object.create(OriginalPurgeRuntime.prototype),{directory,report:{durabilityReceipts:[],durabilityRejections:[]}});
+ const {Readable}=await import('node:stream');
+ const run=async(value,authorization='Bearer owned')=>{
+ const request=Readable.from([Buffer.from(JSON.stringify(value))]);Object.assign(request,{method:'POST',url:'/fsync',headers:{'content-type':'application/json',authorization}});
+ const response={writeHead(status){this.status=status;},end(body){this.body=body;}};
+ await broker.handleDurability(request,response,'owned');return response;
+ };
+ const stat=fs.statSync(file,{bigint:true}),value={path:file,dev:String(stat.dev),ino:String(stat.ino),size:String(stat.size)};
+ assert.equal((await run(value,'Bearer foreign')).status,409);assert.equal((await run({...value,path:path.join(f.root,'outside')})).status,409);
+ assert.equal((await run({...value,ino:'0'})).status,409);assert.equal(broker.report.durabilityReceipts.length,0);
+ assert.equal((await run(value)).status,200);assert.equal(broker.report.durabilityReceipts.length,1);assert.equal(broker.report.durabilityReceipts[0].operation,'actual-parent-fsync');
+});