copy(server,contracts): 按各路术语建议统一用词

下载盘、页面验证、站点页、交给智能体、后台任务、提供方、凭证、其他、抓取间隔、
需要处理的事项、候选作品 / 匹配到多部作品、作品(不叫条目)、挂载点、下载中;
识别查询不再说「远端」,回收站与收录版本提示去掉公文腔;数据保留标签与设置页一致;同步断言。

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:10:19 +08:00
1 parent e9e20e7e79
commit 148b12f279
58 files changed
+131 -128

No files matched your search

+7 -7
View File
@@ -81,11 +81,11 @@ describe.skipIf(!hasPg)("数据库清理(真实 PG)", () => {
const preview = await previewJob(job("task_run"), ctx());
const rows = (label: string) => preview.find((p) => p.label === label)?.rows;
expect(rows("引擎 run")).toBe(4);
expect(rows("后台任务运行记录")).toBe(4);
expect(rows("引擎步骤(随 run 级联)")).toBe(3);
expect(rows("运行元数据")).toBe(2);
expect(await run("task_run")).toMatch(/业务任务 0、引擎 run 4、运行元数据 2 行已删除/);
expect(await run("task_run")).toMatch(/后台任务 0、运行记录 4、运行元数据 2 行已删除/);
expect(await ids(sql<{ id: string }>`select id from ${ow("workflow_runs")}`)).toEqual(
["child-of-running", "fresh-done", "old-running", "old-task-ref", "parent-running"].sort(),
);
@@ -108,7 +108,7 @@ describe.skipIf(!hasPg)("数据库清理(真实 PG)", () => {
await sql`insert into agent_run (trigger, goal, status, task_id) values ('user', 'g', 'succeeded', ${ref})`.execute(
h.db,
);
expect(await run("task_run")).toMatch(/业务任务 1、/);
expect(await run("task_run")).toMatch(/后台任务 1、/);
const left = await sql<{ k: string }>`select idempotency_key as k from task where kind = 'k' order by 1`.execute(
h.db,
);
@@ -189,11 +189,11 @@ describe.skipIf(!hasPg)("数据库清理(真实 PG)", () => {
expect(Object.fromEntries(preview.map((p) => [p.label, p.rows]))).toEqual({
已投递事件: 3,
识别尝试: 2,
已识别的未识别资源: 1,
站点抓取记录: 3,
未识别中已识别的条目: 1,
站点抓取结果: 3,
});
// 站点快照 3 行、batchSize 2:分两批
expect(await run("pipeline")).toBe("已投递事件 3、识别尝试 2、已识别的未识别资源 1、站点抓取记录 3 行已删除");
expect(await run("pipeline")).toBe("已投递事件 3、识别尝试 2、未识别中已识别的条目 1、站点抓取结果 3 行已删除");
const types = await sql<{ id: string }>`select type as id from outbox_event`.execute(h.db);
expect(types.rows.map((r) => r.id).sort()).toEqual(
@@ -225,7 +225,7 @@ describe.skipIf(!hasPg)("数据库清理(真实 PG)", () => {
h.db,
);
const counts = await countRules(h.db, job("pipeline").rules!(ctx()));
expect(counts.find((p) => p.label === "站点抓取记录")?.rows).toBe(1);
expect(counts.find((p) => p.label === "站点抓取结果")?.rows).toBe(1);
});
it("定时任务登记:流水数据清理每天低峰一次(cron)", () => {
+1 -1
View File
@@ -187,7 +187,7 @@ describe.skipIf(!hasPg)("CACHE-2 存储(真实 PG)", () => {
await run("r-old-done", "completed", old);
await run("r-old-running", "running", old);
await run("r-new", "completed", now);
expect(await job("task_run")(now)).toMatch(/业务任务 2、引擎 run 1/);
expect(await job("task_run")(now)).toMatch(/后台任务 2、运行记录 1/);
expect(
(await sql<{ idempotency_key: string }>`select idempotency_key from task order by 1`.execute(h.db)).rows.map(
(r) => r.idempotency_key,