dev-playbooks-cn 2.5.2 → 2.5.3
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 +21 -0
- package/bin/devbooks.js +28 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,27 @@ 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.3] - 2026-01-23
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **智能 ignore 功能增强**:
|
|
13
|
+
- 自动识别并 ignore DevBooks 工作流产生的临时文件
|
|
14
|
+
- 新增 `evidence/` - 测试证据目录
|
|
15
|
+
- 新增 `dev-playbooks/changes/*/evidence/` - 变更包中的证据
|
|
16
|
+
- 新增 `*.tmp`, `*.bak` - 临时文件和备份文件
|
|
17
|
+
- 新增 `.ckb/` - CKB 代码知识库缓存
|
|
18
|
+
- 自动识别项目级 skills 目录(`.factory/`, `.cursor/` 等)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **更智能的 ignore 规则生成**:
|
|
23
|
+
- 根据选择的 AI 工具自动添加对应的目录
|
|
24
|
+
- 支持相对路径的 skills 目录自动识别
|
|
25
|
+
- 同时更新 `.gitignore` 和 `.npmignore`
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
8
29
|
## [2.5.2] - 2026-01-23
|
|
9
30
|
|
|
10
31
|
### Fixed
|
package/bin/devbooks.js
CHANGED
|
@@ -650,7 +650,16 @@ const IGNORE_MARKERS = {
|
|
|
650
650
|
function getGitIgnoreEntries(toolIds) {
|
|
651
651
|
const entries = [
|
|
652
652
|
'# DevBooks 本地配置(包含用户偏好,不应提交)',
|
|
653
|
-
'.devbooks/'
|
|
653
|
+
'.devbooks/',
|
|
654
|
+
'',
|
|
655
|
+
'# DevBooks 工作流产生的临时文件',
|
|
656
|
+
'evidence/',
|
|
657
|
+
'dev-playbooks/changes/*/evidence/',
|
|
658
|
+
'*.tmp',
|
|
659
|
+
'*.bak',
|
|
660
|
+
'',
|
|
661
|
+
'# CKB 代码知识库缓存',
|
|
662
|
+
'.ckb/'
|
|
654
663
|
];
|
|
655
664
|
|
|
656
665
|
// 根据选择的工具添加对应的 AI 工具目录
|
|
@@ -666,6 +675,14 @@ function getGitIgnoreEntries(toolIds) {
|
|
|
666
675
|
}
|
|
667
676
|
}
|
|
668
677
|
|
|
678
|
+
// 添加 skills 目录(项目级)
|
|
679
|
+
if (tool.skillsDir && !path.isAbsolute(tool.skillsDir)) {
|
|
680
|
+
const topDir = tool.skillsDir.split('/')[0];
|
|
681
|
+
if (!entries.includes(topDir + '/')) {
|
|
682
|
+
entries.push(`${topDir}/`);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
669
686
|
// 添加 rules 目录
|
|
670
687
|
if (tool.rulesDir) {
|
|
671
688
|
const topDir = tool.rulesDir.split('/')[0];
|
|
@@ -701,6 +718,7 @@ function getNpmIgnoreEntries() {
|
|
|
701
718
|
'# AI 工具配置目录',
|
|
702
719
|
'.claude/',
|
|
703
720
|
'.cursor/',
|
|
721
|
+
'.factory/',
|
|
704
722
|
'.windsurf/',
|
|
705
723
|
'.gemini/',
|
|
706
724
|
'.agent/',
|
|
@@ -715,7 +733,15 @@ function getNpmIgnoreEntries() {
|
|
|
715
733
|
'# DevBooks 指令文件',
|
|
716
734
|
'CLAUDE.md',
|
|
717
735
|
'AGENTS.md',
|
|
718
|
-
'GEMINI.md'
|
|
736
|
+
'GEMINI.md',
|
|
737
|
+
'',
|
|
738
|
+
'# DevBooks 工作流临时文件',
|
|
739
|
+
'evidence/',
|
|
740
|
+
'*.tmp',
|
|
741
|
+
'*.bak',
|
|
742
|
+
'',
|
|
743
|
+
'# CKB 缓存',
|
|
744
|
+
'.ckb/'
|
|
719
745
|
];
|
|
720
746
|
}
|
|
721
747
|
|