Skip to content

Commit f655a93

Browse files
jesseturner21claude
andcommitted
fix: remove PYTHON_3_14 from enum — service does not support it yet
The Bedrock AgentCore API only accepts PYTHON_3_10 through PYTHON_3_13. Remove PYTHON_3_14 entirely to avoid deploy failures for users. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6c60afd commit f655a93

7 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4327,7 +4327,7 @@ file maps to a JSON config file and includes validation constraints as comments.
43274327
43284328
- **BuildType**: \`'CodeZip'\` | \`'Container'\`
43294329
- **NetworkMode**: \`'PUBLIC'\`
4330-
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\` | \`'PYTHON_3_14'\`
4330+
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\`
43314331
- **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\`
43324332
43334333
### Build Types

src/assets/agents/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ file maps to a JSON config file and includes validation constraints as comments.
6262

6363
- **BuildType**: `'CodeZip'` | `'Container'`
6464
- **NetworkMode**: `'PUBLIC'`
65-
- **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'` | `'PYTHON_3_14'`
65+
- **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'`
6666
- **MemoryStrategyType**: `'SEMANTIC'` | `'SUMMARIZATION'` | `'USER_PREFERENCE'`
6767

6868
### Build Types

src/lib/packaging/__tests__/python.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ describe('extractPythonVersion', () => {
1919
expect(extractPythonVersion('PYTHON_3_13' as PythonRuntime)).toBe('3.13');
2020
});
2121

22-
it('extracts 3.14 from PYTHON_3_14', () => {
23-
expect(extractPythonVersion('PYTHON_3_14' as PythonRuntime)).toBe('3.14');
24-
});
25-
2622
it('throws for unsupported runtime string', () => {
2723
expect(() => extractPythonVersion('RUBY_3_0' as PythonRuntime)).toThrow('Unsupported Python runtime');
2824
});

src/schema/__tests__/constants.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ describe('ModelProviderSchema', () => {
6060
});
6161

6262
describe('PythonRuntimeSchema', () => {
63-
it.each(['PYTHON_3_10', 'PYTHON_3_11', 'PYTHON_3_12', 'PYTHON_3_13', 'PYTHON_3_14'])('accepts "%s"', version => {
63+
it.each(['PYTHON_3_10', 'PYTHON_3_11', 'PYTHON_3_12', 'PYTHON_3_13'])('accepts "%s"', version => {
6464
expect(PythonRuntimeSchema.safeParse(version).success).toBe(true);
6565
});
6666

6767
it('rejects unsupported versions', () => {
6868
expect(PythonRuntimeSchema.safeParse('PYTHON_3_9').success).toBe(false);
69-
expect(PythonRuntimeSchema.safeParse('PYTHON_3_15').success).toBe(false);
69+
expect(PythonRuntimeSchema.safeParse('PYTHON_3_14').success).toBe(false);
7070
});
7171
});
7272

src/schema/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function isReservedProjectName(name: string): boolean {
140140
// Infrastructure Constants (shared between agent-env and mcp schemas)
141141
// ============================================================================
142142

143-
export const PythonRuntimeSchema = z.enum(['PYTHON_3_10', 'PYTHON_3_11', 'PYTHON_3_12', 'PYTHON_3_13', 'PYTHON_3_14']);
143+
export const PythonRuntimeSchema = z.enum(['PYTHON_3_10', 'PYTHON_3_11', 'PYTHON_3_12', 'PYTHON_3_13']);
144144
export type PythonRuntime = z.infer<typeof PythonRuntimeSchema>;
145145

146146
export const NodeRuntimeSchema = z.enum(['NODE_18', 'NODE_20', 'NODE_22']);

src/schema/llm-compacted/agentcore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface AgentCoreProjectSpec {
2424
// ─────────────────────────────────────────────────────────────────────────────
2525

2626
type BuildType = 'CodeZip' | 'Container';
27-
type PythonRuntime = 'PYTHON_3_10' | 'PYTHON_3_11' | 'PYTHON_3_12' | 'PYTHON_3_13' | 'PYTHON_3_14';
27+
type PythonRuntime = 'PYTHON_3_10' | 'PYTHON_3_11' | 'PYTHON_3_12' | 'PYTHON_3_13';
2828
type NodeRuntime = 'NODE_18' | 'NODE_20' | 'NODE_22';
2929
type RuntimeVersion = PythonRuntime | NodeRuntime;
3030
type NetworkMode = 'PUBLIC' | 'VPC';

src/schema/llm-compacted/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ interface IamPolicyDocument {
177177
// ─────────────────────────────────────────────────────────────────────────────
178178

179179
type GatewayTargetType = 'lambda' | 'mcpServer' | 'openApiSchema' | 'smithyModel' | 'apiGateway' | 'lambdaFunctionArn';
180-
type PythonRuntime = 'PYTHON_3_10' | 'PYTHON_3_11' | 'PYTHON_3_12' | 'PYTHON_3_13' | 'PYTHON_3_14';
180+
type PythonRuntime = 'PYTHON_3_10' | 'PYTHON_3_11' | 'PYTHON_3_12' | 'PYTHON_3_13';
181181
type NodeRuntime = 'NODE_18' | 'NODE_20' | 'NODE_22';
182182
type NetworkMode = 'PUBLIC' | 'VPC';

0 commit comments

Comments
 (0)