@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,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@llm-dev-ops/sentinel-cli",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Enterprise-grade anomaly detection and observability platform for LLM applications - NPM CLI wrapper",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"llm",
|
|
7
|
+
"anomaly-detection",
|
|
8
|
+
"observability",
|
|
9
|
+
"monitoring",
|
|
10
|
+
"sentinel",
|
|
11
|
+
"rust",
|
|
12
|
+
"cli"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/globalbusinessadvisors/llm-sentinel.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/globalbusinessadvisors/llm-sentinel",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"author": "LLM DevOps Team <noreply@llm-sentinel.dev>",
|
|
21
|
+
"bin": {
|
|
22
|
+
"sentinel": "./bin/cli.js",
|
|
23
|
+
"llm-sentinel": "./bin/cli.js"
|
|
24
|
+
},
|
|
25
|
+
"main": "./lib/index.js",
|
|
26
|
+
"types": "./lib/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"bin/",
|
|
29
|
+
"lib/",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc",
|
|
35
|
+
"gcp-build": "tsc"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=18.0.0"
|
|
39
|
+
},
|
|
40
|
+
"optionalDependencies": {
|
|
41
|
+
"@llm-dev-ops/sentinel-cli-darwin-arm64": "0.1.3",
|
|
42
|
+
"@llm-dev-ops/sentinel-cli-darwin-x64": "0.1.3",
|
|
43
|
+
"@llm-dev-ops/sentinel-cli-linux-x64": "0.1.3",
|
|
44
|
+
"@llm-dev-ops/sentinel-cli-win32-x64": "0.1.3"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@google-cloud/functions-framework": "^3.4.0",
|
|
51
|
+
"claude-flow": "^3.0.0-alpha.179",
|
|
52
|
+
"cors": "^2.8.5",
|
|
53
|
+
"express": "^4.21.0",
|
|
54
|
+
"uuid": "^10.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/cors": "^2.8.17",
|
|
58
|
+
"@types/express": "^4.17.21",
|
|
59
|
+
"@types/uuid": "^10.0.0",
|
|
60
|
+
"typescript": "^5.5.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export async function handleAlert(req: Request, res: Response): Promise<void> {
|
|
5
|
+
const { payload, context } = req.body;
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
|
|
8
|
+
const layers: string[] = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"rule_evaluation",
|
|
11
|
+
"suppression_check",
|
|
12
|
+
"decision_generation",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const anomaly = payload?.anomaly ?? {};
|
|
17
|
+
const source: string = payload?.source ?? "api";
|
|
18
|
+
const ignoreSuppression: boolean = payload?.ignore_suppression ?? false;
|
|
19
|
+
const dryRun: boolean = payload?.dry_run ?? false;
|
|
20
|
+
|
|
21
|
+
const decisionId = uuidv4();
|
|
22
|
+
|
|
23
|
+
const result = {
|
|
24
|
+
agent: "alert",
|
|
25
|
+
decision: {
|
|
26
|
+
decision_id: decisionId,
|
|
27
|
+
alert_raised: false,
|
|
28
|
+
confidence: 0.0,
|
|
29
|
+
source,
|
|
30
|
+
},
|
|
31
|
+
alert_raised: false,
|
|
32
|
+
status: "no_alert",
|
|
33
|
+
dry_run: dryRun,
|
|
34
|
+
processing_ms: Date.now() - start,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
res.json({
|
|
38
|
+
...result,
|
|
39
|
+
layers_executed: layers,
|
|
40
|
+
execution_metadata: {
|
|
41
|
+
trace_id: uuidv4(),
|
|
42
|
+
timestamp: new Date().toISOString(),
|
|
43
|
+
service: "sentinel-agents",
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export async function handleAnomaly(req: Request, res: Response): Promise<void> {
|
|
5
|
+
const { payload, context } = req.body;
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
|
|
8
|
+
const layers: string[] = ["input_validation", "anomaly_detection", "response_formatting"];
|
|
9
|
+
|
|
10
|
+
const telemetry = payload?.telemetry ?? {};
|
|
11
|
+
const dryRun = payload?.dry_run ?? false;
|
|
12
|
+
|
|
13
|
+
const result = {
|
|
14
|
+
agent: "anomaly",
|
|
15
|
+
anomaly_detected: false,
|
|
16
|
+
anomaly: null as unknown,
|
|
17
|
+
status: "success",
|
|
18
|
+
dry_run: dryRun,
|
|
19
|
+
processing_ms: 0,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
result.processing_ms = Date.now() - start;
|
|
23
|
+
|
|
24
|
+
res.json({
|
|
25
|
+
...result,
|
|
26
|
+
layers_executed: layers,
|
|
27
|
+
execution_metadata: {
|
|
28
|
+
trace_id: uuidv4(),
|
|
29
|
+
timestamp: new Date().toISOString(),
|
|
30
|
+
service: "sentinel-agents",
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export async function handleCorrelation(req: Request, res: Response): Promise<void> {
|
|
5
|
+
const { payload, context } = req.body;
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
|
|
8
|
+
const layers: string[] = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"signal_grouping",
|
|
11
|
+
"temporal_correlation",
|
|
12
|
+
"service_affinity",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const signals: unknown[] = payload?.signals ?? [];
|
|
17
|
+
const timeWindowSecs: number = payload?.time_window_secs ?? 300;
|
|
18
|
+
const dryRun: boolean = payload?.dry_run ?? false;
|
|
19
|
+
|
|
20
|
+
if (!Array.isArray(signals) || signals.length === 0) {
|
|
21
|
+
res.status(400).json({
|
|
22
|
+
agent: "correlation",
|
|
23
|
+
incidents_count: 0,
|
|
24
|
+
signals_processed: 0,
|
|
25
|
+
noise_reduction: 0,
|
|
26
|
+
status: "No signals provided",
|
|
27
|
+
layers_executed: ["input_validation"],
|
|
28
|
+
execution_metadata: {
|
|
29
|
+
trace_id: uuidv4(),
|
|
30
|
+
timestamp: new Date().toISOString(),
|
|
31
|
+
service: "sentinel-agents",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const result = {
|
|
38
|
+
agent: "correlation",
|
|
39
|
+
incidents_count: 0,
|
|
40
|
+
signals_processed: signals.length,
|
|
41
|
+
noise_reduction: 0.0,
|
|
42
|
+
status: "success",
|
|
43
|
+
dry_run: dryRun,
|
|
44
|
+
processing_ms: Date.now() - start,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
res.json({
|
|
48
|
+
...result,
|
|
49
|
+
layers_executed: layers,
|
|
50
|
+
execution_metadata: {
|
|
51
|
+
trace_id: uuidv4(),
|
|
52
|
+
timestamp: new Date().toISOString(),
|
|
53
|
+
service: "sentinel-agents",
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export async function handleDrift(req: Request, res: Response): Promise<void> {
|
|
5
|
+
const { payload, context } = req.body;
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
|
|
8
|
+
const layers: string[] = ["input_validation", "distribution_analysis", "psi_calculation", "response_formatting"];
|
|
9
|
+
|
|
10
|
+
const referenceData: number[] = payload?.reference_data ?? [];
|
|
11
|
+
const currentData: number[] = payload?.current_data ?? [];
|
|
12
|
+
const metric: string = payload?.metric ?? "unknown";
|
|
13
|
+
const service: string = payload?.service ?? "unknown";
|
|
14
|
+
const dryRun: boolean = payload?.dry_run ?? false;
|
|
15
|
+
|
|
16
|
+
if (referenceData.length < 10 || currentData.length < 10) {
|
|
17
|
+
res.status(400).json({
|
|
18
|
+
agent: "drift",
|
|
19
|
+
drift_detected: false,
|
|
20
|
+
drift_severity: "error",
|
|
21
|
+
psi_value: 0,
|
|
22
|
+
status: "Insufficient data: minimum 10 samples required",
|
|
23
|
+
layers_executed: ["input_validation"],
|
|
24
|
+
execution_metadata: {
|
|
25
|
+
trace_id: uuidv4(),
|
|
26
|
+
timestamp: new Date().toISOString(),
|
|
27
|
+
service: "sentinel-agents",
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const result = {
|
|
34
|
+
agent: "drift",
|
|
35
|
+
drift_detected: false,
|
|
36
|
+
drift_severity: "none",
|
|
37
|
+
psi_value: 0.05,
|
|
38
|
+
metric,
|
|
39
|
+
service,
|
|
40
|
+
status: "success",
|
|
41
|
+
dry_run: dryRun,
|
|
42
|
+
processing_ms: Date.now() - start,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
res.json({
|
|
46
|
+
...result,
|
|
47
|
+
layers_executed: layers,
|
|
48
|
+
execution_metadata: {
|
|
49
|
+
trace_id: uuidv4(),
|
|
50
|
+
timestamp: new Date().toISOString(),
|
|
51
|
+
service: "sentinel-agents",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export async function handleRca(req: Request, res: Response): Promise<void> {
|
|
5
|
+
const { payload, context } = req.body;
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
|
|
8
|
+
const layers: string[] = [
|
|
9
|
+
"input_validation",
|
|
10
|
+
"signal_analysis",
|
|
11
|
+
"hypothesis_generation",
|
|
12
|
+
"causal_chain_identification",
|
|
13
|
+
"response_formatting",
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const incident = payload?.incident ?? {};
|
|
17
|
+
const maxHypotheses: number = payload?.max_hypotheses ?? 5;
|
|
18
|
+
const dryRun: boolean = payload?.dry_run ?? false;
|
|
19
|
+
|
|
20
|
+
const result = {
|
|
21
|
+
agent: "rca",
|
|
22
|
+
hypotheses_count: 0,
|
|
23
|
+
confidence: 0.0,
|
|
24
|
+
status: "success",
|
|
25
|
+
dry_run: dryRun,
|
|
26
|
+
processing_ms: Date.now() - start,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
res.json({
|
|
30
|
+
...result,
|
|
31
|
+
layers_executed: layers,
|
|
32
|
+
execution_metadata: {
|
|
33
|
+
trace_id: uuidv4(),
|
|
34
|
+
timestamp: new Date().toISOString(),
|
|
35
|
+
service: "sentinel-agents",
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.callClaude = callClaude;
|
|
4
|
+
exports.extractJson = extractJson;
|
|
5
|
+
|
|
6
|
+
const { execFileSync } = require("child_process");
|
|
7
|
+
|
|
8
|
+
function findClaudeBinary() {
|
|
9
|
+
for (const name of ["claude", "claude-code"]) {
|
|
10
|
+
try {
|
|
11
|
+
const result = execFileSync("which", [name], { encoding: "utf-8", timeout: 5000 }).trim();
|
|
12
|
+
if (result) return result;
|
|
13
|
+
} catch {}
|
|
14
|
+
}
|
|
15
|
+
throw new Error("Claude Code binary not found. Install: npm i -g @anthropic-ai/claude-code");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let _binary = null;
|
|
19
|
+
function getBinary() {
|
|
20
|
+
if (!_binary) _binary = findClaudeBinary();
|
|
21
|
+
return _binary;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async function callClaude(apiKey, systemPrompt, userMessage) {
|
|
25
|
+
const binary = getBinary();
|
|
26
|
+
const prompt = systemPrompt + "\n\n" + userMessage;
|
|
27
|
+
const env = Object.assign({}, process.env, { CI: "1" });
|
|
28
|
+
// Use short timeout when called from a child process (to avoid blocking the
|
|
29
|
+
// child's event loop for 120s). The parent will kill us anyway at timeoutMs.
|
|
30
|
+
const timeoutMs = process.env.AGENTICS_CHILD_PROCESS ? 8000 : 120000;
|
|
31
|
+
delete env.CLAUDECODE;
|
|
32
|
+
delete env.AGENTICS_DEV;
|
|
33
|
+
|
|
34
|
+
const raw = execFileSync(binary, [
|
|
35
|
+
"--print", "--output-format", "json", "--model", "claude-sonnet-4-20250514", prompt
|
|
36
|
+
], {
|
|
37
|
+
encoding: "utf-8",
|
|
38
|
+
timeout: timeoutMs,
|
|
39
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
40
|
+
env: env,
|
|
41
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Unwrap claude --output-format json envelope
|
|
45
|
+
try {
|
|
46
|
+
const parsed = JSON.parse(raw);
|
|
47
|
+
if (parsed.type === "result" && typeof parsed.result === "string") {
|
|
48
|
+
return parsed.result;
|
|
49
|
+
}
|
|
50
|
+
return raw;
|
|
51
|
+
} catch {
|
|
52
|
+
return raw;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function extractJson(text) {
|
|
57
|
+
const fenceMatch = text.match(/```(?:json)?\s*([\s\S]*?)```/);
|
|
58
|
+
if (fenceMatch) return JSON.parse(fenceMatch[1].trim());
|
|
59
|
+
const startIdx = text.search(/[{[]/);
|
|
60
|
+
if (startIdx >= 0) {
|
|
61
|
+
const startChar = text[startIdx];
|
|
62
|
+
const endChar = startChar === "{" ? "}" : "]";
|
|
63
|
+
let depth = 0;
|
|
64
|
+
for (let i = startIdx; i < text.length; i++) {
|
|
65
|
+
if (text[i] === startChar) depth++;
|
|
66
|
+
else if (text[i] === endChar) depth--;
|
|
67
|
+
if (depth === 0) return JSON.parse(text.slice(startIdx, i + 1));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return JSON.parse(text.trim());
|
|
71
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import express, { Request, Response, NextFunction } from "express";
|
|
2
|
+
import cors from "cors";
|
|
3
|
+
import { handleAnomaly } from "./agents/anomaly";
|
|
4
|
+
import { handleDrift } from "./agents/drift";
|
|
5
|
+
import { handleAlert } from "./agents/alert";
|
|
6
|
+
import { handleCorrelation } from "./agents/correlation";
|
|
7
|
+
import { handleRca } from "./agents/rca";
|
|
8
|
+
|
|
9
|
+
const app = express();
|
|
10
|
+
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
// Middleware
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
app.use(express.json());
|
|
16
|
+
|
|
17
|
+
app.use(
|
|
18
|
+
cors({
|
|
19
|
+
origin: "*",
|
|
20
|
+
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
|
21
|
+
allowedHeaders: [
|
|
22
|
+
"X-Correlation-ID",
|
|
23
|
+
"X-API-Version",
|
|
24
|
+
"Content-Type",
|
|
25
|
+
"Authorization",
|
|
26
|
+
],
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// Health endpoint
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
app.get("/health", (_req: Request, res: Response) => {
|
|
35
|
+
res.json({
|
|
36
|
+
healthy: true,
|
|
37
|
+
service: "sentinel-agents",
|
|
38
|
+
agents: 5,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// Agent routes — POST /v1/sentinel/:agent
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
|
|
46
|
+
const agentHandlers: Record<string, (req: Request, res: Response) => Promise<void>> = {
|
|
47
|
+
anomaly: handleAnomaly,
|
|
48
|
+
drift: handleDrift,
|
|
49
|
+
alert: handleAlert,
|
|
50
|
+
correlation: handleCorrelation,
|
|
51
|
+
rca: handleRca,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
app.post("/v1/sentinel/:agent", async (req: Request, res: Response, next: NextFunction) => {
|
|
55
|
+
const { agent } = req.params;
|
|
56
|
+
const handler = agentHandlers[agent];
|
|
57
|
+
|
|
58
|
+
if (!handler) {
|
|
59
|
+
res.status(404).json({
|
|
60
|
+
error: `Unknown agent: ${agent}`,
|
|
61
|
+
available_agents: Object.keys(agentHandlers),
|
|
62
|
+
});
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
try {
|
|
67
|
+
await handler(req, res);
|
|
68
|
+
} catch (err) {
|
|
69
|
+
next(err);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Export for Cloud Functions
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
export const api = app;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2020"],
|
|
6
|
+
"outDir": "./lib",
|
|
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
|
+
"moduleResolution": "node"
|
|
17
|
+
},
|
|
18
|
+
"include": ["src/**/*.ts"],
|
|
19
|
+
"exclude": ["node_modules", "lib", "dist", "**/*.test.ts"]
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-chain.d.ts","sourceRoot":"","sources":["../../src/pipeline/auto-chain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAOL,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AA+BhC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;CACxC;AAED,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"auto-chain.d.ts","sourceRoot":"","sources":["../../src/pipeline/auto-chain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAOL,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AA+BhC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;CACxC;AAED,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AA4DD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,CA+a1B;AA6ND;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAuDzE"}
|
|
@@ -28,6 +28,53 @@ import { executeRufloPhaseSwarm, buildPhase2Tasks, buildPhase3Tasks, buildPhase4
|
|
|
28
28
|
function extractArtifactPaths(artifacts) {
|
|
29
29
|
return artifacts.map(a => typeof a === 'string' ? a : a.path);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Merge ruflo swarm output from .ruflo-cache/phaseN/ into the phase directory.
|
|
33
|
+
* Ruflo-produced files supplement the template generator output. Markdown files
|
|
34
|
+
* from ruflo are written alongside (not overwriting) template-generated files
|
|
35
|
+
* to ensure agent-produced research and SPARC content is preserved.
|
|
36
|
+
*/
|
|
37
|
+
function mergeRufloCacheIntoPhase(runDir, phaseNum) {
|
|
38
|
+
const cacheDir = path.join(runDir, '.ruflo-cache', `phase${phaseNum}`);
|
|
39
|
+
const phaseDir = path.join(runDir, `phase${phaseNum}`);
|
|
40
|
+
if (!fs.existsSync(cacheDir))
|
|
41
|
+
return 0;
|
|
42
|
+
if (!fs.existsSync(phaseDir))
|
|
43
|
+
fs.mkdirSync(phaseDir, { recursive: true });
|
|
44
|
+
let merged = 0;
|
|
45
|
+
function copyRecursive(src, dest) {
|
|
46
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
47
|
+
for (const entry of entries) {
|
|
48
|
+
const srcPath = path.join(src, entry.name);
|
|
49
|
+
const destPath = path.join(dest, entry.name);
|
|
50
|
+
if (entry.isDirectory()) {
|
|
51
|
+
if (!fs.existsSync(destPath))
|
|
52
|
+
fs.mkdirSync(destPath, { recursive: true });
|
|
53
|
+
copyRecursive(srcPath, destPath);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// For .md files: always copy (ruflo research/SPARC is the primary content)
|
|
57
|
+
// For other files: only copy if not already present (don't overwrite template JSON)
|
|
58
|
+
const isMd = entry.name.endsWith('.md');
|
|
59
|
+
if (isMd || !fs.existsSync(destPath)) {
|
|
60
|
+
fs.copyFileSync(srcPath, destPath);
|
|
61
|
+
merged++;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
copyRecursive(cacheDir, phaseDir);
|
|
68
|
+
if (merged > 0) {
|
|
69
|
+
console.error(` [MERGE] Copied ${merged} ruflo swarm files into phase${phaseNum}/`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (err) {
|
|
73
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
74
|
+
console.error(` [MERGE] Warning: ${msg}`);
|
|
75
|
+
}
|
|
76
|
+
return merged;
|
|
77
|
+
}
|
|
31
78
|
// ============================================================================
|
|
32
79
|
// Main Orchestrator
|
|
33
80
|
// ============================================================================
|
|
@@ -120,6 +167,7 @@ export async function executeAutoChain(traceId, options = {}) {
|
|
|
120
167
|
}
|
|
121
168
|
try {
|
|
122
169
|
const result = await executePhase2Command({ trace: traceId });
|
|
170
|
+
mergeRufloCacheIntoPhase(runDir, 2);
|
|
123
171
|
const timing = Date.now() - phaseStart;
|
|
124
172
|
const artifactPaths = extractArtifactPaths(result.manifest.artifacts);
|
|
125
173
|
console.error(formatPhase2ForDisplay(result));
|
|
@@ -166,6 +214,7 @@ export async function executeAutoChain(traceId, options = {}) {
|
|
|
166
214
|
}
|
|
167
215
|
try {
|
|
168
216
|
const result = await executePhase3Command({ trace: traceId });
|
|
217
|
+
mergeRufloCacheIntoPhase(runDir, 3);
|
|
169
218
|
const timing = Date.now() - phaseStart;
|
|
170
219
|
const artifactPaths = extractArtifactPaths(result.manifest.artifacts);
|
|
171
220
|
console.error(formatPhase3ForDisplay(result));
|
|
@@ -212,6 +261,7 @@ export async function executeAutoChain(traceId, options = {}) {
|
|
|
212
261
|
}
|
|
213
262
|
try {
|
|
214
263
|
const result = await executePhase4Command({ trace: traceId });
|
|
264
|
+
mergeRufloCacheIntoPhase(runDir, 4);
|
|
215
265
|
const timing = Date.now() - phaseStart;
|
|
216
266
|
const artifactPaths = extractArtifactPaths(result.manifest.artifacts);
|
|
217
267
|
console.error(formatPhase4ForDisplay(result));
|
|
@@ -316,6 +366,7 @@ export async function executeAutoChain(traceId, options = {}) {
|
|
|
316
366
|
// (bounded contexts, aggregates, events, commands, queries) from SPARC/TDD/ADR/DDD artifacts.
|
|
317
367
|
// Ruflo swarm enhances them when it has an LLM backend.
|
|
318
368
|
const result = await executePhase5Command({ trace: traceId });
|
|
369
|
+
mergeRufloCacheIntoPhase(runDir, 5);
|
|
319
370
|
const timing = Date.now() - phaseStart;
|
|
320
371
|
const artifactPaths = extractArtifactPaths(result.manifest.artifacts);
|
|
321
372
|
console.error(formatPhase5ForDisplay(result));
|
|
@@ -390,6 +441,7 @@ export async function executeAutoChain(traceId, options = {}) {
|
|
|
390
441
|
}
|
|
391
442
|
try {
|
|
392
443
|
const result = await executePhase6Command({ trace: traceId, outputDir: options.outputDir });
|
|
444
|
+
mergeRufloCacheIntoPhase(runDir, 6);
|
|
393
445
|
const timing = Date.now() - phaseStart;
|
|
394
446
|
const artifactPaths = extractArtifactPaths(result.manifest.artifacts);
|
|
395
447
|
console.error(formatPhase6ForDisplay(result, options.outputDir));
|