@aws/agentcore 1.0.0-preview.29 → 1.0.0-preview.30

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.
Files changed (42) hide show
  1. package/README.md +6 -6
  2. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +11 -10
  3. package/dist/assets/agents/AGENTS.md +3 -2
  4. package/dist/assets/cdk/package.json +1 -1
  5. package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +1 -1
  6. package/dist/assets/python/a2a/strands/base/pyproject.toml +1 -1
  7. package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +1 -1
  8. package/dist/assets/python/agui/strands/base/pyproject.toml +1 -1
  9. package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -1
  10. package/dist/assets/python/http/openaiagents/base/pyproject.toml +1 -1
  11. package/dist/assets/python/http/strands/base/pyproject.toml +1 -1
  12. package/dist/cli/index.mjs +652 -583
  13. package/dist/lib/utils/subprocess.d.ts +4 -1
  14. package/dist/lib/utils/subprocess.d.ts.map +1 -1
  15. package/dist/lib/utils/subprocess.js +9 -55
  16. package/dist/lib/utils/subprocess.js.map +1 -1
  17. package/dist/schema/schemas/agent-env.d.ts +22 -1
  18. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  19. package/dist/schema/schemas/agent-env.js +43 -3
  20. package/dist/schema/schemas/agent-env.js.map +1 -1
  21. package/dist/schema/schemas/agentcore-project.d.ts +60 -0
  22. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  23. package/dist/schema/schemas/agentcore-project.js +55 -2
  24. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  25. package/dist/schema/schemas/aws-targets.d.ts +6 -0
  26. package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
  27. package/dist/schema/schemas/aws-targets.js +2 -0
  28. package/dist/schema/schemas/aws-targets.js.map +1 -1
  29. package/dist/schema/schemas/deployed-state.d.ts +21 -0
  30. package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
  31. package/dist/schema/schemas/deployed-state.js +9 -1
  32. package/dist/schema/schemas/deployed-state.js.map +1 -1
  33. package/dist/schema/schemas/primitives/capacity-provider.d.ts +237 -0
  34. package/dist/schema/schemas/primitives/capacity-provider.d.ts.map +1 -0
  35. package/dist/schema/schemas/primitives/capacity-provider.js +220 -0
  36. package/dist/schema/schemas/primitives/capacity-provider.js.map +1 -0
  37. package/dist/schema/schemas/primitives/index.d.ts +2 -0
  38. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  39. package/dist/schema/schemas/primitives/index.js +22 -2
  40. package/dist/schema/schemas/primitives/index.js.map +1 -1
  41. package/npm-shrinkwrap.json +124 -114
  42. package/package.json +4 -2
package/README.md CHANGED
@@ -91,10 +91,10 @@ agentcore invoke
91
91
 
92
92
  ### Resource Management
93
93
 
94
- | Command | Description |
95
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
96
- | `add` | Add harnesses, agents, memory, credentials, gateways and gateway-targets, evaluators, online evals, online insights, knowledge bases, config bundles, datasets, policy engines and policies, payment managers and payment connectors, runtime endpoints |
97
- | `remove` | Remove any of the above resources from the project |
94
+ | Command | Description |
95
+ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
96
+ | `add` | Add harnesses, agents, memory, credentials, gateways and gateway-targets, evaluators, online evals, online insights, knowledge bases, config bundles, datasets, policy engines and policies, payment managers and payment connectors, capacity providers, runtime endpoints |
97
+ | `remove` | Remove any of the above resources from the project |
98
98
 
99
99
  > **Note**: Run `agentcore deploy` after `add` or `remove` to update resources in AWS.
100
100
 
@@ -264,8 +264,8 @@ my-project/
264
264
  Projects use JSON schema files in the `agentcore/` directory:
265
265
 
266
266
  - `agentcore.json` - Project resources (agents, memory, credentials, gateways, evaluators, online evals/insights,
267
- knowledge bases, harnesses, policy engines and policies, payment managers and connectors, config bundles, datasets,
268
- runtime endpoints)
267
+ knowledge bases, harnesses, policy engines and policies, payment managers and connectors, capacity providers, config
268
+ bundles, datasets, runtime endpoints)
269
269
  - `deployed-state.json` - Runtime state in agentcore/.cli/ (auto-managed)
270
270
  - `aws-targets.json` - Deployment targets (account, region)
271
271
 
@@ -711,7 +711,7 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
711
711
  "typescript": "~5.9.3"
712
712
  },
713
713
  "dependencies": {
714
- "@aws/agentcore-cdk": "0.1.0-alpha.50",
714
+ "@aws/agentcore-cdk": "0.1.0-alpha.53",
715
715
  "aws-cdk-lib": "~2.261.0",
716
716
  "constructs": "~10.7.0"
717
717
  }
@@ -1948,7 +1948,7 @@ dependencies = [
1948
1948
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
1949
1949
  "google-genai >= 1.0.0, < 2.0.0",
1950
1950
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
1951
- {{/if}}"aws-opentelemetry-distro",
1951
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
1952
1952
  "opentelemetry-instrumentation-langchain >= 0.59.0",
1953
1953
  "bedrock-agentcore[a2a-v1] >= 1.19.0",
1954
1954
  "botocore[crt] >= 1.35.0",
@@ -2294,7 +2294,7 @@ requires-python = ">=3.10"
2294
2294
  dependencies = [
2295
2295
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
2296
2296
  {{/if}}"a2a-sdk[all] >= 0.3.0, < 0.4.0",
2297
- "aws-opentelemetry-distro",
2297
+ "aws-opentelemetry-distro ~= 0.18.0",
2298
2298
  "bedrock-agentcore[a2a] >= 1.9.1",
2299
2299
  "botocore[crt] >= 1.35.0",
2300
2300
  {{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
@@ -2971,7 +2971,7 @@ dependencies = [
2971
2971
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
2972
2972
  "google-genai >= 1.0.0, < 2.0.0",
2973
2973
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
2974
- {{/if}}"aws-opentelemetry-distro",
2974
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
2975
2975
  "opentelemetry-instrumentation-langchain >= 0.59.0",
2976
2976
  "bedrock-agentcore >= 1.8.0",
2977
2977
  "botocore[crt] >= 1.35.0",
@@ -3314,7 +3314,7 @@ dependencies = [
3314
3314
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
3315
3315
  {{/if}}"ag-ui-strands >= 0.1.7",
3316
3316
  "ag-ui-protocol >= 0.1.10",
3317
- "aws-opentelemetry-distro",
3317
+ "aws-opentelemetry-distro ~= 0.18.0",
3318
3318
  "bedrock-agentcore >= 1.9.1",
3319
3319
  "botocore[crt] >= 1.35.0",
3320
3320
  "fastapi >= 0.115.12",
@@ -4872,7 +4872,7 @@ description = "AgentCore Runtime Application using LangChain/LangGraph"
4872
4872
  readme = "README.md"
4873
4873
  requires-python = ">=3.10"
4874
4874
  dependencies = [
4875
- "aws-opentelemetry-distro",
4875
+ "aws-opentelemetry-distro ~= 0.18.0",
4876
4876
  "opentelemetry-instrumentation-langchain >= 0.59.0",
4877
4877
  "langgraph >= 1.0.2",
4878
4878
  "mcp ~= 1.24.0",
@@ -5341,7 +5341,7 @@ description = "AgentCore Runtime Application using OpenAI Agents SDK"
5341
5341
  readme = "README.md"
5342
5342
  requires-python = ">=3.10"
5343
5343
  dependencies = [
5344
- "aws-opentelemetry-distro",
5344
+ "aws-opentelemetry-distro ~= 0.18.0",
5345
5345
  "openai-agents >= 0.16.0",
5346
5346
  "bedrock-agentcore >= 1.8.0",
5347
5347
  "botocore[crt] >= 1.35.0",
@@ -6577,7 +6577,7 @@ readme = "README.md"
6577
6577
  requires-python = ">=3.10"
6578
6578
  dependencies = [
6579
6579
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
6580
- {{/if}}"aws-opentelemetry-distro",
6580
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
6581
6581
  "bedrock-agentcore >= 1.9.1",
6582
6582
  "botocore[crt] >= 1.35.0",
6583
6583
  {{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
@@ -7577,7 +7577,7 @@ file maps to a JSON config file and includes validation constraints as comments
7577
7577
 
7578
7578
  ### Key Types
7579
7579
 
7580
- - **AgentCoreProjectSpec**: Root config with runtimes, memories, knowledge bases, credentials, evaluators, online evals and insights, gateways, policy engines, config bundles, A/B tests, harness registrations, datasets, and payment managers
7580
+ - **AgentCoreProjectSpec**: Root config with runtimes, memories, knowledge bases, credentials, evaluators, online evals and insights, gateways, policy engines, config bundles, A/B tests, harness registrations, datasets, payment managers, and capacity providers
7581
7581
  - **AgentEnvSpec**: Agent configuration (build type, entrypoint, code location, runtime version, network mode)
7582
7582
  - **Memory**: Memory resource with strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) and expiry
7583
7583
  - **Credential**: API key or OAuth credential provider
@@ -7679,6 +7679,7 @@ Run \`agentcore --help\` or \`agentcore <command> --help\` for full flags. Commo
7679
7679
  | \`agentcore dev\` | Run agent locally with hot-reload |
7680
7680
  | \`agentcore deploy\` | Deploy to AWS |
7681
7681
  | \`agentcore invoke\` | Invoke agent (local or deployed) |
7682
+ | \`agentcore capacity-provider delete-session\` | Delete (deprovision) a live capacity provider session |
7682
7683
  | \`agentcore status\` | Show deployment status |
7683
7684
  | \`agentcore validate\` | Validate configuration |
7684
7685
  | \`agentcore package\` | Package agent artifacts |
@@ -7688,7 +7689,7 @@ Run \`agentcore --help\` or \`agentcore <command> --help\` for full flags. Commo
7688
7689
 
7689
7690
  | Command | Description |
7690
7691
  | --- | --- |
7691
- | \`agentcore add <resource>\` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, config-bundle, dataset, runtime-endpoint |
7692
+ | \`agentcore add <resource>\` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, capacity-provider, config-bundle, dataset, runtime-endpoint |
7692
7693
  | \`agentcore remove <resource>\` | Remove any resource |
7693
7694
  | \`agentcore export harness\` | Export a harness to a Strands runtime agent under \`app/<agentName>/\` |
7694
7695
 
@@ -56,7 +56,7 @@ file maps to a JSON config file and includes validation constraints as comments
56
56
 
57
57
  ### Key Types
58
58
 
59
- - **AgentCoreProjectSpec**: Root config with runtimes, memories, knowledge bases, credentials, evaluators, online evals and insights, gateways, policy engines, config bundles, A/B tests, harness registrations, datasets, and payment managers
59
+ - **AgentCoreProjectSpec**: Root config with runtimes, memories, knowledge bases, credentials, evaluators, online evals and insights, gateways, policy engines, config bundles, A/B tests, harness registrations, datasets, payment managers, and capacity providers
60
60
  - **AgentEnvSpec**: Agent configuration (build type, entrypoint, code location, runtime version, network mode)
61
61
  - **Memory**: Memory resource with strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) and expiry
62
62
  - **Credential**: API key or OAuth credential provider
@@ -158,6 +158,7 @@ Run `agentcore --help` or `agentcore <command> --help` for full flags. Commonly
158
158
  | `agentcore dev` | Run agent locally with hot-reload |
159
159
  | `agentcore deploy` | Deploy to AWS |
160
160
  | `agentcore invoke` | Invoke agent (local or deployed) |
161
+ | `agentcore capacity-provider delete-session` | Delete (deprovision) a live capacity provider session |
161
162
  | `agentcore status` | Show deployment status |
162
163
  | `agentcore validate` | Validate configuration |
163
164
  | `agentcore package` | Package agent artifacts |
@@ -167,7 +168,7 @@ Run `agentcore --help` or `agentcore <command> --help` for full flags. Commonly
167
168
 
168
169
  | Command | Description |
169
170
  | --- | --- |
170
- | `agentcore add <resource>` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, config-bundle, dataset, runtime-endpoint |
171
+ | `agentcore add <resource>` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, capacity-provider, config-bundle, dataset, runtime-endpoint |
171
172
  | `agentcore remove <resource>` | Remove any resource |
172
173
  | `agentcore export harness` | Export a harness to a Strands runtime agent under `app/<agentName>/` |
173
174
 
@@ -23,7 +23,7 @@
23
23
  "typescript": "~5.9.3"
24
24
  },
25
25
  "dependencies": {
26
- "@aws/agentcore-cdk": "0.1.0-alpha.50",
26
+ "@aws/agentcore-cdk": "0.1.0-alpha.53",
27
27
  "aws-cdk-lib": "~2.261.0",
28
28
  "constructs": "~10.7.0"
29
29
  }
@@ -15,7 +15,7 @@ dependencies = [
15
15
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
16
16
  "google-genai >= 1.0.0, < 2.0.0",
17
17
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
18
- {{/if}}"aws-opentelemetry-distro",
18
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
19
19
  "opentelemetry-instrumentation-langchain >= 0.59.0",
20
20
  "bedrock-agentcore[a2a-v1] >= 1.19.0",
21
21
  "botocore[crt] >= 1.35.0",
@@ -11,7 +11,7 @@ requires-python = ">=3.10"
11
11
  dependencies = [
12
12
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
13
13
  {{/if}}"a2a-sdk[all] >= 0.3.0, < 0.4.0",
14
- "aws-opentelemetry-distro",
14
+ "aws-opentelemetry-distro ~= 0.18.0",
15
15
  "bedrock-agentcore[a2a] >= 1.9.1",
16
16
  "botocore[crt] >= 1.35.0",
17
17
  {{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
@@ -16,7 +16,7 @@ dependencies = [
16
16
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
17
17
  "google-genai >= 1.0.0, < 2.0.0",
18
18
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
19
- {{/if}}"aws-opentelemetry-distro",
19
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
20
20
  "opentelemetry-instrumentation-langchain >= 0.59.0",
21
21
  "bedrock-agentcore >= 1.8.0",
22
22
  "botocore[crt] >= 1.35.0",
@@ -12,7 +12,7 @@ dependencies = [
12
12
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
13
13
  {{/if}}"ag-ui-strands >= 0.1.7",
14
14
  "ag-ui-protocol >= 0.1.10",
15
- "aws-opentelemetry-distro",
15
+ "aws-opentelemetry-distro ~= 0.18.0",
16
16
  "bedrock-agentcore >= 1.9.1",
17
17
  "botocore[crt] >= 1.35.0",
18
18
  "fastapi >= 0.115.12",
@@ -9,7 +9,7 @@ description = "AgentCore Runtime Application using LangChain/LangGraph"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
- "aws-opentelemetry-distro",
12
+ "aws-opentelemetry-distro ~= 0.18.0",
13
13
  "opentelemetry-instrumentation-langchain >= 0.59.0",
14
14
  "langgraph >= 1.0.2",
15
15
  "mcp ~= 1.24.0",
@@ -9,7 +9,7 @@ description = "AgentCore Runtime Application using OpenAI Agents SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
- "aws-opentelemetry-distro",
12
+ "aws-opentelemetry-distro ~= 0.18.0",
13
13
  "openai-agents >= 0.16.0",
14
14
  "bedrock-agentcore >= 1.8.0",
15
15
  "botocore[crt] >= 1.35.0",
@@ -10,7 +10,7 @@ readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
12
  {{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
13
- {{/if}}"aws-opentelemetry-distro",
13
+ {{/if}}"aws-opentelemetry-distro ~= 0.18.0",
14
14
  "bedrock-agentcore >= 1.9.1",
15
15
  "botocore[crt] >= 1.35.0",
16
16
  {{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",