claude-flow-novice 1.6.1 → 1.6.3
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/agents/cfn-loop/product-owner.md +54 -4
- package/.claude/commands/cfn-claude-sync.md +303 -0
- package/.claude/commands/cfn-loop-epic.md +290 -0
- package/.claude/commands/cfn-loop-single.md +168 -0
- package/.claude/commands/cfn-loop-sprints.md +384 -0
- package/.claude/commands/cfn-loop.md +180 -0
- package/.claude/commands/metrics-summary.md +58 -0
- package/.claude/commands/parse-epic.md +357 -0
- package/.claude/settings.json +5 -4
- package/.claude/settings.local.json +9 -2
- package/.claude-flow-novice/.claude/agents/cfn-loop/product-owner.md +792 -0
- package/.claude-flow-novice/dist/mcp/server.js +21 -2
- package/.claude-flow-novice/dist/src/api/auth-service.js +84 -38
- package/.claude-flow-novice/dist/src/api/auth-service.js.map +1 -1
- package/.claude-flow-novice/dist/src/api/claude-client.js +138 -3
- package/.claude-flow-novice/dist/src/api/claude-client.js.map +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/phase-orchestrator-example.js +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js +247 -0
- package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +32 -15
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/transparency.js +455 -0
- package/.claude-flow-novice/dist/src/cli/commands/transparency.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +129 -13
- package/.claude-flow-novice/dist/src/components/visualizations/index.js +9 -0
- package/.claude-flow-novice/dist/src/components/visualizations/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js +462 -0
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/config-translator.js +248 -0
- package/.claude-flow-novice/dist/src/coordination/config-translator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js +287 -0
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js +68 -9
- package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/feature-flags.js +166 -0
- package/.claude-flow-novice/dist/src/coordination/feature-flags.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/queen-agent.js +18 -4
- package/.claude-flow-novice/dist/src/coordination/queen-agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/role-assignment.js +6 -110
- package/.claude-flow-novice/dist/src/coordination/role-assignment.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js +632 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js +11 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js +318 -0
- package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js +364 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js +492 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js +786 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js +342 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js +601 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js +211 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/index.js +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js +365 -6
- package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js +478 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js +5 -2
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js +189 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js +669 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js +451 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js +271 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js +335 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js +439 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js +92 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js +21 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js +223 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js +436 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js +278 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js +317 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js +273 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js +15 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js +512 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/index.js +6 -0
- package/.claude-flow-novice/dist/src/coordination/v2/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js +557 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js +212 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js +552 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js +367 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js +371 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js +355 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js +295 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js +411 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js +387 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js +589 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js +444 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js +29 -8
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js +470 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js +450 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js +5 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js +545 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js +44 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js +415 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js +615 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js +259 -0
- package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js +17 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js +357 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js +679 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/core/agent-manager.js +30 -0
- package/.claude-flow-novice/dist/src/core/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/mcp/server.js +21 -2
- package/.claude-flow-novice/dist/src/mcp/server.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/apm/apm-integration.js +719 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/apm-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/datadog-collector.js +363 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/datadog-collector.js.map +1 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/index.js +97 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/newrelic-collector.js +384 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/newrelic-collector.js.map +1 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/performance-optimizer.js +612 -0
- package/.claude-flow-novice/dist/src/monitoring/apm/performance-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/monitoring/metrics-collector.js +282 -0
- package/.claude-flow-novice/dist/src/monitoring/metrics-collector.js.map +1 -0
- package/.claude-flow-novice/dist/src/observability/metrics-counter.js +268 -0
- package/.claude-flow-novice/dist/src/observability/metrics-counter.js.map +1 -0
- package/.claude-flow-novice/dist/src/observability/metrics-storage.js +265 -0
- package/.claude-flow-novice/dist/src/observability/metrics-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/observability/telemetry.js +26 -0
- package/.claude-flow-novice/dist/src/observability/telemetry.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/tiered-router.js +64 -10
- package/.claude-flow-novice/dist/src/providers/tiered-router.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/zai-provider.js +196 -97
- package/.claude-flow-novice/dist/src/providers/zai-provider.js.map +1 -1
- package/.claude-flow-novice/dist/src/slash-commands/cfn-claude-sync.js +533 -0
- package/.claude-flow-novice/dist/src/slash-commands/index.js +5 -0
- package/.claude-flow-novice/dist/src/slash-commands/metrics-summary-class.js +74 -0
- package/.claude-flow-novice/dist/src/slash-commands/metrics-summary.js +335 -0
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +12 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js +96 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js +406 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js +35 -5
- package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/web/api/apm-routes.js +355 -0
- package/.claude-flow-novice/dist/src/web/api/apm-routes.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/config/api-config.js +186 -0
- package/.claude-flow-novice/dist/src/web/api/config/api-config.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/auth.js +205 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/auth.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/cache.js +262 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/cache.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js +250 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js +217 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/validation.js +325 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/validation.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/events.js +465 -0
- package/.claude-flow-novice/dist/src/web/api/routes/events.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js +302 -0
- package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/index.js +14 -0
- package/.claude-flow-novice/dist/src/web/api/routes/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/metrics.js +561 -0
- package/.claude-flow-novice/dist/src/web/api/routes/metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/status.js +450 -0
- package/.claude-flow-novice/dist/src/web/api/routes/status.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/server.js +451 -0
- package/.claude-flow-novice/dist/src/web/api/server.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js +385 -0
- package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/index.js +87 -0
- package/.claude-flow-novice/dist/src/web/dashboard/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/types.js +6 -0
- package/.claude-flow-novice/dist/src/web/dashboard/types.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/frontend/src/utils/security.js +425 -0
- package/.claude-flow-novice/dist/src/web/frontend/src/utils/security.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/security/security-middleware.js +379 -0
- package/.claude-flow-novice/dist/src/web/security/security-middleware.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/websocket/apm-websocket-handler.js +441 -0
- package/.claude-flow-novice/dist/src/web/websocket/apm-websocket-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/websocket/websocket-manager.js +255 -1
- package/.claude-flow-novice/dist/src/web/websocket/websocket-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/AGENT_PERFORMANCE_GUIDELINES.md +88 -0
- package/CLAUDE.md +60 -3
- package/MEMORY_LEAK_ROOT_CAUSE.md +149 -0
- package/README.md +27 -0
- package/config/hooks/post-edit-pipeline.js +36 -2
- package/examples/metrics-counter-demo.ts +106 -0
- package/examples/persistent-metrics-demo.ts +83 -0
- package/examples/phase-5-multi-level-control.ts +282 -0
- package/examples/session-pool-optimizer-example.ts +311 -0
- package/package.json +18 -4
- package/scripts/check-routing-stats.cjs +122 -0
- package/scripts/monitor-loop.sh +65 -0
- package/scripts/monitor-memory.sh +47 -0
- package/scripts/monitor.py +43 -0
- package/scripts/pre-publish-validation.cjs +212 -0
- package/scripts/test-provider-routing.cjs +228 -0
- package/scripts/test-routing-telemetry.cjs +147 -0
- package/scripts/test-zai-10k.cjs +81 -0
- package/scripts/test-zai-api.cjs +191 -0
- package/scripts/test-zai-diagnostic.cjs +151 -0
- package/scripts/test-zai-final.cjs +128 -0
- package/scripts/test-zai-with-env.cjs +85 -0
- package/scripts/validate-coordination-cli.js +69 -0
- package/scripts/validate-coordination-toggle-integration.cjs +501 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +29 -0
- package/src/observability/metrics-counter.ts +347 -0
- package/src/observability/metrics-storage.ts +356 -0
- package/src/observability/telemetry.ts +658 -0
- package/src/slash-commands/cfn-claude-sync.js +533 -0
- package/src/slash-commands/index.js +5 -0
- package/src/slash-commands/metrics-summary-class.js +74 -0
- package/src/slash-commands/metrics-summary.js +335 -0
- package/src/slash-commands/register-all-commands.js +12 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Coordination V2 - Help Request
|
|
3
|
+
*
|
|
4
|
+
* Help request lifecycle management with timeout and retry logic.
|
|
5
|
+
* Enables agents to request assistance from other agents with capabilities.
|
|
6
|
+
*
|
|
7
|
+
* @module coordination/v2/help-system/help-request
|
|
8
|
+
*/ /**
|
|
9
|
+
* Help request status in the lifecycle
|
|
10
|
+
*/ export var HelpRequestStatus = /*#__PURE__*/ function(HelpRequestStatus) {
|
|
11
|
+
/** Help request created, awaiting matching */ HelpRequestStatus["PENDING"] = "pending";
|
|
12
|
+
/** Matching agent found, awaiting response */ HelpRequestStatus["MATCHED"] = "matched";
|
|
13
|
+
/** Agent accepted help request, in progress */ HelpRequestStatus["IN_PROGRESS"] = "in_progress";
|
|
14
|
+
/** Help request completed successfully */ HelpRequestStatus["RESOLVED"] = "resolved";
|
|
15
|
+
/** Help request failed or timed out */ HelpRequestStatus["FAILED"] = "failed";
|
|
16
|
+
/** Help request cancelled by requester */ HelpRequestStatus["CANCELLED"] = "cancelled";
|
|
17
|
+
/** Help request expired (timeout) */ HelpRequestStatus["EXPIRED"] = "expired";
|
|
18
|
+
return HelpRequestStatus;
|
|
19
|
+
}({});
|
|
20
|
+
/**
|
|
21
|
+
* Priority levels for help requests
|
|
22
|
+
*/ export var HelpRequestPriority = /*#__PURE__*/ function(HelpRequestPriority) {
|
|
23
|
+
/** Critical blocking issue */ HelpRequestPriority[HelpRequestPriority["CRITICAL"] = 5] = "CRITICAL";
|
|
24
|
+
/** High priority, significant impact */ HelpRequestPriority[HelpRequestPriority["HIGH"] = 4] = "HIGH";
|
|
25
|
+
/** Normal priority */ HelpRequestPriority[HelpRequestPriority["NORMAL"] = 3] = "NORMAL";
|
|
26
|
+
/** Low priority, nice to have */ HelpRequestPriority[HelpRequestPriority["LOW"] = 2] = "LOW";
|
|
27
|
+
/** Minimal priority */ HelpRequestPriority[HelpRequestPriority["MINIMAL"] = 1] = "MINIMAL";
|
|
28
|
+
return HelpRequestPriority;
|
|
29
|
+
}({});
|
|
30
|
+
/**
|
|
31
|
+
* Help request implementation with timeout and retry logic
|
|
32
|
+
*/ export class HelpRequest {
|
|
33
|
+
/** Unique request identifier */ requestId;
|
|
34
|
+
/** Agent requesting help */ requesterId;
|
|
35
|
+
/** Current request status */ _status;
|
|
36
|
+
/** Request priority */ priority;
|
|
37
|
+
/** Required capabilities */ capabilities;
|
|
38
|
+
/** Request description */ description;
|
|
39
|
+
/** Timeout configuration */ timeoutConfig;
|
|
40
|
+
/** Retry configuration */ retryConfig;
|
|
41
|
+
/** Request creation timestamp */ createdAt;
|
|
42
|
+
/** Request lifecycle events */ events;
|
|
43
|
+
/** Matched helper agent ID */ helperId;
|
|
44
|
+
/** Match timeout handle */ matchTimeoutHandle;
|
|
45
|
+
/** Completion timeout handle */ completionTimeoutHandle;
|
|
46
|
+
/** Request metadata */ metadata;
|
|
47
|
+
constructor(config){
|
|
48
|
+
this.requestId = config.requestId;
|
|
49
|
+
this.requesterId = config.requesterId;
|
|
50
|
+
this._status = "pending";
|
|
51
|
+
this.priority = config.priority;
|
|
52
|
+
this.capabilities = config.capabilities;
|
|
53
|
+
this.description = config.description;
|
|
54
|
+
this.metadata = config.metadata || {};
|
|
55
|
+
this.createdAt = new Date();
|
|
56
|
+
this.events = [];
|
|
57
|
+
// Configure timeouts
|
|
58
|
+
this.timeoutConfig = {
|
|
59
|
+
matchTimeoutMs: config.matchTimeout || 5000,
|
|
60
|
+
completionTimeoutMs: config.completionTimeout || 30000,
|
|
61
|
+
autoRetryOnTimeout: true
|
|
62
|
+
};
|
|
63
|
+
// Configure retries
|
|
64
|
+
this.retryConfig = {
|
|
65
|
+
attempt: 0,
|
|
66
|
+
maxAttempts: config.maxRetries || 3,
|
|
67
|
+
baseDelayMs: 1000,
|
|
68
|
+
backoffMultiplier: 2,
|
|
69
|
+
maxDelayMs: 10000
|
|
70
|
+
};
|
|
71
|
+
this.addEvent('created', 'Help request created');
|
|
72
|
+
this.startMatchTimeout();
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get current request status
|
|
76
|
+
*/ get status() {
|
|
77
|
+
return this._status;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get matched helper agent ID
|
|
81
|
+
*/ get matchedHelperId() {
|
|
82
|
+
return this.helperId;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get request lifecycle events
|
|
86
|
+
*/ get lifecycleEvents() {
|
|
87
|
+
return this.events;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get retry information
|
|
91
|
+
*/ get retryInfo() {
|
|
92
|
+
return {
|
|
93
|
+
...this.retryConfig
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Mark request as matched with helper agent
|
|
98
|
+
*/ markMatched(helperId) {
|
|
99
|
+
if (this._status !== "pending") {
|
|
100
|
+
throw new Error(`Cannot match help request in ${this._status} status`);
|
|
101
|
+
}
|
|
102
|
+
this.clearMatchTimeout();
|
|
103
|
+
this.helperId = helperId;
|
|
104
|
+
this._status = "matched";
|
|
105
|
+
this.addEvent('matched', `Matched with helper ${helperId}`, helperId);
|
|
106
|
+
this.startCompletionTimeout();
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Mark request as in progress
|
|
110
|
+
*/ markInProgress() {
|
|
111
|
+
if (this._status !== "matched") {
|
|
112
|
+
throw new Error(`Cannot start help request in ${this._status} status`);
|
|
113
|
+
}
|
|
114
|
+
this._status = "in_progress";
|
|
115
|
+
this.addEvent('accepted', `Help request accepted by ${this.helperId}`, this.helperId);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Mark request as resolved
|
|
119
|
+
*/ markResolved(metadata) {
|
|
120
|
+
if (this._status !== "in_progress") {
|
|
121
|
+
throw new Error(`Cannot resolve help request in ${this._status} status`);
|
|
122
|
+
}
|
|
123
|
+
this.clearCompletionTimeout();
|
|
124
|
+
this._status = "resolved";
|
|
125
|
+
this.addEvent('resolved', 'Help request resolved successfully', this.helperId, metadata);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Mark request as failed
|
|
129
|
+
*/ markFailed(reason, metadata) {
|
|
130
|
+
this.clearTimeouts();
|
|
131
|
+
this._status = "failed";
|
|
132
|
+
this.addEvent('failed', `Help request failed: ${reason}`, this.helperId, metadata);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Mark request as cancelled
|
|
136
|
+
*/ cancel(reason) {
|
|
137
|
+
this.clearTimeouts();
|
|
138
|
+
this._status = "cancelled";
|
|
139
|
+
this.addEvent('failed', `Help request cancelled: ${reason || 'User requested'}`, undefined);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Retry help request after timeout or failure
|
|
143
|
+
*/ async retry() {
|
|
144
|
+
if (this.retryConfig.attempt >= this.retryConfig.maxAttempts) {
|
|
145
|
+
this.markFailed('Max retry attempts reached');
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
this.retryConfig.attempt++;
|
|
149
|
+
const delay = this.calculateRetryDelay();
|
|
150
|
+
this.retryConfig.lastRetryAt = new Date();
|
|
151
|
+
this.addEvent('retry', `Retrying help request (attempt ${this.retryConfig.attempt}/${this.retryConfig.maxAttempts})`);
|
|
152
|
+
await this.sleep(delay);
|
|
153
|
+
// Reset to pending for new match attempt
|
|
154
|
+
this.helperId = undefined;
|
|
155
|
+
this._status = "pending";
|
|
156
|
+
this.startMatchTimeout();
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Check if request can be retried
|
|
161
|
+
*/ canRetry() {
|
|
162
|
+
return this.retryConfig.attempt < this.retryConfig.maxAttempts && (this._status === "expired" || this._status === "failed");
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Get time elapsed since creation (ms)
|
|
166
|
+
*/ getElapsedTime() {
|
|
167
|
+
return Date.now() - this.createdAt.getTime();
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Check if request is in terminal status
|
|
171
|
+
*/ isTerminal() {
|
|
172
|
+
return [
|
|
173
|
+
"resolved",
|
|
174
|
+
"failed",
|
|
175
|
+
"cancelled"
|
|
176
|
+
].includes(this._status);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Add lifecycle event
|
|
180
|
+
*/ addEvent(type, message, agentId, metadata) {
|
|
181
|
+
this.events.push({
|
|
182
|
+
timestamp: new Date(),
|
|
183
|
+
type,
|
|
184
|
+
agentId,
|
|
185
|
+
message,
|
|
186
|
+
metadata
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Start match timeout timer
|
|
191
|
+
*/ startMatchTimeout() {
|
|
192
|
+
this.matchTimeoutHandle = setTimeout(()=>{
|
|
193
|
+
if (this._status === "pending") {
|
|
194
|
+
this._status = "expired";
|
|
195
|
+
this.addEvent('timeout', 'Match timeout expired');
|
|
196
|
+
if (this.timeoutConfig.autoRetryOnTimeout) {
|
|
197
|
+
this.retry().catch(()=>{
|
|
198
|
+
this.markFailed('Retry failed after match timeout');
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}, this.timeoutConfig.matchTimeoutMs);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Start completion timeout timer
|
|
206
|
+
*/ startCompletionTimeout() {
|
|
207
|
+
this.completionTimeoutHandle = setTimeout(()=>{
|
|
208
|
+
if (this._status === "in_progress" || this._status === "matched") {
|
|
209
|
+
this._status = "expired";
|
|
210
|
+
this.addEvent('timeout', 'Completion timeout expired', this.helperId);
|
|
211
|
+
if (this.timeoutConfig.autoRetryOnTimeout) {
|
|
212
|
+
this.retry().catch(()=>{
|
|
213
|
+
this.markFailed('Retry failed after completion timeout');
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}, this.timeoutConfig.completionTimeoutMs);
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Clear match timeout
|
|
221
|
+
*/ clearMatchTimeout() {
|
|
222
|
+
if (this.matchTimeoutHandle) {
|
|
223
|
+
clearTimeout(this.matchTimeoutHandle);
|
|
224
|
+
this.matchTimeoutHandle = undefined;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Clear completion timeout
|
|
229
|
+
*/ clearCompletionTimeout() {
|
|
230
|
+
if (this.completionTimeoutHandle) {
|
|
231
|
+
clearTimeout(this.completionTimeoutHandle);
|
|
232
|
+
this.completionTimeoutHandle = undefined;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Clear all timeouts
|
|
237
|
+
*/ clearTimeouts() {
|
|
238
|
+
this.clearMatchTimeout();
|
|
239
|
+
this.clearCompletionTimeout();
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Calculate retry delay with exponential backoff
|
|
243
|
+
*/ calculateRetryDelay() {
|
|
244
|
+
const delay = this.retryConfig.baseDelayMs * Math.pow(this.retryConfig.backoffMultiplier, this.retryConfig.attempt - 1);
|
|
245
|
+
return Math.min(delay, this.retryConfig.maxDelayMs);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Sleep utility for retry delays
|
|
249
|
+
*/ sleep(ms) {
|
|
250
|
+
return new Promise((resolve)=>setTimeout(resolve, ms));
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Convert to JSON representation
|
|
254
|
+
*/ toJSON() {
|
|
255
|
+
return {
|
|
256
|
+
requestId: this.requestId,
|
|
257
|
+
requesterId: this.requesterId,
|
|
258
|
+
status: this._status,
|
|
259
|
+
priority: this.priority,
|
|
260
|
+
capabilities: this.capabilities,
|
|
261
|
+
description: this.description,
|
|
262
|
+
helperId: this.helperId,
|
|
263
|
+
createdAt: this.createdAt.toISOString(),
|
|
264
|
+
elapsedTimeMs: this.getElapsedTime(),
|
|
265
|
+
retryAttempt: this.retryConfig.attempt,
|
|
266
|
+
maxRetries: this.retryConfig.maxAttempts,
|
|
267
|
+
events: this.events,
|
|
268
|
+
metadata: this.metadata
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
//# sourceMappingURL=help-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/coordination/v2/help-system/help-request.ts"],"names":["HelpRequestStatus","HelpRequestPriority","HelpRequest","requestId","requesterId","_status","priority","capabilities","description","timeoutConfig","retryConfig","createdAt","events","helperId","matchTimeoutHandle","completionTimeoutHandle","metadata","config","Date","matchTimeoutMs","matchTimeout","completionTimeoutMs","completionTimeout","autoRetryOnTimeout","attempt","maxAttempts","maxRetries","baseDelayMs","backoffMultiplier","maxDelayMs","addEvent","startMatchTimeout","status","matchedHelperId","lifecycleEvents","retryInfo","markMatched","Error","clearMatchTimeout","startCompletionTimeout","markInProgress","markResolved","clearCompletionTimeout","markFailed","reason","clearTimeouts","cancel","undefined","retry","delay","calculateRetryDelay","lastRetryAt","sleep","canRetry","getElapsedTime","now","getTime","isTerminal","includes","type","message","agentId","push","timestamp","setTimeout","catch","clearTimeout","Math","pow","min","ms","Promise","resolve","toJSON","toISOString","elapsedTimeMs","retryAttempt"],"mappings":"AAAA;;;;;;;CAOC,GAID;;CAEC,GACD,OAAO,IAAA,AAAKA,2CAAAA;IACV,4CAA4C;IAG5C,4CAA4C;IAG5C,6CAA6C;IAG7C,wCAAwC;IAGxC,qCAAqC;IAGrC,wCAAwC;IAGxC,mCAAmC;WAnBzBA;MAqBX;AAED;;CAEC,GACD,OAAO,IAAA,AAAKC,6CA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YAC/BC,aAAa,IAAI,CAACA,WAAW;YAC7BK,UAAU,IAAI,CAACA,QAAQ;YACvBF,WAAW,IAAI,CAACA,SAAS,CAAC+D,WAAW;YACrCC,eAAe,IAAI,CAACrB,cAAc;YAClCsB,cAAc,IAAI,CAAClE,WAAW,CAACc,OAAO;YACtCE,YAAY,IAAI,CAAChB,WAAW,CAACe,WAAW;YACxCb,QAAQ,IAAI,CAACA,MAAM;YACnBI,UAAU,IAAI,CAACA,QAAQ;QACzB;IACF;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Coordination V2 - Help System Module Exports
|
|
3
|
+
*
|
|
4
|
+
* Help system for agent-to-agent assistance with capability matching
|
|
5
|
+
* and optimized routing (<100ms matching, <200ms routing).
|
|
6
|
+
*
|
|
7
|
+
* @module coordination/v2/help-system
|
|
8
|
+
*/ // Help Request
|
|
9
|
+
export { HelpRequest, HelpRequestStatus, HelpRequestPriority } from './help-request.js';
|
|
10
|
+
// Help Matcher
|
|
11
|
+
export { HelpMatcher } from './help-matcher.js';
|
|
12
|
+
// Help Coordinator
|
|
13
|
+
export { HelpCoordinator } from './help-coordinator.js';
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/coordination/v2/help-system/index.ts"],"names":["HelpRequest","HelpRequestStatus","HelpRequestPriority","HelpMatcher","HelpCoordinator"],"mappings":"AAAA;;;;;;;CAOC,GAED,eAAe;AACf,SACEA,WAAW,EACXC,iBAAiB,EACjBC,mBAAmB,QAMd,oBAAoB;AAE3B,eAAe;AACf,SACEC,WAAW,QAKN,oBAAoB;AAE3B,mBAAmB;AACnB,SACEC,eAAe,QAIV,wBAAwB"}
|