You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add VPC network mode support
Replace the PRIVATE network mode placeholder with VPC across the full
CLI stack: schema validation, TUI wizards, CLI flags, template rendering,
and CDK config persistence.
Schema:
- NetworkModeSchema enum: PUBLIC | PRIVATE → PUBLIC | VPC
- Add NetworkConfigSchema with subnet/security group ID validation
- Cross-field superRefine: VPC requires networkConfig, non-VPC forbids it
CLI flags:
- Add --network-mode, --subnets, --security-groups to create and add agent
- Shared vpc-utils.ts with parseCommaSeparatedList, validateVpcOptions,
validateSubnetIds, validateSecurityGroupIds, and VPC_ENDPOINT_WARNING
TUI:
- VPC prompts in both create (GenerateWizard) and BYO (AddAgentScreen) paths
- Inline validation for subnet/SG ID format in TextInput fields
- VPC endpoint warning on completion screens
Template rendering:
- Add isVpc flag to AgentRenderConfig
- Skip Exa AI MCP example endpoint in VPC mode (unreachable without NAT)
- VPC stubs return None/empty so main.py null-checks work unchanged
Data persistence:
- AgentPrimitive passes VPC config through both handleCreatePath and
handleByoPath to agentcore.json
- useAddAgent mappers (mapByoConfigToAgent, mapAddAgentConfigToGenerateConfig)
thread VPC fields through TUI path
Warnings:
- dev command warns about VPC behavior differences in local mode
- invoke command warns about VPC endpoint requirements
* fix: restore existing tests deleted by VPC commit, append VPC tests
The original VPC commit accidentally replaced three test files instead
of appending to them. This restores all existing tests from main and
adds VPC-specific tests at the end of each file.
* fix: add format validation to non-interactive VPC path, consolidate VpcOptions type
- validateVpcOptions now calls validateSubnetIds/validateSecurityGroupIds
so the non-interactive CLI path gives friendly format errors instead of
falling through to Zod regex failures
- CreateOptions, AddAgentOptions, and AgentPrimitive.AddAgentOptions now
extend VpcOptions instead of redeclaring networkMode/subnets/securityGroups
* fix: add VPC warnings to TUI dev and invoke screens
The non-interactive CLI paths had VPC warnings but the TUI screens did not.
- DevScreen: warn that local dev runs outside VPC
- InvokeScreen: warn about VPC endpoint requirements
- Thread networkMode through useInvokeFlow config
* fix: pass VPC config through create TUI flow
The GenerateWizard collected networkMode/subnets/securityGroups but
useCreateFlow did not include them when building the GenerateConfig,
so agents created via TUI always defaulted to PUBLIC.
0 commit comments