Integrate SCUM real ops workflows

This commit is contained in:
npc0-hue
2026-08-10 21:12:53 +08:00
parent 1063330710
commit a770bc6250
88 changed files with 6375 additions and 2719 deletions
+7 -11
View File
@@ -178,14 +178,10 @@ async function main() {
markers: [
server.name,
`${server.id} · 插件 ${server.pluginId}@${server.pluginVersion} · 节点 ${server.runEndpointId}`,
"概览",
"启动",
"停止",
"日志",
"管理终端",
"配置",
"AI 助手",
"操作历史"
"管理",
"AI 助手"
]
}
];
@@ -818,8 +814,8 @@ async function verifyLifecycleOperation(headers, server, chrome) {
const job = await waitForJob(headers, currentServer.id, result.job.id);
await chrome.navigate(`${webUrl}/#/servers/${encodeURIComponent(currentServer.id)}`);
await chrome.waitForText([currentServer.name, "操作历史"], "server detail after lifecycle operation");
const historyState = await clickAndVerify(chrome, "操作历史", ["操作历史", "平台任务记录", "server-lifecycle", "process."]);
await chrome.waitForText([currentServer.name, "管理", "AI 助手"], "server detail after lifecycle operation");
const manageState = await clickAndVerify(chrome, "管理", ["部署定义", "基本信息", "管理成员"]);
return {
action,
@@ -832,10 +828,10 @@ async function verifyLifecycleOperation(headers, server, chrome) {
},
acceptedJob: pick(result.job, ["id", "serverInstanceId", "runEndpointId", "capability", "state", "resultRef"]),
job: pick(job, ["id", "serverInstanceId", "runEndpointId", "capability", "state", "resultRef"]),
proof: `platform API accepted ${expectedCapability} and platform-owned jobs endpoint returned the same job; browser verified operation history entry point without direct run access`,
proof: `platform API accepted ${expectedCapability} and platform-owned jobs endpoint returned the same job; browser verified safe management entry point without direct run access`,
browserEvidence: {
...historyState,
proofMode: "operation-history-entry-point"
...manageState,
proofMode: "safe-management-entry-point"
}
};
}