ccg-workflow 1.3.4 → 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/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';
|
|
@@ -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");
|