Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
chore(design): 设计依据识别去掉已删除的 figma-component-spec 文件名
kirozengfda66bc8b626
diff --git a/apps/desktop/src/renderer/themes/__tests__/loginInkLadder.test.ts b/apps/desktop/src/renderer/themes/__tests__/loginInkLadder.test.tsindex ff3481f3f6..aa0b26e246 100644--- a/apps/desktop/src/renderer/themes/__tests__/loginInkLadder.test.ts+++ b/apps/desktop/src/renderer/themes/__tests__/loginInkLadder.test.ts@@ -92,8 +92,10 @@ describe('浏览器登录回调页文字 = 主界面墨水阶梯', () => {] as const) {it.each(CALLBACK_VARS)(`${rule}: %s 与 %s 同值`, (cssVar, inkTierId) => {const ink = theme.colors[inkTierId];- expect(vars[rule][cssVar], `${rule} 规则缺少 ${cssVar}`).toBeDefined();- expect(normalizeRgba(vars[rule][cssVar])).toBe(normalizeRgba(ink));+ const actual = vars[rule][cssVar];+ if (ink === undefined) throw new Error(`${theme.id} 缺少 ${inkTierId}`);+ if (actual === undefined) throw new Error(`${rule} 规则缺少 ${cssVar}`);+ expect(normalizeRgba(actual)).toBe(normalizeRgba(ink));});}});diff --git a/scripts/check-pr-design-basis.mjs b/scripts/check-pr-design-basis.mjsindex 76eba49731..7ad107f146 100644--- a/scripts/check-pr-design-basis.mjs+++ b/scripts/check-pr-design-basis.mjs@@ -33,7 +33,7 @@ const UI_FILE_SUFFIXES = ['.css', '.scss', '.less'];const FIELD_LABEL = '引用的设计规范';// 设计规范文档引用特征:docs/design-rules/ 目录或其下具体文档名。const DESIGN_DOC_PATTERN =- /(docs\/design-rules\/|DESIGN\.md|cindy-design-system|figma-component-spec|token-decision-table)/i;+ /(docs\/design-rules\/|DESIGN\.md|cindy-design-system|token-decision-table)/i;// 「不涉及」豁免在去掉该词与标点后至少要剩这么多字符,才算附了理由// (放到 4 是为了让「纯逻辑重构」「无 UI 变化」这类最短合理理由能过)。const MIN_EXEMPT_REASON_CHARS = 4;