@aws/nx-plugin 1.2.0 → 1.3.1

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 (88) hide show
  1. package/LICENSE-THIRD-PARTY +107 -259
  2. package/README.md +1 -0
  3. package/generators.json +8 -0
  4. package/migrations.json +53 -10
  5. package/package.json +14 -14
  6. package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
  7. package/src/greengrass/component/python/__snapshots__/generator.spec.ts.snap +8 -8
  8. package/src/infra/app/__snapshots__/generator.spec.ts.snap +3 -3
  9. package/src/internal/test-matrix/generator.js +6 -1
  10. package/src/internal/test-matrix/generator.js.map +1 -1
  11. package/src/migrations/latest/biome-markdown-yaml-formatter-off/metadata.json +3 -0
  12. package/src/migrations/latest/biome-markdown-yaml-formatter-off/migration.d.ts +6 -0
  13. package/src/migrations/latest/biome-markdown-yaml-formatter-off/migration.js +113 -0
  14. package/src/migrations/latest/biome-markdown-yaml-formatter-off/migration.js.map +1 -0
  15. package/src/migrations/v1.0.15/0001-py-agent-pillow-override/migration.js.map +1 -0
  16. package/src/migrations/v1.1.1/0001-ts-agent-guardrails-synth-input/migration.js.map +1 -0
  17. package/src/migrations/v1.3.0/0001-ts-agent-guardrails-terraform-version-retention/metadata.json +3 -0
  18. package/src/migrations/v1.3.0/0001-ts-agent-guardrails-terraform-version-retention/migration.d.ts +6 -0
  19. package/src/migrations/v1.3.0/0001-ts-agent-guardrails-terraform-version-retention/migration.js +118 -0
  20. package/src/migrations/v1.3.0/0001-ts-agent-guardrails-terraform-version-retention/migration.js.map +1 -0
  21. package/src/preset/__snapshots__/generator.spec.ts.snap +17 -5
  22. package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +7 -7
  23. package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +7 -7
  24. package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +4 -4
  25. package/src/py/agent/guardrails/__snapshots__/generator.spec.ts.snap +3813 -0
  26. package/src/py/agent/guardrails/files/langchain/guardrail.py.template +135 -0
  27. package/src/py/agent/guardrails/files/strands/guardrail.py.template +93 -0
  28. package/src/py/agent/guardrails/generator.d.ts +10 -0
  29. package/src/py/agent/guardrails/generator.js +175 -0
  30. package/src/py/agent/guardrails/generator.js.map +1 -0
  31. package/src/py/agent/guardrails/runtime-check/run_checks.py +250 -0
  32. package/src/py/agent/guardrails/schema.d.js +6 -0
  33. package/src/py/agent/guardrails/schema.d.js.map +1 -0
  34. package/src/py/agent/guardrails/schema.d.ts +9 -0
  35. package/src/py/agent/guardrails/schema.json +25 -0
  36. package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  37. package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
  38. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  39. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
  40. package/src/py/rdb/__snapshots__/generator.spec.ts.snap +4 -4
  41. package/src/sdk/py.d.ts +2 -0
  42. package/src/sdk/py.js +1 -0
  43. package/src/sdk/py.js.map +1 -1
  44. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +5 -5
  45. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -8
  46. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
  47. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +3 -3
  48. package/src/ts/agent/guardrails/__snapshots__/generator.spec.ts.snap +57 -6
  49. package/src/ts/agent/guardrails/generator.js +2 -1
  50. package/src/ts/agent/guardrails/generator.js.map +1 -1
  51. package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
  52. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  53. package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  54. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
  55. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +4 -4
  56. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +53 -33
  57. package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
  58. package/src/utils/format.d.ts +10 -0
  59. package/src/utils/format.js +11 -0
  60. package/src/utils/format.js.map +1 -1
  61. package/src/utils/guardrail-constructs/files/terraform/app/guardrails/__nameKebabCase__/__nameKebabCase__-guardrail.tf.template +18 -1
  62. package/src/utils/guardrail-constructs/guardrail-constructs.d.ts +5 -0
  63. package/src/utils/guardrail-constructs/guardrail-constructs.js +8 -0
  64. package/src/utils/guardrail-constructs/guardrail-constructs.js.map +1 -1
  65. package/src/utils/guardrail-constructs/guardrail-wiring.d.ts +7 -0
  66. package/src/utils/guardrail-constructs/guardrail-wiring.js +6 -5
  67. package/src/utils/guardrail-constructs/guardrail-wiring.js.map +1 -1
  68. package/src/utils/test/fake-aws/fake_aws.py +205 -0
  69. package/src/utils/test/python-dependencies.d.ts +6 -0
  70. package/src/utils/test/python-dependencies.js +19 -0
  71. package/src/utils/test/python-dependencies.js.map +1 -1
  72. package/src/utils/test/warm-python-cache.js +5 -1
  73. package/src/utils/test/warm-python-cache.js.map +1 -1
  74. package/src/utils/version-upgrade-migration/sync-vended-versions.d.ts +8 -0
  75. package/src/utils/version-upgrade-migration/sync-vended-versions.js +11 -2
  76. package/src/utils/version-upgrade-migration/sync-vended-versions.js.map +1 -1
  77. package/src/utils/versions.d.ts +71 -71
  78. package/src/utils/versions.js +68 -68
  79. package/src/utils/versions.js.map +1 -1
  80. package/src/migrations/latest/py-agent-pillow-override/migration.js.map +0 -1
  81. package/src/migrations/latest/ts-agent-guardrails-synth-input/migration.js.map +0 -1
  82. /package/src/migrations/{latest/py-agent-pillow-override → v1.0.15/0001-py-agent-pillow-override}/metadata.json +0 -0
  83. /package/src/migrations/{latest/py-agent-pillow-override → v1.0.15/0001-py-agent-pillow-override}/migration.d.ts +0 -0
  84. /package/src/migrations/{latest/py-agent-pillow-override → v1.0.15/0001-py-agent-pillow-override}/migration.js +0 -0
  85. /package/src/migrations/{latest/ts-agent-guardrails-synth-input → v1.1.1/0001-ts-agent-guardrails-synth-input}/metadata.json +0 -0
  86. /package/src/migrations/{latest/ts-agent-guardrails-synth-input → v1.1.1/0001-ts-agent-guardrails-synth-input}/migration.d.ts +0 -0
  87. /package/src/migrations/{latest/ts-agent-guardrails-synth-input → v1.1.1/0001-ts-agent-guardrails-synth-input}/migration.js +0 -0
  88. /package/src/{ts/agent/guardrails/files/agent → utils/guardrail-constructs/files/policy}/guardrail.json.template +0 -0
@@ -108,7 +108,7 @@ THE SOFTWARE.
108
108
 
109
109
  ---
110
110
 
111
- The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.17.1)
111
+ The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.17.2)
112
112
  This software contains the following license and notice below:
113
113
 
114
114
  MIT License
@@ -3842,7 +3842,7 @@ SOFTWARE.
3842
3842
 
3843
3843
  ---
3844
3844
 
3845
- The following software may be included in this product: @modelcontextprotocol/sdk (1.32.1)
3845
+ The following software may be included in this product: @modelcontextprotocol/sdk (1.32.2)
3846
3846
  This software contains the following license and notice below:
3847
3847
 
3848
3848
  MIT License
@@ -3999,7 +3999,7 @@ SOFTWARE.
3999
3999
 
4000
4000
  ---
4001
4001
 
4002
- The following software may be included in this product: @nx/devkit (23.3.0)
4002
+ The following software may be included in this product: @nx/devkit (23.3.1)
4003
4003
  This software contains the following license and notice below:
4004
4004
 
4005
4005
  MIT License
@@ -4023,7 +4023,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4023
4023
 
4024
4024
  ---
4025
4025
 
4026
- The following software may be included in this product: @nx/eslint (23.3.0)
4026
+ The following software may be included in this product: @nx/eslint (23.3.1)
4027
4027
  This software contains the following license and notice below:
4028
4028
 
4029
4029
  MIT License
@@ -4047,7 +4047,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4047
4047
 
4048
4048
  ---
4049
4049
 
4050
- The following software may be included in this product: @nx/js (23.3.0)
4050
+ The following software may be included in this product: @nx/js (23.3.1)
4051
4051
  This software contains the following license and notice below:
4052
4052
 
4053
4053
  MIT License
@@ -4071,7 +4071,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4071
4071
 
4072
4072
  ---
4073
4073
 
4074
- The following software may be included in this product: @nx/react (23.3.0)
4074
+ The following software may be included in this product: @nx/react (23.3.1)
4075
4075
  This software contains the following license and notice below:
4076
4076
 
4077
4077
  MIT License
@@ -4095,7 +4095,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4095
4095
 
4096
4096
  ---
4097
4097
 
4098
- The following software may be included in this product: @nx/vite (23.3.0)
4098
+ The following software may be included in this product: @nx/vite (23.3.1)
4099
4099
  This software contains the following license and notice below:
4100
4100
 
4101
4101
  MIT License
@@ -4119,7 +4119,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4119
4119
 
4120
4120
  ---
4121
4121
 
4122
- The following software may be included in this product: @nx/vitest (23.3.0)
4122
+ The following software may be included in this product: @nx/vitest (23.3.1)
4123
4123
  This software contains the following license and notice below:
4124
4124
 
4125
4125
  MIT License
@@ -4143,7 +4143,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4143
4143
 
4144
4144
  ---
4145
4145
 
4146
- The following software may be included in this product: @nx/web (23.3.0)
4146
+ The following software may be included in this product: @nx/web (23.3.1)
4147
4147
  This software contains the following license and notice below:
4148
4148
 
4149
4149
  MIT License
@@ -4167,7 +4167,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4167
4167
 
4168
4168
  ---
4169
4169
 
4170
- The following software may be included in this product: @nx/workspace (23.3.0)
4170
+ The following software may be included in this product: @nx/workspace (23.3.1)
4171
4171
  This software contains the following license and notice below:
4172
4172
 
4173
4173
  MIT License
@@ -4191,7 +4191,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4191
4191
 
4192
4192
  ---
4193
4193
 
4194
- The following software may be included in this product: @nxlv/python (23.2.1)
4194
+ The following software may be included in this product: @nxlv/python (23.3.1)
4195
4195
  This software contains the following license and notice below:
4196
4196
 
4197
4197
  MIT License
@@ -4729,7 +4729,7 @@ SOFTWARE
4729
4729
 
4730
4730
  ---
4731
4731
 
4732
- The following software may be included in this product: @vitest/mocker (5.0.4)
4732
+ The following software may be included in this product: @vitest/mocker (5.0.5)
4733
4733
  This software contains the following license and notice below:
4734
4734
 
4735
4735
  MIT License
@@ -4756,7 +4756,7 @@ SOFTWARE.
4756
4756
 
4757
4757
  ---
4758
4758
 
4759
- The following software may be included in this product: @vitest/spy (5.0.4)
4759
+ The following software may be included in this product: @vitest/spy (5.0.5)
4760
4760
  This software contains the following license and notice below:
4761
4761
 
4762
4762
  MIT License
@@ -7702,12 +7702,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7702
7702
 
7703
7703
  ---
7704
7704
 
7705
- The following software may be included in this product: eventsource-parser (3.0.6)
7705
+ The following software may be included in this product: eventsource-parser (3.1.1)
7706
7706
  This software contains the following license and notice below:
7707
7707
 
7708
7708
  MIT License
7709
7709
 
7710
- Copyright (c) 2025 Espen Hovlandsdal <espen@hovlandsdal.com>
7710
+ Copyright (c) 2026 Espen Hovlandsdal <espen@hovlandsdal.com>
7711
7711
 
7712
7712
  Permission is hereby granted, free of charge, to any person obtaining a copy
7713
7713
  of this software and associated documentation files (the "Software"), to deal
@@ -8851,33 +8851,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8851
8851
 
8852
8852
  ---
8853
8853
 
8854
- The following software may be included in this product: ignore (7.0.5)
8855
- This software contains the following license and notice below:
8856
-
8857
- Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
8858
- http://kael.me/
8859
-
8860
- Permission is hereby granted, free of charge, to any person obtaining
8861
- a copy of this software and associated documentation files (the
8862
- "Software"), to deal in the Software without restriction, including
8863
- without limitation the rights to use, copy, modify, merge, publish,
8864
- distribute, sublicense, and/or sell copies of the Software, and to
8865
- permit persons to whom the Software is furnished to do so, subject to
8866
- the following conditions:
8867
-
8868
- The above copyright notice and this permission notice shall be
8869
- included in all copies or substantial portions of the Software.
8870
-
8871
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
8872
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8873
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8874
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
8875
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
8876
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
8877
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8878
-
8879
- ---
8880
-
8881
8854
  The following software may be included in this product: ignore (7.0.6)
8882
8855
  This software contains the following license and notice below:
8883
8856
 
@@ -12070,7 +12043,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
12070
12043
 
12071
12044
  ---
12072
12045
 
12073
- The following software may be included in this product: nx (23.3.0)
12046
+ The following software may be included in this product: nx (23.3.1)
12074
12047
  This software contains the following license and notice below:
12075
12048
 
12076
12049
  (The MIT License)
@@ -15175,6 +15148,34 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15175
15148
 
15176
15149
  ---
15177
15150
 
15151
+ The following software may be included in this product: unist-util-visit (5.2.0)
15152
+ This software contains the following license and notice below:
15153
+
15154
+ (The MIT License)
15155
+
15156
+ Copyright (c) Titus Wormer <tituswormer@gmail.com>
15157
+
15158
+ Permission is hereby granted, free of charge, to any person obtaining
15159
+ a copy of this software and associated documentation files (the
15160
+ 'Software'), to deal in the Software without restriction, including
15161
+ without limitation the rights to use, copy, modify, merge, publish,
15162
+ distribute, sublicense, and/or sell copies of the Software, and to
15163
+ permit persons to whom the Software is furnished to do so, subject to
15164
+ the following conditions:
15165
+
15166
+ The above copyright notice and this permission notice shall be
15167
+ included in all copies or substantial portions of the Software.
15168
+
15169
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15170
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15171
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15172
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
15173
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
15174
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15175
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15176
+
15177
+ ---
15178
+
15178
15179
  The following software may be included in this product: unist-util-visit-parents (6.0.2)
15179
15180
  This software contains the following license and notice below:
15180
15181
 
@@ -15203,6 +15204,34 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15203
15204
 
15204
15205
  ---
15205
15206
 
15207
+ The following software may be included in this product: unist-util-visit-parents (6.1.0)
15208
+ This software contains the following license and notice below:
15209
+
15210
+ (The MIT License)
15211
+
15212
+ Copyright (c) Titus Wormer <tituswormer@gmail.com>
15213
+
15214
+ Permission is hereby granted, free of charge, to any person obtaining
15215
+ a copy of this software and associated documentation files (the
15216
+ 'Software'), to deal in the Software without restriction, including
15217
+ without limitation the rights to use, copy, modify, merge, publish,
15218
+ distribute, sublicense, and/or sell copies of the Software, and to
15219
+ permit persons to whom the Software is furnished to do so, subject to
15220
+ the following conditions:
15221
+
15222
+ The above copyright notice and this permission notice shall be
15223
+ included in all copies or substantial portions of the Software.
15224
+
15225
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15226
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15227
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15228
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
15229
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
15230
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15231
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15232
+
15233
+ ---
15234
+
15206
15235
  The following software may be included in this product: universalify (2.0.1)
15207
15236
  This software contains the following license and notice below:
15208
15237
 
@@ -15438,7 +15467,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15438
15467
 
15439
15468
  ---
15440
15469
 
15441
- The following software may be included in this product: vite (8.3.4)
15470
+ The following software may be included in this product: vite (8.3.5)
15442
15471
  This software contains the following license and notice below:
15443
15472
 
15444
15473
  # Vite core license
@@ -15468,7 +15497,7 @@ SOFTWARE.
15468
15497
 
15469
15498
  # Licenses of bundled dependencies
15470
15499
  The published Vite artifact additionally contains code with the following licenses:
15471
- Apache-2.0, BSD-2-Clause, CC0-1.0, ISC, MIT
15500
+ BSD-2-Clause, CC0-1.0, ISC, MIT
15472
15501
 
15473
15502
  # Bundled dependencies:
15474
15503
  ## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping
@@ -15575,215 +15604,6 @@ Repository: https://github.com/rollup/plugins
15575
15604
 
15576
15605
  ---------------------------------------
15577
15606
 
15578
- ## @vercel/detect-agent
15579
- License: Apache-2.0
15580
- By: Vercel
15581
- Repository: https://github.com/vercel/vercel
15582
-
15583
- > Apache License
15584
- > Version 2.0, January 2004
15585
- > http://www.apache.org/licenses/
15586
- >
15587
- > TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
15588
- >
15589
- > 1. Definitions.
15590
- >
15591
- > "License" shall mean the terms and conditions for use, reproduction,
15592
- > and distribution as defined by Sections 1 through 9 of this document.
15593
- >
15594
- > "Licensor" shall mean the copyright owner or entity authorized by
15595
- > the copyright owner that is granting the License.
15596
- >
15597
- > "Legal Entity" shall mean the union of the acting entity and all
15598
- > other entities that control, are controlled by, or are under common
15599
- > control with that entity. For the purposes of this definition,
15600
- > "control" means (i) the power, direct or indirect, to cause the
15601
- > direction or management of such entity, whether by contract or
15602
- > otherwise, or (ii) ownership of fifty percent (50%) or more of the
15603
- > outstanding shares, or (iii) beneficial ownership of such entity.
15604
- >
15605
- > "You" (or "Your") shall mean an individual or Legal Entity
15606
- > exercising permissions granted by this License.
15607
- >
15608
- > "Source" form shall mean the preferred form for making modifications,
15609
- > including but not limited to software source code, documentation
15610
- > source, and configuration files.
15611
- >
15612
- > "Object" form shall mean any form resulting from mechanical
15613
- > transformation or translation of a Source form, including but
15614
- > not limited to compiled object code, generated documentation,
15615
- > and conversions to other media types.
15616
- >
15617
- > "Work" shall mean the work of authorship, whether in Source or
15618
- > Object form, made available under the License, as indicated by a
15619
- > copyright notice that is included in or attached to the work
15620
- > (an example is provided in the Appendix below).
15621
- >
15622
- > "Derivative Works" shall mean any work, whether in Source or Object
15623
- > form, that is based on (or derived from) the Work and for which the
15624
- > editorial revisions, annotations, elaborations, or other modifications
15625
- > represent, as a whole, an original work of authorship. For the purposes
15626
- > of this License, Derivative Works shall not include works that remain
15627
- > separable from, or merely link (or bind by name) to the interfaces of,
15628
- > the Work and Derivative Works thereof.
15629
- >
15630
- > "Contribution" shall mean any work of authorship, including
15631
- > the original version of the Work and any modifications or additions
15632
- > to that Work or Derivative Works thereof, that is intentionally
15633
- > submitted to Licensor for inclusion in the Work by the copyright owner
15634
- > or by an individual or Legal Entity authorized to submit on behalf of
15635
- > the copyright owner. For the purposes of this definition, "submitted"
15636
- > means any form of electronic, verbal, or written communication sent
15637
- > to the Licensor or its representatives, including but not limited to
15638
- > communication on electronic mailing lists, source code control systems,
15639
- > and issue tracking systems that are managed by, or on behalf of, the
15640
- > Licensor for the purpose of discussing and improving the Work, but
15641
- > excluding communication that is conspicuously marked or otherwise
15642
- > designated in writing by the copyright owner as "Not a Contribution."
15643
- >
15644
- > "Contributor" shall mean Licensor and any individual or Legal Entity
15645
- > on behalf of whom a Contribution has been received by Licensor and
15646
- > subsequently incorporated within the Work.
15647
- >
15648
- > 2. Grant of Copyright License. Subject to the terms and conditions of
15649
- > this License, each Contributor hereby grants to You a perpetual,
15650
- > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
15651
- > copyright license to reproduce, prepare Derivative Works of,
15652
- > publicly display, publicly perform, sublicense, and distribute the
15653
- > Work and such Derivative Works in Source or Object form.
15654
- >
15655
- > 3. Grant of Patent License. Subject to the terms and conditions of
15656
- > this License, each Contributor hereby grants to You a perpetual,
15657
- > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
15658
- > (except as stated in this section) patent license to make, have made,
15659
- > use, offer to sell, sell, import, and otherwise transfer the Work,
15660
- > where such license applies only to those patent claims licensable
15661
- > by such Contributor that are necessarily infringed by their
15662
- > Contribution(s) alone or by combination of their Contribution(s)
15663
- > with the Work to which such Contribution(s) was submitted. If You
15664
- > institute patent litigation against any entity (including a
15665
- > cross-claim or counterclaim in a lawsuit) alleging that the Work
15666
- > or a Contribution incorporated within the Work constitutes direct
15667
- > or contributory patent infringement, then any patent licenses
15668
- > granted to You under this License for that Work shall terminate
15669
- > as of the date such litigation is filed.
15670
- >
15671
- > 4. Redistribution. You may reproduce and distribute copies of the
15672
- > Work or Derivative Works thereof in any medium, with or without
15673
- > modifications, and in Source or Object form, provided that You
15674
- > meet the following conditions:
15675
- >
15676
- > (a) You must give any other recipients of the Work or
15677
- > Derivative Works a copy of this License; and
15678
- >
15679
- > (b) You must cause any modified files to carry prominent notices
15680
- > stating that You changed the files; and
15681
- >
15682
- > (c) You must retain, in the Source form of any Derivative Works
15683
- > that You distribute, all copyright, patent, trademark, and
15684
- > attribution notices from the Source form of the Work,
15685
- > excluding those notices that do not pertain to any part of
15686
- > the Derivative Works; and
15687
- >
15688
- > (d) If the Work includes a "NOTICE" text file as part of its
15689
- > distribution, then any Derivative Works that You distribute must
15690
- > include a readable copy of the attribution notices contained
15691
- > within such NOTICE file, excluding those notices that do not
15692
- > pertain to any part of the Derivative Works, in at least one
15693
- > of the following places: within a NOTICE text file distributed
15694
- > as part of the Derivative Works; within the Source form or
15695
- > documentation, if provided along with the Derivative Works; or,
15696
- > within a display generated by the Derivative Works, if and
15697
- > wherever such third-party notices normally appear. The contents
15698
- > of the NOTICE file are for informational purposes only and
15699
- > do not modify the License. You may add Your own attribution
15700
- > notices within Derivative Works that You distribute, alongside
15701
- > or as an addendum to the NOTICE text from the Work, provided
15702
- > that such additional attribution notices cannot be construed
15703
- > as modifying the License.
15704
- >
15705
- > You may add Your own copyright statement to Your modifications and
15706
- > may provide additional or different license terms and conditions
15707
- > for use, reproduction, or distribution of Your modifications, or
15708
- > for any such Derivative Works as a whole, provided Your use,
15709
- > reproduction, and distribution of the Work otherwise complies with
15710
- > the conditions stated in this License.
15711
- >
15712
- > 5. Submission of Contributions. Unless You explicitly state otherwise,
15713
- > any Contribution intentionally submitted for inclusion in the Work
15714
- > by You to the Licensor shall be under the terms and conditions of
15715
- > this License, without any additional terms or conditions.
15716
- > Notwithstanding the above, nothing herein shall supersede or modify
15717
- > the terms of any separate license agreement you may have executed
15718
- > with Licensor regarding such Contributions.
15719
- >
15720
- > 6. Trademarks. This License does not grant permission to use the trade
15721
- > names, trademarks, service marks, or product names of the Licensor,
15722
- > except as required for reasonable and customary use in describing the
15723
- > origin of the Work and reproducing the content of the NOTICE file.
15724
- >
15725
- > 7. Disclaimer of Warranty. Unless required by applicable law or
15726
- > agreed to in writing, Licensor provides the Work (and each
15727
- > Contributor provides its Contributions) on an "AS IS" BASIS,
15728
- > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15729
- > implied, including, without limitation, any warranties or conditions
15730
- > of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
15731
- > PARTICULAR PURPOSE. You are solely responsible for determining the
15732
- > appropriateness of using or redistributing the Work and assume any
15733
- > risks associated with Your exercise of permissions under this License.
15734
- >
15735
- > 8. Limitation of Liability. In no event and under no legal theory,
15736
- > whether in tort (including negligence), contract, or otherwise,
15737
- > unless required by applicable law (such as deliberate and grossly
15738
- > negligent acts) or agreed to in writing, shall any Contributor be
15739
- > liable to You for damages, including any direct, indirect, special,
15740
- > incidental, or consequential damages of any character arising as a
15741
- > result of this License or out of the use or inability to use the
15742
- > Work (including but not limited to damages for loss of goodwill,
15743
- > work stoppage, computer failure or malfunction, or any and all
15744
- > other commercial damages or losses), even if such Contributor
15745
- > has been advised of the possibility of such damages.
15746
- >
15747
- > 9. Accepting Warranty or Additional Liability. While redistributing
15748
- > the Work or Derivative Works thereof, You may choose to offer,
15749
- > and charge a fee for, acceptance of support, warranty, indemnity,
15750
- > or other liability obligations and/or rights consistent with this
15751
- > License. However, in accepting such obligations, You may act only
15752
- > on Your own behalf and on Your sole responsibility, not on behalf
15753
- > of any other Contributor, and only if You agree to indemnify,
15754
- > defend, and hold each Contributor harmless for any liability
15755
- > incurred by, or claims asserted against, such Contributor by reason
15756
- > of your accepting any such warranty or additional liability.
15757
- >
15758
- > END OF TERMS AND CONDITIONS
15759
- >
15760
- > APPENDIX: How to apply the Apache License to your work.
15761
- >
15762
- > To apply the Apache License to your work, attach the following
15763
- > boilerplate notice, with the fields enclosed by brackets "[]"
15764
- > replaced with your own identifying information. (Don't include
15765
- > the brackets!) The text should be enclosed in the appropriate
15766
- > comment syntax for the file format. We also recommend that a
15767
- > file or class name and description of purpose be included on the
15768
- > same "printed page" as the copyright notice for easier
15769
- > identification within third-party archives.
15770
- >
15771
- > Copyright 2017 Vercel, Inc.
15772
- >
15773
- > Licensed under the Apache License, Version 2.0 (the "License");
15774
- > you may not use this file except in compliance with the License.
15775
- > You may obtain a copy of the License at
15776
- >
15777
- > http://www.apache.org/licenses/LICENSE-2.0
15778
- >
15779
- > Unless required by applicable law or agreed to in writing, software
15780
- > distributed under the License is distributed on an "AS IS" BASIS,
15781
- > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15782
- > See the License for the specific language governing permissions and
15783
- > limitations under the License.
15784
-
15785
- ---------------------------------------
15786
-
15787
15607
  ## @vitest/utils
15788
15608
  License: MIT
15789
15609
  Repository: https://github.com/vitest-dev/vitest
@@ -15967,7 +15787,7 @@ Repositories: https://github.com/sindresorhus/bundle-name, https://github.com/si
15967
15787
 
15968
15788
  ## cac
15969
15789
  License: MIT
15970
- By: egoist
15790
+ By: egoist, Kevin Deng <sxzz@sxzz.moe>
15971
15791
  Repository: https://github.com/cacjs/cac
15972
15792
 
15973
15793
  > The MIT License (MIT)
@@ -17254,7 +17074,7 @@ Repository: https://github.com/css-modules/postcss-modules-values
17254
17074
 
17255
17075
  ## postcss-selector-parser
17256
17076
  License: MIT
17257
- By: Ben Briggs, Chris Eppstein
17077
+ By: Maxime Thirouin, Ben Briggs, Chris Eppstein
17258
17078
  Repository: https://github.com/postcss/postcss-selector-parser
17259
17079
 
17260
17080
  > Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
@@ -17439,6 +17259,34 @@ Repository: https://github.com/jshttp/statuses
17439
17259
 
17440
17260
  ---------------------------------------
17441
17261
 
17262
+ ## std-env
17263
+ License: MIT
17264
+ Repository: https://github.com/unjs/std-env
17265
+
17266
+ > MIT License
17267
+ >
17268
+ > Copyright (c) Pooya Parsa <pooya@pi0.io>
17269
+ >
17270
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
17271
+ > of this software and associated documentation files (the "Software"), to deal
17272
+ > in the Software without restriction, including without limitation the rights
17273
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17274
+ > copies of the Software, and to permit persons to whom the Software is
17275
+ > furnished to do so, subject to the following conditions:
17276
+ >
17277
+ > The above copyright notice and this permission notice shall be included in all
17278
+ > copies or substantial portions of the Software.
17279
+ >
17280
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17281
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17282
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17283
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17284
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17285
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17286
+ > SOFTWARE.
17287
+
17288
+ ---------------------------------------
17289
+
17442
17290
  ## string-hash
17443
17291
  License: CC0-1.0
17444
17292
  By: The Dark Sky Company
@@ -17709,7 +17557,7 @@ Repository: https://github.com/sveltejs/zimmerframe
17709
17557
 
17710
17558
  ---
17711
17559
 
17712
- The following software may be included in this product: vitest (5.0.4)
17560
+ The following software may be included in this product: vitest (5.0.5)
17713
17561
  This software contains the following license and notice below:
17714
17562
 
17715
17563
  # Vitest core license
@@ -18992,7 +18840,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18992
18840
 
18993
18841
  ---
18994
18842
 
18995
- The following software may be included in this product: @biomejs/js-api (6.0.0)
18843
+ The following software may be included in this product: @biomejs/js-api (6.1.0)
18996
18844
  This software contains the following license and notice below:
18997
18845
 
18998
18846
  Apache License
@@ -25049,7 +24897,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25049
24897
 
25050
24898
  ---
25051
24899
 
25052
- The following software may be included in this product: flatted (3.4.2)
24900
+ The following software may be included in this product: flatted (3.4.4)
25053
24901
  This software contains the following license and notice below:
25054
24902
 
25055
24903
  ISC License
package/README.md CHANGED
@@ -113,6 +113,7 @@ pnpm nx g @aws/nx-plugin:ts#infra
113
113
  | `py#lambda-function` | Python Lambda with type-safe event sources |
114
114
  | `py#mcp-server` | MCP server (Python) |
115
115
  | `py#agent` | [Strands Agent](https://strandsagents.com/) (Python) |
116
+ | `py#agent#guardrails` | Amazon Bedrock Guardrail for a Python Agent (experimental) |
116
117
  | `agentcore-gateway` | [AgentCore Gateway](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html) project |
117
118
  | `greengrass#component` | [AWS IoT Greengrass](https://docs.aws.amazon.com/greengrass/v2/developerguide/) v2 component for Python or TypeScript (experimental) |
118
119
  | `agentcore-harness` | [AgentCore Harness](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/harness.html) agent loop (experimental) |
package/generators.json CHANGED
@@ -204,6 +204,14 @@
204
204
  "metric": "g25",
205
205
  "guidePages": ["py-agent"]
206
206
  },
207
+ "py#agent#guardrails": {
208
+ "factory": "./src/py/agent/guardrails/generator",
209
+ "schema": "./src/py/agent/guardrails/schema.json",
210
+ "description": "Add an Amazon Bedrock Guardrail to a Python Agent",
211
+ "metric": "g77",
212
+ "guidePages": ["py-agent-guardrails"],
213
+ "experimental": true
214
+ },
207
215
  "py#agent#mcp-connection": {
208
216
  "factory": "./src/py/agent/mcp-connection/generator",
209
217
  "schema": "./src/py/agent/mcp-connection/schema.json",
package/migrations.json CHANGED
@@ -2,15 +2,10 @@
2
2
  "$schema": "http://json-schema.org/schema",
3
3
  "name": "@aws/nx-plugin",
4
4
  "generators": {
5
- "latest-py-agent-pillow-override": {
6
- "version": "1.0.15",
7
- "description": "Add the strands-agents-tools pillow override to the workspace root pyproject.toml uv override-dependencies",
8
- "implementation": "./src/migrations/latest/py-agent-pillow-override/migration"
9
- },
10
- "latest-ts-agent-guardrails-synth-input": {
11
- "version": "1.1.1",
12
- "description": "Add each CDK-guarded TypeScript agent's guardrail.json to the synth inputs of the CDK infrastructure, so a policy change is synthesised instead of served from the Nx cache",
13
- "implementation": "./src/migrations/latest/ts-agent-guardrails-synth-input/migration"
5
+ "latest-biome-markdown-yaml-formatter-off": {
6
+ "version": "1.3.1",
7
+ "description": "Turn off Biome 2.6's Markdown and YAML formatting in biome.json, which formats them by default",
8
+ "implementation": "./src/migrations/latest/biome-markdown-yaml-formatter-off/migration"
14
9
  },
15
10
  "v1.0.0-rc.50-0001-modernize-function-props-cast": {
16
11
  "version": "1.0.0-rc.50",
@@ -382,6 +377,11 @@
382
377
  "description": "Declare @modelcontextprotocol/client in every project that declares @strands-agents/sdk without it so the required peer resolves to the vended pin",
383
378
  "implementation": "./src/migrations/v1.0.10/0001-pin-strands-mcp-client-peer/migration"
384
379
  },
380
+ "v1.0.15-0001-py-agent-pillow-override": {
381
+ "version": "1.0.15",
382
+ "description": "Add the strands-agents-tools pillow override to the workspace root pyproject.toml uv override-dependencies",
383
+ "implementation": "./src/migrations/v1.0.15/0001-py-agent-pillow-override/migration"
384
+ },
385
385
  "v1.0.2-0001-terraform-harness-environment-variables": {
386
386
  "version": "1.0.2",
387
387
  "description": "Send an empty map rather than null for a vended Terraform AgentCore Harness module's environment_variables, so the first apply does not fail after creating the Harness",
@@ -427,8 +427,18 @@
427
427
  "description": "Bind the py#dynamodb BaseModel Meta that 1.0.8 declared as a nested MetaProtocol subclass with the inherited MetaProtocol type, so the generated project type checks with ty 0.0.87",
428
428
  "implementation": "./src/migrations/v1.0.9/0001-py-dynamodb-bind-base-model-meta/migration"
429
429
  },
430
+ "v1.1.1-0001-ts-agent-guardrails-synth-input": {
431
+ "version": "1.1.1",
432
+ "description": "Add each CDK-guarded TypeScript agent's guardrail.json to the synth inputs of the CDK infrastructure, so a policy change is synthesised instead of served from the Nx cache",
433
+ "implementation": "./src/migrations/v1.1.1/0001-ts-agent-guardrails-synth-input/migration"
434
+ },
435
+ "v1.3.0-0001-ts-agent-guardrails-terraform-version-retention": {
436
+ "version": "1.3.0",
437
+ "description": "Keep a replaced guardrail version in each Terraform guardrail module of a TypeScript agent for 15 seconds after the runtime-config deployment, so agents' 5-second runtime-config cache never points at a deleted version",
438
+ "implementation": "./src/migrations/v1.3.0/0001-ts-agent-guardrails-terraform-version-retention/migration"
439
+ },
430
440
  "sync-vended-versions": {
431
- "version": "1.2.0",
441
+ "version": "1.3.1",
432
442
  "description": "Sync vended dependency versions and the tracked plugin version to those vended by this release",
433
443
  "implementation": "./src/utils/version-upgrade-migration/migration"
434
444
  }
@@ -598,6 +608,39 @@
598
608
  "alwaysAddToPackageJson": false
599
609
  }
600
610
  }
611
+ },
612
+ "nx-23.3.1-nx-packages": {
613
+ "version": "1.3.1",
614
+ "packages": {
615
+ "nx": {
616
+ "version": "23.3.1",
617
+ "alwaysAddToPackageJson": false
618
+ },
619
+ "@nx/devkit": {
620
+ "version": "23.3.1",
621
+ "alwaysAddToPackageJson": false
622
+ },
623
+ "@nx/js": {
624
+ "version": "23.3.1",
625
+ "alwaysAddToPackageJson": false
626
+ },
627
+ "@nx/react": {
628
+ "version": "23.3.1",
629
+ "alwaysAddToPackageJson": false
630
+ },
631
+ "@nx/vite": {
632
+ "version": "23.3.1",
633
+ "alwaysAddToPackageJson": false
634
+ },
635
+ "@nx/vitest": {
636
+ "version": "23.3.1",
637
+ "alwaysAddToPackageJson": false
638
+ },
639
+ "@nx/workspace": {
640
+ "version": "23.3.1",
641
+ "alwaysAddToPackageJson": false
642
+ }
643
+ }
601
644
  }
602
645
  }
603
646
  }