ddd-ts-kit 0.114.1 → 0.115.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 (2121) hide show
  1. package/CHANGELOG.md +360 -0
  2. package/README.fr.md +40 -29
  3. package/README.md +38 -27
  4. package/dist/build/specifier-literals.d.ts.map +1 -1
  5. package/dist/build/specifier-literals.js +6 -6
  6. package/dist/build/specifier-literals.js.map +1 -1
  7. package/dist/check/catalogue/default-severity.d.ts +3 -0
  8. package/dist/check/catalogue/default-severity.d.ts.map +1 -0
  9. package/dist/check/catalogue/default-severity.js +8 -0
  10. package/dist/check/catalogue/default-severity.js.map +1 -0
  11. package/dist/check/catalogue/delegated-rules.d.ts +2 -0
  12. package/dist/check/catalogue/delegated-rules.d.ts.map +1 -1
  13. package/dist/check/catalogue/delegated-rules.js.map +1 -1
  14. package/dist/check/catalogue/eslint-judged-rules.d.ts +7 -0
  15. package/dist/check/catalogue/eslint-judged-rules.d.ts.map +1 -0
  16. package/dist/check/catalogue/eslint-judged-rules.js +64 -0
  17. package/dist/check/catalogue/eslint-judged-rules.js.map +1 -0
  18. package/dist/check/catalogue/eslint-only-rules.d.ts +8 -4
  19. package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
  20. package/dist/check/catalogue/eslint-only-rules.js +23 -1
  21. package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
  22. package/dist/check/catalogue/formatter-rule.d.ts +1 -0
  23. package/dist/check/catalogue/formatter-rule.d.ts.map +1 -1
  24. package/dist/check/catalogue/formatter-rule.js +1 -0
  25. package/dist/check/catalogue/formatter-rule.js.map +1 -1
  26. package/dist/check/catalogue/rule-ids.d.ts.map +1 -1
  27. package/dist/check/catalogue/rule-ids.js +2 -2
  28. package/dist/check/catalogue/rule-ids.js.map +1 -1
  29. package/dist/check/catalogue/rules.d.ts +1 -0
  30. package/dist/check/catalogue/rules.d.ts.map +1 -1
  31. package/dist/check/catalogue/rules.js +9 -1
  32. package/dist/check/catalogue/rules.js.map +1 -1
  33. package/dist/check/catalogue/severity-of.d.ts +7 -0
  34. package/dist/check/catalogue/severity-of.d.ts.map +1 -0
  35. package/dist/check/catalogue/severity-of.js +7 -0
  36. package/dist/check/catalogue/severity-of.js.map +1 -0
  37. package/dist/check/catalogue/standalone-rule-ids.d.ts +3 -0
  38. package/dist/check/catalogue/standalone-rule-ids.d.ts.map +1 -0
  39. package/dist/check/catalogue/standalone-rule-ids.js +4 -0
  40. package/dist/check/catalogue/standalone-rule-ids.js.map +1 -0
  41. package/dist/check/commands/baseline-command.d.ts +6 -0
  42. package/dist/check/commands/baseline-command.d.ts.map +1 -0
  43. package/dist/check/commands/baseline-command.js +43 -0
  44. package/dist/check/commands/baseline-command.js.map +1 -0
  45. package/dist/check/commands/changed-since.d.ts +6 -0
  46. package/dist/check/commands/changed-since.d.ts.map +1 -0
  47. package/dist/check/commands/changed-since.js +14 -0
  48. package/dist/check/commands/changed-since.js.map +1 -0
  49. package/dist/check/commands/check-command.d.ts +2 -2
  50. package/dist/check/commands/check-command.d.ts.map +1 -1
  51. package/dist/check/commands/check-command.js +24 -91
  52. package/dist/check/commands/check-command.js.map +1 -1
  53. package/dist/check/commands/check-file-command.d.ts +1 -2
  54. package/dist/check/commands/check-file-command.d.ts.map +1 -1
  55. package/dist/check/commands/check-file-command.js +29 -26
  56. package/dist/check/commands/check-file-command.js.map +1 -1
  57. package/dist/check/commands/check-formats.d.ts +4 -0
  58. package/dist/check/commands/check-formats.d.ts.map +1 -0
  59. package/dist/check/commands/check-formats.js +3 -0
  60. package/dist/check/commands/check-formats.js.map +1 -0
  61. package/dist/check/commands/clean-only-command.d.ts +6 -0
  62. package/dist/check/commands/clean-only-command.d.ts.map +1 -0
  63. package/dist/check/commands/clean-only-command.js +51 -0
  64. package/dist/check/commands/clean-only-command.js.map +1 -0
  65. package/dist/check/commands/explain-command.d.ts +1 -2
  66. package/dist/check/commands/explain-command.d.ts.map +1 -1
  67. package/dist/check/commands/explain-command.js +26 -18
  68. package/dist/check/commands/explain-command.js.map +1 -1
  69. package/dist/check/commands/print-check.d.ts +12 -0
  70. package/dist/check/commands/print-check.d.ts.map +1 -0
  71. package/dist/check/commands/print-check.js +8 -0
  72. package/dist/check/commands/print-check.js.map +1 -0
  73. package/dist/check/commands/refuse-missing-paths.d.ts +4 -0
  74. package/dist/check/commands/refuse-missing-paths.d.ts.map +1 -0
  75. package/dist/check/commands/refuse-missing-paths.js +11 -0
  76. package/dist/check/commands/refuse-missing-paths.js.map +1 -0
  77. package/dist/check/commands/rules-command.d.ts +1 -2
  78. package/dist/check/commands/rules-command.d.ts.map +1 -1
  79. package/dist/check/commands/rules-command.js +17 -20
  80. package/dist/check/commands/rules-command.js.map +1 -1
  81. package/dist/check/commands/self-check.d.ts +1 -3
  82. package/dist/check/commands/self-check.d.ts.map +1 -1
  83. package/dist/check/commands/self-check.js +25 -19
  84. package/dist/check/commands/self-check.js.map +1 -1
  85. package/dist/check/domain-events/event-handlers-of.d.ts +2 -2
  86. package/dist/check/domain-events/event-handlers-of.d.ts.map +1 -1
  87. package/dist/check/domain-events/event-handlers-of.js +1 -2
  88. package/dist/check/domain-events/event-handlers-of.js.map +1 -1
  89. package/dist/check/engine/run-check.d.ts.map +1 -1
  90. package/dist/check/engine/run-check.js +17 -11
  91. package/dist/check/engine/run-check.js.map +1 -1
  92. package/dist/check/errors/builds-through-factories.d.ts +2 -2
  93. package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
  94. package/dist/check/errors/builds-through-factories.js.map +1 -1
  95. package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
  96. package/dist/check/errors/kit-error-codes.js +2 -0
  97. package/dist/check/errors/kit-error-codes.js.map +1 -1
  98. package/dist/check/explain/documented-rule.d.ts +1 -1
  99. package/dist/check/explain/documented-rule.d.ts.map +1 -1
  100. package/dist/check/explain/documented-rule.js +4 -7
  101. package/dist/check/explain/documented-rule.js.map +1 -1
  102. package/dist/check/fixtures/alias-declarations.js +2 -2
  103. package/dist/check/fixtures/alias-declarations.js.map +1 -1
  104. package/dist/check/fixtures/alias-declared-fixtures.js +1 -1
  105. package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
  106. package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
  107. package/dist/check/fixtures/config-fixtures.js +29 -0
  108. package/dist/check/fixtures/config-fixtures.js.map +1 -1
  109. package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
  110. package/dist/check/fixtures/declarations-fixtures.js +4 -0
  111. package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
  112. package/dist/check/fixtures/domain-events-fixtures.js +5 -5
  113. package/dist/check/fixtures/domain-events-fixtures.js.map +1 -1
  114. package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
  115. package/dist/check/fixtures/purity-fixtures.js +25 -0
  116. package/dist/check/fixtures/purity-fixtures.js.map +1 -1
  117. package/dist/check/fixtures/tenancy-prisma-fixtures.d.ts.map +1 -1
  118. package/dist/check/fixtures/tenancy-prisma-fixtures.js +5 -0
  119. package/dist/check/fixtures/tenancy-prisma-fixtures.js.map +1 -1
  120. package/dist/check/fixtures/tenancy-typeorm-fixtures.d.ts.map +1 -1
  121. package/dist/check/fixtures/tenancy-typeorm-fixtures.js +1 -0
  122. package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
  123. package/dist/check/governance/records-of.d.ts +4 -0
  124. package/dist/check/governance/records-of.d.ts.map +1 -0
  125. package/dist/check/governance/records-of.js +5 -0
  126. package/dist/check/governance/records-of.js.map +1 -0
  127. package/dist/check/language/glossaries-of.d.ts +4 -0
  128. package/dist/check/language/glossaries-of.d.ts.map +1 -0
  129. package/dist/check/language/glossaries-of.js +5 -0
  130. package/dist/check/language/glossaries-of.js.map +1 -0
  131. package/dist/check/language/glossaries.d.ts +0 -3
  132. package/dist/check/language/glossaries.d.ts.map +1 -1
  133. package/dist/check/language/glossaries.js +0 -9
  134. package/dist/check/language/glossaries.js.map +1 -1
  135. package/dist/check/migrations/drizzle-migration-folder.d.ts +4 -0
  136. package/dist/check/migrations/drizzle-migration-folder.d.ts.map +1 -0
  137. package/dist/check/migrations/drizzle-migration-folder.js +7 -0
  138. package/dist/check/migrations/drizzle-migration-folder.js.map +1 -0
  139. package/dist/check/migrations/migrations-in.d.ts +6 -0
  140. package/dist/check/migrations/migrations-in.d.ts.map +1 -0
  141. package/dist/check/migrations/migrations-in.js +28 -0
  142. package/dist/check/migrations/migrations-in.js.map +1 -0
  143. package/dist/check/migrations/read-migration-folder.d.ts.map +1 -1
  144. package/dist/check/migrations/read-migration-folder.js +2 -34
  145. package/dist/check/migrations/read-migration-folder.js.map +1 -1
  146. package/dist/check/model/finding.d.ts +7 -0
  147. package/dist/check/model/finding.d.ts.map +1 -1
  148. package/dist/check/model/project.d.ts +17 -6
  149. package/dist/check/model/project.d.ts.map +1 -1
  150. package/dist/check/model/resolved-import.d.ts +3 -7
  151. package/dist/check/model/resolved-import.d.ts.map +1 -1
  152. package/dist/check/model/rule.d.ts +36 -7
  153. package/dist/check/model/rule.d.ts.map +1 -1
  154. package/dist/check/ports/class-declaring.d.ts +2 -2
  155. package/dist/check/ports/class-declaring.d.ts.map +1 -1
  156. package/dist/check/ports/class-declaring.js +1 -2
  157. package/dist/check/ports/class-declaring.js.map +1 -1
  158. package/dist/check/privacy/judged-only-when-on.d.ts +3 -0
  159. package/dist/check/privacy/judged-only-when-on.d.ts.map +1 -0
  160. package/dist/check/privacy/judged-only-when-on.js +3 -0
  161. package/dist/check/privacy/judged-only-when-on.js.map +1 -0
  162. package/dist/check/project/assemble-project.d.ts +7 -2
  163. package/dist/check/project/assemble-project.d.ts.map +1 -1
  164. package/dist/check/project/assemble-project.js +10 -8
  165. package/dist/check/project/assemble-project.js.map +1 -1
  166. package/dist/check/project/load-source-file.d.ts.map +1 -1
  167. package/dist/check/project/load-source-file.js +1 -7
  168. package/dist/check/project/load-source-file.js.map +1 -1
  169. package/dist/check/project/source-reader.d.ts +7 -0
  170. package/dist/check/project/source-reader.d.ts.map +1 -0
  171. package/dist/check/project/source-reader.js +29 -0
  172. package/dist/check/project/source-reader.js.map +1 -0
  173. package/dist/check/purity/ambient-mentions.d.ts +8 -0
  174. package/dist/check/purity/ambient-mentions.d.ts.map +1 -0
  175. package/dist/check/purity/ambient-mentions.js +81 -0
  176. package/dist/check/purity/ambient-mentions.js.map +1 -0
  177. package/dist/check/purity/define-purity-rule.d.ts +9 -4
  178. package/dist/check/purity/define-purity-rule.d.ts.map +1 -1
  179. package/dist/check/purity/define-purity-rule.js +23 -16
  180. package/dist/check/purity/define-purity-rule.js.map +1 -1
  181. package/dist/check/purity/forbidden-named-imports.d.ts +6 -0
  182. package/dist/check/purity/forbidden-named-imports.d.ts.map +1 -0
  183. package/dist/check/purity/forbidden-named-imports.js +17 -0
  184. package/dist/check/purity/forbidden-named-imports.js.map +1 -0
  185. package/dist/check/purity/forbidden-use.d.ts +6 -0
  186. package/dist/check/purity/forbidden-use.d.ts.map +1 -0
  187. package/dist/check/purity/forbidden-use.js +2 -0
  188. package/dist/check/purity/forbidden-use.js.map +1 -0
  189. package/dist/check/purity/forbidden-uses.d.ts +6 -0
  190. package/dist/check/purity/forbidden-uses.d.ts.map +1 -0
  191. package/dist/check/purity/forbidden-uses.js +57 -0
  192. package/dist/check/purity/forbidden-uses.js.map +1 -0
  193. package/dist/check/purity/is-member-declaration.d.ts +8 -0
  194. package/dist/check/purity/is-member-declaration.d.ts.map +1 -0
  195. package/dist/check/purity/is-member-declaration.js +32 -0
  196. package/dist/check/purity/is-member-declaration.js.map +1 -0
  197. package/dist/check/purity/keys-taken-from.d.ts +9 -0
  198. package/dist/check/purity/keys-taken-from.d.ts.map +1 -0
  199. package/dist/check/purity/keys-taken-from.js +26 -0
  200. package/dist/check/purity/keys-taken-from.js.map +1 -0
  201. package/dist/check/purity/local-scopes.d.ts +9 -0
  202. package/dist/check/purity/local-scopes.d.ts.map +1 -0
  203. package/dist/check/purity/local-scopes.js +66 -0
  204. package/dist/check/purity/local-scopes.js.map +1 -0
  205. package/dist/check/purity/member-after.d.ts +4 -0
  206. package/dist/check/purity/member-after.d.ts.map +1 -0
  207. package/dist/check/purity/member-after.js +14 -0
  208. package/dist/check/purity/member-after.js.map +1 -0
  209. package/dist/check/purity/mention.d.ts +7 -0
  210. package/dist/check/purity/mention.d.ts.map +1 -0
  211. package/dist/check/purity/mention.js +2 -0
  212. package/dist/check/purity/mention.js.map +1 -0
  213. package/dist/check/purity/reference/forbidden-call.d.ts +4 -0
  214. package/dist/check/purity/reference/forbidden-call.d.ts.map +1 -0
  215. package/dist/check/purity/reference/forbidden-call.js +5 -0
  216. package/dist/check/purity/reference/forbidden-call.js.map +1 -0
  217. package/dist/check/purity/reference/forbidden-construction.d.ts +4 -0
  218. package/dist/check/purity/reference/forbidden-construction.d.ts.map +1 -0
  219. package/dist/check/purity/reference/forbidden-construction.js +8 -0
  220. package/dist/check/purity/reference/forbidden-construction.js.map +1 -0
  221. package/dist/check/purity/reference/forbidden-member.d.ts +4 -0
  222. package/dist/check/purity/reference/forbidden-member.d.ts.map +1 -0
  223. package/dist/check/purity/reference/forbidden-member.js +9 -0
  224. package/dist/check/purity/reference/forbidden-member.js.map +1 -0
  225. package/dist/check/purity/reference/forbidden-named-import.d.ts +4 -0
  226. package/dist/check/purity/reference/forbidden-named-import.d.ts.map +1 -0
  227. package/dist/check/purity/reference/forbidden-named-import.js +7 -0
  228. package/dist/check/purity/reference/forbidden-named-import.js.map +1 -0
  229. package/dist/check/purity/reference/global-objects.d.ts +3 -0
  230. package/dist/check/purity/reference/global-objects.d.ts.map +1 -0
  231. package/dist/check/purity/reference/global-objects.js +3 -0
  232. package/dist/check/purity/reference/global-objects.js.map +1 -0
  233. package/dist/check/purity/reference/purity-table.d.ts +21 -0
  234. package/dist/check/purity/reference/purity-table.d.ts.map +1 -0
  235. package/dist/check/purity/reference/purity-table.js +2 -0
  236. package/dist/check/purity/reference/purity-table.js.map +1 -0
  237. package/dist/check/purity/reference/purity-tables.d.ts +48 -0
  238. package/dist/check/purity/reference/purity-tables.d.ts.map +1 -0
  239. package/dist/check/purity/reference/purity-tables.js +68 -0
  240. package/dist/check/purity/reference/purity-tables.js.map +1 -0
  241. package/dist/check/purity/taken-key.d.ts +6 -0
  242. package/dist/check/purity/taken-key.d.ts.map +1 -0
  243. package/dist/check/purity/taken-key.js +2 -0
  244. package/dist/check/purity/taken-key.js.map +1 -0
  245. package/dist/check/purity/text/body-after.d.ts +7 -0
  246. package/dist/check/purity/text/body-after.d.ts.map +1 -0
  247. package/dist/check/purity/text/body-after.js +49 -0
  248. package/dist/check/purity/text/body-after.js.map +1 -0
  249. package/dist/check/purity/text/holder-of.d.ts +4 -0
  250. package/dist/check/purity/text/holder-of.d.ts.map +1 -0
  251. package/dist/check/purity/text/holder-of.js +17 -0
  252. package/dist/check/purity/text/holder-of.js.map +1 -0
  253. package/dist/check/purity/text/significant-after.d.ts +3 -0
  254. package/dist/check/purity/text/significant-after.d.ts.map +1 -0
  255. package/dist/check/purity/text/significant-after.js +9 -0
  256. package/dist/check/purity/text/significant-after.js.map +1 -0
  257. package/dist/check/purity/text/significant-before.d.ts +3 -0
  258. package/dist/check/purity/text/significant-before.d.ts.map +1 -0
  259. package/dist/check/purity/text/significant-before.js +9 -0
  260. package/dist/check/purity/text/significant-before.js.map +1 -0
  261. package/dist/check/purity/text/span.d.ts +6 -0
  262. package/dist/check/purity/text/span.d.ts.map +1 -0
  263. package/dist/check/purity/text/span.js +2 -0
  264. package/dist/check/purity/text/span.js.map +1 -0
  265. package/dist/check/purity/text/word-before.d.ts +3 -0
  266. package/dist/check/purity/text/word-before.d.ts.map +1 -0
  267. package/dist/check/purity/text/word-before.js +6 -0
  268. package/dist/check/purity/text/word-before.js.map +1 -0
  269. package/dist/check/read-models/list-findings.d.ts.map +1 -1
  270. package/dist/check/read-models/list-findings.js +3 -4
  271. package/dist/check/read-models/list-findings.js.map +1 -1
  272. package/dist/check/rules/aspects-outside-in.d.ts +2 -2
  273. package/dist/check/rules/aspects-outside-in.d.ts.map +1 -1
  274. package/dist/check/rules/aspects-outside-in.js +21 -14
  275. package/dist/check/rules/aspects-outside-in.js.map +1 -1
  276. package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +2 -2
  277. package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -1
  278. package/dist/check/rules/aspects-timeout-covers-delegate.js +18 -1
  279. package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -1
  280. package/dist/check/rules/authz-actor-explicit.d.ts +2 -2
  281. package/dist/check/rules/authz-actor-explicit.d.ts.map +1 -1
  282. package/dist/check/rules/authz-actor-explicit.js +16 -4
  283. package/dist/check/rules/authz-actor-explicit.js.map +1 -1
  284. package/dist/check/rules/authz-declared.d.ts +2 -2
  285. package/dist/check/rules/authz-declared.d.ts.map +1 -1
  286. package/dist/check/rules/authz-declared.js +17 -3
  287. package/dist/check/rules/authz-declared.js.map +1 -1
  288. package/dist/check/rules/authz-fields-by-schema.d.ts +2 -2
  289. package/dist/check/rules/authz-fields-by-schema.d.ts.map +1 -1
  290. package/dist/check/rules/authz-fields-by-schema.js +14 -4
  291. package/dist/check/rules/authz-fields-by-schema.js.map +1 -1
  292. package/dist/check/rules/authz-granted.d.ts +2 -2
  293. package/dist/check/rules/authz-granted.d.ts.map +1 -1
  294. package/dist/check/rules/authz-granted.js +17 -1
  295. package/dist/check/rules/authz-granted.js.map +1 -1
  296. package/dist/check/rules/authz-in-application.d.ts +2 -2
  297. package/dist/check/rules/authz-in-application.d.ts.map +1 -1
  298. package/dist/check/rules/authz-in-application.js +19 -3
  299. package/dist/check/rules/authz-in-application.js.map +1 -1
  300. package/dist/check/rules/authz-policy-asked.d.ts +2 -2
  301. package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
  302. package/dist/check/rules/authz-policy-asked.js +15 -1
  303. package/dist/check/rules/authz-policy-asked.js.map +1 -1
  304. package/dist/check/rules/authz-resource-modelled.d.ts +2 -2
  305. package/dist/check/rules/authz-resource-modelled.d.ts.map +1 -1
  306. package/dist/check/rules/authz-resource-modelled.js +19 -1
  307. package/dist/check/rules/authz-resource-modelled.js.map +1 -1
  308. package/dist/check/rules/authz-scope-narrows.d.ts +2 -2
  309. package/dist/check/rules/authz-scope-narrows.d.ts.map +1 -1
  310. package/dist/check/rules/authz-scope-narrows.js +15 -1
  311. package/dist/check/rules/authz-scope-narrows.js.map +1 -1
  312. package/dist/check/rules/authz-system-actor-granted.d.ts +2 -2
  313. package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -1
  314. package/dist/check/rules/authz-system-actor-granted.js +13 -1
  315. package/dist/check/rules/authz-system-actor-granted.js.map +1 -1
  316. package/dist/check/rules/clean-blank-lines.d.ts +2 -2
  317. package/dist/check/rules/clean-blank-lines.d.ts.map +1 -1
  318. package/dist/check/rules/clean-blank-lines.js +18 -6
  319. package/dist/check/rules/clean-blank-lines.js.map +1 -1
  320. package/dist/check/rules/clean-braces.d.ts +2 -2
  321. package/dist/check/rules/clean-braces.d.ts.map +1 -1
  322. package/dist/check/rules/clean-braces.js +26 -8
  323. package/dist/check/rules/clean-braces.js.map +1 -1
  324. package/dist/check/rules/clean-file-size.d.ts +2 -2
  325. package/dist/check/rules/clean-file-size.d.ts.map +1 -1
  326. package/dist/check/rules/clean-file-size.js +10 -4
  327. package/dist/check/rules/clean-file-size.js.map +1 -1
  328. package/dist/check/rules/clean-function-size.d.ts +2 -2
  329. package/dist/check/rules/clean-function-size.d.ts.map +1 -1
  330. package/dist/check/rules/clean-function-size.js +19 -20
  331. package/dist/check/rules/clean-function-size.js.map +1 -1
  332. package/dist/check/rules/clean-no-commented-out-code.d.ts +2 -2
  333. package/dist/check/rules/clean-no-commented-out-code.d.ts.map +1 -1
  334. package/dist/check/rules/clean-no-commented-out-code.js +18 -14
  335. package/dist/check/rules/clean-no-commented-out-code.js.map +1 -1
  336. package/dist/check/rules/clean-no-escape-hatch.d.ts +2 -2
  337. package/dist/check/rules/clean-no-escape-hatch.d.ts.map +1 -1
  338. package/dist/check/rules/clean-no-escape-hatch.js +24 -17
  339. package/dist/check/rules/clean-no-escape-hatch.js.map +1 -1
  340. package/dist/check/rules/clean-no-flag-argument.d.ts +2 -2
  341. package/dist/check/rules/clean-no-flag-argument.d.ts.map +1 -1
  342. package/dist/check/rules/clean-no-flag-argument.js +10 -4
  343. package/dist/check/rules/clean-no-flag-argument.js.map +1 -1
  344. package/dist/check/rules/clean-no-hash-private.d.ts +2 -2
  345. package/dist/check/rules/clean-no-hash-private.d.ts.map +1 -1
  346. package/dist/check/rules/clean-no-hash-private.js +22 -4
  347. package/dist/check/rules/clean-no-hash-private.js.map +1 -1
  348. package/dist/check/rules/clean-no-noise-comment.d.ts +2 -2
  349. package/dist/check/rules/clean-no-noise-comment.d.ts.map +1 -1
  350. package/dist/check/rules/clean-no-noise-comment.js +12 -3
  351. package/dist/check/rules/clean-no-noise-comment.js.map +1 -1
  352. package/dist/check/rules/clean-one-export-per-file.d.ts +2 -2
  353. package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
  354. package/dist/check/rules/clean-one-export-per-file.js +24 -11
  355. package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
  356. package/dist/check/rules/clean-stepdown.d.ts +2 -2
  357. package/dist/check/rules/clean-stepdown.d.ts.map +1 -1
  358. package/dist/check/rules/clean-stepdown.js +16 -10
  359. package/dist/check/rules/clean-stepdown.js.map +1 -1
  360. package/dist/check/rules/composition-only-in-module.d.ts +2 -2
  361. package/dist/check/rules/composition-only-in-module.d.ts.map +1 -1
  362. package/dist/check/rules/composition-only-in-module.js +18 -4
  363. package/dist/check/rules/composition-only-in-module.js.map +1 -1
  364. package/dist/check/rules/config-rule-off-everywhere.d.ts +2 -2
  365. package/dist/check/rules/config-rule-off-everywhere.d.ts.map +1 -1
  366. package/dist/check/rules/config-rule-off-everywhere.js +9 -1
  367. package/dist/check/rules/config-rule-off-everywhere.js.map +1 -1
  368. package/dist/check/rules/config-suppression-needs-reason.d.ts +4 -0
  369. package/dist/check/rules/config-suppression-needs-reason.d.ts.map +1 -0
  370. package/dist/check/rules/config-suppression-needs-reason.js +26 -0
  371. package/dist/check/rules/config-suppression-needs-reason.js.map +1 -0
  372. package/dist/check/rules/config-unused-suppression.d.ts +3 -0
  373. package/dist/check/rules/config-unused-suppression.d.ts.map +1 -0
  374. package/dist/check/rules/config-unused-suppression.js +48 -0
  375. package/dist/check/rules/config-unused-suppression.js.map +1 -0
  376. package/dist/check/rules/config-valid.d.ts +2 -2
  377. package/dist/check/rules/config-valid.d.ts.map +1 -1
  378. package/dist/check/rules/config-valid.js +11 -1
  379. package/dist/check/rules/config-valid.js.map +1 -1
  380. package/dist/check/rules/context-declared-relationship.d.ts +2 -2
  381. package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
  382. package/dist/check/rules/context-declared-relationship.js +20 -16
  383. package/dist/check/rules/context-declared-relationship.js.map +1 -1
  384. package/dist/check/rules/context-extractable.d.ts +2 -2
  385. package/dist/check/rules/context-extractable.d.ts.map +1 -1
  386. package/dist/check/rules/context-extractable.js +23 -12
  387. package/dist/check/rules/context-extractable.js.map +1 -1
  388. package/dist/check/rules/context-no-cycle.d.ts +2 -2
  389. package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
  390. package/dist/check/rules/context-no-cycle.js +9 -1
  391. package/dist/check/rules/context-no-cycle.js.map +1 -1
  392. package/dist/check/rules/context-published-language-is-a-contract.d.ts +2 -2
  393. package/dist/check/rules/context-published-language-is-a-contract.d.ts.map +1 -1
  394. package/dist/check/rules/context-published-language-is-a-contract.js +19 -14
  395. package/dist/check/rules/context-published-language-is-a-contract.js.map +1 -1
  396. package/dist/check/rules/context-published-language-only.d.ts +2 -2
  397. package/dist/check/rules/context-published-language-only.d.ts.map +1 -1
  398. package/dist/check/rules/context-published-language-only.js +23 -18
  399. package/dist/check/rules/context-published-language-only.js.map +1 -1
  400. package/dist/check/rules/declarations-barrel-current.d.ts +2 -2
  401. package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
  402. package/dist/check/rules/declarations-barrel-current.js +29 -3
  403. package/dist/check/rules/declarations-barrel-current.js.map +1 -1
  404. package/dist/check/rules/declarations-constructor-injection.d.ts +2 -2
  405. package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -1
  406. package/dist/check/rules/declarations-constructor-injection.js +28 -12
  407. package/dist/check/rules/declarations-constructor-injection.js.map +1 -1
  408. package/dist/check/rules/declarations-port-adapter-wired.d.ts +2 -2
  409. package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -1
  410. package/dist/check/rules/declarations-port-adapter-wired.js +15 -1
  411. package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
  412. package/dist/check/rules/declarations-role-declared.d.ts +2 -2
  413. package/dist/check/rules/declarations-role-declared.d.ts.map +1 -1
  414. package/dist/check/rules/declarations-role-declared.js +20 -9
  415. package/dist/check/rules/declarations-role-declared.js.map +1 -1
  416. package/dist/check/rules/domain-events-dispatched-on-save.d.ts +2 -2
  417. package/dist/check/rules/domain-events-dispatched-on-save.d.ts.map +1 -1
  418. package/dist/check/rules/domain-events-dispatched-on-save.js +30 -17
  419. package/dist/check/rules/domain-events-dispatched-on-save.js.map +1 -1
  420. package/dist/check/rules/domain-events-transactional-before-commit.d.ts +2 -2
  421. package/dist/check/rules/domain-events-transactional-before-commit.d.ts.map +1 -1
  422. package/dist/check/rules/domain-events-transactional-before-commit.js +40 -2
  423. package/dist/check/rules/domain-events-transactional-before-commit.js.map +1 -1
  424. package/dist/check/rules/domain-value-object-class.d.ts +2 -2
  425. package/dist/check/rules/domain-value-object-class.d.ts.map +1 -1
  426. package/dist/check/rules/domain-value-object-class.js +37 -10
  427. package/dist/check/rules/domain-value-object-class.js.map +1 -1
  428. package/dist/check/rules/errors-code-listed.d.ts +2 -2
  429. package/dist/check/rules/errors-code-listed.d.ts.map +1 -1
  430. package/dist/check/rules/errors-code-listed.js +30 -1
  431. package/dist/check/rules/errors-code-listed.js.map +1 -1
  432. package/dist/check/rules/errors-code-unique.d.ts +2 -2
  433. package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
  434. package/dist/check/rules/errors-code-unique.js +15 -1
  435. package/dist/check/rules/errors-code-unique.js.map +1 -1
  436. package/dist/check/rules/errors-known-code.d.ts +2 -2
  437. package/dist/check/rules/errors-known-code.d.ts.map +1 -1
  438. package/dist/check/rules/errors-known-code.js +11 -1
  439. package/dist/check/rules/errors-known-code.js.map +1 -1
  440. package/dist/check/rules/event-sourcing-past-tense.d.ts +2 -2
  441. package/dist/check/rules/event-sourcing-past-tense.d.ts.map +1 -1
  442. package/dist/check/rules/event-sourcing-past-tense.js +11 -6
  443. package/dist/check/rules/event-sourcing-past-tense.js.map +1 -1
  444. package/dist/check/rules/event-sourcing-projection-never-appends.d.ts +2 -2
  445. package/dist/check/rules/event-sourcing-projection-never-appends.d.ts.map +1 -1
  446. package/dist/check/rules/event-sourcing-projection-never-appends.js +16 -3
  447. package/dist/check/rules/event-sourcing-projection-never-appends.js.map +1 -1
  448. package/dist/check/rules/event-sourcing-state-in-apply.d.ts +2 -2
  449. package/dist/check/rules/event-sourcing-state-in-apply.d.ts.map +1 -1
  450. package/dist/check/rules/event-sourcing-state-in-apply.js +19 -3
  451. package/dist/check/rules/event-sourcing-state-in-apply.js.map +1 -1
  452. package/dist/check/rules/event-sourcing-store-behind-repository.d.ts +2 -2
  453. package/dist/check/rules/event-sourcing-store-behind-repository.d.ts.map +1 -1
  454. package/dist/check/rules/event-sourcing-store-behind-repository.js +22 -15
  455. package/dist/check/rules/event-sourcing-store-behind-repository.js.map +1 -1
  456. package/dist/check/rules/event-sourcing-upcaster-required.d.ts +2 -2
  457. package/dist/check/rules/event-sourcing-upcaster-required.d.ts.map +1 -1
  458. package/dist/check/rules/event-sourcing-upcaster-required.js +32 -6
  459. package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
  460. package/dist/check/rules/events-consumer-idempotent.d.ts +2 -2
  461. package/dist/check/rules/events-consumer-idempotent.d.ts.map +1 -1
  462. package/dist/check/rules/events-consumer-idempotent.js +19 -2
  463. package/dist/check/rules/events-consumer-idempotent.js.map +1 -1
  464. package/dist/check/rules/events-defined-in-published-language.d.ts +2 -2
  465. package/dist/check/rules/events-defined-in-published-language.d.ts.map +1 -1
  466. package/dist/check/rules/events-defined-in-published-language.js +38 -12
  467. package/dist/check/rules/events-defined-in-published-language.js.map +1 -1
  468. package/dist/check/rules/events-name-declared-once.d.ts +2 -2
  469. package/dist/check/rules/events-name-declared-once.d.ts.map +1 -1
  470. package/dist/check/rules/events-name-declared-once.js +19 -14
  471. package/dist/check/rules/events-name-declared-once.js.map +1 -1
  472. package/dist/check/rules/events-name-format.d.ts +2 -2
  473. package/dist/check/rules/events-name-format.d.ts.map +1 -1
  474. package/dist/check/rules/events-name-format.js +18 -15
  475. package/dist/check/rules/events-name-format.js.map +1 -1
  476. package/dist/check/rules/events-outbox-required.d.ts +2 -2
  477. package/dist/check/rules/events-outbox-required.d.ts.map +1 -1
  478. package/dist/check/rules/events-outbox-required.js +15 -4
  479. package/dist/check/rules/events-outbox-required.js.map +1 -1
  480. package/dist/check/rules/files-port-not-connector.d.ts +2 -2
  481. package/dist/check/rules/files-port-not-connector.d.ts.map +1 -1
  482. package/dist/check/rules/files-port-not-connector.js +17 -6
  483. package/dist/check/rules/files-port-not-connector.js.map +1 -1
  484. package/dist/check/rules/files-upload-content-rule.d.ts +2 -2
  485. package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -1
  486. package/dist/check/rules/files-upload-content-rule.js +24 -3
  487. package/dist/check/rules/files-upload-content-rule.js.map +1 -1
  488. package/dist/check/rules/governance-recorded-deviation.d.ts +2 -2
  489. package/dist/check/rules/governance-recorded-deviation.d.ts.map +1 -1
  490. package/dist/check/rules/governance-recorded-deviation.js +22 -14
  491. package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
  492. package/dist/check/rules/imports-alias-declared.d.ts +2 -2
  493. package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
  494. package/dist/check/rules/imports-alias-declared.js +21 -1
  495. package/dist/check/rules/imports-alias-declared.js.map +1 -1
  496. package/dist/check/rules/imports-alias-only.d.ts +2 -2
  497. package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
  498. package/dist/check/rules/imports-alias-only.js +16 -4
  499. package/dist/check/rules/imports-alias-only.js.map +1 -1
  500. package/dist/check/rules/imports-extension.d.ts +2 -2
  501. package/dist/check/rules/imports-extension.d.ts.map +1 -1
  502. package/dist/check/rules/imports-extension.js +16 -3
  503. package/dist/check/rules/imports-extension.js.map +1 -1
  504. package/dist/check/rules/language-declared-vocabulary.d.ts +2 -2
  505. package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
  506. package/dist/check/rules/language-declared-vocabulary.js +12 -1
  507. package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
  508. package/dist/check/rules/language-glossary-term.d.ts +2 -2
  509. package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
  510. package/dist/check/rules/language-glossary-term.js +28 -26
  511. package/dist/check/rules/language-glossary-term.js.map +1 -1
  512. package/dist/check/rules/language-no-technical-name.d.ts +2 -2
  513. package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
  514. package/dist/check/rules/language-no-technical-name.js +25 -22
  515. package/dist/check/rules/language-no-technical-name.js.map +1 -1
  516. package/dist/check/rules/layer-application-inward.d.ts +2 -2
  517. package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
  518. package/dist/check/rules/layer-application-inward.js +25 -15
  519. package/dist/check/rules/layer-application-inward.js.map +1 -1
  520. package/dist/check/rules/layer-domain-purity.d.ts +2 -2
  521. package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
  522. package/dist/check/rules/layer-domain-purity.js +19 -9
  523. package/dist/check/rules/layer-domain-purity.js.map +1 -1
  524. package/dist/check/rules/layer-infrastructure-no-presentation.d.ts +2 -2
  525. package/dist/check/rules/layer-infrastructure-no-presentation.d.ts.map +1 -1
  526. package/dist/check/rules/layer-infrastructure-no-presentation.js +19 -14
  527. package/dist/check/rules/layer-infrastructure-no-presentation.js.map +1 -1
  528. package/dist/check/rules/layer-presentation-no-infrastructure.d.ts +2 -2
  529. package/dist/check/rules/layer-presentation-no-infrastructure.d.ts.map +1 -1
  530. package/dist/check/rules/layer-presentation-no-infrastructure.js +20 -15
  531. package/dist/check/rules/layer-presentation-no-infrastructure.js.map +1 -1
  532. package/dist/check/rules/lifecycle-status-through-machine.d.ts +2 -2
  533. package/dist/check/rules/lifecycle-status-through-machine.d.ts.map +1 -1
  534. package/dist/check/rules/lifecycle-status-through-machine.js +18 -2
  535. package/dist/check/rules/lifecycle-status-through-machine.js.map +1 -1
  536. package/dist/check/rules/module-complete.d.ts +2 -2
  537. package/dist/check/rules/module-complete.d.ts.map +1 -1
  538. package/dist/check/rules/module-complete.js +17 -1
  539. package/dist/check/rules/module-complete.js.map +1 -1
  540. package/dist/check/rules/module-declared.d.ts +2 -2
  541. package/dist/check/rules/module-declared.d.ts.map +1 -1
  542. package/dist/check/rules/module-declared.js +14 -1
  543. package/dist/check/rules/module-declared.js.map +1 -1
  544. package/dist/check/rules/module-no-cycle.d.ts +2 -2
  545. package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
  546. package/dist/check/rules/module-no-cycle.js +12 -1
  547. package/dist/check/rules/module-no-cycle.js.map +1 -1
  548. package/dist/check/rules/naming-business-name.d.ts +2 -2
  549. package/dist/check/rules/naming-business-name.d.ts.map +1 -1
  550. package/dist/check/rules/naming-business-name.js +19 -10
  551. package/dist/check/rules/naming-business-name.js.map +1 -1
  552. package/dist/check/rules/naming-one-concept-per-file.d.ts +2 -2
  553. package/dist/check/rules/naming-one-concept-per-file.d.ts.map +1 -1
  554. package/dist/check/rules/naming-one-concept-per-file.js +22 -9
  555. package/dist/check/rules/naming-one-concept-per-file.js.map +1 -1
  556. package/dist/check/rules/naming-search-not-list.d.ts +2 -2
  557. package/dist/check/rules/naming-search-not-list.d.ts.map +1 -1
  558. package/dist/check/rules/naming-search-not-list.js +20 -8
  559. package/dist/check/rules/naming-search-not-list.js.map +1 -1
  560. package/dist/check/rules/naming-suffix.d.ts +2 -2
  561. package/dist/check/rules/naming-suffix.d.ts.map +1 -1
  562. package/dist/check/rules/naming-suffix.js +21 -14
  563. package/dist/check/rules/naming-suffix.js.map +1 -1
  564. package/dist/check/rules/nest-controllers-current.d.ts +2 -2
  565. package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
  566. package/dist/check/rules/nest-controllers-current.js +12 -1
  567. package/dist/check/rules/nest-controllers-current.js.map +1 -1
  568. package/dist/check/rules/nest-no-parallel-pipeline.d.ts +2 -2
  569. package/dist/check/rules/nest-no-parallel-pipeline.d.ts.map +1 -1
  570. package/dist/check/rules/nest-no-parallel-pipeline.js +27 -11
  571. package/dist/check/rules/nest-no-parallel-pipeline.js.map +1 -1
  572. package/dist/check/rules/persistence-migration-history.d.ts +2 -2
  573. package/dist/check/rules/persistence-migration-history.d.ts.map +1 -1
  574. package/dist/check/rules/persistence-migration-history.js +13 -1
  575. package/dist/check/rules/persistence-migration-history.js.map +1 -1
  576. package/dist/check/rules/persistence-no-file-content.d.ts +2 -2
  577. package/dist/check/rules/persistence-no-file-content.d.ts.map +1 -1
  578. package/dist/check/rules/persistence-no-file-content.js +15 -1
  579. package/dist/check/rules/persistence-no-file-content.js.map +1 -1
  580. package/dist/check/rules/persistence-primary-key-order.d.ts +2 -2
  581. package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -1
  582. package/dist/check/rules/persistence-primary-key-order.js +9 -1
  583. package/dist/check/rules/persistence-primary-key-order.js.map +1 -1
  584. package/dist/check/rules/persistence-read-model-listed.d.ts +2 -2
  585. package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -1
  586. package/dist/check/rules/persistence-read-model-listed.js +20 -3
  587. package/dist/check/rules/persistence-read-model-listed.js.map +1 -1
  588. package/dist/check/rules/ports-abstract-class.d.ts +2 -2
  589. package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
  590. package/dist/check/rules/ports-abstract-class.js +33 -20
  591. package/dist/check/rules/ports-abstract-class.js.map +1 -1
  592. package/dist/check/rules/ports-implements-never-extends.d.ts +2 -2
  593. package/dist/check/rules/ports-implements-never-extends.d.ts.map +1 -1
  594. package/dist/check/rules/ports-implements-never-extends.js +25 -14
  595. package/dist/check/rules/ports-implements-never-extends.js.map +1 -1
  596. package/dist/check/rules/ports-no-concrete-dependency.d.ts +2 -2
  597. package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
  598. package/dist/check/rules/ports-no-concrete-dependency.js +23 -5
  599. package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
  600. package/dist/check/rules/ports-no-token-constant.d.ts +2 -2
  601. package/dist/check/rules/ports-no-token-constant.d.ts.map +1 -1
  602. package/dist/check/rules/ports-no-token-constant.js +20 -3
  603. package/dist/check/rules/ports-no-token-constant.js.map +1 -1
  604. package/dist/check/rules/ports-value-import.d.ts +2 -2
  605. package/dist/check/rules/ports-value-import.d.ts.map +1 -1
  606. package/dist/check/rules/ports-value-import.js +23 -12
  607. package/dist/check/rules/ports-value-import.js.map +1 -1
  608. package/dist/check/rules/privacy-declared-field.d.ts +2 -2
  609. package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
  610. package/dist/check/rules/privacy-declared-field.js +18 -1
  611. package/dist/check/rules/privacy-declared-field.js.map +1 -1
  612. package/dist/check/rules/privacy-erasure-reaches-copies.d.ts +2 -2
  613. package/dist/check/rules/privacy-erasure-reaches-copies.d.ts.map +1 -1
  614. package/dist/check/rules/privacy-erasure-reaches-copies.js +12 -1
  615. package/dist/check/rules/privacy-erasure-reaches-copies.js.map +1 -1
  616. package/dist/check/rules/privacy-event-payload-declared.d.ts +2 -2
  617. package/dist/check/rules/privacy-event-payload-declared.d.ts.map +1 -1
  618. package/dist/check/rules/privacy-event-payload-declared.js +17 -1
  619. package/dist/check/rules/privacy-event-payload-declared.js.map +1 -1
  620. package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts +2 -2
  621. package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts.map +1 -1
  622. package/dist/check/rules/privacy-no-personal-data-in-logs.js +8 -1
  623. package/dist/check/rules/privacy-no-personal-data-in-logs.js.map +1 -1
  624. package/dist/check/rules/privacy-snapshot-sealed.d.ts +2 -2
  625. package/dist/check/rules/privacy-snapshot-sealed.d.ts.map +1 -1
  626. package/dist/check/rules/privacy-snapshot-sealed.js +16 -1
  627. package/dist/check/rules/privacy-snapshot-sealed.js.map +1 -1
  628. package/dist/check/rules/privacy-subject-is-opaque.d.ts +2 -2
  629. package/dist/check/rules/privacy-subject-is-opaque.d.ts.map +1 -1
  630. package/dist/check/rules/privacy-subject-is-opaque.js +8 -1
  631. package/dist/check/rules/privacy-subject-is-opaque.js.map +1 -1
  632. package/dist/check/rules/process-sends-commands-only.d.ts +2 -2
  633. package/dist/check/rules/process-sends-commands-only.d.ts.map +1 -1
  634. package/dist/check/rules/process-sends-commands-only.js +18 -3
  635. package/dist/check/rules/process-sends-commands-only.js.map +1 -1
  636. package/dist/check/rules/purity-no-ambient-randomness.d.ts +1 -1
  637. package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
  638. package/dist/check/rules/purity-no-ambient-randomness.js +5 -29
  639. package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
  640. package/dist/check/rules/purity-no-environment.d.ts +1 -1
  641. package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
  642. package/dist/check/rules/purity-no-environment.js +5 -37
  643. package/dist/check/rules/purity-no-environment.js.map +1 -1
  644. package/dist/check/rules/purity-no-system-clock.d.ts +1 -1
  645. package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
  646. package/dist/check/rules/purity-no-system-clock.js +5 -14
  647. package/dist/check/rules/purity-no-system-clock.js.map +1 -1
  648. package/dist/check/rules/scheduling-job-name.d.ts +2 -2
  649. package/dist/check/rules/scheduling-job-name.d.ts.map +1 -1
  650. package/dist/check/rules/scheduling-job-name.js +18 -8
  651. package/dist/check/rules/scheduling-job-name.js.map +1 -1
  652. package/dist/check/rules/scheduling-job-registered.d.ts +2 -2
  653. package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -1
  654. package/dist/check/rules/scheduling-job-registered.js +24 -1
  655. package/dist/check/rules/scheduling-job-registered.js.map +1 -1
  656. package/dist/check/rules/scheduling-job-triggers-use-case.d.ts +2 -2
  657. package/dist/check/rules/scheduling-job-triggers-use-case.d.ts.map +1 -1
  658. package/dist/check/rules/scheduling-job-triggers-use-case.js +36 -10
  659. package/dist/check/rules/scheduling-job-triggers-use-case.js.map +1 -1
  660. package/dist/check/rules/scheduling-tenancy-declared.d.ts +2 -2
  661. package/dist/check/rules/scheduling-tenancy-declared.d.ts.map +1 -1
  662. package/dist/check/rules/scheduling-tenancy-declared.js +10 -6
  663. package/dist/check/rules/scheduling-tenancy-declared.js.map +1 -1
  664. package/dist/check/rules/schema-no-duplicate-shape.d.ts +2 -2
  665. package/dist/check/rules/schema-no-duplicate-shape.d.ts.map +1 -1
  666. package/dist/check/rules/schema-no-duplicate-shape.js +14 -1
  667. package/dist/check/rules/schema-no-duplicate-shape.js.map +1 -1
  668. package/dist/check/rules/schema-presentation-only.d.ts +2 -2
  669. package/dist/check/rules/schema-presentation-only.d.ts.map +1 -1
  670. package/dist/check/rules/schema-presentation-only.js +17 -4
  671. package/dist/check/rules/schema-presentation-only.js.map +1 -1
  672. package/dist/check/rules/search-store-from-platform.d.ts +2 -2
  673. package/dist/check/rules/search-store-from-platform.d.ts.map +1 -1
  674. package/dist/check/rules/search-store-from-platform.js +23 -3
  675. package/dist/check/rules/search-store-from-platform.js.map +1 -1
  676. package/dist/check/rules/standard-no-parallel-interface.d.ts +2 -2
  677. package/dist/check/rules/standard-no-parallel-interface.d.ts.map +1 -1
  678. package/dist/check/rules/standard-no-parallel-interface.js +19 -4
  679. package/dist/check/rules/standard-no-parallel-interface.js.map +1 -1
  680. package/dist/check/rules/tenancy-scoped-statement.d.ts +2 -2
  681. package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
  682. package/dist/check/rules/tenancy-scoped-statement.js +45 -6
  683. package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
  684. package/dist/check/rules/test-acceptance-black-box.d.ts +2 -2
  685. package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
  686. package/dist/check/rules/test-acceptance-black-box.js +11 -1
  687. package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
  688. package/dist/check/rules/test-builder-required.d.ts +2 -2
  689. package/dist/check/rules/test-builder-required.d.ts.map +1 -1
  690. package/dist/check/rules/test-builder-required.js +8 -1
  691. package/dist/check/rules/test-builder-required.js.map +1 -1
  692. package/dist/check/rules/test-coverage-governed.d.ts +2 -2
  693. package/dist/check/rules/test-coverage-governed.d.ts.map +1 -1
  694. package/dist/check/rules/test-coverage-governed.js +20 -5
  695. package/dist/check/rules/test-coverage-governed.js.map +1 -1
  696. package/dist/check/rules/test-helper-placed.d.ts +2 -2
  697. package/dist/check/rules/test-helper-placed.d.ts.map +1 -1
  698. package/dist/check/rules/test-helper-placed.js +20 -16
  699. package/dist/check/rules/test-helper-placed.js.map +1 -1
  700. package/dist/check/rules/test-mutation-governed.d.ts +2 -2
  701. package/dist/check/rules/test-mutation-governed.d.ts.map +1 -1
  702. package/dist/check/rules/test-mutation-governed.js +13 -1
  703. package/dist/check/rules/test-mutation-governed.js.map +1 -1
  704. package/dist/check/rules/test-no-mocks.d.ts +2 -2
  705. package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
  706. package/dist/check/rules/test-no-mocks.js +23 -18
  707. package/dist/check/rules/test-no-mocks.js.map +1 -1
  708. package/dist/check/rules/test-spec-required.d.ts +2 -2
  709. package/dist/check/rules/test-spec-required.d.ts.map +1 -1
  710. package/dist/check/rules/test-spec-required.js +7 -1
  711. package/dist/check/rules/test-spec-required.js.map +1 -1
  712. package/dist/check/rules/tracing-platform-only.d.ts +2 -2
  713. package/dist/check/rules/tracing-platform-only.d.ts.map +1 -1
  714. package/dist/check/rules/tracing-platform-only.js +20 -14
  715. package/dist/check/rules/tracing-platform-only.js.map +1 -1
  716. package/dist/check/rules/tree-closed.d.ts +2 -2
  717. package/dist/check/rules/tree-closed.d.ts.map +1 -1
  718. package/dist/check/rules/tree-closed.js +12 -1
  719. package/dist/check/rules/tree-closed.js.map +1 -1
  720. package/dist/check/rules/tree-context-doc.d.ts +2 -2
  721. package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
  722. package/dist/check/rules/tree-context-doc.js +7 -1
  723. package/dist/check/rules/tree-context-doc.js.map +1 -1
  724. package/dist/check/rules/tree-documented-paths.d.ts +2 -2
  725. package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
  726. package/dist/check/rules/tree-documented-paths.js +7 -1
  727. package/dist/check/rules/tree-documented-paths.js.map +1 -1
  728. package/dist/check/scan/find-imports.js +6 -5
  729. package/dist/check/scan/find-imports.js.map +1 -1
  730. package/dist/check/scan/found-statement.d.ts +4 -1
  731. package/dist/check/scan/found-statement.d.ts.map +1 -1
  732. package/dist/check/scan/lexer.d.ts +1 -0
  733. package/dist/check/scan/lexer.d.ts.map +1 -1
  734. package/dist/check/scan/lexer.js +20 -5
  735. package/dist/check/scan/lexer.js.map +1 -1
  736. package/dist/check/scan/statements-of.d.ts +9 -0
  737. package/dist/check/scan/statements-of.d.ts.map +1 -0
  738. package/dist/check/scan/statements-of.js +61 -0
  739. package/dist/check/scan/statements-of.js.map +1 -0
  740. package/dist/check/schemas/holds-schemas.d.ts +2 -2
  741. package/dist/check/schemas/holds-schemas.d.ts.map +1 -1
  742. package/dist/check/schemas/holds-schemas.js.map +1 -1
  743. package/dist/check/schemas/shares-schemas.d.ts +2 -2
  744. package/dist/check/schemas/shares-schemas.d.ts.map +1 -1
  745. package/dist/check/schemas/shares-schemas.js.map +1 -1
  746. package/dist/check/support/binding-place.d.ts +2 -2
  747. package/dist/check/support/binding-place.d.ts.map +1 -1
  748. package/dist/check/support/binding-place.js.map +1 -1
  749. package/dist/check/support/is-declared-style.d.ts +2 -2
  750. package/dist/check/support/is-declared-style.d.ts.map +1 -1
  751. package/dist/check/support/is-declared-style.js.map +1 -1
  752. package/dist/check/support/once-per-project.d.ts +8 -0
  753. package/dist/check/support/once-per-project.d.ts.map +1 -0
  754. package/dist/check/support/once-per-project.js +18 -0
  755. package/dist/check/support/once-per-project.js.map +1 -0
  756. package/dist/check/support/path-in-context.d.ts +2 -2
  757. package/dist/check/support/path-in-context.d.ts.map +1 -1
  758. package/dist/check/support/path-in-context.js.map +1 -1
  759. package/dist/check/support/per-file.d.ts +4 -1
  760. package/dist/check/support/per-file.d.ts.map +1 -1
  761. package/dist/check/support/per-file.js +21 -2
  762. package/dist/check/support/per-file.js.map +1 -1
  763. package/dist/check/support/reporter.d.ts +2 -2
  764. package/dist/check/support/reporter.d.ts.map +1 -1
  765. package/dist/check/support/reporter.js.map +1 -1
  766. package/dist/check/support/source-declaring.d.ts +2 -2
  767. package/dist/check/support/source-declaring.d.ts.map +1 -1
  768. package/dist/check/support/source-declaring.js +1 -2
  769. package/dist/check/support/source-declaring.js.map +1 -1
  770. package/dist/check/support/to-violations.d.ts +1 -0
  771. package/dist/check/support/to-violations.d.ts.map +1 -1
  772. package/dist/check/support/to-violations.js +5 -1
  773. package/dist/check/support/to-violations.js.map +1 -1
  774. package/dist/check/suppressions/find-suppressions.d.ts +9 -2
  775. package/dist/check/suppressions/find-suppressions.d.ts.map +1 -1
  776. package/dist/check/suppressions/find-suppressions.js +30 -7
  777. package/dist/check/suppressions/find-suppressions.js.map +1 -1
  778. package/dist/check/suppressions/idle-suppression.d.ts +7 -0
  779. package/dist/check/suppressions/idle-suppression.d.ts.map +1 -0
  780. package/dist/check/suppressions/idle-suppression.js +2 -0
  781. package/dist/check/suppressions/idle-suppression.js.map +1 -0
  782. package/dist/check/suppressions/silencing.d.ts +19 -0
  783. package/dist/check/suppressions/silencing.d.ts.map +1 -0
  784. package/dist/check/suppressions/silencing.js +32 -0
  785. package/dist/check/suppressions/silencing.js.map +1 -0
  786. package/dist/check/tenancy/prisma-unscoped.d.ts.map +1 -1
  787. package/dist/check/tenancy/prisma-unscoped.js +3 -1
  788. package/dist/check/tenancy/prisma-unscoped.js.map +1 -1
  789. package/dist/check/tenancy/saves-without-tenant.d.ts +4 -0
  790. package/dist/check/tenancy/saves-without-tenant.d.ts.map +1 -0
  791. package/dist/check/tenancy/saves-without-tenant.js +6 -0
  792. package/dist/check/tenancy/saves-without-tenant.js.map +1 -0
  793. package/dist/commands/acceptance.d.ts +1 -2
  794. package/dist/commands/acceptance.d.ts.map +1 -1
  795. package/dist/commands/acceptance.js +25 -30
  796. package/dist/commands/acceptance.js.map +1 -1
  797. package/dist/commands/affected.d.ts +1 -2
  798. package/dist/commands/affected.d.ts.map +1 -1
  799. package/dist/commands/affected.js +23 -19
  800. package/dist/commands/affected.js.map +1 -1
  801. package/dist/commands/arguments-error.d.ts +11 -1
  802. package/dist/commands/arguments-error.d.ts.map +1 -1
  803. package/dist/commands/arguments-error.js +15 -1
  804. package/dist/commands/arguments-error.js.map +1 -1
  805. package/dist/commands/arguments.d.ts +87 -10
  806. package/dist/commands/arguments.d.ts.map +1 -1
  807. package/dist/commands/arguments.js +95 -18
  808. package/dist/commands/arguments.js.map +1 -1
  809. package/dist/commands/build-aliases.d.ts +1 -2
  810. package/dist/commands/build-aliases.d.ts.map +1 -1
  811. package/dist/commands/build-aliases.js +16 -14
  812. package/dist/commands/build-aliases.js.map +1 -1
  813. package/dist/commands/checks.d.ts +7 -3
  814. package/dist/commands/checks.d.ts.map +1 -1
  815. package/dist/commands/checks.js +16 -2
  816. package/dist/commands/checks.js.map +1 -1
  817. package/dist/commands/cited.d.ts +1 -2
  818. package/dist/commands/cited.d.ts.map +1 -1
  819. package/dist/commands/cited.js +32 -28
  820. package/dist/commands/cited.js.map +1 -1
  821. package/dist/commands/command.d.ts +81 -1
  822. package/dist/commands/command.d.ts.map +1 -1
  823. package/dist/commands/command.js +31 -1
  824. package/dist/commands/command.js.map +1 -1
  825. package/dist/commands/commit-size.d.ts +1 -2
  826. package/dist/commands/commit-size.d.ts.map +1 -1
  827. package/dist/commands/commit-size.js +16 -12
  828. package/dist/commands/commit-size.js.map +1 -1
  829. package/dist/commands/context-layout.d.ts +1 -2
  830. package/dist/commands/context-layout.d.ts.map +1 -1
  831. package/dist/commands/context-layout.js +30 -25
  832. package/dist/commands/context-layout.js.map +1 -1
  833. package/dist/commands/controllers.d.ts +1 -2
  834. package/dist/commands/controllers.d.ts.map +1 -1
  835. package/dist/commands/controllers.js +34 -29
  836. package/dist/commands/controllers.js.map +1 -1
  837. package/dist/commands/define-tool-command.d.ts +18 -0
  838. package/dist/commands/define-tool-command.d.ts.map +1 -0
  839. package/dist/commands/define-tool-command.js +19 -0
  840. package/dist/commands/define-tool-command.js.map +1 -0
  841. package/dist/commands/depcruise-config.d.ts +1 -2
  842. package/dist/commands/depcruise-config.d.ts.map +1 -1
  843. package/dist/commands/depcruise-config.js +34 -30
  844. package/dist/commands/depcruise-config.js.map +1 -1
  845. package/dist/commands/describe.d.ts +1 -2
  846. package/dist/commands/describe.d.ts.map +1 -1
  847. package/dist/commands/describe.js +14 -10
  848. package/dist/commands/describe.js.map +1 -1
  849. package/dist/commands/digest.d.ts +1 -2
  850. package/dist/commands/digest.d.ts.map +1 -1
  851. package/dist/commands/digest.js +17 -13
  852. package/dist/commands/digest.js.map +1 -1
  853. package/dist/commands/docs.d.ts +1 -2
  854. package/dist/commands/docs.d.ts.map +1 -1
  855. package/dist/commands/docs.js +29 -25
  856. package/dist/commands/docs.js.map +1 -1
  857. package/dist/commands/doctor.d.ts +1 -2
  858. package/dist/commands/doctor.d.ts.map +1 -1
  859. package/dist/commands/doctor.js +18 -13
  860. package/dist/commands/doctor.js.map +1 -1
  861. package/dist/commands/drizzle-generate.d.ts +1 -2
  862. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  863. package/dist/commands/drizzle-generate.js +19 -10
  864. package/dist/commands/drizzle-generate.js.map +1 -1
  865. package/dist/commands/error-factories.d.ts +1 -2
  866. package/dist/commands/error-factories.d.ts.map +1 -1
  867. package/dist/commands/error-factories.js +28 -30
  868. package/dist/commands/error-factories.js.map +1 -1
  869. package/dist/commands/generate.d.ts +2 -2
  870. package/dist/commands/generate.d.ts.map +1 -1
  871. package/dist/commands/generate.js +27 -15
  872. package/dist/commands/generate.js.map +1 -1
  873. package/dist/commands/holding-the-lock.d.ts +23 -0
  874. package/dist/commands/holding-the-lock.d.ts.map +1 -0
  875. package/dist/commands/holding-the-lock.js +28 -0
  876. package/dist/commands/holding-the-lock.js.map +1 -0
  877. package/dist/commands/init.d.ts +1 -2
  878. package/dist/commands/init.d.ts.map +1 -1
  879. package/dist/commands/init.js +42 -25
  880. package/dist/commands/init.js.map +1 -1
  881. package/dist/commands/knex-generate.d.ts +1 -2
  882. package/dist/commands/knex-generate.d.ts.map +1 -1
  883. package/dist/commands/knex-generate.js +20 -12
  884. package/dist/commands/knex-generate.js.map +1 -1
  885. package/dist/commands/lint.d.ts +1 -2
  886. package/dist/commands/lint.d.ts.map +1 -1
  887. package/dist/commands/lint.js +61 -39
  888. package/dist/commands/lint.js.map +1 -1
  889. package/dist/commands/list.d.ts +1 -2
  890. package/dist/commands/list.d.ts.map +1 -1
  891. package/dist/commands/list.js +10 -7
  892. package/dist/commands/list.js.map +1 -1
  893. package/dist/commands/measures.d.ts +1 -2
  894. package/dist/commands/measures.d.ts.map +1 -1
  895. package/dist/commands/measures.js +20 -20
  896. package/dist/commands/measures.js.map +1 -1
  897. package/dist/commands/merge-trunk.d.ts +1 -2
  898. package/dist/commands/merge-trunk.d.ts.map +1 -1
  899. package/dist/commands/merge-trunk.js +33 -26
  900. package/dist/commands/merge-trunk.js.map +1 -1
  901. package/dist/commands/move-to-module.d.ts +1 -2
  902. package/dist/commands/move-to-module.d.ts.map +1 -1
  903. package/dist/commands/move-to-module.js +50 -46
  904. package/dist/commands/move-to-module.js.map +1 -1
  905. package/dist/commands/mutation.d.ts +1 -2
  906. package/dist/commands/mutation.d.ts.map +1 -1
  907. package/dist/commands/mutation.js +20 -16
  908. package/dist/commands/mutation.js.map +1 -1
  909. package/dist/commands/option-usage.d.ts +12 -0
  910. package/dist/commands/option-usage.d.ts.map +1 -0
  911. package/dist/commands/option-usage.js +13 -0
  912. package/dist/commands/option-usage.js.map +1 -0
  913. package/dist/commands/plan-waves.d.ts +1 -2
  914. package/dist/commands/plan-waves.d.ts.map +1 -1
  915. package/dist/commands/plan-waves.js +18 -14
  916. package/dist/commands/plan-waves.js.map +1 -1
  917. package/dist/commands/platform-folders.d.ts +1 -2
  918. package/dist/commands/platform-folders.d.ts.map +1 -1
  919. package/dist/commands/platform-folders.js +25 -21
  920. package/dist/commands/platform-folders.js.map +1 -1
  921. package/dist/commands/prisma-client.d.ts +1 -2
  922. package/dist/commands/prisma-client.d.ts.map +1 -1
  923. package/dist/commands/prisma-client.js +17 -14
  924. package/dist/commands/prisma-client.js.map +1 -1
  925. package/dist/commands/prisma-generate.d.ts +1 -2
  926. package/dist/commands/prisma-generate.d.ts.map +1 -1
  927. package/dist/commands/prisma-generate.js +28 -20
  928. package/dist/commands/prisma-generate.js.map +1 -1
  929. package/dist/commands/refuse-second-name.d.ts +7 -0
  930. package/dist/commands/refuse-second-name.d.ts.map +1 -0
  931. package/dist/commands/refuse-second-name.js +12 -0
  932. package/dist/commands/refuse-second-name.js.map +1 -0
  933. package/dist/commands/sdk.d.ts +1 -2
  934. package/dist/commands/sdk.d.ts.map +1 -1
  935. package/dist/commands/sdk.js +18 -14
  936. package/dist/commands/sdk.js.map +1 -1
  937. package/dist/commands/status.d.ts +1 -2
  938. package/dist/commands/status.d.ts.map +1 -1
  939. package/dist/commands/status.js +26 -22
  940. package/dist/commands/status.js.map +1 -1
  941. package/dist/commands/stories.d.ts +1 -2
  942. package/dist/commands/stories.d.ts.map +1 -1
  943. package/dist/commands/stories.js +10 -7
  944. package/dist/commands/stories.js.map +1 -1
  945. package/dist/commands/story-check.d.ts +1 -2
  946. package/dist/commands/story-check.d.ts.map +1 -1
  947. package/dist/commands/story-check.js +15 -11
  948. package/dist/commands/story-check.js.map +1 -1
  949. package/dist/commands/story-scope.d.ts +1 -2
  950. package/dist/commands/story-scope.d.ts.map +1 -1
  951. package/dist/commands/story-scope.js +28 -35
  952. package/dist/commands/story-scope.js.map +1 -1
  953. package/dist/commands/story.d.ts +1 -2
  954. package/dist/commands/story.d.ts.map +1 -1
  955. package/dist/commands/story.js +17 -23
  956. package/dist/commands/story.js.map +1 -1
  957. package/dist/commands/todo.d.ts +1 -2
  958. package/dist/commands/todo.d.ts.map +1 -1
  959. package/dist/commands/todo.js +22 -18
  960. package/dist/commands/todo.js.map +1 -1
  961. package/dist/commands/tsc.d.ts +8 -0
  962. package/dist/commands/tsc.d.ts.map +1 -0
  963. package/dist/commands/tsc.js +49 -0
  964. package/dist/commands/tsc.js.map +1 -0
  965. package/dist/commands/typeorm-generate.d.ts +1 -2
  966. package/dist/commands/typeorm-generate.d.ts.map +1 -1
  967. package/dist/commands/typeorm-generate.js +34 -29
  968. package/dist/commands/typeorm-generate.js.map +1 -1
  969. package/dist/commands/usage-line.d.ts +18 -0
  970. package/dist/commands/usage-line.d.ts.map +1 -0
  971. package/dist/commands/usage-line.js +16 -0
  972. package/dist/commands/usage-line.js.map +1 -0
  973. package/dist/commands/value-objects.d.ts +1 -2
  974. package/dist/commands/value-objects.d.ts.map +1 -1
  975. package/dist/commands/value-objects.js +23 -19
  976. package/dist/commands/value-objects.js.map +1 -1
  977. package/dist/commands/verify-merge.d.ts +1 -2
  978. package/dist/commands/verify-merge.d.ts.map +1 -1
  979. package/dist/commands/verify-merge.js +27 -23
  980. package/dist/commands/verify-merge.js.map +1 -1
  981. package/dist/commands/verify-slice.d.ts +1 -2
  982. package/dist/commands/verify-slice.d.ts.map +1 -1
  983. package/dist/commands/verify-slice.js +19 -15
  984. package/dist/commands/verify-slice.js.map +1 -1
  985. package/dist/commands/with-modes.d.ts +10 -0
  986. package/dist/commands/with-modes.d.ts.map +1 -0
  987. package/dist/commands/with-modes.js +56 -0
  988. package/dist/commands/with-modes.js.map +1 -0
  989. package/dist/commands/worker-scope.d.ts +1 -2
  990. package/dist/commands/worker-scope.d.ts.map +1 -1
  991. package/dist/commands/worker-scope.js +35 -27
  992. package/dist/commands/worker-scope.js.map +1 -1
  993. package/dist/commands/worktree.d.ts +1 -2
  994. package/dist/commands/worktree.d.ts.map +1 -1
  995. package/dist/commands/worktree.js +23 -19
  996. package/dist/commands/worktree.js.map +1 -1
  997. package/dist/commands.d.ts +8 -0
  998. package/dist/commands.d.ts.map +1 -0
  999. package/dist/commands.js +94 -0
  1000. package/dist/commands.js.map +1 -0
  1001. package/dist/commit/changed-files.d.ts +8 -0
  1002. package/dist/commit/changed-files.d.ts.map +1 -0
  1003. package/dist/commit/changed-files.js +26 -0
  1004. package/dist/commit/changed-files.js.map +1 -0
  1005. package/dist/config/add-upstreams-to-config-text.d.ts +4 -0
  1006. package/dist/config/add-upstreams-to-config-text.d.ts.map +1 -0
  1007. package/dist/config/add-upstreams-to-config-text.js +17 -0
  1008. package/dist/config/add-upstreams-to-config-text.js.map +1 -0
  1009. package/dist/docs/write-behaviour.js +2 -1
  1010. package/dist/docs/write-behaviour.js.map +1 -1
  1011. package/dist/docs/write-code-owners.js +1 -1
  1012. package/dist/docs/write-code-owners.js.map +1 -1
  1013. package/dist/docs/write-docs.d.ts.map +1 -1
  1014. package/dist/docs/write-docs.js +6 -2
  1015. package/dist/docs/write-docs.js.map +1 -1
  1016. package/dist/docs/write-personal-events.js +1 -1
  1017. package/dist/docs/write-personal-events.js.map +1 -1
  1018. package/dist/docs/write-privacy-register.js +1 -1
  1019. package/dist/docs/write-privacy-register.js.map +1 -1
  1020. package/dist/doctor/install-script-findings.d.ts.map +1 -1
  1021. package/dist/doctor/install-script-findings.js +2 -1
  1022. package/dist/doctor/install-script-findings.js.map +1 -1
  1023. package/dist/doctor/override-findings.d.ts.map +1 -1
  1024. package/dist/doctor/override-findings.js +3 -1
  1025. package/dist/doctor/override-findings.js.map +1 -1
  1026. package/dist/generate/apply-wiring.js +1 -1
  1027. package/dist/generate/apply-wiring.js.map +1 -1
  1028. package/dist/generate/concept-kind.d.ts +23 -0
  1029. package/dist/generate/concept-kind.d.ts.map +1 -0
  1030. package/dist/generate/concept-kind.js +26 -0
  1031. package/dist/generate/concept-kind.js.map +1 -0
  1032. package/dist/generate/define-kind.d.ts +18 -0
  1033. package/dist/generate/define-kind.d.ts.map +1 -0
  1034. package/dist/generate/define-kind.js +24 -0
  1035. package/dist/generate/define-kind.js.map +1 -0
  1036. package/dist/generate/errors/add-factory.js +2 -2
  1037. package/dist/generate/errors/add-factory.js.map +1 -1
  1038. package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
  1039. package/dist/generate/errors/refusal-class-name.js +10 -2
  1040. package/dist/generate/errors/refusal-class-name.js.map +1 -1
  1041. package/dist/generate/errors/static-methods.d.ts +1 -1
  1042. package/dist/generate/errors/static-methods.d.ts.map +1 -1
  1043. package/dist/generate/errors/static-methods.js +3 -2
  1044. package/dist/generate/errors/static-methods.js.map +1 -1
  1045. package/dist/generate/generate-arguments.d.ts.map +1 -1
  1046. package/dist/generate/generate-arguments.js +2 -7
  1047. package/dist/generate/generate-arguments.js.map +1 -1
  1048. package/dist/generate/generate-options-on.d.ts +8 -0
  1049. package/dist/generate/generate-options-on.d.ts.map +1 -0
  1050. package/dist/generate/generate-options-on.js +13 -0
  1051. package/dist/generate/generate-options-on.js.map +1 -0
  1052. package/dist/generate/generate-options.d.ts +8 -179
  1053. package/dist/generate/generate-options.d.ts.map +1 -1
  1054. package/dist/generate/generate-options.js +24 -54
  1055. package/dist/generate/generate-options.js.map +1 -1
  1056. package/dist/generate/grant-permission.d.ts.map +1 -1
  1057. package/dist/generate/grant-permission.js +27 -48
  1058. package/dist/generate/grant-permission.js.map +1 -1
  1059. package/dist/generate/held-to-glossary.d.ts +4 -4
  1060. package/dist/generate/held-to-glossary.d.ts.map +1 -1
  1061. package/dist/generate/held-to-glossary.js +5 -6
  1062. package/dist/generate/held-to-glossary.js.map +1 -1
  1063. package/dist/generate/kind-help.d.ts.map +1 -1
  1064. package/dist/generate/kind-help.js +2 -4
  1065. package/dist/generate/kind-help.js.map +1 -1
  1066. package/dist/generate/kind-in.d.ts.map +1 -1
  1067. package/dist/generate/kind-in.js +3 -3
  1068. package/dist/generate/kind-in.js.map +1 -1
  1069. package/dist/generate/kind-options.d.ts +10 -0
  1070. package/dist/generate/kind-options.d.ts.map +1 -0
  1071. package/dist/generate/kind-options.js +6 -0
  1072. package/dist/generate/kind-options.js.map +1 -0
  1073. package/dist/generate/kind.d.ts +31 -6
  1074. package/dist/generate/kind.d.ts.map +1 -1
  1075. package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
  1076. package/dist/generate/kinds/acceptance-kind.js +6 -2
  1077. package/dist/generate/kinds/acceptance-kind.js.map +1 -1
  1078. package/dist/generate/kinds/acl-kind.d.ts +1 -2
  1079. package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
  1080. package/dist/generate/kinds/acl-kind.js +11 -10
  1081. package/dist/generate/kinds/acl-kind.js.map +1 -1
  1082. package/dist/generate/kinds/adapter-kind.d.ts +1 -2
  1083. package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
  1084. package/dist/generate/kinds/adapter-kind.js +12 -9
  1085. package/dist/generate/kinds/adapter-kind.js.map +1 -1
  1086. package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
  1087. package/dist/generate/kinds/adr-kind.js +11 -2
  1088. package/dist/generate/kinds/adr-kind.js.map +1 -1
  1089. package/dist/generate/kinds/aggregate-kind.d.ts +1 -2
  1090. package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
  1091. package/dist/generate/kinds/aggregate-kind.js +8 -11
  1092. package/dist/generate/kinds/aggregate-kind.js.map +1 -1
  1093. package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts +2 -0
  1094. package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts.map +1 -1
  1095. package/dist/generate/kinds/ask-policy-in-generated-use-case.js +20 -4
  1096. package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
  1097. package/dist/generate/kinds/background-job-kind.d.ts +1 -2
  1098. package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
  1099. package/dist/generate/kinds/background-job-kind.js +9 -12
  1100. package/dist/generate/kinds/background-job-kind.js.map +1 -1
  1101. package/dist/generate/kinds/builder-kind.d.ts +1 -2
  1102. package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
  1103. package/dist/generate/kinds/builder-kind.js +7 -9
  1104. package/dist/generate/kinds/builder-kind.js.map +1 -1
  1105. package/dist/generate/kinds/command-context.d.ts +2 -2
  1106. package/dist/generate/kinds/command-context.d.ts.map +1 -1
  1107. package/dist/generate/kinds/command-context.js +10 -4
  1108. package/dist/generate/kinds/command-context.js.map +1 -1
  1109. package/dist/generate/kinds/command-kind.d.ts +1 -2
  1110. package/dist/generate/kinds/command-kind.d.ts.map +1 -1
  1111. package/dist/generate/kinds/command-kind.js +23 -12
  1112. package/dist/generate/kinds/command-kind.js.map +1 -1
  1113. package/dist/generate/kinds/context-kind.d.ts.map +1 -1
  1114. package/dist/generate/kinds/context-kind.js +22 -2
  1115. package/dist/generate/kinds/context-kind.js.map +1 -1
  1116. package/dist/generate/kinds/declare-table.d.ts +1 -11
  1117. package/dist/generate/kinds/declare-table.d.ts.map +1 -1
  1118. package/dist/generate/kinds/declare-table.js +2 -132
  1119. package/dist/generate/kinds/declare-table.js.map +1 -1
  1120. package/dist/generate/kinds/domain-error-kind.d.ts +1 -2
  1121. package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
  1122. package/dist/generate/kinds/domain-error-kind.js +14 -11
  1123. package/dist/generate/kinds/domain-error-kind.js.map +1 -1
  1124. package/dist/generate/kinds/domain-event-kind.d.ts +1 -2
  1125. package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
  1126. package/dist/generate/kinds/domain-event-kind.js +8 -11
  1127. package/dist/generate/kinds/domain-event-kind.js.map +1 -1
  1128. package/dist/generate/kinds/domain-service-kind.d.ts +1 -2
  1129. package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
  1130. package/dist/generate/kinds/domain-service-kind.js +8 -22
  1131. package/dist/generate/kinds/domain-service-kind.js.map +1 -1
  1132. package/dist/generate/kinds/e2e/held-scenarios.d.ts +8 -0
  1133. package/dist/generate/kinds/e2e/held-scenarios.d.ts.map +1 -0
  1134. package/dist/generate/kinds/e2e/held-scenarios.js +18 -0
  1135. package/dist/generate/kinds/e2e/held-scenarios.js.map +1 -0
  1136. package/dist/generate/kinds/e2e/reaction-of.d.ts +2 -0
  1137. package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
  1138. package/dist/generate/kinds/e2e/reaction-of.js +29 -15
  1139. package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
  1140. package/dist/generate/kinds/e2e/still-refusing.d.ts +10 -0
  1141. package/dist/generate/kinds/e2e/still-refusing.d.ts.map +1 -0
  1142. package/dist/generate/kinds/e2e/still-refusing.js +22 -0
  1143. package/dist/generate/kinds/e2e/still-refusing.js.map +1 -0
  1144. package/dist/generate/kinds/e2e-kind.d.ts +1 -2
  1145. package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
  1146. package/dist/generate/kinds/e2e-kind.js +30 -11
  1147. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  1148. package/dist/generate/kinds/entity-kind.d.ts +1 -2
  1149. package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
  1150. package/dist/generate/kinds/entity-kind.js +8 -22
  1151. package/dist/generate/kinds/entity-kind.js.map +1 -1
  1152. package/dist/generate/kinds/erasure-handler-kind.d.ts +1 -2
  1153. package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
  1154. package/dist/generate/kinds/erasure-handler-kind.js +7 -9
  1155. package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
  1156. package/dist/generate/kinds/error-kind.d.ts +1 -2
  1157. package/dist/generate/kinds/error-kind.d.ts.map +1 -1
  1158. package/dist/generate/kinds/error-kind.js +18 -10
  1159. package/dist/generate/kinds/error-kind.js.map +1 -1
  1160. package/dist/generate/kinds/event-handler-kind.d.ts +1 -2
  1161. package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
  1162. package/dist/generate/kinds/event-handler-kind.js +12 -11
  1163. package/dist/generate/kinds/event-handler-kind.js.map +1 -1
  1164. package/dist/generate/kinds/file-upload-kind.d.ts +1 -2
  1165. package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
  1166. package/dist/generate/kinds/file-upload-kind.js +20 -11
  1167. package/dist/generate/kinds/file-upload-kind.js.map +1 -1
  1168. package/dist/generate/kinds/form-kind.d.ts +1 -2
  1169. package/dist/generate/kinds/form-kind.d.ts.map +1 -1
  1170. package/dist/generate/kinds/form-kind.js +7 -9
  1171. package/dist/generate/kinds/form-kind.js.map +1 -1
  1172. package/dist/generate/kinds/gateway-kind.d.ts +1 -2
  1173. package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
  1174. package/dist/generate/kinds/gateway-kind.js +25 -19
  1175. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  1176. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  1177. package/dist/generate/kinds/generate-context.js +75 -9
  1178. package/dist/generate/kinds/generate-context.js.map +1 -1
  1179. package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
  1180. package/dist/generate/kinds/generate-repository.js +9 -1
  1181. package/dist/generate/kinds/generate-repository.js.map +1 -1
  1182. package/dist/generate/kinds/guard-kind.d.ts +1 -2
  1183. package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
  1184. package/dist/generate/kinds/guard-kind.js +7 -9
  1185. package/dist/generate/kinds/guard-kind.js.map +1 -1
  1186. package/dist/generate/kinds/integration-event-kind.d.ts +1 -2
  1187. package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
  1188. package/dist/generate/kinds/integration-event-kind.js +13 -11
  1189. package/dist/generate/kinds/integration-event-kind.js.map +1 -1
  1190. package/dist/generate/kinds/integration-handler-kind.d.ts +1 -2
  1191. package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
  1192. package/dist/generate/kinds/integration-handler-kind.js +9 -10
  1193. package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
  1194. package/dist/generate/kinds/job-kind.d.ts +1 -2
  1195. package/dist/generate/kinds/job-kind.d.ts.map +1 -1
  1196. package/dist/generate/kinds/job-kind.js +20 -12
  1197. package/dist/generate/kinds/job-kind.js.map +1 -1
  1198. package/dist/generate/kinds/module-kind.d.ts +1 -2
  1199. package/dist/generate/kinds/module-kind.d.ts.map +1 -1
  1200. package/dist/generate/kinds/module-kind.js +14 -11
  1201. package/dist/generate/kinds/module-kind.js.map +1 -1
  1202. package/dist/generate/kinds/personal-data/table-of-schema.js +2 -2
  1203. package/dist/generate/kinds/personal-data/table-of-schema.js.map +1 -1
  1204. package/dist/generate/kinds/personal-fields-kind.d.ts +1 -2
  1205. package/dist/generate/kinds/personal-fields-kind.d.ts.map +1 -1
  1206. package/dist/generate/kinds/personal-fields-kind.js +21 -9
  1207. package/dist/generate/kinds/personal-fields-kind.js.map +1 -1
  1208. package/dist/generate/kinds/policy-kind.d.ts +1 -2
  1209. package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
  1210. package/dist/generate/kinds/policy-kind.js +13 -11
  1211. package/dist/generate/kinds/policy-kind.js.map +1 -1
  1212. package/dist/generate/kinds/port-kind.d.ts +1 -2
  1213. package/dist/generate/kinds/port-kind.d.ts.map +1 -1
  1214. package/dist/generate/kinds/port-kind.js +7 -9
  1215. package/dist/generate/kinds/port-kind.js.map +1 -1
  1216. package/dist/generate/kinds/process-kind.d.ts +1 -2
  1217. package/dist/generate/kinds/process-kind.d.ts.map +1 -1
  1218. package/dist/generate/kinds/process-kind.js +8 -10
  1219. package/dist/generate/kinds/process-kind.js.map +1 -1
  1220. package/dist/generate/kinds/projection-kind.d.ts +1 -2
  1221. package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
  1222. package/dist/generate/kinds/projection-kind.js +26 -11
  1223. package/dist/generate/kinds/projection-kind.js.map +1 -1
  1224. package/dist/generate/kinds/property-kind.d.ts +1 -2
  1225. package/dist/generate/kinds/property-kind.d.ts.map +1 -1
  1226. package/dist/generate/kinds/property-kind.js +14 -10
  1227. package/dist/generate/kinds/property-kind.js.map +1 -1
  1228. package/dist/generate/kinds/query-context.d.ts +1 -1
  1229. package/dist/generate/kinds/query-context.d.ts.map +1 -1
  1230. package/dist/generate/kinds/query-context.js +3 -2
  1231. package/dist/generate/kinds/query-context.js.map +1 -1
  1232. package/dist/generate/kinds/query-kind.d.ts +1 -2
  1233. package/dist/generate/kinds/query-kind.d.ts.map +1 -1
  1234. package/dist/generate/kinds/query-kind.js +17 -11
  1235. package/dist/generate/kinds/query-kind.js.map +1 -1
  1236. package/dist/generate/kinds/query-outputs.js +1 -1
  1237. package/dist/generate/kinds/query-outputs.js.map +1 -1
  1238. package/dist/generate/kinds/read-model-kind.d.ts +1 -2
  1239. package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
  1240. package/dist/generate/kinds/read-model-kind.js +16 -11
  1241. package/dist/generate/kinds/read-model-kind.js.map +1 -1
  1242. package/dist/generate/kinds/repository-kind.d.ts +1 -2
  1243. package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
  1244. package/dist/generate/kinds/repository-kind.js +16 -9
  1245. package/dist/generate/kinds/repository-kind.js.map +1 -1
  1246. package/dist/generate/kinds/representation-kind.d.ts +1 -2
  1247. package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
  1248. package/dist/generate/kinds/representation-kind.js +8 -9
  1249. package/dist/generate/kinds/representation-kind.js.map +1 -1
  1250. package/dist/generate/kinds/route-group-kind.d.ts +1 -2
  1251. package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
  1252. package/dist/generate/kinds/route-group-kind.js +18 -8
  1253. package/dist/generate/kinds/route-group-kind.js.map +1 -1
  1254. package/dist/generate/kinds/route-kind.d.ts.map +1 -1
  1255. package/dist/generate/kinds/route-kind.js +17 -11
  1256. package/dist/generate/kinds/route-kind.js.map +1 -1
  1257. package/dist/generate/kinds/same-name/index-picture.d.ts +1 -19
  1258. package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -1
  1259. package/dist/generate/kinds/same-name/index-picture.js +4 -52
  1260. package/dist/generate/kinds/same-name/index-picture.js.map +1 -1
  1261. package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -1
  1262. package/dist/generate/kinds/same-name/keep-the-picture.js +18 -36
  1263. package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -1
  1264. package/dist/generate/kinds/schema-kind.d.ts +1 -2
  1265. package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
  1266. package/dist/generate/kinds/schema-kind.js +12 -9
  1267. package/dist/generate/kinds/schema-kind.js.map +1 -1
  1268. package/dist/generate/kinds/service-kind.d.ts +1 -2
  1269. package/dist/generate/kinds/service-kind.d.ts.map +1 -1
  1270. package/dist/generate/kinds/service-kind.js +17 -9
  1271. package/dist/generate/kinds/service-kind.js.map +1 -1
  1272. package/dist/generate/kinds/state-machine-kind.d.ts +1 -2
  1273. package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
  1274. package/dist/generate/kinds/state-machine-kind.js +12 -11
  1275. package/dist/generate/kinds/state-machine-kind.js.map +1 -1
  1276. package/dist/generate/kinds/test-world-kind.d.ts +1 -2
  1277. package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
  1278. package/dist/generate/kinds/test-world-kind.js +7 -9
  1279. package/dist/generate/kinds/test-world-kind.js.map +1 -1
  1280. package/dist/generate/kinds/value-object-kind.d.ts +1 -2
  1281. package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
  1282. package/dist/generate/kinds/value-object-kind.js +14 -20
  1283. package/dist/generate/kinds/value-object-kind.js.map +1 -1
  1284. package/dist/generate/kinds/vocabulary-kind.d.ts +1 -2
  1285. package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
  1286. package/dist/generate/kinds/vocabulary-kind.js +10 -9
  1287. package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
  1288. package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
  1289. package/dist/generate/kinds/worker-kind.js +12 -2
  1290. package/dist/generate/kinds/worker-kind.js.map +1 -1
  1291. package/dist/generate/options-of.d.ts +5 -0
  1292. package/dist/generate/options-of.d.ts.map +1 -0
  1293. package/dist/generate/options-of.js +7 -0
  1294. package/dist/generate/options-of.js.map +1 -0
  1295. package/dist/generate/refuse-shared-writes.d.ts +9 -1
  1296. package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
  1297. package/dist/generate/refuse-shared-writes.js +10 -9
  1298. package/dist/generate/refuse-shared-writes.js.map +1 -1
  1299. package/dist/generate/refuse-undeclared-flags.d.ts +4 -4
  1300. package/dist/generate/refuse-undeclared-flags.js +6 -6
  1301. package/dist/generate/refuse-undeclared-flags.js.map +1 -1
  1302. package/dist/generate/searched-elements.d.ts +1 -1
  1303. package/dist/generate/searched-elements.d.ts.map +1 -1
  1304. package/dist/generate/searched-elements.js +5 -1
  1305. package/dist/generate/searched-elements.js.map +1 -1
  1306. package/dist/generate/shared-write.d.ts +27 -0
  1307. package/dist/generate/shared-write.d.ts.map +1 -0
  1308. package/dist/generate/shared-write.js +19 -0
  1309. package/dist/generate/shared-write.js.map +1 -0
  1310. package/dist/generate/stop-ignoring-validation.d.ts.map +1 -1
  1311. package/dist/generate/stop-ignoring-validation.js +1 -3
  1312. package/dist/generate/stop-ignoring-validation.js.map +1 -1
  1313. package/dist/generate/usage-of.d.ts +4 -1
  1314. package/dist/generate/usage-of.d.ts.map +1 -1
  1315. package/dist/generate/usage-of.js +24 -2
  1316. package/dist/generate/usage-of.js.map +1 -1
  1317. package/dist/generate/with-import.d.ts +2 -2
  1318. package/dist/generate/with-import.d.ts.map +1 -1
  1319. package/dist/generate/with-import.js +4 -10
  1320. package/dist/generate/with-import.js.map +1 -1
  1321. package/dist/generate/writes-in-a-context.d.ts +4 -0
  1322. package/dist/generate/writes-in-a-context.d.ts.map +1 -0
  1323. package/dist/generate/writes-in-a-context.js +5 -0
  1324. package/dist/generate/writes-in-a-context.js.map +1 -0
  1325. package/dist/generator-lock/held-lock-refusal.js +1 -1
  1326. package/dist/generator-lock/held-lock-refusal.js.map +1 -1
  1327. package/dist/generator-lock/remove-stale.d.ts +6 -3
  1328. package/dist/generator-lock/remove-stale.d.ts.map +1 -1
  1329. package/dist/generator-lock/remove-stale.js +19 -8
  1330. package/dist/generator-lock/remove-stale.js.map +1 -1
  1331. package/dist/help/help-for.d.ts +2 -2
  1332. package/dist/help/help-for.d.ts.map +1 -1
  1333. package/dist/help/help-for.js +2 -3
  1334. package/dist/help/help-for.js.map +1 -1
  1335. package/dist/help/tool-notes.d.ts.map +1 -1
  1336. package/dist/help/tool-notes.js +8 -0
  1337. package/dist/help/tool-notes.js.map +1 -1
  1338. package/dist/help/usage-for.d.ts +3 -2
  1339. package/dist/help/usage-for.d.ts.map +1 -1
  1340. package/dist/help/usage-for.js +9 -8
  1341. package/dist/help/usage-for.js.map +1 -1
  1342. package/dist/help/usage-lines-of.d.ts +1 -1
  1343. package/dist/help/usage-lines-of.d.ts.map +1 -1
  1344. package/dist/help/usage-lines-of.js +3 -16
  1345. package/dist/help/usage-lines-of.js.map +1 -1
  1346. package/dist/help/usage.d.ts +4 -1
  1347. package/dist/help/usage.d.ts.map +1 -1
  1348. package/dist/help/usage.js +8 -72
  1349. package/dist/help/usage.js.map +1 -1
  1350. package/dist/init/knip-vars.d.ts.map +1 -1
  1351. package/dist/init/knip-vars.js +7 -6
  1352. package/dist/init/knip-vars.js.map +1 -1
  1353. package/dist/init/manifest/left-to-workspace-root.d.ts +4 -0
  1354. package/dist/init/manifest/left-to-workspace-root.d.ts.map +1 -0
  1355. package/dist/init/manifest/left-to-workspace-root.js +6 -0
  1356. package/dist/init/manifest/left-to-workspace-root.js.map +1 -0
  1357. package/dist/init/manifest/versions.js +25 -25
  1358. package/dist/init/manifest/write-install-settings.d.ts +10 -0
  1359. package/dist/init/manifest/write-install-settings.d.ts.map +1 -0
  1360. package/dist/init/manifest/write-install-settings.js +57 -0
  1361. package/dist/init/manifest/write-install-settings.js.map +1 -0
  1362. package/dist/init/rewire-tables.d.ts.map +1 -1
  1363. package/dist/init/rewire-tables.js +2 -52
  1364. package/dist/init/rewire-tables.js.map +1 -1
  1365. package/dist/init/run-init.d.ts.map +1 -1
  1366. package/dist/init/run-init.js +11 -7
  1367. package/dist/init/run-init.js.map +1 -1
  1368. package/dist/init/settle-index-names.d.ts.map +1 -1
  1369. package/dist/init/settle-index-names.js +4 -43
  1370. package/dist/init/settle-index-names.js.map +1 -1
  1371. package/dist/init/stack/resolve-stack.d.ts.map +1 -1
  1372. package/dist/init/stack/resolve-stack.js +10 -1
  1373. package/dist/init/stack/resolve-stack.js.map +1 -1
  1374. package/dist/init/subfolder-sentence.js +1 -1
  1375. package/dist/init/subfolder-sentence.js.map +1 -1
  1376. package/dist/init/template-vars.d.ts.map +1 -1
  1377. package/dist/init/template-vars.js +0 -2
  1378. package/dist/init/template-vars.js.map +1 -1
  1379. package/dist/init/workspace-image-note.d.ts +9 -0
  1380. package/dist/init/workspace-image-note.d.ts.map +1 -0
  1381. package/dist/init/workspace-image-note.js +37 -0
  1382. package/dist/init/workspace-image-note.js.map +1 -0
  1383. package/dist/init/workspace-manager-note.d.ts +5 -0
  1384. package/dist/init/workspace-manager-note.d.ts.map +1 -0
  1385. package/dist/init/workspace-manager-note.js +12 -0
  1386. package/dist/init/workspace-manager-note.js.map +1 -0
  1387. package/dist/init/write-agent-settings.js +1 -1
  1388. package/dist/init/write-agent-settings.js.map +1 -1
  1389. package/dist/init/write-contracts.js +1 -1
  1390. package/dist/init/write-contracts.js.map +1 -1
  1391. package/dist/init/write-local-environment.js +1 -1
  1392. package/dist/init/write-local-environment.js.map +1 -1
  1393. package/dist/init/write-profile-hooks.js +1 -1
  1394. package/dist/init/write-profile-hooks.js.map +1 -1
  1395. package/dist/lint/eslint-in-project.d.ts +6 -2
  1396. package/dist/lint/eslint-in-project.d.ts.map +1 -1
  1397. package/dist/lint/eslint-in-project.js +9 -3
  1398. package/dist/lint/eslint-in-project.js.map +1 -1
  1399. package/dist/markers/insert-in-region.js +23 -6
  1400. package/dist/markers/insert-in-region.js.map +1 -1
  1401. package/dist/markers/merge-imports.d.ts +3 -1
  1402. package/dist/markers/merge-imports.d.ts.map +1 -1
  1403. package/dist/markers/merge-imports.js +66 -23
  1404. package/dist/markers/merge-imports.js.map +1 -1
  1405. package/dist/markers/replace-in-region.js +1 -1
  1406. package/dist/markers/replace-in-region.js.map +1 -1
  1407. package/dist/merge/land-drizzle.d.ts +1 -1
  1408. package/dist/merge/land-drizzle.d.ts.map +1 -1
  1409. package/dist/merge/land-drizzle.js +2 -2
  1410. package/dist/merge/land-drizzle.js.map +1 -1
  1411. package/dist/merge/land-up-to-date.d.ts.map +1 -1
  1412. package/dist/merge/land-up-to-date.js +11 -47
  1413. package/dist/merge/land-up-to-date.js.map +1 -1
  1414. package/dist/merge/merge-steps.d.ts.map +1 -1
  1415. package/dist/merge/merge-steps.js +4 -9
  1416. package/dist/merge/merge-steps.js.map +1 -1
  1417. package/dist/merge/order/applied-under-old-name.d.ts +4 -9
  1418. package/dist/merge/order/applied-under-old-name.d.ts.map +1 -1
  1419. package/dist/merge/order/applied-under-old-name.js +5 -9
  1420. package/dist/merge/order/applied-under-old-name.js.map +1 -1
  1421. package/dist/merge/order/drizzle-order.js +3 -3
  1422. package/dist/merge/order/drizzle-order.js.map +1 -1
  1423. package/dist/merge/order/migration-order.d.ts.map +1 -1
  1424. package/dist/merge/order/migration-order.js +2 -6
  1425. package/dist/merge/order/migration-order.js.map +1 -1
  1426. package/dist/merge/order/named-order.d.ts +3 -3
  1427. package/dist/merge/order/named-order.d.ts.map +1 -1
  1428. package/dist/merge/order/named-order.js +10 -14
  1429. package/dist/merge/order/named-order.js.map +1 -1
  1430. package/dist/merge/renamed-after-trunk.d.ts +10 -0
  1431. package/dist/merge/renamed-after-trunk.d.ts.map +1 -0
  1432. package/dist/merge/renamed-after-trunk.js +21 -0
  1433. package/dist/merge/renamed-after-trunk.js.map +1 -0
  1434. package/dist/merge/renumber-migrations.d.ts +4 -8
  1435. package/dist/merge/renumber-migrations.d.ts.map +1 -1
  1436. package/dist/merge/renumber-migrations.js +28 -53
  1437. package/dist/merge/renumber-migrations.js.map +1 -1
  1438. package/dist/merge/replayed-after-trunk.d.ts +7 -0
  1439. package/dist/merge/replayed-after-trunk.d.ts.map +1 -0
  1440. package/dist/merge/replayed-after-trunk.js +35 -0
  1441. package/dist/merge/replayed-after-trunk.js.map +1 -0
  1442. package/dist/migration/refuse-taken-migration-name.d.ts +2 -1
  1443. package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -1
  1444. package/dist/migration/refuse-taken-migration-name.js +3 -5
  1445. package/dist/migration/refuse-taken-migration-name.js.map +1 -1
  1446. package/dist/naming/inflection.d.ts +15 -0
  1447. package/dist/naming/inflection.d.ts.map +1 -0
  1448. package/dist/naming/inflection.js +24 -0
  1449. package/dist/naming/inflection.js.map +1 -0
  1450. package/dist/naming/parse-concept-name.d.ts +3 -2
  1451. package/dist/naming/parse-concept-name.d.ts.map +1 -1
  1452. package/dist/naming/parse-concept-name.js +5 -2
  1453. package/dist/naming/parse-concept-name.js.map +1 -1
  1454. package/dist/naming/plural.d.ts +1 -1
  1455. package/dist/naming/plural.d.ts.map +1 -1
  1456. package/dist/naming/plural.js +7 -4
  1457. package/dist/naming/plural.js.map +1 -1
  1458. package/dist/naming/refuse-unwritable.d.ts +8 -0
  1459. package/dist/naming/refuse-unwritable.d.ts.map +1 -0
  1460. package/dist/naming/refuse-unwritable.js +32 -0
  1461. package/dist/naming/refuse-unwritable.js.map +1 -0
  1462. package/dist/naming/singular.d.ts +5 -1
  1463. package/dist/naming/singular.d.ts.map +1 -1
  1464. package/dist/naming/singular.js +15 -2
  1465. package/dist/naming/singular.js.map +1 -1
  1466. package/dist/naming/to-name.d.ts +5 -0
  1467. package/dist/naming/to-name.d.ts.map +1 -1
  1468. package/dist/naming/to-name.js +7 -2
  1469. package/dist/naming/to-name.js.map +1 -1
  1470. package/dist/orm/database-access.d.ts +13 -0
  1471. package/dist/orm/database-access.d.ts.map +1 -0
  1472. package/dist/orm/database-access.js +2 -0
  1473. package/dist/orm/database-access.js.map +1 -0
  1474. package/dist/orm/members/drizzle.d.ts +3 -0
  1475. package/dist/orm/members/drizzle.d.ts.map +1 -0
  1476. package/dist/orm/members/drizzle.js +16 -0
  1477. package/dist/orm/members/drizzle.js.map +1 -0
  1478. package/dist/orm/members/knex.d.ts +3 -0
  1479. package/dist/orm/members/knex.d.ts.map +1 -0
  1480. package/dist/orm/members/knex.js +20 -0
  1481. package/dist/orm/members/knex.js.map +1 -0
  1482. package/dist/orm/members/prisma.d.ts +3 -0
  1483. package/dist/orm/members/prisma.d.ts.map +1 -0
  1484. package/dist/orm/members/prisma.js +9 -0
  1485. package/dist/orm/members/prisma.js.map +1 -0
  1486. package/dist/orm/members/typeorm.d.ts +3 -0
  1487. package/dist/orm/members/typeorm.d.ts.map +1 -0
  1488. package/dist/orm/members/typeorm.js +18 -0
  1489. package/dist/orm/members/typeorm.js.map +1 -0
  1490. package/dist/orm/migrations/files-of-commit.d.ts +3 -0
  1491. package/dist/orm/migrations/files-of-commit.d.ts.map +1 -0
  1492. package/dist/orm/migrations/files-of-commit.js +8 -0
  1493. package/dist/orm/migrations/files-of-commit.js.map +1 -0
  1494. package/dist/orm/migrations/in-order.d.ts +5 -0
  1495. package/dist/orm/migrations/in-order.d.ts.map +1 -0
  1496. package/dist/orm/migrations/in-order.js +5 -0
  1497. package/dist/orm/migrations/in-order.js.map +1 -0
  1498. package/dist/orm/migrations/migration-history.d.ts +44 -0
  1499. package/dist/orm/migrations/migration-history.d.ts.map +1 -0
  1500. package/dist/orm/migrations/migration-history.js +2 -0
  1501. package/dist/orm/migrations/migration-history.js.map +1 -0
  1502. package/dist/orm/migrations/migration-tool.d.ts +32 -0
  1503. package/dist/orm/migrations/migration-tool.d.ts.map +1 -0
  1504. package/dist/orm/migrations/migration-tool.js +2 -0
  1505. package/dist/orm/migrations/migration-tool.js.map +1 -0
  1506. package/dist/orm/migrations/migrations-landed.d.ts +6 -0
  1507. package/dist/orm/migrations/migrations-landed.d.ts.map +1 -0
  1508. package/dist/orm/migrations/migrations-landed.js +2 -0
  1509. package/dist/orm/migrations/migrations-landed.js.map +1 -0
  1510. package/dist/orm/migrations/named-folders.d.ts +7 -0
  1511. package/dist/orm/migrations/named-folders.d.ts.map +1 -0
  1512. package/dist/orm/migrations/named-folders.js +40 -0
  1513. package/dist/orm/migrations/named-folders.js.map +1 -0
  1514. package/dist/orm/migrations/named-scripts.d.ts +7 -0
  1515. package/dist/orm/migrations/named-scripts.d.ts.map +1 -0
  1516. package/dist/orm/migrations/named-scripts.js +36 -0
  1517. package/dist/orm/migrations/named-scripts.js.map +1 -0
  1518. package/dist/orm/migrations/numbered-name.d.ts +6 -0
  1519. package/dist/orm/migrations/numbered-name.d.ts.map +1 -0
  1520. package/dist/orm/migrations/numbered-name.js +7 -0
  1521. package/dist/orm/migrations/numbered-name.js.map +1 -0
  1522. package/dist/{merge/order → orm/migrations}/ordered-migration.d.ts +0 -2
  1523. package/dist/orm/migrations/ordered-migration.d.ts.map +1 -0
  1524. package/dist/orm/migrations/ordered-migration.js.map +1 -0
  1525. package/dist/orm/migrations/renumbered-name.d.ts +3 -0
  1526. package/dist/orm/migrations/renumbered-name.d.ts.map +1 -0
  1527. package/dist/orm/migrations/renumbered-name.js +7 -0
  1528. package/dist/orm/migrations/renumbered-name.js.map +1 -0
  1529. package/dist/orm/migrations/restamp-class.d.ts.map +1 -0
  1530. package/dist/{merge → orm/migrations}/restamp-class.js +2 -2
  1531. package/dist/orm/migrations/restamp-class.js.map +1 -0
  1532. package/dist/orm/migrations/script-named.d.ts +3 -0
  1533. package/dist/orm/migrations/script-named.d.ts.map +1 -0
  1534. package/dist/orm/migrations/script-named.js +6 -0
  1535. package/dist/orm/migrations/script-named.js.map +1 -0
  1536. package/dist/orm/migrations/scripts.d.ts +7 -0
  1537. package/dist/orm/migrations/scripts.d.ts.map +1 -0
  1538. package/dist/orm/migrations/scripts.js +7 -0
  1539. package/dist/orm/migrations/scripts.js.map +1 -0
  1540. package/dist/orm/migrations/stamped-classes.d.ts +8 -0
  1541. package/dist/orm/migrations/stamped-classes.d.ts.map +1 -0
  1542. package/dist/orm/migrations/stamped-classes.js +53 -0
  1543. package/dist/orm/migrations/stamped-classes.js.map +1 -0
  1544. package/dist/orm/orm-member.d.ts +16 -0
  1545. package/dist/orm/orm-member.d.ts.map +1 -0
  1546. package/dist/orm/orm-member.js +2 -0
  1547. package/dist/orm/orm-member.js.map +1 -0
  1548. package/dist/orm/orm-members.d.ts +5 -0
  1549. package/dist/orm/orm-members.d.ts.map +1 -0
  1550. package/dist/orm/orm-members.js +11 -0
  1551. package/dist/orm/orm-members.js.map +1 -0
  1552. package/dist/orm/tables/declare-once.d.ts +14 -0
  1553. package/dist/orm/tables/declare-once.d.ts.map +1 -0
  1554. package/dist/orm/tables/declare-once.js +22 -0
  1555. package/dist/orm/tables/declare-once.js.map +1 -0
  1556. package/dist/orm/tables/declared-in-tables-file.d.ts +35 -0
  1557. package/dist/orm/tables/declared-in-tables-file.d.ts.map +1 -0
  1558. package/dist/orm/tables/declared-in-tables-file.js +98 -0
  1559. package/dist/orm/tables/declared-in-tables-file.js.map +1 -0
  1560. package/dist/orm/tables/declared-table.d.ts +12 -0
  1561. package/dist/orm/tables/declared-table.d.ts.map +1 -0
  1562. package/dist/orm/tables/declared-table.js +2 -0
  1563. package/dist/orm/tables/declared-table.js.map +1 -0
  1564. package/dist/orm/tables/empty-picture.d.ts +4 -0
  1565. package/dist/orm/tables/empty-picture.d.ts.map +1 -0
  1566. package/dist/orm/tables/empty-picture.js +5 -0
  1567. package/dist/orm/tables/empty-picture.js.map +1 -0
  1568. package/dist/orm/tables/exported-names.d.ts +8 -0
  1569. package/dist/orm/tables/exported-names.d.ts.map +1 -0
  1570. package/dist/orm/tables/exported-names.js +68 -0
  1571. package/dist/orm/tables/exported-names.js.map +1 -0
  1572. package/dist/orm/tables/file-of-table.d.ts +3 -0
  1573. package/dist/orm/tables/file-of-table.d.ts.map +1 -0
  1574. package/dist/orm/tables/file-of-table.js +5 -0
  1575. package/dist/orm/tables/file-of-table.js.map +1 -0
  1576. package/dist/orm/tables/index-names.d.ts +55 -0
  1577. package/dist/orm/tables/index-names.d.ts.map +1 -0
  1578. package/dist/orm/tables/index-names.js +2 -0
  1579. package/dist/orm/tables/index-names.js.map +1 -0
  1580. package/dist/orm/tables/index-picture.d.ts +20 -0
  1581. package/dist/orm/tables/index-picture.d.ts.map +1 -0
  1582. package/dist/orm/tables/index-picture.js +2 -0
  1583. package/dist/orm/tables/index-picture.js.map +1 -0
  1584. package/dist/orm/tables/listed-entities.d.ts +9 -0
  1585. package/dist/orm/tables/listed-entities.d.ts.map +1 -0
  1586. package/dist/orm/tables/listed-entities.js +65 -0
  1587. package/dist/orm/tables/listed-entities.js.map +1 -0
  1588. package/dist/orm/tables/prisma-models.d.ts +7 -0
  1589. package/dist/orm/tables/prisma-models.d.ts.map +1 -0
  1590. package/dist/orm/tables/prisma-models.js +33 -0
  1591. package/dist/orm/tables/prisma-models.js.map +1 -0
  1592. package/dist/orm/tables/tables-declaration.d.ts +30 -0
  1593. package/dist/orm/tables/tables-declaration.d.ts.map +1 -0
  1594. package/dist/orm/tables/tables-declaration.js +2 -0
  1595. package/dist/orm/tables/tables-declaration.js.map +1 -0
  1596. package/dist/orm/tables/template-of-table.d.ts +4 -0
  1597. package/dist/orm/tables/template-of-table.d.ts.map +1 -0
  1598. package/dist/orm/tables/template-of-table.js +7 -0
  1599. package/dist/orm/tables/template-of-table.js.map +1 -0
  1600. package/dist/package-manager/listed-by.d.ts +3 -0
  1601. package/dist/package-manager/listed-by.d.ts.map +1 -0
  1602. package/dist/package-manager/listed-by.js +17 -0
  1603. package/dist/package-manager/listed-by.js.map +1 -0
  1604. package/dist/package-manager/npm-workspace-of.d.ts +15 -0
  1605. package/dist/package-manager/npm-workspace-of.d.ts.map +1 -0
  1606. package/dist/package-manager/npm-workspace-of.js +35 -0
  1607. package/dist/package-manager/npm-workspace-of.js.map +1 -0
  1608. package/dist/package-manager/package-manager-vars.d.ts +1 -1
  1609. package/dist/package-manager/package-manager-vars.d.ts.map +1 -1
  1610. package/dist/package-manager/package-manager-vars.js +2 -1
  1611. package/dist/package-manager/package-manager-vars.js.map +1 -1
  1612. package/dist/package-manager/pnpm-settings-file.d.ts +6 -0
  1613. package/dist/package-manager/pnpm-settings-file.d.ts.map +1 -0
  1614. package/dist/package-manager/pnpm-settings-file.js +12 -0
  1615. package/dist/package-manager/pnpm-settings-file.js.map +1 -0
  1616. package/dist/package-manager/pnpm-workspace-of.d.ts +18 -0
  1617. package/dist/package-manager/pnpm-workspace-of.d.ts.map +1 -0
  1618. package/dist/package-manager/pnpm-workspace-of.js +49 -0
  1619. package/dist/package-manager/pnpm-workspace-of.js.map +1 -0
  1620. package/dist/package-manager/workspace-package-manager.d.ts +14 -0
  1621. package/dist/package-manager/workspace-package-manager.d.ts.map +1 -0
  1622. package/dist/package-manager/workspace-package-manager.js +56 -0
  1623. package/dist/package-manager/workspace-package-manager.js.map +1 -0
  1624. package/dist/plan/planned-words.js +1 -1
  1625. package/dist/plan/planned-words.js.map +1 -1
  1626. package/dist/prisma-schema/datasource-list.d.ts +4 -0
  1627. package/dist/prisma-schema/datasource-list.d.ts.map +1 -0
  1628. package/dist/prisma-schema/datasource-list.js +6 -0
  1629. package/dist/prisma-schema/datasource-list.js.map +1 -0
  1630. package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -1
  1631. package/dist/prisma-schema/datasource-schemas.js +2 -1
  1632. package/dist/prisma-schema/datasource-schemas.js.map +1 -1
  1633. package/dist/prisma-schema/preview-features-of.d.ts.map +1 -1
  1634. package/dist/prisma-schema/preview-features-of.js +2 -3
  1635. package/dist/prisma-schema/preview-features-of.js.map +1 -1
  1636. package/dist/prisma-schema/schema-block.d.ts +20 -0
  1637. package/dist/prisma-schema/schema-block.d.ts.map +1 -0
  1638. package/dist/prisma-schema/schema-block.js +45 -0
  1639. package/dist/prisma-schema/schema-block.js.map +1 -0
  1640. package/dist/prisma-schema/schema-code.d.ts +7 -0
  1641. package/dist/prisma-schema/schema-code.d.ts.map +1 -0
  1642. package/dist/prisma-schema/schema-code.js +10 -0
  1643. package/dist/prisma-schema/schema-code.js.map +1 -0
  1644. package/dist/prisma-schema/schema-list.d.ts +14 -0
  1645. package/dist/prisma-schema/schema-list.d.ts.map +1 -0
  1646. package/dist/prisma-schema/schema-list.js +33 -0
  1647. package/dist/prisma-schema/schema-list.js.map +1 -0
  1648. package/dist/prisma-schema/with-datasource-schema.d.ts +5 -1
  1649. package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -1
  1650. package/dist/prisma-schema/with-datasource-schema.js +12 -5
  1651. package/dist/prisma-schema/with-datasource-schema.js.map +1 -1
  1652. package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -1
  1653. package/dist/prisma-schema/with-preview-feature.js +6 -14
  1654. package/dist/prisma-schema/with-preview-feature.js.map +1 -1
  1655. package/dist/refusals/cut-factories.js +2 -2
  1656. package/dist/refusals/cut-factories.js.map +1 -1
  1657. package/dist/refusals/read-concept-error.d.ts.map +1 -1
  1658. package/dist/refusals/read-concept-error.js +2 -2
  1659. package/dist/refusals/read-concept-error.js.map +1 -1
  1660. package/dist/run.d.ts +0 -2
  1661. package/dist/run.d.ts.map +1 -1
  1662. package/dist/run.js +35 -114
  1663. package/dist/run.js.map +1 -1
  1664. package/dist/sdk/put-file.d.ts +5 -2
  1665. package/dist/sdk/put-file.d.ts.map +1 -1
  1666. package/dist/sdk/put-file.js +6 -2
  1667. package/dist/sdk/put-file.js.map +1 -1
  1668. package/dist/sdk/sdk-scripts.d.ts +4 -3
  1669. package/dist/sdk/sdk-scripts.d.ts.map +1 -1
  1670. package/dist/sdk/sdk-scripts.js +6 -5
  1671. package/dist/sdk/sdk-scripts.js.map +1 -1
  1672. package/dist/sdk/wire-sdk.d.ts.map +1 -1
  1673. package/dist/sdk/wire-sdk.js +10 -1
  1674. package/dist/sdk/wire-sdk.js.map +1 -1
  1675. package/dist/slice/verify-slice.js +2 -2
  1676. package/dist/source-text/block-after.d.ts +8 -0
  1677. package/dist/source-text/block-after.d.ts.map +1 -0
  1678. package/dist/source-text/block-after.js +35 -0
  1679. package/dist/source-text/block-after.js.map +1 -0
  1680. package/dist/source-text/bound-by.d.ts +4 -0
  1681. package/dist/source-text/bound-by.d.ts.map +1 -0
  1682. package/dist/source-text/bound-by.js +5 -0
  1683. package/dist/source-text/bound-by.js.map +1 -0
  1684. package/dist/source-text/class-body.d.ts +8 -0
  1685. package/dist/source-text/class-body.d.ts.map +1 -0
  1686. package/dist/source-text/class-body.js +11 -0
  1687. package/dist/source-text/class-body.js.map +1 -0
  1688. package/dist/source-text/import-statement.d.ts +17 -0
  1689. package/dist/source-text/import-statement.d.ts.map +1 -0
  1690. package/dist/source-text/import-statement.js +2 -0
  1691. package/dist/source-text/import-statement.js.map +1 -0
  1692. package/dist/source-text/import-statements.d.ts +20 -0
  1693. package/dist/source-text/import-statements.d.ts.map +1 -0
  1694. package/dist/source-text/import-statements.js +53 -0
  1695. package/dist/source-text/import-statements.js.map +1 -0
  1696. package/dist/source-text/index.d.ts +7 -0
  1697. package/dist/source-text/index.d.ts.map +1 -0
  1698. package/dist/source-text/index.js +6 -0
  1699. package/dist/source-text/index.js.map +1 -0
  1700. package/dist/source-text/line-of.d.ts +8 -0
  1701. package/dist/source-text/line-of.d.ts.map +1 -0
  1702. package/dist/source-text/line-of.js +7 -0
  1703. package/dist/source-text/line-of.js.map +1 -0
  1704. package/dist/source-text/list-literal.d.ts +24 -0
  1705. package/dist/source-text/list-literal.d.ts.map +1 -0
  1706. package/dist/source-text/list-literal.js +68 -0
  1707. package/dist/source-text/list-literal.js.map +1 -0
  1708. package/dist/source-text/object-entry.d.ts +14 -0
  1709. package/dist/source-text/object-entry.d.ts.map +1 -0
  1710. package/dist/source-text/object-entry.js +26 -0
  1711. package/dist/source-text/object-entry.js.map +1 -0
  1712. package/dist/source-text/object-literal.d.ts +27 -0
  1713. package/dist/source-text/object-literal.d.ts.map +1 -0
  1714. package/dist/source-text/object-literal.js +66 -0
  1715. package/dist/source-text/object-literal.js.map +1 -0
  1716. package/dist/source-text/parts-between.d.ts +8 -0
  1717. package/dist/source-text/parts-between.d.ts.map +1 -0
  1718. package/dist/source-text/parts-between.js +33 -0
  1719. package/dist/source-text/parts-between.js.map +1 -0
  1720. package/dist/source-text/read-imports.d.ts +9 -0
  1721. package/dist/source-text/read-imports.d.ts.map +1 -0
  1722. package/dist/source-text/read-imports.js +46 -0
  1723. package/dist/source-text/read-imports.js.map +1 -0
  1724. package/dist/source-text/read-source.d.ts +10 -0
  1725. package/dist/source-text/read-source.d.ts.map +1 -0
  1726. package/dist/source-text/read-source.js +2 -0
  1727. package/dist/source-text/read-source.js.map +1 -0
  1728. package/dist/source-text/source-text.d.ts +21 -0
  1729. package/dist/source-text/source-text.d.ts.map +1 -0
  1730. package/dist/source-text/source-text.js +38 -0
  1731. package/dist/source-text/source-text.js.map +1 -0
  1732. package/dist/source-text/span.d.ts +6 -0
  1733. package/dist/source-text/span.d.ts.map +1 -0
  1734. package/dist/source-text/span.js +2 -0
  1735. package/dist/source-text/span.js.map +1 -0
  1736. package/dist/stack/audit-vars.d.ts.map +1 -1
  1737. package/dist/stack/audit-vars.js +4 -3
  1738. package/dist/stack/audit-vars.js.map +1 -1
  1739. package/dist/stack/authentication-vars.d.ts +1 -1
  1740. package/dist/stack/authentication-vars.d.ts.map +1 -1
  1741. package/dist/stack/authentication-vars.js +3 -1
  1742. package/dist/stack/authentication-vars.js.map +1 -1
  1743. package/dist/stack/broker-vars.d.ts +1 -1
  1744. package/dist/stack/broker-vars.d.ts.map +1 -1
  1745. package/dist/stack/broker-vars.js +2 -1
  1746. package/dist/stack/broker-vars.js.map +1 -1
  1747. package/dist/stack/files-vars.d.ts +1 -1
  1748. package/dist/stack/files-vars.d.ts.map +1 -1
  1749. package/dist/stack/files-vars.js +2 -1
  1750. package/dist/stack/files-vars.js.map +1 -1
  1751. package/dist/stack/one.d.ts +6 -2
  1752. package/dist/stack/one.d.ts.map +1 -1
  1753. package/dist/stack/one.js +5 -1
  1754. package/dist/stack/one.js.map +1 -1
  1755. package/dist/stack/persistence-vars.d.ts.map +1 -1
  1756. package/dist/stack/persistence-vars.js +9 -14
  1757. package/dist/stack/persistence-vars.js.map +1 -1
  1758. package/dist/stack/stack-vars.d.ts.map +1 -1
  1759. package/dist/stack/stack-vars.js +28 -26
  1760. package/dist/stack/stack-vars.js.map +1 -1
  1761. package/dist/stack/with-database.d.ts.map +1 -1
  1762. package/dist/stack/with-database.js +3 -1
  1763. package/dist/stack/with-database.js.map +1 -1
  1764. package/dist/stories/read-stories.js +2 -2
  1765. package/dist/stories/read-stories.js.map +1 -1
  1766. package/dist/templating/render-template.d.ts +4 -1
  1767. package/dist/templating/render-template.d.ts.map +1 -1
  1768. package/dist/templating/render-template.js +9 -3
  1769. package/dist/templating/render-template.js.map +1 -1
  1770. package/dist/templating/rendering.d.ts +5 -0
  1771. package/dist/templating/rendering.d.ts.map +1 -1
  1772. package/dist/templating/rendering.js +14 -6
  1773. package/dist/templating/rendering.js.map +1 -1
  1774. package/dist/templating/spoken-for.d.ts +15 -0
  1775. package/dist/templating/spoken-for.d.ts.map +1 -0
  1776. package/dist/templating/spoken-for.js +21 -0
  1777. package/dist/templating/spoken-for.js.map +1 -0
  1778. package/dist/version.d.ts +1 -1
  1779. package/dist/version.js +1 -1
  1780. package/dist/worker/read-workers.js +2 -2
  1781. package/dist/worker/read-workers.js.map +1 -1
  1782. package/dist/worker/worker-generators.js +4 -4
  1783. package/dist/worker/worker-generators.js.map +1 -1
  1784. package/dist/worker/{changed-files.d.ts → worktree-files.d.ts} +2 -2
  1785. package/dist/worker/worktree-files.d.ts.map +1 -0
  1786. package/dist/worker/worktree-files.js +10 -0
  1787. package/dist/worker/worktree-files.js.map +1 -0
  1788. package/dist/workspace/stage-if-allowed.d.ts +22 -0
  1789. package/dist/workspace/stage-if-allowed.d.ts.map +1 -0
  1790. package/dist/workspace/stage-if-allowed.js +97 -0
  1791. package/dist/workspace/stage-if-allowed.js.map +1 -0
  1792. package/dist/workspace/updated-and-skipped.d.ts +20 -0
  1793. package/dist/workspace/updated-and-skipped.d.ts.map +1 -0
  1794. package/dist/workspace/updated-and-skipped.js +11 -0
  1795. package/dist/workspace/updated-and-skipped.js.map +1 -0
  1796. package/dist/workspace/workspace.d.ts +9 -8
  1797. package/dist/workspace/workspace.d.ts.map +1 -1
  1798. package/dist/workspace/workspace.js +13 -12
  1799. package/dist/workspace/workspace.js.map +1 -1
  1800. package/dist/workspace/write-if-allowed.d.ts +5 -13
  1801. package/dist/workspace/write-if-allowed.d.ts.map +1 -1
  1802. package/dist/workspace/write-if-allowed.js +9 -69
  1803. package/dist/workspace/write-if-allowed.js.map +1 -1
  1804. package/dist/workspace/written-of.d.ts +8 -2
  1805. package/dist/workspace/written-of.d.ts.map +1 -1
  1806. package/dist/workspace/written-of.js +39 -11
  1807. package/dist/workspace/written-of.js.map +1 -1
  1808. package/package.json +6 -6
  1809. package/templates/acl/translator.spec.ts.tpl +6 -3
  1810. package/templates/acl/translator.ts.tpl +4 -2
  1811. package/templates/aggregate/aggregate.spec.ts.tpl +3 -2
  1812. package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +3 -3
  1813. package/templates/command/handler.declared.ts.tpl +13 -21
  1814. package/templates/command/handler.spec.buses.ts.tpl +5 -4
  1815. package/templates/command/handler.spec.container.ts.tpl +18 -4
  1816. package/templates/command/handler.ts.tpl +13 -23
  1817. package/templates/domain-event/domain-event.ts.tpl +1 -7
  1818. package/templates/e2e/e2e-reaction.spec.ts.tpl +6 -0
  1819. package/templates/e2e/e2e.spec.ts.tpl +4 -1
  1820. package/templates/event-handler/event-handler.declared.ts.tpl +7 -3
  1821. package/templates/event-handler/event-handler.spec.ts.tpl +8 -9
  1822. package/templates/event-handler/event-handler.ts.tpl +7 -3
  1823. package/templates/gateway/adapter.declared.ts.tpl +1 -1
  1824. package/templates/gateway/adapter.ts.tpl +1 -1
  1825. package/templates/gateway/contract.platform-test.declared.tpl +8 -0
  1826. package/templates/gateway/contract.platform.declared.tpl +8 -0
  1827. package/templates/gateway/contract.wiring.container.tpl +8 -0
  1828. package/templates/gateway/wiring.container.tpl +0 -1
  1829. package/templates/init/e2e/jest.e2e.config.js.tpl +2 -0
  1830. package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -0
  1831. package/templates/init/jest.config.js.tpl +2 -0
  1832. package/templates/init/platform/auth/authorization/authorization.container.ts.tpl +19 -2
  1833. package/templates/init/platform/auth/authorization/use-case-protection.ts.tpl +5 -2
  1834. package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +3 -2
  1835. package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -2
  1836. package/templates/init/platform/database/schema.prisma.tpl +2 -0
  1837. package/templates/init/platform/events/custom-event-bus.ts.tpl +1 -1
  1838. package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
  1839. package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -2
  1840. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +1 -1
  1841. package/templates/init/platform/http/start-http-server.hono.ts.tpl +1 -1
  1842. package/templates/init/platform/http/start-http-server.nest.ts.tpl +9 -1
  1843. package/templates/init/platform/observability/create-logger.winston.ts.tpl +1 -2
  1844. package/templates/init/rules/application.md.tpl +1 -1
  1845. package/templates/init/rules/infrastructure.md.tpl +2 -2
  1846. package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -2
  1847. package/templates/integration-handler/integration-handler.spec.ts.tpl +5 -6
  1848. package/templates/integration-handler/integration-handler.ts.tpl +6 -4
  1849. package/templates/pipeline/biome.json.tpl +1 -1
  1850. package/templates/pipeline/jest.mutation.config.js.tpl +2 -0
  1851. package/templates/pipeline/knip.json.tpl +0 -2
  1852. package/templates/pipeline/package-scripts.json +4 -4
  1853. package/templates/pipeline/vitest.config.ts.tpl +2 -0
  1854. package/templates/pipeline/vitest.mutation.config.ts.tpl +2 -0
  1855. package/templates/policy/policy.declared.ts.tpl +4 -4
  1856. package/templates/policy/policy.spec.declared.ts.tpl +3 -14
  1857. package/templates/policy/policy.spec.ts.tpl +3 -9
  1858. package/templates/policy/policy.ts.tpl +2 -3
  1859. package/templates/presets/identity/context/domain/events/account-deactivated.event.ts.tpl +1 -8
  1860. package/templates/presets/identity/context/domain/events/account-provisioned.event.ts.tpl +3 -3
  1861. package/templates/presets/identity/context/domain/events/delegation-granted.event.ts.tpl +3 -3
  1862. package/templates/presets/identity/context/domain/events/delegation-revoked.event.ts.tpl +3 -3
  1863. package/templates/presets/identity/context/domain/events/invitation-accepted.event.ts.tpl +3 -3
  1864. package/templates/presets/identity/context/domain/events/invitation-declined.event.ts.tpl +3 -3
  1865. package/templates/presets/identity/context/domain/events/invitation-issued.event.ts.tpl +3 -3
  1866. package/templates/presets/identity/context/domain/events/invitation-revoked.event.ts.tpl +3 -3
  1867. package/templates/presets/identity/context/domain/events/member-joined.event.ts.tpl +3 -3
  1868. package/templates/presets/identity/context/domain/events/member-removed.event.ts.tpl +3 -3
  1869. package/templates/presets/identity/context/domain/events/member-role-changed.event.ts.tpl +3 -3
  1870. package/templates/presets/identity/context/domain/events/organisation-opened.event.ts.tpl +3 -3
  1871. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.drizzle.ts.tpl +4 -8
  1872. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.knex.ts.tpl +4 -7
  1873. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.prisma.ts.tpl +4 -8
  1874. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.drizzle.ts.tpl +4 -8
  1875. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.knex.ts.tpl +4 -7
  1876. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.prisma.ts.tpl +4 -8
  1877. package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +9 -27
  1878. package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +8 -26
  1879. package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +9 -27
  1880. package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +8 -26
  1881. package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +9 -27
  1882. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +4 -8
  1883. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +4 -7
  1884. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +4 -8
  1885. package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +9 -25
  1886. package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +9 -25
  1887. package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +9 -25
  1888. package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +9 -25
  1889. package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +9 -25
  1890. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.drizzle.ts.tpl +4 -8
  1891. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.knex.ts.tpl +4 -7
  1892. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.prisma.ts.tpl +4 -8
  1893. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.drizzle.ts.tpl +4 -8
  1894. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.knex.ts.tpl +4 -7
  1895. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.prisma.ts.tpl +4 -8
  1896. package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -26
  1897. package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -26
  1898. package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -26
  1899. package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -26
  1900. package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -26
  1901. package/templates/presets/identity/context/test/unit/account.aggregate.spec.ts.tpl +3 -3
  1902. package/templates/presets/identity/context/test/unit/delegation.aggregate.spec.ts.tpl +3 -3
  1903. package/templates/presets/identity/context/test/unit/invitation.aggregate.spec.ts.tpl +3 -3
  1904. package/templates/presets/identity/context/test/unit/member.aggregate.spec.ts.tpl +3 -3
  1905. package/templates/presets/identity/context/test/unit/organisation.aggregate.spec.ts.tpl +3 -2
  1906. package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +0 -1
  1907. package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
  1908. package/templates/process/process.spec.ts.tpl +5 -5
  1909. package/templates/process/timeout-job.declared.ts.tpl +2 -2
  1910. package/templates/process/timeout-job.spec.buses.ts.tpl +2 -2
  1911. package/templates/process/timeout-job.spec.container.ts.tpl +2 -2
  1912. package/templates/process/timeout-job.ts.tpl +2 -2
  1913. package/templates/projection/projection.manual.ts.tpl +8 -1
  1914. package/templates/projection/projection.spec.ts.tpl +18 -4
  1915. package/templates/projection/projection.ts.tpl +28 -1
  1916. package/templates/query/handler.declared.ts.tpl +8 -4
  1917. package/templates/query/handler.spec.container.ts.tpl +13 -0
  1918. package/templates/query/handler.ts.tpl +8 -4
  1919. package/templates/query/reader.fake.ts.tpl +6 -4
  1920. package/templates/query/reader.in-memory.ts.tpl +3 -4
  1921. package/templates/query/reader.spec.ts.tpl +19 -0
  1922. package/templates/repository/contract.spec.ts.tpl +21 -12
  1923. package/templates/repository/drizzle/mapper.ts.tpl +5 -9
  1924. package/templates/repository/drizzle/repository.ts.tpl +11 -35
  1925. package/templates/repository/fake.ts.tpl +19 -0
  1926. package/templates/repository/knex/mapper.ts.tpl +4 -7
  1927. package/templates/repository/knex/repository.ts.tpl +12 -73
  1928. package/templates/repository/none/repository.ts.tpl +9 -12
  1929. package/templates/repository/prisma/mapper.ts.tpl +5 -9
  1930. package/templates/repository/prisma/repository.ts.tpl +10 -70
  1931. package/templates/repository/typeorm/mapper.ts.tpl +4 -7
  1932. package/templates/repository/typeorm/repository.ts.tpl +10 -63
  1933. package/templates/test-world/world.buses.ts.tpl +1 -1
  1934. package/templates/test-world/world.container.ts.tpl +0 -1
  1935. package/dist/check/catalogue/clean-rule-ids.d.ts +0 -3
  1936. package/dist/check/catalogue/clean-rule-ids.d.ts.map +0 -1
  1937. package/dist/check/catalogue/clean-rule-ids.js +0 -14
  1938. package/dist/check/catalogue/clean-rule-ids.js.map +0 -1
  1939. package/dist/check/catalogue/default-severities.d.ts +0 -4
  1940. package/dist/check/catalogue/default-severities.d.ts.map +0 -1
  1941. package/dist/check/catalogue/default-severities.js +0 -27
  1942. package/dist/check/catalogue/default-severities.js.map +0 -1
  1943. package/dist/check/catalogue/suppression-rule.d.ts +0 -9
  1944. package/dist/check/catalogue/suppression-rule.d.ts.map +0 -1
  1945. package/dist/check/catalogue/suppression-rule.js +0 -10
  1946. package/dist/check/catalogue/suppression-rule.js.map +0 -1
  1947. package/dist/check/commands/changed-files.d.ts +0 -8
  1948. package/dist/check/commands/changed-files.d.ts.map +0 -1
  1949. package/dist/check/commands/changed-files.js +0 -27
  1950. package/dist/check/commands/changed-files.js.map +0 -1
  1951. package/dist/check/explain/authz-docs.d.ts +0 -3
  1952. package/dist/check/explain/authz-docs.d.ts.map +0 -1
  1953. package/dist/check/explain/authz-docs.js +0 -127
  1954. package/dist/check/explain/authz-docs.js.map +0 -1
  1955. package/dist/check/explain/clean-docs.d.ts +0 -3
  1956. package/dist/check/explain/clean-docs.d.ts.map +0 -1
  1957. package/dist/check/explain/clean-docs.js +0 -39
  1958. package/dist/check/explain/clean-docs.js.map +0 -1
  1959. package/dist/check/explain/context-docs.d.ts +0 -3
  1960. package/dist/check/explain/context-docs.d.ts.map +0 -1
  1961. package/dist/check/explain/context-docs.js +0 -44
  1962. package/dist/check/explain/context-docs.js.map +0 -1
  1963. package/dist/check/explain/domain-docs.d.ts +0 -3
  1964. package/dist/check/explain/domain-docs.d.ts.map +0 -1
  1965. package/dist/check/explain/domain-docs.js +0 -30
  1966. package/dist/check/explain/domain-docs.js.map +0 -1
  1967. package/dist/check/explain/errors-docs.d.ts +0 -3
  1968. package/dist/check/explain/errors-docs.d.ts.map +0 -1
  1969. package/dist/check/explain/errors-docs.js +0 -53
  1970. package/dist/check/explain/errors-docs.js.map +0 -1
  1971. package/dist/check/explain/event-sourcing-docs.d.ts +0 -3
  1972. package/dist/check/explain/event-sourcing-docs.d.ts.map +0 -1
  1973. package/dist/check/explain/event-sourcing-docs.js +0 -62
  1974. package/dist/check/explain/event-sourcing-docs.js.map +0 -1
  1975. package/dist/check/explain/events-docs.d.ts +0 -3
  1976. package/dist/check/explain/events-docs.d.ts.map +0 -1
  1977. package/dist/check/explain/events-docs.js +0 -103
  1978. package/dist/check/explain/events-docs.js.map +0 -1
  1979. package/dist/check/explain/imports-docs.d.ts +0 -3
  1980. package/dist/check/explain/imports-docs.d.ts.map +0 -1
  1981. package/dist/check/explain/imports-docs.js +0 -48
  1982. package/dist/check/explain/imports-docs.js.map +0 -1
  1983. package/dist/check/explain/language-docs.d.ts +0 -3
  1984. package/dist/check/explain/language-docs.d.ts.map +0 -1
  1985. package/dist/check/explain/language-docs.js +0 -40
  1986. package/dist/check/explain/language-docs.js.map +0 -1
  1987. package/dist/check/explain/layer-docs.d.ts +0 -3
  1988. package/dist/check/explain/layer-docs.d.ts.map +0 -1
  1989. package/dist/check/explain/layer-docs.js +0 -41
  1990. package/dist/check/explain/layer-docs.js.map +0 -1
  1991. package/dist/check/explain/layout-docs.d.ts +0 -3
  1992. package/dist/check/explain/layout-docs.d.ts.map +0 -1
  1993. package/dist/check/explain/layout-docs.js +0 -73
  1994. package/dist/check/explain/layout-docs.js.map +0 -1
  1995. package/dist/check/explain/lifecycle-docs.d.ts +0 -3
  1996. package/dist/check/explain/lifecycle-docs.d.ts.map +0 -1
  1997. package/dist/check/explain/lifecycle-docs.js +0 -33
  1998. package/dist/check/explain/lifecycle-docs.js.map +0 -1
  1999. package/dist/check/explain/module-docs.d.ts +0 -3
  2000. package/dist/check/explain/module-docs.d.ts.map +0 -1
  2001. package/dist/check/explain/module-docs.js +0 -40
  2002. package/dist/check/explain/module-docs.js.map +0 -1
  2003. package/dist/check/explain/nest-docs.d.ts +0 -3
  2004. package/dist/check/explain/nest-docs.d.ts.map +0 -1
  2005. package/dist/check/explain/nest-docs.js +0 -31
  2006. package/dist/check/explain/nest-docs.js.map +0 -1
  2007. package/dist/check/explain/persistence-docs.d.ts +0 -3
  2008. package/dist/check/explain/persistence-docs.d.ts.map +0 -1
  2009. package/dist/check/explain/persistence-docs.js +0 -103
  2010. package/dist/check/explain/persistence-docs.js.map +0 -1
  2011. package/dist/check/explain/ports-docs.d.ts +0 -3
  2012. package/dist/check/explain/ports-docs.d.ts.map +0 -1
  2013. package/dist/check/explain/ports-docs.js +0 -78
  2014. package/dist/check/explain/ports-docs.js.map +0 -1
  2015. package/dist/check/explain/privacy-docs.d.ts +0 -3
  2016. package/dist/check/explain/privacy-docs.d.ts.map +0 -1
  2017. package/dist/check/explain/privacy-docs.js +0 -65
  2018. package/dist/check/explain/privacy-docs.js.map +0 -1
  2019. package/dist/check/explain/rule-docs.d.ts +0 -4
  2020. package/dist/check/explain/rule-docs.d.ts.map +0 -1
  2021. package/dist/check/explain/rule-docs.js +0 -50
  2022. package/dist/check/explain/rule-docs.js.map +0 -1
  2023. package/dist/check/explain/scheduling-docs.d.ts +0 -3
  2024. package/dist/check/explain/scheduling-docs.d.ts.map +0 -1
  2025. package/dist/check/explain/scheduling-docs.js +0 -71
  2026. package/dist/check/explain/scheduling-docs.js.map +0 -1
  2027. package/dist/check/explain/schema-docs.d.ts +0 -3
  2028. package/dist/check/explain/schema-docs.d.ts.map +0 -1
  2029. package/dist/check/explain/schema-docs.js +0 -28
  2030. package/dist/check/explain/schema-docs.js.map +0 -1
  2031. package/dist/check/explain/standard-docs.d.ts +0 -3
  2032. package/dist/check/explain/standard-docs.d.ts.map +0 -1
  2033. package/dist/check/explain/standard-docs.js +0 -61
  2034. package/dist/check/explain/standard-docs.js.map +0 -1
  2035. package/dist/check/explain/tenancy-docs.d.ts +0 -3
  2036. package/dist/check/explain/tenancy-docs.d.ts.map +0 -1
  2037. package/dist/check/explain/tenancy-docs.js +0 -39
  2038. package/dist/check/explain/tenancy-docs.js.map +0 -1
  2039. package/dist/check/explain/tree-docs.d.ts +0 -3
  2040. package/dist/check/explain/tree-docs.d.ts.map +0 -1
  2041. package/dist/check/explain/tree-docs.js +0 -132
  2042. package/dist/check/explain/tree-docs.js.map +0 -1
  2043. package/dist/check/explain/wiring-docs.d.ts +0 -3
  2044. package/dist/check/explain/wiring-docs.d.ts.map +0 -1
  2045. package/dist/check/explain/wiring-docs.js +0 -114
  2046. package/dist/check/explain/wiring-docs.js.map +0 -1
  2047. package/dist/check/project/source-at.d.ts +0 -8
  2048. package/dist/check/project/source-at.d.ts.map +0 -1
  2049. package/dist/check/project/source-at.js +0 -29
  2050. package/dist/check/project/source-at.js.map +0 -1
  2051. package/dist/check/purity/purity-rule.d.ts +0 -13
  2052. package/dist/check/purity/purity-rule.d.ts.map +0 -1
  2053. package/dist/check/purity/purity-rule.js +0 -2
  2054. package/dist/check/purity/purity-rule.js.map +0 -1
  2055. package/dist/check/scan/statement-of.d.ts +0 -5
  2056. package/dist/check/scan/statement-of.d.ts.map +0 -1
  2057. package/dist/check/scan/statement-of.js +0 -70
  2058. package/dist/check/scan/statement-of.js.map +0 -1
  2059. package/dist/check/suppressions/is-suppressed.d.ts +0 -8
  2060. package/dist/check/suppressions/is-suppressed.d.ts.map +0 -1
  2061. package/dist/check/suppressions/is-suppressed.js +0 -11
  2062. package/dist/check/suppressions/is-suppressed.js.map +0 -1
  2063. package/dist/check/suppressions/suppression-rule-id.d.ts +0 -2
  2064. package/dist/check/suppressions/suppression-rule-id.d.ts.map +0 -1
  2065. package/dist/check/suppressions/suppression-rule-id.js +0 -2
  2066. package/dist/check/suppressions/suppression-rule-id.js.map +0 -1
  2067. package/dist/check/suppressions/suppression-violations.d.ts +0 -6
  2068. package/dist/check/suppressions/suppression-violations.d.ts.map +0 -1
  2069. package/dist/check/suppressions/suppression-violations.js +0 -25
  2070. package/dist/check/suppressions/suppression-violations.js.map +0 -1
  2071. package/dist/commands/parse-migration-arguments.d.ts +0 -11
  2072. package/dist/commands/parse-migration-arguments.d.ts.map +0 -1
  2073. package/dist/commands/parse-migration-arguments.js +0 -17
  2074. package/dist/commands/parse-migration-arguments.js.map +0 -1
  2075. package/dist/generate/errors/class-body.d.ts +0 -8
  2076. package/dist/generate/errors/class-body.d.ts.map +0 -1
  2077. package/dist/generate/errors/class-body.js +0 -11
  2078. package/dist/generate/errors/class-body.js.map +0 -1
  2079. package/dist/generate/flags-of.d.ts +0 -4
  2080. package/dist/generate/flags-of.d.ts.map +0 -1
  2081. package/dist/generate/flags-of.js +0 -6
  2082. package/dist/generate/flags-of.js.map +0 -1
  2083. package/dist/generate/kinds/tables-files.d.ts +0 -3
  2084. package/dist/generate/kinds/tables-files.d.ts.map +0 -1
  2085. package/dist/generate/kinds/tables-files.js +0 -7
  2086. package/dist/generate/kinds/tables-files.js.map +0 -1
  2087. package/dist/generate/shared-writes.d.ts +0 -12
  2088. package/dist/generate/shared-writes.d.ts.map +0 -1
  2089. package/dist/generate/shared-writes.js +0 -127
  2090. package/dist/generate/shared-writes.js.map +0 -1
  2091. package/dist/merge/order/comes-after.d.ts +0 -8
  2092. package/dist/merge/order/comes-after.d.ts.map +0 -1
  2093. package/dist/merge/order/comes-after.js +0 -9
  2094. package/dist/merge/order/comes-after.js.map +0 -1
  2095. package/dist/merge/order/in-order.d.ts +0 -4
  2096. package/dist/merge/order/in-order.d.ts.map +0 -1
  2097. package/dist/merge/order/in-order.js +0 -6
  2098. package/dist/merge/order/in-order.js.map +0 -1
  2099. package/dist/merge/order/migrations-of-commit.d.ts +0 -7
  2100. package/dist/merge/order/migrations-of-commit.d.ts.map +0 -1
  2101. package/dist/merge/order/migrations-of-commit.js +0 -43
  2102. package/dist/merge/order/migrations-of-commit.js.map +0 -1
  2103. package/dist/merge/order/migrations-of-tree.d.ts +0 -9
  2104. package/dist/merge/order/migrations-of-tree.d.ts.map +0 -1
  2105. package/dist/merge/order/migrations-of-tree.js +0 -25
  2106. package/dist/merge/order/migrations-of-tree.js.map +0 -1
  2107. package/dist/merge/order/ordered-migration.d.ts.map +0 -1
  2108. package/dist/merge/order/ordered-migration.js.map +0 -1
  2109. package/dist/merge/restamp-class.d.ts.map +0 -1
  2110. package/dist/merge/restamp-class.js.map +0 -1
  2111. package/dist/mutation/changed-files.d.ts +0 -7
  2112. package/dist/mutation/changed-files.d.ts.map +0 -1
  2113. package/dist/mutation/changed-files.js +0 -15
  2114. package/dist/mutation/changed-files.js.map +0 -1
  2115. package/dist/worker/changed-files.d.ts.map +0 -1
  2116. package/dist/worker/changed-files.js +0 -20
  2117. package/dist/worker/changed-files.js.map +0 -1
  2118. package/templates/gateway/platform-test.declared.tpl +0 -4
  2119. package/templates/gateway/platform.declared.tpl +0 -4
  2120. /package/dist/{merge/order → orm/migrations}/ordered-migration.js +0 -0
  2121. /package/dist/{merge → orm/migrations}/restamp-class.d.ts +0 -0
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:89fd905ca1eaa777 -->
2
+ <!-- translation-of: README.md sha256:607c1084428bb8f6 -->
3
3
 
4
4
  # ddd-ts-kit
5
5
 
@@ -119,14 +119,19 @@ autre endroit), fait refuser la commande avec le code de sortie 2 et le chemin n
119
119
  fichiers, où son `.claude/settings.json` serait le réglage de toutes les sessions : lancez-le dans
120
120
  le répertoire du projet.
121
121
 
122
- Chaque fichier est écrit en entier ou pas du tout : dans `<name>.<random>.tmp` à côté de lui, puis
123
- renommé à sa place. Une commande arrêtée à mi-chemin ne laisse que des fichiers complets (un
124
- processus tué à ce moment peut laisser son fichier `.tmp`, qu'on peut supprimer), et la même
125
- commande relancée écrit ceux qui manquent. `init` sur un projet déjà initialisé, chaque
126
- `generate` qui n'est pas un essai à blanc et `drizzle-generate` tiennent le verrou du projet, `.ddd-ts-kit/lock`, que git ignore : une deuxième commande
127
- attend jusqu'à cinq secondes, puis sort avec le code 2 en nommant la commande qui le tient et le
128
- correctif, lancer les générateurs l'un après l'autre :
129
- ``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
122
+ Ce qu'écrit une commande arrive en entier ou pas du tout : chaque fichier est écrit dans
123
+ `<name>.<random>.tmp` à côté de sa place, et les fichiers ne sont renommés à leur place qu'une fois
124
+ tous écrits. Une écriture qui échoue (un disque plein) laisse le projet tel qu'il était, et la même
125
+ commande relancée l'écrit ; un processus tué à mi-chemin peut laisser des fichiers `.tmp`, qu'on
126
+ peut supprimer, et, s'il a été tué pendant les renommages, les fichiers déjà en place, que la même
127
+ commande complète. Toute commande qui lit les fichiers partagés du projet et les réécrit tient le verrou du projet
128
+ tant qu'elle tourne, `.ddd-ts-kit/lock`, que git ignore : `init` sur un projet déjà initialisé,
129
+ `generate`, `docs`, `sdk`, `drizzle-generate`, `move-to-module`, `context-layout`,
130
+ `platform-folders`, `controllers`, `value-objects`, `error-factories`, `acceptance --lock` et
131
+ `depcruise-config --write`. Aucune ne le prend pour dire ce qu'elle écrirait (`--dry-run`,
132
+ `--check`). Une deuxième commande attend jusqu'à cinq secondes, puis sort avec le code 2 en nommant
133
+ la commande qui le tient et le correctif, les lancer l'une après l'autre :
134
+ ``Another command holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
130
135
  Un verrou pris sur cette machine est gardé tant que sa commande tourne, et repris une fois qu'elle
131
136
  est terminée ; un verrou pris sur une autre machine, ou dont le détenteur ne se lit pas, est repris
132
137
  une minute après avoir été pris.
@@ -547,7 +552,7 @@ l'une ou l'autre forme, et ajoute `fast-check` aux dépendances de développemen
547
552
 
548
553
  **Les événements du domaine partent avec la sauvegarde.** Un gestionnaire de commande généré
549
554
  construit ou charge son agrégat, appelle une méthode d'intention, `await repository.save(aggregate)`
550
- et répond : pas de `pullEvents()`, et pas de `DomainEventDispatcher` dans un gestionnaire ni dans
555
+ et répond : pas de `takeRecordedEvents()`, et pas de `DomainEventDispatcher` dans un gestionnaire ni dans
551
556
  un adaptateur de *repository*, qui ne fait que persister. Les événements que l'agrégat a
552
557
  enregistrés sont distribués une fois la sauvegarde résolue, dans l'unité de travail de la
553
558
  commande : par le module du kernel sur tsyringe, par `dispatchingOnSave` autour de chaque
@@ -562,7 +567,7 @@ async execute(command: IssueInvoiceCommand): Promise<void> {
562
567
 
563
568
  invoice.issue(this.clock.now());
564
569
  await this.invoiceRepository.save(invoice);
565
- await this.dispatcher.dispatch(invoice.pullEvents()); // domain-events/dispatched-on-save
570
+ await this.dispatcher.dispatch(takeRecordedEvents(invoice)); // domain-events/dispatched-on-save
566
571
  }
567
572
  ```
568
573
 
@@ -637,7 +642,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
637
642
  | `--audit on` | `src/platform/audit/` : `create-audit.ts` (le journal, le `onDecision` de l'autorisation, les refus des gardes à la frontière remis à la frontière HTTP comme `onGuardRefusal`, le *middleware* avant l'unité de travail, les événements d'intégration abonnés sous le nom de consommateur `audit`), `audited-events.ts` (le registre auquel `generate integration-event` ajoute), `audit.module.ts`, et avec une *stack* HTTP le côté lecture : `audit.permissions.ts` (`audit:trail.read`), puis dans `search-audit-entries/` : `search-audit-entries.query.ts`, son gestionnaire, `search-audit-entries.route.ts` ou `.controller.ts` (`GET /audit/entries` : pages par curseur, filtres `actorId`, `action`, `outcome`, `correlationId`), qui commence par le point d'entrée et prend ce qu'il reçoit et répond dans `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` et `audit-outcomes.ts`. C'est une capacité de la plateforme, pas un contexte délimité : pas de modèle, une requête protégée sur le port `AuditReader`, bornée par le *tenant* de l'acteur (avec `--tenancy shared-table`, par le *tenant* du travail au moyen de `TenantAuditReader` : le personnel de la plateforme ne lit à travers les *tenants* qu'à l'intérieur de `acrossTenants`). Les refus d'un appelant sans identifiant de connexion ne sont pas enregistrés. Un *job* planifié est audité comme une requête HTTP : origine `schedule`, acteur `system:<context>.<job>`. Avec knex, les deux tables et leurs déclencheurs en ajout seul sont créés par la première migration ; avec drizzle, les tables sont dans `schema.ts` et `npm run db:generate` ajoute les instructions des déclencheurs à la migration qui crée les tables (`npm run db:audit-guard` les affiche pour une migration écrite à la main) ; avec prisma et typeorm, les tables sont des modèles de `prisma/schema/schema.prisma` ou des entités de `schema.ts` (`auditPrismaModels`, `auditEntities` de `@ddd-ts-kit/audit`), écrites par `PrismaAuditTrail` et `TypeOrmAuditTrail`, et `npm run db:generate` (par `ddd-ts-kit prisma-generate` ou `typeorm-generate`) ajoute les instructions des déclencheurs à la migration qui crée les tables, `npm run db:audit-guard` les affichant pour une migration écrite à la main ; les bases de test installent ce garde ; avec `custom` ou sans ORM, le journal est un `InMemoryAuditTrail` derrière un `TODO(platform)`. Les bases de test laissent le schéma d'audit hors de `reset()`. Avec le journal en base et `--storage local` ou `s3`, `audit.module.ts` (ou la composition câblée à la main) enregistre `audit.archive` le premier jour de chaque mois à 04:00 UTC : les entrées de plus de douze mois entiers partent dans le stockage sous `audit-archives/`, vérifiées, relues et ancrées (`ArchiveAuditEntries`) ; avec `s3` il tourne sauf `JOB_AUDIT_ARCHIVE_ENABLED=false`, avec `local` seulement avec `JOB_AUDIT_ARCHIVE_ENABLED=true`, puisque l'archive supprime les entrées de la base et que le disque du serveur peut ne pas durer |
638
643
  | `--event-sourcing on` | enregistré comme `stack.eventSourcing`, `off` sauf demande : `Persistence` gagne `eventSourcing` (`create<Orm>EventSourcing` dans le schéma `event_store`, dont le fichier de schéma déclare les cinq tables ; les stores en mémoire avec `--orm none`), et `src/platform/event-sourcing/` : `create-event-sourcing.ts` (`EventSourcing` : les stores, le `SubjectKeyStore` enveloppé par `auditedSubjectKeys` avec `--audit on`, et le `PersonalDataCipher` par-dessus) et, avec tsyringe, `event-sourcing.module.ts` (lie `EventStore`, `SnapshotStore`, `CheckpointStore`, `SubjectKeyStore` et `PersonalDataCipher`, pour qu'un adaptateur de *repository* *event-sourced* les nomme dans son constructeur ; la `Platform` câblée à la main les porte comme `platform.eventSourcing`) ; `platform-test.module.ts` lie les stores en mémoire, pour qu'une *spec* de gestionnaire d'un agrégat *event-sourced* n'ait besoin d'aucun *fake*. `generate aggregate --event-sourced` est refusé sans lui, avec le `init --force --event-sourcing on` à lancer. Refusé avec `--orm custom` : l'event store du kit tourne sur PostgreSQL par les quatre paquets d'ORM |
639
644
  | `--privacy on` | enregistré comme `stack.privacy`, `on` quand il y a un ORM : `src/platform/privacy/`, avec `data-subject-copies.ts` et `data-subject-exports.ts` (les ports, ou les adaptateurs à la main, des contextes qui étendent `PersonalDataErasure` et `PersonalDataExport`, entre marqueurs ; `generate repository --personal` y liste l'effacement et l'export d'un contexte), `personal-events.ts` (les événements qui portent des données personnelles, écrits par `docs` depuis leur option `personal`), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, rerun?, tenants? })` : un contexte d'exécution d'origine `cli` avec l'opérateur pour acteur, la clé de la personne quand le projet a un event store, puis `eraseDataSubject` du kernel sur les copies, chacune enveloppée par `auditedPersonalDataErasure` avec `--audit on`, `inEachTenant` avec `--tenancy shared-table`, puis une fois les enregistrements de l'outbox et les *jobs* de la personne, puis `privacy.data-subject.erased` publié par l'outbox, une fois par *tenant*, sauf si rien n'a été atteint) et `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })` : `exportDataSubject` du kernel sur les exports, chacun enveloppé par `auditedPersonalDataExport` avec `--audit on`, `recordsInEachTenant` avec `--tenancy shared-table`, un `PersonalDataExportDocument` daté), et les deux scripts ci-dessous. `docs/privacy/register.md`, le registre des données personnelles que `ddd-ts-kit docs` tient (voir `docs` plus bas). Un projet sans donnée personnelle prend `--privacy off` et ne paie rien. Aucune commande HTTP n'efface encore : les deux scripts sont les points d'entrée |
640
- | `--tenancy shared-table` | enregistré comme `stack.tenancy` ; les quatre ORM. Chaque `generate repository` est cloisonné par *tenant* (comme `--tenant-scoped`), au moyen de `tenantTable` et `ownTenantTable` (Knex), de `tenantCondition` et `ownTenantCondition` (Drizzle), de `tenantWhere` et `ownTenantWhere` (Prisma, TypeORM) ; l'outbox garde le *tenant* de chaque événement (`createOutboxTables(knex, { tenant: true })` et le `tenant: true` de `KnexOutboxStore`, `tenantOutboxTable`, le champ `tenantId` du modèle Prisma et le `tenant: true` de `PrismaOutboxStore`, `outboxEntity({ tenant: true })`), si bien que les consommateurs s'exécutent dans ce *tenant* ; `tenancy/scoped-statement` juge les adaptateurs. La sécurité au niveau des lignes, un schéma par *tenant* et une base par *tenant* sont refusés, avec ce qu'il faut câbler à la main ([Multitenance](../../docs/concepts/multitenancy.fr.md)) |
645
+ | `--tenancy shared-table` | enregistré comme `stack.tenancy` ; les quatre ORM. Chaque `generate repository` est cloisonné par *tenant* (comme `--tenant-scoped`), au moyen de `tenantTable` et `ownTenantTable` (Knex), de `tenantCondition` et `ownTenantCondition` (Drizzle), de `tenantWhere` et `ownTenantWhere` (Prisma, TypeORM), et sauvegarde avec `saveTenantAggregate` ; l'outbox garde le *tenant* de chaque événement (`createOutboxTables(knex, { tenant: true })` et le `tenant: true` de `KnexOutboxStore`, `tenantOutboxTable`, le champ `tenantId` du modèle Prisma et le `tenant: true` de `PrismaOutboxStore`, `outboxEntity({ tenant: true })`), si bien que les consommateurs s'exécutent dans ce *tenant* ; `tenancy/scoped-statement` juge les adaptateurs ; l'autorisateur est tenu aux *tenants* de l'acteur, quel que soit `--authz` (`new TenantBoundAuthorizer({ model: createAuthorizer(), rowsConfinedBy: 'stores' })` dans `auth/authorization/authorization.ts`, dans `composition/create-platform.ts` sous `--di manual`). La sécurité au niveau des lignes, un schéma par *tenant* et une base par *tenant* sont refusés, avec ce qu'il faut câbler à la main ([Multitenance](../../docs/concepts/multitenancy.fr.md)) |
641
646
  | `--queue database\|redis\|memory` | enregistré comme `stack.queue`. `database` (par défaut sur Knex, Drizzle, Prisma et TypeORM, quel que soit le conteneur) : les tables du *package* de l'ORM (`createJobTable` et `createProcessTable`, `jobsTable` et `processesTable`, les modèles `BackgroundJob` et `ProcessInstance`, `jobEntity` et `processEntity`) dans le schéma `messaging`, `Persistence` gagne `jobs` et `processes`, et la plateforme relie `JobStore` et `ProcessStore` à eux (le module de la plateforme sur tsyringe, `jobs/create-background-work.ts` là où la plateforme est câblée à la main ou sous Nest), si bien qu'un *job* mis en file par une commande est écrit dans sa transaction ; `redis` (avec `--cache redis`) : `RedisJobStore` sur la connexion du cache, les processus dans la base de données ; `memory` (par défaut avec une persistance sur mesure ou sans persistance) : rien n'est écrit, les deux restent dans le processus. Refusé : `database` avec un autre ORM, `redis` sans le cache |
642
647
  | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices` : le cache lié au `Cache` du kernel, le limiteur à `RateLimiter`, le verrou à `Lock`, qui réserve un *job* planifié à une seule instance, le signal du relais comme `wakeOn` du relais de l'outbox avec `relayWakeUpMiddleware` sur le bus de commandes), `http/too-many-requests-for.ts` (une fenêtre glissante par adresse d'appelant, 429 `application/problem+json` avec `retry-after` ; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS` ; l'adresse est celle du socket sauf si `TRUST_PROXY` nomme les proxys placés devant, par sauts ou par adresse, par sauts seulement sur Hono), `GET /health/ready` sur le serveur HTTP, `REDIS_URL` validée, un service compose `cache` qui exécute Dragonfly avec un contrôle de santé. Sans serveur (outils, tests sans `REDIS_URL`), les mêmes ports restent dans la mémoire du processus |
643
648
  | `--http-cache varnish` | un service compose `varnish` (Varnish 9.1.0, qui joint l'API sur `host.docker.internal`) avec son VCL dans `docker/varnish/default.vcl` (seules les réponses dont le `Cache-Control` les autorise par `max-age` ou `s-maxage` sont gardées, rangées sous leurs étiquettes `xkey`, purgées par `PURGE` depuis la machine de Varnish ou avec `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` et `VARNISH_PURGE_KEY` validées, `cacheTags: { header: CacheTagHeader.xkey }` dans la frontière HTTP, et le relais de l'outbox de `main.ts` et de chaque point d'entrée de `generate service` qui publie au moyen de `PurgingPublisher` avec `VarnishCachePurger` (l'application de bout en bout enregistre les purges dans `purges`) ; sur `--di manual` et `nest`, la plateforme gagne `cacheInvalidation` ; avec `--tenancy`, les étiquettes des réponses et les purges sont rangées sous le *tenant* (`perTenant`) et le *tenant* d'une requête HTTP est lu dans `x-tenant-id`. Demande un framework HTTP et `--events outbox` : une purge est une ligne de l'outbox |
@@ -743,8 +748,8 @@ le client en même temps.
743
748
 
744
749
  `package.json` porte deux compilateurs : `typescript ~6.0.3`, que les outils chargent comme une
745
750
  bibliothèque, et `@typescript/native` (`npm:typescript@~7.0.2`), que `build` et `typecheck`
746
- appellent par son chemin (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` lancerait
747
- l'ancien.
751
+ lancent par `ddd-ts-kit tsc`, où que le gestionnaire de paquets l'ait installé. `npx tsc`
752
+ lancerait l'ancien.
748
753
 
749
754
  `init` et `generate context` commencent par le langage : la première entrée de `todos` est le
750
755
  glossaire du contexte à remplir. Tous deux refusent un contexte nommé `schema`, quel que soit
@@ -824,7 +829,7 @@ would update src/contexts/notification/application/application.declarations.ts
824
829
 
825
830
  Next, in this order: the language of the context first, then the business decisions only you can make
826
831
  src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor...
827
- src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and writes nothing until you decide...
832
+ src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and refuses until you decide how
828
833
  src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour...
829
834
  ```
830
835
 
@@ -837,16 +842,16 @@ Next, in this order: the language of the context first, then the business decisi
837
842
  | `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (le nom est par défaut celui du contexte) : `a<Name>World({ now, idPrefix, given })`, la mise en place que partagent plusieurs *specs* du contexte. Il lit les *fakes* de `test/fakes/` et le port que chacun implémente, les construit, les passe à `given` pour que la *spec* enregistre ce dont elle part, puis à l'application de test (avec `modules`, l'autorisation de la *spec*) ou, câblé à la main, enveloppe les *repositories* des bus de `createTestBuses` par `dispatching` ; il rend chaque *fake* sous le nom de son port. Un *fake* qui attend des arguments de constructeur, ou, avec un conteneur, celui d'un port que rien ne lie ni n'utilise encore, est laissé de côté avec une note. Avec un conteneur, il prend aussi `fakes`, le *fake* d'un port qu'il ne sait pas construire (un lecteur qui répond ce que la *spec* lui donne), et, avec la multi-location, `tenants`. Le monde nommé d'après le contexte est celui par lequel passent les *specs* de `command`, `query` et `job` générées après lui |
838
843
  | `entity` | `<context> <Name> [--module <module>]` | entité, *spec* |
839
844
  | `value-object` (`vo`) | `<context> <Name> [--module <module>]` | objet-valeur, *spec* |
840
- | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts` : les lois d'un objet-valeur existant vérifiées sur des valeurs générées (fast-check, ajouté aux dépendances de développement s'il manque) |
841
- | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts` : un objet `as const` des valeurs, indexé par chaque valeur en PascalCase, et le type union du même nom ; relancé, ajoute les valeurs que le fichier ne contient pas |
845
+ | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts` : les lois d'un objet-valeur existant vérifiées sur des valeurs générées (fast-check, ajouté aux dépendances de développement s'il manque, avec une note qui nomme l'installation à lancer : la vérification des types et les *specs* échouent jusque-là) |
846
+ | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts` : un objet `as const` des valeurs, indexé par chaque valeur en PascalCase, et le type union du même nom ; relancé, ajoute les valeurs que le fichier ne contient pas. Aucune *spec* ne le tient : une note dit que la détection du code mort nomme le fichier tant qu'aucun objet-valeur, agrégat ou schéma ne le lit |
842
847
  | `domain-event` | `<context> <Aggregate> <Fact> [--module <module>]` | événement nommé `<context>.<aggregate>.<fact>`, *spec* |
843
848
  | `error` (`refusal`) | `<context> <Refusal> <factory> [--code CODE] [--term ...]... [--module <module>]` | sous `"stack.refusals": "named"` : la classe `<Refusal>` dans `domain/errors/<refusal>.error.ts`, qui étend `DomainRefusal` et lit son code dans la liste, son entrée dans `<context>.codes.ts` (la liste `<Context>Codes` et son type `<Context>Code`, créés s'ils manquent ; l'entrée est ajoutée à la fin), la fabrique statique `<factory>` et son cas dans `test/unit/<refusal>.error.spec.ts`. Chacun est écrit s'il manque : relancée, la commande ne change rien ; avec une autre fabrique, elle l'ajoute à la classe. `<Refusal>` est en PascalCase (un `Error` final est retiré), nommé avec des termes du glossaire et les qualificatifs d'un refus, `invalid`, `unknown`, `already`, `too`, `no`, `missing` et `required` (`BookingTooLate`) : un mot que le glossaire ne définit pas est refusé, avec le `--term` qui l'ajoute ; `<factory>` commence par `for`, `with`, `because`, `on` ou `at` (`forAccountId`), sinon la commande refuse et propose `for<Factory>`. Le code est le refus en casse de constante (`InsufficientFunds` pose `INSUFFICIENT_FUNDS`), `--code` en donne un autre ; refusé : un code déjà posé dans le contexte. Sous `factories` et `classes`, `<context> <Concept> <refusal>` : une fabrique statique `<refusal>` sur `domain/errors/<concept>.error.ts`, la classe des erreurs de ce concept (créée si elle manque, qui étend `ConceptError`), et son cas dans `test/unit/<concept>.error.spec.ts`. La fabrique est ajoutée après la dernière ; relancée, la commande ne change rien. `<Concept>` est un terme du glossaire (`--term` l'ajoute). Le code est le nom du refus en casse de constante, précédé du concept quand le nom est un seul mot ou un code du kit (`Appointment notFound` pose `APPOINTMENT_NOT_FOUND`) ; `--code` prend l'une des formes qu'accepte `errors/factory-name`. Refusés : un nom comme `create` ou `error1`, et un code déjà posé dans le contexte |
844
849
  | `domain-error` | `<context> <Name> [--code CODE] [--module <module>]` | une classe par erreur avec un code stable, *spec* : la forme d'un projet dont la configuration dit `"stack.refusals": "classes"` ou rien. Refusé sous `named` et `factories`, avec la commande `generate error` à lancer à la place |
845
850
  | `domain-service` | `<context> <Name> [--module <module>]` | service, *spec* |
846
851
  | `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]... [--module <module>]` | le vocabulaire `<Aggregate>Status` (créé depuis `--value`, deux états au moins, ou complété des valeurs qui lui manquent), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle` : chaque valeur un état, la première initiale, les transitions demandées, un `TODO(domain)` pour le refus de l'erreur du concept) et `test/unit/<aggregate>.state-machine.spec.ts` (chaque transition là où elle mène, un refus depuis un état qu'elle ne quitte pas) ; c'est à l'agrégat de l'utiliser |
847
852
  | `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <colonne>,... [--subject <colonne>] [--erasure pseudonymise\|row] [--retention <colonne>:<n><d\|m\|y>]] [--module <module>]` | le port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), l'adaptateur de l'ORM du projet (qui `implements` le port) avec son *mapper* et sa table (ou son modèle), un *fake*, une *spec* `repositoryContract` exécutée sur les deux, l'enregistrement. Sur un agrégat *event-sourced* (sa classe étend `EventSourcedAggregate`), ni table ni *mapper* : `event-store-<name>.repository.ts` délègue à `EventSourcedRepository` du kernel au-dessus de l'`EventStore` et du `PersonalDataCipher` que lie la plateforme, avec le codec de `<name>-events.mapper.ts` (la politique de *snapshot* laissée en `TODO(domain)`), le *fake* est cet adaptateur sur les stores en mémoire, et la suite de contrat s'exécute sur les deux (son cas de sauvegarde périmée en attente tant qu'un `mutate` qui enregistre un événement n'est pas ajouté) ; `--personal` y est refusé, les valeurs personnelles étant scellées dans les événements. Avec `--personal`, les colonnes de la table qui tiennent des données personnelles : ajoutées au stockage et au type de ligne en texte nullable (le *mapper* les écrit vides tant que l'agrégat ne les porte pas), déclarées à côté du *mapper* dans `<name>.personal-fields.ts` (`personalFields` du kernel : la colonne du sujet, `id` sauf si `--subject` nomme la colonne qui tient l'id de la personne, les champs, `pseudonymise` sauf `--erasure row`), épelées comme l'effacement de l'ORM les lit (noms SQL sur Knex et Prisma, propriétés sur Drizzle et TypeORM) ; et, une fois par contexte, son effacement : le port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), l'adaptateur `<orm>-<context>-personal-data-erasure.repository.ts` sur `<Orm>PersonalDataErasure` du paquet d'ORM (confiné au *tenant* du travail avec `--tenant-scoped`), son *fake*, lié là où le contexte lie ses adaptateurs et listé dans `src/platform/privacy/data-subject-copies.ts`, pour que `npm run privacy:erase` l'atteigne ; et son export : le port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), l'adaptateur `<orm>-<context>-personal-data-export.repository.ts` sur `<Orm>PersonalDataExport`, son *fake*, lié de même et listé dans `data-subject-exports.ts`, pour que `npm run privacy:export` le remette ; une seule *spec*, `test/integration/<context>-personal-data.spec.ts`, prouve les deux sur la base de test. Avec `--retention <colonne>:<n><d|m|y>`, la déclaration gagne `retention`, comptée depuis une colonne qui date la fin de la relation et rejoint le stockage en horodatage nullable, vide tant qu'elle dure (une colonne que la table garde pour elle, `created_at` d'abord, ou le `registered_at` d'une table générée avant 0.100, est refusée : comptée depuis la création, la purge effacerait des personnes encore clientes) et la *spec* prouve la purge de ce qui l'a dépassée. Une deuxième table du contexte rejoint les déclarations des deux adaptateurs. Refusé sans `stack.privacy` à `on` (`init --force --privacy on`), avec `--orm none` ou `custom`, et avant d'écrire quoi que ce soit pour une colonne qui n'en est pas une, une colonne que la table garde pour elle, un sujet listé comme personnel ou un mode qui n'existe pas |
848
- | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` sur `AuthorizedCommand` (simple `Command` quand elle est publique), `<use-case>.handler.ts` (avec `--aggregate`, il reçoit le *repository* et n'écrit rien tant que son `TODO(domain)` n'est pas traité : une commande change un agrégat qui existe ; avec `--creates`, il construit l'agrégat, le sauvegarde et répond son identifiant : les événements partent avec la sauvegarde), une *spec* par le bus avec le refus d'un acteur à qui manque la permission, l'enregistrement avec `.requires(...)` ou `.public()` (et le *repository* s'il manque). Une commande générée répond `void` ou l'identifiant de son agrégat, si bien qu'aucun `<use-case>.result.ts` n'est écrit |
849
- | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` sur `AuthorizedQuery` (simple `Query` quand elle est publique), `<use-case>.result.ts`, `<use-case>.handler.ts`, le port de lecture `application/ports/<use-case>-reader.port.ts` (une classe abstraite), son adaptateur en mémoire, un *fake*, une *spec*, l'enregistrement sur le bus de requêtes. Avec `--search` (demande `--permission`) : une `PageRequest` du kernel dans la requête, l'élément, le tri et `Page<Item>` dans le fichier de résultat, un gestionnaire qui demande `Access.scope` et remet le périmètre au port de lecture, un lecteur en mémoire qui pagine par décalage ou par curseur |
853
+ | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` sur `AuthorizedCommand` (simple `Command` quand elle est publique), `<use-case>.handler.ts` (avec `--aggregate`, il reçoit le *repository* et refuse, `throw undecided(...)` du kernel, 501 à la frontière, tant que son `TODO(domain)` n'est pas traité : une commande change un agrégat qui existe ; avec `--creates`, il construit l'agrégat, le sauvegarde et répond son identifiant : les événements partent avec la sauvegarde), une *spec* par le bus avec le refus d'un acteur à qui manque la permission et, pour un gestionnaire qui refuse encore, un test qui le dit, l'enregistrement avec `.requires(...)` ou `.public()` (et le *repository* s'il manque). Une commande générée répond `void` ou l'identifiant de son agrégat, si bien qu'aucun `<use-case>.result.ts` n'est écrit |
854
+ | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` sur `AuthorizedQuery` (simple `Query` quand elle est publique), `<use-case>.result.ts`, `<use-case>.handler.ts`, le port de lecture `application/ports/<use-case>-reader.port.ts` (une classe abstraite), son adaptateur, qui refuse (`undecided`, 501) tant que la lecture n'est pas écrite, et la *spec* de cet adaptateur, un *fake* du port qui répond ce qu'un test lui donne, la *spec* du gestionnaire, l'enregistrement sur le bus de requêtes. Avec `--search` (demande `--permission`) : une `PageRequest` du kernel dans la requête, l'élément, le tri et `Page<Item>` dans le fichier de résultat, un gestionnaire qui demande `Access.scope` et remet le périmètre au port de lecture, un lecteur en mémoire qui pagine par décalage ou par curseur |
850
855
  | `port` | `<context> <Name> [--module <module>]` | `application/ports/<name>.port.ts`, une classe abstraite, et son *fake* |
851
856
  | `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer] [--cache public\|private\|no-store] [--module <module>]` | sous `"stack.routes": "controllers"` : une classe contrôleur dans `presentation/http/<resource>/<use-case>/` (la ressource est le premier segment du chemin), qui dépend de `CommandBus` ou de `QueryBus`, derrière le groupe de routes de sa ressource, écrit avec elle quand il est nouveau (`<resource>.routes.ts` : préfixe, étiquette, `Authenticated`) ; un cas d'usage public ne se tient dans aucun groupe et dit `guards: [Public]` ; avec class-validator, une classe par fichier (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`) ; `--mapper` et `--serializer` ajoutent un *mapper* de requête HTTP et un sérialiseur que reçoit le contrôleur ; une *spec* ; aucun enregistrement dans un projet déclaré, un contrôleur construit à la main dans `<context>.routes.ts` (le fichier de module en câblage manuel) dans un projet explicite. Sous `"functions"` : une fonction `defineRoute`, sa *spec*, son enregistrement dans `<context>.routes.ts`, et des classes `<use-case>-<role>.dto.ts` |
852
857
  | `controller` | les mêmes arguments que `route` | la classe contrôleur, quoi que dise `stack.routes` : pour un projet de routes en fonctions qui écrit sa prochaine route comme une classe. `--cache` écrit sa politique de cache : `private` (un `GET` d'un appelant, `max-age=0`, `must-revalidate`, `ETag` fort), `public` (un `GET` d'un cas d'usage public, `max-age` 1m, `s-maxage` 5m, étiqueté avec les ressources de son chemin), `no-store` ; refusé sur une écriture, et `public` derrière un groupe de routes |
@@ -857,20 +862,20 @@ Next, in this order: the language of the context first, then the business decisi
857
862
  | `form` | `<context> <UseCase> [--module <module>]` | ajoute `const form = defineForm<Infer<typeof body>>({ ... })` avant le `@Controller` d'un cas d'usage qui reçoit un corps, et `form` à ses options : les indications de son formulaire à `GET /forms/<operationId>` |
858
863
  | `schema` | `<context\|shared-kernel> <Name>` | `presentation/http/shared/<name>.schema.ts` du contexte, ou `presentation/<name>.schema.ts` du noyau partagé : une forme du contrat déclarée une fois (un schéma zod avec `.meta({ id })`, une classe class-validator, ou un schéma enveloppé par `sharedSchema`), à remplir ; les routes l'utilisent en entier, imbriquée ou en partie |
859
864
  | `integration-event` | `<context> <Aggregate> <Fact> [--version n] [--module <module>]` | la déclaration `defineIntegrationEvent` dans le langage publié (sa charge utile dans `<event>.v<n>.payload.ts` avec class-validator ou un schéma à vous), l'export de l'index, le *publisher* `application/integration/publishers/<event>.publisher.ts`, une *spec*, l'enregistrement, une ligne de `platform/audit/audited-events.ts` |
860
- | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, une classe `<Name>IntegrationHandler` qui dépend de `CommandBus`, sa *spec*, son abonnement idempotent sous le nom de consommateur `<context>.<name>` ; le type est pris comme `list` l'affiche, avec ou sans `@v<n>` (la version la plus récente sans, `--version <n>` disant la même chose que le suffixe) ; refusé sauf si l'amont est déclaré et publie cette version (une version introuvable est refusée, jamais remplacée par une autre) |
865
+ | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, une classe `<Name>IntegrationHandler` qui dépend de `CommandBus` et refuse l'événement (`undecided`) tant que ce que le contexte en fait n'est pas écrit, sa *spec*, son abonnement idempotent sous le nom de consommateur `<context>.<name>` ; le type est pris comme `list` l'affiche, avec ou sans `@v<n>` (la version la plus récente sans, `--version <n>` disant la même chose que le suffixe) ; refusé sauf si l'amont est déclaré et publie cette version (une version introuvable est refusée, jamais remplacée par une autre) |
861
866
  | `personal-fields` | `<context> <table> --personal <colonne>,... --subject <colonne> [--erasure pseudonymise\|row] [--retention <colonne>:<n><d\|m\|y>] [--tenant-scoped] [--module <module>]` | la déclaration des colonnes personnelles d'une table qu'aucun agrégat ne possède (un modèle de lecture, une table de messages reçus, une table écrite à la main), donnée par son nom SQL : `infrastructure/persistence/<table>.personal-fields.ts`, épelée comme l'effacement de l'ORM la lit (avec Drizzle et TypeORM par les propriétés que le fichier de schéma donne aux colonnes), jointe à l'effacement et à l'export du contexte, ou écrite avec eux comme `repository --personal` les écrit pour une première table, sauf la *spec* : `test/integration/<context>-personal-data.spec.ts` prouve les *fakes* et nomme en `it.todo` chaque cas à prouver sur la base de test, aucun *repository* ni *builder* n'écrivant les lignes d'une telle table. `--subject` est obligatoire : la ligne d'une telle table est rarement la personne. La table est lue dans le fichier de schéma du contexte et jamais modifiée. Refusés : une table que ce fichier ne déclare pas, une table qui a une déclaration, une colonne que la définition de la table ne tient pas (dite dans la sortie quand la définition prend des colonnes d'une décomposition ou d'une fonction), une table sans `tenant_id` là où l'effacement est confiné à un *tenant*, et ce que `--personal` d'un *repository* refuse |
862
867
  | `erasure-handler` | `<context> [--module <module>]` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, une classe `DataSubjectErasedIntegrationHandler` qui efface ce que le contexte garde d'une personne par son `<Context>PersonalDataErasure` quand la plateforme annonce `privacy.data-subject.erased` (`dataSubjectErasedV1` du kernel), sa *spec* sur le *fake*, son abonnement idempotent sous le nom de consommateur `<context>.data-subject-erased` (dans une transaction derrière un *broker*) ; pour un contexte qui tourne comme un service à part ou copie des données personnelles depuis des événements. Refusé tant que le contexte n'a pas son effacement (`generate repository --personal`), et refusé sur un contexte en *event sourcing*, dont les valeurs personnelles s'effacent en détruisant la clé du sujet (`eraseDataSubject`) |
863
- | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | réaction à un événement du domaine du contexte, *spec*, abonnement ; avant la validation (commit) de l'unité de travail par défaut, après elle avec `--phase after-commit` (un effet qu'aucune transaction ne couvre, au plus une fois), et la *spec* exécute la réaction dans cette phase |
864
- | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec* ; le type est pris comme `list` l'affiche, `@v<n>` fixant la version (la plus récente sans). Dans le style explicite sur tsyringe, le fichier de module du contexte l'inclut par `builder.include(<Name>Projection)` ; sur une plateforme câblée à la main, la classe est simple et le module la souscrit sous son nom de consommateur. Il tient un seul modèle de lecture, qu'écrit `generate read-model` : son port est reçu par le constructeur |
868
+ | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | réaction à un événement du domaine du contexte, qui refuse (`undecided`) tant que sa politique n'est pas écrite, si bien qu'une commande qui enregistre le fait échoue jusque-là, *spec*, abonnement ; avant la validation (commit) de l'unité de travail par défaut, après elle avec `--phase after-commit` (un effet qu'aucune transaction ne couvre, au plus une fois), et la *spec* exécute la réaction dans cette phase |
869
+ | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec* ; le type est pris comme `list` l'affiche, `@v<n>` fixant la version (la plus récente sans). Dans le style explicite sur tsyringe, le fichier de module du contexte l'inclut par `builder.include(<Name>Projection)` ; sur une plateforme câblée à la main, la classe est simple et le module la souscrit sous son nom de consommateur. Il tient un seul modèle de lecture, qu'écrit `generate read-model` : son port est reçu par le constructeur, écrit d'emblée dans un projet déclaré quand le modèle de lecture du même nom existe. Chaque méthode `@On` refuse (`undecided`) tant que la ligne qu'elle écrit n'est pas décidée |
865
870
  | `read-model` | `<context> <Name> [--field <name>:<type>[:nullable]]... [--tenant-scoped] [--module <module>]` | le modèle de lecture que tient une projection. Le port dans `application/ports/<name>.port.ts` : le type `<Name>Row` (la clé `id`, puis un champ par `--field`, de type `string`, `number`, `boolean`, `instant` ou `decimal`, `:nullable` pour celui qui peut valoir null), les critères `<name>Criteria` que ses lecteurs peuvent demander, et la classe abstraite `<Name>` au-dessus de `ReadModelStore<<Name>Row>`. Sa table, nommée d'après lui en snake_case, dans le schéma du contexte, avec la colonne de chaque champ et les colonnes du registre (`readModelColumns()` ; le modèle Prisma les porte comme champs). La colonne d'un champ accepte null quoi qu'exige la ligne, une ligne supprimée étant une trace qui ne garde que sa clé et son tampon, et une contrainte de vérification `<table>_live_rows_whole` garde entière toute autre ligne, `deleted or (<column> is not null and ...)` sur les champs que la ligne exige : `check(...)` sur Drizzle, `table.check(...)` sur Knex, `checks` du schéma d'entité sur TypeORM, et sur Prisma, dont le langage de schéma n'en a pas, une ligne `TODO(domain)` du modèle qui porte l'`ALTER TABLE` à ajouter à la migration. La colonne du *tenant* et son index avec `--tenant-scoped` ou dans un projet multi-*tenant*. L'adaptateur `infrastructure/persistence/<orm>-<name>.repository.ts`, une classe `<Orm><Name>` au-dessus du registre de modèle de lecture du paquet de l'ORM (`DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore`, `TypeOrmReadModelStore` ; `InMemoryReadModelStore` du noyau dans un projet sans ORM), déclarée avec `@Repository(<Name>)`, ou liée dans le fichier de module dans le style explicite (une note dit où la construire sur une plateforme câblée à la main). Le *fake* `test/fakes/<name>.fake.ts` et `test/integration/<name>.contract.spec.ts`, qui lance `readModelContract` sur le *fake* et sur l'adaptateur et, avec un *tenant*, prouve qu'un *tenant* ne lit pas les lignes d'un autre. Un port de ce nom qui n'est pas un modèle de lecture est refusé |
866
871
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName> [--global] [--module <module>]` | `application/scheduling/<name>.job.ts`, une classe `<Name>Job implements ScheduledJob` qui envoie la commande, en tant que `systemActor('<context>.<name>')` quand elle est protégée, avec `execution.scheduledAt` quand la commande le prend ; `test/unit/<name>.job.spec.ts`, qui exécute le *job* (par son nom sur tsyringe, `application.jobs.runNow` ; `job.run(occurrence)` en câblage manuel) et vérifie la commande qu'il a envoyée ; son enregistrement ; son interrupteur dans `platform/jobs/job-settings.ts` ; l'autorisation de son acteur système (ci-dessous) |
867
872
  | `background-job` | `<context> <Name> --command <UseCaseName> [--module <module>]` | `application/background/<name>.background-job.ts`, une classe `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` nommée par son `jobName` statique `<context>.<name>`, qui envoie la commande en tant que `execution.actor` quand elle est protégée, suivi d'un champ de `<Name>Payload` par autre paramètre du constructeur de la commande (chaînes, nombres, booléens, littéraux et listes de ceux-ci tels qu'écrits, une `Date` sous forme de son texte ISO ; tout le reste est refusé), et son `payload` statique, le schéma de cette charge utile dans la bibliothèque de validation de la pile (un `z.object` sous zod, une classe de champs décorés sans valeur initiale sous class-validator, un `Type.Object` sous TypeBox, un refus par champ écrit à la main sous Standard Schema et, avec `--validation none`, dans le `BackgroundJobPayloadSchema` du noyau ; un type qu'il ne sait pas vérifier est typé `unknown` avec un `TODO(domain)`), avec lequel le *worker* lit la charge utile stockée avant chaque exécution ; `test/unit/<name>.background-job.spec.ts`, qui le met en file avec une charge utile de chaque champ en tant qu'utilisateur et exécute ce qui est dû, puis le met en file tel qu'une version antérieure le déclarait (`earlierVersionOf` de `@ddd-ts-kit/testing`) et montre le *job* mort avec `INVALID_JOB_PAYLOAD` (à travers l'application de test sur tsyringe, à travers une file et un *worker* en mémoire sur les bus de test sinon) ; son enregistrement (`@Background()`, `builder.backgroundJob(..)` dans le fichier de module sur tsyringe, `platform.backgroundJobs.register(..)` dans le fichier de module d'une plateforme câblée à la main) |
868
873
  | `process` (`process-manager`) | `<context> <Name> [--module <module>]` | `application/processes/<name>.process.ts` (son état, `processName`, `timeoutJob`, `isState`, une première étape qui arme une échéance, une étape qui y met fin à temps, l'étape de l'échéance), `application/background/<name>-timeout.background-job.ts`, qui livre ses expirations au moyen de `ProcessRunner`, et les *specs* des deux (`givenProcess`, la file de l'application de test sur tsyringe, une file et un *runner* en mémoire sur les bus de test sinon) |
869
- | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | traducteur dans `infrastructure/anti-corruption/`, *spec* |
870
- | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` qui pilote la route du cas d'usage : 401 sans identifiant de connexion, 403 sans la permission, le statut documenté avec elle ; pour une commande, un test de plus vérifie la trace de la requête HTTP, exacte sur les noms et la structure, avec `installTestTracing()` et `expectSpanTree(storyOf(trace), [...])` de `@ddd-ts-kit/tracing/testing` (`POST /invoices`, puis `command IssueInvoiceCommand`, puis `repository InvoiceRepository.save`, et après lui, pour une commande qui donne naissance à un agrégat né avec `--birth`, `unit-of-work before-commit` et `domain-event <name>` de son événement de naissance, une note nommant ce qui y réagit déjà). Un cas d'usage qu'aucune route n'atteint, lancé par un gestionnaire d'événement d'intégration du contexte, reçoit une spec qui publie l'événement de l'amont, construit depuis sa déclaration, avec `application.publish([event])`, attend `application.settled()` et laisse des `it.todo` pour ce qu'un client observe (les routes `GET` du contexte, ou les événements qu'il publie, avec `collectEvents`) ; le gestionnaire qui envoie `<UseCase>Command` est cherché dans `application/integration/handlers/`, et `--event billing.invoice.issued` nomme l'événement quand des gestionnaires de plusieurs l'envoient, ou quand le gestionnaire ne l'envoie pas encore. Un cas d'usage dont seul un *job* envoie la commande reçoit un test par *job* : `await application.runJob('<context>.<job>')` pour un *job* planifié (`application/scheduling/`), et, pour un *job* en arrière-plan (`application/background/`), la requête qui le met en file laissée à écrire, `const ran = await application.runDueJobs()`, qui exécute ce qui est échu dans les files comme le ferait le *worker*, et la vérification que le *job* est parmi `ran` ; chacun attend ensuite `application.settled()`. `--job VoidInvoice` nomme un seul *job*, par sa classe ou par le nom sous lequel il s'exécute (`billing.void-invoice`), y compris pour un cas d'usage qu'une route atteint, et écrit `test/e2e/<use-case>-<job>.e2e.spec.ts`. Demande la route, ce gestionnaire, ou un *job* qui envoie la commande |
874
+ | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | traducteur dans `infrastructure/anti-corruption/`, qui refuse tout enregistrement (`undecided`) tant que sa correspondance n'est pas écrite, *spec* |
875
+ | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` qui pilote la route du cas d'usage : 401 sans identifiant de connexion, 403 sans la permission, le statut documenté avec elle (tant que le cas d'usage refuse encore, tel que généré, les scénarios qui l'atteignent sont tenus par `pending(...)` de `@ddd-ts-kit/testing/e2e`, qui les fait échouer une fois le cas d'usage écrit : on le retire alors) ; pour une commande, un test de plus vérifie la trace de la requête HTTP, exacte sur les noms et la structure, avec `installTestTracing()` et `expectSpanTree(storyOf(trace), [...])` de `@ddd-ts-kit/tracing/testing` (`POST /invoices`, puis `command IssueInvoiceCommand`, puis `repository InvoiceRepository.save`, et après lui, pour une commande qui donne naissance à un agrégat né avec `--birth`, `unit-of-work before-commit` et `domain-event <name>` de son événement de naissance, une note nommant ce qui y réagit déjà). Un cas d'usage qu'aucune route n'atteint, lancé par un gestionnaire d'événement d'intégration du contexte, reçoit une spec qui publie l'événement de l'amont, construit depuis sa déclaration, avec `application.publish([event])`, attend `application.settled()` et laisse des `it.todo` pour ce qu'un client observe (les routes `GET` du contexte, ou les événements qu'il publie, avec `collectEvents`) ; le gestionnaire qui envoie `<UseCase>Command` est cherché dans `application/integration/handlers/`, et `--event billing.invoice.issued` nomme l'événement quand des gestionnaires de plusieurs l'envoient, ou quand le gestionnaire ne l'envoie pas encore. Un cas d'usage dont seul un *job* envoie la commande reçoit un test par *job* : `await application.runJob('<context>.<job>')` pour un *job* planifié (`application/scheduling/`), et, pour un *job* en arrière-plan (`application/background/`), la requête qui le met en file laissée à écrire, `const ran = await application.runDueJobs()`, qui exécute ce qui est échu dans les files comme le ferait le *worker*, et la vérification que le *job* est parmi `ran` ; chacun attend ensuite `application.settled()`. `--job VoidInvoice` nomme un seul *job*, par sa classe ou par le nom sous lequel il s'exécute (`billing.void-invoice`), y compris pour un cas d'usage qu'une route atteint, et écrit `test/e2e/<use-case>-<job>.e2e.spec.ts`. Demande la route, ce gestionnaire, ou un *job* qui envoie la commande |
871
876
  | `acceptance` | `<story> ["<title>"]` | `test/acceptance/<story>.acceptance.spec.ts`, écrit avant le code : un `it.todo` par critère d'acceptation de `docs/architecture/stories/<story>.md`, ou par ligne de tranche de l'histoire dans `docs/architecture/slices.md` quand elle n'en énonce aucun |
872
- | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, *spec* ; déclaré : la classe porte `@Policy(permission, { name })` et rien d'autre n'est écrit ; explicite : l'enregistrement dans `platform/auth/authorization/access-policies.ts` |
873
- | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | le contrat de lecture dans le langage publié de l'amont (`<name>.contract.ts`, une classe abstraite et le jeton de la valeur de l'amont), le port `application/ports/<name>-gateway.port.ts`, un adaptateur dans le processus dans `infrastructure/external/` lié `.as('gateway')`, un *fake*, une suite de contrat ; refusé sauf si l'amont est déclaré |
877
+ | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, qui refuse tout le monde tant que sa règle n'est pas écrite, *spec* ; les cas d'usage générés de sa permission sont réécrits pour l'interroger, la naissance d'un agrégat sur l'agrégat qu'elle construit, une requête sur ce qu'elle a lu, un gestionnaire qui refuse encore par un `TODO(domain)` là où il l'interrogera ; déclaré : la classe porte `@Policy(permission, { name })` et rien d'autre n'est écrit ; explicite : l'enregistrement dans `platform/auth/authorization/access-policies.ts` |
878
+ | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | le contrat de lecture dans le langage publié de l'amont (`<name>.contract.ts`, une classe abstraite et le jeton de la valeur de l'amont), le port `application/ports/<name>-gateway.port.ts`, un adaptateur dans le processus dans `infrastructure/external/` lié `.as('gateway')`, un *fake*, une suite de contrat ; le contrat est lié à un refus (`undecided`, sous un `TODO(platform)` que `todo` liste) tant que l'implémentation de l'amont n'est pas liée ; refusé sauf si l'amont est déclaré |
874
879
  | `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators] [--module <module>]` | `infrastructure/external/remote-<port>.adapter.ts` pour un port existant, sa *spec*, et sur tsyringe sa liaison `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))` ; avec `--decorators`, sur toute *stack*, la classe porte `@Retry` et `@Timeout` de `@ddd-ts-kit/aspects/decorators` sur son unique méthode sortante et est liée `.with(ownPolicy())`. Explicite : un port déjà lié, ou le câblage manuel, reçoit une note au lieu d'une liaison. Déclaré : la classe porte `@Adapter(<Port>, { kind, aspects })`, ou `@Gateway(<Port>, { aspects })` dans `remote-<port>.gateway.ts` avec `--kind gateway`, et un port qui a déjà un adaptateur déclaré est refusé. Avec `--kind simulated` : `infrastructure/external/simulated-<port>.adapter.ts` et sa *spec*, une classe du code de production qui répond dans la mémoire du processus comme le système extérieur répondrait, pour un environnement dont le fournisseur est simulé ; elle ne porte aucune politique (`--decorators` est refusé), est déclarée `@Adapter(<Port>, { kind: 'external' })` ou liée `.toClass(Simulated<Port>).as('external')`, et alterne avec l'adaptateur distant, un par port |
875
880
  | `service` | `<context>` | `src/apps/<context>/main.ts` (kernel, plateforme, ce contexte seul, avec ses *jobs* : `jobSettings(process.env, '<context>')`), le script `start:<context>`, un service compose derrière le profil `services`, l'entrée knip, `deployable: true` dans la configuration. Le Dockerfile prend le point d'entrée comme argument de build `ENTRY` |
876
881
  | `worker` | aucun | `src/apps/worker/main.ts` : les modules de `main.ts`, pas de serveur HTTP, pas de relais de l'outbox, les *jobs* démarrés quoi que dise `RUN_JOBS`, un arrêt propre ; le script `start:worker`, un service compose `worker` derrière le profil `services`, l'entrée knip, `"worker": true` dans la configuration, et `RUN_JOBS` qui vaut `false` par défaut à partir de là, si bien que l'API cesse d'exécuter les *jobs* qu'exécute le *worker*. Avec plusieurs instances, le verrou doit être un vrai verrou : `--cache redis` lie le verrou Redis, et sans lui le README généré dit la limite. Un contexte nommé `worker` est refusé |
@@ -1007,7 +1012,7 @@ Next, in this order: the language of the context first, then the business decisi
1007
1012
  métier l'emporte. `--allow-name` passe outre les trois vérifications ; `check` signalera tout de même ce
1008
1013
  que le glossaire ne définit pas. Un nom que Windows réserve à un périphérique (`CON`,
1009
1014
  `PRN`, `AUX`, `NUL`, `COM1` à `COM9`, `LPT1` à `LPT9`, quelle que soit la casse) est refusé pour un contexte et
1010
- pour un concept, car ses fichiers ne s'y extraient pas ; `--allow-name` laisse passer un concept. Seuls les genres dont l'usage montre `--term` le prennent
1015
+ pour un concept, car ses fichiers ne s'y extraient pas ; `--allow-name` laisse passer un concept. Un concept nommé d'après un mot réservé du langage (`Return`, `Case`, `Default`, `Package`) ou d'après un global que le code généré utilise (`Date`, `Error`, `Record`, `Map`) est refusé avec la raison, quels que soient les drapeaux, car son code ne compilerait pas : nommez-le en deux mots (`ReturnOrder`, `SupportCase`, `DueDate`). Seuls les genres dont l'usage montre `--term` le prennent
1011
1016
  (`heldToGlossary` dans `generate --help --json`, une ligne de `generate <kind> --help`) ; les
1012
1017
  autres (`port`, `adapter`, `repository`, `route`, `representation`...) nomment ce qu'une
1013
1018
  commande antérieure a nommé ou le nom du concept qu'ils servent, et refusent `--term`, en
@@ -2511,7 +2516,12 @@ règle.
2511
2516
  - Désactivez une ligne avec `// ddd-ts-kit-disable-next-line <rule-id> -- ADR-0007: <reason>`.
2512
2517
  Sans raison, le commentaire est lui-même une violation, tout comme une raison qui ne nomme aucun
2513
2518
  enregistrement de décision existant. Sur la première ligne d'un fichier, il couvre aussi les
2514
- violations au niveau du fichier.
2519
+ violations au niveau du fichier. Une ligne qui enfreint deux règles prend une liste
2520
+ (`<rule-id>, <rule-id> -- ...`) ou une directive par règle, l'une au-dessus de l'autre : toutes
2521
+ couvrent la ligne qui suit la dernière. Une directive qui nomme un identifiant qu'aucune règle ne
2522
+ porte, ou une règle qui n'a rien à signaler sur cette ligne, est aussi une violation
2523
+ (`config/unused-suppression`) ; la seconde est jugée par `check` quand il exécute toutes les
2524
+ règles, pour une règle qu'ESLint ne tient pas lui aussi.
2515
2525
  - `--clean-only` exécute les règles qui jugent un fichier seul (`clean/stepdown`,
2516
2526
  `clean/function-size`, `clean/no-commented-out-code`, `clean/no-noise-comment`,
2517
2527
  `clean/no-escape-hatch`, `clean/no-hash-private`, `clean/blank-lines`, `clean/braces`,
@@ -2565,6 +2575,7 @@ règle.
2565
2575
  | `imports/alias-declared` | un `importAlias` qui n'est pas `@/` ou `$<name>/`, ou qui est `$test/`, `$scripts/`, `$generated/` ; une entrée `paths` de `tsconfig.json` manquante ou différente de ce que donne `importAlias` (la correction donne l'entrée) ; une autre entrée `paths` sous un alias ; un `baseUrl` ; un `tsconfig.build.json` dont les `paths` diffèrent ; des `paths` de `knip.json` qui associent un alias ; un script qui compile (`tsc` sans `--noEmit`) et ne lance pas `ddd-ts-kit build-aliases` ensuite ; un script qui lance `tsx --tsconfig` sur un autre fichier ; une configuration `vitest` à la racine sans `tsconfigPaths: true`, une configuration `jest` sans les entrées `moduleNameMapper` dérivées, ou `.dependency-cruiser.cjs` sans `tsConfig` ; un `module` et un `moduleResolution` de `tsconfig.json` (ou d'un `tsconfig.build.json` qui pose les siens) qui ne sont pas ce que donne `importExtension` : `ESNext`, `Bundler` et `customConditions` contenant `node` sous `none`, et sous `js` une valeur écrite qui n'est pas une résolution Node ; une association jest dont le motif ne se termine pas comme les imports ; sous `js`, un fichier placé directement sous `test/support/` qui importe un voisin par son `.ts` alors que `tsconfig.json` ne fixe ni `allowImportingTsExtensions` ni `rewriteRelativeImportExtensions` ; quelle que soit la terminaison, un `tsconfig.build.json`, ou un tsconfig qu'un script compile pour ce qui est livré, qui résout `noEmit` à `true`, ou `allowImportingTsExtensions` à `true` sans `rewriteRelativeImportExtensions` ni `emitDeclarationOnly`. Un projet sans `package.json` n'est pas jugé |
2566
2576
  | `config/valid` | un amont, une classification, une relation, un identifiant de règle, un mode de `guard` ou un `importExtension` inconnu ; un répertoire de la configuration qui sort du projet ; un contexte absent du disque ou de la configuration ; une limite de `commit` qui n'est pas un entier positif |
2567
2577
  | `config/suppression-needs-reason` | une désactivation sans identifiant de règle ou sans raison (gardée comme alias à côté de `governance/recorded-deviation`, qui juge la raison) |
2578
+ | `config/unused-suppression` | une désactivation qui nomme un identifiant qu'aucune règle ne porte ; dans une exécution de toutes les règles, la désactivation d'une règle que ce *checker* est seul à tenir, active sur le fichier, qui n'a rien à signaler sur la ligne que la directive couvre |
2568
2579
  | `authz/declared` | dans un fichier de module, `builder.command(X)` ou `builder.query(X)` sans `.requires(` ni `.public(` dans sa chaîne, sauf si la classe du message porte `@Requires` ou `@Public` de `@ddd-ts-kit/kernel/declarations` ; en câblage manuel ou nest, une classe de commande ou de requête absente de tous les `requires(X, ...)` et `publicUseCase(X)` du fichier de module et de `application/authorization/` ; un `defineRoute` sans `security` (le type de la route le refuse déjà, et une liste vide aussi : c'est le filet au niveau du texte pour une définition construite de façon lâche) ; dans le style déclaré, la classe exportée d'un fichier `*.command.ts` ou `*.query.ts` qui ne porte ni `@Requires` ni `@Public` |
2569
2580
  | `authz/granted` | avec `stack.authz` `rbac`, une permission du `definePermissions` d'un contexte que ni `platform/auth/roles/roles.ts` ni `platform/auth/authorization/signed-in-grants.ts` n'accorde par son nom (par l'entrée de son ensemble, son identifiant ou `<contexte>:*`) ; le `*` du super-administrateur ne compte pas (un avertissement) ; avec `rebac`, une permission que le schéma laisse sur le contexte alors qu'aucune source hors des tests n'écrit de relation `operator` (d'une personne ou d'un acteur système) sur ce contexte et qu'aucun droit de toute personne connectée ne la tient, dans un projet qui fait déjà d'une personne l'opérateur d'un contexte ; muette avec un *authorizer* propre au projet (un avertissement) |
2570
2581
  | `authz/system-actor-granted` | avec `stack.authz` `rebac`, un `systemActor(<name>)` d'un contexte (un littéral, ou `<Classe>.name`) dans un fichier qui envoie une commande ou une requête non déclarée publique, alors qu'aucun fichier de `platform/auth/relationships/` ne nomme le sujet `system:system:<name>` |
@@ -2588,7 +2599,7 @@ règle.
2588
2599
  | `standard/no-parallel-interface` | une classe, une interface ou un alias de type déclaré comme `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (hors de `presentation/` et de la plateforme), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` suivi d'un nom standard (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) ou un nom de `standardInterfaces` ; une classe qui implémente ou étend l'interface standard est un adaptateur et n'est pas signalée |
2589
2600
  | `events/outbox-required` | `stack.events` autre que `outbox` avec un ORM et sans dérogation `stack.events` ; dans `domain/` et `application/`, l'import d'un client de *broker* ou d'une implémentation de bus ou de relais ; un *publisher* qui dépend de plus que `IntegrationEventPublisher` ; un module de la plateforme qui distribue un *publisher* et ne nomme jamais `OutboxPublisher` |
2590
2601
  | `events/consumer-idempotent` | une classe de gestionnaire d'événement d'intégration (`application/integration/handlers/*.integration-handler.ts`) qui ne porte pas `@IntegrationEventHandler` et n'est pas non plus enregistrée dans son fichier de module sous un nom de consommateur ; un `@IntegrationEventHandler` dont le `consumer` n'est pas une chaîne littérale non vide ; un `on(` ou un `consume(` libre sans `processed` ; un nom de consommateur utilisé deux fois, dans les déclarations comme dans les enregistrements |
2591
- | `domain-events/dispatched-on-save` | un appel de `pullEvents()` dans `application/` ou `infrastructure/` d'un contexte ; `DomainEventDispatcher` importé, listé comme dépendance ou reçu par un constructeur dans `application/commands/`, `application/queries/` ou un adaptateur de *repository*. Le fichier de module, les tests, la plateforme et `main.ts` sont laissés tranquilles |
2602
+ | `domain-events/dispatched-on-save` | un appel de `takeRecordedEvents()` dans `application/` ou `infrastructure/` d'un contexte ; `DomainEventDispatcher` importé, listé comme dépendance ou reçu par un constructeur dans `application/commands/`, `application/queries/` ou un adaptateur de *repository*. Le fichier de module, les tests, la plateforme et `main.ts` sont laissés tranquilles |
2592
2603
  | `domain-events/transactional-before-commit` | un gestionnaire d'événement du domaine (une classe de `application/event-handlers/*.event-handler.ts` ou de `application/integration/publishers/*.publisher.ts`, ou toute classe portant `@DomainEventHandler`) qui s'exécute avant la validation (commit) et dépend de `Cache`, `CachePurger`, `Lock`, `RateLimiter`, `JobScheduler` ou `EventBus` du kernel, d'un port de `application/ports/` qui n'est pas un port de persistance (aucun adaptateur sous `infrastructure/persistence/`, ou un adaptateur ailleurs sous `infrastructure/`), de quoi que ce soit importé de `infrastructure/`, d'un autre contexte, de la plateforme ou d'un *package* autre que `@ddd-ts-kit/kernel` et `@ddd-ts-kit/auth` ; un gestionnaire après la validation (`phase: 'after-commit'` dans son décorateur, ou dans le troisième argument de chaque `.on(` du fichier de module qui le mentionne) qui dépend de `IntegrationEventPublisher`. `check-file` laisse les adaptateurs d'un port à la vérification complète |
2593
2604
  | `event-sourcing/state-in-apply` | dans une classe de `domain/aggregates/` qui étend `EventSourcedAggregate`, une écriture sur quelque chose de `this` (affectation, incrément, appel qui modifie) hors du constructeur, des méthodes statiques, des méthodes `apply<Fact>` et de `restore` ; `this.record(..)` dans une méthode apply |
2594
2605
  | `event-sourcing/past-tense` | dans un fichier de `domain/aggregates/` qui contient un agrégat en *event sourcing*, un nom importé de `domain/events/` dont le fait (les mots après le nom de l'agrégat) ne contient aucun participe passé, ou seulement un participe qui s'écrit comme son impératif en tête (`SetPrice`) |
package/README.md CHANGED
@@ -111,13 +111,19 @@ anything is written; a link that stays inside the project is written through. `i
111
111
  `.claude/settings.json` would be the settings of every session: run it in the directory of the
112
112
  project.
113
113
 
114
- Each file is written whole or not at all: to `<name>.<random>.tmp` beside it, then renamed into
115
- place. A command stopped half way leaves complete files only (a process killed there may leave
116
- its `.tmp` file, which can be removed), and the same command run again writes the ones missing.
117
- `init` on a project already initialised, each `generate` that is not a dry run and `drizzle-generate`
118
- hold the lock of the project, `.ddd-ts-kit/lock`, which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
119
- holds it and the fix, run the generators one after the other:
120
- ``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
114
+ What a command writes lands whole or not at all: each file is written to `<name>.<random>.tmp`
115
+ beside its place, and the files are renamed into place only once every one of them is written. A
116
+ write that fails (a full disk) leaves the project as it stood, and the same command run again
117
+ writes it; a process killed half way may leave `.tmp` files, which can be removed, and, when it was
118
+ killed while renaming, the files already in place, which the same command completes.
119
+ Every command that reads the shared files of the project and writes them back holds the lock of
120
+ the project while it runs, `.ddd-ts-kit/lock`, which git ignores: `init` on a project already
121
+ initialised, `generate`, `docs`, `sdk`, `drizzle-generate`, `move-to-module`, `context-layout`,
122
+ `platform-folders`, `controllers`, `value-objects`, `error-factories`, `acceptance --lock` and
123
+ `depcruise-config --write`. None takes it to say what it would write (`--dry-run`, `--check`). A
124
+ second one waits up to five seconds, then exits 2 naming the command that holds it and the fix,
125
+ run them one after the other:
126
+ ``Another command holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
121
127
  A lock taken on this machine is kept while its command runs and taken over once it has ended; one
122
128
  taken on another machine, or whose holder cannot be read, is taken over a minute after it was taken.
123
129
 
@@ -518,7 +524,7 @@ the laws of an existing value object as a spec on generated values, in either fo
518
524
  `fast-check` to the development dependencies when it is missing.
519
525
 
520
526
  **Domain events leave with the save.** A generated command handler builds or loads its aggregate,
521
- calls one intention method, `await repository.save(aggregate)` and returns: no `pullEvents()`, and
527
+ calls one intention method, `await repository.save(aggregate)` and returns: no `takeRecordedEvents()`, and
522
528
  no `DomainEventDispatcher` in a handler or in a repository adapter, which only persists. The events
523
529
  the aggregate recorded are dispatched once the save resolves, inside the unit of work of the
524
530
  command: by the kernel module on tsyringe, by `dispatchingOnSave` around each repository in
@@ -532,7 +538,7 @@ async execute(command: IssueInvoiceCommand): Promise<void> {
532
538
 
533
539
  invoice.issue(this.clock.now());
534
540
  await this.invoiceRepository.save(invoice);
535
- await this.dispatcher.dispatch(invoice.pullEvents()); // domain-events/dispatched-on-save
541
+ await this.dispatcher.dispatch(takeRecordedEvents(invoice)); // domain-events/dispatched-on-save
536
542
  }
537
543
  ```
538
544
 
@@ -607,7 +613,7 @@ config, `docsUi`, `ci` and `logger` included.
607
613
  | `--audit on` | `src/platform/audit/`: `create-audit.ts` (the trail, the `onDecision` of the authorization, the refusals of the guards at the edge given to the HTTP boundary as `onGuardRefusal`, the middleware before the unit of work, the integration events subscribed under the consumer name `audit`), `audited-events.ts` (the registry `generate integration-event` adds to), `audit.module.ts`, and with an HTTP stack the read side: `audit.permissions.ts` (`audit:trail.read`), then in `search-audit-entries/`: `search-audit-entries.query.ts`, its handler, `search-audit-entries.route.ts` or `.controller.ts` (`GET /audit/entries`: cursor pages, filters `actorId`, `action`, `outcome`, `correlationId`), which starts with the endpoint and takes what it receives and answers from `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` and `audit-outcomes.ts`. It is a capability of the platform, not a bounded context: no model, one protected query over the `AuditReader` port, bounded by the tenant of the actor (with `--tenancy shared-table`, by the tenant of the work through `TenantAuditReader`: platform staff read across tenants only inside `acrossTenants`). The refusals of a caller without a credential are not recorded. A scheduled job is audited like a request: origin `schedule`, actor `system:<context>.<job>`. With knex the two tables and their append-only triggers are created by the first migration; with drizzle the tables are in `schema.ts` and `npm run db:generate` adds the trigger statements to the migration that creates the tables (`npm run db:audit-guard` prints them for a migration by hand); with prisma and typeorm the tables are models of `prisma/schema/schema.prisma` or entities of `schema.ts` (`auditPrismaModels`, `auditEntities` of `@ddd-ts-kit/audit`), written by `PrismaAuditTrail` and `TypeOrmAuditTrail`, and `npm run db:generate` (through `ddd-ts-kit prisma-generate` or `typeorm-generate`) adds the trigger statements to the migration that creates the tables, `npm run db:audit-guard` printing them for a migration by hand; the test databases install that guard; with `custom` or no ORM the trail is an `InMemoryAuditTrail` behind a `TODO(platform)`. The test databases leave the audit schema out of `reset()`. With the trail in a database and `--storage local` or `s3`, `audit.module.ts` (or the hand-wired composition) registers `audit.archive` on the first day of every month at 04:00 UTC: the entries older than twelve whole months move to the storage under `audit-archives/`, verified, read back and anchored (`ArchiveAuditEntries`); with `s3` it runs unless `JOB_AUDIT_ARCHIVE_ENABLED=false`, with `local` only with `JOB_AUDIT_ARCHIVE_ENABLED=true`, since the archive removes the entries from the database and the disk of the server may not last |
608
614
  | `--event-sourcing on` | recorded as `stack.eventSourcing`, `off` unless asked: `Persistence` gains `eventSourcing` (`create<Orm>EventSourcing` in the `event_store` schema, whose five tables the schema file declares; the in-memory stores with `--orm none`), and `src/platform/event-sourcing/`: `create-event-sourcing.ts` (`EventSourcing`: the stores, the `SubjectKeyStore` wrapped by `auditedSubjectKeys` with `--audit on`, and the `PersonalDataCipher` over it) and, on tsyringe, `event-sourcing.module.ts` (binds `EventStore`, `SnapshotStore`, `CheckpointStore`, `SubjectKeyStore` and `PersonalDataCipher`, so an event-sourced repository adapter names them in its constructor; the hand-wired `Platform` carries them as `platform.eventSourcing`); `platform-test.module.ts` binds the in-memory stores, so a handler spec of an event-sourced aggregate needs no fake. `generate aggregate --event-sourced` is refused without it, with the `init --force --event-sourcing on` to run. Refused with `--orm custom`: the event store of the kit runs on PostgreSQL through the four ORM packages |
609
615
  | `--privacy on` | recorded as `stack.privacy`, `on` when there is an ORM: `src/platform/privacy/`, with `data-subject-copies.ts` and `data-subject-exports.ts` (the ports, or the adapters by hand, of the contexts that extend `PersonalDataErasure` and `PersonalDataExport`, between markers; `generate repository --personal` lists the erasure and the export of a context there), `personal-events.ts` (the events that carry personal data, written by `docs` from their `personal` option), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, rerun?, tenants? })`: an execution context of origin `cli` with the operator as actor, the key of the subject when the project has an event store, then `eraseDataSubject` of the kernel over the copies, each wrapped by `auditedPersonalDataErasure` with `--audit on`, `inEachTenant` with `--tenancy shared-table`, then once the records of the outbox and the jobs of the person, then `privacy.data-subject.erased` published through the outbox, once per tenant, unless nothing was reached) and `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })`: `exportDataSubject` of the kernel over the exports, each wrapped by `auditedPersonalDataExport` with `--audit on`, `recordsInEachTenant` with `--tenancy shared-table`, one dated `PersonalDataExportDocument`), and the two scripts below. `docs/privacy/register.md`, the register of personal data `ddd-ts-kit docs` keeps (see `docs` below). A project without personal data takes `--privacy off` and pays nothing. No HTTP command erases yet: the two scripts are the entry points |
610
- | `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM); the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
616
+ | `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM), and saves with `saveTenantAggregate`; the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters; the authorizer is held to the tenants of the actor, whatever `--authz` (`new TenantBoundAuthorizer({ model: createAuthorizer(), rowsConfinedBy: 'stores' })` in `auth/authorization/authorization.ts`, in `composition/create-platform.ts` under `--di manual`). Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
611
617
  | `--queue database\|redis\|memory` | recorded as `stack.queue`. `database` (the default on Knex, Drizzle, Prisma and TypeORM, whatever the container): the tables of the ORM package (`createJobTable` and `createProcessTable`, `jobsTable` and `processesTable`, the `BackgroundJob` and `ProcessInstance` models, `jobEntity` and `processEntity`) in the `messaging` schema, `Persistence` gains `jobs` and `processes`, and the platform binds `JobStore` and `ProcessStore` to them (the platform module on tsyringe, `jobs/create-background-work.ts` where the platform is wired by hand or under Nest), so a job enqueued by a command is written in its transaction; `redis` (with `--cache redis`): `RedisJobStore` on the connection of the cache, the processes in the database; `memory` (the default with a custom persistence or none): nothing is written, both stay in the process. Refused: `database` with another ORM, `redis` without the cache |
612
618
  | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`; the address is the socket's unless `TRUST_PROXY` names the proxies in front, by hops or by address, by hops only on Hono), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
613
619
  | `--http-cache varnish` | a compose service `varnish` (Varnish 9.1.0, reaching the API on `host.docker.internal`) with its VCL in `docker/varnish/default.vcl` (only answers whose `Cache-Control` allows them by `max-age` or `s-maxage` are kept, filed under their `xkey` tags, purged by `PURGE` from the machine of Varnish or with `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` and `VARNISH_PURGE_KEY` validated, `cacheTags: { header: CacheTagHeader.xkey }` in the HTTP boundary, and the outbox relay of `main.ts` and of every `generate service` entry point publishing through `PurgingPublisher` with `VarnishCachePurger` (the end-to-end application records the purges in `purges`); on `--di manual` and `nest` the platform gains `cacheInvalidation`; with `--tenancy`, the tags of the answers and the purges are filed under the tenant (`perTenant`) and the tenant of a request is read from `x-tenant-id`. Needs an HTTP framework and `--events outbox`: a purge is a row of the outbox |
@@ -708,8 +714,8 @@ removing `generated/` writes them again). Two runs in one project take turns on
708
714
  `.ddd-ts-kit/prisma-client`: two test runs started together never write the client at once.
709
715
 
710
716
  `package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
711
- and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` call by path
712
- (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
717
+ and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` run through
718
+ `ddd-ts-kit tsc`, wherever the package manager installed it. `npx tsc` would run the older one.
713
719
 
714
720
  `init` and `generate context` start with the language: the first entry of `todos` is the glossary
715
721
  of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
@@ -786,7 +792,7 @@ would update src/contexts/notification/application/application.declarations.ts
786
792
 
787
793
  Next, in this order: the language of the context first, then the business decisions only you can make
788
794
  src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor...
789
- src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and writes nothing until you decide...
795
+ src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and refuses until you decide how
790
796
  src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour...
791
797
  ```
792
798
 
@@ -799,16 +805,16 @@ Next, in this order: the language of the context first, then the business decisi
799
805
  | `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note. Under a container it also takes `fakes`, the fake of a port it cannot build (a reader that answers what the spec gives it), and, under tenancy, `tenants`. The world named after the context is the one the specs of `command`, `query` and `job` generated after it arrange through |
800
806
  | `entity` | `<context> <Name> [--module <module>]` | entity, spec |
801
807
  | `value-object` (`vo`) | `<context> <Name> [--module <module>]` | value object, spec |
802
- | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts`: the laws of an existing value object checked on generated values (fast-check, added to the development dependencies when missing) |
803
- | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold |
808
+ | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts`: the laws of an existing value object checked on generated values (fast-check, added to the development dependencies when missing, with a note that names the install to run: the typecheck and the specs fail until then) |
809
+ | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold. No spec holds it: a note says that the dead code check names the file until a value object, an aggregate or a schema reads it |
804
810
  | `domain-event` | `<context> <Aggregate> <Fact> [--module <module>]` | event named `<context>.<aggregate>.<fact>`, spec |
805
811
  | `error` (`refusal`) | `<context> <Refusal> <factory> [--code CODE] [--term ...]... [--module <module>]` | under `"stack.refusals": "named"`: the class `<Refusal>` in `domain/errors/<refusal>.error.ts`, extending `DomainRefusal` and reading its code from the list, its entry in `<context>.codes.ts` (the list `<Context>Codes` and its type `<Context>Code`, created when absent; the entry is added at the end), the static factory `<factory>` and its case in `test/unit/<refusal>.error.spec.ts`. Each is written when absent: run again, the command changes nothing; given another factory, it adds it to the class. `<Refusal>` is in PascalCase (a trailing `Error` is dropped), named with terms of the glossary and the qualifiers of a refusal, `invalid`, `unknown`, `already`, `too`, `no`, `missing` and `required` (`BookingTooLate`): a word the glossary does not define is refused, with the `--term` that adds it; `<factory>` starts with `for`, `with`, `because`, `on` or `at` (`forAccountId`), else the command refuses and proposes `for<Factory>`. The code is the refusal in constant case (`InsufficientFunds` sets `INSUFFICIENT_FUNDS`), `--code` gives another; refused: a code already set in the context. Under `factories` and `classes`, `<context> <Concept> <refusal>`: a static factory `<refusal>` on `domain/errors/<concept>.error.ts`, the class of the errors of that concept (created when absent, extending `ConceptError`), and its case in `test/unit/<concept>.error.spec.ts`. The factory is added after the last one; run again, the command changes nothing. `<Concept>` is a term of the glossary (`--term` adds it). The code is the name of the refusal in constant case, with the concept before it when the name is one word or a code of the kit (`Appointment notFound` sets `APPOINTMENT_NOT_FOUND`); `--code` takes one of the forms `errors/factory-name` accepts. Refused: a name such as `create` or `error1`, and a code already set in the context |
806
812
  | `domain-error` | `<context> <Name> [--code CODE] [--module <module>]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `named` and `factories`, with the `generate error` command to run instead |
807
813
  | `domain-service` | `<context> <Name> [--module <module>]` | service, spec |
808
814
  | `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]... [--module <module>]` | the vocabulary `<Aggregate>Status` (created from `--value`, two states at least, or given the values it misses), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle`: every value a state, the first one initial, the transitions asked, a `TODO(domain)` for the refusal of the concept error) and `test/unit/<aggregate>.state-machine.spec.ts` (each transition where it leads, a refusal from a state it does not leave); the aggregate is left to use it |
809
815
  | `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]] [--module <module>]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `created_at` first, or the `registered_at` of a table generated before 0.100, is refused: counted from the creation, the purge would erase people who are still customers) and the spec proves the purge of what outlived it. A second table of the context joins the declarations of both adapters. Refused without `stack.privacy` on (`init --force --privacy on`), with `--orm none` or `custom`, and before anything is written for a column that is not one, a column the table keeps for itself, a subject listed as personal or a mode that does not exist |
810
- | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and writes nothing until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
811
- | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
816
+ | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and refuses, `throw undecided(...)` of the kernel, 501 at the edge, until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission and, for a handler that still refuses, one test that says so, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
817
+ | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its adapter, which refuses (`undecided`, 501) until the read is written, and the spec of that adapter, a fake of the port that answers what a test gives it, the spec of the handler, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
812
818
  | `port` | `<context> <Name> [--module <module>]` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
813
819
  | `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer] [--cache public\|private\|no-store] [--module <module>]` | under `"stack.routes": "controllers"`: a controller class in `presentation/http/<resource>/<use-case>/` (the resource is the first segment of the path), depending on `CommandBus` or `QueryBus`, behind the route group of its resource, written with it when it is new (`<resource>.routes.ts`: prefix, tag, `Authenticated`); a public use case stands in no group and says `guards: [Public]`; with class-validator one class per file (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`); `--mapper` and `--serializer` add a request mapper and a serializer the controller is given; a spec; no registration in a declared project, a controller built by hand in `<context>.routes.ts` (the module file with hand wiring) in an explicit one. Under `"functions"`: a `defineRoute` function, its spec, its registration in `<context>.routes.ts`, and `<use-case>-<role>.dto.ts` classes |
814
820
  | `controller` | the same arguments as `route` | the controller class, whatever `stack.routes` says: for a project of function routes that writes its next route as a class. `--cache` writes its cache policy: `private` (a `GET` of a caller, `max-age=0`, `must-revalidate`, strong `ETag`), `public` (a `GET` of a public use case, `max-age` 1m, `s-maxage` 5m, tagged with the resources of its path), `no-store`; refused on a write, and `public` behind a route group |
@@ -819,20 +825,20 @@ Next, in this order: the language of the context first, then the business decisi
819
825
  | `form` | `<context> <UseCase> [--module <module>]` | adds `const form = defineForm<Infer<typeof body>>({ ... })` before the `@Controller` of a use case that receives a body, and `form` to its options: the hints of its form at `GET /forms/<operationId>` |
820
826
  | `schema` | `<context\|shared-kernel> <Name>` | `presentation/http/shared/<name>.schema.ts` of the context, or `presentation/<name>.schema.ts` of the shared kernel: one shape of the contract declared once (a zod schema with `.meta({ id })`, a class-validator class, or a schema wrapped by `sharedSchema`), to fill; the routes use it whole, nested or in part |
821
827
  | `integration-event` | `<context> <Aggregate> <Fact> [--version n] [--module <module>]` | `defineIntegrationEvent` declaration in the published language (its payload in `<event>.v<n>.payload.ts` with class-validator or a schema of your own), index export, the publisher `application/integration/publishers/<event>.publisher.ts`, spec, registration, a line of `platform/audit/audited-events.ts` |
822
- | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; the type is taken as `list` prints it, with or without `@v<n>` (the newest version without, `--version <n>` saying the same as the suffix); refused unless the upstream is declared and publishes that version (a version that is not found is refused, never replaced by another) |
828
+ | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, which refuses the event (`undecided`) until what the context does with it is written, its spec, its idempotent subscription under the consumer name `<context>.<name>`; the type is taken as `list` prints it, with or without `@v<n>` (the newest version without, `--version <n>` saying the same as the suffix); refused unless the upstream is declared and publishes that version (a version that is not found is refused, never replaced by another) |
823
829
  | `personal-fields` | `<context> <table> --personal <column>,... --subject <column> [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>] [--tenant-scoped] [--module <module>]` | the declaration of the personal columns of a table no aggregate owns (a read model, a table of received messages, a table written by hand), given by its SQL name: `infrastructure/persistence/<table>.personal-fields.ts`, spelled as the erasure of the ORM reads it (on Drizzle and TypeORM with the properties the schema file gives the columns), joined to the erasure and to the export of the context, or written with them as `repository --personal` writes them for a first table, except the spec: `test/integration/<context>-personal-data.spec.ts` proves the fakes and names as `it.todo` each case to prove on the test database, no repository nor builder writing the rows of such a table. `--subject` is required: the row of such a table is rarely the person. The table is read in the schema file of the context and never changed. Refused: a table that file does not declare, a table that has a declaration, a column the definition of the table does not hold (said in the output instead when the definition takes columns from a spread or a helper), a table without `tenant_id` where the erasure is confined to a tenant, and what `--personal` of a repository refuses |
824
830
  | `erasure-handler` | `<context> [--module <module>]` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, a class `DataSubjectErasedIntegrationHandler` that erases what the context keeps of a person through its `<Context>PersonalDataErasure` when the platform announces `privacy.data-subject.erased` (`dataSubjectErasedV1` of the kernel), its spec on the fake, its idempotent subscription under the consumer name `<context>.data-subject-erased` (in a transaction behind a broker); for a context that runs as a service of its own or copies personal data from events. Refused until the context has its erasure (`generate repository --personal`), and refused on an event-sourced context, whose personal values are erased by destroying the key of the subject (`eraseDataSubject`) |
825
- | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
826
- | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; the type is taken as `list` prints it, `@v<n>` pinning the version (the newest without). In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model, which `generate read-model` writes: its port is received in the constructor |
831
+ | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | reaction to a domain event of the context, which refuses (`undecided`) until its policy is written, so that a command recording the fact fails until then, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
832
+ | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; the type is taken as `list` prints it, `@v<n>` pinning the version (the newest without). In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model, which `generate read-model` writes: its port is received in the constructor, written at once in a declared project when the read model of the same name exists. Each `@On` method refuses (`undecided`) until the line it writes is decided |
827
833
  | `read-model` | `<context> <Name> [--field <name>:<type>[:nullable]]... [--tenant-scoped] [--module <module>]` | the read model a projection keeps. The port in `application/ports/<name>.port.ts`: the type `<Name>Row` (the key `id`, then one field per `--field`, of type `string`, `number`, `boolean`, `instant` or `decimal`, `:nullable` for one that may hold null), the criteria `<name>Criteria` its readers may ask, and the abstract class `<Name>` over `ReadModelStore<<Name>Row>`. Its table, named after it in snake_case, in the schema of the context, with the column of each field and the columns of the store (`readModelColumns()`; the Prisma model holds them as fields). The column of a field accepts null whatever the row requires, a removed row being a trace that keeps its key and its stamp alone, and a check constraint `<table>_live_rows_whole` keeps every other row whole, `deleted or (<column> is not null and ...)` over the fields the row requires: `check(...)` on Drizzle, `table.check(...)` on Knex, `checks` of the entity schema on TypeORM, and on Prisma, whose schema language has none, a `TODO(domain)` line of the model that holds the `ALTER TABLE` to add to the migration. The tenant column and its index with `--tenant-scoped` or in a multi-tenant project. The store adapter `infrastructure/persistence/<orm>-<name>.repository.ts`, a class `<Orm><Name>` over the read model store of the ORM package (`DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore`, `TypeOrmReadModelStore`; `InMemoryReadModelStore` of the kernel in a project without an ORM), declared with `@Repository(<Name>)`, or bound in the module file in the explicit style (a note says where to build it on a hand-wired platform). The fake `test/fakes/<name>.fake.ts` and `test/integration/<name>.contract.spec.ts`, which runs `readModelContract` on the fake and on the adapter, and with a tenant proves that one tenant does not read the rows of another. A port of that name that is no read model is refused |
828
834
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName> [--global] [--module <module>]` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/jobs/job-settings.ts`; the grant of its system actor (below) |
829
835
  | `background-job` | `<context> <Name> --command <UseCaseName> [--module <module>]` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused), and its static `payload`, the schema of that payload in the validation library of the stack (a `z.object` under zod, a class of decorated fields without initial value under class-validator, a `Type.Object` under TypeBox, one refusal per field written by hand under Standard Schema and, with `--validation none`, in the `BackgroundJobPayloadSchema` of the kernel; a type it writes no check for is typed `unknown` with a `TODO(domain)`), which the worker reads the stored payload with before each run; `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due, then enqueues it as an earlier version declared it (`earlierVersionOf` of `@ddd-ts-kit/testing`) and shows the job dead with `INVALID_JOB_PAYLOAD` (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
830
836
  | `process` (`process-manager`) | `<context> <Name> [--module <module>]` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application on tsyringe, a queue and a runner in memory on the test buses otherwise) |
831
- | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | translator in `infrastructure/anti-corruption/`, spec |
832
- | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. A use case only a job sends the command of gets one test per job: `await application.runJob('<context>.<job>')` for a scheduled job (`application/scheduling/`), and, for a background job (`application/background/`), the request that enqueues it left to write, `const ran = await application.runDueJobs()`, which runs what is due on the queues as the worker would, and the assertion that the job is among `ran`; each then awaits `application.settled()`. `--job VoidInvoice` names one job, by its class or by the name it runs under (`billing.void-invoice`), also for a use case a route reaches, and writes `test/e2e/<use-case>-<job>.e2e.spec.ts`. Needs the route, that handler, or a job that sends the command |
837
+ | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | translator in `infrastructure/anti-corruption/`, which refuses every record (`undecided`) until its mapping is written, spec |
838
+ | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it (while the use case still refuses, as generated, the scenarios that reach it are held by `pending(...)` of `@ddd-ts-kit/testing/e2e`, which fails them once it is written: remove it then); for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. A use case only a job sends the command of gets one test per job: `await application.runJob('<context>.<job>')` for a scheduled job (`application/scheduling/`), and, for a background job (`application/background/`), the request that enqueues it left to write, `const ran = await application.runDueJobs()`, which runs what is due on the queues as the worker would, and the assertion that the job is among `ran`; each then awaits `application.settled()`. `--job VoidInvoice` names one job, by its class or by the name it runs under (`billing.void-invoice`), also for a use case a route reaches, and writes `test/e2e/<use-case>-<job>.e2e.spec.ts`. Needs the route, that handler, or a job that sends the command |
833
839
  | `acceptance` | `<story> ["<title>"]` | `test/acceptance/<story>.acceptance.spec.ts`, written before the code: an `it.todo` per acceptance criterion of `docs/architecture/stories/<story>.md`, or per slice row of the story in `docs/architecture/slices.md` when it states none |
834
- | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
835
- | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; refused unless the upstream is declared |
840
+ | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, which refuses everybody until its rule is written, spec; the generated use cases of its permission are written again to ask it, the birth of an aggregate about the aggregate it builds, a query about what it read, a handler that still refuses by a `TODO(domain)` where it will ask; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
841
+ | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; the contract is bound to a refusal (`undecided`, under a `TODO(platform)` that `todo` lists) until the implementation of the upstream is bound; refused unless the upstream is declared |
836
842
  | `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators] [--module <module>]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused. With `--kind simulated`: `infrastructure/external/simulated-<port>.adapter.ts` and its spec, a class of production code that answers in the memory of the process the way the outside system would, for an environment whose provider is simulated; it carries no policy (`--decorators` is refused), is declared `@Adapter(<Port>, { kind: 'external' })` or bound `.toClass(Simulated<Port>).as('external')`, and takes turns with the remote adapter, one per port |
837
843
  | `service` | `<context>` | `src/apps/<context>/main.ts` (kernel, platform, that context only, with its jobs: `jobSettings(process.env, '<context>')`), script `start:<context>`, a compose service behind the `services` profile, the knip entry, `deployable: true` in the config. The Dockerfile takes the entry as build argument `ENTRY` |
838
844
  | `worker` | none | `src/apps/worker/main.ts`: the modules of `main.ts`, no HTTP server, no outbox relay, the jobs started whatever `RUN_JOBS` says, a graceful stop; script `start:worker`, a compose service `worker` behind the `services` profile, the knip entry, `"worker": true` in the config, and `RUN_JOBS` defaulting to `false` from then on, so the API stops running the jobs the worker runs. With several instances the lock has to be a real one: `--cache redis` binds the Redis lock, without it the generated README says the limit. A context named `worker` is refused |
@@ -957,7 +963,7 @@ Next, in this order: the language of the context first, then the business decisi
957
963
  of the business wins. `--allow-name` overrides the three checks; `check`
958
964
  will still report what the glossary does not define. A name Windows reserves for a device (`CON`,
959
965
  `PRN`, `AUX`, `NUL`, `COM1` to `COM9`, `LPT1` to `LPT9`, whatever the case) is refused for a context and
960
- for a concept, since its files cannot be checked out there; `--allow-name` lets a concept through. Only the kinds whose usage shows `--term`
966
+ for a concept, since its files cannot be checked out there; `--allow-name` lets a concept through. A concept named after a reserved word of the language (`Return`, `Case`, `Default`, `Package`) or after a global the generated code uses (`Date`, `Error`, `Record`, `Map`) is refused with the reason, whatever the flags, since its code would not compile: name it in two words (`ReturnOrder`, `SupportCase`, `DueDate`). Only the kinds whose usage shows `--term`
961
967
  take it (`heldToGlossary` in `generate --help --json`, a line of `generate <kind> --help`); the
962
968
  others (`port`, `adapter`, `repository`, `route`, `representation`...) name what an earlier
963
969
  command named or what the concept they serve is called, and refuse `--term`, naming the kinds
@@ -2344,7 +2350,11 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2344
2350
  default name.
2345
2351
  - Suppress one line with `// ddd-ts-kit-disable-next-line <rule-id> -- ADR-0007: <reason>`. Without a
2346
2352
  reason the comment is itself a violation, and so is a reason that names no existing decision record. On the first line of a file it also covers
2347
- file-level violations.
2353
+ file-level violations. A line that breaks two rules takes a list (`<rule-id>, <rule-id> -- ...`) or
2354
+ one directive per rule, one above the other: they all cover the line after the last of them. A
2355
+ directive that names an id no rule has, or a rule with nothing to report on that line, is a
2356
+ violation too (`config/unused-suppression`); the second is judged by `check` when it runs every
2357
+ rule, for a rule ESLint does not hold as well.
2348
2358
  - `--clean-only` runs the rules that judge a file on its own (`clean/stepdown`,
2349
2359
  `clean/function-size`, `clean/no-commented-out-code`, `clean/no-noise-comment`,
2350
2360
  `clean/no-escape-hatch`, `clean/no-hash-private`, `clean/blank-lines`, `clean/braces`,
@@ -2397,6 +2407,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2397
2407
  | `imports/alias-declared` | an `importAlias` that is not `@/` or `$<name>/`, or that is `$test/`, `$scripts/`, `$generated/`; a `paths` entry of `tsconfig.json` missing or different from what `importAlias` gives (the fix gives the entry); another `paths` entry under an alias; a `baseUrl`; a `tsconfig.build.json` whose `paths` differ; `paths` of `knip.json` mapping an alias; a script that compiles (`tsc` without `--noEmit`) and does not run `ddd-ts-kit build-aliases` afterwards; a script running `tsx --tsconfig` on another file; a `vitest` config at the root without `tsconfigPaths: true`, a `jest` config without the derived `moduleNameMapper` entries, or `.dependency-cruiser.cjs` without `tsConfig`; `module` and `moduleResolution` of `tsconfig.json` (or of a `tsconfig.build.json` that sets its own) that are not what `importExtension` gives: `ESNext`, `Bundler` and `customConditions` holding `node` under `none`, and under `js` a written value that is not a Node resolution; a jest mapping whose pattern does not end as the imports do; under `js`, a file directly under `test/support/` that imports a neighbour by its `.ts` while `tsconfig.json` sets neither `allowImportingTsExtensions` nor `rewriteRelativeImportExtensions`; whatever the ending, a `tsconfig.build.json`, or a tsconfig a script compiles what ships with, that resolves `noEmit` as `true`, or `allowImportingTsExtensions` as `true` without `rewriteRelativeImportExtensions` or `emitDeclarationOnly`. A project without `package.json` is not judged |
2398
2408
  | `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a directory of the config that leads out of the project; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
2399
2409
  | `config/suppression-needs-reason` | a suppression without a rule id or a reason (kept as an alias next to `governance/recorded-deviation`, which judges the reason) |
2410
+ | `config/unused-suppression` | a suppression that names an id no rule has; in a run of every rule, a suppression of a rule this checker alone holds, on for the file, that has nothing to report on the line the directive covers |
2400
2411
  | `authz/declared` | in a module file, `builder.command(X)` or `builder.query(X)` without `.requires(` or `.public(` in its chain, unless the message class carries `@Requires` or `@Public` of `@ddd-ts-kit/kernel/declarations`; with manual or nest wiring, a command or query class absent from every `requires(X, ...)` and `publicUseCase(X)` of the module file and of `application/authorization/`; a `defineRoute` without `security` (the route type refuses it already, and an empty list too: this is the text-level net for a definition built loosely); in the declared style, the exported class of a `*.command.ts` or `*.query.ts` file carrying neither `@Requires` nor `@Public` |
2401
2412
  | `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning); with `rebac`, a permission the schema leaves on the context while no source outside the tests writes an `operator` relationship (of a person or a system actor) on that context and no signed-in grant holds it, in a project that already makes a person operator of some context; silent with an authorizer of the project's own (a warning) |
2402
2413
  | `authz/system-actor-granted` | with `stack.authz` `rebac`, a `systemActor(<name>)` of a context (a literal, or `<Class>.name`) in a file that sends a command or a query not declared public, while no file of `platform/auth/relationships/` names the subject `system:system:<name>` |
@@ -2420,7 +2431,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2420
2431
  | `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
2421
2432
  | `events/outbox-required` | `stack.events` other than `outbox` with an ORM and no `stack.events` deviation; in `domain/` and `application/`, the import of a broker client or of a bus or relay implementation; a publisher depending on more than `IntegrationEventPublisher`; a platform module that hands out a publisher and never names `OutboxPublisher` |
2422
2433
  | `events/consumer-idempotent` | an integration event handler class (`application/integration/handlers/*.integration-handler.ts`) that neither carries `@IntegrationEventHandler` nor is registered in its module file under a consumer name; an `@IntegrationEventHandler` whose `consumer` is not a non-empty string literal; a free `on(` or `consume(` without `processed`; a consumer name used twice, in declarations and registrations alike |
2423
- | `domain-events/dispatched-on-save` | a call of `pullEvents()` in `application/` or `infrastructure/` of a context; `DomainEventDispatcher` imported, listed as a dependency or received by a constructor in `application/commands/`, `application/queries/` or a repository adapter. The module file, the tests, the platform and `main.ts` are left alone |
2434
+ | `domain-events/dispatched-on-save` | a call of `takeRecordedEvents()` in `application/` or `infrastructure/` of a context; `DomainEventDispatcher` imported, listed as a dependency or received by a constructor in `application/commands/`, `application/queries/` or a repository adapter. The module file, the tests, the platform and `main.ts` are left alone |
2424
2435
  | `domain-events/transactional-before-commit` | a domain event handler (a class of `application/event-handlers/*.event-handler.ts` or `application/integration/publishers/*.publisher.ts`, or any class carrying `@DomainEventHandler`) that runs before the commit and depends on `Cache`, `CachePurger`, `Lock`, `RateLimiter`, `JobScheduler` or `EventBus` of the kernel, on a port of `application/ports/` that is not a persistence port (no adapter under `infrastructure/persistence/`, or one anywhere else under `infrastructure/`), on anything imported from `infrastructure/`, another context, the platform or a package other than `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth`; an after-commit handler (`phase: 'after-commit'` in its decorator, or in the third argument of every `.on(` of the module file that mentions it) depending on `IntegrationEventPublisher`. `check-file` leaves the adapters of a port to the whole check |
2425
2436
  | `event-sourcing/state-in-apply` | in a class of `domain/aggregates/` extending `EventSourcedAggregate`, a write to something of `this` (assignment, increment, mutating call) outside the constructor, static methods, `apply<Fact>` methods and `restore`; `this.record(..)` inside an apply method |
2426
2437
  | `event-sourcing/past-tense` | in a file of `domain/aggregates/` holding an event-sourced aggregate, a name imported from `domain/events/` whose fact (the words after the name of the aggregate) holds no past participle, or only one spelled like its imperative at its head (`SetPrice`) |
@@ -1 +1 @@
1
- {"version":3,"file":"specifier-literals.d.ts","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAUvG"}
1
+ {"version":3,"file":"specifier-literals.d.ts","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAYvG"}