Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

feat: add unified archify cli

tt-a1iefe793341d02
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2851023e..f3576e1f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
All notable changes are documented here. Format loosely follows [Keep a Changelog](https://keepachangelog.com/).
+## [Unreleased]
+
+### Added
+- **Unified CLI entrypoint.** Added `bin/archify.mjs` with `render`, `validate`, `check`, and `examples` commands so renderer-backed workflows have a single product-facing command surface.
+
## [2.8.0] — 2026-07-03
### Added
diff --git a/README.md b/README.md
index fb9a67aa..3e9350a6 100644
--- a/README.md
+++ b/README.md
@@ -97,23 +97,24 @@ Open the example here: [`examples/lifecycle-agent-run.html`](examples/lifecycle-
## What's new
-Archify is based on [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0 (dark-only, HTML output). **2.0** rewrote the template around a themeable CSS-variable system and added a client-side export pipeline. **2.1** added copy-to-clipboard + keyboard nav. **2.2** added a print stylesheet + local-font fallback. **2.3** fixed the raster upsampling bug and made exports genuinely sharp at up to 4× source resolution. **2.4** upgraded SVG export to a dual-theme self-contained file. **2.5** added renderer-backed workflow / sequence / data-flow / lifecycle modes, Mermaid input guidance, CJK-aware text measurement, golden tests, and CI. **2.6** brought the architecture renderer to schema + layout validation parity. **2.7** hardens workflow diagrams with phase headers, groups, exception lanes, happy-path linting, same-lane orthogonal routing, and a post-render HTML/SVG checker that catches diagonal arrows and legend collisions before delivery.
-
-| Feature | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 |
-|---|---|---|---|---|---|---|---|---|---|
-| Dark theme | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
-| Light theme | — | Toggle | Toggle | Toggle | Toggle + <kbd>T</kbd> shortcut | Same | Same | Same | Same |
-| PNG / JPEG / WebP download | manual screenshot | 2× bitmap-upsampled | 1× / 2× / 4× selector (still upsampled) | same | **4× rasterized natively — no blur** | Same | **Light-export lane colors fixed** | Same | Same |
-| SVG download | — | Vector, styles inlined (single theme) | Same | Same | Same | **Dual-theme self-contained** (`@media prefers-color-scheme`) | Same (lane colors fixed) | Same | Same |
-| Copy PNG to clipboard | — | — | Yes | Same | Yes (up to 4×) | Same | **Safari fix** | Same | Same |
-| Keyboard shortcuts | — | — | <kbd>T</kbd> / <kbd>E</kbd> + menu nav | Same | Same | Same | Same | Same | Same |
-| Accessibility | — | — | ARIA + focus-visible | Same | Same | Same | Same (+ menu a11y fixes) | Same | Same |
-| Print stylesheet | — | — | — | Yes | Yes (+ landscape + 2-col cards) | Same | Same | Same | Same |
-| Local-font fallback on export | — | — | — | Yes | Yes | Same | **+ CJK font fallback** | Same | Same |
-| Styling model | Inline `fill` / `stroke` | CSS custom properties + semantic classes | Same | Same | Same | Same | Same | Same | Same |
-| Typed renderers + schema validation | — | — | — | — | — | — | Workflow / sequence / data-flow / lifecycle | **+ architecture** | Same |
-| Workflow structure aids | — | — | — | — | — | — | Lanes + routed edges | Same | **Phases, groups, exception lanes, mainPath lint** |
-| Post-render artifact checker | — | — | — | — | — | — | — | — | **Yes** |
+Archify is based on [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0 (dark-only, HTML output). **2.0** rewrote the template around a themeable CSS-variable system and added a client-side export pipeline. **2.1** added copy-to-clipboard + keyboard nav. **2.2** added a print stylesheet + local-font fallback. **2.3** fixed the raster upsampling bug and made exports genuinely sharp at up to 4× source resolution. **2.4** upgraded SVG export to a dual-theme self-contained file. **2.5** added renderer-backed workflow / sequence / data-flow / lifecycle modes, Mermaid input guidance, CJK-aware text measurement, golden tests, and CI. **2.6** brought the architecture renderer to schema + layout validation parity. **2.7** hardens workflow diagrams with phase headers, groups, exception lanes, happy-path linting, same-lane orthogonal routing, and a post-render HTML/SVG checker. **2.8** adds opt-in trace animation and rejects workflow routes that cross unrelated nodes.
+
+| Feature | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 |
+|---|---|---|---|---|---|---|---|---|---|---|
+| Dark theme | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Same |
+| Light theme | — | Toggle | Toggle | Toggle | Toggle + <kbd>T</kbd> shortcut | Same | Same | Same | Same | Same |
+| PNG / JPEG / WebP download | manual screenshot | 2× bitmap-upsampled | 1× / 2× / 4× selector (still upsampled) | same | **4× rasterized natively — no blur** | Same | **Light-export lane colors fixed** | Same | Same | Same |
+| SVG download | — | Vector, styles inlined (single theme) | Same | Same | Same | **Dual-theme self-contained** (`@media prefers-color-scheme`) | Same (lane colors fixed) | Same | Same | Same |
+| Copy PNG to clipboard | — | — | Yes | Same | Yes (up to 4×) | Same | **Safari fix** | Same | Same | Same |
+| Keyboard shortcuts | — | — | <kbd>T</kbd> / <kbd>E</kbd> + menu nav | Same | Same | Same | Same | Same | Same | Same |
+| Accessibility | — | — | ARIA + focus-visible | Same | Same | Same | Same (+ menu a11y fixes) | Same | Same | Same |
+| Print stylesheet | — | — | — | Yes | Yes (+ landscape + 2-col cards) | Same | Same | Same | Same | Same |
+| Local-font fallback on export | — | — | — | Yes | Yes | Same | **+ CJK font fallback** | Same | Same | Same |
+| Styling model | Inline `fill` / `stroke` | CSS custom properties + semantic classes | Same | Same | Same | Same | Same | Same | Same | Same |
+| Typed renderers + schema validation | — | — | — | — | — | — | Workflow / sequence / data-flow / lifecycle | **+ architecture** | Same | Same |
+| Workflow structure aids | — | — | — | — | — | — | Lanes + routed edges | Same | **Phases, groups, exception lanes, mainPath lint** | **Route-crossing guard** |
+| Post-render artifact checker | — | — | — | — | — | — | — | — | **Yes** | Same |
+| Trace animation | — | — | — | — | — | — | — | — | — | **Opt-in** |
## Quick start
@@ -157,7 +158,7 @@ unzip archify.zip -d ./.opencode/skills/
unzip archify.zip -d ~/.agents/skills/
```
-The typed renderers (workflow / sequence / dataflow / lifecycle) rely on ajv for schema validation, which takes a one-time `npm install` in the installed skill directory. Many agent runtimes can run it automatically on first use, following the Setup instructions in `SKILL.md` — or run it yourself:
+The typed renderers (architecture / workflow / sequence / dataflow / lifecycle) rely on ajv for schema validation, which takes a one-time `npm install` in the installed skill directory. Many agent runtimes can run it automatically on first use, following the Setup instructions in `SKILL.md` — or run it yourself:
```bash
cd ~/.agents/skills/archify && npm install
@@ -173,6 +174,15 @@ node scripts/check-render-output.mjs output.html
That final gate inspects the generated HTML/SVG for malformed output, non-finite SVG values, accidental two-point diagonal arrows, and arrows crossing the legend.
+The bundled CLI wraps the same renderer and checker commands:
+
+```bash
+node bin/archify.mjs render workflow examples/agent-tool-call.workflow.json workflow.html
+node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --json
+node bin/archify.mjs check workflow.html
+node bin/archify.mjs examples
+```
+
Renderer-backed diagrams can also opt into lightweight motion for demos:
```json
@@ -341,7 +351,7 @@ Each color has coordinated dark-mode and light-mode variants that switch togethe
- **Styling:** CSS custom properties on `:root` + `[data-theme="light"]`; SVG elements reference semantic classes (`c-frontend`, `t-muted`, `a-emphasis`, etc.). Toggling `data-theme` on `<html>` re-themes the entire diagram including gradient, grid, arrows, and mask rects.
- **Export pipeline:** The SVG is cloned, host `<style>` is inlined, and current theme variables are resolved and written into a `:root` rule on the clone. For raster formats the clone's `width`/`height` are set to `4 × viewBox` so the browser rasterizes the vectors at target resolution natively; the canvas is sized to match and the image is drawn at natural size (no bitmap upsampling). `toBlob(mime)` then produces the file. JPEG gets an explicit background fill since it has no alpha. If the target resolution would exceed the browser's canvas limits, the pipeline automatically falls back to 3× or 2× so the export still succeeds.
- **Self-contained output:** Single HTML file, Google Fonts link + inline SVG + ~19 KB of embedded JS. No build step, no JS framework, no server — the generated HTML itself has zero dependencies (the typed renderers need `npm install` for ajv, see [Install](#1-install-the-skill)).
-- **Output checks:** `scripts/check-render-output.mjs` validates generated HTML before delivery: one SVG, finite SVG values, no accidental two-point diagonal arrows, and no arrow segments crossing the legend.
+- **Output checks:** `bin/archify.mjs validate` and `scripts/check-render-output.mjs` validate generated HTML before delivery: one SVG, finite SVG values, no accidental two-point diagonal arrows, and no arrow segments crossing the legend.
- **Browser support:** Any modern browser (Chrome, Safari, Firefox, Edge). Needs `Image` + `canvas.toBlob` with `image/webp` support for WebP export.
## Attribution
diff --git a/README_EN.md b/README_EN.md
index fb9a67aa..3e9350a6 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -97,23 +97,24 @@ Open the example here: [`examples/lifecycle-agent-run.html`](examples/lifecycle-
## What's new
-Archify is based on [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0 (dark-only, HTML output). **2.0** rewrote the template around a themeable CSS-variable system and added a client-side export pipeline. **2.1** added copy-to-clipboard + keyboard nav. **2.2** added a print stylesheet + local-font fallback. **2.3** fixed the raster upsampling bug and made exports genuinely sharp at up to 4× source resolution. **2.4** upgraded SVG export to a dual-theme self-contained file. **2.5** added renderer-backed workflow / sequence / data-flow / lifecycle modes, Mermaid input guidance, CJK-aware text measurement, golden tests, and CI. **2.6** brought the architecture renderer to schema + layout validation parity. **2.7** hardens workflow diagrams with phase headers, groups, exception lanes, happy-path linting, same-lane orthogonal routing, and a post-render HTML/SVG checker that catches diagonal arrows and legend collisions before delivery.
-
-| Feature | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 |
-|---|---|---|---|---|---|---|---|---|---|
-| Dark theme | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
-| Light theme | — | Toggle | Toggle | Toggle | Toggle + <kbd>T</kbd> shortcut | Same | Same | Same | Same |
-| PNG / JPEG / WebP download | manual screenshot | 2× bitmap-upsampled | 1× / 2× / 4× selector (still upsampled) | same | **4× rasterized natively — no blur** | Same | **Light-export lane colors fixed** | Same | Same |
-| SVG download | — | Vector, styles inlined (single theme) | Same | Same | Same | **Dual-theme self-contained** (`@media prefers-color-scheme`) | Same (lane colors fixed) | Same | Same |
-| Copy PNG to clipboard | — | — | Yes | Same | Yes (up to 4×) | Same | **Safari fix** | Same | Same |
-| Keyboard shortcuts | — | — | <kbd>T</kbd> / <kbd>E</kbd> + menu nav | Same | Same | Same | Same | Same | Same |
-| Accessibility | — | — | ARIA + focus-visible | Same | Same | Same | Same (+ menu a11y fixes) | Same | Same |
-| Print stylesheet | — | — | — | Yes | Yes (+ landscape + 2-col cards) | Same | Same | Same | Same |
-| Local-font fallback on export | — | — | — | Yes | Yes | Same | **+ CJK font fallback** | Same | Same |
-| Styling model | Inline `fill` / `stroke` | CSS custom properties + semantic classes | Same | Same | Same | Same | Same | Same | Same |
-| Typed renderers + schema validation | — | — | — | — | — | — | Workflow / sequence / data-flow / lifecycle | **+ architecture** | Same |
-| Workflow structure aids | — | — | — | — | — | — | Lanes + routed edges | Same | **Phases, groups, exception lanes, mainPath lint** |
-| Post-render artifact checker | — | — | — | — | — | — | — | — | **Yes** |
+Archify is based on [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0 (dark-only, HTML output). **2.0** rewrote the template around a themeable CSS-variable system and added a client-side export pipeline. **2.1** added copy-to-clipboard + keyboard nav. **2.2** added a print stylesheet + local-font fallback. **2.3** fixed the raster upsampling bug and made exports genuinely sharp at up to 4× source resolution. **2.4** upgraded SVG export to a dual-theme self-contained file. **2.5** added renderer-backed workflow / sequence / data-flow / lifecycle modes, Mermaid input guidance, CJK-aware text measurement, golden tests, and CI. **2.6** brought the architecture renderer to schema + layout validation parity. **2.7** hardens workflow diagrams with phase headers, groups, exception lanes, happy-path linting, same-lane orthogonal routing, and a post-render HTML/SVG checker. **2.8** adds opt-in trace animation and rejects workflow routes that cross unrelated nodes.
+
+| Feature | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 |
+|---|---|---|---|---|---|---|---|---|---|---|
+| Dark theme | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Same |
+| Light theme | — | Toggle | Toggle | Toggle | Toggle + <kbd>T</kbd> shortcut | Same | Same | Same | Same | Same |
+| PNG / JPEG / WebP download | manual screenshot | 2× bitmap-upsampled | 1× / 2× / 4× selector (still upsampled) | same | **4× rasterized natively — no blur** | Same | **Light-export lane colors fixed** | Same | Same | Same |
+| SVG download | — | Vector, styles inlined (single theme) | Same | Same | Same | **Dual-theme self-contained** (`@media prefers-color-scheme`) | Same (lane colors fixed) | Same | Same | Same |
+| Copy PNG to clipboard | — | — | Yes | Same | Yes (up to 4×) | Same | **Safari fix** | Same | Same | Same |
+| Keyboard shortcuts | — | — | <kbd>T</kbd> / <kbd>E</kbd> + menu nav | Same | Same | Same | Same | Same | Same | Same |
+| Accessibility | — | — | ARIA + focus-visible | Same | Same | Same | Same (+ menu a11y fixes) | Same | Same | Same |
+| Print stylesheet | — | — | — | Yes | Yes (+ landscape + 2-col cards) | Same | Same | Same | Same | Same |
+| Local-font fallback on export | — | — | — | Yes | Yes | Same | **+ CJK font fallback** | Same | Same | Same |
+| Styling model | Inline `fill` / `stroke` | CSS custom properties + semantic classes | Same | Same | Same | Same | Same | Same | Same | Same |
+| Typed renderers + schema validation | — | — | — | — | — | — | Workflow / sequence / data-flow / lifecycle | **+ architecture** | Same | Same |
+| Workflow structure aids | — | — | — | — | — | — | Lanes + routed edges | Same | **Phases, groups, exception lanes, mainPath lint** | **Route-crossing guard** |
+| Post-render artifact checker | — | — | — | — | — | — | — | — | **Yes** | Same |
+| Trace animation | — | — | — | — | — | — | — | — | — | **Opt-in** |
## Quick start
@@ -157,7 +158,7 @@ unzip archify.zip -d ./.opencode/skills/
unzip archify.zip -d ~/.agents/skills/
```
-The typed renderers (workflow / sequence / dataflow / lifecycle) rely on ajv for schema validation, which takes a one-time `npm install` in the installed skill directory. Many agent runtimes can run it automatically on first use, following the Setup instructions in `SKILL.md` — or run it yourself:
+The typed renderers (architecture / workflow / sequence / dataflow / lifecycle) rely on ajv for schema validation, which takes a one-time `npm install` in the installed skill directory. Many agent runtimes can run it automatically on first use, following the Setup instructions in `SKILL.md` — or run it yourself:
```bash
cd ~/.agents/skills/archify && npm install
@@ -173,6 +174,15 @@ node scripts/check-render-output.mjs output.html
That final gate inspects the generated HTML/SVG for malformed output, non-finite SVG values, accidental two-point diagonal arrows, and arrows crossing the legend.
+The bundled CLI wraps the same renderer and checker commands:
+
+```bash
+node bin/archify.mjs render workflow examples/agent-tool-call.workflow.json workflow.html
+node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --json
+node bin/archify.mjs check workflow.html
+node bin/archify.mjs examples
+```
+
Renderer-backed diagrams can also opt into lightweight motion for demos:
```json
@@ -341,7 +351,7 @@ Each color has coordinated dark-mode and light-mode variants that switch togethe
- **Styling:** CSS custom properties on `:root` + `[data-theme="light"]`; SVG elements reference semantic classes (`c-frontend`, `t-muted`, `a-emphasis`, etc.). Toggling `data-theme` on `<html>` re-themes the entire diagram including gradient, grid, arrows, and mask rects.
- **Export pipeline:** The SVG is cloned, host `<style>` is inlined, and current theme variables are resolved and written into a `:root` rule on the clone. For raster formats the clone's `width`/`height` are set to `4 × viewBox` so the browser rasterizes the vectors at target resolution natively; the canvas is sized to match and the image is drawn at natural size (no bitmap upsampling). `toBlob(mime)` then produces the file. JPEG gets an explicit background fill since it has no alpha. If the target resolution would exceed the browser's canvas limits, the pipeline automatically falls back to 3× or 2× so the export still succeeds.
- **Self-contained output:** Single HTML file, Google Fonts link + inline SVG + ~19 KB of embedded JS. No build step, no JS framework, no server — the generated HTML itself has zero dependencies (the typed renderers need `npm install` for ajv, see [Install](#1-install-the-skill)).
-- **Output checks:** `scripts/check-render-output.mjs` validates generated HTML before delivery: one SVG, finite SVG values, no accidental two-point diagonal arrows, and no arrow segments crossing the legend.
+- **Output checks:** `bin/archify.mjs validate` and `scripts/check-render-output.mjs` validate generated HTML before delivery: one SVG, finite SVG values, no accidental two-point diagonal arrows, and no arrow segments crossing the legend.
- **Browser support:** Any modern browser (Chrome, Safari, Firefox, Edge). Needs `Image` + `canvas.toBlob` with `image/webp` support for WebP export.
## Attribution
diff --git a/README_ZH.md b/README_ZH.md
index cc3bf268..1c87ffcb 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -99,23 +99,24 @@ Needs Approval,缺少输入时进入 Blocked;工具失败可以 Failed 后
## 版本演进
-Archify 基于 [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0(只有深色主题的 HTML 输出)fork 重写。**2.0** 把模板重构成 CSS 变量驱动的可主题化系统,加入客户端导出流水线。**2.1** 加入剪贴板复制 + 键盘导航。**2.2** 加入打印样式 + 本地字体回退。**2.3** 修了位图升采样 bug,所有光栅导出改为最高 4× 原生渲染。**2.4** SVG 导出升级成双主题自持版。**2.5** 加入 workflow / sequence / data-flow / lifecycle 四种渲染器、Mermaid 输入指引、CJK-aware 文本测量、golden 测试和 CI。**2.6** 把 architecture 模式也升级到 schema + layout 校验。**2.7** 强化 workflow:phase header、group、exception lane、mainPath 主路径 lint、同泳道正交连线,以及生成后 HTML/SVG 检查器,交付前自动抓出斜线和图例穿插问题。
-
-| 能力 | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 |
-|---|---|---|---|---|---|---|---|---|---|
-| 深色主题 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
-| 浅色主题 | — | 切换 | 切换 | 切换 | 切换 + <kbd>T</kbd> 快捷键 | 同 | 同 | 同 | 同 |
-| PNG / JPEG / WebP 下载 | 手动截图 | 2× 位图放大 | 1×/2×/4× 选择器(仍是放大)| 同 | **4× 原生光栅化,不糊** | 同 | **浅色导出泳道配色修复** | 同 | 同 |
-| SVG 下载 | — | 矢量 + 内联样式(单主题)| 同 | 同 | 同 | **双主题自持**(`@media prefers-color-scheme`)| 同(泳道配色修复)| 同 | 同 |
-| 复制 PNG 到剪贴板 | — | — | ✓ | 同 | 同(最高 4×)| 同 | **Safari 修复** | 同 | 同 |
-| 键盘快捷键 | — | — | <kbd>T</kbd>/<kbd>E</kbd> + 菜单导航 | 同 | 同 | 同 | 同 | 同 | 同 |
-| 可访问性 | — | — | ARIA + focus-visible | 同 | 同 | 同 | 同(+ 菜单 a11y 修复)| 同 | 同 |
-| 打印样式表 | — | — | — | ✓ | ✓(+ 横向 + 2 列卡片)| 同 | 同 | 同 | 同 |
-| 导出时本地字体回退 | — | — | — | ✓ | ✓ | 同 | **+ CJK 字体回退** | 同 | 同 |
-| 样式模型 | 内联 `fill` / `stroke` | CSS 变量 + 语义 class | 同 | 同 | 同 | 同 | 同 | 同 | 同 |
-| 类型化渲染器 + schema 校验 | — | — | — | — | — | — | workflow / sequence / data-flow / lifecycle | **+ architecture** | 同 |
-| Workflow 结构辅助 | — | — | — | — | — | — | 泳道 + 路由连线 | 同 | **phase、group、exception lane、mainPath lint** |
-| 生成后 artifact 检查 | — | — | — | — | — | — | — | — | **✓** |
+Archify 基于 [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0(只有深色主题的 HTML 输出)fork 重写。**2.0** 把模板重构成 CSS 变量驱动的可主题化系统,加入客户端导出流水线。**2.1** 加入剪贴板复制 + 键盘导航。**2.2** 加入打印样式 + 本地字体回退。**2.3** 修了位图升采样 bug,所有光栅导出改为最高 4× 原生渲染。**2.4** SVG 导出升级成双主题自持版。**2.5** 加入 workflow / sequence / data-flow / lifecycle 四种渲染器、Mermaid 输入指引、CJK-aware 文本测量、golden 测试和 CI。**2.6** 把 architecture 模式也升级到 schema + layout 校验。**2.7** 强化 workflow:phase header、group、exception lane、mainPath 主路径 lint、同泳道正交连线,以及生成后 HTML/SVG 检查器。**2.8** 加入按需 trace 动效,并拒绝 workflow 连线穿过无关节点。
+
+| 能力 | v1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 |
+|---|---|---|---|---|---|---|---|---|---|---|
+| 深色主题 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 同 |
+| 浅色主题 | — | 切换 | 切换 | 切换 | 切换 + <kbd>T</kbd> 快捷键 | 同 | 同 | 同 | 同 | 同 |
+| PNG / JPEG / WebP 下载 | 手动截图 | 2× 位图放大 | 1×/2×/4× 选择器(仍是放大)| 同 | **4× 原生光栅化,不糊** | 同 | **浅色导出泳道配色修复** | 同 | 同 | 同 |
+| SVG 下载 | — | 矢量 + 内联样式(单主题)| 同 | 同 | 同 | **双主题自持**(`@media prefers-color-scheme`)| 同(泳道配色修复)| 同 | 同 | 同 |
+| 复制 PNG 到剪贴板 | — | — | ✓ | 同 | 同(最高 4×)| 同 | **Safari 修复** | 同 | 同 | 同 |
+| 键盘快捷键 | — | — | <kbd>T</kbd>/<kbd>E</kbd> + 菜单导航 | 同 | 同 | 同 | 同 | 同 | 同 | 同 |
+| 可访问性 | — | — | ARIA + focus-visible | 同 | 同 | 同 | 同(+ 菜单 a11y 修复)| 同 | 同 | 同 |
+| 打印样式表 | — | — | — | ✓ | ✓(+ 横向 + 2 列卡片)| 同 | 同 | 同 | 同 | 同 |
+| 导出时本地字体回退 | — | — | — | ✓ | ✓ | 同 | **+ CJK 字体回退** | 同 | 同 | 同 |
+| 样式模型 | 内联 `fill` / `stroke` | CSS 变量 + 语义 class | 同 | 同 | 同 | 同 | 同 | 同 | 同 | 同 |
+| 类型化渲染器 + schema 校验 | — | — | — | — | — | — | workflow / sequence / data-flow / lifecycle | **+ architecture** | 同 | 同 |
+| Workflow 结构辅助 | — | — | — | — | — | — | 泳道 + 路由连线 | 同 | **phase、group、exception lane、mainPath lint** | **连线穿节点 guard** |
+| 生成后 artifact 检查 | — | — | — | — | — | — | — | — | **✓** | 同 |
+| Trace 动效 | — | — | — | — | — | — | — | — | — | **按需开启** |
## 快速上手
@@ -161,7 +162,7 @@ unzip archify.zip -d ./.opencode/skills/
unzip archify.zip -d ~/.agents/skills/
```
-类型化渲染器(workflow / sequence / dataflow / lifecycle)依赖 ajv 做 schema 校验,需要在安装后的 skill 目录执行一次 `npm install`。很多 agent runtime 首次使用时会按 `SKILL.md` 的 Setup 指引自动安装;也可以自己先装好:
+类型化渲染器(architecture / workflow / sequence / dataflow / lifecycle)依赖 ajv 做 schema 校验,需要在安装后的 skill 目录执行一次 `npm install`。很多 agent runtime 首次使用时会按 `SKILL.md` 的 Setup 指引自动安装;也可以自己先装好:
```bash
cd ~/.agents/skills/archify && npm install
@@ -177,6 +178,15 @@ node scripts/check-render-output.mjs output.html
这道最终闸门会检查 HTML/SVG 是否结构异常、SVG 是否出现非有限值、是否误生成两点斜线箭头,以及箭头是否穿过图例。
+内置 CLI 对这些 renderer / checker 命令做了一层统一包装:
+
+```bash
+node bin/archify.mjs render workflow examples/agent-tool-call.workflow.json workflow.html
+node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --json
+node bin/archify.mjs check workflow.html
+node bin/archify.mjs examples
+```
+
渲染器生成的图也可以按需开启轻量动效,适合 demo 或演示场景:
```json
@@ -346,7 +356,7 @@ Trace animation 直接运行在生成的 HTML/SVG 里:箭头按顺序流动,
- **样式模型**:`:root` + `[data-theme="light"]` 上的 CSS 变量;SVG 元素引用语义 class(`c-frontend`、`t-muted`、`a-emphasis` 等)。切换 `<html>` 上的 `data-theme` 会重写包括渐变、网格、箭头、遮罩在内的整张图。
- **导出流水线**:克隆 SVG,内联 host `<style>`,解析当前主题变量并写入 clone 的 `:root` 规则,然后用 `XMLSerializer` 序列化。光栅格式下,clone 的 `width`/`height` 被设为 `4 × viewBox`,浏览器按目标分辨率原生光栅化矢量;canvas 尺寸对齐 clone 后按自然大小绘制(无位图升采样),`toBlob(mime)` 生成文件。JPEG 会显式补背景色(无 alpha)。如果目标分辨率超过浏览器 canvas 上限,自动降到 3× 或 2×。
- **单文件**:一个 HTML,一个 Google Fonts `<link>`,内联 SVG,约 19 KB 嵌入 JS。生成的 HTML 零运行时依赖 —— 无构建步骤、无 JS 框架、无服务端(渲染器本身需要 `npm install`,见安装章节)。
-- **生成后检查**:`scripts/check-render-output.mjs` 在交付前检查生成的 HTML:单 SVG、SVG 坐标有限、没有误生成两点斜线箭头、箭头线段不穿过图例。
+- **生成后检查**:`bin/archify.mjs validate` 和 `scripts/check-render-output.mjs` 在交付前检查生成的 HTML:单 SVG、SVG 坐标有限、没有误生成两点斜线箭头、箭头线段不穿过图例。
- **浏览器支持**:任何主流浏览器(Chrome、Safari、Firefox、Edge)。WebP 导出需要 canvas 支持 `image/webp`。
## 致谢
diff --git a/ROADMAP.md b/ROADMAP.md
index a9fd6198..224a98ea 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -1,6 +1,6 @@
# Archify Roadmap
-As of v2.6.0, the coordinate-stability work has shipped as JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. This file now records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
+As of v2.8.0, the coordinate-stability work has shipped as JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams now also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
This roadmap was rewritten on 2026-04-16 after three independent design reviews, and updated the same day after a visual-quality validation experiment conclusively failed (see `experiments/v3-mermaid-validation/RESULT.md`).
@@ -76,7 +76,7 @@ Architecture diagrams use a free-coordinate component graph. The typed modes use
| Phase | Deliverable | Target |
|---|---|---|
| ~~**Validate**~~ | ~~5-Mermaid blind-rate experiment~~ | **DONE — FAILED** (see below) |
-| **P0** | JSON IR + JSON Schema validator + `schema_version` enforcement | **DONE** — shipped for the four typed modes (workflow / sequence / dataflow / lifecycle), enforced at runtime via ajv |
+| **P0** | JSON IR + JSON Schema validator + `schema_version` enforcement | **DONE** — shipped for architecture, workflow, sequence, dataflow, and lifecycle, enforced at runtime via ajv |
| **P0.5** | Pure-JS renderers take IR → HTML using the existing template. Coordinates required (no auto-layout). | **DONE** — architecture, workflow, sequence, data-flow, and lifecycle renderers ship in `archify/renderers/` |
| ~~**P1**~~ | ~~Mermaid flowchart parser → IR~~ | **KILLED** — experiment showed auto-layout + CSS is not enough |
| **P2** | Updated SKILL.md teaching Claude to accept Mermaid as input and lay out from scratch (prompt engineering, no parser) | **DONE — 2026-06-11** — implemented in SKILL.md's "Mermaid as an Input Dialect" section |
@@ -96,7 +96,7 @@ The experiment tested whether auto-layout (dagre) + archify CSS (version B) look
- Architecture, workflow, sequence, data-flow, and lifecycle renderers ship under `archify/renderers/`.
- `schema_version: 1` is documented in `archify/schemas/README.md`; schemas are enforced with ajv when dependencies are installed.
- `SKILL.md` documents Mermaid as an accepted input dialect through prompt engineering, not a parser.
-- README and the GitHub Pages site describe the current install and usage surfaces.
+- README describes the current install and usage surfaces; the bundled CLI wraps renderer, validate, check, and example-generation commands.
### Workflow renderer pilot (2026-04-24)
diff --git a/archify.zip b/archify.zip
index c768fdc6..4e7acec8 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/SKILL.md b/archify/SKILL.md
index 44ca0742..55e4f3d5 100644
--- a/archify/SKILL.md
+++ b/archify/SKILL.md
@@ -16,7 +16,7 @@ Every diagram ships with a **dark/light theme toggle** (persists in `localStorag
## Setup (one-time, renderer modes only)
-The four typed renderers validate JSON against schemas via `ajv`. From this skill's folder:
+The five typed renderers validate JSON against schemas via `ajv`. From this skill's folder:
```bash
npm install
@@ -50,14 +50,14 @@ When the user pastes Mermaid code, do NOT try to render or parse it mechanically
Drop Mermaid styling; keep only the topology and meaning. You choose grouping, lane order, and what deserves emphasis — that judgment is the product.
-## Renderer Modes (workflow / sequence / dataflow / lifecycle)
+## Renderer Modes (architecture / workflow / sequence / dataflow / lifecycle)
-All four modes follow the same loop:
+All five modes follow the same loop:
-1. **Read first**: the schema (`schemas/<type>.schema.json`) and the complete worked example (`examples/*.{workflow,sequence,dataflow,lifecycle}.json`) — copy its patterns instead of guessing field shapes.
+1. **Read first**: the schema (`schemas/<type>.schema.json`) and the complete worked example (`examples/*.{architecture,workflow,sequence,dataflow,lifecycle}.json`) — copy its patterns instead of guessing field shapes.
2. Write `<name>.<type>.json`.
-3. Render: `node renderers/<type>/render-<type>.mjs <input>.json <output>.html` (paths relative to this skill's folder).
-4. Check the generated artifact: `node scripts/check-render-output.mjs <output>.html`. This catches malformed SVG output, non-finite SVG values, two-point diagonal arrows, and arrows crossing the legend.
+3. Render: `node bin/archify.mjs render <type> <input>.json <output>.html` (paths relative to this skill's folder).
+4. Validate the generated artifact: `node bin/archify.mjs validate <type> <input>.json --json`, or check an existing HTML file with `node bin/archify.mjs check <output>.html`. This catches malformed SVG output, non-finite SVG values, two-point diagonal arrows, and arrows crossing the legend.
5. If either step fails, the error names the JSON path or the fix (thresholds, valid ranges, which knob to change). Fix the JSON and re-run; never edit the renderer.
Schema violations exit non-zero with path-prefixed messages like `/nodes/3 (id/label: "router") must NOT have additional properties`. The renderers additionally fail fast on layout problems: node/state overlap (including cross-lane), labels colliding with nodes or other labels, labels wider than their node, out-of-range columns/rows, too-short edges, workflow edges crossing unrelated nodes, and legends outside the viewBox. CJK text is measured at double width automatically.
diff --git a/archify/bin/archify.mjs b/archify/bin/archify.mjs
new file mode 100755
index 00000000..f060d3d8
--- /dev/null
+++ b/archify/bin/archify.mjs
@@ -0,0 +1,136 @@
+#!/usr/bin/env node
+
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const skillRoot = path.resolve(__dirname, '..');
+
+const TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);
+
+function usage() {
+ return `Usage:
+ archify render <type> <input.json> [output.html]
+ archify validate <type> <input.json> [--json]
+ archify check <output.html>
+ archify examples
+
+Types:
+ architecture, workflow, sequence, dataflow, lifecycle
+`;
+}
+
+function fail(message, code = 2) {
+ console.error(message);
+ process.exit(code);
+}
+
+function rendererPath(type) {
+ if (!TYPES.has(type)) {
+ fail(`Unknown diagram type "${type}". Expected one of: ${[...TYPES].join(', ')}`);
+ }
+ return path.join(skillRoot, 'renderers', type, `render-${type}.mjs`);
+}
+
+function runNode(args, options = {}) {
+ return spawnSync(process.execPath, args, {
+ cwd: options.cwd || process.cwd(),
+ encoding: 'utf8',
+ stdio: options.stdio || 'inherit',
+ });
+}
+
+function exitFrom(result) {
+ if (result.error) fail(result.error.message, 1);
+ process.exit(result.status ?? 1);
+}
+
+function commandRender(args) {
+ const [type, input, output] = args;
+ if (!type || !input) fail(usage());
+ const result = runNode([rendererPath(type), input, ...(output ? [output] : [])]);
+ if (result.status !== 0) exitFrom(result);
+}
+
+function commandCheck(args) {
+ const [html] = args;
+ if (!html) fail(usage());
+ const result = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), html]);
+ if (result.status !== 0) exitFrom(result);
+}
+
+function commandExamples() {
+ const result = runNode([path.join(skillRoot, 'test/render-examples.mjs')], { cwd: skillRoot });
+ if (result.status !== 0) exitFrom(result);
+}
+
+function commandValidate(args) {
+ const json = args.includes('--json');
+ const rest = args.filter((arg) => arg !== '--json');
+ const [type, input] = rest;
+ if (!type || !input) fail(usage());
+
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-validate-'));
+ const out = path.join(tmp, `${type}.html`);
+ let exitCode = 0;
+
+ try {
+ const render = runNode([rendererPath(type), input, out], { stdio: 'pipe' });
+ if (render.status !== 0) {
+ if (render.stderr) process.stderr.write(render.stderr);
+ if (render.stdout) process.stdout.write(render.stdout);
+ exitCode = render.status ?? 1;
+ } else {
+ const check = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), out], { stdio: 'pipe' });
+ if (check.status !== 0) {
+ if (check.stdout) process.stdout.write(check.stdout);
+ if (check.stderr) process.stderr.write(check.stderr);
+ exitCode = check.status ?? 1;
+ } else {
+ const result = JSON.parse(check.stdout);
+ if (json) {
+ console.log(JSON.stringify({
+ ok: true,
+ type,
+ input: path.resolve(input),
+ checks: result.checks,
+ }, null, 2));
+ } else {
+ console.log(`ok ${type} ${path.resolve(input)} (${result.checks.length} checks)`);
+ }
+ }
+ }
+ } finally {
+ fs.rmSync(tmp, { recursive: true, force: true });
+ }
+
+ if (exitCode !== 0) process.exit(exitCode);
+}
+
+const [command, ...args] = process.argv.slice(2);
+
+switch (command) {
+ case undefined:
+ case '-h':
+ case '--help':
+ case 'help':
+ console.log(usage());
+ break;
+ case 'render':
+ commandRender(args);
+ break;
+ case 'validate':
+ commandValidate(args);
+ break;
+ case 'check':
+ commandCheck(args);
+ break;
+ case 'examples':
+ commandExamples();
+ break;
+ default:
+ fail(`Unknown command "${command}".\n\n${usage()}`);
+}
diff --git a/archify/package-lock.json b/archify/package-lock.json
index e86aa10d..722b5739 100644
--- a/archify/package-lock.json
+++ b/archify/package-lock.json
@@ -11,6 +11,9 @@
"dependencies": {
"ajv": "^8.17.1"
},
+ "bin": {
+ "archify": "bin/archify.mjs"
+ },
"engines": {
"node": ">=18"
}
@@ -38,9 +41,9 @@
"license": "MIT"
},
"node_modules/fast-uri": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
- "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.3.tgz",
+ "integrity": "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg==",
"funding": [
{
"type": "github",
diff --git a/archify/package.json b/archify/package.json
index 39f420c4..5cd88552 100644
--- a/archify/package.json
+++ b/archify/package.json
@@ -5,6 +5,9 @@
"type": "module",
"description": "JSON-IR diagram renderers (architecture / workflow / sequence / dataflow / lifecycle).",
"license": "MIT",
+ "bin": {
+ "archify": "./bin/archify.mjs"
+ },
"engines": {
"node": ">=18"
},
diff --git a/archify/test/cli.test.mjs b/archify/test/cli.test.mjs
new file mode 100644
index 00000000..8a1f2086
--- /dev/null
+++ b/archify/test/cli.test.mjs
@@ -0,0 +1,76 @@
+import { test } from 'node:test';
+import assert from 'node:assert/strict';
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const skillRoot = path.resolve(__dirname, '..');
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-cli-'));
+const cli = path.join(skillRoot, 'bin/archify.mjs');
+
+function run(args, options = {}) {
+ return spawnSync(process.execPath, [cli, ...args], {
+ cwd: options.cwd || skillRoot,
+ encoding: 'utf8',
+ env: options.env || process.env,
+ });
+}
+
+test('cli: help lists commands and diagram types', () => {
+ const result = run(['--help']);
+ assert.equal(result.status, 0, result.stderr);
+ assert.match(result.stdout, /archify render <type>/);
+ assert.match(result.stdout, /architecture, workflow, sequence, dataflow, lifecycle/);
+});
+
+test('cli: render writes a diagram html file', () => {
+ const out = path.join(tmp, 'workflow.html');
+ const input = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');
+ const result = run(['render', 'workflow', input, out]);
+ assert.equal(result.status, 0, result.stderr);
+ assert.equal(fs.existsSync(out), true);
+ assert.match(fs.readFileSync(out, 'utf8'), /Agent Tool Call Workflow/);
+});
+
+test('cli: check validates rendered html', () => {
+ const out = path.join(tmp, 'workflow-check.html');
+ const input = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');
+ assert.equal(run(['render', 'workflow', input, out]).status, 0);
+
+ const result = run(['check', out]);
+ assert.equal(result.status, 0, result.stderr);
+ assert.match(result.stdout, /"ok": true/);
+});
+
+test('cli: validate emits structured json without keeping html output', () => {
+ const input = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');
+ const before = new Set(fs.readdirSync(tmp));
+ const result = run(['validate', 'workflow', input, '--json']);
+ assert.equal(result.status, 0, result.stderr);
+ const parsed = JSON.parse(result.stdout);
+ assert.equal(parsed.ok, true);
+ assert.equal(parsed.type, 'workflow');
+ assert.equal(parsed.checks.length, 4);
+ assert.deepEqual(new Set(fs.readdirSync(tmp)), before);
+});
+
+test('cli: validate returns renderer errors for bad input', () => {
+ const input = path.join(tmp, 'bad.workflow.json');
+ const validateTmp = path.join(tmp, 'validate-failure-tmp');
+ const doc = JSON.parse(fs.readFileSync(path.join(skillRoot, 'examples/agent-tool-call.workflow.json'), 'utf8'));
+ doc.edges[0].to = 'ghost';
+ fs.writeFileSync(input, JSON.stringify(doc));
+ fs.mkdirSync(validateTmp);
+
+ const result = run(['validate', 'workflow', input], {
+ env: { ...process.env, TMPDIR: validateTmp },
+ });
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /unknown target "ghost"/);
+ assert.deepEqual(fs.readdirSync(validateTmp), []);
+});
+
+process.on('exit', () => fs.rmSync(tmp, { recursive: true, force: true }));
diff --git a/docs/index.html b/docs/index.html
index bec69ff5..9974b3b8 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -216,7 +216,7 @@
<div class="container">
<div class="hero-badge fade-up">
<div class="pulse-dot"></div>
- <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; v2.6.0</span>
+ <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; v2.8.0</span>
</div>
<h1 class="fade-up d1" data-i18n="hero-h1">From plain English<br>to architecture <em>in seconds.</em></h1>
<p class="hero-sub fade-up d2" data-i18n="hero-sub">Describe your system in chat. Archify generates a polished, self-contained HTML diagram — with dark/light themes, clipboard copy, and ultra-crisp 4× export built in.</p>
@@ -553,7 +553,7 @@ this description.</span>
<svg width="22" height="22" viewBox="0 0 28 28" fill="none"><polygon points="14,2 26,8 26,20 14,26 2,20 2,8" fill="rgba(8,51,68,0.7)" stroke="#22d3ee" stroke-width="1.5"/><circle cx="14" cy="15" r="2.5" fill="#22d3ee"/></svg>
<span style="font-size:.8125rem;font-weight:700;color:var(--muted)">Archify</span>
</a>
- <p class="footer-meta" data-i18n="footer-meta">v2.6.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
+ <p class="footer-meta" data-i18n="footer-meta">v2.8.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
</div>
<div class="footer-links">
<a href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener">GitHub</a>
@@ -570,7 +570,7 @@ this description.</span>
const LANGS = {
en: {
'nav-docs':'Docs','nav-install':'Install Skill',
- 'hero-badge':'Agent Skill &nbsp;·&nbsp; v2.6.0',
+ 'hero-badge':'Agent Skill &nbsp;·&nbsp; v2.8.0',
'hero-h1':'From plain English<br>to architecture <em>in seconds.</em>',
'hero-sub':'Describe your system in chat. Archify generates a polished, self-contained HTML diagram — with dark/light themes, clipboard copy, and ultra-crisp 4× export built in.',
'hero-cta':'Get started','hero-gh':'View on GitHub',
@@ -621,12 +621,12 @@ this description.</span>
'step3-h':'Ask Claude to draw it','step3-p':'Tell Claude to use the Archify skill. It generates a self-contained HTML file you open in any browser. Iterate from there — in plain English.',
'code-label':'example prompt',
'kbd-label':'Keyboard shortcuts','kbd-theme':'Toggle theme','kbd-export':'Open export menu','kbd-nav':'Navigate menu','kbd-close':'Close menu',
- 'footer-meta':'v2.6.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'v2.8.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
'footer-changelog':'Changelog','footer-license':'License'
},
zh: {
'nav-docs':'文档','nav-install':'安装技能',
- 'hero-badge':'Agent 技能 &nbsp;·&nbsp; v2.6.0',
+ 'hero-badge':'Agent 技能 &nbsp;·&nbsp; v2.8.0',
'hero-h1':'用自然语言,<br>秒级生成<em>架构图。</em>',
'hero-sub':'在对话中描述你的系统,Archify 生成精美、独立的 HTML 架构图——内置深色/浅色主题、一键复制剪贴板、超清 4× 图片导出。',
'hero-cta':'快速开始','hero-gh':'在 GitHub 查看',
@@ -677,7 +677,7 @@ this description.</span>
'step3-h':'让 Claude 绘制','step3-p':'告诉 Claude 使用 Archify 技能,它会生成独立的 HTML 文件,用任意浏览器打开即可。然后继续用自然语言迭代。',
'code-label':'示例提示词',
'kbd-label':'键盘快捷键','kbd-theme':'切换主题','kbd-export':'打开导出菜单','kbd-nav':'菜单导航','kbd-close':'关闭菜单',
- 'footer-meta':'v2.6.0 &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'v2.8.0 &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
'footer-changelog':'更新日志','footer-license':'许可证'
}
};