@aws/agentcore-cdk 0.1.0-alpha.4 → 0.1.0-alpha.40
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/README.md +20 -12
- package/dist/cdk/constants.d.ts +8 -0
- package/dist/cdk/constants.d.ts.map +1 -1
- package/dist/cdk/constants.js +27 -1
- package/dist/cdk/constants.js.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts +17 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js +20 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js.map +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/container/index.js +3 -1
- package/dist/cdk/constructs/bundling/container/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/index.d.ts +2 -0
- package/dist/cdk/constructs/bundling/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/index.js +6 -2
- package/dist/cdk/constructs/bundling/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts +7 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js +30 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js.map +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/zip/index.js +3 -1
- package/dist/cdk/constructs/bundling/zip/index.js.map +1 -1
- package/dist/cdk/constructs/components/base-props.d.ts +2 -0
- package/dist/cdk/constructs/components/base-props.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js +5 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +4 -2
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +2 -2
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.js +2 -3
- package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts +71 -0
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +1 -0
- package/dist/cdk/constructs/components/mcp/Gateway.js +897 -0
- package/dist/cdk/constructs/components/mcp/Gateway.js.map +1 -0
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js +2 -2
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts +20 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts.map +1 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.js +16 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.js.map +1 -0
- package/dist/cdk/constructs/components/mcp/index.d.ts +1 -1
- package/dist/cdk/constructs/components/mcp/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/index.js +3 -3
- package/dist/cdk/constructs/components/mcp/index.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.js +2 -2
- package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts +51 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js +54 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js +65 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js +91 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts +47 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +207 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +222 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +58 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +79 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +65 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +445 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js +182 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts +47 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js +391 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts +9 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +21 -1
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +69 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js +292 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts +15 -4
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +93 -35
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.js +146 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +44 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +38 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +111 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +72 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +14 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +237 -80
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.js +113 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.js.map +1 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.d.ts +2 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.js +99 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.js.map +1 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.d.ts +28 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.js +39 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.js.map +1 -0
- package/dist/cdk/constructs/index.d.ts +7 -3
- package/dist/cdk/constructs/index.d.ts.map +1 -1
- package/dist/cdk/constructs/index.js +20 -1
- package/dist/cdk/constructs/index.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +126 -2
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +526 -10
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +38 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +86 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +9 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +95 -17
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +9 -0
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.js +40 -2
- package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -1
- package/dist/cdk/constructs/l3/index.d.ts +2 -1
- package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/index.js +3 -1
- package/dist/cdk/constructs/l3/index.js.map +1 -1
- package/dist/cdk/index.d.ts +1 -1
- package/dist/cdk/index.d.ts.map +1 -1
- package/dist/cdk/index.js +15 -1
- package/dist/cdk/index.js.map +1 -1
- package/dist/cdk/utils/__tests__/tags.test.d.ts +2 -0
- package/dist/cdk/utils/__tests__/tags.test.d.ts.map +1 -0
- package/dist/cdk/utils/__tests__/tags.test.js +57 -0
- package/dist/cdk/utils/__tests__/tags.test.js.map +1 -0
- package/dist/cdk/utils/tags.d.ts +11 -0
- package/dist/cdk/utils/tags.d.ts.map +1 -0
- package/dist/cdk/utils/tags.js +22 -0
- package/dist/cdk/utils/tags.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +2 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors/config.js +1 -1
- package/dist/lib/errors/config.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts +4 -0
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +53 -16
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts +2 -6
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +11 -10
- package/dist/lib/packaging/index.js.map +1 -1
- package/dist/lib/packaging/node.d.ts +6 -0
- package/dist/lib/packaging/node.d.ts.map +1 -0
- package/dist/lib/packaging/node.js +97 -0
- package/dist/lib/packaging/node.js.map +1 -0
- package/dist/lib/packaging/types/packaging.d.ts +2 -0
- package/dist/lib/packaging/types/packaging.d.ts.map +1 -1
- package/dist/lib/packaging/uv.d.ts.map +1 -1
- package/dist/lib/packaging/uv.js +1 -1
- package/dist/lib/packaging/uv.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts +6 -3
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +19 -11
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/schema/constants.d.ts +23 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +40 -2
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +186 -6
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +249 -12
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +928 -22
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +297 -11
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +311 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +236 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/aws-targets.d.ts +21 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +8 -0
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +224 -16
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +52 -4
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +1 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +1 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +628 -32
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +736 -44
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/config-bundle.d.ts +30 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +36 -0
- package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
- package/dist/schema/schemas/primitives/dataset.d.ts +53 -0
- package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/dataset.js +65 -0
- package/dist/schema/schemas/primitives/dataset.js.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts +100 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.js +73 -0
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -0
- package/dist/schema/schemas/primitives/harness.d.ts +606 -0
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/harness.js +575 -0
- package/dist/schema/schemas/primitives/harness.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +16 -2
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +63 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/knowledge-base.d.ts +103 -0
- package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/knowledge-base.js +98 -0
- package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
- package/dist/schema/schemas/primitives/memory.d.ts +33 -2
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +33 -3
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +32 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js +66 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -0
- package/dist/schema/schemas/primitives/policy.d.ts +49 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/policy.js +62 -0
- package/dist/schema/schemas/primitives/policy.js.map +1 -0
- package/dist/schema/schemas/primitives/tags.d.ts +6 -0
- package/dist/schema/schemas/primitives/tags.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/tags.js +20 -0
- package/dist/schema/schemas/primitives/tags.js.map +1 -0
- package/package.json +22 -5
- package/dist/cdk/constructs/components/mcp/McpGateway.d.ts +0 -49
- package/dist/cdk/constructs/components/mcp/McpGateway.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpGateway.js +0 -288
- package/dist/cdk/constructs/components/mcp/McpGateway.js.map +0 -1
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HarnessSpecSchema = exports.AllowedToolSchema = exports.HarnessSkillSchema = exports.HarnessSkillAwsSkillsSourceSchema = exports.HarnessSkillPathSourceSchema = exports.HarnessSkillGitSourceSchema = exports.HarnessSkillS3SourceSchema = exports.HarnessSkillGitAuthSchema = exports.HarnessTruncationConfigSchema = exports.SummarizationConfigSchema = exports.SlidingWindowConfigSchema = exports.HarnessTruncationStrategySchema = exports.HarnessMemoryRefSchema = exports.ManagedMemoryStrategySchema = exports.HarnessMemoryRetrievalConfigSchema = exports.HarnessToolSchema = exports.HarnessToolConfigSchema = exports.InlineFunctionConfigSchema = exports.AgentCoreGatewayConfigSchema = exports.HarnessGatewayOutboundAuthSchema = exports.GatewayOAuthGrantTypeSchema = exports.AgentCoreCodeInterpreterConfigSchema = exports.AgentCoreBrowserConfigSchema = exports.RemoteMcpConfigSchema = exports.HarnessToolNameSchema = exports.HarnessToolTypeSchema = exports.HarnessModelSchema = exports.HarnessApiFormatSchema = exports.OpenAiApiFormatSchema = exports.BedrockApiFormatSchema = exports.MAX_LITE_LLM_API_BASE_LENGTH = exports.HarnessModelProviderSchema = exports.HarnessNameSchema = exports.MAX_ENV_VAR_KEY_LENGTH = exports.MAX_ENV_VARS = exports.MAX_ENV_VAR_VALUE_LENGTH = exports.MAX_CONTAINER_URI_LENGTH = exports.CONTAINER_URI_PATTERN = void 0;
|
|
4
|
+
exports.validateApiFormat = validateApiFormat;
|
|
5
|
+
exports.looksLikeLegacyPromptPath = looksLikeLegacyPromptPath;
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const agent_env_1 = require("../agent-env");
|
|
8
|
+
const auth_1 = require("../auth");
|
|
9
|
+
const zod_util_1 = require("../zod-util");
|
|
10
|
+
const tags_1 = require("./tags");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
/**
|
|
13
|
+
* ECR container image URI pattern, mirroring the CFN ContainerConfiguration.ContainerUri
|
|
14
|
+
* constraint (private 12-digit ECR registry or public.ecr.aws, optional tag/digest).
|
|
15
|
+
* A non-ECR URI is rejected client-side instead of failing at CloudFormation CREATE.
|
|
16
|
+
*/
|
|
17
|
+
exports.CONTAINER_URI_PATTERN =
|
|
18
|
+
// eslint-disable-next-line security/detect-unsafe-regex -- mirrors the CFN ContainerUri pattern; input is length-bounded by .max(MAX_CONTAINER_URI_LENGTH)
|
|
19
|
+
/^(([0-9]{12})\.dkr\.ecr\.([a-z0-9-]+)\.amazonaws\.com(\.cn)?|public\.ecr\.aws)\/((?:[a-z0-9]+(?:[._-][a-z0-9]+)*\/)*[a-z0-9]+(?:[._-][a-z0-9]+)*)(?::([^:@]{1,300}))?(?:@(.+))?$/;
|
|
20
|
+
/** CFN ContainerConfiguration.ContainerUri maxLength. */
|
|
21
|
+
exports.MAX_CONTAINER_URI_LENGTH = 1024;
|
|
22
|
+
/** CFN EnvironmentVariables value maxLength and map maxProperties. */
|
|
23
|
+
exports.MAX_ENV_VAR_VALUE_LENGTH = 5000;
|
|
24
|
+
exports.MAX_ENV_VARS = 50;
|
|
25
|
+
/** CFN/Smithy EnvironmentVariableKey length bounds (Smithy EnvironmentVariableKey: 1–100, no char pattern). */
|
|
26
|
+
exports.MAX_ENV_VAR_KEY_LENGTH = 100;
|
|
27
|
+
// ============================================================================
|
|
28
|
+
// Harness Name
|
|
29
|
+
// ============================================================================
|
|
30
|
+
exports.HarnessNameSchema = zod_1.z
|
|
31
|
+
.string()
|
|
32
|
+
.min(1, 'Harness name is required')
|
|
33
|
+
.max(40)
|
|
34
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 40 chars)');
|
|
35
|
+
// ============================================================================
|
|
36
|
+
// Model Configuration
|
|
37
|
+
// ============================================================================
|
|
38
|
+
exports.HarnessModelProviderSchema = zod_1.z.enum(['bedrock', 'open_ai', 'gemini', 'lite_llm']);
|
|
39
|
+
/** Max length of the LiteLLM apiBase URL (Smithy: HarnessLiteLlmApiBase, 1–16383). */
|
|
40
|
+
exports.MAX_LITE_LLM_API_BASE_LENGTH = 16383;
|
|
41
|
+
exports.BedrockApiFormatSchema = zod_1.z.enum(['converse_stream', 'responses', 'chat_completions']);
|
|
42
|
+
exports.OpenAiApiFormatSchema = zod_1.z.enum(['responses', 'chat_completions']);
|
|
43
|
+
exports.HarnessApiFormatSchema = zod_1.z.enum(['converse_stream', 'responses', 'chat_completions']);
|
|
44
|
+
exports.HarnessModelSchema = zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
provider: exports.HarnessModelProviderSchema,
|
|
47
|
+
modelId: zod_1.z.string().min(1, 'Model ID is required'),
|
|
48
|
+
apiKeyArn: zod_1.z.string().optional(),
|
|
49
|
+
apiFormat: exports.HarnessApiFormatSchema.optional(),
|
|
50
|
+
temperature: zod_1.z.number().min(0).max(2).optional(),
|
|
51
|
+
topP: zod_1.z.number().min(0).max(1).optional(),
|
|
52
|
+
topK: zod_1.z.number().int().min(0).max(500).optional(),
|
|
53
|
+
maxTokens: zod_1.z.number().int().min(1).optional(),
|
|
54
|
+
/** LiteLLM only: base URL for the third-party model provider's API endpoint. */
|
|
55
|
+
apiBase: zod_1.z.string().min(1).max(exports.MAX_LITE_LLM_API_BASE_LENGTH).optional(),
|
|
56
|
+
/** LiteLLM only: provider-specific parameters passed through to the model provider unchanged. */
|
|
57
|
+
additionalParams: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
58
|
+
})
|
|
59
|
+
.superRefine((model, ctx) => {
|
|
60
|
+
if (model.topK !== undefined && model.provider !== 'gemini') {
|
|
61
|
+
ctx.addIssue({
|
|
62
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
63
|
+
message: 'topK is only supported for the "gemini" provider',
|
|
64
|
+
path: ['topK'],
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (model.apiFormat !== undefined) {
|
|
68
|
+
if (model.provider !== 'bedrock' && model.provider !== 'open_ai') {
|
|
69
|
+
ctx.addIssue({
|
|
70
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
71
|
+
message: 'apiFormat is only supported for the "bedrock" and "open_ai" providers',
|
|
72
|
+
path: ['apiFormat'],
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else if (model.provider === 'open_ai' && model.apiFormat === 'converse_stream') {
|
|
76
|
+
ctx.addIssue({
|
|
77
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
78
|
+
message: `Invalid API format for open_ai: ${model.apiFormat}. Use ${exports.OpenAiApiFormatSchema.options.join(', ')}`,
|
|
79
|
+
path: ['apiFormat'],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// CFN requires ApiKeyArn for the open_ai and gemini model configs (bedrock and lite_llm do not).
|
|
84
|
+
if (model.apiKeyArn === undefined && (model.provider === 'open_ai' || model.provider === 'gemini')) {
|
|
85
|
+
ctx.addIssue({
|
|
86
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
87
|
+
message: `apiKeyArn is required for the "${model.provider}" provider`,
|
|
88
|
+
path: ['apiKeyArn'],
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (model.apiBase !== undefined && model.provider !== 'lite_llm') {
|
|
92
|
+
ctx.addIssue({
|
|
93
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
94
|
+
message: 'apiBase is only supported for the "lite_llm" provider',
|
|
95
|
+
path: ['apiBase'],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (model.additionalParams !== undefined && model.provider !== 'lite_llm') {
|
|
99
|
+
ctx.addIssue({
|
|
100
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
101
|
+
message: 'additionalParams is only supported for the "lite_llm" provider',
|
|
102
|
+
path: ['additionalParams'],
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
function validateApiFormat(apiFormat, provider) {
|
|
107
|
+
const allFormats = exports.HarnessApiFormatSchema.options;
|
|
108
|
+
if (!allFormats.includes(apiFormat)) {
|
|
109
|
+
return { valid: false, error: `Invalid API format: ${apiFormat}. Use ${allFormats.join(', ')}` };
|
|
110
|
+
}
|
|
111
|
+
if (provider !== 'bedrock' && provider !== 'open_ai') {
|
|
112
|
+
return { valid: false, error: 'apiFormat is only supported for bedrock and open_ai providers' };
|
|
113
|
+
}
|
|
114
|
+
const result = exports.HarnessModelSchema.safeParse({ provider, modelId: 'placeholder', apiFormat });
|
|
115
|
+
if (result.success)
|
|
116
|
+
return { valid: true };
|
|
117
|
+
const apiFormatIssue = result.error.issues.find(i => i.path.includes('apiFormat'));
|
|
118
|
+
if (apiFormatIssue) {
|
|
119
|
+
return {
|
|
120
|
+
valid: false,
|
|
121
|
+
error: `Invalid API format for ${provider}: ${apiFormat}. Use ${(provider === 'open_ai' ? exports.OpenAiApiFormatSchema : exports.BedrockApiFormatSchema).options.join(', ')}`,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
return { valid: true };
|
|
125
|
+
}
|
|
126
|
+
// ============================================================================
|
|
127
|
+
// Tool Configuration
|
|
128
|
+
// ============================================================================
|
|
129
|
+
exports.HarnessToolTypeSchema = zod_1.z.enum([
|
|
130
|
+
'remote_mcp',
|
|
131
|
+
'agentcore_browser',
|
|
132
|
+
'agentcore_gateway',
|
|
133
|
+
'inline_function',
|
|
134
|
+
'agentcore_code_interpreter',
|
|
135
|
+
]);
|
|
136
|
+
exports.HarnessToolNameSchema = zod_1.z
|
|
137
|
+
.string()
|
|
138
|
+
.min(1)
|
|
139
|
+
.max(64)
|
|
140
|
+
.regex(/^[a-zA-Z0-9_-]+$/, 'Tool name must contain only alphanumeric characters, hyphens, and underscores (1-64 chars)');
|
|
141
|
+
exports.RemoteMcpConfigSchema = zod_1.z.object({
|
|
142
|
+
remoteMcp: zod_1.z.object({
|
|
143
|
+
url: zod_1.z.string().min(1),
|
|
144
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
exports.AgentCoreBrowserConfigSchema = zod_1.z.object({
|
|
148
|
+
agentCoreBrowser: zod_1.z.object({
|
|
149
|
+
browserArn: zod_1.z.string().optional(),
|
|
150
|
+
}),
|
|
151
|
+
});
|
|
152
|
+
exports.AgentCoreCodeInterpreterConfigSchema = zod_1.z.object({
|
|
153
|
+
agentCoreCodeInterpreter: zod_1.z.object({
|
|
154
|
+
codeInterpreterArn: zod_1.z.string().optional(),
|
|
155
|
+
}),
|
|
156
|
+
});
|
|
157
|
+
exports.GatewayOAuthGrantTypeSchema = zod_1.z.enum(['CLIENT_CREDENTIALS', 'USER_FEDERATION']);
|
|
158
|
+
exports.HarnessGatewayOutboundAuthSchema = zod_1.z.union([
|
|
159
|
+
zod_1.z.object({ awsIam: zod_1.z.object({}) }),
|
|
160
|
+
zod_1.z.object({ none: zod_1.z.object({}) }),
|
|
161
|
+
zod_1.z.object({
|
|
162
|
+
oauth: zod_1.z.object({
|
|
163
|
+
providerArn: zod_1.z.string().min(1),
|
|
164
|
+
scopes: zod_1.z.array(zod_1.z.string().min(1)),
|
|
165
|
+
grantType: exports.GatewayOAuthGrantTypeSchema.optional(),
|
|
166
|
+
customParameters: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
167
|
+
}),
|
|
168
|
+
}),
|
|
169
|
+
]);
|
|
170
|
+
exports.AgentCoreGatewayConfigSchema = zod_1.z.object({
|
|
171
|
+
agentCoreGateway: zod_1.z
|
|
172
|
+
.object({
|
|
173
|
+
gatewayArn: zod_1.z.string().min(1),
|
|
174
|
+
outboundAuth: exports.HarnessGatewayOutboundAuthSchema.optional(),
|
|
175
|
+
})
|
|
176
|
+
.passthrough()
|
|
177
|
+
.superRefine((data, ctx) => {
|
|
178
|
+
if ('credentialProviderName' in data) {
|
|
179
|
+
ctx.addIssue({
|
|
180
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
181
|
+
message: 'credentialProviderName is no longer supported. Use outboundAuth instead. Example: outboundAuth: { awsIam: {} } or outboundAuth: { oauth: { providerArn: "...", scopes: [...] } }',
|
|
182
|
+
path: ['credentialProviderName'],
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}),
|
|
186
|
+
});
|
|
187
|
+
exports.InlineFunctionConfigSchema = zod_1.z.object({
|
|
188
|
+
inlineFunction: zod_1.z.object({
|
|
189
|
+
description: zod_1.z.string().min(1),
|
|
190
|
+
inputSchema: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
191
|
+
}),
|
|
192
|
+
});
|
|
193
|
+
exports.HarnessToolConfigSchema = zod_1.z.union([
|
|
194
|
+
exports.RemoteMcpConfigSchema,
|
|
195
|
+
exports.AgentCoreBrowserConfigSchema,
|
|
196
|
+
exports.AgentCoreCodeInterpreterConfigSchema,
|
|
197
|
+
exports.AgentCoreGatewayConfigSchema,
|
|
198
|
+
exports.InlineFunctionConfigSchema,
|
|
199
|
+
]);
|
|
200
|
+
const TOOL_TYPE_TO_CONFIG_KEY = {
|
|
201
|
+
remote_mcp: 'remoteMcp',
|
|
202
|
+
agentcore_browser: 'agentCoreBrowser',
|
|
203
|
+
agentcore_gateway: 'agentCoreGateway',
|
|
204
|
+
inline_function: 'inlineFunction',
|
|
205
|
+
agentcore_code_interpreter: 'agentCoreCodeInterpreter',
|
|
206
|
+
};
|
|
207
|
+
const TOOL_TYPES_REQUIRING_CONFIG = new Set(['remote_mcp', 'agentcore_gateway', 'inline_function']);
|
|
208
|
+
exports.HarnessToolSchema = zod_1.z
|
|
209
|
+
.object({
|
|
210
|
+
type: exports.HarnessToolTypeSchema,
|
|
211
|
+
name: exports.HarnessToolNameSchema,
|
|
212
|
+
config: exports.HarnessToolConfigSchema.optional(),
|
|
213
|
+
})
|
|
214
|
+
.superRefine((tool, ctx) => {
|
|
215
|
+
const expectedKey = TOOL_TYPE_TO_CONFIG_KEY[tool.type];
|
|
216
|
+
if (!tool.config) {
|
|
217
|
+
if (TOOL_TYPES_REQUIRING_CONFIG.has(tool.type)) {
|
|
218
|
+
ctx.addIssue({
|
|
219
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
220
|
+
message: `Tool type "${tool.type}" requires a "${expectedKey}" config`,
|
|
221
|
+
path: ['config'],
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
const configKeys = Object.keys(tool.config);
|
|
227
|
+
if (configKeys.length !== 1 || configKeys[0] !== expectedKey) {
|
|
228
|
+
ctx.addIssue({
|
|
229
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
230
|
+
message: `Tool type "${tool.type}" requires "${expectedKey}" config, got "${configKeys[0]}"`,
|
|
231
|
+
path: ['config'],
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
// ============================================================================
|
|
236
|
+
// Memory Reference
|
|
237
|
+
// ============================================================================
|
|
238
|
+
/**
|
|
239
|
+
* Per-namespace retrieval tuning, applied as a flat default across every namespace
|
|
240
|
+
* of the referenced memory's strategies. Namespaces are only known at synth (from the
|
|
241
|
+
* resolved Memory's strategies), so a per-namespace map cannot be authored here; this
|
|
242
|
+
* single config is fanned out to each namespace. StrategyId is omitted deliberately —
|
|
243
|
+
* the namespace already identifies the strategy and the id is service-assigned. Maps to
|
|
244
|
+
* CFN HarnessAgentCoreMemoryRetrievalConfig {TopK, RelevanceScore}.
|
|
245
|
+
*/
|
|
246
|
+
exports.HarnessMemoryRetrievalConfigSchema = zod_1.z
|
|
247
|
+
.object({
|
|
248
|
+
topK: zod_1.z.number().int().min(1).optional(),
|
|
249
|
+
relevanceScore: zod_1.z.number().min(0).max(1).optional(),
|
|
250
|
+
})
|
|
251
|
+
.strict()
|
|
252
|
+
// An empty `{}` parses against the optional fields, but fans out to per-namespace `{}` objects —
|
|
253
|
+
// the exact shape that crashed the pre-v6 service handler. Require at least one knob.
|
|
254
|
+
.refine(v => v.topK !== undefined || v.relevanceScore !== undefined, {
|
|
255
|
+
message: 'retrievalConfig must specify at least one of topK or relevanceScore',
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
* Managed-memory strategy set. NOT MemoryStrategyTypeSchema: managed harness memory excludes
|
|
259
|
+
* CUSTOM (the CFN ManagedMemoryConfiguration.Strategies enum is exactly these four).
|
|
260
|
+
*/
|
|
261
|
+
exports.ManagedMemoryStrategySchema = zod_1.z.enum(['SEMANTIC', 'SUMMARIZATION', 'USER_PREFERENCE', 'EPISODIC']);
|
|
262
|
+
/**
|
|
263
|
+
* Managed: the harness creates and owns its memory internally. The memory `arn` is read-only
|
|
264
|
+
* (service-populated) and never authored here. `strategies` is OPTIONAL and left absent by default:
|
|
265
|
+
* when omitted, the harness/service applies its own default strategy set. It is only written when the
|
|
266
|
+
* user explicitly tunes it, so the CLI never pins a default the service might evolve.
|
|
267
|
+
*/
|
|
268
|
+
const ManagedMemoryRefSchema = zod_1.z
|
|
269
|
+
.object({
|
|
270
|
+
mode: zod_1.z.literal('managed'),
|
|
271
|
+
strategies: zod_1.z.array(exports.ManagedMemoryStrategySchema).min(1).max(4).optional(),
|
|
272
|
+
eventExpiryDuration: zod_1.z.number().int().min(3).max(365).optional(),
|
|
273
|
+
encryptionKeyArn: zod_1.z.string().min(1).optional(),
|
|
274
|
+
})
|
|
275
|
+
.strict();
|
|
276
|
+
/**
|
|
277
|
+
* Existing (bring-your-own): reference a memory by name (project sibling) or arn, carrying the
|
|
278
|
+
* optional deploy-time tuning. This is the pre-union flat shape, now tagged `existing`.
|
|
279
|
+
*/
|
|
280
|
+
const ExistingMemoryRefSchema = zod_1.z
|
|
281
|
+
.object({
|
|
282
|
+
mode: zod_1.z.literal('existing'),
|
|
283
|
+
name: zod_1.z.string().min(1).optional(),
|
|
284
|
+
arn: zod_1.z.string().min(1).optional(),
|
|
285
|
+
actorId: zod_1.z.string().optional(),
|
|
286
|
+
/** Limits how many recent memory messages are loaded into context (CFN MessagesCount). */
|
|
287
|
+
messagesCount: zod_1.z.number().int().min(1).optional(),
|
|
288
|
+
/** Retrieval tuning applied to every namespace of the referenced memory (CFN RetrievalConfig). */
|
|
289
|
+
retrievalConfig: exports.HarnessMemoryRetrievalConfigSchema.optional(),
|
|
290
|
+
})
|
|
291
|
+
// .strict() so a typo (e.g. `messageCount` for `messagesCount`) is a parse error rather than a
|
|
292
|
+
// silently-dropped field that defeats the B6 MessagesCount fix.
|
|
293
|
+
.strict()
|
|
294
|
+
.refine(m => m.arn != null || m.name != null, {
|
|
295
|
+
message: 'existing memory requires `arn` or `name`',
|
|
296
|
+
path: ['name'],
|
|
297
|
+
})
|
|
298
|
+
.superRefine((ref, ctx) => {
|
|
299
|
+
// retrievalConfig is applied per-namespace, and namespaces are only resolvable from a by-name
|
|
300
|
+
// memory's strategies. At synth `arn` takes precedence over `name` (resolveHarnessMemory), so
|
|
301
|
+
// ANY ref carrying `arn` resolves no strategies and buildRetrievalConfig drops the tuning —
|
|
302
|
+
// including the `{ arn, name, retrievalConfig }` combo. Gate on `arn` alone, not `arn && !name`,
|
|
303
|
+
// so that combo can't slip through. (messagesCount and actorId are emitted directly from the
|
|
304
|
+
// ref, so they stay valid for a by-arn reference.)
|
|
305
|
+
if (ref.arn && ref.retrievalConfig !== undefined) {
|
|
306
|
+
ctx.addIssue({
|
|
307
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
308
|
+
message: 'retrievalConfig is not supported when memory is referenced by `arn` (per-namespace tuning is only resolvable for a by-name reference). Reference the memory by `name` only, or drop retrievalConfig.',
|
|
309
|
+
path: ['retrievalConfig'],
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
/** Disabled: explicit opt-out of memory. */
|
|
314
|
+
const DisabledMemoryRefSchema = zod_1.z.object({ mode: zod_1.z.literal('disabled') }).strict();
|
|
315
|
+
/**
|
|
316
|
+
* Memory reference for a harness — exactly one of managed | existing | disabled.
|
|
317
|
+
* A legacy-aware preprocess maps the pre-union flat shape ({ name | arn | ... }) to the `existing`
|
|
318
|
+
* arm. Absent memory STAYS absent — managed is the default only for NEW harnesses (seeded at create
|
|
319
|
+
* time by the CLI/TUI), never invented here, so already-deployed harnesses are not auto-upgraded.
|
|
320
|
+
*/
|
|
321
|
+
exports.HarnessMemoryRefSchema = zod_1.z.preprocess(val => {
|
|
322
|
+
if (val == null || typeof val !== 'object')
|
|
323
|
+
return val;
|
|
324
|
+
const obj = val;
|
|
325
|
+
if ('mode' in obj)
|
|
326
|
+
return obj; // already union-tagged
|
|
327
|
+
// Legacy flat shape → existing (it always referenced a sibling/external memory by name or arn).
|
|
328
|
+
return { mode: 'existing', ...obj };
|
|
329
|
+
}, zod_1.z.discriminatedUnion('mode', [ManagedMemoryRefSchema, ExistingMemoryRefSchema, DisabledMemoryRefSchema]));
|
|
330
|
+
// ============================================================================
|
|
331
|
+
// Truncation Configuration
|
|
332
|
+
// ============================================================================
|
|
333
|
+
exports.HarnessTruncationStrategySchema = zod_1.z.enum(['sliding_window', 'summarization', 'none']);
|
|
334
|
+
// .strict() on the outer object so a payload carrying BOTH arms
|
|
335
|
+
// (`{ slidingWindow: {...}, summarization: {...} }`) fails the union — without it the union
|
|
336
|
+
// matches the first arm and silently drops the second arm's config.
|
|
337
|
+
exports.SlidingWindowConfigSchema = zod_1.z
|
|
338
|
+
.object({
|
|
339
|
+
slidingWindow: zod_1.z.object({
|
|
340
|
+
messagesCount: zod_1.z.number().int().min(1).optional(),
|
|
341
|
+
}),
|
|
342
|
+
})
|
|
343
|
+
.strict();
|
|
344
|
+
exports.SummarizationConfigSchema = zod_1.z
|
|
345
|
+
.object({
|
|
346
|
+
summarization: zod_1.z.object({
|
|
347
|
+
summaryRatio: zod_1.z.number().min(0).max(1).optional(),
|
|
348
|
+
preserveRecentMessages: zod_1.z.number().int().min(0).optional(),
|
|
349
|
+
summarizationSystemPrompt: zod_1.z.string().optional(),
|
|
350
|
+
}),
|
|
351
|
+
})
|
|
352
|
+
.strict();
|
|
353
|
+
exports.HarnessTruncationConfigSchema = zod_1.z
|
|
354
|
+
.object({
|
|
355
|
+
strategy: exports.HarnessTruncationStrategySchema,
|
|
356
|
+
config: zod_1.z.union([exports.SlidingWindowConfigSchema, exports.SummarizationConfigSchema]).optional(),
|
|
357
|
+
})
|
|
358
|
+
.superRefine((data, ctx) => {
|
|
359
|
+
// Bind the config arm to the chosen strategy: sliding_window must carry a slidingWindow
|
|
360
|
+
// config (or none), summarization a summarization config (or none), and none takes no config.
|
|
361
|
+
if (!data.config)
|
|
362
|
+
return;
|
|
363
|
+
const configKey = 'slidingWindow' in data.config ? 'slidingWindow' : 'summarization';
|
|
364
|
+
const expected = {
|
|
365
|
+
sliding_window: 'slidingWindow',
|
|
366
|
+
summarization: 'summarization',
|
|
367
|
+
none: undefined,
|
|
368
|
+
};
|
|
369
|
+
if (expected[data.strategy] === undefined) {
|
|
370
|
+
ctx.addIssue({
|
|
371
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
372
|
+
message: `Truncation strategy "${data.strategy}" does not take a config`,
|
|
373
|
+
path: ['config'],
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
else if (expected[data.strategy] !== configKey) {
|
|
377
|
+
ctx.addIssue({
|
|
378
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
379
|
+
message: `Truncation strategy "${data.strategy}" requires a "${expected[data.strategy]}" config, got "${configKey}"`,
|
|
380
|
+
path: ['config'],
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
// ============================================================================
|
|
385
|
+
// Skill Configuration
|
|
386
|
+
// ============================================================================
|
|
387
|
+
exports.HarnessSkillGitAuthSchema = zod_1.z.object({
|
|
388
|
+
credentialName: zod_1.z.string().min(1),
|
|
389
|
+
username: zod_1.z.string().optional(),
|
|
390
|
+
});
|
|
391
|
+
exports.HarnessSkillS3SourceSchema = zod_1.z
|
|
392
|
+
.object({
|
|
393
|
+
s3Uri: zod_1.z
|
|
394
|
+
.string()
|
|
395
|
+
.min(5)
|
|
396
|
+
.regex(/^s3:\/\//, 'Must be an S3 URI starting with s3://'),
|
|
397
|
+
})
|
|
398
|
+
.strict();
|
|
399
|
+
exports.HarnessSkillGitSourceSchema = zod_1.z
|
|
400
|
+
.object({
|
|
401
|
+
gitUrl: zod_1.z
|
|
402
|
+
.string()
|
|
403
|
+
.min(8)
|
|
404
|
+
.regex(/^https:\/\//, 'Must be an HTTPS git URL'),
|
|
405
|
+
path: zod_1.z.string().min(1).optional(),
|
|
406
|
+
auth: exports.HarnessSkillGitAuthSchema.optional(),
|
|
407
|
+
})
|
|
408
|
+
.strict();
|
|
409
|
+
exports.HarnessSkillPathSourceSchema = zod_1.z
|
|
410
|
+
.object({
|
|
411
|
+
path: zod_1.z.string().min(1),
|
|
412
|
+
})
|
|
413
|
+
.strict();
|
|
414
|
+
exports.HarnessSkillAwsSkillsSourceSchema = zod_1.z
|
|
415
|
+
.object({
|
|
416
|
+
awsSkills: zod_1.z
|
|
417
|
+
.object({
|
|
418
|
+
paths: zod_1.z.array(zod_1.z.string().min(1).max(4096)).optional(),
|
|
419
|
+
})
|
|
420
|
+
.strict(),
|
|
421
|
+
})
|
|
422
|
+
.strict();
|
|
423
|
+
/**
|
|
424
|
+
* A skill source: either an S3 source, Git source, path object, AWS skills, or a bare string
|
|
425
|
+
* (treated as a filesystem path for backward compatibility).
|
|
426
|
+
*/
|
|
427
|
+
exports.HarnessSkillSchema = zod_1.z.union([
|
|
428
|
+
zod_1.z
|
|
429
|
+
.string()
|
|
430
|
+
.min(1)
|
|
431
|
+
.transform(path => ({ path })),
|
|
432
|
+
exports.HarnessSkillS3SourceSchema,
|
|
433
|
+
exports.HarnessSkillGitSourceSchema,
|
|
434
|
+
exports.HarnessSkillPathSourceSchema,
|
|
435
|
+
exports.HarnessSkillAwsSkillsSourceSchema,
|
|
436
|
+
]);
|
|
437
|
+
// ============================================================================
|
|
438
|
+
// Allowed Tools
|
|
439
|
+
// ============================================================================
|
|
440
|
+
exports.AllowedToolSchema = zod_1.z
|
|
441
|
+
.string()
|
|
442
|
+
.min(1)
|
|
443
|
+
.max(64)
|
|
444
|
+
.regex(/^\*$|^@?[^/]+$|^@?[^/]+\/[^/]+$/, 'Must be "*" or a tool name pattern (max 64 chars)');
|
|
445
|
+
/**
|
|
446
|
+
* Detects the legacy file-path-shaped `systemPrompt` (the pre-migration `./prompt.md` style that
|
|
447
|
+
* the old L3 read from disk). A real system prompt is instructional prose containing whitespace;
|
|
448
|
+
* the legacy shape was always a single bare token that is a relative path or ends in .md/.txt.
|
|
449
|
+
* Used to fail fast on upgrade rather than silently shipping the path string as the prompt text.
|
|
450
|
+
*/
|
|
451
|
+
function looksLikeLegacyPromptPath(value) {
|
|
452
|
+
const v = value.trim();
|
|
453
|
+
if (!/^\S+$/.test(v))
|
|
454
|
+
return false; // prose contains whitespace — never a path
|
|
455
|
+
return /^\.\.?\//.test(v) || /\.(md|txt)$/i.test(v);
|
|
456
|
+
}
|
|
457
|
+
// ============================================================================
|
|
458
|
+
// HarnessSpec — per-harness config file schema (harness.json)
|
|
459
|
+
// ============================================================================
|
|
460
|
+
exports.HarnessSpecSchema = zod_1.z
|
|
461
|
+
.object({
|
|
462
|
+
name: exports.HarnessNameSchema,
|
|
463
|
+
model: exports.HarnessModelSchema,
|
|
464
|
+
// Always literal text. CFN HarnessSystemContentBlock.Text is minLength:1, so a blank or
|
|
465
|
+
// whitespace-only prompt would deploy to CREATE_FAILED — reject it client-side instead.
|
|
466
|
+
// (File-backed prompts are supplied via system-prompt.md auto-discovery, not this field.)
|
|
467
|
+
systemPrompt: zod_1.z
|
|
468
|
+
.string()
|
|
469
|
+
.refine(val => val.trim().length > 0, { message: 'systemPrompt must not be empty or whitespace-only' })
|
|
470
|
+
// Migration fail-fast: the previous L3 treated a `./prompt.md`-style value as a file path and
|
|
471
|
+
// loaded its contents; this field is now ALWAYS literal text, so such a value would silently
|
|
472
|
+
// ship as the prompt itself. Reject the legacy file-path shape so the divergence fails loudly
|
|
473
|
+
// at parse/validate time (before synth) instead of in production.
|
|
474
|
+
.refine(val => !looksLikeLegacyPromptPath(val), {
|
|
475
|
+
message: 'systemPrompt looks like a file path. It is now always literal text — put file-backed prompts in a `system-prompt.md` in the harness directory (auto-discovered), or inline the prompt text here.',
|
|
476
|
+
})
|
|
477
|
+
.optional(),
|
|
478
|
+
tools: zod_1.z
|
|
479
|
+
.array(exports.HarnessToolSchema)
|
|
480
|
+
.default([])
|
|
481
|
+
.superRefine((0, zod_util_1.uniqueBy)(tool => tool.name, name => `Duplicate tool name: ${name}`)),
|
|
482
|
+
skills: zod_1.z.array(exports.HarnessSkillSchema).default([]),
|
|
483
|
+
allowedTools: zod_1.z.array(exports.AllowedToolSchema).optional(),
|
|
484
|
+
memory: exports.HarnessMemoryRefSchema.optional(),
|
|
485
|
+
maxIterations: zod_1.z.number().int().min(1).optional(),
|
|
486
|
+
maxTokens: zod_1.z.number().int().min(1).optional(),
|
|
487
|
+
timeoutSeconds: zod_1.z.number().int().min(1).optional(),
|
|
488
|
+
truncation: exports.HarnessTruncationConfigSchema.optional(),
|
|
489
|
+
containerUri: zod_1.z
|
|
490
|
+
.string()
|
|
491
|
+
.min(1)
|
|
492
|
+
.max(exports.MAX_CONTAINER_URI_LENGTH)
|
|
493
|
+
.regex(exports.CONTAINER_URI_PATTERN, 'containerUri must be an ECR image URI (12-digit private ECR or public.ecr.aws)')
|
|
494
|
+
.optional(),
|
|
495
|
+
dockerfile: zod_1.z.string().min(1).optional(),
|
|
496
|
+
executionRoleArn: zod_1.z.string().optional(),
|
|
497
|
+
networkMode: constants_1.NetworkModeSchema.optional(),
|
|
498
|
+
networkConfig: agent_env_1.NetworkConfigSchema.optional(),
|
|
499
|
+
lifecycleConfig: agent_env_1.LifecycleConfigurationSchema.optional(),
|
|
500
|
+
sessionStoragePath: agent_env_1.SessionStorageSchema.shape.mountPath.optional(),
|
|
501
|
+
efsAccessPoints: zod_1.z.array(agent_env_1.EfsAccessPointConfigSchema).max(2).optional(),
|
|
502
|
+
s3AccessPoints: zod_1.z.array(agent_env_1.S3FilesAccessPointConfigSchema).max(2).optional(),
|
|
503
|
+
environmentVariables: zod_1.z
|
|
504
|
+
// Key bound (Smithy EnvironmentVariableKey: length 1–100, no character pattern) — an empty or
|
|
505
|
+
// >100-char key passes a bare z.string() here but fails at CFN CREATE.
|
|
506
|
+
.record(zod_1.z.string().min(1).max(exports.MAX_ENV_VAR_KEY_LENGTH), zod_1.z.string().max(exports.MAX_ENV_VAR_VALUE_LENGTH))
|
|
507
|
+
.refine(rec => Object.keys(rec).length <= exports.MAX_ENV_VARS, {
|
|
508
|
+
message: `A maximum of ${exports.MAX_ENV_VARS} environment variables is allowed`,
|
|
509
|
+
})
|
|
510
|
+
.optional(),
|
|
511
|
+
/** Authorizer type for inbound requests. Defaults to AWS_IAM. */
|
|
512
|
+
authorizerType: auth_1.RuntimeAuthorizerTypeSchema.optional(),
|
|
513
|
+
/** Authorizer configuration. Required when authorizerType is CUSTOM_JWT. */
|
|
514
|
+
authorizerConfiguration: auth_1.AuthorizerConfigSchema.optional(),
|
|
515
|
+
tags: tags_1.TagsSchema.optional(),
|
|
516
|
+
})
|
|
517
|
+
.superRefine((data, ctx) => {
|
|
518
|
+
if (data.containerUri !== undefined && data.dockerfile !== undefined) {
|
|
519
|
+
ctx.addIssue({
|
|
520
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
521
|
+
message: 'containerUri and dockerfile are mutually exclusive',
|
|
522
|
+
path: ['containerUri'],
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
if (data.networkMode === 'VPC' && !data.networkConfig) {
|
|
526
|
+
ctx.addIssue({
|
|
527
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
528
|
+
message: 'networkConfig is required when networkMode is VPC',
|
|
529
|
+
path: ['networkConfig'],
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
if (data.networkMode !== 'VPC' && data.networkConfig) {
|
|
533
|
+
ctx.addIssue({
|
|
534
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
535
|
+
message: 'networkConfig is only allowed when networkMode is VPC',
|
|
536
|
+
path: ['networkConfig'],
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
if ((data.efsAccessPoints?.length || data.s3AccessPoints?.length) && data.networkMode !== 'VPC') {
|
|
540
|
+
ctx.addIssue({
|
|
541
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
542
|
+
message: 'efsAccessPoints and s3AccessPoints require networkMode: VPC',
|
|
543
|
+
path: ['efsAccessPoints'],
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
const mountPaths = [];
|
|
547
|
+
if (data.sessionStoragePath)
|
|
548
|
+
mountPaths.push(data.sessionStoragePath.replace(/\/$/, ''));
|
|
549
|
+
for (const ap of data.efsAccessPoints ?? [])
|
|
550
|
+
mountPaths.push(ap.mountPath.replace(/\/$/, ''));
|
|
551
|
+
for (const ap of data.s3AccessPoints ?? [])
|
|
552
|
+
mountPaths.push(ap.mountPath.replace(/\/$/, ''));
|
|
553
|
+
if (new Set(mountPaths).size !== mountPaths.length) {
|
|
554
|
+
ctx.addIssue({
|
|
555
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
556
|
+
message: 'Filesystem mount paths must be unique',
|
|
557
|
+
path: ['efsAccessPoints'],
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
if (data.authorizerType === 'CUSTOM_JWT' && !data.authorizerConfiguration?.customJwtAuthorizer) {
|
|
561
|
+
ctx.addIssue({
|
|
562
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
563
|
+
message: 'authorizerConfiguration with customJwtAuthorizer is required when authorizerType is CUSTOM_JWT',
|
|
564
|
+
path: ['authorizerConfiguration'],
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
if (data.authorizerType !== 'CUSTOM_JWT' && data.authorizerConfiguration) {
|
|
568
|
+
ctx.addIssue({
|
|
569
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
570
|
+
message: 'authorizerConfiguration is only allowed when authorizerType is CUSTOM_JWT',
|
|
571
|
+
path: ['authorizerConfiguration'],
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
//# sourceMappingURL=harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/harness.ts"],"names":[],"mappings":";;;AA6HA,8CAqBC;AAyYD,8DAIC;A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I,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;QACnD,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uCAAuC;YAChD,IAAI,EAAE,CAAC,iBAAiB,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,cAAc,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;QAC/F,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,gGAAgG;YACzG,IAAI,EAAE,CAAC,yBAAyB,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,cAAc,KAAK,YAAY,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACzE,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,2EAA2E;YACpF,IAAI,EAAE,CAAC,yBAAyB,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { Dataset, DatasetSchemaType } from './dataset';
|
|
2
|
+
export { DatasetNameSchema, DatasetSchema, DatasetSchemaTypeSchema } from './dataset';
|
|
3
|
+
export type { IndexedKey, IndexedKeyType, MemoryStrategy, MemoryStrategyType } from './memory';
|
|
4
|
+
export { IndexedKeySchema, IndexedKeyTypeSchema, MemoryStrategySchema, MemoryStrategyNameSchema, MemoryStrategyTypeSchema, } from './memory';
|
|
5
|
+
export type { CategoricalRating, CodeBasedConfig, EvaluationLevel, EvaluatorConfig, ExternalCodeBasedConfig, LlmAsAJudgeConfig, ManagedCodeBasedConfig, NumericalRating, RatingScale, } from './evaluator';
|
|
6
|
+
export { CategoricalRatingSchema, CodeBasedConfigSchema, EvaluationLevelSchema, EvaluatorConfigSchema, EvaluatorNameSchema, ExternalCodeBasedConfigSchema, LlmAsAJudgeConfigSchema, ManagedCodeBasedConfigSchema, NumericalRatingSchema, RatingScaleSchema, } from './evaluator';
|
|
7
|
+
export type { OnlineEvaluationConfig } from './online-evaluation-config';
|
|
8
|
+
export { ClusteringConfigSchema, OnlineEvaluationConfigSchema, OnlineEvaluationConfigNameSchema, } from './online-evaluation-config';
|
|
9
|
+
export type { Policy, PolicyEngine, ValidationMode } from './policy';
|
|
10
|
+
export { PolicyEngineNameSchema, PolicyEngineSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema, } from './policy';
|
|
11
|
+
export type { ConfigBundle, ComponentConfiguration, ComponentConfigurationMap } from './config-bundle';
|
|
12
|
+
export { ConfigBundleSchema, ConfigBundleNameSchema, ConfigBundleDescriptionSchema, ComponentConfigurationSchema, ComponentConfigurationMapSchema, } from './config-bundle';
|
|
13
|
+
export type { DataSource, KnowledgeBase, KnowledgeBaseType, S3DataSource } from './knowledge-base';
|
|
14
|
+
export { DataSourceSchema, KnowledgeBaseNameSchema, KnowledgeBaseSchema, KnowledgeBaseTypeSchema, S3DataSourceSchema, } from './knowledge-base';
|
|
15
|
+
export type { HarnessSpec, HarnessModel, HarnessModelProvider, HarnessTool, HarnessToolType, HarnessMemoryRef, HarnessTruncationConfig, HarnessGatewayOutboundAuth, HarnessSkill, HarnessSkillInput, HarnessSkillS3Source, HarnessSkillGitSource, HarnessSkillGitAuth, HarnessSkillPathSource, HarnessSkillAwsSkillsSource, ManagedMemoryStrategy, BedrockApiFormat, OpenAiApiFormat, HarnessApiFormat, } from './harness';
|
|
16
|
+
export { HarnessNameSchema, HarnessSpecSchema, HarnessModelSchema, HarnessModelProviderSchema, HarnessToolSchema, HarnessToolTypeSchema, HarnessMemoryRefSchema, HarnessTruncationConfigSchema, HarnessGatewayOutboundAuthSchema, HarnessSkillSchema, HarnessSkillS3SourceSchema, HarnessSkillGitSourceSchema, HarnessSkillGitAuthSchema, HarnessSkillPathSourceSchema, HarnessSkillAwsSkillsSourceSchema, GatewayOAuthGrantTypeSchema, BedrockApiFormatSchema, OpenAiApiFormatSchema, HarnessApiFormatSchema, ManagedMemoryStrategySchema, validateApiFormat, } from './harness';
|
|
3
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEtF,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,sB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