Files
ccg-workflow/package.json
T
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

63 lines
1.3 KiB
JSON

{
"name": "ccg-workflow",
"version": "1.7.10",
"description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
"type": "module",
"packageManager": "pnpm@10.17.1",
"author": {
"name": "CCG Contributors"
},
"license": "MIT",
"keywords": [
"claude",
"codex",
"gemini",
"multi-model",
"ai",
"collaboration",
"cli",
"workflow"
],
"bin": {
"ccg": "bin/ccg.mjs"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"bin",
"dist",
"templates"
],
"scripts": {
"dev": "tsx src/cli.ts",
"build": "unbuild",
"start": "node bin/ccg.mjs",
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"dependencies": {
"ansis": "^4.1.0",
"cac": "^6.7.14",
"fs-extra": "^11.3.2",
"i18next": "^25.5.2",
"i18next-fs-backend": "^2.6.0",
"inquirer": "^12.9.6",
"ora": "^9.0.0",
"pathe": "^2.0.3",
"smol-toml": "^1.4.2"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.9",
"@types/node": "^22.0.0",
"eslint": "^9.36.0",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"unbuild": "^3.6.1"
}
}