Skip to content

Commit bd838d2

Browse files
committed
Add the Strands example
1 parent 6b2eb9a commit bd838d2

43 files changed

Lines changed: 2501 additions & 342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ updates:
2525
- '/agents/agent-mastra/'
2626
- '/agents/agent-voltagent/'
2727
- '/agents/agent-sdk/'
28+
- '/agents/agent-strands/'
2829
- '/basic/cdk/'
2930
- '/basic/app/'
3031
- '/mcp/clients/langgraph-mcp-client/'

agents/agent-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"vitest": "^4.0.15"
3535
},
3636
"dependencies": {
37-
"@anthropic-ai/claude-agent-sdk": "^0.1.59",
37+
"@anthropic-ai/claude-agent-sdk": "^0.1.60",
3838
"source-map-support": "^0.5.21",
3939
"uuid": "^13.0.0",
4040
"zod": "^4.1.13"

agents/agent-strands/.gitignore

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
# dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
.DS_Store
106+
107+
eslint.config.js
108+
eslint.config.d.ts

agents/agent-strands/bin/cdk.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

agents/agent-strands/bin/cdk.js

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agents/agent-strands/bin/cdk.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
import * as cdk from 'aws-cdk-lib';
3+
import {
4+
CloudfrontCdnTemplateStack,
5+
} from '../lib/cdk-stack.js';
6+
7+
const app = new cdk.App();
8+
9+
new CloudfrontCdnTemplateStack(app, 'agent-strands-lambda-example', {
10+
appName: 'agent-strands-lambda-example',
11+
env: {
12+
account: app.account,
13+
region: app.region,
14+
},
15+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"acknowledged-issue-numbers": [
3+
34892
4+
],
5+
"cli-telemetry": false
6+
}

agents/agent-strands/cdk.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"app": "pnpm dlx tsx bin/cdk.ts",
3+
"watch": {
4+
"include": [
5+
"**"
6+
],
7+
"exclude": [
8+
"README.md",
9+
"cdk*.json",
10+
"**/*.d.ts",
11+
"**/*.js",
12+
"tsconfig.json",
13+
"package*.json",
14+
"yarn.lock",
15+
"node_modules",
16+
"test",
17+
"eslint.config.mjs"
18+
]
19+
},
20+
"requireApproval": "never",
21+
"versionReporting": false,
22+
"pathMetadata": false,
23+
"context": {
24+
}
25+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "48.0.0",
3+
"files": {
4+
"60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321": {
5+
"displayName": "Lambda/Code",
6+
"source": {
7+
"path": "asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321",
8+
"packaging": "zip"
9+
},
10+
"destinations": {
11+
"current_account-current_region-956ec07c": {
12+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
13+
"objectKey": "60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321.zip",
14+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
15+
}
16+
}
17+
},
18+
"3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078": {
19+
"displayName": "agent-strands-lambda-example Template",
20+
"source": {
21+
"path": "agent-strands-lambda-example.template.json",
22+
"packaging": "file"
23+
},
24+
"destinations": {
25+
"current_account-current_region-e082d771": {
26+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
27+
"objectKey": "3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078.json",
28+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
29+
}
30+
}
31+
}
32+
},
33+
"dockerImages": {}
34+
}

0 commit comments

Comments
 (0)