ccg-workflow 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -10
- package/dist/cli.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.BOPoow8k.mjs → ccg-workflow.D6FQGeQd.mjs} +61 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**Claude Code 主导 + Codex CLI + Gemini CLI + Claude CLI 协作工作流系统**
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/ccg-workflow)
|
|
8
|
-
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://claude.ai/code)
|
|
7
|
+
[](https://www.npmjs.com/package/ccg-workflow) [](https://opensource.org/licenses/MIT) [](https://claude.ai/code) [](https://github.com/openai/openai-python) [](https://ai.google.dev/)
|
|
10
8
|
|
|
11
|
-
> **最新版本 v1.3.
|
|
9
|
+
> **最新版本 v1.3.3**:修复 Windows PATH 配置安全问题
|
|
12
10
|
|
|
13
11
|
</div>
|
|
14
12
|
|
|
@@ -16,18 +14,24 @@
|
|
|
16
14
|
|
|
17
15
|
## 🎉 最新更新
|
|
18
16
|
|
|
19
|
-
### v1.3.
|
|
17
|
+
### v1.3.3 - Windows PATH 配置安全修复 🔒
|
|
18
|
+
- ✅ **安全修复**:Windows PATH 配置改用安全追加方法,避免 `setx` 1024 字符限制
|
|
19
|
+
- ✅ **新方法**:使用 PowerShell `[System.Environment]::GetEnvironmentVariable` 先读取后追加
|
|
20
|
+
- ✅ **重复检测**:自动检查路径是否已存在,避免重复添加
|
|
21
|
+
- ✅ **无字符限制**:支持超长 PATH(最大 32767 字符)
|
|
22
|
+
- ✅ **向下兼容**:不影响现有用户配置
|
|
23
|
+
|
|
24
|
+
<details>
|
|
25
|
+
<summary>v1.3.2 - MCP 配置缺失修复 (2026-01-05)</summary>
|
|
26
|
+
|
|
20
27
|
- ✅ **关键修复**:安装后 `~/.ccg/config.toml` 现在包含完整的 `[mcp]` 配置部分
|
|
21
28
|
- ✅ **类型安全**:添加 `CcgConfig.mcp` TypeScript 接口定义
|
|
22
29
|
- ✅ **默认配置**:`createDefaultConfig` 自动生成完整 MCP 配置
|
|
23
|
-
- `provider = "ace-tool"`(默认)
|
|
24
|
-
- `setup_url` 指向配置教程
|
|
25
|
-
- `tools.*` 工具映射(code_search + prompt_enhance)
|
|
26
|
-
- `query_param_*` 参数名映射
|
|
27
30
|
- ✅ **配置版本**:配置文件版本号从 1.0.0 升级到 1.3.2
|
|
31
|
+
</details>
|
|
28
32
|
|
|
29
33
|
<details>
|
|
30
|
-
<summary>v1.3.1 -
|
|
34
|
+
<summary>v1.3.1 - 命令模板修正 (2026-01-05)</summary>
|
|
31
35
|
|
|
32
36
|
- ✅ **说明修正**:澄清 auggie 也支持 Prompt 增强功能(需按教程配置)
|
|
33
37
|
- ✅ **模板更新**:修正 `/ccg:dev` 和 `/ccg:enhance` 命令的提示信息
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.
|
|
4
|
+
import { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.D6FQGeQd.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'pathe';
|
|
@@ -13,7 +13,7 @@ import 'smol-toml';
|
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import 'node:util';
|
|
15
15
|
|
|
16
|
-
const version = "1.3.
|
|
16
|
+
const version = "1.3.5";
|
|
17
17
|
|
|
18
18
|
function customizeHelp(sections) {
|
|
19
19
|
sections.unshift({
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, q as checkForUpdates, t as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, o as getCurrentVersion, p as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.
|
|
1
|
+
export { c as changeLanguage, q as checkForUpdates, t as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, o as getCurrentVersion, p as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.D6FQGeQd.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
@@ -331,7 +331,7 @@ const en = {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
async function initI18n(lang = "
|
|
334
|
+
async function initI18n(lang = "zh-CN") {
|
|
335
335
|
if (!i18n.isInitialized) {
|
|
336
336
|
await i18n.init({
|
|
337
337
|
lng: lang,
|
|
@@ -381,7 +381,7 @@ async function writeCcgConfig(config) {
|
|
|
381
381
|
function createDefaultConfig(options) {
|
|
382
382
|
return {
|
|
383
383
|
general: {
|
|
384
|
-
version: "1.3.
|
|
384
|
+
version: "1.3.5",
|
|
385
385
|
language: options.language,
|
|
386
386
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
387
387
|
},
|
|
@@ -395,7 +395,7 @@ function createDefaultConfig(options) {
|
|
|
395
395
|
backup: join(CCG_DIR, "backup")
|
|
396
396
|
},
|
|
397
397
|
mcp: {
|
|
398
|
-
provider: "ace-tool",
|
|
398
|
+
provider: options.mcpProvider || "ace-tool",
|
|
399
399
|
setup_url: "https://linux.do/t/topic/284963",
|
|
400
400
|
tools: {
|
|
401
401
|
code_search_ace: "mcp__ace-tool__search_context",
|
|
@@ -1025,30 +1025,67 @@ async function init(options = {}) {
|
|
|
1025
1025
|
}]);
|
|
1026
1026
|
selectedWorkflows = selected;
|
|
1027
1027
|
}
|
|
1028
|
+
let mcpProvider = "ace-tool";
|
|
1028
1029
|
let aceToolBaseUrl = "";
|
|
1029
1030
|
let aceToolToken = "";
|
|
1030
1031
|
if (!options.skipPrompt) {
|
|
1031
1032
|
console.log();
|
|
1032
|
-
console.log(ansis.cyan.bold(` \u{1F527}
|
|
1033
|
-
console.log(ansis.gray(` ${i18n.t("init:aceTool.description")}`));
|
|
1034
|
-
console.log(ansis.gray(` ${i18n.t("init:aceTool.getToken")}: https://augmentcode.com/`));
|
|
1033
|
+
console.log(ansis.cyan.bold(` \u{1F527} MCP \u5DE5\u5177\u9009\u62E9`));
|
|
1035
1034
|
console.log();
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1035
|
+
const { selectedMcp } = await inquirer.prompt([{
|
|
1036
|
+
type: "list",
|
|
1037
|
+
name: "selectedMcp",
|
|
1038
|
+
message: "\u9009\u62E9 MCP \u4EE3\u7801\u68C0\u7D22\u5DE5\u5177",
|
|
1039
|
+
choices: [
|
|
1040
|
+
{
|
|
1041
|
+
name: `ace-tool ${ansis.gray("(\u63A8\u8350) - \u5F00\u7BB1\u5373\u7528\uFF0C\u542B Prompt \u589E\u5F3A + \u4EE3\u7801\u68C0\u7D22")}`,
|
|
1042
|
+
value: "ace-tool"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
name: `auggie ${ansis.gray("(\u5B98\u65B9) - \u4EE3\u7801\u68C0\u7D22 + \u53EF\u9009 Prompt \u589E\u5F3A\uFF08\u9700\u989D\u5916\u914D\u7F6E\uFF09")}`,
|
|
1046
|
+
value: "auggie"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
name: `\u8DF3\u8FC7 ${ansis.gray("- \u7A0D\u540E\u624B\u52A8\u914D\u7F6E")}`,
|
|
1050
|
+
value: "skip"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
default: "ace-tool"
|
|
1054
|
+
}]);
|
|
1055
|
+
mcpProvider = selectedMcp;
|
|
1056
|
+
if (selectedMcp === "ace-tool") {
|
|
1057
|
+
console.log();
|
|
1058
|
+
console.log(ansis.cyan.bold(` \u{1F527} ace-tool MCP \u914D\u7F6E`));
|
|
1059
|
+
console.log(ansis.gray(` ${i18n.t("init:aceTool.description")}`));
|
|
1060
|
+
console.log(ansis.gray(` ${i18n.t("init:aceTool.getToken")}: https://augmentcode.com/`));
|
|
1061
|
+
console.log();
|
|
1062
|
+
const aceAnswers = await inquirer.prompt([
|
|
1063
|
+
{
|
|
1064
|
+
type: "input",
|
|
1065
|
+
name: "baseUrl",
|
|
1066
|
+
message: `${i18n.t("init:aceTool.baseUrl")} ${ansis.gray("(Enter to skip)")}`,
|
|
1067
|
+
default: ""
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
type: "password",
|
|
1071
|
+
name: "token",
|
|
1072
|
+
message: `${i18n.t("init:aceTool.token")} ${ansis.gray("(Enter to skip)")}`,
|
|
1073
|
+
mask: "*"
|
|
1074
|
+
}
|
|
1075
|
+
]);
|
|
1076
|
+
aceToolBaseUrl = aceAnswers.baseUrl || "";
|
|
1077
|
+
aceToolToken = aceAnswers.token || "";
|
|
1078
|
+
} else if (selectedMcp === "auggie") {
|
|
1079
|
+
console.log();
|
|
1080
|
+
console.log(ansis.yellow(` \u2139\uFE0F auggie \u5DF2\u9009\u62E9`));
|
|
1081
|
+
console.log(ansis.gray(` \u4EE3\u7801\u68C0\u7D22\u529F\u80FD\u5F00\u7BB1\u5373\u7528`));
|
|
1082
|
+
console.log(ansis.gray(` Prompt \u589E\u5F3A\u9700\u989D\u5916\u914D\u7F6E: https://linux.do/t/topic/1280612`));
|
|
1083
|
+
console.log();
|
|
1084
|
+
} else {
|
|
1085
|
+
console.log();
|
|
1086
|
+
console.log(ansis.yellow(` \u2139\uFE0F \u5DF2\u8DF3\u8FC7 MCP \u914D\u7F6E\uFF0C\u53EF\u7A0D\u540E\u624B\u52A8\u914D\u7F6E`));
|
|
1087
|
+
console.log();
|
|
1088
|
+
}
|
|
1052
1089
|
}
|
|
1053
1090
|
const routing = {
|
|
1054
1091
|
frontend: {
|
|
@@ -1095,7 +1132,8 @@ async function init(options = {}) {
|
|
|
1095
1132
|
const config = createDefaultConfig({
|
|
1096
1133
|
language,
|
|
1097
1134
|
routing,
|
|
1098
|
-
installedWorkflows: selectedWorkflows
|
|
1135
|
+
installedWorkflows: selectedWorkflows,
|
|
1136
|
+
mcpProvider
|
|
1099
1137
|
});
|
|
1100
1138
|
await writeCcgConfig(config);
|
|
1101
1139
|
const installDir = options.installDir || join(homedir(), ".claude");
|