diff --git a/.claude/checkpoints/1758899935.json b/.claude/checkpoints/1758899935.json new file mode 100644 index 0000000000..51b236ceb0 --- /dev/null +++ b/.claude/checkpoints/1758899935.json @@ -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"} diff --git a/.claude/checkpoints/1758899936.json b/.claude/checkpoints/1758899936.json new file mode 100644 index 0000000000..bf0e068909 --- /dev/null +++ b/.claude/checkpoints/1758899936.json @@ -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(-) "} diff --git a/src/cli/commander-fix.ts b/src/cli/commander-fix.ts index 5638ee205b..9f22044346 100644 --- a/src/cli/commander-fix.ts +++ b/src/cli/commander-fix.ts @@ -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 }; \ No newline at end of file +// Export a fixed version that avoids the problematic overload +export const Command = CommandConstructor as any; +export default Command; \ No newline at end of file