ccg-workflow 2.1.14 → 2.1.15
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
CHANGED
package/README.zh-CN.md
CHANGED
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 { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.
|
|
4
|
+
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.C2MaYeHU.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'ora';
|
|
7
7
|
import 'node:child_process';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.
|
|
1
|
+
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.C2MaYeHU.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'ora';
|
|
@@ -10,7 +10,7 @@ import fs from 'fs-extra';
|
|
|
10
10
|
import { parse, stringify } from 'smol-toml';
|
|
11
11
|
import i18next from 'i18next';
|
|
12
12
|
|
|
13
|
-
const version = "2.1.
|
|
13
|
+
const version = "2.1.15";
|
|
14
14
|
|
|
15
15
|
function cmd(id, order, category, name, nameEn, description, descriptionEn, cmdOverride) {
|
|
16
16
|
return {
|
|
@@ -135,8 +135,22 @@ function injectConfigVariables(content, config) {
|
|
|
135
135
|
processed = processed.replace(/\{\{ROUTING_MODE\}\}/g, routingMode);
|
|
136
136
|
const geminiModel = routing.geminiModel || "gemini-3.1-pro-preview";
|
|
137
137
|
const usesGemini = frontendPrimary === "gemini" || backendPrimary === "gemini";
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
if (!usesGemini) {
|
|
139
|
+
processed = processed.replace(/\{\{GEMINI_MODEL_FLAG\}\}/g, "");
|
|
140
|
+
} else {
|
|
141
|
+
const geminiModelFlagValue = `--gemini-model ${geminiModel} `;
|
|
142
|
+
const hardCodedBackendRe = /--backend\s+([a-z0-9-]+)(?:\s|$)/;
|
|
143
|
+
processed = processed.split("\n").map((line) => {
|
|
144
|
+
if (!line.includes("{{GEMINI_MODEL_FLAG}}")) {
|
|
145
|
+
return line;
|
|
146
|
+
}
|
|
147
|
+
const m = line.match(hardCodedBackendRe);
|
|
148
|
+
if (m && m[1] !== "gemini") {
|
|
149
|
+
return line.replace(/\{\{GEMINI_MODEL_FLAG\}\}/g, "");
|
|
150
|
+
}
|
|
151
|
+
return line.replace(/\{\{GEMINI_MODEL_FLAG\}\}/g, geminiModelFlagValue);
|
|
152
|
+
}).join("\n");
|
|
153
|
+
}
|
|
140
154
|
const liteModeFlag = config.liteMode ? "--lite " : "";
|
|
141
155
|
processed = processed.replace(/\{\{LITE_MODE_FLAG\}\}/g, liteModeFlag);
|
|
142
156
|
const mcpProvider = config.mcpProvider || "ace-tool";
|
package/package.json
CHANGED