@bytechain.cn/colamd-themes 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +27 -13
  2. package/cordis.patch.yml +9 -0
  3. package/dist/cli.js +3 -3
  4. package/dist/cli.js.map +1 -1
  5. package/dist/dsh-plugin.d.ts +44 -0
  6. package/dist/dsh-plugin.js +72 -0
  7. package/dist/dsh-plugin.js.map +1 -0
  8. package/dist/generator.d.ts +1 -1
  9. package/dist/generator.js +2 -2
  10. package/dist/generator.js.map +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/models.d.ts +1 -1
  15. package/dist/models.js +1 -1
  16. package/dist/models.js.map +1 -1
  17. package/dist/renderer.d.ts +6 -5
  18. package/dist/renderer.js +19 -38
  19. package/dist/renderer.js.map +1 -1
  20. package/dist/theme-store.js +4 -4
  21. package/dist/theme-store.js.map +1 -1
  22. package/dist/validators.d.ts +2 -2
  23. package/dist/validators.js +4 -4
  24. package/dist/validators.js.map +1 -1
  25. package/package.json +22 -2
  26. package/skills/build-skills.sh +5 -5
  27. package/skills/colamd-themes/SKILL.md +5 -5
  28. package/.claude/skills/colamd-themes-preview.skill.md +0 -333
  29. package/.claude/skills/colamd-themes.skill.md +0 -10
  30. package/.dsh/skills/colamd-themes/SKILL.md +0 -14
  31. package/.github/supported-topics.yml +0 -17
  32. package/.hermes/skills/tools/colamd-themes/SKILL.md +0 -14
  33. package/.openclaw/skills/colamd-themes/SKILL.md +0 -21
  34. package/.opencode/skills/colamd-themes/SKILL.md +0 -17
  35. package/.trae/rules/colamd-themes.md +0 -5
  36. package/CHANGELOG.md +0 -318
  37. package/DSH_SUPPORT_SUMMARY.md +0 -87
  38. package/README_CN.md +0 -412
  39. package/RELEASENOTE.md +0 -541
  40. package/bytechain.cn-colamd-themes-0.5.0.tgz +0 -0
  41. package/mcp-server/dist/index.d.ts +0 -13
  42. package/mcp-server/dist/index.d.ts.map +0 -1
  43. package/mcp-server/dist/index.js.map +0 -1
  44. package/mcp-server/package-lock.json +0 -1759
  45. package/mcp-server/package.json +0 -24
  46. package/mcp-server/src/index.ts +0 -0
  47. package/mcp-server/tsconfig.json +0 -19
  48. package/src/cli.ts +0 -474
  49. package/src/color-systems.ts +0 -289
  50. package/src/color-utils.ts +0 -137
  51. package/src/contrast.ts +0 -66
  52. package/src/docx-style-paradigm.ts +0 -811
  53. package/src/export-cli.ts +0 -356
  54. package/src/extractors/base.ts +0 -8
  55. package/src/extractors/docx-extractor.ts +0 -417
  56. package/src/extractors/pdf-extractor.ts +0 -533
  57. package/src/extractors/url-extractor.ts +0 -846
  58. package/src/generator.ts +0 -197
  59. package/src/index.ts +0 -29
  60. package/src/models.ts +0 -212
  61. package/src/renderer.ts +0 -332
  62. package/src/templates/template.css +0 -220
  63. package/src/templates/theme-paradigm.md +0 -530
  64. package/src/templates/theme-template.hbs +0 -256
  65. package/src/theme-store.ts +0 -185
  66. package/src/types/pdf-parse.d.ts +0 -12
  67. package/src/utils/cli-utils.ts +0 -84
  68. package/src/utils/document-paradigm.ts +0 -118
  69. package/src/validators.ts +0 -298
  70. package/themes-preview/demo-content.md +0 -187
  71. package/tsconfig.json +0 -18
package/CHANGELOG.md DELETED
@@ -1,318 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [0.5.0] - 2026-10-25
9
-
10
- ### Added
11
- - **ColaMD 2.7.7 兼容性核对**:以 npm 发布的 `@bytechain.cn/colamd@2.7.7` 为基准,逐项验证主题 CSS 契约 —— `.cm-md-*` 类钩子零漂移(渲染器共 49 个钩子)、`:root` 活变量(14 核心 + 4 排版 + 9 `--pele-*`)全部被 2.7.7 消费
12
- - **导出管线 2.x 包守卫**:`renderer.ts` 检测到安装的 `@bytechain.cn/colamd` 为 2.x(Electron 应用分发,不含 `colamd-renderer.js` 库入口)时给出明确的降级指引,替代原先笼统的 "Cannot find renderer" 报错
13
- - **导出主题解析修复**:内置主题(如 `elegant`)现优先加载本仓库的 2.7.7 契约 CSS(`themes/<name>.css`)再传给渲染器,修复导出 HTML/PDF 实际使用 1.5.x 旧内置配色的问题;注入时将 `:root` 变量镜像到 `body` 作用域,绕过 1.5.x 基础 CSS 的元素级变量声明(主题文件保持 `:root` 契约不变,桥接逻辑仅存在于导出管线)
14
- - 代码与文档中的契约版本引用统一为 **2.7.7**(`validate` 输出、生成器自检、校验器注释)
15
-
16
- ### Changed
17
- - **10 个主题的设计质量优化**(paradigm 检查 0 错误):
18
- - `colly` / `salvator-blog` / `meeting-minutes`:修正 panel 层级颠倒(`--seed-panel-alt` 加深至对比 2 级)
19
- - `swiss-design`:边框与 panel-alt 明度差扩大至 3 级
20
- - `shimo-theme`:面板改纯中性灰,accent 提饱和至 `#2a6bf2`(S 83%)
21
- - `elegant`:砖红 accent 饱和度 55% → 70%(`#b0401f`),选区等硬编码色同步
22
- - `guizang`:米黄面板改中性暖灰,消除中性灰偏离(NT-02)
23
- - `pixso-design`:accent 饱和度 56% → 76%(`#4f46e5`),6 处渐变/边框 rgba 迁移
24
- - `trae-blue`:accent 饱和度 70% → 85%(`#2563eb`),panel 换中性灰
25
- - `forest-ink`:accent 饱和度提升(`#356b44`),文字灰阶改绿灰回归墨绿主轴
26
- - 保留 4 条有意的警告:academic 系列低饱和学术点缀、meeting-minutes 黑色极简点缀
27
-
28
- ### Removed
29
- - 移除遗留的 pre-2.7 旧结构主题(`body.theme-custom` 根块 + 58 个死变量,文件名为 mojibake 的"我的主题.css")—— 该主题在 2.7.7 下完全无效
30
-
31
- ### Fixed
32
- - `package-lock.json` 根 manifest 依赖误标为 `^2.0.0`,恢复与 `package.json` 一致的 `^1.5.2`(npm 2.7.7 为应用分发,CLI 导出必须使用 1.5.x 库渲染器)
33
-
34
- ---
35
-
36
- ## [Unreleased]
37
-
38
- *No unreleased changes for this snapshot.*
39
-
40
- ## [0.4.0] - 2026-10-23
41
-
42
- ### Added
43
- - **DeepSeek Harness Agent Support** — 新增 `.dsh/skills/colamd-themes/SKILL.md`,通过 `skills/build-skills.sh dsh` 生成
44
- - Agent skill 覆盖扩展至 6 个(Claude Code、OpenCode、OpenClaw、Hermes、Trae、DeepSeek Harness),frontmatter 统一加入各 Agent 的命令前置条件与能力标签
45
- - `validateThemeCss()` 契约校验器:检查 `:root` 根块、死选择器、死变量、`pt` 单位、引用/代码块纵向 padding
46
- - `colamd-themes validate` 现在同时输出 CSS 契约检查结果
47
- - 生成后自动跑一次契约自检
48
- - `DSH_SUPPORT_SUMMARY.md` 与 `test-dsh-skill.sh` 用于发布验证
49
-
50
- ### Changed
51
- - **主题契约升级到 ColaMD Extend 2.7**:主题根块由 `body.theme-custom` 改为 `:root`;生成器模板升为 v4.0(`src/templates/theme-template.hbs`)
52
- - **选择器层重写**:`#write` / `.ProseMirror` / 语义标签规则全部替换为 `#editor .cm-content .cm-md-*`(CodeMirror 6 钩子);引用块与代码块只设左右 padding
53
- - **变量体系重写**:新增 `--text-secondary` / `--highlight-bg` / `--editor-font-size` / `--editor-column-width` / `--pele-*`;删除 `--surface-color`、`--heading-color`、`--accent-*`、`--hr-color`、`--code-color`、`--code-block-color`、`--table-border`、`--scrollbar-thumb*`、`--mermaid-*`、`--radius-*`、`--content-width`、`--font-size-root`、`--font-scale-*`、`--line-height-*`、`--font-heading`、`--font-code` 等死变量
54
- - **图表配色**:Mermaid 20 变量预设改为 Pele 9 变量,缺省值由 `--code-block-bg` / `--code-block-text` / `--link-color` 经 `color-mix()` 推导;CLI 移除 `mermaid-presets` 命令与 `--mermaid-preset` 选项
55
- - **代码块文字色**:由代码块底色对比度自动派生(深色底拿浅字、浅色底拿正文色),不再硬编码
56
- - **打印规范**:删除整份 `@media print` 镜像与变量重声明,只保留 `print-color-adjust` 保真
57
- - `themes/template.css` 与 `src/templates/theme-paradigm.md` 同步至 v4.0
58
- - 版本号统一为 **0.4.0**,README 多 Agent 章节补充 DeepSeek Harness 生成路径与 frontmatter 说明
59
- - 构建脚本对齐新的数据通道契约
60
-
61
- ### Removed
62
- - `src/mermaid-presets.ts`(Mermaid 预设链路)
63
- - `ThemeStyle.mermaidPresetId`
64
- - 误跟踪的 `.DS_Store` 文件
65
-
66
- ---
67
-
68
- ## [0.3.3] - 2026-08-26
69
-
70
- ### Added
71
- - **MCP Server**: Full MCP (Model Context Protocol) server in `mcp-server/` directory with 14 tools covering theme extraction, HTML/PDF export, validation, color systems, and theme management. Compatible with Chatbox, Cursor, Claude Desktop, Continue, and all MCP-capable clients.
72
- - **Chinese Theme Name Support**: Fixed non-ASCII (Chinese/CJK) theme names being stripped during extraction. MCP server auto-detects non-ASCII names and constructs full output paths via `-o` flag.
73
- - **Multi-Agent Skill Definitions**: Added AI agent skill files for 5 coding assistants — Claude Code, OpenCode, OpenClaw, Hermes, Trae — auto-generated from `skills/colamd-themes/SKILL.md`.
74
- - New MCP binary entry: `colamd-themes-mcp`
75
- - New scripts: `build:mcp`, `build:all`, `mcp`
76
-
77
- ### Changed
78
- - Package version bumped from 0.3.2 to 0.3.3
79
- - MCP server versioned independently at 0.2.0
80
-
81
- ---
82
-
83
- ## [0.3.2] - 2026-05-29
84
-
85
- ### Added
86
- - **CSS Pitfall Quick Reference**: Comprehensive 6-topic guide for theme authoring in AI agent skills, covering screen/print sync, body text indent, indent exclusion, list indentation, Mermaid CJK text overflow, and Mermaid classDef inheritance rules
87
- - New theme: **Trae Blue** — modern blue-themed design for technical documentation
88
- - New theme: **Forest Ink** — nature-inspired dark green palette with ink aesthetics
89
- - Support for absolute path input in CLI commands
90
- - Two new theme preview HTML files (colly-preview, salvator-blog-preview)
91
- - Short CLI alias `cthemes` as alternative to `colamd-themes`
92
- - Unified error handling system with structured error codes (`CLIError` + `ErrorCode`)
93
- - Shared utility functions for consistent file path resolution (`cli-utils.ts`)
94
- - Template cache management with LRU eviction, TTL expiration, and mtime-based invalidation
95
-
96
- ### Changed
97
- - Package name migrated to scoped format: `@bytechain.cn/colamd-themes`
98
- - Optimized **Swiss Design** theme with improved typography and spacing
99
- - Fixed build script template file copy logic (`package.json` build command)
100
- - Migrated all synchronous file I/O operations in `theme-store.ts` to async API (`fs/promises`)
101
- - Standardized error handling across all export commands with unified error codes
102
-
103
- ### Security
104
- - **SSRF Protection**: URL extractor now validates URLs against protocol whitelist (http/https only) and blocks private network ranges (localhost, 10.x, 172.16-31.x, 192.168.x, 169.254.x) to prevent server-side request forgery attacks
105
- - **Input Validation**: CSS files are now validated for extension, size limit (1MB max), and content validity before processing to prevent OOM attacks
106
-
107
- ### Performance
108
- - **Async I/O**: Theme store operations now use non-blocking async file I/O, preventing event loop blocking during configuration read/write operations
109
- - **Template Caching**: Handlebars template compilation now uses a managed cache system:
110
- - Maximum 10 cached templates (LRU-style eviction)
111
- - 30-minute TTL for automatic expiration
112
- - File modification time (mtime) detection for auto-invalidation when templates change on disk
113
-
114
- ### Bug Fixes
115
- - **Puppeteer Page Resource Leak**: Fixed zombie process issue where Puppeteer Page objects were not properly closed during browser shutdown. The renderer now explicitly closes page instances before browser termination.
116
- - **PDF Export Styling**: Resolved issue where custom themes were not applied to PDF output by removing `emulateMediaType("screen")` that prevented `@media print` rules from executing
117
- - **Hardcoded Version Number**: CLI version command now dynamically reads from package.json instead of using hardcoded value, ensuring correct version display after package updates
118
- - **Code Duplication**: Extracted common file path resolution logic into shared utility functions (`resolveInputPath`, `resolveOutputPath`, `getDocumentTitle`) used across all export commands
119
-
120
- ### Removed
121
- - `.DS_Store` files from project directory
122
- - Local HTTP server security code (token validation, request timeouts) per user request — reverted to simpler implementation
123
-
124
- ---
125
-
126
- ## [0.3.1] - 2026-06-01
127
-
128
- ### 🔒 Security Fixes (Critical)
129
-
130
- **URL Extractor SSRF Vulnerability**
131
- - Added comprehensive URL validation to prevent Server-Side Request Forgery attacks
132
- - Protocol whitelist enforcement (only `http:` and `https:` allowed)
133
- - Private network address blocking (localhost, 10.x, 172.16-31.x, 192.168.x, 169.254.x)
134
- - Clear error messages for blocked access attempts
135
- - File: [`url-extractor.ts`](src/extractors/url-extractor.ts)
136
-
137
- **Input Validation Enhancement**
138
- - CSS file extension validation (must be `.css`)
139
- - Maximum file size limit enforced (1MB) to prevent memory exhaustion attacks
140
- - Content validity check (minimum 10 characters)
141
- - Sanitized theme name extraction from file paths (removes special characters, limits length)
142
- - Files: [`theme-store.ts`](src/theme-store.ts), [`generator.ts`](src/generator.ts)
143
-
144
- ### 🐛 Bug Fixes (Major & Medium)
145
-
146
- **Puppeteer Page Resource Leak (#1)**
147
- - **Severity**: Critical
148
- - **Issue**: Browser instances could leave zombie processes if page objects weren't closed before browser termination
149
- - **Fix**: Explicitly close page instances in [`renderer.ts`](src/renderer.ts#L150-L155) close() method before shutting down the browser
150
- - **Impact**: Prevents resource leaks and ensures clean process cleanup
151
-
152
- **PDF Export Styling Not Applied (#4)**
153
- - **Severity**: Major
154
- - **Issue**: Custom themes were not rendering correctly in PDF output
155
- - **Root Cause**: `emulateMediaType("screen")` forced browser into screen mode, causing CSS `@media print { ... }` rules to be ignored
156
- - **Fix**: Removed screen media type emulation in [`renderer.ts`](src/renderer.ts) to allow default print mode
157
- - **Impact**: All PDF exports now render with full theme styling fidelity (colors, fonts, backgrounds, spacing)
158
-
159
- **Hardcoded Version Number (#5)**
160
- - **Severity**: Medium
161
- - **Issue**: CLI `--version` flag displayed hardcoded "0.2.0" regardless of actual package version
162
- - **Fix**: Implemented dynamic version reading from [`cli.ts`](src/cli.ts) using `getPackageVersion()` function that reads `package.json` at runtime
163
- - **Impact**: Version display always matches published package version
164
-
165
- ### ⚡ Performance Improvements
166
-
167
- **Synchronous I/O Blocking (#4)**
168
- - **Before**: All theme store operations used blocking `readFileSync()`, `writeFileSync()`, `existsSync()` calls
169
- - **After**: Migrated to async API in [`theme-store.ts`](src/theme-store.ts):
170
- - `readFile()`, `writeFile()`, `access()` from `node:fs/promises`
171
- - All public functions now return Promises
172
- - Non-blocking event loop during configuration operations
173
- - **Impact**: Improved responsiveness, especially during batch export operations
174
-
175
- **Template Cache Management (#7)**
176
- - **Before**: Single global template variable with no size limits or invalidation
177
- - **After**: Sophisticated cache system in [`generator.ts`](src/generator.ts):
178
- - **LRU Eviction**: Max 10 compiled templates (evicts oldest when full)
179
- - **TTL Expiration**: 30-minute automatic expiry of cached entries
180
- - **mtime Detection**: Auto-invalidates when source template file is modified
181
- - **Manual Clear**: `clearTemplateCache()` function for testing/memory management
182
- - **Impact**: Prevents unbounded memory growth in long-running processes; ensures fresh templates after updates
183
-
184
- ### 🛠️ Code Quality Improvements
185
-
186
- **Unified Error Handling System (#5)**
187
- - Created [`cli-utils.ts`](src/utils/cli-utils.ts) utility module with:
188
- - `CLIError` class: Structured error with code, message, and cause chain
189
- - `ErrorCode` enum: Standardized error categories (FILE_NOT_FOUND, THEME_ERROR, RENDER_ERROR, INVALID_INPUT, UNKNOWN)
190
- - Consistent error propagation across all export commands
191
- - Updated [`export-cli.ts`](src/export-cli.ts) to use unified error handling:
192
- - Try-catch blocks wrap all command actions
193
- - Process exits with appropriate error codes
194
- - Error messages include context and suggestions
195
- - **Impact**: Better debugging experience; consistent user-facing errors; easier error tracking
196
-
197
- **Code Deduplication (#6)**
198
- - Extracted common patterns into reusable utilities:
199
- - `resolveInputPath(input)`: Validates file existence, converts relative→absolute paths
200
- - `resolveOutputPath(input, output?, ext?)`: Derives output path with smart defaults
201
- - `getDocumentTitle(filePath)`: Extracts filename without extension for document title
202
- - **Impact**: Reduced code duplication; single source of truth for path logic; easier maintenance
203
-
204
- ### 📝 Technical Details
205
-
206
- **Security Architecture**
207
-
208
- ```
209
- User Input → Validation Layer → Processing Layer
210
- │ │
211
- ├── Protocol Check ├── Async Operations
212
- ├── Network Check ├── Cache Management
213
- ├── Size Limits └── Resource Cleanup
214
- └── Format Validation
215
- ```
216
-
217
- **Performance Metrics**
218
-
219
- | Operation | Before | After | Improvement |
220
- |-----------|--------|-------|-------------|
221
- | Theme config read | Blocking sync | Non-blocking async | Event loop freed |
222
- | Batch export (100 files) | Sequential blocking | Concurrent-ready | ~40% faster* |
223
- | Template compilation | Uncached/recompile | Cached (max 10) | ~90% fewer compiles |
224
- | Memory usage (long run) | Unbounded growth | Limited (10 templates) | Stable |
225
-
226
- *\*Estimated improvement based on reduced I/O blocking*
227
-
228
- **Error Code Reference**
229
-
230
- | Code | Name | When Used |
231
- |------|------|-----------|
232
- | 1 | FILE_NOT_FOUND | Input file does not exist |
233
- | 2 | THEME_ERROR | Theme resolution or registration fails |
234
- | 3 | RENDER_ERROR | HTML/PDF rendering pipeline failure |
235
- | 4 | INVALID_INPUT | Invalid arguments or options |
236
- | 99 | UNKNOWN | Unexpected/unclassified error |
237
-
238
- ---
239
-
240
- ## [0.3.0] - 2026-06-01
241
-
242
- ### Added
243
- - **Trae Blue Theme**: Modern blue color scheme optimized for developer documentation and technical writing
244
- - **Forest Ink Theme**: Dark forest-inspired theme with elegant ink-style aesthetics
245
- - **Absolute Path Support**: CLI now accepts absolute file paths for all input commands
246
- - **Theme Previews**: Added interactive HTML previews for colly and salvator-blog themes
247
- - **CSS Reference**: Included common CSS pitfalls and best practices documentation
248
- - **Short CLI Alias**: `cthemes` command added as shorthand for `colamd-themes`
249
-
250
- ### Changed
251
- - **Package Name**: Migrated from `colamd-themes` to `@bytechain.cn/colamd-themes` (scoped package)
252
- - **Swiss Design Enhancement**: Refined Swiss Design theme with better contrast ratios and improved readability
253
- - **Build Process Fix**: Corrected template file copying logic in build script to ensure proper distribution
254
-
255
- ### Removed
256
- - System files (`.DS_Store`) cleaned from repository
257
-
258
- ---
259
-
260
- ## [0.2.0] - 2026-05-25
261
-
262
- ### Added
263
- - **v3.0 Seed Palette Paradigm**: Complete implementation of ColaMD's new design token system
264
- - 15 predefined seed palettes across 5 families (Morandi, Macaron, Nordic, Vintage, Mint)
265
- - Auto-derived semantic mapping from seed tokens via CSS custom properties
266
- - Mermaid diagram presets (light/dark/elegant) with 20 core variables
267
- - **Academic Style Theme**: Specialized theme for academic paper formatting
268
- - **Three Base Themes**: Initial set of core themes (elegant, newsprint, light/dark)
269
- - **Theme Validation Engine**: WCAG 2.1 compliance checking with 15+ design constraint rules
270
- - **Color System Library**: Comprehensive color palette management utilities
271
-
272
- ### Changed
273
- - **Extractor Refactoring**: Complete rewrite of URL, DOCX, and PDF extractors
274
- - Improved CSS rule parsing via `css-tree`
275
- - Enhanced specificity calculation for inline style resolution
276
- - Multi-layer heuristic analysis for PDF metadata extraction
277
- - **Academic Paper Theme**: Restructured to follow v3.0 paradigm specifications
278
- - **Template Engine**: Handlebars-powered CSS generation with 6-section output structure
279
-
280
- ### Fixed
281
- - Merge conflict resolution for `academic-paper.css` (adopted remote version)
282
-
283
- ---
284
-
285
- ## [0.1.0] - 2026-05-22
286
-
287
- ### Added
288
- - **Initial Release**: Core ColaMD theme development toolkit
289
- - **CLI Interface**: Command-line tool for theme management and export operations
290
- - **Theme Extraction**:
291
- - URL-based extractor with CSS parsing
292
- - DOCX extractor using mammoth for Word document styles
293
- - PDF extractor with typography metadata analysis
294
- - Auto-detection of source type
295
- - **Export Functionality**:
296
- - Markdown to HTML export with embedded theme CSS
297
- - Markdown to PDF export via Puppeteer rendering
298
- - Batch export support for multiple files/directories
299
- - **Theme Management**:
300
- - Built-in theme registration system
301
- - Custom theme import from CSS files
302
- - Default theme configuration
303
- - **Core Utilities**:
304
- - Color system with contrast ratio calculations
305
- - Typography management
306
- - Mermaid diagram integration
307
- - KaTeX math rendering support
308
-
309
- ---
310
-
311
- [Unreleased]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.5.0...HEAD
312
- [0.5.0]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.4.0...v0.5.0
313
- [0.4.0]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.3.2...v0.4.0
314
- [0.3.2]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.3.1...v0.3.2
315
- [0.3.1]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.3.0...v0.3.1
316
- [0.3.0]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.2.0...v0.3.0
317
- [0.2.0]: https://github.com/byteuser1977/ColaMD-themes/compare/v0.1.0...v0.2.0
318
- [0.1.0]: https://github.com/byteuser1977/ColaMD-themes/releases/tag/v0.1.0
@@ -1,87 +0,0 @@
1
- # DeepSeek Harness 支持添加总结
2
-
3
- ## 已完成的更改
4
-
5
- ### 1. 创建DeepSeek Harness技能文件
6
- - 创建了 `.dsh/skills/colamd-themes/SKILL.md` 文件
7
- - 包含完整的YAML frontmatter,符合DeepSeek Harness技能格式要求
8
- - 包含所有必要的元数据:name, version, description, metadata, prerequisites
9
-
10
- ### 2. 更新构建脚本
11
- - 在 `skills/build-skills.sh` 中添加了 `FRONT_DSH` 模板
12
- - 添加了 `generate_dsh()` 函数
13
- - 在case语句中添加了 `dsh` 选项
14
- - 更新了使用说明
15
-
16
- ### 3. 更新项目文档
17
- - 在 `README.md` 中更新了Multi-Agent Skill部分:
18
- - 更新支持的Agent数量:从5个增加到6个
19
- - 添加了DeepSeek Harness的技能路径和frontmatter信息
20
- - 更新了架构图,包含DeepSeek Harness
21
- - 添加了 `bash skills/build-skills.sh dsh` 命令示例
22
- - 在 `CHANGELOG.md` 中添加了新功能记录
23
-
24
- ### 4. 更新.gitignore
25
- - 移除了对 `.claude/`、`.opencode/`、`.hermes/` 目录的忽略
26
- - 确保所有Agent技能文件都可以被Git跟踪
27
-
28
- ### 5. 创建测试脚本
29
- - 创建了 `test-dsh-skill.sh` 测试脚本
30
- - 验证DeepSeek Harness技能文件的正确生成
31
-
32
- ## DeepSeek Harness技能格式
33
-
34
- ```yaml
35
- ---
36
- name: colamd-themes
37
- version: "1.0.0"
38
- description: >
39
- Generate, validate, export, and manage ColaMD 2.7 contract CSS themes.
40
- Extract from URLs/DOCX/PDF; export Markdown to HTML/PDF; batch export.
41
- metadata:
42
- dsh:
43
- tags: [colamd, themes, css, markdown, export, pdf, html]
44
- prerequisites:
45
- commands: [node, npm]
46
- ---
47
- ```
48
-
49
- ## 使用方法
50
-
51
- ### 生成DeepSeek Harness技能
52
- ```bash
53
- bash skills/build-skills.sh dsh
54
- ```
55
-
56
- ### 生成所有Agent技能
57
- ```bash
58
- bash skills/build-skills.sh all
59
- # 或
60
- npm run build:skills
61
- ```
62
-
63
- ## 验证
64
-
65
- 所有技能文件已成功生成:
66
- - `.claude/skills/colamd-themes.skill.md` ✅
67
- - `.claude/skills/colamd-themes-preview.skill.md` ✅
68
- - `.opencode/skills/colamd-themes/SKILL.md` ✅
69
- - `.openclaw/skills/colamd-themes/SKILL.md` ✅
70
- - `.hermes/skills/tools/colamd-themes/SKILL.md` ✅
71
- - `.trae/rules/colamd-themes.md` ✅
72
- - `.dsh/skills/colamd-themes/SKILL.md` ✅ (新增)
73
-
74
- ## 文件更改列表
75
-
76
- 1. `skills/build-skills.sh` - 添加DeepSeek Harness支持
77
- 2. `.dsh/skills/colamd-themes/SKILL.md` - 新增DeepSeek Harness技能文件
78
- 3. `README.md` - 更新文档,添加DeepSeek Harness信息
79
- 4. `CHANGELOG.md` - 记录新功能添加
80
- 5. `.gitignore` - 更新忽略规则
81
- 6. `test-dsh-skill.sh` - 新增测试脚本
82
-
83
- ## 后续步骤
84
-
85
- 1. 测试DeepSeek Harness技能在实际环境中的工作情况
86
- 2. 考虑为DeepSeek Harness添加更多特定的元数据或配置选项
87
- 3. 监控用户反馈,根据需要调整技能内容