Private
Public Access
1
0
Commit Graph

11 Commits

Author SHA1 Message Date
783d1fe8d8 fix: 恢复 UTF-8 BOM 修复中文 Windows 下 PowerShell 5.x 解析错误
PowerShell 5.x 无 BOM 时使用系统默认编码(GBK)解析 .ps1 文件,
导致 UTF-8 中文字符被错误解析、行被合并,触发 MissingCatchOrFinally 错误。
恢复之前被误删的 UTF-8 BOM (EF BB BF) 以确保正确编码识别。
2026-03-20 22:56:08 +08:00
f1ab858212 fix: 改用下载到文件再执行,修复中文乱码
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s
根因: irm/iwr 文本解码时将 UTF-8 中文替换为 ?,
字符串在进入 iex 之前就已损坏。
改用 iwr -OutFile 写入原始字节到临时文件再执行,
绕过文本解码链路,彻底修复编码问题。
2026-02-28 17:43:02 +08:00
b07c61aa9d fix: 将 iwr|iex 替换为 iex(irm) 修复中文乱码
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 41s
iwr -useb URL | iex 管道传递 response 对象时,
ToString() 转换会丢失 Unicode 中文字符。
改用 irm (Invoke-RestMethod) 直接返回字符串内容,
避免对象到字符串的管道转换损坏。
2026-02-28 17:00:45 +08:00
3e5676872d fix: 移除 BOM 并增强 UTF-8 编码修复
- 移除 UTF-8 BOM (BOM 会破坏 iwr|iex 管道导致 param() 报错)
- 去掉 $Host.Name 守卫,无条件设置 Console 编码 (try/catch 兜底)
- chcp 65001 先于 Console.OutputEncoding 设置,确保代码页一致
2026-02-28 15:56:21 +08:00
43ecabf759 fix: 修复 PowerShell 脚本中文乱码问题
- 在所有 .ps1 脚本中添加 UTF-8 编码兼容块
  (Console OutputEncoding/InputEncoding + chcp 65001)
- 兼容 Windows PowerShell 5.x, PS 7.x, Windows Terminal, conhost, ISE
- 添加 UTF-8 BOM 确保本地执行时编码正确识别
- try/catch 静默处理不支持 Console 类的环境
2026-02-28 15:49:27 +08:00
7c4d947400 docs: 更新 API 分组说明、客户端推荐及重启终端提醒
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 1m4s
- 文档新增 ccmax/cc2api 分组说明:cc2api 推荐优先使用(Claude 系列,无客户端限制),ccmax 仅限 Claude Code
- 推荐 OpenCode、OpenClaw 作为 cc2api 客户端,GPT 模型推荐 v1/responses 端点
- Cherry Studio 兼容性说明更新:支持所有模型,仅 ccmax 分组 Claude 模型不可用
- 所有脚本重启终端提示改为中文
- 三个工具文档页及快速开始页添加重启终端 warning 框
2026-02-25 17:13:22 +08:00
d8440a1ccf fix: replace claude setup symlinks with files 2025-12-26 15:32:05 +08:00
9fee340a85 format 2025-12-12 13:59:42 +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
2314140bce feat: 增强三个 CLI 工具配置脚本
- Gemini CLI: 添加 GEMINI_MODEL 环境变量、settings.json 输出及备份逻辑
- Codex: 修复模型名称一致性 (gpt-5-codex)、添加 auth.json 备份逻辑
- Claude Code: 添加 VSCode 插件 config.json 配置支持
- CLAUDE.md: 重构文档,添加三个工具配置差异表

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 18:15:54 +08:00
13c6e92df6 feat: 添加 Claude Code、Gemini CLI、Codex 配置脚本
- ClaudeCode/: Claude Code 配置脚本
- GeminiCLI/: Gemini CLI 配置脚本
- codex/: Codex 配置脚本

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 16:27:20 +08:00