@llm-dev-ops/agentics-cli 1.4.59 → 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 +167 -0
- 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
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Reflection Agent Schemas
|
|
4
|
-
*
|
|
5
|
-
* Purpose: Analyze DecisionEvents to extract learning and quality signals
|
|
6
|
-
* Classification: POST_EXECUTION_ANALYSIS, QUALITY_ASSESSMENT
|
|
7
|
-
* decision_type: reflection_analysis
|
|
8
|
-
*
|
|
9
|
-
* Scope:
|
|
10
|
-
* - Evaluate outcomes
|
|
11
|
-
* - Identify gaps and inefficiencies
|
|
12
|
-
* - Produce improvement insights
|
|
13
|
-
*
|
|
14
|
-
* Must Never:
|
|
15
|
-
* - Modify behavior
|
|
16
|
-
* - Trigger retries
|
|
17
|
-
* - Apply optimizations
|
|
18
|
-
*/
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.ReflectionOutputSchema = exports.ReflectionInputSchema = exports.OutcomeEvaluationSchema = exports.GapAnalysisSchema = exports.LearningSignalSchema = exports.QualitySignalSchema = void 0;
|
|
21
|
-
const zod_1 = require("zod");
|
|
22
|
-
const pipeline_schemas_1 = require("./pipeline-schemas");
|
|
23
|
-
const decision_event_1 = require("./decision-event");
|
|
24
|
-
/**
|
|
25
|
-
* Quality Signal - extracted quality indicators
|
|
26
|
-
*/
|
|
27
|
-
exports.QualitySignalSchema = zod_1.z.object({
|
|
28
|
-
/** Unique identifier for this signal */
|
|
29
|
-
signal_id: zod_1.z.string().min(1),
|
|
30
|
-
/** Type of quality signal */
|
|
31
|
-
type: zod_1.z.enum([
|
|
32
|
-
'performance', // Execution performance signal
|
|
33
|
-
'accuracy', // Accuracy/correctness signal
|
|
34
|
-
'completeness', // Completeness of output signal
|
|
35
|
-
'consistency', // Consistency with prior decisions
|
|
36
|
-
'efficiency', // Resource efficiency signal
|
|
37
|
-
'reliability', // Reliability/stability signal
|
|
38
|
-
]),
|
|
39
|
-
/** Signal value (0.0 - 1.0 normalized score) */
|
|
40
|
-
value: zod_1.z.number().min(0).max(1),
|
|
41
|
-
/** Human-readable description of the signal */
|
|
42
|
-
description: zod_1.z.string().min(1),
|
|
43
|
-
/** Evidence supporting this signal */
|
|
44
|
-
evidence: zod_1.z.array(zod_1.z.string()).default([]),
|
|
45
|
-
/** Severity level for negative signals */
|
|
46
|
-
severity: zod_1.z.enum(['info', 'warning', 'error', 'critical']).optional(),
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* Learning Signal - extracted learning opportunities
|
|
50
|
-
*/
|
|
51
|
-
exports.LearningSignalSchema = zod_1.z.object({
|
|
52
|
-
/** Unique identifier for this learning */
|
|
53
|
-
learning_id: zod_1.z.string().min(1),
|
|
54
|
-
/** Category of learning */
|
|
55
|
-
category: zod_1.z.enum([
|
|
56
|
-
'pattern', // Identified pattern to replicate
|
|
57
|
-
'anti_pattern', // Pattern to avoid
|
|
58
|
-
'optimization', // Optimization opportunity
|
|
59
|
-
'edge_case', // Edge case discovered
|
|
60
|
-
'dependency', // Dependency relationship learned
|
|
61
|
-
'constraint', // Constraint discovered
|
|
62
|
-
]),
|
|
63
|
-
/** Brief title for the learning */
|
|
64
|
-
title: zod_1.z.string().min(1).max(200),
|
|
65
|
-
/** Detailed description of the learning */
|
|
66
|
-
description: zod_1.z.string().min(1),
|
|
67
|
-
/** Confidence in this learning (0.0 - 1.0) */
|
|
68
|
-
confidence: zod_1.z.number().min(0).max(1),
|
|
69
|
-
/** Affected agents or components */
|
|
70
|
-
affected_agents: zod_1.z.array(zod_1.z.string()).default([]),
|
|
71
|
-
/** Recommendations for applying this learning (informational only) */
|
|
72
|
-
recommendations: zod_1.z.array(zod_1.z.string()).default([]),
|
|
73
|
-
});
|
|
74
|
-
/**
|
|
75
|
-
* Gap Analysis - identified gaps or inefficiencies
|
|
76
|
-
*/
|
|
77
|
-
exports.GapAnalysisSchema = zod_1.z.object({
|
|
78
|
-
/** Unique identifier for this gap */
|
|
79
|
-
gap_id: zod_1.z.string().min(1),
|
|
80
|
-
/** Type of gap */
|
|
81
|
-
type: zod_1.z.enum([
|
|
82
|
-
'coverage', // Missing coverage
|
|
83
|
-
'capability', // Missing capability
|
|
84
|
-
'data', // Data quality or availability gap
|
|
85
|
-
'process', // Process gap
|
|
86
|
-
'integration', // Integration gap
|
|
87
|
-
'documentation', // Documentation gap
|
|
88
|
-
]),
|
|
89
|
-
/** Brief title for the gap */
|
|
90
|
-
title: zod_1.z.string().min(1).max(200),
|
|
91
|
-
/** Detailed description of the gap */
|
|
92
|
-
description: zod_1.z.string().min(1),
|
|
93
|
-
/** Impact assessment */
|
|
94
|
-
impact: zod_1.z.enum(['low', 'medium', 'high', 'critical']),
|
|
95
|
-
/** Steps involved where gap was identified */
|
|
96
|
-
affected_steps: zod_1.z.array(zod_1.z.string()).default([]),
|
|
97
|
-
/** Evidence supporting gap identification */
|
|
98
|
-
evidence: zod_1.z.array(zod_1.z.string()).default([]),
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* Outcome Evaluation - assessment of decision outcomes
|
|
102
|
-
*/
|
|
103
|
-
exports.OutcomeEvaluationSchema = zod_1.z.object({
|
|
104
|
-
/** Original decision event being evaluated */
|
|
105
|
-
decision_ref: zod_1.z.string().uuid(),
|
|
106
|
-
/** Agent that produced the decision */
|
|
107
|
-
agent_id: zod_1.z.string().min(1),
|
|
108
|
-
/** Decision type being evaluated */
|
|
109
|
-
decision_type: zod_1.z.string().min(1),
|
|
110
|
-
/** Overall outcome score (0.0 - 1.0) */
|
|
111
|
-
outcome_score: zod_1.z.number().min(0).max(1),
|
|
112
|
-
/** Assessment summary */
|
|
113
|
-
summary: zod_1.z.string().min(1),
|
|
114
|
-
/** Breakdown of outcome by dimension */
|
|
115
|
-
dimensions: zod_1.z.array(zod_1.z.object({
|
|
116
|
-
name: zod_1.z.string(),
|
|
117
|
-
score: zod_1.z.number().min(0).max(1),
|
|
118
|
-
notes: zod_1.z.string().optional(),
|
|
119
|
-
})).default([]),
|
|
120
|
-
/** Was the outcome as expected? */
|
|
121
|
-
met_expectations: zod_1.z.boolean(),
|
|
122
|
-
/** Deviation from expected outcome if any */
|
|
123
|
-
deviation_notes: zod_1.z.string().optional(),
|
|
124
|
-
});
|
|
125
|
-
/**
|
|
126
|
-
* Reflection Agent Input Schema
|
|
127
|
-
*/
|
|
128
|
-
exports.ReflectionInputSchema = zod_1.z.object({
|
|
129
|
-
/** DecisionEvents to analyze (1-100 events) */
|
|
130
|
-
decision_events: zod_1.z.array(decision_event_1.DecisionEventSchema).min(1).max(100),
|
|
131
|
-
/** Optional context about the analysis scope */
|
|
132
|
-
context: zod_1.z.object({
|
|
133
|
-
/** Focus areas for analysis */
|
|
134
|
-
focus_areas: zod_1.z.array(zod_1.z.enum([
|
|
135
|
-
'quality',
|
|
136
|
-
'learning',
|
|
137
|
-
'gaps',
|
|
138
|
-
'outcomes',
|
|
139
|
-
'all',
|
|
140
|
-
])).default(['all']),
|
|
141
|
-
/** Time range context */
|
|
142
|
-
time_range: zod_1.z.object({
|
|
143
|
-
from: zod_1.z.string().datetime().optional(),
|
|
144
|
-
to: zod_1.z.string().datetime().optional(),
|
|
145
|
-
}).optional(),
|
|
146
|
-
/** Specific agents to focus on */
|
|
147
|
-
target_agents: zod_1.z.array(zod_1.z.string()).optional(),
|
|
148
|
-
/** Prior reflections to build upon */
|
|
149
|
-
prior_reflection_refs: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
150
|
-
/** Domain-specific context */
|
|
151
|
-
domain_context: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
152
|
-
}).optional(),
|
|
153
|
-
/** Analysis preferences */
|
|
154
|
-
preferences: zod_1.z.object({
|
|
155
|
-
/** Minimum confidence threshold for signals (0.0 - 1.0) */
|
|
156
|
-
min_confidence: zod_1.z.number().min(0).max(1).default(0.5),
|
|
157
|
-
/** Maximum number of signals to return per category */
|
|
158
|
-
max_signals_per_category: zod_1.z.number().int().positive().max(50).default(10),
|
|
159
|
-
/** Include detailed evidence */
|
|
160
|
-
include_evidence: zod_1.z.boolean().default(true),
|
|
161
|
-
/** Generate cross-event correlations */
|
|
162
|
-
correlate_events: zod_1.z.boolean().default(true),
|
|
163
|
-
}).optional(),
|
|
164
|
-
/** Request ID for tracing */
|
|
165
|
-
request_id: zod_1.z.string().uuid().optional(),
|
|
166
|
-
/** Optional pipeline context for multi-agent orchestration */
|
|
167
|
-
pipeline_context: pipeline_schemas_1.PipelineContextSchema.optional(),
|
|
168
|
-
});
|
|
169
|
-
/**
|
|
170
|
-
* Reflection Agent Output Schema
|
|
171
|
-
*/
|
|
172
|
-
exports.ReflectionOutputSchema = zod_1.z.object({
|
|
173
|
-
/** Unique reflection identifier */
|
|
174
|
-
reflection_id: zod_1.z.string().uuid(),
|
|
175
|
-
/** Number of events analyzed */
|
|
176
|
-
events_analyzed: zod_1.z.number().int().nonnegative(),
|
|
177
|
-
/** Agents covered in analysis */
|
|
178
|
-
agents_analyzed: zod_1.z.array(zod_1.z.string()),
|
|
179
|
-
/** Time range of analyzed events */
|
|
180
|
-
analysis_time_range: zod_1.z.object({
|
|
181
|
-
earliest: zod_1.z.string().datetime(),
|
|
182
|
-
latest: zod_1.z.string().datetime(),
|
|
183
|
-
}),
|
|
184
|
-
/** Outcome evaluations for each analyzed event */
|
|
185
|
-
outcome_evaluations: zod_1.z.array(exports.OutcomeEvaluationSchema),
|
|
186
|
-
/** Extracted quality signals */
|
|
187
|
-
quality_signals: zod_1.z.array(exports.QualitySignalSchema),
|
|
188
|
-
/** Extracted learning signals */
|
|
189
|
-
learning_signals: zod_1.z.array(exports.LearningSignalSchema),
|
|
190
|
-
/** Identified gaps */
|
|
191
|
-
gap_analysis: zod_1.z.array(exports.GapAnalysisSchema),
|
|
192
|
-
/** Cross-event correlations found */
|
|
193
|
-
correlations: zod_1.z.array(zod_1.z.object({
|
|
194
|
-
/** Correlation identifier */
|
|
195
|
-
correlation_id: zod_1.z.string(),
|
|
196
|
-
/** Type of correlation */
|
|
197
|
-
type: zod_1.z.enum(['causal', 'temporal', 'similarity', 'dependency']),
|
|
198
|
-
/** Events involved */
|
|
199
|
-
event_refs: zod_1.z.array(zod_1.z.string().uuid()),
|
|
200
|
-
/** Description of the correlation */
|
|
201
|
-
description: zod_1.z.string(),
|
|
202
|
-
/** Correlation strength (0.0 - 1.0) */
|
|
203
|
-
strength: zod_1.z.number().min(0).max(1),
|
|
204
|
-
})).default([]),
|
|
205
|
-
/** Summary statistics */
|
|
206
|
-
summary: zod_1.z.object({
|
|
207
|
-
/** Overall quality score across all events (0.0 - 1.0) */
|
|
208
|
-
overall_quality_score: zod_1.z.number().min(0).max(1),
|
|
209
|
-
/** Total quality signals extracted */
|
|
210
|
-
total_quality_signals: zod_1.z.number().int().nonnegative(),
|
|
211
|
-
/** Total learning signals extracted */
|
|
212
|
-
total_learning_signals: zod_1.z.number().int().nonnegative(),
|
|
213
|
-
/** Total gaps identified */
|
|
214
|
-
total_gaps: zod_1.z.number().int().nonnegative(),
|
|
215
|
-
/** Events meeting expectations percentage */
|
|
216
|
-
expectations_met_rate: zod_1.z.number().min(0).max(1),
|
|
217
|
-
/** Key findings (informational summaries) */
|
|
218
|
-
key_findings: zod_1.z.array(zod_1.z.string()),
|
|
219
|
-
/** Improvement suggestions (informational only - NOT actionable by this agent) */
|
|
220
|
-
improvement_suggestions: zod_1.z.array(zod_1.z.string()),
|
|
221
|
-
}),
|
|
222
|
-
/** Reflection metadata */
|
|
223
|
-
version: zod_1.z.string().default('1.0.0'),
|
|
224
|
-
});
|
|
225
|
-
//# sourceMappingURL=reflection-schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflection-schemas.js","sourceRoot":"","sources":["../../../../../services/agents/contracts/reflection-schemas.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,6BAAwB;AACxB,yDAA2D;AAC3D,qDAAuD;AAEvD;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,wCAAwC;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE5B,6BAA6B;IAC7B,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC;QACX,aAAa,EAAM,+BAA+B;QAClD,UAAU,EAAS,8BAA8B;QACjD,cAAc,EAAK,gCAAgC;QACnD,aAAa,EAAM,mCAAmC;QACtD,YAAY,EAAO,6BAA6B;QAChD,aAAa,EAAM,+BAA+B;KACnD,CAAC;IAEF,gDAAgD;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAE/B,+CAA+C;IAC/C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE9B,sCAAsC;IACtC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC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
|
-
* and produce structured pipeline execution plans.
|
|
6
|
-
* Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
|
|
7
|
-
* decision_type: objective_decomposition
|
|
8
|
-
*
|
|
9
|
-
* Scope:
|
|
10
|
-
* - Break complex objectives into sub-objectives
|
|
11
|
-
* - Identify sub-objective relationships
|
|
12
|
-
* - Assess decomposition completeness
|
|
13
|
-
* - Produce a pipeline spec (DAG) routing to agents across the 27-domain registry
|
|
14
|
-
*
|
|
15
|
-
* CONSTITUTION COMPLIANCE:
|
|
16
|
-
* ✓ Stateless at runtime
|
|
17
|
-
* ✓ Emits exactly ONE DecisionEvent per invocation
|
|
18
|
-
* ✓ Persists ONLY via ruvector-service
|
|
19
|
-
* ✓ NEVER connects directly to databases
|
|
20
|
-
* ✓ NEVER executes SQL
|
|
21
|
-
* ✓ NEVER modifies runtime behavior
|
|
22
|
-
* ✓ NEVER orchestrates other agents
|
|
23
|
-
* ✓ NEVER enforces policy
|
|
24
|
-
* ✓ NEVER intercepts execution paths
|
|
25
|
-
*
|
|
26
|
-
* Must Never:
|
|
27
|
-
* - Execute sub-objectives
|
|
28
|
-
* - Assign agents
|
|
29
|
-
* - Allocate resources
|
|
30
|
-
* - Schedule execution
|
|
31
|
-
*/
|
|
32
|
-
import { BaseAgent, AgentMetadata, AgentResult, DecomposerInput, DecomposerOutput } from '../contracts';
|
|
33
|
-
import { RuvectorPersistence } from '../planner/ruvector-persistence';
|
|
34
|
-
import { Telemetry } from '../planner/telemetry';
|
|
35
|
-
/**
|
|
36
|
-
* Decomposer Agent Implementation
|
|
37
|
-
*
|
|
38
|
-
* This agent analyzes complex objectives and produces:
|
|
39
|
-
* 1. Structured sub-objectives (legacy output, always produced)
|
|
40
|
-
* 2. A pipeline_spec — a DAG of steps routed across the 27-domain registry
|
|
41
|
-
*
|
|
42
|
-
* It is purely analytical - it NEVER executes, assigns, or schedules anything.
|
|
43
|
-
*/
|
|
44
|
-
export declare class DecomposerAgent implements BaseAgent<DecomposerInput, DecomposerOutput> {
|
|
45
|
-
readonly metadata: AgentMetadata;
|
|
46
|
-
private readonly persistence;
|
|
47
|
-
private readonly telemetry;
|
|
48
|
-
constructor(persistence: RuvectorPersistence, telemetry: Telemetry);
|
|
49
|
-
/**
|
|
50
|
-
* Validate input against DecomposerInputSchema
|
|
51
|
-
*/
|
|
52
|
-
validateInput(input: unknown): DecomposerInput;
|
|
53
|
-
/**
|
|
54
|
-
* Invoke the decomposer agent
|
|
55
|
-
*
|
|
56
|
-
* DETERMINISTIC: Same input always produces same output structure
|
|
57
|
-
* STATELESS: No internal state modified
|
|
58
|
-
* NON-BLOCKING: Fully async
|
|
59
|
-
*/
|
|
60
|
-
invoke(input: DecomposerInput, executionRef: string): Promise<AgentResult>;
|
|
61
|
-
/**
|
|
62
|
-
* Build a structured pipeline spec (DAG) from the objective.
|
|
63
|
-
*
|
|
64
|
-
* Analyses the query text to select domains and agents from the
|
|
65
|
-
* 27-domain registry. Produces an ordered list of steps where
|
|
66
|
-
* `input_from` expresses data-flow dependencies.
|
|
67
|
-
*/
|
|
68
|
-
private buildPipelineSpec;
|
|
69
|
-
/**
|
|
70
|
-
* Decompose objective into sub-objectives
|
|
71
|
-
*
|
|
72
|
-
* This is the core decomposition logic - purely analytical.
|
|
73
|
-
* NEVER executes, assigns agents, or schedules anything.
|
|
74
|
-
*/
|
|
75
|
-
private decompose;
|
|
76
|
-
/**
|
|
77
|
-
* Extract sub-objectives from the objective using pattern-based analysis
|
|
78
|
-
*/
|
|
79
|
-
private extractSubObjectives;
|
|
80
|
-
/**
|
|
81
|
-
* Build tree structure (parent -> children) from sub-objectives
|
|
82
|
-
*/
|
|
83
|
-
private buildTreeStructure;
|
|
84
|
-
/**
|
|
85
|
-
* Build dependency graph as adjacency list
|
|
86
|
-
*/
|
|
87
|
-
private buildDependencyGraph;
|
|
88
|
-
/**
|
|
89
|
-
* Calculate complexity distribution
|
|
90
|
-
*/
|
|
91
|
-
private calculateComplexityDistribution;
|
|
92
|
-
/**
|
|
93
|
-
* Assess how well the sub-objectives cover the original objective
|
|
94
|
-
*/
|
|
95
|
-
private assessCoverage;
|
|
96
|
-
/**
|
|
97
|
-
* Summarize objective for output
|
|
98
|
-
*/
|
|
99
|
-
private summarize;
|
|
100
|
-
/**
|
|
101
|
-
* Extract assumptions made during decomposition
|
|
102
|
-
*/
|
|
103
|
-
private extractAssumptions;
|
|
104
|
-
/**
|
|
105
|
-
* Calculate confidence score based on decomposition quality
|
|
106
|
-
*/
|
|
107
|
-
private calculateConfidence;
|
|
108
|
-
/**
|
|
109
|
-
* Get constraints applied during decomposition
|
|
110
|
-
*/
|
|
111
|
-
private getAppliedConstraints;
|
|
112
|
-
/**
|
|
113
|
-
* Classify error for proper error code
|
|
114
|
-
*/
|
|
115
|
-
private classifyError;
|
|
116
|
-
/**
|
|
117
|
-
* Helper: Check if text contains any of the keywords
|
|
118
|
-
*/
|
|
119
|
-
private containsAny;
|
|
120
|
-
}
|