@aws/agentcore-cdk 0.1.0-alpha.9 → 1.0.0-rc.1
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 +242 -40
- package/dist/cdk/constants.d.ts +1 -0
- package/dist/cdk/constants.d.ts.map +1 -1
- package/dist/cdk/constants.js +2 -1
- package/dist/cdk/constants.js.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts +26 -4
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js +69 -10
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.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/BundledCodeZipAsset.d.ts +5 -0
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js +2 -7
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.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 +9 -2
- package/dist/cdk/constructs/components/base-props.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts +35 -8
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js +117 -13
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +25 -7
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +45 -7
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerRepository.d.ts +30 -0
- package/dist/cdk/constructs/components/container/ContainerRepository.d.ts.map +1 -0
- package/dist/cdk/constructs/components/container/{AgentEcrRepository.js → ContainerRepository.js} +19 -8
- package/dist/cdk/constructs/components/container/ContainerRepository.js.map +1 -0
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts +4 -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 +16 -3
- package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -1
- package/dist/cdk/constructs/components/container/index.d.ts +1 -1
- package/dist/cdk/constructs/components/container/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/index.js +3 -3
- package/dist/cdk/constructs/components/container/index.js.map +1 -1
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts +111 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js +611 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts +20 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.js +16 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts +25 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.js +95 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/index.d.ts +3 -0
- package/dist/cdk/constructs/components/gateway/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/index.js +8 -0
- package/dist/cdk/constructs/components/gateway/index.js.map +1 -0
- package/dist/cdk/constructs/components/index.d.ts +2 -1
- package/dist/cdk/constructs/components/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/index.js +2 -1
- package/dist/cdk/constructs/components/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts +42 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js +126 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +31 -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 +62 -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 +29 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js +80 -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 +27 -5
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +129 -40
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts +8 -8
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +98 -124
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +124 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +185 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +71 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +389 -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 +30 -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 +165 -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 -3
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +17 -3
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +67 -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 +282 -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 +30 -44
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +147 -154
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.d.ts +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts +17 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.js +34 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +52 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +65 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +143 -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 +47 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +94 -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 +110 -9
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +324 -149
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.d.ts +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.js.map +1 -1
- package/dist/cdk/constructs/components/shared/bindable.d.ts +30 -0
- package/dist/cdk/constructs/components/shared/bindable.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/bindable.js +9 -0
- package/dist/cdk/constructs/components/shared/bindable.js.map +1 -0
- package/dist/cdk/constructs/components/shared/environment-variables.d.ts +41 -0
- package/dist/cdk/constructs/components/shared/environment-variables.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/environment-variables.js +77 -0
- package/dist/cdk/constructs/components/shared/environment-variables.js.map +1 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts +17 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.js +65 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.js.map +1 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.d.ts +15 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.js +53 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/identity-access.d.ts +30 -0
- package/dist/cdk/constructs/components/shared/identity-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/identity-access.js +44 -0
- package/dist/cdk/constructs/components/shared/identity-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts +32 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.js +51 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.js.map +1 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts +10 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.js +20 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.js.map +1 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts +20 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.js +47 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.js.map +1 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts +6 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.js +24 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/physical-names.d.ts +17 -0
- package/dist/cdk/constructs/components/shared/physical-names.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/physical-names.js +20 -0
- package/dist/cdk/constructs/components/shared/physical-names.js.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.d.ts → tools/LambdaToolTarget.d.ts} +6 -6
- package/dist/cdk/constructs/components/tools/LambdaToolTarget.d.ts.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.js → tools/LambdaToolTarget.js} +20 -12
- package/dist/cdk/constructs/components/tools/LambdaToolTarget.js.map +1 -0
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts +28 -0
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpRuntimeCompute.js → tools/RuntimeToolTarget.js} +12 -29
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.js.map +1 -0
- package/dist/cdk/constructs/components/tools/index.d.ts +3 -0
- package/dist/cdk/constructs/components/tools/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/tools/index.js +8 -0
- package/dist/cdk/constructs/components/tools/index.js.map +1 -0
- package/dist/cdk/constructs/connections/import-connection.d.ts +10 -0
- package/dist/cdk/constructs/connections/import-connection.d.ts.map +1 -0
- package/dist/cdk/constructs/connections/import-connection.js +64 -0
- package/dist/cdk/constructs/connections/import-connection.js.map +1 -0
- package/dist/cdk/constructs/index.d.ts +9 -3
- package/dist/cdk/constructs/index.d.ts.map +1 -1
- package/dist/cdk/constructs/index.js +23 -3
- package/dist/cdk/constructs/index.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +190 -13
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +746 -39
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +34 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +96 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.d.ts +24 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.js +99 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.js.map +1 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts +47 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.js +152 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/index.d.ts +3 -3
- package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/index.js +5 -5
- package/dist/cdk/constructs/l3/index.js.map +1 -1
- package/dist/cdk/index.d.ts +2 -1
- package/dist/cdk/index.d.ts.map +1 -1
- package/dist/cdk/index.js +26 -3
- package/dist/cdk/index.js.map +1 -1
- package/dist/cdk/logical-ids.d.ts +5 -5
- package/dist/cdk/logical-ids.js +5 -5
- package/dist/cdk/project/index.d.ts +4 -0
- package/dist/cdk/project/index.d.ts.map +1 -0
- package/dist/cdk/project/index.js +13 -0
- package/dist/cdk/project/index.js.map +1 -0
- package/dist/cdk/project/read-project.d.ts +34 -0
- package/dist/cdk/project/read-project.d.ts.map +1 -0
- package/dist/cdk/project/read-project.js +86 -0
- package/dist/cdk/project/read-project.js.map +1 -0
- package/dist/cdk/project/target-stacks.d.ts +55 -0
- package/dist/cdk/project/target-stacks.d.ts.map +1 -0
- package/dist/cdk/project/target-stacks.js +50 -0
- package/dist/cdk/project/target-stacks.js.map +1 -0
- package/dist/cdk/project/transform.d.ts +38 -0
- package/dist/cdk/project/transform.d.ts.map +1 -0
- package/dist/cdk/project/transform.js +106 -0
- package/dist/cdk/project/transform.js.map +1 -0
- 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 +3 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -28
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +2 -2
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors/config.d.ts +0 -16
- package/dist/lib/errors/config.d.ts.map +1 -1
- package/dist/lib/errors/config.js +2 -29
- package/dist/lib/errors/config.js.map +1 -1
- package/dist/lib/index.d.ts +1 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts +19 -0
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +80 -27
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts +3 -7
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +14 -11
- 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 +106 -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/utils/subprocess.d.ts +5 -1
- package/dist/lib/utils/subprocess.d.ts.map +1 -1
- package/dist/lib/utils/subprocess.js +0 -6
- package/dist/lib/utils/subprocess.js.map +1 -1
- package/dist/schema/constants.d.ts +11 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +33 -6
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +257 -9
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +407 -12
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +1042 -38
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +290 -15
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +318 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +238 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/aws-targets.d.ts +39 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +16 -2
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/connections.d.ts +183 -0
- package/dist/schema/schemas/connections.d.ts.map +1 -0
- package/dist/schema/schemas/connections.js +176 -0
- package/dist/schema/schemas/connections.js.map +1 -0
- package/dist/schema/schemas/deployed-state.d.ts +204 -16
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +44 -4
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +2 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +2 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +255 -249
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +317 -60
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/capacity-provider.d.ts +239 -0
- package/dist/schema/schemas/primitives/capacity-provider.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/capacity-provider.js +220 -0
- package/dist/schema/schemas/primitives/capacity-provider.js.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts +31 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +41 -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 +49 -2
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/evaluator.js +30 -3
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +649 -0
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/harness.js +596 -0
- package/dist/schema/schemas/primitives/harness.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +17 -5
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +71 -3
- 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 +22 -3
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.js +45 -6
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -1
- package/dist/schema/schemas/primitives/policy.d.ts +62 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/policy.js +64 -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 +13 -11
- package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts +0 -25
- package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts.map +0 -1
- package/dist/cdk/constructs/components/container/AgentEcrRepository.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts +0 -55
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/Gateway.js +0 -454
- package/dist/cdk/constructs/components/mcp/Gateway.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts +0 -36
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/index.d.ts +0 -5
- package/dist/cdk/constructs/components/mcp/index.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/index.js +0 -17
- package/dist/cdk/constructs/components/mcp/index.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +0 -25
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.js +0 -43
- package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +0 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts +0 -46
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts.map +0 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js +0 -49
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js.map +0 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +0 -86
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +0 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +0 -241
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +0 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +0 -34
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +0 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.js +0 -99
- package/dist/cdk/constructs/l3/AgentEnvironment.js.map +0 -1
- package/dist/lib/schemas/io/config-io.d.ts +0 -99
- package/dist/lib/schemas/io/config-io.d.ts.map +0 -1
- package/dist/lib/schemas/io/config-io.js +0 -283
- package/dist/lib/schemas/io/config-io.js.map +0 -1
- package/dist/lib/schemas/io/index.d.ts +0 -3
- package/dist/lib/schemas/io/index.d.ts.map +0 -1
- package/dist/lib/schemas/io/index.js +0 -17
- package/dist/lib/schemas/io/index.js.map +0 -1
- package/dist/lib/schemas/io/path-resolver.d.ts +0 -112
- package/dist/lib/schemas/io/path-resolver.d.ts.map +0 -1
- package/dist/lib/schemas/io/path-resolver.js +0 -195
- package/dist/lib/schemas/io/path-resolver.js.map +0 -1
|
@@ -2,13 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentCoreApplication = void 0;
|
|
4
4
|
const lib_1 = require("../../../lib");
|
|
5
|
+
const schema_1 = require("../../../schema");
|
|
5
6
|
const logical_ids_1 = require("../../logical-ids");
|
|
7
|
+
const gateway_1 = require("../components/gateway");
|
|
8
|
+
const AgentCoreCapacityProvider_1 = require("../components/primitives/capacity-provider/AgentCoreCapacityProvider");
|
|
9
|
+
const AgentCoreConfigBundle_1 = require("../components/primitives/config-bundle/AgentCoreConfigBundle");
|
|
10
|
+
const AgentCoreDataset_1 = require("../components/primitives/dataset/AgentCoreDataset");
|
|
6
11
|
const AgentCoreEvaluator_1 = require("../components/primitives/evaluator/AgentCoreEvaluator");
|
|
7
12
|
const AgentCoreOnlineEvaluationConfig_1 = require("../components/primitives/evaluator/AgentCoreOnlineEvaluationConfig");
|
|
13
|
+
const AgentCoreKnowledgeBase_1 = require("../components/primitives/knowledge-base/AgentCoreKnowledgeBase");
|
|
8
14
|
const AgentCoreMemory_1 = require("../components/primitives/memory/AgentCoreMemory");
|
|
9
|
-
const
|
|
15
|
+
const AgentCorePolicyEngine_1 = require("../components/primitives/policy/AgentCorePolicyEngine");
|
|
16
|
+
const bindable_1 = require("../components/shared/bindable");
|
|
17
|
+
const tools_1 = require("../components/tools");
|
|
18
|
+
const import_connection_1 = require("../connections/import-connection");
|
|
19
|
+
const AgentCoreHarnessEnvironment_1 = require("./AgentCoreHarnessEnvironment");
|
|
20
|
+
const AgentCorePayments_1 = require("./AgentCorePayments");
|
|
21
|
+
const RuntimeEnvironment_1 = require("./RuntimeEnvironment");
|
|
10
22
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
11
23
|
const constructs_1 = require("constructs");
|
|
24
|
+
const path_1 = require("path");
|
|
25
|
+
/** The payments SDK is Python and speaks HTTP, so only those runtimes receive payment configuration. */
|
|
26
|
+
function isPaymentEligible(runtime) {
|
|
27
|
+
if (runtime.protocol && runtime.protocol !== 'HTTP')
|
|
28
|
+
return false;
|
|
29
|
+
return (runtime.entrypoint.split(':')[0] ?? '').endsWith('.py');
|
|
30
|
+
}
|
|
12
31
|
/**
|
|
13
32
|
* AgentCore Application L3 Construct - v2 resource-centric model.
|
|
14
33
|
*
|
|
@@ -17,62 +36,216 @@ const constructs_1 = require("constructs");
|
|
|
17
36
|
* - Memory resources at project level
|
|
18
37
|
* - Evaluator resources at project level
|
|
19
38
|
* - Online evaluation config resources at project level
|
|
20
|
-
* -
|
|
21
|
-
* -
|
|
39
|
+
* - Gateways with the compute behind their targets, and standalone tool runtimes
|
|
40
|
+
* - Payment managers/connectors (the `Payments` child)
|
|
22
41
|
*
|
|
23
|
-
* Creation order: memories → evaluators → agents → online evaluation configs
|
|
42
|
+
* Creation order: memories → evaluators → agents → online evaluation configs → gateways →
|
|
43
|
+
* tool runtimes → payments.
|
|
44
|
+
* Once everything exists, `bindResources` binds each resource to the workloads that use it
|
|
45
|
+
* (every memory and gateway to every runtime, payments to eligible runtimes, a harness's
|
|
46
|
+
* referenced memory to that harness, connections and tool runtimes to the workload that names them).
|
|
24
47
|
*
|
|
25
48
|
* All child constructs use stable logical IDs derived from resource names
|
|
26
49
|
* via the logical-ids utility to ensure deterministic CloudFormation updates.
|
|
50
|
+
*
|
|
51
|
+
* Every resource the application creates is reachable through a typed map (`runtimes`,
|
|
52
|
+
* `harnesses`, `gateways`, ...) or a throwing getter (`runtime('checkout')`, `harness('support')`,
|
|
53
|
+
* `gateway('tools')`, ...) so a stack can wire its own resources to them.
|
|
27
54
|
*/
|
|
28
55
|
class AgentCoreApplication extends constructs_1.Construct {
|
|
29
|
-
/**
|
|
30
|
-
|
|
56
|
+
/** Runtime environments keyed by runtime name */
|
|
57
|
+
runtimeEnvironments = new Map();
|
|
58
|
+
/** The runtime of each runtime environment, keyed by runtime name */
|
|
59
|
+
runtimes = new Map();
|
|
31
60
|
/** Memories keyed by memory name */
|
|
32
61
|
memories = new Map();
|
|
62
|
+
/** Knowledge bases keyed by KB name */
|
|
63
|
+
knowledgeBases = new Map();
|
|
33
64
|
/** Evaluators keyed by evaluator name */
|
|
34
65
|
evaluators = new Map();
|
|
35
66
|
/** Online evaluation configs keyed by config name */
|
|
36
67
|
onlineEvalConfigs = new Map();
|
|
68
|
+
/** Policy engines keyed by engine name */
|
|
69
|
+
policyEngines = new Map();
|
|
70
|
+
/** Config bundles keyed by bundle name */
|
|
71
|
+
configBundles = new Map();
|
|
72
|
+
/** Datasets keyed by dataset name */
|
|
73
|
+
datasets = new Map();
|
|
74
|
+
/** Capacity providers keyed by capacity provider name */
|
|
75
|
+
capacityProviders = new Map();
|
|
76
|
+
/** Harness roles keyed by harness name */
|
|
77
|
+
harnessRoles = new Map();
|
|
78
|
+
/** Harness CFN resources keyed by harness name (only those deployed via CDK with a full spec) */
|
|
79
|
+
harnesses = new Map();
|
|
80
|
+
/** Gateways keyed by gateway name */
|
|
81
|
+
gateways = new Map();
|
|
82
|
+
/** Tool runtimes keyed by tool name: standalone tool runtimes and the runtimes behind gateway targets */
|
|
83
|
+
toolRuntimes = new Map();
|
|
84
|
+
/** The Lambda functions behind gateway targets, keyed by tool name */
|
|
85
|
+
toolLambdaFunctions = new Map();
|
|
86
|
+
/** The payments child construct; present when the spec declares payments. */
|
|
87
|
+
payments;
|
|
88
|
+
/** Payment managers keyed by manager name. */
|
|
89
|
+
paymentManagers;
|
|
90
|
+
/** Payment connectors keyed by `<manager>/<connector>`. */
|
|
91
|
+
paymentConnectors;
|
|
92
|
+
projectName;
|
|
93
|
+
/** Harnesses configured without a full spec (legacy role-only path); `harness()` names them in its error. */
|
|
94
|
+
roleOnlyHarnesses = new Set();
|
|
37
95
|
constructor(scope, id, props) {
|
|
38
96
|
super(scope, id);
|
|
39
|
-
const { spec } = props;
|
|
97
|
+
const { spec, connectorParametersByFile, targetName } = props;
|
|
40
98
|
const projectName = spec.name;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
99
|
+
const projectTags = spec.tags;
|
|
100
|
+
this.projectName = projectName;
|
|
101
|
+
// Apply project-level tags via Tags.of() for propagation to supporting AWS resources.
|
|
102
|
+
// Exclude BedrockAgentCore resource types so that composeTags() on primary resources
|
|
103
|
+
// can correctly handle resource-level tag overrides on key conflicts.
|
|
104
|
+
if (projectTags) {
|
|
105
|
+
for (const [key, value] of Object.entries(projectTags)) {
|
|
106
|
+
aws_cdk_lib_1.Tags.of(this).add(key, value, {
|
|
107
|
+
excludeResourceTypes: [
|
|
108
|
+
'AWS::BedrockAgentCore::Runtime',
|
|
109
|
+
'AWS::BedrockAgentCore::Memory',
|
|
110
|
+
'AWS::BedrockAgentCore::Evaluator',
|
|
111
|
+
'AWS::BedrockAgentCore::OnlineEvaluationConfig',
|
|
112
|
+
'AWS::BedrockAgentCore::PolicyEngine',
|
|
113
|
+
'AWS::BedrockAgentCore::Gateway',
|
|
114
|
+
'AWS::BedrockAgentCore::Dataset',
|
|
115
|
+
'AWS::BedrockAgentCore::Harness',
|
|
116
|
+
'AWS::BedrockAgentCore::CapacityProvider',
|
|
117
|
+
],
|
|
118
|
+
});
|
|
119
|
+
}
|
|
45
120
|
}
|
|
121
|
+
// Resolve the config root once and thread it to every path-resolving child.
|
|
122
|
+
const configRoot = (0, path_1.join)(props.projectRoot, lib_1.CONFIG_DIR);
|
|
46
123
|
// ═══════════════════════════════════════════════════════════════════
|
|
47
124
|
// Create all memories (project-level resources)
|
|
48
125
|
// ═══════════════════════════════════════════════════════════════════
|
|
49
126
|
for (const memorySpec of spec.memories ?? []) {
|
|
50
127
|
const memory = new AgentCoreMemory_1.AgentCoreMemory(this, (0, logical_ids_1.toPascalId)('Memory', memorySpec.name), {
|
|
51
128
|
projectName,
|
|
129
|
+
targetName,
|
|
52
130
|
memory: memorySpec,
|
|
131
|
+
projectTags,
|
|
53
132
|
});
|
|
54
133
|
this.memories.set(memorySpec.name, memory);
|
|
55
134
|
}
|
|
56
135
|
// ═══════════════════════════════════════════════════════════════════
|
|
136
|
+
// Create all knowledge bases (project-level resources)
|
|
137
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
138
|
+
for (const kbSpec of spec.knowledgeBases ?? []) {
|
|
139
|
+
const kb = new AgentCoreKnowledgeBase_1.AgentCoreKnowledgeBase(this, (0, logical_ids_1.toPascalId)('KnowledgeBase', kbSpec.name), {
|
|
140
|
+
projectName,
|
|
141
|
+
targetName,
|
|
142
|
+
knowledgeBase: kbSpec,
|
|
143
|
+
projectTags,
|
|
144
|
+
connectorParametersByFile,
|
|
145
|
+
});
|
|
146
|
+
this.knowledgeBases.set(kbSpec.name, kb);
|
|
147
|
+
}
|
|
148
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
57
149
|
// Create all evaluators (project-level resources)
|
|
58
150
|
// ═══════════════════════════════════════════════════════════════════
|
|
59
151
|
for (const evalSpec of spec.evaluators ?? []) {
|
|
60
152
|
const evaluator = new AgentCoreEvaluator_1.AgentCoreEvaluator(this, (0, logical_ids_1.toPascalId)('Evaluator', evalSpec.name), {
|
|
61
153
|
projectName,
|
|
154
|
+
targetName,
|
|
62
155
|
evaluator: evalSpec,
|
|
156
|
+
projectTags,
|
|
157
|
+
configRoot,
|
|
63
158
|
});
|
|
64
159
|
this.evaluators.set(evalSpec.name, evaluator);
|
|
65
160
|
}
|
|
66
161
|
// ═══════════════════════════════════════════════════════════════════
|
|
67
|
-
// Create all
|
|
162
|
+
// Create all policy engines (project-level resources)
|
|
163
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
164
|
+
for (const policyEngineSpec of spec.policyEngines ?? []) {
|
|
165
|
+
const policyEngine = new AgentCorePolicyEngine_1.AgentCorePolicyEngine(this, (0, logical_ids_1.toPascalId)('PolicyEngine', policyEngineSpec.name), {
|
|
166
|
+
projectName,
|
|
167
|
+
targetName,
|
|
168
|
+
policyEngine: policyEngineSpec,
|
|
169
|
+
projectTags,
|
|
170
|
+
});
|
|
171
|
+
this.policyEngines.set(policyEngineSpec.name, policyEngine);
|
|
172
|
+
}
|
|
173
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
174
|
+
// Create all datasets (project-level resources)
|
|
175
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
176
|
+
for (const datasetSpec of spec.datasets ?? []) {
|
|
177
|
+
const dataset = new AgentCoreDataset_1.AgentCoreDataset(this, (0, logical_ids_1.toPascalId)('Dataset', datasetSpec.name), {
|
|
178
|
+
projectName,
|
|
179
|
+
targetName,
|
|
180
|
+
dataset: datasetSpec,
|
|
181
|
+
projectTags,
|
|
182
|
+
});
|
|
183
|
+
this.datasets.set(datasetSpec.name, dataset);
|
|
184
|
+
}
|
|
185
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
186
|
+
// Create all capacity providers (project-level resources)
|
|
187
|
+
// Created before runtimes so a runtime can reference a sibling capacity
|
|
188
|
+
// provider by name (Journey 2).
|
|
189
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
190
|
+
for (const capacityProviderSpec of spec.capacityProviders ?? []) {
|
|
191
|
+
const capacityProvider = new AgentCoreCapacityProvider_1.AgentCoreCapacityProvider(this, (0, logical_ids_1.toPascalId)('CapacityProvider', capacityProviderSpec.name), {
|
|
192
|
+
projectName,
|
|
193
|
+
targetName,
|
|
194
|
+
capacityProvider: capacityProviderSpec,
|
|
195
|
+
projectTags,
|
|
196
|
+
});
|
|
197
|
+
this.capacityProviders.set(capacityProviderSpec.name, capacityProvider);
|
|
198
|
+
}
|
|
199
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
200
|
+
// Create all runtime environments
|
|
68
201
|
// ═══════════════════════════════════════════════════════════════════
|
|
69
|
-
for (const agentSpec of spec.
|
|
70
|
-
const env = new
|
|
202
|
+
for (const agentSpec of spec.runtimes ?? []) {
|
|
203
|
+
const env = new RuntimeEnvironment_1.RuntimeEnvironment(this, (0, logical_ids_1.toPascalId)('Runtime', agentSpec.name), {
|
|
71
204
|
projectName,
|
|
72
|
-
|
|
205
|
+
targetName,
|
|
206
|
+
spec: agentSpec,
|
|
73
207
|
configRoot,
|
|
208
|
+
projectTags,
|
|
209
|
+
capacityProviderArn: this.resolveCapacityProviderArn(agentSpec),
|
|
210
|
+
});
|
|
211
|
+
this.runtimeEnvironments.set(agentSpec.name, env);
|
|
212
|
+
this.runtimes.set(agentSpec.name, env.runtime);
|
|
213
|
+
}
|
|
214
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
215
|
+
// Create all config bundles (depend on runtimes/gateways for ARN refs)
|
|
216
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
217
|
+
for (const bundleSpec of spec.configBundles ?? []) {
|
|
218
|
+
const resolvedComponents = this.resolveConfigBundleComponents(bundleSpec.components);
|
|
219
|
+
const configBundle = new AgentCoreConfigBundle_1.AgentCoreConfigBundle(this, (0, logical_ids_1.toPascalId)('ConfigBundle', bundleSpec.name), {
|
|
220
|
+
projectName,
|
|
221
|
+
targetName,
|
|
222
|
+
configBundle: bundleSpec,
|
|
223
|
+
resolvedComponents,
|
|
224
|
+
projectTags,
|
|
225
|
+
});
|
|
226
|
+
this.configBundles.set(bundleSpec.name, configBundle);
|
|
227
|
+
}
|
|
228
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
229
|
+
// Create all harnesses (IAM role + optional container + the CFN resource)
|
|
230
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
231
|
+
for (const harness of props.harnesses ?? []) {
|
|
232
|
+
const { memoryArn, retrievalConfig } = this.resolveHarnessMemory(harness, spec.memories ?? []);
|
|
233
|
+
const harnessEnv = new AgentCoreHarnessEnvironment_1.AgentCoreHarnessEnvironment(this, (0, logical_ids_1.toPascalId)('Harness', harness.name), {
|
|
234
|
+
projectName,
|
|
235
|
+
targetName,
|
|
236
|
+
projectTags,
|
|
237
|
+
harness,
|
|
238
|
+
spec: harness.spec,
|
|
239
|
+
harnessDir: harness.harnessDir,
|
|
240
|
+
memoryArn,
|
|
241
|
+
retrievalConfig,
|
|
242
|
+
credentials: props.credentials,
|
|
74
243
|
});
|
|
75
|
-
this.
|
|
244
|
+
this.harnessRoles.set(harness.name, harnessEnv.harnessRole);
|
|
245
|
+
if (harnessEnv.harness)
|
|
246
|
+
this.harnesses.set(harness.name, harnessEnv.harness);
|
|
247
|
+
else
|
|
248
|
+
this.roleOnlyHarnesses.add(harness.name);
|
|
76
249
|
}
|
|
77
250
|
// ═══════════════════════════════════════════════════════════════════
|
|
78
251
|
// Create all online eval configs (depend on evaluators + agents)
|
|
@@ -80,55 +253,314 @@ class AgentCoreApplication extends constructs_1.Construct {
|
|
|
80
253
|
for (const configSpec of spec.onlineEvalConfigs ?? []) {
|
|
81
254
|
const onlineEvalConfig = new AgentCoreOnlineEvaluationConfig_1.AgentCoreOnlineEvaluationConfig(this, (0, logical_ids_1.toPascalId)('OnlineEval', configSpec.name), {
|
|
82
255
|
projectName,
|
|
256
|
+
targetName,
|
|
83
257
|
config: configSpec,
|
|
84
|
-
|
|
258
|
+
runtimeEnvironments: this.runtimeEnvironments,
|
|
85
259
|
evaluators: this.evaluators,
|
|
260
|
+
projectTags,
|
|
86
261
|
});
|
|
87
262
|
this.onlineEvalConfigs.set(configSpec.name, onlineEvalConfig);
|
|
88
263
|
}
|
|
89
264
|
// ═══════════════════════════════════════════════════════════════════
|
|
90
|
-
//
|
|
265
|
+
// Create all gateways and the compute behind their targets
|
|
91
266
|
// ═══════════════════════════════════════════════════════════════════
|
|
92
|
-
this.
|
|
267
|
+
const runtimeArns = new Map([...this.runtimes].map(([name, runtime]) => [name, runtime.runtimeArn]));
|
|
268
|
+
for (const gatewaySpec of spec.agentCoreGateways) {
|
|
269
|
+
const gateway = new gateway_1.AgentCoreGateway(this, (0, logical_ids_1.toPascalId)('Gateway', gatewaySpec.name), {
|
|
270
|
+
gateway: gatewaySpec,
|
|
271
|
+
projectName,
|
|
272
|
+
targetName,
|
|
273
|
+
configRoot,
|
|
274
|
+
credentials: props.credentials,
|
|
275
|
+
policyEngine: this.resolveGatewayPolicyEngine(gatewaySpec),
|
|
276
|
+
policyEngineMode: gatewaySpec.policyEngineConfiguration?.mode,
|
|
277
|
+
projectTags,
|
|
278
|
+
knowledgeBases: this.knowledgeBases,
|
|
279
|
+
});
|
|
280
|
+
this.gateways.set(gatewaySpec.name, gateway);
|
|
281
|
+
for (const target of gatewaySpec.targets) {
|
|
282
|
+
const { runtime, lambdaFunction } = (0, gateway_1.addGatewayTarget)(gateway, target, {
|
|
283
|
+
computeScope: this,
|
|
284
|
+
projectName,
|
|
285
|
+
targetName,
|
|
286
|
+
configRoot,
|
|
287
|
+
runtimeArns,
|
|
288
|
+
});
|
|
289
|
+
if (runtime)
|
|
290
|
+
this.toolRuntimes.set(target.name, runtime);
|
|
291
|
+
if (lambdaFunction)
|
|
292
|
+
this.toolLambdaFunctions.set(target.name, lambdaFunction);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
93
295
|
// ═══════════════════════════════════════════════════════════════════
|
|
94
|
-
//
|
|
296
|
+
// Create all standalone tool runtimes
|
|
95
297
|
// ═══════════════════════════════════════════════════════════════════
|
|
96
|
-
|
|
298
|
+
for (const tool of spec.toolRuntimes ?? []) {
|
|
299
|
+
const toolTarget = new tools_1.RuntimeToolTarget(this, (0, logical_ids_1.toPascalId)('ToolRuntime', tool.name), {
|
|
300
|
+
toolName: tool.name,
|
|
301
|
+
compute: tool.compute,
|
|
302
|
+
projectName,
|
|
303
|
+
targetName,
|
|
304
|
+
configRoot,
|
|
305
|
+
});
|
|
306
|
+
this.toolRuntimes.set(tool.name, toolTarget.runtime);
|
|
307
|
+
}
|
|
97
308
|
// ═══════════════════════════════════════════════════════════════════
|
|
98
309
|
// Create outputs
|
|
99
310
|
// ═══════════════════════════════════════════════════════════════════
|
|
100
311
|
this.createMemoryOutputs();
|
|
101
312
|
this.createEvaluatorOutputs();
|
|
102
313
|
this.createOnlineEvaluationConfigOutputs();
|
|
314
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
315
|
+
// Create policy engine outputs
|
|
316
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
317
|
+
this.createPolicyOutputs();
|
|
318
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
319
|
+
// Create dataset outputs
|
|
320
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
321
|
+
this.createDatasetOutputs();
|
|
322
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
323
|
+
// Create capacity provider outputs
|
|
324
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
325
|
+
this.createCapacityProviderOutputs();
|
|
326
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
327
|
+
// Create config bundle outputs
|
|
328
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
329
|
+
this.createConfigBundleOutputs();
|
|
330
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
331
|
+
// Create knowledge base outputs
|
|
332
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
333
|
+
this.createKnowledgeBaseOutputs();
|
|
334
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
335
|
+
// Create harness outputs
|
|
336
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
337
|
+
this.createHarnessOutputs();
|
|
338
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
339
|
+
// Create gateway and tool outputs
|
|
340
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
341
|
+
this.createGatewayOutputs();
|
|
342
|
+
this.createToolOutputs();
|
|
343
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
344
|
+
// Payments as a child
|
|
345
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
346
|
+
if (spec.payments?.length) {
|
|
347
|
+
this.payments = new AgentCorePayments_1.AgentCorePayments(this, 'Payments', { spec, credentials: props.credentials });
|
|
348
|
+
}
|
|
349
|
+
this.paymentManagers = this.payments?.managers ?? new Map();
|
|
350
|
+
this.paymentConnectors = this.payments?.connectors ?? new Map();
|
|
351
|
+
this.bindResources(spec, props.credentials);
|
|
352
|
+
}
|
|
353
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
354
|
+
// Typed accessors. Each throws for an unknown name and lists what exists,
|
|
355
|
+
// so a typo in a stack that extends the application fails at synth with
|
|
356
|
+
// the fix in the message.
|
|
357
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
358
|
+
/** The runtime of the agent named `name`. */
|
|
359
|
+
runtime(name) {
|
|
360
|
+
return this.lookup('runtime', this.runtimes, name);
|
|
103
361
|
}
|
|
104
362
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
363
|
+
* The harness named `name`. Available only for harnesses synthesized by this application (a full
|
|
364
|
+
* spec); a harness configured through the legacy role-only path has just an execution role.
|
|
107
365
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
366
|
+
harness(name) {
|
|
367
|
+
if (this.roleOnlyHarnesses.has(name) && !this.harnesses.has(name)) {
|
|
368
|
+
throw new Error(`Harness "${name}" in project "${this.projectName}" was not synthesized by this application: it was ` +
|
|
369
|
+
`configured without a full spec (legacy role-only path), so only its execution role exists. ` +
|
|
370
|
+
`Use harnessRoles.get("${name}") to grant permissions to that role.`);
|
|
371
|
+
}
|
|
372
|
+
return this.lookup('harness', this.harnesses, name);
|
|
373
|
+
}
|
|
374
|
+
/** The gateway named `name`. */
|
|
375
|
+
gateway(name) {
|
|
376
|
+
return this.lookup('gateway', this.gateways, name);
|
|
377
|
+
}
|
|
378
|
+
/** The memory named `name`. */
|
|
379
|
+
memory(name) {
|
|
380
|
+
return this.lookup('memory', this.memories, name);
|
|
381
|
+
}
|
|
382
|
+
/** The knowledge base named `name`. */
|
|
383
|
+
knowledgeBase(name) {
|
|
384
|
+
return this.lookup('knowledge base', this.knowledgeBases, name);
|
|
385
|
+
}
|
|
386
|
+
/** The evaluator named `name`. */
|
|
387
|
+
evaluator(name) {
|
|
388
|
+
return this.lookup('evaluator', this.evaluators, name);
|
|
389
|
+
}
|
|
390
|
+
/** The online evaluation config named `name`. */
|
|
391
|
+
onlineEvalConfig(name) {
|
|
392
|
+
return this.lookup('online evaluation config', this.onlineEvalConfigs, name);
|
|
393
|
+
}
|
|
394
|
+
/** The policy engine named `name`. */
|
|
395
|
+
policyEngine(name) {
|
|
396
|
+
return this.lookup('policy engine', this.policyEngines, name);
|
|
397
|
+
}
|
|
398
|
+
/** The configuration bundle named `name`. */
|
|
399
|
+
configBundle(name) {
|
|
400
|
+
return this.lookup('config bundle', this.configBundles, name);
|
|
401
|
+
}
|
|
402
|
+
/** The dataset named `name`. */
|
|
403
|
+
dataset(name) {
|
|
404
|
+
return this.lookup('dataset', this.datasets, name);
|
|
405
|
+
}
|
|
406
|
+
/** The capacity provider named `name`. */
|
|
407
|
+
capacityProvider(name) {
|
|
408
|
+
return this.lookup('capacity provider', this.capacityProviders, name);
|
|
409
|
+
}
|
|
410
|
+
/** The runtime backing the tool named `name`. */
|
|
411
|
+
toolRuntime(name) {
|
|
412
|
+
return this.lookup('tool runtime', this.toolRuntimes, name);
|
|
413
|
+
}
|
|
414
|
+
/** The payment manager named `name`. */
|
|
415
|
+
paymentManager(name) {
|
|
416
|
+
return this.lookup('payment manager', this.paymentManagers, name);
|
|
417
|
+
}
|
|
418
|
+
/** The payment connector `connector` on the manager `manager`. */
|
|
419
|
+
paymentConnector(manager, connector) {
|
|
420
|
+
return this.lookup('payment connector', this.paymentConnectors, `${manager}/${connector}`);
|
|
421
|
+
}
|
|
422
|
+
lookup(kind, map, name) {
|
|
423
|
+
const found = map.get(name);
|
|
424
|
+
if (found !== undefined)
|
|
425
|
+
return found;
|
|
426
|
+
const available = [...map.keys()].join(', ') || 'none';
|
|
427
|
+
throw new Error(`Unknown ${kind} "${name}" in project "${this.projectName}". Available: ${available}`);
|
|
428
|
+
}
|
|
429
|
+
resolveCapacityProviderArn(agent) {
|
|
430
|
+
const ref = agent.capacityProviderConfiguration;
|
|
431
|
+
if (!ref)
|
|
432
|
+
return undefined;
|
|
433
|
+
if (ref.capacityProviderArn)
|
|
434
|
+
return ref.capacityProviderArn;
|
|
435
|
+
const name = ref.capacityProviderName;
|
|
436
|
+
const capacityProvider = this.capacityProviders.get(name);
|
|
437
|
+
if (!capacityProvider) {
|
|
438
|
+
throw new Error(`Capacity provider "${name}" referenced by runtime "${agent.name}" is not defined in this project.`);
|
|
439
|
+
}
|
|
440
|
+
return capacityProvider.capacityProviderArn;
|
|
441
|
+
}
|
|
442
|
+
resolveGatewayPolicyEngine(gateway) {
|
|
443
|
+
const config = gateway.policyEngineConfiguration;
|
|
444
|
+
if (!config)
|
|
445
|
+
return undefined;
|
|
446
|
+
const policyEngine = this.policyEngines.get(config.policyEngineName);
|
|
447
|
+
if (!policyEngine) {
|
|
448
|
+
throw new Error(`Gateway "${gateway.name}" references policy engine "${config.policyEngineName}" which is not defined in the project.`);
|
|
449
|
+
}
|
|
450
|
+
return policyEngine;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Resolve a harness's referenced memory into the in-stack ARN token + the
|
|
454
|
+
* retrievalConfig derived from that memory's strategy namespaces.
|
|
455
|
+
* Direct ARN (`memory.arn`) takes precedence over a by-name reference.
|
|
456
|
+
*/
|
|
457
|
+
resolveHarnessMemory(harness, memories) {
|
|
458
|
+
const memoryRef = harness.spec?.memory;
|
|
459
|
+
if (!memoryRef)
|
|
460
|
+
return {};
|
|
461
|
+
// Managed memory is owned by the harness internally; disabled has none. Neither resolves a
|
|
462
|
+
// sibling memory ARN or per-namespace retrievalConfig — those only apply to `existing`.
|
|
463
|
+
if (memoryRef.mode !== 'existing')
|
|
464
|
+
return {};
|
|
465
|
+
let memoryArn;
|
|
466
|
+
let memorySpec;
|
|
467
|
+
if (memoryRef.arn) {
|
|
468
|
+
memoryArn = memoryRef.arn;
|
|
469
|
+
}
|
|
470
|
+
else if (memoryRef.name) {
|
|
471
|
+
const memory = this.memories.get(memoryRef.name);
|
|
472
|
+
if (!memory) {
|
|
473
|
+
throw new Error(`Memory "${memoryRef.name}" referenced by harness "${harness.name}" is not defined in this project.`);
|
|
116
474
|
}
|
|
475
|
+
memoryArn = memory.memoryArn;
|
|
476
|
+
memorySpec = memories.find(m => m.name === memoryRef.name);
|
|
477
|
+
}
|
|
478
|
+
return { memoryArn, retrievalConfig: buildRetrievalConfig(memorySpec, memoryRef.retrievalConfig) };
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Creates CloudFormation outputs for harnesses deployed via CDK.
|
|
482
|
+
* Per-harness: HarnessId, HarnessArn, Status, Version, AgentRuntimeArn.
|
|
483
|
+
* (The execution-role ARN output is emitted separately by AgentCoreHarnessRole.)
|
|
484
|
+
*/
|
|
485
|
+
createHarnessOutputs() {
|
|
486
|
+
if (this.harnesses.size === 0)
|
|
487
|
+
return;
|
|
488
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
489
|
+
for (const [harnessName, harness] of this.harnesses) {
|
|
490
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Harness', harnessName), 'Id'), {
|
|
491
|
+
description: `Harness ID for: ${harnessName}`,
|
|
492
|
+
value: harness.harnessId,
|
|
493
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Harness', harnessName, 'Id'),
|
|
494
|
+
});
|
|
495
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Harness', harnessName), 'Arn'), {
|
|
496
|
+
description: `Harness ARN for: ${harnessName}`,
|
|
497
|
+
value: harness.harnessArn,
|
|
498
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Harness', harnessName, 'Arn'),
|
|
499
|
+
});
|
|
500
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Harness', harnessName), 'Status'), {
|
|
501
|
+
description: `Harness status for: ${harnessName}`,
|
|
502
|
+
value: harness.status,
|
|
503
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Harness', harnessName, 'Status'),
|
|
504
|
+
});
|
|
505
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Harness', harnessName), 'Version'), {
|
|
506
|
+
description: `Harness config version for: ${harnessName}`,
|
|
507
|
+
value: harness.harnessVersion,
|
|
508
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Harness', harnessName, 'Version'),
|
|
509
|
+
});
|
|
510
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Harness', harnessName), 'AgentRuntimeArn'), {
|
|
511
|
+
description: `Underlying AgentCore Runtime ARN for harness: ${harnessName}`,
|
|
512
|
+
value: harness.agentRuntimeArn,
|
|
513
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Harness', harnessName, 'AgentRuntimeArn'),
|
|
514
|
+
});
|
|
117
515
|
}
|
|
118
516
|
}
|
|
119
517
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
518
|
+
* Bind every resource to the workloads that use it. Each `bind` grants the workload's execution
|
|
519
|
+
* role the resource's data-plane access and sets the `AGENTCORE_<TYPE>_<NAME>_*` discovery
|
|
520
|
+
* variables; the env var map rejects a name set to two different values.
|
|
122
521
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
522
|
+
bindResources(spec, deployedCredentials) {
|
|
523
|
+
const credentials = spec.credentials ?? [];
|
|
524
|
+
for (const runtime of this.runtimes.values()) {
|
|
525
|
+
for (const memory of this.memories.values())
|
|
526
|
+
memory.bind(runtime);
|
|
527
|
+
for (const gateway of this.gateways.values())
|
|
528
|
+
gateway.bind(runtime);
|
|
529
|
+
if (isPaymentEligible(runtime.spec)) {
|
|
530
|
+
for (const manager of this.paymentManagers.values())
|
|
531
|
+
manager.bind(runtime);
|
|
532
|
+
}
|
|
533
|
+
if (credentials.length > 0)
|
|
534
|
+
runtime.grantCredentialAccess();
|
|
535
|
+
for (const credential of credentials) {
|
|
536
|
+
const providerArn = deployedCredentials?.[credential.name]?.credentialProviderArn;
|
|
537
|
+
runtime.addEnvironmentVariable(`${(0, bindable_1.discoveryPrefix)('CREDENTIAL', credential.name)}_NAME`, providerArn ? (0, schema_1.resourceIdFromArn)(providerArn) : credential.name);
|
|
538
|
+
}
|
|
539
|
+
for (const connection of runtime.spec.connections ?? [])
|
|
540
|
+
(0, import_connection_1.bindConnection)(runtime, connection);
|
|
541
|
+
}
|
|
542
|
+
for (const harness of this.harnesses.values()) {
|
|
543
|
+
this.referencedMemory(harness)?.bind(harness);
|
|
544
|
+
for (const gateway of this.gateways.values())
|
|
545
|
+
gateway.bind(harness);
|
|
546
|
+
for (const connection of harness.spec.connections ?? [])
|
|
547
|
+
(0, import_connection_1.bindConnection)(harness, connection);
|
|
548
|
+
}
|
|
549
|
+
for (const tool of spec.toolRuntimes ?? []) {
|
|
550
|
+
for (const binding of tool.bindings ?? []) {
|
|
551
|
+
this.toolRuntime(tool.name).bind(this.runtime(binding.runtimeName), { envVarName: binding.envVarName });
|
|
129
552
|
}
|
|
130
553
|
}
|
|
131
554
|
}
|
|
555
|
+
/** The `existing` memory a harness references: a project memory by name or an import by ARN. */
|
|
556
|
+
referencedMemory(harness) {
|
|
557
|
+
const ref = harness.spec.memory;
|
|
558
|
+
if (ref?.mode !== 'existing')
|
|
559
|
+
return undefined;
|
|
560
|
+
if (ref.arn)
|
|
561
|
+
return AgentCoreMemory_1.AgentCoreMemory.fromMemoryArn(harness, (0, schema_1.resourceIdFromArn)(ref.arn), ref.arn);
|
|
562
|
+
return this.memory(ref.name);
|
|
563
|
+
}
|
|
132
564
|
/**
|
|
133
565
|
* Creates CloudFormation outputs for memories.
|
|
134
566
|
* Produces per-memory outputs (Id, Arn) plus aggregate outputs for backwards compatibility.
|
|
@@ -204,6 +636,281 @@ class AgentCoreApplication extends constructs_1.Construct {
|
|
|
204
636
|
});
|
|
205
637
|
}
|
|
206
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Creates CloudFormation outputs for datasets.
|
|
641
|
+
* Produces per-dataset outputs (Id, Arn).
|
|
642
|
+
*/
|
|
643
|
+
createDatasetOutputs() {
|
|
644
|
+
if (this.datasets.size === 0)
|
|
645
|
+
return;
|
|
646
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
647
|
+
for (const [datasetName, dataset] of this.datasets) {
|
|
648
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Dataset', datasetName), 'Id'), {
|
|
649
|
+
description: `Dataset ID for: ${datasetName}`,
|
|
650
|
+
value: dataset.datasetId,
|
|
651
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Dataset', datasetName, 'Id'),
|
|
652
|
+
});
|
|
653
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Dataset', datasetName), 'Arn'), {
|
|
654
|
+
description: `Dataset ARN for: ${datasetName}`,
|
|
655
|
+
value: dataset.datasetArn,
|
|
656
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Dataset', datasetName, 'Arn'),
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Creates CloudFormation outputs for capacity providers.
|
|
662
|
+
* Produces per-capacity-provider outputs (Id, Arn).
|
|
663
|
+
*/
|
|
664
|
+
createCapacityProviderOutputs() {
|
|
665
|
+
if (this.capacityProviders.size === 0)
|
|
666
|
+
return;
|
|
667
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
668
|
+
for (const [capacityProviderName, capacityProvider] of this.capacityProviders) {
|
|
669
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('CapacityProvider', capacityProviderName), 'Id'), {
|
|
670
|
+
description: `Capacity provider ID for: ${capacityProviderName}`,
|
|
671
|
+
value: capacityProvider.capacityProviderId,
|
|
672
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'CapacityProvider', capacityProviderName, 'Id'),
|
|
673
|
+
});
|
|
674
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('CapacityProvider', capacityProviderName), 'Arn'), {
|
|
675
|
+
description: `Capacity provider ARN for: ${capacityProviderName}`,
|
|
676
|
+
value: capacityProvider.capacityProviderArn,
|
|
677
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'CapacityProvider', capacityProviderName, 'Arn'),
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Creates CloudFormation outputs for knowledge bases and their data sources.
|
|
683
|
+
*
|
|
684
|
+
* Per-KB outputs: Id, Arn.
|
|
685
|
+
* Per-DS outputs: DataSourceN.Id and DataSourceN.Uri, where N is the index
|
|
686
|
+
* into the local `dataSources[]` array. Consumers (e.g. the CLI post-deploy
|
|
687
|
+
* hook) read these to map local URI → deployed DS id deterministically
|
|
688
|
+
* instead of parsing physical names.
|
|
689
|
+
*/
|
|
690
|
+
createKnowledgeBaseOutputs() {
|
|
691
|
+
if (this.knowledgeBases.size === 0)
|
|
692
|
+
return;
|
|
693
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
694
|
+
for (const [kbName, kb] of this.knowledgeBases) {
|
|
695
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('KnowledgeBase', kbName), 'Id'), {
|
|
696
|
+
description: `Knowledge Base ID for: ${kbName}`,
|
|
697
|
+
value: kb.knowledgeBaseId,
|
|
698
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'KnowledgeBase', kbName, 'Id'),
|
|
699
|
+
});
|
|
700
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('KnowledgeBase', kbName), 'Arn'), {
|
|
701
|
+
description: `Knowledge Base ARN for: ${kbName}`,
|
|
702
|
+
value: kb.knowledgeBaseArn,
|
|
703
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'KnowledgeBase', kbName, 'Arn'),
|
|
704
|
+
});
|
|
705
|
+
kb.dataSources.forEach((ds, index) => {
|
|
706
|
+
const dsLabel = `DataSource${index}`;
|
|
707
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('KnowledgeBase', kbName), dsLabel, 'Id'), {
|
|
708
|
+
description: `Data Source ${index} ID for KB: ${kbName}`,
|
|
709
|
+
value: ds.id,
|
|
710
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'KnowledgeBase', kbName, dsLabel, 'Id'),
|
|
711
|
+
});
|
|
712
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('KnowledgeBase', kbName), dsLabel, 'Uri'), {
|
|
713
|
+
description: `Data Source ${index} URI for KB: ${kbName}`,
|
|
714
|
+
value: ds.uri,
|
|
715
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'KnowledgeBase', kbName, dsLabel, 'Uri'),
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Creates CloudFormation outputs for policy engines and their policies.
|
|
722
|
+
* Produces per-engine outputs (Id, Arn) and per-policy outputs (Id, Arn).
|
|
723
|
+
*/
|
|
724
|
+
createPolicyOutputs() {
|
|
725
|
+
if (this.policyEngines.size === 0)
|
|
726
|
+
return;
|
|
727
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
728
|
+
for (const [engineName, engine] of this.policyEngines) {
|
|
729
|
+
// Per-engine outputs
|
|
730
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('PolicyEngine', engineName), 'Id'), {
|
|
731
|
+
description: `Policy Engine ID for: ${engineName}`,
|
|
732
|
+
value: engine.policyEngineId,
|
|
733
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'PolicyEngine', engineName, 'Id'),
|
|
734
|
+
});
|
|
735
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('PolicyEngine', engineName), 'Arn'), {
|
|
736
|
+
description: `Policy Engine ARN for: ${engineName}`,
|
|
737
|
+
value: engine.policyEngineArn,
|
|
738
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'PolicyEngine', engineName, 'Arn'),
|
|
739
|
+
});
|
|
740
|
+
// Per-policy outputs
|
|
741
|
+
for (const [policyName, policy] of engine.policies) {
|
|
742
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Policy', engineName, policyName), 'Id'), {
|
|
743
|
+
description: `Policy ID for: ${engineName}/${policyName}`,
|
|
744
|
+
value: policy.policyId,
|
|
745
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Policy', engineName, policyName, 'Id'),
|
|
746
|
+
});
|
|
747
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Policy', engineName, policyName), 'Arn'), {
|
|
748
|
+
description: `Policy ARN for: ${engineName}/${policyName}`,
|
|
749
|
+
value: policy.policyArn,
|
|
750
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Policy', engineName, policyName, 'Arn'),
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Creates CloudFormation outputs for gateways and their targets.
|
|
757
|
+
* Produces per-gateway outputs (Id, Arn, Url) and per-target outputs (Id).
|
|
758
|
+
*/
|
|
759
|
+
createGatewayOutputs() {
|
|
760
|
+
if (this.gateways.size === 0)
|
|
761
|
+
return;
|
|
762
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
763
|
+
for (const [gatewayName, gateway] of this.gateways) {
|
|
764
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Gateway', gatewayName), 'Id'), {
|
|
765
|
+
description: `Gateway ID for: ${gatewayName}`,
|
|
766
|
+
value: gateway.gatewayId,
|
|
767
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Gateway', gatewayName, 'Id'),
|
|
768
|
+
});
|
|
769
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Gateway', gatewayName), 'Arn'), {
|
|
770
|
+
description: `Gateway ARN for: ${gatewayName}`,
|
|
771
|
+
value: gateway.gatewayArn,
|
|
772
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Gateway', gatewayName, 'Arn'),
|
|
773
|
+
});
|
|
774
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('Gateway', gatewayName), 'Url'), {
|
|
775
|
+
description: `Gateway URL for: ${gatewayName}`,
|
|
776
|
+
value: gateway.gatewayUrl,
|
|
777
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'Gateway', gatewayName, 'Url'),
|
|
778
|
+
});
|
|
779
|
+
for (const [targetName, target] of gateway.gatewayTargets) {
|
|
780
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('GatewayTarget', targetName), 'Id'), {
|
|
781
|
+
description: `Gateway Target ID for: ${targetName} (gateway: ${gatewayName})`,
|
|
782
|
+
value: target.targetId,
|
|
783
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'GatewayTarget', targetName, 'Id'),
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Creates CloudFormation outputs for tool runtimes (Id, Arn, Endpoint) and tool functions (Arn, Name).
|
|
790
|
+
*/
|
|
791
|
+
createToolOutputs() {
|
|
792
|
+
if (this.toolRuntimes.size === 0 && this.toolLambdaFunctions.size === 0)
|
|
793
|
+
return;
|
|
794
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
795
|
+
for (const [toolName, runtime] of this.toolRuntimes) {
|
|
796
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ToolRuntime', toolName), 'Id'), {
|
|
797
|
+
description: `Tool runtime ID for: ${toolName}`,
|
|
798
|
+
value: runtime.runtimeId,
|
|
799
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ToolRuntime', toolName, 'Id'),
|
|
800
|
+
});
|
|
801
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ToolRuntime', toolName), 'Arn'), {
|
|
802
|
+
description: `Tool runtime ARN for: ${toolName}`,
|
|
803
|
+
value: runtime.runtimeArn,
|
|
804
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ToolRuntime', toolName, 'Arn'),
|
|
805
|
+
});
|
|
806
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ToolRuntime', toolName), 'Endpoint'), {
|
|
807
|
+
description: `Tool runtime endpoint for: ${toolName}`,
|
|
808
|
+
value: runtime.invocationUrl,
|
|
809
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ToolRuntime', toolName, 'Endpoint'),
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
for (const [toolName, lambdaFn] of this.toolLambdaFunctions) {
|
|
813
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ToolFunction', toolName), 'Arn'), {
|
|
814
|
+
description: `Tool function ARN for: ${toolName}`,
|
|
815
|
+
value: lambdaFn.functionArn,
|
|
816
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ToolFunction', toolName, 'Arn'),
|
|
817
|
+
});
|
|
818
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ToolFunction', toolName), 'Name'), {
|
|
819
|
+
description: `Tool function name for: ${toolName}`,
|
|
820
|
+
value: lambdaFn.functionName,
|
|
821
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ToolFunction', toolName, 'Name'),
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
createConfigBundleOutputs() {
|
|
826
|
+
if (this.configBundles.size === 0)
|
|
827
|
+
return;
|
|
828
|
+
const stack = aws_cdk_lib_1.Stack.of(this);
|
|
829
|
+
for (const [bundleName, bundle] of this.configBundles) {
|
|
830
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ConfigBundle', bundleName), 'Id'), {
|
|
831
|
+
description: `ConfigBundle ID for: ${bundleName}`,
|
|
832
|
+
value: bundle.bundleId,
|
|
833
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ConfigBundle', bundleName, 'Id'),
|
|
834
|
+
});
|
|
835
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ConfigBundle', bundleName), 'Arn'), {
|
|
836
|
+
description: `ConfigBundle ARN for: ${bundleName}`,
|
|
837
|
+
value: bundle.bundleArn,
|
|
838
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ConfigBundle', bundleName, 'Arn'),
|
|
839
|
+
});
|
|
840
|
+
new aws_cdk_lib_1.CfnOutput(this, (0, logical_ids_1.outputId)((0, logical_ids_1.toPascalId)('ConfigBundle', bundleName), 'VersionId'), {
|
|
841
|
+
description: `ConfigBundle VersionId for: ${bundleName}`,
|
|
842
|
+
value: bundle.versionId,
|
|
843
|
+
exportName: (0, logical_ids_1.exportName)(stack.stackName, 'ConfigBundle', bundleName, 'VersionId'),
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Resolve placeholder component keys (e.g., {{runtime:name}}, {{gateway:name}})
|
|
849
|
+
* to CDK token references from already-created constructs.
|
|
850
|
+
*/
|
|
851
|
+
resolveConfigBundleComponents(components) {
|
|
852
|
+
const resolved = {};
|
|
853
|
+
for (const [key, value] of Object.entries(components)) {
|
|
854
|
+
// resolveComponentKey turns a {{runtime:name}} placeholder into the runtime ARN, which is an
|
|
855
|
+
// unresolved CDK token (cfnRuntime.attrAgentRuntimeArn → Fn::GetAtt). A token can't be used as
|
|
856
|
+
// a CFN map key directly, but that's fine here: AgentCoreConfigBundle wraps the whole Components
|
|
857
|
+
// map in CfnJson, which defers resolution to deploy time and emits a concrete ARN-keyed object.
|
|
858
|
+
// (resolveComponentKey still throws for unknown runtimes and unsupported {{gateway:...}} keys.)
|
|
859
|
+
resolved[this.resolveComponentKey(key)] = value;
|
|
860
|
+
}
|
|
861
|
+
return resolved;
|
|
862
|
+
}
|
|
863
|
+
resolveComponentKey(key) {
|
|
864
|
+
if (key.startsWith('arn:'))
|
|
865
|
+
return key;
|
|
866
|
+
const rtMatch = /^\{\{runtime:(.+)\}\}$/.exec(key);
|
|
867
|
+
if (rtMatch) {
|
|
868
|
+
const rtName = rtMatch[1];
|
|
869
|
+
const env = this.runtimeEnvironments.get(rtName);
|
|
870
|
+
if (!env) {
|
|
871
|
+
throw new Error(`Config bundle references runtime "${rtName}" but it is not defined in runtimes[]. ` +
|
|
872
|
+
'Ensure the runtime is listed in agentcore.json.');
|
|
873
|
+
}
|
|
874
|
+
return env.runtime.runtimeArn;
|
|
875
|
+
}
|
|
876
|
+
const gwMatch = /^\{\{gateway:(.+)\}\}$/.exec(key);
|
|
877
|
+
if (gwMatch) {
|
|
878
|
+
throw new Error(`Config bundle references gateway "${gwMatch[1]}", but gateway placeholders are not resolved in ` +
|
|
879
|
+
'config bundles. Use the full gateway ARN as the component key instead.');
|
|
880
|
+
}
|
|
881
|
+
return key;
|
|
882
|
+
}
|
|
207
883
|
}
|
|
208
884
|
exports.AgentCoreApplication = AgentCoreApplication;
|
|
885
|
+
/**
|
|
886
|
+
* Derive a harness retrievalConfig from the referenced memory's strategy namespaces,
|
|
887
|
+
* so the harness runtime knows which namespaces to search at inference time. The
|
|
888
|
+
* user-supplied flat tuning (`harness.memory.retrievalConfig`) is fanned out to every
|
|
889
|
+
* namespace — namespaces are only known here (from the resolved Memory's strategies),
|
|
890
|
+
* so a per-namespace map cannot be authored in the harness spec.
|
|
891
|
+
*
|
|
892
|
+
* Reads `namespaceTemplates` (preferred) and falls back to the deprecated `namespaces`,
|
|
893
|
+
* matching AgentCoreMemory's own resolution — a memory defined with only the new
|
|
894
|
+
* template fields would otherwise produce no retrieval namespaces at all.
|
|
895
|
+
*/
|
|
896
|
+
function buildRetrievalConfig(memorySpec, tuning) {
|
|
897
|
+
if (!memorySpec?.strategies?.length)
|
|
898
|
+
return undefined;
|
|
899
|
+
// Multiple strategies can declare the same namespace template (e.g. SEMANTIC + USER_PREFERENCE
|
|
900
|
+
// both scoped to /users/{actorId}/profile). Dedup explicitly rather than relying on
|
|
901
|
+
// Object.fromEntries' implicit last-write-wins, which would silently collapse duplicates. The
|
|
902
|
+
// dedup is safe today only because every namespace receives the identical `tuning` value;
|
|
903
|
+
// if per-strategy tuning overrides are ever added, this must merge per namespace instead.
|
|
904
|
+
const namespaces = [
|
|
905
|
+
...new Set(memorySpec.strategies.flatMap(s => [
|
|
906
|
+
...(s.namespaceTemplates ?? s.namespaces ?? []),
|
|
907
|
+
...(s.type === 'EPISODIC' ? (s.reflectionNamespaceTemplates ?? s.reflectionNamespaces ?? []) : []),
|
|
908
|
+
])),
|
|
909
|
+
];
|
|
910
|
+
if (namespaces.length === 0)
|
|
911
|
+
return undefined;
|
|
912
|
+
// Spread a fresh copy per namespace so the entries don't alias one shared object — a future
|
|
913
|
+
// per-namespace tweak would otherwise mutate every namespace at once.
|
|
914
|
+
return Object.fromEntries(namespaces.map(ns => [ns, { ...tuning }]));
|
|
915
|
+
}
|
|
209
916
|
//# sourceMappingURL=AgentCoreApplication.js.map
|