Skip to content

feat: add import from Bedrock Agents to add agent and create flows#6

Open
tejaskash wants to merge 14 commits intomainfrom
feature/import-from-bedrock-agents
Open

feat: add import from Bedrock Agents to add agent and create flows#6
tejaskash wants to merge 14 commits intomainfrom
feature/import-from-bedrock-agents

Conversation

@tejaskash
Copy link
Collaborator

Summary

jesseturner21 and others added 9 commits March 19, 2026 18:34
Add Cedar authorization policy support to AgentCore CLI:

- Schema: PolicyEngine and Policy schemas with Zod validation
- TUI: Full add/remove wizards for policy engines and policies
  - Source methods: Cedar file, inline statement, or AI generation
  - Gateway selection for generation flow
  - Expandable text input for generation prompts
- CLI: Non-interactive add/remove commands with all flags
  - agentcore add policy-engine --name <name>
  - agentcore add policy --name <name> --engine <engine> --source/--statement/--generate
  - agentcore remove policy-engine/policy --name <name>
- Deploy: CDK construct integration, CloudFormation output parsing,
  deployed state tracking with composite engine/policy keys
- Status: Policy engines and policies shown in status command and
  ResourceGraph TUI with correct deployment state diffing
- Generation: StartPolicyGeneration + waiter integration with
  deployed engine ID and gateway ARN resolution
- Validation: Schema validation for names, statements, validation modes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…e collisions

Policies are nested under engines, so the same policy name can exist in
multiple engines. Switch getRemovable/remove/previewRemove to use an
"engineName/policyName" composite key so the generic TUI remove flow can
uniquely identify policies with a single string.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Regenerate lock file with npm@10 to resolve missing yaml@2.8.2
dependency entry that caused `npm ci` failures on Node 20.x and 22.x.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Merge duplicate imports in policy-generation.ts
- Use dot notation instead of bracket notation in outputs test
- Replace Array<T> with T[] in outputs.ts and useDeployFlow.ts
- Add void operator for floating promises in AddPolicyFlow
- Wrap async handlers with void for no-misused-promises
- Escape quotes in JSX text in AddPolicyScreen
- Fix prettier formatting across all changed files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… policy

Previously, passing multiple source flags (e.g. --statement + --source) was
silently accepted with an implicit precedence order. Now the command returns
a clear error if more than one is provided.

Also fix pre-existing type errors in dev config tests by adding the required
policyEngines field to test fixtures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add interactive TUI support for removing policy engines and policies,
including menu entries, selection screens, confirmation, and success states.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…h credentials

The createManagedOAuthCredential method was only writing the client secret
with an incorrect env var name. Now correctly writes both _CLIENT_ID and
_CLIENT_SECRET suffixed env vars, matching the pattern used by CredentialPrimitive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the size/xl PR size: XL label Mar 20, 2026
Adds a third option in the "add agent" flow that fetches a Bedrock Agent's
configuration via AWS SDK and translates it into runnable Strands or
LangChain/LangGraph Python code, wired into the standard AgentCore project
structure.

Supports action groups, knowledge bases, multi-agent collaboration, code
interpreter, guardrails, prompt overrides, and memory configuration. Both
interactive TUI and non-interactive CLI paths are implemented.
@tejaskash tejaskash force-pushed the feature/import-from-bedrock-agents branch from 7c08566 to 9d94e95 Compare March 20, 2026 14:12
@github-actions github-actions bot added size/xl PR size: XL and removed size/xl PR size: XL labels Mar 20, 2026
@github-actions github-actions bot added size/xl PR size: XL and removed size/xl PR size: XL labels Mar 20, 2026
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 42.38% 5261 / 12411
🔵 Statements 42% 5572 / 13266
🔵 Functions 41.29% 953 / 2308
🔵 Branches 42.91% 3376 / 7867
Generated in workflow #29 for commit b4d2ff2 by the Vitest Coverage Report Action

@github-actions
Copy link

Package Tarball

aws-agentcore-0.3.0-preview.6.0.tgz

How to install

npm install https://github.com/jesseturner21/agentcore-cli/releases/download/pr-6-tarball/aws-agentcore-0.3.0-preview.6.0.tgz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xl PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants