ddd-ts-kit 0.113.2 → 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 (2132) hide show
  1. package/CHANGELOG.md +375 -1
  2. package/README.fr.md +45 -34
  3. package/README.md +43 -32
  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/managed-settings-note.js +1 -1
  1354. package/dist/init/managed-settings-note.js.map +1 -1
  1355. package/dist/init/manifest/left-to-workspace-root.d.ts +4 -0
  1356. package/dist/init/manifest/left-to-workspace-root.d.ts.map +1 -0
  1357. package/dist/init/manifest/left-to-workspace-root.js +6 -0
  1358. package/dist/init/manifest/left-to-workspace-root.js.map +1 -0
  1359. package/dist/init/manifest/versions.js +25 -25
  1360. package/dist/init/manifest/write-install-settings.d.ts +10 -0
  1361. package/dist/init/manifest/write-install-settings.d.ts.map +1 -0
  1362. package/dist/init/manifest/write-install-settings.js +57 -0
  1363. package/dist/init/manifest/write-install-settings.js.map +1 -0
  1364. package/dist/init/rewire-tables.d.ts.map +1 -1
  1365. package/dist/init/rewire-tables.js +2 -52
  1366. package/dist/init/rewire-tables.js.map +1 -1
  1367. package/dist/init/run-init.d.ts.map +1 -1
  1368. package/dist/init/run-init.js +12 -8
  1369. package/dist/init/run-init.js.map +1 -1
  1370. package/dist/init/settle-index-names.d.ts.map +1 -1
  1371. package/dist/init/settle-index-names.js +4 -43
  1372. package/dist/init/settle-index-names.js.map +1 -1
  1373. package/dist/init/stack/resolve-stack.d.ts.map +1 -1
  1374. package/dist/init/stack/resolve-stack.js +10 -1
  1375. package/dist/init/stack/resolve-stack.js.map +1 -1
  1376. package/dist/init/subfolder-sentence.js +1 -1
  1377. package/dist/init/subfolder-sentence.js.map +1 -1
  1378. package/dist/init/template-vars.d.ts.map +1 -1
  1379. package/dist/init/template-vars.js +0 -2
  1380. package/dist/init/template-vars.js.map +1 -1
  1381. package/dist/init/workspace-image-note.d.ts +9 -0
  1382. package/dist/init/workspace-image-note.d.ts.map +1 -0
  1383. package/dist/init/workspace-image-note.js +37 -0
  1384. package/dist/init/workspace-image-note.js.map +1 -0
  1385. package/dist/init/workspace-manager-note.d.ts +5 -0
  1386. package/dist/init/workspace-manager-note.d.ts.map +1 -0
  1387. package/dist/init/workspace-manager-note.js +12 -0
  1388. package/dist/init/workspace-manager-note.js.map +1 -0
  1389. package/dist/init/write-agent-settings.js +1 -1
  1390. package/dist/init/write-agent-settings.js.map +1 -1
  1391. package/dist/init/write-contracts.js +1 -1
  1392. package/dist/init/write-contracts.js.map +1 -1
  1393. package/dist/init/write-copilot-settings.js +1 -1
  1394. package/dist/init/write-copilot-settings.js.map +1 -1
  1395. package/dist/init/write-local-environment.js +1 -1
  1396. package/dist/init/write-local-environment.js.map +1 -1
  1397. package/dist/init/write-profile-hooks.js +1 -1
  1398. package/dist/init/write-profile-hooks.js.map +1 -1
  1399. package/dist/issues-url.d.ts +1 -1
  1400. package/dist/issues-url.d.ts.map +1 -1
  1401. package/dist/issues-url.js +1 -1
  1402. package/dist/issues-url.js.map +1 -1
  1403. package/dist/lint/eslint-in-project.d.ts +6 -2
  1404. package/dist/lint/eslint-in-project.d.ts.map +1 -1
  1405. package/dist/lint/eslint-in-project.js +9 -3
  1406. package/dist/lint/eslint-in-project.js.map +1 -1
  1407. package/dist/markers/insert-in-region.js +23 -6
  1408. package/dist/markers/insert-in-region.js.map +1 -1
  1409. package/dist/markers/merge-imports.d.ts +3 -1
  1410. package/dist/markers/merge-imports.d.ts.map +1 -1
  1411. package/dist/markers/merge-imports.js +66 -23
  1412. package/dist/markers/merge-imports.js.map +1 -1
  1413. package/dist/markers/replace-in-region.js +1 -1
  1414. package/dist/markers/replace-in-region.js.map +1 -1
  1415. package/dist/merge/land-drizzle.d.ts +1 -1
  1416. package/dist/merge/land-drizzle.d.ts.map +1 -1
  1417. package/dist/merge/land-drizzle.js +2 -2
  1418. package/dist/merge/land-drizzle.js.map +1 -1
  1419. package/dist/merge/land-up-to-date.d.ts.map +1 -1
  1420. package/dist/merge/land-up-to-date.js +11 -47
  1421. package/dist/merge/land-up-to-date.js.map +1 -1
  1422. package/dist/merge/merge-steps.d.ts.map +1 -1
  1423. package/dist/merge/merge-steps.js +4 -9
  1424. package/dist/merge/merge-steps.js.map +1 -1
  1425. package/dist/merge/order/applied-under-old-name.d.ts +4 -9
  1426. package/dist/merge/order/applied-under-old-name.d.ts.map +1 -1
  1427. package/dist/merge/order/applied-under-old-name.js +5 -9
  1428. package/dist/merge/order/applied-under-old-name.js.map +1 -1
  1429. package/dist/merge/order/drizzle-order.js +3 -3
  1430. package/dist/merge/order/drizzle-order.js.map +1 -1
  1431. package/dist/merge/order/migration-order.d.ts.map +1 -1
  1432. package/dist/merge/order/migration-order.js +2 -6
  1433. package/dist/merge/order/migration-order.js.map +1 -1
  1434. package/dist/merge/order/named-order.d.ts +3 -3
  1435. package/dist/merge/order/named-order.d.ts.map +1 -1
  1436. package/dist/merge/order/named-order.js +10 -14
  1437. package/dist/merge/order/named-order.js.map +1 -1
  1438. package/dist/merge/renamed-after-trunk.d.ts +10 -0
  1439. package/dist/merge/renamed-after-trunk.d.ts.map +1 -0
  1440. package/dist/merge/renamed-after-trunk.js +21 -0
  1441. package/dist/merge/renamed-after-trunk.js.map +1 -0
  1442. package/dist/merge/renumber-migrations.d.ts +4 -8
  1443. package/dist/merge/renumber-migrations.d.ts.map +1 -1
  1444. package/dist/merge/renumber-migrations.js +28 -53
  1445. package/dist/merge/renumber-migrations.js.map +1 -1
  1446. package/dist/merge/replayed-after-trunk.d.ts +7 -0
  1447. package/dist/merge/replayed-after-trunk.d.ts.map +1 -0
  1448. package/dist/merge/replayed-after-trunk.js +35 -0
  1449. package/dist/merge/replayed-after-trunk.js.map +1 -0
  1450. package/dist/migration/refuse-taken-migration-name.d.ts +2 -1
  1451. package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -1
  1452. package/dist/migration/refuse-taken-migration-name.js +3 -5
  1453. package/dist/migration/refuse-taken-migration-name.js.map +1 -1
  1454. package/dist/naming/inflection.d.ts +15 -0
  1455. package/dist/naming/inflection.d.ts.map +1 -0
  1456. package/dist/naming/inflection.js +24 -0
  1457. package/dist/naming/inflection.js.map +1 -0
  1458. package/dist/naming/parse-concept-name.d.ts +3 -2
  1459. package/dist/naming/parse-concept-name.d.ts.map +1 -1
  1460. package/dist/naming/parse-concept-name.js +5 -2
  1461. package/dist/naming/parse-concept-name.js.map +1 -1
  1462. package/dist/naming/plural.d.ts +1 -1
  1463. package/dist/naming/plural.d.ts.map +1 -1
  1464. package/dist/naming/plural.js +7 -4
  1465. package/dist/naming/plural.js.map +1 -1
  1466. package/dist/naming/refuse-unwritable.d.ts +8 -0
  1467. package/dist/naming/refuse-unwritable.d.ts.map +1 -0
  1468. package/dist/naming/refuse-unwritable.js +32 -0
  1469. package/dist/naming/refuse-unwritable.js.map +1 -0
  1470. package/dist/naming/singular.d.ts +5 -1
  1471. package/dist/naming/singular.d.ts.map +1 -1
  1472. package/dist/naming/singular.js +15 -2
  1473. package/dist/naming/singular.js.map +1 -1
  1474. package/dist/naming/to-name.d.ts +5 -0
  1475. package/dist/naming/to-name.d.ts.map +1 -1
  1476. package/dist/naming/to-name.js +7 -2
  1477. package/dist/naming/to-name.js.map +1 -1
  1478. package/dist/orm/database-access.d.ts +13 -0
  1479. package/dist/orm/database-access.d.ts.map +1 -0
  1480. package/dist/orm/database-access.js +2 -0
  1481. package/dist/orm/database-access.js.map +1 -0
  1482. package/dist/orm/members/drizzle.d.ts +3 -0
  1483. package/dist/orm/members/drizzle.d.ts.map +1 -0
  1484. package/dist/orm/members/drizzle.js +16 -0
  1485. package/dist/orm/members/drizzle.js.map +1 -0
  1486. package/dist/orm/members/knex.d.ts +3 -0
  1487. package/dist/orm/members/knex.d.ts.map +1 -0
  1488. package/dist/orm/members/knex.js +20 -0
  1489. package/dist/orm/members/knex.js.map +1 -0
  1490. package/dist/orm/members/prisma.d.ts +3 -0
  1491. package/dist/orm/members/prisma.d.ts.map +1 -0
  1492. package/dist/orm/members/prisma.js +9 -0
  1493. package/dist/orm/members/prisma.js.map +1 -0
  1494. package/dist/orm/members/typeorm.d.ts +3 -0
  1495. package/dist/orm/members/typeorm.d.ts.map +1 -0
  1496. package/dist/orm/members/typeorm.js +18 -0
  1497. package/dist/orm/members/typeorm.js.map +1 -0
  1498. package/dist/orm/migrations/files-of-commit.d.ts +3 -0
  1499. package/dist/orm/migrations/files-of-commit.d.ts.map +1 -0
  1500. package/dist/orm/migrations/files-of-commit.js +8 -0
  1501. package/dist/orm/migrations/files-of-commit.js.map +1 -0
  1502. package/dist/orm/migrations/in-order.d.ts +5 -0
  1503. package/dist/orm/migrations/in-order.d.ts.map +1 -0
  1504. package/dist/orm/migrations/in-order.js +5 -0
  1505. package/dist/orm/migrations/in-order.js.map +1 -0
  1506. package/dist/orm/migrations/migration-history.d.ts +44 -0
  1507. package/dist/orm/migrations/migration-history.d.ts.map +1 -0
  1508. package/dist/orm/migrations/migration-history.js +2 -0
  1509. package/dist/orm/migrations/migration-history.js.map +1 -0
  1510. package/dist/orm/migrations/migration-tool.d.ts +32 -0
  1511. package/dist/orm/migrations/migration-tool.d.ts.map +1 -0
  1512. package/dist/orm/migrations/migration-tool.js +2 -0
  1513. package/dist/orm/migrations/migration-tool.js.map +1 -0
  1514. package/dist/orm/migrations/migrations-landed.d.ts +6 -0
  1515. package/dist/orm/migrations/migrations-landed.d.ts.map +1 -0
  1516. package/dist/orm/migrations/migrations-landed.js +2 -0
  1517. package/dist/orm/migrations/migrations-landed.js.map +1 -0
  1518. package/dist/orm/migrations/named-folders.d.ts +7 -0
  1519. package/dist/orm/migrations/named-folders.d.ts.map +1 -0
  1520. package/dist/orm/migrations/named-folders.js +40 -0
  1521. package/dist/orm/migrations/named-folders.js.map +1 -0
  1522. package/dist/orm/migrations/named-scripts.d.ts +7 -0
  1523. package/dist/orm/migrations/named-scripts.d.ts.map +1 -0
  1524. package/dist/orm/migrations/named-scripts.js +36 -0
  1525. package/dist/orm/migrations/named-scripts.js.map +1 -0
  1526. package/dist/orm/migrations/numbered-name.d.ts +6 -0
  1527. package/dist/orm/migrations/numbered-name.d.ts.map +1 -0
  1528. package/dist/orm/migrations/numbered-name.js +7 -0
  1529. package/dist/orm/migrations/numbered-name.js.map +1 -0
  1530. package/dist/{merge/order → orm/migrations}/ordered-migration.d.ts +0 -2
  1531. package/dist/orm/migrations/ordered-migration.d.ts.map +1 -0
  1532. package/dist/orm/migrations/ordered-migration.js.map +1 -0
  1533. package/dist/orm/migrations/renumbered-name.d.ts +3 -0
  1534. package/dist/orm/migrations/renumbered-name.d.ts.map +1 -0
  1535. package/dist/orm/migrations/renumbered-name.js +7 -0
  1536. package/dist/orm/migrations/renumbered-name.js.map +1 -0
  1537. package/dist/orm/migrations/restamp-class.d.ts.map +1 -0
  1538. package/dist/{merge → orm/migrations}/restamp-class.js +2 -2
  1539. package/dist/orm/migrations/restamp-class.js.map +1 -0
  1540. package/dist/orm/migrations/script-named.d.ts +3 -0
  1541. package/dist/orm/migrations/script-named.d.ts.map +1 -0
  1542. package/dist/orm/migrations/script-named.js +6 -0
  1543. package/dist/orm/migrations/script-named.js.map +1 -0
  1544. package/dist/orm/migrations/scripts.d.ts +7 -0
  1545. package/dist/orm/migrations/scripts.d.ts.map +1 -0
  1546. package/dist/orm/migrations/scripts.js +7 -0
  1547. package/dist/orm/migrations/scripts.js.map +1 -0
  1548. package/dist/orm/migrations/stamped-classes.d.ts +8 -0
  1549. package/dist/orm/migrations/stamped-classes.d.ts.map +1 -0
  1550. package/dist/orm/migrations/stamped-classes.js +53 -0
  1551. package/dist/orm/migrations/stamped-classes.js.map +1 -0
  1552. package/dist/orm/orm-member.d.ts +16 -0
  1553. package/dist/orm/orm-member.d.ts.map +1 -0
  1554. package/dist/orm/orm-member.js +2 -0
  1555. package/dist/orm/orm-member.js.map +1 -0
  1556. package/dist/orm/orm-members.d.ts +5 -0
  1557. package/dist/orm/orm-members.d.ts.map +1 -0
  1558. package/dist/orm/orm-members.js +11 -0
  1559. package/dist/orm/orm-members.js.map +1 -0
  1560. package/dist/orm/tables/declare-once.d.ts +14 -0
  1561. package/dist/orm/tables/declare-once.d.ts.map +1 -0
  1562. package/dist/orm/tables/declare-once.js +22 -0
  1563. package/dist/orm/tables/declare-once.js.map +1 -0
  1564. package/dist/orm/tables/declared-in-tables-file.d.ts +35 -0
  1565. package/dist/orm/tables/declared-in-tables-file.d.ts.map +1 -0
  1566. package/dist/orm/tables/declared-in-tables-file.js +98 -0
  1567. package/dist/orm/tables/declared-in-tables-file.js.map +1 -0
  1568. package/dist/orm/tables/declared-table.d.ts +12 -0
  1569. package/dist/orm/tables/declared-table.d.ts.map +1 -0
  1570. package/dist/orm/tables/declared-table.js +2 -0
  1571. package/dist/orm/tables/declared-table.js.map +1 -0
  1572. package/dist/orm/tables/empty-picture.d.ts +4 -0
  1573. package/dist/orm/tables/empty-picture.d.ts.map +1 -0
  1574. package/dist/orm/tables/empty-picture.js +5 -0
  1575. package/dist/orm/tables/empty-picture.js.map +1 -0
  1576. package/dist/orm/tables/exported-names.d.ts +8 -0
  1577. package/dist/orm/tables/exported-names.d.ts.map +1 -0
  1578. package/dist/orm/tables/exported-names.js +68 -0
  1579. package/dist/orm/tables/exported-names.js.map +1 -0
  1580. package/dist/orm/tables/file-of-table.d.ts +3 -0
  1581. package/dist/orm/tables/file-of-table.d.ts.map +1 -0
  1582. package/dist/orm/tables/file-of-table.js +5 -0
  1583. package/dist/orm/tables/file-of-table.js.map +1 -0
  1584. package/dist/orm/tables/index-names.d.ts +55 -0
  1585. package/dist/orm/tables/index-names.d.ts.map +1 -0
  1586. package/dist/orm/tables/index-names.js +2 -0
  1587. package/dist/orm/tables/index-names.js.map +1 -0
  1588. package/dist/orm/tables/index-picture.d.ts +20 -0
  1589. package/dist/orm/tables/index-picture.d.ts.map +1 -0
  1590. package/dist/orm/tables/index-picture.js +2 -0
  1591. package/dist/orm/tables/index-picture.js.map +1 -0
  1592. package/dist/orm/tables/listed-entities.d.ts +9 -0
  1593. package/dist/orm/tables/listed-entities.d.ts.map +1 -0
  1594. package/dist/orm/tables/listed-entities.js +65 -0
  1595. package/dist/orm/tables/listed-entities.js.map +1 -0
  1596. package/dist/orm/tables/prisma-models.d.ts +7 -0
  1597. package/dist/orm/tables/prisma-models.d.ts.map +1 -0
  1598. package/dist/orm/tables/prisma-models.js +33 -0
  1599. package/dist/orm/tables/prisma-models.js.map +1 -0
  1600. package/dist/orm/tables/tables-declaration.d.ts +30 -0
  1601. package/dist/orm/tables/tables-declaration.d.ts.map +1 -0
  1602. package/dist/orm/tables/tables-declaration.js +2 -0
  1603. package/dist/orm/tables/tables-declaration.js.map +1 -0
  1604. package/dist/orm/tables/template-of-table.d.ts +4 -0
  1605. package/dist/orm/tables/template-of-table.d.ts.map +1 -0
  1606. package/dist/orm/tables/template-of-table.js +7 -0
  1607. package/dist/orm/tables/template-of-table.js.map +1 -0
  1608. package/dist/package-manager/listed-by.d.ts +3 -0
  1609. package/dist/package-manager/listed-by.d.ts.map +1 -0
  1610. package/dist/package-manager/listed-by.js +17 -0
  1611. package/dist/package-manager/listed-by.js.map +1 -0
  1612. package/dist/package-manager/npm-workspace-of.d.ts +15 -0
  1613. package/dist/package-manager/npm-workspace-of.d.ts.map +1 -0
  1614. package/dist/package-manager/npm-workspace-of.js +35 -0
  1615. package/dist/package-manager/npm-workspace-of.js.map +1 -0
  1616. package/dist/package-manager/package-manager-vars.d.ts +1 -1
  1617. package/dist/package-manager/package-manager-vars.d.ts.map +1 -1
  1618. package/dist/package-manager/package-manager-vars.js +2 -1
  1619. package/dist/package-manager/package-manager-vars.js.map +1 -1
  1620. package/dist/package-manager/pnpm-settings-file.d.ts +6 -0
  1621. package/dist/package-manager/pnpm-settings-file.d.ts.map +1 -0
  1622. package/dist/package-manager/pnpm-settings-file.js +12 -0
  1623. package/dist/package-manager/pnpm-settings-file.js.map +1 -0
  1624. package/dist/package-manager/pnpm-workspace-of.d.ts +18 -0
  1625. package/dist/package-manager/pnpm-workspace-of.d.ts.map +1 -0
  1626. package/dist/package-manager/pnpm-workspace-of.js +49 -0
  1627. package/dist/package-manager/pnpm-workspace-of.js.map +1 -0
  1628. package/dist/package-manager/workspace-package-manager.d.ts +14 -0
  1629. package/dist/package-manager/workspace-package-manager.d.ts.map +1 -0
  1630. package/dist/package-manager/workspace-package-manager.js +56 -0
  1631. package/dist/package-manager/workspace-package-manager.js.map +1 -0
  1632. package/dist/plan/planned-words.js +1 -1
  1633. package/dist/plan/planned-words.js.map +1 -1
  1634. package/dist/prisma-schema/datasource-list.d.ts +4 -0
  1635. package/dist/prisma-schema/datasource-list.d.ts.map +1 -0
  1636. package/dist/prisma-schema/datasource-list.js +6 -0
  1637. package/dist/prisma-schema/datasource-list.js.map +1 -0
  1638. package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -1
  1639. package/dist/prisma-schema/datasource-schemas.js +2 -1
  1640. package/dist/prisma-schema/datasource-schemas.js.map +1 -1
  1641. package/dist/prisma-schema/preview-features-of.d.ts.map +1 -1
  1642. package/dist/prisma-schema/preview-features-of.js +2 -3
  1643. package/dist/prisma-schema/preview-features-of.js.map +1 -1
  1644. package/dist/prisma-schema/schema-block.d.ts +20 -0
  1645. package/dist/prisma-schema/schema-block.d.ts.map +1 -0
  1646. package/dist/prisma-schema/schema-block.js +45 -0
  1647. package/dist/prisma-schema/schema-block.js.map +1 -0
  1648. package/dist/prisma-schema/schema-code.d.ts +7 -0
  1649. package/dist/prisma-schema/schema-code.d.ts.map +1 -0
  1650. package/dist/prisma-schema/schema-code.js +10 -0
  1651. package/dist/prisma-schema/schema-code.js.map +1 -0
  1652. package/dist/prisma-schema/schema-list.d.ts +14 -0
  1653. package/dist/prisma-schema/schema-list.d.ts.map +1 -0
  1654. package/dist/prisma-schema/schema-list.js +33 -0
  1655. package/dist/prisma-schema/schema-list.js.map +1 -0
  1656. package/dist/prisma-schema/with-datasource-schema.d.ts +5 -1
  1657. package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -1
  1658. package/dist/prisma-schema/with-datasource-schema.js +12 -5
  1659. package/dist/prisma-schema/with-datasource-schema.js.map +1 -1
  1660. package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -1
  1661. package/dist/prisma-schema/with-preview-feature.js +6 -14
  1662. package/dist/prisma-schema/with-preview-feature.js.map +1 -1
  1663. package/dist/refusals/cut-factories.js +2 -2
  1664. package/dist/refusals/cut-factories.js.map +1 -1
  1665. package/dist/refusals/read-concept-error.d.ts.map +1 -1
  1666. package/dist/refusals/read-concept-error.js +2 -2
  1667. package/dist/refusals/read-concept-error.js.map +1 -1
  1668. package/dist/run.d.ts +0 -2
  1669. package/dist/run.d.ts.map +1 -1
  1670. package/dist/run.js +35 -114
  1671. package/dist/run.js.map +1 -1
  1672. package/dist/sdk/put-file.d.ts +5 -2
  1673. package/dist/sdk/put-file.d.ts.map +1 -1
  1674. package/dist/sdk/put-file.js +6 -2
  1675. package/dist/sdk/put-file.js.map +1 -1
  1676. package/dist/sdk/sdk-scripts.d.ts +4 -3
  1677. package/dist/sdk/sdk-scripts.d.ts.map +1 -1
  1678. package/dist/sdk/sdk-scripts.js +6 -5
  1679. package/dist/sdk/sdk-scripts.js.map +1 -1
  1680. package/dist/sdk/wire-sdk.d.ts.map +1 -1
  1681. package/dist/sdk/wire-sdk.js +10 -1
  1682. package/dist/sdk/wire-sdk.js.map +1 -1
  1683. package/dist/slice/verify-slice.js +2 -2
  1684. package/dist/source-text/block-after.d.ts +8 -0
  1685. package/dist/source-text/block-after.d.ts.map +1 -0
  1686. package/dist/source-text/block-after.js +35 -0
  1687. package/dist/source-text/block-after.js.map +1 -0
  1688. package/dist/source-text/bound-by.d.ts +4 -0
  1689. package/dist/source-text/bound-by.d.ts.map +1 -0
  1690. package/dist/source-text/bound-by.js +5 -0
  1691. package/dist/source-text/bound-by.js.map +1 -0
  1692. package/dist/source-text/class-body.d.ts +8 -0
  1693. package/dist/source-text/class-body.d.ts.map +1 -0
  1694. package/dist/source-text/class-body.js +11 -0
  1695. package/dist/source-text/class-body.js.map +1 -0
  1696. package/dist/source-text/import-statement.d.ts +17 -0
  1697. package/dist/source-text/import-statement.d.ts.map +1 -0
  1698. package/dist/source-text/import-statement.js +2 -0
  1699. package/dist/source-text/import-statement.js.map +1 -0
  1700. package/dist/source-text/import-statements.d.ts +20 -0
  1701. package/dist/source-text/import-statements.d.ts.map +1 -0
  1702. package/dist/source-text/import-statements.js +53 -0
  1703. package/dist/source-text/import-statements.js.map +1 -0
  1704. package/dist/source-text/index.d.ts +7 -0
  1705. package/dist/source-text/index.d.ts.map +1 -0
  1706. package/dist/source-text/index.js +6 -0
  1707. package/dist/source-text/index.js.map +1 -0
  1708. package/dist/source-text/line-of.d.ts +8 -0
  1709. package/dist/source-text/line-of.d.ts.map +1 -0
  1710. package/dist/source-text/line-of.js +7 -0
  1711. package/dist/source-text/line-of.js.map +1 -0
  1712. package/dist/source-text/list-literal.d.ts +24 -0
  1713. package/dist/source-text/list-literal.d.ts.map +1 -0
  1714. package/dist/source-text/list-literal.js +68 -0
  1715. package/dist/source-text/list-literal.js.map +1 -0
  1716. package/dist/source-text/object-entry.d.ts +14 -0
  1717. package/dist/source-text/object-entry.d.ts.map +1 -0
  1718. package/dist/source-text/object-entry.js +26 -0
  1719. package/dist/source-text/object-entry.js.map +1 -0
  1720. package/dist/source-text/object-literal.d.ts +27 -0
  1721. package/dist/source-text/object-literal.d.ts.map +1 -0
  1722. package/dist/source-text/object-literal.js +66 -0
  1723. package/dist/source-text/object-literal.js.map +1 -0
  1724. package/dist/source-text/parts-between.d.ts +8 -0
  1725. package/dist/source-text/parts-between.d.ts.map +1 -0
  1726. package/dist/source-text/parts-between.js +33 -0
  1727. package/dist/source-text/parts-between.js.map +1 -0
  1728. package/dist/source-text/read-imports.d.ts +9 -0
  1729. package/dist/source-text/read-imports.d.ts.map +1 -0
  1730. package/dist/source-text/read-imports.js +46 -0
  1731. package/dist/source-text/read-imports.js.map +1 -0
  1732. package/dist/source-text/read-source.d.ts +10 -0
  1733. package/dist/source-text/read-source.d.ts.map +1 -0
  1734. package/dist/source-text/read-source.js +2 -0
  1735. package/dist/source-text/read-source.js.map +1 -0
  1736. package/dist/source-text/source-text.d.ts +21 -0
  1737. package/dist/source-text/source-text.d.ts.map +1 -0
  1738. package/dist/source-text/source-text.js +38 -0
  1739. package/dist/source-text/source-text.js.map +1 -0
  1740. package/dist/source-text/span.d.ts +6 -0
  1741. package/dist/source-text/span.d.ts.map +1 -0
  1742. package/dist/source-text/span.js +2 -0
  1743. package/dist/source-text/span.js.map +1 -0
  1744. package/dist/stack/audit-vars.d.ts.map +1 -1
  1745. package/dist/stack/audit-vars.js +4 -3
  1746. package/dist/stack/audit-vars.js.map +1 -1
  1747. package/dist/stack/authentication-vars.d.ts +1 -1
  1748. package/dist/stack/authentication-vars.d.ts.map +1 -1
  1749. package/dist/stack/authentication-vars.js +3 -1
  1750. package/dist/stack/authentication-vars.js.map +1 -1
  1751. package/dist/stack/broker-vars.d.ts +1 -1
  1752. package/dist/stack/broker-vars.d.ts.map +1 -1
  1753. package/dist/stack/broker-vars.js +2 -1
  1754. package/dist/stack/broker-vars.js.map +1 -1
  1755. package/dist/stack/files-vars.d.ts +1 -1
  1756. package/dist/stack/files-vars.d.ts.map +1 -1
  1757. package/dist/stack/files-vars.js +2 -1
  1758. package/dist/stack/files-vars.js.map +1 -1
  1759. package/dist/stack/one.d.ts +6 -2
  1760. package/dist/stack/one.d.ts.map +1 -1
  1761. package/dist/stack/one.js +5 -1
  1762. package/dist/stack/one.js.map +1 -1
  1763. package/dist/stack/persistence-vars.d.ts.map +1 -1
  1764. package/dist/stack/persistence-vars.js +9 -14
  1765. package/dist/stack/persistence-vars.js.map +1 -1
  1766. package/dist/stack/stack-vars.d.ts.map +1 -1
  1767. package/dist/stack/stack-vars.js +28 -26
  1768. package/dist/stack/stack-vars.js.map +1 -1
  1769. package/dist/stack/with-database.d.ts.map +1 -1
  1770. package/dist/stack/with-database.js +3 -1
  1771. package/dist/stack/with-database.js.map +1 -1
  1772. package/dist/stories/read-stories.js +2 -2
  1773. package/dist/stories/read-stories.js.map +1 -1
  1774. package/dist/templating/render-template.d.ts +4 -1
  1775. package/dist/templating/render-template.d.ts.map +1 -1
  1776. package/dist/templating/render-template.js +9 -3
  1777. package/dist/templating/render-template.js.map +1 -1
  1778. package/dist/templating/rendering.d.ts +5 -0
  1779. package/dist/templating/rendering.d.ts.map +1 -1
  1780. package/dist/templating/rendering.js +14 -6
  1781. package/dist/templating/rendering.js.map +1 -1
  1782. package/dist/templating/spoken-for.d.ts +15 -0
  1783. package/dist/templating/spoken-for.d.ts.map +1 -0
  1784. package/dist/templating/spoken-for.js +21 -0
  1785. package/dist/templating/spoken-for.js.map +1 -0
  1786. package/dist/version.d.ts +1 -1
  1787. package/dist/version.js +1 -1
  1788. package/dist/worker/read-workers.js +2 -2
  1789. package/dist/worker/read-workers.js.map +1 -1
  1790. package/dist/worker/worker-generators.js +4 -4
  1791. package/dist/worker/worker-generators.js.map +1 -1
  1792. package/dist/worker/{changed-files.d.ts → worktree-files.d.ts} +2 -2
  1793. package/dist/worker/worktree-files.d.ts.map +1 -0
  1794. package/dist/worker/worktree-files.js +10 -0
  1795. package/dist/worker/worktree-files.js.map +1 -0
  1796. package/dist/workspace/stage-if-allowed.d.ts +22 -0
  1797. package/dist/workspace/stage-if-allowed.d.ts.map +1 -0
  1798. package/dist/workspace/stage-if-allowed.js +97 -0
  1799. package/dist/workspace/stage-if-allowed.js.map +1 -0
  1800. package/dist/workspace/updated-and-skipped.d.ts +20 -0
  1801. package/dist/workspace/updated-and-skipped.d.ts.map +1 -0
  1802. package/dist/workspace/updated-and-skipped.js +11 -0
  1803. package/dist/workspace/updated-and-skipped.js.map +1 -0
  1804. package/dist/workspace/workspace.d.ts +9 -8
  1805. package/dist/workspace/workspace.d.ts.map +1 -1
  1806. package/dist/workspace/workspace.js +13 -12
  1807. package/dist/workspace/workspace.js.map +1 -1
  1808. package/dist/workspace/write-if-allowed.d.ts +5 -13
  1809. package/dist/workspace/write-if-allowed.d.ts.map +1 -1
  1810. package/dist/workspace/write-if-allowed.js +9 -69
  1811. package/dist/workspace/write-if-allowed.js.map +1 -1
  1812. package/dist/workspace/written-of.d.ts +8 -2
  1813. package/dist/workspace/written-of.d.ts.map +1 -1
  1814. package/dist/workspace/written-of.js +39 -11
  1815. package/dist/workspace/written-of.js.map +1 -1
  1816. package/package.json +9 -9
  1817. package/templates/acl/translator.spec.ts.tpl +6 -3
  1818. package/templates/acl/translator.ts.tpl +4 -2
  1819. package/templates/aggregate/aggregate.spec.ts.tpl +3 -2
  1820. package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +3 -3
  1821. package/templates/command/handler.declared.ts.tpl +13 -21
  1822. package/templates/command/handler.spec.buses.ts.tpl +5 -4
  1823. package/templates/command/handler.spec.container.ts.tpl +18 -4
  1824. package/templates/command/handler.ts.tpl +13 -23
  1825. package/templates/domain-event/domain-event.ts.tpl +1 -7
  1826. package/templates/e2e/e2e-reaction.spec.ts.tpl +6 -0
  1827. package/templates/e2e/e2e.spec.ts.tpl +4 -1
  1828. package/templates/event-handler/event-handler.declared.ts.tpl +7 -3
  1829. package/templates/event-handler/event-handler.spec.ts.tpl +8 -9
  1830. package/templates/event-handler/event-handler.ts.tpl +7 -3
  1831. package/templates/gateway/adapter.declared.ts.tpl +1 -1
  1832. package/templates/gateway/adapter.ts.tpl +1 -1
  1833. package/templates/gateway/contract.platform-test.declared.tpl +8 -0
  1834. package/templates/gateway/contract.platform.declared.tpl +8 -0
  1835. package/templates/gateway/contract.wiring.container.tpl +8 -0
  1836. package/templates/gateway/wiring.container.tpl +0 -1
  1837. package/templates/init/AGENTS.md.tpl +1 -1
  1838. package/templates/init/README.md.tpl +3 -3
  1839. package/templates/init/e2e/jest.e2e.config.js.tpl +2 -0
  1840. package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -0
  1841. package/templates/init/jest.config.js.tpl +2 -0
  1842. package/templates/init/platform/auth/authorization/authorization.container.ts.tpl +19 -2
  1843. package/templates/init/platform/auth/authorization/use-case-protection.ts.tpl +5 -2
  1844. package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +3 -2
  1845. package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -2
  1846. package/templates/init/platform/database/schema.prisma.tpl +2 -0
  1847. package/templates/init/platform/events/custom-event-bus.ts.tpl +1 -1
  1848. package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
  1849. package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -2
  1850. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +1 -1
  1851. package/templates/init/platform/http/start-http-server.hono.ts.tpl +1 -1
  1852. package/templates/init/platform/http/start-http-server.nest.ts.tpl +9 -1
  1853. package/templates/init/platform/observability/create-logger.winston.ts.tpl +1 -2
  1854. package/templates/init/rules/application.md.tpl +1 -1
  1855. package/templates/init/rules/infrastructure.md.tpl +2 -2
  1856. package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -2
  1857. package/templates/integration-handler/integration-handler.spec.ts.tpl +5 -6
  1858. package/templates/integration-handler/integration-handler.ts.tpl +6 -4
  1859. package/templates/pipeline/biome.json.tpl +1 -1
  1860. package/templates/pipeline/github/workflows/intent-to-spec.yml +1 -1
  1861. package/templates/pipeline/jest.mutation.config.js.tpl +2 -0
  1862. package/templates/pipeline/knip.json.tpl +0 -2
  1863. package/templates/pipeline/package-scripts.json +4 -4
  1864. package/templates/pipeline/vitest.config.ts.tpl +2 -0
  1865. package/templates/pipeline/vitest.mutation.config.ts.tpl +2 -0
  1866. package/templates/policy/policy.declared.ts.tpl +4 -4
  1867. package/templates/policy/policy.spec.declared.ts.tpl +3 -14
  1868. package/templates/policy/policy.spec.ts.tpl +3 -9
  1869. package/templates/policy/policy.ts.tpl +2 -3
  1870. package/templates/presets/identity/context/domain/events/account-deactivated.event.ts.tpl +1 -8
  1871. package/templates/presets/identity/context/domain/events/account-provisioned.event.ts.tpl +3 -3
  1872. package/templates/presets/identity/context/domain/events/delegation-granted.event.ts.tpl +3 -3
  1873. package/templates/presets/identity/context/domain/events/delegation-revoked.event.ts.tpl +3 -3
  1874. package/templates/presets/identity/context/domain/events/invitation-accepted.event.ts.tpl +3 -3
  1875. package/templates/presets/identity/context/domain/events/invitation-declined.event.ts.tpl +3 -3
  1876. package/templates/presets/identity/context/domain/events/invitation-issued.event.ts.tpl +3 -3
  1877. package/templates/presets/identity/context/domain/events/invitation-revoked.event.ts.tpl +3 -3
  1878. package/templates/presets/identity/context/domain/events/member-joined.event.ts.tpl +3 -3
  1879. package/templates/presets/identity/context/domain/events/member-removed.event.ts.tpl +3 -3
  1880. package/templates/presets/identity/context/domain/events/member-role-changed.event.ts.tpl +3 -3
  1881. package/templates/presets/identity/context/domain/events/organisation-opened.event.ts.tpl +3 -3
  1882. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.drizzle.ts.tpl +4 -8
  1883. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.knex.ts.tpl +4 -7
  1884. package/templates/presets/identity/context/infrastructure/persistence/account.mapper.prisma.ts.tpl +4 -8
  1885. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.drizzle.ts.tpl +4 -8
  1886. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.knex.ts.tpl +4 -7
  1887. package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.prisma.ts.tpl +4 -8
  1888. package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +9 -27
  1889. package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +8 -26
  1890. package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +9 -27
  1891. package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +8 -26
  1892. package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +9 -27
  1893. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +4 -8
  1894. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +4 -7
  1895. package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +4 -8
  1896. package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +9 -25
  1897. package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +9 -25
  1898. package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +9 -25
  1899. package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +9 -25
  1900. package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +9 -25
  1901. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.drizzle.ts.tpl +4 -8
  1902. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.knex.ts.tpl +4 -7
  1903. package/templates/presets/identity/context/infrastructure/persistence/member.mapper.prisma.ts.tpl +4 -8
  1904. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.drizzle.ts.tpl +4 -8
  1905. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.knex.ts.tpl +4 -7
  1906. package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.prisma.ts.tpl +4 -8
  1907. package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -26
  1908. package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -26
  1909. package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -26
  1910. package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -26
  1911. package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -26
  1912. package/templates/presets/identity/context/test/unit/account.aggregate.spec.ts.tpl +3 -3
  1913. package/templates/presets/identity/context/test/unit/delegation.aggregate.spec.ts.tpl +3 -3
  1914. package/templates/presets/identity/context/test/unit/invitation.aggregate.spec.ts.tpl +3 -3
  1915. package/templates/presets/identity/context/test/unit/member.aggregate.spec.ts.tpl +3 -3
  1916. package/templates/presets/identity/context/test/unit/organisation.aggregate.spec.ts.tpl +3 -2
  1917. package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +0 -1
  1918. package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
  1919. package/templates/process/process.spec.ts.tpl +5 -5
  1920. package/templates/process/timeout-job.declared.ts.tpl +2 -2
  1921. package/templates/process/timeout-job.spec.buses.ts.tpl +2 -2
  1922. package/templates/process/timeout-job.spec.container.ts.tpl +2 -2
  1923. package/templates/process/timeout-job.ts.tpl +2 -2
  1924. package/templates/projection/projection.manual.ts.tpl +8 -1
  1925. package/templates/projection/projection.spec.ts.tpl +18 -4
  1926. package/templates/projection/projection.ts.tpl +28 -1
  1927. package/templates/query/handler.declared.ts.tpl +8 -4
  1928. package/templates/query/handler.spec.container.ts.tpl +13 -0
  1929. package/templates/query/handler.ts.tpl +8 -4
  1930. package/templates/query/reader.fake.ts.tpl +6 -4
  1931. package/templates/query/reader.in-memory.ts.tpl +3 -4
  1932. package/templates/query/reader.spec.ts.tpl +19 -0
  1933. package/templates/repository/contract.spec.ts.tpl +21 -12
  1934. package/templates/repository/drizzle/mapper.ts.tpl +5 -9
  1935. package/templates/repository/drizzle/repository.ts.tpl +11 -35
  1936. package/templates/repository/fake.ts.tpl +19 -0
  1937. package/templates/repository/knex/mapper.ts.tpl +4 -7
  1938. package/templates/repository/knex/repository.ts.tpl +12 -73
  1939. package/templates/repository/none/repository.ts.tpl +9 -12
  1940. package/templates/repository/prisma/mapper.ts.tpl +5 -9
  1941. package/templates/repository/prisma/repository.ts.tpl +10 -70
  1942. package/templates/repository/typeorm/mapper.ts.tpl +4 -7
  1943. package/templates/repository/typeorm/repository.ts.tpl +10 -63
  1944. package/templates/test-world/world.buses.ts.tpl +1 -1
  1945. package/templates/test-world/world.container.ts.tpl +0 -1
  1946. package/dist/check/catalogue/clean-rule-ids.d.ts +0 -3
  1947. package/dist/check/catalogue/clean-rule-ids.d.ts.map +0 -1
  1948. package/dist/check/catalogue/clean-rule-ids.js +0 -14
  1949. package/dist/check/catalogue/clean-rule-ids.js.map +0 -1
  1950. package/dist/check/catalogue/default-severities.d.ts +0 -4
  1951. package/dist/check/catalogue/default-severities.d.ts.map +0 -1
  1952. package/dist/check/catalogue/default-severities.js +0 -27
  1953. package/dist/check/catalogue/default-severities.js.map +0 -1
  1954. package/dist/check/catalogue/suppression-rule.d.ts +0 -9
  1955. package/dist/check/catalogue/suppression-rule.d.ts.map +0 -1
  1956. package/dist/check/catalogue/suppression-rule.js +0 -10
  1957. package/dist/check/catalogue/suppression-rule.js.map +0 -1
  1958. package/dist/check/commands/changed-files.d.ts +0 -8
  1959. package/dist/check/commands/changed-files.d.ts.map +0 -1
  1960. package/dist/check/commands/changed-files.js +0 -27
  1961. package/dist/check/commands/changed-files.js.map +0 -1
  1962. package/dist/check/explain/authz-docs.d.ts +0 -3
  1963. package/dist/check/explain/authz-docs.d.ts.map +0 -1
  1964. package/dist/check/explain/authz-docs.js +0 -127
  1965. package/dist/check/explain/authz-docs.js.map +0 -1
  1966. package/dist/check/explain/clean-docs.d.ts +0 -3
  1967. package/dist/check/explain/clean-docs.d.ts.map +0 -1
  1968. package/dist/check/explain/clean-docs.js +0 -39
  1969. package/dist/check/explain/clean-docs.js.map +0 -1
  1970. package/dist/check/explain/context-docs.d.ts +0 -3
  1971. package/dist/check/explain/context-docs.d.ts.map +0 -1
  1972. package/dist/check/explain/context-docs.js +0 -44
  1973. package/dist/check/explain/context-docs.js.map +0 -1
  1974. package/dist/check/explain/domain-docs.d.ts +0 -3
  1975. package/dist/check/explain/domain-docs.d.ts.map +0 -1
  1976. package/dist/check/explain/domain-docs.js +0 -30
  1977. package/dist/check/explain/domain-docs.js.map +0 -1
  1978. package/dist/check/explain/errors-docs.d.ts +0 -3
  1979. package/dist/check/explain/errors-docs.d.ts.map +0 -1
  1980. package/dist/check/explain/errors-docs.js +0 -53
  1981. package/dist/check/explain/errors-docs.js.map +0 -1
  1982. package/dist/check/explain/event-sourcing-docs.d.ts +0 -3
  1983. package/dist/check/explain/event-sourcing-docs.d.ts.map +0 -1
  1984. package/dist/check/explain/event-sourcing-docs.js +0 -62
  1985. package/dist/check/explain/event-sourcing-docs.js.map +0 -1
  1986. package/dist/check/explain/events-docs.d.ts +0 -3
  1987. package/dist/check/explain/events-docs.d.ts.map +0 -1
  1988. package/dist/check/explain/events-docs.js +0 -103
  1989. package/dist/check/explain/events-docs.js.map +0 -1
  1990. package/dist/check/explain/imports-docs.d.ts +0 -3
  1991. package/dist/check/explain/imports-docs.d.ts.map +0 -1
  1992. package/dist/check/explain/imports-docs.js +0 -48
  1993. package/dist/check/explain/imports-docs.js.map +0 -1
  1994. package/dist/check/explain/language-docs.d.ts +0 -3
  1995. package/dist/check/explain/language-docs.d.ts.map +0 -1
  1996. package/dist/check/explain/language-docs.js +0 -40
  1997. package/dist/check/explain/language-docs.js.map +0 -1
  1998. package/dist/check/explain/layer-docs.d.ts +0 -3
  1999. package/dist/check/explain/layer-docs.d.ts.map +0 -1
  2000. package/dist/check/explain/layer-docs.js +0 -41
  2001. package/dist/check/explain/layer-docs.js.map +0 -1
  2002. package/dist/check/explain/layout-docs.d.ts +0 -3
  2003. package/dist/check/explain/layout-docs.d.ts.map +0 -1
  2004. package/dist/check/explain/layout-docs.js +0 -73
  2005. package/dist/check/explain/layout-docs.js.map +0 -1
  2006. package/dist/check/explain/lifecycle-docs.d.ts +0 -3
  2007. package/dist/check/explain/lifecycle-docs.d.ts.map +0 -1
  2008. package/dist/check/explain/lifecycle-docs.js +0 -33
  2009. package/dist/check/explain/lifecycle-docs.js.map +0 -1
  2010. package/dist/check/explain/module-docs.d.ts +0 -3
  2011. package/dist/check/explain/module-docs.d.ts.map +0 -1
  2012. package/dist/check/explain/module-docs.js +0 -40
  2013. package/dist/check/explain/module-docs.js.map +0 -1
  2014. package/dist/check/explain/nest-docs.d.ts +0 -3
  2015. package/dist/check/explain/nest-docs.d.ts.map +0 -1
  2016. package/dist/check/explain/nest-docs.js +0 -31
  2017. package/dist/check/explain/nest-docs.js.map +0 -1
  2018. package/dist/check/explain/persistence-docs.d.ts +0 -3
  2019. package/dist/check/explain/persistence-docs.d.ts.map +0 -1
  2020. package/dist/check/explain/persistence-docs.js +0 -103
  2021. package/dist/check/explain/persistence-docs.js.map +0 -1
  2022. package/dist/check/explain/ports-docs.d.ts +0 -3
  2023. package/dist/check/explain/ports-docs.d.ts.map +0 -1
  2024. package/dist/check/explain/ports-docs.js +0 -78
  2025. package/dist/check/explain/ports-docs.js.map +0 -1
  2026. package/dist/check/explain/privacy-docs.d.ts +0 -3
  2027. package/dist/check/explain/privacy-docs.d.ts.map +0 -1
  2028. package/dist/check/explain/privacy-docs.js +0 -65
  2029. package/dist/check/explain/privacy-docs.js.map +0 -1
  2030. package/dist/check/explain/rule-docs.d.ts +0 -4
  2031. package/dist/check/explain/rule-docs.d.ts.map +0 -1
  2032. package/dist/check/explain/rule-docs.js +0 -50
  2033. package/dist/check/explain/rule-docs.js.map +0 -1
  2034. package/dist/check/explain/scheduling-docs.d.ts +0 -3
  2035. package/dist/check/explain/scheduling-docs.d.ts.map +0 -1
  2036. package/dist/check/explain/scheduling-docs.js +0 -71
  2037. package/dist/check/explain/scheduling-docs.js.map +0 -1
  2038. package/dist/check/explain/schema-docs.d.ts +0 -3
  2039. package/dist/check/explain/schema-docs.d.ts.map +0 -1
  2040. package/dist/check/explain/schema-docs.js +0 -28
  2041. package/dist/check/explain/schema-docs.js.map +0 -1
  2042. package/dist/check/explain/standard-docs.d.ts +0 -3
  2043. package/dist/check/explain/standard-docs.d.ts.map +0 -1
  2044. package/dist/check/explain/standard-docs.js +0 -61
  2045. package/dist/check/explain/standard-docs.js.map +0 -1
  2046. package/dist/check/explain/tenancy-docs.d.ts +0 -3
  2047. package/dist/check/explain/tenancy-docs.d.ts.map +0 -1
  2048. package/dist/check/explain/tenancy-docs.js +0 -39
  2049. package/dist/check/explain/tenancy-docs.js.map +0 -1
  2050. package/dist/check/explain/tree-docs.d.ts +0 -3
  2051. package/dist/check/explain/tree-docs.d.ts.map +0 -1
  2052. package/dist/check/explain/tree-docs.js +0 -132
  2053. package/dist/check/explain/tree-docs.js.map +0 -1
  2054. package/dist/check/explain/wiring-docs.d.ts +0 -3
  2055. package/dist/check/explain/wiring-docs.d.ts.map +0 -1
  2056. package/dist/check/explain/wiring-docs.js +0 -114
  2057. package/dist/check/explain/wiring-docs.js.map +0 -1
  2058. package/dist/check/project/source-at.d.ts +0 -8
  2059. package/dist/check/project/source-at.d.ts.map +0 -1
  2060. package/dist/check/project/source-at.js +0 -29
  2061. package/dist/check/project/source-at.js.map +0 -1
  2062. package/dist/check/purity/purity-rule.d.ts +0 -13
  2063. package/dist/check/purity/purity-rule.d.ts.map +0 -1
  2064. package/dist/check/purity/purity-rule.js +0 -2
  2065. package/dist/check/purity/purity-rule.js.map +0 -1
  2066. package/dist/check/scan/statement-of.d.ts +0 -5
  2067. package/dist/check/scan/statement-of.d.ts.map +0 -1
  2068. package/dist/check/scan/statement-of.js +0 -70
  2069. package/dist/check/scan/statement-of.js.map +0 -1
  2070. package/dist/check/suppressions/is-suppressed.d.ts +0 -8
  2071. package/dist/check/suppressions/is-suppressed.d.ts.map +0 -1
  2072. package/dist/check/suppressions/is-suppressed.js +0 -11
  2073. package/dist/check/suppressions/is-suppressed.js.map +0 -1
  2074. package/dist/check/suppressions/suppression-rule-id.d.ts +0 -2
  2075. package/dist/check/suppressions/suppression-rule-id.d.ts.map +0 -1
  2076. package/dist/check/suppressions/suppression-rule-id.js +0 -2
  2077. package/dist/check/suppressions/suppression-rule-id.js.map +0 -1
  2078. package/dist/check/suppressions/suppression-violations.d.ts +0 -6
  2079. package/dist/check/suppressions/suppression-violations.d.ts.map +0 -1
  2080. package/dist/check/suppressions/suppression-violations.js +0 -25
  2081. package/dist/check/suppressions/suppression-violations.js.map +0 -1
  2082. package/dist/commands/parse-migration-arguments.d.ts +0 -11
  2083. package/dist/commands/parse-migration-arguments.d.ts.map +0 -1
  2084. package/dist/commands/parse-migration-arguments.js +0 -17
  2085. package/dist/commands/parse-migration-arguments.js.map +0 -1
  2086. package/dist/generate/errors/class-body.d.ts +0 -8
  2087. package/dist/generate/errors/class-body.d.ts.map +0 -1
  2088. package/dist/generate/errors/class-body.js +0 -11
  2089. package/dist/generate/errors/class-body.js.map +0 -1
  2090. package/dist/generate/flags-of.d.ts +0 -4
  2091. package/dist/generate/flags-of.d.ts.map +0 -1
  2092. package/dist/generate/flags-of.js +0 -6
  2093. package/dist/generate/flags-of.js.map +0 -1
  2094. package/dist/generate/kinds/tables-files.d.ts +0 -3
  2095. package/dist/generate/kinds/tables-files.d.ts.map +0 -1
  2096. package/dist/generate/kinds/tables-files.js +0 -7
  2097. package/dist/generate/kinds/tables-files.js.map +0 -1
  2098. package/dist/generate/shared-writes.d.ts +0 -12
  2099. package/dist/generate/shared-writes.d.ts.map +0 -1
  2100. package/dist/generate/shared-writes.js +0 -127
  2101. package/dist/generate/shared-writes.js.map +0 -1
  2102. package/dist/merge/order/comes-after.d.ts +0 -8
  2103. package/dist/merge/order/comes-after.d.ts.map +0 -1
  2104. package/dist/merge/order/comes-after.js +0 -9
  2105. package/dist/merge/order/comes-after.js.map +0 -1
  2106. package/dist/merge/order/in-order.d.ts +0 -4
  2107. package/dist/merge/order/in-order.d.ts.map +0 -1
  2108. package/dist/merge/order/in-order.js +0 -6
  2109. package/dist/merge/order/in-order.js.map +0 -1
  2110. package/dist/merge/order/migrations-of-commit.d.ts +0 -7
  2111. package/dist/merge/order/migrations-of-commit.d.ts.map +0 -1
  2112. package/dist/merge/order/migrations-of-commit.js +0 -43
  2113. package/dist/merge/order/migrations-of-commit.js.map +0 -1
  2114. package/dist/merge/order/migrations-of-tree.d.ts +0 -9
  2115. package/dist/merge/order/migrations-of-tree.d.ts.map +0 -1
  2116. package/dist/merge/order/migrations-of-tree.js +0 -25
  2117. package/dist/merge/order/migrations-of-tree.js.map +0 -1
  2118. package/dist/merge/order/ordered-migration.d.ts.map +0 -1
  2119. package/dist/merge/order/ordered-migration.js.map +0 -1
  2120. package/dist/merge/restamp-class.d.ts.map +0 -1
  2121. package/dist/merge/restamp-class.js.map +0 -1
  2122. package/dist/mutation/changed-files.d.ts +0 -7
  2123. package/dist/mutation/changed-files.d.ts.map +0 -1
  2124. package/dist/mutation/changed-files.js +0 -15
  2125. package/dist/mutation/changed-files.js.map +0 -1
  2126. package/dist/worker/changed-files.d.ts.map +0 -1
  2127. package/dist/worker/changed-files.js +0 -20
  2128. package/dist/worker/changed-files.js.map +0 -1
  2129. package/templates/gateway/platform-test.declared.tpl +0 -4
  2130. package/templates/gateway/platform.declared.tpl +0 -4
  2131. /package/dist/{merge/order → orm/migrations}/ordered-migration.js +0 -0
  2132. /package/dist/{merge → orm/migrations}/restamp-class.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,9 +1,383 @@
1
1
  # Changelog
2
2
 
3
3
  What each version changes for someone who uses the kit. The packages of `packages/` are released
4
- together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
4
+ together, under one version; the notes of each [GitHub release](https://github.com/ddd-ts-kit/ddd-ts-kit/releases)
5
5
  list the pull requests behind it.
6
6
 
7
+ ## 0.115.0
8
+
9
+ **A guide says how to run the kit inside an Nx workspace, from a real session.** `docs/guides/with-other-tools.md` holds one kit project as one Nx project: the targets Nx infers from its scripts, the cache to declare, `nx affected` beside `ddd-ts-kit affected`, the CI and the Prettier of the workspace, and the two sets of agent instructions, with what an agent did when the plugin of the kit and the one of Nx were loaded together. It says why one Nx project per bounded context is not recommended (the import alias of the kit is invisible to the graph of Nx, and a cached check answered green over a forbidden import), and which tool reports which import beside `@nx/enforce-module-boundaries`.
10
+
11
+ **`ddd-ts-kit lint` runs beside an ESLint plugin that prints on standard output.** It read the answer of ESLint from that output, so a plugin printing there stopped it with `internal error ... is not valid JSON`: `@nx/enforce-module-boundaries` does while the graph of Nx is not cached. The answer now comes back in a file, and what a plugin prints is passed on to standard error, which keeps `--json` one line.
12
+
13
+ **`generate context` declares an `--upstream` on a context that exists.** Run on a context already in the config, it kept the context as it was and recorded nothing, so a relationship found after `init --context` had to be written into `ddd-ts-kit.config.json` by hand. It now adds each `--upstream` the context does not declare yet to `contexts.<name>.upstreams` and redraws the `CONTEXT.md` of both sides, and refuses one that already depends on the context, naming the chain (`context/no-cycle`), or another pattern for an upstream it declares already, naming the key of the config that holds the pattern.
14
+
15
+ **`typecheck` and `build` find the native compiler in a workspace.** The scripts called `node node_modules/@typescript/native/bin/tsc`, a path that fails with `Cannot find module` once a workspace hoists the package to its root (an npm or Nx workspace, a kit project in `packages/api`). They now run `ddd-ts-kit tsc`, which finds `@typescript/native` wherever the package manager installed it and passes its arguments on; `sdk:build` too.
16
+
17
+ To move: in `package.json`, replace `node node_modules/@typescript/native/bin/tsc` by `ddd-ts-kit tsc` in `typecheck`, `build` and `sdk:build`; `npx ddd-ts-kit doctor` lists the scripts that still differ. In `knip.json`, add `"@typescript/native"` to `ignoreDependencies`: no script names the package any more, and `deadcode` would report it as unused.
18
+
19
+ **`init` takes the package manager of the workspace a project is a package of.** Run in a package of an npm workspace (an Nx workspace, `packages/api`), it chose pnpm, its default, and wrote a project the repository does not install. Without `--package-manager`, a new project now reads the nearest folder above it that declares a workspace (`workspaces` in its `package.json`, or a `pnpm-workspace.yaml`): the `packageManager` it pins, else its `pnpm-workspace.yaml` or lockfile, else npm. A note says where it was read. Outside a workspace, or in a workspace of a manager the kit does not write for (yarn, bun), the default is unchanged.
20
+
21
+ **`init` writes no `pnpm-workspace.yaml` in a package of a pnpm workspace.** pnpm takes the nearest `pnpm-workspace.yaml` as the root of a workspace, so the file `init` wrote in `packages/api` cut the project out of the workspace that lists it: an install from the package wrote a second lockfile and applied overrides the install from the root never read. When the nearest `pnpm-workspace.yaml` above lists the project in its `packages`, `init` now writes none, and a note says what the root file lacks of what the stack needs (`strictDepBuilds: false`, the `overrides`, the `allowBuilds` entries). `ddd-ts-kit sdk` asks the root file to list the clients, and `doctor` reads the overrides and the allowed build scripts there. A project under a workspace that does not list it keeps a file of its own.
22
+
23
+ To move: in a project that is a package of a pnpm workspace, copy `strictDepBuilds`, `overrides` and `allowBuilds` from its `pnpm-workspace.yaml` to the one of the workspace root, delete the file and the `pnpm-lock.yaml` beside it, then run `pnpm install` from the root.
24
+
25
+ **`init` says how a package of a workspace builds its image.** The `Dockerfile` that `init` writes copies the manifest and the lockfile of its folder, and a package of an npm or pnpm workspace has no lockfile: the root of the workspace holds it. `init` still writes the same file, and a note now says that the image builds from the root (`docker build -f packages/api/Dockerfile .`) and what to change in the file: the manifest and the lockfile of the root copied with the `package.json` of the package, the install and the build filtered on the package (`npm ci --workspace packages/api`, or `pnpm install --frozen-lockfile --filter ./packages/api...`), and the same folders kept in the last stage. A project under a workspace that does not list it installs alone and gets no note.
26
+
27
+ **A guide says how the kit and Superpowers share a session, from real ones, interactive included.** `docs/guides/with-other-tools.md` now has a section on Superpowers 7.0.2 loaded beside the plugin of the kit: a request that says what to build goes to the skills of the kit, while one phrased as an idea goes to `brainstorming` in most interactive sessions, which then conducts the whole feature and leaves the kit the code alone. It gives a section of `AGENTS.md`, tried in six sessions, that hands such a request back to `ddd-ts-kit:use-case`, and what clashed.
28
+
29
+ **A guide says how the kit works beside Spec Kit and BMAD, from a whole flow of each.** `docs/guides/with-other-tools.md` now has sections on Spec Kit 1.4.3 and BMAD Method 6.12.4 added to a project of the kit: what each step wrote and what it took from the kit, which documents end up twice (glossary, plan, spec of a story) and how to say which one counts, the line of `biome.json` that leaves `.specify/` to Spec Kit, and what clashed.
30
+
31
+ **The guard asks about a suppression in a source, a test or a script only.** A document that names `eslint-disable`, `@ts-ignore`, `it.skip` or `as any`, such as a decision record or the constitution of Spec Kit that forbids them, suppresses nothing: the guard no longer puts it to the project owner, which in `claude -p` refused the write. Adding one to a `.ts`, `.js` or `.mjs` file or to a `.vue`, `.svelte` or `.astro` component, is asked about as before.
32
+
33
+ **The skill `use-case` says where a refusal gets a status other than 422.** In the sessions of the guide with other tools, agents wanted 404 for a loan that does not exist or 409 for a state that forbids the action, searched the packages, and kept 422, one of them thinking the error mapper too shared to touch. The skill and `docs/concepts/presentation-layer.md` now name the entry of `src/platform/composition/platform-error-mapper.ts` that does it, one code at a time.
34
+
35
+ **The test DSL of `@ddd-ts-kit/testing` reads a refusal, a waiting scenario and a builder as the test wrote them.** Six defects, and four alignments in the same files (#879).
36
+
37
+ - `pending(...)` holds a scenario that waits with `until` or `settled`: both now fail with an `AssertionError`, where their plain `Error` made `pending` call the scenario broken.
38
+ - `expectRefusal` awaits a promise, the one an action returns or one given in its place (`await expectRefusal(bus.execute(command), code)`), and reads what it answers as it reads a synchronous answer. An asynchronous action that answered a refusing `Result` read as "nothing was refused", and a promise given directly was taken for the error, its rejection left unhandled.
39
+ - After `thenError`, `thenNoEvent`, `thenEvents` and `thenEventNames` read the events the action recorded before it threw, as `thenState` already read the aggregate: `.thenError('ORDER_ALREADY_PAID').thenNoEvent()` asserts a refusal that recorded nothing.
40
+ - A builder copies its plain data (object literals and lists) at each build, in the defaults and in what `with` was given: a nested object of the defaults was shared by every build, so changing a built value changed the next one. An instance of a class is handed as it is.
41
+ - `given(aggregate)` refuses a second `when` with a `TypeError`: it ran on the aggregate the first one had changed, where `given(builder)` and `scenario(() => aggregate)` start each `when` from a fresh one.
42
+ - A `Builder` subclass declares no `#private` field: a step copies the builder without running its constructor, so such a field is absent from the copy. The rule is now stated on the class and in the README; a field declared `private` or `readonly` follows the copy.
43
+ - An event or command matcher by properties is a subset inside a list too, read position by position (`{ lines: [{ sku: 'pen' }] }` matches a line that carries more), and names at least one property: `{}` is refused.
44
+ - `expectProblem` shows what was expected, what was received and the body of the answer when it fails.
45
+ - `givenProcess(...)` fails as a scenario does: a sentence, then the commands or timeouts expected and decided, and where they differ, positions from 1 (`command 1.invoiceId: expected 'invoice-2', decided 'invoice-1'`).
46
+
47
+ To move: a spec that compares by identity (`toBe`) a plain object it gave to a builder compares it by value (`toEqual`); a spec that runs two `when` on one `given(aggregate)` gives the builder, or `scenario(() => aggregate)`; an event or command matcher `{}` becomes the name or the class; a spec that asserts the text of a failure of `givenProcess`, or of `expectProblem`, reads the new one.
48
+
49
+ **The three `purity/*` rules of `ddd-ts-kit check` no longer refuse a port method named `fetch`, and see `globalThis.Date.now()`: they judge from the table of their ESLint twins.** `purity/no-system-clock`, `purity/no-ambient-randomness` and `purity/no-environment` had two analyzers with two lists of what is forbidden and two wordings (#883). `ddd-ts-kit check` and `@ddd-ts-kit/eslint-plugin` now read one table per rule (members, calls, constructions, modules, named imports, the names of the global object) with one description and one fix sentence, and a finding says the same thing in both: `process.env is used in the application layer.`
50
+
51
+ What the checker stops reporting: a method declared under the name of a global (`abstract fetch(id: string): Promise<string>` in a port, `fetch(id) { .. }` in its adapter), and a name the file declares itself, where it is in scope: a parameter (`console: Logger`), a variable, a destructured name, a function, a class.
52
+
53
+ What it starts reporting, as ESLint did: a global reached through `globalThis`, `window`, `self` or `global` (`globalThis.process.env`, `globalThis.fetch(url)`), `Date()` called as a function, `performance.timeOrigin`, a quoted member (`Date['now']`), an optional one (`process?.env`), `randomBytes`, `randomInt`, `getRandomValues`, `randomUUID` and `webcrypto` imported by name from `node:crypto`, `new (Date)()`, `{ ...process.env }`, and each forbidden key of a destructuring where it is written.
54
+
55
+ The ESLint plugin stays the authority where the two differ, and its rule pages list where: the checker follows no alias (`const clock = Date`, `import { randomUUID as id }`), and reads as a call a signature that has neither body, return type nor modifier.
56
+
57
+ To move: run `npx ddd-ts-kit check`. A new finding of a `purity/*` rule names an access to the clock, to randomness or to the environment that ESLint already refused: take it from the `Clock` port, the `IdGenerator` port or a port of the context. The messages of the three rules changed in the checker (`Date.now is used`, where it said `Date.now() is used`): a script that reads them reads the new ones, and a baseline keeps its counts by rule and file.
58
+
59
+ **The HTTP pipeline writes the answer itself, and every adapter only sends it.** `executeRoute` of
60
+ `@ddd-ts-kit/http` now answers a `payload` already decided, `{ kind: 'none' }`, `{ kind: 'text', text }`,
61
+ `{ kind: 'bytes', bytes }` or `{ kind: 'stream', stream }`, that Express, Fastify, Hono, Nest and the oRPC and
62
+ tRPC procedures write as it is; `body` stays the value answered, for a spec. What it fixes:
63
+
64
+ - A route that answers a list read as it comes, mounted without `representations`, answered `200 {}`: it now
65
+ answers the list as one JSON array, and a list nobody reads (an RPC call that refuses it, a `304`) is closed.
66
+ - A value JSON cannot write (a cycle) failed in the adapter, after the pipeline: `onError` was never told, and
67
+ Express answered its 500 under the caching headers of the success. It is now an error of the route like any
68
+ other, answered 500 as a problem under `no-store`. A big integer is written as its text in a plain answer, as
69
+ it already was in a streamed list.
70
+ - Express kept a `close` and an `error` listener on the response at every pause of a slow client reading a
71
+ streamed list (`MaxListenersExceededWarning`). The list goes through the pipeline of Node, as a file does.
72
+ - Express answered 400 `MALFORMED_BODY` for the valid JSON `null`, `12` or `"text"`, where Fastify and Hono answer
73
+ 422. `mountExpress` now reads the body of each route itself, up to `bodyLimit` (1 MiB by default, a new
74
+ option), whatever JSON value it is; the generated servers set `strict: false` on the parser they keep, on
75
+ Express and on Nest.
76
+ - `mountFastify` added the text parser of a media type a route consumes to the whole instance; it now adds it
77
+ in the context of its routes only.
78
+ - `problemErrorHandler` (Express, Fastify, Hono) and `ProblemExceptionFilter` (Nest) answered 500 for an
79
+ `UnauthorizedError`, a `ForbiddenError` or any `DomainError` a middleware raises in front of the routes. They
80
+ now answer the problem a route answers for it, and take the `errorMapper` of the application as an option,
81
+ which the generated servers give them.
82
+ - A code named after something every object inherits (`constructor`, `toString`) is no longer read as a status
83
+ by the error mapper.
84
+ - `text/json` and `application/json-seq` are no longer taken for JSON by Hono, by the filter of Nest and by the
85
+ RPC answer: JSON is `application/json` and every `+json` suffix, whatever the case and the parameters, as
86
+ the representations already read it.
87
+ - Two class-validator DTO classes of one name (an `AddressDto` in two bounded contexts) each get the JSON
88
+ Schema of their own fields in `@ddd-ts-kit/validation`: they were merged, and the contract required fields
89
+ the server did not. One class that nests two classes of one name is refused with a `DeclarationError` when
90
+ its schema is asked.
91
+
92
+ To move: an adapter of your own writes `response.payload` in place of `serializeBody(response)` and
93
+ `response.stream`, both removed; a spec that read the bytes of an answer (XML, CSV, a streamed list) through
94
+ them reads `await writtenText(response)` of `@ddd-ts-kit/http/testing`, and `response.body` is now the value
95
+ answered in every representation, absent for a list read as it comes.
96
+ To move: on Express, `app.use(express.json())` is no longer needed in front of `mountExpress`. If you keep it
97
+ (oRPC and tRPC read the body it parsed), give it `strict: false` so that `null`, a number or a text reach the
98
+ schema of the route, and on Nest over Express call `app.useBodyParser('json', { strict: false })` before the
99
+ application listens. Without a parser of yours, the limit of a body goes from 100 kB to 1 MiB: set `bodyLimit`
100
+ to keep the old one.
101
+ To move: give `problemErrorHandler({ logger, errorMapper })` and
102
+ `new ProblemExceptionFilter(adapter, { logger, errorMapper })` the error mapper your routes are mounted with, if
103
+ a middleware of yours raises errors of the domain whose code your mapper names.
104
+ To move: a class-validator DTO that nests two different classes of the same name: rename one of them. A
105
+ contract generated from two classes of one name changes: regenerate it (`npm run regenerate`).
106
+
107
+ **`ddd-ts-kit check` reads what it used to miss: a changed file whose name git quotes.** `check --changed-since <ref>` and `verify-slice --since <ref>` dropped the findings of a file with a non-ASCII character in its name (`café.vo.ts`), because git printed the path quoted: a gate on the changed files passed a file it should have refused. The three commands that ask git what changed (`check --changed-since`, `mutation --changed`, the files of a worker and of a story) now read it through one function, which takes each name as it is on disk and counts a renamed file under both its names. `mutation --changed <ref>` counts from where the branch left `<ref>`, as `check --changed-since` does, so the files the trunk changed meanwhile are no longer listed.
108
+
109
+ **The checker sees an import whatever stands between its keyword and its specifier.** Four forms let a domain file import infrastructure with `layer/domain-purity` clean: `import(/* a comment */ '...')`, a dynamic import broken over two lines under 20 spaces of indentation, a named list longer than 4000 characters, and a binding named by a string (`import { "a-b" as ab } from '...'`). A statement is now read forward from its `import`, `export` or `require` to its specifier, with no limit of distance. `ddd-ts-kit build`, which rewrites the aliases of the same statements, reads them the same way.
110
+
111
+ To move: run `ddd-ts-kit check`; an import it did not see is now judged by the layer and context rules.
112
+
113
+ **A division after `!`, `++`, `--` or `}` no longer hides the rest of its line from the checker.** `return total! / count; const now = Date.now(); const half = count / 2;` was clean for `purity/no-system-clock`: the slash was read as the start of a regular expression, up to the next slash. A slash now divides after a non-null assertion (`total!`, `rows[0]!`, `sum()!`), after a postfix `++` or `--`, and after a closing brace on the same line.
114
+
115
+ **A suppression names several rules, and one that silences nothing is reported.** A line that broke two rules could not keep a recorded deviation: two `// ddd-ts-kit-disable-next-line` comments one above the other covered the next line only, and `<rule-id>, <rule-id>` was read as one id. A directive now holds a list of ids after commas, and directives one above the other all cover the line of code after the last of them, in `ddd-ts-kit check` and in `@ddd-ts-kit/eslint-plugin` alike. A new rule, `config/unused-suppression` (an error), reports a directive that names an id no rule has, wherever the file is judged, and a directive of a rule that has nothing to report on the line it covers. The second is judged by a run of every rule on every file (`ddd-ts-kit check` without `--rule`; `check-file`, which the guard runs at a file write, never says it), for a rule that is on for the file and that the checker alone holds: for a rule ESLint judges too, the directive is left to stand, since ESLint may find what a reading of the text does not. `config/suppression-needs-reason` is now a rule like the others: a setting of `rules` for some files applies to it.
116
+
117
+ To move: run `ddd-ts-kit check`. Remove each directive `config/unused-suppression` reports, or correct the id it names; where a directive stood above a comment or a blank line and not above its line of code, move it down.
118
+
119
+ **`check --clean-only` and `check --baseline` refuse the options they would not honour.** `check --clean-only --changed-since nope src` exited 0: the mode read the directories as they are and ignored the ref, known or not. It is now refused, as is a `--rule` that needs a project (the mode used to run every rule in its place). `--baseline write` and `--baseline prune` refuse `--explain` and `--clean-only` as they refused `--rule`, a path and `--changed-since`.
120
+
121
+ To move: a script that passes `--changed-since` or a rule outside the `clean/*` ones the mode holds to `check --clean-only`, or `--explain` to `check --baseline`, drops the option.
122
+
123
+ **`--json` and `--format json` are one thing in `check`, `affected` and `measures`.** Beside another format, `--json` won in `check` and `affected` and lost in `measures`. The three now refuse `--json` with a `--format` other than `json`, and answer a format they do not print with the same sentence and the list of those they do.
124
+
125
+ To move: a script that passes both `--json` and `--format <other>` keeps the one it reads.
126
+
127
+ **The fake of a tenant-scoped aggregate is confined to its tenant, as the real repository is.** `InMemoryRepository` takes `{ confinedTo: scope }` as a second argument: a tenant finds, lists and counts what it saved only, a save under an id another tenant holds is refused with `ConcurrencyError`, an elevation widens reads and no write, and work that names no tenant is refused with `NoCurrentTenantError`. `generate repository` writes the fake of a tenant-scoped aggregate so, on the four ORM, with a scope that defaults to `oneTenantScope()` (new in `@ddd-ts-kit/testing`: the work of a member of `acme`), and the generated contract spec runs `tenantIsolationContract` on the fake and on the adapter, in place of the one case it held about the adapter. `tenantIsolationContract` takes `mutate` as an option, as `repositoryContract` does: without it the case of the update under a held id stays pending (#880).
128
+
129
+ To move: nothing is required, a fake already generated keeps working as a repository of no tenant. To confine the fake of a tenant-scoped aggregate, give its constructor `scope: ExecutionScope = oneTenantScope()`, pass `{ confinedTo: scope }` after the snapshots, and add `tenantIsolationContract(runner, { ...expectations, name: 'Fake<Aggregate>Repository', elevatedReads: true, createRepository: (scope) => new Fake<Aggregate>Repository(scope) })` to its contract spec; or run `generate repository <context> <Aggregate> --force` on committed files. A spec about a leak between tenants hands the fake the `executionScope` of its harness.
130
+
131
+ **The in-memory cache and event bus keep and hand values as the real ones do, as JSON carries them.** `InMemoryCache` keeps a copy at each write and hands a copy at each read; `InMemoryEventBus` delivers to the handlers of a type one copy of the event, and logs another in `published`. In both, a `Date` is its text, a class instance a plain object, and a value JSON cannot carry (a bigint, a cycle) is refused with a `TypeError`, at the write or at the publication. `cacheContract` gains two cases (a copy of its own, a value given back as JSON carries it) and `eventBusContract` one (an event received as JSON carries it, never the object that was published); the Redis cache with its default codec and the RabbitMQ, Kafka, NATS and Redis Streams buses serialise the same way (#880).
132
+
133
+ To move: a spec that read a `Date` or a class instance back from `InMemoryCache`, from a handler subscribed to `InMemoryEventBus` or from `published` / `publishedEvents()` now reads its JSON form, and one that compared a published event by identity (`toBe`, `toContain`) compares it by value (`toEqual`, `toContainEqual`): what it read before is what a broker or Redis never gave. A handler or a reader that needs an instant parses the text (`new Date(payload.at)`). A project that runs `cacheContract` on a `RedisCache` built with a `codec` that is not JSON leaves the contract to the default codec.
134
+
135
+ **The sequences and the data generator start again before each test, from a setup entry the generated runner configs list.** `@ddd-ts-kit/testing/setup/vitest` and `@ddd-ts-kit/testing/setup/jest` call the new `restartTestData()` before each test: every `sequence(...)` starts again at 1 and, where `@ddd-ts-kit/testing/faker` is in use, the data generator at its seed, so an id or a generated value no longer depends on the order of the tests of a file, nor on the files a worker ran before. `init` lists the entry in the unit, end-to-end and mutation configs of Vitest (`setupFiles`) and of Jest (`setupFilesAfterEnv`). `vitest` becomes an optional peer of `@ddd-ts-kit/testing`, imported from the Vitest entry only (#880).
136
+
137
+ To move: add `setupFiles: ['@ddd-ts-kit/testing/setup/vitest']` under `test` of `vitest.config.ts`, `vitest.e2e.config.ts` and `vitest.mutation.config.ts`, or `setupFilesAfterEnv: ['@ddd-ts-kit/testing/setup/jest']` to `jest.config.js`, `jest.e2e.config.js` and `jest.mutation.config.js`. A spec that expected an id drawn after those of an earlier test (`invoice-3` in the third test of a file) now reads the first of its own test (`invoice-1`); a `beforeEach(() => resetSequences())` of a spec can go.
138
+
139
+ **A contract case that fails says what the adapter did.** `ContractSuite` gains `holds(condition, otherwise)`, and the assertions of the contract suites that compared a boolean with `true` or `false`, more than a hundred, are written with it: an adapter that fails one reads `the key is still refused after its holder released it`, `the heartbeat of a cancelled job was accepted`, `a write of work that names no tenant was not refused with NoCurrentTenantError: got ...`, where it read `expected false to be true`. The cases, their names and what they ask of an adapter are unchanged (#880).
140
+
141
+ **Breaking: a unit of work run inside the one of another database dispatches its domain events before its own commit, and is built on `unitOfWorkOver`, which replaces `withinUnitOfWork`.** With two databases (a context on its own database, a second client), the inner unit of work opened and committed its own transaction while the events of what it saved waited for the end of the outer one: their `before-commit` handlers, the outbox append first, ran after that commit, outside any transaction of that database, and a failure there lost the event. Whether a `run` joins a transaction or opens one was decided twice, by the kernel on "a unit of work runs on this call chain" and by the adapter on "my transaction is open". It is now decided once: `unitOfWorkOver(transaction)` of `@ddd-ts-kit/kernel` answers a unit of work that keeps its own scope, calls `transaction` only to open one, and lets a nested `run` join the transaction and the scope of that unit of work, also when the `run` is made through the unit of work of another database. A new transaction is a new scope: its events are dispatched before its own commit, its `after-commit` handlers run after it. The units of work of `@ddd-ts-kit/knex` (the tenant-routed one included), `@ddd-ts-kit/drizzle`, `@ddd-ts-kit/prisma` and `@ddd-ts-kit/typeorm` and `InMemoryUnitOfWork` are built on it, and `unitOfWorkContract` of `@ddd-ts-kit/testing` proves it with two cases. `unitOfWorkMiddleware` no longer opens a scope of its own around the unit of work it is given: it calls `run`, and refuses before the handler a unit of work that opened no scope for the domain events (`UnscopedUnitOfWorkError`), where the events would leave at each save and the `after-commit` handlers run before the commit.
142
+
143
+ To move: in a `UnitOfWork` of your own, replace `withinUnitOfWork(work, (scoped) => ...)` by a unit of work built once, `private readonly unitOfWork = unitOfWorkOver((work) => this.database.transaction((transaction) => this.current.run(transaction, work)))`, and `run(work) { return this.unitOfWork.run(work); }`; drop the test that joined the open transaction, `transaction` is no longer called for a nested `run`. A unit of work written without the kernel and given to `unitOfWorkMiddleware`, to `kernelModule({ unitOfWork })` or as a fake in a test (`{ run: (work) => work() }`) is now refused with `UnscopedUnitOfWorkError`: build it the same way, or give `new InMemoryUnitOfWork()`.
144
+
145
+ **Breaking: a unit of work no longer commits once a nested `run` failed, also when the work caught the failure.** "A nested `run` joins the outer transaction: it commits or rolls back as a whole" held only while the failure travelled up. A handler that wrote `await unitOfWork.run(step).catch(fallback)`, or that caught the failure of a command it sent through the bus, kept what the step had written before it failed, and the domain events its saves had queued were dispatched. A `run` that joined and rejects now marks the unit of work, on the four ORM and in memory alike: the outermost `run` rejects with a `UnitOfWorkAbortedError` (`@ddd-ts-kit/kernel`) whose `cause` is the first such failure, before any event is dispatched, and the transaction rolls back. A failure that travels up rejects the outermost `run` as itself, as before. A unit of work of another database that failed and rolled back on its own aborts nothing. A retry (`retry` of `@ddd-ts-kit/aspects`, a loop) around a nested `run` or around a command sent from inside a unit of work no longer saves it: the second try may succeed, the unit of work still rolls back.
146
+
147
+ To move: where a handler catches the failure of a nested `unitOfWork.run` or of a command it sends, and goes on: check the condition before the write in place of catching after it, or let the failure through and catch it around the outermost `run` (the caller of the command), or move the step that may fail out of the unit of work (an `after-commit` handler that sends a command, an integration event). A retry belongs around the outermost `run`.
148
+
149
+ **`S3FileStorage.put` rejects with the failure of the service whatever the size of the content.** Above one part (8 MiB by default), a failure of the service (the network, a refused access, a missing bucket) was reported as `The operation was aborted`: the SDK destroys the stream that feeds a failed upload, and `put` preferred the failure of that stream. It now rejects with the failure of the upload, as it did for a content of one part; a content refused on its way (`FILE_TOO_LARGE`) still answers its refusal, and a source that fails still says why.
150
+
151
+ To move: nothing.
152
+
153
+ **Breaking: the read model of `@ddd-ts-kit/knex` is refused by name on a database that is not PostgreSQL.** It read as portable, beside an outbox and a processed-event store that do run on SQLite and MySQL, and it never was: on SQLite a `KnexReadModelStore` threw the raw `no such function: to_regclass` of the driver at its first write, and its rows alone answered `'stale'` to a later event (the stamp read back as a number) and read the trace of a deleted row as a live row. A `KnexReadModelStore` or a `KnexReadModelTable` built on a knex instance of another dialect now throws `The read model of @ddd-ts-kit/knex runs on PostgreSQL, and this knex speaks sqlite` when it is built; under database per tenant, where the database is known only inside a unit of work, at its first statement. The comments and the README no longer say "on every dialect".
154
+
155
+ To move: nothing on PostgreSQL. A test that builds a `KnexReadModelStore` on SQLite runs it on PGlite or on PostgreSQL, as the suites of the kit do, or gives the port its in-memory fake.
156
+
157
+ **Every `JobStore` answers a job already kept under the same id as a duplicate, and `jobStoreContract` holds them to it.** A second `add` of an id already kept raised the unique violation of the driver on `@ddd-ts-kit/knex` and `@ddd-ts-kit/drizzle`, which on PostgreSQL also ended the transaction of the command, answered `{ id, duplicate: false }` on `@ddd-ts-kit/typeorm`, `@ddd-ts-kit/prisma` and `@ddd-ts-kit/redis` although nothing was written, and replaced the first job in `InMemoryJobStore`. The six now add nothing, leave the first job as it was added and answer `{ id, duplicate: true }`, as they do for an idempotency key already kept; nothing is raised. `RedisJobStore.add` reads the id in Redis before it stages its write, as it read the idempotency key: inside a unit of work, with a server that is away, `add` now rejects in the command where a job without a key was reported lost after the commit (`onLostJob`).
158
+
159
+ To move: nothing for a project that enqueues through `JobQueue`, whose ids are generated. A `JobStore` of your own passes the new case of `jobStoreContract`: answer `{ id, duplicate: true }` for an id already kept, without writing.
160
+
161
+ **`TenantDatabases` leaves no rejection unhandled when an idle pool cannot be closed, and `S3FileStorage` no longer reads a missing bucket as an absent file.** Under database per tenant, an idle knex instance closed to make room for another tenant whose `destroy` rejected (a server that hung up) left a rejection nobody handled, which ends a Node.js process by default. The place is given to the next tenant all the same, and the new option `onCloseFailure(error, tenantId)` of `TenantDatabases` is told; without it the failure is dropped. `get` of `S3FileStorage` answered `undefined`, and `copy` and `move` `FILE_NOT_FOUND`, for any 404 of the service, `NoSuchBucket` included: a bucket that does not exist, a deployment to fix, read as "the file is absent". Only `NoSuchKey` and the `NotFound` of a head now do; any other answer is raised as it is. `stat` cannot tell: the service answers a head on a missing bucket as it answers a missing key.
162
+
163
+ To move: nothing.
164
+
165
+ **Every raw given to a where of a tenant table stays one conjunct.** On a statement of `tenantTable`, `ownTenantTable` or `whereTenant` of `@ddd-ts-kit/knex`, a `knex.raw` given to `where`, `andWhere`, `whereRaw` or `whereNot` was written in parentheses; the builder now does the same for a raw given to any other where (`whereIn`, `whereNotIn`, `whereBetween`, `whereNull`, `whereNotNull`, `whereLike`, `whereILike`, `whereColumn`, the JSON ones) as its column, a value or a bound. The subquery of a `whereIn` or of a `whereExists`, which knex writes in parentheses itself, is left as given.
166
+
167
+ To move: nothing.
168
+
169
+ **The generators edit a source file where they read its code, or refuse.** A generator that adds to a file a team has edited now finds the place in the code of the file, never in a comment or a string that looks like it, and stops with what to write by hand when it cannot tell the place.
170
+
171
+ - `generate ... --grant <role>`: the grant is written in the list of the role named, or refused when that list cannot be read. A role whose grants are a named constant (`[Role.Admin]: EVERYTHING`) is refused with the grant to write by hand; a role keyed by its value (`admin: [...]`) is found; an object of roles written on one line is refused.
172
+ - An import a generator adds follows the last import of the file whatever its style: without semicolons, with double quotes, on several lines, with a comment after it. It was written inside the first function of a file formatted without semicolons. A file that already binds the name, however its statement is written, is left as it is.
173
+ - `generate error` adds a factory in the body of the error class, after its type parameters and what it extends: a class written `extends Refusal<{ invoiceId: string }>` had the factory written inside that type. A factory that returns an object type is followed after its block.
174
+ - The `imports` region of a wiring file is merged statement by statement. An import written on several lines with a comment after a name is kept as it is written, and a new name of its module is imported beside it: the statement was folded into one line whose comment swallowed the names after it. An import written with double quotes or without a semicolon takes the new name in its own style, where the name was imported a second time.
175
+ - The Prisma main schema is edited inside its `datasource` and its `generator client` blocks: a comment that shows a list is left alone, `schemas = []` becomes `schemas = ["billing"]`, a list on several lines keeps its commas, and the preview features go to the generator of the client when another generator has the same body. A datasource that lists no `schemas` is refused with the line to write, where the schema of the context was silently left out.
176
+ - A concept named after a reserved word of the language (`Return`, `Case`, `Default`, `Package`, `Class`, `Import`...) or after a global the generated code uses (`Date`, `Error`, `Record`, `Map`, `Set`, `Promise`...) is refused at once, with the reason, whatever the flags: `generate command --aggregate Return --creates` wrote `const return = Return.create(...)`, and an aggregate `Date` a class that hid the `Date` of its own factory.
177
+ - A name is read the same whatever the separators it was typed with: `"credit 2 note"`, `credit-2-note` and `Credit2Note` all write `credit2-note.aggregate.ts`, the file every later command looks for. `generate aggregate billing "credit 2 note"` wrote `credit-2-note.aggregate.ts`, which `generate repository billing Credit2Note` did not find.
178
+ - The dialect of the package manager is spoken by what the kit renders, never over a file. A generator that added one glossary row to a `CONTEXT.md` rewrote every sentence of the page that named `npm` (`npm install` became `pnpm install`, `package-lock.json` became `pnpm-lock.yaml`), and the comments and strings of any source it updated: the text of the team now stays as the team wrote it, and what the kit writes is in the dialect as before.
179
+ - What a command writes lands whole or not at all: every file is written beside its place first, and the files are moved into place only once all of them are written. A write that failed on the second of three files (a full disk) left the first one in the project, and the next run reported it as skipped: it now leaves the project as it stood, with no temporary file and no folder made for one.
180
+ - Every command that reads the shared files of a project and writes them back holds the lock of the project: `docs` (which the pre-commit hook runs), `sdk`, `move-to-module`, `context-layout`, `platform-folders`, `controllers`, `value-objects`, `error-factories`, `acceptance --lock` and `depcruise-config --write` now take it as `init`, `generate` and `drizzle-generate` did, unless they only say what they would write (`--dry-run`, `--check`). The refusal of a command that waited names them all: `Another command holds the lock of this project`. Two commands taking over one lock left behind no longer both hold it: the lock is moved aside first and judged after, and one taken meanwhile is given back.
181
+ - A free text may hold `{{...}}`: `generate adr "Render pages with {{mustache}} tags"` and a `--purpose` with braces were refused as a broken template. A placeholder left unread is still refused, in the text of the template only.
182
+ - The plural and the singular of a word undo each other: `statuses` gives back `status` (it gave `statuse`), `buses` `bus`, `quizzes` `quiz`, `analyses` `analysis`, and `series` or `news` no longer lose a letter (`sery`, `new`). A search named after a word that is the same in both numbers binds one of its lines as `oneNews`.
183
+
184
+ To move: a concept generated from a name typed with a separator before a digit (`"credit 2 note"`) has files named `credit-2-note.*` and a table `credit_2_notes`: rename the files `credit2-note.*`, the name every command now reads; the table keeps the name its files give it.
185
+ To move: a concept already named `Return`, `Date` or another refused name keeps its files, and no generator accepts the name any more: rename it in two words (`ReturnOrder`, `DueDate`) before generating beside it.
186
+ To move: a script that reads the refusal of a held lock reads `Another command holds the lock of this project` where it read `Another generator`; a hook or a script that runs `docs`, `sdk` or `depcruise-config --write` while a generator runs now waits for it, five seconds at most.
187
+ To move: a Prisma datasource that lists no `schemas` is given its list by hand before `generate repository` adds the schema of a context to it.
188
+
189
+ **A rule of `ddd-ts-kit check` says everything about itself in its own file.** Its default severity, the explanation `ddd-ts-kit explain` shows and whether `check --clean-only` runs it were three tables keyed by the rule id, beside the rule; they are fields of the rule, required by the compiler, and the tables are gone. A rule that reads one source at a time now receives that source and answers what it finds, and the checker walks the sources: such a rule can ask for the config, the place of a file and a source it imports, never for the other sources, so `ddd-ts-kit check-file` and `ddd-ts-kit check` cannot disagree on it unseen. No rule id, message, severity or output changes, with one exception: when a file of a published language declares the same version of an integration event twice and another file declared it first, `events/defined-in-published-language` reports the second declaration against its own file, where it named the other one.
190
+
191
+ For who writes a rule of the kit: `CONTRIBUTING.md` says what a rule file holds (#905).
192
+
193
+ **What `generate` leaves to decide refuses until it is written, and its spec says so.** A generated stub answered a success that did nothing: the handler of a command that changes an aggregate answered 204, the reader of a query 200 `{}` for any identifier, an event handler, an integration handler and a projection let their fact through, the translator of `generate acl` answered an empty record, and each generated spec held a green test of it ("completes without answering anything", "sends no command until the policy is written"). Each now throws `undecided('what "confirm order" does')`, a helper of `@ddd-ts-kit/kernel` that names what is left to decide (`UndecidedError`, code `NOT_IMPLEMENTED`): a route answers it 501 with nothing of its message (`NOT_IMPLEMENTED: 501` joins the default error mapping of `@ddd-ts-kit/http`), a command that records a fact whose reaction is not written fails, a delivery to a handler or a projection that is not written fails. The spec holds one running test that says so, to replace by the first real test, beside the `it.todo` of the behaviour, so `test:coverage` stays green right after each generator. The fake of a query reader implements the port alone, where it extended the adapter of the infrastructure, and a plain query gets the spec of its reader. `generate e2e` writes a spec that is green as generated too: when the use case it drives through a route, or the handler of the event that starts it, still refuses, the scenarios that reach it are held by `pending(...)` of `@ddd-ts-kit/testing/e2e`, which passes while their assertion fails and fails them once the code is written, and a note names the file that refuses. The spec of a use case a job starts is written as before and fails until the use case is written, which the note says.
194
+
195
+ **A generated policy refuses everybody until its rule is written.** The stub was `allows(actor) { return isAuthenticated(actor); }`, under a spec titled "refuses a caller nobody identified" that asserted `true`. It answers `false`, and its spec holds that test and the `it.todo` of the rule; the case that restated the permission and the name of the declaration is gone. The use cases of its permission that are still as generated are written again to ask it about an element, never about their command or their query: the birth of an aggregate asks about the aggregate it builds, a query about what it read, and a handler that still refuses holds a `TODO(domain)` where it will ask, once the element is loaded. In a declared project the spec of such a birth or query says that the policy refuses its holder, beside the `it.todo` of the actor it lets through.
196
+
197
+ **`generate gateway` binds the upstream contract to a refusal that `ddd-ts-kit todo` lists.** The contract was bound to `{}` in the platform module and in the platform of the handler specs, with no marker: the first call failed with a `TypeError`. It is bound to a factory that throws `undecided(...)`, under a `TODO(platform)` that says what to bind there. The in-process adapter takes the contract as `private readonly`.
198
+
199
+ **Smaller fixes of `generate`.** `generate projection` receives the read model of the same name when `generate read-model` wrote it already: the port in the constructor and the fake in the spec in a declared project, the name of the port in the `TODO` of the other styles. `generate property` notes the install to run when it adds `fast-check` to `package.json`. A command that adds a table to the file of the tables of a context reports that file once, as updated, where it was also listed as skipped. `generate vocabulary` notes that the dead code check names its file until something reads it. A process manager is named after its concept in the generated code (`orderFulfilment`), where `process` shadowed the global of Node. The refusal of `generate e2e --event` names the contexts that receive the event and never proposes that a context consume the event it publishes; `generate acl` says to change the relationship of an upstream that is declared already. A statement on several lines that a generator adds first in a marked region is set apart from the statement above the region, as the lint of a generated project asks.
200
+
201
+ To move: nothing is required, a project keeps the files it has. A use case generated before and not written yet still answers a success: to make it refuse, end the body of its `execute` (or of `handle`, of the `read` of a generated `InMemory<Query>Reader`, of the `@On` method of a projection) with `throw undecided('what "<use case>" does');`, imported from `@ddd-ts-kit/kernel`, and replace the generated test that asserts the empty success by `await expect(...).rejects.toMatchObject({ code: NOT_IMPLEMENTED });`. A policy still as generated (`return isAuthenticated(actor);`) lets every authenticated holder of the permission through: write its rule, or `return false;` until then. A gateway contract still bound by `builder.bind(<Name>Contract).toValue({});` in `src/platform/composition/platform.module.ts` fails at its first call: bind the implementation of the upstream there. A spec that compares `DEFAULT_ERROR_MAPPING` whole gains the entry `NOT_IMPLEMENTED: 501`.
202
+
203
+ **An `onFailure` hook that throws no longer breaks the outbox relay.** `OutboxRelay` drops what its `onFailure` hook throws: a tick goes on with the other records of its batch, where it stopped after the first failed publication, and a started relay no longer leaves an unhandled rejection at each tick, which ended the process under the default policy of Node. `@ddd-ts-kit/kernel` gains `safely(observe)`, which runs a hook, a logger or a meter and keeps its failure to itself; the hooks of the four brokers, the recorders of the scheduler and of the job queue, and the aspects are written with it, with no change of behaviour (#902).
204
+
205
+ **A record held for order is postponed, not failed: `outbox_failed` counts failures only.** Under `ordering: 'per-key'`, the relay stored a record that waits behind a failed one of its key through `markFailed`, with the code `OUTBOX_HELD_FOR_ORDER`: `stats().failed` and the gauge `outbox_failed` counted it, so one failed publication on a key of three records read as three failures. The `OutboxStore` port gains `postpone(id, until)`, which puts a claimed record back until `until` untried: the claim is not counted as an attempt, the code of its last failure stays, and a record that is published, dead or was never claimed is left alone. The relay holds a record back with it, and no longer keeps in memory how many claims each record spent waiting. The in-memory store and the stores of Knex, Drizzle, Prisma and TypeORM implement it, and `outboxStoreContract` of `@ddd-ts-kit/testing` gains three cases that prove it, and one more assertion: a claimed record carries the end of its lease as `nextAttemptAt` (#902).
206
+
207
+ To move: an `OutboxStore` of your own implements `postpone(id, until)`: on a pending record with at least one attempt, one attempt less and `nextAttemptAt` set to `until`; `outboxStoreContract` says the rest. `HELD_FOR_ORDER` is no longer exported by `@ddd-ts-kit/events`, and no record carries `OUTBOX_HELD_FOR_ORDER` as its `lastErrorCode` any more: drop the filter of an alert or of a query that left it out. A fake outbox handed to `unitOfWorkContract` or `eventStoreUnitOfWorkContract` returns `nextAttemptAt` with each record of `claimBatch`. A Prisma client fits the delegate of `PrismaOutboxStore` as before.
208
+
209
+ **A tick of the outbox relay fails with its first error.** When the store failed in the middle of a batch, `OutboxRelay.tick()` marked what had gone out in a `finally`: a store that could not mark it either replaced the error of the tick with its own, and the first failure was never seen. The tick now rejects with its first error, and the publications it could not mark are told to `onFailure` as `{ kind: 'tick', code }` (#902).
210
+
211
+ **An outbox relay started again before its `stop()` resolved keeps one loop.** `OutboxRelay.start()` called while the last tick of a `stop()` that was not awaited is still in progress (a hot reload, a hand-over of leadership) started a second loop beside the first, for ever: two ticks ran at once and the store was claimed twice per interval. It now waits for that tick and runs its first tick after it, so ticks never overlap (#902).
212
+
213
+ **A circuit only listens to the calls its current state let in.** A slow call let in while the circuit was closed, and that answered once it was half-open, closed it while the trial call was still running: traffic went back to a dependency that was still down. The same call failing late opened the circuit again and started `resetAfterMs` over, and a failure of a call let in before the circuit opened counted in the circuit closed since. The outcome of a call now goes to the state that let the call in, and decides nothing once the circuit left that state: only a trial call closes or reopens a half-open circuit. The options, `CircuitOpenError` and the transitions `onStateChange` reports do not change (#903).
214
+
215
+ **An aspect answers a wrapper and leaves the instance it is given alone.** `aspect(instance)` answered the instance itself with its methods replaced: two aspects put around one instance were one object carrying both advices, and whoever had kept the instance was advised too. An aspect now answers a wrapper of the same class, a proxy in front of the instance, as it already did for a frozen one: `instanceof` and `private` members keep working, a method runs with the wrapper as `this`, a field read or assigned through the wrapper is the field of the instance, and nothing is added to the instance. An aspect that advises no method still answers the instance itself, and a method decorator of `@ddd-ts-kit/aspects/decorators` still wraps the method of the instances of its own class. The bindings of a container, `aspects(...)`, `ownPolicy` and `defaultPolicy` of a generated project already keep what an aspect answers and need nothing (#903).
216
+
217
+ To move: keep what the aspect answers (`const rates = policy(new HttpRates())`) where the code applied an aspect and went on with the instance it had. A class wrapped by an aspect that keeps its state in hard-private members (`#name`) throws a `TypeError` at its first call, since such a member is not reached through a proxy: write `private name`, which `clean/no-hash-private` of `@ddd-ts-kit/eslint-plugin` does.
218
+
219
+ **`cached` keeps the entries of each port of each context apart, and counts a cache that fails.** The key of an entry was the class name, the method and the key of the call: two adapters of one class name in two contexts, or two instances of one class bound under two ports, read each other's entries. The key now holds the context and the port the instance is bound to (its class name when it has no port), then the method and the key of the call. An object that has neither a port nor a class name, an object literal for one, is refused when it is wrapped, with an `AspectNotAllowedError` that names the method: pass `{ token }` or `{ className }` as the second argument of the aspect. A read or a write the cache fails is still a miss, and is now counted as `cache_errors_total`, labelled `operation`, `context`, `class` and `method`, on the new `metrics` option or on the metrics of the aspect runtime (#903).
220
+
221
+ To move: nothing for an instance wrapped without context and without port, whose key does not change. The entries of an instance bound through `aspects(...)` of the composition root are read under their new key: the old ones expire with their `ttlMs`.
222
+
223
+ **A value object compares and freezes all it holds, and its props hold values only.** `ValueObject.equals` answered true for values that differ: two different `Map`, `Set`, `RegExp` or `URL`, a `Date` and an empty record, a list and a record of its indexes, and a value object holding a value object of another class with the same props. It now asks a nested value object its own `equals`, so the class counts at every depth, tells a date, a list and a plain record apart, reads `0` and `-0` as one number, and throws a `TypeError` for a value it cannot compare instead of finding two of them equal. A value object keeps a copy of its props, frozen in depth, with its dates copied: the list, the record or the date it was built from, and what `toJSON()` hands out, no longer change it; props that hold themselves are refused. The props are a `ValueObjectProps`: each one a primitive, a `Date`, a value object, or a list or a plain record of those (`PropValue`); a `Map`, a `Set`, a function, an entity or `unknown` does not compile. `StoredFile` is a `type`, so that a value object holds it. A `Date` cannot be frozen: a getter that hands one out still hands the date the value object keeps.
224
+
225
+ To move: a value object whose props hold a `Map`, a `Set`, a function, an entity, `unknown` or an instance of another class holds its content as plain data instead (a list of pairs for a `Map`, a list for a `Set`, the text for a `URL` or a `RegExp`). A record nested in the props is declared as a `type`, not an `interface`, as the props themselves already were. Code that changed a list or a record of the props in place (`this.props.lines.push(..)`) builds a new value object.
226
+
227
+ **The building blocks of `@ddd-ts-kit/kernel` behave as they say.**
228
+
229
+ - `FixedClock.now()` answers a date of its own at each call: changing the date it answered, or the one it was built with, no longer moves the clock. The anonymous session and a system session answer a date of their own as `issuedAt`.
230
+ - A `StateMachine` keeps a frozen copy of its declaration: a declaration changed after `defineStateMachine` is not followed, and `describe()` hands lists that cannot be changed. `next` and `can` throw `InvalidStateMachineError` for a name that is not a transition of the machine, where the runtime threw a `TypeError`.
231
+ - `InMemoryEventStore.append` stores its whole batch or nothing.
232
+ - `InMemoryCommandBus.execute` and `InMemoryQueryBus.execute` reject whenever a handler fails and never throw, with or without a middleware.
233
+ - `KitCodes` names `ForbiddenTransition` (`FORBIDDEN_TRANSITION`, the default refusal of a state machine) and `InvalidFileUrlExpiry` (`INVALID_FILE_URL_EXPIRY`), and `errors/known-code` knows both.
234
+ - `idempotent` rejects with an `AggregateError` of both failures, the one of the handler first, when the handler failed and its mark could not be released; the caller saw the failure of `release` alone.
235
+ - `unwrap` of an `Err` that holds no `Error` throws with what it held as the `cause`.
236
+ - `InMemoryProcessStore` keeps apart two instances whose name and id join to one text (`billing:dunning` with `invoice-1`, `billing` with `dunning:invoice-1`).
237
+ - `Object.keys` of a refusal lists its `code` alone: its `name`, its `facts` and the names it exposes are out of enumeration, so a spread or a structured logger no longer writes them. `error.name`, `error.facts` and `toJSON()` are unchanged.
238
+ - `withActor(context, actor)` answers a context without the elevation of the context it was given: like the session, the elevation goes with the actor it was opened for.
239
+
240
+ **`InMemoryEventBus` rethrows the failure of a single handler as it is, and its `failures` option is removed.** `publish` runs every handler, then rejects with the failure of the one handler that failed, so its class and its `code` reach the caller: a `ConcurrencyError` is answered 409, where the `AggregateError` that wrapped it by default was answered 500. Several failures still come together in an `AggregateError`. The type `EventBusFailures` and the option `eventBusFailures` of `kernelModule`, `createTestApplication` and `createTestBuses` are removed, and `init` no longer writes them.
241
+
242
+ To move: replace `new InMemoryEventBus({ failures: 'as-thrown' })` by `new InMemoryEventBus()` (`src/platform/events/in-process-events.ts` of a generated project), and remove `eventBusFailures: 'as-thrown'` from the worlds (`test/worlds/*.world.ts`) and from any `kernelModule`, `createTestApplication` or `createTestBuses`. A test that expected an `AggregateError` from `publish` for one failed handler expects the failure itself.
243
+
244
+ **`stampUpdate` takes the scope and the clock only; the form that took the stored stamp is `restamped`.**
245
+
246
+ To move: replace `stampUpdate(stamp, scope, clock)` by `restamped(stamp, scope, clock)`. `stampUpdate(scope, clock)` is unchanged.
247
+
248
+ **The tenant of a request is checked the same way for every access model, and `init` turns it on in a project with tenants.** `@ddd-ts-kit/auth` has a `TenantBoundAuthorizer` that goes around any authorizer, roles, attribute policies, relationships, OpenFGA or one of the project, and around a `SignedInGrantsAuthorizer` placed in front of it: what the model allows is refused with `TENANT_MISMATCH` when the request targets a tenant the actor does not belong to, something that is not a tenant id, or another tenant than the one the work runs in, and what the model lists is kept to one tenant (`all` becomes `filter { tenantId }`, or stays as it is under `rowsConfinedBy: 'stores'` where the repositories confine every statement to the tenant of the work). `RoleBasedAuthorizer` decides on roles alone: its options `tenantOf` and `crossTenantRoles` are gone, and it refuses them at construction (`AuthorizationSetupError`), so that a project that still passes them starts with an error rather than without the rule. `init --tenancy shared-table` writes the bound authorizer around `createAuthorizer()` for the four values of `--authz`, and gives the guard of `--di manual` the execution scope, so the tenant of the work reaches the authorizer there too. `authorizerContract` of `@ddd-ts-kit/auth/testing` has two more cases, which every authorizer runs: bound to tenants, what it allows is refused in the tenant of somebody else, and it never lists everything. See the section Tenants of `packages/auth/README.md`.
249
+
250
+ The tenant of a context is refused when it is not a text: `tenantOfContext` hands `context.tenantId` as it came, and a number, a list, an object, `null` or an empty text is no tenant id. Absent, the request targets no tenant, as before.
251
+
252
+ `passportPrincipal` refuses, with an error that names the mapper, a user the strategy authenticated and for whom `actorOf` answers something that is not an actor (no `attributes`, no `roles`, nothing at all): the request fails instead of going on as nobody.
253
+
254
+ `PolicyAccess` refuses with `AuthorizationSetupError` a policy whose `allows` answers neither a boolean nor a decision, a promise included: `allows` is synchronous, and the error names the policy instead of reading as a refusal of the actor.
255
+
256
+ The Passport bridge refuses an empty credential with `InvalidCredentialError`, as `JwtAuthenticator` does: `passportAuthenticator` before the strategy runs (`MALFORMED_TOKEN`), and `passportPrincipal` when the strategy fails a request whose `Authorization` header is there and empty. A credential that was presented and is not acceptable is refused, only an absent one is anonymous.
257
+
258
+ To move: replace `new RoleBasedAuthorizer({ roles, tenantOf: tenantOfContext, crossTenantRoles })` by `new TenantBoundAuthorizer({ model: new RoleBasedAuthorizer({ roles }), crossTenantRoles })`; `tenantOf` moves with it and defaults to `tenantOfContext`. A role of `crossTenantRoles` is now read from the roles of the actor as its credential states them: take the `systemRole` out of that list, a system actor acts in the tenant of its work. When a `SignedInGrantsAuthorizer` wraps the model, the bound authorizer goes around it.
259
+
260
+ To move: in a project of `init --tenancy shared-table`, wrap the authorizer where it is bound, `authorizer: new TenantBoundAuthorizer({ model: createAuthorizer(), rowsConfinedBy: 'stores' })` in `src/platform/auth/authorization/authorization.ts` (in `src/platform/composition/create-platform.ts` under `--di manual`, where `UseCaseProtection` and `PolicyAccess` also take `scope`), or run `ddd-ts-kit init --force` and keep these two files.
261
+
262
+ To move: a custom `tenantOf` is typed `(request) => unknown`; nothing to change in one that answers a text or `undefined`.
263
+
264
+ To move: make an `allows` declared `async` synchronous, and load what it awaited in the handler, before it asks `Access`.
265
+
266
+ To move: an `actorOf` given to `passportPrincipal` answers a whole actor (`id`, `type`, `roles`, `attributes`) for every user the strategy lets through.
267
+
268
+ To move: a client that sent an empty `Authorization` header, or an empty credential, to call as nobody leaves it out.
269
+
270
+ **The guard of the plugin is an entry file and the modules beside it, eighteen of them new, with no change of behaviour.** `plugin/hooks/guard.mjs` keeps the modes of the hooks and the order in which the rules are asked; what it called moved as it was to modules beside it, each opening with what it holds (the hook input, the project, the scope of a worker, the rules on a written file, on a shell command, on git and on a story, the changes held outside a scope, the session briefing), and the state of one call is one object. No rule, no message and no decision changes, and the plugin ships as the files of `plugin/hooks`, as before. A project has nothing to do.
271
+
272
+ **A generated project is formatted by Biome 2.6.8.** `init` pins `@biomejs/biome` 2.6.8, the version the kit and the example run, and the `$schema` of the `biome.json` it writes names it.
273
+
274
+ To move: nothing is required, a project that stays on 2.6.6 keeps working; to follow, `npm i -D -E @biomejs/biome@2.6.8` and set the `$schema` of `biome.json` to `https://biomejs.dev/schemas/2.6.8/schema.json`, then `npm run format`.
275
+
276
+ **A run left behind no longer writes into the run that took its job: the lease of a background job is a claim of its own, never held twice.** A lease was `{ id, attempt }`, and the attempt number comes back: `release` gives it back and `retryDead` starts it again. A job that ignored its signal when its worker stopped went on behind with the very lease of the next claim, so its late `saveCheckpoint` or `reportProgress` was accepted and the next attempt resumed from a stale checkpoint. Every store now counts the claims of a job apart from its attempts and never gives one back, and `JobLease` is that fence, a value object the store mints at each claim (`JobLease.ofClaim(id, claim)`) and hands with the job (`ClaimedJob.lease`): `InMemoryJobStore`, `KnexJobStore`, `DrizzleJobStore`, `PrismaJobStore`, `TypeOrmJobStore` and `RedisJobStore` alike. `ClaimedJob.attempt` still says which attempt the run is. `jobStoreContract` gains two cases, a job released and a job revived are claimed under a new lease and the run of before is not heard, and asks of every claim the lease it hands (#900).
277
+
278
+ To move: the table of the background jobs gains a column, `claims`, an integer that is not null and defaults to 0. Write the migration before the new version runs, `alter table <schema>.background_jobs add column claims integer not null default 0`: by hand on Knex (`createJobTable` writes it for a new table only), generated from the table of the package on Drizzle and TypeORM, and on Prisma after adding `claims Int @default(0)` under `attempts` in the `BackgroundJob` model, as `prisma/jobs-and-processes.postgresql.prisma` shows it. Workers of the version before keep running over the migrated table, and Redis needs nothing. Code that wrote a lease by hand (`{ id: job.id, attempt: job.attempt }`) passes `job.lease`, the one the claim handed; a spec builds one with `JobLease.ofClaim('job-1', 1)`. A `JobStore` of your own counts the claims of a job at each `claim`, never moves that count back, hands `lease: JobLease.ofClaim(id, claims)` with each `ClaimedJob`, and holds its reports to `lease.claim` where it held them to `lease.attempt`: run `jobStoreContract` on it.
279
+
280
+ **A queue of the `QueueWorker` no longer stops when an attempt ends while its depth is counted.** A worker given `metrics` asks the store for the depth of a queue after it claimed; an attempt that ended during that count asked the queue to claim again and was not heard, so with the default concurrency of 1 the queue ran one job and no other, with no timer left to wake it. A wake-up that comes while a queue fills is now kept, and the queue fills once more after (#900).
281
+
282
+ **Kafka and Redis Streams take one `startFrom`: `'beginning' | 'end'`, default `'beginning'` on both.** The option had two vocabularies with opposite defaults: `'earliest' | 'latest'` on Kafka (default `earliest`), `'new' | 'beginning'` on Redis Streams (default `new`), while NATS always delivers the whole stream. A consumer deployed after its publisher replayed history on Kafka and NATS and missed it on Redis Streams. A new consumer group now starts at the beginning of what its topics or streams hold on the three, and `startFrom: 'end'` skips it. The former words are refused at construction with `StartFromRefusedError` (`START_FROM_REFUSED`), whose message names the word that replaced them; no alias is kept. On Redis Streams a group the server lost while its stream stayed is created again at the beginning too: what the stream still holds is delivered again, where it was skipped.
283
+
284
+ To move: on Kafka, write `startFrom: 'beginning'` for `'earliest'` and `startFrom: 'end'` for `'latest'`; a bus that passed neither changes nothing. On Redis Streams, a bus that passed `startFrom: 'new'`, or no `startFrom` and counts on a new group skipping what its streams already hold, passes `startFrom: 'end'`; without it a consumer name that has no group yet reads the whole stream at its first start (the groups that exist keep their position). `startFrom: 'beginning'` on Redis Streams stays as it is and can go.
285
+
286
+ **The NATS bus waits 30 seconds for the acknowledgement of a publication by default, as RabbitMQ and Kafka do.** `publishTimeoutMs` of `NatsEventBus` defaulted to 5000 where the two other brokers that take the option default to 30000: a publication the stream had not acknowledged was rejected with `PUBLISH_NOT_ACKNOWLEDGED` six times sooner on NATS.
287
+
288
+ To move: pass `publishTimeoutMs: 5000` to `NatsEventBus` to keep the former bound.
289
+
290
+ **Redis Streams hands each handler the events of its type on a stream several types share.** With a `streamOf` that maps several event types to one stream, `RedisStreamsEventBus` gave every handler of the stream every entry, whatever its type, and `describeTopology()` kept the first type only. A handler now receives the events of the type it subscribed to, as on Kafka with `topicOf`; an entry of a type the consumer never subscribed to is acknowledged unhandled, and `describeTopology()` lists every type (#901).
291
+
292
+ **RabbitMQ bounds every confirmation it waits for with `publishTimeoutMs`.** Only a publication was bounded: the copy of a failed message to its retry or dead queue, and each copy of `replayDead`, waited for ever on a broker that stopped confirming (a disk alarm), so the delivery held its prefetch slot and `close()` never returned. The three paths now share one bounded confirmation: a copy that is not confirmed in time hands the message back to its work queue, `replayDead` rejects with `PUBLISH_NOT_CONFIRMED` and leaves the message dead, and `close()` returns (#901).
293
+
294
+ **Kafka's `assertTopology()` resolves for every caller when a subscription is added while the group joins.** A subscription made before the coordinator answered the previous join replaced the promise the earlier callers were waiting on, so their `assertTopology()` never resolved and a composition root that awaited it before listening never started. A member now holds one wait at a time, shared by whoever asked during the join (#901).
295
+
296
+ **A message whose handlers all unsubscribed is kept for the next handler the same way on the four brokers.** It is never acknowledged, never sent to the dead destination, reported as no failure and never delivered again on the spot. RabbitMQ requeued it at once and NATS refused it without a delay, both in a hot loop until the consumer was gone; Redis Streams counted each redelivery and buried it as `ATTEMPTS_EXHAUSTED` without a handler having seen it. RabbitMQ now sends it to the retry queue with its `x-attempt` unchanged, NATS refuses it with `retry.delayMs`, Redis Streams leaves it pending with that delivery taken off its counter, and Kafka goes on holding its partition until a handler subscribes. It counts as no attempt, except on NATS, where the server counts each delivery (#901).
297
+
298
+ **An aggregate shows a read-only `version` and `record`, and nothing else of what its store manages.** `AggregateRoot.version` was a public writable field and `pullEvents()` a public method that drains: an adapter, a mapper and a use case could all write the concurrency token or empty the events. The version an aggregate was loaded at and the events it has yet to announce now sit behind functions of `@ddd-ts-kit/kernel` that the infrastructure calls: `loadedAt(aggregate, version)`, `recordedEventsOf(aggregate)`, `takeRecordedEvents(aggregate)`, with `optimisticUpdate` and `appendChanges` moving the version themselves. They are keyed process-wide, so an aggregate built by another copy of the kernel is loaded, saved and followed the same, and what is no aggregate is refused with a `TypeError` instead of being stored as nothing. `EventSourcedAggregate` records in the same place: one list, no second one. The version is no longer an enumerable field: spreading, serialising or comparing an aggregate does not see it. `@ddd-ts-kit/testing` reads the events for a spec: `recordedBy(aggregate)` reads and leaves them, `withoutRecordedEvents(aggregate)` hands the aggregate with none, and `given(...).when(...)` no longer empties the aggregate it is given. `InMemoryRepository` saves through `optimisticUpdate` and loads through `loadedAt`, as a real adapter does. A generated mapper declares the two directions inside `aggregateMapper(...)` and never writes a version: `toDomain` answers the aggregate loaded at the version of its row.
299
+
300
+ A unit of work that rolls back puts the aggregates it saved back as it found them: at the version they were loaded at, with the events its saves had taken, ahead of what they recorded since. The same instance can be saved again; it used to keep the version of a row that no longer existed and to have lost its events, so a retry failed with a `ConcurrencyError` no writer had caused. `unitOfWorkContract` proves it on every ORM. `InMemoryUnitOfWork` undoes nothing, as before, and leaves the aggregates in step with what the fakes stored; a unit of work of your own that undoes nothing says so with `unitOfWorkOver(transaction, { rollsBack: false })`.
301
+
302
+ To move: `aggregate.version = row.version` no longer compiles (`TS2540`). In a generated mapper, wrap the object in `aggregateMapper({ toDomain, toRow })` of `@ddd-ts-kit/kernel` and let `toDomain` return `Aggregate.rehydrate(...)`: the repository adapter stays as it is. In an adapter that rebuilds the aggregate itself, `return loadedAt(Aggregate.rehydrate(row), row.version)`; each ORM package exports both functions too.
303
+ To move: `aggregate.pullEvents()` no longer compiles (`TS2339`): in a spec, `expect(recordedBy(aggregate)).toEqual([...])`; in a builder that discards the events of its arrangement, `return withoutRecordedEvents(built)`; in infrastructure of your own that dispatches, `takeRecordedEvents(aggregate)`.
304
+ To move: `domain-events/dispatched-on-save`, in `ddd-ts-kit check` and in `@ddd-ts-kit/eslint-plugin`, now reports a call of `takeRecordedEvents(...)` in `application/` or `infrastructure/` of a context, where it reported `.pullEvents()`.
305
+ To move: an in-memory repository generated with `--orm none` wrote the version itself: generate it again (`generate repository <context> <Aggregate> --force`), or save through `optimisticUpdate` and load through `loadedAt` as the new one does.
306
+ To move: `optimisticUpdate` takes an aggregate, not a `{ id, version }` object: a hand-written fake that saved a plain object passes its aggregate.
307
+ To move: code that read `version` from a spread or a JSON of an aggregate (`{ ...order }`) reads `order.version`.
308
+
309
+ **Inside the CLI, each ORM is one member that answers what the commands ask of it.** Nothing changes in what `init`, `generate`, `merge-trunk`, `verify-merge` and `db:generate` write or say. What used to be a comparison on the name of the ORM in some forty files is now asked of `ORM_MEMBERS` (`packages/cli/src/orm`): how the migrations of the ORM follow those of a trunk (renamed after its last one by the migration tool of knex, Prisma or TypeORM, generated again under drizzle-kit), where the tables of a context are declared and what the schema index says of their names, and how the generated code reaches the database. A capability an ORM does not have is absent from its member, and the compiler lists what a new member has to answer.
310
+
311
+ **A key added through `redact` is hidden whatever its case, by every logger that redacts.** `createPinoLogger({ redact: ['iban'] })` writes `[redacted]` for `iban`, `IBAN` and `Iban` alike, at the top of a line and one level below, in the fields of a line, of a child and of `fields`, as `createWinstonLogger` does. The three redacting loggers ask one function of `@ddd-ts-kit/kernel`, `hiddenKeys(added)`, whether a field name is hidden: one of `CREDENTIAL_KEYS` or an added name, without case. `StdoutLogger` of `@ddd-ts-kit/aspects` takes `redact` too. Around a pino instance of your own, `PinoLogger` and `correlationMixin` take the list given to `credentialRedaction`: `new PinoLogger(instance, { redact })`, `correlationMixin(fields, redact)`. `loggerContract` of `@ddd-ts-kit/testing` proves it for a logger declared with `redacts: true`, whose `createLogger` then receives `redact`.
312
+
313
+ **`Logger.flush()` ends nothing, on every logger of the kit.** The port says so now: an entry logged after a flush is written like the others, and a later flush waits for it in turn. `WinstonLogger.flush()` resolves once winston has handed each of its transports every line logged so far, ten seconds at most for a transport that does not answer, and leaves the logger open, as `PinoLogger`, `StdoutLogger` and `InMemoryLogger` do. Ending is a verb of its own, `WinstonLogger.end()`: it ends the winston logger, resolves once each transport has finished, and is final. `loggerContract` holds every logger to an entry logged after a flush being written.
314
+
315
+ To move: nothing for a logger on the console, which is what `init --logger winston` generates. A project whose winston transports still hold lines they took (the `File` transport, until its file is closed) and that leaves the process by itself after `app.stop()` (`process.exit()`) calls `await logger.end()` first, on the `WinstonLogger` its composition root built: `flush()` no longer closes the file. A `Logger` of your own that dropped what was logged after a flush now writes it, or fails the flush case of `loggerContract`.
316
+
317
+ **Each ORM package saves an aggregate in one call: `saveAggregate`, and `saveTenantAggregate` for a table every tenant shares.** A repository adapter used to carry the optimistic-concurrency plumbing itself: `optimisticUpdate`, an insert that ignores a taken key, an update guarded by the version, the audit stamps, the tenant on the inserted row and in the condition of the update. `@ddd-ts-kit/knex`, `@ddd-ts-kit/drizzle`, `@ddd-ts-kit/prisma` and `@ddd-ts-kit/typeorm` now each export the two functions, which take where the row lives (a table, a model, an entity) and one save: `{ aggregate, row: Mapper.toRow(aggregate), scope, clock }`. The row is inserted at version 1 with its creation stamp the first time, then updated while it still holds the version the aggregate was loaded at; a taken key or a row that moved is a `ConcurrencyError`, a value another row holds a `UniqueViolationError`, as before. `saveTenantAggregate` writes the row in the tenant of the work in progress and confines its update to that tenant. Both are made of `saveAggregateRow` of `@ddd-ts-kit/kernel`, which an adapter over another store can call with its own two statements.
318
+
319
+ A generated repository, those of the identity preset included, now declares its table, its mapper and its lookups, and saves in that one call: no `insert`, no `update`, no `Versioned<Aggregate>` type, no stamp. On Knex it names its table once (`const TABLE = { schema, table }`) and reads it through `tableIn(database, TABLE)`, which `@ddd-ts-kit/knex` now exports, or `tenantTable` on tenant data. In a multi-tenant project, `tenancy/scoped-statement` reports an aggregate saved with `saveAggregate`, which names no tenant, and reads a Prisma model handed to `saveTenantAggregate` as confined.
320
+
321
+ To move: nothing has to: a repository written on `optimisticUpdate` works as before. To shrink one, replace its `save`, `insert` and `update` by `await saveAggregate(<database>, <table>, { aggregate: saved, row: Mapper.toRow(saved), scope: this.scope, clock: this.clock })` (`saveTenantAggregate` where it spread `tenantScopeOf` and an own-tenant condition; on Prisma the first argument is the model alone, `this.database.client().<model>`), then drop the `Versioned<Aggregate>` type and the imports left unused. Keep a `try` around the call where the save translated an error of the database. A repository with no lookup of its own can be generated again: `ddd-ts-kit generate repository <context> <Aggregate> --force`.
322
+
323
+ **A command of `ddd-ts-kit` declares itself once, and `check` reads the options of one of its modes at a time.** What was said of a command (its name, its options, its usage, the lock it takes) lived in several places joined by its name; it is one declaration in the file of the command, which the entry, `--help`, the usage a refused argument is answered with and `docs/guides/commands.md` read. `--help` and `--help --json` print what they printed, but for the lines of `check`. What changes for who runs the CLI:
324
+
325
+ - `ddd-ts-kit check` is five commands under one name, each with its own options and its own usage line: the check of a project, `--baseline write|prune`, `--clean-only <dir>...`, `--commit-size` and `--self`. The mode whose option comes first on the command line runs. An option another mode declares is refused with the reason of the mode asked, and the usage line of that mode as the fix. The refusals that change:
326
+ - `check --baseline write|prune` beside `--rule`, `--changed-since`, `--explain` or `--clean-only` said `--baseline write judges every rule on every file.` with `Run it without --rule, a path, --changed-since, --clean-only or --explain.`; it says `check --baseline does not take --rule: it judges every rule on every file.` with `ddd-ts-kit check --baseline write|prune`. The same answers `--format`, which was read and ignored, `--self`, which ran instead, and `--commit-size`, `--staged` and `--strict`, which the parser refused (`Unknown option '--staged'.`).
327
+ - `check --baseline write src` said `--baseline write judges every rule on every file.` with the same fix; it says `check --baseline does not take a path: it judges every rule on every file.` with `ddd-ts-kit check --baseline write|prune`.
328
+ - `check --clean-only --changed-since <ref>` said `--clean-only compares with no ref.` with `Run it without --changed-since: it judges the directories given as they are, outside a project and its history.`; it says `check --clean-only does not take --changed-since: it judges the directories given as they are, outside a project, its history and its baseline.` with `ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github|gitlab] [--explain]`. The same answers `--baseline`, `--commit-size`, `--staged`, `--strict` and `--self`.
329
+ - `check --commit-size --rule <id>` (and `--format`, `--changed-since`, `--explain`, `--baseline`, `--clean-only`, `--self`) said `Unknown option '--rule'.` with the four lines of `check`; it says `check --commit-size does not take --rule: it measures what is about to be committed and runs no rule.` with `ddd-ts-kit check --commit-size [--staged] [--strict]`.
330
+ - `check --self --rule <id>` (and `--format`, `--changed-since`, `--explain`, `--baseline`, `--clean-only`, `--commit-size`, `--staged`, `--strict`) replayed the fixtures and ignored the option; it says `check --self does not take --rule: it replays the fixtures shipped with the CLI, whatever the project.` with `ddd-ts-kit check --self`.
331
+ - `check --staged` or `check --strict` without `--commit-size` said `Unknown option '--staged'.` with the four lines of `check`; it says `--staged is an option of check --commit-size.` with `ddd-ts-kit check --commit-size [--staged] [--strict]`.
332
+
333
+ An option no mode knows is still answered by the parser (`Unknown option '--nope'.`), with the usage line of the mode asked, or the five lines of `check` when none is. The usage of `check` follows: `--self` has its line and leaves the first one, and the line of `--clean-only` shows what it has always accepted, `--format text|json|github|gitlab` and `--explain`.
334
+ - An option that takes one of a few values is held to them by the parser, in one sentence: `Unknown value "<value>" for --<option>.` with `Use one of: <values>.`. It replaces `Unknown gate "<value>".` (`acceptance --gate`, `story --gate`), `Unknown kind "<value>".` (`story-scope --kind`), `"<value>" is not a form error-factories moves a project to.` (`error-factories --to`) and `Unknown --baseline "<value>".` (`check --baseline`). Such a value is refused before the command reads the project.
335
+ - An unknown command is answered with the commands in the order of `--help`.
336
+ - A refusal read as JSON, and the package manager its fix is written for, follow `--json` and `--cwd` as the commands read them: `--cwd=<dir>` counts, a `--json` after `--` does not.
337
+
338
+ To move: a script that matched one of the sentences above matches the new one; the exit code, 2, is the same. A script that ran `check --self` or `check --baseline` with an option they ignored drops the option: the command line exits 2.
339
+
340
+ For who writes a command of the kit: `CONTRIBUTING.md` says what a command file holds (#918).
341
+
342
+ **A domain event has a rank in its aggregate and an identity that follows from it, and a read model applies every event one command records.** A `DomainEvent` said its name, its instant and its aggregate, and nothing told two events of one aggregate apart: `stampOf` invented `<name>:<aggregateId>`, so of two events recorded at the same instant a read model kept the first and answered `stale` to the second, whichever the alphabet put last, and always under a fixed clock. The aggregate now gives each event it records its rank in its history, from 1 (`rankOf(event)`), and the identity of the event is `eventIdOf(event)`, `<name>:<aggregateId>:<rank>`: nothing is drawn, so the event a save dispatches and the same event read back from its stream are one. `stampOf(event)` of a domain event carries that identity and, as `version`, the rank: the rows of one aggregate follow its history, not the clocks, and the read model contract of `@ddd-ts-kit/testing` proves it on every store. What invented an identity reads it: `EventSerializer` stores an event under `eventIdOf(event)` and gives the event it reads back the rank of its stream, the side table behind `storedStampOf` is gone, and a projection fed by the event store and by the saves stamps both with `stampOf(event)`.
343
+
344
+ `NamedDomainEvent('<name>')`, the base of every generated event, carries what every event says: the id of its aggregate and its instant. An event with no fact of its own is `class InvoiceIssued extends NamedDomainEvent('billing.invoice.issued') {}`, built `new InvoiceIssued(invoice.id, now)`; one that carries facts declares them after the two and hands those to `super`. The id of the aggregate is kept as text there and nowhere else, so an aggregate keyed by a number hands its id as it is. `generate domain-event`, the events of the identity preset and the pages that show an event follow.
345
+
346
+ A save moves the version of an aggregate to the rank of the last event it recorded, and by one when it recorded none, where it moved by one whatever was recorded: the next event of the aggregate ranks after every one before it, across saves and loads. `optimisticUpdate` computes it, so every repository adapter follows without a change, and the `version` column of a table keeps its rows: a version only has to grow. The version of an event-sourced aggregate was already the rank of its last event.
347
+
348
+ To move: an event class that extends `NamedDomainEvent(...)` no longer compiles (`TS4115`, `TS2554`): in its constructor, drop `readonly` before `aggregateId` and `occurredAt` and write `super(aggregateId, occurredAt)` where it wrote `super()`; a constructor left with those two parameters alone is deleted. A class that implements `DomainEvent` itself, with `static readonly eventName`, stays as it is.
349
+ To move: `storedStampOf(event) ?? stampOf(event)` no longer compiles (`TS2724`): write `stampOf(event)`, and `rankOf(event)` where the code read `stamp.version` of a domain event.
350
+ To move: `stampOf(domainEvent, version)` no longer compiles (`TS2554`): a domain event brings its own version. A key that the domain events of several aggregates write has no single history: stamp it `{ eventId: eventIdOf(event), occurredAt: event.occurredAt }`, and the instants decide as they did.
351
+ To move: a spec that builds a domain event by hand and hands it to a projection or to `EventSerializer.serialize` is refused with `has no rank: no aggregate recorded it`: say where the fact stands, `ranked(new InvoiceIssued('inv-1', now), 1)`, or let the aggregate record it and read `recordedBy(aggregate)`.
352
+ To move: one event object recorded by two aggregates, or twice, is refused (`already stands at rank`): build an event per fact.
353
+ To move: `new EventSerializer(types, { ids })` no longer compiles (`TS2353`): drop `ids`. An event store already holding events needs no migration: its rows keep the id they were stored under, the new ones are stored under `<name>:<aggregateId>:<rank>`, and both are read back with the same stamp, the rank of the stream. An `EventStore` adapter of your own that keeps the id in a `uuid` column changes it to text before the first append of this version.
354
+ To move: a read model fed by the domain events of state-stored aggregates holds rows stamped without a version. They need no migration: against such a row the instants decide, as before, until an event of this version writes it. Rebuild the read model if two events of one instant may still meet an old row. A read model fed by the event store keeps its rows as they are: the version of a row was already the rank of its event.
355
+ To move: code that counted the saves of an aggregate by its `version` (a spec expecting `2` after two saves) reads the rank of its last event instead: a save that records three events moves the version by three.
356
+
357
+ **RabbitMQ's `replayDead` bounds every wait with `publishTimeoutMs`, not only the confirmation of its copies.** On a broker that stopped answering, opening the confirm channel of the replay and taking the next message of the dead queue (`get`) waited for ever, so the replay never returned. Both requests now reject with `BrokerUnavailableError` of reason `REQUEST_TIMEOUT`, as a request of the Kafka bus does, when the broker has not answered within `publishTimeoutMs`; the message stays in the dead queue, and the replay can be run again once the broker answers (#901).
358
+
359
+ **A scheduled job runs its next occurrence when the lock of the previous one cannot be released.** A `singleInstance` job keeps the lock of an occurrence until the next one, and lets it go then. When that release failed, a lock server that did not answer for instance, the next occurrence was not run: it was recorded `failed` with `JOB_LOCK_UNAVAILABLE`, although its own lock could be taken. The release is now at best: a lock that cannot be released ends at its time to live, as it would have had the process stopped, and the next occurrence takes its own lock (#900).
360
+
361
+ **A `start()` of the scheduler asked while a `stop()` is in progress begins once the stop ended.** `InProcessJobScheduler.stop()` waits for the occurrence a job is handling; a `start()` asked meanwhile followed the job again at once, and the occurrence in progress armed its own timer when it ended. The job then had two timers, every wake-up armed two more, and the next `stop()` cancelled one of them: the other fired later and ran an occurrence after the scheduler had stopped. A start or a stop now runs whole before the next one begins, so a start asked during a stop finds every job asleep, and each job has one timer at a time (#900).
362
+
363
+ **Each refusal and each question of the guard of the plugin opens with the id of the rule that took it.** The message reads `ddd-ts-kit [worker-scope]: You build the context "ordering": ...`, `ddd-ts-kit [held-changes]: Your commands, or another session, changed files outside your scope: ...` or `ddd-ts-kit [governed-file]: biome.json holds the rules or the pipeline ...`, on Claude Code, Codex and Copilot alike, where it used to open with `ddd-ts-kit: `; the sentence after the id is unchanged. A report to the conductor, an issue or a deviation can cite the rule by its id. Inside the guard, each chain of rules is now a table of rows `{ id, applies?, reason }` asked in its order, with no other change of answer. A project has nothing to do; a script that read the message by its `ddd-ts-kit: ` prefix reads `ddd-ts-kit [<id>]: ` now.
364
+
365
+ **The guard of the plugin keeps what a worker changed outside its scope in three steps, with no change of behaviour.** `plugin/hooks/held-changes.mjs` notes the state before code the guard cannot read (`note`), compares it at the next call (`settle`, which answers whether the worker is clear, held, or not compared yet, with the reason that refuses the call and what to tell it) and drops the note when a new run of a builder starts (`release`); these three alone write the two state files of a worker, and the entry of the guard alone says what goes with a decision. No rule, no message and no decision changes. A project has nothing to do.
366
+
367
+ ## 0.114.1
368
+
369
+ **Version 0.114.0 was tagged and never published: 0.114.1 carries what it announced.** The release run stopped before the publication, when it attested the tarballs with the bill of materials: the file had no `serialNumber`, the field the attestation reads to recognise CycloneDX. The bill of materials now carries one, a new `urn:uuid` at each release. No package exists at 0.114.0 on the registry: a project that follows the kit goes from 0.113.2 to 0.114.1, and the line `To move:` of 0.114.0 applies to that step.
370
+
371
+ ## 0.114.0
372
+
373
+ **The repository moves to the `ddd-ts-kit` organization: `github.com/ddd-ts-kit/ddd-ts-kit`, and the site to `ddd-ts-kit.github.io/ddd-ts-kit`.** The packages keep their names on npm. GitHub sends the old address of the repository to the new one, so a plugin already installed from the marketplace `gbourgeat/ddd-ts-kit` keeps updating; the old address of the site leads nowhere. `init` now writes the marketplace `ddd-ts-kit/ddd-ts-kit` into the settings of a new project, and the links of the generated files and of the rule documentation name the new address.
374
+
375
+ To move: in `.claude/settings.json` and `.github/copilot/settings.json`, replace `gbourgeat/ddd-ts-kit` by `ddd-ts-kit/ddd-ts-kit` in the marketplace of the kit, and replace any link to `gbourgeat.github.io/ddd-ts-kit` by `ddd-ts-kit.github.io/ddd-ts-kit`.
376
+
377
+ **Each published tarball is attested by GitHub, with where and from which commit it was built and with the bill of materials of the release (CycloneDX), which the GitHub release also carries.** `gh attestation verify <tarball> --repo ddd-ts-kit/ddd-ts-kit` checks the provenance, and with `--predicate-type https://cyclonedx.org/bom` the bill of materials; `SECURITY.md` says how. The provenance npm shows on each version is unchanged.
378
+
379
+ **A patch version never breaks, and the release enforces it: what each version may hold before 1.0, the ranges a project holds, how to upgrade and what 1.0 will guarantee are in [Versions and stability](docs/versioning.md).** A change that asks a project to act (a `To move:` line) now ships only in a new minor version; the ranges `init` writes (`^0.x.y`) take patches alone, so a break reaches a project only when its range is changed.
380
+
7
381
  ## 0.113.2
8
382
 
9
383
  **`ddd-ts-kit merge-trunk` reads back the lines of both sides it keeps in a generated region, and merges the region declaration by declaration when those lines would mix the two sides.**