yg-team-cli 2.4.8 → 2.4.10

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
@@ -34,6 +34,14 @@
34
34
 
35
35
  ### 2026-02-03 - Bug 修复
36
36
 
37
+ **v2.4.10** - 修复 Claude 返回权限确认而非实际内容问题
38
+ - **修复**: 添加 `--dangerously-skip-permissions` 参数跳过权限确认
39
+ - **问题**: v2.4.9 中 Claude CLI 在新目录首次运行时返回权限确认提示而非 spec 内容
40
+
41
+ **v2.4.9** - 修复 Claude 调用卡住问题
42
+ - **修复**: `claude.ts` 中使用 `input` 选项通过 stdin 传递 prompt
43
+ - **问题**: v2.4.8 将整个 prompt 作为命令行参数传递,导致大型 prompt 处理异常
44
+
37
45
  **v2.4.8** - 修复 add-feature 命令 Listr 进度显示和 AI_MEMORY 更新问题
38
46
  - **修复**: `claude.ts` 中 `prompt` 和 `chat` 方法使用 `-p` 参数以 print 模式运行
39
47
  - **修复**: stdio 从 `inherit` 改为 `pipe`,正确捕获 Claude 输出
package/dist/cli.js CHANGED
@@ -515,9 +515,9 @@ ${promptText}`;
515
515
  }
516
516
  }
517
517
  await fs2.writeFile(tempFile, finalPrompt, "utf-8");
518
- const result = await execa("claude", ["-p", finalPrompt], {
519
- stdio: ["pipe", "pipe", "inherit"],
520
- // stdin: pipe, stdout: pipe (capture), stderr: inherit (show errors)
518
+ const result = await execa("claude", ["--dangerously-skip-permissions", "-p"], {
519
+ input: finalPrompt,
520
+ // 通过 stdin 传递 prompt
521
521
  timeout: options?.timeout || 3e5,
522
522
  // 5 分钟超时
523
523
  maxBuffer: 1024 * 1024 * 10
@@ -550,8 +550,9 @@ ${promptText}`;
550
550
  const role = msg.role === "system" ? "\u7CFB\u7EDF\u6307\u4EE4" : `${msg.role === "user" ? "\u7528\u6237" : "\u52A9\u624B"}`;
551
551
  return `[${role}]: ${msg.content}`;
552
552
  }).join("\n\n");
553
- const result = await execa("claude", ["-p", fullPrompt], {
554
- stdio: ["pipe", "pipe", "inherit"],
553
+ const result = await execa("claude", ["--dangerously-skip-permissions", "-p"], {
554
+ input: fullPrompt,
555
+ // 通过 stdin 传递 prompt
555
556
  timeout: options?.timeout || 3e5,
556
557
  maxBuffer: 1024 * 1024 * 10
557
558
  });