🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/commander-fix.ts

This commit is contained in:
rUv committed 2025-09-26 15:20:20 +00:00
1 parent 0160e0c803
commit f73c59c09c
3 files changed
+9 -10

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250926-151855", "file": "/workspaces/claude-code-flow/src/cli/simple-mcp.ts", "timestamp": "2025-09-26T15:18:55Z", "type": "pre-edit", "original_branch": "alpha-125"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250926-151856", "file": "/workspaces/claude-code-flow/src/cli/simple-mcp.ts", "timestamp": "2025-09-26T15:18:56Z", "type": "post-edit", "branch": "alpha-125", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 108 +++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1758899927.json | 1 + .claude/checkpoints/1758899929.json | 1 + claude-flow-wiki | 0 docs/build-analysis-report.md | 2 +- package-lock.json | 26 +++----- package.json | 5 +- src/cli/simple-mcp.ts | 2 +- 10 files changed, 126 insertions(+), 27 deletions(-) "}
+7 -10
View File
@@ -1,13 +1,10 @@
// Temporary workaround for TypeScript compiler bug with Commander overloads
import { Command as BaseCommand } from 'commander';
// @ts-ignore
import commanderModule from 'commander';
export class Command extends BaseCommand {
constructor(name?: string) {
super();
if (name) {
this.name(name);
}
}
}
// Access the Command constructor directly to avoid overload issues
const CommandConstructor = commanderModule.Command || commanderModule.default?.Command || commanderModule;
export { BaseCommand };
// Export a fixed version that avoids the problematic overload
export const Command = CommandConstructor as any;
export default Command;