ddd-ts-kit 0.99.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1551) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/README.fr.md +241 -59
  3. package/README.md +221 -60
  4. package/dist/acceptance/lock-acceptance.d.ts +2 -0
  5. package/dist/acceptance/lock-acceptance.d.ts.map +1 -1
  6. package/dist/acceptance/lock-acceptance.js +28 -8
  7. package/dist/acceptance/lock-acceptance.js.map +1 -1
  8. package/dist/acceptance/lock-in.d.ts +4 -0
  9. package/dist/acceptance/lock-in.d.ts.map +1 -0
  10. package/dist/acceptance/lock-in.js +45 -0
  11. package/dist/acceptance/lock-in.js.map +1 -0
  12. package/dist/acceptance/previous-lock-of.d.ts +32 -0
  13. package/dist/acceptance/previous-lock-of.d.ts.map +1 -0
  14. package/dist/acceptance/previous-lock-of.js +29 -0
  15. package/dist/acceptance/previous-lock-of.js.map +1 -0
  16. package/dist/acceptance/read-acceptance.js +13 -3
  17. package/dist/acceptance/read-acceptance.js.map +1 -1
  18. package/dist/acceptance/read-committed-lock.d.ts +28 -0
  19. package/dist/acceptance/read-committed-lock.d.ts.map +1 -0
  20. package/dist/acceptance/read-committed-lock.js +27 -0
  21. package/dist/acceptance/read-committed-lock.js.map +1 -0
  22. package/dist/acceptance/read-lock.d.ts.map +1 -1
  23. package/dist/acceptance/read-lock.js +2 -41
  24. package/dist/acceptance/read-lock.js.map +1 -1
  25. package/dist/affected/changed-paths.d.ts +2 -1
  26. package/dist/affected/changed-paths.d.ts.map +1 -1
  27. package/dist/affected/changed-paths.js +10 -6
  28. package/dist/affected/changed-paths.js.map +1 -1
  29. package/dist/affected/format-selection.d.ts.map +1 -1
  30. package/dist/affected/format-selection.js +2 -1
  31. package/dist/affected/format-selection.js.map +1 -1
  32. package/dist/affected/reach-of.d.ts.map +1 -1
  33. package/dist/affected/reach-of.js +2 -1
  34. package/dist/affected/reach-of.js.map +1 -1
  35. package/dist/affected/run-affected.d.ts.map +1 -1
  36. package/dist/affected/run-affected.js +0 -1
  37. package/dist/affected/run-affected.js.map +1 -1
  38. package/dist/check/authz/permission-sets.d.ts +1 -1
  39. package/dist/check/authz/permission-sets.d.ts.map +1 -1
  40. package/dist/check/authz/permission-sets.js.map +1 -1
  41. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  42. package/dist/check/canonical/stray-entry.js +2 -1
  43. package/dist/check/canonical/stray-entry.js.map +1 -1
  44. package/dist/check/commands/changed-files.d.ts +5 -5
  45. package/dist/check/commands/changed-files.d.ts.map +1 -1
  46. package/dist/check/commands/changed-files.js +7 -7
  47. package/dist/check/commands/changed-files.js.map +1 -1
  48. package/dist/check/commands/check-command.d.ts.map +1 -1
  49. package/dist/check/commands/check-command.js +3 -1
  50. package/dist/check/commands/check-command.js.map +1 -1
  51. package/dist/check/commands/check-file-command.js +2 -1
  52. package/dist/check/commands/check-file-command.js.map +1 -1
  53. package/dist/check/commands/explain-command.d.ts.map +1 -1
  54. package/dist/check/commands/explain-command.js +3 -2
  55. package/dist/check/commands/explain-command.js.map +1 -1
  56. package/dist/check/commands/rules-command.d.ts.map +1 -1
  57. package/dist/check/commands/rules-command.js +5 -2
  58. package/dist/check/commands/rules-command.js.map +1 -1
  59. package/dist/check/commands/self-check.d.ts.map +1 -1
  60. package/dist/check/commands/self-check.js +2 -1
  61. package/dist/check/commands/self-check.js.map +1 -1
  62. package/dist/check/configuration/config-inspection.d.ts +2 -0
  63. package/dist/check/configuration/config-inspection.d.ts.map +1 -1
  64. package/dist/check/configuration/config-inspection.js +9 -3
  65. package/dist/check/configuration/config-inspection.js.map +1 -1
  66. package/dist/check/configuration/leaving-directories.d.ts +7 -0
  67. package/dist/check/configuration/leaving-directories.d.ts.map +1 -0
  68. package/dist/check/configuration/leaving-directories.js +13 -0
  69. package/dist/check/configuration/leaving-directories.js.map +1 -0
  70. package/dist/check/configuration/unknown-keys.d.ts +8 -0
  71. package/dist/check/configuration/unknown-keys.d.ts.map +1 -0
  72. package/dist/check/configuration/unknown-keys.js +84 -0
  73. package/dist/check/configuration/unknown-keys.js.map +1 -0
  74. package/dist/check/engine/format-check.d.ts.map +1 -1
  75. package/dist/check/engine/format-check.js +3 -2
  76. package/dist/check/engine/format-check.js.map +1 -1
  77. package/dist/check/explain/layer-docs.js +1 -1
  78. package/dist/check/explain/layer-docs.js.map +1 -1
  79. package/dist/check/explain/privacy-docs.js +1 -1
  80. package/dist/check/explain/privacy-docs.js.map +1 -1
  81. package/dist/check/fixtures/layer-fixtures.d.ts.map +1 -1
  82. package/dist/check/fixtures/layer-fixtures.js +47 -1
  83. package/dist/check/fixtures/layer-fixtures.js.map +1 -1
  84. package/dist/check/fixtures/privacy-fixtures.d.ts.map +1 -1
  85. package/dist/check/fixtures/privacy-fixtures.js +17 -0
  86. package/dist/check/fixtures/privacy-fixtures.js.map +1 -1
  87. package/dist/check/project/load-project.d.ts.map +1 -1
  88. package/dist/check/project/load-project.js +2 -1
  89. package/dist/check/project/load-project.js.map +1 -1
  90. package/dist/check/rules/config-valid.d.ts.map +1 -1
  91. package/dist/check/rules/config-valid.js +7 -2
  92. package/dist/check/rules/config-valid.js.map +1 -1
  93. package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
  94. package/dist/check/rules/context-declared-relationship.js +2 -1
  95. package/dist/check/rules/context-declared-relationship.js.map +1 -1
  96. package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
  97. package/dist/check/rules/context-no-cycle.js +2 -1
  98. package/dist/check/rules/context-no-cycle.js.map +1 -1
  99. package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
  100. package/dist/check/rules/declarations-barrel-current.js +2 -1
  101. package/dist/check/rules/declarations-barrel-current.js.map +1 -1
  102. package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
  103. package/dist/check/rules/layer-application-inward.js +11 -2
  104. package/dist/check/rules/layer-application-inward.js.map +1 -1
  105. package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
  106. package/dist/check/rules/nest-controllers-current.js +2 -1
  107. package/dist/check/rules/nest-controllers-current.js.map +1 -1
  108. package/dist/check/rules/privacy-declared-field.d.ts +3 -1
  109. package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
  110. package/dist/check/rules/privacy-declared-field.js +10 -2
  111. package/dist/check/rules/privacy-declared-field.js.map +1 -1
  112. package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
  113. package/dist/check/rules/tree-context-doc.js +2 -1
  114. package/dist/check/rules/tree-context-doc.js.map +1 -1
  115. package/dist/check/scheduling/is-background-job-file.d.ts +4 -0
  116. package/dist/check/scheduling/is-background-job-file.d.ts.map +1 -0
  117. package/dist/check/scheduling/is-background-job-file.js +8 -0
  118. package/dist/check/scheduling/is-background-job-file.js.map +1 -0
  119. package/dist/check/scheduling/job-classes.d.ts.map +1 -1
  120. package/dist/check/scheduling/job-classes.js +1 -7
  121. package/dist/check/scheduling/job-classes.js.map +1 -1
  122. package/dist/citations/ref-notes.js +7 -2
  123. package/dist/citations/ref-notes.js.map +1 -1
  124. package/dist/citations/removals-since.d.ts +2 -1
  125. package/dist/citations/removals-since.d.ts.map +1 -1
  126. package/dist/citations/removals-since.js +3 -2
  127. package/dist/citations/removals-since.js.map +1 -1
  128. package/dist/citations/stale-names-at.d.ts +6 -1
  129. package/dist/citations/stale-names-at.d.ts.map +1 -1
  130. package/dist/citations/stale-names-at.js +14 -6
  131. package/dist/citations/stale-names-at.js.map +1 -1
  132. package/dist/commands/acceptance.d.ts.map +1 -1
  133. package/dist/commands/acceptance.js +4 -4
  134. package/dist/commands/acceptance.js.map +1 -1
  135. package/dist/commands/affected.d.ts +4 -1
  136. package/dist/commands/affected.d.ts.map +1 -1
  137. package/dist/commands/affected.js +14 -2
  138. package/dist/commands/affected.js.map +1 -1
  139. package/dist/commands/arguments-error.d.ts +5 -0
  140. package/dist/commands/arguments-error.d.ts.map +1 -0
  141. package/dist/commands/arguments-error.js +5 -0
  142. package/dist/commands/arguments-error.js.map +1 -0
  143. package/dist/commands/arguments.js +2 -2
  144. package/dist/commands/arguments.js.map +1 -1
  145. package/dist/commands/build-aliases.d.ts.map +1 -1
  146. package/dist/commands/build-aliases.js +2 -1
  147. package/dist/commands/build-aliases.js.map +1 -1
  148. package/dist/commands/cited.d.ts.map +1 -1
  149. package/dist/commands/cited.js +8 -11
  150. package/dist/commands/cited.js.map +1 -1
  151. package/dist/commands/commit-size.d.ts.map +1 -1
  152. package/dist/commands/commit-size.js +2 -1
  153. package/dist/commands/commit-size.js.map +1 -1
  154. package/dist/commands/context-layout.d.ts.map +1 -1
  155. package/dist/commands/context-layout.js +6 -4
  156. package/dist/commands/context-layout.js.map +1 -1
  157. package/dist/commands/controllers.d.ts.map +1 -1
  158. package/dist/commands/controllers.js +4 -2
  159. package/dist/commands/controllers.js.map +1 -1
  160. package/dist/commands/depcruise-config.d.ts.map +1 -1
  161. package/dist/commands/depcruise-config.js +5 -3
  162. package/dist/commands/depcruise-config.js.map +1 -1
  163. package/dist/commands/describe.d.ts.map +1 -1
  164. package/dist/commands/describe.js +2 -1
  165. package/dist/commands/describe.js.map +1 -1
  166. package/dist/commands/digest.d.ts +8 -0
  167. package/dist/commands/digest.d.ts.map +1 -0
  168. package/dist/commands/digest.js +23 -0
  169. package/dist/commands/digest.js.map +1 -0
  170. package/dist/commands/docs.d.ts.map +1 -1
  171. package/dist/commands/docs.js +4 -2
  172. package/dist/commands/docs.js.map +1 -1
  173. package/dist/commands/doctor.d.ts.map +1 -1
  174. package/dist/commands/doctor.js +2 -1
  175. package/dist/commands/doctor.js.map +1 -1
  176. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  177. package/dist/commands/drizzle-generate.js +2 -2
  178. package/dist/commands/drizzle-generate.js.map +1 -1
  179. package/dist/commands/error-factories.d.ts.map +1 -1
  180. package/dist/commands/error-factories.js +2 -1
  181. package/dist/commands/error-factories.js.map +1 -1
  182. package/dist/commands/format-context.d.ts +1 -1
  183. package/dist/commands/format-context.d.ts.map +1 -1
  184. package/dist/commands/format-context.js +16 -16
  185. package/dist/commands/format-context.js.map +1 -1
  186. package/dist/commands/generate.d.ts +6 -3
  187. package/dist/commands/generate.d.ts.map +1 -1
  188. package/dist/commands/generate.js +32 -68
  189. package/dist/commands/generate.js.map +1 -1
  190. package/dist/commands/init.d.ts.map +1 -1
  191. package/dist/commands/init.js +8 -1
  192. package/dist/commands/init.js.map +1 -1
  193. package/dist/commands/known-context.d.ts.map +1 -1
  194. package/dist/commands/known-context.js +2 -1
  195. package/dist/commands/known-context.js.map +1 -1
  196. package/dist/commands/list.d.ts.map +1 -1
  197. package/dist/commands/list.js +4 -3
  198. package/dist/commands/list.js.map +1 -1
  199. package/dist/commands/measures.d.ts.map +1 -1
  200. package/dist/commands/measures.js +2 -1
  201. package/dist/commands/measures.js.map +1 -1
  202. package/dist/commands/merge-trunk.d.ts.map +1 -1
  203. package/dist/commands/merge-trunk.js +3 -2
  204. package/dist/commands/merge-trunk.js.map +1 -1
  205. package/dist/commands/move-to-module.d.ts.map +1 -1
  206. package/dist/commands/move-to-module.js +9 -5
  207. package/dist/commands/move-to-module.js.map +1 -1
  208. package/dist/commands/mutation.d.ts.map +1 -1
  209. package/dist/commands/mutation.js +5 -2
  210. package/dist/commands/mutation.js.map +1 -1
  211. package/dist/commands/plan-waves.d.ts +3 -2
  212. package/dist/commands/plan-waves.d.ts.map +1 -1
  213. package/dist/commands/plan-waves.js +15 -19
  214. package/dist/commands/plan-waves.js.map +1 -1
  215. package/dist/commands/platform-folders.d.ts.map +1 -1
  216. package/dist/commands/platform-folders.js +2 -1
  217. package/dist/commands/platform-folders.js.map +1 -1
  218. package/dist/commands/print-report.d.ts +1 -1
  219. package/dist/commands/print-report.d.ts.map +1 -1
  220. package/dist/commands/print-report.js +15 -6
  221. package/dist/commands/print-report.js.map +1 -1
  222. package/dist/commands/prisma-generate.d.ts +2 -1
  223. package/dist/commands/prisma-generate.d.ts.map +1 -1
  224. package/dist/commands/prisma-generate.js +14 -7
  225. package/dist/commands/prisma-generate.js.map +1 -1
  226. package/dist/commands/sdk.d.ts.map +1 -1
  227. package/dist/commands/sdk.js +3 -4
  228. package/dist/commands/sdk.js.map +1 -1
  229. package/dist/commands/status.d.ts.map +1 -1
  230. package/dist/commands/status.js +3 -2
  231. package/dist/commands/status.js.map +1 -1
  232. package/dist/commands/stories.d.ts.map +1 -1
  233. package/dist/commands/stories.js +2 -1
  234. package/dist/commands/stories.js.map +1 -1
  235. package/dist/commands/story-check.d.ts.map +1 -1
  236. package/dist/commands/story-check.js +2 -1
  237. package/dist/commands/story-check.js.map +1 -1
  238. package/dist/commands/story-scope.d.ts.map +1 -1
  239. package/dist/commands/story-scope.js +2 -1
  240. package/dist/commands/story-scope.js.map +1 -1
  241. package/dist/commands/story.d.ts.map +1 -1
  242. package/dist/commands/story.js +2 -1
  243. package/dist/commands/story.js.map +1 -1
  244. package/dist/commands/todo.d.ts +4 -1
  245. package/dist/commands/todo.d.ts.map +1 -1
  246. package/dist/commands/todo.js +12 -6
  247. package/dist/commands/todo.js.map +1 -1
  248. package/dist/commands/typeorm-generate.d.ts +3 -1
  249. package/dist/commands/typeorm-generate.d.ts.map +1 -1
  250. package/dist/commands/typeorm-generate.js +36 -7
  251. package/dist/commands/typeorm-generate.js.map +1 -1
  252. package/dist/commands/value-objects.d.ts.map +1 -1
  253. package/dist/commands/value-objects.js +2 -1
  254. package/dist/commands/value-objects.js.map +1 -1
  255. package/dist/commands/verify-merge.d.ts.map +1 -1
  256. package/dist/commands/verify-merge.js +2 -1
  257. package/dist/commands/verify-merge.js.map +1 -1
  258. package/dist/commands/verify-slice.d.ts.map +1 -1
  259. package/dist/commands/verify-slice.js +5 -2
  260. package/dist/commands/verify-slice.js.map +1 -1
  261. package/dist/commands/worker-scope.d.ts.map +1 -1
  262. package/dist/commands/worker-scope.js +3 -2
  263. package/dist/commands/worker-scope.js.map +1 -1
  264. package/dist/commands/worktree.d.ts.map +1 -1
  265. package/dist/commands/worktree.js +2 -1
  266. package/dist/commands/worktree.js.map +1 -1
  267. package/dist/commit/commit-of.d.ts +6 -0
  268. package/dist/commit/commit-of.d.ts.map +1 -0
  269. package/dist/commit/commit-of.js +9 -0
  270. package/dist/commit/commit-of.js.map +1 -0
  271. package/dist/commit/known-commit.d.ts +6 -0
  272. package/dist/commit/known-commit.d.ts.map +1 -0
  273. package/dist/commit/known-commit.js +14 -0
  274. package/dist/commit/known-commit.js.map +1 -0
  275. package/dist/commit/run-git.d.ts +2 -1
  276. package/dist/commit/run-git.d.ts.map +1 -1
  277. package/dist/commit/run-git.js +3 -1
  278. package/dist/commit/run-git.js.map +1 -1
  279. package/dist/commit/worker-scope-file.d.ts.map +1 -1
  280. package/dist/commit/worker-scope-file.js +2 -1
  281. package/dist/commit/worker-scope-file.js.map +1 -1
  282. package/dist/config/config.d.ts +2 -0
  283. package/dist/config/config.d.ts.map +1 -1
  284. package/dist/config/default-allowed-packages.d.ts.map +1 -1
  285. package/dist/config/default-allowed-packages.js +2 -14
  286. package/dist/config/default-allowed-packages.js.map +1 -1
  287. package/dist/config/derived-config-keys.d.ts +6 -0
  288. package/dist/config/derived-config-keys.d.ts.map +1 -0
  289. package/dist/config/derived-config-keys.js +6 -0
  290. package/dist/config/derived-config-keys.js.map +1 -0
  291. package/dist/config/directories-of.d.ts +4 -0
  292. package/dist/config/directories-of.d.ts.map +1 -0
  293. package/dist/config/directories-of.js +13 -0
  294. package/dist/config/directories-of.js.map +1 -0
  295. package/dist/config/index.d.ts +7 -0
  296. package/dist/config/index.d.ts.map +1 -1
  297. package/dist/config/index.js +7 -0
  298. package/dist/config/index.js.map +1 -1
  299. package/dist/config/inside-defaults-of.d.ts +4 -0
  300. package/dist/config/inside-defaults-of.d.ts.map +1 -0
  301. package/dist/config/inside-defaults-of.js +9 -0
  302. package/dist/config/inside-defaults-of.js.map +1 -0
  303. package/dist/config/is-control-plane.d.ts.map +1 -1
  304. package/dist/config/is-control-plane.js +2 -1
  305. package/dist/config/is-control-plane.js.map +1 -1
  306. package/dist/config/known-config-keys.d.ts +7 -0
  307. package/dist/config/known-config-keys.d.ts.map +1 -0
  308. package/dist/config/known-config-keys.js +41 -0
  309. package/dist/config/known-config-keys.js.map +1 -0
  310. package/dist/config/known-stack-keys.d.ts +3 -0
  311. package/dist/config/known-stack-keys.d.ts.map +1 -0
  312. package/dist/config/known-stack-keys.js +39 -0
  313. package/dist/config/known-stack-keys.js.map +1 -0
  314. package/dist/config/leaves-project.d.ts +3 -0
  315. package/dist/config/leaves-project.d.ts.map +1 -0
  316. package/dist/config/leaves-project.js +11 -0
  317. package/dist/config/leaves-project.js.map +1 -0
  318. package/dist/config/leaving-directory-problem.d.ts +7 -0
  319. package/dist/config/leaving-directory-problem.d.ts.map +1 -0
  320. package/dist/config/leaving-directory-problem.js +8 -0
  321. package/dist/config/leaving-directory-problem.js.map +1 -0
  322. package/dist/config/normalized-directory.d.ts +3 -0
  323. package/dist/config/normalized-directory.d.ts.map +1 -0
  324. package/dist/config/normalized-directory.js +7 -0
  325. package/dist/config/normalized-directory.js.map +1 -0
  326. package/dist/config/parse-config.d.ts +8 -2
  327. package/dist/config/parse-config.d.ts.map +1 -1
  328. package/dist/config/parse-config.js +31 -8
  329. package/dist/config/parse-config.js.map +1 -1
  330. package/dist/config/payload-schema-packages-of.d.ts +7 -0
  331. package/dist/config/payload-schema-packages-of.d.ts.map +1 -0
  332. package/dist/config/payload-schema-packages-of.js +10 -0
  333. package/dist/config/payload-schema-packages-of.js.map +1 -0
  334. package/dist/config/project-directories.d.ts +4 -0
  335. package/dist/config/project-directories.d.ts.map +1 -0
  336. package/dist/config/project-directories.js +3 -0
  337. package/dist/config/project-directories.js.map +1 -0
  338. package/dist/config/read-config.d.ts +2 -1
  339. package/dist/config/read-config.d.ts.map +1 -1
  340. package/dist/config/read-config.js +2 -2
  341. package/dist/config/read-config.js.map +1 -1
  342. package/dist/config/schema-libraries-of.d.ts +6 -0
  343. package/dist/config/schema-libraries-of.d.ts.map +1 -0
  344. package/dist/config/schema-libraries-of.js +18 -0
  345. package/dist/config/schema-libraries-of.js.map +1 -0
  346. package/dist/config/values/nearest-of.d.ts +7 -0
  347. package/dist/config/values/nearest-of.d.ts.map +1 -0
  348. package/dist/config/values/nearest-of.js +34 -0
  349. package/dist/config/values/nearest-of.js.map +1 -0
  350. package/dist/config/values/own-entry.d.ts +6 -0
  351. package/dist/config/values/own-entry.d.ts.map +1 -0
  352. package/dist/config/values/own-entry.js +8 -0
  353. package/dist/config/values/own-entry.js.map +1 -0
  354. package/dist/controllers/finish-migration.js +7 -2
  355. package/dist/controllers/finish-migration.js.map +1 -1
  356. package/dist/controllers/migrate-context.js +17 -5
  357. package/dist/controllers/migrate-context.js.map +1 -1
  358. package/dist/depcruise/context-rules.d.ts.map +1 -1
  359. package/dist/depcruise/context-rules.js +2 -1
  360. package/dist/depcruise/context-rules.js.map +1 -1
  361. package/dist/depcruise/layer-rules.d.ts.map +1 -1
  362. package/dist/depcruise/layer-rules.js +38 -8
  363. package/dist/depcruise/layer-rules.js.map +1 -1
  364. package/dist/derived/behaviour-pages.d.ts +3 -0
  365. package/dist/derived/behaviour-pages.d.ts.map +1 -0
  366. package/dist/derived/behaviour-pages.js +3 -0
  367. package/dist/derived/behaviour-pages.js.map +1 -0
  368. package/dist/derived/derived-file-kind.d.ts +19 -0
  369. package/dist/derived/derived-file-kind.d.ts.map +1 -0
  370. package/dist/derived/derived-file-kind.js +2 -0
  371. package/dist/derived/derived-file-kind.js.map +1 -0
  372. package/dist/derived/derived-files.d.ts +9 -0
  373. package/dist/derived/derived-files.d.ts.map +1 -0
  374. package/dist/derived/derived-files.js +71 -0
  375. package/dist/derived/derived-files.js.map +1 -0
  376. package/dist/derived/derived-tree.d.ts +9 -0
  377. package/dist/derived/derived-tree.d.ts.map +1 -0
  378. package/dist/derived/derived-tree.js +2 -0
  379. package/dist/derived/derived-tree.js.map +1 -0
  380. package/dist/derived/is-derived.d.ts +7 -11
  381. package/dist/derived/is-derived.d.ts.map +1 -1
  382. package/dist/derived/is-derived.js +8 -16
  383. package/dist/derived/is-derived.js.map +1 -1
  384. package/dist/digest/branch-points.d.ts +14 -0
  385. package/dist/digest/branch-points.d.ts.map +1 -0
  386. package/dist/digest/branch-points.js +32 -0
  387. package/dist/digest/branch-points.js.map +1 -0
  388. package/dist/digest/changed-path.d.ts +7 -0
  389. package/dist/digest/changed-path.d.ts.map +1 -0
  390. package/dist/digest/changed-path.js +2 -0
  391. package/dist/digest/changed-path.js.map +1 -0
  392. package/dist/digest/changed-paths.d.ts +8 -0
  393. package/dist/digest/changed-paths.d.ts.map +1 -0
  394. package/dist/digest/changed-paths.js +35 -0
  395. package/dist/digest/changed-paths.js.map +1 -0
  396. package/dist/digest/changes-of.d.ts +8 -0
  397. package/dist/digest/changes-of.d.ts.map +1 -0
  398. package/dist/digest/changes-of.js +20 -0
  399. package/dist/digest/changes-of.js.map +1 -0
  400. package/dist/digest/context-changes.d.ts +9 -0
  401. package/dist/digest/context-changes.d.ts.map +1 -0
  402. package/dist/digest/context-changes.js +60 -0
  403. package/dist/digest/context-changes.js.map +1 -0
  404. package/dist/digest/context-entries.d.ts +14 -0
  405. package/dist/digest/context-entries.d.ts.map +1 -0
  406. package/dist/digest/context-entries.js +18 -0
  407. package/dist/digest/context-entries.js.map +1 -0
  408. package/dist/digest/digest.d.ts +90 -0
  409. package/dist/digest/digest.d.ts.map +1 -0
  410. package/dist/digest/digest.js +2 -0
  411. package/dist/digest/digest.js.map +1 -0
  412. package/dist/digest/files-to-read.d.ts +16 -0
  413. package/dist/digest/files-to-read.d.ts.map +1 -0
  414. package/dist/digest/files-to-read.js +33 -0
  415. package/dist/digest/files-to-read.js.map +1 -0
  416. package/dist/digest/format-digest.d.ts +8 -0
  417. package/dist/digest/format-digest.d.ts.map +1 -0
  418. package/dist/digest/format-digest.js +105 -0
  419. package/dist/digest/format-digest.js.map +1 -0
  420. package/dist/digest/grant-sources.d.ts +22 -0
  421. package/dist/digest/grant-sources.d.ts.map +1 -0
  422. package/dist/digest/grant-sources.js +47 -0
  423. package/dist/digest/grant-sources.js.map +1 -0
  424. package/dist/digest/grants-of.d.ts +19 -0
  425. package/dist/digest/grants-of.d.ts.map +1 -0
  426. package/dist/digest/grants-of.js +35 -0
  427. package/dist/digest/grants-of.js.map +1 -0
  428. package/dist/digest/index.d.ts +3 -0
  429. package/dist/digest/index.d.ts.map +1 -0
  430. package/dist/digest/index.js +3 -0
  431. package/dist/digest/index.js.map +1 -0
  432. package/dist/digest/new-spec-titles.d.ts +11 -0
  433. package/dist/digest/new-spec-titles.d.ts.map +1 -0
  434. package/dist/digest/new-spec-titles.js +38 -0
  435. package/dist/digest/new-spec-titles.js.map +1 -0
  436. package/dist/digest/project-tree.d.ts +16 -0
  437. package/dist/digest/project-tree.d.ts.map +1 -0
  438. package/dist/digest/project-tree.js +2 -0
  439. package/dist/digest/project-tree.js.map +1 -0
  440. package/dist/digest/read-digest.d.ts +11 -0
  441. package/dist/digest/read-digest.d.ts.map +1 -0
  442. package/dist/digest/read-digest.js +52 -0
  443. package/dist/digest/read-digest.js.map +1 -0
  444. package/dist/digest/reading-part.d.ts +10 -0
  445. package/dist/digest/reading-part.d.ts.map +1 -0
  446. package/dist/digest/reading-part.js +40 -0
  447. package/dist/digest/reading-part.js.map +1 -0
  448. package/dist/digest/tree-at.d.ts +9 -0
  449. package/dist/digest/tree-at.d.ts.map +1 -0
  450. package/dist/digest/tree-at.js +77 -0
  451. package/dist/digest/tree-at.js.map +1 -0
  452. package/dist/digest/without-generated-sections.d.ts +3 -0
  453. package/dist/digest/without-generated-sections.d.ts.map +1 -0
  454. package/dist/digest/without-generated-sections.js +21 -0
  455. package/dist/digest/without-generated-sections.js.map +1 -0
  456. package/dist/docs/all-rules.d.ts +4 -0
  457. package/dist/docs/all-rules.d.ts.map +1 -0
  458. package/dist/docs/all-rules.js +5 -0
  459. package/dist/docs/all-rules.js.map +1 -0
  460. package/dist/docs/behaviour-page.d.ts +6 -2
  461. package/dist/docs/behaviour-page.d.ts.map +1 -1
  462. package/dist/docs/behaviour-page.js +65 -57
  463. package/dist/docs/behaviour-page.js.map +1 -1
  464. package/dist/docs/cited-rows.d.ts +11 -0
  465. package/dist/docs/cited-rows.d.ts.map +1 -0
  466. package/dist/docs/cited-rows.js +13 -0
  467. package/dist/docs/cited-rows.js.map +1 -0
  468. package/dist/docs/context-sections.d.ts +18 -0
  469. package/dist/docs/context-sections.d.ts.map +1 -0
  470. package/dist/docs/context-sections.js +112 -0
  471. package/dist/docs/context-sections.js.map +1 -0
  472. package/dist/docs/counts-of.d.ts +3 -1
  473. package/dist/docs/counts-of.d.ts.map +1 -1
  474. package/dist/docs/counts-of.js +8 -8
  475. package/dist/docs/counts-of.js.map +1 -1
  476. package/dist/docs/describe-on-disk.d.ts +7 -0
  477. package/dist/docs/describe-on-disk.d.ts.map +1 -0
  478. package/dist/docs/describe-on-disk.js +6 -0
  479. package/dist/docs/describe-on-disk.js.map +1 -0
  480. package/dist/docs/is-empty-rules.d.ts +4 -0
  481. package/dist/docs/is-empty-rules.d.ts.map +1 -0
  482. package/dist/docs/is-empty-rules.js +5 -0
  483. package/dist/docs/is-empty-rules.js.map +1 -0
  484. package/dist/docs/is-generated-title.d.ts +7 -0
  485. package/dist/docs/is-generated-title.d.ts.map +1 -0
  486. package/dist/docs/is-generated-title.js +96 -0
  487. package/dist/docs/is-generated-title.js.map +1 -0
  488. package/dist/docs/joined-specs.d.ts +23 -0
  489. package/dist/docs/joined-specs.d.ts.map +1 -0
  490. package/dist/docs/joined-specs.js +95 -0
  491. package/dist/docs/joined-specs.js.map +1 -0
  492. package/dist/docs/kebab-of-use-case.d.ts +4 -0
  493. package/dist/docs/kebab-of-use-case.d.ts.map +1 -0
  494. package/dist/docs/kebab-of-use-case.js +6 -0
  495. package/dist/docs/kebab-of-use-case.js.map +1 -0
  496. package/dist/docs/page-section.d.ts +17 -3
  497. package/dist/docs/page-section.d.ts.map +1 -1
  498. package/dist/docs/policy-owners.d.ts +8 -0
  499. package/dist/docs/policy-owners.d.ts.map +1 -0
  500. package/dist/docs/policy-owners.js +13 -0
  501. package/dist/docs/policy-owners.js.map +1 -0
  502. package/dist/docs/read-context.d.ts.map +1 -1
  503. package/dist/docs/read-context.js +2 -1
  504. package/dist/docs/read-context.js.map +1 -1
  505. package/dist/docs/read-job-files.d.ts +16 -0
  506. package/dist/docs/read-job-files.d.ts.map +1 -0
  507. package/dist/docs/read-job-files.js +50 -0
  508. package/dist/docs/read-job-files.js.map +1 -0
  509. package/dist/docs/read-jobs.d.ts +2 -6
  510. package/dist/docs/read-jobs.d.ts.map +1 -1
  511. package/dist/docs/read-jobs.js +3 -45
  512. package/dist/docs/read-jobs.js.map +1 -1
  513. package/dist/docs/readable-title.d.ts +10 -0
  514. package/dist/docs/readable-title.d.ts.map +1 -0
  515. package/dist/docs/readable-title.js +38 -0
  516. package/dist/docs/readable-title.js.map +1 -0
  517. package/dist/docs/refresh-context-doc.d.ts +4 -2
  518. package/dist/docs/refresh-context-doc.d.ts.map +1 -1
  519. package/dist/docs/refresh-context-doc.js +12 -4
  520. package/dist/docs/refresh-context-doc.js.map +1 -1
  521. package/dist/docs/rules-where.d.ts +4 -0
  522. package/dist/docs/rules-where.d.ts.map +1 -0
  523. package/dist/docs/rules-where.js +12 -0
  524. package/dist/docs/rules-where.js.map +1 -0
  525. package/dist/docs/spec-heading.d.ts +3 -0
  526. package/dist/docs/spec-heading.d.ts.map +1 -0
  527. package/dist/docs/spec-heading.js +10 -0
  528. package/dist/docs/spec-heading.js.map +1 -0
  529. package/dist/docs/spec-of-page.d.ts +5 -0
  530. package/dist/docs/spec-of-page.d.ts.map +1 -0
  531. package/dist/docs/spec-of-page.js +14 -0
  532. package/dist/docs/spec-of-page.js.map +1 -0
  533. package/dist/docs/spec-roles.d.ts +9 -0
  534. package/dist/docs/spec-roles.d.ts.map +1 -0
  535. package/dist/docs/spec-roles.js +50 -0
  536. package/dist/docs/spec-roles.js.map +1 -0
  537. package/dist/docs/spec-subject.d.ts +15 -0
  538. package/dist/docs/spec-subject.d.ts.map +1 -0
  539. package/dist/docs/spec-subject.js +19 -0
  540. package/dist/docs/spec-subject.js.map +1 -0
  541. package/dist/docs/specs-by-directory.d.ts +7 -0
  542. package/dist/docs/specs-by-directory.d.ts.map +1 -0
  543. package/dist/docs/specs-by-directory.js +31 -0
  544. package/dist/docs/specs-by-directory.js.map +1 -0
  545. package/dist/docs/use-case-of-spec.d.ts +11 -0
  546. package/dist/docs/use-case-of-spec.d.ts.map +1 -0
  547. package/dist/docs/use-case-of-spec.js +40 -0
  548. package/dist/docs/use-case-of-spec.js.map +1 -0
  549. package/dist/docs/use-cases-of-context.d.ts +8 -0
  550. package/dist/docs/use-cases-of-context.d.ts.map +1 -0
  551. package/dist/docs/use-cases-of-context.js +2 -0
  552. package/dist/docs/use-cases-of-context.js.map +1 -0
  553. package/dist/docs/write-behaviour.d.ts +6 -5
  554. package/dist/docs/write-behaviour.d.ts.map +1 -1
  555. package/dist/docs/write-behaviour.js +37 -47
  556. package/dist/docs/write-behaviour.js.map +1 -1
  557. package/dist/docs/write-code-owners.d.ts.map +1 -1
  558. package/dist/docs/write-code-owners.js +3 -2
  559. package/dist/docs/write-code-owners.js.map +1 -1
  560. package/dist/docs/write-docs.d.ts.map +1 -1
  561. package/dist/docs/write-docs.js +4 -2
  562. package/dist/docs/write-docs.js.map +1 -1
  563. package/dist/doctor/format-diagnosis.js +2 -4
  564. package/dist/doctor/format-diagnosis.js.map +1 -1
  565. package/dist/generate/context-argument.d.ts +5 -0
  566. package/dist/generate/context-argument.d.ts.map +1 -0
  567. package/dist/generate/context-argument.js +9 -0
  568. package/dist/generate/context-argument.js.map +1 -0
  569. package/dist/generate/found-prerequisite.d.ts +7 -0
  570. package/dist/generate/found-prerequisite.d.ts.map +1 -0
  571. package/dist/generate/found-prerequisite.js +12 -0
  572. package/dist/generate/found-prerequisite.js.map +1 -0
  573. package/dist/generate/generate-arguments.d.ts +4 -0
  574. package/dist/generate/generate-arguments.d.ts.map +1 -0
  575. package/dist/generate/generate-arguments.js +12 -0
  576. package/dist/generate/generate-arguments.js.map +1 -0
  577. package/dist/generate/generate-options.d.ts +172 -0
  578. package/dist/generate/generate-options.d.ts.map +1 -0
  579. package/dist/generate/generate-options.js +57 -0
  580. package/dist/generate/generate-options.js.map +1 -0
  581. package/dist/generate/generator-probe.d.ts +19 -0
  582. package/dist/generate/generator-probe.d.ts.map +1 -0
  583. package/dist/generate/generator-probe.js +2 -0
  584. package/dist/generate/generator-probe.js.map +1 -0
  585. package/dist/generate/kind-help.d.ts +19 -0
  586. package/dist/generate/kind-help.d.ts.map +1 -0
  587. package/dist/generate/kind-help.js +18 -0
  588. package/dist/generate/kind-help.js.map +1 -0
  589. package/dist/generate/kind-in.d.ts +8 -0
  590. package/dist/generate/kind-in.d.ts.map +1 -0
  591. package/dist/generate/kind-in.js +29 -0
  592. package/dist/generate/kind-in.js.map +1 -0
  593. package/dist/generate/kind.d.ts +4 -1
  594. package/dist/generate/kind.d.ts.map +1 -1
  595. package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
  596. package/dist/generate/kinds/acl-kind.js +3 -2
  597. package/dist/generate/kinds/acl-kind.js.map +1 -1
  598. package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
  599. package/dist/generate/kinds/aggregate-kind.js +24 -13
  600. package/dist/generate/kinds/aggregate-kind.js.map +1 -1
  601. package/dist/generate/kinds/ask-policy-in-generated-use-case.js +2 -2
  602. package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
  603. package/dist/generate/kinds/background/background-job-vars.d.ts.map +1 -1
  604. package/dist/generate/kinds/background/background-job-vars.js +33 -0
  605. package/dist/generate/kinds/background/background-job-vars.js.map +1 -1
  606. package/dist/generate/kinds/background/class-payload-schema.d.ts +5 -0
  607. package/dist/generate/kinds/background/class-payload-schema.d.ts.map +1 -0
  608. package/dist/generate/kinds/background/class-payload-schema.js +88 -0
  609. package/dist/generate/kinds/background/class-payload-schema.js.map +1 -0
  610. package/dist/generate/kinds/background/object-payload-schema.d.ts +7 -0
  611. package/dist/generate/kinds/background/object-payload-schema.d.ts.map +1 -0
  612. package/dist/generate/kinds/background/object-payload-schema.js +75 -0
  613. package/dist/generate/kinds/background/object-payload-schema.js.map +1 -0
  614. package/dist/generate/kinds/background/payload-field.d.ts +5 -0
  615. package/dist/generate/kinds/background/payload-field.d.ts.map +1 -1
  616. package/dist/generate/kinds/background/payload-field.js +7 -0
  617. package/dist/generate/kinds/background/payload-field.js.map +1 -1
  618. package/dist/generate/kinds/background/payload-of.d.ts +9 -0
  619. package/dist/generate/kinds/background/payload-of.d.ts.map +1 -0
  620. package/dist/generate/kinds/background/payload-of.js +2 -0
  621. package/dist/generate/kinds/background/payload-of.js.map +1 -0
  622. package/dist/generate/kinds/background/payload-schema-of.d.ts +10 -0
  623. package/dist/generate/kinds/background/payload-schema-of.d.ts.map +1 -0
  624. package/dist/generate/kinds/background/payload-schema-of.js +21 -0
  625. package/dist/generate/kinds/background/payload-schema-of.js.map +1 -0
  626. package/dist/generate/kinds/background/payload-schema.d.ts +16 -0
  627. package/dist/generate/kinds/background/payload-schema.d.ts.map +1 -0
  628. package/dist/generate/kinds/background/payload-schema.js +2 -0
  629. package/dist/generate/kinds/background/payload-schema.js.map +1 -0
  630. package/dist/generate/kinds/background/payload-shape.d.ts +19 -0
  631. package/dist/generate/kinds/background/payload-shape.d.ts.map +1 -0
  632. package/dist/generate/kinds/background/payload-shape.js +31 -0
  633. package/dist/generate/kinds/background/payload-shape.js.map +1 -0
  634. package/dist/generate/kinds/background/payload-texts.d.ts +12 -0
  635. package/dist/generate/kinds/background/payload-texts.d.ts.map +1 -0
  636. package/dist/generate/kinds/background/payload-texts.js +10 -0
  637. package/dist/generate/kinds/background/payload-texts.js.map +1 -0
  638. package/dist/generate/kinds/background/written-payload-schema.d.ts +11 -0
  639. package/dist/generate/kinds/background/written-payload-schema.d.ts.map +1 -0
  640. package/dist/generate/kinds/background/written-payload-schema.js +193 -0
  641. package/dist/generate/kinds/background/written-payload-schema.js.map +1 -0
  642. package/dist/generate/kinds/birth-names.d.ts +11 -0
  643. package/dist/generate/kinds/birth-names.d.ts.map +1 -0
  644. package/dist/generate/kinds/birth-names.js +17 -0
  645. package/dist/generate/kinds/birth-names.js.map +1 -0
  646. package/dist/generate/kinds/birth-of.d.ts +16 -0
  647. package/dist/generate/kinds/birth-of.d.ts.map +1 -0
  648. package/dist/generate/kinds/birth-of.js +26 -0
  649. package/dist/generate/kinds/birth-of.js.map +1 -0
  650. package/dist/generate/kinds/birth-span.d.ts +9 -0
  651. package/dist/generate/kinds/birth-span.d.ts.map +1 -0
  652. package/dist/generate/kinds/birth-span.js +39 -0
  653. package/dist/generate/kinds/birth-span.js.map +1 -0
  654. package/dist/generate/kinds/birth-vars.d.ts +8 -0
  655. package/dist/generate/kinds/birth-vars.d.ts.map +1 -0
  656. package/dist/generate/kinds/birth-vars.js +12 -0
  657. package/dist/generate/kinds/birth-vars.js.map +1 -0
  658. package/dist/generate/kinds/birth.d.ts +7 -0
  659. package/dist/generate/kinds/birth.d.ts.map +1 -0
  660. package/dist/generate/kinds/birth.js +2 -0
  661. package/dist/generate/kinds/birth.js.map +1 -0
  662. package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
  663. package/dist/generate/kinds/builder-kind.js +43 -4
  664. package/dist/generate/kinds/builder-kind.js.map +1 -1
  665. package/dist/generate/kinds/command-context.d.ts +2 -2
  666. package/dist/generate/kinds/command-context.d.ts.map +1 -1
  667. package/dist/generate/kinds/command-context.js +12 -3
  668. package/dist/generate/kinds/command-context.js.map +1 -1
  669. package/dist/generate/kinds/command-kind.d.ts.map +1 -1
  670. package/dist/generate/kinds/command-kind.js +17 -10
  671. package/dist/generate/kinds/command-kind.js.map +1 -1
  672. package/dist/generate/kinds/context-kind.d.ts.map +1 -1
  673. package/dist/generate/kinds/context-kind.js +1 -0
  674. package/dist/generate/kinds/context-kind.js.map +1 -1
  675. package/dist/generate/kinds/context-request.d.ts +3 -0
  676. package/dist/generate/kinds/context-request.d.ts.map +1 -1
  677. package/dist/generate/kinds/e2e/jobs-sending.d.ts +4 -1
  678. package/dist/generate/kinds/e2e/jobs-sending.d.ts.map +1 -1
  679. package/dist/generate/kinds/e2e/jobs-sending.js +10 -4
  680. package/dist/generate/kinds/e2e/jobs-sending.js.map +1 -1
  681. package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
  682. package/dist/generate/kinds/e2e/reaction-of.js +9 -4
  683. package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
  684. package/dist/generate/kinds/e2e-kind.js +6 -1
  685. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  686. package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
  687. package/dist/generate/kinds/erasure-handler-kind.js +6 -2
  688. package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
  689. package/dist/generate/kinds/factory-of.d.ts +3 -0
  690. package/dist/generate/kinds/factory-of.d.ts.map +1 -0
  691. package/dist/generate/kinds/factory-of.js +13 -0
  692. package/dist/generate/kinds/factory-of.js.map +1 -0
  693. package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
  694. package/dist/generate/kinds/file-upload-kind.js +3 -2
  695. package/dist/generate/kinds/file-upload-kind.js.map +1 -1
  696. package/dist/generate/kinds/find-event-declaration.d.ts +4 -1
  697. package/dist/generate/kinds/find-event-declaration.d.ts.map +1 -1
  698. package/dist/generate/kinds/find-event-declaration.js +16 -7
  699. package/dist/generate/kinds/find-event-declaration.js.map +1 -1
  700. package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
  701. package/dist/generate/kinds/gateway-kind.js +3 -1
  702. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  703. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  704. package/dist/generate/kinds/generate-context.js +24 -6
  705. package/dist/generate/kinds/generate-context.js.map +1 -1
  706. package/dist/generate/kinds/generate-event-sourced-repository.d.ts.map +1 -1
  707. package/dist/generate/kinds/generate-event-sourced-repository.js +4 -2
  708. package/dist/generate/kinds/generate-event-sourced-repository.js.map +1 -1
  709. package/dist/generate/kinds/instant-of.d.ts +4 -0
  710. package/dist/generate/kinds/instant-of.d.ts.map +1 -0
  711. package/dist/generate/kinds/instant-of.js +5 -0
  712. package/dist/generate/kinds/instant-of.js.map +1 -0
  713. package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
  714. package/dist/generate/kinds/integration-handler-kind.js +4 -3
  715. package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
  716. package/dist/generate/kinds/job/read-sent-command.d.ts.map +1 -1
  717. package/dist/generate/kinds/job/read-sent-command.js +1 -7
  718. package/dist/generate/kinds/job/read-sent-command.js.map +1 -1
  719. package/dist/generate/kinds/job/without-comments.d.ts +7 -0
  720. package/dist/generate/kinds/job/without-comments.d.ts.map +1 -0
  721. package/dist/generate/kinds/job/without-comments.js +13 -0
  722. package/dist/generate/kinds/job/without-comments.js.map +1 -0
  723. package/dist/generate/kinds/job-kind.d.ts.map +1 -1
  724. package/dist/generate/kinds/job-kind.js +13 -2
  725. package/dist/generate/kinds/job-kind.js.map +1 -1
  726. package/dist/generate/kinds/module-kind.js +2 -2
  727. package/dist/generate/kinds/module-kind.js.map +1 -1
  728. package/dist/generate/kinds/parameter-count.d.ts +6 -0
  729. package/dist/generate/kinds/parameter-count.d.ts.map +1 -0
  730. package/dist/generate/kinds/parameter-count.js +32 -0
  731. package/dist/generate/kinds/parameter-count.js.map +1 -0
  732. package/dist/generate/kinds/personal-data/personal-request-of.d.ts.map +1 -1
  733. package/dist/generate/kinds/personal-data/personal-request-of.js +9 -6
  734. package/dist/generate/kinds/personal-data/personal-request-of.js.map +1 -1
  735. package/dist/generate/kinds/personal-data/personal-vars.js +1 -1
  736. package/dist/generate/kinds/personal-data/personal-vars.js.map +1 -1
  737. package/dist/generate/kinds/plan-vars.d.ts.map +1 -1
  738. package/dist/generate/kinds/plan-vars.js +2 -1
  739. package/dist/generate/kinds/plan-vars.js.map +1 -1
  740. package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
  741. package/dist/generate/kinds/policy-kind.js +15 -2
  742. package/dist/generate/kinds/policy-kind.js.map +1 -1
  743. package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
  744. package/dist/generate/kinds/presentation/controller-of.js +4 -2
  745. package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
  746. package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
  747. package/dist/generate/kinds/projection-kind.js +4 -2
  748. package/dist/generate/kinds/projection-kind.js.map +1 -1
  749. package/dist/generate/kinds/query-context.d.ts +7 -3
  750. package/dist/generate/kinds/query-context.d.ts.map +1 -1
  751. package/dist/generate/kinds/query-context.js +16 -5
  752. package/dist/generate/kinds/query-context.js.map +1 -1
  753. package/dist/generate/kinds/query-kind.d.ts.map +1 -1
  754. package/dist/generate/kinds/query-kind.js +4 -1
  755. package/dist/generate/kinds/query-kind.js.map +1 -1
  756. package/dist/generate/kinds/route/carries-body.d.ts +4 -0
  757. package/dist/generate/kinds/route/carries-body.d.ts.map +1 -0
  758. package/dist/generate/kinds/route/carries-body.js +6 -0
  759. package/dist/generate/kinds/route/carries-body.js.map +1 -0
  760. package/dist/generate/kinds/route/controller-types.d.ts +3 -1
  761. package/dist/generate/kinds/route/controller-types.d.ts.map +1 -1
  762. package/dist/generate/kinds/route/controller-types.js +7 -4
  763. package/dist/generate/kinds/route/controller-types.js.map +1 -1
  764. package/dist/generate/kinds/route/controller-vars.d.ts.map +1 -1
  765. package/dist/generate/kinds/route/controller-vars.js +15 -8
  766. package/dist/generate/kinds/route/controller-vars.js.map +1 -1
  767. package/dist/generate/kinds/route/described-field.d.ts +4 -0
  768. package/dist/generate/kinds/route/described-field.d.ts.map +1 -0
  769. package/dist/generate/kinds/route/described-field.js +5 -0
  770. package/dist/generate/kinds/route/described-field.js.map +1 -0
  771. package/dist/generate/kinds/route/dto-classes.d.ts.map +1 -1
  772. package/dist/generate/kinds/route/dto-classes.js +2 -2
  773. package/dist/generate/kinds/route/dto-classes.js.map +1 -1
  774. package/dist/generate/kinds/route/find-use-case.d.ts.map +1 -1
  775. package/dist/generate/kinds/route/find-use-case.js +4 -1
  776. package/dist/generate/kinds/route/find-use-case.js.map +1 -1
  777. package/dist/generate/kinds/route/group-prefix.d.ts.map +1 -1
  778. package/dist/generate/kinds/route/group-prefix.js +9 -3
  779. package/dist/generate/kinds/route/group-prefix.js.map +1 -1
  780. package/dist/generate/kinds/route/message-call.d.ts +15 -0
  781. package/dist/generate/kinds/route/message-call.d.ts.map +1 -0
  782. package/dist/generate/kinds/route/message-call.js +19 -0
  783. package/dist/generate/kinds/route/message-call.js.map +1 -0
  784. package/dist/generate/kinds/route/message-fields-of.d.ts +15 -0
  785. package/dist/generate/kinds/route/message-fields-of.d.ts.map +1 -0
  786. package/dist/generate/kinds/route/message-fields-of.js +13 -0
  787. package/dist/generate/kinds/route/message-fields-of.js.map +1 -0
  788. package/dist/generate/kinds/route/message-plan.d.ts +31 -0
  789. package/dist/generate/kinds/route/message-plan.d.ts.map +1 -0
  790. package/dist/generate/kinds/route/message-plan.js +46 -0
  791. package/dist/generate/kinds/route/message-plan.js.map +1 -0
  792. package/dist/generate/kinds/route/message-vars.d.ts +11 -0
  793. package/dist/generate/kinds/route/message-vars.d.ts.map +1 -0
  794. package/dist/generate/kinds/route/message-vars.js +89 -0
  795. package/dist/generate/kinds/route/message-vars.js.map +1 -0
  796. package/dist/generate/kinds/route/nest-controller-vars.d.ts.map +1 -1
  797. package/dist/generate/kinds/route/nest-controller-vars.js +2 -2
  798. package/dist/generate/kinds/route/nest-controller-vars.js.map +1 -1
  799. package/dist/generate/kinds/route/plan-of.d.ts +14 -0
  800. package/dist/generate/kinds/route/plan-of.d.ts.map +1 -0
  801. package/dist/generate/kinds/route/plan-of.js +6 -0
  802. package/dist/generate/kinds/route/plan-of.js.map +1 -0
  803. package/dist/generate/kinds/route/resolve-group.d.ts.map +1 -1
  804. package/dist/generate/kinds/route/resolve-group.js +4 -2
  805. package/dist/generate/kinds/route/resolve-group.js.map +1 -1
  806. package/dist/generate/kinds/route/route-vars.d.ts +6 -2
  807. package/dist/generate/kinds/route/route-vars.d.ts.map +1 -1
  808. package/dist/generate/kinds/route/route-vars.js +36 -13
  809. package/dist/generate/kinds/route/route-vars.js.map +1 -1
  810. package/dist/generate/kinds/route/sample-params.d.ts +3 -0
  811. package/dist/generate/kinds/route/sample-params.d.ts.map +1 -0
  812. package/dist/generate/kinds/route/sample-params.js +7 -0
  813. package/dist/generate/kinds/route/sample-params.js.map +1 -0
  814. package/dist/generate/kinds/route/spec-vars.d.ts +21 -0
  815. package/dist/generate/kinds/route/spec-vars.d.ts.map +1 -0
  816. package/dist/generate/kinds/route/spec-vars.js +61 -0
  817. package/dist/generate/kinds/route/spec-vars.js.map +1 -0
  818. package/dist/generate/kinds/route/standard-schema-of.d.ts +17 -0
  819. package/dist/generate/kinds/route/standard-schema-of.d.ts.map +1 -0
  820. package/dist/generate/kinds/route/standard-schema-of.js +74 -0
  821. package/dist/generate/kinds/route/standard-schema-of.js.map +1 -0
  822. package/dist/generate/kinds/route/use-case.d.ts +3 -0
  823. package/dist/generate/kinds/route/use-case.d.ts.map +1 -1
  824. package/dist/generate/kinds/route/writes-body-of.d.ts +4 -0
  825. package/dist/generate/kinds/route/writes-body-of.d.ts.map +1 -0
  826. package/dist/generate/kinds/route/writes-body-of.js +5 -0
  827. package/dist/generate/kinds/route/writes-body-of.js.map +1 -0
  828. package/dist/generate/kinds/route/writes-params-of.d.ts +4 -0
  829. package/dist/generate/kinds/route/writes-params-of.d.ts.map +1 -0
  830. package/dist/generate/kinds/route/writes-params-of.js +5 -0
  831. package/dist/generate/kinds/route/writes-params-of.js.map +1 -0
  832. package/dist/generate/kinds/route-group-kind.js +2 -1
  833. package/dist/generate/kinds/route-group-kind.js.map +1 -1
  834. package/dist/generate/kinds/traced-command.d.ts +1 -1
  835. package/dist/generate/kinds/traced-command.d.ts.map +1 -1
  836. package/dist/generate/kinds/traced-command.js +5 -2
  837. package/dist/generate/kinds/traced-command.js.map +1 -1
  838. package/dist/generate/kinds/use-case-context.d.ts +7 -0
  839. package/dist/generate/kinds/use-case-context.d.ts.map +1 -0
  840. package/dist/generate/kinds/use-case-context.js +2 -0
  841. package/dist/generate/kinds/use-case-context.js.map +1 -0
  842. package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
  843. package/dist/generate/kinds/worker-kind.js +2 -1
  844. package/dist/generate/kinds/worker-kind.js.map +1 -1
  845. package/dist/generate/kinds/world/context-fakes.d.ts +2 -1
  846. package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
  847. package/dist/generate/kinds/world/context-fakes.js +24 -4
  848. package/dist/generate/kinds/world/context-fakes.js.map +1 -1
  849. package/dist/generate/kinds/world/context-world.d.ts +37 -0
  850. package/dist/generate/kinds/world/context-world.d.ts.map +1 -0
  851. package/dist/generate/kinds/world/context-world.js +60 -0
  852. package/dist/generate/kinds/world/context-world.js.map +1 -0
  853. package/dist/generate/kinds/world/fake-class.d.ts +2 -0
  854. package/dist/generate/kinds/world/fake-class.d.ts.map +1 -1
  855. package/dist/generate/kinds/world/fake-class.js +2 -2
  856. package/dist/generate/kinds/world/fake-class.js.map +1 -1
  857. package/dist/generate/kinds/world/is-world-comment.d.ts +3 -0
  858. package/dist/generate/kinds/world/is-world-comment.d.ts.map +1 -0
  859. package/dist/generate/kinds/world/is-world-comment.js +12 -0
  860. package/dist/generate/kinds/world/is-world-comment.js.map +1 -0
  861. package/dist/generate/kinds/world/world-arrangement.d.ts +32 -0
  862. package/dist/generate/kinds/world/world-arrangement.d.ts.map +1 -0
  863. package/dist/generate/kinds/world/world-arrangement.js +110 -0
  864. package/dist/generate/kinds/world/world-arrangement.js.map +1 -0
  865. package/dist/generate/kinds/world/world-comments.d.ts +11 -0
  866. package/dist/generate/kinds/world/world-comments.d.ts.map +1 -0
  867. package/dist/generate/kinds/world/world-comments.js +11 -0
  868. package/dist/generate/kinds/world/world-comments.js.map +1 -0
  869. package/dist/generate/kinds/world/world-vars.d.ts.map +1 -1
  870. package/dist/generate/kinds/world/world-vars.js +6 -2
  871. package/dist/generate/kinds/world/world-vars.js.map +1 -1
  872. package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
  873. package/dist/generate/kinds/write-event-sourced-aggregate.js +9 -3
  874. package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
  875. package/dist/generate/kinds-help.d.ts +1 -15
  876. package/dist/generate/kinds-help.d.ts.map +1 -1
  877. package/dist/generate/kinds-help.js +2 -16
  878. package/dist/generate/kinds-help.js.map +1 -1
  879. package/dist/generate/learn-terms.d.ts +4 -1
  880. package/dist/generate/learn-terms.d.ts.map +1 -1
  881. package/dist/generate/learn-terms.js +6 -2
  882. package/dist/generate/learn-terms.js.map +1 -1
  883. package/dist/generate/missing-prerequisite.d.ts +10 -0
  884. package/dist/generate/missing-prerequisite.d.ts.map +1 -0
  885. package/dist/generate/missing-prerequisite.js +10 -0
  886. package/dist/generate/missing-prerequisite.js.map +1 -0
  887. package/dist/generate/open-scope.d.ts.map +1 -1
  888. package/dist/generate/open-scope.js +9 -5
  889. package/dist/generate/open-scope.js.map +1 -1
  890. package/dist/generate/place-generated-files.d.ts.map +1 -1
  891. package/dist/generate/place-generated-files.js +2 -1
  892. package/dist/generate/place-generated-files.js.map +1 -1
  893. package/dist/generate/prerequisite-refusal.d.ts +8 -0
  894. package/dist/generate/prerequisite-refusal.d.ts.map +1 -0
  895. package/dist/generate/prerequisite-refusal.js +11 -0
  896. package/dist/generate/prerequisite-refusal.js.map +1 -0
  897. package/dist/generate/refresh-barrels.d.ts.map +1 -1
  898. package/dist/generate/refresh-barrels.js +4 -1
  899. package/dist/generate/refresh-barrels.js.map +1 -1
  900. package/dist/generate/refuse-undeclared-flags.d.ts +9 -0
  901. package/dist/generate/refuse-undeclared-flags.d.ts.map +1 -0
  902. package/dist/generate/refuse-undeclared-flags.js +27 -0
  903. package/dist/generate/refuse-undeclared-flags.js.map +1 -0
  904. package/dist/generate/require-file.d.ts.map +1 -1
  905. package/dist/generate/require-file.js +4 -3
  906. package/dist/generate/require-file.js.map +1 -1
  907. package/dist/generate/without-language-todo.d.ts +3 -0
  908. package/dist/generate/without-language-todo.d.ts.map +1 -0
  909. package/dist/generate/without-language-todo.js +7 -0
  910. package/dist/generate/without-language-todo.js.map +1 -0
  911. package/dist/generator-lock/held-lock-refusal.d.ts +5 -0
  912. package/dist/generator-lock/held-lock-refusal.d.ts.map +1 -0
  913. package/dist/generator-lock/held-lock-refusal.js +14 -0
  914. package/dist/generator-lock/held-lock-refusal.js.map +1 -0
  915. package/dist/generator-lock/holder-of.d.ts +9 -0
  916. package/dist/generator-lock/holder-of.d.ts.map +1 -0
  917. package/dist/generator-lock/holder-of.js +40 -0
  918. package/dist/generator-lock/holder-of.js.map +1 -0
  919. package/dist/generator-lock/index.d.ts +2 -0
  920. package/dist/generator-lock/index.d.ts.map +1 -0
  921. package/dist/generator-lock/index.js +2 -0
  922. package/dist/generator-lock/index.js.map +1 -0
  923. package/dist/generator-lock/is-same-holder.d.ts +4 -0
  924. package/dist/generator-lock/is-same-holder.d.ts.map +1 -0
  925. package/dist/generator-lock/is-same-holder.js +5 -0
  926. package/dist/generator-lock/is-same-holder.js.map +1 -0
  927. package/dist/generator-lock/is-stale.d.ts +9 -0
  928. package/dist/generator-lock/is-stale.d.ts.map +1 -0
  929. package/dist/generator-lock/is-stale.js +24 -0
  930. package/dist/generator-lock/is-stale.js.map +1 -0
  931. package/dist/generator-lock/lock-holder.d.ts +10 -0
  932. package/dist/generator-lock/lock-holder.d.ts.map +1 -0
  933. package/dist/generator-lock/lock-holder.js +2 -0
  934. package/dist/generator-lock/lock-holder.js.map +1 -0
  935. package/dist/generator-lock/lock-timing.d.ts +7 -0
  936. package/dist/generator-lock/lock-timing.d.ts.map +1 -0
  937. package/dist/generator-lock/lock-timing.js +2 -0
  938. package/dist/generator-lock/lock-timing.js.map +1 -0
  939. package/dist/generator-lock/own-lock.d.ts +18 -0
  940. package/dist/generator-lock/own-lock.d.ts.map +1 -0
  941. package/dist/generator-lock/own-lock.js +44 -0
  942. package/dist/generator-lock/own-lock.js.map +1 -0
  943. package/dist/generator-lock/remove-made-folder.d.ts +3 -0
  944. package/dist/generator-lock/remove-made-folder.d.ts.map +1 -0
  945. package/dist/generator-lock/remove-made-folder.js +14 -0
  946. package/dist/generator-lock/remove-made-folder.js.map +1 -0
  947. package/dist/generator-lock/remove-stale.d.ts +7 -0
  948. package/dist/generator-lock/remove-stale.d.ts.map +1 -0
  949. package/dist/generator-lock/remove-stale.js +23 -0
  950. package/dist/generator-lock/remove-stale.js.map +1 -0
  951. package/dist/generator-lock/with-generator-lock.d.ts +24 -0
  952. package/dist/generator-lock/with-generator-lock.d.ts.map +1 -0
  953. package/dist/generator-lock/with-generator-lock.js +69 -0
  954. package/dist/generator-lock/with-generator-lock.js.map +1 -0
  955. package/dist/help/command-help-data.d.ts +14 -0
  956. package/dist/help/command-help-data.d.ts.map +1 -0
  957. package/dist/help/command-help-data.js +15 -0
  958. package/dist/help/command-help-data.js.map +1 -0
  959. package/dist/help/command-help.d.ts +7 -0
  960. package/dist/help/command-help.d.ts.map +1 -0
  961. package/dist/help/command-help.js +21 -0
  962. package/dist/help/command-help.js.map +1 -0
  963. package/dist/help/flag-notes.d.ts +4 -0
  964. package/dist/help/flag-notes.d.ts.map +1 -0
  965. package/dist/help/flag-notes.js +112 -0
  966. package/dist/help/flag-notes.js.map +1 -0
  967. package/dist/help/help-for.d.ts +7 -0
  968. package/dist/help/help-for.d.ts.map +1 -0
  969. package/dist/help/help-for.js +37 -0
  970. package/dist/help/help-for.js.map +1 -0
  971. package/dist/help/kind-asked.d.ts +4 -0
  972. package/dist/help/kind-asked.d.ts.map +1 -0
  973. package/dist/help/kind-asked.js +6 -0
  974. package/dist/help/kind-asked.js.map +1 -0
  975. package/dist/help/kind-help-text.d.ts +4 -0
  976. package/dist/help/kind-help-text.d.ts.map +1 -0
  977. package/dist/help/kind-help-text.js +35 -0
  978. package/dist/help/kind-help-text.js.map +1 -0
  979. package/dist/help/kind-line.d.ts +4 -0
  980. package/dist/help/kind-line.d.ts.map +1 -0
  981. package/dist/help/kind-line.js +6 -0
  982. package/dist/help/kind-line.js.map +1 -0
  983. package/dist/help/note-lines.d.ts +4 -0
  984. package/dist/help/note-lines.d.ts.map +1 -0
  985. package/dist/help/note-lines.js +8 -0
  986. package/dist/help/note-lines.js.map +1 -0
  987. package/dist/help/note.d.ts +10 -0
  988. package/dist/help/note.d.ts.map +1 -0
  989. package/dist/help/note.js +2 -0
  990. package/dist/help/note.js.map +1 -0
  991. package/dist/help/notes.d.ts +3 -2
  992. package/dist/help/notes.d.ts.map +1 -1
  993. package/dist/help/notes.js +6 -318
  994. package/dist/help/notes.js.map +1 -1
  995. package/dist/help/reading-notes.d.ts +4 -0
  996. package/dist/help/reading-notes.d.ts.map +1 -0
  997. package/dist/help/reading-notes.js +150 -0
  998. package/dist/help/reading-notes.js.map +1 -0
  999. package/dist/help/reference-text.d.ts.map +1 -1
  1000. package/dist/help/reference-text.js +4 -4
  1001. package/dist/help/reference-text.js.map +1 -1
  1002. package/dist/help/tool-notes.d.ts +4 -0
  1003. package/dist/help/tool-notes.d.ts.map +1 -0
  1004. package/dist/help/tool-notes.js +152 -0
  1005. package/dist/help/tool-notes.js.map +1 -0
  1006. package/dist/help/usage-for.d.ts +6 -0
  1007. package/dist/help/usage-for.d.ts.map +1 -0
  1008. package/dist/help/usage-for.js +16 -0
  1009. package/dist/help/usage-for.js.map +1 -0
  1010. package/dist/help/usage-lines-of.d.ts +3 -0
  1011. package/dist/help/usage-lines-of.d.ts.map +1 -0
  1012. package/dist/help/usage-lines-of.js +19 -0
  1013. package/dist/help/usage-lines-of.js.map +1 -0
  1014. package/dist/help/usage.d.ts +3 -1
  1015. package/dist/help/usage.d.ts.map +1 -1
  1016. package/dist/help/usage.js +10 -4
  1017. package/dist/help/usage.js.map +1 -1
  1018. package/dist/help/work-notes.d.ts +4 -0
  1019. package/dist/help/work-notes.d.ts.map +1 -0
  1020. package/dist/help/work-notes.js +197 -0
  1021. package/dist/help/work-notes.js.map +1 -0
  1022. package/dist/init/agent-permissions.d.ts.map +1 -1
  1023. package/dist/init/agent-permissions.js +10 -1
  1024. package/dist/init/agent-permissions.js.map +1 -1
  1025. package/dist/init/forced-note.d.ts +4 -0
  1026. package/dist/init/forced-note.d.ts.map +1 -0
  1027. package/dist/init/forced-note.js +14 -0
  1028. package/dist/init/forced-note.js.map +1 -0
  1029. package/dist/init/ignore-worktrees.d.ts.map +1 -1
  1030. package/dist/init/ignore-worktrees.js +7 -1
  1031. package/dist/init/ignore-worktrees.js.map +1 -1
  1032. package/dist/init/is-pipeline-definition.d.ts +3 -0
  1033. package/dist/init/is-pipeline-definition.d.ts.map +1 -0
  1034. package/dist/init/is-pipeline-definition.js +7 -0
  1035. package/dist/init/is-pipeline-definition.js.map +1 -0
  1036. package/dist/init/is-team-file.d.ts +9 -0
  1037. package/dist/init/is-team-file.d.ts.map +1 -0
  1038. package/dist/init/is-team-file.js +12 -0
  1039. package/dist/init/is-team-file.js.map +1 -0
  1040. package/dist/init/kept-combination-notes.d.ts +5 -0
  1041. package/dist/init/kept-combination-notes.d.ts.map +1 -0
  1042. package/dist/init/kept-combination-notes.js +18 -0
  1043. package/dist/init/kept-combination-notes.js.map +1 -0
  1044. package/dist/init/kept-or-merged.d.ts +11 -0
  1045. package/dist/init/kept-or-merged.d.ts.map +1 -0
  1046. package/dist/init/kept-or-merged.js +23 -0
  1047. package/dist/init/kept-or-merged.js.map +1 -0
  1048. package/dist/init/manifest/versions.js +24 -24
  1049. package/dist/init/manifest/versions.js.map +1 -1
  1050. package/dist/init/manifest/write-manifest.js +8 -0
  1051. package/dist/init/manifest/write-manifest.js.map +1 -1
  1052. package/dist/init/manifest/write-overrides.js +4 -0
  1053. package/dist/init/manifest/write-overrides.js.map +1 -1
  1054. package/dist/init/merged-ignore-files.d.ts +3 -0
  1055. package/dist/init/merged-ignore-files.d.ts.map +1 -0
  1056. package/dist/init/merged-ignore-files.js +3 -0
  1057. package/dist/init/merged-ignore-files.js.map +1 -0
  1058. package/dist/init/merged-ignore-lines.d.ts +9 -0
  1059. package/dist/init/merged-ignore-lines.d.ts.map +1 -0
  1060. package/dist/init/merged-ignore-lines.js +32 -0
  1061. package/dist/init/merged-ignore-lines.js.map +1 -0
  1062. package/dist/init/refuse-unprojected-root.d.ts +7 -0
  1063. package/dist/init/refuse-unprojected-root.d.ts.map +1 -0
  1064. package/dist/init/refuse-unprojected-root.js +31 -0
  1065. package/dist/init/refuse-unprojected-root.js.map +1 -0
  1066. package/dist/init/run-init.d.ts +3 -2
  1067. package/dist/init/run-init.d.ts.map +1 -1
  1068. package/dist/init/run-init.js +29 -9
  1069. package/dist/init/run-init.js.map +1 -1
  1070. package/dist/issues-url.d.ts +3 -0
  1071. package/dist/issues-url.d.ts.map +1 -0
  1072. package/dist/issues-url.js +3 -0
  1073. package/dist/issues-url.js.map +1 -0
  1074. package/dist/json/format-json.d.ts +2 -1
  1075. package/dist/json/format-json.d.ts.map +1 -1
  1076. package/dist/json/format-json.js +2 -1
  1077. package/dist/json/format-json.js.map +1 -1
  1078. package/dist/json/stdout-json.d.ts +7 -0
  1079. package/dist/json/stdout-json.d.ts.map +1 -0
  1080. package/dist/json/stdout-json.js +9 -0
  1081. package/dist/json/stdout-json.js.map +1 -0
  1082. package/dist/layout/fit-declaration.d.ts +2 -1
  1083. package/dist/layout/fit-declaration.d.ts.map +1 -1
  1084. package/dist/layout/fit-declaration.js +3 -2
  1085. package/dist/layout/fit-declaration.js.map +1 -1
  1086. package/dist/merge/is-derived-in-merge.d.ts.map +1 -1
  1087. package/dist/merge/is-derived-in-merge.js +1 -2
  1088. package/dist/merge/is-derived-in-merge.js.map +1 -1
  1089. package/dist/merge/landed-point.js +1 -1
  1090. package/dist/merge/landed-point.js.map +1 -1
  1091. package/dist/merge/lost/in-progress-merge.js +1 -1
  1092. package/dist/merge/lost/in-progress-merge.js.map +1 -1
  1093. package/dist/merge/lost/merge-base-of.d.ts.map +1 -1
  1094. package/dist/merge/lost/merge-base-of.js +6 -9
  1095. package/dist/merge/lost/merge-base-of.js.map +1 -1
  1096. package/dist/merge/lost/merge-of-record.d.ts.map +1 -1
  1097. package/dist/merge/lost/merge-of-record.js +4 -9
  1098. package/dist/merge/lost/merge-of-record.js.map +1 -1
  1099. package/dist/merge/lost/merges-since.d.ts +1 -1
  1100. package/dist/merge/lost/merges-since.d.ts.map +1 -1
  1101. package/dist/merge/lost/merges-since.js +1 -1
  1102. package/dist/merge/lost/merges-since.js.map +1 -1
  1103. package/dist/merge/lost/since-of.d.ts +11 -2
  1104. package/dist/merge/lost/since-of.d.ts.map +1 -1
  1105. package/dist/merge/lost/since-of.js +17 -9
  1106. package/dist/merge/lost/since-of.js.map +1 -1
  1107. package/dist/merge/lost/verify-merge.js +1 -1
  1108. package/dist/merge/lost/verify-merge.js.map +1 -1
  1109. package/dist/merge/lost/verify-merges.d.ts +2 -0
  1110. package/dist/merge/lost/verify-merges.d.ts.map +1 -1
  1111. package/dist/merge/lost/verify-merges.js +8 -5
  1112. package/dist/merge/lost/verify-merges.js.map +1 -1
  1113. package/dist/merge/merge-exclusions.d.ts +3 -4
  1114. package/dist/merge/merge-exclusions.d.ts.map +1 -1
  1115. package/dist/merge/merge-exclusions.js +19 -19
  1116. package/dist/merge/merge-exclusions.js.map +1 -1
  1117. package/dist/merge/merge-state.d.ts.map +1 -1
  1118. package/dist/merge/merge-state.js +2 -1
  1119. package/dist/merge/merge-state.js.map +1 -1
  1120. package/dist/merge/merge-steps.d.ts.map +1 -1
  1121. package/dist/merge/merge-steps.js +0 -1
  1122. package/dist/merge/merge-steps.js.map +1 -1
  1123. package/dist/merge/merge-trunk.js +1 -1
  1124. package/dist/merge/merge-trunk.js.map +1 -1
  1125. package/dist/merge/resume-merge.js +1 -1
  1126. package/dist/merge/resume-merge.js.map +1 -1
  1127. package/dist/merge/sharing-branches.js +1 -1
  1128. package/dist/merge/sharing-branches.js.map +1 -1
  1129. package/dist/merge/trunk-of.d.ts.map +1 -1
  1130. package/dist/merge/trunk-of.js +8 -5
  1131. package/dist/merge/trunk-of.js.map +1 -1
  1132. package/dist/migration/audit-guard/orm-tool-entry.d.ts +3 -0
  1133. package/dist/migration/audit-guard/orm-tool-entry.d.ts.map +1 -0
  1134. package/dist/migration/audit-guard/orm-tool-entry.js +12 -0
  1135. package/dist/migration/audit-guard/orm-tool-entry.js.map +1 -0
  1136. package/dist/migration/audit-guard/run-orm-tool.d.ts.map +1 -1
  1137. package/dist/migration/audit-guard/run-orm-tool.js +2 -7
  1138. package/dist/migration/audit-guard/run-orm-tool.js.map +1 -1
  1139. package/dist/migration/has-database-url.d.ts +3 -0
  1140. package/dist/migration/has-database-url.d.ts.map +1 -0
  1141. package/dist/migration/has-database-url.js +5 -0
  1142. package/dist/migration/has-database-url.js.map +1 -0
  1143. package/dist/migration/index.d.ts +4 -0
  1144. package/dist/migration/index.d.ts.map +1 -1
  1145. package/dist/migration/index.js +4 -0
  1146. package/dist/migration/index.js.map +1 -1
  1147. package/dist/migration/migration-name.d.ts +8 -0
  1148. package/dist/migration/migration-name.d.ts.map +1 -0
  1149. package/dist/migration/migration-name.js +14 -0
  1150. package/dist/migration/migration-name.js.map +1 -0
  1151. package/dist/migration/offline-prisma-migration.d.ts +18 -0
  1152. package/dist/migration/offline-prisma-migration.d.ts.map +1 -0
  1153. package/dist/migration/offline-prisma-migration.js +91 -0
  1154. package/dist/migration/offline-prisma-migration.js.map +1 -0
  1155. package/dist/migration/plan-replay.d.ts.map +1 -1
  1156. package/dist/migration/plan-replay.js +3 -7
  1157. package/dist/migration/plan-replay.js.map +1 -1
  1158. package/dist/migration/run-on-in-process-database.d.ts +8 -0
  1159. package/dist/migration/run-on-in-process-database.d.ts.map +1 -0
  1160. package/dist/migration/run-on-in-process-database.js +55 -0
  1161. package/dist/migration/run-on-in-process-database.js.map +1 -0
  1162. package/dist/migration/tool-step.d.ts +8 -0
  1163. package/dist/migration/tool-step.d.ts.map +1 -0
  1164. package/dist/migration/tool-step.js +2 -0
  1165. package/dist/migration/tool-step.js.map +1 -0
  1166. package/dist/model-modules/declared-module.d.ts.map +1 -1
  1167. package/dist/model-modules/declared-module.js +2 -2
  1168. package/dist/model-modules/declared-module.js.map +1 -1
  1169. package/dist/model-modules/declared-modules.d.ts.map +1 -1
  1170. package/dist/model-modules/declared-modules.js +2 -1
  1171. package/dist/model-modules/declared-modules.js.map +1 -1
  1172. package/dist/model-modules/module-placement.d.ts.map +1 -1
  1173. package/dist/model-modules/module-placement.js +2 -1
  1174. package/dist/model-modules/module-placement.js.map +1 -1
  1175. package/dist/naming/index.d.ts +1 -0
  1176. package/dist/naming/index.d.ts.map +1 -1
  1177. package/dist/naming/index.js +1 -0
  1178. package/dist/naming/index.js.map +1 -1
  1179. package/dist/naming/name.d.ts +1 -1
  1180. package/dist/naming/name.d.ts.map +1 -1
  1181. package/dist/naming/parse-context-name.d.ts +1 -0
  1182. package/dist/naming/parse-context-name.d.ts.map +1 -1
  1183. package/dist/naming/parse-context-name.js +5 -3
  1184. package/dist/naming/parse-context-name.js.map +1 -1
  1185. package/dist/naming/read-name.d.ts +8 -0
  1186. package/dist/naming/read-name.d.ts.map +1 -0
  1187. package/dist/naming/read-name.js +20 -0
  1188. package/dist/naming/read-name.js.map +1 -0
  1189. package/dist/nest-controllers/refresh-nest-controllers.d.ts.map +1 -1
  1190. package/dist/nest-controllers/refresh-nest-controllers.js +4 -1
  1191. package/dist/nest-controllers/refresh-nest-controllers.js.map +1 -1
  1192. package/dist/plan/copy-of-project.d.ts +3 -0
  1193. package/dist/plan/copy-of-project.d.ts.map +1 -0
  1194. package/dist/plan/copy-of-project.js +43 -0
  1195. package/dist/plan/copy-of-project.js.map +1 -0
  1196. package/dist/plan/format-plan.d.ts +4 -3
  1197. package/dist/plan/format-plan.d.ts.map +1 -1
  1198. package/dist/plan/format-plan.js +48 -17
  1199. package/dist/plan/format-plan.js.map +1 -1
  1200. package/dist/plan/is-started.d.ts +4 -0
  1201. package/dist/plan/is-started.d.ts.map +1 -0
  1202. package/dist/plan/is-started.js +6 -0
  1203. package/dist/plan/is-started.js.map +1 -0
  1204. package/dist/plan/missing-dependencies.d.ts +10 -0
  1205. package/dist/plan/missing-dependencies.d.ts.map +1 -0
  1206. package/dist/plan/missing-dependencies.js +35 -0
  1207. package/dist/plan/missing-dependencies.js.map +1 -0
  1208. package/dist/plan/plan-problems.d.ts +4 -2
  1209. package/dist/plan/plan-problems.d.ts.map +1 -1
  1210. package/dist/plan/plan-problems.js +30 -2
  1211. package/dist/plan/plan-problems.js.map +1 -1
  1212. package/dist/plan/plan-waves.d.ts +2 -0
  1213. package/dist/plan/plan-waves.d.ts.map +1 -1
  1214. package/dist/plan/plan-waves.js +3 -3
  1215. package/dist/plan/plan-waves.js.map +1 -1
  1216. package/dist/plan/planned-words.d.ts +11 -23
  1217. package/dist/plan/planned-words.d.ts.map +1 -1
  1218. package/dist/plan/planned-words.js +50 -105
  1219. package/dist/plan/planned-words.js.map +1 -1
  1220. package/dist/plan/refused-command.d.ts +18 -0
  1221. package/dist/plan/refused-command.d.ts.map +1 -0
  1222. package/dist/plan/refused-command.js +109 -0
  1223. package/dist/plan/refused-command.js.map +1 -0
  1224. package/dist/plan/replay-plan.d.ts +27 -0
  1225. package/dist/plan/replay-plan.d.ts.map +1 -0
  1226. package/dist/plan/replay-plan.js +91 -0
  1227. package/dist/plan/replay-plan.js.map +1 -0
  1228. package/dist/plan/replay.d.ts +39 -0
  1229. package/dist/plan/replay.d.ts.map +1 -0
  1230. package/dist/plan/replay.js +52 -0
  1231. package/dist/plan/replay.js.map +1 -0
  1232. package/dist/plan/replayed-plan.d.ts +13 -0
  1233. package/dist/plan/replayed-plan.d.ts.map +1 -0
  1234. package/dist/plan/replayed-plan.js +17 -0
  1235. package/dist/plan/replayed-plan.js.map +1 -0
  1236. package/dist/plan/rows-to-plan.d.ts +1 -1
  1237. package/dist/plan/rows-to-plan.d.ts.map +1 -1
  1238. package/dist/plan/rows-to-plan.js +2 -1
  1239. package/dist/plan/rows-to-plan.js.map +1 -1
  1240. package/dist/plan/transitive-dependencies.d.ts +8 -0
  1241. package/dist/plan/transitive-dependencies.d.ts.map +1 -0
  1242. package/dist/plan/transitive-dependencies.js +26 -0
  1243. package/dist/plan/transitive-dependencies.js.map +1 -0
  1244. package/dist/plan/wave-plan.d.ts +55 -9
  1245. package/dist/plan/wave-plan.d.ts.map +1 -1
  1246. package/dist/platform-folders/placements.d.ts.map +1 -1
  1247. package/dist/platform-folders/placements.js +17 -1
  1248. package/dist/platform-folders/placements.js.map +1 -1
  1249. package/dist/presets/apply-preset.d.ts.map +1 -1
  1250. package/dist/presets/apply-preset.js +2 -2
  1251. package/dist/presets/apply-preset.js.map +1 -1
  1252. package/dist/presets/outside-the-tenancy.d.ts.map +1 -1
  1253. package/dist/presets/outside-the-tenancy.js +3 -1
  1254. package/dist/presets/outside-the-tenancy.js.map +1 -1
  1255. package/dist/progress/format-progress.d.ts.map +1 -1
  1256. package/dist/progress/format-progress.js +3 -2
  1257. package/dist/progress/format-progress.js.map +1 -1
  1258. package/dist/progress/slice.d.ts +7 -1
  1259. package/dist/progress/slice.d.ts.map +1 -1
  1260. package/dist/progress/slice.js +2 -1
  1261. package/dist/progress/slice.js.map +1 -1
  1262. package/dist/refusals/apply-plan.d.ts.map +1 -1
  1263. package/dist/refusals/apply-plan.js +2 -1
  1264. package/dist/refusals/apply-plan.js.map +1 -1
  1265. package/dist/refuse-windows-shell.d.ts +17 -0
  1266. package/dist/refuse-windows-shell.d.ts.map +1 -0
  1267. package/dist/refuse-windows-shell.js +32 -0
  1268. package/dist/refuse-windows-shell.js.map +1 -0
  1269. package/dist/review/generated-file-kind.d.ts +13 -0
  1270. package/dist/review/generated-file-kind.d.ts.map +1 -0
  1271. package/dist/review/generated-file-kind.js +2 -0
  1272. package/dist/review/generated-file-kind.js.map +1 -0
  1273. package/dist/review/generated-files-named.d.ts +4 -0
  1274. package/dist/review/generated-files-named.d.ts.map +1 -0
  1275. package/dist/review/generated-files-named.js +8 -0
  1276. package/dist/review/generated-files-named.js.map +1 -0
  1277. package/dist/review/generated-files.d.ts +9 -0
  1278. package/dist/review/generated-files.d.ts.map +1 -0
  1279. package/dist/review/generated-files.js +20 -0
  1280. package/dist/review/generated-files.js.map +1 -0
  1281. package/dist/review/index.d.ts +3 -0
  1282. package/dist/review/index.d.ts.map +1 -0
  1283. package/dist/review/index.js +3 -0
  1284. package/dist/review/index.js.map +1 -0
  1285. package/dist/run.d.ts +5 -1
  1286. package/dist/run.d.ts.map +1 -1
  1287. package/dist/run.js +62 -25
  1288. package/dist/run.js.map +1 -1
  1289. package/dist/slice/plan-staging.d.ts.map +1 -1
  1290. package/dist/slice/plan-staging.js +2 -1
  1291. package/dist/slice/plan-staging.js.map +1 -1
  1292. package/dist/slice/run-script.d.ts.map +1 -1
  1293. package/dist/slice/run-script.js +0 -1
  1294. package/dist/slice/run-script.js.map +1 -1
  1295. package/dist/slice/slice-to-verify.d.ts +3 -0
  1296. package/dist/slice/slice-to-verify.d.ts.map +1 -1
  1297. package/dist/slice/storage-of-slice.d.ts +1 -1
  1298. package/dist/slice/storage-of-slice.d.ts.map +1 -1
  1299. package/dist/slice/storage-of-slice.js.map +1 -1
  1300. package/dist/slice/verification-file.d.ts.map +1 -1
  1301. package/dist/slice/verification-file.js +2 -1
  1302. package/dist/slice/verification-file.js.map +1 -1
  1303. package/dist/slice/verify-slice.d.ts +1 -1
  1304. package/dist/slice/verify-slice.d.ts.map +1 -1
  1305. package/dist/slice/verify-slice.js +4 -4
  1306. package/dist/slice/verify-slice.js.map +1 -1
  1307. package/dist/stories/open-story-scope.js +4 -5
  1308. package/dist/stories/open-story-scope.js.map +1 -1
  1309. package/dist/stories/read-story-phases.js +1 -1
  1310. package/dist/stories/read-story-phases.js.map +1 -1
  1311. package/dist/stories/story-scope-file.d.ts.map +1 -1
  1312. package/dist/stories/story-scope-file.js +2 -1
  1313. package/dist/stories/story-scope-file.js.map +1 -1
  1314. package/dist/version.d.ts +1 -1
  1315. package/dist/version.d.ts.map +1 -1
  1316. package/dist/version.js +1 -1
  1317. package/dist/version.js.map +1 -1
  1318. package/dist/worker/add-worktree.d.ts +2 -1
  1319. package/dist/worker/add-worktree.d.ts.map +1 -1
  1320. package/dist/worker/add-worktree.js +2 -1
  1321. package/dist/worker/add-worktree.js.map +1 -1
  1322. package/dist/worker/agent-file.d.ts.map +1 -1
  1323. package/dist/worker/agent-file.js +2 -1
  1324. package/dist/worker/agent-file.js.map +1 -1
  1325. package/dist/worker/base-of.d.ts +6 -1
  1326. package/dist/worker/base-of.d.ts.map +1 -1
  1327. package/dist/worker/base-of.js +4 -8
  1328. package/dist/worker/base-of.js.map +1 -1
  1329. package/dist/worker/branch-standing.js +1 -1
  1330. package/dist/worker/branch-standing.js.map +1 -1
  1331. package/dist/worker/briefing-of.d.ts.map +1 -1
  1332. package/dist/worker/briefing-of.js +2 -1
  1333. package/dist/worker/briefing-of.js.map +1 -1
  1334. package/dist/worker/ensure-contains-base.d.ts +4 -2
  1335. package/dist/worker/ensure-contains-base.d.ts.map +1 -1
  1336. package/dist/worker/ensure-contains-base.js +4 -3
  1337. package/dist/worker/ensure-contains-base.js.map +1 -1
  1338. package/dist/worker/install-dependencies.d.ts.map +1 -1
  1339. package/dist/worker/install-dependencies.js +0 -1
  1340. package/dist/worker/install-dependencies.js.map +1 -1
  1341. package/dist/worker/open-worker-scope.d.ts.map +1 -1
  1342. package/dist/worker/open-worker-scope.js +22 -16
  1343. package/dist/worker/open-worker-scope.js.map +1 -1
  1344. package/dist/worker/report-file.d.ts.map +1 -1
  1345. package/dist/worker/report-file.js +2 -1
  1346. package/dist/worker/report-file.js.map +1 -1
  1347. package/dist/workspace/disk-writes.d.ts +10 -0
  1348. package/dist/workspace/disk-writes.d.ts.map +1 -0
  1349. package/dist/workspace/disk-writes.js +2 -0
  1350. package/dist/workspace/disk-writes.js.map +1 -0
  1351. package/dist/workspace/files-git-does-not-hold.d.ts +7 -0
  1352. package/dist/workspace/files-git-does-not-hold.d.ts.map +1 -0
  1353. package/dist/workspace/files-git-does-not-hold.js +28 -0
  1354. package/dist/workspace/files-git-does-not-hold.js.map +1 -0
  1355. package/dist/workspace/gist-of.d.ts +9 -0
  1356. package/dist/workspace/gist-of.d.ts.map +1 -0
  1357. package/dist/workspace/gist-of.js +55 -0
  1358. package/dist/workspace/gist-of.js.map +1 -0
  1359. package/dist/workspace/index.d.ts +1 -0
  1360. package/dist/workspace/index.d.ts.map +1 -1
  1361. package/dist/workspace/index.js.map +1 -1
  1362. package/dist/workspace/is-language-step.d.ts +4 -0
  1363. package/dist/workspace/is-language-step.d.ts.map +1 -0
  1364. package/dist/workspace/is-language-step.js +5 -0
  1365. package/dist/workspace/is-language-step.js.map +1 -0
  1366. package/dist/workspace/kit-folder.d.ts +5 -0
  1367. package/dist/workspace/kit-folder.d.ts.map +1 -0
  1368. package/dist/workspace/kit-folder.js +5 -0
  1369. package/dist/workspace/kit-folder.js.map +1 -0
  1370. package/dist/workspace/leaving-project.d.ts +14 -0
  1371. package/dist/workspace/leaving-project.d.ts.map +1 -0
  1372. package/dist/workspace/leaving-project.js +17 -0
  1373. package/dist/workspace/leaving-project.js.map +1 -0
  1374. package/dist/workspace/names-on-disk.d.ts +4 -0
  1375. package/dist/workspace/names-on-disk.d.ts.map +1 -0
  1376. package/dist/workspace/names-on-disk.js +15 -0
  1377. package/dist/workspace/names-on-disk.js.map +1 -0
  1378. package/dist/workspace/real-path-of.d.ts +12 -0
  1379. package/dist/workspace/real-path-of.d.ts.map +1 -0
  1380. package/dist/workspace/real-path-of.js +59 -0
  1381. package/dist/workspace/real-path-of.js.map +1 -0
  1382. package/dist/workspace/real-root-of.d.ts +3 -0
  1383. package/dist/workspace/real-root-of.d.ts.map +1 -0
  1384. package/dist/workspace/real-root-of.js +7 -0
  1385. package/dist/workspace/real-root-of.js.map +1 -0
  1386. package/dist/workspace/refuse-leaving.d.ts +8 -0
  1387. package/dist/workspace/refuse-leaving.d.ts.map +1 -0
  1388. package/dist/workspace/refuse-leaving.js +26 -0
  1389. package/dist/workspace/refuse-leaving.js.map +1 -0
  1390. package/dist/workspace/refuse-unheld.d.ts +10 -0
  1391. package/dist/workspace/refuse-unheld.d.ts.map +1 -0
  1392. package/dist/workspace/refuse-unheld.js +56 -0
  1393. package/dist/workspace/refuse-unheld.js.map +1 -0
  1394. package/dist/workspace/todo-place.d.ts +10 -0
  1395. package/dist/workspace/todo-place.d.ts.map +1 -0
  1396. package/dist/workspace/todo-place.js +2 -0
  1397. package/dist/workspace/todo-place.js.map +1 -0
  1398. package/dist/workspace/workspace-report.d.ts +5 -3
  1399. package/dist/workspace/workspace-report.d.ts.map +1 -1
  1400. package/dist/workspace/workspace.d.ts +17 -7
  1401. package/dist/workspace/workspace.d.ts.map +1 -1
  1402. package/dist/workspace/workspace.js +46 -49
  1403. package/dist/workspace/workspace.js.map +1 -1
  1404. package/dist/workspace/write-if-allowed.d.ts +16 -2
  1405. package/dist/workspace/write-if-allowed.d.ts.map +1 -1
  1406. package/dist/workspace/write-if-allowed.js +64 -4
  1407. package/dist/workspace/write-if-allowed.js.map +1 -1
  1408. package/dist/workspace/written-of.d.ts +18 -0
  1409. package/dist/workspace/written-of.d.ts.map +1 -0
  1410. package/dist/workspace/written-of.js +15 -0
  1411. package/dist/workspace/written-of.js.map +1 -0
  1412. package/dist/worktree/open-worktree.js +2 -2
  1413. package/dist/worktree/open-worktree.js.map +1 -1
  1414. package/package.json +5 -4
  1415. package/templates/adapter/simulated.spec.ts.tpl +3 -3
  1416. package/templates/aggregate/aggregate.spec.ts.tpl +17 -5
  1417. package/templates/aggregate/aggregate.ts.tpl +12 -8
  1418. package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -8
  1419. package/templates/aggregate/event-sourced.aggregate.ts.tpl +5 -5
  1420. package/templates/background-job/background-job.declared.ts.tpl +14 -11
  1421. package/templates/background-job/background-job.spec.buses.ts.tpl +17 -2
  1422. package/templates/background-job/background-job.spec.tsyringe.ts.tpl +16 -0
  1423. package/templates/background-job/background-job.ts.tpl +14 -11
  1424. package/templates/builder/builder.ts.tpl +19 -5
  1425. package/templates/builder/event-sourced.builder.ts.tpl +5 -5
  1426. package/templates/command/handler.declared.ts.tpl +8 -5
  1427. package/templates/command/handler.spec.buses.ts.tpl +35 -22
  1428. package/templates/command/handler.spec.tsyringe.ts.tpl +30 -13
  1429. package/templates/command/handler.ts.tpl +8 -5
  1430. package/templates/controller/controller.class-validator.ts.tpl +11 -0
  1431. package/templates/controller/controller.spec.ts.tpl +10 -34
  1432. package/templates/controller/controller.standard-schema.ts.tpl +16 -0
  1433. package/templates/controller/controller.typebox.ts.tpl +12 -0
  1434. package/templates/controller/controller.zod.ts.tpl +12 -0
  1435. package/templates/domain-event/domain-event.spec.ts.tpl +1 -1
  1436. package/templates/domain-service/domain-service.spec.ts.tpl +3 -3
  1437. package/templates/entity/entity.spec.ts.tpl +1 -1
  1438. package/templates/error/case.spec.ts.tpl +0 -1
  1439. package/templates/error/refusal-case.spec.ts.tpl +0 -1
  1440. package/templates/event-handler/event-handler.declared.ts.tpl +8 -1
  1441. package/templates/event-handler/event-handler.spec.ts.tpl +19 -25
  1442. package/templates/event-handler/event-handler.ts.tpl +8 -1
  1443. package/templates/event-handler/wiring.manual.tpl +1 -1
  1444. package/templates/event-handler/wiring.tsyringe.tpl +2 -2
  1445. package/templates/file-upload/controller.spec.ts.tpl +8 -30
  1446. package/templates/init/AGENTS.md.tpl +5 -5
  1447. package/templates/init/README.md.tpl +23 -1
  1448. package/templates/init/REVIEW.md.tpl +1 -1
  1449. package/templates/init/docker/docker-compose.yml.tpl +10 -8
  1450. package/templates/init/docker/dockerignore.tpl +3 -0
  1451. package/templates/init/docker/env.example.tpl +16 -1
  1452. package/templates/init/e2e/jest.e2e.config.js.tpl +11 -1
  1453. package/templates/init/gitignore.tpl +3 -0
  1454. package/templates/init/platform/auth/authentication/actor-of-token.ts.tpl +2 -2
  1455. package/templates/init/platform/auth/authentication/bearer-strategy.ts.tpl +34 -3
  1456. package/templates/init/platform/config/app-config.ts.tpl +15 -0
  1457. package/templates/init/platform/config/load-config.ts.tpl +66 -0
  1458. package/templates/init/platform/database/data-source.typeorm.ts.tpl +2 -0
  1459. package/templates/init/platform/database/prisma.config.ts.tpl +5 -1
  1460. package/templates/init/platform/http/start-http-server.express.ts.tpl +14 -8
  1461. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +16 -3
  1462. package/templates/init/platform/http/start-http-server.hono.ts.tpl +22 -3
  1463. package/templates/init/platform/http/start-http-server.nest.ts.tpl +20 -8
  1464. package/templates/init/platform/http/too-many-requests-for.ts.tpl +2 -2
  1465. package/templates/init/platform/jobs/background-jobs.ts.tpl +3 -2
  1466. package/templates/init/platform/jobs/create-background-work.ts.tpl +1 -0
  1467. package/templates/init/rules/application.md.tpl +2 -2
  1468. package/templates/integration-handler/integration-handler.spec.ts.tpl +12 -17
  1469. package/templates/job/job.spec.buses.ts.tpl +15 -2
  1470. package/templates/job/job.spec.tsyringe.ts.tpl +36 -9
  1471. package/templates/nest-controller/controller.spec.ts.tpl +11 -35
  1472. package/templates/nest-controller/controller.ts.tpl +6 -0
  1473. package/templates/nest-controller/upload.spec.ts.tpl +9 -30
  1474. package/templates/pipeline/github/actions/setup/action.yml.tpl +2 -2
  1475. package/templates/pipeline/github/workflows/ci.yml.tpl +20 -20
  1476. package/templates/pipeline/github/workflows/codeql.yml +3 -3
  1477. package/templates/pipeline/github/workflows/copilot-setup-steps.yml +1 -1
  1478. package/templates/pipeline/github/workflows/intent-to-spec.yml +1 -1
  1479. package/templates/pipeline/github/workflows/pr-title.yml +1 -1
  1480. package/templates/pipeline/lefthook.yml +9 -4
  1481. package/templates/pipeline/package-scripts.json +1 -1
  1482. package/templates/pipeline/renovate.json +6 -1
  1483. package/templates/policy/policy.spec.declared.ts.tpl +1 -1
  1484. package/templates/policy/policy.spec.ts.tpl +1 -1
  1485. package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.kit-routes.ts.tpl +13 -28
  1486. package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.nest-routes.ts.tpl +13 -28
  1487. package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.kit-routes.ts.tpl +13 -28
  1488. package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.nest-routes.ts.tpl +13 -28
  1489. package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.kit-routes.ts.tpl +10 -21
  1490. package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.nest-routes.ts.tpl +10 -21
  1491. package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.kit-routes.ts.tpl +13 -28
  1492. package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.nest-routes.ts.tpl +13 -28
  1493. package/templates/presets/identity/context/test/unit/delegation-period.vo.spec.ts.tpl +1 -1
  1494. package/templates/presets/identity/context/test/unit/display-name.vo.spec.ts.tpl +1 -1
  1495. package/templates/presets/identity/context/test/unit/email-address.vo.spec.ts.tpl +1 -1
  1496. package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.kit-routes.ts.tpl +13 -28
  1497. package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.nest-routes.ts.tpl +13 -28
  1498. package/templates/presets/identity/context/test/unit/invite-member.controller.spec.kit-routes.ts.tpl +16 -28
  1499. package/templates/presets/identity/context/test/unit/invite-member.controller.spec.nest-routes.ts.tpl +16 -28
  1500. package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.kit-routes.ts.tpl +13 -28
  1501. package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.nest-routes.ts.tpl +13 -28
  1502. package/templates/presets/identity/context/test/unit/organisation-name.vo.spec.ts.tpl +1 -1
  1503. package/templates/presets/identity/context/test/unit/organisation-rights.vo.spec.ts.tpl +1 -1
  1504. package/templates/presets/identity/context/test/unit/organisation-slug.vo.spec.ts.tpl +1 -1
  1505. package/templates/presets/identity/context/test/unit/provision-account.controller.spec.kit-routes.ts.tpl +19 -42
  1506. package/templates/presets/identity/context/test/unit/provision-account.controller.spec.nest-routes.ts.tpl +19 -42
  1507. package/templates/presets/identity/context/test/unit/remove-member.controller.spec.kit-routes.ts.tpl +10 -21
  1508. package/templates/presets/identity/context/test/unit/remove-member.controller.spec.nest-routes.ts.tpl +10 -21
  1509. package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.kit-routes.ts.tpl +10 -21
  1510. package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.nest-routes.ts.tpl +10 -21
  1511. package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.kit-routes.ts.tpl +10 -21
  1512. package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.nest-routes.ts.tpl +10 -21
  1513. package/templates/presets/identity/context/test/unit/role-rights.service.spec.ts.tpl +1 -1
  1514. package/templates/presets/identity/context/test/unit/search-members.controller.spec.kit-routes.ts.tpl +7 -18
  1515. package/templates/presets/identity/context/test/unit/search-members.controller.spec.nest-routes.ts.tpl +8 -17
  1516. package/templates/process/timeout-job.declared.ts.tpl +9 -1
  1517. package/templates/process/timeout-job.spec.buses.ts.tpl +5 -1
  1518. package/templates/process/timeout-job.ts.tpl +9 -1
  1519. package/templates/projection/projection.spec.ts.tpl +7 -5
  1520. package/templates/property/value-object.properties.spec.ts.tpl +1 -1
  1521. package/templates/query/handler.spec.buses.ts.tpl +25 -19
  1522. package/templates/query/handler.spec.tsyringe.ts.tpl +30 -10
  1523. package/templates/query/reader.fake.ts.tpl +6 -4
  1524. package/templates/query/reader.in-memory.ts.tpl +1 -1
  1525. package/templates/query/search.handler.spec.buses.ts.tpl +22 -19
  1526. package/templates/query/search.handler.spec.tsyringe.ts.tpl +25 -12
  1527. package/templates/repository/drizzle/mapper.ts.tpl +1 -1
  1528. package/templates/repository/drizzle/schema.ts.tpl +1 -1
  1529. package/templates/repository/drizzle/table.tpl +3 -2
  1530. package/templates/repository/event-sourced/contract.spec.ts.tpl +2 -2
  1531. package/templates/repository/knex/mapper.ts.tpl +2 -3
  1532. package/templates/repository/knex/row.ts.tpl +0 -1
  1533. package/templates/repository/knex/table.tpl +0 -1
  1534. package/templates/repository/prisma/mapper.ts.tpl +1 -1
  1535. package/templates/repository/prisma/model.tpl +0 -1
  1536. package/templates/repository/typeorm/mapper.ts.tpl +1 -1
  1537. package/templates/repository/typeorm/row.ts.tpl +0 -1
  1538. package/templates/repository/typeorm/table.tpl +0 -2
  1539. package/templates/route/dto.body.ts.tpl +9 -0
  1540. package/templates/route/route.class-validator.ts.tpl +17 -3
  1541. package/templates/route/route.spec.ts.tpl +10 -28
  1542. package/templates/route/route.standard-schema.ts.tpl +24 -5
  1543. package/templates/route/route.typebox.ts.tpl +18 -3
  1544. package/templates/route/route.zod.ts.tpl +18 -3
  1545. package/templates/test-world/world.buses.ts.tpl +7 -1
  1546. package/templates/test-world/world.tsyringe.ts.tpl +20 -1
  1547. package/templates/value-object/value-object.spec.ts.tpl +2 -2
  1548. package/dist/merge/lost/commit-of.d.ts +0 -3
  1549. package/dist/merge/lost/commit-of.d.ts.map +0 -1
  1550. package/dist/merge/lost/commit-of.js +0 -6
  1551. package/dist/merge/lost/commit-of.js.map +0 -1
package/README.md CHANGED
@@ -22,13 +22,15 @@ to run.
22
22
 
23
23
  ![The commands of the CLI around a project: on the left the ones that write it (init, generate, docs, sdk and depcruise-config, the three migrations), in the middle the project (ddd-ts-kit.config.json, the bounded contexts and the platform under src/, the generated documents), on the right the ones that read it back (check and check-file, list and describe, status and todo, affected)](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-commands-and-project.svg)
24
24
 
25
- No runtime dependency. Node 22.12 or later.
25
+ No runtime dependency. Node 22.12 or later. Windows through WSL 2 only: outside it, `affected --run`,
26
+ `verify-slice`, `worker-scope`, `story-scope`, `worktree` (unless `--no-install` or `--dry-run`) and
27
+ `merge-trunk` refuse to run.
26
28
 
27
29
  ```
28
30
  npx ddd-ts-kit init
29
31
  npx ddd-ts-kit generate context billing --classification core --term "Invoice=A request for payment"
30
- npx ddd-ts-kit generate aggregate billing Invoice
31
- npx ddd-ts-kit generate command billing IssueInvoice --aggregate Invoice --creates --permission invoice.issue --grant accountant --term "Issue=To make an invoice final"
32
+ npx ddd-ts-kit generate aggregate billing Invoice --birth "Invoice Issued" --term "Issue=To make an invoice final"
33
+ npx ddd-ts-kit generate command billing IssueInvoice --aggregate Invoice --creates --permission invoice.issue --grant accountant
32
34
  npx ddd-ts-kit generate route billing IssueInvoice --method POST --path /invoices
33
35
  npx ddd-ts-kit check
34
36
  ```
@@ -41,12 +43,20 @@ anything is generated, with no context, with one and with several: the end-to-en
41
43
  it for real and runs it, on both package managers and on every proven stack. After the install the
42
44
  CLI is the one the project pins: `pnpm exec ddd-ts-kit <command>`, or `npx ddd-ts-kit <command>`.
43
45
 
44
- Every command accepts `--json` (machine-readable output, errors included) and `--cwd <dir>`.
46
+ Every command accepts `--json` (machine-readable output, errors included, printed on one line
47
+ without indentation; the JSON files the CLI writes keep the layout of the formatter) and
48
+ `--cwd <dir>`.
45
49
  Commands other than `init` look for `ddd-ts-kit.config.json` in the directory and its parents.
46
- Exit codes: `0` success, `1` violations, stale documentation or, under `--strict`, a commit over
47
- its limits, `2` wrong usage (the message says what to do), `3` a command that writes files could
50
+ `ddd-ts-kit --help` prints the whole reference, `ddd-ts-kit <command> --help` (or `help <command>`)
51
+ the usage and the notes of that command alone (with `--json`, `{ command, usage, notes }`), and an option a command does not know is refused
52
+ with its usage line as the fix. Exit codes: `0` success, `1` violations, stale documentation or,
53
+ under `--strict`, a commit over its limits, `2` wrong usage (the message says what to do), `3` a command that writes files could
48
54
  not write some of them where it ran (a path the sandbox of an agent protects): they are listed
49
- under `unwritable`, every other file is written and none is deleted.
55
+ under `unwritable`, every other file is written and none is deleted; `4` an internal error of the
56
+ kit, said in one line with its version (`internal error of ddd-ts-kit <version>: ...`, its stack
57
+ trace after it when `DDD_TS_KIT_DEBUG` is set; under `--json` an `error` with its `stack` and
58
+ `"internal": true`): report it at https://github.com/gbourgeat/ddd-ts-kit/issues with the command
59
+ and the stack trace.
50
60
 
51
61
  ## init
52
62
 
@@ -78,7 +88,11 @@ ddd-ts-kit init [--http express|fastify|hono|nest|none]
78
88
  ```
79
89
 
80
90
  Works in an empty directory or an existing project. An existing file is never replaced without
81
- `--force`; it is reported as skipped. `init` also writes the generated contracts as the scripts
91
+ `--force`; it is reported as skipped. `--force` replaces only what git holds: a file it would
92
+ replace that differs from the last commit (uncommitted, staged, or untracked and not ignored)
93
+ refuses the command with exit code 2, the files named and nothing written (`Commit or stash them
94
+ first, then run again: git diff shows what the kit rewrote.`), and outside a git repository every
95
+ file whose content would change does. The same holds for `generate --force`. `init` also writes the generated contracts as the scripts
82
96
  of the project write them for a project without a route or an integration event of its own
83
97
  (`openapi/openapi.yaml`, `docs/integration/asyncapi.yaml` and `event-catalog.md`; JSON under
84
98
  `"openapi": { "format": "json" }` of the config), so that the first commit holds them and
@@ -90,6 +104,24 @@ name each dependency the stack about to be written contradicts, and the flag tha
90
104
  fastify to keep it.`), a dry run included: run `init --dry-run` first on an existing project.
91
105
  Run again later, `init` keeps the stack recorded in the config.
92
106
 
107
+ Every file `init` and `generate` write stays inside the project: a path that leads out of it
108
+ through a symbolic link, in its place or above it (a `docs/adr` or a `.claude/settings.json`
109
+ linked to elsewhere), refuses the command with exit code 2 and the path named, before
110
+ anything is written; a link that stays inside the project is written through. `init` refuses a home directory and the root of the file system, where its
111
+ `.claude/settings.json` would be the settings of every session: run it in the directory of the
112
+ project.
113
+
114
+ Each file is written whole or not at all: to `<name>.<random>.tmp` beside it, then renamed into
115
+ place. A command stopped half way leaves complete files only (a process killed there may leave
116
+ its `.tmp` file, which can be removed), and the same command run again writes the ones missing.
117
+ `init` on a project already initialised, and each `generate` of a kind that writes shared files
118
+ (`writesShared` in `generate --help --json`), hold the lock of the project, `.ddd-ts-kit/lock`,
119
+ which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
120
+ holds it and the fix, run the generators one after the other:
121
+ ``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
122
+ A lock taken on this machine is kept while its command runs and taken over once it has ended; one
123
+ taken on another machine, or whose holder cannot be read, is taken over a minute after it was taken.
124
+
93
125
  `init --force` on a project that is already initialised rewrites the files `init` owns and keeps
94
126
  the config: the contexts and their upstreams, the rules, the limits, the deviations and every
95
127
  other key stay as written, and the stack changes only where a flag names a choice
@@ -99,7 +131,13 @@ and the registry of permissions are rewritten from their templates, then the dec
99
131
  are wired into them again, and the erasure of each context is listed again in the copies of the
100
132
  privacy folder; what another generator had added to a file of the platform (the value of a
101
133
  gateway, the settings of a job) is not, and a note says so. A config that cannot be
102
- read is replaced.
134
+ read is replaced. The files a team owns once written stay as they are, listed as `kept`:
135
+ `README.md`, `AGENTS.md`, `CLAUDE.md`, `src/main.ts` and the pipeline definitions
136
+ (`.github/workflows/`, `.gitlab-ci.yml`), whose jobs and includes are the team's to edit, those of
137
+ `--ci-extras` too; to take what a new version writes in one of them, run
138
+ `init` in an empty folder and compare. `.gitignore` and `.dockerignore` gain the lines of the kit
139
+ they lack, first, under a comment, and keep the lines of the team after them, which have the last
140
+ word; a line of the kit on a path the team already writes rules for is left out. A last note says what `--force` rewrote and what it kept.
103
141
 
104
142
  The pipeline uses free tools only. `--ci-extras` adds jobs that need a paid plan on a private
105
143
  repository, report into a merge request only in a paid tier, or spend API tokens on every run:
@@ -559,7 +597,7 @@ config, `docsUi`, `ci` and `logger` included.
559
597
  | tracing | wired once, by the platform (`tracing/platform-only`): no `decorate` hook, no `decorate-bindings.ts`. `tracing.ts` starts `initTracing` of `@ddd-ts-kit/tracing/node` before any other module, on what `config/read-tracing.ts` validates: `OTEL_EXPORTER_OTLP_ENDPOINT` (a URL; left out, no span leaves the process), `TRACE_SAMPLE_RATIO` (0 to 1) and `TRACE_CONSUMERS` (`continue`, the default: a consumed event stays in the trace of its publication; `link`: each delivery starts a trace linked to it). With `--di tsyringe`: `lay-foundations.ts` builds `traceApplication({ consumers })`, `compose-application.ts` hands it to `kernelModule({ instrumentation })` (one span per use case, repository call, domain event, publication, consumer and job) and gives the outbox relay `tracedPublisher(bus)`. With hand wiring: `create-platform.ts` applies the members of `traceApplication()` itself (`useCase` on both buses, `domainEvents`, `publisher`, `binding` around every adapter, `job`, `executionScope`, `errorReporter`), with `tracedSubscriber` and `tracedPublisher` around the provider. With an HTTP stack, in both families, `auth/authentication/http-boundary.ts` sets `around: tracedRoutes()`: one `SERVER` span per request, named by its route |
560
598
  | `--logger` | `src/platform/observability/create-logger.ts`, one per choice: `stdout` (the default) is the `StdoutLogger` of `@ddd-ts-kit/aspects`, JSON lines, credentials not redacted; `pino` is `createPinoLogger` of `@ddd-ts-kit/pino` (dependencies `pino` and `pino-pretty`); `winston` is `createWinstonLogger` of `@ddd-ts-kit/winston`; these two redact the credential keys of the kernel. Every entry carries `traceLogFields(scope)`: the correlation id, origin, actor and tenant of the work in progress and the ids of the active trace. `LOG_LEVEL`, `LOG_FORMAT` (`json`, the default, or `pretty`; with `stdout`, which has no pretty format, `pretty` is refused when the configuration is loaded) and `LOG_SCRUB_MESSAGES` (`[message removed]` in place of the message of a logged error that is not a `DomainError`) are validated in `config/load-config.ts`. Stopping the application flushes the error reporter, then the logger, last: `container.stop()` does it on tsyringe, `compose-application.ts` flushes explicitly with hand wiring. The tools and the tests compose the application without `log` and write nothing |
561
599
  | `src/platform/auth/` | one folder per question: `authentication/` (who is calling), `authorization/` (what they may do, whatever the model) and the folder of the model `stack.authz` names (`roles/`, `attributes/`, `relationships/` or `custom/`). A project generated before the folders keeps its files flat: the generators read them there, `npx ddd-ts-kit doctor` says so and `npx ddd-ts-kit platform-folders` moves them with every import |
562
- | `src/platform/auth/authentication/` | `create-authenticator.ts` (`--authn jwt`: `JwtAuthenticator` on `AUTH_ISSUER`, `AUTH_AUDIENCE`, `AUTH_JWKS_URI`; `--authn keycloak`: `keycloakAuthenticator` on `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_AUDIENCE` and the optional `KEYCLOAK_CLIENT_ID`; `--authn passport`: `passportAuthenticator` of `@ddd-ts-kit/auth/passport` over `bearer-strategy.ts`, the strategy of `passport-jwt` on the key set `AUTH_JWKS_URI` publishes (`jwks-rsa`), `AUTH_ISSUER` and `AUTH_AUDIENCE`, and `actor-of-token.ts`, which reads its payload with `actorOfClaims`; `--authn none`: `development-header-authenticator.ts` and `development-actor-header.ts`, which read `x-development-actor` and throw in production), `principal-of.ts`, `security-schemes.ts`, `offline-authenticator.ts`, `http-boundary.ts` (`resolvePrincipal` answering a `Session`, `executionScope`, `errorMapper` and `onError`, spread into the mount options: every request runs inside the execution scope, with its correlation id). Without an HTTP stack there is no authenticator and no boundary, and no folder |
600
+ | `src/platform/auth/authentication/` | `create-authenticator.ts` (`--authn jwt`: `JwtAuthenticator` on `AUTH_ISSUER`, `AUTH_AUDIENCE`, `AUTH_JWKS_URI`; `--authn keycloak`: `keycloakAuthenticator` on `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_AUDIENCE` and the optional `KEYCLOAK_CLIENT_ID`; `--authn passport`: `passportAuthenticator` of `@ddd-ts-kit/auth/passport` over `bearer-strategy.ts`, the strategy of `passport-jwt` on the key set `AUTH_JWKS_URI` publishes (`jwks-rsa`), `AUTH_ISSUER` and `AUTH_AUDIENCE`, which refuses a token without `exp` unless given `requireExpiry: false` and allows RS256, PS256 and ES256, the `DEFAULT_JWT_ALGORITHMS` of `JwtAuthenticator` but EdDSA, which `jsonwebtoken` cannot verify (an issuer that signs with EdDSA needs `--authn jwt`), and `actor-of-token.ts`, which reads its payload with `actorOfClaims`; `--authn none`: `development-header-authenticator.ts` and `development-actor-header.ts`, which read `x-development-actor` and throw in production), `principal-of.ts`, `security-schemes.ts`, `offline-authenticator.ts`, `http-boundary.ts` (`resolvePrincipal` answering a `Session`, `executionScope`, `errorMapper` and `onError`, spread into the mount options: every request runs inside the execution scope, with its correlation id). Without an HTTP stack there is no authenticator and no boundary, and no folder |
563
601
  | `src/platform/auth/authorization/` | `create-authorizer.ts`, `authorization.ts` (`authorizationModule` with tsyringe) or `use-case-protection.ts` (the guard of the hand-wired buses), `access-policies.ts`, `role.ts` (the roles a credential carries, with roles or attributes, or once a guard names one), `permissions.ts` (the registry of every permission, with relationships or an authorizer of your own), `signed-in-grants.ts` once a context preset grants every signed-in person, and with `--audit off` `log-decisions.ts` (one log entry per decision, ids and codes only) |
564
602
  | `src/platform/auth/<model>/` | `roles/roles.ts` (with the role `system` every system actor holds); `attributes/attribute-policies.ts`; `relationships/`: `relationship-schema.ts`, `create-tuple-store.ts` and its contract spec, `relation-tuples.ts`, `relate-system-actors.ts`; `custom/`: `custom-authorizer.ts` and its `authorizerContract` spec |
565
603
  | `--representations negotiated`, `--forms on` | `src/platform/http/presentation-of.ts` (`Representations.standard()` with `negotiated`, and `fieldDeciderOf` over the `Access` of the application), spread into the HTTP boundary and given to the contract script; with `--forms on`, `src/platform/http/with-forms.ts` adds `formRoutes` to the routes and `scripts/openapi.ts` writes `openapi/forms/<operationId>.json`. Both are the default with an HTTP stack; `json` and `off` leave them out ([docs/CONFIG.md](../../docs/CONFIG.md)) |
@@ -568,7 +606,7 @@ config, `docsUi`, `ci` and `logger` included.
568
606
  | `--privacy on` | recorded as `stack.privacy`, `on` when there is an ORM: `src/platform/privacy/`, with `data-subject-copies.ts` and `data-subject-exports.ts` (the ports, or the adapters by hand, of the contexts that extend `PersonalDataErasure` and `PersonalDataExport`, between markers; `generate repository --personal` lists the erasure and the export of a context there), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, tenants? })`: an execution context of origin `cli` with the operator as actor, the key of the subject when the project has an event store, then `eraseDataSubject` of the kernel over the copies, `inEachTenant` with `--tenancy shared-table`, then `privacy.data-subject.erased` published through the outbox, once per tenant) and `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })`: `exportDataSubject` of the kernel over the exports, each wrapped by `auditedPersonalDataExport` with `--audit on`, `recordsInEachTenant` with `--tenancy shared-table`, one dated `PersonalDataExportDocument`), and the two scripts below. `docs/privacy/register.md`, the register of personal data `ddd-ts-kit docs` keeps (see `docs` below). A project without personal data takes `--privacy off` and pays nothing. No HTTP command erases yet: the two scripts are the entry points |
569
607
  | `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM); the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
570
608
  | `--queue database\|redis\|memory` | recorded as `stack.queue`. `database` (the default on Knex, Drizzle, Prisma and TypeORM, whatever the container): the tables of the ORM package (`createJobTable` and `createProcessTable`, `jobsTable` and `processesTable`, the `BackgroundJob` and `ProcessInstance` models, `jobEntity` and `processEntity`) in the `messaging` schema, `Persistence` gains `jobs` and `processes`, and the platform binds `JobStore` and `ProcessStore` to them (the platform module on tsyringe, `jobs/create-background-work.ts` where the platform is wired by hand or under Nest), so a job enqueued by a command is written in its transaction; `redis` (with `--cache redis`): `RedisJobStore` on the connection of the cache, the processes in the database; `memory` (the default with a custom persistence or none): nothing is written, both stay in the process. Refused: `database` with another ORM, `redis` without the cache |
571
- | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
609
+ | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`; the address is the socket's unless `TRUST_PROXY` names the proxies in front, by hops or by address, by hops only on Hono), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
572
610
  | `--http-cache varnish` | a compose service `varnish` (Varnish 9.1.0, reaching the API on `host.docker.internal`) with its VCL in `docker/varnish/default.vcl` (only answers whose `Cache-Control` allows them by `max-age` or `s-maxage` are kept, filed under their `xkey` tags, purged by `PURGE` from the machine of Varnish or with `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` and `VARNISH_PURGE_KEY` validated, `cacheTags: { header: CacheTagHeader.xkey }` in the HTTP boundary, and the outbox relay of `main.ts` and of every `generate service` entry point publishing through `PurgingPublisher` with `VarnishCachePurger` (the end-to-end application records the purges in `purges`); on `--di manual` and `nest` the platform gains `cacheInvalidation`; with `--tenancy`, the tags of the answers and the purges are filed under the tenant (`perTenant`) and the tenant of a request is read from `x-tenant-id`. Needs an HTTP framework and `--events outbox`: a purge is a row of the outbox |
573
611
  | `--errors sentry` | unexpected failures reported to Sentry or GlitchTip (one protocol, only the DSN differs) through the kernel `ErrorReporter`, bound to `@ddd-ts-kit/sentry`. `src/platform/observability/errors.ts` (`initSentry` on the validated configuration, then `reportProcessFailures`), the second import of `main.ts`, of `apps/<context>/main.ts` and of `apps/worker/main.ts`, right after `tracing.ts`; `errors` handed to `composeApplication`, which gives it to the kernel module on tsyringe (`errorReporter`, flushed by `container.stop()` before the logger, `errorReportingMiddleware` first on both buses, the default scheduler observing with `reportFailedRuns`) or to `createPlatform` by hand (the same middleware, `onRun: reportFailedRuns(errors)`, `platform.errors`, flushed two seconds at most when the application stops); `reportHttpErrors` in `auth/authentication/http-boundary.ts` for every request answered 5xx; `DeadLetterReports` on the `onFailure` hook of a provided broker (`createEventProvider(config, errors)`, with `observing` around each consumer) and of the outbox relay. `SENTRY_DSN`, `SENTRY_ENVIRONMENT` (default: `NODE_ENV`), `SENTRY_RELEASE` and `SENTRY_SCRUB_MESSAGES` validated in `config/load-config.ts` as `errorReporting`: without a DSN the application starts and reports nothing; a DSN that is not a URL refuses the start. Dependencies `@ddd-ts-kit/sentry` and `@sentry/node`. A compose profile `errors` running GlitchTip 6.2.6 with its own PostgreSQL and Valkey (`GLITCHTIP_PORT`, loopback only, development bootstrap), and a section of the generated README saying how to read its DSN. The tools and the tests compose the application without a reporter. It goes with every other choice of the stack; with `--errors none` nothing of this is written |
574
612
  | `--authn keycloak` | a compose service `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profile `identity`) and `docker/keycloak/<project>-realm.json`: the API client, a public client `<project>-local` with the direct grant, its audience and `tenant_id` mappers, the realm role `admin`, and the demo users `demo-admin` and `demo-user`, for local development only |
@@ -578,7 +616,7 @@ config, `docsUi`, `ci` and `logger` included.
578
616
  | migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (the client, the datasource and the tables of the platform; `generate repository` adds the file of each context, `prisma/schema/<context>.prisma`) and `prisma.config.ts`, or `data-source.ts`. A project that keeps the one `prisma/schema.prisma` of versions before 0.95 keeps it with its `prisma.config.ts` and its `db:client`, even under `--force`: `init` writes nothing under `prisma/schema/`, its notes give the steps of the move with the contexts of the project named, and `generate repository` refuses until the move |
579
617
  | `scripts/openapi.ts`, `scripts/events.ts` | write `openapi/openapi.yaml` (one file per document of `openapi.documents`), `docs/integration/asyncapi.yaml` and `docs/integration/event-catalog.md`, in JSON under `openapi.format: json`; `--check` fails on a difference |
580
618
  | `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | with `--privacy on`, the two requests of a data subject, answered from the command line on the sources with the variables of `.env` (`npm run privacy:erase -- <subject-id> [--operator <who-asks>]`, `npm run privacy:export -- <subject-id> > export.json`): the erasure destroys the key of the subject first when the project has an event store (`--event-sourcing on`: its stored events read as erased; audited with `--audit on`), then erases every copy listed in `src/platform/privacy/data-subject-copies.ts`; `privacy:purge` runs by hand what the job `privacy.purge-expired` runs every night at 03:00 UTC, the purge of what outlived its retention (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` switches the job off); the export gathers every record listed in `data-subject-exports.ts` into one dated JSON document (`format`, `subject`, `exportedAt`, `records`), the export of each context audited with `--audit on`, never the values (every run leaves its entry, a trial included: try it on a test subject). With `--tenancy shared-table`, `TENANTS` names the tenants, comma separated: a write of tenant data is never widened. Neither reaches backups, logs or a copy no context declared |
581
- | `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile (its UI and its OTLP port bound to 127.0.0.1), ports from `.env`; a multi-stage, non-root image with production dependencies only |
619
+ | `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile, every port published on 127.0.0.1 only (a wider address is written in the entry on purpose, the README of the project says how), ports from `.env`; a multi-stage, non-root image with production dependencies only |
582
620
  | `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (the whole application on a free port, on an in-process database unless `DATABASE_URL` is set, no job run by time; `settled()` resolves once the outbox has relayed what the requests stored; `publish(events)` hands integration events of an upstream to its handlers, as the relay of that upstream would), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)`: a trace without the calls an adapter makes on itself, the form `expectSpanTree` asserts) |
583
621
  | `docs/context-map.md`, `docs/integration/README.md` | see `docs` |
584
622
  | `test/architecture/extractable.spec.ts` | written with the first context: boots each context alone on the kernel and the platform, its jobs included |
@@ -594,14 +632,20 @@ config, `docsUi`, `ci` and `logger` included.
594
632
  | `REVIEW.md` | the review policy of the project: the passes of a review (bugs, security, compliance against the design review of the row, the acceptance of the story, the records of `docs/adr/` and the rules), what Important means, at most five nits (a recurring one becomes a line of `AGENTS.md` under `## Mistakes seen here` or a rule of the config), what is not reported (generated files, what `npm run verify` refuses). Read by the `architecture-reviewer` agent on top of its method, by a human reviewer and by any review bot. Written once, for the team to edit: `--force` leaves it alone, `doctor` says when it is missing |
595
633
  | `.github/copilot/settings.json` | the plugin of the kit, declared for GitHub Copilot (`extraKnownMarketplaces`, `enabledPlugins`): its cloud agent installs it, the Copilot CLI and VS Code recommend it; an existing file keeps what it holds and gains the two entries |
596
634
  | `.claude/hooks/production-gate.mjs`, `.claude/hooks/change-reference.mjs` | with `--agent-profile regulated`: the two hooks of the profile, registered under `hooks.PreToolUse` of `.claude/settings.json`, written once for the team to edit (`--force` writes them again). The gate blocks a command that names the production environment with a release action unless `RELEASE_APPROVAL` names an approver and a change; the reference asks before an edit of a migration or of the containers, for the `Change: <id>` trailer of the commit ([Sandboxing coding agents](../../docs/guides/agent-sandbox.md#the-regulated-profile)) |
597
- | `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
598
- | `.gitignore` | `node_modules`, `dist`, `coverage`, `.env`, `*.tsbuildinfo`, `.ddd-ts-kit/`, where `worker-scope` writes, and `.worktrees/`, where the worktrees live |
635
+ | `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `generate` and `init` with `--force`, `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
636
+ | `.gitignore` | `node_modules`, `dist`, `coverage`, `.env` and every `.env.*` but `.env.example` (the same in `.dockerignore`), `*.tsbuildinfo`, `.ddd-ts-kit/`, where `worker-scope` writes, and `.worktrees/`, where the worktrees live |
599
637
 
600
638
  `--ci both` writes the two pipelines, `--ci none` neither (and no `renovate.json`). The pipeline
601
639
  files are copies of the assets of the repository's `pipeline/` directory, shipped in
602
640
  `templates/pipeline/`; a test fails when a copy differs from its source by more than its
603
641
  documented placeholders.
604
642
 
643
+ Every `uses:` of the generated GitHub workflows names the digest of a commit with its tag in a comment
644
+ (`actions/checkout@<40 hex digits> # v7.0.1`), since a tag can move and a digest cannot; the
645
+ `renovate.json` extends `helpers:pinGitHubActionDigests` (the preset matches no file in a project
646
+ without GitHub workflows, `--ci gitlab` for one, and is inert there) and Dependabot keeps the digests
647
+ current too.
648
+
605
649
  `--agent-profile regulated` records `agents.profile` in the config, with or without `--force`
606
650
  (`--agent-profile none` removes it), and writes the `sandbox` block of Claude Code next to the
607
651
  permissions: enabled, failing when the sandbox is unavailable, no unsandboxed retry, the caches
@@ -641,14 +685,26 @@ pipelines call, `test:coverage` (every spec once, each context and layer held to
641
685
  `format:check`, `test:coverage`, end-to-end tests, `check:arch`, `depcruise`, `deadcode`,
642
686
  `docs:check`.
643
687
 
688
+ `db:generate` takes what the migration does, in letters, digits, dashes and underscores, starting
689
+ with a letter or a digit (`npm run db:generate add-invoices`, on TypeORM
690
+ `migrations/add-invoices`): `drizzle-generate`, `prisma-generate` and `typeorm-generate` refuse
691
+ any other name before the ORM reads it, since a value that starts with a dash would be one of its
692
+ options; `typeorm-generate` also refuses a folder outside the project.
693
+
644
694
  `package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
645
695
  and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` call by path
646
696
  (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
647
697
 
648
- `init` and `generate context` start with the language: the first entry of `next` is the glossary
698
+ `init` and `generate context` start with the language: the first entry of `todos` is the glossary
649
699
  of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
650
700
  of a context live in `prisma/schema/<context>.prisma`, and `prisma/schema/schema.prisma` is the
651
- main file every context shares (`init --force` moves a project to Prisma).
701
+ main file every context shares (`init --force` moves a project to Prisma). They refuse too the
702
+ names every JavaScript object has (`constructor`, `prototype`, `__proto__`, `toString`,
703
+ `hasOwnProperty`, `valueOf`): a context is a key of the config and of the objects built from it.
704
+ A context or a module is named in letters, digits and dashes, read in any case and with `-`, `_`
705
+ or spaces between its words (`OrderFulfilment`, `order_fulfilment`); every command refuses a name
706
+ it would have to drop part of to read it, such as `../billing` or `Évil`, and says what it would
707
+ have read (`billing`, `vil`).
652
708
 
653
709
  ### Presets
654
710
 
@@ -682,11 +738,12 @@ written from the same preset. Why, and which other contexts deserve one:
682
738
 
683
739
  ```
684
740
  ddd-ts-kit generate <kind> ... [--term "<Term>=<meaning>"]... [--allow-name] [--local-only] [--dry-run] [--force]
685
- ddd-ts-kit generate --help --json
741
+ ddd-ts-kit generate [<kind>] --help [--json]
686
742
  ```
687
743
 
688
744
  One run of `generate` does five things, in this order, and writes nothing when the first one
689
- refuses:
745
+ refuses (each file written whole, a kind that writes shared files under the lock of the
746
+ project: [init](#init)):
690
747
 
691
748
  ![One run of generate command: the name is checked against the glossary of the context (refused with exit code 2 and the --term to add when a word is not defined), the files are written from the templates, the new pieces are registered between marker comments, the derived documents are refreshed, and the places that need a business decision are printed as file:line](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-generate-one-run.svg)
692
749
 
@@ -712,17 +769,17 @@ would update src/contexts/notification/notification.permissions.ts
712
769
  would update src/contexts/notification/application/application.declarations.ts
713
770
 
714
771
  Next, in this order: the language of the context first, then the business decisions only you can make
715
- src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor first, ...
716
- src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 decide what "archive notification" does to a Notification: ...
717
- src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour of "archive notification": ...
772
+ src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor...
773
+ src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and writes nothing until you decide...
774
+ src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour...
718
775
  ```
719
776
 
720
777
  | Kind | Arguments | Writes |
721
778
  |---|---|---|
722
779
  | `context` | `<name> --classification <c> [--purpose "<two sentences>"] [--term ...]... [--upstream <ctx>[:relationship]]... [--preset identity]` | `CONTEXT.md` with its glossary, `published-language/index.ts`, config entry, registration in `platform/composition/compose-application.ts` and in `test/architecture/extractable.spec.ts`; on tsyringe, with HTTP, `presentation/http/<name>.routes.ts` (a function of the two buses, in both styles); declared: the barrel `<name>.declarations.ts`; explicit and hand wiring: `<name>.module.ts`. `<name>.permissions.ts`, at the root of the context, is born with the first permission, or at once when `platform/auth/authorization/permissions.ts` lists the permission sets (rebac, custom). With `--preset`, the context is then written whole from that preset, its classification and purpose those of the preset unless the flags say otherwise ([Presets](#presets)) |
723
- | `aggregate` | `<context> <Name> [--event-sourced [--birth <Event>]]` | aggregate, builder, spec in given / when / then; with `--event-sourced`, an aggregate on `EventSourcedAggregate` whose state is the replay of its events, born with its `Created` domain event (or the fact `--birth <Event>` names, checked against the glossary), the codec of its stored events in `infrastructure/persistence/<name>-events.mapper.ts`, a builder that replays a history and a spec given events, and a note naming the `EventSourcedRepository` its repository adapter delegates to; refused while `stack.eventSourcing` is `off`, with the `init --force --event-sourcing on` to run |
724
- | `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, a class extending `Builder` |
725
- | `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note |
780
+ | `aggregate` | `<context> <Name> [--birth "<Fact>"] [--event-sourced]` | aggregate, builder, spec in given / when / then. `--birth` names the fact it is born with in business words (`"Invoice Issued"`, `InvoiceIssued` or `Issued`), judged by the glossary and refused when it does not read as something that happened: it writes that domain event as `generate domain-event` does, `create` records it at the instant it is given, the builder takes that instant named after the fact (`issuedAt(instant)`) and the spec proves the birth; without it, the state holds no instant of its own (the audit columns of the row date its creation) and a `TODO(domain)` in `create` says how to record the birth later without rewriting the aggregate (`generate domain-event`, the `record` line, then `generate builder`); with `--event-sourced`, an aggregate on `EventSourcedAggregate` whose state is the replay of its events, born with its `Created` domain event (or the fact `--birth` names), its state holding the instant of that fact (`createdAt`), the codec of its stored events in `infrastructure/persistence/<name>-events.mapper.ts`, a builder that replays a history and a spec given events, and a note naming the `EventSourcedRepository` its repository adapter delegates to; refused while `stack.eventSourcing` is `off`, with the `init --force --event-sourcing on` to run |
781
+ | `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, a class extending `Builder`; the instant of the birth `create` records is an ingredient named after its fact, the builder of an event-sourced aggregate replays its birth event, and a note names the parameters of `create` it cannot guess; when `create` is missing or records an event not named `<Aggregate><Fact>`, no builder is written and a note says why |
782
+ | `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note. Under a container it also takes `fakes`, the fake of a port it cannot build (a reader that answers what the spec gives it), and, under tenancy, `tenants`. The world named after the context is the one the specs of `command`, `query` and `job` generated after it arrange through |
726
783
  | `entity` | `<context> <Name>` | entity, spec |
727
784
  | `value-object` (`vo`) | `<context> <Name>` | value object, spec |
728
785
  | `vocabulary` | `<context> <Name> --value <value> [--value <value>]...` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold |
@@ -731,7 +788,7 @@ Next, in this order: the language of the context first, then the business decisi
731
788
  | `domain-error` | `<context> <Name> [--code CODE]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `named` and `factories`, with the `generate error` command to run instead |
732
789
  | `domain-service` | `<context> <Name>` | service, spec |
733
790
  | `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]...` | the vocabulary `<Aggregate>Status` (created from `--value`, two states at least, or given the values it misses), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle`: every value a state, the first one initial, the transitions asked, a `TODO(domain)` for the refusal of the concept error) and `test/unit/<aggregate>.state-machine.spec.ts` (each transition where it leads, a refusal from a state it does not leave); the aggregate is left to use it |
734
- | `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `registered_at` first, is refused: counted from the registration, the purge would erase people who are still customers) and the spec proves the purge of what outlived it. A second table of the context joins the declarations of both adapters. Refused without `stack.privacy` on (`init --force --privacy on`), with `--orm none` or `custom`, and before anything is written for a column that is not one, a column the table keeps for itself, a subject listed as personal or a mode that does not exist |
791
+ | `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `created_at` first, or the `registered_at` of a table generated before 0.100, is refused: counted from the creation, the purge would erase people who are still customers) and the spec proves the purge of what outlived it. A second table of the context joins the declarations of both adapters. Refused without `stack.privacy` on (`init --force --privacy on`), with `--orm none` or `custom`, and before anything is written for a column that is not one, a column the table keeps for itself, a subject listed as personal or a mode that does not exist |
735
792
  | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and writes nothing until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
736
793
  | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
737
794
  | `port` | `<context> <Name>` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
@@ -749,10 +806,10 @@ Next, in this order: the language of the context first, then the business decisi
749
806
  | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
750
807
  | `projection` (`projector`) | `<context> <Name> <event-type>` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec. In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model: its port is received in the constructor |
751
808
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/jobs/job-settings.ts`; the grant of its system actor (below) |
752
- | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused); `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
809
+ | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused), and its static `payload`, the schema of that payload in the validation library of the stack (a `z.object` under zod, a class of decorated fields without initial value under class-validator, a `Type.Object` under TypeBox, one refusal per field written by hand under Standard Schema and, with `--validation none`, in the `BackgroundJobPayloadSchema` of the kernel; a type it writes no check for is typed `unknown` with a `TODO(domain)`), which the worker reads the stored payload with before each run; `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due, then enqueues it as an earlier version declared it (`earlierVersionOf` of `@ddd-ts-kit/testing`) and shows the job dead with `INVALID_JOB_PAYLOAD` (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
753
810
  | `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application on tsyringe, a queue and a runner in memory on the test buses otherwise) |
754
811
  | `acl` | `<context> <upstreamOrSystemName>` | translator in `infrastructure/anti-corruption/`, spec |
755
- | `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
812
+ | `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
756
813
  | `policy` | `<context> <Name> --permission <aggregate>.<action>` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
757
814
  | `gateway` | `<context> <upstreamContext> <Name>` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; refused unless the upstream is declared |
758
815
  | `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused. With `--kind simulated`: `infrastructure/external/simulated-<port>.adapter.ts` and its spec, a class of production code that answers in the memory of the process the way the outside system would, for an environment whose provider is simulated; it carries no policy (`--decorators` is refused), is declared `@Adapter(<Port>, { kind: 'external' })` or bound `.toClass(Simulated<Port>).as('external')`, and takes turns with the remote adapter, one per port |
@@ -801,9 +858,10 @@ Next, in this order: the language of the context first, then the business decisi
801
858
  handler finds what to act on. Parameters that are optional or have a default are left out of the call.
802
859
  - **The grant of a job.** A job whose command is protected sends it as `system:<context>.<name>`,
803
860
  which has no right unless the model gives it one. `generate job` writes the grant where the model
804
- makes it one line, in a `system-grants` marker region, and `next` points at that line:
861
+ makes it one line, in a `system-grants` marker region, and `todos` points at that line:
805
862
  `--authz rbac`, the id of the permission under the role `system` of `platform/auth/roles/roles.ts`,
806
- the role `createAuthorizer` gives every system actor (`systemRole`); `--authz abac`, a
863
+ the role `createAuthorizer` gives every system actor (`systemRole`) and no other: a user token
864
+ that names `system` among its roles does not hold it; `--authz abac`, a
807
865
  `permit('system-<job>', [permission], ({ actor }) => actor.id === 'system:<job>')` rule in
808
866
  `platform/auth/attributes/attribute-policies.ts`; `--authz rebac`, the tuple
809
867
  `context:<context>#operator@system:<job>` in `platform/auth/relationships/relate-system-actors.ts`,
@@ -834,7 +892,17 @@ Next, in this order: the language of the context first, then the business decisi
834
892
  other name. With `--authz rebac` the requirement names the context as its resource, a starting
835
893
  point to replace by the element the right bears on. With `--authz rbac`, `--grant <role>` gives
836
894
  the permission to the role in `platform/auth/roles/roles.ts` (the role joins `role.ts` when it is
837
- new); without it, a `next` step says the grant is left to do (`authz/granted`).
895
+ new); without it, a step of `todos` says the grant is left to do (`authz/granted`).
896
+ - `route` reads the constructor of its command or query when it already declares its fields, past
897
+ the actor: a string, a number or a boolean is read from the path when the route names a parameter
898
+ after it (a string), from the body otherwise, and the route writes the body schema in the library
899
+ of the stack (`zod`, `class-validator`, `typebox`, a hand-written Standard Schema of the body and
900
+ of the path parameters under `standard-schema`), the call
901
+ `new CancelInvoiceCommand(request.actor, request.params.invoiceId, request.body.reason)` and a
902
+ spec that sends a valid body and asserts that command. The reading stops at the first field of
903
+ another type (a value object, a date, a nested object, an optional field), which stays a
904
+ `TODO(domain)` of the schema and of the call; a request mapper (`--mapper`) builds the message
905
+ itself. Generate the command, fill its constructor, then generate the route.
838
906
  - `route` hands `actorOf(context.principal)` to a protected use case and sets `security` (the scheme
839
907
  of `--authn`, or `false` for a public one). `integration-handler` carries `systemActor('<context>.<name>')`
840
908
  for the command it builds; behind a broker it listens on the subscriber of its context
@@ -842,7 +910,7 @@ Next, in this order: the language of the context first, then the business decisi
842
910
  - A generated repository adapter only persists: it takes `ExecutionScope` and `Clock`, never
843
911
  `ActorContext` nor a dispatcher, and stamps `created_at`, `created_by`, `updated_at`, `updated_by` with `stampCreation` and `stampUpdate`;
844
912
  the table uses `auditColumns` of the ORM package (the five fields are written out for Prisma).
845
- The sample fact of an aggregate is `registeredAt`, since `created_at` is the audit column.
913
+ The table holds no instant of the birth: `created_at` dates the row, and an instant a rule reads is a field of the state, named after its fact.
846
914
  `repository --tenant-scoped` (the four ORMs), and every repository of a project whose
847
915
  `stack.tenancy` is `shared-table`, adds the tenant column (`tenantColumn`, or the `tenantId` field
848
916
  of the Prisma model) and an index that starts with it, names the tenant on the insert and reaches
@@ -876,10 +944,16 @@ Next, in this order: the language of the context first, then the business decisi
876
944
  announced with the save with `application.domainEvents.on('<name>', ...)`; with hand wiring it
877
945
  goes through `createTestBuses()` of `@ddd-ts-kit/testing`, whose `dispatching(fake)` makes the
878
946
  save of a fake announce its events to `domainEvents`. The arrangement several specs of a
879
- context share is generated once, `generate test-world`, in `test/worlds/`.
880
- - `--json` prints `{ dryRun, created, updated, skipped, next, todos, notes }`. `next` lists the
881
- `TODO(domain)` places as `file:line`, the glossary first, then the lines a command wrote for the
882
- team to check (the grant of a job); `todos` adds their text.
947
+ context share is generated once, `generate test-world`, in `test/worlds/`: the handler, query
948
+ and job specs generated after it arrange through it, in one call, and those generated before
949
+ say so in a comment. Either way `holdersOf(permission)` of `@ddd-ts-kit/auth/testing` gives the
950
+ actor holding the permission and the authorizer granting it.
951
+ - `--json` prints `{ dryRun, created, updated, deleted, skipped, unwritable, todos, notes }`.
952
+ `todos` lists the `TODO(domain)` places, the glossary first, each as `{ file, line, gist }`:
953
+ `gist` is the first words of the marker (up to its first `:` or `;`, twelve words at most), whose
954
+ whole sentence is in the file at that line. Then come the lines a command wrote for the team to
955
+ check (the grant of a job), which no file explains: those also carry their whole `text`. The text
956
+ output prints each place on one line, `file:line gist` (the whole `text` of a step).
883
957
  - A kind that needs something else to compile either creates it (a missing repository or
884
958
  domain event) or stops with the command that creates it (a missing aggregate, use case or
885
959
  route).
@@ -890,7 +964,8 @@ Next, in this order: the language of the context first, then the business decisi
890
964
  - `--local-only` refuses, naming the files and writing nothing, when the run would write outside
891
965
  `<contextsDir>/<context>/` and `test/e2e/*.e2e.spec.ts`. `generate --help --json` prints every
892
966
  kind with its `usage`, `aliases`, `summary` and `writesShared`, plus `shared` and `sharedWhen`:
893
- what it writes outside its context, and when. Both serve a build split between workers (see
967
+ what it writes outside its context, and when; `generate <kind> --help --json` prints that kind
968
+ alone, as one object, and `generate <kind> --help` the same as text. Both serve a build split between workers (see
894
969
  `worker-scope`).
895
970
  - A fake is an entry point for knip and may have no importer for dependency-cruiser: a port
896
971
  and its fake generated before a use case needs them fail neither analyzer. A domain service
@@ -945,7 +1020,7 @@ Regenerates what is derived from the config and the code, and nothing else:
945
1020
  platform owners. A file the team wrote keeps its lines, the block appended after them; without
946
1021
  any owner nothing is written.
947
1022
 
948
- `--behaviour` writes the pages of `docs/behaviour/` alone, every other generated document left as it is: what the pre-commit hook runs when a spec is staged; with `--check`, those pages alone are compared. A rule is written as its title without the row ids and criteria it opens with (`#FIX1 `, `#US1.04 AC1 `), which date it to the change that brought it and mean nothing to a reader of the business.
1023
+ `--behaviour` writes the pages of `docs/behaviour/` alone, every other generated document left as it is: what the pre-commit hook runs when a spec, a source under `src/` or `ddd-ts-kit.config.json` is staged, since a source can move a spec to another heading (the use case its route sends, the permission its policy decides) while no spec changes; with `--check`, those pages alone are compared. A page reads as a specification. It opens with one heading per use case of the context, the command or query in the words its handler spec is described with (`Cancel invoice (command)`), which holds the rules of its handler, of its policy (named after it, or deciding the permission it requires; a policy several use cases share states its rules under the first of them, `shared with ...`, and is named under the others), of its controller or route, of its reader, of its end-to-end spec (`test/e2e/<use-case>.e2e.spec.ts`, `<use-case>-<behaviour>`, or named after its route) and of the acceptance scenarios that cite a row its titles alone cite (a row two use cases cite leaves the scenario on the application page). One heading per part of the model follows (aggregate, entity, value object, state machine, domain service, domain event, error), then one per reaction (event and integration handlers, publishers, projections, process managers, jobs), then each spec that fits none, under its directory. Under each heading come the rules written for the project, then, in a sub-list `Generated by the kit`, each under the `describe` of its spec, the titles that match word for word a title a spec template of the kit writes for a spec of that role, its names substituted (`saves the invoice and answers its identifier`, `is refused to an actor who does not hold the permission invoice.cancel`), so that the eye goes to what the project added; a planned rule (`it.todo`) comes last in each list, the generic ones a generator planted included. `docs/behaviour/application.md` keeps the specs of `test/` that serve no use case: the journeys, the architecture, the scenarios that cite no row of a use case. The rows of the plan and the criterion a title opens with, as `test/title-states-a-rule` asks them written (`#US5.02 AC1 ...`), are shown before the rule (`` `#US5.02 AC1` a customer places an order ``), and each page ends with `Rows of the plan`: each row its titles cite and how many titles cite it, so that a reviewer checks that each rule line of a row of `docs/architecture/slices.md` has its title.
949
1024
 
950
1025
  `--stored-events` also records in `stored-events.lock.json` the shape of each version of a stored
951
1026
  event declared in the codecs of `infrastructure/persistence/`, never rewriting a recorded version:
@@ -1017,7 +1092,8 @@ Moves the function routes of a project, or of one context, to controller classes
1017
1092
  - the schema files named after the route follow it (`<name>-body.dto.ts` becomes
1018
1093
  `<name>.body.ts`), the others go to `shared/` under their name, and every import of a moved
1019
1094
  file is rewritten;
1020
- - the spec becomes `<name>.controller.spec.ts` and runs the controller without its guards;
1095
+ - the spec becomes `<name>.controller.spec.ts`: sent through `routeOf`, the controller stands
1096
+ behind the guards of its group; a spec that calls `executeRoute` runs it without them;
1021
1097
  - in a declared project the list `<context>.routes.ts`, its spec and its line in the
1022
1098
  composition root are removed; in an explicit one the list builds each controller by hand;
1023
1099
  - the config says `controllers` once no function route is left in the contexts.
@@ -1159,6 +1235,8 @@ handlers, the policies, the gateways and the adapters are read from the decorato
1159
1235
  query shows what it requires (or `public`), a handler its consumer name and its event, a policy its
1160
1236
  permission, an adapter its port; `--json` adds them under `declarations`. In the explicit style the
1161
1237
  jobs are read from the `builder.job(...)` and `platform.jobs.register(...)` lines of the module file.
1238
+ The text leaves out the kinds a context holds none of, and the end-to-end specs when there is none;
1239
+ `--json` keeps every key, an empty list included.
1162
1240
 
1163
1241
  ## describe
1164
1242
 
@@ -1194,7 +1272,7 @@ each `CONTEXT.md`.
1194
1272
 
1195
1273
  ```
1196
1274
  ddd-ts-kit status [--workers]
1197
- ddd-ts-kit todo [<context>]
1275
+ ddd-ts-kit todo [<context>] [--brief]
1198
1276
  ```
1199
1277
 
1200
1278
  `status` prints the `Next:` line of `docs/architecture/plan.md`, the rows of
@@ -1245,7 +1323,9 @@ current }, agent, phase, next }`, `phase` being `not started`, `mid-row`, `betwe
1245
1323
  and did not stop since).
1246
1324
 
1247
1325
  `todo` lists those markers as `file:line` with their kind and their text, in the project or in one
1248
- context; `--json` prints `{ count, remaining: [{ kind, context, file, line, text }] }`.
1326
+ context; `--brief` prints each as `file:line` and its first words (up to its first `:` or `;`,
1327
+ twelve words at most), the file holding the rest, a quarter of the size mid-slice; `--json` prints
1328
+ `{ count, remaining: [{ kind, context, file, line, text }] }`, every text whole.
1249
1329
 
1250
1330
  ## plan-waves
1251
1331
 
@@ -1278,13 +1358,16 @@ batch that holds them (or the `plan-waves <context>` that shows them) and the ro
1278
1358
  before launching a wave, the conductor sees that it waits on the work of another story, and whether
1279
1359
  anyone carries it.
1280
1360
 
1281
- A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
1282
- rows carry make the rows impossible to order: they are reported alone, without waves, and the
1361
+ A cycle in `Depends on`, a dependency on an id no row carries, a row without owner, an id two
1362
+ rows carry, an id that is not a code and a number (`US1.02`, never `US1.02;id`) and a context the
1363
+ config does not declare make the rows impossible to order or to brief (a brief is a command the
1364
+ conductor runs, and only the context and the ids of declared, well-formed rows are written in it):
1365
+ they are reported alone, without waves, and the
1283
1366
  command exits 1. A file without a slices table, or a context no row names, is refused.
1284
1367
 
1285
1368
  Once the rows can be ordered, the generator commands of their `Start with` cells (between
1286
1369
  backquotes, `generate ...` or `npx ddd-ts-kit generate ...`) are replayed in a copy of the
1287
- project (the files git sees; the project is left as it was), in the order of the waves, so that a
1370
+ project (the files git sees, a symbolic link left out wherever it points; the project is left as it was), in the order of the waves, so that a
1288
1371
  command finds what the rows before it generate. The generator itself says which names each
1289
1372
  command introduces (the use case, the aggregate and the fact of an event, a `--name`, the words of
1290
1373
  a `--permission`, ...), and each is judged as the generator judges it, against the glossary of its
@@ -1292,15 +1375,47 @@ context as it stands plus the `--term` of the row and of the rows it waits for,
1292
1375
  term a row it does not wait for adds is not counted, since that row may not be merged when this
1293
1376
  one is built. Each word it does not define (`undefined-word`) and each technical word no term
1294
1377
  holds (`technical-word`) is reported once per row, with the `--term` to add, without waves, and
1295
- the command exits 1: a worker following that row as written would be refused. The commands the
1296
- generator refused for another reason (a missing `--module`, an aggregate no row generates, an
1297
- upstream not declared, a handler written by hand that an end-to-end spec needs) are listed after
1298
- the waves under `Refused for another reason than a word when the plan was replayed`, without
1299
- failing: the names they would introduce after that refusal are not judged. The replay costs about
1300
- a tenth of a second per command. `--json` prints
1301
- `{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, story, waitingFor, waitingForRows: [{ id, context, story, status }] }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder, otherStories: [{ id, context, story, kind, slice, owner, status, batch, waitedForBy }], notReplayed: [{ row, command, refusal }] }`,
1378
+ the command exits 1: a worker following that row as written would be refused. So is each command
1379
+ the generator refuses for another reason (`refused-command`: a missing `--module` in a context
1380
+ divided into modules, `--grant` on a project whose rights are not roles, an aggregate no row
1381
+ generates, an upstream not declared, an unknown flag), without waves and with exit 1, the refusal
1382
+ of the generator and its fix printed under the row: fix the row. The generator also says, while it
1383
+ replays a command, which files it builds on (the aggregate of `--aggregate`, the port of an
1384
+ adapter, the use case of a route, a route group, the route, the event handler or the job that
1385
+ starts the use case of an end-to-end spec, the `CONTEXT.md` of the context it writes in and of
1386
+ each upstream it declares, the declaration of an event) and which files it creates. A command
1387
+ that builds on a file a row it does not wait for generates, directly or not, is a
1388
+ `missing-dependency`, even though the replay, one row after the other in one copy, found the file:
1389
+ the worker of that row, on a branch of its own, would be refused (`#US5.02 ... builds on
1390
+ <file>, which #US5.01 generates: add US5.01 to its Depends on`). A command the generator refuses
1391
+ names those rows with its refusal instead, in its `prerequisite` and its `rows`: one problem per
1392
+ command. A command refused for what it
1393
+ builds on is run again once the whole plan has run, with `--dry-run` so that the copy stays as the
1394
+ plan left it and no rerun passes on what another wrote, and the files it then finds say which row
1395
+ generates what it needed, each file in one pass: a later row it does not wait for (`add <id> to its Depends on`, and
1396
+ that id in `rows`, as many ids as rows), a later row that waits for it (move the command that generates it to this row or
1397
+ to a row before it, rather than make a cycle), a later command of the same row (put it first), or
1398
+ none as the rows are written (add the command the fix names, or fix the refused row that would
1399
+ generate it); what it is refused for then, for another reason (a `--grant` once the aggregate is
1400
+ found) or for another file no row generates, is said too (`then:`, `nextRefusal`), so that fixing
1401
+ the order is not followed by another refusal. A row `in progress` is replayed, so that the rows after it
1402
+ find what it generates, but neither its names, nor its refusals, nor what it builds on are problems:
1403
+ its worker may have added the term a name needs on their branch, its commands may have run in the
1404
+ project already, and the generator refuses a second run of some of them (a
1405
+ port already bound to an adapter, a decision record whose number is taken); they are listed apart,
1406
+ with their fix, under `Refused in rows in progress, not counted`. A command whose files exist is
1407
+ otherwise skipped by the generator, not refused. The replay runs each command for real in the
1408
+ copy, never with `--dry-run`, so that the next command finds its files. With a context, the open
1409
+ rows of the other contexts are replayed too, in their waves (when the whole file can be ordered),
1410
+ so that a row finds what a row of another context it does not wait for generates and is told to
1411
+ wait for it; only the rows of its plan, its own and those they wait for, are judged and listed
1412
+ under `Refused in rows in progress`. A plan whose rows run no generator command makes no copy. The
1413
+ replay costs about a tenth of a second per command. `--json` prints
1414
+ `{ file, context, problems: [{ kind, rows, message, command?, refusal?, fix?, prerequisite?, nextRefusal?, builtOn? }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, story, waitingFor, waitingForRows: [{ id, context, story, status }] }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder, otherStories: [{ id, context, story, kind, slice, owner, status, batch, waitedForBy }], started: [{ row, command, refusal, fix }] }`,
1302
1415
  `story` being `null` for a row whose id names none and `batch` `null` for a row the context asked
1303
- for does not show.
1416
+ for does not show; `command`, `refusal`, `fix` and `prerequisite` are those of a `refused-command`,
1417
+ `fix`, `prerequisite` and `nextRefusal` (`{ refusal, fix, prerequisite }`, its `prerequisite` saying that no row generates the file it then lacks) `null` when there is none, `command` and `builtOn` those of a
1418
+ `missing-dependency`; `message` holds a problem on one line.
1304
1419
 
1305
1420
  ## acceptance
1306
1421
 
@@ -1319,7 +1434,14 @@ its rows: every slice row and criterion has a written scenario, and the acceptan
1319
1434
  scenario (`pending(...)`, layout and comments aside); after it, a scenario changes only with its
1320
1435
  criterion, and a criterion, or a scenario whose criteria stayed, only with a `Verdict: amend` of
1321
1436
  the `acceptance-judge` agent on that very version (`test/acceptance/verdicts/*.md`), which the lock
1322
- keeps as an amendment for the owner to validate. It never runs a test. Exits 1 while a gate is not
1437
+ keeps as an amendment for the owner to validate. When the lock file is missing, unreadable or holds nothing, `--lock` and the report read the last
1438
+ lock a commit holds and compare with it: a scenario or a criterion that differs without a verdict
1439
+ for its version is refused (exit 2, naming it, with `git checkout <commit> -- <lock>` to restore the
1440
+ lock), the report lists the same drift, and the verdicts it finds are kept as amendments. A lock whose
1441
+ deletion a commit holds is a removal decided: locked again, with one line saying so. Without an answer
1442
+ from git (no repository, or git not installed) it locks, and says the previous lock could not be
1443
+ checked only when a removal is plausible (a lock file that holds nothing, or a verdict on the story):
1444
+ a first lock says nothing. It never runs a test. Exits 1 while a gate is not
1323
1445
  met, or, without one, on an inconsistency or a drift from the lock. `--json` prints
1324
1446
  `{ gate, met, stories: [{ story, file?, specification?, rows, criteria, scenarios, regression?, lock?, amendments, problems }] }`.
1325
1447
 
@@ -1712,8 +1834,8 @@ Where a story stands, phase by phase, and the next step: its specification and c
1712
1834
  (`docs/architecture/stories/<story>.md`), its rows in `slices.md`, a design review section per
1713
1835
  row not done (`docs/architecture/reviews/<story>.md`, `## #<id>`), its acceptance written and
1714
1836
  locked, its rows done with no marker of its own left, its acceptance passing, its trunk merged
1715
- in, its `## Origin` (`From:` and `Built with:`), its `## Report` with `### Verification` naming
1716
- `npm run verify`. In the worktree of a story, the story is its own. `--gate build` exits 1 until
1837
+ in, its `## Origin` (`From:` and `Built with:`), its `## Report` with `### Digest` (what `digest` prints)
1838
+ then `### Verification` naming `npm run verify`. In the worktree of a story, the story is its own. `--gate build` exits 1 until
1717
1839
  the first four phases are met (the code may start: the guard of the plugin opens the contexts);
1718
1840
  `--gate close` until all are. For a story of kind `fix` (its `story.json`, or a `## Regression`
1719
1841
  section in its file), the rows and their design are optional, the acceptance phase reads the
@@ -1721,6 +1843,42 @@ specs listed under `## Regression` instead of `test/acceptance/`, each of which
1721
1843
  no passing phase is read: the regression specs run with the tests of the project. `--json`
1722
1844
  prints `{ story, gate, met, next, phases }`.
1723
1845
 
1846
+ ## digest
1847
+
1848
+ ```
1849
+ ddd-ts-kit digest --base <ref> [--json]
1850
+ ```
1851
+
1852
+ What the branch changes, for its reviewer, in about thirty lines of Markdown read before the
1853
+ diff: the story skill writes it into `## Report`, the pull-request skill keeps it at the top of
1854
+ the body of the pull request. HEAD is compared with its merge base with `<ref>`, so that a trunk
1855
+ that moved on since the branch was cut adds nothing; both commits are written under the temporary
1856
+ directory of the system through an index of their own (`git read-tree`, then `git checkout-index`,
1857
+ which, unlike `git archive`, keeps what `export-ignore` of `.gitattributes` names), described there as `describe` reads a project, and
1858
+ removed afterwards: the working tree is never checked out, and what it holds uncommitted is said
1859
+ in a note, not digested.
1860
+
1861
+ - **By context**: the use cases, the permissions with the roles that hold them by name (in
1862
+ `<platformDir>/auth/roles/roles.ts`, and `signed-in` for `signed-in-grants.ts`), the routes with
1863
+ their error codes, the events published and consumed, the ports with their adapters, each
1864
+ `added`, `changed` or `removed`.
1865
+ - **New spec titles**: per spec file the branch changes, the titles the base did not state, read
1866
+ as the behaviour pages read them; those a template of the kit wrote are counted, not listed.
1867
+ - **To review, in reading order**: the files a person wrote, by part: the root of a context (its
1868
+ `CONTEXT.md`, permissions, codes), domain (the shared kernel too), application, presentation
1869
+ (the published language too), infrastructure (the migrations too), tests, elsewhere (the
1870
+ platform, the documents, the config).
1871
+ - **Regenerated, do not review**: the generated files the `## Do not report` of `REVIEW.md` names,
1872
+ from one list: the barrels, `openapi/`, `clients/`, the AsyncAPI document and the event catalog,
1873
+ the behaviour pages, `docs/context-map.md`, the OpenAPI documents of the platform, the schema
1874
+ index, `.dependency-cruiser.cjs`, and a `CONTEXT.md` changed in its generated sections alone.
1875
+
1876
+ Outside a git repository, before the first commit, on a ref git does not know or one that shares
1877
+ no history with HEAD, it refuses with exit 2. `--json` prints `{ base, baseCommit, head, branch,
1878
+ contexts, specs, review, regenerated, notes }`: each context `{ name, change, useCases,
1879
+ permissions, routes, publishedEvents, consumedEvents, ports }`, each entry with its `change`; each
1880
+ spec `{ file, titles: [{ title, state }], generated }`; each file to review `{ path, part, change }`.
1881
+
1724
1882
  ## cited
1725
1883
 
1726
1884
  ```
@@ -1951,10 +2109,11 @@ Each changed path reaches something:
1951
2109
  lockfile, the pipeline, a directory of `src/contexts/` the config does not declare.
1952
2110
 
1953
2111
  Without `--base`, or when git cannot tell what changed (an unknown ref, a shallow clone without
1954
- the base), everything is selected: that is what the default branch and the nightly run get. The
1955
- selection is never narrower than the declared relationships, because `context/declared-relationship`
1956
- keeps every import between contexts inside them, and that rule runs on the whole project in every
1957
- pipeline.
2112
+ the base), everything is selected: that is what the default branch and the nightly run get. A
2113
+ `--base` or `--head` that starts with a dash is refused (exit 2): no ref does, and git would read
2114
+ it as one of its own options. The selection is never narrower than the declared relationships,
2115
+ because `context/declared-relationship` keeps every import between contexts inside them, and that
2116
+ rule runs on the whole project in every pipeline.
1958
2117
 
1959
2118
  ![A change in the scheduling context of the example application: scheduling is selected, and so are notification and analytics, which are downstream of it in the context map; identity, upstream, is left to the default branch](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/cli-affected-selection.svg)
1960
2119
 
@@ -2065,7 +2224,9 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2065
2224
  baseline was committed (a `git mv`); a file moved otherwise reports its errors at its new path,
2066
2225
  and its old entry fails until the owner writes the baseline again. A baseline makes old errors quiet; it does
2067
2226
  not make a tree outside the canonical one checkable.
2068
- `--changed-since` runs `git diff --name-only --relative <ref>...` in the project.
2227
+ `--changed-since` runs `git diff --name-only --relative <ref>...` in the project, on the commit
2228
+ the ref names: a ref that names no commit is refused (exit 2, `<ref> is not a commit of this
2229
+ repository`), as it is by every command that takes one.
2069
2230
  - `--format github` prints `::error file=...,line=...::` annotations.
2070
2231
  - `--explain` follows the violations with each rule they report, once, with its description and
2071
2232
  the reason it exists (as `explain` prints it, without the examples), and in JSON adds an
@@ -2148,7 +2309,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2148
2309
  | `imports/alias-only` | under the source root, `test/` and `scripts/`: an `import`, `export ... from` or `import()` with a relative specifier, the same directory included (the fix names the alias to write; `eslint --fix` writes it); an alias specifier with a `.` or `..` segment |
2149
2310
  | `imports/extension` | under the source root, `test/` and `scripts/`: with `importExtension` `none`, an alias specifier that ends with `.js`, `.mjs`, `.cjs`, `.ts`, `.mts` or `.cts`; with `js` (or no key), an alias specifier that does not end with `.js` (the fix names the specifier to write; `eslint --fix` writes it). A package subpath is never judged |
2150
2311
  | `imports/alias-declared` | an `importAlias` that is not `@/` or `$<name>/`, or that is `$test/`, `$scripts/`, `$generated/`; a `paths` entry of `tsconfig.json` missing or different from what `importAlias` gives (the fix gives the entry); another `paths` entry under an alias; a `baseUrl`; a `tsconfig.build.json` whose `paths` differ; `paths` of `knip.json` mapping an alias; a script that compiles (`tsc` without `--noEmit`) and does not run `ddd-ts-kit build-aliases` afterwards; a script running `tsx --tsconfig` on another file; a `vitest` config at the root without `tsconfigPaths: true`, a `jest` config without the derived `moduleNameMapper` entries, or `.dependency-cruiser.cjs` without `tsConfig`; `module` and `moduleResolution` of `tsconfig.json` (or of a `tsconfig.build.json` that sets its own) that are not what `importExtension` gives: `ESNext`, `Bundler` and `customConditions` holding `node` under `none`, and under `js` a written value that is not a Node resolution; a jest mapping whose pattern does not end as the imports do. A project without `package.json` is not judged |
2151
- | `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
2312
+ | `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a directory of the config that leads out of the project; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
2152
2313
  | `config/suppression-needs-reason` | a suppression without a rule id or a reason (kept as an alias next to `governance/recorded-deviation`, which judges the reason) |
2153
2314
  | `authz/declared` | in a module file, `builder.command(X)` or `builder.query(X)` without `.requires(` or `.public(` in its chain, unless the message class carries `@Requires` or `@Public` of `@ddd-ts-kit/kernel/declarations`; with manual or nest wiring, a command or query class absent from every `requires(X, ...)` and `publicUseCase(X)` of the module file and of `application/authorization/`; a `defineRoute` without `security` (the route type refuses it already, and an empty list too: this is the text-level net for a definition built loosely); in the declared style, the exported class of a `*.command.ts` or `*.query.ts` file carrying neither `@Requires` nor `@Public` |
2154
2315
  | `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning); with `rebac`, a permission the schema leaves on the context while no source outside the tests writes an `operator` relationship (of a person or a system actor) on that context and no signed-in grant holds it, in a project that already makes a person operator of some context; silent with an authorizer of the project's own (a warning) |