ccg-workflow 1.7.82 → 1.7.84

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
@@ -354,4 +354,4 @@ MIT
354
354
 
355
355
  ---
356
356
 
357
- v1.7.82 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues) | [Contributing](./CONTRIBUTING.md)
357
+ v1.7.84 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues) | [Contributing](./CONTRIBUTING.md)
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.C7wxgYrc.mjs';
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.DPGNdJGO.mjs';
5
5
  import 'inquirer';
6
6
  import 'node:child_process';
7
7
  import 'node:util';
package/dist/index.d.mts CHANGED
@@ -126,6 +126,29 @@ declare function createDefaultRouting(): ModelRouting;
126
126
 
127
127
  declare function getWorkflowConfigs(): WorkflowConfig[];
128
128
  declare function getWorkflowById(id: string): WorkflowConfig | undefined;
129
+
130
+ type McpInstallResult = {
131
+ success: boolean;
132
+ message: string;
133
+ configPath?: string;
134
+ };
135
+ /**
136
+ * Uninstall ace-tool MCP configuration from ~/.claude.json
137
+ */
138
+ declare function uninstallAceTool(): Promise<{
139
+ success: boolean;
140
+ message: string;
141
+ }>;
142
+ /**
143
+ * Install and configure ace-tool MCP for Claude Code.
144
+ */
145
+ declare function installAceTool(config: AceToolConfig): Promise<McpInstallResult>;
146
+ /**
147
+ * Install and configure ace-tool-rs MCP for Claude Code.
148
+ * ace-tool-rs is a Rust implementation — more lightweight and faster.
149
+ */
150
+ declare function installAceToolRs(config: AceToolConfig): Promise<McpInstallResult>;
151
+
129
152
  declare function installWorkflows(workflowIds: string[], installDir: string, force?: boolean, config?: {
130
153
  routing?: {
131
154
  mode?: string;
@@ -144,10 +167,6 @@ declare function installWorkflows(workflowIds: string[], installDir: string, for
144
167
  liteMode?: boolean;
145
168
  mcpProvider?: string;
146
169
  }): Promise<InstallResult>;
147
- /**
148
- * Install and configure ace-tool MCP for Claude Code
149
- * Writes to ~/.claude.json (the correct config file for Claude Code CLI)
150
- */
151
170
  interface UninstallResult {
152
171
  success: boolean;
153
172
  removedCommands: string[];
@@ -159,30 +178,12 @@ interface UninstallResult {
159
178
  errors: string[];
160
179
  }
161
180
  /**
162
- * Uninstall workflows by removing their command files
181
+ * Uninstall workflows by removing their command files.
182
+ * @param options.preserveBinary — when true, skip binary removal (used during update)
163
183
  */
164
- declare function uninstallWorkflows(installDir: string): Promise<UninstallResult>;
165
- /**
166
- * Uninstall ace-tool MCP configuration from ~/.claude.json
167
- */
168
- declare function uninstallAceTool(): Promise<{
169
- success: boolean;
170
- message: string;
171
- }>;
172
- declare function installAceTool(config: AceToolConfig): Promise<{
173
- success: boolean;
174
- message: string;
175
- configPath?: string;
176
- }>;
177
- /**
178
- * Install and configure ace-tool-rs MCP for Claude Code
179
- * ace-tool-rs is a Rust implementation of ace-tool, more lightweight and faster
180
- */
181
- declare function installAceToolRs(config: AceToolConfig): Promise<{
182
- success: boolean;
183
- message: string;
184
- configPath?: string;
185
- }>;
184
+ declare function uninstallWorkflows(installDir: string, options?: {
185
+ preserveBinary?: boolean;
186
+ }): Promise<UninstallResult>;
186
187
 
187
188
  /**
188
189
  * Migration utilities for v1.4.0
package/dist/index.d.ts CHANGED
@@ -126,6 +126,29 @@ declare function createDefaultRouting(): ModelRouting;
126
126
 
127
127
  declare function getWorkflowConfigs(): WorkflowConfig[];
128
128
  declare function getWorkflowById(id: string): WorkflowConfig | undefined;
129
+
130
+ type McpInstallResult = {
131
+ success: boolean;
132
+ message: string;
133
+ configPath?: string;
134
+ };
135
+ /**
136
+ * Uninstall ace-tool MCP configuration from ~/.claude.json
137
+ */
138
+ declare function uninstallAceTool(): Promise<{
139
+ success: boolean;
140
+ message: string;
141
+ }>;
142
+ /**
143
+ * Install and configure ace-tool MCP for Claude Code.
144
+ */
145
+ declare function installAceTool(config: AceToolConfig): Promise<McpInstallResult>;
146
+ /**
147
+ * Install and configure ace-tool-rs MCP for Claude Code.
148
+ * ace-tool-rs is a Rust implementation — more lightweight and faster.
149
+ */
150
+ declare function installAceToolRs(config: AceToolConfig): Promise<McpInstallResult>;
151
+
129
152
  declare function installWorkflows(workflowIds: string[], installDir: string, force?: boolean, config?: {
130
153
  routing?: {
131
154
  mode?: string;
@@ -144,10 +167,6 @@ declare function installWorkflows(workflowIds: string[], installDir: string, for
144
167
  liteMode?: boolean;
145
168
  mcpProvider?: string;
146
169
  }): Promise<InstallResult>;
147
- /**
148
- * Install and configure ace-tool MCP for Claude Code
149
- * Writes to ~/.claude.json (the correct config file for Claude Code CLI)
150
- */
151
170
  interface UninstallResult {
152
171
  success: boolean;
153
172
  removedCommands: string[];
@@ -159,30 +178,12 @@ interface UninstallResult {
159
178
  errors: string[];
160
179
  }
161
180
  /**
162
- * Uninstall workflows by removing their command files
181
+ * Uninstall workflows by removing their command files.
182
+ * @param options.preserveBinary — when true, skip binary removal (used during update)
163
183
  */
164
- declare function uninstallWorkflows(installDir: string): Promise<UninstallResult>;
165
- /**
166
- * Uninstall ace-tool MCP configuration from ~/.claude.json
167
- */
168
- declare function uninstallAceTool(): Promise<{
169
- success: boolean;
170
- message: string;
171
- }>;
172
- declare function installAceTool(config: AceToolConfig): Promise<{
173
- success: boolean;
174
- message: string;
175
- configPath?: string;
176
- }>;
177
- /**
178
- * Install and configure ace-tool-rs MCP for Claude Code
179
- * ace-tool-rs is a Rust implementation of ace-tool, more lightweight and faster
180
- */
181
- declare function installAceToolRs(config: AceToolConfig): Promise<{
182
- success: boolean;
183
- message: string;
184
- configPath?: string;
185
- }>;
184
+ declare function uninstallWorkflows(installDir: string, options?: {
185
+ preserveBinary?: boolean;
186
+ }): Promise<UninstallResult>;
186
187
 
187
188
  /**
188
189
  * Migration utilities for v1.4.0
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.C7wxgYrc.mjs';
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.DPGNdJGO.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:child_process';