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