diff --git a/claude-dev-stack/deploy.ps1 b/claude-dev-stack/deploy.ps1 index 6ed94ac..9a3f1a6 100644 --- a/claude-dev-stack/deploy.ps1 +++ b/claude-dev-stack/deploy.ps1 @@ -674,8 +674,8 @@ CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --git https://github.com/rtk-ai/ } } -# rtk init -g:安装 Claude Code PreToolUse hook(幂等) -Invoke-WSL ". ~/.cargo/env 2>/dev/null; rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null +# rtk init -g:安装 Claude Code PreToolUse hook(幂等,yes 管道自动确认所有提示) +Invoke-WSL ". ~/.cargo/env 2>/dev/null; yes | rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null Write-OK "rtk hook 已注册 (rtk init -g),重启 Claude Code 后生效" # ══════════════════════════════════════════════════════════════