ccg-workflow 1.2.2 → 1.2.3
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.CDbjzCK1.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.2.
|
|
16
|
+
const version = "1.2.3";
|
|
17
17
|
|
|
18
18
|
function customizeHelp(sections) {
|
|
19
19
|
sections.unshift({
|
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.CDbjzCK1.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
@@ -77,6 +77,7 @@ const zhCN = {
|
|
|
77
77
|
installedCommands: "\u5DF2\u5B89\u88C5\u547D\u4EE4:",
|
|
78
78
|
installedPrompts: "\u5DF2\u5B89\u88C5\u89D2\u8272\u63D0\u793A\u8BCD:",
|
|
79
79
|
installedBinary: "\u5DF2\u5B89\u88C5\u4E8C\u8FDB\u5236\u6587\u4EF6:",
|
|
80
|
+
installationErrors: "\u5B89\u88C5\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u9519\u8BEF:",
|
|
80
81
|
pathWarning: "\u9700\u8981\u5C06 codeagent-wrapper \u6DFB\u52A0\u5230 PATH \u624D\u80FD\u4F7F\u7528",
|
|
81
82
|
autoConfigurePathPrompt: "\u662F\u5426\u81EA\u52A8\u914D\u7F6E PATH \u73AF\u5883\u53D8\u91CF\uFF1F",
|
|
82
83
|
pathConfigured: "PATH \u5DF2\u6DFB\u52A0\u5230 {{file}}",
|
|
@@ -236,6 +237,7 @@ const en = {
|
|
|
236
237
|
installedCommands: "Installed Commands:",
|
|
237
238
|
installedPrompts: "Installed Role Prompts:",
|
|
238
239
|
installedBinary: "Installed Binary:",
|
|
240
|
+
installationErrors: "Installation Errors:",
|
|
239
241
|
pathWarning: "codeagent-wrapper needs to be added to PATH",
|
|
240
242
|
autoConfigurePathPrompt: "Automatically configure PATH environment variable?",
|
|
241
243
|
pathConfigured: "PATH has been added to {{file}}",
|
|
@@ -771,10 +773,17 @@ ${workflow.description}
|
|
|
771
773
|
if (platform !== "win32") {
|
|
772
774
|
await fs.chmod(destBinary, 493);
|
|
773
775
|
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
+
try {
|
|
777
|
+
const { execSync } = await import('node:child_process');
|
|
778
|
+
execSync(`"${destBinary}" --version`, { stdio: "pipe" });
|
|
779
|
+
result.binPath = binDir;
|
|
780
|
+
result.binInstalled = true;
|
|
781
|
+
} catch (verifyError) {
|
|
782
|
+
result.errors.push(`Binary verification failed: ${verifyError}`);
|
|
783
|
+
result.success = false;
|
|
784
|
+
}
|
|
776
785
|
} else {
|
|
777
|
-
result.errors.push(`Binary not found: ${binaryName}`);
|
|
786
|
+
result.errors.push(`Binary not found in package: ${binaryName}`);
|
|
778
787
|
result.success = false;
|
|
779
788
|
}
|
|
780
789
|
} catch (error) {
|
|
@@ -1115,6 +1124,13 @@ async function init(options = {}) {
|
|
|
1115
1124
|
console.log(` ${ansis.green("\u2713")} ${model}: ${roles.join(", ")}`);
|
|
1116
1125
|
});
|
|
1117
1126
|
}
|
|
1127
|
+
if (result.errors.length > 0) {
|
|
1128
|
+
console.log();
|
|
1129
|
+
console.log(ansis.red(` \u26A0 ${i18n.t("init:installationErrors")}`));
|
|
1130
|
+
result.errors.forEach((error) => {
|
|
1131
|
+
console.log(` ${ansis.red("\u2717")} ${error}`);
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1118
1134
|
if (result.binInstalled && result.binPath) {
|
|
1119
1135
|
console.log();
|
|
1120
1136
|
console.log(ansis.cyan(` ${i18n.t("init:installedBinary")}`));
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ strategy = "parallel"
|
|
|
87
87
|
|
|
88
88
|
**根据配置并行调用模型进行分析**(使用 `run_in_background: true` 非阻塞执行):
|
|
89
89
|
|
|
90
|
-
**调用方式**: 使用 `Bash` 工具调用 `codeagent-wrapper
|
|
90
|
+
**调用方式**: 使用 `Bash` 工具调用 `codeagent-wrapper`
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
# 后端模型分析示例
|