@aws/nx-plugin 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE-THIRD-PARTY +1282 -1110
  2. package/migrations.json +1 -1
  3. package/package.json +9 -9
  4. package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
  5. package/src/greengrass/component/python/__snapshots__/generator.spec.ts.snap +6 -6
  6. package/src/infra/app/__snapshots__/generator.spec.ts.snap +3 -3
  7. package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
  8. package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +6 -6
  9. package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +8 -8
  10. package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +4 -4
  11. package/src/py/agent/guardrails/__snapshots__/generator.spec.ts.snap +6 -6
  12. package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  13. package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
  14. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  15. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
  16. package/src/py/rdb/__snapshots__/generator.spec.ts.snap +3 -3
  17. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +5 -5
  18. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -8
  19. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
  20. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +5 -5
  21. package/src/ts/agent/guardrails/__snapshots__/generator.spec.ts.snap +3 -3
  22. package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
  23. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  24. package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  25. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
  26. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +5 -5
  27. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +27 -27
  28. package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
  29. package/src/utils/docker.d.ts +2 -2
  30. package/src/utils/version-lockstep/hold.js +5 -0
  31. package/src/utils/version-lockstep/hold.js.map +1 -1
  32. package/src/utils/versions.d.ts +71 -71
  33. package/src/utils/versions.js +74 -69
  34. package/src/utils/versions.js.map +1 -1
@@ -3223,7 +3223,7 @@ terraform {
3223
3223
  required_providers {
3224
3224
  aws = {
3225
3225
  source = "hashicorp/aws"
3226
- version = "6.71.0"
3226
+ version = "6.72.0"
3227
3227
  }
3228
3228
  }
3229
3229
  }
@@ -3474,7 +3474,7 @@ output "api_log_group_arn" {
3474
3474
  }
3475
3475
  aws = {
3476
3476
  source = "hashicorp/aws"
3477
- version = "6.71.0"
3477
+ version = "6.72.0"
3478
3478
  }
3479
3479
  random = {
3480
3480
  source = "hashicorp/random"
@@ -4100,7 +4100,7 @@ terraform {
4100
4100
  required_providers {
4101
4101
  aws = {
4102
4102
  source = "hashicorp/aws"
4103
- version = "6.71.0"
4103
+ version = "6.72.0"
4104
4104
  }
4105
4105
  }
4106
4106
  }
@@ -4351,7 +4351,7 @@ output "api_log_group_arn" {
4351
4351
  }
4352
4352
  aws = {
4353
4353
  source = "hashicorp/aws"
4354
- version = "6.71.0"
4354
+ version = "6.72.0"
4355
4355
  }
4356
4356
  random = {
4357
4357
  source = "hashicorp/random"
@@ -5050,7 +5050,7 @@ terraform {
5050
5050
  required_providers {
5051
5051
  aws = {
5052
5052
  source = "hashicorp/aws"
5053
- version = "6.71.0"
5053
+ version = "6.72.0"
5054
5054
  }
5055
5055
  }
5056
5056
  }
@@ -5301,7 +5301,7 @@ output "api_log_group_arn" {
5301
5301
  }
5302
5302
  aws = {
5303
5303
  source = "hashicorp/aws"
5304
- version = "6.71.0"
5304
+ version = "6.72.0"
5305
5305
  }
5306
5306
  random = {
5307
5307
  source = "hashicorp/random"
@@ -5904,7 +5904,7 @@ terraform {
5904
5904
  required_providers {
5905
5905
  aws = {
5906
5906
  source = "hashicorp/aws"
5907
- version = "6.71.0"
5907
+ version = "6.72.0"
5908
5908
  }
5909
5909
  random = {
5910
5910
  source = "hashicorp/random"
@@ -6217,7 +6217,7 @@ output "waf_web_acl_arn" {
6217
6217
  }
6218
6218
  aws = {
6219
6219
  source = "hashicorp/aws"
6220
- version = "6.71.0"
6220
+ version = "6.72.0"
6221
6221
  }
6222
6222
  random = {
6223
6223
  source = "hashicorp/random"
@@ -7280,7 +7280,7 @@ terraform {
7280
7280
  required_providers {
7281
7281
  aws = {
7282
7282
  source = "hashicorp/aws"
7283
- version = "6.71.0"
7283
+ version = "6.72.0"
7284
7284
  }
7285
7285
  random = {
7286
7286
  source = "hashicorp/random"
@@ -7593,7 +7593,7 @@ output "waf_web_acl_arn" {
7593
7593
  }
7594
7594
  aws = {
7595
7595
  source = "hashicorp/aws"
7596
- version = "6.71.0"
7596
+ version = "6.72.0"
7597
7597
  }
7598
7598
  random = {
7599
7599
  source = "hashicorp/random"
@@ -8645,7 +8645,7 @@ terraform {
8645
8645
  required_providers {
8646
8646
  aws = {
8647
8647
  source = "hashicorp/aws"
8648
- version = "6.71.0"
8648
+ version = "6.72.0"
8649
8649
  }
8650
8650
  random = {
8651
8651
  source = "hashicorp/random"
@@ -8958,7 +8958,7 @@ output "waf_web_acl_arn" {
8958
8958
  }
8959
8959
  aws = {
8960
8960
  source = "hashicorp/aws"
8961
- version = "6.71.0"
8961
+ version = "6.72.0"
8962
8962
  }
8963
8963
  random = {
8964
8964
  source = "hashicorp/random"
@@ -650,7 +650,7 @@ RUN apt-get update && \\
650
650
  rm -rf /var/lib/apt/lists/*
651
651
 
652
652
  # Upgrade npm to a version free of known HIGH/CRITICAL vulnerabilities
653
- RUN npm install -g npm@12.2.1
653
+ RUN npm install -g npm@12.2.2
654
654
 
655
655
  WORKDIR /app
656
656
 
@@ -662,7 +662,7 @@ WORKDIR /app
662
662
  # otherwise carry vulnerabilities into the image.
663
663
  RUN npm init -y \\
664
664
  && npm pkg set "overrides.@opentelemetry/propagator-jaeger=2.12.0" \\
665
- && npm pkg set "overrides.minimatch=11.0.1" \\
665
+ && npm pkg set "overrides.minimatch=11.0.5" \\
666
666
  && npm install @aws/aws-distro-opentelemetry-node-autoinstrumentation@0.13.0 \\
667
667
  && npm uninstall -g npm
668
668
 
@@ -984,7 +984,7 @@ exports[`ts#agent generator > should match snapshot for Terraform generated file
984
984
  required_providers {
985
985
  aws = {
986
986
  source = "hashicorp/aws"
987
- version = "6.71.0"
987
+ version = "6.72.0"
988
988
  }
989
989
  random = {
990
990
  source = "hashicorp/random"
@@ -1307,7 +1307,7 @@ exports[`ts#agent generator > should match snapshot for Terraform generated file
1307
1307
  required_providers {
1308
1308
  aws = {
1309
1309
  source = "hashicorp/aws"
1310
- version = "6.71.0"
1310
+ version = "6.72.0"
1311
1311
  }
1312
1312
  null = {
1313
1313
  source = "hashicorp/null"
@@ -1666,7 +1666,7 @@ resource "null_resource" "runtime_ready" {
1666
1666
 
1667
1667
  provisioner "local-exec" {
1668
1668
  command = <<-EOT
1669
- uv run --with boto3==1.43.123 python -c "
1669
+ uv run --with boto3==1.43.126 python -c "
1670
1670
  import boto3
1671
1671
  import json
1672
1672
  import os
@@ -439,7 +439,7 @@ exports[`ts#agent#guardrails generator > protocol a2a > should generate the guar
439
439
  required_providers {
440
440
  aws = {
441
441
  source = "hashicorp/aws"
442
- version = "6.71.0"
442
+ version = "6.72.0"
443
443
  }
444
444
  random = {
445
445
  source = "hashicorp/random"
@@ -988,7 +988,7 @@ exports[`ts#agent#guardrails generator > protocol ag-ui > should generate the gu
988
988
  required_providers {
989
989
  aws = {
990
990
  source = "hashicorp/aws"
991
- version = "6.71.0"
991
+ version = "6.72.0"
992
992
  }
993
993
  random = {
994
994
  source = "hashicorp/random"
@@ -1551,7 +1551,7 @@ exports[`ts#agent#guardrails generator > protocol http > should generate the gua
1551
1551
  required_providers {
1552
1552
  aws = {
1553
1553
  source = "hashicorp/aws"
1554
- version = "6.71.0"
1554
+ version = "6.72.0"
1555
1555
  }
1556
1556
  random = {
1557
1557
  source = "hashicorp/random"
@@ -579,7 +579,7 @@ terraform {
579
579
  required_providers {
580
580
  aws = {
581
581
  source = "hashicorp/aws"
582
- version = "6.71.0"
582
+ version = "6.72.0"
583
583
  }
584
584
  archive = {
585
585
  source = "hashicorp/archive"
@@ -35,7 +35,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
35
35
  required_providers {
36
36
  aws = {
37
37
  source = "hashicorp/aws"
38
- version = "6.71.0"
38
+ version = "6.72.0"
39
39
  }
40
40
  }
41
41
  }
@@ -232,7 +232,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
232
232
  required_providers {
233
233
  aws = {
234
234
  source = "hashicorp/aws"
235
- version = "6.71.0"
235
+ version = "6.72.0"
236
236
  }
237
237
  random = {
238
238
  source = "hashicorp/random"
@@ -141,7 +141,7 @@ exports[`ts-lambda-function generator > terraform iac > should generate terrafor
141
141
  required_providers {
142
142
  aws = {
143
143
  source = "hashicorp/aws"
144
- version = "6.71.0"
144
+ version = "6.72.0"
145
145
  }
146
146
  archive = {
147
147
  source = "hashicorp/archive"
@@ -326,7 +326,7 @@ exports[`ts-lambda-function generator > terraform iac > should match snapshot fo
326
326
  required_providers {
327
327
  aws = {
328
328
  source = "hashicorp/aws"
329
- version = "6.71.0"
329
+ version = "6.72.0"
330
330
  }
331
331
  archive = {
332
332
  source = "hashicorp/archive"
@@ -155,7 +155,7 @@ exports[`ts#mcp-server generator > should match snapshot for Terraform generated
155
155
  required_providers {
156
156
  aws = {
157
157
  source = "hashicorp/aws"
158
- version = "6.71.0"
158
+ version = "6.72.0"
159
159
  }
160
160
  null = {
161
161
  source = "hashicorp/null"
@@ -514,7 +514,7 @@ resource "null_resource" "runtime_ready" {
514
514
 
515
515
  provisioner "local-exec" {
516
516
  command = <<-EOT
517
- uv run --with boto3==1.43.123 python -c "
517
+ uv run --with boto3==1.43.126 python -c "
518
518
  import boto3
519
519
  import json
520
520
  import os
@@ -848,7 +848,7 @@ terraform {
848
848
  required_providers {
849
849
  aws = {
850
850
  source = "hashicorp/aws"
851
- version = "6.71.0"
851
+ version = "6.72.0"
852
852
  }
853
853
  null = {
854
854
  source = "hashicorp/null"
@@ -1519,7 +1519,7 @@ exports[`ts#rdb generator > should generate terraform modules when iac is Terraf
1519
1519
  }
1520
1520
  aws = {
1521
1521
  source = "hashicorp/aws"
1522
- version = "6.71.0"
1522
+ version = "6.72.0"
1523
1523
  }
1524
1524
  external = {
1525
1525
  source = "hashicorp/external"
@@ -2214,7 +2214,7 @@ terraform {
2214
2214
  required_providers {
2215
2215
  aws = {
2216
2216
  source = "hashicorp/aws"
2217
- version = "6.71.0"
2217
+ version = "6.72.0"
2218
2218
  }
2219
2219
  null = {
2220
2220
  source = "hashicorp/null"
@@ -2885,7 +2885,7 @@ exports[`ts#rdb generator > should generate terraform modules with MySQL engine
2885
2885
  }
2886
2886
  aws = {
2887
2887
  source = "hashicorp/aws"
2888
- version = "6.71.0"
2888
+ version = "6.72.0"
2889
2889
  }
2890
2890
  external = {
2891
2891
  source = "hashicorp/external"
@@ -4520,7 +4520,7 @@ exports[`ts#rdb generator > should generate the aurora shared construct 4`] = `
4520
4520
  "FROM public.ecr.aws/lambda/nodejs:24
4521
4521
 
4522
4522
  # Upgrade npm to a version free of known HIGH/CRITICAL vulnerabilities
4523
- RUN npm install -g npm@12.2.1
4523
+ RUN npm install -g npm@12.2.2
4524
4524
 
4525
4525
  # Patch OS packages beyond the base image's pinned release, and drop the
4526
4526
  # runtime's convenience copy of the AWS SDK (the handler bundle inlines its
@@ -131,7 +131,7 @@ exports[`react-website generator > TailwindCSS integration > terraform iac > sho
131
131
  required_providers {
132
132
  aws = {
133
133
  source = "hashicorp/aws"
134
- version = "6.71.0"
134
+ version = "6.72.0"
135
135
  configuration_aliases = [aws.us_east_1]
136
136
  }
137
137
  null = {
@@ -745,7 +745,7 @@ resource "null_resource" "upload_website_files" {
745
745
  provisioner "local-exec" {
746
746
  command = <<-EOT
747
747
  cd "$ROOT_PATH"
748
- uv run --with boto3==1.43.123 python3 -c "
748
+ uv run --with boto3==1.43.126 python3 -c "
749
749
  import os
750
750
  import sys
751
751
  import boto3
@@ -868,7 +868,7 @@ resource "null_resource" "cloudfront_invalidation" {
868
868
 
869
869
  provisioner "local-exec" {
870
870
  command = <<-EOT
871
- uv run --with boto3==1.43.123 python3 -c "
871
+ uv run --with boto3==1.43.126 python3 -c "
872
872
  import boto3
873
873
  import os
874
874
  import sys
@@ -954,7 +954,7 @@ output "waf_web_acl_arn" {
954
954
  required_providers {
955
955
  aws = {
956
956
  source = "hashicorp/aws"
957
- version = "6.71.0"
957
+ version = "6.72.0"
958
958
  configuration_aliases = [aws.us_east_1]
959
959
  }
960
960
  }
@@ -1061,7 +1061,7 @@ runtime-config.json
1061
1061
 
1062
1062
  exports[`react-website generator > Tanstack router integration > should generate website with no router correctly > biome.json 1`] = `
1063
1063
  "{
1064
- "$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
1064
+ "$schema": "https://biomejs.dev/schemas/2.6.6/schema.json",
1065
1065
  "root": true,
1066
1066
  "formatter": {
1067
1067
  "enabled": true,
@@ -2387,22 +2387,22 @@ exports[`react-website generator > Tanstack router integration > should generate
2387
2387
  - packages/common/*
2388
2388
  catalog:
2389
2389
  '@types/node': 26.6.6
2390
- vite: 8.3.5
2391
- vitest: 5.0.5
2392
- '@vitest/coverage-v8': 5.0.5
2390
+ vite: 8.3.6
2391
+ vitest: 5.1.0
2392
+ '@vitest/coverage-v8': 5.1.0
2393
2393
  jsdom: 29.1.1
2394
2394
  '@nx/vitest': 23.3.1
2395
2395
  constructs: 10.8.1
2396
2396
  aws-cdk-lib: 2.275.0
2397
2397
  react: 19.3.1
2398
2398
  react-dom: 19.3.1
2399
- '@cloudscape-design/components': 3.0.1407
2400
- '@cloudscape-design/board-components': 3.0.243
2401
- '@cloudscape-design/global-styles': 1.0.71
2402
- tailwindcss: 4.3.3
2399
+ '@cloudscape-design/components': 3.0.1410
2400
+ '@cloudscape-design/board-components': 3.0.245
2401
+ '@cloudscape-design/global-styles': 1.0.72
2402
+ tailwindcss: 4.3.5
2403
2403
  '@nx/react': 23.3.1
2404
- '@vitest/ui': 5.0.5
2405
- '@tailwindcss/vite': 4.3.3
2404
+ '@vitest/ui': 5.1.0
2405
+ '@tailwindcss/vite': 4.3.5
2406
2406
  "
2407
2407
  `;
2408
2408
 
@@ -2998,7 +2998,7 @@ runtime-config.json
2998
2998
 
2999
2999
  exports[`react-website generator > Tanstack router integration > should generate website with router correctly > biome.json 1`] = `
3000
3000
  "{
3001
- "$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
3001
+ "$schema": "https://biomejs.dev/schemas/2.6.6/schema.json",
3002
3002
  "root": true,
3003
3003
  "formatter": {
3004
3004
  "enabled": true,
@@ -4328,27 +4328,27 @@ exports[`react-website generator > Tanstack router integration > should generate
4328
4328
  - packages/common/*
4329
4329
  catalog:
4330
4330
  '@types/node': 26.6.6
4331
- vite: 8.3.5
4332
- vitest: 5.0.5
4333
- '@vitest/coverage-v8': 5.0.5
4331
+ vite: 8.3.6
4332
+ vitest: 5.1.0
4333
+ '@vitest/coverage-v8': 5.1.0
4334
4334
  jsdom: 29.1.1
4335
4335
  '@nx/vitest': 23.3.1
4336
4336
  constructs: 10.8.1
4337
4337
  aws-cdk-lib: 2.275.0
4338
4338
  react: 19.3.1
4339
4339
  react-dom: 19.3.1
4340
- '@cloudscape-design/components': 3.0.1407
4341
- '@cloudscape-design/board-components': 3.0.243
4342
- '@cloudscape-design/global-styles': 1.0.71
4343
- tailwindcss: 4.3.3
4340
+ '@cloudscape-design/components': 3.0.1410
4341
+ '@cloudscape-design/board-components': 3.0.245
4342
+ '@cloudscape-design/global-styles': 1.0.72
4343
+ tailwindcss: 4.3.5
4344
4344
  '@tanstack/react-router': 1.170.46
4345
4345
  '@nx/react': 23.3.1
4346
- '@vitest/ui': 5.0.5
4347
- '@tailwindcss/vite': 4.3.3
4348
- '@tanstack/router-plugin': 1.168.48
4349
- '@tanstack/router-generator': 1.167.46
4346
+ '@vitest/ui': 5.1.0
4347
+ '@tailwindcss/vite': 4.3.5
4348
+ '@tanstack/router-plugin': 1.169.0
4349
+ '@tanstack/router-generator': 1.168.0
4350
4350
  '@tanstack/virtual-file-routes': 1.162.0
4351
- '@tanstack/router-utils': 1.162.4
4351
+ '@tanstack/router-utils': 1.163.0
4352
4352
  "
4353
4353
  `;
4354
4354
 
@@ -6,7 +6,7 @@ exports[`cognito-auth generator terraform iac > should generate terraform files
6
6
  required_providers {
7
7
  aws = {
8
8
  source = "hashicorp/aws"
9
- version = "6.71.0"
9
+ version = "6.72.0"
10
10
  }
11
11
  null = {
12
12
  source = "hashicorp/null"
@@ -67,7 +67,7 @@ resource "null_resource" "add_callback_url" {
67
67
 
68
68
  provisioner "local-exec" {
69
69
  command = <<-EOT
70
- uv run --with boto3==1.43.123 python -c "
70
+ uv run --with boto3==1.43.126 python -c "
71
71
  import boto3
72
72
  import os
73
73
  import sys
@@ -25,8 +25,8 @@ export declare const IMAGE_BUILD_CACHE = false;
25
25
  * version to install globally, and the versions its dependency overrides pin.
26
26
  */
27
27
  export declare const nodeImageVersions: () => {
28
- npmVersion: "12.2.1";
29
- minimatchVersion: "11.0.1";
28
+ npmVersion: "12.2.2";
29
+ minimatchVersion: "11.0.5";
30
30
  };
31
31
  /**
32
32
  * Packages a vended Node `Dockerfile` pins, which every generator writing one
@@ -6,6 +6,11 @@
6
6
  name: 'ty',
7
7
  reason: 'ty is 0.x and its releases add diagnostics that fail the vended Python templates',
8
8
  liftWhen: 'a newer ty has been checked against all vended Python templates (run the py-client, py#dynamodb and other Python-typecheck specs with it)'
9
+ },
10
+ {
11
+ name: 'strands-agents-tools',
12
+ reason: 'strands-agents-tools 0.9.0 removed current_time, which the vended py#agent strands template imports and passes as a tool',
13
+ liftWhen: 'the py#agent strands template injects the current time with ContextInjector and a migration moves existing agent.py files off current_time'
9
14
  }
10
15
  ];
11
16
  /** Terraform providers the version update keeps at their current version. */ export const TERRAFORM_VERSION_HOLDS = [];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../packages/nx-plugin/src/utils/version-lockstep/hold.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { IPyDepVersion, ITerraformProviderVersion } from '../versions.js';\nimport type { IVersionedDep, LockstepNote } from './lockstep.js';\n\n/**\n * A pin the version update must not move, why, and what lets it move again.\n *\n * The npm equivalent is a `reject` entry in `.ncurc.cjs`. pip-check-updates\n * has no exclude option and Terraform providers are resolved from the\n * registry, so Python and Terraform pins are held here instead.\n */\nexport interface VersionHold<Name extends IVersionedDep = IVersionedDep> {\n name: Name;\n reason: string;\n liftWhen: string;\n}\n\n/** Python pins the version update keeps at their current version. */\nexport const PY_VERSION_HOLDS: readonly VersionHold<IPyDepVersion>[] = [\n {\n name: 'ty',\n reason:\n 'ty is 0.x and its releases add diagnostics that fail the vended Python templates',\n liftWhen:\n 'a newer ty has been checked against all vended Python templates (run the py-client, py#dynamodb and other Python-typecheck specs with it)',\n },\n];\n\n/** Terraform providers the version update keeps at their current version. */\nexport const TERRAFORM_VERSION_HOLDS: readonly VersionHold<ITerraformProviderVersion>[] =\n [];\n\n/**\n * Put each held pin the run proposed moving back to its current version.\n *\n * Mutates `proposed`, which holds versions not yet written anywhere, and\n * returns a note for each pin it held so the reason reaches the update's PR.\n */\nexport const holdPinnedVersions = <Name extends IVersionedDep>(\n holds: readonly VersionHold<Name>[],\n current: Readonly<Partial<Record<Name, string>>>,\n proposed: Partial<Record<Name, string>>,\n): LockstepNote[] => {\n const notes: LockstepNote[] = [];\n\n for (const { name, reason, liftWhen } of holds) {\n const held = current[name];\n const available = proposed[name];\n if (held === undefined || available === undefined || available === held) {\n continue;\n }\n proposed[name] = held;\n notes.push({\n name,\n note: `${name} held at ${held} (${available} available): ${reason}. Lift when ${liftWhen}`,\n });\n }\n\n return notes;\n};\n"],"names":["PY_VERSION_HOLDS","name","reason","liftWhen","TERRAFORM_VERSION_HOLDS","holdPinnedVersions","holds","current","proposed","notes","held","available","undefined","push","note"],"mappings":"AAAA;;;CAGC,GAiBD,mEAAmE,GACnE,OAAO,MAAMA,mBAA0D;IACrE;QACEC,MAAM;QACNC,QACE;QACFC,UACE;IACJ;CACD,CAAC;AAEF,2EAA2E,GAC3E,OAAO,MAAMC,0BACX,EAAE,CAAC;AAEL;;;;;CAKC,GACD,OAAO,MAAMC,qBAAqB,CAChCC,OACAC,SACAC;IAEA,MAAMC,QAAwB,EAAE;IAEhC,KAAK,MAAM,EAAER,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAE,IAAIG,MAAO;QAC9C,MAAMI,OAAOH,OAAO,CAACN,KAAK;QAC1B,MAAMU,YAAYH,QAAQ,CAACP,KAAK;QAChC,IAAIS,SAASE,aAAaD,cAAcC,aAAaD,cAAcD,MAAM;YACvE;QACF;QACAF,QAAQ,CAACP,KAAK,GAAGS;QACjBD,MAAMI,IAAI,CAAC;YACTZ;YACAa,MAAM,GAAGb,KAAK,SAAS,EAAES,KAAK,EAAE,EAAEC,UAAU,aAAa,EAAET,OAAO,YAAY,EAAEC,UAAU;QAC5F;IACF;IAEA,OAAOM;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../../../../packages/nx-plugin/src/utils/version-lockstep/hold.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { IPyDepVersion, ITerraformProviderVersion } from '../versions.js';\nimport type { IVersionedDep, LockstepNote } from './lockstep.js';\n\n/**\n * A pin the version update must not move, why, and what lets it move again.\n *\n * The npm equivalent is a `reject` entry in `.ncurc.cjs`. pip-check-updates\n * has no exclude option and Terraform providers are resolved from the\n * registry, so Python and Terraform pins are held here instead.\n */\nexport interface VersionHold<Name extends IVersionedDep = IVersionedDep> {\n name: Name;\n reason: string;\n liftWhen: string;\n}\n\n/** Python pins the version update keeps at their current version. */\nexport const PY_VERSION_HOLDS: readonly VersionHold<IPyDepVersion>[] = [\n {\n name: 'ty',\n reason:\n 'ty is 0.x and its releases add diagnostics that fail the vended Python templates',\n liftWhen:\n 'a newer ty has been checked against all vended Python templates (run the py-client, py#dynamodb and other Python-typecheck specs with it)',\n },\n {\n name: 'strands-agents-tools',\n reason:\n 'strands-agents-tools 0.9.0 removed current_time, which the vended py#agent strands template imports and passes as a tool',\n liftWhen:\n 'the py#agent strands template injects the current time with ContextInjector and a migration moves existing agent.py files off current_time',\n },\n];\n\n/** Terraform providers the version update keeps at their current version. */\nexport const TERRAFORM_VERSION_HOLDS: readonly VersionHold<ITerraformProviderVersion>[] =\n [];\n\n/**\n * Put each held pin the run proposed moving back to its current version.\n *\n * Mutates `proposed`, which holds versions not yet written anywhere, and\n * returns a note for each pin it held so the reason reaches the update's PR.\n */\nexport const holdPinnedVersions = <Name extends IVersionedDep>(\n holds: readonly VersionHold<Name>[],\n current: Readonly<Partial<Record<Name, string>>>,\n proposed: Partial<Record<Name, string>>,\n): LockstepNote[] => {\n const notes: LockstepNote[] = [];\n\n for (const { name, reason, liftWhen } of holds) {\n const held = current[name];\n const available = proposed[name];\n if (held === undefined || available === undefined || available === held) {\n continue;\n }\n proposed[name] = held;\n notes.push({\n name,\n note: `${name} held at ${held} (${available} available): ${reason}. Lift when ${liftWhen}`,\n });\n }\n\n return notes;\n};\n"],"names":["PY_VERSION_HOLDS","name","reason","liftWhen","TERRAFORM_VERSION_HOLDS","holdPinnedVersions","holds","current","proposed","notes","held","available","undefined","push","note"],"mappings":"AAAA;;;CAGC,GAiBD,mEAAmE,GACnE,OAAO,MAAMA,mBAA0D;IACrE;QACEC,MAAM;QACNC,QACE;QACFC,UACE;IACJ;IACA;QACEF,MAAM;QACNC,QACE;QACFC,UACE;IACJ;CACD,CAAC;AAEF,2EAA2E,GAC3E,OAAO,MAAMC,0BACX,EAAE,CAAC;AAEL;;;;;CAKC,GACD,OAAO,MAAMC,qBAAqB,CAChCC,OACAC,SACAC;IAEA,MAAMC,QAAwB,EAAE;IAEhC,KAAK,MAAM,EAAER,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAE,IAAIG,MAAO;QAC9C,MAAMI,OAAOH,OAAO,CAACN,KAAK;QAC1B,MAAMU,YAAYH,QAAQ,CAACP,KAAK;QAChC,IAAIS,SAASE,aAAaD,cAAcC,aAAaD,cAAcD,MAAM;YACvE;QACF;QACAF,QAAQ,CAACP,KAAK,GAAGS;QACjBD,MAAMI,IAAI,CAAC;YACTZ;YACAa,MAAM,GAAGb,KAAK,SAAS,EAAES,KAAK,EAAE,EAAEC,UAAU,aAAa,EAAET,OAAO,YAAY,EAAEC,UAAU;QAC5F;IACF;IAEA,OAAOM;AACT,EAAE"}