@aws/nx-plugin 1.0.0-rc.1 → 1.0.0-rc.11

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 (468) hide show
  1. package/LICENSE-THIRD-PARTY +3399 -4104
  2. package/README.md +8 -8
  3. package/executors.json +9 -0
  4. package/generators.json +44 -5
  5. package/package.json +16 -12
  6. package/sdk/license.d.ts +8 -0
  7. package/sdk/license.js +13 -0
  8. package/sdk/license.js.map +1 -0
  9. package/src/connection/agent-runtime-config.d.ts +1 -1
  10. package/src/connection/agent-runtime-config.js.map +1 -1
  11. package/src/connection/agent-serve-local.d.ts +2 -2
  12. package/src/connection/agent-serve-local.js +1 -1
  13. package/src/connection/agent-serve-local.js.map +1 -1
  14. package/src/connection/generator.d.ts +5 -5
  15. package/src/connection/generator.js +56 -37
  16. package/src/connection/generator.js.map +1 -1
  17. package/src/connection/serve-local.d.ts +1 -1
  18. package/src/connection/serve-local.js +1 -1
  19. package/src/connection/serve-local.js.map +1 -1
  20. package/src/infra/app/__snapshots__/generator.spec.ts.snap +38 -49
  21. package/src/infra/app/generator.d.ts +3 -3
  22. package/src/infra/app/generator.js +16 -14
  23. package/src/infra/app/generator.js.map +1 -1
  24. package/src/license/__snapshots__/config.spec.ts.snap +23 -0
  25. package/src/license/config-types.d.ts +18 -1
  26. package/src/license/config-types.js +4 -0
  27. package/src/license/config-types.js.map +1 -1
  28. package/src/license/config.d.ts +65 -7
  29. package/src/license/config.js +315 -7
  30. package/src/license/config.js.map +1 -1
  31. package/src/license/dependency-check/check.d.ts +16 -0
  32. package/src/license/dependency-check/check.js +111 -0
  33. package/src/license/dependency-check/check.js.map +1 -0
  34. package/src/license/dependency-check/collectors/collector.d.ts +21 -0
  35. package/src/license/dependency-check/collectors/collector.js +76 -0
  36. package/src/license/dependency-check/collectors/collector.js.map +1 -0
  37. package/src/license/dependency-check/collectors/npm-collector.d.ts +10 -0
  38. package/src/license/dependency-check/collectors/npm-collector.js +75 -0
  39. package/src/license/dependency-check/collectors/npm-collector.js.map +1 -0
  40. package/src/license/dependency-check/collectors/python-collector.d.ts +23 -0
  41. package/src/license/dependency-check/collectors/python-collector.js +121 -0
  42. package/src/license/dependency-check/collectors/python-collector.js.map +1 -0
  43. package/src/license/dependency-check/evaluator.d.ts +9 -0
  44. package/src/license/dependency-check/evaluator.js +122 -0
  45. package/src/license/dependency-check/evaluator.js.map +1 -0
  46. package/src/license/dependency-check/executor-schema.json +6 -0
  47. package/src/license/dependency-check/executor.d.ts +9 -0
  48. package/src/license/dependency-check/executor.js +43 -0
  49. package/src/license/dependency-check/executor.js.map +1 -0
  50. package/src/license/dependency-check/pre-approved.d.ts +6 -0
  51. package/src/license/dependency-check/pre-approved.js +1280 -0
  52. package/src/license/dependency-check/pre-approved.js.map +1 -0
  53. package/src/license/dependency-check/types.d.ts +45 -0
  54. package/src/license/dependency-check/types.js +7 -0
  55. package/src/license/dependency-check/types.js.map +1 -0
  56. package/src/license/generator.d.ts +3 -3
  57. package/src/license/generator.js +113 -14
  58. package/src/license/generator.js.map +1 -1
  59. package/src/license/index.d.ts +8 -0
  60. package/src/license/index.js +13 -0
  61. package/src/license/index.js.map +1 -0
  62. package/src/license/known-exceptions.d.ts +7 -0
  63. package/src/license/known-exceptions.js +33 -0
  64. package/src/license/known-exceptions.js.map +1 -0
  65. package/src/license/schema.d.ts +5 -0
  66. package/src/license/schema.json +6 -0
  67. package/src/license/sync/generator.d.ts +2 -2
  68. package/src/license/sync/generator.js +15 -15
  69. package/src/license/sync/generator.js.map +1 -1
  70. package/src/license/sync/project-file-sync.d.ts +3 -3
  71. package/src/license/sync/project-file-sync.js.map +1 -1
  72. package/src/mcp-server/generator-info.d.ts +5 -1
  73. package/src/mcp-server/generator-info.js +7 -7
  74. package/src/mcp-server/generator-info.js.map +1 -1
  75. package/src/mcp-server/guide-pipeline.d.ts +1 -1
  76. package/src/mcp-server/guide-pipeline.js +2 -2
  77. package/src/mcp-server/guide-pipeline.js.map +1 -1
  78. package/src/mcp-server/mdx-ast.js +4 -0
  79. package/src/mcp-server/mdx-ast.js.map +1 -1
  80. package/src/mcp-server/server.js +3 -3
  81. package/src/mcp-server/server.js.map +1 -1
  82. package/src/mcp-server/tools/create-workspace-command.d.ts +1 -1
  83. package/src/mcp-server/tools/create-workspace-command.js +4 -4
  84. package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
  85. package/src/mcp-server/tools/general-guidance.d.ts +2 -2
  86. package/src/mcp-server/tools/general-guidance.js +2 -2
  87. package/src/mcp-server/tools/general-guidance.js.map +1 -1
  88. package/src/mcp-server/tools/generator-guide.d.ts +2 -2
  89. package/src/mcp-server/tools/generator-guide.js.map +1 -1
  90. package/src/mcp-server/tools/list-generators.d.ts +2 -2
  91. package/src/mcp-server/tools/list-generators.js +1 -1
  92. package/src/mcp-server/tools/list-generators.js.map +1 -1
  93. package/src/open-api/ts-client/__snapshots__/generator.reserved-keywords.spec.ts.snap +1 -1
  94. package/src/open-api/ts-client/generator.d.ts +3 -3
  95. package/src/open-api/ts-client/generator.js +2 -2
  96. package/src/open-api/ts-client/generator.js.map +1 -1
  97. package/src/open-api/ts-hooks/generator.d.ts +3 -3
  98. package/src/open-api/ts-hooks/generator.js +2 -2
  99. package/src/open-api/ts-hooks/generator.js.map +1 -1
  100. package/src/open-api/ts-hooks/generator.spec.tsx +14 -14
  101. package/src/open-api/ts-metadata/generator.d.ts +3 -3
  102. package/src/open-api/ts-metadata/generator.js +1 -1
  103. package/src/open-api/ts-metadata/generator.js.map +1 -1
  104. package/src/open-api/utils/codegen-data/languages.d.ts +5 -1
  105. package/src/open-api/utils/codegen-data/languages.js +4 -4
  106. package/src/open-api/utils/codegen-data/languages.js.map +1 -1
  107. package/src/open-api/utils/codegen-data.d.ts +6 -2
  108. package/src/open-api/utils/codegen-data.js +6 -6
  109. package/src/open-api/utils/codegen-data.js.map +1 -1
  110. package/src/open-api/utils/normalise.d.ts +5 -1
  111. package/src/open-api/utils/normalise.js +5 -5
  112. package/src/open-api/utils/normalise.js.map +1 -1
  113. package/src/open-api/utils/parse.d.ts +2 -2
  114. package/src/open-api/utils/parse.js +4 -0
  115. package/src/open-api/utils/parse.js.map +1 -1
  116. package/src/open-api/utils/refs.d.ts +1 -1
  117. package/src/preset/__snapshots__/generator.spec.ts.snap +127 -13
  118. package/src/preset/generator.d.ts +4 -4
  119. package/src/preset/generator.js +21 -14
  120. package/src/preset/generator.js.map +1 -1
  121. package/src/preset/schema.d.ts +3 -1
  122. package/src/preset/schema.json +5 -0
  123. package/src/py/agent/__snapshots__/generator.spec.ts.snap +9 -8
  124. package/src/py/agent/a2a-connection/generator.d.ts +3 -3
  125. package/src/py/agent/a2a-connection/generator.js +4 -4
  126. package/src/py/agent/a2a-connection/generator.js.map +1 -1
  127. package/src/py/agent/files/common/agent.py.template +2 -0
  128. package/src/py/agent/files/http/init.py.template +2 -2
  129. package/src/py/agent/files/http/main.py.template +0 -1
  130. package/src/py/agent/generator.d.ts +3 -3
  131. package/src/py/agent/generator.js +22 -16
  132. package/src/py/agent/generator.js.map +1 -1
  133. package/src/py/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +4 -0
  134. package/src/py/agent/mcp-connection/generator.d.ts +3 -3
  135. package/src/py/agent/mcp-connection/generator.js +4 -4
  136. package/src/py/agent/mcp-connection/generator.js.map +1 -1
  137. package/src/py/agent/react-connection/__snapshots__/generator.spec.ts.snap +7 -16
  138. package/src/py/agent/react-connection/generator.d.ts +3 -3
  139. package/src/py/agent/react-connection/generator.js +4 -4
  140. package/src/py/agent/react-connection/generator.js.map +1 -1
  141. package/src/py/agent/react-connection/serve-local.d.ts +2 -2
  142. package/src/py/agent/react-connection/serve-local.js.map +1 -1
  143. package/src/py/api/generator.d.ts +3 -3
  144. package/src/py/api/generator.js.map +1 -1
  145. package/src/py/api/schema.d.ts +1 -1
  146. package/src/py/api/schema.json +2 -2
  147. package/src/py/fast-api/generator.d.ts +3 -3
  148. package/src/py/fast-api/generator.js +71 -53
  149. package/src/py/fast-api/generator.js.map +1 -1
  150. package/src/py/fast-api/react/generator.d.ts +3 -3
  151. package/src/py/fast-api/react/generator.js +2 -2
  152. package/src/py/fast-api/react/generator.js.map +1 -1
  153. package/src/py/fast-api/react/open-api.d.ts +1 -1
  154. package/src/py/fast-api/react/open-api.js +5 -2
  155. package/src/py/fast-api/react/open-api.js.map +1 -1
  156. package/src/py/fast-api/schema.d.ts +1 -1
  157. package/src/py/fast-api/schema.json +2 -2
  158. package/src/py/lambda-function/generator.d.ts +3 -3
  159. package/src/py/lambda-function/generator.js +30 -27
  160. package/src/py/lambda-function/generator.js.map +1 -1
  161. package/src/py/lambda-function/schema.d.ts +3 -0
  162. package/src/py/lambda-function/schema.json +8 -0
  163. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
  164. package/src/py/mcp-server/generator.d.ts +3 -3
  165. package/src/py/mcp-server/generator.js +33 -26
  166. package/src/py/mcp-server/generator.js.map +1 -1
  167. package/src/py/project/generator.d.ts +3 -3
  168. package/src/py/project/generator.js +88 -69
  169. package/src/py/project/generator.js.map +1 -1
  170. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +18 -16
  171. package/src/smithy/project/files/build.Dockerfile.template +1 -0
  172. package/src/smithy/project/generator.d.ts +3 -3
  173. package/src/smithy/project/generator.js +30 -28
  174. package/src/smithy/project/generator.js.map +1 -1
  175. package/src/smithy/react-connection/generator.d.ts +3 -3
  176. package/src/smithy/react-connection/generator.js +3 -3
  177. package/src/smithy/react-connection/generator.js.map +1 -1
  178. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -34
  179. package/src/smithy/ts/api/generator.d.ts +3 -3
  180. package/src/smithy/ts/api/generator.js +89 -66
  181. package/src/smithy/ts/api/generator.js.map +1 -1
  182. package/src/smithy/ts/api/schema.d.ts +1 -1
  183. package/src/smithy/ts/api/schema.json +1 -1
  184. package/src/terraform/project/generator.d.ts +3 -3
  185. package/src/terraform/project/generator.js +13 -8
  186. package/src/terraform/project/generator.js.map +1 -1
  187. package/src/trpc/backend/generator.d.ts +3 -3
  188. package/src/trpc/backend/generator.js +67 -48
  189. package/src/trpc/backend/generator.js.map +1 -1
  190. package/src/trpc/backend/schema.d.ts +3 -3
  191. package/src/trpc/backend/schema.json +2 -2
  192. package/src/trpc/react/generator.d.ts +3 -3
  193. package/src/trpc/react/generator.js +5 -5
  194. package/src/trpc/react/generator.js.map +1 -1
  195. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +10 -4
  196. package/src/ts/agent/a2a-connection/generator.d.ts +3 -3
  197. package/src/ts/agent/a2a-connection/generator.js +5 -5
  198. package/src/ts/agent/a2a-connection/generator.js.map +1 -1
  199. package/src/ts/agent/files/common/agent.ts.template +6 -2
  200. package/src/ts/agent/generator.d.ts +3 -3
  201. package/src/ts/agent/generator.js +18 -13
  202. package/src/ts/agent/generator.js.map +1 -1
  203. package/src/ts/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +5 -2
  204. package/src/ts/agent/mcp-connection/generator.d.ts +3 -3
  205. package/src/ts/agent/mcp-connection/generator.js +5 -5
  206. package/src/ts/agent/mcp-connection/generator.js.map +1 -1
  207. package/src/ts/agent/react-connection/generator.d.ts +3 -3
  208. package/src/ts/agent/react-connection/generator.js +9 -9
  209. package/src/ts/agent/react-connection/generator.js.map +1 -1
  210. package/src/ts/agent/react-connection/serve-local.d.ts +2 -2
  211. package/src/ts/api/generator.d.ts +3 -3
  212. package/src/ts/api/generator.js +7 -5
  213. package/src/ts/api/generator.js.map +1 -1
  214. package/src/ts/api/schema.d.ts +3 -2
  215. package/src/ts/api/schema.json +1 -1
  216. package/src/ts/astro-docs/__snapshots__/generator.spec.ts.snap +7 -8
  217. package/src/ts/astro-docs/generator.d.ts +3 -3
  218. package/src/ts/astro-docs/generator.js +14 -11
  219. package/src/ts/astro-docs/generator.js.map +1 -1
  220. package/src/ts/docs/generator.d.ts +3 -3
  221. package/src/ts/docs/generator.js.map +1 -1
  222. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +1561 -0
  223. package/src/ts/dynamodb/agent-connection/__snapshots__/generator.spec.ts.snap +45 -0
  224. package/src/ts/dynamodb/agent-connection/generator.d.ts +10 -0
  225. package/src/ts/dynamodb/agent-connection/generator.js +32 -0
  226. package/src/ts/dynamodb/agent-connection/generator.js.map +1 -0
  227. package/src/ts/dynamodb/agent-connection/schema.d.ts +14 -0
  228. package/src/ts/dynamodb/agent-connection/schema.json +22 -0
  229. package/src/ts/dynamodb/files/dynamodb.config.json +14 -0
  230. package/src/ts/dynamodb/files/scripts/create-local-table.ts.template +168 -0
  231. package/src/ts/{rdb/files/scripts/docker-pull.ts.template → dynamodb/files/scripts/pull-image.ts.template} +1 -1
  232. package/src/ts/dynamodb/files/scripts/start-container.ts.template +81 -0
  233. package/src/ts/dynamodb/files/src/client.ts.template +45 -0
  234. package/src/ts/dynamodb/files/src/constants.ts.template +9 -0
  235. package/src/ts/dynamodb/files/src/entities/example.ts.template +47 -0
  236. package/src/ts/dynamodb/files/src/entities/index.ts.template +1 -0
  237. package/src/ts/dynamodb/files/src/index.ts.template +10 -0
  238. package/src/ts/dynamodb/generator.d.ts +10 -0
  239. package/src/ts/dynamodb/generator.js +108 -0
  240. package/src/ts/dynamodb/generator.js.map +1 -0
  241. package/src/ts/dynamodb/mcp-server-connection/__snapshots__/generator.spec.ts.snap +45 -0
  242. package/src/ts/dynamodb/mcp-server-connection/generator.d.ts +10 -0
  243. package/src/ts/dynamodb/mcp-server-connection/generator.js +32 -0
  244. package/src/ts/dynamodb/mcp-server-connection/generator.js.map +1 -0
  245. package/src/ts/dynamodb/mcp-server-connection/schema.d.ts +14 -0
  246. package/src/ts/dynamodb/mcp-server-connection/schema.json +22 -0
  247. package/src/ts/dynamodb/schema.d.ts +14 -0
  248. package/src/ts/dynamodb/schema.json +52 -0
  249. package/src/ts/dynamodb/smithy-connection/__snapshots__/generator.spec.ts.snap +23 -0
  250. package/src/ts/dynamodb/smithy-connection/generator.d.ts +10 -0
  251. package/src/ts/dynamodb/smithy-connection/generator.js +30 -0
  252. package/src/ts/dynamodb/smithy-connection/generator.js.map +1 -0
  253. package/src/ts/dynamodb/smithy-connection/schema.d.ts +12 -0
  254. package/src/ts/dynamodb/smithy-connection/schema.json +18 -0
  255. package/src/ts/dynamodb/trpc-connection/__snapshots__/generator.spec.ts.snap +23 -0
  256. package/src/ts/dynamodb/trpc-connection/generator.d.ts +10 -0
  257. package/src/ts/dynamodb/trpc-connection/generator.js +30 -0
  258. package/src/ts/dynamodb/trpc-connection/generator.js.map +1 -0
  259. package/src/ts/dynamodb/trpc-connection/schema.d.ts +12 -0
  260. package/src/ts/dynamodb/trpc-connection/schema.json +18 -0
  261. package/src/ts/lambda-function/generator.d.ts +3 -3
  262. package/src/ts/lambda-function/generator.js +34 -29
  263. package/src/ts/lambda-function/generator.js.map +1 -1
  264. package/src/ts/lambda-function/schema.d.ts +3 -0
  265. package/src/ts/lambda-function/schema.json +8 -0
  266. package/src/ts/lib/__snapshots__/generator.spec.ts.snap +32 -65
  267. package/src/ts/lib/__snapshots__/vitest.spec.ts.snap +24 -0
  268. package/src/ts/lib/biome.d.ts +7 -0
  269. package/src/ts/lib/biome.js +58 -0
  270. package/src/ts/lib/biome.js.map +1 -0
  271. package/src/ts/lib/generator.d.ts +3 -3
  272. package/src/ts/lib/generator.js +27 -29
  273. package/src/ts/lib/generator.js.map +1 -1
  274. package/src/ts/lib/grit/vitest-pass-with-no-tests.grit +1 -4
  275. package/src/ts/lib/ts-project-utils.d.ts +12 -2
  276. package/src/ts/lib/ts-project-utils.js +30 -10
  277. package/src/ts/lib/ts-project-utils.js.map +1 -1
  278. package/src/ts/lib/vitest.d.ts +2 -2
  279. package/src/ts/lib/vitest.js +1 -1
  280. package/src/ts/lib/vitest.js.map +1 -1
  281. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
  282. package/src/ts/mcp-server/generator.d.ts +3 -3
  283. package/src/ts/mcp-server/generator.js +34 -12
  284. package/src/ts/mcp-server/generator.js.map +1 -1
  285. package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +19 -14
  286. package/src/ts/nx-generator/generator.d.ts +2 -2
  287. package/src/ts/nx-generator/generator.js +23 -19
  288. package/src/ts/nx-generator/generator.js.map +1 -1
  289. package/src/ts/nx-plugin/generator.d.ts +3 -3
  290. package/src/ts/nx-plugin/generator.js +10 -9
  291. package/src/ts/nx-plugin/generator.js.map +1 -1
  292. package/src/ts/nx-plugin/utils.d.ts +1 -1
  293. package/src/ts/nx-plugin/utils.js +10 -4
  294. package/src/ts/nx-plugin/utils.js.map +1 -1
  295. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +118 -58
  296. package/src/ts/rdb/agent-connection/generator.d.ts +3 -3
  297. package/src/ts/rdb/agent-connection/generator.js +4 -4
  298. package/src/ts/rdb/agent-connection/generator.js.map +1 -1
  299. package/src/ts/rdb/files/scripts/pull-image.ts.template +15 -0
  300. package/src/ts/rdb/files/scripts/{docker-start.ts.template → start-container.ts.template} +23 -23
  301. package/src/ts/rdb/generator.d.ts +3 -3
  302. package/src/ts/rdb/generator.js +96 -75
  303. package/src/ts/rdb/generator.js.map +1 -1
  304. package/src/ts/rdb/mcp-server-connection/generator.d.ts +3 -3
  305. package/src/ts/rdb/mcp-server-connection/generator.js +4 -4
  306. package/src/ts/rdb/mcp-server-connection/generator.js.map +1 -1
  307. package/src/ts/rdb/schema.d.ts +1 -1
  308. package/src/ts/rdb/schema.json +1 -1
  309. package/src/ts/rdb/smithy-connection/generator.d.ts +3 -3
  310. package/src/ts/rdb/smithy-connection/generator.js +4 -4
  311. package/src/ts/rdb/smithy-connection/generator.js.map +1 -1
  312. package/src/ts/rdb/trpc-connection/generator.d.ts +3 -3
  313. package/src/ts/rdb/trpc-connection/generator.js +3 -3
  314. package/src/ts/rdb/trpc-connection/generator.js.map +1 -1
  315. package/src/ts/rdb/utils.d.ts +1 -1
  316. package/src/ts/react-website/agui/files/common/src/hooks/useAgui__agentNameClassName__.tsx.template +1 -16
  317. package/src/ts/react-website/agui/generator.d.ts +1 -1
  318. package/src/ts/react-website/agui/generator.js +4 -5
  319. package/src/ts/react-website/agui/generator.js.map +1 -1
  320. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +400 -363
  321. package/src/ts/react-website/app/generator.d.ts +3 -3
  322. package/src/ts/react-website/app/generator.js +101 -91
  323. package/src/ts/react-website/app/generator.js.map +1 -1
  324. package/src/ts/react-website/app/schema.d.ts +3 -0
  325. package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +1 -7
  326. package/src/ts/react-website/cognito-auth/__snapshots__/generator.ux-provider.spec.ts.snap +0 -20
  327. package/src/ts/react-website/cognito-auth/generator.d.ts +3 -3
  328. package/src/ts/react-website/cognito-auth/generator.js +10 -13
  329. package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
  330. package/src/ts/react-website/cognito-auth/grit/cloudscape-auth-menu.grit +8 -6
  331. package/src/ts/react-website/cognito-auth/grit/cognito-auth-wrapper.grit +1 -1
  332. package/src/ts/react-website/cognito-auth/grit/none-auth-menu.grit +1 -0
  333. package/src/ts/react-website/cognito-auth/grit/shadcn-auth-menu.grit +3 -1
  334. package/src/ts/react-website/cognito-auth/grit/shadcn-state-declarations.grit +3 -1
  335. package/src/ts/react-website/cognito-auth/utils.d.ts +1 -1
  336. package/src/ts/react-website/cognito-auth/utils.js +1 -1
  337. package/src/ts/react-website/cognito-auth/utils.js.map +1 -1
  338. package/src/ts/react-website/runtime-config/generator.d.ts +3 -3
  339. package/src/ts/react-website/runtime-config/generator.js +4 -4
  340. package/src/ts/react-website/runtime-config/generator.js.map +1 -1
  341. package/src/ts/sync/generator.d.ts +3 -3
  342. package/src/ts/sync/generator.js +2 -2
  343. package/src/ts/sync/generator.js.map +1 -1
  344. package/src/ts/website/app/generator.d.ts +3 -3
  345. package/src/ts/website/app/generator.js +1 -1
  346. package/src/ts/website/app/generator.js.map +1 -1
  347. package/src/ts/website/app/schema.d.ts +2 -0
  348. package/src/ts/website/app/schema.json +8 -0
  349. package/src/ts/website/auth/generator.d.ts +3 -3
  350. package/src/ts/website/auth/generator.js +1 -1
  351. package/src/ts/website/auth/generator.js.map +1 -1
  352. package/src/utils/agent-connection/agent-connection.d.ts +1 -1
  353. package/src/utils/agent-connection/agent-connection.js +16 -10
  354. package/src/utils/agent-connection/agent-connection.js.map +1 -1
  355. package/src/utils/agent-connection/files/core-runtime-config/model-errors.ts.template +36 -0
  356. package/src/utils/agent-connection/files/py-core-runtime-config/model_errors.py.template +40 -0
  357. package/src/utils/agent-core-constructs/agent-core-constructs.d.ts +3 -3
  358. package/src/utils/agent-core-constructs/agent-core-constructs.js +3 -11
  359. package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
  360. package/src/utils/api-constructs/api-constructs.d.ts +2 -2
  361. package/src/utils/api-constructs/api-constructs.js +1 -1
  362. package/src/utils/api-constructs/api-constructs.js.map +1 -1
  363. package/src/utils/api-constructs/open-api-metadata.d.ts +2 -2
  364. package/src/utils/api-constructs/open-api-metadata.js.map +1 -1
  365. package/src/utils/ast/website.d.ts +5 -1
  366. package/src/utils/ast/website.js +3 -3
  367. package/src/utils/ast/website.js.map +1 -1
  368. package/src/utils/ast.d.ts +33 -1
  369. package/src/utils/ast.js +89 -4
  370. package/src/utils/ast.js.map +1 -1
  371. package/src/utils/bundle/bundle.d.ts +1 -1
  372. package/src/utils/bundle/bundle.js +2 -2
  373. package/src/utils/bundle/bundle.js.map +1 -1
  374. package/src/utils/config/index.d.ts +5 -5
  375. package/src/utils/config/utils.d.ts +13 -3
  376. package/src/utils/config/utils.js +37 -5
  377. package/src/utils/config/utils.js.map +1 -1
  378. package/src/utils/connection/open-api/react.d.ts +1 -1
  379. package/src/utils/connection/open-api/react.js +4 -4
  380. package/src/utils/connection/open-api/react.js.map +1 -1
  381. package/src/utils/containers.d.ts +1 -1
  382. package/src/utils/dynamodb-constructs/dynamodb-constructs.d.ts +19 -0
  383. package/src/utils/dynamodb-constructs/dynamodb-constructs.js +49 -0
  384. package/src/utils/dynamodb-constructs/dynamodb-constructs.js.map +1 -0
  385. package/src/utils/dynamodb-constructs/files/cdk/app/dynamodb/__nameKebabCase__.ts.template +44 -0
  386. package/src/utils/dynamodb-constructs/files/cdk/core/dynamodb.ts.template +105 -0
  387. package/src/utils/dynamodb-constructs/files/terraform/app/dynamodb/__nameKebabCase__/__nameKebabCase__.tf.template +62 -0
  388. package/src/utils/dynamodb-constructs/files/terraform/core/dynamodb/dynamodb.tf.template +155 -0
  389. package/src/utils/format.d.ts +45 -2
  390. package/src/utils/format.js +167 -46
  391. package/src/utils/format.js.map +1 -1
  392. package/src/utils/fs.d.ts +1 -1
  393. package/src/utils/fs.js.map +1 -1
  394. package/src/utils/function-constructs/function-constructs.d.ts +2 -2
  395. package/src/utils/function-constructs/function-constructs.js +1 -1
  396. package/src/utils/function-constructs/function-constructs.js.map +1 -1
  397. package/src/utils/generators.d.ts +4 -0
  398. package/src/utils/generators.js +4 -4
  399. package/src/utils/generators.js.map +1 -1
  400. package/src/utils/git.d.ts +1 -1
  401. package/src/utils/git.js.map +1 -1
  402. package/src/utils/iac.d.ts +1 -1
  403. package/src/utils/iac.js.map +1 -1
  404. package/src/utils/identity-constructs/files/cdk/core/user-identity.ts.template +1 -5
  405. package/src/utils/identity-constructs/files/terraform/core/user-identity/identity/identity.tf.template +2 -4
  406. package/src/utils/identity-constructs/identity-constructs.d.ts +2 -2
  407. package/src/utils/identity-constructs/identity-constructs.js +1 -1
  408. package/src/utils/identity-constructs/identity-constructs.js.map +1 -1
  409. package/src/utils/js.d.ts +4 -0
  410. package/src/utils/js.js +4 -4
  411. package/src/utils/js.js.map +1 -1
  412. package/src/utils/mcp.d.ts +25 -0
  413. package/src/utils/mcp.js +81 -0
  414. package/src/utils/mcp.js.map +1 -0
  415. package/src/utils/metrics.d.ts +9 -3
  416. package/src/utils/metrics.js +58 -28
  417. package/src/utils/metrics.js.map +1 -1
  418. package/src/utils/npm-scope.d.ts +1 -1
  419. package/src/utils/npm-scope.js.map +1 -1
  420. package/src/utils/nx.d.ts +7 -2
  421. package/src/utils/nx.js +46 -14
  422. package/src/utils/nx.js.map +1 -1
  423. package/src/utils/nxlv-python.d.ts +1 -1
  424. package/src/utils/paths.d.ts +1 -1
  425. package/src/utils/pnpm-workspace.d.ts +1 -1
  426. package/src/utils/pnpm-workspace.js.map +1 -1
  427. package/src/utils/port.d.ts +30 -3
  428. package/src/utils/port.js +72 -4
  429. package/src/utils/port.js.map +1 -1
  430. package/src/utils/py.d.ts +2 -2
  431. package/src/utils/py.js +13 -6
  432. package/src/utils/py.js.map +1 -1
  433. package/src/utils/rdb-constructs/files/cdk/core/rdb/aurora.ts.template +30 -1
  434. package/src/utils/rdb-constructs/files/terraform/app/dbs/__nameKebabCase__/__nameKebabCase__.tf.template +4 -4
  435. package/src/utils/rdb-constructs/files/terraform/core/rdb/aurora/aurora.tf.template +18 -9
  436. package/src/utils/rdb-constructs/rdb-constructs.d.ts +4 -4
  437. package/src/utils/rdb-constructs/rdb-constructs.js +3 -11
  438. package/src/utils/rdb-constructs/rdb-constructs.js.map +1 -1
  439. package/src/utils/shared-constructs.d.ts +2 -2
  440. package/src/utils/shared-constructs.js +7 -7
  441. package/src/utils/shared-constructs.js.map +1 -1
  442. package/src/utils/shared-infra-config.d.ts +1 -1
  443. package/src/utils/shared-infra-config.js +1 -1
  444. package/src/utils/shared-infra-config.js.map +1 -1
  445. package/src/utils/shared-scripts.d.ts +1 -1
  446. package/src/utils/shared-scripts.js +2 -2
  447. package/src/utils/shared-scripts.js.map +1 -1
  448. package/src/utils/shared-shadcn.d.ts +1 -1
  449. package/src/utils/shared-shadcn.js +1 -13
  450. package/src/utils/shared-shadcn.js.map +1 -1
  451. package/src/utils/test.d.ts +5 -1
  452. package/src/utils/test.js +9 -5
  453. package/src/utils/test.js.map +1 -1
  454. package/src/utils/toml.d.ts +1 -1
  455. package/src/utils/toml.js +4 -0
  456. package/src/utils/toml.js.map +1 -1
  457. package/src/utils/versions.d.ts +71 -75
  458. package/src/utils/versions.js +70 -74
  459. package/src/utils/versions.js.map +1 -1
  460. package/src/utils/website-constructs/files/cdk/core/static-website.ts.template +52 -5
  461. package/src/utils/website-constructs/files/terraform/core/static-website/static-website.tf.template +38 -11
  462. package/src/utils/website-constructs/website-constructs.d.ts +2 -2
  463. package/src/utils/website-constructs/website-constructs.js +1 -1
  464. package/src/utils/website-constructs/website-constructs.js.map +1 -1
  465. package/src/ts/lib/eslint.d.ts +0 -14
  466. package/src/ts/lib/eslint.js +0 -90
  467. package/src/ts/lib/eslint.js.map +0 -1
  468. package/src/ts/lib/grit/eslint-dependency-checks-warn.grit +0 -1
@@ -0,0 +1,45 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`ts#dynamodb mcp-server-connection generator > should add dynamodb serve-local dependency to mcp-server serve-local 1`] = `
4
+ {
5
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
6
+ "name": "my-mcp",
7
+ "root": "packages/my-mcp",
8
+ "targets": {
9
+ "mcp-server-serve-local": {
10
+ "continuous": true,
11
+ "dependsOn": [
12
+ {
13
+ "projects": [
14
+ "db",
15
+ ],
16
+ "target": "serve-local",
17
+ },
18
+ ],
19
+ "executor": "nx:run-commands",
20
+ },
21
+ },
22
+ }
23
+ `;
24
+
25
+ exports[`ts#dynamodb mcp-server-connection generator > should use sourceComponent name when provided 1`] = `
26
+ {
27
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
28
+ "name": "my-mcp",
29
+ "root": "packages/my-mcp",
30
+ "targets": {
31
+ "custom-server-serve-local": {
32
+ "continuous": true,
33
+ "dependsOn": [
34
+ {
35
+ "projects": [
36
+ "db",
37
+ ],
38
+ "target": "serve-local",
39
+ },
40
+ ],
41
+ "executor": "nx:run-commands",
42
+ },
43
+ },
44
+ }
45
+ `;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../../utils/nx';
7
+ import type { TsDynamoDBMcpServerConnectionGeneratorSchema } from './schema';
8
+ export declare const TS_DYNAMODB_MCP_SERVER_CONNECTION_GENERATOR_INFO: NxGeneratorInfo;
9
+ export declare const tsDynamoDBMcpServerConnectionGenerator: (tree: Tree, options: TsDynamoDBMcpServerConnectionGeneratorSchema) => Promise<void>;
10
+ export default tsDynamoDBMcpServerConnectionGenerator;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tsDynamoDBMcpServerConnectionGenerator = exports.TS_DYNAMODB_MCP_SERVER_CONNECTION_GENERATOR_INFO = void 0;
4
+ /**
5
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ */
8
+ const devkit_1 = require("@nx/devkit");
9
+ const format_1 = require("../../../utils/format");
10
+ const metrics_1 = require("../../../utils/metrics");
11
+ const nx_1 = require("../../../utils/nx");
12
+ exports.TS_DYNAMODB_MCP_SERVER_CONNECTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
13
+ const tsDynamoDBMcpServerConnectionGenerator = async (tree, options) => {
14
+ const sourceProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.sourceProject);
15
+ const targetProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.targetProject);
16
+ const mcpServerName = options.sourceComponent?.name ?? 'mcp-server';
17
+ const serveLocalTarget = `${mcpServerName}-serve-local`;
18
+ if (sourceProject.targets?.[serveLocalTarget]) {
19
+ (0, nx_1.addDependencyToTargetIfNotPresent)(sourceProject, serveLocalTarget, {
20
+ projects: [targetProject.name],
21
+ target: 'serve-local',
22
+ });
23
+ (0, devkit_1.updateProjectConfiguration)(tree, sourceProject.name, sourceProject);
24
+ }
25
+ await (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [
26
+ exports.TS_DYNAMODB_MCP_SERVER_CONNECTION_GENERATOR_INFO,
27
+ ]);
28
+ await (0, format_1.formatFilesInSubtree)(tree);
29
+ };
30
+ exports.tsDynamoDBMcpServerConnectionGenerator = tsDynamoDBMcpServerConnectionGenerator;
31
+ exports.default = exports.tsDynamoDBMcpServerConnectionGenerator;
32
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/dynamodb/mcp-server-connection/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAmE;AACnE,kDAA6D;AAC7D,oDAAyE;AACzE,0CAK2B;AAGd,QAAA,gDAAgD,GAC3D,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,sCAAsC,GAAG,KAAK,EACzD,IAAU,EACV,OAAqD,EACtC,EAAE;IACjB,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IAEF,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,EAAE,IAAI,IAAI,YAAY,CAAC;IACpE,MAAM,gBAAgB,GAAG,GAAG,aAAa,cAAc,CAAC;IAExD,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC9C,IAAA,sCAAiC,EAAC,aAAa,EAAE,gBAAgB,EAAE;YACjE,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,aAAa;SACtB,CAAC,CAAC;QACH,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;QAC1C,wDAAgD;KACjD,CAAC,CAAC;IACH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC;AA5BW,QAAA,sCAAsC,0CA4BjD;AAEF,kBAAe,8CAAsC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { ComponentMetadata } from '../../../utils/nx';
6
+
7
+ /**
8
+ * TypeScript types for options defined in schema.json
9
+ */
10
+ export interface TsDynamoDBMcpServerConnectionGeneratorSchema {
11
+ sourceProject: string;
12
+ targetProject: string;
13
+ sourceComponent?: ComponentMetadata;
14
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "ts#dynamodb#mcp-server-connection",
4
+ "title": "ts#dynamodb#mcp-server-connection",
5
+ "description": "Connect a ts#mcp-server to a ts#dynamodb project",
6
+ "type": "object",
7
+ "properties": {
8
+ "sourceProject": {
9
+ "type": "string",
10
+ "description": "The project containing the ts#mcp-server to connect from"
11
+ },
12
+ "targetProject": {
13
+ "type": "string",
14
+ "description": "The ts#dynamodb project to connect to"
15
+ },
16
+ "sourceComponent": {
17
+ "type": "string",
18
+ "description": "The MCP server component name"
19
+ }
20
+ },
21
+ "required": ["sourceProject", "targetProject"]
22
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { IacOption } from '../../utils/iac';
6
+
7
+ export interface TsDynamoDBGeneratorSchema {
8
+ name: string;
9
+ directory?: string;
10
+ subDirectory?: string;
11
+ tableName?: string;
12
+ infra: 'dynamodb' | 'none';
13
+ iac: IacOption;
14
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "ts#dynamodb",
4
+ "title": "ts#dynamodb",
5
+ "description": "Create a DynamoDB project",
6
+ "type": "object",
7
+ "properties": {
8
+ "name": {
9
+ "type": "string",
10
+ "description": "Name of the DynamoDB project to generate",
11
+ "$default": {
12
+ "$source": "argv",
13
+ "index": 0
14
+ },
15
+ "x-priority": "important",
16
+ "x-prompt": "What name would you like your DynamoDB project to have? i.e: MyTable"
17
+ },
18
+ "directory": {
19
+ "type": "string",
20
+ "description": "The directory to store the project in.",
21
+ "default": "packages",
22
+ "x-priority": "important",
23
+ "x-prompt": "Which directory do you want to create the project in?"
24
+ },
25
+ "subDirectory": {
26
+ "type": "string",
27
+ "description": "The sub directory the project is placed in. By default this is the project name.",
28
+ "x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
29
+ },
30
+ "tableName": {
31
+ "type": "string",
32
+ "description": "The DynamoDB table name. Defaults to the project name."
33
+ },
34
+ "infra": {
35
+ "type": "string",
36
+ "enum": ["dynamodb", "none"],
37
+ "default": "dynamodb",
38
+ "description": "Infrastructure to provision for the DynamoDB table.",
39
+ "x-priority": "important",
40
+ "x-prompt": "Which infrastructure would you like to provision?"
41
+ },
42
+ "iac": {
43
+ "type": "string",
44
+ "description": "The preferred IaC provider. By default this is inherited from your initial selection.",
45
+ "enum": ["inherit", "cdk", "terraform"],
46
+ "x-priority": "important",
47
+ "default": "inherit",
48
+ "x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
49
+ }
50
+ },
51
+ "required": ["name"]
52
+ }
@@ -0,0 +1,23 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`ts#dynamodb smithy-connection generator > should add dynamodb serve-local dependency to smithy serve-local 1`] = `
4
+ {
5
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
6
+ "name": "api",
7
+ "root": "packages/api",
8
+ "targets": {
9
+ "serve-local": {
10
+ "continuous": true,
11
+ "dependsOn": [
12
+ {
13
+ "projects": [
14
+ "db",
15
+ ],
16
+ "target": "serve-local",
17
+ },
18
+ ],
19
+ "executor": "nx:run-commands",
20
+ },
21
+ },
22
+ }
23
+ `;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../../utils/nx';
7
+ import type { TsDynamoDBSmithyConnectionGeneratorSchema } from './schema';
8
+ export declare const TS_DYNAMODB_SMITHY_CONNECTION_GENERATOR_INFO: NxGeneratorInfo;
9
+ export declare const tsDynamoDBSmithyConnectionGenerator: (tree: Tree, options: TsDynamoDBSmithyConnectionGeneratorSchema) => Promise<void>;
10
+ export default tsDynamoDBSmithyConnectionGenerator;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tsDynamoDBSmithyConnectionGenerator = exports.TS_DYNAMODB_SMITHY_CONNECTION_GENERATOR_INFO = void 0;
4
+ /**
5
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ */
8
+ const devkit_1 = require("@nx/devkit");
9
+ const format_1 = require("../../../utils/format");
10
+ const metrics_1 = require("../../../utils/metrics");
11
+ const nx_1 = require("../../../utils/nx");
12
+ exports.TS_DYNAMODB_SMITHY_CONNECTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
13
+ const tsDynamoDBSmithyConnectionGenerator = async (tree, options) => {
14
+ const sourceProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.sourceProject);
15
+ const targetProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.targetProject);
16
+ if (sourceProject.targets?.['serve-local']) {
17
+ (0, nx_1.addDependencyToTargetIfNotPresent)(sourceProject, 'serve-local', {
18
+ projects: [targetProject.name],
19
+ target: 'serve-local',
20
+ });
21
+ (0, devkit_1.updateProjectConfiguration)(tree, sourceProject.name, sourceProject);
22
+ }
23
+ await (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [
24
+ exports.TS_DYNAMODB_SMITHY_CONNECTION_GENERATOR_INFO,
25
+ ]);
26
+ await (0, format_1.formatFilesInSubtree)(tree);
27
+ };
28
+ exports.tsDynamoDBSmithyConnectionGenerator = tsDynamoDBSmithyConnectionGenerator;
29
+ exports.default = exports.tsDynamoDBSmithyConnectionGenerator;
30
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/dynamodb/smithy-connection/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAmE;AACnE,kDAA6D;AAC7D,oDAAyE;AACzE,0CAK2B;AAGd,QAAA,4CAA4C,GACvD,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,mCAAmC,GAAG,KAAK,EACtD,IAAU,EACV,OAAkD,EACnC,EAAE;IACjB,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IAEF,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAC3C,IAAA,sCAAiC,EAAC,aAAa,EAAE,aAAa,EAAE;YAC9D,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,aAAa;SACtB,CAAC,CAAC;QACH,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;QAC1C,oDAA4C;KAC7C,CAAC,CAAC;IACH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC;AAzBW,QAAA,mCAAmC,uCAyB9C;AAEF,kBAAe,2CAAmC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * TypeScript types for options defined in schema.json
8
+ */
9
+ export interface TsDynamoDBSmithyConnectionGeneratorSchema {
10
+ sourceProject: string;
11
+ targetProject: string;
12
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "ts#dynamodb#smithy-connection",
4
+ "title": "ts#dynamodb#smithy-connection",
5
+ "description": "Connect a Smithy backend to a ts#dynamodb project",
6
+ "type": "object",
7
+ "properties": {
8
+ "sourceProject": {
9
+ "type": "string",
10
+ "description": "The Smithy backend project to connect from"
11
+ },
12
+ "targetProject": {
13
+ "type": "string",
14
+ "description": "The ts#dynamodb project to connect to"
15
+ }
16
+ },
17
+ "required": ["sourceProject", "targetProject"]
18
+ }
@@ -0,0 +1,23 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`ts#dynamodb trpc-connection generator > should add dynamodb serve-local dependency to trpc serve-local 1`] = `
4
+ {
5
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
6
+ "name": "api",
7
+ "root": "packages/api",
8
+ "targets": {
9
+ "serve-local": {
10
+ "continuous": true,
11
+ "dependsOn": [
12
+ {
13
+ "projects": [
14
+ "db",
15
+ ],
16
+ "target": "serve-local",
17
+ },
18
+ ],
19
+ "executor": "nx:run-commands",
20
+ },
21
+ },
22
+ }
23
+ `;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../../utils/nx';
7
+ import type { TsDynamoDBTrpcConnectionGeneratorSchema } from './schema';
8
+ export declare const TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO: NxGeneratorInfo;
9
+ export declare const tsDynamoDBTrpcConnectionGenerator: (tree: Tree, options: TsDynamoDBTrpcConnectionGeneratorSchema) => Promise<void>;
10
+ export default tsDynamoDBTrpcConnectionGenerator;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tsDynamoDBTrpcConnectionGenerator = exports.TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO = void 0;
4
+ /**
5
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ */
8
+ const devkit_1 = require("@nx/devkit");
9
+ const format_1 = require("../../../utils/format");
10
+ const metrics_1 = require("../../../utils/metrics");
11
+ const nx_1 = require("../../../utils/nx");
12
+ exports.TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
13
+ const tsDynamoDBTrpcConnectionGenerator = async (tree, options) => {
14
+ const sourceProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.sourceProject);
15
+ const targetProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.targetProject);
16
+ if (sourceProject.targets?.['serve-local']) {
17
+ (0, nx_1.addDependencyToTargetIfNotPresent)(sourceProject, 'serve-local', {
18
+ projects: [targetProject.name],
19
+ target: 'serve-local',
20
+ });
21
+ (0, devkit_1.updateProjectConfiguration)(tree, sourceProject.name, sourceProject);
22
+ }
23
+ await (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [
24
+ exports.TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO,
25
+ ]);
26
+ await (0, format_1.formatFilesInSubtree)(tree);
27
+ };
28
+ exports.tsDynamoDBTrpcConnectionGenerator = tsDynamoDBTrpcConnectionGenerator;
29
+ exports.default = exports.tsDynamoDBTrpcConnectionGenerator;
30
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/dynamodb/trpc-connection/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAmE;AACnE,kDAA6D;AAC7D,oDAAyE;AACzE,0CAK2B;AAGd,QAAA,0CAA0C,GACrD,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,iCAAiC,GAAG,KAAK,EACpD,IAAU,EACV,OAAgD,EACjC,EAAE;IACjB,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,OAAO,CAAC,aAAa,CACtB,CAAC;IAEF,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAC3C,IAAA,sCAAiC,EAAC,aAAa,EAAE,aAAa,EAAE;YAC9D,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,aAAa;SACtB,CAAC,CAAC;QACH,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;QAC1C,kDAA0C;KAC3C,CAAC,CAAC;IACH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC;AAzBW,QAAA,iCAAiC,qCAyB5C;AAEF,kBAAe,yCAAiC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * TypeScript types for options defined in schema.json
8
+ */
9
+ export interface TsDynamoDBTrpcConnectionGeneratorSchema {
10
+ sourceProject: string;
11
+ targetProject: string;
12
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "ts#dynamodb#trpc-connection",
4
+ "title": "ts#dynamodb#trpc-connection",
5
+ "description": "Connect a ts#trpc-api project to a ts#dynamodb project",
6
+ "type": "object",
7
+ "properties": {
8
+ "sourceProject": {
9
+ "type": "string",
10
+ "description": "The ts#trpc-api project to connect from"
11
+ },
12
+ "targetProject": {
13
+ "type": "string",
14
+ "description": "The ts#dynamodb project to connect to"
15
+ }
16
+ },
17
+ "required": ["sourceProject", "targetProject"]
18
+ }
@@ -2,9 +2,9 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { GeneratorCallback, Tree } from '@nx/devkit';
6
- import { TsLambdaFunctionGeneratorSchema } from './schema';
7
- import { NxGeneratorInfo } from '../../utils/nx';
5
+ import { type GeneratorCallback, type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../utils/nx';
7
+ import type { TsLambdaFunctionGeneratorSchema } from './schema';
8
8
  export declare const TS_LAMBDA_FUNCTION_GENERATOR_INFO: NxGeneratorInfo;
9
9
  /**
10
10
  * Generates a TypeScript Lambda Function to add to a TypeScript project
@@ -7,18 +7,18 @@ const tslib_1 = require("tslib");
7
7
  * SPDX-License-Identifier: Apache-2.0
8
8
  */
9
9
  const devkit_1 = require("@nx/devkit");
10
- const shared_constructs_1 = require("../../utils/shared-constructs");
11
- const names_1 = require("../../utils/names");
10
+ const lodash_camelcase_1 = tslib_1.__importDefault(require("lodash.camelcase"));
11
+ const bundle_1 = require("../../utils/bundle/bundle");
12
12
  const format_1 = require("../../utils/format");
13
- const object_1 = require("../../utils/object");
14
- const nx_1 = require("../../utils/nx");
13
+ const function_constructs_1 = require("../../utils/function-constructs/function-constructs");
14
+ const iac_1 = require("../../utils/iac");
15
15
  const metrics_1 = require("../../utils/metrics");
16
+ const names_1 = require("../../utils/names");
17
+ const nx_1 = require("../../utils/nx");
18
+ const object_1 = require("../../utils/object");
19
+ const shared_constructs_1 = require("../../utils/shared-constructs");
16
20
  const versions_1 = require("../../utils/versions");
17
- const lodash_camelcase_1 = tslib_1.__importDefault(require("lodash.camelcase"));
18
21
  const io_1 = require("./io");
19
- const function_constructs_1 = require("../../utils/function-constructs/function-constructs");
20
- const iac_1 = require("../../utils/iac");
21
- const bundle_1 = require("../../utils/bundle/bundle");
22
22
  exports.TS_LAMBDA_FUNCTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
23
23
  /**
24
24
  * Generates a TypeScript Lambda Function to add to a TypeScript project
@@ -44,24 +44,27 @@ const tsLambdaFunctionGenerator = async (tree, schema) => {
44
44
  const lambdaFunctionKebabCase = (0, names_1.toKebabCase)(schema.name);
45
45
  const functionPathFromProjectRoot = (0, devkit_1.joinPathFragments)('src', schema.functionPath ?? '', `${lambdaFunctionKebabCase}.ts`);
46
46
  const functionPath = (0, devkit_1.joinPathFragments)(projectConfig.root, functionPathFromProjectRoot);
47
- // Check that the project does not already have a lambda handler
48
- if (tree.exists(functionPath)) {
47
+ const infra = schema.infra ?? 'lambda';
48
+ const handlerAlreadyExists = tree.exists(functionPath);
49
+ if (handlerAlreadyExists && infra === 'none') {
49
50
  throw new Error(`This project already has a lambda function with the name ${nameKebabCase}. Please remove the lambda function before running this generator or use a different name.`);
50
51
  }
51
- const iac = await (0, iac_1.resolveIac)(tree, schema.iac);
52
- await (0, shared_constructs_1.sharedConstructsGenerator)(tree, {
53
- iac,
54
- });
55
52
  const bundleOutputDir = (0, devkit_1.joinPathFragments)('lambda', lambdaFunctionKebabCase);
56
- await (0, function_constructs_1.addLambdaFunctionInfra)(tree, {
57
- functionProjectName: projectConfig.name,
58
- nameClassName: constructFunctionClassName,
59
- nameKebabCase: constructFunctionNameKebabCase,
60
- handler: 'index.handler',
61
- runtime: 'node',
62
- bundlePathFromRoot: (0, devkit_1.joinPathFragments)('dist', dir, 'bundle', bundleOutputDir),
63
- iac,
64
- });
53
+ if (infra !== 'none') {
54
+ const iac = await (0, iac_1.resolveIac)(tree, schema.iac);
55
+ await (0, shared_constructs_1.sharedConstructsGenerator)(tree, {
56
+ iac,
57
+ });
58
+ await (0, function_constructs_1.addLambdaFunctionInfra)(tree, {
59
+ functionProjectName: projectConfig.name,
60
+ nameClassName: constructFunctionClassName,
61
+ nameKebabCase: constructFunctionNameKebabCase,
62
+ handler: 'index.handler',
63
+ runtime: 'node',
64
+ bundlePathFromRoot: (0, devkit_1.joinPathFragments)('dist', dir, 'bundle', bundleOutputDir),
65
+ iac,
66
+ });
67
+ }
65
68
  const enhancedOptions = {
66
69
  ...schema,
67
70
  lambdaFunctionCamelCase,
@@ -69,12 +72,14 @@ const tsLambdaFunctionGenerator = async (tree, schema) => {
69
72
  lambdaFunctionKebabCase,
70
73
  returnType: io_1.TS_HANDLER_RETURN_TYPES[schema.event],
71
74
  };
72
- // Add a bundle target for the function
73
- await (0, bundle_1.addTypeScriptBundleTarget)(tree, projectConfig, {
74
- targetFilePath: functionPathFromProjectRoot,
75
- bundleOutputDir,
76
- external: [/@aws-sdk\/.*/], // lambda runtime provides aws sdk
77
- });
75
+ if (infra !== 'none') {
76
+ // Add a bundle target for the function
77
+ await (0, bundle_1.addTypeScriptBundleTarget)(tree, projectConfig, {
78
+ targetFilePath: functionPathFromProjectRoot,
79
+ bundleOutputDir,
80
+ external: [/@aws-sdk\/.*/], // lambda runtime provides aws sdk
81
+ });
82
+ }
78
83
  projectConfig.targets = (0, object_1.sortObjectKeys)(projectConfig.targets);
79
84
  (0, devkit_1.updateProjectConfiguration)(tree, projectConfig.name, projectConfig);
80
85
  // Generate the lambda handler file
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lambda-function/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCASoB;AAEpB,qEAA0E;A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AAA,yBAAyB,6BAwIpC;AAEF,kBAAe,iCAAyB,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lambda-function/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCASoB;AACpB,gFAAyC;AACzC,sDAAsE;AACtE,+CAA0D;AAC1D,6FAA6F;AAC7F,yCAA6C;AAC7C,iDAAsE;AACtE,6CAAyE;AACzE,uCAKwB;AACxB,+CAAoD;AACpD,qEAA0E;AAC1E,mDAAoD;AACpD,6BAA+C;AAGlC,QAAA,iCAAiC,GAC5C,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B;;GAEG;AACI,MAAM,yBAAyB,GAAG,KAAK,EAC5C,IAAU,EACV,MAAuC,EACX,EAAE;IAC9B,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,MAAM,CAAC,OAAO,CACf,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC,aAAa,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAE5E,gDAAgD;IAChD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACb,oDAAoD,MAAM,CAAC,OAAO,yEAAyE,CAC5I,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CACb,gIAAgI,CACjI,CAAC;IACJ,CAAC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC;IAC/B,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACpE,MAAM,oBAAoB,GAAG,IAAA,mBAAW,EAAC,uBAAuB,CAAC,CAAC;IAClE,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC,IAAI,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AAY,EAAC,CAAC,mBAAmB,CAAC,CAAC,CACpC,CAAC;IAEF,IAAA,kCAA6B,EAC3B,IAAI,EACJ,aAAa,CAAC,IAAI,EAClB,yCAAiC,EACjC,2BAA2B,EAC3B,uBAAuB,CACxB,CAAC;IAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;QAC1C,yCAAiC;KAClC,CAAC,CAAC;IAEH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IAEjC,OAAO,GAAG,EAAE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC,CAAC;AA9IW,QAAA,yBAAyB,6BA8IpC;AAEF,kBAAe,iCAAyB,CAAC"}
@@ -49,10 +49,13 @@ export type EventSource =
49
49
  | 'VpcLatticeSchema'
50
50
  | 'VpcLatticeV2Schema';
51
51
 
52
+ export type LambdaInfraOption = 'lambda' | 'none';
53
+
52
54
  export interface TsLambdaFunctionGeneratorSchema {
53
55
  readonly project: string;
54
56
  readonly name: string;
55
57
  readonly functionPath?: string;
56
58
  readonly event?: EventSource;
59
+ readonly infra?: LambdaInfraOption;
57
60
  readonly iac: IacOption;
58
61
  }
@@ -77,6 +77,14 @@
77
77
  "default": "Any",
78
78
  "x-prompt": "Enter the event source schema to use for the lambda function"
79
79
  },
80
+ "infra": {
81
+ "type": "string",
82
+ "description": "The type of infrastructure to deploy your Lambda function with.",
83
+ "enum": ["lambda", "none"],
84
+ "default": "lambda",
85
+ "x-priority": "important",
86
+ "x-prompt": "What infrastructure would you like to deploy your Lambda function with?"
87
+ },
80
88
  "iac": {
81
89
  "type": "string",
82
90
  "description": "The preferred IaC provider. By default this is inherited from your initial selection.",