ccg-workflow 1.7.76 → 1.7.77
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 +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.Dt7J0_mT.mjs → ccg-workflow.Dgh3VYDe.mjs} +33 -7
- package/package.json +2 -2
- package/bin/codeagent-wrapper-darwin-amd64 +0 -0
- package/bin/codeagent-wrapper-darwin-arm64 +0 -0
- package/bin/codeagent-wrapper-linux-amd64 +0 -0
- package/bin/codeagent-wrapper-linux-arm64 +0 -0
- package/bin/codeagent-wrapper-windows-amd64.exe +0 -0
- package/bin/codeagent-wrapper-windows-arm64.exe +0 -0
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.Dgh3VYDe.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:util';
|
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.Dgh3VYDe.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:child_process';
|
|
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
|
|
|
10
10
|
import i18next from 'i18next';
|
|
11
11
|
import ora from 'ora';
|
|
12
12
|
|
|
13
|
-
const version = "1.7.
|
|
13
|
+
const version = "1.7.77";
|
|
14
14
|
|
|
15
15
|
function isWindows() {
|
|
16
16
|
return process.platform === "win32";
|
|
@@ -156,6 +156,9 @@ async function diagnoseMcpConfig() {
|
|
|
156
156
|
return issues;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
const GITHUB_REPO = "fengshao1227/ccg-workflow";
|
|
160
|
+
const RELEASE_TAG = "preset";
|
|
161
|
+
const BINARY_DOWNLOAD_URL = `https://github.com/${GITHUB_REPO}/releases/download/${RELEASE_TAG}`;
|
|
159
162
|
const __filename$2 = fileURLToPath(import.meta.url);
|
|
160
163
|
const __dirname$2 = dirname(__filename$2);
|
|
161
164
|
function findPackageRoot$1(startDir) {
|
|
@@ -169,6 +172,19 @@ function findPackageRoot$1(startDir) {
|
|
|
169
172
|
return startDir;
|
|
170
173
|
}
|
|
171
174
|
const PACKAGE_ROOT$1 = findPackageRoot$1(__dirname$2);
|
|
175
|
+
async function downloadBinaryFromRelease(binaryName, destPath) {
|
|
176
|
+
const url = `${BINARY_DOWNLOAD_URL}/${binaryName}`;
|
|
177
|
+
const response = await fetch(url, { redirect: "follow" });
|
|
178
|
+
if (!response.ok) {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
const buffer = Buffer.from(await response.arrayBuffer());
|
|
182
|
+
await fs.writeFile(destPath, buffer);
|
|
183
|
+
if (process.platform !== "win32") {
|
|
184
|
+
await fs.chmod(destPath, 493);
|
|
185
|
+
}
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
172
188
|
const WORKFLOW_CONFIGS = [
|
|
173
189
|
{
|
|
174
190
|
id: "workflow",
|
|
@@ -729,13 +745,23 @@ ${workflow.description}
|
|
|
729
745
|
result.configPath = commandsDir;
|
|
730
746
|
return result;
|
|
731
747
|
}
|
|
732
|
-
const srcBinary = join(PACKAGE_ROOT$1, "bin", binaryName);
|
|
733
748
|
const destBinary = join(binDir, platform === "win32" ? "codeagent-wrapper.exe" : "codeagent-wrapper");
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
749
|
+
let installed = false;
|
|
750
|
+
try {
|
|
751
|
+
installed = await downloadBinaryFromRelease(binaryName, destBinary);
|
|
752
|
+
} catch {
|
|
753
|
+
}
|
|
754
|
+
if (!installed) {
|
|
755
|
+
const srcBinary = join(PACKAGE_ROOT$1, "bin", binaryName);
|
|
756
|
+
if (await fs.pathExists(srcBinary)) {
|
|
757
|
+
await fs.copy(srcBinary, destBinary);
|
|
758
|
+
if (platform !== "win32") {
|
|
759
|
+
await fs.chmod(destBinary, 493);
|
|
760
|
+
}
|
|
761
|
+
installed = true;
|
|
738
762
|
}
|
|
763
|
+
}
|
|
764
|
+
if (installed) {
|
|
739
765
|
try {
|
|
740
766
|
const { execSync } = await import('node:child_process');
|
|
741
767
|
execSync(`"${destBinary}" --version`, { stdio: "pipe" });
|
|
@@ -746,7 +772,7 @@ ${workflow.description}
|
|
|
746
772
|
result.success = false;
|
|
747
773
|
}
|
|
748
774
|
} else {
|
|
749
|
-
result.errors.push(`
|
|
775
|
+
result.errors.push(`Failed to obtain binary: ${binaryName} (download failed, no local fallback)`);
|
|
750
776
|
result.success = false;
|
|
751
777
|
}
|
|
752
778
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccg-workflow",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.77",
|
|
4
4
|
"description": "Claude + Codex + Gemini multi-model collaboration system - smart routing development workflow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.17.1",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"module": "dist/index.mjs",
|
|
26
26
|
"types": "dist/index.d.mts",
|
|
27
27
|
"files": [
|
|
28
|
-
"bin",
|
|
28
|
+
"bin/ccg.mjs",
|
|
29
29
|
"dist",
|
|
30
30
|
"templates/commands/analyze.md",
|
|
31
31
|
"templates/commands/backend.md",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|