Skip to content

feat(templates): support strands ts - #2142

Open
Hweinstock wants to merge 7 commits into
aws:refactorfrom
Hweinstock:feat/strands-ts-template
Open

feat(templates): support strands ts#2142
Hweinstock wants to merge 7 commits into
aws:refactorfrom
Hweinstock:feat/strands-ts-template

Conversation

@Hweinstock

@Hweinstock Hweinstock commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Problem

The CLI is missing support for TS.

Solution

Testing

> agentcore project create --name hello --template strands-ts 
Creating project tree
Installing CDK dependencies with npm
Installing Node dependencies with npm
Initializing git repository
Created project 'hello' in ./hello
> agentcore project dev --mode headless --agent strands_agent
OTEL collector listening on port 43911; traces persist to [..]
[strands_agent] Starting development server
[strands_agent] (node:3374940) [FSTDEP023] FastifyDeprecation: disableRequestLogging option 
is deprecated. Use the logController option with disableRequestLogging or isLogDisabled over
ride instead. The disableRequestLogging top-level option will be removed in `fastify@6`.
[strands_agent] (Use `node --trace-warnings ...` to show where the warning was created)
[strands_agent] {"level":30,"time":1787947133429,"pid":3374940,"hostname":"dev-dsk-hkobew-1d
-51fde466.us-east-1.amazon.com","msg":"Server listening at http://169.254.253.253:8080"}
[strands_agent] {"level":30,"time":1787947133429,"pid":3374940,"hostname":"dev-dsk-hkobew-1d
-51fde466.us-east-1.amazon.com","msg":"Server listening at http://127.0.0.1:8080"}
[strands_agent] {"level":30,"time":1787947133429,"pid":3374940,"hostname":"dev-dsk-hkobew-1d
-51fde466.us-east-1.amazon.com","msg":"Server listening at http://10.39.201.239:8080"}
[strands_agent] {"level":30,"time":1787947133429,"pid":3374940,"hostname":"dev-dsk-hkobew-1d
-51fde466.us-east-1.amazon.com","msg":"Server listening on port 8080"}
...
[separate terminal]
>  curl -X POST http://127.0.0.1:8080/invocations \
    -H 'Content-Type: application/json' -H 'Accept: text/event-stream' \
    -H 'x-amzn-bedrock-agentcore-runtime-session-id: strands-ts-e2e-session-0000000000
02' \
    -d '{"prompt":"Reply with exactly: STRANDS_TS_DEV_OK"}'
data: "STRANDS_TS_DEV"

data: "_OK"

> agentcore project runtime add --template strands-ts --memory none --name bob 
Reading project spec file at '/[..]'
Scaffolding runtime in project
Installing Node dependencies with npm
Updating project spec file at '/local/home/hkobew/gh-repos/agentcore-cli/.claude/worktrees/s
trands-ts-template/hello/agentcore/agentcore.json'
added runtime 'bob' to 'hello'
> agentcore project deploy
..
[invoke both in the console]. 

Notes

discovered in testing that the python sdk allows missing sessionId but ts sdk rejects it: https://github.com/aws/bedrock-agentcore-sdk-typescript/blob/v0.3.0/src/runtime/app.ts#L337-L341. Small papercut on the local dev experience.

@github-actions github-actions Bot added the size/l PR size: L label Aug 28, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added claude-security-reviewing Claude Code /security-review in progress agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Aug 28, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Aug 28, 2026
@Hweinstock
Hweinstock force-pushed the feat/strands-ts-template branch from 3042954 to bd35521 Compare August 28, 2026 20:32
@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels Aug 28, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Aug 28, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Aug 28, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.30%. Comparing base (adb02a1) to head (bd35521).

Additional details and impacted files
@@             Coverage Diff              @@
##           refactor    #2142      +/-   ##
============================================
+ Coverage     97.29%   97.30%   +0.01%     
============================================
  Files           478      478              
  Lines         29642    29699      +57     
============================================
+ Hits          28840    28899      +59     
+ Misses          802      800       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

framework: z.enum(["strands", "none"]),
modelProvider: z.enum(["Bedrock"]),
apiKey: z.string().min(1).optional(),
memory: MemorySchema.optional(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is now resolved within the template. We can bring it back if we choose to support BYO again.

@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels Aug 28, 2026
@Hweinstock
Hweinstock marked this pull request as ready for review August 28, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants