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
@@ -1,27 +0,0 @@
1
- import { execFileSync } from 'node:child_process';
2
- import { CliError } from '../../cli-error.js';
3
- import { gitArguments } from '../../commit/git-arguments.js';
4
- /**
5
- * The files changed since `commit`, the commit a ref the caller checked names, relative to the
6
- * project root: committed since the merge base, tracked files modified in the index or the
7
- * working tree (committed or not), and new files git does not track yet, which a generator has
8
- * just written and nothing has staged. Git is invoked here only to read the user's own history.
9
- */
10
- export function changedFiles(root, commit) {
11
- try {
12
- const [base = commit] = gitLines(root, ['merge-base', commit, 'HEAD']);
13
- const changed = gitLines(root, ['diff', '--name-only', '--relative', base]);
14
- const untracked = gitLines(root, ['ls-files', '--others', '--exclude-standard']);
15
- return new Set([...changed, ...untracked]);
16
- }
17
- catch {
18
- throw new CliError(`Could not list the files changed since ${commit.slice(0, 7)}.`, 'Check that the directory is a git repository and that the ref exists (fetch it in CI with enough history).');
19
- }
20
- }
21
- function gitLines(root, args) {
22
- return execFileSync('git', gitArguments(args), { cwd: root, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] })
23
- .split('\n')
24
- .map((line) => line.trim())
25
- .filter((line) => line !== '');
26
- }
27
- //# sourceMappingURL=changed-files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"changed-files.js","sourceRoot":"","sources":["../../../src/check/commands/changed-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc;IACvD,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACvE,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;QAC5E,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;QAEjF,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,QAAQ,CAChB,0CAA0C,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,EAC/D,4GAA4G,CAC7G,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,IAAuB;IACrD,OAAO,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;SAC/G,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;AACnC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const AUTHZ_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=authz-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authz-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6HxD,CAAC"}
@@ -1,127 +0,0 @@
1
- export const AUTHZ_DOCS = {
2
- 'authz/declared': {
3
- why: 'A use case nobody thought about is reachable by everybody. Declaring the permission next to the registration, or declaring the use case public, makes the decision visible in review and lets the bus middleware refuse everything else. The same holds for a route: its security is part of the contract, not a default. The route type enforces it already (`defineRoute` does not compile without `security` and refuses an empty list); this rule stays as the net for a definition built loosely, from an untyped object or a cast. On a message class, @Requires(...) or @Public() of @ddd-ts-kit/kernel/declarations is the declaration, in any project; in the declared style there is no registration to read, so a command or query class carrying neither is reported.',
4
- bad: `builder.command(VoidInvoiceCommand).handledBy(VoidInvoiceHandler, [InvoiceRepository]);
5
- defineRoute({ method: 'POST', path: '/invoices/:id/void' }, handler);
6
- // application/commands/void-invoice/void-invoice.command.ts, declared style
7
- export class VoidInvoiceCommand extends AuthorizedCommand<void> {}`,
8
- good: `builder.command(VoidInvoiceCommand).requires(billingPermissions['invoice.void']).handledBy(VoidInvoiceHandler, [InvoiceRepository]);
9
- builder.query(GetCatalogQuery).public().handledBy(GetCatalogHandler, [CatalogReader]);
10
- defineRoute({ method: 'POST', path: '/invoices/:id/void', security: ['bearer'] }, handler);
11
- // application/commands/void-invoice/void-invoice.command.ts, declared style
12
- @Requires(billingPermissions['invoice.void'])
13
- export class VoidInvoiceCommand extends AuthorizedCommand<void> {}`,
14
- },
15
- 'authz/in-application': {
16
- why: 'A right decided in a route is skipped by every other entry point: a consumer, a job, another route. Decided in an adapter or in an aggregate, it is invisible and tied to one authorization model. In the application layer, behind the Authorizer port, every right is declared once, tested once, and changing from roles to policies or relationships changes an adapter only. A route keeps the request glue of @ddd-ts-kit/auth (actorOf, sessionOf, resolveSession, a SessionAuthenticator); the domain sees neither the Actor, the Session nor the ExecutionContext. The access decorators (Requires, Public, Policy of @ddd-ts-kit/kernel/declarations) and the access ports of @ddd-ts-kit/auth (Access, PolicyAccess) are how the application layer says it: they are imported in application/ and refused in presentation/, infrastructure/ and domain/.',
17
- bad: `// presentation/http/void-invoice.route.ts
18
- if (!context.principal.roles.includes('admin')) {
19
- return { status: 403 };
20
- }
21
- // presentation/http/void-invoice.route.ts
22
- import { Requires } from '@ddd-ts-kit/kernel/declarations';`,
23
- good: `// presentation/http/void-invoice.route.ts
24
- await commandBus.execute(new VoidInvoiceCommand(actorOf(context.principal), params.invoiceId));
25
- // application/commands/void-invoice/void-invoice.handler.ts
26
- await this.access.authorize(command.actor, billingPermissions['invoice.void'], invoice);
27
- // application/authorization/only-issuer-voids.policy.ts
28
- @Policy(billingPermissions['invoice.void'], { name: 'billing.only-issuer-voids' })
29
- export class OnlyIssuerVoidsPolicy {}`,
30
- },
31
- 'authz/granted': {
32
- why: "In a project whose rights are roles (stack.authz rbac), a permission does two things: a use case requires it, and a role holds it. The generator declares the first; the grant lives in the roles of the platform. The super-admin holds the wildcard `*`, so a permission no role names is reachable by administrators only, the checks stay green and the people the use case was written for are refused at run time. It fails closed, which is safe, but silently. Judged: every key of every `definePermissions` set of a context is named in `<platformDir>/auth/roles/roles.ts` or in what every signed-in person holds (`signed-in-grants.ts`, which a context preset writes), by the entry of its set (`billingPermissions['invoice.issue']`), by its id (`'billing:invoice.issue'`) or by the wildcard of its context (`'billing:*'`); the bare `*` does not count, and a grant to `Role.System` does. A permission meant for administrators only is granted to `Role.Admin` by name, so that the intent is read in review. Silent when the rights are attributes or an authorizer of the project, and when the platform has no roles file. Under relationships (stack.authz rebac) the same question is asked of the operators: a permission the schema leaves on the context (the schema `init` writes derives on `context` every permission no element derives) is held by the operators of the context, and nobody is an operator until a relationship says so. It is granted when every signed-in person holds it (`signed-in-grants.ts`), or when a source outside the tests writes `{ object: 'context:<context>', relation: 'operator', subject: '<subject>' }` for it, a person (`user:<id>`: a bootstrap, a provisioning step) or a system actor, which holds the permissions of a use case only the system sends (`authz/system-actor-granted` judges that line itself). A permission derived on an element is held through relations the use cases write at run time: not judged. Judged only in a project that provisions operators in its tree, that is when some source makes a person (a subject other than `system:..`) operator of a context: a project that writes none provisions them out of the tree (a seed, an administration tool), and a generated project is silent until the team writes the first. Silent when the checker cannot read the schema (`authz/resource-modelled` says so), finds an operator tuple whose context it cannot read, or the project decides with an authorizer of its own (`createAuthorizer` imports a `*Authorizer` of the project), which may grant what the schema does not. A warning: it fails closed, and a permission granted to nobody can be a state between two slices.",
33
- bad: `// contexts/billing/application/authorization/billing.permissions.ts
34
- export const billingPermissions = definePermissions('billing', {
35
- 'invoice.void': { description: 'Void invoice' },
36
- });
37
- // platform/auth/roles/roles.ts
38
- export const roles = { [Role.Admin]: ['*'] };`,
39
- good: `// platform/auth/roles/roles.ts
40
- export const roles = {
41
- [Role.Admin]: ['*'],
42
- [Role.Accountant]: [billingPermissions['invoice.void']],
43
- };
44
- // or, when generating the use case: --permission invoice.void --grant accountant`,
45
- },
46
- 'authz/scope-narrows': {
47
- why: "Every signed-in person holds the grants of SignedInGrantsAuthorizer, whatever the model of the project: it answers them before it asks the model, for a check and for a listing alike, and the listing is `all`. A handler that narrows a search by the scope of such a permission reads every element for every person who signed in, and the tests of the handler stay green. It is the shortcut taken when the model refuses a search with no element to check (relationships answer RESOURCE_REQUIRED): the grant lets the query past the bus, and the scope no longer narrows anything. The model decides instead: under relationships, the requirement names an enclosing resource (`{ type: 'context', id: '<context>' }` as the generator writes it, or the tenant of the actor) and Access.scope answers the ids of the elements. Judged: the second argument of a `.scope(` call in a context, the entry of a permission set written in place or held in a constant or a field of the same file, against the grants of `<platformDir>/auth/authorization/signed-in-grants.ts` and those given to every `new SignedInGrantsAuthorizer({ grants })` as an array literal or a constant declared as one (an entry, an id, the wildcard of a context, the bare `*`). What it cannot read is reported, never taken as safe: grants built by a call or a spread, a permission handed in to a `.scope(` call on `access`. What it cannot see at all: a permission every person holds through the model itself (a role every account has, a relation every member of a tenant has), and a search that does not ask Access.scope. Those are decisions of the model: the specs of the search prove them, with the real authorizer, an element of another owner absent. A warning: a search every signed-in person may run on every element is legitimate, its scope then says nothing.",
48
- bad: `// platform/auth/authorization/signed-in-grants.ts
49
- export const signedInGrants: readonly Grant[] = [docsPermissions['document.search']];
50
- // contexts/docs/application/queries/search-documents/search-documents.handler.ts
51
- const scope = await this.access.scope(query.actor, docsPermissions['document.search'], 'document');`,
52
- good: `// contexts/docs/application/queries/search-documents/search-documents.query.ts
53
- @Requires(docsPermissions['document.search'], { resource: () => ({ type: 'context', id: 'docs' }) })
54
- export class SearchDocumentsQuery extends AuthorizedQuery<SearchDocumentsResult> {}
55
- // contexts/docs/application/queries/search-documents/search-documents.handler.ts
56
- const scope = await this.access.scope(query.actor, docsPermissions['document.search'], 'document');
57
- // { kind: 'ids', ids: [...] }: the documents the actor reaches, an empty page for one who reaches none`,
58
- },
59
- 'authz/resource-modelled': {
60
- why: "Under relationships, a requirement names the element its permission is checked on. The schema written by `init` derives on `context` only the permissions no element derives, so a permission modelled on an element (`service: { derived: { [cataloguePermissions['service.change'].id]: 'owning-member' } }`) is not held by the operators of the context: a requirement that still names `{ type: 'context' }` for it is refused to everybody, or, where the project's own bridge grants it to every member, the rule on the element is never asked and any member acts on any element, while every spec written as a member of the owning team stays green. A search whose gate and scope use the same permission has the same shape: the gate on the context fails once the permission is derived on the element, so it needs two permissions, one held on the context to run the search and one derived on the element for its scope. Judged: the permissions the types other than `context` derive in `<platformDir>/auth/relationships/relationship-schema.ts` (the types written in place or in the `elements` object), against the resource of every `@Requires`, `.requires(` and `requires(` outside the tests. What it cannot read is reported, never taken as safe: a schema built by a call, a spread other than `elements`, a key computed in another way, a resource that is not an object literal with a literal `type`. An error under relationships; silent with any other model.",
61
- bad: `// platform/auth/relationships/relationship-schema.ts
62
- const elements: SchemaDefinition = {
63
- service: { relations: { owner: ['user'] }, derived: { [cataloguePermissions['service.change'].id]: 'owner' } },
64
- };
65
- // contexts/catalogue/application/commands/change-service/change-service.command.ts
66
- @Requires(cataloguePermissions['service.change'], { resource: () => ({ type: 'context', id: 'catalogue' }) })
67
- export class ChangeServiceCommand extends AuthorizedCommand<void> {}`,
68
- good: `// contexts/catalogue/application/commands/change-service/change-service.command.ts
69
- @Requires(cataloguePermissions['service.change'], {
70
- resource: (command) => ({ type: 'service', id: command.serviceId }),
71
- })
72
- export class ChangeServiceCommand extends AuthorizedCommand<void> {
73
- constructor(actor: Actor, readonly serviceId: string) { super(actor); }
74
- }`,
75
- },
76
- 'authz/policy-asked': {
77
- why: 'The bus checks the permission of a use case before its handler runs, with the identifier of the element at most: it cannot read the element. A policy is the part of the right that needs the element (only the issuer, not after closing), and it is evaluated only when the handler asks Access once the element is loaded. A handler that forgets to ask leaves the policy declared, tested and never applied, and nothing at run time says so. Judged: for every permission refined by a policy (@Policy or definePolicy in application/authorization/), the handlers in the folder of each command or query that requires it (@Requires, .requires(...) or requires(X, ...)) call authorize, decide or decideOn and name that permission in their code, and drop no decision: a decide or decideOn on it written as a statement of its own leaves a denial without effect, and is reported. The TODO(domain) the generator leaves in such a handler, naming the permission, is accepted, and so is a TODO(review) that names it: `ddd-ts-kit todo` lists both, and until it is done the authorization module refuses the result of the handler at run time (PolicyNotAskedError), as it refuses a success answered by a handler when no question on the permission was allowed (PolicyDenialIgnoredError); a failed Result or a throw stays the refusal of the handler.',
78
- bad: `// application/authorization/only-issuer-voids.policy.ts
79
- @Policy(billingPermissions['invoice.void'], { name: 'billing.only-issuer-voids' })
80
- export class OnlyIssuerVoidsPolicy {}
81
- // application/commands/void-invoice/void-invoice.handler.ts
82
- const invoice = await this.invoices.get(command.invoiceId);
83
- invoice.void(this.clock.now());`,
84
- good: `// application/commands/void-invoice/void-invoice.handler.ts
85
- const invoice = await this.invoices.get(command.invoiceId);
86
- await this.access.authorize(command.actor, billingPermissions['invoice.void'], invoice);
87
- invoice.void(this.clock.now());`,
88
- },
89
- 'authz/actor-explicit': {
90
- why: 'A handler that reads "the current user" from an ambient context depends on something no signature shows: a consumer or a job that forgot to set it fails at run time, and a test has to set a global. With the actor as data of the command, the use case says who acts, and any caller can send it. The ExecutionScope port (and ActorContext, a view of it) is named and read by infrastructure and the platform alone, as a type or as a value in a dependency list, for audit columns, tenant scoping and correlation: stampCreation, stampUpdate and tenantScopeOf belong in a repository adapter.',
91
- bad: `// application/commands/void-invoice/void-invoice.handler.ts
92
- constructor(private readonly invoices: InvoiceRepository, private readonly scope: ExecutionScope) {}
93
- const actor = this.actors.require();
94
- const { tenantId } = this.scope.require();
95
- const stamp = stampCreation(this.scope, this.clock);`,
96
- good: `// application/commands/void-invoice/void-invoice.command.ts
97
- export class VoidInvoiceCommand extends AuthorizedCommand {}
98
- // application/commands/void-invoice/void-invoice.handler.ts
99
- const { actor } = command;
100
- // infrastructure/persistence/drizzle-invoice.repository.ts
101
- const row = { ...toRow(invoice), ...stampCreation(this.scope, this.clock), ...tenantScopeOf(this.scope) };`,
102
- },
103
- 'authz/fields-by-schema': {
104
- why: 'A query that removes a field for the callers without a role answers one way in JSON and is forgotten in the CSV export, the XML of a partner and the form of the front end, and nobody reading the contract knows the field may be missing. Marked on the response schema with withFieldAccess of @ddd-ts-kit/http, the field is reserved to a permission or a policy once: the pipeline leaves it out of every representation for an actor who may not read it, refuses it in a request body from one who may not set it, the contract says so with x-field-access, and a form described by the server shows it read-only or not at all. Which rows the actor may read stays the access scope of the query. Judged: a test on the roles (roles.includes, some, every, find, indexOf), a comparison with a role, or isAdmin, in a file under application/queries/ of a context.',
105
- bad: `// application/queries/get-appointment/get-appointment.handler.ts
106
- const row = await this.appointments.findById(query.appointmentId);
107
- return query.actor.roles.includes('practitioner') ? row : { ...row, internalNote: undefined };`,
108
- good: `// application/queries/get-appointment/get-appointment.handler.ts
109
- return this.appointments.findById(query.appointmentId);
110
- // presentation/http/appointments/get-appointment/get-appointment.controller.ts
111
- const answer = withFieldAccess(classSchema(GetAppointmentAnswer), {
112
- internalNote: { read: { permission: schedulingPermissions['appointment.note.read'] } },
113
- });`,
114
- },
115
- 'authz/system-actor-granted': {
116
- why: "Under relationships, the application acts on its own behalf as a system actor: a scheduled job, an integration handler, a process, an event handler that sends a command. The actor `system:<name>` is a subject of type `system`, and nothing is permitted to it until a relationship says so; the command it sends is refused with FORBIDDEN when the application runs, and a spec on a fake authorizer never shows it. `generate job` writes the relationship for a job; a handler written by hand needs its line in `systemRelationships` of `<platformDir>/auth/relationships/relate-system-actors.ts`. Judged: every `systemActor(<name>)` of a context outside the tests, with a name the checker reads (a string literal, or `<Class>.name` of a class of the same file), in a file that sends at least one command or query not declared public (`@Public()`, `.public()`, `publicUseCase(..)`): the files of `auth/relationships/` must name the subject `system:system:<name>` (the authorizer reads an actor as `<type>:<id>`, and the id of a system actor is `system:<name>`; a grant written `system:<name>` never matches). Not judged: a name the checker cannot read, a file that sends no message, and a project whose rights are roles or attributes, where the right is the permission of a role or a rule shared by system actors rather than a relationship per actor. Silent without `relate-system-actors.ts`, and with an authorizer of the project's own (`createAuthorizer` imports a `*Authorizer` of the project), which may let a system actor operate its context. An error: the refusal is certain at run time with the standard authorizer.",
117
- bad: `// application/event-handlers/open-portfolio-for-advisor.event-handler.ts
118
- await this.commands.execute(new OpenPortfolioCommand(systemActor(OpenPortfolioForAdvisorEventHandler.name), branchId));
119
- // platform/auth/relationships/relate-system-actors.ts
120
- const systemRelationships: readonly RelationTuple[] = [];`,
121
- good: `// platform/auth/relationships/relate-system-actors.ts
122
- const systemRelationships: readonly RelationTuple[] = [
123
- { object: 'context:branch-network', relation: 'operator', subject: 'system:system:OpenPortfolioForAdvisorEventHandler' },
124
- ];`,
125
- },
126
- };
127
- //# sourceMappingURL=authz-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authz-docs.js","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,mvBAAmvB;QACxvB,GAAG,EAAE;;;mEAG0D;QAC/D,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,q0BAAq0B;QAC10B,GAAG,EAAE;;;;;4DAKmD;QACxD,IAAI,EAAE;;;;;;sCAM4B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE,mlFAAmlF;QACxlF,GAAG,EAAE;;;;;8CAKqC;QAC1C,IAAI,EAAE;;;;;kFAKwE;KAC/E;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;;;;wGAK8F;KACrG;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,u6CAAu6C;QAC56C,GAAG,EAAE;;;;;;qEAM4D;QACjE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,8yCAA8yC;QACnzC,GAAG,EAAE;;;;;gCAKuB;QAC5B,IAAI,EAAE;;;gCAGsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ykBAAykB;QAC9kB,GAAG,EAAE;;;;qDAI4C;QACjD,IAAI,EAAE;;;;;2GAKiG;KACxG;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,i1BAAi1B;QACt1B,GAAG,EAAE;;+FAEsF;QAC3F,IAAI,EAAE;;;;;IAKN;KACD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+kDAA+kD;QACplD,GAAG,EAAE;;;0DAGiD;QACtD,IAAI,EAAE;;;GAGP;KACA;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const CLEAN_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=clean-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clean-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/clean-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqCxD,CAAC"}
@@ -1,39 +0,0 @@
1
- export const CLEAN_DOCS = {
2
- 'clean/stepdown': {
3
- why: 'A reader opens a file to learn what it does, then, if needed, how. With the public members first and each helper below its first caller, the file reads once from top to bottom, like a newspaper article. Helpers on top force the reader to hold details before knowing what they serve.',
4
- bad: `function parseLine(line: string) {}
5
- export function parseFile(text: string) { return text.split('\\n').map(parseLine); }`,
6
- good: `export function parseFile(text: string) { return text.split('\\n').map(parseLine); }
7
- function parseLine(line: string) {}`,
8
- },
9
- 'clean/function-size': {
10
- why: 'A long function mixes several levels of abstraction, and its parts can be neither named nor tested alone. More than three parameters usually travel together because they are one concept without a type: name it, as a typed props object or a value object (`Invoice.draft({ customer, lines, currency, draftedAt })`), rather than adding a fourth parameter. One parameter typed `Actor` or `Date`, who acts and when, is the context of an intention and is not counted. Small functions with few arguments are what makes the stepdown order readable. The limits are configurable under `limits`, up to a ceiling: no function is longer than 100 lines, describe callbacks, module files and tests included, and that ceiling is an error whatever the severity of the rule. A `describe` longer than that covers several behaviours: the spec file holds one top-level `describe` per behaviour (a nested one counts in its parent), and a second spec file is needed only past the 350 lines of `clean/file-size`.',
11
- bad: `function issue(id: string, customer: string, amount: number, currency: string, dueOn: Date) {}`,
12
- good: `function issue(id: string, customer: CustomerId, total: Money) {}`,
13
- },
14
- 'clean/no-commented-out-code': {
15
- why: 'Nobody dares to delete commented-out code: it looks important and is never run, compiled or tested. It rots while the code around it changes, and misleads the next reader. Version control keeps every past version without that cost.',
16
- bad: `// const total = lines.reduce((sum, line) => sum + line.amount, 0);`,
17
- good: `(nothing: the old version is in the history)`,
18
- },
19
- 'clean/no-noise-comment': {
20
- why: 'A comment that repeats the name, draws a banner or records who changed what adds reading time and no information, and it drifts from the code it sits on. Comments are kept for what the code cannot say: why, a warning, an external reference.',
21
- bad: `/** Gets the order. */
22
- getOrder(): Order {}
23
- // ---------- helpers ----------`,
24
- good: `// Rounded half-even: required by the tax authority (art. 242).
25
- round(amount: Money): Money {}`,
26
- },
27
- 'clean/no-escape-hatch': {
28
- why: 'any, the non-null assertion and suppressed diagnostics tell the compiler to stop checking, and the error it would have reported comes back at run time, far from its cause. When one is really needed, the written reason is what lets a reviewer judge it.',
29
- bad: `const total = (order as any).lines!.length; // @ts-ignore`,
30
- good: `if (order.lines === undefined) throw new OrderWithoutLines(order.id);`,
31
- },
32
- 'clean/no-flag-argument': {
33
- why: 'A boolean parameter means the method does two things, and the call site (`close(true)`) does not say which. Two methods named after the two intentions are readable at the call site and can each guard their own invariants.',
34
- bad: `cancel(refund: boolean): void {}`,
35
- good: `cancel(): void {}
36
- cancelAndRefund(): void {}`,
37
- },
38
- };
39
- //# sourceMappingURL=clean-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clean-docs.js","sourceRoot":"","sources":["../../../src/check/explain/clean-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,4RAA4R;QACjS,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;oCAC0B;KACjC;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,89BAA89B;QACn+B,GAAG,EAAE,gGAAgG;QACrG,IAAI,EAAE,mEAAmE;KAC1E;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,yOAAyO;QAC9O,GAAG,EAAE,qEAAqE;QAC1E,IAAI,EAAE,8CAA8C;KACrD;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kPAAkP;QACvP,GAAG,EAAE;;iCAEwB;QAC7B,IAAI,EAAE;+BACqB;KAC5B;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,6PAA6P;QAClQ,GAAG,EAAE,2DAA2D;QAChE,IAAI,EAAE,uEAAuE;KAC9E;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,+NAA+N;QACpO,GAAG,EAAE,kCAAkC;QACvC,IAAI,EAAE;2BACiB;KACxB;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const CONTEXT_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=context-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/context-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0C1D,CAAC"}
@@ -1,44 +0,0 @@
1
- export const CONTEXT_DOCS = {
2
- 'context/published-language-only': {
3
- why: 'A bounded context owns its model and must be free to change it. The published language is the only part designed for others; importing anything else couples two models and turns every refactoring into a cross-team negotiation.',
4
- bad: `// contexts/shipping/application/...
5
- import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';`,
6
- good: `// contexts/shipping/application/...
7
- import type { InvoiceIssuedV1 } from '@/contexts/billing/published-language';`,
8
- },
9
- 'context/declared-relationship': {
10
- why: 'The context map is a strategic decision, not a side effect of an import. Declaring the upstream and the pattern keeps the map reviewable and lets the cycle check work.',
11
- bad: `// shipping imports billing/published-language, config has "shipping": { "upstreams": [] }`,
12
- good: `"shipping": { "classification": "supporting",
13
- "upstreams": [{ "context": "billing", "relationship": "published-language" }] }`,
14
- },
15
- 'context/published-language-is-a-contract': {
16
- why: 'A contract that re-exports a domain class is no contract: consumers get the internal model and its behaviour through the back door. The published language holds serializable types that are versioned on purpose.',
17
- bad: `// published-language/index.ts
18
- export { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';`,
19
- good: `// published-language/invoice-issued.v1.integration-event.ts
20
- export interface InvoiceIssuedV1Payload { readonly invoiceId: string }`,
21
- },
22
- 'context/no-cycle': {
23
- why: 'Two contexts that are upstream of each other are one context with a line drawn through it: neither can be changed, deployed or understood alone. One of them has to be the supplier.',
24
- bad: `"billing": { "upstreams": [{ "context": "shipping" }] },
25
- "shipping": { "upstreams": [{ "context": "billing" }] }`,
26
- good: `"billing": { "upstreams": [] },
27
- "shipping": { "upstreams": [{ "context": "billing" }] }`,
28
- },
29
- 'context/extractable': {
30
- why: 'A bounded context is a deployable unit in waiting. Moving one to its own service must change a composition root and adapters, never domain or application code. A module that wires another context, a repository that reads its tables, a handler that loads its aggregates or a map shared through an export all hold only while both live in one process and one database. In the declared style the wiring is written on the classes: a role file that imports a port of another context (anything of its domain/repositories/*.repository.ts or application/ports/*.port.ts) ties the composition of the two, so ports come from the context itself, the kernel, @ddd-ts-kit/auth and the platform.',
31
- bad: `// contexts/shipping/infrastructure/persistence/drizzle-parcel.repository.ts
32
- import { invoices } from '@/contexts/billing/infrastructure/persistence/invoice.schema';
33
- export const cache = new Map<string, Parcel>();
34
- // contexts/shipping/application/commands/ship-parcel/ship-parcel.handler.ts, declared style
35
- import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
36
- good: `// contexts/shipping/application/ports/invoice-status.gateway.port.ts
37
- export abstract class InvoiceStatusGateway { abstract isPaid(invoiceId: string): Promise<boolean>; }
38
- // contexts/shipping/infrastructure/external/in-process-invoice-status.gateway.ts
39
- import type { InvoiceStatus } from '@/contexts/billing/published-language';
40
- // contexts/shipping/application/commands/ship-parcel/ship-parcel.handler.ts, declared style
41
- import { InvoiceStatusGateway } from '@/contexts/shipping/application/ports/invoice-status.gateway.port';`,
42
- },
43
- };
44
- //# sourceMappingURL=context-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-docs.js","sourceRoot":"","sources":["../../../src/check/explain/context-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,iCAAiC,EAAE;QACjC,GAAG,EAAE,oOAAoO;QACzO,GAAG,EAAE;kFACyE;QAC9E,IAAI,EAAE;8EACoE;KAC3E;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,yKAAyK;QAC9K,GAAG,EAAE,4FAA4F;QACjG,IAAI,EAAE;kFACwE;KAC/E;IACD,0CAA0C,EAAE;QAC1C,GAAG,EAAE,oNAAoN;QACzN,GAAG,EAAE;kFACyE;QAC9E,IAAI,EAAE;uEAC6D;KACpE;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,sLAAsL;QAC3L,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;wDAC8C;KACrD;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,0qBAA0qB;QAC/qB,GAAG,EAAE;;;;+FAIsF;QAC3F,IAAI,EAAE;;;;;0GAKgG;KACvG;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const DOMAIN_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=domain-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/domain-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BzD,CAAC"}
@@ -1,30 +0,0 @@
1
- export const DOMAIN_DOCS = {
2
- 'domain/value-object-class': {
3
- why: 'A value of the model is a class extending ValueObject of the kernel, never a function that builds a plain object. The class compares by value with no identity (equals), checks its invariants once, in the static factory that is the only way in through a private constructor, keeps its behaviour next to its data, refuses an invalid input with the factory of the error of its concept, freezes its props, and is recognised with instanceof by a boundary mapper. A function answering { amount, currency } gives none of that: every caller re-validates, compares field by field, and the operations of the value scatter. So a file of domain/value-objects/ (or a *.vo.ts of the shared kernel) exports one class extending ValueObject, directly or through another value object of the project, with a private or protected constructor and static factories, and no function, arrow constant or object literal; the types of its props may be exported. In domain/ and in the shared kernel outside presentation/, an exported function that answers a record of data (data entries, no spread, nothing a call or new of the model built) is reported. A domain service, a state machine, a specification answering a boolean or an object of functions, a record of value objects the function builds, a record derived by a spread and a function declaring a return type of a package answer something else and are not concerned; a decision answered as a plain record is a value, written as a class or thrown as a refusal. The rule holds under "stack.values": "classes", which init writes; a config that does not say keeps the free form of 0.15.',
4
- bad: `// domain/value-objects/money.vo.ts
5
- export type Money = { readonly amount: number; readonly currency: string };
6
-
7
- export const money = (amount: number, currency: string): Money => ({ amount, currency });`,
8
- good: `// domain/value-objects/money.vo.ts (npx ddd-ts-kit generate value-object billing Money)
9
- export type MoneyProps = { readonly amount: number; readonly currency: string };
10
-
11
- export class Money extends ValueObject<MoneyProps> {
12
- private constructor(props: MoneyProps) {
13
- super(props);
14
- }
15
-
16
- static of(amount: number, currency: string): Money {
17
- if (!Number.isInteger(amount)) {
18
- throw InvoiceError.invalidAmount(amount);
19
- }
20
-
21
- return new Money({ amount, currency });
22
- }
23
-
24
- add(other: Money): Money {
25
- return Money.of(this.props.amount + other.props.amount, this.props.currency);
26
- }
27
- }`,
28
- },
29
- };
30
- //# sourceMappingURL=domain-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain-docs.js","sourceRoot":"","sources":["../../../src/check/explain/domain-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,8kDAA8kD;QACnlD,GAAG,EAAE;;;0FAGiF;QACtF,IAAI,EAAE;;;;;;;;;;;;;;;;;;;EAmBR;KACC;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const ERRORS_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=errors-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmDzD,CAAC"}
@@ -1,53 +0,0 @@
1
- export const ERRORS_DOCS = {
2
- 'errors/code-unique': {
3
- why: 'The code is the identity of a refusal for everything outside the domain: the HTTP mapper gives it a status, the OpenAPI document lists it, the audit trail and the span record it as the reason, a client branches on it and a test asserts it. Nothing downstream knows the class or the factory. Two refusals of one context under one code are therefore one refusal for every reader, whatever their messages say. The code is checked per context, since each context owns its language: the same code in two contexts is allowed, and the error mapper of the application gives it one status. Every form is read: the first argument of `refusal(..)` in a factory of a concept class, the `readonly code` field of a class per error, and under "stack.refusals": "named" the values of <context>.codes.ts, the code list of the context, where two keys under one value are reported. Judged under "stack.refusals": "factories" and "named": a project whose config does not say was written when an error was a class, and keeps working untouched.',
4
- bad: `// appointment.codes.ts
5
- export const AppointmentCodes = {
6
- SlotTaken: 'BOOKING_REFUSED',
7
- OutsideAvailability: 'BOOKING_REFUSED',
8
- } as const;`,
9
- good: `// appointment.codes.ts
10
- export const AppointmentCodes = {
11
- SlotTaken: 'SLOT_TAKEN',
12
- OutsideAvailability: 'OUTSIDE_AVAILABILITY',
13
- } as const;`,
14
- },
15
- 'errors/code-listed': {
16
- why: 'Under "stack.refusals": "named" a refusal is a class of its own, `SlotTaken`, and its code is what everything outside the domain knows it by: the error mapper gives it a status, the OpenAPI document and the client list it, a test asserts it. The codes of a context are therefore one closed list, <context>.codes.ts, `export const SchedulingCodes = { SlotTaken: \'SLOT_TAKEN\' } as const`, and each class reads its code from it under its own name, `readonly code = SchedulingCodes.SlotTaken`: the list is the contract of the context in one file, two refusals cannot drift to one code unseen, and the type of each code stays its own literal. Reported: a refusal class (a class of domain/errors/ that extends DomainRefusal, abstract ones aside) without a code, with a code written another way (a string literal, another entry, the list of another context), a context with refusal classes and no codes.ts, a class whose name the list does not hold; in codes.ts, a list missing or not `as const`, a key that names no refusal class of the context (a code nothing raises), and a value that is not a string literal in constant case. The value is usually the name of the class in constant case, but need not be: a migrated project keeps its codes, since the code is the contract. Judged under "stack.refusals": "named" only.',
17
- bad: `// scheduling.codes.ts
18
- export const SchedulingCodes = {
19
- SlotTaken: 'SLOT_TAKEN',
20
- SlotHeld: 'SLOT_HELD',
21
- };
22
-
23
- // domain/errors/slot-taken.error.ts
24
- export class SlotTaken extends DomainRefusal {
25
- readonly code = 'SLOT_TAKEN';
26
- }`,
27
- good: `// scheduling.codes.ts
28
- export const SchedulingCodes = {
29
- SlotTaken: 'SLOT_TAKEN',
30
- } as const;
31
-
32
- export type SchedulingCode = (typeof SchedulingCodes)[keyof typeof SchedulingCodes];
33
-
34
- // domain/errors/slot-taken.error.ts
35
- export class SlotTaken extends DomainRefusal {
36
- readonly code = SchedulingCodes.SlotTaken;
37
-
38
- static forCalendar(calendarId: string, startsAt: Date) {
39
- return SlotTaken.refusal(\`The slot starting at \${startsAt.toISOString()} is already held.\`, { calendarId, startsAt });
40
- }
41
- }`,
42
- },
43
- 'errors/known-code': {
44
- why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code is written as a string or as a member of a code list, `SchedulingCodes.SlotTaken` or `KitCodes.Forbidden` of @ddd-ts-kit/kernel, which the compiler checks too; a key the list does not hold is reported, and so is a list that is neither that of a context, of the shared kernel nor of the kit. A code exists when a factory or an error class of the context of the route sets it, when the <context>.codes.ts of that context lists it (under "stack.refusals": "named"), when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, NOT_ACCEPTABLE, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, SERVICE_UNAVAILABLE (a unit of work the database could not serve in time), the conditions of a write: PRECONDITION_FAILED, PRECONDITION_REQUIRED, and the refusals of a file: FILE_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, FILE_NOT_FOUND, FILE_REJECTED, INVALID_FILE_KEY. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" and "named".',
45
- bad: `// domain/errors/appointment.error.ts sets 'SLOT_TAKEN'
46
- defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_ALREADY_TAKEN'], security: ['bearer'] }, book);`,
47
- good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);
48
-
49
- // or, under "stack.refusals": "named", by the members of the code lists
50
- defineRoute({ method: 'POST', path: '/appointments', errors: [KitCodes.Forbidden, SchedulingCodes.SlotTaken], security: ['bearer'] }, book);`,
51
- },
52
- };
53
- //# sourceMappingURL=errors-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;YAIG;QACR,IAAI,EAAE;;;;YAIE;KACT;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,4/CAA4/C;QACjgD,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE;;;6IAGmI;KAC1I;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const EVENT_SOURCING_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=event-sourcing-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-sourcing-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/event-sourcing-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4DjE,CAAC"}
@@ -1,62 +0,0 @@
1
- export const EVENT_SOURCING_DOCS = {
2
- 'event-sourcing/state-in-apply': {
3
- why: 'An event-sourced aggregate is rebuilt by replaying its events through its apply methods, so the state a command leaves must be exactly what those methods make of the events it recorded. A command that also writes the state directly produces a state no replay will ever rebuild: the aggregate behaves one way just after the command and another way once loaded. Judged: every class of domain/aggregates/ that extends EventSourcedAggregate; outside the constructor, the static methods and the apply methods (a method named apply followed by an upper-case letter, and restore, which takes the state of a snapshot), an assignment, an increment or a mutating call (push, splice, set, add, delete...) on something of this is reported, and so is this.record(..) inside an apply method, which would record the event again at each replay.',
4
- bad: `// domain/aggregates/attendance-record.aggregate.ts
5
- noteNoShow(appointmentId: string, now: Date): void {
6
- this.state = { noShows: this.state.noShows + 1 }; // written twice: here and by the replay
7
- this.record(new NoShowNoted(this.id, now, appointmentId));
8
- }`,
9
- good: `// domain/aggregates/attendance-record.aggregate.ts
10
- noteNoShow(appointmentId: string, now: Date): void {
11
- this.record(new NoShowNoted(this.id, now, appointmentId));
12
- }
13
-
14
- private applyNoShowNoted(event: NoShowNoted): void {
15
- this.state = { noShows: this.state.noShows + 1 };
16
- }`,
17
- },
18
- 'event-sourcing/past-tense': {
19
- why: 'A stored event is a fact that is kept and replayed for as long as the aggregate lives, read by people and by projections that were not written yet. A name in the present or the imperative (BookAppointment, Cancel) reads as a request that may still be refused; a name in the past tense says it happened. Judged: in a file of domain/aggregates/ holding a class that extends EventSourcedAggregate, every name imported from domain/events/. Its fact is judged, the words after the name of the aggregate when it starts with it (InvoiceIssued of Invoice: Issued), the whole name otherwise: one word of it must read as a past participle (ending in -ed, or a common irregular one such as paid, held, taken, withdrawn, sent, set, made, done, lost, won), and a participle spelled like its imperative (set, put, read, run, cut, found, left...) does not count at the head of the fact, where it reads as a command (SetPrice, ReadInvoice). The same words generate domain-event accepts.',
20
- bad: `// domain/aggregates/attendance-record.aggregate.ts
21
- import { NoteNoShow } from '@/contexts/scheduling/domain/events/note-no-show.event';`,
22
- good: `// domain/aggregates/attendance-record.aggregate.ts
23
- import { NoShowNoted } from '@/contexts/scheduling/domain/events/no-show-noted.event';`,
24
- },
25
- 'event-sourcing/store-behind-repository': {
26
- why: "The domain and the use cases see an event-sourced aggregate exactly as they see any other: loaded by its repository port, changed by its methods, saved by the same port. A handler that reads a stream itself decides how events become state, which is the aggregate's job, and binds the use case to a storage technique the next aggregate may not use. Judged: production files of domain/ and application/ of a context; importing EventStore, SnapshotStore, CheckpointStore, EventSourcedRepository, EventSerializer, CatchUpSubscription or InMemoryEventStore from @ddd-ts-kit/kernel is reported. Infrastructure, the module file and the platform are left alone.",
27
- bad: `// application/commands/note-no-show/note-no-show.handler.ts
28
- constructor(private readonly store: EventStore) {}
29
- const events = await this.store.readStream(\`scheduling.attendance-record-\${command.patientId}\`);`,
30
- good: `// application/commands/note-no-show/note-no-show.handler.ts
31
- constructor(private readonly records: AttendanceRecordRepository) {}
32
- const record = await this.records.findById(command.patientId);`,
33
- },
34
- 'event-sourcing/projection-never-appends': {
35
- why: "A projection turns facts into a read model; it is replayed from position zero whenever its read model is rebuilt. A projection that appends to a stream would append again at every rebuild, and makes the read side decide facts. Judged: production files of application/projections/ and any file declaring a class with @Projection; naming EventStore or EventSourcedRepository of @ddd-ts-kit/kernel is reported, and so is anything imported from domain/repositories/ in a projection declared @Projection(name, { feed: 'event-store' }). A projection fed by the dispatcher keeps the imports it had before event sourcing.",
36
- bad: `// application/projections/attendance-history.projection.ts
37
- @Projection('scheduling.attendance-history', { feed: 'event-store' })
38
- export class AttendanceHistoryProjection {
39
- constructor(private readonly history: AttendanceHistory, private readonly records: AttendanceRecordRepository) {}
40
- }`,
41
- good: `// application/projections/attendance-history.projection.ts
42
- @Projection('scheduling.attendance-history', { feed: 'event-store' })
43
- export class AttendanceHistoryProjection {
44
- constructor(private readonly history: AttendanceHistory) {}
45
- }`,
46
- },
47
- 'event-sourcing/upcaster-required': {
48
- why: "Stored events are never rewritten: an event stored years ago is read by today's code. Changing the type of the data of an event that is already stored breaks every replay of it, silently when the fields keep their names. The checkable criterion: the data of a stored event is a named type declared in its codec file with every named type it reaches (the kit's own PersonalValue aside), `encode` answers it, and its fingerprint (its fields and their types, the types it reaches included, layout and order aside) is recorded per version in stored-events.lock.json by `ddd-ts-kit docs --stored-events`, which never rewrites a recorded version. `ddd-ts-kit docs --check`, in the pipeline, fails while a declared version is not recorded, so no version reaches the main branch unrecorded. Reported: an encode that names no type, a type not declared in the file, a type it reaches that the file does not declare, a version above 1 without an upcaster from each version below it, a version below the last one recorded, and a recorded version whose shape changed. The lock is committed; until a version is recorded, its shape is free to change.",
49
- bad: `// infrastructure/persistence/attendance-record-events.mapper.ts
50
- interface NoShowNotedData { readonly appointmentId: string; readonly reason: string } // a field added in place
51
- [NoShowNoted.eventName]: defineStoredEvent(NoShowNoted, { version: 1, encode: (event): NoShowNotedData => ({ ... }), decode }),`,
52
- good: `// infrastructure/persistence/attendance-record-events.mapper.ts
53
- interface NoShowNotedData { readonly appointmentId: string; readonly reason: string }
54
- [NoShowNoted.eventName]: defineStoredEvent(NoShowNoted, {
55
- version: 2,
56
- encode: (event): NoShowNotedData => ({ ... }),
57
- decode,
58
- upcasters: { 1: (data) => ({ ...data, reason: '' }) },
59
- }),`,
60
- },
61
- };
62
- //# sourceMappingURL=event-sourcing-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-sourcing-docs.js","sourceRoot":"","sources":["../../../src/check/explain/event-sourcing-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAsC;IACpE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,8zBAA8zB;QACn0B,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;;;;EAOR;KACC;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,48BAA48B;QACj9B,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;uFAC6E;KACpF;IACD,wCAAwC,EAAE;QACxC,GAAG,EAAE,+oBAA+oB;QACppB,GAAG,EAAE;;oGAE2F;QAChG,IAAI,EAAE;;+DAEqD;KAC5D;IACD,yCAAyC,EAAE;QACzC,GAAG,EAAE,umBAAumB;QAC5mB,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,inCAAinC;QACtnC,GAAG,EAAE;;gIAEuH;QAC5H,IAAI,EAAE;;;;;;;IAON;KACD;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { RuleDoc } from '../model/rule-doc.js';
2
- export declare const EVENTS_DOCS: Readonly<Record<string, RuleDoc>>;
3
- //# sourceMappingURL=events-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/events-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqGzD,CAAC"}