@llm-dev-ops/agentics-cli 1.4.58 → 1.4.68
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/README.md +1 -1
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +227 -19
- package/dist/commands/agents.js.map +1 -1
- package/dist/pipeline/auto-chain.d.ts +1 -0
- package/dist/pipeline/auto-chain.d.ts.map +1 -1
- package/dist/pipeline/auto-chain.js +124 -37
- package/dist/pipeline/auto-chain.js.map +1 -1
- package/dist/pipeline/execution-context.d.ts.map +1 -1
- package/dist/pipeline/execution-context.js +12 -37
- package/dist/pipeline/execution-context.js.map +1 -1
- package/dist/pipeline/phase2/phases/adr-generator.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/adr-generator.js +160 -1
- package/dist/pipeline/phase2/phases/adr-generator.js.map +1 -1
- package/dist/pipeline/phase2/phases/ddd-generator.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/ddd-generator.js +400 -3
- package/dist/pipeline/phase2/phases/ddd-generator.js.map +1 -1
- package/dist/pipeline/phase2/phases/ddd-quality-gate.d.ts +43 -0
- package/dist/pipeline/phase2/phases/ddd-quality-gate.d.ts.map +1 -0
- package/dist/pipeline/phase2/phases/ddd-quality-gate.js +413 -0
- package/dist/pipeline/phase2/phases/ddd-quality-gate.js.map +1 -0
- package/dist/pipeline/phase2/phases/research-dossier.d.ts +0 -13
- package/dist/pipeline/phase2/phases/research-dossier.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/research-dossier.js +114 -1
- package/dist/pipeline/phase2/phases/research-dossier.js.map +1 -1
- package/dist/pipeline/phase2/phases/research-quality-gate.d.ts +48 -0
- package/dist/pipeline/phase2/phases/research-quality-gate.d.ts.map +1 -0
- package/dist/pipeline/phase2/phases/research-quality-gate.js +322 -0
- package/dist/pipeline/phase2/phases/research-quality-gate.js.map +1 -0
- package/dist/pipeline/phase2/phases/sparc-quality-gate.d.ts +41 -0
- package/dist/pipeline/phase2/phases/sparc-quality-gate.d.ts.map +1 -0
- package/dist/pipeline/phase2/phases/sparc-quality-gate.js +350 -0
- package/dist/pipeline/phase2/phases/sparc-quality-gate.js.map +1 -0
- package/dist/pipeline/phase2/phases/sparc-specification.d.ts +14 -0
- package/dist/pipeline/phase2/phases/sparc-specification.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/sparc-specification.js +500 -10
- package/dist/pipeline/phase2/phases/sparc-specification.js.map +1 -1
- package/dist/pipeline/phase2/phases/tdd-plan-generator.js +1 -1
- package/dist/pipeline/phase2/phases/tdd-plan-generator.js.map +1 -1
- package/dist/pipeline/phase2/phases/tech-stack-detector.d.ts +72 -0
- package/dist/pipeline/phase2/phases/tech-stack-detector.d.ts.map +1 -0
- package/dist/pipeline/phase2/phases/tech-stack-detector.js +332 -0
- package/dist/pipeline/phase2/phases/tech-stack-detector.js.map +1 -0
- package/dist/pipeline/phase2/types.d.ts +2 -0
- package/dist/pipeline/phase2/types.d.ts.map +1 -1
- package/dist/pipeline/phase3/phases/domain-codegen.d.ts.map +1 -1
- package/dist/pipeline/phase3/phases/domain-codegen.js +169 -4
- package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
- package/dist/pipeline/phase3/phases/test-generator.d.ts.map +1 -1
- package/dist/pipeline/phase3/phases/test-generator.js +12 -2
- package/dist/pipeline/phase3/phases/test-generator.js.map +1 -1
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.d.ts.map +1 -1
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js +99 -1
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js.map +1 -1
- package/dist/pipeline/phase4/phases/deployment-generator.d.ts +17 -4
- package/dist/pipeline/phase4/phases/deployment-generator.d.ts.map +1 -1
- package/dist/pipeline/phase4/phases/deployment-generator.js +364 -44
- package/dist/pipeline/phase4/phases/deployment-generator.js.map +1 -1
- package/dist/pipeline/phase4/phases/erp-client-generator.d.ts.map +1 -1
- package/dist/pipeline/phase4/phases/erp-client-generator.js +27 -15
- package/dist/pipeline/phase4/phases/erp-client-generator.js.map +1 -1
- package/dist/pipeline/phase4/phases/erp-target-resolver.d.ts.map +1 -1
- package/dist/pipeline/phase4/phases/erp-target-resolver.js +49 -2
- package/dist/pipeline/phase4/phases/erp-target-resolver.js.map +1 -1
- package/dist/pipeline/phase4/phases/http-server-generator.d.ts.map +1 -1
- package/dist/pipeline/phase4/phases/http-server-generator.js +263 -3
- package/dist/pipeline/phase4/phases/http-server-generator.js.map +1 -1
- package/dist/pipeline/phase4/phases/infra-adapter-generator.d.ts.map +1 -1
- package/dist/pipeline/phase4/phases/infra-adapter-generator.js +335 -37
- package/dist/pipeline/phase4/phases/infra-adapter-generator.js.map +1 -1
- package/dist/pipeline/phase4/types.d.ts +3 -1
- package/dist/pipeline/phase4/types.d.ts.map +1 -1
- package/dist/pipeline/phase4-adrs/phase4-adrs-coordinator.d.ts.map +1 -1
- package/dist/pipeline/phase4-adrs/phase4-adrs-coordinator.js +211 -2
- package/dist/pipeline/phase4-adrs/phase4-adrs-coordinator.js.map +1 -1
- package/dist/pipeline/phase5-build/phases/implementation-quality-gate.d.ts +54 -0
- package/dist/pipeline/phase5-build/phases/implementation-quality-gate.d.ts.map +1 -0
- package/dist/pipeline/phase5-build/phases/implementation-quality-gate.js +417 -0
- package/dist/pipeline/phase5-build/phases/implementation-quality-gate.js.map +1 -0
- package/dist/pipeline/phases/prompt-generator.js +1 -1
- package/dist/pipeline/phases/prompt-generator.js.map +1 -1
- package/dist/pipeline/ruflo-phase-executor.d.ts +116 -1
- package/dist/pipeline/ruflo-phase-executor.d.ts.map +1 -1
- package/dist/pipeline/ruflo-phase-executor.js +666 -159
- package/dist/pipeline/ruflo-phase-executor.js.map +1 -1
- package/dist/pipeline/swarm-orchestrator.d.ts.map +1 -1
- package/dist/pipeline/swarm-orchestrator.js +62 -6
- package/dist/pipeline/swarm-orchestrator.js.map +1 -1
- package/dist/routing/capability-classifier.d.ts +43 -0
- package/dist/routing/capability-classifier.d.ts.map +1 -0
- package/dist/routing/capability-classifier.js +157 -0
- package/dist/routing/capability-classifier.js.map +1 -0
- package/dist/routing/composition-engine.d.ts +77 -0
- package/dist/routing/composition-engine.d.ts.map +1 -0
- package/dist/routing/composition-engine.js +249 -0
- package/dist/routing/composition-engine.js.map +1 -0
- package/dist/routing/graph-federation.d.ts +71 -0
- package/dist/routing/graph-federation.d.ts.map +1 -0
- package/dist/routing/graph-federation.js +210 -0
- package/dist/routing/graph-federation.js.map +1 -0
- package/dist/routing/graph-loader.d.ts +74 -0
- package/dist/routing/graph-loader.d.ts.map +1 -0
- package/dist/routing/graph-loader.js +383 -0
- package/dist/routing/graph-loader.js.map +1 -0
- package/dist/routing/graph-router.d.ts +103 -0
- package/dist/routing/graph-router.d.ts.map +1 -0
- package/dist/routing/graph-router.js +415 -0
- package/dist/routing/graph-router.js.map +1 -0
- package/dist/routing/graph-validator.d.ts +44 -0
- package/dist/routing/graph-validator.d.ts.map +1 -0
- package/dist/routing/graph-validator.js +329 -0
- package/dist/routing/graph-validator.js.map +1 -0
- package/dist/routing/index.d.ts +52 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +68 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/outcome-recorder.d.ts +71 -0
- package/dist/routing/outcome-recorder.d.ts.map +1 -0
- package/dist/routing/outcome-recorder.js +133 -0
- package/dist/routing/outcome-recorder.js.map +1 -0
- package/dist/routing/weight-adjuster.d.ts +59 -0
- package/dist/routing/weight-adjuster.d.ts.map +1 -0
- package/dist/routing/weight-adjuster.js +167 -0
- package/dist/routing/weight-adjuster.js.map +1 -0
- package/dist/routing/weighted-resolver.d.ts +55 -0
- package/dist/routing/weighted-resolver.d.ts.map +1 -0
- package/dist/routing/weighted-resolver.js +133 -0
- package/dist/routing/weighted-resolver.js.map +1 -0
- package/dist/synthesis/ask-artifact-writer.d.ts.map +1 -1
- package/dist/synthesis/ask-artifact-writer.js +8 -0
- package/dist/synthesis/ask-artifact-writer.js.map +1 -1
- package/dist/synthesis/simulation-artifact-generator.d.ts +14 -0
- package/dist/synthesis/simulation-artifact-generator.d.ts.map +1 -1
- package/dist/synthesis/simulation-artifact-generator.js +224 -1
- package/dist/synthesis/simulation-artifact-generator.js.map +1 -1
- package/dist/synthesis/simulation-renderers.d.ts.map +1 -1
- package/dist/synthesis/simulation-renderers.js +211 -40
- package/dist/synthesis/simulation-renderers.js.map +1 -1
- package/package.json +1 -1
- package/dist/bundled-agents/connector-hub-agents/package-lock.json +0 -11697
- package/dist/bundled-agents/connector-hub-agents/package.json +0 -75
- package/dist/bundled-agents/connector-hub-agents/tsconfig.build.json +0 -22
- package/dist/bundled-agents/connector-hub-agents/tsconfig.json +0 -57
- package/dist/bundled-agents/copilot-agents/functions/.gcloudignore +0 -17
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.d.ts +0 -14
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js +0 -35
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.d.ts +0 -55
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js +0 -40
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.d.ts +0 -22
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js +0 -38
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.d.ts +0 -34
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js +0 -186
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.d.ts +0 -36
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js +0 -121
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.d.ts +0 -157
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js +0 -948
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.d.ts +0 -9
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js +0 -27
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.d.ts +0 -23
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js +0 -50
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.d.ts +0 -214
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js +0 -91
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.d.ts +0 -1166
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js +0 -308
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.d.ts +0 -59
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js +0 -62
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.d.ts +0 -400
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js +0 -113
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.d.ts +0 -250
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js +0 -169
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.d.ts +0 -17
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js +0 -97
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.d.ts +0 -1674
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js +0 -246
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.d.ts +0 -1085
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js +0 -218
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.d.ts +0 -949
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js +0 -253
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.d.ts +0 -657
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js +0 -205
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.d.ts +0 -285
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js +0 -106
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.d.ts +0 -581
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js +0 -136
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.d.ts +0 -791
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js +0 -225
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.d.ts +0 -120
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js +0 -535
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.d.ts +0 -9
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js +0 -18
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.d.ts +0 -4
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js +0 -9
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.d.ts +0 -123
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js +0 -609
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.d.ts +0 -10
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +0 -111
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js +0 -686
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.d.ts +0 -6
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js +0 -15
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +0 -126
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js +0 -780
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.d.ts +0 -49
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js +0 -125
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.d.ts +0 -73
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js +0 -192
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.d.ts +0 -127
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js +0 -483
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.d.ts +0 -49
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js +0 -125
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.d.ts +0 -73
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js +0 -192
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js +0 -27
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.d.ts +0 -122
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js +0 -645
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.d.ts +0 -59
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js +0 -156
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.d.ts +0 -88
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js +0 -246
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/index.js +0 -4
- package/dist/bundled-agents/copilot-agents/functions/jest.config.js +0 -29
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.d.ts +0 -14
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js +0 -35
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.d.ts +0 -27
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js +0 -21
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.d.ts +0 -22
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js +0 -38
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.d.ts +0 -34
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js +0 -174
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.d.ts +0 -27
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js +0 -107
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.d.ts +0 -157
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js +0 -941
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.d.ts +0 -9
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js +0 -27
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.d.ts +0 -23
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js +0 -50
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.d.ts +0 -185
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js +0 -86
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.d.ts +0 -1081
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js +0 -305
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.d.ts +0 -59
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js +0 -62
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.d.ts +0 -315
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js +0 -110
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.d.ts +0 -250
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js +0 -169
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.d.ts +0 -16
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js +0 -88
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.d.ts +0 -1674
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js +0 -246
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.d.ts +0 -1000
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js +0 -215
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.d.ts +0 -864
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js +0 -250
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.d.ts +0 -572
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js +0 -202
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.d.ts +0 -496
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js +0 -133
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.d.ts +0 -706
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js +0 -222
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.d.ts +0 -107
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js +0 -360
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.d.ts +0 -9
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js +0 -18
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.d.ts +0 -4
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js +0 -9
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.d.ts +0 -123
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js +0 -609
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.d.ts +0 -10
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +0 -111
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js +0 -686
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.d.ts +0 -6
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js +0 -15
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +0 -126
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js +0 -780
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.d.ts +0 -49
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js +0 -125
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.d.ts +0 -73
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js +0 -192
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js +0 -25
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.d.ts +0 -119
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js +0 -421
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.d.ts +0 -49
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js +0 -125
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.d.ts +0 -73
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js +0 -192
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.d.ts +0 -11
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js +0 -27
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.d.ts +0 -122
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js +0 -645
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.d.ts +0 -59
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js +0 -156
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.d.ts +0 -88
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js +0 -246
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js.map +0 -1
- package/dist/bundled-agents/copilot-agents/functions/package-lock.json +0 -5473
- package/dist/bundled-agents/copilot-agents/functions/package.json +0 -40
- package/dist/bundled-agents/copilot-agents/functions/src/claude.ts +0 -71
- package/dist/bundled-agents/copilot-agents/functions/src/cors.ts +0 -36
- package/dist/bundled-agents/copilot-agents/functions/src/envelope.ts +0 -77
- package/dist/bundled-agents/copilot-agents/functions/src/handler.test.ts +0 -340
- package/dist/bundled-agents/copilot-agents/functions/src/health.ts +0 -53
- package/dist/bundled-agents/copilot-agents/functions/src/index.ts +0 -201
- package/dist/bundled-agents/copilot-agents/functions/src/router.ts +0 -148
- package/dist/bundled-agents/copilot-agents/functions/tsconfig.json +0 -31
- package/dist/bundled-agents/copilot-agents/package-lock.json +0 -11825
- package/dist/bundled-agents/copilot-agents/package.json +0 -5
- package/dist/bundled-agents/governance-dashboard-agents/package-lock.json +0 -8282
- package/dist/bundled-agents/governance-dashboard-agents/package.json +0 -13
- package/dist/bundled-agents/orchestrator-agents/functions/contracts/index.js +0 -590
- package/dist/bundled-agents/orchestrator-agents/functions/index.js +0 -442
- package/dist/bundled-agents/orchestrator-agents/functions/test.js +0 -325
- package/dist/bundled-agents/orchestrator-agents/index.js +0 -6
- package/dist/bundled-agents/orchestrator-agents/package-lock.json +0 -13254
- package/dist/bundled-agents/orchestrator-agents/package.json +0 -20
- package/dist/bundled-agents/platform-agents/package-lock.json +0 -1723
- package/dist/bundled-agents/platform-agents/package.json +0 -22
- package/dist/bundled-agents/platform-agents/src/agents/decision-memo.ts +0 -463
- package/dist/bundled-agents/platform-agents/src/agents/decision.ts +0 -234
- package/dist/bundled-agents/platform-agents/src/agents/executive-summary.ts +0 -229
- package/dist/bundled-agents/platform-agents/src/agents/risk-score.ts +0 -327
- package/dist/bundled-agents/platform-agents/src/claude.ts +0 -71
- package/dist/bundled-agents/platform-agents/src/cors.ts +0 -24
- package/dist/bundled-agents/platform-agents/src/envelope.ts +0 -37
- package/dist/bundled-agents/platform-agents/src/health.ts +0 -20
- package/dist/bundled-agents/platform-agents/src/index.ts +0 -171
- package/dist/bundled-agents/platform-agents/src/router.ts +0 -38
- package/dist/bundled-agents/platform-agents/src/text-analysis.ts +0 -238
- package/dist/bundled-agents/platform-agents/tsconfig.json +0 -19
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts +0 -3
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js +0 -43
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts +0 -3
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js +0 -30
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts +0 -3
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js +0 -53
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts +0 -3
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js +0 -51
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts +0 -3
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js +0 -36
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/index.d.ts +0 -2
- package/dist/bundled-agents/sentinel-agents/lib/index.d.ts.map +0 -1
- package/dist/bundled-agents/sentinel-agents/lib/index.js +0 -70
- package/dist/bundled-agents/sentinel-agents/lib/index.js.map +0 -1
- package/dist/bundled-agents/sentinel-agents/package-lock.json +0 -12591
- package/dist/bundled-agents/sentinel-agents/package.json +0 -62
- package/dist/bundled-agents/sentinel-agents/src/agents/alert.ts +0 -46
- package/dist/bundled-agents/sentinel-agents/src/agents/anomaly.ts +0 -33
- package/dist/bundled-agents/sentinel-agents/src/agents/correlation.ts +0 -56
- package/dist/bundled-agents/sentinel-agents/src/agents/drift.ts +0 -54
- package/dist/bundled-agents/sentinel-agents/src/agents/rca.ts +0 -38
- package/dist/bundled-agents/sentinel-agents/src/claude.ts +0 -71
- package/dist/bundled-agents/sentinel-agents/src/index.ts +0 -77
- package/dist/bundled-agents/sentinel-agents/tsconfig.json +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-loader.js","sourceRoot":"","sources":["../../src/routing/graph-loader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAwClC,+EAA+E;AAC/E,aAAa;AACb,+EAA+E;AAE/E,MAAM,YAAY,GAAwB,IAAI,GAAG,CAAS;IACxD,YAAY;IACZ,UAAU;IACV,eAAe;IACf,cAAc;IACd,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,YAAY;CACb,CAAC,CAAC;AAOH,SAAS,aAAa,CAAC,IAAa;IAClC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACrE,MAAM,CA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MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAqB,EACrB,eAAkC;IAElC,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAS,eAAe,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC;IAEnC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAG,CAAC;QAC/B,MAAM,GAAG,GAAG,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,GAAG,EAAE,UAAU;YAAE,SAAS;QAE/B,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC;YACjC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvB,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Graph Router (ADR-030)
|
|
3
|
+
*
|
|
4
|
+
* Resolves classified capabilities into a stage-sequenced agent pipeline.
|
|
5
|
+
* This is the core routing engine that replaces full-fleet dispatch with
|
|
6
|
+
* targeted agent selection.
|
|
7
|
+
*
|
|
8
|
+
* Decision flow:
|
|
9
|
+
* 1. Receive classified capabilities
|
|
10
|
+
* 2. Resolve transitive dependencies
|
|
11
|
+
* 3. Look up agents and repos from the graph
|
|
12
|
+
* 4. Sequence agents by execution stage
|
|
13
|
+
* 5. Enforce agent budget constraints
|
|
14
|
+
* 6. Return a minimal, ordered pipeline
|
|
15
|
+
*/
|
|
16
|
+
import type { EcosystemGraph, StageName } from './graph-loader.js';
|
|
17
|
+
import type { ClassificationResult } from './capability-classifier.js';
|
|
18
|
+
import type { CompositionResult } from './composition-engine.js';
|
|
19
|
+
export interface RoutedAgent {
|
|
20
|
+
/** Agent display name from the graph. */
|
|
21
|
+
readonly agentName: string;
|
|
22
|
+
/** Capability that selected this agent. */
|
|
23
|
+
readonly capability: string;
|
|
24
|
+
/** Repository that implements this agent. */
|
|
25
|
+
readonly repo: string;
|
|
26
|
+
/** Execution stage this agent belongs to. */
|
|
27
|
+
readonly stage: StageName;
|
|
28
|
+
/** Agent weight from the graph (ADR-031 Phase 1). */
|
|
29
|
+
readonly weight: number;
|
|
30
|
+
/** Agent role classification (ADR-031 Phase 1). */
|
|
31
|
+
readonly role: string;
|
|
32
|
+
}
|
|
33
|
+
export interface StageGroup {
|
|
34
|
+
/** Stage name. */
|
|
35
|
+
readonly stage: StageName;
|
|
36
|
+
/** Agents to execute in this stage. */
|
|
37
|
+
readonly agents: readonly RoutedAgent[];
|
|
38
|
+
}
|
|
39
|
+
export interface RoutingResult {
|
|
40
|
+
/** Original classification that produced this routing. */
|
|
41
|
+
readonly classification: ClassificationResult;
|
|
42
|
+
/** Capabilities after dependency resolution. */
|
|
43
|
+
readonly resolvedCapabilities: readonly string[];
|
|
44
|
+
/** Agent pipeline ordered by stage. Only non-empty stages are included. */
|
|
45
|
+
readonly pipeline: readonly StageGroup[];
|
|
46
|
+
/** Total number of agents selected. */
|
|
47
|
+
readonly totalAgents: number;
|
|
48
|
+
/** Total number of repositories involved. */
|
|
49
|
+
readonly totalRepos: number;
|
|
50
|
+
/** Unique repository names. */
|
|
51
|
+
readonly repos: readonly string[];
|
|
52
|
+
/** Whether the agent budget was exceeded and pruning was applied. */
|
|
53
|
+
readonly pruned: boolean;
|
|
54
|
+
/** Human-readable routing explanation. */
|
|
55
|
+
readonly explanation: string;
|
|
56
|
+
/** Composition rules that fired (ADR-031 Phase 3). */
|
|
57
|
+
readonly compositionResult?: CompositionResult;
|
|
58
|
+
}
|
|
59
|
+
export interface AgentBudget {
|
|
60
|
+
/** Max agents for a single capability match. Default: 5. */
|
|
61
|
+
readonly singleCapability: number;
|
|
62
|
+
/** Max agents for 2-3 capability matches. Default: 8. */
|
|
63
|
+
readonly multiCapability: number;
|
|
64
|
+
/** Max agents for 4+ capability matches. Default: 12. */
|
|
65
|
+
readonly fullPipeline: number;
|
|
66
|
+
/** Absolute maximum agents regardless of capabilities. Default: 15. */
|
|
67
|
+
readonly hardCeiling: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Route classified capabilities through the ecosystem graph to produce
|
|
71
|
+
* a stage-sequenced agent pipeline.
|
|
72
|
+
*
|
|
73
|
+
* @param classification - Output from classifyCapabilities()
|
|
74
|
+
* @param graph - Loaded ecosystem graph
|
|
75
|
+
* @param budget - Optional agent budget overrides
|
|
76
|
+
* @returns Ordered pipeline of agents grouped by stage
|
|
77
|
+
*/
|
|
78
|
+
export declare function routeCapabilities(classification: ClassificationResult, graph: EcosystemGraph, budget?: Partial<AgentBudget>): RoutingResult;
|
|
79
|
+
/**
|
|
80
|
+
* Map from graph agent names (e.g., "ERP Integration Agent") to the
|
|
81
|
+
* domain/agent identifiers used by the existing invocation system
|
|
82
|
+
* (e.g., { domain: "connector-hub", agent: "erp-surface" }).
|
|
83
|
+
*
|
|
84
|
+
* This mapping bridges the capability graph's human-readable agent names
|
|
85
|
+
* to the AGENT_DOMAINS registry in commands/agents.ts.
|
|
86
|
+
*/
|
|
87
|
+
export interface DomainAgentRef {
|
|
88
|
+
readonly domain: string;
|
|
89
|
+
readonly agent: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Resolve a graph agent name to its domain/agent invocation reference.
|
|
93
|
+
* Returns undefined for unknown agents.
|
|
94
|
+
*/
|
|
95
|
+
export declare function resolveAgentRef(agentName: string): DomainAgentRef | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Convert a routing result into a flat list of domain/agent pairs
|
|
98
|
+
* ready for dispatch via the existing executeAgentsInvokeCommand.
|
|
99
|
+
*
|
|
100
|
+
* Agents that cannot be mapped are logged and skipped.
|
|
101
|
+
*/
|
|
102
|
+
export declare function toDomainAgentList(result: RoutingResult): DomainAgentRef[];
|
|
103
|
+
//# sourceMappingURL=graph-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-router.d.ts","sourceRoot":"","sources":["../../src/routing/graph-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAmB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAMjE,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,gDAAgD;IAChD,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cAAc,EAAE,CAkBzE"}
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Graph Router (ADR-030)
|
|
3
|
+
*
|
|
4
|
+
* Resolves classified capabilities into a stage-sequenced agent pipeline.
|
|
5
|
+
* This is the core routing engine that replaces full-fleet dispatch with
|
|
6
|
+
* targeted agent selection.
|
|
7
|
+
*
|
|
8
|
+
* Decision flow:
|
|
9
|
+
* 1. Receive classified capabilities
|
|
10
|
+
* 2. Resolve transitive dependencies
|
|
11
|
+
* 3. Look up agents and repos from the graph
|
|
12
|
+
* 4. Sequence agents by execution stage
|
|
13
|
+
* 5. Enforce agent budget constraints
|
|
14
|
+
* 6. Return a minimal, ordered pipeline
|
|
15
|
+
*/
|
|
16
|
+
import { getCapabilityByName, resolveDependencies } from './graph-loader.js';
|
|
17
|
+
import { normalizeAgents } from './weighted-resolver.js';
|
|
18
|
+
import { applyCompositions, formatCompositionExplanation } from './composition-engine.js';
|
|
19
|
+
const DEFAULT_BUDGET = {
|
|
20
|
+
singleCapability: 5,
|
|
21
|
+
multiCapability: 8,
|
|
22
|
+
fullPipeline: 12,
|
|
23
|
+
hardCeiling: 15,
|
|
24
|
+
};
|
|
25
|
+
// ============================================================================
|
|
26
|
+
// Router
|
|
27
|
+
// ============================================================================
|
|
28
|
+
/**
|
|
29
|
+
* Route classified capabilities through the ecosystem graph to produce
|
|
30
|
+
* a stage-sequenced agent pipeline.
|
|
31
|
+
*
|
|
32
|
+
* @param classification - Output from classifyCapabilities()
|
|
33
|
+
* @param graph - Loaded ecosystem graph
|
|
34
|
+
* @param budget - Optional agent budget overrides
|
|
35
|
+
* @returns Ordered pipeline of agents grouped by stage
|
|
36
|
+
*/
|
|
37
|
+
export function routeCapabilities(classification, graph, budget) {
|
|
38
|
+
const effectiveBudget = { ...DEFAULT_BUDGET, ...budget };
|
|
39
|
+
// Step 1: Extract capability names from classification
|
|
40
|
+
const classifiedNames = classification.capabilities.map(c => c.name);
|
|
41
|
+
if (classifiedNames.length === 0) {
|
|
42
|
+
return buildEmptyResult(classification);
|
|
43
|
+
}
|
|
44
|
+
// Step 2: Apply composition rules (ADR-031 Phase 3)
|
|
45
|
+
let compositionResult;
|
|
46
|
+
let expandedNames = classifiedNames;
|
|
47
|
+
if (graph.compositions && graph.compositions.length > 0) {
|
|
48
|
+
const validCaps = new Set(graph.capabilities.map(c => c.name));
|
|
49
|
+
compositionResult = applyCompositions(classifiedNames, graph.compositions, validCaps, { agentBudget: effectiveBudget.hardCeiling });
|
|
50
|
+
expandedNames = [...compositionResult.capabilities];
|
|
51
|
+
}
|
|
52
|
+
// Step 3: Resolve transitive dependencies
|
|
53
|
+
const resolvedNames = resolveDependencies(graph, expandedNames);
|
|
54
|
+
// Step 4: Look up all capability entries
|
|
55
|
+
const entries = new Map();
|
|
56
|
+
for (const name of resolvedNames) {
|
|
57
|
+
const cap = getCapabilityByName(graph, name);
|
|
58
|
+
if (cap) {
|
|
59
|
+
entries.set(name, cap);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Step 5: Build agent list with deduplication and weighted selection
|
|
63
|
+
const agentSet = new Map(); // key = agentName for dedup
|
|
64
|
+
for (const [capName, cap] of entries) {
|
|
65
|
+
const stage = cap.stage ?? inferStage(cap);
|
|
66
|
+
const weightedAgents = normalizeAgents(cap.agents);
|
|
67
|
+
// Sort by weight descending for selection priority
|
|
68
|
+
const sorted = [...weightedAgents].sort((a, b) => b.weight - a.weight);
|
|
69
|
+
for (const wa of sorted) {
|
|
70
|
+
const repo = cap.repos[0] ?? 'unknown';
|
|
71
|
+
// First occurrence wins (preserves capability with highest confidence)
|
|
72
|
+
if (!agentSet.has(wa.name)) {
|
|
73
|
+
agentSet.set(wa.name, {
|
|
74
|
+
agentName: wa.name,
|
|
75
|
+
capability: capName,
|
|
76
|
+
repo,
|
|
77
|
+
stage,
|
|
78
|
+
weight: wa.weight,
|
|
79
|
+
role: wa.role,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Step 6: Determine budget limit
|
|
85
|
+
const capCount = classifiedNames.length;
|
|
86
|
+
let maxAgents;
|
|
87
|
+
if (capCount <= 1) {
|
|
88
|
+
maxAgents = effectiveBudget.singleCapability;
|
|
89
|
+
}
|
|
90
|
+
else if (capCount <= 3) {
|
|
91
|
+
maxAgents = effectiveBudget.multiCapability;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
maxAgents = effectiveBudget.fullPipeline;
|
|
95
|
+
}
|
|
96
|
+
maxAgents = Math.min(maxAgents, effectiveBudget.hardCeiling);
|
|
97
|
+
// Step 7: Prune if over budget (weight-aware: prefer primary > secondary > specialist)
|
|
98
|
+
let agents = Array.from(agentSet.values());
|
|
99
|
+
let pruned = false;
|
|
100
|
+
if (agents.length > maxAgents) {
|
|
101
|
+
agents = pruneAgents(agents, classification, maxAgents);
|
|
102
|
+
pruned = true;
|
|
103
|
+
}
|
|
104
|
+
// Step 8: Group by stage in execution order
|
|
105
|
+
const pipeline = buildPipeline(agents, graph.stages);
|
|
106
|
+
// Step 9: Collect unique repos
|
|
107
|
+
const repoSet = new Set();
|
|
108
|
+
for (const agent of agents) {
|
|
109
|
+
repoSet.add(agent.repo);
|
|
110
|
+
}
|
|
111
|
+
const repos = Array.from(repoSet);
|
|
112
|
+
// Step 10: Build explanation
|
|
113
|
+
const explanation = buildExplanation(classification, resolvedNames, classifiedNames, pipeline, agents.length, pruned, compositionResult);
|
|
114
|
+
return {
|
|
115
|
+
classification,
|
|
116
|
+
resolvedCapabilities: resolvedNames,
|
|
117
|
+
pipeline,
|
|
118
|
+
totalAgents: agents.length,
|
|
119
|
+
totalRepos: repos.length,
|
|
120
|
+
repos,
|
|
121
|
+
pruned,
|
|
122
|
+
explanation,
|
|
123
|
+
compositionResult,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
// ============================================================================
|
|
127
|
+
// Pruning
|
|
128
|
+
// ============================================================================
|
|
129
|
+
/**
|
|
130
|
+
* Prune agents to fit within budget. Strategy:
|
|
131
|
+
* 1. Rank agents by the confidence of the capability that selected them
|
|
132
|
+
* 2. Ensure at least one agent per classified capability
|
|
133
|
+
* 3. Fill remaining budget with highest-confidence agents
|
|
134
|
+
*/
|
|
135
|
+
function pruneAgents(agents, classification, maxAgents) {
|
|
136
|
+
// Build confidence map from classification
|
|
137
|
+
const confidenceMap = new Map();
|
|
138
|
+
for (const c of classification.capabilities) {
|
|
139
|
+
confidenceMap.set(c.name, c.confidence);
|
|
140
|
+
}
|
|
141
|
+
// Ensure at least one agent per classified capability
|
|
142
|
+
const guaranteedAgents = new Map();
|
|
143
|
+
for (const agent of agents) {
|
|
144
|
+
if (!guaranteedAgents.has(agent.capability)) {
|
|
145
|
+
guaranteedAgents.set(agent.capability, agent);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const guaranteed = Array.from(guaranteedAgents.values());
|
|
149
|
+
if (guaranteed.length >= maxAgents) {
|
|
150
|
+
// Even one-per-capability exceeds budget — take top N by confidence
|
|
151
|
+
return guaranteed
|
|
152
|
+
.sort((a, b) => (confidenceMap.get(b.capability) ?? 0) - (confidenceMap.get(a.capability) ?? 0))
|
|
153
|
+
.slice(0, maxAgents);
|
|
154
|
+
}
|
|
155
|
+
// Fill remaining slots — sort by: role priority (primary > secondary > specialist),
|
|
156
|
+
// then by weight descending, then by capability confidence descending
|
|
157
|
+
const guaranteedNames = new Set(guaranteed.map(a => a.agentName));
|
|
158
|
+
const rolePriority = { primary: 3, secondary: 2, specialist: 1 };
|
|
159
|
+
const remaining = agents
|
|
160
|
+
.filter(a => !guaranteedNames.has(a.agentName))
|
|
161
|
+
.sort((a, b) => {
|
|
162
|
+
const roleDiff = (rolePriority[b.role] ?? 0) - (rolePriority[a.role] ?? 0);
|
|
163
|
+
if (roleDiff !== 0)
|
|
164
|
+
return roleDiff;
|
|
165
|
+
const weightDiff = b.weight - a.weight;
|
|
166
|
+
if (Math.abs(weightDiff) > 0.001)
|
|
167
|
+
return weightDiff;
|
|
168
|
+
return (confidenceMap.get(b.capability) ?? 0) - (confidenceMap.get(a.capability) ?? 0);
|
|
169
|
+
});
|
|
170
|
+
const remainingBudget = maxAgents - guaranteed.length;
|
|
171
|
+
return [...guaranteed, ...remaining.slice(0, remainingBudget)];
|
|
172
|
+
}
|
|
173
|
+
// ============================================================================
|
|
174
|
+
// Pipeline Building
|
|
175
|
+
// ============================================================================
|
|
176
|
+
/**
|
|
177
|
+
* Group agents by stage and order according to the graph's stage sequence.
|
|
178
|
+
*/
|
|
179
|
+
function buildPipeline(agents, stages) {
|
|
180
|
+
const stageMap = new Map();
|
|
181
|
+
for (const agent of agents) {
|
|
182
|
+
const existing = stageMap.get(agent.stage);
|
|
183
|
+
if (existing) {
|
|
184
|
+
existing.push(agent);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
stageMap.set(agent.stage, [agent]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
// Return stages in order, only including non-empty ones
|
|
191
|
+
const pipeline = [];
|
|
192
|
+
for (const stage of stages) {
|
|
193
|
+
const stageAgents = stageMap.get(stage);
|
|
194
|
+
if (stageAgents && stageAgents.length > 0) {
|
|
195
|
+
pipeline.push({ stage, agents: stageAgents });
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return pipeline;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Infer a default stage for capabilities that don't have one assigned.
|
|
202
|
+
*/
|
|
203
|
+
function inferStage(_cap) {
|
|
204
|
+
return 'build';
|
|
205
|
+
}
|
|
206
|
+
// ============================================================================
|
|
207
|
+
// Explanation
|
|
208
|
+
// ============================================================================
|
|
209
|
+
function buildExplanation(classification, resolvedNames, classifiedNames, pipeline, totalAgents, pruned, compositionResult) {
|
|
210
|
+
const lines = [];
|
|
211
|
+
lines.push('Capability Graph Routing:');
|
|
212
|
+
// Classification
|
|
213
|
+
lines.push(` Classified: [${classifiedNames.join(', ')}]`);
|
|
214
|
+
for (const c of classification.capabilities) {
|
|
215
|
+
lines.push(` ${c.name}: ${c.matchType} match (${(c.confidence * 100).toFixed(0)}%) via [${c.matchedTokens.join(', ')}]`);
|
|
216
|
+
}
|
|
217
|
+
// Composition rules (ADR-031 Phase 3)
|
|
218
|
+
if (compositionResult && compositionResult.firedRules.length > 0) {
|
|
219
|
+
lines.push(formatCompositionExplanation(compositionResult));
|
|
220
|
+
}
|
|
221
|
+
// Dependencies
|
|
222
|
+
const addedDeps = resolvedNames.filter(n => !classifiedNames.includes(n));
|
|
223
|
+
if (addedDeps.length > 0) {
|
|
224
|
+
lines.push(` Dependencies added: [${addedDeps.join(', ')}]`);
|
|
225
|
+
}
|
|
226
|
+
// Pipeline
|
|
227
|
+
lines.push(` Pipeline (${totalAgents} agents)${pruned ? ' [PRUNED]' : ''}:`);
|
|
228
|
+
for (const group of pipeline) {
|
|
229
|
+
const agentNames = group.agents.map(a => a.agentName).join(', ');
|
|
230
|
+
lines.push(` ${group.stage}: ${agentNames}`);
|
|
231
|
+
}
|
|
232
|
+
return lines.join('\n');
|
|
233
|
+
}
|
|
234
|
+
// ============================================================================
|
|
235
|
+
// Empty Result
|
|
236
|
+
// ============================================================================
|
|
237
|
+
function buildEmptyResult(classification) {
|
|
238
|
+
return {
|
|
239
|
+
classification,
|
|
240
|
+
resolvedCapabilities: [],
|
|
241
|
+
pipeline: [],
|
|
242
|
+
totalAgents: 0,
|
|
243
|
+
totalRepos: 0,
|
|
244
|
+
repos: [],
|
|
245
|
+
pruned: false,
|
|
246
|
+
explanation: 'Capability Graph Routing:\n No capabilities matched. Falling back to full-fleet dispatch.',
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Comprehensive mapping from graph agent display names to domain/agent pairs.
|
|
251
|
+
* Maintained manually; must stay in sync with AGENT_DOMAINS in agents.ts.
|
|
252
|
+
*/
|
|
253
|
+
const AGENT_NAME_TO_DOMAIN = new Map([
|
|
254
|
+
// test-bench
|
|
255
|
+
['Benchmark Runner Agent', { domain: 'test-bench', agent: 'benchmark' }],
|
|
256
|
+
['Model Comparator Agent', { domain: 'test-bench', agent: 'compare' }],
|
|
257
|
+
['Regression Detection Agent', { domain: 'test-bench', agent: 'regression' }],
|
|
258
|
+
['Quality Scoring Agent', { domain: 'test-bench', agent: 'quality' }],
|
|
259
|
+
['Hallucination Detection Agent', { domain: 'test-bench', agent: 'hallucination' }],
|
|
260
|
+
['Faithfulness Verification Agent', { domain: 'test-bench', agent: 'faithfulness' }],
|
|
261
|
+
['Bias Detection Agent', { domain: 'test-bench', agent: 'bias' }],
|
|
262
|
+
['Prompt Sensitivity Agent', { domain: 'test-bench', agent: 'prompt-sensitivity' }],
|
|
263
|
+
['Output Consistency Agent', { domain: 'test-bench', agent: 'consistency' }],
|
|
264
|
+
['Stress Test Agent', { domain: 'test-bench', agent: 'stress' }],
|
|
265
|
+
['Red Team Agent', { domain: 'test-bench', agent: 'red-team' }],
|
|
266
|
+
['Adversarial Prompt Agent', { domain: 'test-bench', agent: 'adversarial' }],
|
|
267
|
+
['Golden Dataset Validator Agent', { domain: 'test-bench', agent: 'golden-dataset' }],
|
|
268
|
+
['Synthetic Data Generator Agent', { domain: 'test-bench', agent: 'synthetic-data' }],
|
|
269
|
+
// observatory
|
|
270
|
+
['Telemetry Collector Agent', { domain: 'observatory', agent: 'telemetry' }],
|
|
271
|
+
['Usage Pattern Agent', { domain: 'observatory', agent: 'usage-patterns' }],
|
|
272
|
+
['Failure Classification Agent', { domain: 'observatory', agent: 'failures' }],
|
|
273
|
+
['Health Check Agent', { domain: 'observatory', agent: 'health-check' }],
|
|
274
|
+
['SLO / SLA Enforcement Agent', { domain: 'observatory', agent: 'slo' }],
|
|
275
|
+
['Post-Mortem Generator Agent', { domain: 'observatory', agent: 'post-mortem' }],
|
|
276
|
+
['Visualization Spec Agent', { domain: 'observatory', agent: 'visualization' }],
|
|
277
|
+
// shield
|
|
278
|
+
['Prompt Injection Detection Agent', { domain: 'shield', agent: 'prompt-injection' }],
|
|
279
|
+
['PII Detection Agent', { domain: 'shield', agent: 'pii' }],
|
|
280
|
+
['Data Redaction Agent', { domain: 'shield', agent: 'redaction' }],
|
|
281
|
+
['Secrets Leakage Agent', { domain: 'shield', agent: 'secrets' }],
|
|
282
|
+
['Toxicity Detection Agent', { domain: 'shield', agent: 'toxicity' }],
|
|
283
|
+
['Safety Boundary Agent', { domain: 'shield', agent: 'safety-boundary' }],
|
|
284
|
+
['Content Moderation Agent', { domain: 'shield', agent: 'moderation' }],
|
|
285
|
+
['Model Abuse Detection Agent', { domain: 'shield', agent: 'abuse' }],
|
|
286
|
+
['Credential Exposure Agent', { domain: 'shield', agent: 'credential-exposure' }],
|
|
287
|
+
// sentinel
|
|
288
|
+
['Anomaly Detection Agent', { domain: 'sentinel', agent: 'anomaly' }],
|
|
289
|
+
['Drift Detection Agent', { domain: 'sentinel', agent: 'drift' }],
|
|
290
|
+
['Alerting Agent', { domain: 'sentinel', agent: 'alert' }],
|
|
291
|
+
['Incident Correlation Agent', { domain: 'sentinel', agent: 'correlation' }],
|
|
292
|
+
['Root Cause Analysis Agent', { domain: 'sentinel', agent: 'rca' }],
|
|
293
|
+
// memory-graph
|
|
294
|
+
['Conversation Memory Agent', { domain: 'memory-graph', agent: 'conversation' }],
|
|
295
|
+
['Prompt Lineage Agent', { domain: 'memory-graph', agent: 'lineage' }],
|
|
296
|
+
['Decision Memory Agent', { domain: 'memory-graph', agent: 'decisions' }],
|
|
297
|
+
['Knowledge Graph Builder Agent', { domain: 'memory-graph', agent: 'knowledge-graph' }],
|
|
298
|
+
['Memory Retrieval Agent', { domain: 'memory-graph', agent: 'retrieval' }],
|
|
299
|
+
['Long-Term Pattern Agent', { domain: 'memory-graph', agent: 'patterns' }],
|
|
300
|
+
// latency-lens
|
|
301
|
+
['Latency Analysis Agent', { domain: 'latency-lens', agent: 'latency' }],
|
|
302
|
+
['Cold Start Mitigation Agent', { domain: 'latency-lens', agent: 'cold-start' }],
|
|
303
|
+
// forge
|
|
304
|
+
['SDK Generator Agent', { domain: 'forge', agent: 'sdk' }],
|
|
305
|
+
['CLI Command Generator Agent', { domain: 'forge', agent: 'cli' }],
|
|
306
|
+
['API Translation Agent', { domain: 'forge', agent: 'api-translation' }],
|
|
307
|
+
['Version Compatibility Agent', { domain: 'forge', agent: 'version-compat' }],
|
|
308
|
+
// edge
|
|
309
|
+
['Tool Invocation Agent', { domain: 'edge', agent: 'tool-invoke' }],
|
|
310
|
+
['Circuit Breaker Agent', { domain: 'edge', agent: 'circuit-breaker' }],
|
|
311
|
+
['Failover Agent', { domain: 'edge', agent: 'failover' }],
|
|
312
|
+
['Execution Guard Agent', { domain: 'edge', agent: 'execution-guard' }],
|
|
313
|
+
['Caching Strategy Agent', { domain: 'edge', agent: 'caching' }],
|
|
314
|
+
// auto-optimizer
|
|
315
|
+
['Self-Optimizing Agent', { domain: 'auto-optimizer', agent: 'self-optimize' }],
|
|
316
|
+
['Token Optimization Agent', { domain: 'auto-optimizer', agent: 'token' }],
|
|
317
|
+
['Model Selection Agent', { domain: 'auto-optimizer', agent: 'model-select' }],
|
|
318
|
+
// incident-manager
|
|
319
|
+
['Incident Escalation Agent', { domain: 'incident-manager', agent: 'escalation' }],
|
|
320
|
+
['Human-in-the-Loop Agent', { domain: 'incident-manager', agent: 'hitl' }],
|
|
321
|
+
// orchestrator
|
|
322
|
+
['Workflow Orchestrator Agent', { domain: 'orchestrator', agent: 'workflow' }],
|
|
323
|
+
['Task Scheduler Agent', { domain: 'orchestrator', agent: 'scheduler' }],
|
|
324
|
+
['Dependency Resolver Agent', { domain: 'orchestrator', agent: 'dependencies' }],
|
|
325
|
+
['Retry & Recovery Agent', { domain: 'orchestrator', agent: 'retry' }],
|
|
326
|
+
['Parallelization Agent', { domain: 'orchestrator', agent: 'parallel' }],
|
|
327
|
+
['State Machine Agent', { domain: 'orchestrator', agent: 'state-machine' }],
|
|
328
|
+
['Swarm Coordinator Agent', { domain: 'orchestrator', agent: 'swarm' }],
|
|
329
|
+
// costops
|
|
330
|
+
['Cost Attribution Agent', { domain: 'costops', agent: 'attribution' }],
|
|
331
|
+
['Cost Forecasting Agent', { domain: 'costops', agent: 'forecast' }],
|
|
332
|
+
['Budget Enforcement Agent', { domain: 'costops', agent: 'budget' }],
|
|
333
|
+
['ROI Estimation Agent', { domain: 'costops', agent: 'roi' }],
|
|
334
|
+
['Cost-Performance Tradeoff Agent', { domain: 'costops', agent: 'tradeoff' }],
|
|
335
|
+
// governance-dashboard
|
|
336
|
+
['Governance Audit Agent', { domain: 'governance-dashboard', agent: 'audit' }],
|
|
337
|
+
['Change Impact Agent', { domain: 'governance-dashboard', agent: 'impact' }],
|
|
338
|
+
['Usage Oversight Agent', { domain: 'governance-dashboard', agent: 'oversight' }],
|
|
339
|
+
// policy-engine
|
|
340
|
+
['Policy Enforcement Agent', { domain: 'policy-engine', agent: 'enforce' }],
|
|
341
|
+
['Constraint Solver Agent', { domain: 'policy-engine', agent: 'constraints' }],
|
|
342
|
+
['Approval Routing Agent', { domain: 'policy-engine', agent: 'approval' }],
|
|
343
|
+
// registry
|
|
344
|
+
['Registry Indexing Agent', { domain: 'registry', agent: 'index' }],
|
|
345
|
+
['Agent Reputation Agent', { domain: 'registry', agent: 'reputation' }],
|
|
346
|
+
['Template Bootstrap Agent', { domain: 'registry', agent: 'bootstrap' }],
|
|
347
|
+
// marketplace
|
|
348
|
+
['Marketplace Packaging Agent', { domain: 'marketplace', agent: 'package' }],
|
|
349
|
+
['Deprecation Agent', { domain: 'marketplace', agent: 'deprecation' }],
|
|
350
|
+
// analytics-hub
|
|
351
|
+
['Consensus Agent', { domain: 'analytics-hub', agent: 'consensus' }],
|
|
352
|
+
['Strategic Recommendation Agent', { domain: 'analytics-hub', agent: 'recommendation' }],
|
|
353
|
+
// config-manager (shared agent name)
|
|
354
|
+
// schema-registry (shared agent name)
|
|
355
|
+
// connector-hub
|
|
356
|
+
['ERP Integration Agent', { domain: 'connector-hub', agent: 'erp-surface' }],
|
|
357
|
+
// copilot
|
|
358
|
+
['Planner Agent', { domain: 'copilot', agent: 'planner' }],
|
|
359
|
+
['Decomposer Agent', { domain: 'copilot', agent: 'decomposer' }],
|
|
360
|
+
['Objective Clarifier Agent', { domain: 'copilot', agent: 'clarifier' }],
|
|
361
|
+
['Intent Classifier Agent', { domain: 'copilot', agent: 'intent' }],
|
|
362
|
+
['Reflection Agent', { domain: 'copilot', agent: 'reflection' }],
|
|
363
|
+
['Meta-Reasoner Agent', { domain: 'copilot', agent: 'meta-reasoner' }],
|
|
364
|
+
// simulator
|
|
365
|
+
['What-If Simulation Agent', { domain: 'simulator', agent: 'what-if' }],
|
|
366
|
+
['Scenario Generator Agent', { domain: 'simulator', agent: 'scenario' }],
|
|
367
|
+
// benchmark-exchange
|
|
368
|
+
['Benchmark Publication Agent', { domain: 'benchmark-exchange', agent: 'publish' }],
|
|
369
|
+
// inference-gateway
|
|
370
|
+
['Inference Routing Agent', { domain: 'inference-gateway', agent: 'route' }],
|
|
371
|
+
// data-vault
|
|
372
|
+
['Data Access Control Agent', { domain: 'data-vault', agent: 'access-control' }],
|
|
373
|
+
['Dataset Anonymization Agent', { domain: 'data-vault', agent: 'anonymize' }],
|
|
374
|
+
// research-lab
|
|
375
|
+
['Hypothesis Agent', { domain: 'research-lab', agent: 'hypothesis' }],
|
|
376
|
+
['Experimental Metric Agent', { domain: 'research-lab', agent: 'metrics' }],
|
|
377
|
+
// platform
|
|
378
|
+
['Decision Agent', { domain: 'platform', agent: 'decision' }],
|
|
379
|
+
['Executive Summary Agent', { domain: 'platform', agent: 'executive-summary' }],
|
|
380
|
+
['Decision Memo Agent', { domain: 'platform', agent: 'decision-memo' }],
|
|
381
|
+
['Risk Scoring Agent', { domain: 'platform', agent: 'risk-score' }],
|
|
382
|
+
// enterprise
|
|
383
|
+
['Enterprise Strategy Agent', { domain: 'costops', agent: 'roi' }],
|
|
384
|
+
]);
|
|
385
|
+
/**
|
|
386
|
+
* Resolve a graph agent name to its domain/agent invocation reference.
|
|
387
|
+
* Returns undefined for unknown agents.
|
|
388
|
+
*/
|
|
389
|
+
export function resolveAgentRef(agentName) {
|
|
390
|
+
return AGENT_NAME_TO_DOMAIN.get(agentName);
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Convert a routing result into a flat list of domain/agent pairs
|
|
394
|
+
* ready for dispatch via the existing executeAgentsInvokeCommand.
|
|
395
|
+
*
|
|
396
|
+
* Agents that cannot be mapped are logged and skipped.
|
|
397
|
+
*/
|
|
398
|
+
export function toDomainAgentList(result) {
|
|
399
|
+
const refs = [];
|
|
400
|
+
const seen = new Set();
|
|
401
|
+
for (const group of result.pipeline) {
|
|
402
|
+
for (const agent of group.agents) {
|
|
403
|
+
const ref = resolveAgentRef(agent.agentName);
|
|
404
|
+
if (ref) {
|
|
405
|
+
const key = `${ref.domain}/${ref.agent}`;
|
|
406
|
+
if (!seen.has(key)) {
|
|
407
|
+
seen.add(key);
|
|
408
|
+
refs.push(ref);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return refs;
|
|
414
|
+
}
|
|
415
|
+
//# sourceMappingURL=graph-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-router.js","sourceRoot":"","sources":["../../src/routing/graph-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAiE1F,MAAM,cAAc,GAAgB;IAClC,gBAAgB,EAAE,CAAC;IACnB,eAAe,EAAE,CAAC;IAClB,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,+EAA+E;AAC/E,SAAS;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G,EAAU,CAAC;IAE/B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACjC,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC7C,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;gBACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;oBACnB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACd,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Graph Validator (ADR-031 Phase 5)
|
|
3
|
+
*
|
|
4
|
+
* Tiered validation engine for the ecosystem capability graph.
|
|
5
|
+
*
|
|
6
|
+
* Tier 1 (Offline): Schema, uniqueness, weights, compositions, cycles
|
|
7
|
+
* Tier 2 (Online): Repository existence, agent name consistency (requires API)
|
|
8
|
+
* Tier 3 (Telemetry): Orphan detection (requires outcome data)
|
|
9
|
+
*/
|
|
10
|
+
export type ValidationTier = 'offline' | 'online' | 'telemetry';
|
|
11
|
+
export type ValidationSeverity = 'error' | 'warning' | 'info';
|
|
12
|
+
export interface ValidationResult {
|
|
13
|
+
readonly rule: string;
|
|
14
|
+
readonly severity: ValidationSeverity;
|
|
15
|
+
readonly passed: boolean;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly details?: readonly string[];
|
|
18
|
+
}
|
|
19
|
+
export interface ValidationReport {
|
|
20
|
+
readonly tier: ValidationTier;
|
|
21
|
+
readonly results: readonly ValidationResult[];
|
|
22
|
+
readonly passed: number;
|
|
23
|
+
readonly failed: number;
|
|
24
|
+
readonly warnings: number;
|
|
25
|
+
readonly timestamp: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Run Tier 1 offline validation rules.
|
|
29
|
+
* No network required. Validates structural correctness.
|
|
30
|
+
*/
|
|
31
|
+
export declare function validateTier1(graphPath?: string): ValidationReport;
|
|
32
|
+
/**
|
|
33
|
+
* Run Tier 3 telemetry validation rules.
|
|
34
|
+
* Requires outcome data from Phase 2.
|
|
35
|
+
*/
|
|
36
|
+
export declare function validateTier3(graphPath?: string, options?: {
|
|
37
|
+
basePath?: string;
|
|
38
|
+
orphanDays?: number;
|
|
39
|
+
}): ValidationReport;
|
|
40
|
+
/**
|
|
41
|
+
* Format a validation report as human-readable output.
|
|
42
|
+
*/
|
|
43
|
+
export declare function formatValidationReport(report: ValidationReport): string;
|
|
44
|
+
//# sourceMappingURL=graph-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-validator.d.ts","sourceRoot":"","sources":["../../src/routing/graph-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,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