yg-team-cli 2.5.0 → 2.5.1

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 CHANGED
@@ -40,6 +40,9 @@
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
+
43
46
  **v2.4.10** - 修复 Claude 返回权限确认而非实际内容问题
44
47
  - **修复**: 添加 `--dangerously-skip-permissions` 参数跳过权限确认
45
48
  - **问题**: 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
  /**