@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,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared text-analysis utilities used by all agents in heuristic (no-API-key) mode.
|
|
3
|
+
* Extracts structured information from the objective string so that agents can
|
|
4
|
+
* produce contextual, domain-specific output instead of canned responses.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export interface TextAnalysis {
|
|
8
|
+
/** Key topics / noun-phrases extracted from the objective */
|
|
9
|
+
topics: string[];
|
|
10
|
+
/** Primary domain: technology | business | operations | compliance | strategy */
|
|
11
|
+
domain: string;
|
|
12
|
+
/** Action type: migration | implementation | evaluation | optimization | transformation | integration | general */
|
|
13
|
+
actionType: string;
|
|
14
|
+
/** Named entities (technologies, products, standards) */
|
|
15
|
+
entities: string[];
|
|
16
|
+
/** Detected constraints (timeline, budget, regulatory, resources) */
|
|
17
|
+
constraints: string[];
|
|
18
|
+
/** Risk signals present in the text */
|
|
19
|
+
riskSignals: string[];
|
|
20
|
+
/** Positive / opportunity signals */
|
|
21
|
+
positiveSignals: string[];
|
|
22
|
+
/** Overall complexity assessment */
|
|
23
|
+
complexity: "low" | "medium" | "high";
|
|
24
|
+
/** Word count */
|
|
25
|
+
wordCount: number;
|
|
26
|
+
/** Individual sentences */
|
|
27
|
+
sentences: string[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// Entity / keyword dictionaries
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
const TECH_ENTITIES_RE =
|
|
35
|
+
/\b(AWS|Amazon Web Services|Azure|GCP|Google Cloud|Kubernetes|K8s|Docker|PostgreSQL|Postgres|MySQL|MariaDB|MongoDB|Redis|Kafka|Elasticsearch|Grafana|Prometheus|Datadog|Splunk|Terraform|Ansible|Jenkins|GitHub Actions|GitLab CI|CircleCI|Snowflake|Databricks|BigQuery|Redshift|S3|EC2|Lambda|RDS|Aurora|DynamoDB|ECS|EKS|Fargate|SageMaker|Cloud Run|Cloud Functions|Vercel|Netlify|Cloudflare|Nginx|Apache|React|Angular|Vue|Next\.js|Node\.js|Python|Java|Go|Rust|TypeScript|JavaScript|\.NET|C#|Ruby|Rails|Django|Flask|Spring|Kotlin|Swift|Flutter|React Native|TensorFlow|PyTorch|OpenAI|LLM|GPT|ML|AI|CI\/CD|microservices|monolith|serverless|containerization|API gateway|load balancer|CDN|VPC|VPN|IAM|SSO|OAuth|JWT|GraphQL|REST|gRPC|WebSocket|message queue|event-driven|data lake|data warehouse|ETL|ELT|data pipeline|Airflow|dbt|Fivetran|Looker|Tableau|Power BI|SAP|Salesforce|Workday|ServiceNow|Oracle|SQL Server|Cassandra|Neo4j|InfluxDB)\b/gi;
|
|
36
|
+
|
|
37
|
+
const COMPLIANCE_ENTITIES_RE =
|
|
38
|
+
/\b(PCI[\s-]?DSS|PCI|HIPAA|GDPR|SOC\s*2|SOX|CCPA|FERPA|ISO[\s-]?27001|NIST|FedRAMP|FISMA|HITRUST|ITAR|EAR|AML|KYC|Basel\s*III|MiFID|PSD2|DORA)\b/gi;
|
|
39
|
+
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// Domain detection
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
const DOMAIN_SIGNALS: Record<string, RegExp[]> = {
|
|
45
|
+
technology: [
|
|
46
|
+
/\b(migrat\w*|deploy\w*|architect\w*|infrastruct\w*|server\w*|database|API|backend|frontend|devops|cloud\w*|platform|system\w*|software|code\w*|application|service\w*|container\w*|cluster|pipeline|CI\/CD|microservice\w*)/i,
|
|
47
|
+
],
|
|
48
|
+
compliance: [
|
|
49
|
+
/\b(compliance|regulat\w*|audit\w*|governance|privacy|data protection|security standard|certific\w*|accreditat\w*|PCI|HIPAA|GDPR|SOC|SOX)/i,
|
|
50
|
+
],
|
|
51
|
+
business: [
|
|
52
|
+
/\b(revenue|profit\w*|market\w*|customer\w*|sales|pricing|ROI|cost.?benefit|business model|go.?to.?market|acquisition|retention|churn|growth strategy|competitive|monetiz\w*)/i,
|
|
53
|
+
],
|
|
54
|
+
operations: [
|
|
55
|
+
/\b(process\w*|workflow\w*|team\w*|staffing|hiring|on.?boarding|SLA|incident|monitoring|support|operations|capacity|resource allocation|vendor management|procurement)/i,
|
|
56
|
+
],
|
|
57
|
+
strategy: [
|
|
58
|
+
/\b(strateg\w*|roadmap|vision|long.?term|initiative|transform\w*|digital transformation|moderniz\w*|consolidat\w*|re.?org\w*|merger|acquisition|partnership)/i,
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
function detectDomain(text: string): string {
|
|
63
|
+
const lower = text.toLowerCase();
|
|
64
|
+
const scores: Record<string, number> = {};
|
|
65
|
+
for (const [domain, patterns] of Object.entries(DOMAIN_SIGNALS)) {
|
|
66
|
+
scores[domain] = patterns.reduce(
|
|
67
|
+
(n, re) => n + (lower.match(re) || []).length,
|
|
68
|
+
0
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
const best = Object.entries(scores).sort((a, b) => b[1] - a[1])[0];
|
|
72
|
+
return best && best[1] > 0 ? best[0] : "general";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
// Action type detection
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
|
|
79
|
+
const ACTION_MAP: [string, RegExp][] = [
|
|
80
|
+
["migration", /\b(migrat\w*|move\s+to|transition\s+to|switch\s+to|convert\s+from|port\s+to|transfer\w*)/i],
|
|
81
|
+
["integration", /\b(integrat\w*|connect\w*|unif\w*|merg\w*|consolidat\w*|interop\w*)/i],
|
|
82
|
+
["implementation", /\b(implement\w*|build\w*|creat\w*|develop\w*|deploy\w*|launch\w*|set\s*up|establish\w*|introduc\w*|adopt\w*)/i],
|
|
83
|
+
["optimization", /\b(optimiz\w*|improv\w*|enhanc\w*|streamlin\w*|refactor\w*|accelerat\w*|reduc\w*|automat\w*|scal\w*)/i],
|
|
84
|
+
["transformation", /\b(transform\w*|moderniz\w*|overhaul\w*|redesign\w*|re.?engineer\w*|re.?architect\w*|re.?platform\w*)/i],
|
|
85
|
+
["evaluation", /\b(evaluat\w*|assess\w*|review\w*|analyz\w*|audit\w*|benchmark\w*|compar\w*|investigat\w*|feasibility)/i],
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
function detectActionType(text: string): string {
|
|
89
|
+
for (const [action, re] of ACTION_MAP) {
|
|
90
|
+
if (re.test(text)) return action;
|
|
91
|
+
}
|
|
92
|
+
return "general";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ---------------------------------------------------------------------------
|
|
96
|
+
// Entity extraction
|
|
97
|
+
// ---------------------------------------------------------------------------
|
|
98
|
+
|
|
99
|
+
function extractEntities(text: string): string[] {
|
|
100
|
+
const techMatches = text.match(TECH_ENTITIES_RE) || [];
|
|
101
|
+
const complianceMatches = text.match(COMPLIANCE_ENTITIES_RE) || [];
|
|
102
|
+
// Deduplicate (case-insensitive)
|
|
103
|
+
const seen = new Set<string>();
|
|
104
|
+
const result: string[] = [];
|
|
105
|
+
for (const m of [...techMatches, ...complianceMatches]) {
|
|
106
|
+
const key = m.toLowerCase();
|
|
107
|
+
if (!seen.has(key)) {
|
|
108
|
+
seen.add(key);
|
|
109
|
+
result.push(m);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ---------------------------------------------------------------------------
|
|
116
|
+
// Topic extraction (simple noun-phrase heuristic)
|
|
117
|
+
// ---------------------------------------------------------------------------
|
|
118
|
+
|
|
119
|
+
function extractTopics(text: string): string[] {
|
|
120
|
+
const topics: string[] = [];
|
|
121
|
+
// Look for "X to Y" patterns (common in migration/transition objectives)
|
|
122
|
+
const toPatterns = text.match(/\b(\w[\w\s]*?)\s+to\s+(\w[\w\s]*?)(?:\s+(?:while|with|for|and|by|using|during|in)\b|[,.]|$)/gi);
|
|
123
|
+
if (toPatterns) {
|
|
124
|
+
for (const p of toPatterns) {
|
|
125
|
+
const clean = p.replace(/\s+(while|with|for|and|by|using|during|in).*$/i, "").trim();
|
|
126
|
+
if (clean.length > 3 && clean.length < 80) topics.push(clean);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// Extract phrases between commas/semicolons that look like topics
|
|
130
|
+
const clauses = text.split(/[,;]/).map((s) => s.trim()).filter((s) => s.length > 5 && s.length < 100);
|
|
131
|
+
for (const clause of clauses) {
|
|
132
|
+
if (!topics.some((t) => t.includes(clause) || clause.includes(t))) {
|
|
133
|
+
topics.push(clause);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// If no topics extracted, use the whole objective
|
|
137
|
+
if (topics.length === 0) {
|
|
138
|
+
topics.push(text.length > 120 ? text.slice(0, 120) + "..." : text);
|
|
139
|
+
}
|
|
140
|
+
return topics.slice(0, 8);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// ---------------------------------------------------------------------------
|
|
144
|
+
// Risk / constraint / positive signal detection
|
|
145
|
+
// ---------------------------------------------------------------------------
|
|
146
|
+
|
|
147
|
+
const RISK_SIGNAL_PATTERNS: [string, RegExp][] = [
|
|
148
|
+
["tight timeline pressure", /\b(urgent\w*|deadline|time.?critical|accelerat\w*|fast.?track\w*|rush\w*|asap|immediate\w*|tight timeline)/i],
|
|
149
|
+
["resource constraints", /\b(limited|constrained|shortage|scarce|understaffed|lean team|budget.?cut|reduced budget)/i],
|
|
150
|
+
["technical complexity", /\b(complex\w*|large.?scale|enterprise.?wide|multi.?system|cross.?platform|heterogeneous|legacy)/i],
|
|
151
|
+
["uncertainty or unproven approach", /\b(uncertain\w*|unproven|experimental|prototype\w*|novel|cutting.?edge|bleeding.?edge|untested|unknown)/i],
|
|
152
|
+
["vendor/third-party dependency", /\b(vendor\w*|third.?party|external provider|partner dependency|outsourc\w*|contractor)/i],
|
|
153
|
+
["regulatory/compliance exposure", /\b(regulat\w*|compliance|audit\w*|legal\w*|GDPR|HIPAA|PCI|SOX|privacy|data protection)/i],
|
|
154
|
+
["data integrity/migration risk", /\b(data migration|data loss|data integrity|data quality|data conversion|ETL)/i],
|
|
155
|
+
["security exposure", /\b(security|vulnerabilit\w*|breach\w*|attack surface|threat\w*|encryption|access control|authentication)/i],
|
|
156
|
+
["organizational change risk", /\b(reorg\w*|restructur\w*|culture change|change management|adoption|resistance|training gap)/i],
|
|
157
|
+
["scope creep potential", /\b(scope\w*|requirements? change|feature creep|moving target|evolving requirements)/i],
|
|
158
|
+
];
|
|
159
|
+
|
|
160
|
+
function detectRiskSignals(text: string): string[] {
|
|
161
|
+
return RISK_SIGNAL_PATTERNS
|
|
162
|
+
.filter(([, re]) => re.test(text))
|
|
163
|
+
.map(([label]) => label);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const CONSTRAINT_PATTERNS: [string, RegExp][] = [
|
|
167
|
+
["timeline constraint", /\b(deadline|by Q[1-4]|by end of|within \d+|before \w+ \d{4}|timeline|time.?bound)/i],
|
|
168
|
+
["budget constraint", /\b(budget\w*|cost\w*|funding|financial\w*|expenditure|\$\d|spend\w*|investment cap)/i],
|
|
169
|
+
["regulatory requirement", /\b(compliance|regulat\w*|must comply|legal requirement|mandate\w*|certific\w*)/i],
|
|
170
|
+
["resource limitation", /\b(limited team|small team|existing staff|no additional|headcount|bandwidth)/i],
|
|
171
|
+
["backward compatibility", /\b(backward.?compat\w*|legacy support|existing users|migration path|non.?breaking)/i],
|
|
172
|
+
["performance requirement", /\b(latency|throughput|uptime|SLA|99\.\d+%|response time|availability)/i],
|
|
173
|
+
];
|
|
174
|
+
|
|
175
|
+
function detectConstraints(text: string): string[] {
|
|
176
|
+
return CONSTRAINT_PATTERNS
|
|
177
|
+
.filter(([, re]) => re.test(text))
|
|
178
|
+
.map(([label]) => label);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const POSITIVE_PATTERNS: [string, RegExp][] = [
|
|
182
|
+
["proven technology", /\b(proven|established|mature|stable|battle.?tested|industry.?standard|well.?known)/i],
|
|
183
|
+
["strategic alignment", /\b(strateg\w*|aligns? with|supports? our|in line with|roadmap|vision)/i],
|
|
184
|
+
["efficiency gain", /\b(automat\w*|streamlin\w*|efficien\w*|faster|reduc\w* time|reduc\w* cost|sav\w*|eliminat\w* manual)/i],
|
|
185
|
+
["competitive advantage", /\b(competitive|market.?lead\w*|differentiat\w*|first.?mover|innovati\w*|ahead of)/i],
|
|
186
|
+
["team readiness", /\b(experienced team|skilled|expertise|trained|proficient|capable|strong team)/i],
|
|
187
|
+
];
|
|
188
|
+
|
|
189
|
+
function detectPositiveSignals(text: string): string[] {
|
|
190
|
+
return POSITIVE_PATTERNS
|
|
191
|
+
.filter(([, re]) => re.test(text))
|
|
192
|
+
.map(([label]) => label);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// ---------------------------------------------------------------------------
|
|
196
|
+
// Complexity assessment
|
|
197
|
+
// ---------------------------------------------------------------------------
|
|
198
|
+
|
|
199
|
+
function assessComplexity(
|
|
200
|
+
wordCount: number,
|
|
201
|
+
entityCount: number,
|
|
202
|
+
riskCount: number,
|
|
203
|
+
constraintCount: number
|
|
204
|
+
): "low" | "medium" | "high" {
|
|
205
|
+
const score = wordCount * 0.3 + entityCount * 8 + riskCount * 10 + constraintCount * 7;
|
|
206
|
+
if (score > 60) return "high";
|
|
207
|
+
if (score > 25) return "medium";
|
|
208
|
+
return "low";
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// ---------------------------------------------------------------------------
|
|
212
|
+
// Main analysis function
|
|
213
|
+
// ---------------------------------------------------------------------------
|
|
214
|
+
|
|
215
|
+
export function analyzeText(objective: string): TextAnalysis {
|
|
216
|
+
const sentences = objective
|
|
217
|
+
.split(/(?<=[.!?])\s+/)
|
|
218
|
+
.map((s) => s.trim())
|
|
219
|
+
.filter(Boolean);
|
|
220
|
+
const wordCount = objective.split(/\s+/).filter(Boolean).length;
|
|
221
|
+
const entities = extractEntities(objective);
|
|
222
|
+
const riskSignals = detectRiskSignals(objective);
|
|
223
|
+
const constraints = detectConstraints(objective);
|
|
224
|
+
const positiveSignals = detectPositiveSignals(objective);
|
|
225
|
+
|
|
226
|
+
return {
|
|
227
|
+
topics: extractTopics(objective),
|
|
228
|
+
domain: detectDomain(objective),
|
|
229
|
+
actionType: detectActionType(objective),
|
|
230
|
+
entities,
|
|
231
|
+
constraints,
|
|
232
|
+
riskSignals,
|
|
233
|
+
positiveSignals,
|
|
234
|
+
complexity: assessComplexity(wordCount, entities.length, riskSignals.length, constraints.length),
|
|
235
|
+
wordCount,
|
|
236
|
+
sentences: sentences.length > 0 ? sentences : [objective],
|
|
237
|
+
};
|
|
238
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"rootDir": "src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"declarationMap": true,
|
|
15
|
+
"sourceMap": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["src/**/*"],
|
|
18
|
+
"exclude": ["node_modules", "dist"]
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/agents/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAsB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C5E"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleAlert = handleAlert;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function handleAlert(req, res) {
|
|
6
|
+
const { payload, context } = req.body;
|
|
7
|
+
const start = Date.now();
|
|
8
|
+
const layers = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"rule_evaluation",
|
|
11
|
+
"suppression_check",
|
|
12
|
+
"decision_generation",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
const anomaly = payload?.anomaly ?? {};
|
|
16
|
+
const source = payload?.source ?? "api";
|
|
17
|
+
const ignoreSuppression = payload?.ignore_suppression ?? false;
|
|
18
|
+
const dryRun = payload?.dry_run ?? false;
|
|
19
|
+
const decisionId = (0, uuid_1.v4)();
|
|
20
|
+
const result = {
|
|
21
|
+
agent: "alert",
|
|
22
|
+
decision: {
|
|
23
|
+
decision_id: decisionId,
|
|
24
|
+
alert_raised: false,
|
|
25
|
+
confidence: 0.0,
|
|
26
|
+
source,
|
|
27
|
+
},
|
|
28
|
+
alert_raised: false,
|
|
29
|
+
status: "no_alert",
|
|
30
|
+
dry_run: dryRun,
|
|
31
|
+
processing_ms: Date.now() - start,
|
|
32
|
+
};
|
|
33
|
+
res.json({
|
|
34
|
+
...result,
|
|
35
|
+
layers_executed: layers,
|
|
36
|
+
execution_metadata: {
|
|
37
|
+
trace_id: (0, uuid_1.v4)(),
|
|
38
|
+
timestamp: new Date().toISOString(),
|
|
39
|
+
service: "sentinel-agents",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/agents/alert.ts"],"names":[],"mappings":";;AAGA,kCA0CC;AA5CD,+BAAoC;AAE7B,KAAK,UAAU,WAAW,CAAC,GAAY,EAAE,GAAa;IAC3D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAa;QACvB,kBAAkB;QAClB,iBAAiB;QACjB,mBAAmB;QACnB,qBAAqB;QACrB,qBAAqB;KACtB,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,EAAE,CAAC;IACvC,MAAM,MAAM,GAAW,OAAO,EAAE,MAAM,IAAI,KAAK,CAAC;IAChD,MAAM,iBAAiB,GAAY,OAAO,EAAE,kBAAkB,IAAI,KAAK,CAAC;IACxE,MAAM,MAAM,GAAY,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAElD,MAAM,UAAU,GAAG,IAAA,SAAM,GAAE,CAAC;IAE5B,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE;YACR,WAAW,EAAE,UAAU;YACvB,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,GAAG;YACf,MAAM;SACP;QACD,YAAY,EAAE,KAAK;QACnB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;KAClC,CAAC;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,GAAG,MAAM;QACT,eAAe,EAAE,MAAM;QACvB,kBAAkB,EAAE;YAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,iBAAiB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anomaly.d.ts","sourceRoot":"","sources":["../../src/agents/anomaly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAsB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B9E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleAnomaly = handleAnomaly;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function handleAnomaly(req, res) {
|
|
6
|
+
const { payload, context } = req.body;
|
|
7
|
+
const start = Date.now();
|
|
8
|
+
const layers = ["input_validation", "anomaly_detection", "response_formatting"];
|
|
9
|
+
const telemetry = payload?.telemetry ?? {};
|
|
10
|
+
const dryRun = payload?.dry_run ?? false;
|
|
11
|
+
const result = {
|
|
12
|
+
agent: "anomaly",
|
|
13
|
+
anomaly_detected: false,
|
|
14
|
+
anomaly: null,
|
|
15
|
+
status: "success",
|
|
16
|
+
dry_run: dryRun,
|
|
17
|
+
processing_ms: 0,
|
|
18
|
+
};
|
|
19
|
+
result.processing_ms = Date.now() - start;
|
|
20
|
+
res.json({
|
|
21
|
+
...result,
|
|
22
|
+
layers_executed: layers,
|
|
23
|
+
execution_metadata: {
|
|
24
|
+
trace_id: (0, uuid_1.v4)(),
|
|
25
|
+
timestamp: new Date().toISOString(),
|
|
26
|
+
service: "sentinel-agents",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anomaly.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anomaly.js","sourceRoot":"","sources":["../../src/agents/anomaly.ts"],"names":[],"mappings":";;AAGA,sCA6BC;AA/BD,+BAAoC;AAE7B,KAAK,UAAU,aAAa,CAAC,GAAY,EAAE,GAAa;IAC7D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAa,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;IAE1F,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAEzC,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,SAAS;QAChB,gBAAgB,EAAE,KAAK;QACvB,OAAO,EAAE,IAAe;QACxB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,CAAC;KACjB,CAAC;IAEF,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;IAE1C,GAAG,CAAC,IAAI,CAAC;QACP,GAAG,MAAM;QACT,eAAe,EAAE,MAAM;QACvB,kBAAkB,EAAE;YAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,iBAAiB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correlation.d.ts","sourceRoot":"","sources":["../../src/agents/correlation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAoDlF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleCorrelation = handleCorrelation;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function handleCorrelation(req, res) {
|
|
6
|
+
const { payload, context } = req.body;
|
|
7
|
+
const start = Date.now();
|
|
8
|
+
const layers = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"signal_grouping",
|
|
11
|
+
"temporal_correlation",
|
|
12
|
+
"service_affinity",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
const signals = payload?.signals ?? [];
|
|
16
|
+
const timeWindowSecs = payload?.time_window_secs ?? 300;
|
|
17
|
+
const dryRun = payload?.dry_run ?? false;
|
|
18
|
+
if (!Array.isArray(signals) || signals.length === 0) {
|
|
19
|
+
res.status(400).json({
|
|
20
|
+
agent: "correlation",
|
|
21
|
+
incidents_count: 0,
|
|
22
|
+
signals_processed: 0,
|
|
23
|
+
noise_reduction: 0,
|
|
24
|
+
status: "No signals provided",
|
|
25
|
+
layers_executed: ["input_validation"],
|
|
26
|
+
execution_metadata: {
|
|
27
|
+
trace_id: (0, uuid_1.v4)(),
|
|
28
|
+
timestamp: new Date().toISOString(),
|
|
29
|
+
service: "sentinel-agents",
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const result = {
|
|
35
|
+
agent: "correlation",
|
|
36
|
+
incidents_count: 0,
|
|
37
|
+
signals_processed: signals.length,
|
|
38
|
+
noise_reduction: 0.0,
|
|
39
|
+
status: "success",
|
|
40
|
+
dry_run: dryRun,
|
|
41
|
+
processing_ms: Date.now() - start,
|
|
42
|
+
};
|
|
43
|
+
res.json({
|
|
44
|
+
...result,
|
|
45
|
+
layers_executed: layers,
|
|
46
|
+
execution_metadata: {
|
|
47
|
+
trace_id: (0, uuid_1.v4)(),
|
|
48
|
+
timestamp: new Date().toISOString(),
|
|
49
|
+
service: "sentinel-agents",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=correlation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correlation.js","sourceRoot":"","sources":["../../src/agents/correlation.ts"],"names":[],"mappings":";;AAGA,8CAoDC;AAtDD,+BAAoC;AAE7B,KAAK,UAAU,iBAAiB,CAAC,GAAY,EAAE,GAAa;IACjE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAa;QACvB,kBAAkB;QAClB,iBAAiB;QACjB,sBAAsB;QACtB,kBAAkB;QAClB,qBAAqB;KACtB,CAAC;IAEF,MAAM,OAAO,GAAc,OAAO,EAAE,OAAO,IAAI,EAAE,CAAC;IAClD,MAAM,cAAc,GAAW,OAAO,EAAE,gBAAgB,IAAI,GAAG,CAAC;IAChE,MAAM,MAAM,GAAY,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAElD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACnB,KAAK,EAAE,aAAa;YACpB,eAAe,EAAE,CAAC;YAClB,iBAAiB,EAAE,CAAC;YACpB,eAAe,EAAE,CAAC;YAClB,MAAM,EAAE,qBAAqB;YAC7B,eAAe,EAAE,CAAC,kBAAkB,CAAC;YACrC,kBAAkB,EAAE;gBAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;gBAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACnC,OAAO,EAAE,iBAAiB;aAC3B;SACF,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,aAAa;QACpB,eAAe,EAAE,CAAC;QAClB,iBAAiB,EAAE,OAAO,CAAC,MAAM;QACjC,eAAe,EAAE,GAAG;QACpB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;KAClC,CAAC;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,GAAG,MAAM;QACT,eAAe,EAAE,MAAM;QACvB,kBAAkB,EAAE;YAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,iBAAiB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/agents/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAsB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAkD5E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleDrift = handleDrift;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function handleDrift(req, res) {
|
|
6
|
+
const { payload, context } = req.body;
|
|
7
|
+
const start = Date.now();
|
|
8
|
+
const layers = ["input_validation", "distribution_analysis", "psi_calculation", "response_formatting"];
|
|
9
|
+
const referenceData = payload?.reference_data ?? [];
|
|
10
|
+
const currentData = payload?.current_data ?? [];
|
|
11
|
+
const metric = payload?.metric ?? "unknown";
|
|
12
|
+
const service = payload?.service ?? "unknown";
|
|
13
|
+
const dryRun = payload?.dry_run ?? false;
|
|
14
|
+
if (referenceData.length < 10 || currentData.length < 10) {
|
|
15
|
+
res.status(400).json({
|
|
16
|
+
agent: "drift",
|
|
17
|
+
drift_detected: false,
|
|
18
|
+
drift_severity: "error",
|
|
19
|
+
psi_value: 0,
|
|
20
|
+
status: "Insufficient data: minimum 10 samples required",
|
|
21
|
+
layers_executed: ["input_validation"],
|
|
22
|
+
execution_metadata: {
|
|
23
|
+
trace_id: (0, uuid_1.v4)(),
|
|
24
|
+
timestamp: new Date().toISOString(),
|
|
25
|
+
service: "sentinel-agents",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const result = {
|
|
31
|
+
agent: "drift",
|
|
32
|
+
drift_detected: false,
|
|
33
|
+
drift_severity: "none",
|
|
34
|
+
psi_value: 0.05,
|
|
35
|
+
metric,
|
|
36
|
+
service,
|
|
37
|
+
status: "success",
|
|
38
|
+
dry_run: dryRun,
|
|
39
|
+
processing_ms: Date.now() - start,
|
|
40
|
+
};
|
|
41
|
+
res.json({
|
|
42
|
+
...result,
|
|
43
|
+
layers_executed: layers,
|
|
44
|
+
execution_metadata: {
|
|
45
|
+
trace_id: (0, uuid_1.v4)(),
|
|
46
|
+
timestamp: new Date().toISOString(),
|
|
47
|
+
service: "sentinel-agents",
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=drift.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift.js","sourceRoot":"","sources":["../../src/agents/drift.ts"],"names":[],"mappings":";;AAGA,kCAkDC;AApDD,+BAAoC;AAE7B,KAAK,UAAU,WAAW,CAAC,GAAY,EAAE,GAAa;IAC3D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAa,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;IAEjH,MAAM,aAAa,GAAa,OAAO,EAAE,cAAc,IAAI,EAAE,CAAC;IAC9D,MAAM,WAAW,GAAa,OAAO,EAAE,YAAY,IAAI,EAAE,CAAC;IAC1D,MAAM,MAAM,GAAW,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC;IACpD,MAAM,OAAO,GAAW,OAAO,EAAE,OAAO,IAAI,SAAS,CAAC;IACtD,MAAM,MAAM,GAAY,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAElD,IAAI,aAAa,CAAC,MAAM,GAAG,EAAE,IAAI,WAAW,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACzD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACnB,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,KAAK;YACrB,cAAc,EAAE,OAAO;YACvB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,gDAAgD;YACxD,eAAe,EAAE,CAAC,kBAAkB,CAAC;YACrC,kBAAkB,EAAE;gBAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;gBAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACnC,OAAO,EAAE,iBAAiB;aAC3B;SACF,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,OAAO;QACd,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,IAAI;QACf,MAAM;QACN,OAAO;QACP,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;KAClC,CAAC;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,GAAG,MAAM;QACT,eAAe,EAAE,MAAM;QACvB,kBAAkB,EAAE;YAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,iBAAiB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rca.d.ts","sourceRoot":"","sources":["../../src/agents/rca.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAsB,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC1E"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleRca = handleRca;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function handleRca(req, res) {
|
|
6
|
+
const { payload, context } = req.body;
|
|
7
|
+
const start = Date.now();
|
|
8
|
+
const layers = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"signal_analysis",
|
|
11
|
+
"hypothesis_generation",
|
|
12
|
+
"causal_chain_identification",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
const incident = payload?.incident ?? {};
|
|
16
|
+
const maxHypotheses = payload?.max_hypotheses ?? 5;
|
|
17
|
+
const dryRun = payload?.dry_run ?? false;
|
|
18
|
+
const result = {
|
|
19
|
+
agent: "rca",
|
|
20
|
+
hypotheses_count: 0,
|
|
21
|
+
confidence: 0.0,
|
|
22
|
+
status: "success",
|
|
23
|
+
dry_run: dryRun,
|
|
24
|
+
processing_ms: Date.now() - start,
|
|
25
|
+
};
|
|
26
|
+
res.json({
|
|
27
|
+
...result,
|
|
28
|
+
layers_executed: layers,
|
|
29
|
+
execution_metadata: {
|
|
30
|
+
trace_id: (0, uuid_1.v4)(),
|
|
31
|
+
timestamp: new Date().toISOString(),
|
|
32
|
+
service: "sentinel-agents",
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=rca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rca.js","sourceRoot":"","sources":["../../src/agents/rca.ts"],"names":[],"mappings":";;AAGA,8BAkCC;AApCD,+BAAoC;AAE7B,KAAK,UAAU,SAAS,CAAC,GAAY,EAAE,GAAa;IACzD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAa;QACvB,kBAAkB;QAClB,iBAAiB;QACjB,uBAAuB;QACvB,6BAA6B;QAC7B,qBAAqB;KACtB,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC;IACzC,MAAM,aAAa,GAAW,OAAO,EAAE,cAAc,IAAI,CAAC,CAAC;IAC3D,MAAM,MAAM,GAAY,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAElD,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,KAAK;QACZ,gBAAgB,EAAE,CAAC;QACnB,UAAU,EAAE,GAAG;QACf,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;KAClC,CAAC;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,GAAG,MAAM;QACT,eAAe,EAAE,MAAM;QACvB,kBAAkB,EAAE;YAClB,QAAQ,EAAE,IAAA,SAAM,GAAE;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,iBAAiB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA4EA,eAAO,MAAM,GAAG,6CAAM,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.api = void 0;
|
|
7
|
+
const express_1 = __importDefault(require("express"));
|
|
8
|
+
const cors_1 = __importDefault(require("cors"));
|
|
9
|
+
const anomaly_1 = require("./agents/anomaly");
|
|
10
|
+
const drift_1 = require("./agents/drift");
|
|
11
|
+
const alert_1 = require("./agents/alert");
|
|
12
|
+
const correlation_1 = require("./agents/correlation");
|
|
13
|
+
const rca_1 = require("./agents/rca");
|
|
14
|
+
const app = (0, express_1.default)();
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
// Middleware
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
app.use(express_1.default.json());
|
|
19
|
+
app.use((0, cors_1.default)({
|
|
20
|
+
origin: "*",
|
|
21
|
+
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
|
22
|
+
allowedHeaders: [
|
|
23
|
+
"X-Correlation-ID",
|
|
24
|
+
"X-API-Version",
|
|
25
|
+
"Content-Type",
|
|
26
|
+
"Authorization",
|
|
27
|
+
],
|
|
28
|
+
}));
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
// Health endpoint
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
app.get("/health", (_req, res) => {
|
|
33
|
+
res.json({
|
|
34
|
+
healthy: true,
|
|
35
|
+
service: "sentinel-agents",
|
|
36
|
+
agents: 5,
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
// Agent routes — POST /v1/sentinel/:agent
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
const agentHandlers = {
|
|
43
|
+
anomaly: anomaly_1.handleAnomaly,
|
|
44
|
+
drift: drift_1.handleDrift,
|
|
45
|
+
alert: alert_1.handleAlert,
|
|
46
|
+
correlation: correlation_1.handleCorrelation,
|
|
47
|
+
rca: rca_1.handleRca,
|
|
48
|
+
};
|
|
49
|
+
app.post("/v1/sentinel/:agent", async (req, res, next) => {
|
|
50
|
+
const { agent } = req.params;
|
|
51
|
+
const handler = agentHandlers[agent];
|
|
52
|
+
if (!handler) {
|
|
53
|
+
res.status(404).json({
|
|
54
|
+
error: `Unknown agent: ${agent}`,
|
|
55
|
+
available_agents: Object.keys(agentHandlers),
|
|
56
|
+
});
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
await handler(req, res);
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
next(err);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
// ---------------------------------------------------------------------------
|
|
67
|
+
// Export for Cloud Functions
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
exports.api = app;
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAmE;AACnE,gDAAwB;AACxB,8CAAiD;AACjD,0CAA6C;AAC7C,0CAA6C;AAC7C,sDAAyD;AACzD,sCAAyC;AAEzC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AAEtB,8EAA8E;AAC9E,aAAa;AACb,8EAA8E;AAE9E,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAExB,GAAG,CAAC,GAAG,CACL,IAAA,cAAI,EAAC;IACH,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC;IACpD,cAAc,EAAE;QACd,kBAAkB;QAClB,eAAe;QACf,cAAc;QACd,eAAe;KAChB;CACF,CAAC,CACH,CAAC;AAEF,8EAA8E;AAC9E,kBAAkB;AAClB,8EAA8E;AAE9E,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,IAAa,EAAE,GAAa,EAAE,EAAE;IAClD,GAAG,CAAC,IAAI,CAAC;QACP,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,iBAAiB;QAC1B,MAAM,EAAE,CAAC;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,0CAA0C;AAC1C,8EAA8E;AAE9E,MAAM,aAAa,GAAmE;IACpF,OAAO,EAAE,uBAAa;IACtB,KAAK,EAAE,mBAAW;IAClB,KAAK,EAAE,mBAAW;IAClB,WAAW,EAAE,+BAAiB;IAC9B,GAAG,EAAE,eAAS;CACf,CAAC;AAEF,GAAG,CAAC,IAAI,CAAC,qBAAqB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACxF,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAC7B,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAErC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACnB,KAAK,EAAE,kBAAkB,KAAK,EAAE;YAChC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;SAC7C,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,CAAC,CAAC;IACZ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,6BAA6B;AAC7B,8EAA8E;AAEjE,QAAA,GAAG,GAAG,GAAG,CAAC"}
|