@aws/agentcore 1.0.0-preview.21 → 1.0.0-preview.23

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 (50) hide show
  1. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +27 -18
  2. package/dist/assets/__tests__/googleadk-observability.test.ts +23 -0
  3. package/dist/assets/cdk/package.json +9 -9
  4. package/dist/assets/python/a2a/googleadk/base/pyproject.toml +2 -0
  5. package/dist/assets/python/agui/googleadk/base/pyproject.toml +3 -2
  6. package/dist/assets/python/http/autogen/base/README.md +2 -1
  7. package/dist/assets/python/http/googleadk/base/README.md +2 -1
  8. package/dist/assets/python/http/googleadk/base/pyproject.toml +3 -2
  9. package/dist/assets/python/http/langchain_langgraph/base/README.md +2 -1
  10. package/dist/assets/python/http/openaiagents/base/README.md +2 -1
  11. package/dist/assets/python/http/strands/base/README.md +2 -1
  12. package/dist/cli/index.mjs +548 -538
  13. package/dist/lib/dependency-management/index.d.ts +5 -0
  14. package/dist/lib/dependency-management/index.d.ts.map +1 -0
  15. package/dist/lib/dependency-management/index.js +8 -0
  16. package/dist/lib/dependency-management/index.js.map +1 -0
  17. package/dist/lib/dependency-management/messages.d.ts +30 -0
  18. package/dist/lib/dependency-management/messages.d.ts.map +1 -0
  19. package/dist/lib/dependency-management/messages.js +86 -0
  20. package/dist/lib/dependency-management/messages.js.map +1 -0
  21. package/dist/lib/dependency-management/plan.d.ts +25 -0
  22. package/dist/lib/dependency-management/plan.d.ts.map +1 -0
  23. package/dist/lib/dependency-management/plan.js +67 -0
  24. package/dist/lib/dependency-management/plan.js.map +1 -0
  25. package/dist/lib/dependency-management/semver.d.ts +21 -0
  26. package/dist/lib/dependency-management/semver.d.ts.map +1 -0
  27. package/dist/lib/dependency-management/semver.js +51 -0
  28. package/dist/lib/dependency-management/semver.js.map +1 -0
  29. package/dist/lib/dependency-management/sync.d.ts +26 -0
  30. package/dist/lib/dependency-management/sync.d.ts.map +1 -0
  31. package/dist/lib/dependency-management/sync.js +141 -0
  32. package/dist/lib/dependency-management/sync.js.map +1 -0
  33. package/dist/lib/dependency-management/types.d.ts +85 -0
  34. package/dist/lib/dependency-management/types.d.ts.map +1 -0
  35. package/dist/lib/dependency-management/types.js +3 -0
  36. package/dist/lib/dependency-management/types.js.map +1 -0
  37. package/dist/lib/errors/types.d.ts +15 -0
  38. package/dist/lib/errors/types.d.ts.map +1 -1
  39. package/dist/lib/errors/types.js +22 -1
  40. package/dist/lib/errors/types.js.map +1 -1
  41. package/dist/lib/result.d.ts +7 -0
  42. package/dist/lib/result.d.ts.map +1 -1
  43. package/dist/lib/result.js +14 -1
  44. package/dist/lib/result.js.map +1 -1
  45. package/dist/lib/schemas/io/global-config.d.ts +1 -0
  46. package/dist/lib/schemas/io/global-config.d.ts.map +1 -1
  47. package/dist/lib/schemas/io/global-config.js +1 -0
  48. package/dist/lib/schemas/io/global-config.js.map +1 -1
  49. package/npm-shrinkwrap.json +257 -212
  50. package/package.json +5 -2
@@ -636,18 +636,18 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
636
636
  "format:check": "prettier --check ."
637
637
  },
638
638
  "devDependencies": {
639
- "@types/jest": "^29.5.14",
640
- "@types/node": "^24.10.1",
641
- "jest": "^29.7.0",
642
- "ts-jest": "^29.2.5",
643
- "aws-cdk": "2.1126.0",
644
- "prettier": "^3.4.2",
639
+ "@types/jest": "~29.5.14",
640
+ "@types/node": "~24.13.3",
641
+ "jest": "~29.7.0",
642
+ "ts-jest": "~29.4.11",
643
+ "aws-cdk": "~2.1126.0",
644
+ "prettier": "~3.9.5",
645
645
  "typescript": "~5.9.3"
646
646
  },
647
647
  "dependencies": {
648
- "@aws/agentcore-cdk": "^0.1.0-alpha.19",
649
- "aws-cdk-lib": "^2.248.0",
650
- "constructs": "^10.0.0"
648
+ "@aws/agentcore-cdk": "0.1.0-alpha.45",
649
+ "aws-cdk-lib": "~2.261.0",
650
+ "constructs": "~10.7.0"
651
651
  }
652
652
  }
653
653
  "
@@ -1492,6 +1492,8 @@ dependencies = [
1492
1492
  "bedrock-agentcore[a2a] >= 1.0.3",
1493
1493
  "google-adk >= 1.0.0, < 2.0.0",
1494
1494
  "google-genai >= 1.0.0, < 2.0.0",
1495
+ # 1.13.0 was yanked for broken imports.
1496
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
1495
1497
  ]
1496
1498
 
1497
1499
  [tool.hatch.build.targets.wheel]
@@ -2518,8 +2520,9 @@ dependencies = [
2518
2520
  "fastapi >= 0.115.12",
2519
2521
  "google-adk >= 1.16.0, < 2.0.0",
2520
2522
  "google-genai >= 1.0.0, < 2.0.0",
2521
- "opentelemetry-distro",
2522
- "opentelemetry-exporter-otlp",
2523
+ # 1.13.0 was yanked for broken imports.
2524
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
2525
+ "aws-opentelemetry-distro >= 0.17.0",
2523
2526
  "uvicorn >= 0.34.3",
2524
2527
  ]
2525
2528
 
@@ -3325,7 +3328,8 @@ file defines a Starlette ASGI app with the AutoGen framework running within.
3325
3328
 
3326
3329
  If installation was successful, a virtual environment is already created with dependencies installed.
3327
3330
 
3328
- Run \`source .venv/bin/activate\` before developing.
3331
+ Activate the environment with \`source .venv/bin/activate\` on macOS/Linux, \`.venv\\Scripts\\activate.bat\` in Windows
3332
+ Command Prompt, or \`.\\.venv\\Scripts\\activate.ps1\` in Windows PowerShell.
3329
3333
 
3330
3334
  \`agentcore dev\` will start a local server on 0.0.0.0:8080.
3331
3335
 
@@ -3780,7 +3784,8 @@ file defines a Starlette ASGI app with the Google ADK framework running within.
3780
3784
 
3781
3785
  If installation was successful, a virtual environment is already created with dependencies installed.
3782
3786
 
3783
- Run \`source .venv/bin/activate\` before developing.
3787
+ Activate the environment with \`source .venv/bin/activate\` on macOS/Linux, \`.venv\\Scripts\\activate.bat\` in Windows
3788
+ Command Prompt, or \`.\\.venv\\Scripts\\activate.ps1\` in Windows PowerShell.
3784
3789
 
3785
3790
  \`agentcore dev\` will start a local server on 0.0.0.0:8080.
3786
3791
 
@@ -4196,10 +4201,11 @@ description = "AgentCore Runtime Application using Google ADK"
4196
4201
  readme = "README.md"
4197
4202
  requires-python = ">=3.10"
4198
4203
  dependencies = [
4199
- "opentelemetry-distro",
4200
- "opentelemetry-exporter-otlp",
4204
+ "aws-opentelemetry-distro >= 0.17.0",
4201
4205
  "google-adk >= 1.35.0, < 2.0.0",
4202
4206
  "google-genai >= 1.0.0, < 2.0.0",
4207
+ # 1.13.0 was yanked for broken imports.
4208
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
4203
4209
  "bedrock-agentcore >= 1.0.3",
4204
4210
  "botocore[crt] >= 1.35.0",
4205
4211
  {{#if hasGateway}}{{#if (includes gatewayAuthTypes "AWS_IAM")}}"mcp-proxy-for-aws >= 1.1.0",
@@ -4238,7 +4244,8 @@ file defines a Starlette ASGI app with the LangChain/LangGraph framework running
4238
4244
 
4239
4245
  If installation was successful, a virtual environment is already created with dependencies installed.
4240
4246
 
4241
- Run \`source .venv/bin/activate\` before developing.
4247
+ Activate the environment with \`source .venv/bin/activate\` on macOS/Linux, \`.venv\\Scripts\\activate.bat\` in Windows
4248
+ Command Prompt, or \`.\\.venv\\Scripts\\activate.ps1\` in Windows PowerShell.
4242
4249
 
4243
4250
  \`agentcore dev\` will start a local server on 0.0.0.0:8080.
4244
4251
 
@@ -4815,7 +4822,8 @@ file defines a Starlette ASGI app with the OpenAI Agents SDK framework running w
4815
4822
 
4816
4823
  If installation was successful, a virtual environment is already created with dependencies installed.
4817
4824
 
4818
- Run \`source .venv/bin/activate\` before developing.
4825
+ Activate the environment with \`source .venv/bin/activate\` on macOS/Linux, \`.venv\\Scripts\\activate.bat\` in Windows
4826
+ Command Prompt, or \`.\\.venv\\Scripts\\activate.ps1\` in Windows PowerShell.
4819
4827
 
4820
4828
  \`agentcore dev\` will start a local server on 0.0.0.0:8080.
4821
4829
 
@@ -5259,7 +5267,8 @@ file defines a Starlette ASGI app with the chosen Agent framework SDK running wi
5259
5267
 
5260
5268
  If installation was successful, a virtual environment is already created with dependencies installed.
5261
5269
 
5262
- Run \`source .venv/bin/activate\` before developing.
5270
+ Activate the environment with \`source .venv/bin/activate\` on macOS/Linux, \`.venv\\Scripts\\activate.bat\` in Windows
5271
+ Command Prompt, or \`.\\.venv\\Scripts\\activate.ps1\` in Windows PowerShell.
5263
5272
 
5264
5273
  \`agentcore dev\` will start a local server on 0.0.0.0:8080.
5265
5274
 
@@ -0,0 +1,23 @@
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
+ import { describe, expect, it } from 'vitest';
4
+
5
+ const ASSETS_DIR = path.resolve(__dirname, '..', 'python');
6
+ const EXPECTED_DEPENDENCIES = [
7
+ ['http', '"aws-opentelemetry-distro >= 0.17.0"'],
8
+ ['agui', '"aws-opentelemetry-distro >= 0.17.0"'],
9
+ ['a2a', '"aws-opentelemetry-distro"'],
10
+ ] as const;
11
+
12
+ describe('Google ADK observability dependencies', () => {
13
+ it.each(EXPECTED_DEPENDENCIES)('%s uses the AWS OpenTelemetry distro', (protocol, expectedDependency) => {
14
+ const pyproject = fs.readFileSync(
15
+ path.join(ASSETS_DIR, protocol, 'googleadk', 'base', 'pyproject.toml'),
16
+ 'utf-8'
17
+ );
18
+
19
+ expect(pyproject).toContain(expectedDependency);
20
+ expect(pyproject).not.toMatch(/^\s*"opentelemetry-distro",?$/m);
21
+ expect(pyproject).not.toMatch(/^\s*"opentelemetry-exporter-otlp",?$/m);
22
+ });
23
+ });
@@ -14,17 +14,17 @@
14
14
  "format:check": "prettier --check ."
15
15
  },
16
16
  "devDependencies": {
17
- "@types/jest": "^29.5.14",
18
- "@types/node": "^24.10.1",
19
- "jest": "^29.7.0",
20
- "ts-jest": "^29.2.5",
21
- "aws-cdk": "2.1126.0",
22
- "prettier": "^3.4.2",
17
+ "@types/jest": "~29.5.14",
18
+ "@types/node": "~24.13.3",
19
+ "jest": "~29.7.0",
20
+ "ts-jest": "~29.4.11",
21
+ "aws-cdk": "~2.1126.0",
22
+ "prettier": "~3.9.5",
23
23
  "typescript": "~5.9.3"
24
24
  },
25
25
  "dependencies": {
26
- "@aws/agentcore-cdk": "^0.1.0-alpha.19",
27
- "aws-cdk-lib": "^2.248.0",
28
- "constructs": "^10.0.0"
26
+ "@aws/agentcore-cdk": "0.1.0-alpha.45",
27
+ "aws-cdk-lib": "~2.261.0",
28
+ "constructs": "~10.7.0"
29
29
  }
30
30
  }
@@ -14,6 +14,8 @@ dependencies = [
14
14
  "bedrock-agentcore[a2a] >= 1.0.3",
15
15
  "google-adk >= 1.0.0, < 2.0.0",
16
16
  "google-genai >= 1.0.0, < 2.0.0",
17
+ # 1.13.0 was yanked for broken imports.
18
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
17
19
  ]
18
20
 
19
21
  [tool.hatch.build.targets.wheel]
@@ -15,8 +15,9 @@ dependencies = [
15
15
  "fastapi >= 0.115.12",
16
16
  "google-adk >= 1.16.0, < 2.0.0",
17
17
  "google-genai >= 1.0.0, < 2.0.0",
18
- "opentelemetry-distro",
19
- "opentelemetry-exporter-otlp",
18
+ # 1.13.0 was yanked for broken imports.
19
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
20
+ "aws-opentelemetry-distro >= 0.17.0",
20
21
  "uvicorn >= 0.34.3",
21
22
  ]
22
23
 
@@ -24,7 +24,8 @@ file defines a Starlette ASGI app with the AutoGen framework running within.
24
24
 
25
25
  If installation was successful, a virtual environment is already created with dependencies installed.
26
26
 
27
- Run `source .venv/bin/activate` before developing.
27
+ Activate the environment with `source .venv/bin/activate` on macOS/Linux, `.venv\Scripts\activate.bat` in Windows
28
+ Command Prompt, or `.\.venv\Scripts\activate.ps1` in Windows PowerShell.
28
29
 
29
30
  `agentcore dev` will start a local server on 0.0.0.0:8080.
30
31
 
@@ -24,7 +24,8 @@ file defines a Starlette ASGI app with the Google ADK framework running within.
24
24
 
25
25
  If installation was successful, a virtual environment is already created with dependencies installed.
26
26
 
27
- Run `source .venv/bin/activate` before developing.
27
+ Activate the environment with `source .venv/bin/activate` on macOS/Linux, `.venv\Scripts\activate.bat` in Windows
28
+ Command Prompt, or `.\.venv\Scripts\activate.ps1` in Windows PowerShell.
28
29
 
29
30
  `agentcore dev` will start a local server on 0.0.0.0:8080.
30
31
 
@@ -9,10 +9,11 @@ description = "AgentCore Runtime Application using Google ADK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
- "opentelemetry-distro",
13
- "opentelemetry-exporter-otlp",
12
+ "aws-opentelemetry-distro >= 0.17.0",
14
13
  "google-adk >= 1.35.0, < 2.0.0",
15
14
  "google-genai >= 1.0.0, < 2.0.0",
15
+ # 1.13.0 was yanked for broken imports.
16
+ "opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
16
17
  "bedrock-agentcore >= 1.0.3",
17
18
  "botocore[crt] >= 1.35.0",
18
19
  {{#if hasGateway}}{{#if (includes gatewayAuthTypes "AWS_IAM")}}"mcp-proxy-for-aws >= 1.1.0",
@@ -24,7 +24,8 @@ file defines a Starlette ASGI app with the LangChain/LangGraph framework running
24
24
 
25
25
  If installation was successful, a virtual environment is already created with dependencies installed.
26
26
 
27
- Run `source .venv/bin/activate` before developing.
27
+ Activate the environment with `source .venv/bin/activate` on macOS/Linux, `.venv\Scripts\activate.bat` in Windows
28
+ Command Prompt, or `.\.venv\Scripts\activate.ps1` in Windows PowerShell.
28
29
 
29
30
  `agentcore dev` will start a local server on 0.0.0.0:8080.
30
31
 
@@ -24,7 +24,8 @@ file defines a Starlette ASGI app with the OpenAI Agents SDK framework running w
24
24
 
25
25
  If installation was successful, a virtual environment is already created with dependencies installed.
26
26
 
27
- Run `source .venv/bin/activate` before developing.
27
+ Activate the environment with `source .venv/bin/activate` on macOS/Linux, `.venv\Scripts\activate.bat` in Windows
28
+ Command Prompt, or `.\.venv\Scripts\activate.ps1` in Windows PowerShell.
28
29
 
29
30
  `agentcore dev` will start a local server on 0.0.0.0:8080.
30
31
 
@@ -24,7 +24,8 @@ file defines a Starlette ASGI app with the chosen Agent framework SDK running wi
24
24
 
25
25
  If installation was successful, a virtual environment is already created with dependencies installed.
26
26
 
27
- Run `source .venv/bin/activate` before developing.
27
+ Activate the environment with `source .venv/bin/activate` on macOS/Linux, `.venv\Scripts\activate.bat` in Windows
28
+ Command Prompt, or `.\.venv\Scripts\activate.ps1` in Windows PowerShell.
28
29
 
29
30
  `agentcore dev` will start a local server on 0.0.0.0:8080.
30
31