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/README.md CHANGED
@@ -20,7 +20,7 @@ second reads the project back without changing it: `check` judges it, `list` and
20
20
  what it holds, `status` and `todo` say what is left to do, `affected` says what a pull request has
21
21
  to run.
22
22
 
23
- ![The commands of the CLI around a project: on the left the ones that write it (init, generate, docs, sdk and depcruise-config, the three migrations), in the middle the project (ddd-ts-kit.config.json, the bounded contexts and the platform under src/, the generated documents), on the right the ones that read it back (check and check-file, list and describe, status and todo, affected)](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-commands-and-project.svg)
23
+ ![The commands of the CLI around a project: on the left the ones that write it (init, generate, docs, sdk and depcruise-config, the three migrations), in the middle the project (ddd-ts-kit.config.json, the bounded contexts and the platform under src/, the generated documents), on the right the ones that read it back (check and check-file, list and describe, status and todo, affected)](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/cli-commands-and-project.svg)
24
24
 
25
25
  No runtime dependency. Node 22.12 or later. Windows through WSL 2 only: outside it, `affected --run`,
26
26
  `verify-slice`, `worker-scope`, `story-scope`, `worktree` (unless `--no-install` or `--dry-run`) and
@@ -55,7 +55,7 @@ not write some of them where it ran (a path the sandbox of an agent protects): t
55
55
  under `unwritable`, every other file is written and none is deleted; `4` an internal error of the
56
56
  kit, said in one line with its version (`internal error of ddd-ts-kit <version>: ...`, its stack
57
57
  trace after it when `DDD_TS_KIT_DEBUG` is set; under `--json` an `error` with its `stack` and
58
- `"internal": true`): report it at https://github.com/gbourgeat/ddd-ts-kit/issues with the command
58
+ `"internal": true`): report it at https://github.com/ddd-ts-kit/ddd-ts-kit/issues with the command
59
59
  and the stack trace.
60
60
 
61
61
  ## init
@@ -111,13 +111,19 @@ anything is written; a link that stays inside the project is written through. `i
111
111
  `.claude/settings.json` would be the settings of every session: run it in the directory of the
112
112
  project.
113
113
 
114
- Each file is written whole or not at all: to `<name>.<random>.tmp` beside it, then renamed into
115
- place. A command stopped half way leaves complete files only (a process killed there may leave
116
- its `.tmp` file, which can be removed), and the same command run again writes the ones missing.
117
- `init` on a project already initialised, each `generate` that is not a dry run and `drizzle-generate`
118
- hold the lock of the project, `.ddd-ts-kit/lock`, which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
119
- holds it and the fix, run the generators one after the other:
120
- ``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
114
+ What a command writes lands whole or not at all: each file is written to `<name>.<random>.tmp`
115
+ beside its place, and the files are renamed into place only once every one of them is written. A
116
+ write that fails (a full disk) leaves the project as it stood, and the same command run again
117
+ writes it; a process killed half way may leave `.tmp` files, which can be removed, and, when it was
118
+ killed while renaming, the files already in place, which the same command completes.
119
+ Every command that reads the shared files of the project and writes them back holds the lock of
120
+ the project while it runs, `.ddd-ts-kit/lock`, which git ignores: `init` on a project already
121
+ initialised, `generate`, `docs`, `sdk`, `drizzle-generate`, `move-to-module`, `context-layout`,
122
+ `platform-folders`, `controllers`, `value-objects`, `error-factories`, `acceptance --lock` and
123
+ `depcruise-config --write`. None takes it to say what it would write (`--dry-run`, `--check`). A
124
+ second one waits up to five seconds, then exits 2 naming the command that holds it and the fix,
125
+ run them one after the other:
126
+ ``Another command holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
121
127
  A lock taken on this machine is kept while its command runs and taken over once it has ended; one
122
128
  taken on another machine, or whose holder cannot be read, is taken over a minute after it was taken.
123
129
 
@@ -380,7 +386,7 @@ is absent with standard decorators and under `tsx`. `init` writes
380
386
  what each class is given. Every generated file exports one class, interface or function and is named
381
387
  after it.
382
388
 
383
- ![How a declared context reaches the composition root: the role files carry their decorator and type their constructor parameters by classes; generate, docs and the dev script read those signatures and write the declarations of each layer, one export per role file of the layer and one injected statement per class that takes something, and a summary at the root of the context that re-exports them; the composition root includes the summary with contextModule and @ddd-ts-kit/di injects from it; check and docs --check report generated declarations that no longer match the role files](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-declared-barrel.svg)
389
+ ![How a declared context reaches the composition root: the role files carry their decorator and type their constructor parameters by classes; generate, docs and the dev script read those signatures and write the declarations of each layer, one export per role file of the layer and one injected statement per class that takes something, and a summary at the root of the context that re-exports them; the composition root includes the summary with contextModule and @ddd-ts-kit/di injects from it; check and docs --check report generated declarations that no longer match the role files](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/cli-declared-barrel.svg)
384
390
 
385
391
  An excerpt of the declarations of the `notification` context of the example application, as
386
392
  the CLI writes them (never by hand): one file per layer, above the role folders whose classes it
@@ -518,7 +524,7 @@ the laws of an existing value object as a spec on generated values, in either fo
518
524
  `fast-check` to the development dependencies when it is missing.
519
525
 
520
526
  **Domain events leave with the save.** A generated command handler builds or loads its aggregate,
521
- calls one intention method, `await repository.save(aggregate)` and returns: no `pullEvents()`, and
527
+ calls one intention method, `await repository.save(aggregate)` and returns: no `takeRecordedEvents()`, and
522
528
  no `DomainEventDispatcher` in a handler or in a repository adapter, which only persists. The events
523
529
  the aggregate recorded are dispatched once the save resolves, inside the unit of work of the
524
530
  command: by the kernel module on tsyringe, by `dispatchingOnSave` around each repository in
@@ -532,7 +538,7 @@ async execute(command: IssueInvoiceCommand): Promise<void> {
532
538
 
533
539
  invoice.issue(this.clock.now());
534
540
  await this.invoiceRepository.save(invoice);
535
- await this.dispatcher.dispatch(invoice.pullEvents()); // domain-events/dispatched-on-save
541
+ await this.dispatcher.dispatch(takeRecordedEvents(invoice)); // domain-events/dispatched-on-save
536
542
  }
537
543
  ```
538
544
 
@@ -607,7 +613,7 @@ config, `docsUi`, `ci` and `logger` included.
607
613
  | `--audit on` | `src/platform/audit/`: `create-audit.ts` (the trail, the `onDecision` of the authorization, the refusals of the guards at the edge given to the HTTP boundary as `onGuardRefusal`, the middleware before the unit of work, the integration events subscribed under the consumer name `audit`), `audited-events.ts` (the registry `generate integration-event` adds to), `audit.module.ts`, and with an HTTP stack the read side: `audit.permissions.ts` (`audit:trail.read`), then in `search-audit-entries/`: `search-audit-entries.query.ts`, its handler, `search-audit-entries.route.ts` or `.controller.ts` (`GET /audit/entries`: cursor pages, filters `actorId`, `action`, `outcome`, `correlationId`), which starts with the endpoint and takes what it receives and answers from `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` and `audit-outcomes.ts`. It is a capability of the platform, not a bounded context: no model, one protected query over the `AuditReader` port, bounded by the tenant of the actor (with `--tenancy shared-table`, by the tenant of the work through `TenantAuditReader`: platform staff read across tenants only inside `acrossTenants`). The refusals of a caller without a credential are not recorded. A scheduled job is audited like a request: origin `schedule`, actor `system:<context>.<job>`. With knex the two tables and their append-only triggers are created by the first migration; with drizzle the tables are in `schema.ts` and `npm run db:generate` adds the trigger statements to the migration that creates the tables (`npm run db:audit-guard` prints them for a migration by hand); with prisma and typeorm the tables are models of `prisma/schema/schema.prisma` or entities of `schema.ts` (`auditPrismaModels`, `auditEntities` of `@ddd-ts-kit/audit`), written by `PrismaAuditTrail` and `TypeOrmAuditTrail`, and `npm run db:generate` (through `ddd-ts-kit prisma-generate` or `typeorm-generate`) adds the trigger statements to the migration that creates the tables, `npm run db:audit-guard` printing them for a migration by hand; the test databases install that guard; with `custom` or no ORM the trail is an `InMemoryAuditTrail` behind a `TODO(platform)`. The test databases leave the audit schema out of `reset()`. With the trail in a database and `--storage local` or `s3`, `audit.module.ts` (or the hand-wired composition) registers `audit.archive` on the first day of every month at 04:00 UTC: the entries older than twelve whole months move to the storage under `audit-archives/`, verified, read back and anchored (`ArchiveAuditEntries`); with `s3` it runs unless `JOB_AUDIT_ARCHIVE_ENABLED=false`, with `local` only with `JOB_AUDIT_ARCHIVE_ENABLED=true`, since the archive removes the entries from the database and the disk of the server may not last |
608
614
  | `--event-sourcing on` | recorded as `stack.eventSourcing`, `off` unless asked: `Persistence` gains `eventSourcing` (`create<Orm>EventSourcing` in the `event_store` schema, whose five tables the schema file declares; the in-memory stores with `--orm none`), and `src/platform/event-sourcing/`: `create-event-sourcing.ts` (`EventSourcing`: the stores, the `SubjectKeyStore` wrapped by `auditedSubjectKeys` with `--audit on`, and the `PersonalDataCipher` over it) and, on tsyringe, `event-sourcing.module.ts` (binds `EventStore`, `SnapshotStore`, `CheckpointStore`, `SubjectKeyStore` and `PersonalDataCipher`, so an event-sourced repository adapter names them in its constructor; the hand-wired `Platform` carries them as `platform.eventSourcing`); `platform-test.module.ts` binds the in-memory stores, so a handler spec of an event-sourced aggregate needs no fake. `generate aggregate --event-sourced` is refused without it, with the `init --force --event-sourcing on` to run. Refused with `--orm custom`: the event store of the kit runs on PostgreSQL through the four ORM packages |
609
615
  | `--privacy on` | recorded as `stack.privacy`, `on` when there is an ORM: `src/platform/privacy/`, with `data-subject-copies.ts` and `data-subject-exports.ts` (the ports, or the adapters by hand, of the contexts that extend `PersonalDataErasure` and `PersonalDataExport`, between markers; `generate repository --personal` lists the erasure and the export of a context there), `personal-events.ts` (the events that carry personal data, written by `docs` from their `personal` option), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, rerun?, tenants? })`: an execution context of origin `cli` with the operator as actor, the key of the subject when the project has an event store, then `eraseDataSubject` of the kernel over the copies, each wrapped by `auditedPersonalDataErasure` with `--audit on`, `inEachTenant` with `--tenancy shared-table`, then once the records of the outbox and the jobs of the person, then `privacy.data-subject.erased` published through the outbox, once per tenant, unless nothing was reached) and `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })`: `exportDataSubject` of the kernel over the exports, each wrapped by `auditedPersonalDataExport` with `--audit on`, `recordsInEachTenant` with `--tenancy shared-table`, one dated `PersonalDataExportDocument`), and the two scripts below. `docs/privacy/register.md`, the register of personal data `ddd-ts-kit docs` keeps (see `docs` below). A project without personal data takes `--privacy off` and pays nothing. No HTTP command erases yet: the two scripts are the entry points |
610
- | `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM); the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
616
+ | `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM), and saves with `saveTenantAggregate`; the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters; the authorizer is held to the tenants of the actor, whatever `--authz` (`new TenantBoundAuthorizer({ model: createAuthorizer(), rowsConfinedBy: 'stores' })` in `auth/authorization/authorization.ts`, in `composition/create-platform.ts` under `--di manual`). Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
611
617
  | `--queue database\|redis\|memory` | recorded as `stack.queue`. `database` (the default on Knex, Drizzle, Prisma and TypeORM, whatever the container): the tables of the ORM package (`createJobTable` and `createProcessTable`, `jobsTable` and `processesTable`, the `BackgroundJob` and `ProcessInstance` models, `jobEntity` and `processEntity`) in the `messaging` schema, `Persistence` gains `jobs` and `processes`, and the platform binds `JobStore` and `ProcessStore` to them (the platform module on tsyringe, `jobs/create-background-work.ts` where the platform is wired by hand or under Nest), so a job enqueued by a command is written in its transaction; `redis` (with `--cache redis`): `RedisJobStore` on the connection of the cache, the processes in the database; `memory` (the default with a custom persistence or none): nothing is written, both stay in the process. Refused: `database` with another ORM, `redis` without the cache |
612
618
  | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`; the address is the socket's unless `TRUST_PROXY` names the proxies in front, by hops or by address, by hops only on Hono), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
613
619
  | `--http-cache varnish` | a compose service `varnish` (Varnish 9.1.0, reaching the API on `host.docker.internal`) with its VCL in `docker/varnish/default.vcl` (only answers whose `Cache-Control` allows them by `max-age` or `s-maxage` are kept, filed under their `xkey` tags, purged by `PURGE` from the machine of Varnish or with `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` and `VARNISH_PURGE_KEY` validated, `cacheTags: { header: CacheTagHeader.xkey }` in the HTTP boundary, and the outbox relay of `main.ts` and of every `generate service` entry point publishing through `PurgingPublisher` with `VarnishCachePurger` (the end-to-end application records the purges in `purges`); on `--di manual` and `nest` the platform gains `cacheInvalidation`; with `--tenancy`, the tags of the answers and the purges are filed under the tenant (`perTenant`) and the tenant of a request is read from `x-tenant-id`. Needs an HTTP framework and `--events outbox`: a purge is a row of the outbox |
@@ -708,8 +714,8 @@ removing `generated/` writes them again). Two runs in one project take turns on
708
714
  `.ddd-ts-kit/prisma-client`: two test runs started together never write the client at once.
709
715
 
710
716
  `package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
711
- and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` call by path
712
- (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
717
+ and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` run through
718
+ `ddd-ts-kit tsc`, wherever the package manager installed it. `npx tsc` would run the older one.
713
719
 
714
720
  `init` and `generate context` start with the language: the first entry of `todos` is the glossary
715
721
  of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
@@ -761,7 +767,7 @@ One run of `generate` does five things, in this order, and writes nothing when t
761
767
  refuses (each file written whole, a kind that writes shared files under the lock of the
762
768
  project: [init](#init)):
763
769
 
764
- ![One run of generate command: the name is checked against the glossary of the context (refused with exit code 2 and the --term to add when a word is not defined), the files are written from the templates, the new pieces are registered between marker comments, the derived documents are refreshed, and the places that need a business decision are printed as file:line](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-generate-one-run.svg)
770
+ ![One run of generate command: the name is checked against the glossary of the context (refused with exit code 2 and the --term to add when a word is not defined), the files are written from the templates, the new pieces are registered between marker comments, the derived documents are refreshed, and the places that need a business decision are printed as file:line](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/cli-generate-one-run.svg)
765
771
 
766
772
  In the example application, a use case named with a word its glossary does not define is refused,
767
773
  and the message says how to go on:
@@ -786,7 +792,7 @@ would update src/contexts/notification/application/application.declarations.ts
786
792
 
787
793
  Next, in this order: the language of the context first, then the business decisions only you can make
788
794
  src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor...
789
- src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and writes nothing until you decide...
795
+ src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and refuses until you decide how
790
796
  src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour...
791
797
  ```
792
798
 
@@ -799,16 +805,16 @@ Next, in this order: the language of the context first, then the business decisi
799
805
  | `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note. Under a container it also takes `fakes`, the fake of a port it cannot build (a reader that answers what the spec gives it), and, under tenancy, `tenants`. The world named after the context is the one the specs of `command`, `query` and `job` generated after it arrange through |
800
806
  | `entity` | `<context> <Name> [--module <module>]` | entity, spec |
801
807
  | `value-object` (`vo`) | `<context> <Name> [--module <module>]` | value object, spec |
802
- | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts`: the laws of an existing value object checked on generated values (fast-check, added to the development dependencies when missing) |
803
- | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold |
808
+ | `property` | `<context> <ValueObject> [--module <module>]` | `test/unit/<name>.vo.properties.spec.ts`: the laws of an existing value object checked on generated values (fast-check, added to the development dependencies when missing, with a note that names the install to run: the typecheck and the specs fail until then) |
809
+ | `vocabulary` | `<context> <Name> --value <value> [--value <value>]... [--module <module>]` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold. No spec holds it: a note says that the dead code check names the file until a value object, an aggregate or a schema reads it |
804
810
  | `domain-event` | `<context> <Aggregate> <Fact> [--module <module>]` | event named `<context>.<aggregate>.<fact>`, spec |
805
811
  | `error` (`refusal`) | `<context> <Refusal> <factory> [--code CODE] [--term ...]... [--module <module>]` | under `"stack.refusals": "named"`: the class `<Refusal>` in `domain/errors/<refusal>.error.ts`, extending `DomainRefusal` and reading its code from the list, its entry in `<context>.codes.ts` (the list `<Context>Codes` and its type `<Context>Code`, created when absent; the entry is added at the end), the static factory `<factory>` and its case in `test/unit/<refusal>.error.spec.ts`. Each is written when absent: run again, the command changes nothing; given another factory, it adds it to the class. `<Refusal>` is in PascalCase (a trailing `Error` is dropped), named with terms of the glossary and the qualifiers of a refusal, `invalid`, `unknown`, `already`, `too`, `no`, `missing` and `required` (`BookingTooLate`): a word the glossary does not define is refused, with the `--term` that adds it; `<factory>` starts with `for`, `with`, `because`, `on` or `at` (`forAccountId`), else the command refuses and proposes `for<Factory>`. The code is the refusal in constant case (`InsufficientFunds` sets `INSUFFICIENT_FUNDS`), `--code` gives another; refused: a code already set in the context. Under `factories` and `classes`, `<context> <Concept> <refusal>`: a static factory `<refusal>` on `domain/errors/<concept>.error.ts`, the class of the errors of that concept (created when absent, extending `ConceptError`), and its case in `test/unit/<concept>.error.spec.ts`. The factory is added after the last one; run again, the command changes nothing. `<Concept>` is a term of the glossary (`--term` adds it). The code is the name of the refusal in constant case, with the concept before it when the name is one word or a code of the kit (`Appointment notFound` sets `APPOINTMENT_NOT_FOUND`); `--code` takes one of the forms `errors/factory-name` accepts. Refused: a name such as `create` or `error1`, and a code already set in the context |
806
812
  | `domain-error` | `<context> <Name> [--code CODE] [--module <module>]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `named` and `factories`, with the `generate error` command to run instead |
807
813
  | `domain-service` | `<context> <Name> [--module <module>]` | service, spec |
808
814
  | `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]... [--module <module>]` | the vocabulary `<Aggregate>Status` (created from `--value`, two states at least, or given the values it misses), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle`: every value a state, the first one initial, the transitions asked, a `TODO(domain)` for the refusal of the concept error) and `test/unit/<aggregate>.state-machine.spec.ts` (each transition where it leads, a refusal from a state it does not leave); the aggregate is left to use it |
809
815
  | `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]] [--module <module>]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `created_at` first, or the `registered_at` of a table generated before 0.100, is refused: counted from the creation, the purge would erase people who are still customers) and the spec proves the purge of what outlived it. A second table of the context joins the declarations of both adapters. Refused without `stack.privacy` on (`init --force --privacy on`), with `--orm none` or `custom`, and before anything is written for a column that is not one, a column the table keeps for itself, a subject listed as personal or a mode that does not exist |
810
- | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and writes nothing until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
811
- | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
816
+ | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]] [--module <module>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and refuses, `throw undecided(...)` of the kernel, 501 at the edge, until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission and, for a handler that still refuses, one test that says so, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
817
+ | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search] [--module <module>]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its adapter, which refuses (`undecided`, 501) until the read is written, and the spec of that adapter, a fake of the port that answers what a test gives it, the spec of the handler, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
812
818
  | `port` | `<context> <Name> [--module <module>]` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
813
819
  | `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer] [--cache public\|private\|no-store] [--module <module>]` | under `"stack.routes": "controllers"`: a controller class in `presentation/http/<resource>/<use-case>/` (the resource is the first segment of the path), depending on `CommandBus` or `QueryBus`, behind the route group of its resource, written with it when it is new (`<resource>.routes.ts`: prefix, tag, `Authenticated`); a public use case stands in no group and says `guards: [Public]`; with class-validator one class per file (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`); `--mapper` and `--serializer` add a request mapper and a serializer the controller is given; a spec; no registration in a declared project, a controller built by hand in `<context>.routes.ts` (the module file with hand wiring) in an explicit one. Under `"functions"`: a `defineRoute` function, its spec, its registration in `<context>.routes.ts`, and `<use-case>-<role>.dto.ts` classes |
814
820
  | `controller` | the same arguments as `route` | the controller class, whatever `stack.routes` says: for a project of function routes that writes its next route as a class. `--cache` writes its cache policy: `private` (a `GET` of a caller, `max-age=0`, `must-revalidate`, strong `ETag`), `public` (a `GET` of a public use case, `max-age` 1m, `s-maxage` 5m, tagged with the resources of its path), `no-store`; refused on a write, and `public` behind a route group |
@@ -819,20 +825,20 @@ Next, in this order: the language of the context first, then the business decisi
819
825
  | `form` | `<context> <UseCase> [--module <module>]` | adds `const form = defineForm<Infer<typeof body>>({ ... })` before the `@Controller` of a use case that receives a body, and `form` to its options: the hints of its form at `GET /forms/<operationId>` |
820
826
  | `schema` | `<context\|shared-kernel> <Name>` | `presentation/http/shared/<name>.schema.ts` of the context, or `presentation/<name>.schema.ts` of the shared kernel: one shape of the contract declared once (a zod schema with `.meta({ id })`, a class-validator class, or a schema wrapped by `sharedSchema`), to fill; the routes use it whole, nested or in part |
821
827
  | `integration-event` | `<context> <Aggregate> <Fact> [--version n] [--module <module>]` | `defineIntegrationEvent` declaration in the published language (its payload in `<event>.v<n>.payload.ts` with class-validator or a schema of your own), index export, the publisher `application/integration/publishers/<event>.publisher.ts`, spec, registration, a line of `platform/audit/audited-events.ts` |
822
- | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; the type is taken as `list` prints it, with or without `@v<n>` (the newest version without, `--version <n>` saying the same as the suffix); refused unless the upstream is declared and publishes that version (a version that is not found is refused, never replaced by another) |
828
+ | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>] [--version <n>] [--name <Name>] [--module <module>]` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, which refuses the event (`undecided`) until what the context does with it is written, its spec, its idempotent subscription under the consumer name `<context>.<name>`; the type is taken as `list` prints it, with or without `@v<n>` (the newest version without, `--version <n>` saying the same as the suffix); refused unless the upstream is declared and publishes that version (a version that is not found is refused, never replaced by another) |
823
829
  | `personal-fields` | `<context> <table> --personal <column>,... --subject <column> [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>] [--tenant-scoped] [--module <module>]` | the declaration of the personal columns of a table no aggregate owns (a read model, a table of received messages, a table written by hand), given by its SQL name: `infrastructure/persistence/<table>.personal-fields.ts`, spelled as the erasure of the ORM reads it (on Drizzle and TypeORM with the properties the schema file gives the columns), joined to the erasure and to the export of the context, or written with them as `repository --personal` writes them for a first table, except the spec: `test/integration/<context>-personal-data.spec.ts` proves the fakes and names as `it.todo` each case to prove on the test database, no repository nor builder writing the rows of such a table. `--subject` is required: the row of such a table is rarely the person. The table is read in the schema file of the context and never changed. Refused: a table that file does not declare, a table that has a declaration, a column the definition of the table does not hold (said in the output instead when the definition takes columns from a spread or a helper), a table without `tenant_id` where the erasure is confined to a tenant, and what `--personal` of a repository refuses |
824
830
  | `erasure-handler` | `<context> [--module <module>]` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, a class `DataSubjectErasedIntegrationHandler` that erases what the context keeps of a person through its `<Context>PersonalDataErasure` when the platform announces `privacy.data-subject.erased` (`dataSubjectErasedV1` of the kernel), its spec on the fake, its idempotent subscription under the consumer name `<context>.data-subject-erased` (in a transaction behind a broker); for a context that runs as a service of its own or copies personal data from events. Refused until the context has its erasure (`generate repository --personal`), and refused on an event-sourced context, whose personal values are erased by destroying the key of the subject (`eraseDataSubject`) |
825
- | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
826
- | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; the type is taken as `list` prints it, `@v<n>` pinning the version (the newest without). In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model, which `generate read-model` writes: its port is received in the constructor |
831
+ | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit] [--name <Name>] [--module <module>]` | reaction to a domain event of the context, which refuses (`undecided`) until its policy is written, so that a command recording the fact fails until then, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
832
+ | `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>] [--module <module>]` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; the type is taken as `list` prints it, `@v<n>` pinning the version (the newest without). In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model, which `generate read-model` writes: its port is received in the constructor, written at once in a declared project when the read model of the same name exists. Each `@On` method refuses (`undecided`) until the line it writes is decided |
827
833
  | `read-model` | `<context> <Name> [--field <name>:<type>[:nullable]]... [--tenant-scoped] [--module <module>]` | the read model a projection keeps. The port in `application/ports/<name>.port.ts`: the type `<Name>Row` (the key `id`, then one field per `--field`, of type `string`, `number`, `boolean`, `instant` or `decimal`, `:nullable` for one that may hold null), the criteria `<name>Criteria` its readers may ask, and the abstract class `<Name>` over `ReadModelStore<<Name>Row>`. Its table, named after it in snake_case, in the schema of the context, with the column of each field and the columns of the store (`readModelColumns()`; the Prisma model holds them as fields). The column of a field accepts null whatever the row requires, a removed row being a trace that keeps its key and its stamp alone, and a check constraint `<table>_live_rows_whole` keeps every other row whole, `deleted or (<column> is not null and ...)` over the fields the row requires: `check(...)` on Drizzle, `table.check(...)` on Knex, `checks` of the entity schema on TypeORM, and on Prisma, whose schema language has none, a `TODO(domain)` line of the model that holds the `ALTER TABLE` to add to the migration. The tenant column and its index with `--tenant-scoped` or in a multi-tenant project. The store adapter `infrastructure/persistence/<orm>-<name>.repository.ts`, a class `<Orm><Name>` over the read model store of the ORM package (`DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore`, `TypeOrmReadModelStore`; `InMemoryReadModelStore` of the kernel in a project without an ORM), declared with `@Repository(<Name>)`, or bound in the module file in the explicit style (a note says where to build it on a hand-wired platform). The fake `test/fakes/<name>.fake.ts` and `test/integration/<name>.contract.spec.ts`, which runs `readModelContract` on the fake and on the adapter, and with a tenant proves that one tenant does not read the rows of another. A port of that name that is no read model is refused |
828
834
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName> [--global] [--module <module>]` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/jobs/job-settings.ts`; the grant of its system actor (below) |
829
835
  | `background-job` | `<context> <Name> --command <UseCaseName> [--module <module>]` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused), and its static `payload`, the schema of that payload in the validation library of the stack (a `z.object` under zod, a class of decorated fields without initial value under class-validator, a `Type.Object` under TypeBox, one refusal per field written by hand under Standard Schema and, with `--validation none`, in the `BackgroundJobPayloadSchema` of the kernel; a type it writes no check for is typed `unknown` with a `TODO(domain)`), which the worker reads the stored payload with before each run; `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due, then enqueues it as an earlier version declared it (`earlierVersionOf` of `@ddd-ts-kit/testing`) and shows the job dead with `INVALID_JOB_PAYLOAD` (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
830
836
  | `process` (`process-manager`) | `<context> <Name> [--module <module>]` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application on tsyringe, a queue and a runner in memory on the test buses otherwise) |
831
- | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | translator in `infrastructure/anti-corruption/`, spec |
832
- | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. A use case only a job sends the command of gets one test per job: `await application.runJob('<context>.<job>')` for a scheduled job (`application/scheduling/`), and, for a background job (`application/background/`), the request that enqueues it left to write, `const ran = await application.runDueJobs()`, which runs what is due on the queues as the worker would, and the assertion that the job is among `ran`; each then awaits `application.settled()`. `--job VoidInvoice` names one job, by its class or by the name it runs under (`billing.void-invoice`), also for a use case a route reaches, and writes `test/e2e/<use-case>-<job>.e2e.spec.ts`. Needs the route, that handler, or a job that sends the command |
837
+ | `acl` | `<context> <upstreamOrSystemName> [--module <module>]` | translator in `infrastructure/anti-corruption/`, which refuses every record (`undecided`) until its mapping is written, spec |
838
+ | `e2e` | `<context> <UseCaseName> [--event <eventType> \| --job <JobName>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it (while the use case still refuses, as generated, the scenarios that reach it are held by `pending(...)` of `@ddd-ts-kit/testing/e2e`, which fails them once it is written: remove it then); for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. A use case only a job sends the command of gets one test per job: `await application.runJob('<context>.<job>')` for a scheduled job (`application/scheduling/`), and, for a background job (`application/background/`), the request that enqueues it left to write, `const ran = await application.runDueJobs()`, which runs what is due on the queues as the worker would, and the assertion that the job is among `ran`; each then awaits `application.settled()`. `--job VoidInvoice` names one job, by its class or by the name it runs under (`billing.void-invoice`), also for a use case a route reaches, and writes `test/e2e/<use-case>-<job>.e2e.spec.ts`. Needs the route, that handler, or a job that sends the command |
833
839
  | `acceptance` | `<story> ["<title>"]` | `test/acceptance/<story>.acceptance.spec.ts`, written before the code: an `it.todo` per acceptance criterion of `docs/architecture/stories/<story>.md`, or per slice row of the story in `docs/architecture/slices.md` when it states none |
834
- | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
835
- | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; refused unless the upstream is declared |
840
+ | `policy` | `<context> <Name> --permission <aggregate>.<action> [--module <module>]` | `application/authorization/<name>.policy.ts`, which refuses everybody until its rule is written, spec; the generated use cases of its permission are written again to ask it, the birth of an aggregate about the aggregate it builds, a query about what it read, a handler that still refuses by a `TODO(domain)` where it will ask; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
841
+ | `gateway` | `<context> <upstreamContext> <Name> [--module <module>]` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; the contract is bound to a refusal (`undecided`, under a `TODO(platform)` that `todo` lists) until the implementation of the upstream is bound; refused unless the upstream is declared |
836
842
  | `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators] [--module <module>]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused. With `--kind simulated`: `infrastructure/external/simulated-<port>.adapter.ts` and its spec, a class of production code that answers in the memory of the process the way the outside system would, for an environment whose provider is simulated; it carries no policy (`--decorators` is refused), is declared `@Adapter(<Port>, { kind: 'external' })` or bound `.toClass(Simulated<Port>).as('external')`, and takes turns with the remote adapter, one per port |
837
843
  | `service` | `<context>` | `src/apps/<context>/main.ts` (kernel, platform, that context only, with its jobs: `jobSettings(process.env, '<context>')`), script `start:<context>`, a compose service behind the `services` profile, the knip entry, `deployable: true` in the config. The Dockerfile takes the entry as build argument `ENTRY` |
838
844
  | `worker` | none | `src/apps/worker/main.ts`: the modules of `main.ts`, no HTTP server, no outbox relay, the jobs started whatever `RUN_JOBS` says, a graceful stop; script `start:worker`, a compose service `worker` behind the `services` profile, the knip entry, `"worker": true` in the config, and `RUN_JOBS` defaulting to `false` from then on, so the API stops running the jobs the worker runs. With several instances the lock has to be a real one: `--cache redis` binds the Redis lock, without it the generated README says the limit. A context named `worker` is refused |
@@ -957,7 +963,7 @@ Next, in this order: the language of the context first, then the business decisi
957
963
  of the business wins. `--allow-name` overrides the three checks; `check`
958
964
  will still report what the glossary does not define. A name Windows reserves for a device (`CON`,
959
965
  `PRN`, `AUX`, `NUL`, `COM1` to `COM9`, `LPT1` to `LPT9`, whatever the case) is refused for a context and
960
- for a concept, since its files cannot be checked out there; `--allow-name` lets a concept through. Only the kinds whose usage shows `--term`
966
+ for a concept, since its files cannot be checked out there; `--allow-name` lets a concept through. A concept named after a reserved word of the language (`Return`, `Case`, `Default`, `Package`) or after a global the generated code uses (`Date`, `Error`, `Record`, `Map`) is refused with the reason, whatever the flags, since its code would not compile: name it in two words (`ReturnOrder`, `SupportCase`, `DueDate`). Only the kinds whose usage shows `--term`
961
967
  take it (`heldToGlossary` in `generate --help --json`, a line of `generate <kind> --help`); the
962
968
  others (`port`, `adapter`, `repository`, `route`, `representation`...) name what an earlier
963
969
  command named or what the concept they serve is called, and refuse `--term`, naming the kinds
@@ -2191,7 +2197,7 @@ it as one of its own options. The selection is never narrower than the declared
2191
2197
  because `context/declared-relationship` keeps every import between contexts inside them, and that
2192
2198
  rule runs on the whole project in every pipeline.
2193
2199
 
2194
- ![A change in the scheduling context of the example application: scheduling is selected, and so are notification and analytics, which are downstream of it in the context map; identity, upstream, is left to the default branch](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-affected-selection.svg)
2200
+ ![A change in the scheduling context of the example application: scheduling is selected, and so are notification and analytics, which are downstream of it in the context map; identity, upstream, is left to the default branch](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/cli-affected-selection.svg)
2195
2201
 
2196
2202
  In the example application, a branch that changes one aggregate of `scheduling`:
2197
2203
 
@@ -2344,7 +2350,11 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2344
2350
  default name.
2345
2351
  - Suppress one line with `// ddd-ts-kit-disable-next-line <rule-id> -- ADR-0007: <reason>`. Without a
2346
2352
  reason the comment is itself a violation, and so is a reason that names no existing decision record. On the first line of a file it also covers
2347
- file-level violations.
2353
+ file-level violations. A line that breaks two rules takes a list (`<rule-id>, <rule-id> -- ...`) or
2354
+ one directive per rule, one above the other: they all cover the line after the last of them. A
2355
+ directive that names an id no rule has, or a rule with nothing to report on that line, is a
2356
+ violation too (`config/unused-suppression`); the second is judged by `check` when it runs every
2357
+ rule, for a rule ESLint does not hold as well.
2348
2358
  - `--clean-only` runs the rules that judge a file on its own (`clean/stepdown`,
2349
2359
  `clean/function-size`, `clean/no-commented-out-code`, `clean/no-noise-comment`,
2350
2360
  `clean/no-escape-hatch`, `clean/no-hash-private`, `clean/blank-lines`, `clean/braces`,
@@ -2397,6 +2407,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2397
2407
  | `imports/alias-declared` | an `importAlias` that is not `@/` or `$<name>/`, or that is `$test/`, `$scripts/`, `$generated/`; a `paths` entry of `tsconfig.json` missing or different from what `importAlias` gives (the fix gives the entry); another `paths` entry under an alias; a `baseUrl`; a `tsconfig.build.json` whose `paths` differ; `paths` of `knip.json` mapping an alias; a script that compiles (`tsc` without `--noEmit`) and does not run `ddd-ts-kit build-aliases` afterwards; a script running `tsx --tsconfig` on another file; a `vitest` config at the root without `tsconfigPaths: true`, a `jest` config without the derived `moduleNameMapper` entries, or `.dependency-cruiser.cjs` without `tsConfig`; `module` and `moduleResolution` of `tsconfig.json` (or of a `tsconfig.build.json` that sets its own) that are not what `importExtension` gives: `ESNext`, `Bundler` and `customConditions` holding `node` under `none`, and under `js` a written value that is not a Node resolution; a jest mapping whose pattern does not end as the imports do; under `js`, a file directly under `test/support/` that imports a neighbour by its `.ts` while `tsconfig.json` sets neither `allowImportingTsExtensions` nor `rewriteRelativeImportExtensions`; whatever the ending, a `tsconfig.build.json`, or a tsconfig a script compiles what ships with, that resolves `noEmit` as `true`, or `allowImportingTsExtensions` as `true` without `rewriteRelativeImportExtensions` or `emitDeclarationOnly`. A project without `package.json` is not judged |
2398
2408
  | `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a directory of the config that leads out of the project; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
2399
2409
  | `config/suppression-needs-reason` | a suppression without a rule id or a reason (kept as an alias next to `governance/recorded-deviation`, which judges the reason) |
2410
+ | `config/unused-suppression` | a suppression that names an id no rule has; in a run of every rule, a suppression of a rule this checker alone holds, on for the file, that has nothing to report on the line the directive covers |
2400
2411
  | `authz/declared` | in a module file, `builder.command(X)` or `builder.query(X)` without `.requires(` or `.public(` in its chain, unless the message class carries `@Requires` or `@Public` of `@ddd-ts-kit/kernel/declarations`; with manual or nest wiring, a command or query class absent from every `requires(X, ...)` and `publicUseCase(X)` of the module file and of `application/authorization/`; a `defineRoute` without `security` (the route type refuses it already, and an empty list too: this is the text-level net for a definition built loosely); in the declared style, the exported class of a `*.command.ts` or `*.query.ts` file carrying neither `@Requires` nor `@Public` |
2401
2412
  | `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning); with `rebac`, a permission the schema leaves on the context while no source outside the tests writes an `operator` relationship (of a person or a system actor) on that context and no signed-in grant holds it, in a project that already makes a person operator of some context; silent with an authorizer of the project's own (a warning) |
2402
2413
  | `authz/system-actor-granted` | with `stack.authz` `rebac`, a `systemActor(<name>)` of a context (a literal, or `<Class>.name`) in a file that sends a command or a query not declared public, while no file of `platform/auth/relationships/` names the subject `system:system:<name>` |
@@ -2420,7 +2431,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2420
2431
  | `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
2421
2432
  | `events/outbox-required` | `stack.events` other than `outbox` with an ORM and no `stack.events` deviation; in `domain/` and `application/`, the import of a broker client or of a bus or relay implementation; a publisher depending on more than `IntegrationEventPublisher`; a platform module that hands out a publisher and never names `OutboxPublisher` |
2422
2433
  | `events/consumer-idempotent` | an integration event handler class (`application/integration/handlers/*.integration-handler.ts`) that neither carries `@IntegrationEventHandler` nor is registered in its module file under a consumer name; an `@IntegrationEventHandler` whose `consumer` is not a non-empty string literal; a free `on(` or `consume(` without `processed`; a consumer name used twice, in declarations and registrations alike |
2423
- | `domain-events/dispatched-on-save` | a call of `pullEvents()` in `application/` or `infrastructure/` of a context; `DomainEventDispatcher` imported, listed as a dependency or received by a constructor in `application/commands/`, `application/queries/` or a repository adapter. The module file, the tests, the platform and `main.ts` are left alone |
2434
+ | `domain-events/dispatched-on-save` | a call of `takeRecordedEvents()` in `application/` or `infrastructure/` of a context; `DomainEventDispatcher` imported, listed as a dependency or received by a constructor in `application/commands/`, `application/queries/` or a repository adapter. The module file, the tests, the platform and `main.ts` are left alone |
2424
2435
  | `domain-events/transactional-before-commit` | a domain event handler (a class of `application/event-handlers/*.event-handler.ts` or `application/integration/publishers/*.publisher.ts`, or any class carrying `@DomainEventHandler`) that runs before the commit and depends on `Cache`, `CachePurger`, `Lock`, `RateLimiter`, `JobScheduler` or `EventBus` of the kernel, on a port of `application/ports/` that is not a persistence port (no adapter under `infrastructure/persistence/`, or one anywhere else under `infrastructure/`), on anything imported from `infrastructure/`, another context, the platform or a package other than `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth`; an after-commit handler (`phase: 'after-commit'` in its decorator, or in the third argument of every `.on(` of the module file that mentions it) depending on `IntegrationEventPublisher`. `check-file` leaves the adapters of a port to the whole check |
2425
2436
  | `event-sourcing/state-in-apply` | in a class of `domain/aggregates/` extending `EventSourcedAggregate`, a write to something of `this` (assignment, increment, mutating call) outside the constructor, static methods, `apply<Fact>` methods and `restore`; `this.record(..)` inside an apply method |
2426
2437
  | `event-sourcing/past-tense` | in a file of `domain/aggregates/` holding an event-sourced aggregate, a name imported from `domain/events/` whose fact (the words after the name of the aggregate) holds no past participle, or only one spelled like its imperative at its head (`SetPrice`) |
@@ -1 +1 @@
1
- {"version":3,"file":"specifier-literals.d.ts","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAUvG"}
1
+ {"version":3,"file":"specifier-literals.d.ts","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAYvG"}
@@ -1,4 +1,4 @@
1
- import { statementOf } from '../check/scan/statement-of.js';
1
+ import { statementsOf } from '../check/scan/statements-of.js';
2
2
  /** An ambient module declaration, which a declaration file may hold: `declare module '@/x.js'`. */
3
3
  const AUGMENTATION = /(?<![\w$.])declare\s+module\s*$/;
4
4
  const META_RESOLVE = /(?<![\w$.])import\s*\.\s*meta\s*\.\s*resolve\s*\(\s*$/;
@@ -11,19 +11,19 @@ const NEAR = 80;
11
11
  * expressions, so a string that only looks like an import inside one of those is never answered.
12
12
  */
13
13
  export function specifierLiterals({ code, strings }) {
14
+ const statements = new Map(statementsOf(code, strings).map(({ literal, record }) => [literal, record.kind]));
14
15
  return strings.flatMap((literal) => {
15
- const kind = positionOf(code, literal);
16
+ const kind = positionOf(code, literal, statements.get(literal));
16
17
  if (kind === undefined) {
17
18
  return [];
18
19
  }
19
20
  return [{ literal, whole: kind === 'statement' || CLOSES_THE_ARGUMENT.test(code.slice(literal.end)) }];
20
21
  });
21
22
  }
22
- function positionOf(code, literal) {
23
+ function positionOf(code, literal, statement) {
23
24
  const before = code.slice(Math.max(0, literal.start - NEAR), literal.start);
24
- const found = statementOf(code, literal);
25
- if (found !== undefined) {
26
- return found.record.kind === 'dynamic' || found.record.kind === 'require' ? 'argument' : 'statement';
25
+ if (statement !== undefined) {
26
+ return statement === 'dynamic' || statement === 'require' ? 'argument' : 'statement';
27
27
  }
28
28
  if (META_RESOLVE.test(before)) {
29
29
  return 'argument';
@@ -1 +1 @@
1
- {"version":3,"file":"specifier-literals.js","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAIzD,mGAAmG;AACnG,MAAM,YAAY,GAAG,iCAAiC,CAAC;AACvD,MAAM,YAAY,GAAG,uDAAuD,CAAC;AAC7E,MAAM,mBAAmB,GAAG,UAAU,CAAC;AACvC,MAAM,IAAI,GAAG,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAkC;IACjF,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACjC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,KAAK,WAAW,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,UAAU,CAAC,IAAY,EAAE,OAAqB;IACrD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IACvG,CAAC;IAED,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9B,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC"}
1
+ {"version":3,"file":"specifier-literals.js","sourceRoot":"","sources":["../../src/build/specifier-literals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAI3D,mGAAmG;AACnG,MAAM,YAAY,GAAG,iCAAiC,CAAC;AACvD,MAAM,YAAY,GAAG,uDAAuD,CAAC;AAC7E,MAAM,mBAAmB,GAAG,UAAU,CAAC;AACvC,MAAM,IAAI,GAAG,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAkC;IACjF,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAE7G,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACjC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;QAEhE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,KAAK,WAAW,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,UAAU,CACjB,IAAY,EACZ,OAAqB,EACrB,SAAiC;IAEjC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE5E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IACvF,CAAC;IAED,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9B,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The severity a rule states for itself, which holds when the config says nothing; an id no rule carries blocks. */
2
+ export declare function defaultSeverity(ruleId: string): 'error' | 'warn';
3
+ //# sourceMappingURL=default-severity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-severity.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/default-severity.ts"],"names":[],"mappings":"AAOA,qHAAqH;AACrH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAEhE"}
@@ -0,0 +1,8 @@
1
+ import { DELEGATED_RULES } from './delegated-rules.js';
2
+ import { RULES } from './rules.js';
3
+ const DEFAULTS = new Map([...RULES, ...DELEGATED_RULES].map((rule) => [rule.id, rule.severity]));
4
+ /** The severity a rule states for itself, which holds when the config says nothing; an id no rule carries blocks. */
5
+ export function defaultSeverity(ruleId) {
6
+ return DEFAULTS.get(ruleId) ?? 'error';
7
+ }
8
+ //# sourceMappingURL=default-severity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-severity.js","sourceRoot":"","sources":["../../../src/check/catalogue/default-severity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,QAAQ,GAA0C,IAAI,GAAG,CAC7D,CAAC,GAAG,KAAK,EAAE,GAAG,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CACvE,CAAC;AAEF,qHAAqH;AACrH,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC;AACzC,CAAC"}
@@ -2,6 +2,8 @@
2
2
  export interface DelegatedRule {
3
3
  readonly id: string;
4
4
  readonly description: string;
5
+ /** The severity `ddd-ts-kit rules` lists when the config says nothing. */
6
+ readonly severity: 'error' | 'warn';
5
7
  /** The tool that decides, as `ddd-ts-kit rules --json` names it. */
6
8
  readonly checkedBy: string;
7
9
  /** Appended to the description in the listing. */
@@ -1 +1 @@
1
- {"version":3,"file":"delegated-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/delegated-rules.ts"],"names":[],"mappings":"AAKA,yHAAyH;AACzH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAgBnD,CAAC"}
1
+ {"version":3,"file":"delegated-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/delegated-rules.ts"],"names":[],"mappings":"AAKA,yHAAyH;AACzH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IACpC,oEAAoE;IACpE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAgBnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"delegated-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/delegated-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAgBlD,MAAM,CAAC,MAAM,eAAe,GAA6B;IACvD,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAClC,GAAG,IAAI;QACP,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,gBAAgB;QAC3B,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,8FAA8F,gBAAgB,oBAAoB,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,kGAAkG,WAAW,GAAG;KACnR,CAAC,CAAC;IACH;QACE,GAAG,cAAc;QACjB,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,kBAAkB;QAC7B,MAAM,EAAE,sBAAsB;QAC9B,KAAK,EACH,mVAAmV;KACtV;CACF,CAAC"}
1
+ {"version":3,"file":"delegated-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/delegated-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAkBlD,MAAM,CAAC,MAAM,eAAe,GAA6B;IACvD,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAClC,GAAG,IAAI;QACP,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,gBAAgB;QAC3B,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,8FAA8F,gBAAgB,oBAAoB,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,kGAAkG,WAAW,GAAG;KACnR,CAAC,CAAC;IACH;QACE,GAAG,cAAc;QACjB,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,kBAAkB;QAC7B,MAAM,EAAE,sBAAsB;QAC9B,KAAK,EACH,mVAAmV;KACtV;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The rules of this checker that `@ddd-ts-kit/eslint-plugin` judges too, from a syntax tree. Both read
3
+ * the same suppression directive, and ESLint may report where a reading of the text does not: this
4
+ * checker never says of such a rule that a directive silences nothing.
5
+ */
6
+ export declare const ESLINT_JUDGED_RULES: readonly string[];
7
+ //# sourceMappingURL=eslint-judged-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-judged-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-judged-rules.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAyDhD,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * The rules of this checker that `@ddd-ts-kit/eslint-plugin` judges too, from a syntax tree. Both read
3
+ * the same suppression directive, and ESLint may report where a reading of the text does not: this
4
+ * checker never says of such a rule that a directive silences nothing.
5
+ */
6
+ export const ESLINT_JUDGED_RULES = [
7
+ 'layer/domain-purity',
8
+ 'layer/application-inward',
9
+ 'layer/presentation-no-infrastructure',
10
+ 'layer/infrastructure-no-presentation',
11
+ 'context/published-language-only',
12
+ 'context/declared-relationship',
13
+ 'context/published-language-is-a-contract',
14
+ 'naming/business-name',
15
+ 'schema/presentation-only',
16
+ 'events/name-format',
17
+ 'test/no-mocks',
18
+ 'language/declared-vocabulary',
19
+ 'purity/no-system-clock',
20
+ 'purity/no-ambient-randomness',
21
+ 'purity/no-environment',
22
+ 'clean/stepdown',
23
+ 'clean/function-size',
24
+ 'clean/no-commented-out-code',
25
+ 'clean/no-noise-comment',
26
+ 'clean/no-escape-hatch',
27
+ 'clean/no-flag-argument',
28
+ 'clean/no-hash-private',
29
+ 'clean/one-export-per-file',
30
+ 'clean/file-size',
31
+ 'domain/value-object-class',
32
+ 'events/outbox-required',
33
+ 'events/consumer-idempotent',
34
+ 'domain-events/dispatched-on-save',
35
+ 'domain-events/transactional-before-commit',
36
+ 'event-sourcing/state-in-apply',
37
+ 'event-sourcing/past-tense',
38
+ 'event-sourcing/store-behind-repository',
39
+ 'event-sourcing/projection-never-appends',
40
+ 'event-sourcing/upcaster-required',
41
+ 'context/extractable',
42
+ 'authz/declared',
43
+ 'authz/in-application',
44
+ 'authz/actor-explicit',
45
+ 'authz/fields-by-schema',
46
+ 'aspects/outside-in',
47
+ 'tracing/platform-only',
48
+ 'standard/no-parallel-interface',
49
+ 'governance/recorded-deviation',
50
+ 'declarations/role-declared',
51
+ 'declarations/constructor-injection',
52
+ 'ports/abstract-class',
53
+ 'ports/implements-never-extends',
54
+ 'ports/no-token-constant',
55
+ 'ports/no-concrete-dependency',
56
+ 'ports/value-import',
57
+ 'scheduling/job-triggers-use-case',
58
+ 'lifecycle/status-through-machine',
59
+ 'process/sends-commands-only',
60
+ 'scheduling/job-name',
61
+ 'imports/alias-only',
62
+ 'imports/extension',
63
+ ];
64
+ //# sourceMappingURL=eslint-judged-rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-judged-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-judged-rules.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,qBAAqB;IACrB,0BAA0B;IAC1B,sCAAsC;IACtC,sCAAsC;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,0CAA0C;IAC1C,sBAAsB;IACtB,0BAA0B;IAC1B,oBAAoB;IACpB,eAAe;IACf,8BAA8B;IAC9B,wBAAwB;IACxB,8BAA8B;IAC9B,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,6BAA6B;IAC7B,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,uBAAuB;IACvB,2BAA2B;IAC3B,iBAAiB;IACjB,2BAA2B;IAC3B,wBAAwB;IACxB,4BAA4B;IAC5B,kCAAkC;IAClC,2CAA2C;IAC3C,+BAA+B;IAC/B,2BAA2B;IAC3B,wCAAwC;IACxC,yCAAyC;IACzC,kCAAkC;IAClC,qBAAqB;IACrB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gCAAgC;IAChC,+BAA+B;IAC/B,4BAA4B;IAC5B,oCAAoC;IACpC,sBAAsB;IACtB,gCAAgC;IAChC,yBAAyB;IACzB,8BAA8B;IAC9B,oBAAoB;IACpB,kCAAkC;IAClC,kCAAkC;IAClC,6BAA6B;IAC7B,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;CACpB,CAAC"}
@@ -1,9 +1,13 @@
1
+ interface EslintOnlyRule {
2
+ readonly id: string;
3
+ readonly description: string;
4
+ /** The severity of the rule when the config says nothing. */
5
+ readonly severity: 'error' | 'warn';
6
+ }
1
7
  /**
2
8
  * Rules of the architecture reference that need a syntax tree: `@ddd-ts-kit/eslint-plugin`
3
9
  * holds them, this checker only knows their ids so that the config may set their severity.
4
10
  */
5
- export declare const ESLINT_ONLY_RULES: readonly {
6
- readonly id: string;
7
- readonly description: string;
8
- }[];
11
+ export declare const ESLINT_ONLY_RULES: readonly EslintOnlyRule[];
12
+ export {};
9
13
  //# sourceMappingURL=eslint-only-rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EA0F7F,CAAC"}
1
+ {"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAgHtD,CAAC"}