ccg-workflow 1.7.5 → 1.7.6
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 { y as diagnoseMcpConfig, z as isWindows, A as readClaudeCodeConfig, B as fixWindowsMcpConfig, C as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, D as configMcp, E as version, a as i18n } from './shared/ccg-workflow.
|
|
4
|
+
import { y as diagnoseMcpConfig, z as isWindows, A as readClaudeCodeConfig, B as fixWindowsMcpConfig, C as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, D as configMcp, E as version, a as i18n } from './shared/ccg-workflow.B8xBuAaQ.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'pathe';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, v as checkForUpdates, x as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, q as getCurrentVersion, t as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, o as migrateToV1_4_0, p as needsMigration, 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, v as checkForUpdates, x as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, q as getCurrentVersion, t as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, o as migrateToV1_4_0, p as needsMigration, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.B8xBuAaQ.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
|
|
|
10
10
|
import { exec } from 'node:child_process';
|
|
11
11
|
import { promisify } from 'node:util';
|
|
12
12
|
|
|
13
|
-
const version = "1.7.
|
|
13
|
+
const version = "1.7.6";
|
|
14
14
|
|
|
15
15
|
function isWindows() {
|
|
16
16
|
return process.platform === "win32";
|
|
@@ -699,6 +699,17 @@ async function installAceTool(config) {
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
+
const installer = {
|
|
703
|
+
__proto__: null,
|
|
704
|
+
getAllCommandIds: getAllCommandIds,
|
|
705
|
+
getWorkflowById: getWorkflowById,
|
|
706
|
+
getWorkflowConfigs: getWorkflowConfigs,
|
|
707
|
+
installAceTool: installAceTool,
|
|
708
|
+
installWorkflows: installWorkflows,
|
|
709
|
+
uninstallAceTool: uninstallAceTool,
|
|
710
|
+
uninstallWorkflows: uninstallWorkflows
|
|
711
|
+
};
|
|
712
|
+
|
|
702
713
|
async function configMcp() {
|
|
703
714
|
console.log();
|
|
704
715
|
console.log(ansis.cyan.bold(` \u914D\u7F6E ace-tool MCP`));
|
|
@@ -1702,7 +1713,8 @@ async function performUpdate(fromVersion, toVersion, isNewVersion) {
|
|
|
1702
1713
|
const config = await readCcgConfig();
|
|
1703
1714
|
spinner = ora("\u6B63\u5728\u66F4\u65B0\u5DE5\u4F5C\u6D41\u548C codeagent-wrapper \u4E8C\u8FDB\u5236...").start();
|
|
1704
1715
|
try {
|
|
1705
|
-
const
|
|
1716
|
+
const { getAllCommandIds } = await Promise.resolve().then(function () { return installer; });
|
|
1717
|
+
const workflows = getAllCommandIds();
|
|
1706
1718
|
const installDir = join(homedir(), ".claude");
|
|
1707
1719
|
const result = await installWorkflows(workflows, installDir, true, {
|
|
1708
1720
|
routing: config?.routing
|
|
@@ -1717,6 +1729,10 @@ async function performUpdate(fromVersion, toVersion, isNewVersion) {
|
|
|
1717
1729
|
}
|
|
1718
1730
|
if (config) {
|
|
1719
1731
|
config.general.version = toVersion;
|
|
1732
|
+
config.workflows = {
|
|
1733
|
+
installed: workflows
|
|
1734
|
+
// Update to include all current commands
|
|
1735
|
+
};
|
|
1720
1736
|
await writeCcgConfig(config);
|
|
1721
1737
|
}
|
|
1722
1738
|
} else {
|