aws / aws/agentcore-cli

fix(templates): versions in agent templates should be pinned to avoid breakages.

Open
#1,851 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
283
Forks
95
Avg merge
1d 2h
Merged PRs (30d)
183

Description

### Problem
Many versions in agent templates are left unpinned. This allows for new major releases (or any breaking change) to break projects completely.

More info in: https://github.com/aws/agentcore-cli/pull/1850.

Example of a dependency that is still pinned: https://github.com/aws/agentcore-cli/blob/main/src/assets/python/agui/langchain_langgraph/base/pyproject.toml#L24

If langgraph releases a new major version that isn't compatible with our code, all projects will break.

The same is true for the TS projects. We already pin CDK versions, but we need to pin all versions.

### Definition of Done
- Investigate pinning or "partially pinning" via https://peps.python.org/pep-0440/#compatible-release (and the TS equiv) to ensure new releases don't break projects. We can't blindly pin everything since newer versions may already be resolved such that pinning changes behavior.
- Ensure that projects cannot be broken by external releases.

Contributor guide

Open the contributing guide

Research direction

Start by reading linked pull request 1850 and the pinned dependency example in src/assets/python/agui/langchain_langgraph/base/pyproject.toml. Inspect the Python and TypeScript agent templates for unpinned dependencies, then compare Python compatible-release guidance with its TypeScript equivalent. Done means external releases cannot introduce breaking changes across the templates.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.