claude-flow-novice 1.6.3 → 1.6.5
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/.claude/commands/parse-epic.js +180 -0
- package/.claude/settings.json +12 -2
- package/.claude/settings.local.json +4 -2
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +37 -2
- package/.claude-flow-novice/dist/mcp/transports/base.js +5 -0
- package/.claude-flow-novice/dist/mcp/transports/base.js.map +1 -0
- package/.claude-flow-novice/dist/mcp/transports/http.js +414 -0
- package/.claude-flow-novice/dist/mcp/transports/http.js.map +1 -0
- package/.claude-flow-novice/dist/mcp/transports/stdio.js +217 -0
- package/.claude-flow-novice/dist/mcp/transports/stdio.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js +129 -0
- package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/index.js +3 -0
- package/.claude-flow-novice/dist/src/cli/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/utils/epic-parser.js +266 -0
- package/.claude-flow-novice/dist/src/cli/utils/epic-parser.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/message-bus.js +105 -2
- package/.claude-flow-novice/dist/src/communication/message-bus.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js +1 -1
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/artifact-cache-optimizer.js +632 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/artifact-cache-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/index.js +11 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/checkpoints/checkpoint-compressor.js +318 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/checkpoints/checkpoint-compressor.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/completion-detector.js +234 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/completion-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/hierarchical-detector.js +347 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/hierarchical-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/index.js +13 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/lamport-clock.js +173 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/lamport-clock.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/mesh-detector.js +526 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/mesh-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/sdk-completion-detector.js +443 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/sdk-completion-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/swarm-shutdown.js +366 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/swarm-shutdown.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinator-factory.js +287 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinator-factory.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.example.js +364 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.js +492 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/hierarchical-coordinator.js +786 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/hierarchical-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/parent-child-manager.js +342 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/parent-child-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/swarm-coordinator-v2.js +601 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/swarm-coordinator-v2.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/agent-state.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/agent-state.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dead-letter-queue.js +413 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dead-letter-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-graph.js +471 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-graph.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-node.js +379 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-node.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-resolver.js +335 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-resolver.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/help-request-metrics.js +211 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/help-request-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/index.js +33 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-broker.js +920 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-broker.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-router.js +385 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-router.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message.js +138 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/resource-manager-safe.js +478 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/resource-manager-safe.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine-config.js +358 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine-config.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine.js +588 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-transition.js +153 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-transition.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/task-scheduler.js +360 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/task-scheduler.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/topic-manager.js +337 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/topic-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/deadlock-detector.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/deadlock-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/index.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/resource-manager.js +669 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/resource-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/artifact-storage.js +451 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/artifact-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/cycle-detector.js +271 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/cycle-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-graph.js +335 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-graph.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-manager.js +439 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-request.js +92 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/index.js +21 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/topological-sort.js +223 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/topological-sort.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-coordinator.js +436 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-matcher.js +278 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-matcher.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request-handler.js +317 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request.js +273 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/index.js +15 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/waiting-agent-pool.js +512 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/waiting-agent-pool.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/index.js +67 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/help-deadlock-integration.js +557 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/help-deadlock-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.example.js +212 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.js +552 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/state-machine-integration.js +635 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/state-machine-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/IArtifactStorage.js +28 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/IArtifactStorage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ICoordinator.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ICoordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ISessionStore.js +25 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ISessionStore.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/artifact-adapter.js +308 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/artifact-adapter.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/completion-storage.js +439 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/completion-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-graph-storage.js +540 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-graph-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-storage.js +367 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/message-storage.js +518 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/message-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/state-storage.js +377 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/state-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channel.js +371 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/dependency-channel.js +355 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/dependency-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/help-channel.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/help-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/state-channel.js +295 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/state-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/task-channel.js +411 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/task-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-bus.js +387 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-persistence.js +589 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-persistence.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-router.js +444 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-router.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/artifact-storage.js +560 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/artifact-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/background-orchestrator.js +335 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/background-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/bash-output-monitor.js +104 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/bash-output-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/checkpoint-manager.js +847 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/checkpoint-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/help-coordinator.js +470 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/hierarchical-background-integration.js +450 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/hierarchical-background-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/index.js +13 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/message-bus-integration.js +625 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/message-bus-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/multi-level-control.js +545 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/multi-level-control.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-controller.js +740 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-controller.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-message-integration.js +415 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-message-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/session-pool-optimizer.js +615 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/session-pool-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-machine-integration.js +547 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-machine-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-sdk-integration.js +342 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-sdk-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/security/payload-validator.js +259 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/security/payload-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/framework-registry.js +273 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/framework-registry.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/index.js +8 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-config-manager.js +310 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-config-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-validator.js +218 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/types/sdk.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/types/sdk.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/index.js +6 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/priority-queue.js +145 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/priority-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/sdk-helpers.js +122 -0
- package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/sdk-helpers.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/config-translator.js +17 -43
- package/.claude-flow-novice/dist/src/coordination/config-translator.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js +34 -76
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/index.js +3 -0
- package/.claude-flow-novice/dist/src/coordination/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/shared/core/agent-state.js +172 -0
- package/.claude-flow-novice/dist/src/coordination/shared/core/agent-state.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/core/index.js +7 -0
- package/.claude-flow-novice/dist/src/coordination/shared/core/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/index.js +19 -0
- package/.claude-flow-novice/dist/src/coordination/shared/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/interfaces/ICoordinator.js +24 -0
- package/.claude-flow-novice/dist/src/coordination/shared/interfaces/ICoordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/interfaces/index.js +7 -0
- package/.claude-flow-novice/dist/src/coordination/shared/interfaces/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/message-broker.js +920 -0
- package/.claude-flow-novice/dist/src/coordination/shared/message-broker.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/message.js +138 -0
- package/.claude-flow-novice/dist/src/coordination/shared/message.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/security/payload-validator.js +259 -0
- package/.claude-flow-novice/dist/src/coordination/shared/security/payload-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/index.js +17 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/interfaces/transparency-system.js +19 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/interfaces/transparency-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-integration.js +357 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js +679 -0
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/types/index.js +7 -0
- package/.claude-flow-novice/dist/src/coordination/shared/types/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/shared/types/sdk.js +10 -0
- package/.claude-flow-novice/dist/src/coordination/shared/types/sdk.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/interfaces/v1-transparency-system.js +12 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/interfaces/v1-transparency-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/v1-to-v2-bridge.js +433 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/v1-to-v2-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/v1-transparency-adapter.js +1468 -0
- package/.claude-flow-novice/dist/src/coordination/v1-transparency/v1-transparency-adapter.js.map +1 -0
- package/.claude-flow-novice/dist/src/feature-flags/core/FeatureFlagManager.js +52 -2
- package/.claude-flow-novice/dist/src/feature-flags/core/FeatureFlagManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/mcp/mcp-server-novice.js +37 -2
- package/.claude-flow-novice/dist/src/mcp/session-manager.js +3 -1
- package/.claude-flow-novice/dist/src/mcp/session-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/apm/apm-integration.js +5 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/apm-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/provider-manager.js +41 -6
- package/.claude-flow-novice/dist/src/providers/provider-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/tiered-router.js +9 -17
- package/.claude-flow-novice/dist/src/providers/tiered-router.js.map +1 -1
- package/.claude-flow-novice/dist/src/utils/markdown-sanitizer.js +65 -41
- package/.claude-flow-novice/dist/src/utils/markdown-sanitizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/web/api/server.js +1 -1
- package/.claude-flow-novice/dist/src/web/api/server.js.map +1 -1
- package/.claude-flow-novice/dist/src/workflows/progressive-rollout-manager.js +30 -0
- package/.claude-flow-novice/dist/src/workflows/progressive-rollout-manager.js.map +1 -1
- package/.claude-flow-novice/metrics.db +0 -0
- package/.claude-flow-novice/metrics.db-shm +0 -0
- package/.claude-flow-novice/metrics.db-wal +0 -0
- package/CLAUDE.md +72 -0
- package/config/hooks/post-edit-pipeline.js +68 -118
- package/config/hooks/pre-tool-memory-safety.js +209 -0
- package/package.json +7 -4
- package/scripts/cleanup-idle-sessions.sh +59 -0
- package/scripts/monitoring/alert-monitor.sh +220 -0
- package/scripts/monitoring/view-alerts.sh +307 -0
- package/scripts/test-provider-routing.cjs +7 -9
- package/scripts/test-zai-api.cjs +2 -2
- package/src/slash-commands/parse-epic.js +1 -1
- package/wiki/Provider-Routing.md +57 -69
- package/MEMORY_LEAK_ROOT_CAUSE.md +0 -149
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/coordination/shared/message-broker.ts"],"names":["EventEmitter","RateLimiter","MessagePriority","MessageUtils","DeliverySemantics","PayloadValidator","MessageBrokerError","Error","message","name","PriorityQueue","items","enqueue","item","push","sort","a","b","priority","dequeue","shift","peek","length","size","clear","MessageBroker","emitter","subscriptions","pendingRequests","messageQueue","config","stats","processing","subscriptionCounter","senderQueueSizes","deadLetterQueue","rateLimiters","rateLimiterCleanupInterval","payloadValidator","agentSubscriptions","subscriptionCleanupInterval","setMaxListeners","Map","maxQueueSize","maxQueueSizePerSender","enableDeadLetterQueue","priorityEvictionThreshold","defaultRequestTimeout","enableStats","maxConcurrency","maxSubscriptions","maxSubscriptionsPerAgent","subscriptionTTL","cleanupIntervalMs","authorizationProvider","rateLimit","maxMessagesPerSecond","maxBurstSize","strategy","undefined","payloadValidation","totalPublished","totalDelivered","totalFailed","totalSubscriptions","messagesByTopic","messagesByPriority","avgDeliveryTime","startRateLimiterCleanup","startSubscriptionCleanup","subscribe","topic","validateTopicName","handler","subscriberId","agentSubs","get","Set","authorized","canSubscribe","subscriptionId","Date","now","internalSub","id","createdAt","filter","expiresAt","has","set","topicSubs","add","unsubscribe","Array","from","keys","subs","index","findIndex","sub","splice","delete","publish","validateConfig","validationResult","validate","payload","valid","emit","errors","senderId","join","sanitizedPayload","sanitize","allowed","checkRateLimit","currentSenderSize","process","env","DEBUG_MESSAGE_BROKER","console","log","evictionThreshold","Math","floor","messagePriority","normalizePriority","evicted","evictLowPriorityMessages","queueSize","evictedMessages","threshold","generateMessageId","timestamp","replyTo","correlationId","recipientId","deliverySemantics","AT_LEAST_ONCE","metadata","processQueue","catch","error","broadcast","request","options","generateCorrelationId","timeout","NORMAL","replyTopic","Promise","resolve","reject","timeoutId","setTimeout","expectedSender","resolved","clearTimeout","reply","success","createReply","hasHandlers","hasMatchingHandlers","deliverMessage","senderSize","topicPattern","matchesTopic","startTime","matchingHandlers","cleanupExpiredSubscriptions","pendingRequest","warn","subscription","deliveryTime","getStats","resetStats","getSubscriptions","result","values","getQueueSize","getPendingRequestCount","includes","validTopicPattern","test","limiter","tokensPerInterval","interval","fireImmediately","remainingTokens","removeTokens","setInterval","entries","toKeep","slice","forEach","key","value","incomingPriority","lowestIndex","lowestPriority","i","candidate","getDeadLetterQueueSize","getRateLimiterCount","getDeadLetterMessages","count","clearDeadLetterQueue","cleanupInterval","expiredCount","validSubs","pending","clearInterval","removeAllListeners","shutdown","onError","on"],"mappings":"AAAA;;;;;;;;;;;CAWC,GAED,SAASA,YAAY,QAAQ,SAAS;AACtC,SAASC,WAAW,QAAQ,UAAU;AACtC,SAIEC,eAAe,EAEfC,YAAY,EAMZC,iBAAiB,QACZ,eAAe;AACtB,SAASC,gBAAgB,QAA+B,kCAAkC;AAE1F;;CAEC,GACD,OAAO,MAAMC,2BAA2BC;IACtC,YAAYC,OAAe,CAAE;QAC3B,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AA6BA;;CAEC,GACD,IAAA,AAAMC,gBAAN,MAAMA;IACIC,QAAa,EAAE,CAAC;IAExBC,QAAQC,IAAO,EAAQ;QACrB,IAAI,CAACF,KAAK,CAACG,IAAI,CAACD;QAChB,IAAI,CAACF,KAAK,CAACI,IAAI,CAA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QAE7B,mCAAmC;QACnC,IAAI,CAACY,YAAY,CAACZ,KAAK;QACvB,IAAI,IAAI,CAACa,0BAA0B,EAAE;YACnC8K,cAAc,IAAI,CAAC9K,0BAA0B;YAC7C,IAAI,CAACA,0BAA0B,GAAGsB;QACpC;QAEA,mDAAmD;QACnD,IAAI,IAAI,CAACnB,2BAA2B,EAAE;YACpC2K,cAAc,IAAI,CAAC3K,2BAA2B;YAC9C,IAAI,CAACA,2BAA2B,GAAGmB;QACrC;QAEA,IAAI,CAAC5B,KAAK,CAACiC,kBAAkB,GAAG;QAChC,IAAI,CAACtC,OAAO,CAAC0L,kBAAkB;IACjC;IAEA;;;;;;GAMC,GACD,MAAMC,SAASlE,UAAkB,IAAI,EAAiB;QACpD,MAAMoB,YAAYtF,KAAKC,GAAG;QAE1B,0BAA0B;QAC1B,MAAO,IAAI,CAACrD,YAAY,CAACP,MAAM,GAAG,KAAK2D,KAAKC,GAAG,KAAKqF,YAAYpB,QAAS;YACvE,MAAM,IAAIG,QAAQC,CAAAA,UAAWG,WAAWH,SAAS;QACnD;QAEA,IAAI,CAAC/H,KAAK;IACZ;IAEA;;;;GAIC,GACD8L,QAAQ7I,OAA6B,EAAQ;QAC3C,IAAI,CAAC/C,OAAO,CAAC6L,EAAE,CAAC,SAAS9I;IAC3B;AACF"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Coordination V2 - Message Interface and Types
|
|
3
|
+
*
|
|
4
|
+
* Defines the core message structure for the message bus, supporting
|
|
5
|
+
* pub/sub, request/reply, and broadcast communication patterns.
|
|
6
|
+
*
|
|
7
|
+
* @module coordination/shared/message
|
|
8
|
+
*/ /**
|
|
9
|
+
* Message priority levels (0-10 scale).
|
|
10
|
+
* Higher values indicate more urgent messages.
|
|
11
|
+
*/ export var MessagePriority = /*#__PURE__*/ function(MessagePriority) {
|
|
12
|
+
/** Critical system messages (10) */ MessagePriority[MessagePriority["CRITICAL"] = 10] = "CRITICAL";
|
|
13
|
+
/** High priority operational messages (8) */ MessagePriority[MessagePriority["HIGH"] = 8] = "HIGH";
|
|
14
|
+
/** Normal priority messages (5) - default */ MessagePriority[MessagePriority["NORMAL"] = 5] = "NORMAL";
|
|
15
|
+
/** Low priority background messages (2) */ MessagePriority[MessagePriority["LOW"] = 2] = "LOW";
|
|
16
|
+
/** Informational/logging messages (0) */ MessagePriority[MessagePriority["INFORMATIONAL"] = 0] = "INFORMATIONAL";
|
|
17
|
+
return MessagePriority;
|
|
18
|
+
}({});
|
|
19
|
+
/**
|
|
20
|
+
* Message delivery semantics.
|
|
21
|
+
*/ export var DeliverySemantics = /*#__PURE__*/ function(DeliverySemantics) {
|
|
22
|
+
/** At-least-once delivery (default) */ DeliverySemantics["AT_LEAST_ONCE"] = "at-least-once";
|
|
23
|
+
/** At-most-once delivery (fire-and-forget) */ DeliverySemantics["AT_MOST_ONCE"] = "at-most-once";
|
|
24
|
+
/** Exactly-once delivery (requires deduplication) */ DeliverySemantics["EXACTLY_ONCE"] = "exactly-once";
|
|
25
|
+
return DeliverySemantics;
|
|
26
|
+
}({});
|
|
27
|
+
/**
|
|
28
|
+
* Message validation error.
|
|
29
|
+
*/ export class MessageValidationError extends Error {
|
|
30
|
+
messageId;
|
|
31
|
+
constructor(message, messageId){
|
|
32
|
+
super(message), this.messageId = messageId;
|
|
33
|
+
this.name = 'MessageValidationError';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Utility functions for message validation and creation.
|
|
38
|
+
*/ export class MessageUtils {
|
|
39
|
+
/**
|
|
40
|
+
* Validates a message configuration.
|
|
41
|
+
*
|
|
42
|
+
* @param config - Message configuration to validate
|
|
43
|
+
* @throws {MessageValidationError} If configuration is invalid
|
|
44
|
+
*/ static validateConfig(config) {
|
|
45
|
+
if (!config.topic || typeof config.topic !== 'string') {
|
|
46
|
+
throw new MessageValidationError('Message topic must be a non-empty string');
|
|
47
|
+
}
|
|
48
|
+
if (config.payload === undefined || config.payload === null) {
|
|
49
|
+
throw new MessageValidationError('Message payload is required');
|
|
50
|
+
}
|
|
51
|
+
if (config.priority !== undefined) {
|
|
52
|
+
if (typeof config.priority !== 'number' || isNaN(config.priority)) {
|
|
53
|
+
throw new MessageValidationError('Priority must be a valid number');
|
|
54
|
+
}
|
|
55
|
+
if (config.priority < 0 || config.priority > 10) {
|
|
56
|
+
throw new MessageValidationError('Priority must be between 0 and 10');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (config.replyTo !== undefined && typeof config.replyTo !== 'string') {
|
|
60
|
+
throw new MessageValidationError('Reply-to must be a string');
|
|
61
|
+
}
|
|
62
|
+
if (config.correlationId !== undefined && typeof config.correlationId !== 'string') {
|
|
63
|
+
throw new MessageValidationError('Correlation ID must be a string');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Normalizes priority to valid range (0-10).
|
|
68
|
+
*
|
|
69
|
+
* @param priority - Priority value to normalize
|
|
70
|
+
* @returns Normalized priority
|
|
71
|
+
*/ static normalizePriority(priority) {
|
|
72
|
+
if (priority === undefined || priority === null) {
|
|
73
|
+
return 5;
|
|
74
|
+
}
|
|
75
|
+
if (typeof priority !== 'number' || isNaN(priority)) {
|
|
76
|
+
return 5;
|
|
77
|
+
}
|
|
78
|
+
return Math.max(0, Math.min(10, Math.round(priority)));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Generates a unique message ID.
|
|
82
|
+
*
|
|
83
|
+
* @returns UUID v4 string
|
|
84
|
+
*/ static generateMessageId() {
|
|
85
|
+
return `msg-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Generates a unique correlation ID.
|
|
89
|
+
*
|
|
90
|
+
* @returns UUID v4 string
|
|
91
|
+
*/ static generateCorrelationId() {
|
|
92
|
+
return `corr-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Checks if a topic matches a topic pattern (supports wildcards).
|
|
96
|
+
*
|
|
97
|
+
* @param topic - Actual message topic
|
|
98
|
+
* @param pattern - Topic pattern (supports * and **)
|
|
99
|
+
* @returns True if topic matches pattern
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* MessageUtils.matchesTopic('task.completed', 'task.*'); // true
|
|
104
|
+
* MessageUtils.matchesTopic('agent.status.online', 'agent.**'); // true
|
|
105
|
+
* MessageUtils.matchesTopic('task.failed', 'task.completed'); // false
|
|
106
|
+
* ```
|
|
107
|
+
*/ static matchesTopic(topic, pattern) {
|
|
108
|
+
if (pattern === '*' || pattern === '**') {
|
|
109
|
+
return true; // Match all
|
|
110
|
+
}
|
|
111
|
+
if (!pattern.includes('*')) {
|
|
112
|
+
return topic === pattern; // Exact match
|
|
113
|
+
}
|
|
114
|
+
// Convert pattern to regex
|
|
115
|
+
const regexPattern = pattern.replace(/\./g, '\\.').replace(/\*\*/g, '.*').replace(/\*/g, '[^.]*');
|
|
116
|
+
const regex = new RegExp(`^${regexPattern}$`);
|
|
117
|
+
return regex.test(topic);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Creates a reply message from a request.
|
|
121
|
+
*
|
|
122
|
+
* @param request - Original request message
|
|
123
|
+
* @param payload - Reply payload
|
|
124
|
+
* @param success - Success status (default: true)
|
|
125
|
+
* @param error - Error message if failed
|
|
126
|
+
* @returns Reply object
|
|
127
|
+
*/ static createReply(request, payload, success = true, error) {
|
|
128
|
+
return {
|
|
129
|
+
correlationId: request.correlationId || request.id,
|
|
130
|
+
payload,
|
|
131
|
+
success,
|
|
132
|
+
error,
|
|
133
|
+
timestamp: Date.now()
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/coordination/shared/message.ts"],"names":["MessagePriority","DeliverySemantics","MessageValidationError","Error","message","messageId","name","MessageUtils","validateConfig","config","topic","payload","undefined","priority","isNaN","replyTo","correlationId","normalizePriority","Math","max","min","round","generateMessageId","Date","now","random","toString","substr","generateCorrelationId","matchesTopic","pattern","includes","regexPattern","replace","regex","RegExp","test","createReply","request","success","error","id","timestamp"],"mappings":"AAAA;;;;;;;CAOC,GAED;;;CAGC,GACD,OAAO,IAAA,AAAKA,yCAAAA;IACV,kCAAkC;IAGlC,2CAA2C;IAG3C,2CAA2C;IAG3C,yCAAyC;IAGzC,uCAAuC;WAb7BA;MAeX;AAED;;CAEC,GACD,OAAO,IAAA,AAAKC,2CAAAA;IACV,qCAAqC;IAGrC,4CAA4C;IAG5C,mDAAmD;WAPzCA;MASX;AA2FD;;CAEC,GACD,OAAO,MAAMC,+BAA+BC;;IAC1C,YAAYC,OAAe,EAAE,AAAgBC,SAAkB,CAAE;QAC/D,KAAK,CAACD,eADqCC,YAAAA;QAE3C,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAkHA;;CAEC,GACD,OAAO,MAAMC;IACX;;;;;GAKC,GACD,OAAOC,eAAkBC,MAAwB,EAAQ;QACvD,IAAI,CAACA,OAAOC,KAAK,IAAI,OAAOD,OAAOC,KAAK,KAAK,UAAU;YACrD,MAAM,IAAIR,uBAAuB;QACnC;QAEA,IAAIO,OAAOE,OAAO,KAAKC,aAAaH,OAAOE,OAAO,KAAK,MAAM;YAC3D,MAAM,IAAIT,uBAAuB;QACnC;QAEA,IAAIO,OAAOI,QAAQ,KAAKD,WAAW;YACjC,IAAI,OAAOH,OAAOI,QAAQ,KAAK,YAAYC,MAAML,OAAOI,QAAQ,GAAG;gBACjE,MAAM,IAAIX,uBAAuB;YACnC;YAEA,IAAIO,OAAOI,QAAQ,GAAG,KAAKJ,OAAOI,QAAQ,GAAG,IAAI;gBAC/C,MAAM,IAAIX,uBAAuB;YACnC;QACF;QAEA,IAAIO,OAAOM,O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C1B;IACpB;IAEA;;;;;;;;GAQC,GACD,OAAO2B,YACLC,OAAgB,EAChB3B,OAAU,EACV4B,UAAmB,IAAI,EACvBC,KAAc,EACJ;QACV,OAAO;YACLxB,eAAesB,QAAQtB,aAAa,IAAIsB,QAAQG,EAAE;YAClD9B;YACA4B;YACAC;YACAE,WAAWnB,KAAKC,GAAG;QACrB;IACF;AACF"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload Validator - SEC-INJ-001 Mitigation
|
|
3
|
+
*
|
|
4
|
+
* Validates and sanitizes message payloads to prevent:
|
|
5
|
+
* - Prototype pollution attacks
|
|
6
|
+
* - Code injection via eval/Function
|
|
7
|
+
* - Memory bombs (deeply nested objects)
|
|
8
|
+
* - Oversized payloads
|
|
9
|
+
*
|
|
10
|
+
* @module coordination/shared/security/payload-validator
|
|
11
|
+
*/ /**
|
|
12
|
+
* Payload validation rule configuration.
|
|
13
|
+
*/ /**
|
|
14
|
+
* Payload validation error.
|
|
15
|
+
*/ export class PayloadValidationError extends Error {
|
|
16
|
+
constructor(message){
|
|
17
|
+
super(message);
|
|
18
|
+
this.name = 'PayloadValidationError';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Payload Validator Implementation.
|
|
23
|
+
*
|
|
24
|
+
* Provides comprehensive validation and sanitization of message payloads
|
|
25
|
+
* to prevent injection attacks and resource exhaustion.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const validator = new PayloadValidator({
|
|
30
|
+
* maxDepth: 5,
|
|
31
|
+
* maxSize: 1024 * 1024,
|
|
32
|
+
* forbiddenKeys: ['__proto__', 'constructor', 'prototype'],
|
|
33
|
+
* allowedTypes: ['string', 'number', 'boolean', 'object', 'array']
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* const result = validator.validate(userPayload);
|
|
37
|
+
* if (!result.valid) {
|
|
38
|
+
* throw new Error(`Validation failed: ${result.errors.join(', ')}`);
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* const sanitized = validator.sanitize(userPayload);
|
|
42
|
+
* ```
|
|
43
|
+
*/ export class PayloadValidator {
|
|
44
|
+
rules;
|
|
45
|
+
/**
|
|
46
|
+
* Default validation rules (secure defaults).
|
|
47
|
+
*/ static DEFAULT_RULES = {
|
|
48
|
+
maxDepth: 5,
|
|
49
|
+
maxSize: 1024 * 1024,
|
|
50
|
+
allowedTypes: [
|
|
51
|
+
'string',
|
|
52
|
+
'number',
|
|
53
|
+
'boolean',
|
|
54
|
+
'object',
|
|
55
|
+
'array',
|
|
56
|
+
'null'
|
|
57
|
+
],
|
|
58
|
+
forbiddenKeys: [
|
|
59
|
+
'__proto__',
|
|
60
|
+
'constructor',
|
|
61
|
+
'prototype',
|
|
62
|
+
'eval',
|
|
63
|
+
'Function'
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new payload validator.
|
|
68
|
+
*
|
|
69
|
+
* @param rules - Validation rules (uses secure defaults if not provided)
|
|
70
|
+
*/ constructor(rules){
|
|
71
|
+
this.rules = {
|
|
72
|
+
...PayloadValidator.DEFAULT_RULES,
|
|
73
|
+
...rules
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Validates a payload against configured rules.
|
|
78
|
+
*
|
|
79
|
+
* @param payload - Payload to validate
|
|
80
|
+
* @returns Validation result with errors if any
|
|
81
|
+
*/ validate(payload) {
|
|
82
|
+
const errors = [];
|
|
83
|
+
try {
|
|
84
|
+
// SEC-INJ-001-BYPASS: Check for prototype chain pollution BEFORE serialization
|
|
85
|
+
// Object literals with __proto__ can pollute the prototype chain before validation runs
|
|
86
|
+
if (typeof payload === 'object' && payload !== null) {
|
|
87
|
+
const proto = Object.getPrototypeOf(payload);
|
|
88
|
+
if (proto !== Object.prototype && proto !== null) {
|
|
89
|
+
errors.push(`Prototype pollution detected: object has modified prototype chain`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// SEC-INJ-001: Check payload size
|
|
93
|
+
const serialized = JSON.stringify(payload);
|
|
94
|
+
const size = Buffer.byteLength(serialized, 'utf8');
|
|
95
|
+
if (size > this.rules.maxSize) {
|
|
96
|
+
errors.push(`Payload size ${size} bytes exceeds maximum ${this.rules.maxSize} bytes`);
|
|
97
|
+
}
|
|
98
|
+
// SEC-INJ-001: Check object depth
|
|
99
|
+
const depth = this.getObjectDepth(payload);
|
|
100
|
+
if (depth > this.rules.maxDepth) {
|
|
101
|
+
errors.push(`Payload depth ${depth} exceeds maximum depth ${this.rules.maxDepth}`);
|
|
102
|
+
}
|
|
103
|
+
// SEC-INJ-001: Check for forbidden keys (prototype pollution vectors)
|
|
104
|
+
const allKeys = this.getAllKeys(payload);
|
|
105
|
+
const foundForbidden = allKeys.filter((key)=>this.rules.forbiddenKeys.includes(key));
|
|
106
|
+
if (foundForbidden.length > 0) {
|
|
107
|
+
errors.push(`Forbidden keys detected: ${foundForbidden.join(', ')}`);
|
|
108
|
+
}
|
|
109
|
+
// SEC-INJ-001: Check for dangerous type patterns
|
|
110
|
+
const typeErrors = this.validateTypes(payload);
|
|
111
|
+
errors.push(...typeErrors);
|
|
112
|
+
return {
|
|
113
|
+
valid: errors.length === 0,
|
|
114
|
+
errors,
|
|
115
|
+
depth,
|
|
116
|
+
size
|
|
117
|
+
};
|
|
118
|
+
} catch (error) {
|
|
119
|
+
// Catch circular reference or serialization errors
|
|
120
|
+
return {
|
|
121
|
+
valid: false,
|
|
122
|
+
errors: [
|
|
123
|
+
`Validation error: ${error instanceof Error ? error.message : String(error)}`
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Sanitizes a payload by removing dangerous keys and normalizing structure.
|
|
130
|
+
*
|
|
131
|
+
* Creates a deep clone with prototype chain stripped to prevent pollution attacks.
|
|
132
|
+
*
|
|
133
|
+
* @param payload - Payload to sanitize
|
|
134
|
+
* @returns Sanitized payload (deep frozen)
|
|
135
|
+
*/ sanitize(payload) {
|
|
136
|
+
if (payload === null || payload === undefined) {
|
|
137
|
+
return payload;
|
|
138
|
+
}
|
|
139
|
+
// SEC-INJ-001: JSON round-trip removes prototype chain and functions
|
|
140
|
+
const serialized = JSON.stringify(payload);
|
|
141
|
+
const parsed = JSON.parse(serialized);
|
|
142
|
+
// SEC-INJ-001: Remove forbidden keys recursively
|
|
143
|
+
const cleaned = this.removeForbiddenKeys(parsed);
|
|
144
|
+
// SEC-INJ-001: Deep freeze to prevent modification
|
|
145
|
+
return this.deepFreeze(cleaned);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Gets the maximum depth of an object.
|
|
149
|
+
*
|
|
150
|
+
* @param obj - Object to measure
|
|
151
|
+
* @param currentDepth - Current recursion depth (internal)
|
|
152
|
+
* @returns Maximum nesting depth
|
|
153
|
+
*/ getObjectDepth(obj, currentDepth = 0) {
|
|
154
|
+
if (obj === null || typeof obj !== 'object') {
|
|
155
|
+
return currentDepth;
|
|
156
|
+
}
|
|
157
|
+
if (Array.isArray(obj)) {
|
|
158
|
+
if (obj.length === 0) return currentDepth + 1;
|
|
159
|
+
return Math.max(...obj.map((item)=>this.getObjectDepth(item, currentDepth + 1)));
|
|
160
|
+
}
|
|
161
|
+
const keys = Object.keys(obj);
|
|
162
|
+
if (keys.length === 0) return currentDepth + 1;
|
|
163
|
+
return Math.max(...keys.map((key)=>this.getObjectDepth(obj[key], currentDepth + 1)));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Extracts all keys from an object recursively.
|
|
167
|
+
*
|
|
168
|
+
* @param obj - Object to extract keys from
|
|
169
|
+
* @returns Array of all keys (including nested)
|
|
170
|
+
*/ getAllKeys(obj) {
|
|
171
|
+
if (obj === null || typeof obj !== 'object') {
|
|
172
|
+
return [];
|
|
173
|
+
}
|
|
174
|
+
const keys = [];
|
|
175
|
+
if (Array.isArray(obj)) {
|
|
176
|
+
obj.forEach((item)=>{
|
|
177
|
+
keys.push(...this.getAllKeys(item));
|
|
178
|
+
});
|
|
179
|
+
} else {
|
|
180
|
+
// FIX SEC-INJ-001: Use getOwnPropertyNames + getOwnPropertySymbols
|
|
181
|
+
// to detect non-enumerable properties like __proto__, constructor
|
|
182
|
+
const propertyNames = Object.getOwnPropertyNames(obj);
|
|
183
|
+
const propertySymbols = Object.getOwnPropertySymbols(obj);
|
|
184
|
+
propertyNames.forEach((key)=>{
|
|
185
|
+
keys.push(key);
|
|
186
|
+
keys.push(...this.getAllKeys(obj[key]));
|
|
187
|
+
});
|
|
188
|
+
// Include symbol properties for comprehensive coverage
|
|
189
|
+
propertySymbols.forEach((sym)=>{
|
|
190
|
+
keys.push(sym.toString());
|
|
191
|
+
keys.push(...this.getAllKeys(obj[sym]));
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return keys;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Validates payload types recursively.
|
|
198
|
+
*
|
|
199
|
+
* @param obj - Object to validate
|
|
200
|
+
* @returns Array of type validation errors
|
|
201
|
+
*/ validateTypes(obj) {
|
|
202
|
+
const errors = [];
|
|
203
|
+
if (obj === null) {
|
|
204
|
+
return errors; // null is allowed
|
|
205
|
+
}
|
|
206
|
+
const type = Array.isArray(obj) ? 'array' : typeof obj;
|
|
207
|
+
if (!this.rules.allowedTypes.includes(type)) {
|
|
208
|
+
errors.push(`Type '${type}' not allowed in payload`);
|
|
209
|
+
return errors; // Don't recurse into invalid types
|
|
210
|
+
}
|
|
211
|
+
if (type === 'object' || type === 'array') {
|
|
212
|
+
const values = Array.isArray(obj) ? obj : Object.values(obj);
|
|
213
|
+
values.forEach((value)=>{
|
|
214
|
+
errors.push(...this.validateTypes(value));
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return errors;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Removes forbidden keys from object recursively.
|
|
221
|
+
*
|
|
222
|
+
* @param obj - Object to clean
|
|
223
|
+
* @returns Cleaned object
|
|
224
|
+
*/ removeForbiddenKeys(obj) {
|
|
225
|
+
if (obj === null || typeof obj !== 'object') {
|
|
226
|
+
return obj;
|
|
227
|
+
}
|
|
228
|
+
if (Array.isArray(obj)) {
|
|
229
|
+
return obj.map((item)=>this.removeForbiddenKeys(item));
|
|
230
|
+
}
|
|
231
|
+
const cleaned = {};
|
|
232
|
+
Object.keys(obj).forEach((key)=>{
|
|
233
|
+
if (!this.rules.forbiddenKeys.includes(key)) {
|
|
234
|
+
cleaned[key] = this.removeForbiddenKeys(obj[key]);
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
return cleaned;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Deep freezes an object to prevent modification.
|
|
241
|
+
*
|
|
242
|
+
* @param obj - Object to freeze
|
|
243
|
+
* @returns Frozen object
|
|
244
|
+
*/ deepFreeze(obj) {
|
|
245
|
+
if (obj === null || typeof obj !== 'object') {
|
|
246
|
+
return obj;
|
|
247
|
+
}
|
|
248
|
+
if (Array.isArray(obj)) {
|
|
249
|
+
obj.forEach((item)=>this.deepFreeze(item));
|
|
250
|
+
} else {
|
|
251
|
+
Object.keys(obj).forEach((key)=>{
|
|
252
|
+
this.deepFreeze(obj[key]);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
return Object.freeze(obj);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
//# sourceMappingURL=payload-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/coordination/shared/security/payload-validator.ts"],"names":["PayloadValidationError","Error","message","name","PayloadValidator","rules","DEFAULT_RULES","maxDepth","maxSize","allowedTypes","forbiddenKeys","validate","payload","errors","proto","Object","getPrototypeOf","prototype","push","serialized","JSON","stringify","size","Buffer","byteLength","depth","getObjectDepth","allKeys","getAllKeys","foundForbidden","filter","key","includes","length","join","typeErrors","validateTypes","valid","error","String","sanitize","undefined","parsed","parse","cleaned","removeForbiddenKeys","deepFreeze","obj","currentDepth","Array","isArray","Math","max","map","item","keys","forEach","propertyNames","getOwnPropertyNames","propertySymbols","getOwnPropertySymbols","sym","toString","type","values","value","freeze"],"mappings":"AAAA;;;;;;;;;;CAUC,GAED;;CAEC,GAgCD;;CAEC,GACD,OAAO,MAAMA,+BAA+BC;IAC1C,YAAYC,OAAe,CAAE;QAC3B,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAEA;;;;;;;;;;;;;;;;;;;;;;CAsBC,GACD,OAAO,MAAMC;IACHC,MAA6B;IAErC;;GAEC,GACD,OAAOC,gBAAuC;QAC5CC,UAAU;QACVC,SAAS,OAAO;QAChBC,cAAc;YAAC;YAAU;YAAU;YAAW;YAAU;YAAS;SAAO;QACxEC,eAAe;YAAC;YAAa;YAAe;YAAa;YAAQ;SAAW;IAC9E,EAAE;IAEF;;;;GAIC,GACD,YAAYL,KAAsC,CAAE;QAClD,IAAI,CAACA,KAAK,GAAG;YACX,GAAGD,iBAAiBE,aAAa;YACjC,GAAGD,KAAK;QACV;IACF;IAEA;;;;;GAKC,GACDM,SAASC,OAAY,EAAoB;QACvC,MAAMC,SAAmB,EAAE;QAE3B,IAAI;YACF,+EAA+E;YAC/E,wFAAwF;YACxF,IAAI,OAAOD,YAAY,YAAYA,YAAY,MAAM;gBACnD,MAAME,QAAQC,OAAOC,cAAc,CAACJ;gBACpC,IAAIE,UAAUC,OAAOE,SAAS,IAAIH,UAAU,MAAM;oBAChDD,OAAOK,IAAI,CAAC,CAAC,iEAAiE,CAAC;gBACjF;YACF;YAEA,kCAAkC;YAClC,MAAMC,aAAaC,KAAKC,SAAS,CAACT;YAClC,MAAMU,OAAOC,OAAOC,UAAU,CAACL,YAAY;YAE3C,IAAIG,OAAO,IAAI,CAACjB,KAAK,CAACG,OAAO,EAAE;gBAC7BK,OAAOK,IA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,CAACc,mBAAmB,CAACE,GAAG,CAAChB,IAAI;YAClD;QACF;QAEA,OAAOa;IACT;IAEA;;;;;GAKC,GACD,AAAQE,WAAWC,GAAQ,EAAO;QAChC,IAAIA,QAAQ,QAAQ,OAAOA,QAAQ,UAAU;YAC3C,OAAOA;QACT;QAEA,IAAIE,MAAMC,OAAO,CAACH,MAAM;YACtBA,IAAIS,OAAO,CAACF,CAAAA,OAAQ,IAAI,CAACR,UAAU,CAACQ;QACtC,OAAO;YACLvC,OAAOwC,IAAI,CAACR,KAAKS,OAAO,CAACzB,CAAAA;gBACvB,IAAI,CAACe,UAAU,CAACC,GAAG,CAAChB,IAAI;YAC1B;QACF;QAEA,OAAOhB,OAAOmD,MAAM,CAACnB;IACvB;AACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Coordination Transparency System
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive transparency and monitoring for multi-level agent coordination.
|
|
5
|
+
* Provides real-time visibility into agent operations, hierarchy relationships,
|
|
6
|
+
* and performance metrics.
|
|
7
|
+
*
|
|
8
|
+
* @module coordination/shared/transparency
|
|
9
|
+
*/ // Core interfaces and types
|
|
10
|
+
// Core implementation
|
|
11
|
+
export { TransparencySystem } from './transparency-system.js';
|
|
12
|
+
// Integration layer
|
|
13
|
+
export { TransparentCoordinator, withTransparency } from './transparency-integration.js';
|
|
14
|
+
// CLI interface
|
|
15
|
+
export { createTransparencyCommand } from '../../../cli/commands/transparency.js';
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/coordination/shared/transparency/index.ts"],"names":["TransparencySystem","TransparentCoordinator","withTransparency","createTransparencyCommand"],"mappings":"AAAA;;;;;;;;CAQC,GAED,4BAA4B;AAW5B,sBAAsB;AACtB,SAASA,kBAAkB,QAAQ,2BAA2B;AAE9D,oBAAoB;AACpB,SAASC,sBAAsB,EAAEC,gBAAgB,QAAQ,gCAAgC;AAEzF,gBAAgB;AAChB,SAASC,yBAAyB,QAAQ,wCAAwC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Transparency System - V2 Coordination Enhancement
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive visibility into multi-level agent operations,
|
|
5
|
+
* hierarchy relationships, and real-time status monitoring.
|
|
6
|
+
*
|
|
7
|
+
* @module coordination/shared/transparency/transparency-system
|
|
8
|
+
*/ /**
|
|
9
|
+
* ITransparencySystem - Interface for agent transparency
|
|
10
|
+
*
|
|
11
|
+
* Provides comprehensive visibility into multi-level agent coordination:
|
|
12
|
+
* - Real-time agent hierarchy visualization
|
|
13
|
+
* - Agent lifecycle event streaming
|
|
14
|
+
* - Performance monitoring and alerting
|
|
15
|
+
* - Dependency relationship tracking
|
|
16
|
+
* - Resource allocation transparency
|
|
17
|
+
*/ export { };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=transparency-system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/coordination/shared/transparency/interfaces/transparency-system.ts"],"names":[],"mappings":"AAAA;;;;;;;CAOC,GA2RD;;;;;;;;;CASC,GACD,WAuLC"}
|