Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs after #627: DESIGN.md 方块条登记修正与 §5 状态方块小例外

Lizi8984a69704f4
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
index 8f65080dee..b0b76ae465 100644
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@ -73,7 +73,7 @@ Small interactive chips (button backgrounds, tag pills, avatar fills, selected-n
The grayscale rule is near-absolute. The following are the **only** sanctioned non-gray colors in the system — each tightly scoped to a specific surface. New semantic colors must not be introduced without being recorded here first.
- **Focus Blue** (`#417CDD` at 50%; tokens `--focus-ring` / `--focus-ring-soft`): the keyboard-accessibility focus ring, finalized 2026-07-17 (replaces Tailwind's default `#3b82f6`). Never visible in normal interaction flow.
-- **Thinking / Warning Orange** (`#EA6B17`, finalized 2026-07-17, replaces the frozen `#FF6600`): the shared warning-accent family, identical in both modes. Sanctioned consumers only — the ChatView Running Status Bar (sparkles icon + status text, e.g. `Spelunking...`, no background fill), running-state breathing icons in the sidebar, the collaboration toggle ON state, the plan-approve icon, the Full Access permission highlight, the settings integration warning, and the workflow agent status strip's running cells (2×2px filled squares in the background-tasks panel detail and the workflow chat card, registered 2026-07-28 — running-state semantics, same family as the sidebar breathing icons; the done/failed/queued cells stay on their own semantic tokens) (see the §10 exemption table and §15 for the full token list: `--warning-accent` and its follower tokens). Any NEW consumer must be registered in §10 first.
+- **Thinking / Warning Orange** (`#EA6B17`, finalized 2026-07-17, replaces the frozen `#FF6600`): the shared warning-accent family, identical in both modes. Sanctioned consumers only — the ChatView Running Status Bar (sparkles icon + status text, e.g. `Spelunking...`, no background fill), running-state breathing icons in the sidebar, the collaboration toggle ON state, the plan-approve icon, the Full Access permission highlight, the settings integration warning, and the workflow agent status strip's running cells (8×8px filled squares in the background-tasks panel detail and the workflow chat card, registered 2026-07-28 — running-state semantics, same family as the sidebar breathing icons; the done/failed/queued cells stay on their own semantic tokens: `--card-status-done` / `--error-fg` / `--text-tertiary`) (see the §10 exemption table and §15 for the full token list: `--warning-accent` and its follower tokens). A consumer that introduces no new token — one that reads `--warning-accent` or an existing follower directly, like this strip — is registered by this list alone; a consumer needing a NEW token must be registered in the §10 exemption table first.
> **Additional narrowly-scoped exceptions** (documented in their respective component specs, do NOT generalize as system semantic colors):
>
@@ -241,6 +241,8 @@ Three tiers — **these three only**:
*No 4px / 6px / 10px, and no arbitrary radii. Most elements still pick between the 12px container and the pill; 8px is a narrow exception for controls that don't fit the pill. Mind nesting: an 8px row highlight inside a 12px panel must stay smaller than its container to nest cleanly (hence 8, not 12) — a pill there becomes a lozenge, 12px looks bloated.*
+> **Narrow exception — status micro-cells (2px)** (registered 2026-07-28): non-interactive status squares of 8×8px or smaller keep a 2px radius — the workflow agent status strip's cells (background-tasks panel detail + workflow chat card) and the equivalent per-category square in SystemCard. At that size any tier radius rounds the square into a dot and destroys the "block strip" read that lets a large agent fleet be scanned at a glance. Scope is exactly this: **non-interactive, ≤8px, status-only**. Do NOT generalize to buttons, tags, rows, badges or containers — those still pick a tier.
+
## 6. Depth & Elevation
diff --git a/docs/design-rules/cindy-design-system.md b/docs/design-rules/cindy-design-system.md
index e67a204ca0..1fbcdede45 100644
--- a/docs/design-rules/cindy-design-system.md
+++ b/docs/design-rules/cindy-design-system.md
@@ -15,6 +15,7 @@
## 版本记录
+- **2026-07-28**:`DESIGN.md §2` 语义色清单新增警告橙合法消费者「workflow agent 状态方块条的运行中格子」(8×8px 方块,后台任务面板详情 + workflow 聊天卡;done/failed/queued 各走自己的语义 token),并明确「不引入新 token 的消费者由 §2 清单登记即可、需要新 token 才必须先进 §10 豁免表」;`DESIGN.md §5` 新增小例外「status micro-cells(2px)」——≤8px 的非交互状态方块保留 2px 圆角(方块条格子与 SystemCard 分类方块),档位圆角在该尺寸会把方块变成圆点、丢掉大编队一眼总览的「方块条」读法,范围严格限定非交互 / ≤8px / 仅状态,按钮·标签·行·徽章·容器一律仍走三档。
- **2026-07-26**:`DESIGN.md §10` 新增「External Theme Import (VSCode / Obsidian)」小节——外部主题导入只映射从 7 个人工移植社区主题抽出的 91-token 模板、语义豁免族(`--login-*` / 危险红 / 警告橙 / 焦点蓝 / `--diff-*`)不参与导入、`-hsl` token 精确换算、新增 `--md-h1-fg`…`--md-h6-fg` / `--md-strong-fg`(默认 `inherit`,内置主题观感不变)、本地主题可选 `family` 字段。决策理由与取舍见 [`design-decision-log.md`](./design-decision-log.md) 2026-07-26 条。
- **2026-07-24(梳理批次 1)**:`DESIGN.md` 整体梳理第一批落地——去除 Ollama 官网叙事(标题改 `Cindy Design System`,§1/§4/§5/§8/§9 重写或删除官网内容);focus ring 文档追平代码(`#3b82f6` → `#417CDD`);§2/§9 二级三级文字与 chip 双 slot 表述按 `colors.ts` 修正;§10 移除写死 token 计数与过时豁免行;§12 结构化规格并入 §4(§12 编号留占位);§13 G1–G4 归档至新建 [`design-decision-log.md`](./design-decision-log.md);§14/§15/§16 若干失效指向修正。
- **2026-07-24**:目录整编(设计 md 统一归位 `docs/design-rules/`,本文件升级为索引)。同步 Figma 组件库更新:hover 统一「叠白变亮」口径(旧「白底钮 hover 叠黑」作废)、新增协议勾选 `radiobutton` 四态与双色模式小按钮四母版、`SSO 登录_企业` / `back` 扩 Dark 三态、`white_button` 增 loading 五态(`figma-component-spec §11`、`DESIGN.md §16.5`)。`figma-component-spec.md` / `token-decision-table.md` 自迁移前仓库最后版本恢复并更新至 wave5。