dev-playbooks-cn 2.5.2 → 2.5.4

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.5.4] - 2026-01-23
9
+
10
+ ### Fixed
11
+
12
+ - **修正 ignore 规则**:
13
+ - 移除 `.ckb/` - 这是外部工具 CKB 的缓存,不属于 DevBooks
14
+ - 将 `dev-playbooks/changes/*/evidence/` 改为 `dev-playbooks/` - 整个工作目录都应该被 ignore
15
+
16
+ ### Changed
17
+
18
+ - **更准确的 ignore 范围**:
19
+ - `dev-playbooks/` - DevBooks 工作目录(包含所有运行时产生的内容)
20
+ - `.devbooks/` - DevBooks 本地配置
21
+ - `evidence/` - 测试证据目录
22
+ - `*.tmp`, `*.bak` - 临时文件
23
+
24
+ ---
25
+
26
+ ## [2.5.3] - 2026-01-23
27
+
28
+ ### Added
29
+
30
+ - **智能 ignore 功能增强**:
31
+ - 自动识别并 ignore DevBooks 工作流产生的临时文件
32
+ - 新增 `evidence/` - 测试证据目录
33
+ - 新增 `dev-playbooks/changes/*/evidence/` - 变更包中的证据
34
+ - 新增 `*.tmp`, `*.bak` - 临时文件和备份文件
35
+ - 新增 `.ckb/` - CKB 代码知识库缓存
36
+ - 自动识别项目级 skills 目录(`.factory/`, `.cursor/` 等)
37
+
38
+ ### Changed
39
+
40
+ - **更智能的 ignore 规则生成**:
41
+ - 根据选择的 AI 工具自动添加对应的目录
42
+ - 支持相对路径的 skills 目录自动识别
43
+ - 同时更新 `.gitignore` 和 `.npmignore`
44
+
45
+ ---
46
+
8
47
  ## [2.5.2] - 2026-01-23
9
48
 
10
49
  ### Fixed
package/bin/devbooks.js CHANGED
@@ -650,7 +650,15 @@ const IGNORE_MARKERS = {
650
650
  function getGitIgnoreEntries(toolIds) {
651
651
  const entries = [
652
652
  '# DevBooks 本地配置(包含用户偏好,不应提交)',
653
- '.devbooks/'
653
+ '.devbooks/',
654
+ '',
655
+ '# DevBooks 工作目录(运行时产生的内容)',
656
+ 'dev-playbooks/',
657
+ '',
658
+ '# DevBooks 工作流产生的临时文件',
659
+ 'evidence/',
660
+ '*.tmp',
661
+ '*.bak'
654
662
  ];
655
663
 
656
664
  // 根据选择的工具添加对应的 AI 工具目录
@@ -666,6 +674,14 @@ function getGitIgnoreEntries(toolIds) {
666
674
  }
667
675
  }
668
676
 
677
+ // 添加 skills 目录(项目级)
678
+ if (tool.skillsDir && !path.isAbsolute(tool.skillsDir)) {
679
+ const topDir = tool.skillsDir.split('/')[0];
680
+ if (!entries.includes(topDir + '/')) {
681
+ entries.push(`${topDir}/`);
682
+ }
683
+ }
684
+
669
685
  // 添加 rules 目录
670
686
  if (tool.rulesDir) {
671
687
  const topDir = tool.rulesDir.split('/')[0];
@@ -701,6 +717,7 @@ function getNpmIgnoreEntries() {
701
717
  '# AI 工具配置目录',
702
718
  '.claude/',
703
719
  '.cursor/',
720
+ '.factory/',
704
721
  '.windsurf/',
705
722
  '.gemini/',
706
723
  '.agent/',
@@ -715,7 +732,12 @@ function getNpmIgnoreEntries() {
715
732
  '# DevBooks 指令文件',
716
733
  'CLAUDE.md',
717
734
  'AGENTS.md',
718
- 'GEMINI.md'
735
+ 'GEMINI.md',
736
+ '',
737
+ '# DevBooks 工作流临时文件',
738
+ 'evidence/',
739
+ '*.tmp',
740
+ '*.bak'
719
741
  ];
720
742
  }
721
743
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-playbooks-cn",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "AI-driven spec-based development workflow",
5
5
  "keywords": [
6
6
  "devbooks",