@llm-dev-ops/agentics-cli 1.4.52 → 1.4.54
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 +15 -1
- 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 +9 -0
- 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 +41 -0
- package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
- package/dist/pipeline/ruflo-phase-executor.d.ts.map +1 -1
- package/dist/pipeline/ruflo-phase-executor.js +109 -19
- package/dist/pipeline/ruflo-phase-executor.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Config Validation Agent Schemas
|
|
4
|
+
*
|
|
5
|
+
* Purpose: Validate configuration artifacts for structural and semantic correctness
|
|
6
|
+
* Classification: CONFIGURATION_VALIDATION, STATIC_ANALYSIS
|
|
7
|
+
* decision_type: config_validation
|
|
8
|
+
*
|
|
9
|
+
* Scope:
|
|
10
|
+
* - Validate schemas
|
|
11
|
+
* - Validate semantic constraints
|
|
12
|
+
* - Detect missing, conflicting, deprecated, or unsafe values
|
|
13
|
+
* - Assess configuration readiness
|
|
14
|
+
*
|
|
15
|
+
* Must Never:
|
|
16
|
+
* - Modify configuration
|
|
17
|
+
* - Apply defaults
|
|
18
|
+
* - Auto-fix values
|
|
19
|
+
* - Enforce policy
|
|
20
|
+
* - Block execution
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.ConfigValidationOutputSchema = exports.ConfigValidationInputSchema = exports.ReadinessAssessmentSchema = exports.MissingConfigSchema = exports.ConfigConflictSchema = exports.UnsafeConfigSchema = exports.DeprecatedValueSchema = exports.SemanticConstraintSchema = exports.SchemaValidationResultSchema = exports.ValidationFindingSchema = exports.ValidationCategory = exports.ValidationSeverity = void 0;
|
|
24
|
+
const zod_1 = require("zod");
|
|
25
|
+
/**
|
|
26
|
+
* Severity levels for validation findings
|
|
27
|
+
*/
|
|
28
|
+
exports.ValidationSeverity = {
|
|
29
|
+
INFO: 'info',
|
|
30
|
+
WARNING: 'warning',
|
|
31
|
+
ERROR: 'error',
|
|
32
|
+
CRITICAL: 'critical',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Categories of validation issues
|
|
36
|
+
*/
|
|
37
|
+
exports.ValidationCategory = {
|
|
38
|
+
SCHEMA: 'schema',
|
|
39
|
+
SEMANTIC: 'semantic',
|
|
40
|
+
MISSING: 'missing',
|
|
41
|
+
CONFLICT: 'conflict',
|
|
42
|
+
DEPRECATED: 'deprecated',
|
|
43
|
+
UNSAFE: 'unsafe',
|
|
44
|
+
TYPE_MISMATCH: 'type_mismatch',
|
|
45
|
+
CONSTRAINT: 'constraint',
|
|
46
|
+
COMPATIBILITY: 'compatibility',
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Single validation finding
|
|
50
|
+
*/
|
|
51
|
+
exports.ValidationFindingSchema = zod_1.z.object({
|
|
52
|
+
/** Unique finding identifier */
|
|
53
|
+
finding_id: zod_1.z.string().min(1),
|
|
54
|
+
/** Category of the issue */
|
|
55
|
+
category: zod_1.z.enum([
|
|
56
|
+
'schema',
|
|
57
|
+
'semantic',
|
|
58
|
+
'missing',
|
|
59
|
+
'conflict',
|
|
60
|
+
'deprecated',
|
|
61
|
+
'unsafe',
|
|
62
|
+
'type_mismatch',
|
|
63
|
+
'constraint',
|
|
64
|
+
'compatibility',
|
|
65
|
+
]),
|
|
66
|
+
/** Severity level */
|
|
67
|
+
severity: zod_1.z.enum(['info', 'warning', 'error', 'critical']),
|
|
68
|
+
/** JSON path to the problematic value */
|
|
69
|
+
path: zod_1.z.string(),
|
|
70
|
+
/** Human-readable description of the issue */
|
|
71
|
+
message: zod_1.z.string().min(1),
|
|
72
|
+
/** The actual value found (if applicable) */
|
|
73
|
+
actual_value: zod_1.z.unknown().optional(),
|
|
74
|
+
/** Expected value or type (if applicable) */
|
|
75
|
+
expected: zod_1.z.string().optional(),
|
|
76
|
+
/** Related paths that contribute to this finding */
|
|
77
|
+
related_paths: zod_1.z.array(zod_1.z.string()).default([]),
|
|
78
|
+
/** Documentation reference for this issue */
|
|
79
|
+
doc_reference: zod_1.z.string().optional(),
|
|
80
|
+
/** Tags for categorization */
|
|
81
|
+
tags: zod_1.z.array(zod_1.z.string()).default([]),
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Schema validation result
|
|
85
|
+
*/
|
|
86
|
+
exports.SchemaValidationResultSchema = zod_1.z.object({
|
|
87
|
+
/** Whether schema validation passed */
|
|
88
|
+
valid: zod_1.z.boolean(),
|
|
89
|
+
/** Schema that was validated against */
|
|
90
|
+
schema_id: zod_1.z.string().optional(),
|
|
91
|
+
/** Schema version */
|
|
92
|
+
schema_version: zod_1.z.string().optional(),
|
|
93
|
+
/** Findings from schema validation */
|
|
94
|
+
findings: zod_1.z.array(exports.ValidationFindingSchema),
|
|
95
|
+
});
|
|
96
|
+
/**
|
|
97
|
+
* Semantic constraint check
|
|
98
|
+
*/
|
|
99
|
+
exports.SemanticConstraintSchema = zod_1.z.object({
|
|
100
|
+
/** Constraint identifier */
|
|
101
|
+
constraint_id: zod_1.z.string().min(1),
|
|
102
|
+
/** Human-readable constraint name */
|
|
103
|
+
name: zod_1.z.string().min(1),
|
|
104
|
+
/** Description of what this constraint checks */
|
|
105
|
+
description: zod_1.z.string(),
|
|
106
|
+
/** Whether the constraint passed */
|
|
107
|
+
passed: zod_1.z.boolean(),
|
|
108
|
+
/** Paths involved in this constraint */
|
|
109
|
+
paths: zod_1.z.array(zod_1.z.string()),
|
|
110
|
+
/** Details if constraint failed */
|
|
111
|
+
failure_detail: zod_1.z.string().optional(),
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Deprecated value detection
|
|
115
|
+
*/
|
|
116
|
+
exports.DeprecatedValueSchema = zod_1.z.object({
|
|
117
|
+
/** Path to deprecated value */
|
|
118
|
+
path: zod_1.z.string(),
|
|
119
|
+
/** The deprecated value */
|
|
120
|
+
value: zod_1.z.unknown(),
|
|
121
|
+
/** When it was deprecated */
|
|
122
|
+
deprecated_since: zod_1.z.string().optional(),
|
|
123
|
+
/** When it will be removed */
|
|
124
|
+
removal_version: zod_1.z.string().optional(),
|
|
125
|
+
/** Suggested replacement (informational only, NOT applied) */
|
|
126
|
+
suggested_replacement: zod_1.z.string().optional(),
|
|
127
|
+
/** Migration documentation */
|
|
128
|
+
migration_guide: zod_1.z.string().optional(),
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* Unsafe configuration detection
|
|
132
|
+
*/
|
|
133
|
+
exports.UnsafeConfigSchema = zod_1.z.object({
|
|
134
|
+
/** Path to unsafe configuration */
|
|
135
|
+
path: zod_1.z.string(),
|
|
136
|
+
/** The unsafe value */
|
|
137
|
+
value: zod_1.z.unknown(),
|
|
138
|
+
/** Type of security concern */
|
|
139
|
+
concern_type: zod_1.z.enum([
|
|
140
|
+
'hardcoded_secret',
|
|
141
|
+
'weak_encryption',
|
|
142
|
+
'insecure_protocol',
|
|
143
|
+
'overly_permissive',
|
|
144
|
+
'missing_authentication',
|
|
145
|
+
'exposed_endpoint',
|
|
146
|
+
'debug_enabled',
|
|
147
|
+
'verbose_logging',
|
|
148
|
+
'other',
|
|
149
|
+
]),
|
|
150
|
+
/** Severity of the security concern */
|
|
151
|
+
severity: zod_1.z.enum(['low', 'medium', 'high', 'critical']),
|
|
152
|
+
/** Description of the risk */
|
|
153
|
+
risk_description: zod_1.z.string(),
|
|
154
|
+
/** CWE reference if applicable */
|
|
155
|
+
cwe_reference: zod_1.z.string().optional(),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Configuration conflict
|
|
159
|
+
*/
|
|
160
|
+
exports.ConfigConflictSchema = zod_1.z.object({
|
|
161
|
+
/** Conflict identifier */
|
|
162
|
+
conflict_id: zod_1.z.string().min(1),
|
|
163
|
+
/** Type of conflict */
|
|
164
|
+
conflict_type: zod_1.z.enum([
|
|
165
|
+
'mutually_exclusive',
|
|
166
|
+
'dependency_missing',
|
|
167
|
+
'circular_reference',
|
|
168
|
+
'value_incompatibility',
|
|
169
|
+
'version_mismatch',
|
|
170
|
+
]),
|
|
171
|
+
/** Paths involved in the conflict */
|
|
172
|
+
conflicting_paths: zod_1.z.array(zod_1.z.string()).min(2),
|
|
173
|
+
/** Description of the conflict */
|
|
174
|
+
description: zod_1.z.string(),
|
|
175
|
+
/** Severity */
|
|
176
|
+
severity: zod_1.z.enum(['warning', 'error', 'critical']),
|
|
177
|
+
});
|
|
178
|
+
/**
|
|
179
|
+
* Missing required configuration
|
|
180
|
+
*/
|
|
181
|
+
exports.MissingConfigSchema = zod_1.z.object({
|
|
182
|
+
/** Path where value is missing */
|
|
183
|
+
path: zod_1.z.string(),
|
|
184
|
+
/** Expected type */
|
|
185
|
+
expected_type: zod_1.z.string(),
|
|
186
|
+
/** Whether this is required or recommended */
|
|
187
|
+
requirement_level: zod_1.z.enum(['required', 'recommended', 'optional_but_advised']),
|
|
188
|
+
/** Description of what this config does */
|
|
189
|
+
description: zod_1.z.string(),
|
|
190
|
+
/** Default that would be used if not specified (informational) */
|
|
191
|
+
implicit_default: zod_1.z.unknown().optional(),
|
|
192
|
+
});
|
|
193
|
+
/**
|
|
194
|
+
* Readiness assessment
|
|
195
|
+
*/
|
|
196
|
+
exports.ReadinessAssessmentSchema = zod_1.z.object({
|
|
197
|
+
/** Overall readiness status */
|
|
198
|
+
status: zod_1.z.enum(['ready', 'ready_with_warnings', 'not_ready', 'critical_issues']),
|
|
199
|
+
/** Readiness score (0.0 - 1.0) */
|
|
200
|
+
score: zod_1.z.number().min(0).max(1),
|
|
201
|
+
/** Breakdown by category */
|
|
202
|
+
category_scores: zod_1.z.record(zod_1.z.number()),
|
|
203
|
+
/** Blocking issues that prevent readiness */
|
|
204
|
+
blocking_issues: zod_1.z.array(zod_1.z.string()),
|
|
205
|
+
/** Non-blocking warnings */
|
|
206
|
+
warnings: zod_1.z.array(zod_1.z.string()),
|
|
207
|
+
/** Recommendations (informational only) */
|
|
208
|
+
recommendations: zod_1.z.array(zod_1.z.string()),
|
|
209
|
+
});
|
|
210
|
+
/**
|
|
211
|
+
* Config Validation Agent Input Schema
|
|
212
|
+
*/
|
|
213
|
+
exports.ConfigValidationInputSchema = zod_1.z.object({
|
|
214
|
+
/** The configuration to validate (JSON/YAML parsed to object) */
|
|
215
|
+
config: zod_1.z.record(zod_1.z.unknown()),
|
|
216
|
+
/** Configuration format */
|
|
217
|
+
format: zod_1.z.enum(['json', 'yaml', 'toml', 'env', 'unknown']).default('unknown'),
|
|
218
|
+
/** Optional schema to validate against */
|
|
219
|
+
schema: zod_1.z.object({
|
|
220
|
+
/** Schema content or reference */
|
|
221
|
+
content: zod_1.z.unknown().optional(),
|
|
222
|
+
/** Schema URI/ID */
|
|
223
|
+
uri: zod_1.z.string().optional(),
|
|
224
|
+
/** Schema format */
|
|
225
|
+
format: zod_1.z.enum(['json-schema', 'zod', 'yup', 'joi', 'custom']).optional(),
|
|
226
|
+
}).optional(),
|
|
227
|
+
/** Configuration context */
|
|
228
|
+
context: zod_1.z.object({
|
|
229
|
+
/** Environment (dev, staging, prod) */
|
|
230
|
+
environment: zod_1.z.string().optional(),
|
|
231
|
+
/** Application name */
|
|
232
|
+
application: zod_1.z.string().optional(),
|
|
233
|
+
/** Version being validated */
|
|
234
|
+
version: zod_1.z.string().optional(),
|
|
235
|
+
/** Known deprecated keys to check */
|
|
236
|
+
deprecated_keys: zod_1.z.array(zod_1.z.string()).optional(),
|
|
237
|
+
/** Custom semantic constraints */
|
|
238
|
+
constraints: zod_1.z.array(zod_1.z.object({
|
|
239
|
+
name: zod_1.z.string(),
|
|
240
|
+
description: zod_1.z.string(),
|
|
241
|
+
check: zod_1.z.string(), // JSONPath or simple expression
|
|
242
|
+
})).optional(),
|
|
243
|
+
}).optional(),
|
|
244
|
+
/** Validation options */
|
|
245
|
+
options: zod_1.z.object({
|
|
246
|
+
/** Check for deprecated values */
|
|
247
|
+
check_deprecated: zod_1.z.boolean().default(true),
|
|
248
|
+
/** Check for security issues */
|
|
249
|
+
check_security: zod_1.z.boolean().default(true),
|
|
250
|
+
/** Check for conflicts */
|
|
251
|
+
check_conflicts: zod_1.z.boolean().default(true),
|
|
252
|
+
/** Check for missing required values */
|
|
253
|
+
check_missing: zod_1.z.boolean().default(true),
|
|
254
|
+
/** Strict mode (treat warnings as errors) */
|
|
255
|
+
strict: zod_1.z.boolean().default(false),
|
|
256
|
+
}).optional(),
|
|
257
|
+
/** Request ID for tracing */
|
|
258
|
+
request_id: zod_1.z.string().uuid().optional(),
|
|
259
|
+
});
|
|
260
|
+
/**
|
|
261
|
+
* Config Validation Agent Output Schema
|
|
262
|
+
*/
|
|
263
|
+
exports.ConfigValidationOutputSchema = zod_1.z.object({
|
|
264
|
+
/** Validation result ID */
|
|
265
|
+
validation_id: zod_1.z.string().uuid(),
|
|
266
|
+
/** Overall validation passed/failed */
|
|
267
|
+
valid: zod_1.z.boolean(),
|
|
268
|
+
/** Schema validation results */
|
|
269
|
+
schema_validation: exports.SchemaValidationResultSchema,
|
|
270
|
+
/** Semantic constraint results */
|
|
271
|
+
semantic_constraints: zod_1.z.array(exports.SemanticConstraintSchema),
|
|
272
|
+
/** All validation findings */
|
|
273
|
+
findings: zod_1.z.array(exports.ValidationFindingSchema),
|
|
274
|
+
/** Detected deprecated values */
|
|
275
|
+
deprecated_values: zod_1.z.array(exports.DeprecatedValueSchema),
|
|
276
|
+
/** Detected unsafe configurations */
|
|
277
|
+
unsafe_configs: zod_1.z.array(exports.UnsafeConfigSchema),
|
|
278
|
+
/** Detected conflicts */
|
|
279
|
+
conflicts: zod_1.z.array(exports.ConfigConflictSchema),
|
|
280
|
+
/** Missing configurations */
|
|
281
|
+
missing_configs: zod_1.z.array(exports.MissingConfigSchema),
|
|
282
|
+
/** Readiness assessment */
|
|
283
|
+
readiness: exports.ReadinessAssessmentSchema,
|
|
284
|
+
/** Summary statistics */
|
|
285
|
+
summary: zod_1.z.object({
|
|
286
|
+
total_findings: zod_1.z.number().int().nonnegative(),
|
|
287
|
+
by_severity: zod_1.z.object({
|
|
288
|
+
critical: zod_1.z.number().int().nonnegative(),
|
|
289
|
+
error: zod_1.z.number().int().nonnegative(),
|
|
290
|
+
warning: zod_1.z.number().int().nonnegative(),
|
|
291
|
+
info: zod_1.z.number().int().nonnegative(),
|
|
292
|
+
}),
|
|
293
|
+
by_category: zod_1.z.record(zod_1.z.number()),
|
|
294
|
+
paths_checked: zod_1.z.number().int().nonnegative(),
|
|
295
|
+
constraints_checked: zod_1.z.number().int().nonnegative(),
|
|
296
|
+
}),
|
|
297
|
+
/** Validation metadata */
|
|
298
|
+
metadata: zod_1.z.object({
|
|
299
|
+
config_hash: zod_1.z.string(),
|
|
300
|
+
validated_at: zod_1.z.string().datetime(),
|
|
301
|
+
validation_duration_ms: zod_1.z.number(),
|
|
302
|
+
schema_used: zod_1.z.string().optional(),
|
|
303
|
+
}),
|
|
304
|
+
});
|
|
305
|
+
//# sourceMappingURL=config-validation-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-validation-schemas.js","sourceRoot":"","sources":["../../../../../services/agents/contracts/config-validation-schemas.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,6BAAwB;AAExB;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;CACtB,CAAC;AAIX;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,gCAAgC;IAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7B,4BAA4B;IAC5B,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC;QACf,QAAQ;QACR,UAAU;QACV,SAAS;QACT,UAAU;QACV,YAAY;QACZ,QAAQ;QACR,eAAe;QACf,YAAY;QACZ,eAAe;KAChB,CAAC;IAEF,qBAAqB;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAE1D,yCAAyC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAEhB,8CAA8C;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E,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;YACrC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;YACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;QACF,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QACjC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QAC7C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACpD,CAAC;IAEF,0BAA0B;IAC1B,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE;QAClC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentics Global Agent Constitution - Decision Event Contract
|
|
3
|
+
*
|
|
4
|
+
* ALL agents MUST emit exactly ONE DecisionEvent per invocation.
|
|
5
|
+
* This is the canonical schema for agent outputs.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Decision Event Schema - Required fields per constitution
|
|
10
|
+
*/
|
|
11
|
+
export declare const DecisionEventSchema: z.ZodObject<{
|
|
12
|
+
/** Unique identifier for the agent */
|
|
13
|
+
agent_id: z.ZodString;
|
|
14
|
+
/** Semantic version of the agent */
|
|
15
|
+
agent_version: z.ZodString;
|
|
16
|
+
/** Type of decision made by this agent */
|
|
17
|
+
decision_type: z.ZodString;
|
|
18
|
+
/** SHA-256 hash of inputs for determinism verification */
|
|
19
|
+
inputs_hash: z.ZodString;
|
|
20
|
+
/** Agent outputs - structure varies by decision_type */
|
|
21
|
+
outputs: z.ZodUnknown;
|
|
22
|
+
/** Confidence score (0.0 - 1.0) */
|
|
23
|
+
confidence: z.ZodNumber;
|
|
24
|
+
/** Constraints applied during decision-making */
|
|
25
|
+
constraints_applied: z.ZodArray<z.ZodString, "many">;
|
|
26
|
+
/** Reference ID for execution tracing */
|
|
27
|
+
execution_ref: z.ZodString;
|
|
28
|
+
/** UTC timestamp of decision */
|
|
29
|
+
timestamp: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
agent_id: string;
|
|
32
|
+
agent_version: string;
|
|
33
|
+
decision_type: string;
|
|
34
|
+
inputs_hash: string;
|
|
35
|
+
confidence: number;
|
|
36
|
+
constraints_applied: string[];
|
|
37
|
+
execution_ref: string;
|
|
38
|
+
timestamp: string;
|
|
39
|
+
outputs?: unknown;
|
|
40
|
+
}, {
|
|
41
|
+
agent_id: string;
|
|
42
|
+
agent_version: string;
|
|
43
|
+
decision_type: string;
|
|
44
|
+
inputs_hash: string;
|
|
45
|
+
confidence: number;
|
|
46
|
+
constraints_applied: string[];
|
|
47
|
+
execution_ref: string;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
outputs?: unknown;
|
|
50
|
+
}>;
|
|
51
|
+
export type DecisionEvent = z.infer<typeof DecisionEventSchema>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a deterministic hash of inputs for reproducibility verification
|
|
54
|
+
*/
|
|
55
|
+
export declare function hashInputs(inputs: unknown): string;
|
|
56
|
+
/**
|
|
57
|
+
* Validate and create a DecisionEvent
|
|
58
|
+
*/
|
|
59
|
+
export declare function createDecisionEvent(agentId: string, agentVersion: string, decisionType: string, inputs: unknown, outputs: unknown, confidence: number, constraintsApplied: string[], executionRef: string): DecisionEvent;
|
package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Agentics Global Agent Constitution - Decision Event Contract
|
|
4
|
+
*
|
|
5
|
+
* ALL agents MUST emit exactly ONE DecisionEvent per invocation.
|
|
6
|
+
* This is the canonical schema for agent outputs.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.DecisionEventSchema = void 0;
|
|
10
|
+
exports.hashInputs = hashInputs;
|
|
11
|
+
exports.createDecisionEvent = createDecisionEvent;
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
|
+
const crypto_1 = require("crypto");
|
|
14
|
+
/**
|
|
15
|
+
* Decision Event Schema - Required fields per constitution
|
|
16
|
+
*/
|
|
17
|
+
exports.DecisionEventSchema = zod_1.z.object({
|
|
18
|
+
/** Unique identifier for the agent */
|
|
19
|
+
agent_id: zod_1.z.string().min(1),
|
|
20
|
+
/** Semantic version of the agent */
|
|
21
|
+
agent_version: zod_1.z.string().regex(/^\d+\.\d+\.\d+$/),
|
|
22
|
+
/** Type of decision made by this agent */
|
|
23
|
+
decision_type: zod_1.z.string().min(1),
|
|
24
|
+
/** SHA-256 hash of inputs for determinism verification */
|
|
25
|
+
inputs_hash: zod_1.z.string().length(64),
|
|
26
|
+
/** Agent outputs - structure varies by decision_type */
|
|
27
|
+
outputs: zod_1.z.unknown(),
|
|
28
|
+
/** Confidence score (0.0 - 1.0) */
|
|
29
|
+
confidence: zod_1.z.number().min(0).max(1),
|
|
30
|
+
/** Constraints applied during decision-making */
|
|
31
|
+
constraints_applied: zod_1.z.array(zod_1.z.string()),
|
|
32
|
+
/** Reference ID for execution tracing */
|
|
33
|
+
execution_ref: zod_1.z.string().uuid(),
|
|
34
|
+
/** UTC timestamp of decision */
|
|
35
|
+
timestamp: zod_1.z.string().datetime(),
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Create a deterministic hash of inputs for reproducibility verification
|
|
39
|
+
*/
|
|
40
|
+
function hashInputs(inputs) {
|
|
41
|
+
const normalized = JSON.stringify(inputs, Object.keys(inputs).sort());
|
|
42
|
+
return (0, crypto_1.createHash)('sha256').update(normalized).digest('hex');
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validate and create a DecisionEvent
|
|
46
|
+
*/
|
|
47
|
+
function createDecisionEvent(agentId, agentVersion, decisionType, inputs, outputs, confidence, constraintsApplied, executionRef) {
|
|
48
|
+
const event = {
|
|
49
|
+
agent_id: agentId,
|
|
50
|
+
agent_version: agentVersion,
|
|
51
|
+
decision_type: decisionType,
|
|
52
|
+
inputs_hash: hashInputs(inputs),
|
|
53
|
+
outputs,
|
|
54
|
+
confidence,
|
|
55
|
+
constraints_applied: constraintsApplied,
|
|
56
|
+
execution_ref: executionRef,
|
|
57
|
+
timestamp: new Date().toISOString(),
|
|
58
|
+
};
|
|
59
|
+
// Validate against schema
|
|
60
|
+
return exports.DecisionEventSchema.parse(event);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=decision-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decision-event.js","sourceRoot":"","sources":["../../../../../services/agents/contracts/decision-event.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA0CH,gCAGC;AAKD,kDAwBC;AAxED,6BAAwB;AACxB,mCAAoC;AAEpC;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,sCAAsC;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE3B,oCAAoC;IACpC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;IAElD,0CAA0C;IAC1C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEhC,0DAA0D;I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