claude-flow 1.0.44 → 1.0.45
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/deno.json +1 -0
- package/{src/cli/cli-core.ts → dist/cli/cli-core.js} +1 -1
- package/{src/cli/commands/agent.ts → dist/cli/commands/agent.js} +2 -2
- package/{src/cli/commands/claude.ts → dist/cli/commands/claude.js} +1 -1
- package/{src/cli/commands/config.ts → dist/cli/commands/config.js} +2 -2
- package/{src/cli/commands/index.ts → dist/cli/commands/index.js} +11 -11
- package/{src/cli/commands/mcp.ts → dist/cli/commands/mcp.js} +4 -4
- package/{src/cli/commands/monitor.ts → dist/cli/commands/monitor.js} +1 -1
- package/{src/cli/commands/session.ts → dist/cli/commands/session.js} +2 -2
- package/{src/cli/commands/sparc.ts → dist/cli/commands/sparc.js} +2 -2
- package/dist/cli/commands/start/index.js +10 -0
- package/{src/cli/commands/start/process-manager.ts → dist/cli/commands/start/process-manager.js} +10 -10
- package/{src/cli/commands/start/process-ui-simple.ts → dist/cli/commands/start/process-ui-simple.js} +2 -2
- package/{src/cli/commands/start/process-ui.ts → dist/cli/commands/start/process-ui.js} +1 -1
- package/{src/cli/commands/start/start-command.ts → dist/cli/commands/start/start-command.js} +6 -6
- package/{src/cli/commands/start/system-monitor.ts → dist/cli/commands/start/system-monitor.js} +3 -3
- package/{src/cli/commands/start.ts → dist/cli/commands/start.js} +1 -1
- package/{src/cli/commands/status.ts → dist/cli/commands/status.js} +1 -1
- package/{src/cli/commands/swarm-new.ts → dist/cli/commands/swarm-new.js} +7 -7
- package/{src/cli/commands/swarm.ts → dist/cli/commands/swarm.js} +6 -6
- package/{src/cli/commands/task.ts → dist/cli/commands/task.js} +2 -2
- package/{src/cli/commands/workflow.ts → dist/cli/commands/workflow.js} +2 -2
- package/{src/cli/formatter.ts → dist/cli/formatter.js} +1 -1
- package/{src/cli/index.ts → dist/cli/index.js} +16 -16
- package/dist/cli/main.js +23 -0
- package/{src/cli/repl.ts → dist/cli/repl.js} +3 -3
- package/{src → dist}/cli/simple-commands/start-ui.js +18 -2
- package/{src → dist}/cli/simple-commands/swarm.js +15 -1
- package/{src/communication/message-bus.ts → dist/communication/message-bus.js} +4 -4
- package/{src/core/config.ts → dist/core/config.js} +3 -3
- package/{src/core/event-bus.ts → dist/core/event-bus.js} +2 -2
- package/{src/core/logger.ts → dist/core/logger.js} +2 -2
- package/{src/core/orchestrator-fixed.ts → dist/core/orchestrator-fixed.js} +4 -4
- package/{src/core/orchestrator.ts → dist/core/orchestrator.js} +9 -9
- package/{src/mcp/auth.ts → dist/mcp/auth.js} +3 -3
- package/{src/mcp/claude-flow-tools.ts → dist/mcp/claude-flow-tools.js} +3 -3
- package/{src/mcp/client.ts → dist/mcp/client.js} +3 -3
- package/{src/mcp/load-balancer.ts → dist/mcp/load-balancer.js} +3 -3
- package/{src/mcp/router.ts → dist/mcp/router.js} +4 -4
- package/{src/mcp/server.ts → dist/mcp/server.js} +14 -14
- package/{src/mcp/session-manager.ts → dist/mcp/session-manager.js} +3 -3
- package/{src/mcp/swarm-tools.ts → dist/mcp/swarm-tools.js} +3 -3
- package/{src/mcp/tools.ts → dist/mcp/tools.js} +3 -3
- package/{src/mcp/transports/base.ts → dist/mcp/transports/base.js} +1 -1
- package/{src/mcp/transports/http.ts → dist/mcp/transports/http.js} +4 -4
- package/{src/mcp/transports/stdio.ts → dist/mcp/transports/stdio.js} +4 -4
- package/{src/memory/backends/base.ts → dist/memory/backends/base.js} +1 -1
- package/{src/memory/backends/markdown.ts → dist/memory/backends/markdown.js} +4 -4
- package/{src/memory/backends/sqlite.ts → dist/memory/backends/sqlite.js} +4 -4
- package/{src/memory/cache.ts → dist/memory/cache.js} +2 -2
- package/{src/memory/distributed-memory.ts → dist/memory/distributed-memory.js} +4 -4
- package/{src/memory/indexer.ts → dist/memory/indexer.js} +2 -2
- package/{src/memory/manager.ts → dist/memory/manager.js} +9 -9
- package/{src/memory/swarm-memory.ts → dist/memory/swarm-memory.js} +3 -3
- package/{src/resources/resource-manager.ts → dist/resources/resource-manager.js} +4 -4
- package/{src/swarm/coordinator.ts → dist/swarm/coordinator.js} +3 -3
- package/{src/swarm/executor.ts → dist/swarm/executor.js} +3 -3
- package/{src/swarm/memory.ts → dist/swarm/memory.js} +3 -3
- package/{src/terminal/adapters/native.ts → dist/terminal/adapters/native.js} +4 -4
- package/{src/terminal/adapters/vscode.ts → dist/terminal/adapters/vscode.js} +4 -4
- package/{src/terminal/manager.ts → dist/terminal/manager.js} +9 -9
- package/{src/terminal/pool.ts → dist/terminal/pool.js} +4 -4
- package/{src/terminal/session.ts → dist/terminal/session.js} +5 -5
- package/package.json +12 -4
- package/src/agents/agent-manager.ts +0 -1244
- package/src/cli/commands/start/index.ts +0 -10
- package/src/cli/simple-cli.js +0 -3167
- package/src/cli/simple-commands/init/README.md +0 -99
- package/src/coordination/README.md +0 -400
- package/src/coordination/advanced-scheduler.ts +0 -487
- package/src/coordination/advanced-task-executor.ts +0 -631
- package/src/coordination/background-executor.ts +0 -478
- package/src/coordination/circuit-breaker.ts +0 -366
- package/src/coordination/conflict-resolution.ts +0 -490
- package/src/coordination/dependency-graph.ts +0 -475
- package/src/coordination/index.ts +0 -63
- package/src/coordination/load-balancer.ts +0 -985
- package/src/coordination/manager.ts +0 -460
- package/src/coordination/messaging.ts +0 -290
- package/src/coordination/metrics.ts +0 -585
- package/src/coordination/resources.ts +0 -322
- package/src/coordination/scheduler.ts +0 -390
- package/src/coordination/swarm-coordinator.ts +0 -728
- package/src/coordination/swarm-monitor.ts +0 -473
- package/src/coordination/work-stealing.ts +0 -224
- package/src/monitoring/real-time-monitor.ts +0 -1108
- /package/{src → dist}/cli/command-registry.js +0 -0
- /package/{src/cli/commands/help.ts → dist/cli/commands/help.js} +0 -0
- /package/{src/cli/commands/memory.ts → dist/cli/commands/memory.js} +0 -0
- /package/{src/cli/commands/start/event-emitter.ts → dist/cli/commands/start/event-emitter.js} +0 -0
- /package/{src/cli/commands/start/types.ts → dist/cli/commands/start/types.js} +0 -0
- /package/{src/cli/commands/swarm-spawn.ts → dist/cli/commands/swarm-spawn.js} +0 -0
- /package/{src/cli/completion.ts → dist/cli/completion.js} +0 -0
- /package/{src → dist}/cli/create-enhanced-task.js +0 -0
- /package/{src/cli/index-remote.ts → dist/cli/index-remote.js} +0 -0
- /package/{src/cli/simple-cli.ts → dist/cli/simple-cli.js} +0 -0
- /package/{src → dist}/cli/simple-commands/agent.js +0 -0
- /package/{src → dist}/cli/simple-commands/config.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/claude-commands/slash-commands.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/executable-wrapper.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/help.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/index.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/sparc/roo-readme.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/sparc/roomodes-config.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/sparc/workflows.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/sparc-structure.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/templates/claude-md.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/templates/coordination-md.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/templates/memory-bank-md.js +0 -0
- /package/{src → dist}/cli/simple-commands/init/templates/readme-files.js +0 -0
- /package/{src → dist}/cli/simple-commands/init.js +0 -0
- /package/{src → dist}/cli/simple-commands/mcp.js +0 -0
- /package/{src → dist}/cli/simple-commands/memory.js +0 -0
- /package/{src → dist}/cli/simple-commands/monitor.js +0 -0
- /package/{src → dist}/cli/simple-commands/process-ui-enhanced.js +0 -0
- /package/{src → dist}/cli/simple-commands/process-ui.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/architect.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/ask.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/code.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/debug.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/devops.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/docs-writer.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/generic.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/index.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/integration.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/mcp.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/monitoring.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/optimization.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/security-review.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/supabase-admin.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/swarm.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/tdd.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc-modes/tutorial.js +0 -0
- /package/{src → dist}/cli/simple-commands/sparc.js +0 -0
- /package/{src → dist}/cli/simple-commands/start-wrapper.js +0 -0
- /package/{src → dist}/cli/simple-commands/start.js +0 -0
- /package/{src → dist}/cli/simple-commands/status.js +0 -0
- /package/{src → dist}/cli/simple-commands/swarm-ui.js +0 -0
- /package/{src → dist}/cli/simple-commands/task.js +0 -0
- /package/{src → dist}/cli/utils.js +0 -0
- /package/{src/core/json-persistence.ts → dist/core/json-persistence.js} +0 -0
- /package/{src/core/persistence.ts → dist/core/persistence.js} +0 -0
- /package/{src/swarm/types.ts → dist/swarm/types.js} +0 -0
- /package/{src/terminal/adapters/base.ts → dist/terminal/adapters/base.js} +0 -0
- /package/{src/terminal/vscode-bridge.ts → dist/terminal/vscode-bridge.js} +0 -0
- /package/{src/utils/errors.ts → dist/utils/errors.js} +0 -0
- /package/{src/utils/helpers.ts → dist/utils/helpers.js} +0 -0
- /package/{src/utils/types.ts → dist/utils/types.js} +0 -0
package/deno.json
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"fmt": "deno fmt",
|
|
63
63
|
"check": "deno check src/**/*.ts",
|
|
64
64
|
"build": "deno compile --allow-all --no-check --output bin/claude-flow src/cli/main.ts",
|
|
65
|
+
"build:npm": "deno run --allow-read --allow-write scripts/build-npm.ts",
|
|
65
66
|
"install": "deno install --allow-all --name claude-flow src/cli/index.ts",
|
|
66
67
|
"clean": "rm -rf test-results coverage bin",
|
|
67
68
|
"ci": "deno fmt --check && deno lint && deno check src/**/*.ts && ./scripts/test-runner.ts --coverage --fail-fast"
|
|
@@ -265,7 +265,7 @@ if (import.meta.main) {
|
|
|
265
265
|
const cli = new CLI("claude-flow", "Advanced AI Agent Orchestration System");
|
|
266
266
|
|
|
267
267
|
// Import and register all commands
|
|
268
|
-
const { setupCommands } = await import("./commands/index.ts");
|
|
268
|
+
const { setupCommands } = await import("./commands/index.ts.js");
|
|
269
269
|
setupCommands(cli);
|
|
270
270
|
|
|
271
271
|
// Run the CLI
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { Table } from '@cliffy/table';
|
|
7
7
|
import { colors } from '@cliffy/ansi/colors';
|
|
8
|
-
import { AgentProfile } from '../../utils/types.ts';
|
|
9
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
8
|
+
import { AgentProfile } from '../../utils/types.ts.js';
|
|
9
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
10
10
|
|
|
11
11
|
export const agentCommand = new Command()
|
|
12
12
|
.description('Manage Claude-Flow agents')
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { spawn } from 'node:child_process';
|
|
8
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
8
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
9
9
|
|
|
10
10
|
export const claudeCommand = new Command()
|
|
11
11
|
.description('Manage Claude instances')
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Confirm } from '@cliffy/prompt';
|
|
8
|
-
import { configManager } from '../../core/config.ts';
|
|
9
|
-
import { deepMerge } from '../../utils/helpers.ts';
|
|
8
|
+
import { configManager } from '../../core/config.ts.js';
|
|
9
|
+
import { deepMerge } from '../../utils/helpers.ts.js';
|
|
10
10
|
|
|
11
11
|
export const configCommand = new Command()
|
|
12
12
|
.description('Manage Claude-Flow configuration')
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CLI, success, error, warning, info, VERSION } from "../cli-core.ts";
|
|
2
|
-
import type { Command, CommandContext } from "../cli-core.ts";
|
|
1
|
+
import { CLI, success, error, warning, info, VERSION } from "../cli-core.ts.js";
|
|
2
|
+
import type { Command, CommandContext } from "../cli-core.ts.js";
|
|
3
3
|
import { bold, blue, yellow } from "https://deno.land/std@0.224.0/fmt/colors.ts";
|
|
4
|
-
import { Orchestrator } from "../../core/orchestrator-fixed.ts";
|
|
5
|
-
import { ConfigManager } from "../../core/config.ts";
|
|
6
|
-
import { MemoryManager } from "../../memory/manager.ts";
|
|
7
|
-
import { EventBus } from "../../core/event-bus.ts";
|
|
8
|
-
import { Logger } from "../../core/logger.ts";
|
|
9
|
-
import { JsonPersistenceManager } from "../../core/json-persistence.ts";
|
|
10
|
-
import { swarmAction } from "./swarm.ts";
|
|
11
|
-
import { SimpleMemoryManager } from "./memory.ts";
|
|
12
|
-
import { sparcAction } from "./sparc.ts";
|
|
4
|
+
import { Orchestrator } from "../../core/orchestrator-fixed.ts.js";
|
|
5
|
+
import { ConfigManager } from "../../core/config.ts.js";
|
|
6
|
+
import { MemoryManager } from "../../memory/manager.ts.js";
|
|
7
|
+
import { EventBus } from "../../core/event-bus.ts.js";
|
|
8
|
+
import { Logger } from "../../core/logger.ts.js";
|
|
9
|
+
import { JsonPersistenceManager } from "../../core/json-persistence.ts.js";
|
|
10
|
+
import { swarmAction } from "./swarm.ts.js";
|
|
11
|
+
import { SimpleMemoryManager } from "./memory.ts.js";
|
|
12
|
+
import { sparcAction } from "./sparc.ts.js";
|
|
13
13
|
|
|
14
14
|
let orchestrator: Orchestrator | null = null;
|
|
15
15
|
let configManager: ConfigManager | null = null;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
|
-
import { logger } from '../../core/logger.ts';
|
|
8
|
-
import { configManager } from '../../core/config.ts';
|
|
9
|
-
import { MCPServer } from '../../mcp/server.ts';
|
|
10
|
-
import { eventBus } from '../../core/event-bus.ts';
|
|
7
|
+
import { logger } from '../../core/logger.ts.js';
|
|
8
|
+
import { configManager } from '../../core/config.ts.js';
|
|
9
|
+
import { MCPServer } from '../../mcp/server.ts.js';
|
|
10
|
+
import { eventBus } from '../../core/event-bus.ts.js';
|
|
11
11
|
|
|
12
12
|
let mcpServer: MCPServer | null = null;
|
|
13
13
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Table } from '@cliffy/table';
|
|
8
|
-
import { formatProgressBar, formatDuration, formatStatusIndicator } from '../formatter.ts';
|
|
8
|
+
import { formatProgressBar, formatDuration, formatStatusIndicator } from '../formatter.ts.js';
|
|
9
9
|
|
|
10
10
|
export const monitorCommand = new Command()
|
|
11
11
|
.description('Start live monitoring dashboard')
|
|
@@ -6,8 +6,8 @@ import { Command } from '@cliffy/command';
|
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Table } from '@cliffy/table';
|
|
8
8
|
import { Confirm, Input } from '@cliffy/prompt';
|
|
9
|
-
import { formatDuration, formatStatusIndicator } from '../formatter.ts';
|
|
10
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
9
|
+
import { formatDuration, formatStatusIndicator } from '../formatter.ts.js';
|
|
10
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
11
11
|
|
|
12
12
|
export const sessionCommand = new Command()
|
|
13
13
|
.description('Manage Claude-Flow sessions')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { success, error, warning, info } from "../cli-core.ts";
|
|
2
|
-
import type { CommandContext } from "../cli-core.ts";
|
|
1
|
+
import { success, error, warning, info } from "../cli-core.ts.js";
|
|
2
|
+
import type { CommandContext } from "../cli-core.ts.js";
|
|
3
3
|
import { blue, yellow, green, magenta, cyan } from "https://deno.land/std@0.224.0/fmt/colors.ts";
|
|
4
4
|
|
|
5
5
|
interface SparcMode {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modular start command implementation
|
|
3
|
+
* Consolidates all start functionality into a single, extensible structure
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export { startCommand } from './start-command.ts.js';
|
|
7
|
+
export { ProcessManager } from './process-manager.ts.js';
|
|
8
|
+
export { ProcessUI } from './process-ui.ts.js';
|
|
9
|
+
export { SystemMonitor } from './system-monitor.ts.js';
|
|
10
|
+
export type { ProcessInfo, ProcessStatus, SystemStats } from './types.ts.js';
|
package/{src/cli/commands/start/process-manager.ts → dist/cli/commands/start/process-manager.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Process Manager - Handles lifecycle of system processes
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { EventEmitter } from './event-emitter.ts';
|
|
5
|
+
import { EventEmitter } from './event-emitter.ts.js';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import {
|
|
8
8
|
ProcessInfo,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
ProcessStatus,
|
|
11
11
|
ProcessMetrics,
|
|
12
12
|
SystemStats
|
|
13
|
-
} from './types.ts';
|
|
14
|
-
import { Orchestrator } from '../../../core/orchestrator.ts';
|
|
15
|
-
import { TerminalManager } from '../../../terminal/manager.ts';
|
|
16
|
-
import { MemoryManager } from '../../../memory/manager.ts';
|
|
17
|
-
import { CoordinationManager } from '../../../coordination/manager.ts';
|
|
18
|
-
import { MCPServer } from '../../../mcp/server.ts';
|
|
19
|
-
import { eventBus } from '../../../core/event-bus.ts';
|
|
20
|
-
import { logger } from '../../../core/logger.ts';
|
|
21
|
-
import { configManager } from '../../../core/config.ts';
|
|
13
|
+
} from './types.ts.js';
|
|
14
|
+
import { Orchestrator } from '../../../core/orchestrator.ts.js';
|
|
15
|
+
import { TerminalManager } from '../../../terminal/manager.ts.js';
|
|
16
|
+
import { MemoryManager } from '../../../memory/manager.ts.js';
|
|
17
|
+
import { CoordinationManager } from '../../../coordination/manager.ts.js';
|
|
18
|
+
import { MCPServer } from '../../../mcp/server.ts.js';
|
|
19
|
+
import { eventBus } from '../../../core/event-bus.ts.js';
|
|
20
|
+
import { logger } from '../../../core/logger.ts.js';
|
|
21
|
+
import { configManager } from '../../../core/config.ts.js';
|
|
22
22
|
|
|
23
23
|
export class ProcessManager extends EventEmitter {
|
|
24
24
|
private processes: Map<string, ProcessInfo> = new Map();
|
package/{src/cli/commands/start/process-ui-simple.ts → dist/cli/commands/start/process-ui-simple.js}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
|
-
import { ProcessManager } from './process-manager.ts';
|
|
8
|
-
import { ProcessInfo, ProcessStatus, SystemStats } from './types.ts';
|
|
7
|
+
import { ProcessManager } from './process-manager.ts.js';
|
|
8
|
+
import { ProcessInfo, ProcessStatus, SystemStats } from './types.ts.js';
|
|
9
9
|
|
|
10
10
|
export class ProcessUI {
|
|
11
11
|
private processManager: ProcessManager;
|
package/{src/cli/commands/start/start-command.ts → dist/cli/commands/start/start-command.js}
RENAMED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
|
-
import { ProcessManager } from './process-manager.ts';
|
|
8
|
-
import { ProcessUI } from './process-ui.ts';
|
|
9
|
-
import { SystemMonitor } from './system-monitor.ts';
|
|
10
|
-
import { StartOptions } from './types.ts';
|
|
11
|
-
import { eventBus } from '../../../core/event-bus.ts';
|
|
12
|
-
import { logger } from '../../../core/logger.ts';
|
|
7
|
+
import { ProcessManager } from './process-manager.ts.js';
|
|
8
|
+
import { ProcessUI } from './process-ui.ts.js';
|
|
9
|
+
import { SystemMonitor } from './system-monitor.ts.js';
|
|
10
|
+
import { StartOptions } from './types.ts.js';
|
|
11
|
+
import { eventBus } from '../../../core/event-bus.ts.js';
|
|
12
|
+
import { logger } from '../../../core/logger.ts.js';
|
|
13
13
|
|
|
14
14
|
export const startCommand = new Command()
|
|
15
15
|
.description('Start the Claude-Flow orchestration system')
|
package/{src/cli/commands/start/system-monitor.ts → dist/cli/commands/start/system-monitor.js}
RENAMED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { colors } from '@cliffy/ansi/colors';
|
|
6
|
-
import { ProcessManager } from './process-manager.ts';
|
|
7
|
-
import { SystemEvents } from '../../../utils/types.ts';
|
|
8
|
-
import { eventBus } from '../../../core/event-bus.ts';
|
|
6
|
+
import { ProcessManager } from './process-manager.ts.js';
|
|
7
|
+
import { SystemEvents } from '../../../utils/types.ts.js';
|
|
8
|
+
import { eventBus } from '../../../core/event-bus.ts.js';
|
|
9
9
|
|
|
10
10
|
export class SystemMonitor {
|
|
11
11
|
private processManager: ProcessManager;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Table } from '@cliffy/table';
|
|
8
|
-
import { formatHealthStatus, formatDuration, formatStatusIndicator } from '../formatter.ts';
|
|
8
|
+
import { formatHealthStatus, formatDuration, formatStatusIndicator } from '../formatter.ts.js';
|
|
9
9
|
|
|
10
10
|
export const statusCommand = new Command()
|
|
11
11
|
.description('Show Claude-Flow system status')
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Enhanced Swarm Command - Integration with new comprehensive swarm system
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { SwarmCoordinator } from '../../swarm/coordinator.ts';
|
|
6
|
-
import { TaskExecutor } from '../../swarm/executor.ts';
|
|
7
|
-
import { SwarmMemoryManager } from '../../swarm/memory.ts';
|
|
8
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
9
|
-
import { success, error, warning, info } from "../cli-core.ts";
|
|
10
|
-
import type { CommandContext } from "../cli-core.ts";
|
|
11
|
-
import { SwarmStrategy, SwarmMode, AgentType } from '../../swarm/types.ts';
|
|
5
|
+
import { SwarmCoordinator } from '../../swarm/coordinator.ts.js';
|
|
6
|
+
import { TaskExecutor } from '../../swarm/executor.ts.js';
|
|
7
|
+
import { SwarmMemoryManager } from '../../swarm/memory.ts.js';
|
|
8
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
9
|
+
import { success, error, warning, info } from "../cli-core.ts.js";
|
|
10
|
+
import type { CommandContext } from "../cli-core.ts.js";
|
|
11
|
+
import { SwarmStrategy, SwarmMode, AgentType } from '../../swarm/types.ts.js';
|
|
12
12
|
|
|
13
13
|
export async function swarmAction(ctx: CommandContext) {
|
|
14
14
|
// First check if help is requested
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Claude Swarm Mode - Self-orchestrating agent swarms using claude-flow
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
6
|
-
import { success, error, warning, info } from "../cli-core.ts";
|
|
7
|
-
import type { CommandContext } from "../cli-core.ts";
|
|
8
|
-
import { SwarmCoordinator } from '../../coordination/swarm-coordinator.ts';
|
|
9
|
-
import { BackgroundExecutor } from '../../coordination/background-executor.ts';
|
|
10
|
-
import { SwarmMemoryManager } from '../../memory/swarm-memory.ts';
|
|
5
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
6
|
+
import { success, error, warning, info } from "../cli-core.ts.js";
|
|
7
|
+
import type { CommandContext } from "../cli-core.ts.js";
|
|
8
|
+
import { SwarmCoordinator } from '../../coordination/swarm-coordinator.ts.js';
|
|
9
|
+
import { BackgroundExecutor } from '../../coordination/background-executor.ts.js';
|
|
10
|
+
import { SwarmMemoryManager } from '../../memory/swarm-memory.ts.js';
|
|
11
11
|
|
|
12
12
|
export async function swarmAction(ctx: CommandContext) {
|
|
13
13
|
// First check if help is requested
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { Command } from '@cliffy/command';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
|
-
import { Task } from '../../utils/types.ts';
|
|
8
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
7
|
+
import { Task } from '../../utils/types.ts.js';
|
|
8
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
9
9
|
|
|
10
10
|
export const taskCommand = new Command()
|
|
11
11
|
.description('Manage tasks')
|
|
@@ -6,8 +6,8 @@ import { Command } from '@cliffy/command';
|
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Table } from '@cliffy/table';
|
|
8
8
|
import { Confirm, Input } from '@cliffy/prompt';
|
|
9
|
-
import { formatDuration, formatStatusIndicator, formatProgressBar } from '../formatter.ts';
|
|
10
|
-
import { generateId } from '../../utils/helpers.ts';
|
|
9
|
+
import { formatDuration, formatStatusIndicator, formatProgressBar } from '../formatter.ts.js';
|
|
10
|
+
import { generateId } from '../../utils/helpers.ts.js';
|
|
11
11
|
|
|
12
12
|
export const workflowCommand = new Command()
|
|
13
13
|
.description('Execute and manage workflows')
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { colors } from '@cliffy/ansi/colors';
|
|
6
6
|
import { Table } from '@cliffy/table';
|
|
7
7
|
// Box is not available in the current cliffy version
|
|
8
|
-
import { AgentProfile, Task, MemoryEntry, HealthStatus } from '../utils/types.ts';
|
|
8
|
+
import { AgentProfile, Task, MemoryEntry, HealthStatus } from '../utils/types.ts.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Formats an error for display
|
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
// Import and run the simple CLI which doesn't have external dependencies
|
|
8
8
|
import "./simple-cli.ts";
|
|
9
9
|
// Spinner import removed - not available in current cliffy version
|
|
10
|
-
import { logger } from '../core/logger.ts';
|
|
11
|
-
import { configManager } from '../core/config.ts';
|
|
12
|
-
import { startCommand } from './commands/start.ts';
|
|
13
|
-
import { agentCommand } from './commands/agent.ts';
|
|
14
|
-
import { taskCommand } from './commands/task.ts';
|
|
15
|
-
import { memoryCommand } from './commands/memory.ts';
|
|
16
|
-
import { configCommand } from './commands/config.ts';
|
|
17
|
-
import { statusCommand } from './commands/status.ts';
|
|
18
|
-
import { monitorCommand } from './commands/monitor.ts';
|
|
19
|
-
import { sessionCommand } from './commands/session.ts';
|
|
20
|
-
import { workflowCommand } from './commands/workflow.ts';
|
|
21
|
-
import { helpCommand } from './commands/help.ts';
|
|
22
|
-
import { mcpCommand } from './commands/mcp.ts';
|
|
23
|
-
import { formatError, displayBanner, displayVersion } from './formatter.ts';
|
|
24
|
-
import { startREPL } from './repl.ts';
|
|
25
|
-
import { CompletionGenerator } from './completion.ts';
|
|
10
|
+
import { logger } from '../core/logger.ts.js';
|
|
11
|
+
import { configManager } from '../core/config.ts.js';
|
|
12
|
+
import { startCommand } from './commands/start.ts.js';
|
|
13
|
+
import { agentCommand } from './commands/agent.ts.js';
|
|
14
|
+
import { taskCommand } from './commands/task.ts.js';
|
|
15
|
+
import { memoryCommand } from './commands/memory.ts.js';
|
|
16
|
+
import { configCommand } from './commands/config.ts.js';
|
|
17
|
+
import { statusCommand } from './commands/status.ts.js';
|
|
18
|
+
import { monitorCommand } from './commands/monitor.ts.js';
|
|
19
|
+
import { sessionCommand } from './commands/session.ts.js';
|
|
20
|
+
import { workflowCommand } from './commands/workflow.ts.js';
|
|
21
|
+
import { helpCommand } from './commands/help.ts.js';
|
|
22
|
+
import { mcpCommand } from './commands/mcp.ts.js';
|
|
23
|
+
import { formatError, displayBanner, displayVersion } from './formatter.ts.js';
|
|
24
|
+
import { startREPL } from './repl.ts.js';
|
|
25
|
+
import { CompletionGenerator } from './completion.ts.js';
|
|
26
26
|
|
|
27
27
|
// Version information
|
|
28
28
|
const VERSION = '1.0.43';
|
package/dist/cli/main.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env -S deno run --allow-all
|
|
2
|
+
/**
|
|
3
|
+
* Claude-Flow CLI - Main entry point
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CLI } from "./cli-core.ts.js";
|
|
7
|
+
import { setupCommands } from "./commands/index.ts.js";
|
|
8
|
+
|
|
9
|
+
const VERSION = "1.0.43";
|
|
10
|
+
|
|
11
|
+
async function main() {
|
|
12
|
+
const cli = new CLI("claude-flow", "Advanced AI Agent Orchestration System");
|
|
13
|
+
|
|
14
|
+
// Setup all commands
|
|
15
|
+
setupCommands(cli);
|
|
16
|
+
|
|
17
|
+
// Run the CLI
|
|
18
|
+
await cli.run();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (import.meta.main) {
|
|
22
|
+
await main();
|
|
23
|
+
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { Input, Confirm, Select } from '@cliffy/prompt';
|
|
6
6
|
import { colors } from '@cliffy/ansi/colors';
|
|
7
7
|
import { Table } from '@cliffy/table';
|
|
8
|
-
import { AgentProfile, Task } from '../utils/types.ts';
|
|
9
|
-
import { generateId } from '../utils/helpers.ts';
|
|
10
|
-
import { formatStatusIndicator, formatDuration, formatProgressBar } from './formatter.ts';
|
|
8
|
+
import { AgentProfile, Task } from '../utils/types.ts.js';
|
|
9
|
+
import { generateId } from '../utils/helpers.ts.js';
|
|
10
|
+
import { formatStatusIndicator, formatDuration, formatProgressBar } from './formatter.ts.js';
|
|
11
11
|
|
|
12
12
|
interface REPLCommand {
|
|
13
13
|
name: string;
|
|
@@ -4,8 +4,24 @@ import { printSuccess, printError, printWarning, printInfo } from '../utils.js';
|
|
|
4
4
|
export async function launchUI() {
|
|
5
5
|
try {
|
|
6
6
|
// Dynamic import to avoid initial load issues
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
let ProcessManager, ProcessUI;
|
|
8
|
+
try {
|
|
9
|
+
// Try TypeScript imports first (development)
|
|
10
|
+
const pmModule = await import('../commands/start/process-manager.ts');
|
|
11
|
+
const uiModule = await import('../commands/start/process-ui-simple.ts');
|
|
12
|
+
ProcessManager = pmModule.ProcessManager;
|
|
13
|
+
ProcessUI = uiModule.ProcessUI;
|
|
14
|
+
} catch (tsError) {
|
|
15
|
+
// Fallback to JavaScript imports (npm package)
|
|
16
|
+
try {
|
|
17
|
+
const pmModule = await import('../commands/start/process-manager.js');
|
|
18
|
+
const uiModule = await import('../commands/start/process-ui-simple.js');
|
|
19
|
+
ProcessManager = pmModule.ProcessManager;
|
|
20
|
+
ProcessUI = uiModule.ProcessUI;
|
|
21
|
+
} catch (jsError) {
|
|
22
|
+
throw tsError; // Throw original error if both fail
|
|
23
|
+
}
|
|
24
|
+
}
|
|
9
25
|
|
|
10
26
|
printSuccess('🚀 Claude-Flow Process Management UI');
|
|
11
27
|
console.log('─'.repeat(60));
|
|
@@ -6,7 +6,21 @@
|
|
|
6
6
|
export async function swarmCommand(args, flags) {
|
|
7
7
|
try {
|
|
8
8
|
// Import the new comprehensive swarm action
|
|
9
|
-
|
|
9
|
+
// Note: This will fail in npm package due to TypeScript limitation
|
|
10
|
+
// TODO: Build process needed to transpile TS files before publishing
|
|
11
|
+
let swarmAction;
|
|
12
|
+
try {
|
|
13
|
+
const module = await import('../commands/swarm-new.ts');
|
|
14
|
+
swarmAction = module.swarmAction;
|
|
15
|
+
} catch (tsError) {
|
|
16
|
+
// Fallback: Try importing as .js (for future transpiled version)
|
|
17
|
+
try {
|
|
18
|
+
const module = await import('../commands/swarm-new.js');
|
|
19
|
+
swarmAction = module.swarmAction;
|
|
20
|
+
} catch (jsError) {
|
|
21
|
+
throw tsError; // Throw original error if both fail
|
|
22
|
+
}
|
|
23
|
+
}
|
|
10
24
|
|
|
11
25
|
// Create command context compatible with TypeScript version
|
|
12
26
|
const ctx = {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
|
-
import { ILogger } from '../core/logger.ts';
|
|
7
|
-
import { IEventBus } from '../core/event-bus.ts';
|
|
6
|
+
import { ILogger } from '../core/logger.ts.js';
|
|
7
|
+
import { IEventBus } from '../core/event-bus.ts.js';
|
|
8
8
|
import {
|
|
9
9
|
SwarmEvent,
|
|
10
10
|
EventType,
|
|
11
11
|
AgentId,
|
|
12
12
|
CommunicationStrategy
|
|
13
|
-
} from '../swarm/types.ts';
|
|
14
|
-
import { generateId } from '../utils/helpers.ts';
|
|
13
|
+
} from '../swarm/types.ts.js';
|
|
14
|
+
import { generateId } from '../utils/helpers.ts.js';
|
|
15
15
|
|
|
16
16
|
export interface MessageBusConfig {
|
|
17
17
|
strategy: CommunicationStrategy;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Configuration management for Claude-Flow
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { Config } from '../utils/types.ts';
|
|
6
|
-
import { deepMerge, safeParseJSON } from '../utils/helpers.ts';
|
|
7
|
-
import { ConfigError, ValidationError } from '../utils/errors.ts';
|
|
5
|
+
import { Config } from '../utils/types.ts.js';
|
|
6
|
+
import { deepMerge, safeParseJSON } from '../utils/helpers.ts.js';
|
|
7
|
+
import { ConfigError, ValidationError } from '../utils/errors.ts.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Default configuration values
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Event bus implementation for Claude-Flow
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { SystemEvents, EventMap } from '../utils/types.ts';
|
|
6
|
-
import { TypedEventEmitter } from '../utils/helpers.ts';
|
|
5
|
+
import { SystemEvents, EventMap } from '../utils/types.ts.js';
|
|
6
|
+
import { TypedEventEmitter } from '../utils/helpers.ts.js';
|
|
7
7
|
|
|
8
8
|
export interface IEventBus {
|
|
9
9
|
emit(event: string, data?: unknown): void;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Logging infrastructure for Claude-Flow
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { LoggingConfig } from '../utils/types.ts';
|
|
6
|
-
import { formatBytes } from '../utils/helpers.ts';
|
|
5
|
+
import { LoggingConfig } from '../utils/types.ts.js';
|
|
6
|
+
import { formatBytes } from '../utils/helpers.ts.js';
|
|
7
7
|
|
|
8
8
|
export interface ILogger {
|
|
9
9
|
debug(message: string, meta?: unknown): void;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Fixed orchestrator implementation for Claude-Flow
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { EventBus } from './event-bus.ts';
|
|
6
|
-
import { Logger } from './logger.ts';
|
|
7
|
-
import { ConfigManager } from './config.ts';
|
|
8
|
-
import { JsonPersistenceManager } from './json-persistence.ts';
|
|
5
|
+
import { EventBus } from './event-bus.ts.js';
|
|
6
|
+
import { Logger } from './logger.ts.js';
|
|
7
|
+
import { ConfigManager } from './config.ts.js';
|
|
8
|
+
import { JsonPersistenceManager } from './json-persistence.ts.js';
|
|
9
9
|
|
|
10
10
|
export interface AgentInfo {
|
|
11
11
|
id: string;
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ComponentHealth,
|
|
13
13
|
TaskStatus,
|
|
14
14
|
OrchestratorMetrics,
|
|
15
|
-
} from '../utils/types.ts';
|
|
16
|
-
import { IEventBus } from './event-bus.ts';
|
|
17
|
-
import { ILogger } from './logger.ts';
|
|
18
|
-
import { ITerminalManager } from '../terminal/manager.ts';
|
|
19
|
-
import { IMemoryManager } from '../memory/manager.ts';
|
|
20
|
-
import { ICoordinationManager } from '../coordination/manager.ts';
|
|
21
|
-
import { IMCPServer } from '../mcp/server.ts';
|
|
22
|
-
import { SystemError, InitializationError, ShutdownError } from '../utils/errors.ts';
|
|
23
|
-
import { delay, retry, circuitBreaker, CircuitBreaker } from '../utils/helpers.ts';
|
|
15
|
+
} from '../utils/types.ts.js';
|
|
16
|
+
import { IEventBus } from './event-bus.ts.js';
|
|
17
|
+
import { ILogger } from './logger.ts.js';
|
|
18
|
+
import { ITerminalManager } from '../terminal/manager.ts.js';
|
|
19
|
+
import { IMemoryManager } from '../memory/manager.ts.js';
|
|
20
|
+
import { ICoordinationManager } from '../coordination/manager.ts.js';
|
|
21
|
+
import { IMCPServer } from '../mcp/server.ts.js';
|
|
22
|
+
import { SystemError, InitializationError, ShutdownError } from '../utils/errors.ts.js';
|
|
23
|
+
import { delay, retry, circuitBreaker, CircuitBreaker } from '../utils/helpers.ts.js';
|
|
24
24
|
import { ensureDir, exists } from 'https://deno.land/std@0.208.0/fs/mod.ts';
|
|
25
25
|
import { join, dirname } from 'https://deno.land/std@0.208.0/path/mod.ts';
|
|
26
26
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Authentication and authorization for MCP
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { MCPAuthConfig, MCPSession } from '../utils/types.ts';
|
|
6
|
-
import { ILogger } from '../core/logger.ts';
|
|
7
|
-
import { MCPError } from '../utils/errors.ts';
|
|
5
|
+
import { MCPAuthConfig, MCPSession } from '../utils/types.ts.js';
|
|
6
|
+
import { ILogger } from '../core/logger.ts.js';
|
|
7
|
+
import { MCPError } from '../utils/errors.ts.js';
|
|
8
8
|
import { createHash, timingSafeEqual } from 'node:crypto';
|
|
9
9
|
|
|
10
10
|
export interface IAuthManager {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Claude-Flow specific MCP tools
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { MCPTool, MCPContext, AgentProfile, Task, MemoryEntry } from '../utils/types.ts';
|
|
6
|
-
import { ILogger } from '../core/logger.ts';
|
|
7
|
-
import { Permissions } from './auth.ts';
|
|
5
|
+
import { MCPTool, MCPContext, AgentProfile, Task, MemoryEntry } from '../utils/types.ts.js';
|
|
6
|
+
import { ILogger } from '../core/logger.ts.js';
|
|
7
|
+
import { Permissions } from './auth.ts.js';
|
|
8
8
|
|
|
9
9
|
export interface ClaudeFlowToolContext extends MCPContext {
|
|
10
10
|
orchestrator?: any; // Reference to orchestrator instance
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* MCP Client for Model Context Protocol
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { ITransport } from './transports/base.ts';
|
|
6
|
-
import { logger } from '../core/logger.ts';
|
|
7
|
-
import { MCPRequest, MCPResponse, MCPNotification } from '../utils/types.ts';
|
|
5
|
+
import { ITransport } from './transports/base.ts.js';
|
|
6
|
+
import { logger } from '../core/logger.ts.js';
|
|
7
|
+
import { MCPRequest, MCPResponse, MCPNotification } from '../utils/types.ts.js';
|
|
8
8
|
|
|
9
9
|
export interface MCPClientConfig {
|
|
10
10
|
transport: ITransport;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Load balancer and rate limiting for MCP
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { MCPLoadBalancerConfig, MCPRequest, MCPResponse, MCPSession } from '../utils/types.ts';
|
|
6
|
-
import { ILogger } from '../core/logger.ts';
|
|
7
|
-
import { MCPError } from '../utils/errors.ts';
|
|
5
|
+
import { MCPLoadBalancerConfig, MCPRequest, MCPResponse, MCPSession } from '../utils/types.ts.js';
|
|
6
|
+
import { ILogger } from '../core/logger.ts.js';
|
|
7
|
+
import { MCPError } from '../utils/errors.ts.js';
|
|
8
8
|
|
|
9
9
|
export interface RequestMetrics {
|
|
10
10
|
requestId: string;
|