ccg-workflow 1.5.1 → 1.7.0
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 +182 -351
- package/bin/codeagent-wrapper-linux-arm64 +0 -0
- package/bin/codeagent-wrapper-windows-arm64.exe +0 -0
- package/dist/cli.mjs +13 -4
- package/dist/index.d.mts +3 -10
- package/dist/index.d.ts +3 -10
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccg-workflow.DSwxPZjT.mjs → ccg-workflow.BtBr1Jpn.mjs} +955 -838
- package/package.json +1 -1
- package/templates/commands/agents/planner.md +2 -2
- package/templates/commands/agents/ui-ux-designer.md +2 -2
- package/templates/commands/analyze.md +112 -57
- package/templates/commands/backend.md +110 -51
- package/templates/commands/clean-branches.md +81 -66
- package/templates/commands/commit.md +81 -117
- package/templates/commands/debug.md +88 -86
- package/templates/commands/feat.md +62 -283
- package/templates/commands/frontend.md +110 -50
- package/templates/commands/init.md +100 -36
- package/templates/commands/optimize.md +109 -68
- package/templates/commands/review.md +106 -63
- package/templates/commands/rollback.md +86 -60
- package/templates/commands/test.md +115 -52
- package/templates/commands/workflow.md +198 -0
- package/templates/commands/worktree.md +78 -226
- package/templates/commands/bugfix.md +0 -116
- package/templates/commands/code.md +0 -257
- package/templates/commands/dev.md +0 -174
- package/templates/commands/enhance.md +0 -52
- package/templates/commands/think.md +0 -104
- package/templates/config/shared-config.md +0 -87
|
Binary file
|
|
Binary file
|
package/dist/cli.mjs
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
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, 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.BtBr1Jpn.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'pathe';
|
|
8
|
-
import 'i18next';
|
|
9
8
|
import 'fs-extra';
|
|
10
9
|
import 'node:url';
|
|
10
|
+
import 'i18next';
|
|
11
11
|
import 'ora';
|
|
12
12
|
import 'smol-toml';
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import 'node:util';
|
|
15
15
|
|
|
16
|
-
const version = "1.5.1";
|
|
17
|
-
|
|
18
16
|
async function diagnoseMcp() {
|
|
19
17
|
console.log();
|
|
20
18
|
console.log(ansis.cyan.bold(" \u{1F50D} MCP Configuration Diagnostics"));
|
|
@@ -84,6 +82,9 @@ function customizeHelp(sections) {
|
|
|
84
82
|
body: [
|
|
85
83
|
` ${ansis.cyan("ccg")} ${i18n.t("cli:help.commandDescriptions.showMenu")}`,
|
|
86
84
|
` ${ansis.cyan("ccg init")} | ${ansis.cyan("i")} ${i18n.t("cli:help.commandDescriptions.initConfig")}`,
|
|
85
|
+
` ${ansis.cyan("ccg config mcp")} \u914D\u7F6E ace-tool MCP Token`,
|
|
86
|
+
` ${ansis.cyan("ccg diagnose-mcp")} \u8BCA\u65AD MCP \u914D\u7F6E\u95EE\u9898`,
|
|
87
|
+
` ${ansis.cyan("ccg fix-mcp")} \u4FEE\u590D Windows MCP \u914D\u7F6E`,
|
|
87
88
|
"",
|
|
88
89
|
ansis.gray(` ${i18n.t("cli:help.shortcuts")}`),
|
|
89
90
|
` ${ansis.cyan("ccg i")} ${i18n.t("cli:help.shortcutDescriptions.quickInit")}`
|
|
@@ -152,6 +153,14 @@ async function setupCommands(cli) {
|
|
|
152
153
|
cli.command("fix-mcp", "Fix Windows MCP configuration issues").action(async () => {
|
|
153
154
|
await fixMcp();
|
|
154
155
|
});
|
|
156
|
+
cli.command("config <subcommand>", "Configure CCG settings").action(async (subcommand) => {
|
|
157
|
+
if (subcommand === "mcp") {
|
|
158
|
+
await configMcp();
|
|
159
|
+
} else {
|
|
160
|
+
console.log(ansis.red(`Unknown subcommand: ${subcommand}`));
|
|
161
|
+
console.log(ansis.gray("Available subcommands: mcp"));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
155
164
|
cli.help((sections) => customizeHelp(sections));
|
|
156
165
|
cli.version(version);
|
|
157
166
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -50,14 +50,6 @@ interface CcgConfig {
|
|
|
50
50
|
mcp: {
|
|
51
51
|
provider: string;
|
|
52
52
|
setup_url: string;
|
|
53
|
-
tools: {
|
|
54
|
-
code_search_ace: string;
|
|
55
|
-
code_search_auggie: string;
|
|
56
|
-
prompt_enhance_ace: string;
|
|
57
|
-
prompt_enhance_auggie: string;
|
|
58
|
-
query_param_ace: string;
|
|
59
|
-
query_param_auggie: string;
|
|
60
|
-
};
|
|
61
53
|
};
|
|
62
54
|
}
|
|
63
55
|
interface WorkflowConfig {
|
|
@@ -123,7 +115,6 @@ declare function createDefaultRouting(): ModelRouting;
|
|
|
123
115
|
declare function getWorkflowConfigs(): WorkflowConfig[];
|
|
124
116
|
declare function getWorkflowById(id: string): WorkflowConfig | undefined;
|
|
125
117
|
declare function installWorkflows(workflowIds: string[], installDir: string, force?: boolean, config?: {
|
|
126
|
-
mcpProvider?: string;
|
|
127
118
|
routing?: {
|
|
128
119
|
mode?: string;
|
|
129
120
|
frontend?: {
|
|
@@ -147,6 +138,9 @@ interface UninstallResult {
|
|
|
147
138
|
success: boolean;
|
|
148
139
|
removedCommands: string[];
|
|
149
140
|
removedPrompts: string[];
|
|
141
|
+
removedAgents: string[];
|
|
142
|
+
removedSkills: string[];
|
|
143
|
+
removedBin: boolean;
|
|
150
144
|
errors: string[];
|
|
151
145
|
}
|
|
152
146
|
/**
|
|
@@ -182,7 +176,6 @@ interface MigrationResult {
|
|
|
182
176
|
* Changes:
|
|
183
177
|
* 1. ~/.ccg/ → ~/.claude/.ccg/
|
|
184
178
|
* 2. ~/.claude/prompts/ccg/ → ~/.claude/.ccg/prompts/
|
|
185
|
-
* 3. ~/.claude/commands/ccg/_config.md → ~/.claude/.ccg/shared-config.md
|
|
186
179
|
*/
|
|
187
180
|
declare function migrateToV1_4_0(): Promise<MigrationResult>;
|
|
188
181
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -50,14 +50,6 @@ interface CcgConfig {
|
|
|
50
50
|
mcp: {
|
|
51
51
|
provider: string;
|
|
52
52
|
setup_url: string;
|
|
53
|
-
tools: {
|
|
54
|
-
code_search_ace: string;
|
|
55
|
-
code_search_auggie: string;
|
|
56
|
-
prompt_enhance_ace: string;
|
|
57
|
-
prompt_enhance_auggie: string;
|
|
58
|
-
query_param_ace: string;
|
|
59
|
-
query_param_auggie: string;
|
|
60
|
-
};
|
|
61
53
|
};
|
|
62
54
|
}
|
|
63
55
|
interface WorkflowConfig {
|
|
@@ -123,7 +115,6 @@ declare function createDefaultRouting(): ModelRouting;
|
|
|
123
115
|
declare function getWorkflowConfigs(): WorkflowConfig[];
|
|
124
116
|
declare function getWorkflowById(id: string): WorkflowConfig | undefined;
|
|
125
117
|
declare function installWorkflows(workflowIds: string[], installDir: string, force?: boolean, config?: {
|
|
126
|
-
mcpProvider?: string;
|
|
127
118
|
routing?: {
|
|
128
119
|
mode?: string;
|
|
129
120
|
frontend?: {
|
|
@@ -147,6 +138,9 @@ interface UninstallResult {
|
|
|
147
138
|
success: boolean;
|
|
148
139
|
removedCommands: string[];
|
|
149
140
|
removedPrompts: string[];
|
|
141
|
+
removedAgents: string[];
|
|
142
|
+
removedSkills: string[];
|
|
143
|
+
removedBin: boolean;
|
|
150
144
|
errors: string[];
|
|
151
145
|
}
|
|
152
146
|
/**
|
|
@@ -182,7 +176,6 @@ interface MigrationResult {
|
|
|
182
176
|
* Changes:
|
|
183
177
|
* 1. ~/.ccg/ → ~/.claude/.ccg/
|
|
184
178
|
* 2. ~/.claude/prompts/ccg/ → ~/.claude/.ccg/prompts/
|
|
185
|
-
* 3. ~/.claude/commands/ccg/_config.md → ~/.claude/.ccg/shared-config.md
|
|
186
179
|
*/
|
|
187
180
|
declare function migrateToV1_4_0(): Promise<MigrationResult>;
|
|
188
181
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.BtBr1Jpn.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
5
5
|
import 'pathe';
|
|
6
|
-
import 'i18next';
|
|
7
6
|
import 'fs-extra';
|
|
8
7
|
import 'node:url';
|
|
8
|
+
import 'i18next';
|
|
9
9
|
import 'ora';
|
|
10
10
|
import 'smol-toml';
|
|
11
11
|
import 'node:child_process';
|