copy(contracts): 设置校验、事件说明与 API 摘要统一术语
恢复水位 / 硬阈值 → 恢复线 / 暂停线;库根、哨兵、Feed、快照、建档、纳管等按术语表改。 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
0ba947dce3
commit
b752ce26f7
13 files changed
+44
-44
No files matched your search
@@ -62,8 +62,8 @@ const CacheShape = z.object({
|
||||
});
|
||||
/** 下载缓存卷硬阈值与恢复水位(REQ §8.4.1) */
|
||||
export const CacheSettings = CacheShape.refine((v) => v.resumePercent < v.hardThresholdPercent, {
|
||||
message: "恢复水位必须低于硬阈值",
|
||||
}).refine((v) => v.cleanupTargetPercent <= v.resumePercent, { message: "清理目标不得高于恢复水位" });
|
||||
message: "恢复线必须低于暂停线",
|
||||
}).refine((v) => v.cleanupTargetPercent <= v.resumePercent, { message: "清理目标不能高于恢复线" });
|
||||
export type CacheSettings = z.infer<typeof CacheSettings>;
|
||||
|
||||
export const OrganizeMode = z.enum(["copy", "move"]);
|
||||
@@ -534,7 +534,7 @@ export const StorageBudgets = z
|
||||
/** Agent 会话 + 视觉证据(DATA_DIR/agent-sessions、tmp/evidence)预算(GB) */
|
||||
sessionsEvidenceGb: Gb,
|
||||
})
|
||||
.refine((v) => v.pgDataWarnGb <= v.pgDataGb, { message: "PG 告警线不得高于预算" });
|
||||
.refine((v) => v.pgDataWarnGb <= v.pgDataGb, { message: "PG 告警线不能高于预算" });
|
||||
export type StorageBudgets = z.infer<typeof StorageBudgets>;
|
||||
|
||||
/** 各类流水数据保留期(到期由 storage.retention.* 定时任务分批删除) */
|
||||
@@ -1130,7 +1130,7 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
|
||||
id: "agent",
|
||||
group: "flow",
|
||||
label: "智能体",
|
||||
description: "模型服务、用量与防跑飞限制、自动处理、网页搜索、MCP",
|
||||
description: "模型服务、用量与限制、自动处理、网页搜索、MCP",
|
||||
legacyTabs: [{ tab: "pi" }],
|
||||
anchors: [
|
||||
{ id: "upstream", label: "模型服务", keywords: ["默认模型服务", "订阅登录"] },
|
||||
|
||||
Reference in new issue
Block a user