Commit Graph
69 Commits
Author SHA1 Message Date
li 92b9c40897 refactor: deduplicate installer-mcp + decompose installWorkflows
installer-mcp.ts (678→462):
- Extract configureMcpInClaude() shared pipeline, eliminates 3x duplication
- Extract mirrorCcgServers() + formatSyncMessage() for sync dedup
- installAceTool/installAceToolRs/installFastContext now thin wrappers

installer.ts — decompose installWorkflows (290-line monolith → 6 sub-functions):
- installCommandFiles, installAgentFiles, installPromptFiles
- installSkillFiles, installRuleFiles, installBinaryFile
- Shared InstallContext interface passes state between steps

Total: 1926→1724 lines (-202), dist 215→212 kB (-3 kB)
2026-03-12 13:16:14 +08:00
li 1d31302a45 refactor: split installer.ts into 5 focused modules (1878→max 678 lines)
Extract from monolithic installer.ts:
- installer-data.ts: command registry + workflow configs (381 lines)
- installer-template.ts: template variable injection + path utils (158 lines)
- installer-mcp.ts: MCP install/uninstall/sync functions (678 lines)
- installer-prompt.ts: fast-context prompt injection (125 lines)

All re-exports preserved in installer.ts — zero consumer changes.
Fixes: stale comments, order collisions, dead code removal.
2026-03-12 13:10:53 +08:00
li 6a02c169ab feat: fast-context MCP integration + Gemini MCP sync v1.7.82
- Add Windsurf Fast Context as 4th code retrieval MCP option (recommended)
- Three-endpoint prompt injection: Claude rules + Codex AGENTS.md + Gemini GEMINI.md
- Add syncMcpToGemini() mirroring MCP servers to ~/.gemini/settings.json
- Support API Key optional + FC_INCLUDE_SNIPPETS mode selection
- Full install/uninstall/menu lifecycle support
2026-03-12 12:23:05 +08:00
li 04460ad07e feat: /ccg:context command + quality gate rules v1.7.80
- /ccg:context: 27th slash command — .context/ init, decision log,
  compress, history for LLM context engineering
- /ccg:commit Context Compress Phase: auto-compress session.log →
  history/commits.jsonl on commit, add Context-Id trailer
- 13 role prompts .context Awareness: Codex 6 + Gemini 7 prompts
  inject .context/prefs/ reading instructions
- Quality Gate Rules: ~/.claude/rules/ccg-skills.md auto-trigger
  rules for verify-security/quality/change/module + gen-docs
- E2E test timeout 5s → 15s for growing command count
2026-03-11 23:37:37 +08:00
li 052cbb63c7 fix: binary download retry + prominent failure warning v1.7.79
- downloadBinaryFromRelease: 3 retries + 60s AbortController timeout
- Binary failure downgraded to warning (commands + skills still install)
- init.ts: red box warning + manual download URL + placement path on failure
- update.ts: backup binary before uninstall, restore on failure
- update.ts: subprocess timeout 120s → 300s (slow networks / China GFW)
- installer.test.ts: contextweaver E2E timeout 5s → 30s
2026-03-11 20:58:04 +08:00
li 7c5609aea6 fix: Windows hook exit 255 — use permissions.allow instead v1.7.78
- Windows: auto-approve codeagent-wrapper via permissions.allow
  (Hook depends on jq/grep/true which don't exist on Windows)
- macOS/Linux: keep existing Hook approach (works fine)
- Auto-migrate: remove old Hook on Windows upgrade
- Skip jq check on Windows (not needed with permissions.allow)
2026-03-11 17:07:27 +08:00
li 35b13119cd fix: hook exit 1 warning on non-codeagent-wrapper Bash calls
- Change `|| exit 1` to `|| true` — non-matching commands now silently pass
- Add `2>/dev/null` to jq — suppress stderr when jq is missing
- Auto-migrate: upgrade replaces old `exit 1` hooks with fixed version

Fixes: PreToolUse hook "failed with non-blocking status code 1" warning
that fired on every Bash command not containing "codeagent-wrapper"
2026-03-11 12:32:59 +08:00
li 6a9edf4b0b fix: resolve pre-existing typecheck + Go test failures
- menu.ts: ReturnType → InstanceType for Separator class (fixes tsc error)
- Remove @types/inquirer (inquirer v12 ships built-in types)
- executor_concurrent_test.go: add --dangerously-bypass-approvals-and-sandbox to expected args
- main_test.go: update version assertion 5.6.0 → 5.7.2
- ci.yml: restore typecheck + Go test steps (all passing now)
2026-03-11 12:22:08 +08:00
li 240b453050 refactor: remove local bin/ fallback, download only from GitHub Release
- Remove Strategy 2 (fallback to local bin/) from installer.ts
- Binary source is now exclusively GitHub Release (preset tag)
- Improve error message with direct download link on failure
- Update CHANGELOG.md to reflect the change
- Developers can self-build via codeagent-wrapper/build-all.sh
2026-03-11 11:54:21 +08:00
li e88a085898 chore: bump version to 1.7.77
- Binary migration to GitHub Release (npm 16.3MB → 161KB)
- Actions CI for cross-compilation
- Fix migration test timeout (network download)
2026-03-10 22:32:08 +08:00
li 968cbedb8a ci: migrate binaries to GitHub Release + Actions CI
- Add .github/workflows/build-binaries.yml (Go cross-compile → preset release)
- installer.ts: download from GitHub Release, fallback to local bin/
- package.json: exclude binaries from npm (16.3MB → 161KB)
- .gitignore: stop tracking bin/codeagent-wrapper-*
- git rm --cached 6 pre-compiled binaries
2026-03-10 22:26:14 +08:00
li aada7260fc fix: skills namespace isolation — install to skills/ccg/ v1.7.75
- Install skills to ~/.claude/skills/ccg/ instead of ~/.claude/skills/
- Uninstall only removes skills/ccg/, preserving user's own skills
- Auto-migrate old v1.7.73-74 layout (tools/orchestration at root)
- Add 3 tests: namespace, uninstall isolation, migration (134 total)
2026-03-10 12:27:30 +08:00
li c7e758a503 chore: bump version to 1.7.73
feat: /ccg:codex-exec command - Codex full execution with multi-model review
feat: Skills system - 6 native skills (quality gates + multi-agent orchestration)
feat: context7 MCP auto-install (free library docs, no API key)
feat: syncMcpToCodex() - mirror CCG MCP servers to ~/.codex/config.toml
fix: --skip-mcp now correctly guards context7 + Codex sync
fix: skills install/uninstall path consistency
fix: skills template variable replacement after fs.copy()
fix: MCP sync passes through all fields (not just command/args/env)
fix: installedSkills count excludes root SKILL.md
fix: failure feedback for context7 and Codex sync
2026-03-09 15:06:58 +08:00
li b6ce03effb chore: bump version to 1.7.72 2026-03-09 12:24:07 +08:00
li 336cb34af4 chore: bump version to 1.7.71 2026-03-09 01:44:57 +08:00
li 1fe8795fdb chore: v1.7.70 - menu UI overhaul + MCP defaults + repo cleanup
- Menu: ASCII Art "CCG" logo, double-line border, numbered shortcuts, CJK-aware alignment
- MCP: ace-tool as default (search_context works, enhance_prompt unavailable), proxy: acemcp.heroman.wtf
- Cleanup: remove 11 temp/cache files (1.md, verify-*.sh, .magi/, etc.)
- .gitignore: add .magi/, verify-*.sh, *_FIX.md, *_REFERENCE.md
2026-03-09 01:18:05 +08:00
li 00f0a74940 feat: i18n + codeagent-wrapper hook auto-authorization (v1.7.69)
- Add language selection on first install (zh-CN / English)
- Full i18n for init.ts, menu.ts, update.ts, cli-setup.ts
- Expand i18n/index.ts to 800+ lines with complete zh-CN/en translations
- Auto-install codeagent-wrapper PreToolUse hook in settings.json
- Detect jq availability and show install instructions if missing
- Rewrite README.md in English, move Chinese to README.zh-CN.md
- Add FAQ section with hook configuration guide
- Bump version to 1.7.69
2026-03-09 00:56:42 +08:00
li ae5b9dfeaf fix: update 命令全局安装死循环 + 测试覆盖率 38→130
修复:
- npm 全局安装用户本地工作流版本过旧时,update 错误推荐
  `npm install -g`(包已最新),导致死循环。修正 performUpdate
  的 isNewVersion 参数仅依赖 hasUpdate。

测试 (+92):
- version.test.ts: compareVersions 全场景 + 回归用例
- config.test.ts: createDefaultConfig/Routing 纯函数
- platform.test.ts: 平台检测、getMcpCommand、路径分隔符
- installer.test.ts: 注册表一致性、路由/liteMode 注入、
  模板变量完整性、contextweaver E2E、卸载 E2E、
  二进制安装、prompts 安装
2026-03-09 00:17:47 +08:00
Claude 9328ac6da2 test: add installWorkflows E2E tests; fix hardcoded MCP ref in team-plan.md
Add E2E integration tests that call installWorkflows() with
mcpProvider='skip' and 'ace-tool', then verify all generated command
and agent files for correct MCP tool handling.

The E2E tests uncovered a hardcoded `mcp__ace-tool__search_context`
in team-plan.md (line 19) that was not using the {{MCP_SEARCH_TOOL}}
template variable, causing it to survive template processing in skip
mode. Fixed by replacing with the proper template variable.

39 tests now pass (29 unit + 10 E2E).

https://claude.ai/code/session_01HvwiUv489c9WeoyhBB9yTq
2026-02-28 15:53:53 +00:00
Claude 68347e4a82 fix: handle MCP 'skip' provider in processTemplate to prevent invalid tool injection
When users select 'skip' (no MCP) during installation, the
injectConfigVariables function previously fell through to the else
branch, injecting non-existent `mcp__ace-tool__search_context` into
all 14 templates and 2 agent definitions.

This adds a dedicated 'skip' branch with a 4-stage replacement
strategy:
1. Remove MCP tool from agent frontmatter tools declarations
2. Replace code blocks containing MCP invocations with Glob+Grep
   fallback guidance
3. Replace inline backtick references with `Glob + Grep`(MCP 未配置)
4. Safety net for any remaining bare references

Also introduces vitest and adds 29 test cases covering skip,
contextweaver, ace-tool providers, plus integration tests against
all real templates.

https://claude.ai/code/session_01HvwiUv489c9WeoyhBB9yTq
2026-02-28 15:28:48 +00:00
li 7f58785c7b feat: v1.7.61 - Agent Teams 并行实施系列(team-research/team-plan/team-exec/team-review) 2026-02-10 04:49:38 +08:00
li 4ec6c2e50d feat: v1.7.59 - 内置 Prompt 增强,移除 ace-tool enhance_prompt 依赖 2026-02-08 18:25:07 +08:00
li 661b5f0294 feat: v1.7.58 - 新增输出风格配置
- 新增「配置输出风格」菜单选项
- 内置 6 种风格:默认、专业工程师、猫娘、老王、大小姐、邪修
- 风格来源:code-abyss + zcf
2026-02-08 00:02:48 +08:00
li df4a4f3514 feat: v1.7.57 - MCP扩展 + API配置 + 实用工具 + Claude Code安装
- 新增 ContextWeaver MCP(推荐)替代收费的 ace-tool
- 新增辅助工具 MCP:Context7/Playwright/DeepWiki/Exa
- 新增 API 配置(初始化+菜单),自动添加优化配置和权限白名单
- 新增实用工具:ccusage + CCometixLine
- 新增 Claude Code 安装(npm/homebrew/curl/powershell/cmd)
- MCP 配置菜单重构为代码检索+辅助工具两类
2026-02-07 23:51:11 +08:00
li 03433481db feat: upgrade to OPSX architecture and improve update workflow (v1.7.52) 2026-01-26 14:48:27 +08:00
li 9f76d7bba0 fix: 修复 CLI 默认语言为英文的问题 (v1.7.51)
- 将 cli-setup.ts 中所有命令描述从硬编码英文改为中文
- 修复 menu.ts 退出提示从 'Goodbye!' 改为 '再见!'
- 确保 npm 包安装后默认显示为中文界面
2026-01-25 21:00:31 +08:00
li fb34d329cd feat: 集成 OpenSpec 规范驱动开发
新增 5 个 /ccg:spec-* 命令:
- spec-init: 初始化 OpenSpec 环境
- spec-research: 需求 → 约束集
- spec-plan: 多模型分析 → 零决策计划
- spec-impl: 按规范执行 + 归档
- spec-review: 双模型交叉审查

其他改进:
- 菜单支持循环返回
- 多模型并行调用指令加强
- 清理仓库无关文件
2026-01-23 17:15:01 +08:00
li 5917ce25db fix: 修复 ace-tool-rs 安装时显示"跳过"的问题 (v1.7.44)
问题:
- 选择 ace-tool-rs 并输入 Token 后,安装摘要错误显示"MCP工具跳过"
- 用户明确选择不跳过 Token 配置,但系统误报跳过状态

根本原因:
- Line 179: 摘要显示条件只检查 mcpProvider === 'ace-tool',遗漏 ace-tool-rs
- Line 389: MCP 资源提示条件判断有同样问题

修复方案:
- 统一为 (mcpProvider === 'ace-tool' || mcpProvider === 'ace-tool-rs')
- 使用 mcpProvider 变量动态显示正确的工具名称

影响:
- ✅ ace-tool-rs 安装状态正确显示
- ✅ 配置成功时显示绿色 "ace-tool-rs"
- ✅ 待配置时显示黄色 "ace-tool-rs (待配置)"
- ✅ 真正跳过时才显示灰色 "跳过"

感谢用户报告!
2026-01-18 22:25:22 +08:00
li 24983765d6 feat: add /ccg:plan and /ccg:execute commands (v1.7.39)
- Add /ccg:plan for multi-model collaborative planning (Phase 1-2)
- Add /ccg:execute for multi-model collaborative execution (Phase 3-5)
- Fix /ccg:init not invoking subagents properly
- Update command count from 14 to 16
2026-01-16 17:46:19 +08:00
li 86c6aba736 chore: bump version to 1.7.38
🐛 Bug 修复:
- 修复更新工作流逻辑:当前版本和最新版本一致时不再提示更新包
- 当全局安装且包已是最新版本时,仅提示更新工作流文件
- 避免用户困惑:明明已经是最新版本还提示运行 npm install

📦 版本更新:
- ccg-workflow: 1.7.37 → 1.7.38
2026-01-16 15:51:08 +08:00
li 96cd2b1075 fix: 增强 PATH 配置健壮性和跨平台兼容性 (v1.7.33)
Windows:
- 添加 -NoProfile -NonInteractive 避免 profile 干扰
- 使用单引号拼接避免转义问题和命令注入
- 路径规范化(去尾部反斜杠、大小写不敏感判重)
- 空 PATH 时直接设置而非追加分号

macOS/Linux:
- 只处理 bash/zsh,未知 shell 跳过并提示手动配置
- macOS 无 $SHELL 时默认 zsh
- PATH 已配置时显示反馈
2026-01-15 16:58:35 +08:00
li b9c3772159 fix: 修复 Windows PATH 配置覆盖用户环境变量的严重 BUG (v1.7.32)
- 原代码使用 $env:PATH(进程级变量)覆盖用户永久 PATH
- 修复后先读取用户级 PATH 再追加新路径
- 防止用户原有环境变量被意外删除
2026-01-15 16:37:46 +08:00
li 9b1ee412b0 fix: 修复更新流程卡住问题,自动保留现有 liteMode 设置 (v1.7.30)
- 更新时使用 --skip-prompt 跳过所有交互
- 自动保留用户现有的 liteMode 配置
- 避免在非交互环境中卡住
2026-01-14 21:08:18 +08:00
li 5a837da85a feat: 更新流程支持重新选择 Web UI 设置 (v1.7.29)
- 更新时跳过 MCP 配置,但询问 Web UI 偏好
- 默认值为当前配置(保留用户选择)
- --force 参数跳过最终确认提示
2026-01-14 21:02:25 +08:00
li 9253adbbd8 fix: 修复更新流程中 Web UI 提示导致的失败 (v1.7.27) 2026-01-14 20:57:49 +08:00
li 48af319c0d feat: 添加轻量模式,禁用 Web UI 加速响应 (v1.7.27)
- codeagent-wrapper 支持 --lite / -L 参数和 CODEAGENT_LITE_MODE 环境变量
- 轻量模式禁用 WebServer,使用 1 秒 post-message 延迟
- 初始化流程添加 Web UI 开关选项
- 命令模板自动注入 {{LITE_MODE_FLAG}} 占位符
- 配置支持 performance.liteMode 持久化
2026-01-14 20:50:22 +08:00
li 6462e3d485 fix: 修复 Web UI 自动滚动、WebServer 关闭、TaskOutput 超时问题 (v1.7.26)
- 修复 Web UI 不自动滚动到最新输出的问题
  - 添加 userScrolled 标志追踪用户滚动状态
  - 使用 setTimeout 确保 DOM 更新后滚动
  - 用户手动滚动时暂停自动滚动,任务完成时强制滚动到底部

- 修复进程退出时 WebServer 未关闭导致 CPU 高占用
  - 添加 WebServer.Stop() 方法支持优雅关闭
  - 在 main.go defer 中调用 globalWebServer.Stop()

- 更新 7 个命令模板添加显式 TaskOutput 超时指令
  - analyze.md, debug.md, review.md, optimize.md, test.md, feat.md, workflow.md
  - 指定 timeout: 600000 (10分钟) 防止默认 30 秒超时

- 添加 --skip-mcp 选项用于更新时跳过 MCP 配置
2026-01-14 20:16:06 +08:00
ljf1227 69345a42cd fix: 修复 Windows MCP 配置损坏问题并添加自动修复功能 (v1.7.24)
- 添加 applyPlatformCommand 幂等性检查,防止重复处理
- 新增 repairCorruptedMcpArgs 函数自动修复损坏的配置
- 修复 args 数组中重复的 'cmd' 和 'npx' 问题
2026-01-13 21:39:15 +08:00
li 30276e8a1b fix: 修复 Windows MCP 配置 npx 命令重复问题 (v1.7.23)
- 移除 applyPlatformCommand 中重复追加的 originalCommand
- getMcpCommand 已返回完整命令,无需再追加
2026-01-13 21:14:40 +08:00
li bc46115e86 fix: Windows 兼容性修复 - 路径处理和输出截断问题 (v1.7.15)
## 修复内容

### 1. 路径兼容性修复
- ✅ 统一使用正斜杠路径(`C:/Users/...`)避免 Git Bash heredoc 转义问题
- ✅ Windows 下自动添加 `.exe` 扩展名到 codeagent-wrapper

### 2. 输出截断修复
- ✅ 移除日志行长度限制(`codexLogLineLimit: 1000 → 0`)
- ✅ Windows 下强制刷新 stdout(`os.Stdout.Sync()`)

## 修改文件
- src/utils/installer.ts - 路径处理逻辑优化
- codeagent-wrapper/main.go - 升级至 v5.4.1
- 重新编译所有平台二进制文件
- package.json - 版本号 1.7.14 → 1.7.15
- CHANGELOG.md - 新增 v1.7.15 更新记录

## 影响范围
- 路径正斜杠:所有平台(安全,跨平台标准)
- .exe 扩展名:仅 Windows
- 无限制日志:所有平台(防止长输出截断)
- Stdout.Sync():仅 Windows
2026-01-10 11:01:54 +08:00
li 4b6b448b6b fix: 修复更新完成提示显示错误的源版本号 (v1.7.14)
问题:更新完成后显示"从 v1.7.13 升级到 v1.7.13"
原因:传入 performUpdate 的是 npm 包版本而不是本地配置版本
修复:当本地工作流需要更新时,使用 localVersion 作为 fromVersion
2026-01-09 23:48:01 +08:00
li 8a9582a81c fix: 修复更新版本判断问题 (v1.7.13)
问题:用户通过 npx 运行时,npm 包已是最新,但本地工作流可能过期
原因:只比较 npm registry 版本,没有比较本地配置版本
修复:
- 新增本地配置版本检测(config.general.version)
- 比较本地版本与当前 npm 包版本
- 当本地版本低于当前包版本时,默认选项改为"是"
- 显示"本地工作流版本"让用户清楚知道当前状态

涉及文件:
- src/commands/update.ts - 添加本地版本检测和智能提示
- CLAUDE.md - 精简变更记录,只保留最新版本
- CHANGELOG.md - 添加 v1.7.12 和 v1.7.13 记录
2026-01-09 23:45:17 +08:00
li beca0106ce fix: 修复 npm 全局安装用户的更新和卸载问题 (v1.7.11)
**问题背景**:
- 用户通过 `npm install -g` 全局安装后,存在双重路径问题
- 卸载显示成功但命令仍可用(只删除了工作流文件,npm 包未移除)
- 更新显示成功但版本号不变(只更新了工作流文件,命令入口仍指向旧版本)

**核心修复**:
1. 新增 checkIfGlobalInstall() 函数检测 npm 全局安装
2. 更新功能:检测到全局安装时引导用户使用 npm 更新
3. 卸载功能:提示两步卸载流程,避免困惑

**修改文件**:
- src/commands/update.ts - 添加全局安装检测和更新引导
- src/commands/menu.ts - 添加卸载引导逻辑
- README.md - 完善卸载说明,区分 npx 和全局安装
- CHANGELOG.md - 记录本次修复
- CLAUDE.md - 更新版本号和变更记录
- package.json - 版本号 1.7.10 → 1.7.11

**用户价值**:
解决"全局安装 + npx 混用"导致的更新/卸载混乱问题
2026-01-09 21:20:24 +08:00
li 90cee455f3 fix: Windows 兼容性修复 + 升级体验优化 (v1.7.10)
解决的问题:

1. Windows 路径兼容性问题
   - 修复 Git Bash 环境下路径转义问题(C:\Users\... → C:Users...)
   - 新增 convertToGitBashPath 函数支持盘符转换(C: → /c/)
   - 影响所有调用 codeagent-wrapper 的命令

2. 配置迁移问题
   - update 命令新增自动迁移逻辑(~/.ccg → ~/.claude/.ccg)
   - 从 v1.3.x 升级时自动迁移配置文件和 prompts
   - 显示详细迁移日志

3. Windows npx 缓存问题
   - update 命令在 Windows 上自动清理 npx 缓存
   - 确保更新时拉取最新版本,而不是使用缓存的旧版本
   - 先尝试 npx clear-npx-cache,失败则手动删除 ~/.npm/_npx

4. 卸载与更新文档优化
   - 新增 npx 缓存清理说明
   - 提供交互式卸载 + 手动清理两种方式

修改文件:
- src/utils/installer.ts (路径转换)
- src/commands/update.ts (迁移逻辑 + npx 缓存清理)
- README.md, CHANGELOG.md, CLAUDE.md (文档)
- bin/* (重新编译所有平台二进制)

版本:1.7.9 → 1.7.10
2026-01-09 19:51:15 +08:00
li bfef6a7c4f fix: 强化卸载逻辑,强制递归删除所有目录
- 更新 uninstallWorkflows 逻辑,使用 fs.remove 强制递归删除整个目录
- 删除 ~/.claude/commands/ccg/ 及其所有内容(解决残留文件问题)
- 删除 ~/.claude/agents/ccg/
- 删除 ~/.claude/.ccg/ 配置目录(包含 prompts 和 config)
- 更新卸载确认提示文案,明确告知会强制删除所有数据
- 版本升级至 v1.7.8
2026-01-09 11:44:18 +08:00
li c0abfd67e1 fix: 更新工作流始终安装所有命令(包括新增命令)
## 核心问题
更新工作流时使用 `config?.workflows?.installed`,导致只更新已安装的命令,
新增的命令(如 /ccg:enhance)不会被安装。

## 修复方案
- 使用 getAllCommandIds() 获取所有 15 个命令
- 更新配置文件的 installed 列表为所有当前命令
- 确保更新时会安装所有新增命令

## 测试
- 现在更新会安装全部 15 个命令(包括 enhance)
- 配置文件会同步更新

涉及文件:
- src/commands/update.ts
- package.json (1.7.5 → 1.7.6)
2026-01-09 11:05:15 +08:00
li 78a7d6b972 fix: 更新工作流逻辑优化 + 添加 enhance 命令
## 更新工作流修复
- 移除模型选择询问(v1.7.0 已固定路由)
- 更新提示信息:明确包含 codeagent-wrapper 二进制更新
- 简化流程:直接使用现有配置,不再询问重新配置

## 添加 enhance 命令
- 在 WORKFLOW_CONFIGS 中添加 enhance 配置
- 更新命令数量:14 → 15
- order: 9.5(在 review 和 init-project 之间)

涉及文件:
- src/commands/update.ts
- src/utils/installer.ts
- package.json (1.7.4 → 1.7.5)
2026-01-09 11:01:10 +08:00
li 514c27a58b fix: Windows 浏览器自动打开 + 更新工作流逻辑优化
## Windows 浏览器修复
- 修改 server.go 的 openBrowser 函数
- 将 `cmd /c start` 改为 `rundll32 url.dll,FileProtocolHandler`
- 提升 Windows 平台兼容性

## 更新工作流逻辑优化
- 修改 update.ts 的更新流程
- 即使版本相同也允许重新安装
- 新增步骤:先下载最新包 → 删除旧工作流 → 安装新工作流
- 优化提示信息,明确显示更新流程

## 重新构建
- 重新编译所有 6 个平台的 codeagent-wrapper 二进制文件
- 包含 Windows 浏览器修复

涉及文件:
- codeagent-wrapper/server.go
- src/commands/update.ts
- bin/codeagent-wrapper-* (6 个平台)
2026-01-09 10:56:53 +08:00
li 3f6fa128cb release: v1.7.0 - 大幅简化安装流程,固定模型路由
主要变更:
- 🎯 简化安装流程:只需配置 MCP(可选),无需选择语言/模型/命令
- 🔧 固定模型路由:Gemini (前端) + Codex (后端)
- ✂️ 精简命令:从 17 个减少到 14 个
  - 删除 think(与 analyze 重叠)
  - 删除 bugfix(与 debug 重叠)
  - 删除 code(被 workflow 覆盖)
  - 删除 enhance(集成到 workflow)
- 📝 重写所有命令模板:统一 [模式:X] 标签系统,精简到 100-140 行
- 📦 新增平台支持:Linux ARM64 + Windows ARM64
2026-01-07 23:59:27 +08:00
li a2df905002 perf: 优化 dev 阶段 2,硬编码 codex/gemini 减少 token 消耗
- 阶段 2 从调用 4 个模型减少到 2 个(codex + gemini)
- 删除动态获取模型的 jq 逻辑,直接硬编码
- dev.md 从 6.8kB 优化到 6.3kB(节省 500 字节)
- 避免不必要的重复调用(所有模型都使用 analyzer.md)
2026-01-07 13:34:37 +08:00