yg-team-cli 2.5.0 → 2.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.
- package/README.md +6 -0
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
- **移动**: `updateAiMemory` 从 `add-feature` 移到 `split-prd`,Spec 生成后更新功能清单
|
|
41
41
|
- **工作流**: `add-feature` → `split-prd` → `breakdown`
|
|
42
42
|
|
|
43
|
+
**v2.5.1** - 修复目录创建 bug
|
|
44
|
+
- **修复**: `FileUtils.write` 现在自动创建父目录,解决 `docs/prd-docs/` 不存在时的写入失败问题
|
|
45
|
+
|
|
46
|
+
**v2.5.2** - init 命令新增 prd-docs 目录
|
|
47
|
+
- **新增**: `team-cli init` 现在默认创建 `docs/prd-docs/` 目录供存放 PRD 需求文档
|
|
48
|
+
|
|
43
49
|
**v2.4.10** - 修复 Claude 返回权限确认而非实际内容问题
|
|
44
50
|
- **修复**: 添加 `--dangerously-skip-permissions` 参数跳过权限确认
|
|
45
51
|
- **问题**: v2.4.9 中 Claude CLI 在新目录首次运行时返回权限确认提示而非 spec 内容
|
package/dist/cli.js
CHANGED
|
@@ -213,9 +213,11 @@ var init_utils = __esm({
|
|
|
213
213
|
return await fs.readFile(file, "utf-8");
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
216
|
+
* 写入文件内容(自动创建父目录)
|
|
217
217
|
*/
|
|
218
218
|
static async write(file, content) {
|
|
219
|
+
const dir = path2.dirname(file);
|
|
220
|
+
await fs.ensureDir(dir);
|
|
219
221
|
await fs.writeFile(file, content, "utf-8");
|
|
220
222
|
}
|
|
221
223
|
/**
|
|
@@ -1700,6 +1702,7 @@ frontend/
|
|
|
1700
1702
|
\u2514\u2500\u2500 public/ # \u9759\u6001\u8D44\u6E90
|
|
1701
1703
|
|
|
1702
1704
|
docs/
|
|
1705
|
+
\u251C\u2500\u2500 prd-docs/ # PRD \u9700\u6C42\u6587\u6863
|
|
1703
1706
|
\u251C\u2500\u2500 specs/ # \u529F\u80FD\u89C4\u683C\u6587\u6863
|
|
1704
1707
|
\u251C\u2500\u2500 api/ # API \u6587\u6863
|
|
1705
1708
|
\u2514\u2500\u2500 sessions/ # \u5F00\u53D1\u4F1A\u8BDD\u8BB0\u5F55
|
|
@@ -2365,6 +2368,7 @@ var init_init = __esm({
|
|
|
2365
2368
|
task: async () => {
|
|
2366
2369
|
await FileUtils.ensureDir(projectPath);
|
|
2367
2370
|
await FileUtils.ensureDir(path7.join(projectPath, "docs/specs"));
|
|
2371
|
+
await FileUtils.ensureDir(path7.join(projectPath, "docs/prd-docs"));
|
|
2368
2372
|
await FileUtils.ensureDir(path7.join(projectPath, "docs/api"));
|
|
2369
2373
|
await FileUtils.ensureDir(path7.join(projectPath, "docs/sessions"));
|
|
2370
2374
|
}
|