@llm-dev-ops/agentics-cli 1.4.53 → 1.4.55
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/dist/bundled-agents/connector-hub-agents/package-lock.json +11697 -0
- package/dist/bundled-agents/connector-hub-agents/package.json +75 -0
- package/dist/bundled-agents/connector-hub-agents/tsconfig.build.json +22 -0
- package/dist/bundled-agents/connector-hub-agents/tsconfig.json +57 -0
- package/dist/bundled-agents/copilot-agents/functions/.gcloudignore +17 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.d.ts +14 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js +35 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.d.ts +55 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js +40 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.d.ts +22 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js +38 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.d.ts +34 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js +186 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.d.ts +36 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js +121 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.d.ts +157 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js +948 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.d.ts +9 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js +27 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js +50 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.d.ts +214 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js +91 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.d.ts +1166 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js +308 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.d.ts +59 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js +62 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.d.ts +400 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js +113 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.d.ts +250 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js +169 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.d.ts +17 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js +97 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js +246 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.d.ts +1085 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js +218 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.d.ts +949 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js +253 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.d.ts +657 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js +205 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.d.ts +285 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js +106 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.d.ts +581 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js +136 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.d.ts +791 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js +225 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.d.ts +120 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js +535 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.d.ts +9 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js +18 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.d.ts +4 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js +9 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.d.ts +10 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.d.ts +6 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js +15 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.d.ts +73 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js +192 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.d.ts +127 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js +483 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.d.ts +49 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js +125 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.d.ts +73 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js +192 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js +27 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.d.ts +122 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js +645 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.d.ts +59 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js +156 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.d.ts +88 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js +246 -0
- package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/index.js +4 -0
- package/dist/bundled-agents/copilot-agents/functions/jest.config.js +29 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.d.ts +14 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js +35 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.d.ts +27 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js +21 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.d.ts +22 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js +38 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.d.ts +34 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js +174 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.d.ts +27 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js +107 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.d.ts +157 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js +941 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.d.ts +9 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js +27 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js +50 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.d.ts +185 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js +86 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.d.ts +1081 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js +305 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.d.ts +59 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js +62 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.d.ts +315 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js +110 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.d.ts +250 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js +169 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.d.ts +16 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js +88 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js +246 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.d.ts +1000 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js +215 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.d.ts +864 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js +250 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.d.ts +572 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js +202 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.d.ts +496 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js +133 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.d.ts +706 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js +222 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.d.ts +107 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js +360 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.d.ts +9 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js +18 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.d.ts +4 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js +9 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.d.ts +10 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.d.ts +6 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js +15 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.d.ts +73 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js +192 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js +25 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.d.ts +119 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js +421 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.d.ts +49 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js +125 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.d.ts +73 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js +192 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.d.ts +11 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js +27 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.d.ts +122 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js +645 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.d.ts +59 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js +156 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.d.ts +88 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js +246 -0
- package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js.map +1 -0
- package/dist/bundled-agents/copilot-agents/functions/package-lock.json +5473 -0
- package/dist/bundled-agents/copilot-agents/functions/package.json +40 -0
- package/dist/bundled-agents/copilot-agents/functions/src/claude.ts +71 -0
- package/dist/bundled-agents/copilot-agents/functions/src/cors.ts +36 -0
- package/dist/bundled-agents/copilot-agents/functions/src/envelope.ts +77 -0
- package/dist/bundled-agents/copilot-agents/functions/src/handler.test.ts +340 -0
- package/dist/bundled-agents/copilot-agents/functions/src/health.ts +53 -0
- package/dist/bundled-agents/copilot-agents/functions/src/index.ts +201 -0
- package/dist/bundled-agents/copilot-agents/functions/src/router.ts +148 -0
- package/dist/bundled-agents/copilot-agents/functions/tsconfig.json +31 -0
- package/dist/bundled-agents/copilot-agents/package-lock.json +11825 -0
- package/dist/bundled-agents/copilot-agents/package.json +5 -0
- package/dist/bundled-agents/governance-dashboard-agents/package-lock.json +8282 -0
- package/dist/bundled-agents/governance-dashboard-agents/package.json +13 -0
- package/dist/bundled-agents/orchestrator-agents/functions/contracts/index.js +590 -0
- package/dist/bundled-agents/orchestrator-agents/functions/index.js +442 -0
- package/dist/bundled-agents/orchestrator-agents/functions/test.js +325 -0
- package/dist/bundled-agents/orchestrator-agents/index.js +6 -0
- package/dist/bundled-agents/orchestrator-agents/package-lock.json +13254 -0
- package/dist/bundled-agents/orchestrator-agents/package.json +20 -0
- package/dist/bundled-agents/platform-agents/package-lock.json +1723 -0
- package/dist/bundled-agents/platform-agents/package.json +22 -0
- package/dist/bundled-agents/platform-agents/src/agents/decision-memo.ts +463 -0
- package/dist/bundled-agents/platform-agents/src/agents/decision.ts +234 -0
- package/dist/bundled-agents/platform-agents/src/agents/executive-summary.ts +229 -0
- package/dist/bundled-agents/platform-agents/src/agents/risk-score.ts +327 -0
- package/dist/bundled-agents/platform-agents/src/claude.ts +71 -0
- package/dist/bundled-agents/platform-agents/src/cors.ts +24 -0
- package/dist/bundled-agents/platform-agents/src/envelope.ts +37 -0
- package/dist/bundled-agents/platform-agents/src/health.ts +20 -0
- package/dist/bundled-agents/platform-agents/src/index.ts +171 -0
- package/dist/bundled-agents/platform-agents/src/router.ts +38 -0
- package/dist/bundled-agents/platform-agents/src/text-analysis.ts +238 -0
- package/dist/bundled-agents/platform-agents/tsconfig.json +19 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts +3 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js +43 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts +3 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js +30 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts +3 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js +53 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts +3 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js +51 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts +3 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js +36 -0
- package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/index.d.ts +2 -0
- package/dist/bundled-agents/sentinel-agents/lib/index.d.ts.map +1 -0
- package/dist/bundled-agents/sentinel-agents/lib/index.js +70 -0
- package/dist/bundled-agents/sentinel-agents/lib/index.js.map +1 -0
- package/dist/bundled-agents/sentinel-agents/package-lock.json +12591 -0
- package/dist/bundled-agents/sentinel-agents/package.json +62 -0
- package/dist/bundled-agents/sentinel-agents/src/agents/alert.ts +46 -0
- package/dist/bundled-agents/sentinel-agents/src/agents/anomaly.ts +33 -0
- package/dist/bundled-agents/sentinel-agents/src/agents/correlation.ts +56 -0
- package/dist/bundled-agents/sentinel-agents/src/agents/drift.ts +54 -0
- package/dist/bundled-agents/sentinel-agents/src/agents/rca.ts +38 -0
- package/dist/bundled-agents/sentinel-agents/src/claude.ts +71 -0
- package/dist/bundled-agents/sentinel-agents/src/index.ts +77 -0
- package/dist/bundled-agents/sentinel-agents/tsconfig.json +20 -0
- package/dist/pipeline/auto-chain.d.ts.map +1 -1
- package/dist/pipeline/auto-chain.js +52 -0
- package/dist/pipeline/auto-chain.js.map +1 -1
- package/dist/pipeline/phase2/phases/ddd-generator.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/ddd-generator.js +194 -2
- package/dist/pipeline/phase2/phases/ddd-generator.js.map +1 -1
- package/dist/pipeline/phase2/phases/sparc-specification.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/sparc-specification.js +42 -33
- package/dist/pipeline/phase2/phases/sparc-specification.js.map +1 -1
- package/dist/pipeline/phase3/phases/domain-codegen.d.ts.map +1 -1
- package/dist/pipeline/phase3/phases/domain-codegen.js +438 -0
- package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,225 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,gDAA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,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;KAC7C,CAAC;IAEF,0BAA0B;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decomposer Agent
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Decompose complex objectives into manageable sub-objectives
|
|
5
|
+
* 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
|
+
}
|