ddd-ts-kit 0.82.0 → 0.83.1

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 (479) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/README.fr.md +128 -60
  3. package/README.md +124 -59
  4. package/dist/check/canonical/role.d.ts +2 -0
  5. package/dist/check/canonical/role.d.ts.map +1 -1
  6. package/dist/check/canonical/roles.js +1 -1
  7. package/dist/check/canonical/roles.js.map +1 -1
  8. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  9. package/dist/check/catalogue/architecture-rules.js +2 -0
  10. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  11. package/dist/check/catalogue/eslint-only-rules.js +3 -3
  12. package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
  13. package/dist/check/errors/builds-through-factories.d.ts +4 -1
  14. package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
  15. package/dist/check/errors/builds-through-factories.js +6 -2
  16. package/dist/check/errors/builds-through-factories.js.map +1 -1
  17. package/dist/check/errors/code-entry.d.ts +8 -0
  18. package/dist/check/errors/code-entry.d.ts.map +1 -0
  19. package/dist/check/errors/code-entry.js +2 -0
  20. package/dist/check/errors/code-entry.js.map +1 -0
  21. package/dist/check/errors/code-list-name.d.ts +3 -0
  22. package/dist/check/errors/code-list-name.d.ts.map +1 -0
  23. package/dist/check/errors/code-list-name.js +6 -0
  24. package/dist/check/errors/code-list-name.js.map +1 -0
  25. package/dist/check/errors/code-list.d.ts +10 -0
  26. package/dist/check/errors/code-list.d.ts.map +1 -0
  27. package/dist/check/errors/code-list.js +2 -0
  28. package/dist/check/errors/code-list.js.map +1 -0
  29. package/dist/check/errors/codes-set-in.d.ts +9 -0
  30. package/dist/check/errors/codes-set-in.d.ts.map +1 -0
  31. package/dist/check/errors/codes-set-in.js +15 -0
  32. package/dist/check/errors/codes-set-in.js.map +1 -0
  33. package/dist/check/errors/error-codes.d.ts +2 -0
  34. package/dist/check/errors/error-codes.d.ts.map +1 -1
  35. package/dist/check/errors/error-codes.js +8 -0
  36. package/dist/check/errors/error-codes.js.map +1 -1
  37. package/dist/check/errors/is-codes-file.d.ts +4 -0
  38. package/dist/check/errors/is-codes-file.d.ts.map +1 -0
  39. package/dist/check/errors/is-codes-file.js +11 -0
  40. package/dist/check/errors/is-codes-file.js.map +1 -0
  41. package/dist/check/errors/is-error-file.d.ts +4 -0
  42. package/dist/check/errors/is-error-file.d.ts.map +1 -0
  43. package/dist/check/errors/is-error-file.js +6 -0
  44. package/dist/check/errors/is-error-file.js.map +1 -0
  45. package/dist/check/errors/listed-codes.d.ts +5 -0
  46. package/dist/check/errors/listed-codes.d.ts.map +1 -0
  47. package/dist/check/errors/listed-codes.js +12 -0
  48. package/dist/check/errors/listed-codes.js.map +1 -0
  49. package/dist/check/errors/names-refusals.d.ts +4 -0
  50. package/dist/check/errors/names-refusals.d.ts.map +1 -0
  51. package/dist/check/errors/names-refusals.js +5 -0
  52. package/dist/check/errors/names-refusals.js.map +1 -0
  53. package/dist/check/errors/read-code-list.d.ts +5 -0
  54. package/dist/check/errors/read-code-list.d.ts.map +1 -0
  55. package/dist/check/errors/read-code-list.js +32 -0
  56. package/dist/check/errors/read-code-list.js.map +1 -0
  57. package/dist/check/errors/refusal-classes.d.ts +8 -0
  58. package/dist/check/errors/refusal-classes.d.ts.map +1 -0
  59. package/dist/check/errors/refusal-classes.js +9 -0
  60. package/dist/check/errors/refusal-classes.js.map +1 -0
  61. package/dist/check/event-sourcing/declared-shape.d.ts +7 -1
  62. package/dist/check/event-sourcing/declared-shape.d.ts.map +1 -1
  63. package/dist/check/event-sourcing/declared-shape.js +12 -4
  64. package/dist/check/event-sourcing/declared-shape.js.map +1 -1
  65. package/dist/check/event-sourcing/read-stored-shape.d.ts.map +1 -1
  66. package/dist/check/event-sourcing/read-stored-shape.js +10 -2
  67. package/dist/check/event-sourcing/read-stored-shape.js.map +1 -1
  68. package/dist/check/event-sourcing/stored-event-declaration.d.ts +2 -0
  69. package/dist/check/event-sourcing/stored-event-declaration.d.ts.map +1 -1
  70. package/dist/check/event-sourcing/stored-event-declarations.js +1 -0
  71. package/dist/check/event-sourcing/stored-event-declarations.js.map +1 -1
  72. package/dist/check/event-sourcing/stored-shape.d.ts +2 -0
  73. package/dist/check/event-sourcing/stored-shape.d.ts.map +1 -1
  74. package/dist/check/explain/errors-docs.d.ts.map +1 -1
  75. package/dist/check/explain/errors-docs.js +30 -2
  76. package/dist/check/explain/errors-docs.js.map +1 -1
  77. package/dist/check/explain/language-docs.js +1 -1
  78. package/dist/check/explain/language-docs.js.map +1 -1
  79. package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
  80. package/dist/check/fixtures/authz-policy-fixtures.js +11 -0
  81. package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
  82. package/dist/check/fixtures/errors-fixtures.d.ts.map +1 -1
  83. package/dist/check/fixtures/errors-fixtures.js +1 -1
  84. package/dist/check/fixtures/errors-fixtures.js.map +1 -1
  85. package/dist/check/fixtures/errors-route.d.ts +3 -0
  86. package/dist/check/fixtures/errors-route.d.ts.map +1 -0
  87. package/dist/check/fixtures/errors-route.js +6 -0
  88. package/dist/check/fixtures/errors-route.js.map +1 -0
  89. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  90. package/dist/check/fixtures/fixtures.js +2 -0
  91. package/dist/check/fixtures/fixtures.js.map +1 -1
  92. package/dist/check/fixtures/named-refusal-fixtures.d.ts +4 -0
  93. package/dist/check/fixtures/named-refusal-fixtures.d.ts.map +1 -0
  94. package/dist/check/fixtures/named-refusal-fixtures.js +210 -0
  95. package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -0
  96. package/dist/check/language/refusal-qualifiers.d.ts +8 -0
  97. package/dist/check/language/refusal-qualifiers.d.ts.map +1 -0
  98. package/dist/check/language/refusal-qualifiers.js +16 -0
  99. package/dist/check/language/refusal-qualifiers.js.map +1 -0
  100. package/dist/check/language/unknown-words.d.ts +2 -2
  101. package/dist/check/language/unknown-words.d.ts.map +1 -1
  102. package/dist/check/language/unknown-words.js +3 -2
  103. package/dist/check/language/unknown-words.js.map +1 -1
  104. package/dist/check/rules/authz-policy-asked.js +5 -2
  105. package/dist/check/rules/authz-policy-asked.js.map +1 -1
  106. package/dist/check/rules/errors-code-listed.d.ts +3 -0
  107. package/dist/check/rules/errors-code-listed.d.ts.map +1 -0
  108. package/dist/check/rules/errors-code-listed.js +160 -0
  109. package/dist/check/rules/errors-code-listed.js.map +1 -0
  110. package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
  111. package/dist/check/rules/errors-code-unique.js +13 -8
  112. package/dist/check/rules/errors-code-unique.js.map +1 -1
  113. package/dist/check/rules/errors-known-code.d.ts.map +1 -1
  114. package/dist/check/rules/errors-known-code.js +17 -7
  115. package/dist/check/rules/errors-known-code.js.map +1 -1
  116. package/dist/check/rules/event-sourcing-upcaster-required.js +14 -4
  117. package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
  118. package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
  119. package/dist/check/rules/language-glossary-term.js +10 -3
  120. package/dist/check/rules/language-glossary-term.js.map +1 -1
  121. package/dist/check/rules/naming-suffix.js +1 -1
  122. package/dist/check/rules/naming-suffix.js.map +1 -1
  123. package/dist/commands/docs.d.ts.map +1 -1
  124. package/dist/commands/docs.js +16 -7
  125. package/dist/commands/docs.js.map +1 -1
  126. package/dist/commands/error-factories.d.ts +4 -2
  127. package/dist/commands/error-factories.d.ts.map +1 -1
  128. package/dist/commands/error-factories.js +74 -17
  129. package/dist/commands/error-factories.js.map +1 -1
  130. package/dist/config/open-api-problems.js +7 -6
  131. package/dist/config/open-api-problems.js.map +1 -1
  132. package/dist/config/stack.d.ts +9 -6
  133. package/dist/config/stack.d.ts.map +1 -1
  134. package/dist/config/stack.js +1 -1
  135. package/dist/config/stack.js.map +1 -1
  136. package/dist/describe/context-description.d.ts +7 -2
  137. package/dist/describe/context-description.d.ts.map +1 -1
  138. package/dist/describe/exposed-by.d.ts +7 -0
  139. package/dist/describe/exposed-by.d.ts.map +1 -0
  140. package/dist/describe/exposed-by.js +11 -0
  141. package/dist/describe/exposed-by.js.map +1 -0
  142. package/dist/describe/read-errors.d.ts +3 -1
  143. package/dist/describe/read-errors.d.ts.map +1 -1
  144. package/dist/describe/read-errors.js +18 -11
  145. package/dist/describe/read-errors.js.map +1 -1
  146. package/dist/describe/read-refusals.d.ts +11 -0
  147. package/dist/describe/read-refusals.d.ts.map +1 -0
  148. package/dist/describe/read-refusals.js +41 -0
  149. package/dist/describe/read-refusals.js.map +1 -0
  150. package/dist/describe/reference-lines.d.ts.map +1 -1
  151. package/dist/describe/reference-lines.js +18 -2
  152. package/dist/describe/reference-lines.js.map +1 -1
  153. package/dist/docs/formerly-recorded-stored-events.d.ts +9 -0
  154. package/dist/docs/formerly-recorded-stored-events.d.ts.map +1 -0
  155. package/dist/docs/formerly-recorded-stored-events.js +17 -0
  156. package/dist/docs/formerly-recorded-stored-events.js.map +1 -0
  157. package/dist/docs/write-stored-events-lock.d.ts +3 -2
  158. package/dist/docs/write-stored-events-lock.d.ts.map +1 -1
  159. package/dist/docs/write-stored-events-lock.js +10 -4
  160. package/dist/docs/write-stored-events-lock.js.map +1 -1
  161. package/dist/generate/concept.d.ts.map +1 -1
  162. package/dist/generate/concept.js +3 -29
  163. package/dist/generate/concept.js.map +1 -1
  164. package/dist/generate/errors/add-code.d.ts +13 -0
  165. package/dist/generate/errors/add-code.d.ts.map +1 -0
  166. package/dist/generate/errors/add-code.js +18 -0
  167. package/dist/generate/errors/add-code.js.map +1 -0
  168. package/dist/generate/errors/codes-list.d.ts +10 -0
  169. package/dist/generate/errors/codes-list.d.ts.map +1 -0
  170. package/dist/generate/errors/codes-list.js +25 -0
  171. package/dist/generate/errors/codes-list.js.map +1 -0
  172. package/dist/generate/errors/error-code-pattern.d.ts +3 -0
  173. package/dist/generate/errors/error-code-pattern.d.ts.map +1 -0
  174. package/dist/generate/errors/error-code-pattern.js +3 -0
  175. package/dist/generate/errors/error-code-pattern.js.map +1 -0
  176. package/dist/generate/errors/factory-prefix.d.ts +3 -0
  177. package/dist/generate/errors/factory-prefix.d.ts.map +1 -0
  178. package/dist/generate/errors/factory-prefix.js +3 -0
  179. package/dist/generate/errors/factory-prefix.js.map +1 -0
  180. package/dist/generate/errors/named-refusal-code.d.ts +17 -0
  181. package/dist/generate/errors/named-refusal-code.d.ts.map +1 -0
  182. package/dist/generate/errors/named-refusal-code.js +42 -0
  183. package/dist/generate/errors/named-refusal-code.js.map +1 -0
  184. package/dist/generate/errors/refusal-class-name.d.ts +8 -0
  185. package/dist/generate/errors/refusal-class-name.d.ts.map +1 -0
  186. package/dist/generate/errors/refusal-class-name.js +16 -0
  187. package/dist/generate/errors/refusal-class-name.js.map +1 -0
  188. package/dist/generate/errors/refusal-factory-name.d.ts +4 -0
  189. package/dist/generate/errors/refusal-factory-name.d.ts.map +1 -0
  190. package/dist/generate/errors/refusal-factory-name.js +15 -0
  191. package/dist/generate/errors/refusal-factory-name.js.map +1 -0
  192. package/dist/generate/errors/write-named-refusal.d.ts +18 -0
  193. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -0
  194. package/dist/generate/errors/write-named-refusal.js +89 -0
  195. package/dist/generate/errors/write-named-refusal.js.map +1 -0
  196. package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
  197. package/dist/generate/kinds/domain-error-kind.js +12 -5
  198. package/dist/generate/kinds/domain-error-kind.js.map +1 -1
  199. package/dist/generate/kinds/error-kind.d.ts.map +1 -1
  200. package/dist/generate/kinds/error-kind.js +27 -12
  201. package/dist/generate/kinds/error-kind.js.map +1 -1
  202. package/dist/generate/spoken-in-language.d.ts +9 -0
  203. package/dist/generate/spoken-in-language.d.ts.map +1 -0
  204. package/dist/generate/spoken-in-language.js +39 -0
  205. package/dist/generate/spoken-in-language.js.map +1 -0
  206. package/dist/help/notes.d.ts +1 -1
  207. package/dist/help/notes.d.ts.map +1 -1
  208. package/dist/help/notes.js +11 -5
  209. package/dist/help/notes.js.map +1 -1
  210. package/dist/help/usage.d.ts +1 -1
  211. package/dist/help/usage.d.ts.map +1 -1
  212. package/dist/help/usage.js +2 -2
  213. package/dist/init/manifest/versions.js +24 -24
  214. package/dist/init/stack/resolve-stack.js +2 -2
  215. package/dist/init/stack/resolve-stack.js.map +1 -1
  216. package/dist/presets/identity-refusal.js +1 -1
  217. package/dist/presets/identity-refusal.js.map +1 -1
  218. package/dist/presets/identity-terms.d.ts.map +1 -1
  219. package/dist/presets/identity-terms.js +30 -0
  220. package/dist/presets/identity-terms.js.map +1 -1
  221. package/dist/presets/preset-files.d.ts.map +1 -1
  222. package/dist/presets/preset-files.js +4 -1
  223. package/dist/presets/preset-files.js.map +1 -1
  224. package/dist/refusals/aggregates-of.d.ts +10 -0
  225. package/dist/refusals/aggregates-of.d.ts.map +1 -0
  226. package/dist/refusals/aggregates-of.js +9 -0
  227. package/dist/refusals/aggregates-of.js.map +1 -0
  228. package/dist/refusals/applied-moves.d.ts +7 -0
  229. package/dist/refusals/applied-moves.d.ts.map +1 -0
  230. package/dist/refusals/applied-moves.js +2 -0
  231. package/dist/refusals/applied-moves.js.map +1 -0
  232. package/dist/refusals/apply-named-plan.d.ts +19 -0
  233. package/dist/refusals/apply-named-plan.d.ts.map +1 -0
  234. package/dist/refusals/apply-named-plan.js +46 -0
  235. package/dist/refusals/apply-named-plan.js.map +1 -0
  236. package/dist/refusals/apply-plan.d.ts.map +1 -1
  237. package/dist/refusals/apply-plan.js +21 -25
  238. package/dist/refusals/apply-plan.js.map +1 -1
  239. package/dist/refusals/code-without-imports.d.ts +3 -0
  240. package/dist/refusals/code-without-imports.d.ts.map +1 -0
  241. package/dist/refusals/code-without-imports.js +9 -0
  242. package/dist/refusals/code-without-imports.js.map +1 -0
  243. package/dist/refusals/concept-error-class.d.ts +26 -0
  244. package/dist/refusals/concept-error-class.d.ts.map +1 -0
  245. package/dist/refusals/concept-error-class.js +2 -0
  246. package/dist/refusals/concept-error-class.js.map +1 -0
  247. package/dist/refusals/concept-errors.d.ts +6 -0
  248. package/dist/refusals/concept-errors.d.ts.map +1 -0
  249. package/dist/refusals/concept-errors.js +16 -0
  250. package/dist/refusals/concept-errors.js.map +1 -0
  251. package/dist/refusals/concept-imports.d.ts +8 -0
  252. package/dist/refusals/concept-imports.d.ts.map +1 -0
  253. package/dist/refusals/concept-imports.js +33 -0
  254. package/dist/refusals/concept-imports.js.map +1 -0
  255. package/dist/refusals/concept-leftovers.d.ts +5 -0
  256. package/dist/refusals/concept-leftovers.d.ts.map +1 -0
  257. package/dist/refusals/concept-leftovers.js +26 -0
  258. package/dist/refusals/concept-leftovers.js.map +1 -0
  259. package/dist/refusals/concept-named.d.ts +3 -0
  260. package/dist/refusals/concept-named.d.ts.map +1 -0
  261. package/dist/refusals/concept-named.js +13 -0
  262. package/dist/refusals/concept-named.js.map +1 -0
  263. package/dist/refusals/concerns.d.ts +16 -0
  264. package/dist/refusals/concerns.d.ts.map +1 -0
  265. package/dist/refusals/concerns.js +9 -0
  266. package/dist/refusals/concerns.js.map +1 -0
  267. package/dist/refusals/cut-factories.d.ts +7 -0
  268. package/dist/refusals/cut-factories.d.ts.map +1 -0
  269. package/dist/refusals/cut-factories.js +30 -0
  270. package/dist/refusals/cut-factories.js.map +1 -0
  271. package/dist/refusals/earlier-guidance.d.ts +8 -0
  272. package/dist/refusals/earlier-guidance.d.ts.map +1 -0
  273. package/dist/refusals/earlier-guidance.js +21 -0
  274. package/dist/refusals/earlier-guidance.js.map +1 -0
  275. package/dist/refusals/factory-for-parameter.d.ts +7 -0
  276. package/dist/refusals/factory-for-parameter.d.ts.map +1 -0
  277. package/dist/refusals/factory-for-parameter.js +17 -0
  278. package/dist/refusals/factory-for-parameter.js.map +1 -0
  279. package/dist/refusals/first-parameter.d.ts +6 -0
  280. package/dist/refusals/first-parameter.d.ts.map +1 -0
  281. package/dist/refusals/first-parameter.js +12 -0
  282. package/dist/refusals/first-parameter.js.map +1 -0
  283. package/dist/refusals/ignore-code-types.d.ts +10 -0
  284. package/dist/refusals/ignore-code-types.d.ts.map +1 -0
  285. package/dist/refusals/ignore-code-types.js +53 -0
  286. package/dist/refusals/ignore-code-types.js.map +1 -0
  287. package/dist/refusals/imports-used-by.d.ts +6 -0
  288. package/dist/refusals/imports-used-by.d.ts.map +1 -0
  289. package/dist/refusals/imports-used-by.js +32 -0
  290. package/dist/refusals/imports-used-by.js.map +1 -0
  291. package/dist/refusals/leave-origins.d.ts +10 -0
  292. package/dist/refusals/leave-origins.d.ts.map +1 -0
  293. package/dist/refusals/leave-origins.js +35 -0
  294. package/dist/refusals/leave-origins.js.map +1 -0
  295. package/dist/refusals/legacy-move.d.ts +5 -0
  296. package/dist/refusals/legacy-move.d.ts.map +1 -0
  297. package/dist/refusals/legacy-move.js +14 -0
  298. package/dist/refusals/legacy-move.js.map +1 -0
  299. package/dist/refusals/markdown-files.d.ts +4 -0
  300. package/dist/refusals/markdown-files.d.ts.map +1 -0
  301. package/dist/refusals/markdown-files.js +13 -0
  302. package/dist/refusals/markdown-files.js.map +1 -0
  303. package/dist/refusals/member-start.d.ts +3 -0
  304. package/dist/refusals/member-start.d.ts.map +1 -0
  305. package/dist/refusals/member-start.js +14 -0
  306. package/dist/refusals/member-start.js.map +1 -0
  307. package/dist/refusals/migration-targets.d.ts +3 -0
  308. package/dist/refusals/migration-targets.d.ts.map +1 -0
  309. package/dist/refusals/migration-targets.js +3 -0
  310. package/dist/refusals/migration-targets.js.map +1 -0
  311. package/dist/refusals/move-named-specs.d.ts +16 -0
  312. package/dist/refusals/move-named-specs.d.ts.map +1 -0
  313. package/dist/refusals/move-named-specs.js +119 -0
  314. package/dist/refusals/move-named-specs.js.map +1 -0
  315. package/dist/refusals/move.d.ts +6 -1
  316. package/dist/refusals/move.d.ts.map +1 -1
  317. package/dist/refusals/named-move.d.ts +23 -0
  318. package/dist/refusals/named-move.d.ts.map +1 -0
  319. package/dist/refusals/named-move.js +2 -0
  320. package/dist/refusals/named-move.js.map +1 -0
  321. package/dist/refusals/named-moves.d.ts +10 -0
  322. package/dist/refusals/named-moves.d.ts.map +1 -0
  323. package/dist/refusals/named-moves.js +64 -0
  324. package/dist/refusals/named-moves.js.map +1 -0
  325. package/dist/refusals/named-plan.d.ts +7 -0
  326. package/dist/refusals/named-plan.d.ts.map +1 -0
  327. package/dist/refusals/named-plan.js +2 -0
  328. package/dist/refusals/named-plan.js.map +1 -0
  329. package/dist/refusals/own-factory.d.ts +14 -0
  330. package/dist/refusals/own-factory.d.ts.map +1 -0
  331. package/dist/refusals/own-factory.js +38 -0
  332. package/dist/refusals/own-factory.js.map +1 -0
  333. package/dist/refusals/plan-target.d.ts +7 -0
  334. package/dist/refusals/plan-target.d.ts.map +1 -0
  335. package/dist/refusals/plan-target.js +13 -0
  336. package/dist/refusals/plan-target.js.map +1 -0
  337. package/dist/refusals/planned-refusal.d.ts +13 -0
  338. package/dist/refusals/planned-refusal.d.ts.map +1 -0
  339. package/dist/refusals/planned-refusal.js +2 -0
  340. package/dist/refusals/planned-refusal.js.map +1 -0
  341. package/dist/refusals/propose-named-plan.d.ts +25 -0
  342. package/dist/refusals/propose-named-plan.d.ts.map +1 -0
  343. package/dist/refusals/propose-named-plan.js +67 -0
  344. package/dist/refusals/propose-named-plan.js.map +1 -0
  345. package/dist/refusals/propose-plan.d.ts.map +1 -1
  346. package/dist/refusals/propose-plan.js +3 -19
  347. package/dist/refusals/propose-plan.js.map +1 -1
  348. package/dist/refusals/read-concept-error.d.ts +9 -0
  349. package/dist/refusals/read-concept-error.d.ts.map +1 -0
  350. package/dist/refusals/read-concept-error.js +51 -0
  351. package/dist/refusals/read-concept-error.js.map +1 -0
  352. package/dist/refusals/read-named-plan.d.ts +4 -0
  353. package/dist/refusals/read-named-plan.d.ts.map +1 -0
  354. package/dist/refusals/read-named-plan.js +57 -0
  355. package/dist/refusals/read-named-plan.js.map +1 -0
  356. package/dist/refusals/refusal-class-file.d.ts +15 -0
  357. package/dist/refusals/refusal-class-file.d.ts.map +1 -0
  358. package/dist/refusals/refusal-class-file.js +38 -0
  359. package/dist/refusals/refusal-class-file.js.map +1 -0
  360. package/dist/refusals/rename-concept.d.ts +7 -0
  361. package/dist/refusals/rename-concept.d.ts.map +1 -0
  362. package/dist/refusals/rename-concept.js +15 -0
  363. package/dist/refusals/rename-concept.js.map +1 -0
  364. package/dist/refusals/render-factory.d.ts +1 -1
  365. package/dist/refusals/render-factory.d.ts.map +1 -1
  366. package/dist/refusals/render-factory.js +3 -2
  367. package/dist/refusals/render-factory.js.map +1 -1
  368. package/dist/refusals/rewrite-concept-usages.d.ts +11 -0
  369. package/dist/refusals/rewrite-concept-usages.d.ts.map +1 -0
  370. package/dist/refusals/rewrite-concept-usages.js +61 -0
  371. package/dist/refusals/rewrite-concept-usages.js.map +1 -0
  372. package/dist/refusals/rewrite-named-usages.d.ts +9 -0
  373. package/dist/refusals/rewrite-named-usages.d.ts.map +1 -0
  374. package/dist/refusals/rewrite-named-usages.js +14 -0
  375. package/dist/refusals/rewrite-named-usages.js.map +1 -0
  376. package/dist/refusals/rewrite-usages.d.ts.map +1 -1
  377. package/dist/refusals/rewrite-usages.js +10 -6
  378. package/dist/refusals/rewrite-usages.js.map +1 -1
  379. package/dist/refusals/say-refusals.d.ts +3 -0
  380. package/dist/refusals/say-refusals.d.ts.map +1 -0
  381. package/dist/refusals/say-refusals.js +8 -0
  382. package/dist/refusals/say-refusals.js.map +1 -0
  383. package/dist/refusals/split-concept-spec.d.ts +19 -0
  384. package/dist/refusals/split-concept-spec.d.ts.map +1 -0
  385. package/dist/refusals/split-concept-spec.js +74 -0
  386. package/dist/refusals/split-concept-spec.js.map +1 -0
  387. package/dist/refusals/stale-mentions.d.ts +10 -0
  388. package/dist/refusals/stale-mentions.d.ts.map +1 -0
  389. package/dist/refusals/stale-mentions.js +41 -0
  390. package/dist/refusals/stale-mentions.js.map +1 -0
  391. package/dist/refusals/undefined-words.d.ts +15 -0
  392. package/dist/refusals/undefined-words.d.ts.map +1 -0
  393. package/dist/refusals/undefined-words.js +26 -0
  394. package/dist/refusals/undefined-words.js.map +1 -0
  395. package/dist/refusals/with-codes.d.ts +11 -0
  396. package/dist/refusals/with-codes.d.ts.map +1 -0
  397. package/dist/refusals/with-codes.js +46 -0
  398. package/dist/refusals/with-codes.js.map +1 -0
  399. package/dist/refusals/with-imports.d.ts +3 -0
  400. package/dist/refusals/with-imports.d.ts.map +1 -0
  401. package/dist/refusals/with-imports.js +8 -0
  402. package/dist/refusals/with-imports.js.map +1 -0
  403. package/dist/refusals/write-refusal-classes.d.ts +9 -0
  404. package/dist/refusals/write-refusal-classes.d.ts.map +1 -0
  405. package/dist/refusals/write-refusal-classes.js +23 -0
  406. package/dist/refusals/write-refusal-classes.js.map +1 -0
  407. package/dist/stack/stack-vars.js +1 -1
  408. package/dist/stack/stack-vars.js.map +1 -1
  409. package/dist/version.d.ts +1 -1
  410. package/dist/version.js +1 -1
  411. package/package.json +2 -2
  412. package/templates/aggregate/aggregate.ts.tpl +3 -0
  413. package/templates/aggregate/event-sourced.aggregate.ts.tpl +3 -0
  414. package/templates/command/handler.declared.ts.tpl +3 -0
  415. package/templates/command/handler.ts.tpl +3 -0
  416. package/templates/entity/entity.ts.tpl +3 -0
  417. package/templates/error/codes.ts.tpl +5 -0
  418. package/templates/error/refusal-case.spec.ts.tpl +8 -0
  419. package/templates/error/refusal-factory.ts.tpl +4 -0
  420. package/templates/error/refusal.spec.ts.tpl +7 -0
  421. package/templates/error/refusal.ts.tpl +8 -0
  422. package/templates/init/rules/domain.md.tpl +9 -2
  423. package/templates/init/rules/presentation.md.tpl +3 -0
  424. package/templates/pipeline/knip.json.tpl +5 -0
  425. package/templates/pipeline/package-scripts.json +1 -1
  426. package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.handler.ts.tpl +22 -0
  427. package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +16 -0
  428. package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.handler.ts.tpl +16 -0
  429. package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.handler.ts.tpl +16 -0
  430. package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +10 -0
  431. package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.handler.ts.tpl +16 -0
  432. package/templates/presets/identity/context/application/commands/provision-account/provision-account.handler.ts.tpl +10 -0
  433. package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +16 -0
  434. package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +10 -0
  435. package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +10 -0
  436. package/templates/presets/identity/context/domain/aggregates/account.aggregate.ts.tpl +16 -0
  437. package/templates/presets/identity/context/domain/aggregates/delegation.aggregate.ts.tpl +28 -0
  438. package/templates/presets/identity/context/domain/aggregates/invitation.aggregate.ts.tpl +27 -0
  439. package/templates/presets/identity/context/domain/aggregates/member.aggregate.ts.tpl +31 -0
  440. package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +13 -0
  441. package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +10 -0
  442. package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +13 -0
  443. package/templates/presets/identity/context/domain/errors/codes.named.ts.tpl +33 -0
  444. package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +10 -0
  445. package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +10 -0
  446. package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +13 -0
  447. package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +10 -0
  448. package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +12 -0
  449. package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +10 -0
  450. package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +13 -0
  451. package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +10 -0
  452. package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +10 -0
  453. package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +10 -0
  454. package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +13 -0
  455. package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +13 -0
  456. package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +13 -0
  457. package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +13 -0
  458. package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +12 -0
  459. package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +10 -0
  460. package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +10 -0
  461. package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +12 -0
  462. package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +12 -0
  463. package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +12 -0
  464. package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +10 -0
  465. package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +11 -0
  466. package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +13 -0
  467. package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +12 -0
  468. package/templates/presets/identity/context/domain/value-objects/delegation-period.vo.ts.tpl +16 -0
  469. package/templates/presets/identity/context/domain/value-objects/display-name.vo.ts.tpl +10 -0
  470. package/templates/presets/identity/context/domain/value-objects/email-address.vo.ts.tpl +10 -0
  471. package/templates/presets/identity/context/domain/value-objects/organisation-name.vo.ts.tpl +10 -0
  472. package/templates/presets/identity/context/domain/value-objects/organisation-slug.vo.ts.tpl +10 -0
  473. package/templates/state-machine/state-machine.ts.tpl +5 -0
  474. package/templates/value-object/value-object.ts.tpl +6 -0
  475. /package/templates/presets/identity/context/domain/errors/{account.error.ts.tpl → account.error.factories.ts.tpl} +0 -0
  476. /package/templates/presets/identity/context/domain/errors/{delegation.error.ts.tpl → delegation.error.factories.ts.tpl} +0 -0
  477. /package/templates/presets/identity/context/domain/errors/{invitation.error.ts.tpl → invitation.error.factories.ts.tpl} +0 -0
  478. /package/templates/presets/identity/context/domain/errors/{member.error.ts.tpl → member.error.factories.ts.tpl} +0 -0
  479. /package/templates/presets/identity/context/domain/errors/{organisation.error.ts.tpl → organisation.error.factories.ts.tpl} +0 -0
@@ -1,3 +1,3 @@
1
1
  /** What a line of the usage cannot say about a command or a flag. */
2
- export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: when the\n history forks from --base <ref> (origin/main by default), deletes the migrations of the\n branch the base does not have, with their snapshots and journal entries, then generates\n each again on top, in order, under its name (working- dropped outside a worker's\n worktree, a custom one keeping its SQL); when it does not fork, only renames them;\n refused while the journal holds conflict markers, when two of them change the schema,\n or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder\n then put back as it was\n error-factories moves a project from one class per error to static factories on one error class per\n concept: --plan writes error-factories.plan.json, where each class is given its concept;\n --apply follows it (classes, specs, every usage, \"stack.refusals\" in the config)\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; then what\n this checkout lacks to run the project, read without network: the running Node against\n engines.node and .nvmrc, node_modules installed since the lockfile last changed, each\n package of the kit installed at the version of this CLI, the submodules initialised;\n each with its fix; --strict exits 1 while something is missing or the checkout cannot\n run the project, never for a hook this clone has not installed, a Node .nvmrc does not\n name or a lockfile changed since the install\n lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning\n as on an error, but on one of a rule of the kit in transition, a new rule that becomes an\n error in the version it names, whose warnings are listed apart; --format and --fix as ESLint\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n alone, and exits 1\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. Reads only: exits 0 when it can close, 1\n listing what keeps it open, 2 on a code no row carries or without slices.md\n acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against\n its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and\n criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write\n (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is\n built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,\n a pending one whose rows are done, a locked one changed while its criteria were not);\n --gate written: every slice row and criterion has a written scenario, none is left to\n write, the acceptance is locked (before the code of the story); --gate passing: none is\n pending either (before the story closes); exits 1 while a gate is not met, or, without\n one, on an inconsistency. Never runs a test. --lock writes\n test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of\n each scenario (pending(...), layout and comments aside), refused while a scenario is\n left to write, or while a criterion changed, or a locked scenario changed while its\n criteria did not, without a verdict \"amend\" of the acceptance-judge agent on that very\n version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,\n Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,\n listed for the owner to validate\n worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),\n cut from --base <ref> (by default the current branch, refused from a worker's worktree), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>\n briefs those rows of slices.md only, with their rules, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the\n next agent in place, its base the base of the story, and prints its briefing; no\n worktree, branch or install of its own; the agents of a story run one after the other\n story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default\n origin/main from the trunk, else the current branch, refused from the worktree of a\n story), its .ddd-ts-kit/story.json and\n its clean install; an existing one is kept and the story resumes there; refused when the\n story is open in another worktree; names the other open stories and the contexts their\n rows change\n worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base\n (by default origin/main from the trunk, else the current branch), and its clean install\n unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,\n whichever worktree it runs from, ignored by git and by the tools of the project; while\n the .gitignore of a project started before does not hold it (init adds it), a worktree\n opens next to the project, ../<project>-<name>; in a project whose config says\n \"worktrees\": \"required\" (what init writes), the guard of the plugin refuses the code of\n a context in the main checkout of the trunk, and in a worktree of .worktrees/ without\n its own node_modules\n story where a story stands, phase by phase: its specification and criteria\n (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section\n per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written\n and locked, its rows done, its acceptance passing, its trunk merged in, its ## Report; and\n the next step; in the worktree of a story, the story is its own; --gate build exits 1\n until the first four are met (the code may start: the guard of the plugin opens the\n contexts), --gate close until all are\n stories the stories open in the worktrees of the repository and where two of them meet: the\n contexts the rows of both name, the files both worktrees change (committed or not), what\n merging the branch of one into the other leaves to a person and what merge-trunk settles\n (git merge-tree, nothing written); how far each is behind its base; from the worktree of a\n story, the stories it meets; the guard of the plugin says it at session start and on a\n write to a file another story changes\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an\n end-to-end spec, a working migration, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n would not compute\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --explain check follows the violations with the reason of each rule they report, once per rule, as\n explain gives it without its examples (\"explanations\" in JSON); with github and gitlab, each\n annotation carries the reason of its rule, a pull request showing an annotation on its own\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one: run it once the shape of a version is the one to store;\n docs --check fails while a declared version is not recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
2
+ export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: when the\n history forks from --base <ref> (origin/main by default), deletes the migrations of the\n branch the base does not have, with their snapshots and journal entries, then generates\n each again on top, in order, under its name (working- dropped outside a worker's\n worktree, a custom one keeping its SQL); when it does not fork, only renames them;\n refused while the journal holds conflict markers, when two of them change the schema,\n or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder\n then put back as it was\n error-factories moves the refusals of a project to one class per refusal (--to named, the default), from\n one class per error or from the factories of one error class per concept: --plan writes\n error-factories.plan.json, where each refusal is given a class (the PascalCase of its\n code, which it keeps) and a factory (for<Concept>), both editable; --apply follows it\n (codes.ts per context, one class file per refusal, specs, every usage, the concept\n classes left empty, \"stack.refusals\" in the config) and lists what it cannot rewrite\n (a bare <Concept>Error.is(error), CodeOf<typeof <Concept>Error>); --to factories moves\n one class per error to static factories on one error class per concept instead\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; then what\n this checkout lacks to run the project, read without network: the running Node against\n engines.node and .nvmrc, node_modules installed since the lockfile last changed, each\n package of the kit installed at the version of this CLI, the submodules initialised;\n each with its fix; --strict exits 1 while something is missing or the checkout cannot\n run the project, never for a hook this clone has not installed, a Node .nvmrc does not\n name or a lockfile changed since the install\n lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning\n as on an error, but on one of a rule of the kit in transition, a new rule that becomes an\n error in the version it names, whose warnings are listed apart; --format and --fix as ESLint\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n alone, and exits 1\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. Reads only: exits 0 when it can close, 1\n listing what keeps it open, 2 on a code no row carries or without slices.md\n acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against\n its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and\n criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write\n (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is\n built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,\n a pending one whose rows are done, a locked one changed while its criteria were not);\n --gate written: every slice row and criterion has a written scenario, none is left to\n write, the acceptance is locked (before the code of the story); --gate passing: none is\n pending either (before the story closes); exits 1 while a gate is not met, or, without\n one, on an inconsistency. Never runs a test. --lock writes\n test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of\n each scenario (pending(...), layout and comments aside), refused while a scenario is\n left to write, or while a criterion changed, or a locked scenario changed while its\n criteria did not, without a verdict \"amend\" of the acceptance-judge agent on that very\n version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,\n Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,\n listed for the owner to validate\n worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),\n cut from --base <ref> (by default the current branch, refused from a worker's worktree), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>\n briefs those rows of slices.md only, with their rules, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the\n next agent in place, its base the base of the story, and prints its briefing; no\n worktree, branch or install of its own; the agents of a story run one after the other\n story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default\n origin/main from the trunk, else the current branch, refused from the worktree of a\n story), its .ddd-ts-kit/story.json and\n its clean install; an existing one is kept and the story resumes there; refused when the\n story is open in another worktree; names the other open stories and the contexts their\n rows change\n worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base\n (by default origin/main from the trunk, else the current branch), and its clean install\n unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,\n whichever worktree it runs from, ignored by git and by the tools of the project; while\n the .gitignore of a project started before does not hold it (init adds it), a worktree\n opens next to the project, ../<project>-<name>; in a project whose config says\n \"worktrees\": \"required\" (what init writes), the guard of the plugin refuses the code of\n a context in the main checkout of the trunk, and in a worktree of .worktrees/ without\n its own node_modules\n story where a story stands, phase by phase: its specification and criteria\n (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section\n per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written\n and locked, its rows done, its acceptance passing, its trunk merged in, its ## Report; and\n the next step; in the worktree of a story, the story is its own; --gate build exits 1\n until the first four are met (the code may start: the guard of the plugin opens the\n contexts), --gate close until all are\n stories the stories open in the worktrees of the repository and where two of them meet: the\n contexts the rows of both name, the files both worktrees change (committed or not), what\n merging the branch of one into the other leaves to a person and what merge-trunk settles\n (git merge-tree, nothing written); how far each is behind its base; from the worktree of a\n story, the stories it meets; the guard of the plugin says it at session start and on a\n write to a file another story changes\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an\n end-to-end spec, a working migration, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n would not compute\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --explain check follows the violations with the reason of each rule they report, once per rule, as\n explain gives it without its examples (\"explanations\" in JSON); with github and gitlab, each\n annotation carries the reason of its rule, a pull request showing an annotation on its own\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one but one recorded by 0.82.0 or earlier, recorded again as\n the kit reads it now: run it once the shape of a version is the one to store; docs --check\n fails while a declared version is not recorded, or recorded by 0.82.0 or earlier\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
3
3
  //# sourceMappingURL=notes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,6pqBAmN8C,CAAC"}
1
+ {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,kzrBAyN8C,CAAC"}
@@ -17,9 +17,14 @@ export const NOTES = ` affected what a pull request has to run: the con
17
17
  refused while the journal holds conflict markers, when two of them change the schema,
18
18
  or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder
19
19
  then put back as it was
20
- error-factories moves a project from one class per error to static factories on one error class per
21
- concept: --plan writes error-factories.plan.json, where each class is given its concept;
22
- --apply follows it (classes, specs, every usage, "stack.refusals" in the config)
20
+ error-factories moves the refusals of a project to one class per refusal (--to named, the default), from
21
+ one class per error or from the factories of one error class per concept: --plan writes
22
+ error-factories.plan.json, where each refusal is given a class (the PascalCase of its
23
+ code, which it keeps) and a factory (for<Concept>), both editable; --apply follows it
24
+ (codes.ts per context, one class file per refusal, specs, every usage, the concept
25
+ classes left empty, "stack.refusals" in the config) and lists what it cannot rewrite
26
+ (a bare <Concept>Error.is(error), CodeOf<typeof <Concept>Error>); --to factories moves
27
+ one class per error to static factories on one error class per concept instead
23
28
  value-objects moves the value objects of a project from a Result to factories that return the value or
24
29
  throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of
25
30
  them goes, specs assert expectRefusal(() => ..), "stack.valueObjects" becomes throwing
@@ -206,8 +211,9 @@ export const NOTES = ` affected what a pull request has to run: the con
206
211
  explain gives it without its examples ("explanations" in JSON); with github and gitlab, each
207
212
  annotation carries the reason of its rule, a pull request showing an annotation on its own
208
213
  --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,
209
- never rewriting a recorded one: run it once the shape of a version is the one to store;
210
- docs --check fails while a declared version is not recorded
214
+ never rewriting a recorded one but one recorded by 0.82.0 or earlier, recorded again as
215
+ the kit reads it now: run it once the shape of a version is the one to store; docs --check
216
+ fails while a declared version is not recorded, or recorded by 0.82.0 or earlier
211
217
  --sdk init records "sdk" in the config and generates the clients with the project
212
218
  --local-only generate refuses, and writes nothing, when the kind would write outside its context;
213
219
  "generate --help --json" says which kinds do`;
@@ -1 +1 @@
1
- {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAmN2C,CAAC"}
1
+ {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAyN2C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Every command of the CLI and its flags, as `--help` prints them and docs/guides/commands.md shows them. */
2
- export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]\n ddd-ts-kit story-scope <story> [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit story [<story>] [--gate build|close]\n ddd-ts-kit stories\n ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit drizzle-generate --replay [--base <git-ref>]\n ddd-ts-kit error-factories --plan | --apply [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--explain] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit lint [paths...] [--format <eslint formatter>] [--fix]\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
2
+ export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals named|factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]\n ddd-ts-kit story-scope <story> [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit story [<story>] [--gate build|close]\n ddd-ts-kit stories\n ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit drizzle-generate --replay [--base <git-ref>]\n ddd-ts-kit error-factories --plan | --apply [--to named|factories] [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--explain] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit lint [paths...] [--format <eslint formatter>] [--fix]\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
3
3
  //# sourceMappingURL=usage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,siIA2DqE,CAAC"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,mkIA2DqE,CAAC"}
@@ -11,7 +11,7 @@ export const USAGE = `Usage
11
11
  [--storage local|s3|none]
12
12
  [--audit on|off]
13
13
  [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]
14
- [--dependencies signature|listed] [--refusals factories|classes]
14
+ [--dependencies signature|listed] [--refusals named|factories|classes]
15
15
  [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]
16
16
  [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]
17
17
  [--schemas shared|per-route]
@@ -46,7 +46,7 @@ export const USAGE = `Usage
46
46
  ddd-ts-kit build-aliases [--project <tsconfig>]
47
47
  ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]
48
48
  ddd-ts-kit drizzle-generate --replay [--base <git-ref>]
49
- ddd-ts-kit error-factories --plan | --apply [--dry-run]
49
+ ddd-ts-kit error-factories --plan | --apply [--to named|factories] [--dry-run]
50
50
  ddd-ts-kit controllers [<context>] [--dry-run]
51
51
  ddd-ts-kit value-objects [--dry-run]
52
52
  ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]
@@ -1,35 +1,35 @@
1
1
  /** Ranges written to the generated package.json; bumped together with the kit. */
2
2
  export const VERSIONS = {
3
- '@ddd-ts-kit/kernel': '^0.82.0',
4
- '@ddd-ts-kit/validation': '^0.82.0',
5
- '@ddd-ts-kit/http': '^0.82.0',
6
- '@ddd-ts-kit/tracing': '^0.82.0',
7
- '@ddd-ts-kit/di': '^0.82.0',
8
- '@ddd-ts-kit/events': '^0.82.0',
9
- '@ddd-ts-kit/testing': '^0.82.0',
10
- '@ddd-ts-kit/drizzle': '^0.82.0',
11
- '@ddd-ts-kit/knex': '^0.82.0',
12
- '@ddd-ts-kit/prisma': '^0.82.0',
13
- '@ddd-ts-kit/typeorm': '^0.82.0',
14
- '@ddd-ts-kit/auth': '^0.82.0',
15
- '@ddd-ts-kit/rabbitmq': '^0.82.0',
16
- '@ddd-ts-kit/aspects': '^0.82.0',
17
- '@ddd-ts-kit/audit': '^0.82.0',
18
- '@ddd-ts-kit/redis': '^0.82.0',
19
- '@ddd-ts-kit/kafka': '^0.82.0',
20
- '@ddd-ts-kit/nats': '^0.82.0',
21
- '@ddd-ts-kit/scheduling': '^0.82.0',
22
- '@ddd-ts-kit/sentry': '^0.82.0',
23
- '@ddd-ts-kit/s3': '^0.82.0',
3
+ '@ddd-ts-kit/kernel': '^0.83.1',
4
+ '@ddd-ts-kit/validation': '^0.83.1',
5
+ '@ddd-ts-kit/http': '^0.83.1',
6
+ '@ddd-ts-kit/tracing': '^0.83.1',
7
+ '@ddd-ts-kit/di': '^0.83.1',
8
+ '@ddd-ts-kit/events': '^0.83.1',
9
+ '@ddd-ts-kit/testing': '^0.83.1',
10
+ '@ddd-ts-kit/drizzle': '^0.83.1',
11
+ '@ddd-ts-kit/knex': '^0.83.1',
12
+ '@ddd-ts-kit/prisma': '^0.83.1',
13
+ '@ddd-ts-kit/typeorm': '^0.83.1',
14
+ '@ddd-ts-kit/auth': '^0.83.1',
15
+ '@ddd-ts-kit/rabbitmq': '^0.83.1',
16
+ '@ddd-ts-kit/aspects': '^0.83.1',
17
+ '@ddd-ts-kit/audit': '^0.83.1',
18
+ '@ddd-ts-kit/redis': '^0.83.1',
19
+ '@ddd-ts-kit/kafka': '^0.83.1',
20
+ '@ddd-ts-kit/nats': '^0.83.1',
21
+ '@ddd-ts-kit/scheduling': '^0.83.1',
22
+ '@ddd-ts-kit/sentry': '^0.83.1',
23
+ '@ddd-ts-kit/s3': '^0.83.1',
24
24
  '@aws-sdk/client-s3': '^3.1150.0',
25
25
  '@aws-sdk/lib-storage': '^3.1150.0',
26
26
  '@aws-sdk/s3-request-presigner': '^3.1150.0',
27
27
  busboy: '^1.6.0',
28
28
  '@sentry/node': '^11.6.0',
29
- '@ddd-ts-kit/pino': '^0.82.0',
29
+ '@ddd-ts-kit/pino': '^0.83.1',
30
30
  pino: '^10.4.0',
31
31
  'pino-pretty': '^13.2.0',
32
- '@ddd-ts-kit/winston': '^0.82.0',
32
+ '@ddd-ts-kit/winston': '^0.83.1',
33
33
  winston: '^3.19.0',
34
34
  '@confluentinc/kafka-javascript': '^1.11.0',
35
35
  '@nats-io/jetstream': '^3.4.0',
@@ -37,7 +37,7 @@ export const VERSIONS = {
37
37
  ioredis: '^6.0.0',
38
38
  jose: '^6.0.0',
39
39
  amqplib: '^2.2.0',
40
- 'ddd-ts-kit': '^0.82.0',
40
+ 'ddd-ts-kit': '^0.83.1',
41
41
  tsx: '^4.23.15',
42
42
  vitest: '^5.0.3',
43
43
  zod: '^4.6.5',
@@ -122,8 +122,8 @@ function resolveOperations(options, orm) {
122
122
  /** How the code is written: a new project takes the forms of the current version, a recorded one keeps the form it says. */
123
123
  function resolveWriting(options) {
124
124
  return {
125
- // A new project builds its domain errors through factories; a recorded one keeps the form it says, or the one of 0.2.
126
- refusals: choose(REFUSAL_FORMS, options.refusals, 'refusals') ?? 'factories',
125
+ // A new project names each refusal and builds it through factories; a recorded one keeps the form it says, or the one of 0.2.
126
+ refusals: choose(REFUSAL_FORMS, options.refusals, 'refusals') ?? 'named',
127
127
  // A new project writes each route as a controller class; a recorded one keeps the form it says, or the functions of 0.3.
128
128
  routes: choose(ROUTE_FORMS, options.routes, 'routes') ?? 'controllers',
129
129
  // A new project declares a shape once and shares it; a recorded one keeps the form it says, or one schema per route as 0.5.
@@ -1 +1 @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,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC;IAEzE,IAAI,MAAM,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;QACxC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,IAAI,QAAQ,CAChB,YAAY,MAAM,sCAAsC,EACxD,mHAAmH,CACpH,CAAC;AACJ,CAAC;AAID,SAAS,cAAc,CAAC,OAAqB;IAC3C,OAAO;QACL,UAAU,EAAE,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,IAAI,KAAK;QAChF,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,QAAQ;QAC9D,EAAE,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,QAAQ;QACtD,cAAc,EAAE,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,cAAc,EAAE,iBAAiB,CAAC,IAAI,uBAAuB;KAC/G,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAY,EAAE,EAAU;IACtD,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC;QAC1C,OAAO;IACT,CAAC;IAED,MAAM,IAAI,QAAQ,CAChB,UAAU,IAAI,iCAAiC,EAAE,GAAG,EACpD,6IAA6I,CAC9I,CAAC;AACJ,CAAC"}
@@ -2,7 +2,7 @@
2
2
  const NEEDED = [
3
3
  { key: 'style', values: ['declared'], flag: '--style declared' },
4
4
  { key: 'dependencies', values: ['signature'], flag: '--dependencies signature' },
5
- { key: 'refusals', values: ['factories'], flag: '--refusals factories' },
5
+ { key: 'refusals', values: ['named', 'factories'], flag: '--refusals named or --refusals factories' },
6
6
  { key: 'valueObjects', values: ['throwing'], flag: '--value-objects throwing' },
7
7
  { key: 'routes', values: ['controllers'], flag: '--routes controllers' },
8
8
  { key: 'orm', values: ['knex', 'drizzle'], flag: '--orm knex or --orm drizzle' },
@@ -1 +1 @@
1
- {"version":3,"file":"identity-refusal.js","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"AAGA,kHAAkH;AAClH,MAAM,MAAM,GAIN;IACJ,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAChE,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE;IAChF,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACxE,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE;IAC/E,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACxE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAChF,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE;IACnH,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,kCAAkC,EAAE;IACzF;QACE,GAAG,EAAE,OAAO;QACZ,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;QAC3B,IAAI,EAAE,wEAAwE;KAC/E;IACD,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,IAA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}
1
+ {"version":3,"file":"identity-terms.d.ts","sourceRoot":"","sources":["../../src/presets/identity-terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,mGAAmG;AACnG,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EA4FhD,CAAC"}
@@ -53,5 +53,35 @@ export const IDENTITY_TERMS = [
53
53
  term: 'Identity provider',
54
54
  meaning: 'The system that authenticates the people (Keycloak): the application follows it, never stores its secrets',
55
55
  },
56
+ {
57
+ term: 'Owner',
58
+ meaning: 'The highest role: an owner may do everything in an organisation, appointing or changing another owner included',
59
+ },
60
+ {
61
+ term: 'Last owner',
62
+ meaning: 'The only owner an organisation has left: they are neither removed nor given another role, an organisation keeps one owner at least',
63
+ },
64
+ { term: 'Above', meaning: 'Higher in the order of roles: an owner is above an admin, an admin above a member' },
65
+ {
66
+ term: 'Own role',
67
+ meaning: 'The role of the member who acts: they do not change it themselves, and act on no one above it',
68
+ },
69
+ { term: 'Oneself', meaning: 'The member who acts, as the other party of their own act: no one delegates to oneself' },
70
+ {
71
+ term: 'Pending',
72
+ meaning: 'Said of an invitation issued and not yet accepted, declined, revoked or expired: the only state in which it is answered',
73
+ },
74
+ { term: 'Expire', meaning: 'For an invitation, to pass its week unanswered: it is accepted or declined no more' },
75
+ {
76
+ term: 'Verified',
77
+ meaning: 'Said of an email address the identity provider confirmed belongs to the person: an account is provisioned with it only then',
78
+ },
79
+ { term: 'Taken', meaning: 'Said of a slug an organisation holds already: two organisations never share one' },
80
+ { term: 'Active', meaning: 'Said of a delegation granted and not ended yet: neither revoked nor past its period' },
81
+ { term: 'Inverted', meaning: 'Said of a period whose end does not come after its start' },
82
+ {
83
+ term: 'Long',
84
+ meaning: 'Said of a delegation whose period lasts more than ninety days: a longer one is a role, not a delegation',
85
+ },
56
86
  ];
57
87
  //# sourceMappingURL=identity-terms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity-terms.js","source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;QAChB,OAAO,EAAE,+FAA+F;KACzG;IACD,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,uFAAuF,EAAE;IACrH;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EACL,yHAAyH;KAC5H;IACD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,oFAAoF,EAAE;IACjH;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EACL,6HAA6H;KAChI;IACD,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,iFAAiF,EAAE;IAC7G,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,qFAAqF,EAAE;IAClH,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,0DAA0D,EAAE;IACzF;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,yGAAyG;KACnH;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-files.d.ts","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoBnD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,EAAE,CAevG"}
1
+ {"version":3,"file":"preset-files.d.ts","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAuBnD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,EAAE,CAevG"}
@@ -1,7 +1,8 @@
1
1
  import { listTemplates } from '../templating/index.js';
2
2
  /**
3
3
  * The variants a template is written for, by the segments before its extension:
4
- * `account.mapper.knex.ts.tpl`, `open-organisation.accepted.class-validator.per-route.ts.tpl`.
4
+ * `account.mapper.knex.ts.tpl`, `open-organisation.accepted.class-validator.per-route.ts.tpl`,
5
+ * `unknown-account.error.named.ts.tpl`.
5
6
  */
6
7
  const VARIANTS = {
7
8
  knex: (config) => config.stack.orm === 'knex',
@@ -10,6 +11,8 @@ const VARIANTS = {
10
11
  'class-validator': (config) => config.stack.validation === 'class-validator',
11
12
  'per-route': (config) => config.stack.schemas === 'per-route',
12
13
  shared: (config) => config.stack.schemas === 'shared',
14
+ named: (config) => config.stack.refusals === 'named',
15
+ factories: (config) => config.stack.refusals === 'factories',
13
16
  };
14
17
  const NAMES = Object.keys(VARIANTS).join('|');
15
18
  /** One variant segment, followed by others or by the extension only. */
@@ -1 +1 @@
1
- {"version":3,"file":"preset-files.js","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD;;;GAGG;AACH,MAAM,QAAQ,GAA0D;IACtE,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM;IAC7C,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,SAAS;IACnD,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,KAAK;IAClD,iBAAiB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,iBAAiB;IAC5E,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,KAAK,WAAW;IAC7D,MAAM,EAAE,CAAC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AAW,CAAC,MAAc,EAAE,MAAc,EAAE,UAA6B;IACvF,MAAM,IAAI,GAAG,WAAW,MAAM,GAAG,CAAC;IAElC,OAAO,aAAa,CAAC,GAAG,IAAI,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC1D,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC5E,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAE5E,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvE,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAEzC,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtG,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { Workspace } from '../workspace/index.js';
3
+ interface Tree {
4
+ readonly ws: Workspace;
5
+ readonly config: Config;
6
+ }
7
+ /** The names of the aggregates of a context, in PascalCase. */
8
+ export declare function aggregatesOf({ ws, config }: Tree, context: string): string[];
9
+ export {};
10
+ //# sourceMappingURL=aggregates-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-of.d.ts","sourceRoot":"","sources":["../../src/refusals/aggregates-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,UAAU,IAAI;IACZ,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,+DAA+D;AAC/D,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAK5E"}
@@ -0,0 +1,9 @@
1
+ import { toName } from '../naming/index.js';
2
+ /** The names of the aggregates of a context, in PascalCase. */
3
+ export function aggregatesOf({ ws, config }, context) {
4
+ return ws
5
+ .list(`${config.contextsDir}/${context}/domain/aggregates`)
6
+ .filter((name) => name.endsWith('.aggregate.ts'))
7
+ .map((name) => toName(name.replace(/\.aggregate\.ts$/, '')).pascal);
8
+ }
9
+ //# sourceMappingURL=aggregates-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-of.js","sourceRoot":"","sources":["../../src/refusals/aggregates-of.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQ5C,+DAA+D;AAC/D,MAAM,UAAU,YAAY,CAAC,EAAE,EAAE,EAAE,MAAM,EAAQ,EAAE,OAAe;IAChE,OAAO,EAAE;SACN,IAAI,CAAC,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,oBAAoB,CAAC;SAC1D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAChD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { NamedMove } from './named-move.js';
2
+ /** The moves a plan to the named form made, and the concept classes they left empty, which nothing may name any more. */
3
+ export interface AppliedMoves {
4
+ readonly moves: readonly NamedMove[];
5
+ readonly gone: ReadonlySet<string>;
6
+ }
7
+ //# sourceMappingURL=applied-moves.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applied-moves.d.ts","sourceRoot":"","sources":["../../src/refusals/applied-moves.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,yHAAyH;AACzH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applied-moves.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applied-moves.js","sourceRoot":"","sources":["../../src/refusals/applied-moves.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { type Config } from '../config/index.js';
2
+ import type { Workspace } from '../workspace/index.js';
3
+ import type { MigrationDraft } from './migration-draft.js';
4
+ import type { NamedMove } from './named-move.js';
5
+ import type { NamedPlan } from './named-plan.js';
6
+ interface Tree {
7
+ readonly ws: Workspace;
8
+ readonly config: Config;
9
+ }
10
+ /**
11
+ * Follows a plan to the named form: each refusal gets a class of its own, whose code is read from
12
+ * the `codes.ts` of its context, with its factory; the classes per error go, the concept classes
13
+ * left empty go, the specs follow, every file that named them follows, and the config says the
14
+ * project names its refusals, as knip is told. What the guides and the documents still say of the
15
+ * earlier form is said. Answers the moves it made.
16
+ */
17
+ export declare function applyNamedPlan(tree: Tree, plan: NamedPlan, draft: MigrationDraft): NamedMove[];
18
+ export {};
19
+ //# sourceMappingURL=apply-named-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-named-plan.d.ts","sourceRoot":"","sources":["../../src/refusals/apply-named-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,MAAM,EAAkB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAOjD,UAAU,IAAI;IACZ,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,GAAG,SAAS,EAAE,CAc9F"}
@@ -0,0 +1,46 @@
1
+ import { CONFIG_FILE, editConfigText } from '../config/index.js';
2
+ import { conceptErrors } from './concept-errors.js';
3
+ import { concerns } from './concerns.js';
4
+ import { earlierGuidance } from './earlier-guidance.js';
5
+ import { ignoreCodeTypes } from './ignore-code-types.js';
6
+ import { leaveOrigins } from './leave-origins.js';
7
+ import { legacyErrors } from './legacy-errors.js';
8
+ import { moveNamedSpecs } from './move-named-specs.js';
9
+ import { namedMoves } from './named-moves.js';
10
+ import { projectSources } from './project-sources.js';
11
+ import { rewriteNamedUsages } from './rewrite-named-usages.js';
12
+ import { sayRefusals } from './say-refusals.js';
13
+ import { staleMentions } from './stale-mentions.js';
14
+ import { writeRefusalClasses } from './write-refusal-classes.js';
15
+ /**
16
+ * Follows a plan to the named form: each refusal gets a class of its own, whose code is read from
17
+ * the `codes.ts` of its context, with its factory; the classes per error go, the concept classes
18
+ * left empty go, the specs follow, every file that named them follows, and the config says the
19
+ * project names its refusals, as knip is told. What the guides and the documents still say of the
20
+ * earlier form is said. Answers the moves it made.
21
+ */
22
+ export function applyNamedPlan(tree, plan, draft) {
23
+ const sources = { legacy: legacyErrors(tree.ws, tree.config), concepts: conceptErrors(tree.ws, tree.config) };
24
+ const moves = namedMoves(plan, sources, draft);
25
+ const gone = leaveOrigins(moves, sources, draft);
26
+ writeRefusalClasses(tree.config, moves, draft);
27
+ moveNamedSpecs(tree.config, { moves, sources }, draft);
28
+ rewriteProject(tree, { moves, gone }, draft);
29
+ draft.write(CONFIG_FILE, editConfigText(draft.read(CONFIG_FILE) ?? '{}', sayRefusals('named')));
30
+ ignoreCodeTypes(tree.config, draft);
31
+ earlierGuidance(draft);
32
+ staleMentions(tree.ws, { moves, gone }, draft);
33
+ return moves;
34
+ }
35
+ function rewriteProject({ ws, config }, applied, draft) {
36
+ const removed = new Set(draft.removed);
37
+ for (const file of projectSources(ws, config).filter((candidate) => !removed.has(candidate))) {
38
+ const source = draft.read(file) ?? '';
39
+ const moves = applied.moves.filter((move) => concerns({ context: move.context, path: move.oldPath }, { file, source }, config));
40
+ const told = (line, note) => {
41
+ draft.manual.push(`${file}:${line}: ${note}`);
42
+ };
43
+ draft.write(file, rewriteNamedUsages(source, { moves, gone: applied.gone }, told));
44
+ }
45
+ }
46
+ //# sourceMappingURL=apply-named-plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-named-plan.js","sourceRoot":"","sources":["../../src/refusals/apply-named-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;A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,OAAO,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;IACrF,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apply-plan.d.ts","sourceRoot":"","sources":["../../src/refusals/apply-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAM9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,UAAU,IAAI;IACZ,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,GAAG,WAAW,EAAE,CAgC/F"}
1
+ {"version":3,"file":"apply-plan.d.ts","sourceRoot":"","sources":["../../src/refusals/apply-plan.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAK9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,UAAU,IAAI;IACZ,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,GAAG,WAAW,EAAE,CAgC/F"}