Private
Public Access
1
0
Commit Graph

14 Commits

Author SHA1 Message Date
27ec4a2d38 refactor: 简化 shell 检测,仅支持 bash 和 zsh
- 移除 fish shell 支持
- 其他 shell 显示不支持错误并退出
- 简化 write_env_to_shell 函数

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 14:03:00 +08:00
edd8ce3245 perf: 优化系统依赖安装,一次性安装所有缺失依赖
将 install_sys_dep 改为 install_sys_deps,支持批量安装,
例如 `apt-get install -y curl unzip jq` 而非逐个安装。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 13:56:34 +08:00
e2d0b555b5 feat: 添加启动新 shell 会话的提示
在配置完成后询问用户是否启动新的 shell 会话,
以使环境变量立即生效,解决 "command not found" 问题。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 13:54:45 +08:00
d2a996df1b feat: 自动检测并安装系统依赖 (curl, unzip, jq)
- 添加 get_sys_pkg_manager() 检测系统包管理器 (apt/yum/dnf/apk/brew/pacman)
- 添加 install_sys_dep() 自动安装单个依赖
- 添加 check_system_deps() 检测并自动安装缺失的 curl, unzip, jq
- 在 main() 开头调用依赖检测
- 简化 install_bun() 移除重复的 unzip 检测

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 13:51:33 +08:00
af49600718 feat: 自动刷新环境变量并验证工具可用性
- 添加 get_shell_rc() 检测用户 shell 配置文件
- 添加 reload_env() 从配置文件加载环境变量
- 配置完成后自动刷新环境变量
- 验证每个工具是否可用并显示状态
- 如果工具不可用,提示用户执行 source 命令

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 13:47:58 +08:00
54dac51e3a fix: bun 安装时自动创建 node 符号链接 2025-12-12 11:47:40 +08:00
5703c163f7 feat: 配置完成后提示刷新 PATH 2025-12-12 11:45:46 +08:00
9a26a03f88 fix: 安装 Bun 前检测 unzip 依赖 2025-12-12 11:43:48 +08:00
36a96d4551 fix: 修复包管理器检测,info 输出到 stderr 2025-12-12 11:04:55 +08:00
b068678cf3 fix: 确保 PATH 包含 bun 路径 2025-12-12 11:03:43 +08:00
6f623d96de chore: 移动 API 密钥提示到顶部 2025-12-12 11:01:07 +08:00
49c95c94ae feat: 添加 API 密钥获取指引 2025-12-12 11:00:20 +08:00
54f3ea01e2 feat: setup.sh 添加工具选择菜单 2025-12-12 10:58:30 +08:00
c97d3fbdbb feat: 添加 VitePress 文档站和 Gitea CI 部署
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
- 新增 docs/ 目录,使用 VitePress 构建文档站
- 添加 .gitea/workflows/deploy.yaml,部署到 Cloudflare Pages
- 新增 setup.sh 一站式安装脚本(兼容 macOS bash 3.x)
- 修复 Gemini CLI 脚本认证头(改用 Authorization: Bearer)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 10:25:37 +08:00