copy: 巡检目标与引擎统计摘要去掉「待处理」;格式化改动文件

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 02:11:33 +08:00
1 parent d9af105387
commit 25d0a074ca
7 files changed
+10 -8

No files matched your search

@@ -43,7 +43,7 @@ const D = {
method: "get",
path: "/engine/stats",
scope: "admin",
summary: "按状态计数 / 最老待处理 / 活跃 worker 快照",
summary: "按状态计数 / 最早排队的运行 / 活跃 worker",
response: EngineStats,
tags,
},
@@ -206,8 +206,7 @@ export async function deleteFiles(
body: FilesDeleteRequest,
): Promise<FilesDeleteResult> {
if (body.mode === "permanent") {
if (!d.options.allowPermanentDelete)
throw new FilesError("permanent_disabled", "永久删除没有开启。改用回收站");
if (!d.options.allowPermanentDelete) throw new FilesError("permanent_disabled", "永久删除没有开启。改用回收站");
if (!isAdminSession(principal)) throw new FilesError("forbidden", "永久删除只允许控制台管理员会话");
}
const downloads = await managedDownloads(d);
@@ -33,7 +33,7 @@ export const BUILTIN_AGENT_CHECKS: {
everyMs: 6 * HOUR,
config: {
goalTemplate:
"巡检待处理({{now}}):有 {{openDecisions}} 条未关闭的需要处理的事项。逐条查看证据,按紧急程度排序," +
"巡检事项({{now}}):有 {{openDecisions}} 条未关闭的需要处理的事项。逐条查看证据,按紧急程度排序," +
"给出处理建议和理由。只读,不做任何变更。",
capabilityAllowlist: [...INVESTIGATE_CAPABILITIES],
budget: { maxToolCalls: 20, maxDurationSec: 300 },