文案(规则 / 命名):重写规则组、试算与命名模板文案
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
3853a65754
commit
0bf26b78c6
6 files changed
+20
-20
No files matched your search
@@ -29,7 +29,7 @@ export const SUPPRESS_REASON: Record<string, string> = {
|
||||
disabled: "停用",
|
||||
"status:disabled": "停用",
|
||||
"status:deleted": "删除",
|
||||
edited: "修改语义",
|
||||
edited: "改了条件",
|
||||
};
|
||||
export const suppressReason = (r: string | null) => (r ? (SUPPRESS_REASON[r] ?? r) : "未注明");
|
||||
|
||||
@@ -59,5 +59,5 @@ export function ruleSummary(g: RuleGroup): string {
|
||||
parts.push(`${g.ladderRequired ? "要求" : "偏好"} ${g.layers.map((l) => exprToString(l.expr)).join(" > ")}`);
|
||||
for (const h of g.hardExcludes) parts.push(`排除 ${exprToString(h)}`);
|
||||
if (parts.length) return parts.join(";");
|
||||
return g.legacyKind ? "旧偏好标签,没有可评估的条件" : "没有条件";
|
||||
return g.legacyKind ? "旧版偏好,没有可评估的条件" : "没有条件";
|
||||
}
|
||||
Reference in new issue
Block a user