clawt 3.5.2 → 3.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/dist/index.js CHANGED
@@ -5805,7 +5805,8 @@ process.on("unhandledRejection", (reason) => {
5805
5805
  });
5806
5806
  async function main() {
5807
5807
  await program.parseAsync(process.argv);
5808
- if (config.autoUpdate) {
5808
+ const isCompletionCommand = process.argv[2] === "completion";
5809
+ if (config.autoUpdate && !isCompletionCommand) {
5809
5810
  await checkForUpdates(version);
5810
5811
  }
5811
5812
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawt",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "本地并行执行多个Claude Code Agent任务,融合 Git Worktree 与 Claude Code CLI 的命令行工具",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -100,7 +100,10 @@ process.on('unhandledRejection', (reason) => {
100
100
  async function main(): Promise<void> {
101
101
  await program.parseAsync(process.argv);
102
102
 
103
- if (config.autoUpdate) {
103
+ // completion 子命令的 stdout 会被 shell 的 source 捕获并执行,
104
+ // 更新提示会污染 stdout 导致 shell 报错,因此跳过更新检查
105
+ const isCompletionCommand = process.argv[2] === 'completion';
106
+ if (config.autoUpdate && !isCompletionCommand) {
104
107
  await checkForUpdates(version);
105
108
  }
106
109
  }