ddd-ts-kit 0.102.0 → 0.104.0

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 (724) hide show
  1. package/CHANGELOG.md +278 -0
  2. package/README.fr.md +26 -15
  3. package/README.md +26 -14
  4. package/dist/acceptance/check-locked-files.d.ts.map +1 -1
  5. package/dist/acceptance/check-locked-files.js +6 -3
  6. package/dist/acceptance/check-locked-files.js.map +1 -1
  7. package/dist/build/rewrite-aliases.d.ts.map +1 -1
  8. package/dist/build/rewrite-aliases.js +3 -0
  9. package/dist/build/rewrite-aliases.js.map +1 -1
  10. package/dist/check/baseline/write-baseline.d.ts.map +1 -1
  11. package/dist/check/baseline/write-baseline.js +2 -3
  12. package/dist/check/baseline/write-baseline.js.map +1 -1
  13. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  14. package/dist/check/canonical/stray-entry.js +14 -1
  15. package/dist/check/canonical/stray-entry.js.map +1 -1
  16. package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
  17. package/dist/check/catalogue/eslint-only-rules.js +1 -1
  18. package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
  19. package/dist/check/commands/check-command.d.ts.map +1 -1
  20. package/dist/check/commands/check-command.js +24 -1
  21. package/dist/check/commands/check-command.js.map +1 -1
  22. package/dist/check/commands/check-file-command.d.ts.map +1 -1
  23. package/dist/check/commands/check-file-command.js +3 -0
  24. package/dist/check/commands/check-file-command.js.map +1 -1
  25. package/dist/check/commands/explain-command.d.ts.map +1 -1
  26. package/dist/check/commands/explain-command.js +8 -21
  27. package/dist/check/commands/explain-command.js.map +1 -1
  28. package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
  29. package/dist/check/errors/kit-error-codes.js +1 -0
  30. package/dist/check/errors/kit-error-codes.js.map +1 -1
  31. package/dist/check/explain/authz-docs.js +1 -1
  32. package/dist/check/explain/authz-docs.js.map +1 -1
  33. package/dist/check/explain/delegated-doc.d.ts +4 -0
  34. package/dist/check/explain/delegated-doc.d.ts.map +1 -0
  35. package/dist/check/explain/delegated-doc.js +11 -0
  36. package/dist/check/explain/delegated-doc.js.map +1 -0
  37. package/dist/check/explain/delegated-docs.d.ts +8 -0
  38. package/dist/check/explain/delegated-docs.d.ts.map +1 -0
  39. package/dist/check/explain/delegated-docs.js +292 -0
  40. package/dist/check/explain/delegated-docs.js.map +1 -0
  41. package/dist/check/explain/errors-docs.js +1 -1
  42. package/dist/check/explain/errors-docs.js.map +1 -1
  43. package/dist/check/explain/layer-docs.d.ts.map +1 -1
  44. package/dist/check/explain/layer-docs.js +6 -4
  45. package/dist/check/explain/layer-docs.js.map +1 -1
  46. package/dist/check/explain/ports-docs.js +1 -1
  47. package/dist/check/explain/ports-docs.js.map +1 -1
  48. package/dist/check/explain/tree-docs.js +2 -2
  49. package/dist/check/explain/tree-docs.js.map +1 -1
  50. package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
  51. package/dist/check/fixtures/authz-policy-fixtures.js +13 -1
  52. package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
  53. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  54. package/dist/check/fixtures/fixtures.js +4 -0
  55. package/dist/check/fixtures/fixtures.js.map +1 -1
  56. package/dist/check/fixtures/layer-entry-fixtures.d.ts +4 -0
  57. package/dist/check/fixtures/layer-entry-fixtures.d.ts.map +1 -0
  58. package/dist/check/fixtures/layer-entry-fixtures.js +35 -0
  59. package/dist/check/fixtures/layer-entry-fixtures.js.map +1 -0
  60. package/dist/check/fixtures/layer-fixtures.d.ts.map +1 -1
  61. package/dist/check/fixtures/layer-fixtures.js.map +1 -1
  62. package/dist/check/fixtures/other-language-fixtures.d.ts.map +1 -1
  63. package/dist/check/fixtures/other-language-fixtures.js +1 -1
  64. package/dist/check/fixtures/other-language-fixtures.js.map +1 -1
  65. package/dist/check/fixtures/ports-fixtures.d.ts.map +1 -1
  66. package/dist/check/fixtures/ports-fixtures.js +1 -0
  67. package/dist/check/fixtures/ports-fixtures.js.map +1 -1
  68. package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
  69. package/dist/check/fixtures/purity-fixtures.js +18 -0
  70. package/dist/check/fixtures/purity-fixtures.js.map +1 -1
  71. package/dist/check/fixtures/role-folder-fixtures.d.ts +4 -0
  72. package/dist/check/fixtures/role-folder-fixtures.d.ts.map +1 -0
  73. package/dist/check/fixtures/role-folder-fixtures.js +31 -0
  74. package/dist/check/fixtures/role-folder-fixtures.js.map +1 -0
  75. package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
  76. package/dist/check/fixtures/test-fixtures.js +9 -0
  77. package/dist/check/fixtures/test-fixtures.js.map +1 -1
  78. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  79. package/dist/check/fixtures/tree-fixtures.js +0 -1
  80. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  81. package/dist/check/layers/outer-entry.d.ts +13 -0
  82. package/dist/check/layers/outer-entry.d.ts.map +1 -0
  83. package/dist/check/layers/outer-entry.js +29 -0
  84. package/dist/check/layers/outer-entry.js.map +1 -0
  85. package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
  86. package/dist/check/rules/authz-policy-asked.js +45 -6
  87. package/dist/check/rules/authz-policy-asked.js.map +1 -1
  88. package/dist/check/rules/clean-braces.js +1 -1
  89. package/dist/check/rules/clean-braces.js.map +1 -1
  90. package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
  91. package/dist/check/rules/layer-application-inward.js +3 -1
  92. package/dist/check/rules/layer-application-inward.js.map +1 -1
  93. package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
  94. package/dist/check/rules/layer-domain-purity.js +3 -1
  95. package/dist/check/rules/layer-domain-purity.js.map +1 -1
  96. package/dist/check/rules/naming-suffix.js +7 -1
  97. package/dist/check/rules/naming-suffix.js.map +1 -1
  98. package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
  99. package/dist/check/rules/ports-abstract-class.js +16 -2
  100. package/dist/check/rules/ports-abstract-class.js.map +1 -1
  101. package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
  102. package/dist/check/rules/purity-no-ambient-randomness.js +4 -0
  103. package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
  104. package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
  105. package/dist/check/rules/purity-no-environment.js +5 -0
  106. package/dist/check/rules/purity-no-environment.js.map +1 -1
  107. package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
  108. package/dist/check/rules/purity-no-system-clock.js +4 -0
  109. package/dist/check/rules/purity-no-system-clock.js.map +1 -1
  110. package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
  111. package/dist/check/rules/test-no-mocks.js +16 -6
  112. package/dist/check/rules/test-no-mocks.js.map +1 -1
  113. package/dist/check/rules/test-spec-required.d.ts.map +1 -1
  114. package/dist/check/rules/test-spec-required.js +3 -1
  115. package/dist/check/rules/test-spec-required.js.map +1 -1
  116. package/dist/check/scan/named-outside-imports.d.ts +3 -0
  117. package/dist/check/scan/named-outside-imports.d.ts.map +1 -0
  118. package/dist/check/scan/named-outside-imports.js +8 -0
  119. package/dist/check/scan/named-outside-imports.js.map +1 -0
  120. package/dist/check/scan/star-exports-of.d.ts +3 -0
  121. package/dist/check/scan/star-exports-of.d.ts.map +1 -0
  122. package/dist/check/scan/star-exports-of.js +8 -0
  123. package/dist/check/scan/star-exports-of.js.map +1 -0
  124. package/dist/check/scan/string-at.d.ts +3 -0
  125. package/dist/check/scan/string-at.d.ts.map +1 -0
  126. package/dist/check/scan/string-at.js +5 -0
  127. package/dist/check/scan/string-at.js.map +1 -0
  128. package/dist/check/text/closing-bracket.d.ts +6 -0
  129. package/dist/check/text/closing-bracket.d.ts.map +1 -0
  130. package/dist/check/text/closing-bracket.js +24 -0
  131. package/dist/check/text/closing-bracket.js.map +1 -0
  132. package/dist/commands/affected.d.ts.map +1 -1
  133. package/dist/commands/affected.js +5 -4
  134. package/dist/commands/affected.js.map +1 -1
  135. package/dist/commands/cited.d.ts.map +1 -1
  136. package/dist/commands/cited.js +2 -1
  137. package/dist/commands/cited.js.map +1 -1
  138. package/dist/commands/depcruise-config.d.ts.map +1 -1
  139. package/dist/commands/depcruise-config.js +14 -7
  140. package/dist/commands/depcruise-config.js.map +1 -1
  141. package/dist/commands/digest.d.ts.map +1 -1
  142. package/dist/commands/digest.js +2 -1
  143. package/dist/commands/digest.js.map +1 -1
  144. package/dist/commands/drizzle-generate.d.ts +3 -2
  145. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  146. package/dist/commands/drizzle-generate.js +22 -7
  147. package/dist/commands/drizzle-generate.js.map +1 -1
  148. package/dist/commands/generate.d.ts.map +1 -1
  149. package/dist/commands/generate.js +3 -2
  150. package/dist/commands/generate.js.map +1 -1
  151. package/dist/commands/knex-generate.d.ts +10 -0
  152. package/dist/commands/knex-generate.d.ts.map +1 -0
  153. package/dist/commands/knex-generate.js +80 -0
  154. package/dist/commands/knex-generate.js.map +1 -0
  155. package/dist/commands/lint.d.ts +2 -1
  156. package/dist/commands/lint.d.ts.map +1 -1
  157. package/dist/commands/lint.js +42 -4
  158. package/dist/commands/lint.js.map +1 -1
  159. package/dist/commands/move-to-module.d.ts.map +1 -1
  160. package/dist/commands/move-to-module.js +3 -0
  161. package/dist/commands/move-to-module.js.map +1 -1
  162. package/dist/commands/mutation.d.ts.map +1 -1
  163. package/dist/commands/mutation.js +4 -3
  164. package/dist/commands/mutation.js.map +1 -1
  165. package/dist/commands/parse-migration-arguments.d.ts +11 -0
  166. package/dist/commands/parse-migration-arguments.d.ts.map +1 -0
  167. package/dist/commands/parse-migration-arguments.js +17 -0
  168. package/dist/commands/parse-migration-arguments.js.map +1 -0
  169. package/dist/commands/plan-waves.d.ts.map +1 -1
  170. package/dist/commands/plan-waves.js +2 -1
  171. package/dist/commands/plan-waves.js.map +1 -1
  172. package/dist/commands/prisma-generate.d.ts.map +1 -1
  173. package/dist/commands/prisma-generate.js +9 -14
  174. package/dist/commands/prisma-generate.js.map +1 -1
  175. package/dist/commands/typeorm-generate.d.ts +2 -1
  176. package/dist/commands/typeorm-generate.d.ts.map +1 -1
  177. package/dist/commands/typeorm-generate.js +22 -16
  178. package/dist/commands/typeorm-generate.js.map +1 -1
  179. package/dist/commands/verify-slice.d.ts.map +1 -1
  180. package/dist/commands/verify-slice.js +3 -2
  181. package/dist/commands/verify-slice.js.map +1 -1
  182. package/dist/commit/resolved-trunk.d.ts +3 -0
  183. package/dist/commit/resolved-trunk.d.ts.map +1 -0
  184. package/dist/commit/resolved-trunk.js +7 -0
  185. package/dist/commit/resolved-trunk.js.map +1 -0
  186. package/dist/commit/trunk-example.d.ts +3 -0
  187. package/dist/commit/trunk-example.d.ts.map +1 -0
  188. package/dist/commit/trunk-example.js +6 -0
  189. package/dist/commit/trunk-example.js.map +1 -0
  190. package/dist/describe/context-description.d.ts +2 -0
  191. package/dist/describe/context-description.d.ts.map +1 -1
  192. package/dist/describe/describe-context.d.ts.map +1 -1
  193. package/dist/describe/describe-context.js +6 -0
  194. package/dist/describe/describe-context.js.map +1 -1
  195. package/dist/describe/format-description.js +1 -1
  196. package/dist/describe/format-description.js.map +1 -1
  197. package/dist/digest/branch-points.d.ts.map +1 -1
  198. package/dist/digest/branch-points.js +3 -2
  199. package/dist/digest/branch-points.js.map +1 -1
  200. package/dist/doctor/permission-findings.d.ts.map +1 -1
  201. package/dist/doctor/permission-findings.js +68 -4
  202. package/dist/doctor/permission-findings.js.map +1 -1
  203. package/dist/generate/concept-role.d.ts +10 -0
  204. package/dist/generate/concept-role.d.ts.map +1 -1
  205. package/dist/generate/concept.d.ts.map +1 -1
  206. package/dist/generate/concept.js +5 -1
  207. package/dist/generate/concept.js.map +1 -1
  208. package/dist/generate/emit.d.ts +5 -2
  209. package/dist/generate/emit.d.ts.map +1 -1
  210. package/dist/generate/emit.js +5 -4
  211. package/dist/generate/emit.js.map +1 -1
  212. package/dist/generate/errors/refuse-taken-class-name.d.ts +9 -0
  213. package/dist/generate/errors/refuse-taken-class-name.d.ts.map +1 -0
  214. package/dist/generate/errors/refuse-taken-class-name.js +22 -0
  215. package/dist/generate/errors/refuse-taken-class-name.js.map +1 -0
  216. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
  217. package/dist/generate/errors/write-named-refusal.js +2 -0
  218. package/dist/generate/errors/write-named-refusal.js.map +1 -1
  219. package/dist/generate/event-names.d.ts.map +1 -1
  220. package/dist/generate/event-names.js.map +1 -1
  221. package/dist/generate/files-without-modules.d.ts +8 -0
  222. package/dist/generate/files-without-modules.d.ts.map +1 -0
  223. package/dist/generate/files-without-modules.js +12 -0
  224. package/dist/generate/files-without-modules.js.map +1 -0
  225. package/dist/generate/grant-permission.js +2 -2
  226. package/dist/generate/grant-permission.js.map +1 -1
  227. package/dist/generate/kinds/aggregate-kind.js +4 -4
  228. package/dist/generate/kinds/aggregate-kind.js.map +1 -1
  229. package/dist/generate/kinds/command-kind.d.ts.map +1 -1
  230. package/dist/generate/kinds/command-kind.js +6 -1
  231. package/dist/generate/kinds/command-kind.js.map +1 -1
  232. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  233. package/dist/generate/kinds/declare-storage.js +4 -10
  234. package/dist/generate/kinds/declare-storage.js.map +1 -1
  235. package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
  236. package/dist/generate/kinds/domain-event-kind.js +3 -1
  237. package/dist/generate/kinds/domain-event-kind.js.map +1 -1
  238. package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
  239. package/dist/generate/kinds/e2e-kind.js +8 -1
  240. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  241. package/dist/generate/kinds/ensure-domain-event.d.ts.map +1 -1
  242. package/dist/generate/kinds/ensure-domain-event.js +2 -0
  243. package/dist/generate/kinds/ensure-domain-event.js.map +1 -1
  244. package/dist/generate/kinds/extraction/add-compose-service.js +1 -1
  245. package/dist/generate/kinds/extraction/add-compose-service.js.map +1 -1
  246. package/dist/generate/kinds/extraction/compose-service-of.d.ts +5 -0
  247. package/dist/generate/kinds/extraction/compose-service-of.d.ts.map +1 -0
  248. package/dist/generate/kinds/extraction/compose-service-of.js +8 -0
  249. package/dist/generate/kinds/extraction/compose-service-of.js.map +1 -0
  250. package/dist/generate/kinds/gateway-kind.js +9 -0
  251. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  252. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  253. package/dist/generate/kinds/generate-context.js +37 -0
  254. package/dist/generate/kinds/generate-context.js.map +1 -1
  255. package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
  256. package/dist/generate/kinds/generate-repository.js +13 -0
  257. package/dist/generate/kinds/generate-repository.js.map +1 -1
  258. package/dist/generate/kinds/query-kind.d.ts.map +1 -1
  259. package/dist/generate/kinds/query-kind.js +24 -2
  260. package/dist/generate/kinds/query-kind.js.map +1 -1
  261. package/dist/generate/kinds/route/find-use-case.js +1 -1
  262. package/dist/generate/kinds/route/find-use-case.js.map +1 -1
  263. package/dist/generate/kinds/service-kind.d.ts.map +1 -1
  264. package/dist/generate/kinds/service-kind.js +3 -2
  265. package/dist/generate/kinds/service-kind.js.map +1 -1
  266. package/dist/generate/kinds/tables-files.d.ts +3 -0
  267. package/dist/generate/kinds/tables-files.d.ts.map +1 -0
  268. package/dist/generate/kinds/tables-files.js +7 -0
  269. package/dist/generate/kinds/tables-files.js.map +1 -0
  270. package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
  271. package/dist/generate/kinds/worker-kind.js +12 -0
  272. package/dist/generate/kinds/worker-kind.js.map +1 -1
  273. package/dist/generate/kinds/write-birth.d.ts +8 -0
  274. package/dist/generate/kinds/write-birth.d.ts.map +1 -0
  275. package/dist/generate/kinds/write-birth.js +13 -0
  276. package/dist/generate/kinds/write-birth.js.map +1 -0
  277. package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
  278. package/dist/generate/kinds/write-event-sourced-aggregate.js +8 -1
  279. package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
  280. package/dist/generate/mark-policy-questions.js +2 -2
  281. package/dist/generate/mark-policy-questions.js.map +1 -1
  282. package/dist/generate/permission-name.d.ts +3 -0
  283. package/dist/generate/permission-name.d.ts.map +1 -0
  284. package/dist/generate/permission-name.js +3 -0
  285. package/dist/generate/permission-name.js.map +1 -0
  286. package/dist/generate/permission-named.d.ts.map +1 -1
  287. package/dist/generate/permission-named.js +1 -1
  288. package/dist/generate/permission-named.js.map +1 -1
  289. package/dist/generate/permission-words.d.ts +7 -0
  290. package/dist/generate/permission-words.d.ts.map +1 -0
  291. package/dist/generate/permission-words.js +11 -0
  292. package/dist/generate/permission-words.js.map +1 -0
  293. package/dist/generate/refined-by-policy.js +2 -2
  294. package/dist/generate/refined-by-policy.js.map +1 -1
  295. package/dist/generate/refuse-stuttering-event.d.ts +8 -0
  296. package/dist/generate/refuse-stuttering-event.d.ts.map +1 -0
  297. package/dist/generate/refuse-stuttering-event.js +14 -0
  298. package/dist/generate/refuse-stuttering-event.js.map +1 -0
  299. package/dist/generate/shared-writes.d.ts.map +1 -1
  300. package/dist/generate/shared-writes.js +1 -0
  301. package/dist/generate/shared-writes.js.map +1 -1
  302. package/dist/generate/spoken-in-language.d.ts +11 -2
  303. package/dist/generate/spoken-in-language.d.ts.map +1 -1
  304. package/dist/generate/spoken-in-language.js +27 -12
  305. package/dist/generate/spoken-in-language.js.map +1 -1
  306. package/dist/help/flag-notes.d.ts.map +1 -1
  307. package/dist/help/flag-notes.js +5 -1
  308. package/dist/help/flag-notes.js.map +1 -1
  309. package/dist/help/tool-notes.d.ts.map +1 -1
  310. package/dist/help/tool-notes.js +16 -0
  311. package/dist/help/tool-notes.js.map +1 -1
  312. package/dist/help/usage.d.ts.map +1 -1
  313. package/dist/help/usage.js +1 -0
  314. package/dist/help/usage.js.map +1 -1
  315. package/dist/init/agent-permissions.d.ts.map +1 -1
  316. package/dist/init/agent-permissions.js +18 -3
  317. package/dist/init/agent-permissions.js.map +1 -1
  318. package/dist/init/files/audit-files.d.ts.map +1 -1
  319. package/dist/init/files/audit-files.js +1 -0
  320. package/dist/init/files/audit-files.js.map +1 -1
  321. package/dist/init/files/persistence-files.d.ts.map +1 -1
  322. package/dist/init/files/persistence-files.js +2 -1
  323. package/dist/init/files/persistence-files.js.map +1 -1
  324. package/dist/init/files/script-files.d.ts +4 -1
  325. package/dist/init/files/script-files.d.ts.map +1 -1
  326. package/dist/init/files/script-files.js +6 -1
  327. package/dist/init/files/script-files.js.map +1 -1
  328. package/dist/init/is-team-file.d.ts +2 -2
  329. package/dist/init/is-team-file.d.ts.map +1 -1
  330. package/dist/init/is-team-file.js +5 -3
  331. package/dist/init/is-team-file.js.map +1 -1
  332. package/dist/init/keep-regions.d.ts +21 -0
  333. package/dist/init/keep-regions.d.ts.map +1 -0
  334. package/dist/init/keep-regions.js +63 -0
  335. package/dist/init/keep-regions.js.map +1 -0
  336. package/dist/init/kept-combination-notes.d.ts.map +1 -1
  337. package/dist/init/kept-combination-notes.js +6 -2
  338. package/dist/init/kept-combination-notes.js.map +1 -1
  339. package/dist/init/kept-compose-services.d.ts +6 -0
  340. package/dist/init/kept-compose-services.d.ts.map +1 -0
  341. package/dist/init/kept-compose-services.js +42 -0
  342. package/dist/init/kept-compose-services.js.map +1 -0
  343. package/dist/init/kept-role-vocabulary.d.ts +3 -0
  344. package/dist/init/kept-role-vocabulary.d.ts.map +1 -0
  345. package/dist/init/kept-role-vocabulary.js +7 -0
  346. package/dist/init/kept-role-vocabulary.js.map +1 -0
  347. package/dist/init/kept-roles.d.ts +12 -0
  348. package/dist/init/kept-roles.d.ts.map +1 -0
  349. package/dist/init/kept-roles.js +29 -0
  350. package/dist/init/kept-roles.js.map +1 -0
  351. package/dist/init/kept-wiring.d.ts +22 -0
  352. package/dist/init/kept-wiring.d.ts.map +1 -0
  353. package/dist/init/kept-wiring.js +91 -0
  354. package/dist/init/kept-wiring.js.map +1 -0
  355. package/dist/init/knip-vars.d.ts.map +1 -1
  356. package/dist/init/knip-vars.js +5 -1
  357. package/dist/init/knip-vars.js.map +1 -1
  358. package/dist/init/manifest/database-scripts.d.ts.map +1 -1
  359. package/dist/init/manifest/database-scripts.js +5 -3
  360. package/dist/init/manifest/database-scripts.js.map +1 -1
  361. package/dist/init/manifest/scripts-for.d.ts.map +1 -1
  362. package/dist/init/manifest/scripts-for.js +8 -0
  363. package/dist/init/manifest/scripts-for.js.map +1 -1
  364. package/dist/init/manifest/versions.js +24 -24
  365. package/dist/init/orphaned-wiring-notes.d.ts +13 -0
  366. package/dist/init/orphaned-wiring-notes.d.ts.map +1 -0
  367. package/dist/init/orphaned-wiring-notes.js +42 -0
  368. package/dist/init/orphaned-wiring-notes.js.map +1 -0
  369. package/dist/init/profile-hooks.js +1 -1
  370. package/dist/init/profile-hooks.js.map +1 -1
  371. package/dist/init/repositories-left-behind.d.ts +12 -0
  372. package/dist/init/repositories-left-behind.d.ts.map +1 -0
  373. package/dist/init/repositories-left-behind.js +26 -0
  374. package/dist/init/repositories-left-behind.js.map +1 -0
  375. package/dist/init/rewire-audited-events.d.ts +10 -0
  376. package/dist/init/rewire-audited-events.d.ts.map +1 -0
  377. package/dist/init/rewire-audited-events.js +32 -0
  378. package/dist/init/rewire-audited-events.js.map +1 -0
  379. package/dist/init/rewire-contexts.d.ts +15 -0
  380. package/dist/init/rewire-contexts.d.ts.map +1 -0
  381. package/dist/init/rewire-contexts.js +41 -0
  382. package/dist/init/rewire-contexts.js.map +1 -0
  383. package/dist/init/rewire-preset.d.ts +9 -0
  384. package/dist/init/rewire-preset.d.ts.map +1 -0
  385. package/dist/init/rewire-preset.js +29 -0
  386. package/dist/init/rewire-preset.js.map +1 -0
  387. package/dist/init/rewire-tables.d.ts +10 -0
  388. package/dist/init/rewire-tables.d.ts.map +1 -0
  389. package/dist/init/rewire-tables.js +54 -0
  390. package/dist/init/rewire-tables.js.map +1 -0
  391. package/dist/init/run-init.d.ts.map +1 -1
  392. package/dist/init/run-init.js +28 -28
  393. package/dist/init/run-init.js.map +1 -1
  394. package/dist/init/stack/kept-flag-notes.d.ts +7 -0
  395. package/dist/init/stack/kept-flag-notes.d.ts.map +1 -0
  396. package/dist/init/stack/kept-flag-notes.js +24 -0
  397. package/dist/init/stack/kept-flag-notes.js.map +1 -0
  398. package/dist/init/stack/refuse-unused-no-outbox.d.ts +4 -0
  399. package/dist/init/stack/refuse-unused-no-outbox.d.ts.map +1 -0
  400. package/dist/init/stack/refuse-unused-no-outbox.js +9 -0
  401. package/dist/init/stack/refuse-unused-no-outbox.js.map +1 -0
  402. package/dist/init/stack/resolve-stack.d.ts.map +1 -1
  403. package/dist/init/stack/resolve-stack.js +10 -0
  404. package/dist/init/stack/resolve-stack.js.map +1 -1
  405. package/dist/init/stack-before.d.ts +4 -0
  406. package/dist/init/stack-before.d.ts.map +1 -0
  407. package/dist/init/stack-before.js +11 -0
  408. package/dist/init/stack-before.js.map +1 -0
  409. package/dist/init/wiring-notes.d.ts +9 -0
  410. package/dist/init/wiring-notes.d.ts.map +1 -0
  411. package/dist/init/wiring-notes.js +22 -0
  412. package/dist/init/wiring-notes.js.map +1 -0
  413. package/dist/init/with-named-imports.d.ts +8 -0
  414. package/dist/init/with-named-imports.d.ts.map +1 -0
  415. package/dist/init/with-named-imports.js +69 -0
  416. package/dist/init/with-named-imports.js.map +1 -0
  417. package/dist/init/with-system-grants.d.ts +7 -0
  418. package/dist/init/with-system-grants.d.ts.map +1 -0
  419. package/dist/init/with-system-grants.js +26 -0
  420. package/dist/init/with-system-grants.js.map +1 -0
  421. package/dist/init/write-local-environment.d.ts +8 -0
  422. package/dist/init/write-local-environment.d.ts.map +1 -0
  423. package/dist/init/write-local-environment.js +18 -0
  424. package/dist/init/write-local-environment.js.map +1 -0
  425. package/dist/lint/eslint-in-project.d.ts +1 -1
  426. package/dist/lint/eslint-in-project.d.ts.map +1 -1
  427. package/dist/lint/eslint-in-project.js +11 -2
  428. package/dist/lint/eslint-in-project.js.map +1 -1
  429. package/dist/markers/index.d.ts +3 -0
  430. package/dist/markers/index.d.ts.map +1 -1
  431. package/dist/markers/index.js +3 -0
  432. package/dist/markers/index.js.map +1 -1
  433. package/dist/markers/region-marker.d.ts +3 -0
  434. package/dist/markers/region-marker.d.ts.map +1 -0
  435. package/dist/markers/region-marker.js +3 -0
  436. package/dist/markers/region-marker.js.map +1 -0
  437. package/dist/markers/regions-of.d.ts +9 -0
  438. package/dist/markers/regions-of.d.ts.map +1 -0
  439. package/dist/markers/regions-of.js +20 -0
  440. package/dist/markers/regions-of.js.map +1 -0
  441. package/dist/markers/unpaired-markers.d.ts +3 -0
  442. package/dist/markers/unpaired-markers.d.ts.map +1 -0
  443. package/dist/markers/unpaired-markers.js +13 -0
  444. package/dist/markers/unpaired-markers.js.map +1 -0
  445. package/dist/measures/format-measures.js +1 -1
  446. package/dist/measures/format-measures.js.map +1 -1
  447. package/dist/measures/measures-view.d.ts +1 -1
  448. package/dist/measures/measures-view.d.ts.map +1 -1
  449. package/dist/merge/apply-resolutions.d.ts.map +1 -1
  450. package/dist/merge/apply-resolutions.js +6 -4
  451. package/dist/merge/apply-resolutions.js.map +1 -1
  452. package/dist/merge/continue-merge.d.ts.map +1 -1
  453. package/dist/merge/continue-merge.js +1 -0
  454. package/dist/merge/continue-merge.js.map +1 -1
  455. package/dist/merge/ensure-mergeable.js +1 -1
  456. package/dist/merge/ensure-mergeable.js.map +1 -1
  457. package/dist/merge/lost/verify-merges.d.ts.map +1 -1
  458. package/dist/merge/lost/verify-merges.js +4 -0
  459. package/dist/merge/lost/verify-merges.js.map +1 -1
  460. package/dist/merge/merge-state.d.ts.map +1 -1
  461. package/dist/merge/merge-state.js +2 -2
  462. package/dist/merge/merge-state.js.map +1 -1
  463. package/dist/merge/merge-trunk.d.ts.map +1 -1
  464. package/dist/merge/merge-trunk.js +4 -0
  465. package/dist/merge/merge-trunk.js.map +1 -1
  466. package/dist/merge/refuse-shallow-history.d.ts +10 -0
  467. package/dist/merge/refuse-shallow-history.d.ts.map +1 -0
  468. package/dist/merge/refuse-shallow-history.js +15 -0
  469. package/dist/merge/refuse-shallow-history.js.map +1 -0
  470. package/dist/merge/resume-merge.js +2 -2
  471. package/dist/merge/resume-merge.js.map +1 -1
  472. package/dist/merge/settle-regions.d.ts.map +1 -1
  473. package/dist/merge/settle-regions.js +3 -4
  474. package/dist/merge/settle-regions.js.map +1 -1
  475. package/dist/migration/answered-as-json.d.ts +13 -0
  476. package/dist/migration/answered-as-json.d.ts.map +1 -0
  477. package/dist/migration/answered-as-json.js +38 -0
  478. package/dist/migration/answered-as-json.js.map +1 -0
  479. package/dist/migration/audit-guard/append-audit-guard.d.ts +4 -2
  480. package/dist/migration/audit-guard/append-audit-guard.d.ts.map +1 -1
  481. package/dist/migration/audit-guard/append-audit-guard.js +18 -3
  482. package/dist/migration/audit-guard/append-audit-guard.js.map +1 -1
  483. package/dist/migration/audit-guard/run-orm-tool.d.ts.map +1 -1
  484. package/dist/migration/audit-guard/run-orm-tool.js +2 -1
  485. package/dist/migration/audit-guard/run-orm-tool.js.map +1 -1
  486. package/dist/migration/declared-tables.d.ts +8 -0
  487. package/dist/migration/declared-tables.d.ts.map +1 -0
  488. package/dist/migration/declared-tables.js +13 -0
  489. package/dist/migration/declared-tables.js.map +1 -0
  490. package/dist/migration/find-project-formatter.d.ts.map +1 -1
  491. package/dist/migration/find-project-formatter.js +2 -1
  492. package/dist/migration/find-project-formatter.js.map +1 -1
  493. package/dist/migration/index.d.ts +9 -0
  494. package/dist/migration/index.d.ts.map +1 -1
  495. package/dist/migration/index.js +9 -0
  496. package/dist/migration/index.js.map +1 -1
  497. package/dist/migration/knex-migration-text.d.ts +4 -0
  498. package/dist/migration/knex-migration-text.d.ts.map +1 -0
  499. package/dist/migration/knex-migration-text.js +24 -0
  500. package/dist/migration/knex-migration-text.js.map +1 -0
  501. package/dist/migration/knex-schema-difference.d.ts +12 -0
  502. package/dist/migration/knex-schema-difference.d.ts.map +1 -0
  503. package/dist/migration/knex-schema-difference.js +166 -0
  504. package/dist/migration/knex-schema-difference.js.map +1 -0
  505. package/dist/migration/listed-in-index.d.ts +6 -0
  506. package/dist/migration/listed-in-index.d.ts.map +1 -0
  507. package/dist/migration/listed-in-index.js +8 -0
  508. package/dist/migration/listed-in-index.js.map +1 -0
  509. package/dist/migration/refuse-other-orm.d.ts +8 -0
  510. package/dist/migration/refuse-other-orm.d.ts.map +1 -0
  511. package/dist/migration/refuse-other-orm.js +34 -0
  512. package/dist/migration/refuse-other-orm.js.map +1 -0
  513. package/dist/migration/required-migration-name.d.ts +3 -0
  514. package/dist/migration/required-migration-name.d.ts.map +1 -0
  515. package/dist/migration/required-migration-name.js +11 -0
  516. package/dist/migration/required-migration-name.js.map +1 -0
  517. package/dist/migration/run-on-in-process-database.d.ts.map +1 -1
  518. package/dist/migration/run-on-in-process-database.js +2 -1
  519. package/dist/migration/run-on-in-process-database.js.map +1 -1
  520. package/dist/migration/tool-stdio.d.ts +6 -0
  521. package/dist/migration/tool-stdio.d.ts.map +1 -0
  522. package/dist/migration/tool-stdio.js +17 -0
  523. package/dist/migration/tool-stdio.js.map +1 -0
  524. package/dist/migration/warn-dropped-context-tables.d.ts +12 -0
  525. package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -0
  526. package/dist/migration/warn-dropped-context-tables.js +88 -0
  527. package/dist/migration/warn-dropped-context-tables.js.map +1 -0
  528. package/dist/package-manager/dialects.js +1 -1
  529. package/dist/package-manager/dialects.js.map +1 -1
  530. package/dist/package-manager/in-project-dialect.d.ts +8 -0
  531. package/dist/package-manager/in-project-dialect.d.ts.map +1 -0
  532. package/dist/package-manager/in-project-dialect.js +22 -0
  533. package/dist/package-manager/in-project-dialect.js.map +1 -0
  534. package/dist/plan/batched-waves.d.ts +2 -0
  535. package/dist/plan/batched-waves.d.ts.map +1 -1
  536. package/dist/plan/batched-waves.js +6 -4
  537. package/dist/plan/batched-waves.js.map +1 -1
  538. package/dist/plan/plan-problems.d.ts +5 -0
  539. package/dist/plan/plan-problems.d.ts.map +1 -1
  540. package/dist/plan/plan-problems.js +6 -1
  541. package/dist/plan/plan-problems.js.map +1 -1
  542. package/dist/plan/plan-waves.d.ts +2 -0
  543. package/dist/plan/plan-waves.d.ts.map +1 -1
  544. package/dist/plan/plan-waves.js +1 -1
  545. package/dist/plan/plan-waves.js.map +1 -1
  546. package/dist/presets/adapter-of.d.ts +5 -0
  547. package/dist/presets/adapter-of.d.ts.map +1 -0
  548. package/dist/presets/adapter-of.js +6 -0
  549. package/dist/presets/adapter-of.js.map +1 -0
  550. package/dist/presets/apply-preset.d.ts.map +1 -1
  551. package/dist/presets/apply-preset.js +1 -5
  552. package/dist/presets/apply-preset.js.map +1 -1
  553. package/dist/presets/grant-to-signed-in.d.ts.map +1 -1
  554. package/dist/presets/grant-to-signed-in.js +1 -24
  555. package/dist/presets/grant-to-signed-in.js.map +1 -1
  556. package/dist/presets/identity-terms.d.ts.map +1 -1
  557. package/dist/presets/identity-terms.js +4 -0
  558. package/dist/presets/identity-terms.js.map +1 -1
  559. package/dist/presets/lay-out-prisma-models.js +1 -19
  560. package/dist/presets/lay-out-prisma-models.js.map +1 -1
  561. package/dist/presets/organisations-as-tenants.d.ts +2 -2
  562. package/dist/presets/organisations-as-tenants.d.ts.map +1 -1
  563. package/dist/presets/organisations-as-tenants.js +46 -2
  564. package/dist/presets/organisations-as-tenants.js.map +1 -1
  565. package/dist/presets/preset-named.d.ts +2 -0
  566. package/dist/presets/preset-named.d.ts.map +1 -1
  567. package/dist/presets/preset-named.js +1 -1
  568. package/dist/presets/preset-named.js.map +1 -1
  569. package/dist/presets/wrap-authorizer.d.ts +4 -0
  570. package/dist/presets/wrap-authorizer.d.ts.map +1 -0
  571. package/dist/presets/wrap-authorizer.js +25 -0
  572. package/dist/presets/wrap-authorizer.js.map +1 -0
  573. package/dist/prisma-schema/datasource-schemas.d.ts +3 -0
  574. package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -0
  575. package/dist/prisma-schema/datasource-schemas.js +5 -0
  576. package/dist/prisma-schema/datasource-schemas.js.map +1 -0
  577. package/dist/prisma-schema/index.d.ts +4 -0
  578. package/dist/prisma-schema/index.d.ts.map +1 -1
  579. package/dist/prisma-schema/index.js +4 -0
  580. package/dist/prisma-schema/index.js.map +1 -1
  581. package/dist/prisma-schema/preview-features-of.d.ts +3 -0
  582. package/dist/prisma-schema/preview-features-of.d.ts.map +1 -0
  583. package/dist/prisma-schema/preview-features-of.js +7 -0
  584. package/dist/prisma-schema/preview-features-of.js.map +1 -0
  585. package/dist/prisma-schema/with-datasource-schema.d.ts +3 -0
  586. package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -0
  587. package/dist/prisma-schema/with-datasource-schema.js +9 -0
  588. package/dist/prisma-schema/with-datasource-schema.js.map +1 -0
  589. package/dist/prisma-schema/with-preview-feature.d.ts +3 -0
  590. package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -0
  591. package/dist/prisma-schema/with-preview-feature.js +19 -0
  592. package/dist/prisma-schema/with-preview-feature.js.map +1 -0
  593. package/dist/run.d.ts +2 -0
  594. package/dist/run.d.ts.map +1 -1
  595. package/dist/run.js +11 -2
  596. package/dist/run.js.map +1 -1
  597. package/dist/sdk/render-client.js +1 -1
  598. package/dist/sdk/render-client.js.map +1 -1
  599. package/dist/slice/record-verification.d.ts.map +1 -1
  600. package/dist/slice/record-verification.js +2 -5
  601. package/dist/slice/record-verification.js.map +1 -1
  602. package/dist/stack/stack-vars.js +6 -2
  603. package/dist/stack/stack-vars.js.map +1 -1
  604. package/dist/stories/open-story-scope.d.ts.map +1 -1
  605. package/dist/stories/open-story-scope.js +4 -5
  606. package/dist/stories/open-story-scope.js.map +1 -1
  607. package/dist/stories/origin-of.d.ts.map +1 -1
  608. package/dist/stories/origin-of.js +14 -2
  609. package/dist/stories/origin-of.js.map +1 -1
  610. package/dist/stories/origin-phase.js +4 -4
  611. package/dist/stories/origin-phase.js.map +1 -1
  612. package/dist/stories/read-story-phases.js +8 -4
  613. package/dist/stories/read-story-phases.js.map +1 -1
  614. package/dist/story/change-gated.d.ts +3 -3
  615. package/dist/story/change-gated.d.ts.map +1 -1
  616. package/dist/story/change-gated.js +13 -7
  617. package/dist/story/change-gated.js.map +1 -1
  618. package/dist/version.d.ts +1 -1
  619. package/dist/version.js +1 -1
  620. package/dist/worker/base-of.d.ts.map +1 -1
  621. package/dist/worker/base-of.js +2 -2
  622. package/dist/worker/base-of.js.map +1 -1
  623. package/dist/worker/briefing-of.js +2 -2
  624. package/dist/worker/briefing-of.js.map +1 -1
  625. package/dist/worker/open-worker-scope.d.ts.map +1 -1
  626. package/dist/worker/open-worker-scope.js +3 -4
  627. package/dist/worker/open-worker-scope.js.map +1 -1
  628. package/dist/workspace/workspace.d.ts.map +1 -1
  629. package/dist/workspace/workspace.js +2 -1
  630. package/dist/workspace/workspace.js.map +1 -1
  631. package/dist/workspace/write-inside-project.d.ts +8 -0
  632. package/dist/workspace/write-inside-project.d.ts.map +1 -0
  633. package/dist/workspace/write-inside-project.js +17 -0
  634. package/dist/workspace/write-inside-project.js.map +1 -0
  635. package/package.json +5 -5
  636. package/templates/aggregate/event-sourced.events.mapper.ts.tpl +5 -1
  637. package/templates/command/handler.declared.ts.tpl +4 -12
  638. package/templates/command/handler.ts.tpl +4 -12
  639. package/templates/e2e/e2e.spec.ts.tpl +2 -2
  640. package/templates/init/README.md.tpl +29 -5
  641. package/templates/init/docker/docker-compose.yml.tpl +5 -2
  642. package/templates/init/docker/dockerignore.tpl +1 -0
  643. package/templates/init/docker/env.example.tpl +8 -1
  644. package/templates/init/gitignore.tpl +1 -0
  645. package/templates/init/hooks/change-reference.mjs +96 -17
  646. package/templates/init/hooks/production-gate.mjs +65 -11
  647. package/templates/init/jest.config.js.tpl +4 -1
  648. package/templates/init/platform/audit/audit.module.tsyringe.ts.tpl +25 -8
  649. package/templates/init/platform/audit/create-audit-trail.ts.tpl +59 -0
  650. package/templates/init/platform/audit/create-audit.ts.tpl +1 -46
  651. package/templates/init/platform/auth/authentication/development-header-authenticator.ts.tpl +7 -3
  652. package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +5 -0
  653. package/templates/init/platform/composition/compose-application.manual.ts.tpl +22 -7
  654. package/templates/init/platform/composition/compose-application.tsyringe.ts.tpl +2 -4
  655. package/templates/init/platform/config/app-config.ts.tpl +9 -0
  656. package/templates/init/platform/config/load-config.ts.tpl +24 -0
  657. package/templates/init/platform/database/data-source.typeorm.ts.tpl +6 -0
  658. package/templates/init/platform/database/gitkeep +0 -0
  659. package/templates/init/platform/database/knexfile.js.tpl +10 -3
  660. package/templates/init/platform/database/open-persistence.prisma.ts.tpl +5 -2
  661. package/templates/init/platform/database/persistence-over.prisma.ts.tpl +11 -3
  662. package/templates/init/platform/database/prisma.config.ts.tpl +6 -0
  663. package/templates/init/platform/database/schema.knex.ts.tpl +4 -3
  664. package/templates/init/platform/http/start-http-server.express.ts.tpl +9 -6
  665. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +5 -2
  666. package/templates/init/platform/http/start-http-server.hono.ts.tpl +5 -2
  667. package/templates/init/platform/jobs/job-settings.ts.tpl +3 -0
  668. package/templates/init/platform/privacy/run-export.manual.ts.tpl +24 -2
  669. package/templates/init/platform/privacy/run-export.tsyringe.ts.tpl +30 -1
  670. package/templates/init/scripts/audit-verify.ts.tpl +35 -0
  671. package/templates/init/scripts/privacy-export.manual.ts.tpl +1 -7
  672. package/templates/init/scripts/privacy-export.tsyringe.ts.tpl +1 -7
  673. package/templates/pipeline/github/dependabot.yml +6 -0
  674. package/templates/pipeline/github/workflows/ci.yml.tpl +26 -1
  675. package/templates/pipeline/github/workflows/claude-review.yml +3 -2
  676. package/templates/pipeline/github/workflows/claude-triage.yml +1 -1
  677. package/templates/pipeline/github/workflows/codeql.yml +2 -0
  678. package/templates/pipeline/github/workflows/copilot-setup-steps.yml +2 -0
  679. package/templates/pipeline/github/workflows/intent-to-spec.yml +12 -4
  680. package/templates/pipeline/github/workflows/pr-title.yml +2 -0
  681. package/templates/pipeline/gitlab/claude-review.gitlab-ci.yml.tpl +1 -1
  682. package/templates/pipeline/knip.json.tpl +1 -4
  683. package/templates/pipeline/package-scripts.json +2 -2
  684. package/templates/pipeline/renovate.json +11 -0
  685. package/templates/pipeline/vitest.config.ts.tpl +3 -2
  686. package/templates/presets/identity/context/__context__.codes.named.ts.tpl +1 -0
  687. package/templates/presets/identity/context/__context__.module.explicit.ts.tpl +1 -1
  688. package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.handler.ts.tpl +28 -1
  689. package/templates/presets/identity/context/domain/aggregates/invitation.aggregate.ts.tpl +13 -1
  690. package/templates/presets/identity/context/domain/aggregates/member.aggregate.ts.tpl +6 -1
  691. package/templates/presets/identity/context/domain/errors/invitation-withdrawn.error.named.ts.tpl +13 -0
  692. package/templates/presets/identity/context/domain/errors/invitation.error.factories.ts.tpl +8 -0
  693. package/templates/presets/identity/context/domain/services/role-rights.service.ts.tpl +23 -1
  694. package/templates/presets/identity/context/infrastructure/persistence/__context__.schema.drizzle.ts.tpl +1 -0
  695. package/templates/presets/identity/context/infrastructure/persistence/create-__context__-tables.schema.knex.ts.tpl +1 -0
  696. package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +6 -2
  697. package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +6 -2
  698. package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +6 -2
  699. package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +6 -2
  700. package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +6 -2
  701. package/templates/presets/identity/context/infrastructure/persistence/invitation-row.schema.knex.ts.tpl +1 -0
  702. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +2 -0
  703. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +2 -0
  704. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +2 -0
  705. package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -5
  706. package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -5
  707. package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -5
  708. package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -5
  709. package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -5
  710. package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.controller.kit-routes.ts.tpl +1 -0
  711. package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.controller.nest-routes.ts.tpl +1 -0
  712. package/templates/presets/identity/context/test/builders/invitation.builder.ts.tpl +15 -2
  713. package/templates/presets/identity/context/test/integration/invitation.repository.contract.spec.ts.tpl +10 -0
  714. package/templates/presets/identity/context/test/unit/accept-invitation.handler.spec.ts.tpl +114 -4
  715. package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
  716. package/templates/presets/identity/design.md.tpl +3 -1
  717. package/templates/presets/identity/prisma/models.prisma.tpl +1 -0
  718. package/templates/query/reader.fake.ts.tpl +4 -6
  719. package/templates/query/reader.in-memory.ts.tpl +1 -1
  720. package/templates/repository/drizzle/repository.ts.tpl +4 -3
  721. package/templates/repository/knex/table.tpl +1 -1
  722. package/templates/repository/prisma/repository.ts.tpl +24 -18
  723. package/templates/state-machine/state-machine.spec.ts.tpl +5 -0
  724. package/templates/init/platform/database/migration.knex.js.tpl +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"authz-docs.js","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,mvBAAmvB;QACxvB,GAAG,EAAE;;;mEAG0D;QAC/D,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,q0BAAq0B;QAC10B,GAAG,EAAE;;;;;4DAKmD;QACxD,IAAI,EAAE;;;;;;sCAM4B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE,mlFAAmlF;QACxlF,GAAG,EAAE;;;;;8CAKqC;QAC1C,IAAI,EAAE;;;;;kFAKwE;KAC/E;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;;;;wGAK8F;KACrG;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,u6CAAu6C;QAC56C,GAAG,EAAE;;;;;;qEAM4D;QACjE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,o/BAAo/B;QACz/B,GAAG,EAAE;;;;;gCAKuB;QAC5B,IAAI,EAAE;;;gCAGsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ykBAAykB;QAC9kB,GAAG,EAAE;;;;qDAI4C;QACjD,IAAI,EAAE;;;;;2GAKiG;KACxG;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,i1BAAi1B;QACt1B,GAAG,EAAE;;+FAEsF;QAC3F,IAAI,EAAE;;;;;IAKN;KACD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+kDAA+kD;QACplD,GAAG,EAAE;;;0DAGiD;QACtD,IAAI,EAAE;;;GAGP;KACA;CACF,CAAC"}
1
+ {"version":3,"file":"authz-docs.js","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,mvBAAmvB;QACxvB,GAAG,EAAE;;;mEAG0D;QAC/D,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,q0BAAq0B;QAC10B,GAAG,EAAE;;;;;4DAKmD;QACxD,IAAI,EAAE;;;;;;sCAM4B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE,mlFAAmlF;QACxlF,GAAG,EAAE;;;;;8CAKqC;QAC1C,IAAI,EAAE;;;;;kFAKwE;KAC/E;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;;;;wGAK8F;KACrG;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,u6CAAu6C;QAC56C,GAAG,EAAE;;;;;;qEAM4D;QACjE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,8yCAA8yC;QACnzC,GAAG,EAAE;;;;;gCAKuB;QAC5B,IAAI,EAAE;;;gCAGsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ykBAAykB;QAC9kB,GAAG,EAAE;;;;qDAI4C;QACjD,IAAI,EAAE;;;;;2GAKiG;KACxG;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,i1BAAi1B;QACt1B,GAAG,EAAE;;+FAEsF;QAC3F,IAAI,EAAE;;;;;IAKN;KACD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+kDAA+kD;QACplD,GAAG,EAAE;;;0DAGiD;QACtD,IAAI,EAAE;;;GAGP;KACA;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { RuleDoc } from '../model/rule-doc.js';
2
+ /** The reason and the examples of a rule another tool decides; a rule without them is a bug of the kit. */
3
+ export declare function delegatedDoc(id: string): RuleDoc;
4
+ //# sourceMappingURL=delegated-doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-doc.d.ts","sourceRoot":"","sources":["../../../src/check/explain/delegated-doc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,2GAA2G;AAC3G,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAQhD"}
@@ -0,0 +1,11 @@
1
+ import { CliError } from '../../cli-error.js';
2
+ import { DELEGATED_DOCS } from './delegated-docs.js';
3
+ /** The reason and the examples of a rule another tool decides; a rule without them is a bug of the kit. */
4
+ export function delegatedDoc(id) {
5
+ const doc = DELEGATED_DOCS[id];
6
+ if (doc === undefined) {
7
+ throw new CliError(`The rule "${id}" has no explanation.`, 'Report this as a bug of ddd-ts-kit.');
8
+ }
9
+ return doc;
10
+ }
11
+ //# sourceMappingURL=delegated-doc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-doc.js","sourceRoot":"","sources":["../../../src/check/explain/delegated-doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,2GAA2G;AAC3G,MAAM,UAAU,YAAY,CAAC,EAAU;IACrC,MAAM,GAAG,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IAE/B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,MAAM,IAAI,QAAQ,CAAC,aAAa,EAAE,uBAAuB,EAAE,qCAAqC,CAAC,CAAC;IACpG,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { RuleDoc } from '../model/rule-doc.js';
2
+ /**
3
+ * The rules another tool decides (the ESLint plugin, the formatter), explained as the rules of
4
+ * the checker are: the reason, written as `docs/ARCHITECTURE.md` and the page of the rule say it,
5
+ * and one example each way.
6
+ */
7
+ export declare const DELEGATED_DOCS: Readonly<Record<string, RuleDoc>>;
8
+ //# sourceMappingURL=delegated-docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/delegated-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6R5D,CAAC"}
@@ -0,0 +1,292 @@
1
+ /**
2
+ * The rules another tool decides (the ESLint plugin, the formatter), explained as the rules of
3
+ * the checker are: the reason, written as `docs/ARCHITECTURE.md` and the page of the rule say it,
4
+ * and one example each way.
5
+ */
6
+ export const DELEGATED_DOCS = {
7
+ 'domain/aggregate-encapsulation': {
8
+ why: 'An aggregate guards its invariants. A public constructor lets anyone build an invalid one, a public mutable property or a setter lets anyone change it without the rule that should have run.',
9
+ bad: `export class Invoice {
10
+ constructor(public status: string) {}
11
+ setStatus(status: string): void {
12
+ this.status = status;
13
+ }
14
+ }`,
15
+ good: `export class Invoice extends AggregateRoot<string> {
16
+ private constructor(id: string, private state: InvoiceState) {
17
+ super(id);
18
+ }
19
+ static create(id: string, now: Date): Invoice {
20
+ return new Invoice(id, { createdAt: now });
21
+ }
22
+ issue(at: Date): void {
23
+ this.state = { ...this.state, issuedAt: at };
24
+ this.record(new InvoiceIssued(this.id, at));
25
+ }
26
+ }`,
27
+ },
28
+ 'domain/value-object-immutability': {
29
+ why: 'A value object is its value. If it can change, two holders of the same instance disagree about what they hold, and equality by value stops meaning anything.',
30
+ bad: `export class Amount {
31
+ constructor(private cents: number) {}
32
+ add(other: Amount): void {
33
+ this.cents += other.cents;
34
+ }
35
+ }`,
36
+ good: `export class Amount extends ValueObject<AmountProps> {
37
+ add(other: Amount): Amount {
38
+ return new Amount({ cents: this.props.cents + other.props.cents });
39
+ }
40
+ }`,
41
+ },
42
+ 'domain/no-generic-error': {
43
+ why: 'An expected business failure has a name and a stable code that presentation maps to a status in one place. `new Error("...")` gives the caller a sentence to parse. The same holds for every error of the language, `TypeError`, `RangeError` and the others, thrown directly or through a `const`: none of them says what was refused, nor carries a code.',
44
+ bad: `throw new Error('Invoice already issued');
45
+ const failure = new TypeError('Invoice already issued');
46
+ throw failure;`,
47
+ good: `// "stack.refusals": "named", which init writes
48
+ throw InvoiceAlreadyIssued.forInvoice(this.id);
49
+ // "stack.refusals": "factories"
50
+ throw InvoiceError.alreadyIssued(this.id);`,
51
+ },
52
+ 'errors/through-factory': {
53
+ why: 'The code that refuses reads as a sentence: `throw SlotTaken.forCalendar(calendar.id, slot.startsAt)` under `named`, where each refusal is a class of its own, and `throw AppointmentError.slotTaken(calendar.id, slot.startsAt)` under `factories`, where the refusals of one concept live in one class. The factory writes the code, the message and the facts once. A `new` is a refusal whose code and message are whatever the caller wrote.',
54
+ bad: `import { SlotTaken } from '@/contexts/scheduling/domain/errors/slot-taken.error';
55
+
56
+ throw new SlotTaken(\`The slot at \${slot.startsAt.toISOString()} is held.\`);`,
57
+ good: `import { SlotTaken } from '@/contexts/scheduling/domain/errors/slot-taken.error';
58
+
59
+ throw SlotTaken.forCalendar(calendar.id, slot.startsAt);`,
60
+ },
61
+ 'errors/constructor-not-public': {
62
+ why: 'A public constructor lets any caller build a refusal with a code and a message of its own. `DomainRefusal` (the base of a refusal under `named`) and `ConceptError` (the base of a concept class under `factories`) of `@ddd-ts-kit/kernel` have a protected constructor, and a class that extends one declares none: a refusal then exists only through a static factory.',
63
+ bad: `export class SlotTakenError extends DomainError {
64
+ readonly code = 'SLOT_TAKEN';
65
+
66
+ constructor(calendarId: string) {
67
+ super(\`The slot on calendar \${calendarId} is already held.\`);
68
+ }
69
+ }`,
70
+ good: `export class SlotTaken extends DomainRefusal {
71
+ readonly code = SchedulingCodes.SlotTaken;
72
+
73
+ static forCalendar(calendarId: string) {
74
+ return SlotTaken.refusal(\`The slot on calendar \${calendarId} is already held.\`, { calendarId });
75
+ }
76
+ }`,
77
+ },
78
+ 'errors/factory-name': {
79
+ why: "The factory is read by the developer who refuses, the code by the client, the mapper, the audit trail and the tests. They must meet the same words, and those words are the business's. Under `named`, the class says what is refused and the factory what the refusal is about: `SlotTaken.forCalendar`, never `SlotTakenError.create`. Under `factories`, the factory says what is refused and the code repeats it: `slotTaken` and `SLOT_TAKEN`, never `create` and `BOOKING_FAILED`.",
80
+ bad: `export class SlotTakenError extends DomainRefusal {
81
+ readonly code = SchedulingCodes.SlotTakenError;
82
+
83
+ static slotTaken(calendarId: string) {
84
+ return SlotTakenError.refusal('The slot is already held.', { calendarId });
85
+ }
86
+ }`,
87
+ good: `export class SlotTaken extends DomainRefusal {
88
+ readonly code = SchedulingCodes.SlotTaken;
89
+
90
+ static forCalendar(calendarId: string) {
91
+ return SlotTaken.refusal('The slot is already held.', { calendarId });
92
+ }
93
+ }`,
94
+ },
95
+ 'clean/no-magic-number': {
96
+ why: "`hours * 60`, `limit = 100`, `padStart(2, '0')`: a number in the middle of the model says neither what it is nor who decided it. The second copy of it drifts from the first, and a rule of the business (a booking window, a reminder delay, a page limit) hides in an expression. Named once, it reads as the language: `MINUTES_PER_HOUR`, `LONGEST_ADDRESS`, `BookingWindow.standard()`.",
97
+ bad: `function minuteOf(hours: number, minutes: number): number {
98
+ return hours * 60 + minutes;
99
+ }`,
100
+ good: `const MINUTES_PER_HOUR = 60;
101
+
102
+ function minuteOf(hours: number, minutes: number): number {
103
+ return hours * MINUTES_PER_HOUR + minutes;
104
+ }`,
105
+ },
106
+ 'clean/formatted': {
107
+ why: 'One way to lay out a file leaves nothing to discuss in a review and nothing to decide while writing: a line is at most 120 columns wide, and a diff shows what changed, never how somebody likes their line breaks. Biome lays out every TypeScript, JavaScript and JSON file with the `biome.json` of the project, and `npm run format` settles what `npm run format:check` reports.',
108
+ bad: `export const total=(lines:readonly Line[])=>lines.reduce((sum,line)=>sum+line.amount,0)`,
109
+ good: `// as npm run format writes it
110
+ export const total = (lines: readonly Line[]) => lines.reduce((sum, line) => sum + line.amount, 0);`,
111
+ },
112
+ 'application/handler-shape': {
113
+ why: 'A handler is one use case: one class, called by the bus through `execute`. A second public method is a second use case hiding in the first, or a business decision that belongs to the domain.',
114
+ bad: `export class IssueInvoiceHandler {
115
+ async handle(command: IssueInvoiceCommand): Promise<string> {}
116
+ computeTotal(): number {}
117
+ }`,
118
+ good: `export class IssueInvoiceHandler implements CommandHandler<IssueInvoiceCommand> {
119
+ async execute(command: IssueInvoiceCommand): Promise<string> {}
120
+ private total(): number {}
121
+ }`,
122
+ },
123
+ 'application/command-query-separation': {
124
+ why: 'A query answers and never changes state: it can then be retried, cached and run on a replica. A query that saves is a command with a return value.',
125
+ bad: `export class SearchInvoicesHandler {
126
+ async execute(query: SearchInvoicesQuery): Promise<SearchInvoicesResult> {
127
+ await this.audit.save(query);
128
+ return this.reader.read(query);
129
+ }
130
+ }`,
131
+ good: `export class SearchInvoicesHandler {
132
+ async execute(query: SearchInvoicesQuery): Promise<SearchInvoicesResult> {
133
+ return this.reader.read(query);
134
+ }
135
+ }`,
136
+ },
137
+ 'presentation/controller-shape': {
138
+ why: 'A controller is one route: one class, called by the pipeline through `handle`. The class is found by the name of its file, read in one sitting, and its declaration is the single statement of the route. A second public method is a second route hiding in the first, or a translation that belongs to a request mapper or a serializer.',
139
+ bad: `@Controller({ group: InvoicesRoutes, method: 'POST', path: '/', summary: 'Issue invoice', response: { status: 201, body: accepted } })
140
+ export class IssueInvoiceController {
141
+ async execute(request: HttpRequest): Promise<IssueInvoiceAccepted> {}
142
+ totalOf(body: IssueInvoiceBody): number {}
143
+ }`,
144
+ good: `@Controller({ group: InvoicesRoutes, method: 'POST', path: '/', summary: 'Issue invoice', body, response: { status: 201, body: accepted } })
145
+ export class IssueInvoiceController {
146
+ constructor(private readonly commands: CommandBus) {}
147
+
148
+ async handle(request: HttpRequest<{ body: IssueInvoiceBody }>): Promise<IssueInvoiceAccepted> {}
149
+ }`,
150
+ },
151
+ 'presentation/controller-delegates': {
152
+ why: 'A controller holds no business logic, and the way to keep it so is to give it nothing to decide with. What it may be given is the bus of its method, a request mapper and a serializer. With a repository, a port or a domain service in its constructor, a rule would be written at the edge, where a job or an event handler calling the same use case does not pass.',
153
+ bad: `@Controller({ group: InvoicesRoutes, method: 'GET', path: '/:invoiceId', summary: 'Get invoice', response: { status: 200, body: answer } })
154
+ export class GetInvoiceController {
155
+ constructor(
156
+ private readonly commands: CommandBus,
157
+ private readonly invoices: InvoiceRepository,
158
+ ) {}
159
+ }`,
160
+ good: `@Controller({ group: InvoicesRoutes, method: 'GET', path: '/:invoiceId', summary: 'Get invoice', response: { status: 200, body: answer } })
161
+ export class GetInvoiceController {
162
+ constructor(
163
+ private readonly queries: QueryBus,
164
+ private readonly serializer: GetInvoiceSerializer,
165
+ ) {}
166
+ }`,
167
+ },
168
+ 'presentation/shared-cache-varies': {
169
+ why: 'A shared cache (Varnish, a CDN) files an answer by its URL and hands it to the next caller who asks the same URL. The answer of a route that knows its caller went through a decision of authorization made for that caller: its permission, its access scope, its tenant. Kept in a shared cache, it is served to the next caller without that decision being made again. A `public` cache policy on such a route must say what the answer depends on, in `vary`, so that the cache keeps one answer per value of it; usually the answer is `private` instead.',
170
+ bad: `@RouteGroup({
171
+ prefix: '/agenda',
172
+ guards: [Authenticated],
173
+ cache: { scope: CacheScope.public, maxAge: '1m' },
174
+ })
175
+ export class AgendaRoutes {}`,
176
+ good: `@RouteGroup({
177
+ prefix: '/agenda',
178
+ guards: [Authenticated],
179
+ cache: { scope: CacheScope.private, maxAge: '0s', mustRevalidate: true, etag: 'representation' },
180
+ })
181
+ export class AgendaRoutes {}`,
182
+ },
183
+ 'presentation/guard-at-the-edge': {
184
+ why: 'A guard is a control at the edge over a set of routes: is the caller authenticated, does it hold a role, does the tenant of its token match the one of the path, is the key of the request known. A business permission is another thing: it depends on the element (who owns this appointment, is this invoice still a draft) and it is declared on the use case with `@Requires`, so that a job or an event handler sending the same command is held to the same right. A guard that loads an aggregate decides a permission at the one door where not every caller passes.',
185
+ bad: `import { AppointmentRepository } from '@/contexts/scheduling/domain/repositories/appointment.repository';
186
+
187
+ @Guard()
188
+ export class OwnAppointmentGuard implements Guard {
189
+ constructor(private readonly appointments: AppointmentRepository) {}
190
+ }`,
191
+ good: `@Guard()
192
+ export class SameClinicGuard implements Guard {
193
+ readonly documents = { errors: ['FORBIDDEN'] };
194
+
195
+ check({ actor, params }: GuardRequest): void {
196
+ if (actor.tenantId !== params['clinicId']) {
197
+ throw new ForbiddenError('The caller belongs to another clinic');
198
+ }
199
+ }
200
+ }`,
201
+ },
202
+ 'test/no-only-no-skip': {
203
+ why: 'A test left aside makes the run green while something is not proven. `.only` was written to debug one test and forgotten: the others no longer run. `.skip` keeps a test in the file while nothing holds it, and the day it would have failed nobody is told; `.skipIf(true)` and `.runIf(false)` are the same thing with a condition that never changes. The kit names what is not proven yet instead: an `it.todo` with the behaviour as its title, which `ddd-ts-kit todo` lists and `story --gate close` refuses while one belongs to the story.',
204
+ bad: `it.only('refuses to pay an invoice twice', () => { ... });
205
+ describe.skip('Invoice', () => { ... });
206
+ it.skipIf(true)('records the payment', () => { ... });`,
207
+ good: `it('refuses to pay an invoice twice', () => { ... });
208
+ it.todo('refuses to pay an invoice whose customer is closed');
209
+ describe.runIf(process.env['VARNISH_URL'] !== undefined)('through Varnish', () => { ... });`,
210
+ },
211
+ 'test/title-states-a-rule': {
212
+ why: 'The titles of a spec are the only part of it the whole team reads: the report of a failed run, the list `npm test` prints, the review. Written as rules, in the words of the business, they are the specification of the unit, and a new test is written by stating one more rule. Written as `should ...`, `test ...` or after a method, they say that something is tested without saying what is true, and the reader opens the body to find out.',
213
+ bad: `describe('Invoice tests', () => {
214
+ it('should refuse a second payment', () => { ... });
215
+ it('execute() saves the invoice', () => { ... });
216
+ it('Pays the invoice correctly', () => { ... });
217
+ });`,
218
+ good: `describe('Invoice', () => {
219
+ it('refuses to pay an invoice twice', () => { ... });
220
+ it('saves the invoice and answers its identifier', () => { ... });
221
+ it('#US5.02 AC1 a customer places an order', pending(async () => { ... }));
222
+ it.each(kinds)('%s announces an appointment to come', (kind) => { ... });
223
+ });`,
224
+ },
225
+ 'test/no-logic': {
226
+ why: 'A test is read without being run: it arranges a state, acts once, asserts what is true afterwards, and fails for one reason. An `if` in a test is a second test hiding in the first, or a path the test takes without saying which; a loop asserts several cases under one title, and the report names none of them; a `try` catches what the runner would have reported with its stack. The logic a test seems to need belongs to what it uses: a builder decides how a paid invoice is built, a fake decides when the mailer fails, a helper decides what a page holds.',
227
+ bad: `it('accepts every kind', () => {
228
+ for (const kind of kinds) {
229
+ expect(NotificationKind.create(kind).value).toBe(kind);
230
+ }
231
+ });
232
+
233
+ it('refuses a second payment', () => {
234
+ try {
235
+ invoice.pay(at);
236
+ } catch (error) {
237
+ expect(error).toMatchObject({ code: 'INVOICE_ALREADY_PAID' });
238
+ }
239
+ });`,
240
+ good: `it.each(kinds)('accepts the kind %s', (kind) => {
241
+ expect(NotificationKind.create(kind).value).toBe(kind);
242
+ });
243
+
244
+ it('refuses a second payment', () => {
245
+ given(anInvoice().paid())
246
+ .when((invoice) => invoice.pay(at))
247
+ .thenError('INVOICE_ALREADY_PAID');
248
+ });`,
249
+ },
250
+ 'test/assertion-present': {
251
+ why: 'A test that asserts nothing passes whatever the code does, and raises the coverage rate while proving nothing: it is the gap `test/coverage-governed` cannot see. The kit asserts outcomes: the state of a fake, the facts recorded, the refusal by its code, the answer of a route.',
252
+ bad: `it('issues the invoice', async () => {
253
+ await application.commandBus.execute(new IssueInvoiceCommand(holder, 'customer-1'));
254
+ });
255
+
256
+ it('refuses a second payment');`,
257
+ good: `it('issues the invoice and answers its identifier', async () => {
258
+ const id = await application.commandBus.execute(new IssueInvoiceCommand(holder, 'customer-1'));
259
+
260
+ expect(await invoiceRepository.findById(id)).toBeDefined();
261
+ });
262
+
263
+ it.todo('refuses a second payment');`,
264
+ },
265
+ 'test/refusal-by-code': {
266
+ why: 'A refusal of the model carries a code and its facts (`INVOICE_ALREADY_PAID`, `{ invoiceId }`): the client receives them in the problem document, the catalogue of the context lists them, the reader of the test learns which rule refused. A message is prose that a rewording changes without changing the rule; the class of one error is an implementation the factories of `domain/errors/` may fold into another. A `toThrow()` without an argument accepts any failure, a `TypeError` of the test included.',
267
+ bad: `expect(() => invoice.pay(at)).toThrow('already paid');
268
+ expect(() => invoice.pay(at)).toThrow(InvoiceAlreadyPaid);
269
+ expect(() => Email.create(' ')).toThrow();
270
+ await expect(bus.execute(command)).rejects.toThrowError(/forbidden/);`,
271
+ good: `given(anInvoice().paid())
272
+ .when((invoice) => invoice.pay(at))
273
+ .thenError('INVOICE_ALREADY_PAID', { invoiceId: 'invoice-1' });
274
+
275
+ expectRefusal(() => Email.create(' '), 'INVALID_EMAIL', { given: ' ' });
276
+
277
+ await expect(bus.execute(command)).rejects.toMatchObject({ code: 'FORBIDDEN' });
278
+
279
+ expectProblem(response, { status: 409, code: 'SLOT_TAKEN' });`,
280
+ },
281
+ 'test/no-snapshot': {
282
+ why: 'A snapshot records whatever the code produced the first time, and is renewed with one flag the next time it differs: it asserts nothing a reader can check against the rule, and it fails on every field the rule does not depend on. A test states the fields that matter, built in the test, so that the reader sees the cause of the outcome.',
283
+ bad: `expect(invoice.toState()).toMatchSnapshot();
284
+ expect(() => invoice.pay(at)).toThrowErrorMatchingInlineSnapshot();`,
285
+ good: `expect(invoice.toState()).toMatchObject({ status: 'paid', paidAt: at });
286
+
287
+ given(anInvoice().paid())
288
+ .when((invoice) => invoice.pay(at))
289
+ .thenError('INVOICE_ALREADY_PAID');`,
290
+ },
291
+ };
292
+ //# sourceMappingURL=delegated-docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-docs.js","sourceRoot":"","sources":["../../../src/check/explain/delegated-docs.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAsC;IAC/D,gCAAgC,EAAE;QAChC,GAAG,EAAE,+LAA+L;QACpM,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;;;;;;;EAWR;KACC;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,8JAA8J;QACnK,GAAG,EAAE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1B;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,+iBAA+iB;QACpjB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;;;;;EASR;KACC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;uDAE8C;QACnD,IAAI,EAAE;;4FAEkF;KACzF;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,qbAAqb;QAC1b,GAAG,EAAE;;;;IAIL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,eAAe,EAAE;QACf,GAAG,EAAE,2iBAA2iB;QAChjB,GAAG,EAAE;;;;;;;;;;;;IAYL;QACA,IAAI,EAAE;;;;;;;;IAQN;KACD;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,sRAAsR;QAC3R,GAAG,EAAE;;;;gCAIuB;QAC5B,IAAI,EAAE;;;;;;qCAM2B;KAClC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ofAAof;QACzf,GAAG,EAAE;;;sEAG6D;QAClE,IAAI,EAAE;;;;;;;;8DAQoD;KAC3D;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,kVAAkV;QACvV,GAAG,EAAE;oEAC2D;QAChE,IAAI,EAAE;;;;sCAI4B;KACnC;CACF,CAAC"}
@@ -49,7 +49,7 @@ export class SlotTaken extends DomainRefusal {
49
49
  }`,
50
50
  },
51
51
  'errors/known-code': {
52
- why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code exists when a factory or an error class of the context of the route sets it, when the <context>.codes.ts of that context lists it (under "stack.refusals": "named"), when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, NOT_ACCEPTABLE, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, the conditions of a write: PRECONDITION_FAILED, PRECONDITION_REQUIRED, and the refusals of a file: FILE_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, FILE_NOT_FOUND, FILE_REJECTED, INVALID_FILE_KEY. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" and "named".',
52
+ why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code exists when a factory or an error class of the context of the route sets it, when the <context>.codes.ts of that context lists it (under "stack.refusals": "named"), when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, NOT_ACCEPTABLE, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, SERVICE_UNAVAILABLE (a unit of work the database could not serve in time), the conditions of a write: PRECONDITION_FAILED, PRECONDITION_REQUIRED, and the refusals of a file: FILE_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, FILE_NOT_FOUND, FILE_REJECTED, INVALID_FILE_KEY. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" and "named".',
53
53
  bad: `// domain/errors/appointment.error.ts sets 'SLOT_TAKEN'
54
54
  defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_ALREADY_TAKEN'], security: ['bearer'] }, book);`,
55
55
  good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);`,
@@ -1 +1 @@
1
- {"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;;;;;EAQP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,uoCAAuoC;QAC5oC,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
1
+ {"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;;;;;EAQP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,ktCAAktC;QACvtC,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"layer-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqCxD,CAAC"}
1
+ {"version":3,"file":"layer-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuCxD,CAAC"}
@@ -1,21 +1,23 @@
1
1
  export const LAYER_DOCS = {
2
2
  'layer/domain-purity': {
3
- why: 'The domain is the part of the system that has to survive a change of framework, database or transport. Every outside import ties a business rule to a technical choice and makes it impossible to test without that choice. Values that come from the outside world (ids, time, randomness) enter as parameters. The packages that apply a concern from outside (@ddd-ts-kit/aspects, audit, redis, scheduling, sentry, tracing) are refused whatever `domainAllowedPackages` says. The kernel itself is allowed, its entry @ddd-ts-kit/kernel/declarations is not: a declaration is wiring, and the domain declares nothing, neither a decorator on a class nor a dependency list. A repository port is a plain abstract class.',
3
+ why: 'The domain is the part of the system that has to survive a change of framework, database or transport. Every outside import ties a business rule to a technical choice and makes it impossible to test without that choice. Values that come from the outside world (ids, time, randomness) enter as parameters. The packages that apply a concern from outside (@ddd-ts-kit/aspects, audit, redis, scheduling, sentry, tracing) are refused whatever `domainAllowedPackages` says. The kernel itself is allowed, its entry @ddd-ts-kit/kernel/declarations is not: a declaration is wiring, and the domain declares nothing, neither a decorator on a class nor a dependency list. A repository port is a plain abstract class. An allowed package of the kit does not allow its entries for adapters, wiring and test doubles (@ddd-ts-kit/kernel/testing, @ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing): the domain imports one only when `domainAllowedPackages` names that entry itself.',
4
4
  bad: `// domain/aggregates/invoice.aggregate.ts
5
5
  import { randomUUID } from 'node:crypto';
6
6
  import { IsEmail } from 'class-validator';
7
7
  import { Logged } from '@ddd-ts-kit/aspects/decorators';
8
- import { Repository } from '@ddd-ts-kit/kernel/declarations';`,
8
+ import { Repository } from '@ddd-ts-kit/kernel/declarations';
9
+ import { FixedClock } from '@ddd-ts-kit/kernel/testing';`,
9
10
  good: `// domain/aggregates/invoice.aggregate.ts
10
11
  import { AggregateRoot } from '@ddd-ts-kit/kernel';
11
12
  import { Money } from '@/contexts/billing/domain/value-objects/money.vo';`,
12
13
  },
13
14
  'layer/application-inward': {
14
- why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container. A background job (application/background/*.background-job.ts), and no other file of the layer, also imports @ddd-ts-kit/validation and the validation library of the stack, no other, for the schema of its payload: the payload a queue keeps outlives the deploy that enqueued it, like the payload of an integration event, and the worker reads it with that schema before each run.',
15
+ why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container. A background job (application/background/*.background-job.ts), and no other file of the layer, also imports @ddd-ts-kit/validation and the validation library of the stack, no other, for the schema of its payload: the payload a queue keeps outlives the deploy that enqueued it, like the payload of an integration event, and the worker reads it with that schema before each run. @ddd-ts-kit/auth is allowed for permissions and policies, not its adapters, its wiring or its test doubles (@ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing, nor @ddd-ts-kit/kernel/testing): a use case imports one only when `applicationAllowedPackages` names that entry itself.',
15
16
  bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
16
17
  import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';
17
18
  import { RedisCache } from '@ddd-ts-kit/redis';
18
- import { retry } from '@ddd-ts-kit/aspects';`,
19
+ import { retry } from '@ddd-ts-kit/aspects';
20
+ import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';`,
19
21
  good: `// application/commands/issue-invoice/issue-invoice.handler.ts
20
22
  import { Cache, Clock } from '@ddd-ts-kit/kernel';
21
23
  import { CommandHandler } from '@ddd-ts-kit/kernel/declarations';
@@ -1 +1 @@
1
- {"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,ksBAAksB;QACvsB,GAAG,EAAE;;;;8DAIqD;QAC1D,IAAI,EAAE;;0EAEgE;KACvE;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,mlCAAmlC;QACxlC,GAAG,EAAE;;;6CAGoC;QACzC,IAAI,EAAE;;;+FAGqF;KAC5F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;2GACkG;QACvG,IAAI,EAAE;wHAC8G;KACrH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;oFAC2E;QAChF,IAAI,EAAE;+FACqF;KAC5F;CACF,CAAC"}
1
+ {"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,y8BAAy8B;QAC98B,GAAG,EAAE;;;;;yDAKgD;QACrD,IAAI,EAAE;;0EAEgE;KACvE;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,+2CAA+2C;QACp3C,GAAG,EAAE;;;;mEAI0D;QAC/D,IAAI,EAAE;;;+FAGqF;KAC5F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;2GACkG;QACvG,IAAI,EAAE;wHAC8G;KACrH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;oFAC2E;QAChF,IAAI,EAAE;+FACqF;KAC5F;CACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const PORTS_DOCS = {
2
2
  'ports/abstract-class': {
3
- why: 'A port is a contract and, at once, the injection token under which its adapter is bound: the abstract class names the dependency and carries its type. A port that holds a body, a constructor, an initializer or a hidden member is no longer a contract: a fake or a plain object cannot stand for it, and the container refuses to bind it. An interface vanishes at run time and cannot be a token, so a port file declares none. One exception is a member: `static readonly tokenKey`, the identity of a port a published package exposes. Checked in domain/repositories/*.repository.ts and application/ports/*.port.ts.',
3
+ why: 'A port is a contract and, at once, the injection token under which its adapter is bound: the abstract class names the dependency and carries its type. A port that holds a body, a constructor, an initializer or a hidden member is no longer a contract: a fake or a plain object cannot stand for it, and the container refuses to bind it. An interface vanishes at run time and cannot be a token, so a port file declares none, and a port file that declares no abstract class at all (a type, a token) is reported too. One exception is a member: `static readonly tokenKey`, the identity of a port a published package exposes. Checked in domain/repositories/*.repository.ts and application/ports/*.port.ts.',
4
4
  bad: `// application/ports/payment-gateway.port.ts
5
5
  export interface PaymentGateway { charge(invoiceId: string): Promise<void> }
6
6
  export abstract class Mailer {
@@ -1 +1 @@
1
- {"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,kmBAAkmB;QACvmB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;uEAK6D;KACpE;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;;;kHAIyG;QAC9G,IAAI,EAAE;;;;+DAIqD;KAC5D;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;;;;sFAI6E;QAClF,IAAI,EAAE;;;;;;+EAMqE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,omBAAomB;QACzmB,GAAG,EAAE;;;;;;;;qGAQ4F;QACjG,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,4WAA4W;QACjX,GAAG,EAAE;;;;iGAIwF;QAC7F,IAAI,EAAE;;;;iGAIuF;KAC9F;CACF,CAAC"}
1
+ {"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,4rBAA4rB;QACjsB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;uEAK6D;KACpE;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;;;kHAIyG;QAC9G,IAAI,EAAE;;;;+DAIqD;KAC5D;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;;;;sFAI6E;QAClF,IAAI,EAAE;;;;;;+EAMqE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,omBAAomB;QACzmB,GAAG,EAAE;;;;;;;;qGAQ4F;QACjG,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,4WAA4W;QACjX,GAAG,EAAE;;;;iGAIwF;QAC7F,IAAI,EAAE;;;;iGAIuF;KAC9F;CACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const TREE_DOCS = {
2
2
  'tree/closed': {
3
- why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual. A context divided into modules of its model keeps one more place in the explicit style: <module>/<module>.module.ts, at the root of the folder of each module, registers what the module holds (its handlers, consumers, reactions, jobs and routes) and is composed by <context>.module.ts, which then stays small; nothing else sits at the root of a module. The tree is read as git sees it: what git ignores, and a dot-directory of a context such as the .claude/ a sandbox leaves behind, are not part of it.',
3
+ why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. Its sources are .ts files: a .js, .mjs, .cjs, .jsx, .tsx, .mts or .cts file in a context is read by no rule and is reported. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual. A context divided into modules of its model keeps one more place in the explicit style: <module>/<module>.module.ts, at the root of the folder of each module, registers what the module holds (its handlers, consumers, reactions, jobs and routes) and is composed by <context>.module.ts, which then stays small; nothing else sits at the root of a module. The tree is read as git sees it: what git ignores, and a dot-directory of a context such as the .claude/ a sandbox leaves behind, are not part of it.',
4
4
  bad: `contexts/billing/domain/utils/rounding.ts`,
5
5
  good: `contexts/billing/domain/value-objects/money.vo.ts
6
6
  contexts/billing/billing.declarations.ts // declared style only
@@ -18,7 +18,7 @@ contexts/billing/invoices/invoices.module.ts // explicit st
18
18
  good: `docs/architecture/design-review.md: "add the port \`src/contexts/billing/application/ports/credit-limit-reader.port.ts\`"`,
19
19
  },
20
20
  'naming/suffix': {
21
- why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts.',
21
+ why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts. A barrel (index.ts) in a role folder that has a suffix is reported: a role folder holds its role files and nothing else, each imported by its own path.',
22
22
  bad: `domain/aggregates/Invoice.ts`,
23
23
  good: `domain/aggregates/invoice.aggregate.ts
24
24
  application/commands/issue-invoice/issue-invoice.result.ts
@@ -1 +1 @@
1
- {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,q0CAAq0C;QAC10C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;2GAGiG;KACxG;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G,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
1
+ {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,k8CAAk8C;QACv8C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;2GAGiG;KACxG;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,g9BAAg9B;QACr9B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,ihCAAihC;QACthC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;;;2FAQiF;KACxF;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,qlCAAqlC;QAC1lC,GAAG,EAAE;gHACuG;QAC5G,IAAI,EAAE;;;;;qHAK2G;KAClH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"authz-policy-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0CzC,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EA+FnD,CAAC"}
1
+ {"version":3,"file":"authz-policy-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0CzC,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EAmHnD,CAAC"}
@@ -33,6 +33,18 @@ export const AUTHZ_POLICY_FIXTURES = [
33
33
  expect: { file: HANDLER },
34
34
  files: withPolicy(declaredHandler(' await this.invoices.save(command);')),
35
35
  },
36
+ {
37
+ ruleId: 'authz/policy-asked',
38
+ name: 'a handler that keeps the decision on the permission and stops on a denial',
39
+ expect: 'pass',
40
+ files: withPolicy(declaredHandler(" const decision = await this.access.decide(command.actor, billingPermissions['invoice.issue'], command);\n\n if (!decision.allowed) {\n return;\n }\n\n await this.invoices.save(command);")),
41
+ },
42
+ {
43
+ ruleId: 'authz/policy-asked',
44
+ name: 'a handler that asks the permission with decide and drops the decision',
45
+ expect: { file: HANDLER },
46
+ files: withPolicy(declaredHandler(" await this.access.decide(command.actor, billingPermissions['invoice.issue'], command);\n await this.invoices.save(command);")),
47
+ },
36
48
  {
37
49
  ruleId: 'authz/policy-asked',
38
50
  name: 'a handler still carrying the TODO(domain) the generator left where the policy is asked',
@@ -65,7 +77,7 @@ export const AUTHZ_POLICY_FIXTURES = [
65
77
  [MODULE]: EXPLICIT_MODULE,
66
78
  [COMMAND]: 'export class IssueInvoiceCommand {}\n',
67
79
  [POLICY]: DEFINED_POLICY,
68
- ...handler("export class IssueInvoiceHandler {\n async execute(command: IssueInvoiceCommand): Promise<void> {\n await this.access.decide(command.actor, billingPermissions['invoice.issue'], command);\n }\n}\n"),
80
+ ...handler("export class IssueInvoiceHandler {\n async execute(command: IssueInvoiceCommand): Promise<boolean> {\n return (await this.access.decide(command.actor, billingPermissions['invoice.issue'], command)).allowed;\n }\n}\n"),
69
81
  }),
70
82
  },
71
83
  {
@@ -1 +1 @@
1
- {"version":3,"file":"authz-policy-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,E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D;QACjD,mEAAmE;QACnE,wGAAwG;QACxG,uHAAuH;QACvH,EAAE;QACF,sCAAsC;QACtC,oCAAoC;QACpC,gBAAgB;QAChB,sCAAsC;QACtC,mDAAmD;QACnD,QAAQ;QACR,EAAE;QACF,gEAAgE;QAChE,IAAI;QACJ,KAAK;QACL,GAAG;QACH,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,8GAA8G;AAC9G,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,wBAAwB,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACnH,CAAC"}
1
+ {"version":3,"file":"authz-policy-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAE7E,6IAA6I;AAC7I,MAAM,yBAAyB,GAAG,MAAM,CACtC,6DAA6D,EAC7D,uHAAuH,EACvH,mGAAmG,EACnG,4CAA4C,EAC5C,EAAE,EACF,2FAA2F,EAC3F,iGAAiG,EACjG,iGAAiG,EACjG,EAAE,EACF,6DAA6D,CAC9D,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,2DAA2D;IAC3D,EAAE;IACF,qFAAqF;IACrF,uCAAuC;IACvC,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;A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sC;QACtC,oCAAoC;QACpC,gBAAgB;QAChB,sCAAsC;QACtC,mDAAmD;QACnD,QAAQ;QACR,EAAE;QACF,gEAAgE;QAChE,IAAI;QACJ,KAAK;QACL,GAAG;QACH,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,8GAA8G;AAC9G,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,wBAAwB,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACnH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EAyDtC,CAAC"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA2DtC,CAAC"}
@@ -31,6 +31,7 @@ import { IMPORTS_FIXTURES } from './imports-fixtures.js';
31
31
  import { LANGUAGE_FIXTURES } from './language-fixtures.js';
32
32
  import { VOCABULARY_FIXTURES } from './vocabulary-fixtures.js';
33
33
  import { OTHER_LANGUAGE_FIXTURES } from './other-language-fixtures.js';
34
+ import { LAYER_ENTRY_FIXTURES } from './layer-entry-fixtures.js';
34
35
  import { LAYER_FIXTURES } from './layer-fixtures.js';
35
36
  import { LAYOUT_FIXTURES } from './layout-fixtures.js';
36
37
  import { LIFECYCLE_FIXTURES } from './lifecycle-fixtures.js';
@@ -42,6 +43,7 @@ import { NEST_FIXTURES } from './nest-fixtures.js';
42
43
  import { OUTBOX_FIXTURES } from './outbox-fixtures.js';
43
44
  import { PERSISTENCE_FIXTURES } from './persistence-fixtures.js';
44
45
  import { PORTS_FIXTURES } from './ports-fixtures.js';
46
+ import { ROLE_FOLDER_FIXTURES } from './role-folder-fixtures.js';
45
47
  import { PURITY_FIXTURES } from './purity-fixtures.js';
46
48
  import { SCHEDULING_FIXTURES } from './scheduling-fixtures.js';
47
49
  import { SHARED_KERNEL_FIXTURES } from './shared-kernel-fixtures.js';
@@ -96,6 +98,7 @@ export const FIXTURES = [
96
98
  ...VOCABULARY_FIXTURES,
97
99
  ...OTHER_LANGUAGE_FIXTURES,
98
100
  ...LAYER_FIXTURES,
101
+ ...LAYER_ENTRY_FIXTURES,
99
102
  ...LAYOUT_FIXTURES,
100
103
  ...LIFECYCLE_FIXTURES,
101
104
  ...MODULE_FIXTURES,
@@ -114,6 +117,7 @@ export const FIXTURES = [
114
117
  ...TEST_FIXTURES,
115
118
  ...TRACING_FIXTURES,
116
119
  ...TREE_FIXTURES,
120
+ ...ROLE_FOLDER_FIXTURES,
117
121
  ...VALUE_OBJECT_FILE_FIXTURES,
118
122
  ...MODEL_FUNCTION_FIXTURES,
119
123
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,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ClB,GAAG,sBAAsB;IACzB,GAAG,uBAAuB;IAC1B,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,oBAAoB;IACvB,GAAG,cAAc;IACjB,GAAG,mBAAmB;IACtB,GAAG,gBAAgB;IACnB,GAAG,iBAAiB;IACpB,GAAG,mBAAmB;IACtB,GAAG,uBAAuB;IAC1B,GAAG,cAAc;IACjB,GAAG,oBAAoB;IACvB,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,oBAAoB;IACvB,GAAG,cAAc;IACjB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,aAAa;IAChB,GAAG,yBAAyB;IAC5B,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,uBAAuB;CAC3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Fixture } from './fixture.js';
2
+ /** An allowed package of the kit does not allow its entries for adapters, wiring and test doubles. */
3
+ export declare const LAYER_ENTRY_FIXTURES: readonly Fixture[];
4
+ //# sourceMappingURL=layer-entry-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer-entry-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/layer-entry-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC,sGAAsG;AACtG,eAAO,MAAM,oBAAoB,EAAE,SAAS,OAAO,EAqClD,CAAC"}