ddd-ts-kit 0.23.1 → 0.24.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 (239) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.fr.md +42 -7
  3. package/README.md +38 -6
  4. package/dist/check/canonical/stray-entry.d.ts +8 -0
  5. package/dist/check/canonical/stray-entry.d.ts.map +1 -0
  6. package/dist/check/canonical/stray-entry.js +75 -0
  7. package/dist/check/canonical/stray-entry.js.map +1 -0
  8. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  9. package/dist/check/catalogue/architecture-rules.js +2 -0
  10. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  11. package/dist/check/catalogue/default-severities.d.ts.map +1 -1
  12. package/dist/check/catalogue/default-severities.js +1 -0
  13. package/dist/check/catalogue/default-severities.js.map +1 -1
  14. package/dist/check/explain/persistence-docs.js +1 -1
  15. package/dist/check/explain/persistence-docs.js.map +1 -1
  16. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  17. package/dist/check/explain/tree-docs.js +5 -0
  18. package/dist/check/explain/tree-docs.js.map +1 -1
  19. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  20. package/dist/check/fixtures/tree-fixtures.js +17 -0
  21. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  22. package/dist/check/migrations/drizzle-history-findings.js +1 -1
  23. package/dist/check/migrations/drizzle-history-findings.js.map +1 -1
  24. package/dist/check/rules/tree-closed.d.ts.map +1 -1
  25. package/dist/check/rules/tree-closed.js +4 -68
  26. package/dist/check/rules/tree-closed.js.map +1 -1
  27. package/dist/check/rules/tree-documented-paths.d.ts +3 -0
  28. package/dist/check/rules/tree-documented-paths.d.ts.map +1 -0
  29. package/dist/check/rules/tree-documented-paths.js +54 -0
  30. package/dist/check/rules/tree-documented-paths.js.map +1 -0
  31. package/dist/commands/drizzle-generate.d.ts +6 -1
  32. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  33. package/dist/commands/drizzle-generate.js +39 -6
  34. package/dist/commands/drizzle-generate.js.map +1 -1
  35. package/dist/commands/plan-waves.d.ts +9 -0
  36. package/dist/commands/plan-waves.d.ts.map +1 -0
  37. package/dist/commands/plan-waves.js +36 -0
  38. package/dist/commands/plan-waves.js.map +1 -0
  39. package/dist/commands/status.d.ts +1 -0
  40. package/dist/commands/status.d.ts.map +1 -1
  41. package/dist/commands/status.js +4 -2
  42. package/dist/commands/status.js.map +1 -1
  43. package/dist/help/notes.d.ts +1 -1
  44. package/dist/help/notes.d.ts.map +1 -1
  45. package/dist/help/notes.js +19 -3
  46. package/dist/help/notes.js.map +1 -1
  47. package/dist/help/usage.d.ts +1 -1
  48. package/dist/help/usage.d.ts.map +1 -1
  49. package/dist/help/usage.js +2 -0
  50. package/dist/help/usage.js.map +1 -1
  51. package/dist/init/files/persistence-files.d.ts.map +1 -1
  52. package/dist/init/files/persistence-files.js +7 -1
  53. package/dist/init/files/persistence-files.js.map +1 -1
  54. package/dist/init/manifest/versions.js +24 -24
  55. package/dist/migration/branch-migration.d.ts +9 -0
  56. package/dist/migration/branch-migration.d.ts.map +1 -0
  57. package/dist/migration/branch-migration.js +2 -0
  58. package/dist/migration/branch-migration.js.map +1 -0
  59. package/dist/migration/branch-migrations.d.ts +16 -0
  60. package/dist/migration/branch-migrations.d.ts.map +1 -0
  61. package/dist/migration/branch-migrations.js +48 -0
  62. package/dist/migration/branch-migrations.js.map +1 -0
  63. package/dist/migration/delete-branch-migrations.d.ts +9 -0
  64. package/dist/migration/delete-branch-migrations.d.ts.map +1 -0
  65. package/dist/migration/delete-branch-migrations.js +23 -0
  66. package/dist/migration/delete-branch-migrations.js.map +1 -0
  67. package/dist/migration/drizzle-run.d.ts +7 -0
  68. package/dist/migration/drizzle-run.d.ts.map +1 -0
  69. package/dist/migration/drizzle-run.js +2 -0
  70. package/dist/migration/drizzle-run.js.map +1 -0
  71. package/dist/migration/drizzle-silent-failures.js +1 -1
  72. package/dist/migration/drizzle-silent-failures.js.map +1 -1
  73. package/dist/migration/find-project-formatter.d.ts +8 -0
  74. package/dist/migration/find-project-formatter.d.ts.map +1 -0
  75. package/dist/migration/find-project-formatter.js +52 -0
  76. package/dist/migration/find-project-formatter.js.map +1 -0
  77. package/dist/migration/format-written-files.d.ts +9 -0
  78. package/dist/migration/format-written-files.d.ts.map +1 -0
  79. package/dist/migration/format-written-files.js +32 -0
  80. package/dist/migration/format-written-files.js.map +1 -0
  81. package/dist/migration/generate-and-read.d.ts +6 -0
  82. package/dist/migration/generate-and-read.d.ts.map +1 -0
  83. package/dist/migration/generate-and-read.js +14 -0
  84. package/dist/migration/generate-and-read.js.map +1 -0
  85. package/dist/migration/index.d.ts +4 -0
  86. package/dist/migration/index.d.ts.map +1 -1
  87. package/dist/migration/index.js +4 -0
  88. package/dist/migration/index.js.map +1 -1
  89. package/dist/migration/known-primary-keys.d.ts +3 -0
  90. package/dist/migration/known-primary-keys.d.ts.map +1 -0
  91. package/dist/migration/known-primary-keys.js +2 -0
  92. package/dist/migration/known-primary-keys.js.map +1 -0
  93. package/dist/migration/migration-files.d.ts +7 -0
  94. package/dist/migration/migration-files.d.ts.map +1 -0
  95. package/dist/migration/migration-files.js +29 -0
  96. package/dist/migration/migration-files.js.map +1 -0
  97. package/dist/migration/plan-replay.d.ts +9 -0
  98. package/dist/migration/plan-replay.d.ts.map +1 -0
  99. package/dist/migration/plan-replay.js +68 -0
  100. package/dist/migration/plan-replay.js.map +1 -0
  101. package/dist/migration/previous-primary-keys.d.ts +9 -0
  102. package/dist/migration/previous-primary-keys.d.ts.map +1 -0
  103. package/dist/migration/previous-primary-keys.js +55 -0
  104. package/dist/migration/previous-primary-keys.js.map +1 -0
  105. package/dist/migration/primary-key-order-finding.d.ts +12 -0
  106. package/dist/migration/primary-key-order-finding.d.ts.map +1 -0
  107. package/dist/migration/primary-key-order-finding.js +2 -0
  108. package/dist/migration/primary-key-order-finding.js.map +1 -0
  109. package/dist/migration/primary-key-order-findings.d.ts +12 -0
  110. package/dist/migration/primary-key-order-findings.d.ts.map +1 -0
  111. package/dist/migration/primary-key-order-findings.js +55 -0
  112. package/dist/migration/primary-key-order-findings.js.map +1 -0
  113. package/dist/migration/project-formatter.d.ts +9 -0
  114. package/dist/migration/project-formatter.d.ts.map +1 -0
  115. package/dist/migration/project-formatter.js +2 -0
  116. package/dist/migration/project-formatter.js.map +1 -0
  117. package/dist/migration/replay-drizzle-migrations.d.ts +15 -0
  118. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -0
  119. package/dist/migration/replay-drizzle-migrations.js +63 -0
  120. package/dist/migration/replay-drizzle-migrations.js.map +1 -0
  121. package/dist/migration/replay-plan.d.ts +11 -0
  122. package/dist/migration/replay-plan.d.ts.map +1 -0
  123. package/dist/migration/replay-plan.js +2 -0
  124. package/dist/migration/replay-plan.js.map +1 -0
  125. package/dist/migration/replayed-name.d.ts +7 -0
  126. package/dist/migration/replayed-name.d.ts.map +1 -0
  127. package/dist/migration/replayed-name.js +12 -0
  128. package/dist/migration/replayed-name.js.map +1 -0
  129. package/dist/migration/sql-statement.d.ts +6 -0
  130. package/dist/migration/sql-statement.d.ts.map +1 -0
  131. package/dist/migration/sql-statement.js +2 -0
  132. package/dist/migration/sql-statement.js.map +1 -0
  133. package/dist/migration/sql-statements.d.ts +4 -0
  134. package/dist/migration/sql-statements.d.ts.map +1 -0
  135. package/dist/migration/sql-statements.js +36 -0
  136. package/dist/migration/sql-statements.js.map +1 -0
  137. package/dist/migration/table-change.d.ts +12 -0
  138. package/dist/migration/table-change.d.ts.map +1 -0
  139. package/dist/migration/table-change.js +2 -0
  140. package/dist/migration/table-change.js.map +1 -0
  141. package/dist/migration/table-changes.d.ts +9 -0
  142. package/dist/migration/table-changes.d.ts.map +1 -0
  143. package/dist/migration/table-changes.js +55 -0
  144. package/dist/migration/table-changes.js.map +1 -0
  145. package/dist/migration/tidy-written-migration.d.ts +5 -0
  146. package/dist/migration/tidy-written-migration.d.ts.map +1 -0
  147. package/dist/migration/tidy-written-migration.js +8 -0
  148. package/dist/migration/tidy-written-migration.js.map +1 -0
  149. package/dist/migration/wait-for-next-second.d.ts +6 -0
  150. package/dist/migration/wait-for-next-second.d.ts.map +1 -0
  151. package/dist/migration/wait-for-next-second.js +11 -0
  152. package/dist/migration/wait-for-next-second.js.map +1 -0
  153. package/dist/migration/warn-primary-key-order.d.ts +5 -0
  154. package/dist/migration/warn-primary-key-order.d.ts.map +1 -0
  155. package/dist/migration/warn-primary-key-order.js +16 -0
  156. package/dist/migration/warn-primary-key-order.js.map +1 -0
  157. package/dist/migration/written-migration.d.ts +9 -0
  158. package/dist/migration/written-migration.d.ts.map +1 -0
  159. package/dist/migration/written-migration.js +2 -0
  160. package/dist/migration/written-migration.js.map +1 -0
  161. package/dist/migration/written-paths.d.ts +3 -0
  162. package/dist/migration/written-paths.d.ts.map +1 -0
  163. package/dist/migration/written-paths.js +5 -0
  164. package/dist/migration/written-paths.js.map +1 -0
  165. package/dist/plan/aggregates-of.d.ts +6 -0
  166. package/dist/plan/aggregates-of.d.ts.map +1 -0
  167. package/dist/plan/aggregates-of.js +13 -0
  168. package/dist/plan/aggregates-of.js.map +1 -0
  169. package/dist/plan/batched-waves.d.ts +18 -0
  170. package/dist/plan/batched-waves.d.ts.map +1 -0
  171. package/dist/plan/batched-waves.js +73 -0
  172. package/dist/plan/batched-waves.js.map +1 -0
  173. package/dist/plan/cycles-of.d.ts +8 -0
  174. package/dist/plan/cycles-of.d.ts.map +1 -0
  175. package/dist/plan/cycles-of.js +30 -0
  176. package/dist/plan/cycles-of.js.map +1 -0
  177. package/dist/plan/format-plan.d.ts +4 -0
  178. package/dist/plan/format-plan.d.ts.map +1 -0
  179. package/dist/plan/format-plan.js +53 -0
  180. package/dist/plan/format-plan.js.map +1 -0
  181. package/dist/plan/merge-order.d.ts +8 -0
  182. package/dist/plan/merge-order.d.ts.map +1 -0
  183. package/dist/plan/merge-order.js +32 -0
  184. package/dist/plan/merge-order.js.map +1 -0
  185. package/dist/plan/plan-problems.d.ts +8 -0
  186. package/dist/plan/plan-problems.d.ts.map +1 -0
  187. package/dist/plan/plan-problems.js +57 -0
  188. package/dist/plan/plan-problems.js.map +1 -0
  189. package/dist/plan/plan-waves.d.ts +16 -0
  190. package/dist/plan/plan-waves.d.ts.map +1 -0
  191. package/dist/plan/plan-waves.js +23 -0
  192. package/dist/plan/plan-waves.js.map +1 -0
  193. package/dist/plan/rows-to-plan.d.ts +7 -0
  194. package/dist/plan/rows-to-plan.d.ts.map +1 -0
  195. package/dist/plan/rows-to-plan.js +19 -0
  196. package/dist/plan/rows-to-plan.js.map +1 -0
  197. package/dist/plan/wave-numbers.d.ts +8 -0
  198. package/dist/plan/wave-numbers.d.ts.map +1 -0
  199. package/dist/plan/wave-numbers.js +27 -0
  200. package/dist/plan/wave-numbers.js.map +1 -0
  201. package/dist/plan/wave-plan.d.ts +48 -0
  202. package/dist/plan/wave-plan.d.ts.map +1 -0
  203. package/dist/plan/wave-plan.js +2 -0
  204. package/dist/plan/wave-plan.js.map +1 -0
  205. package/dist/progress/format-progress.d.ts.map +1 -1
  206. package/dist/progress/format-progress.js +16 -1
  207. package/dist/progress/format-progress.js.map +1 -1
  208. package/dist/progress/progress.d.ts +11 -1
  209. package/dist/progress/progress.d.ts.map +1 -1
  210. package/dist/progress/read-progress.d.ts +6 -2
  211. package/dist/progress/read-progress.d.ts.map +1 -1
  212. package/dist/progress/read-progress.js +10 -5
  213. package/dist/progress/read-progress.js.map +1 -1
  214. package/dist/progress/status-row-of.d.ts +16 -0
  215. package/dist/progress/status-row-of.d.ts.map +1 -0
  216. package/dist/progress/status-row-of.js +23 -0
  217. package/dist/progress/status-row-of.js.map +1 -0
  218. package/dist/run.d.ts.map +1 -1
  219. package/dist/run.js +2 -0
  220. package/dist/run.js.map +1 -1
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/dist/worker/rows-on-branches.d.ts +8 -0
  224. package/dist/worker/rows-on-branches.d.ts.map +1 -0
  225. package/dist/worker/rows-on-branches.js +9 -0
  226. package/dist/worker/rows-on-branches.js.map +1 -0
  227. package/package.json +2 -2
  228. package/templates/e2e/e2e.spec.ts.tpl +2 -2
  229. package/templates/init/e2e/start-application.database.ts.tpl +30 -1
  230. package/templates/init/e2e/start-application.memory.ts.tpl +30 -1
  231. package/templates/init/e2e/vitest.e2e.config.ts.tpl +4 -0
  232. package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +18 -1
  233. package/templates/init/platform/database/open-test-database.knex.ts.tpl +18 -1
  234. package/templates/init/platform/database/open-test-database.prisma.ts.tpl +18 -1
  235. package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +18 -1
  236. package/templates/init/platform/database/test-database-template.ts.tpl +23 -0
  237. package/templates/init/rules/tests.md.tpl +1 -1
  238. package/templates/pipeline/package-scripts.json +1 -1
  239. package/templates/pipeline/vitest.config.ts.tpl +6 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,43 @@ What each version changes for someone who uses the kit. The packages of `package
4
4
  together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
5
5
  list the pull requests behind it.
6
6
 
7
+ ## 0.24.0
8
+
9
+ **`plan-waves` orders the work, and `status` says when a row can start.** `npx ddd-ts-kit
10
+ plan-waves [<context>]` reads the rows of `slices.md` not done and gives waves (the rows whose
11
+ dependencies are done, then the rows waiting only for earlier waves), batches of one or two rows
12
+ per owner, the batches of one context and one wave that touch the same aggregate, the
13
+ `worker-scope` command that briefs each batch, and a merge order. A cycle, an unknown dependency,
14
+ a row without owner or an id used twice is reported alone. `status` gives each row not done its
15
+ readiness: on the trunk, on a branch (its dependencies are rows of a worker whose worktree has
16
+ commits), or waiting, with what it waits for.
17
+
18
+ **`drizzle-generate` formats, warns and replays.** After a migration, it formats the files it wrote
19
+ under `meta/` with the formatter the `format` script names (Biome or Prettier), and warns when the
20
+ SQL changes a primary key in an order PostgreSQL refuses. `npx ddd-ts-kit drizzle-generate --replay
21
+ [--base <ref>]`, run on a branch after merging the trunk, deletes the branch's migrations the base
22
+ does not have and generates them again on top of the trunk's last snapshot, with their names; the
23
+ `persistence` and `parallel-work` skills use it at the merge. It is Drizzle's only.
24
+
25
+ **Each spec opens a copy of a started test database.** With Vitest on an ORM, a global setup starts
26
+ PGlite once and saves it; every integration spec opens a copy and creates its tables there, so the
27
+ slow start is paid once per run and the code that creates the tables still counts in the coverage
28
+ of each context. `settled()` of `@ddd-ts-kit/testing/e2e`,
29
+ and `application.settled()` of the generated end-to-end support, wait until the outbox has nothing
30
+ pending instead of a fixed delay, and fail with what is still pending.
31
+
32
+ **`tree/documented-paths` (a warning).** A path of a context cited as code in a Markdown file of
33
+ `docs/architecture/` is judged as `tree/closed` judges a file: a plan, a design note or a review
34
+ that names a directory the canonical tree refuses describes a design the code no longer has. A path
35
+ that does not exist yet is not reported.
36
+
37
+ To move: `npx ddd-ts-kit check` reports, as a warning, the paths of `docs/architecture/` the tree
38
+ refuses: write the place the code has now. To take the test database template in an existing
39
+ project, regenerate `vitest.config.ts`, `vitest.e2e.config.ts`,
40
+ `src/platform/database/open-test-database.ts` and `test/e2e/support/start-application.ts`
41
+ (`npx ddd-ts-kit init --force`, which rewrites every file of the platform); plain `npx ddd-ts-kit
42
+ init` adds the setup file and the rest keeps working as before.
43
+
7
44
  ## 0.23.1
8
45
 
9
46
  **`verify-slice` proposes to stage the paths of the slice only.** In 0.23.0 it listed every path
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:f6e0fcc61902b03c -->
2
+ <!-- translation-of: README.md sha256:e5bd1360f46e4377 -->
3
3
 
4
4
  # ddd-ts-kit
5
5
 
@@ -507,11 +507,11 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
507
507
  | `--authn keycloak` | un service compose `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profil `identity`) et `docker/keycloak/<project>-realm.json` : le client de l'API, un client public `<project>-local` avec l'octroi direct, ses *mappers* d'audience et de `tenant_id`, le rôle de realm `admin`, et les utilisateurs de démonstration `demo-admin` et `demo-user`, pour le développement local seulement |
508
508
  | `--storage local\|s3` | enregistré comme `stack.storage` : où vit le contenu des fichiers, jamais dans la base de données. `src/platform/config/read-files.ts` et `src/platform/files/open-files.ts`, un par choix : `local`, un répertoire en développement (`FILES_DIRECTORY`, `.data/files`) et les liens signés servis par l'application sous `/files` (`FILES_PUBLIC_URL` et `FILES_SIGNING_SECRET` requises en production) ; `s3`, un bucket de n'importe quel fournisseur du protocole S3 au moyen de `@ddd-ts-kit/s3` (les variables `S3_*`, MinIO dans la stack compose) ; la mémoire du processus dans les tests et les outils, dans les deux cas. Avec `--di tsyringe` : `files/bind-files.ts`, `files/files.module.ts` et `files/staging-uploads.ts` ; en câblage manuel, `files/create-files.ts` ; avec une *stack* HTTP, `files/file-routes.ts`. Ils lient `FileStorage`, `FileKeys`, `FileScanner` et `FileStaging`, enregistrent la purge horaire des fichiers en attente et mettent en attente le fichier que porte une commande avant sa transaction ; `generate file-upload` en a besoin. `--storage none` n'écrit rien de tout cela ([Stockage de fichiers](../../docs/concepts/file-storage.fr.md)) |
509
509
  | `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, et pour `--broker` `create-event-provider.ts` : `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, avec `aggregate-key-of.ts` pour l'ordre par agrégat), `NatsEventBus` (`NATS_URL`) ou `RedisStreamsEventBus` de `@ddd-ts-kit/redis/event-bus` (`REDIS_URL` : Redis, Dragonfly ou Valkey), chacun avec un abonné par contexte consommateur (`forConsumer`), `assertTopology` au démarrage, son adresse validée et un service compose avec un contrôle de santé ; ou `custom-event-bus.ts` avec sa *spec* `eventBusContract`. `start-outbox-relay.ts` avec l'outbox. `--broker redis` avec `--cache redis` fait un seul serveur et un seul service compose, `cache` ; seul, le service s'appelle `streams` |
510
- | `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
510
+ | `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL ; avec Vitest chaque *spec* ouvre une copie du cluster que `test/support/test-database-template.ts`, la mise en place globale de l'exécution, initialise une fois, et y crée ses tables). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
511
511
  | outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema.prisma` et `prisma.config.ts`, ou `data-source.ts` |
512
512
  | `scripts/openapi.ts`, `scripts/events.ts` | écrivent `openapi/openapi.yaml` (un fichier par document de `openapi.documents`), `docs/integration/asyncapi.yaml` et `docs/integration/event-catalog.md`, en JSON sous `openapi.format: json` ; `--check` échoue sur une différence |
513
513
  | `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | la base de données avec un contrôle de santé et un volume nommé, `jaegertracing/jaeger:2.22.0` derrière le profil `observability` (son interface et son port OTLP liés à 127.0.0.1), les ports depuis `.env` ; une image multi-étapes, sans root, avec les seules dépendances de production |
514
- | `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (l'application entière sur un port libre, sur une base de données dans le processus sauf si `DATABASE_URL` est définie, aucun *job* lancé par le temps), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)` : une trace sans les appels qu'un adaptateur fait sur lui-même, la forme que vérifie `expectSpanTree`) |
514
+ | `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (l'application entière sur un port libre, sur une base de données dans le processus sauf si `DATABASE_URL` est définie, aucun *job* lancé par le temps ; `settled()` se résout quand l'outbox a relayé ce que les requêtes HTTP ont enregistré), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)` : une trace sans les appels qu'un adaptateur fait sur lui-même, la forme que vérifie `expectSpanTree`) |
515
515
  | `docs/context-map.md`, `docs/integration/README.md` | voir `docs` |
516
516
  | `test/architecture/extractable.spec.ts` | écrit avec le premier contexte : démarre chaque contexte seul sur le kernel et la plateforme, ses *jobs* compris |
517
517
  | `eslint.config.mjs` | le preset `dddTsKit` de `@ddd-ts-kit/eslint-plugin`, lint typé sur le tsconfig du projet |
@@ -1074,10 +1074,16 @@ ddd-ts-kit todo [<context>]
1074
1074
  `status` affiche la ligne `Next:` de `docs/architecture/plan.md`, les lignes de
1075
1075
  `docs/architecture/slices.md` par statut et par responsable, et par contexte les `TODO(domain)`,
1076
1076
  `TODO(platform)` et `it.todo` restants, puis ceux hors des contextes. Un fichier manquant n'est
1077
- pas une erreur. `--json` affiche `{ next, slices, remaining }` : `next` et `slices` valent `null`
1078
- quand leur fichier manque, `slices` contient `{ file, rows, byStatus, byOwner }`, `remaining` un
1079
- `{ context, domain, platform, test }` par contexte, et un avec un `context` vide pour ce qui reste
1080
- hors d'eux.
1077
+ pas une erreur. Chaque ligne qui n'est pas faite dit si elle peut commencer : prête sur le tronc
1078
+ quand toutes ses dépendances sont faites, prête sur une branche quand chaque dépendance non faite
1079
+ est une ligne confiée à un *worker* dont le *worktree* a des *commits* d'avance sur sa base (les
1080
+ `rows` de son `.ddd-ts-kit/worker.json`, tels que `status --workers` les lit), et en attente
1081
+ sinon, avec les identifiants qu'elle attend. `--json` affiche `{ next, slices, remaining }` :
1082
+ `next` et `slices` valent `null` quand leur fichier manque, `slices` contient
1083
+ `{ file, rows, byStatus, byOwner }`, une ligne non faite portant
1084
+ `ready: 'trunk' | 'branch' | 'waiting'` et `waitingFor` (ses dépendances non faites),
1085
+ `remaining` un `{ context, domain, platform, test }` par contexte, et un avec un `context` vide
1086
+ pour ce qui reste hors d'eux.
1081
1087
 
1082
1088
  `status --workers` affiche à la place les *workers* d'une construction en parallèle : chaque
1083
1089
  *worktree* du dépôt dont la copie du projet porte `.ddd-ts-kit/worker.json`, avec sa branche,
@@ -1094,6 +1100,35 @@ commités. `--json` affiche
1094
1100
  `todo` liste ces marqueurs en `file:line` avec leur genre et leur texte, dans le projet ou dans
1095
1101
  un contexte ; `--json` affiche `{ count, remaining: [{ kind, context, file, line, text }] }`.
1096
1102
 
1103
+ ## plan-waves
1104
+
1105
+ ```
1106
+ ddd-ts-kit plan-waves [<context>]
1107
+ ```
1108
+
1109
+ Ordonne les lignes de `docs/architecture/slices.md` qui ne sont pas `done`, pour une construction
1110
+ répartie entre des *workers*. La vague 1 porte les lignes dont toutes les dépendances sont faites ;
1111
+ la vague n les lignes dont les dépendances sont faites ou dans des vagues antérieures, de sorte
1112
+ qu'une ligne n'attend jamais une ligne de sa propre vague. Chaque vague est découpée en lots : un
1113
+ responsable et un contexte par lot, deux lignes au plus (ce que tient un agent), et deux lignes
1114
+ ensemble seulement quand leur `Start with` nomme le même agrégat. L'agrégat d'une ligne est lu dans
1115
+ ses commandes de générateur : `--aggregate <Name>`, `aggregate <context> <Name>` et
1116
+ `repository <context> <Name>`. Deux lots d'un contexte dans une vague sont dits susceptibles de
1117
+ toucher les mêmes fichiers quand ils nomment le même agrégat ; quand l'un d'eux n'en nomme aucun,
1118
+ le chevauchement est dit inconnu plutôt que deviné. Chaque lot du *worker* d'un contexte vient avec
1119
+ la commande qui le consigne, `npx ddd-ts-kit worker-scope <context> --base origin/main --rows <ids>`,
1120
+ avec ses propres `--worktree` et `--branch` quand sa vague porte un autre lot de ce contexte ; un
1121
+ lot du chef d'orchestre se construit sur le tronc ; une personne reçoit sa consigne à la main.
1122
+ Puis l'ordre des fusions : par vague, et dans une vague d'abord le lot que le plus de lignes
1123
+ attendent, directement ou non. Avec un contexte, seules ses lignes sont montrées ; les lignes
1124
+ d'autres contextes qu'elles attendent comptent dans la numérotation des vagues.
1125
+
1126
+ Un cycle dans `Depends on`, une dépendance vers un identifiant qu'aucune ligne ne porte, une ligne
1127
+ sans responsable et un identifiant que portent deux lignes rendent les lignes impossibles à
1128
+ ordonner : ils sont signalés seuls, sans vagues, et la commande sort avec 1. Un fichier sans table
1129
+ de tranches, ou un contexte qu'aucune ligne ne nomme, est refusé. `--json` affiche
1130
+ `{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, waitingFor }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder }`.
1131
+
1097
1132
  ## worker-scope
1098
1133
 
1099
1134
  ```
package/README.md CHANGED
@@ -491,11 +491,11 @@ config, `docsUi`, `ci` and `logger` included.
491
491
  | `--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 |
492
492
  | `--storage local\|s3` | recorded as `stack.storage`: where the content of files lives, never in the database. `src/platform/config/read-files.ts` and `src/platform/files/open-files.ts`, one per choice: `local`, a directory in development (`FILES_DIRECTORY`, `.data/files`) and the signed links answered by the application under `/files` (`FILES_PUBLIC_URL` and `FILES_SIGNING_SECRET` required in production); `s3`, a bucket of any provider of the S3 protocol through `@ddd-ts-kit/s3` (the `S3_*` variables, MinIO in the compose stack); the memory of the process in the tests and the tools, either way. With `--di tsyringe`: `files/bind-files.ts`, `files/files.module.ts` and `files/staging-uploads.ts`; with hand wiring `files/create-files.ts`; with an HTTP stack `files/file-routes.ts`. They bind `FileStorage`, `FileKeys`, `FileScanner` and `FileStaging`, register the hourly purge of staged files and stage the file a command carries before its transaction; `generate file-upload` needs them. `--storage none` writes none of this ([File storage](../../docs/concepts/file-storage.md)) |
493
493
  | `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, and for `--broker` `create-event-provider.ts`: `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, with `aggregate-key-of.ts` for per-aggregate order), `NatsEventBus` (`NATS_URL`) or `RedisStreamsEventBus` of `@ddd-ts-kit/redis/event-bus` (`REDIS_URL`: Redis, Dragonfly or Valkey), each with one subscriber per consuming context (`forConsumer`), `assertTopology` at start, its address validated and a compose service with a healthcheck; or `custom-event-bus.ts` with its `eventBusContract` spec. `start-outbox-relay.ts` with the outbox. `--broker redis` with `--cache redis` is one server and one compose service, `cache`; alone, the service is `streams` |
494
- | `src/platform/database/` | `persistence.ts` (`interface Persistence`: unit of work, outbox and processed-event stores of the ORM package, the storage handle), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, the connection (`connect-to-database.ts`, `create-client.ts` or `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL in process, or the server named by a URL). The storage class a repository adapter names in its dependency list: `database.ts` with drizzle and prisma (`abstract class Database extends` the context type of the ORM package), `KnexContext` of `@ddd-ts-kit/knex`, `TypeOrmContext` of `@ddd-ts-kit/typeorm` |
494
+ | `src/platform/database/` | `persistence.ts` (`interface Persistence`: unit of work, outbox and processed-event stores of the ORM package, the storage handle), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, the connection (`connect-to-database.ts`, `create-client.ts` or `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL in process, or the server named by a URL; with Vitest each spec opens a copy of the cluster `test/support/test-database-template.ts`, the global setup of the run, initialised once, and creates its tables there). The storage class a repository adapter names in its dependency list: `database.ts` with drizzle and prisma (`abstract class Database extends` the context type of the ORM package), `KnexContext` of `@ddd-ts-kit/knex`, `TypeOrmContext` of `@ddd-ts-kit/typeorm` |
495
495
  | migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema.prisma` and `prisma.config.ts`, or `data-source.ts` |
496
496
  | `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 |
497
497
  | `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 |
498
- | `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), `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) |
498
+ | `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), `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) |
499
499
  | `docs/context-map.md`, `docs/integration/README.md` | see `docs` |
500
500
  | `test/architecture/extractable.spec.ts` | written with the first context: boots each context alone on the kernel and the platform, its jobs included |
501
501
  | `eslint.config.mjs` | the `dddTsKit` preset of `@ddd-ts-kit/eslint-plugin`, typed linting on the project's tsconfig |
@@ -1023,10 +1023,15 @@ ddd-ts-kit todo [<context>]
1023
1023
  `status` prints the `Next:` line of `docs/architecture/plan.md`, the rows of
1024
1024
  `docs/architecture/slices.md` by status and by owner, and per context the `TODO(domain)`,
1025
1025
  `TODO(platform)` and `it.todo` left, then those outside the contexts. A missing file is not an
1026
- error. `--json` prints `{ next, slices, remaining }`: `next` and `slices` are `null` when their
1027
- file is missing, `slices` holds `{ file, rows, byStatus, byOwner }`, `remaining` one
1028
- `{ context, domain, platform, test }` per context, and one with an empty `context` for what is
1029
- left outside them.
1026
+ error. Each row not done says whether it can start: ready on the trunk when every dependency is
1027
+ done, ready on a branch when each dependency not done is a row briefed to a worker whose worktree
1028
+ has commits ahead of its base (the `rows` of its `.ddd-ts-kit/worker.json`, as `status --workers`
1029
+ reads them), and waiting otherwise, with the ids it waits for. `--json` prints
1030
+ `{ next, slices, remaining }`: `next` and `slices` are `null` when their file is missing,
1031
+ `slices` holds `{ file, rows, byStatus, byOwner }`, a row not done carrying
1032
+ `ready: 'trunk' | 'branch' | 'waiting'` and `waitingFor` (its dependencies not done),
1033
+ `remaining` one `{ context, domain, platform, test }` per context, and one with an empty
1034
+ `context` for what is left outside them.
1030
1035
 
1031
1036
  `status --workers` prints the workers of a parallel build instead: each worktree of the
1032
1037
  repository whose copy of the project holds `.ddd-ts-kit/worker.json`, with its branch, its
@@ -1042,6 +1047,33 @@ base and its commits ahead, and its files are the uncommitted ones. `--json` pri
1042
1047
  `todo` lists those markers as `file:line` with their kind and their text, in the project or in one
1043
1048
  context; `--json` prints `{ count, remaining: [{ kind, context, file, line, text }] }`.
1044
1049
 
1050
+ ## plan-waves
1051
+
1052
+ ```
1053
+ ddd-ts-kit plan-waves [<context>]
1054
+ ```
1055
+
1056
+ Orders the rows of `docs/architecture/slices.md` that are not `done`, for a build split between
1057
+ workers. Wave 1 holds the rows whose dependencies are all done; wave n the rows whose dependencies
1058
+ are done or in earlier waves, so that a row never waits for a row of its own wave. Each wave is cut
1059
+ into batches: one owner and one context per batch, two rows at most (what an agent holds), and two
1060
+ rows together only when their `Start with` names the same aggregate. The aggregate of a row is read
1061
+ from its generator commands: `--aggregate <Name>`, `aggregate <context> <Name>` and
1062
+ `repository <context> <Name>`. Two batches of one context in one wave are said likely to touch the
1063
+ same files when they name the same aggregate; when one of them names none, the overlap is said to
1064
+ be unknown rather than guessed. Each batch of a context's worker comes with the command that briefs
1065
+ it, `npx ddd-ts-kit worker-scope <context> --base origin/main --rows <ids>`, with its own
1066
+ `--worktree` and `--branch` when its wave holds another batch of that context; a batch of the
1067
+ conductor is built on the trunk; a person is briefed by hand. Then the merge order: by wave, and in
1068
+ a wave the batch that the most rows wait for, directly or not, first. With a context, only its rows
1069
+ are shown; the rows of other contexts it waits for count in the numbering of the waves.
1070
+
1071
+ A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
1072
+ rows carry make the rows impossible to order: they are reported alone, without waves, and the
1073
+ command exits 1. A file without a slices table, or a context no row names, is refused. `--json`
1074
+ prints
1075
+ `{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, waitingFor }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder }`.
1076
+
1045
1077
  ## worker-scope
1046
1078
 
1047
1079
  ```
@@ -0,0 +1,8 @@
1
+ import type { Config } from '../../config/index.js';
2
+ import type { Flaw } from '../model/flaw.js';
3
+ /**
4
+ * Why an entry of a context, a directory (ending with `/`) or a file, has no place in the
5
+ * canonical tree; undefined when it has one, or when it is the context itself.
6
+ */
7
+ export declare function strayEntry(entry: string, config: Config): Flaw | undefined;
8
+ //# sourceMappingURL=stray-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stray-entry.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAc7C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAQ1E"}
@@ -0,0 +1,75 @@
1
+ import path from 'node:path';
2
+ import { barrelFile, dependenciesFile } from '../../declared/index.js';
3
+ import { isCanonicalDirectory } from './is-canonical-directory.js';
4
+ import { OPEN_DIRECTORIES } from './open-directories.js';
5
+ import { roleOf } from './role-of.js';
6
+ /**
7
+ * Why an entry of a context, a directory (ending with `/`) or a file, has no place in the
8
+ * canonical tree; undefined when it has one, or when it is the context itself.
9
+ */
10
+ export function strayEntry(entry, config) {
11
+ const placed = place(entry, config);
12
+ if (placed === undefined) {
13
+ return undefined;
14
+ }
15
+ return entry.endsWith('/') ? strayDirectory(placed) : straySource(placed);
16
+ }
17
+ function place(entry, { contextsDir, contexts, stack }) {
18
+ const [context = '', ...rest] = entry
19
+ .slice(contextsDir.length + 1)
20
+ .replace(/\/$/, '')
21
+ .split('/');
22
+ if (rest.length === 0) {
23
+ return undefined;
24
+ }
25
+ return {
26
+ context,
27
+ declared: stack.style === 'declared',
28
+ inside: rest.join('/'),
29
+ extras: contexts[context]?.extraDirectories ?? [],
30
+ };
31
+ }
32
+ function strayDirectory({ context, inside, extras }) {
33
+ if (isCanonicalDirectory(inside) || coveredByExtra(extras, inside)) {
34
+ return undefined;
35
+ }
36
+ return {
37
+ message: `"${inside}" is not a directory of the canonical tree.`,
38
+ fix: `Move its files to the canonical directory of their role (see \`ddd-ts-kit explain tree/closed\`), or, if this is a design decision, add "${inside}" to contexts.${context}.extraDirectories in ddd-ts-kit.config.json.`,
39
+ };
40
+ }
41
+ function straySource(placed) {
42
+ const { inside, extras } = placed;
43
+ if (!inside.endsWith('.ts')) {
44
+ return undefined;
45
+ }
46
+ const directory = path.posix.dirname(inside);
47
+ if (directory === '.') {
48
+ return atContextRoot(placed);
49
+ }
50
+ const open = OPEN_DIRECTORIES.some((root) => directory === root || directory.startsWith(`${root}/`));
51
+ if (open || roleOf(directory) !== undefined || coveredByExtra(extras, directory)) {
52
+ return undefined;
53
+ }
54
+ return {
55
+ message: `"${inside}" is not in a role directory.`,
56
+ fix: `Move it one level down into the directory of its role (for example ${directory.split('/')[0] ?? directory}/<role>/), so that its suffix and its tests can be checked.`,
57
+ };
58
+ }
59
+ function atContextRoot({ context, declared, inside: file }) {
60
+ const generated = [barrelFile(context), dependenciesFile(context)];
61
+ if (file === `${context}.module.ts` || (declared && generated.includes(file))) {
62
+ return undefined;
63
+ }
64
+ const allowed = declared
65
+ ? `CONTEXT.md, the generated ${generated.join(' or ')} and ${context}.module.ts`
66
+ : `CONTEXT.md and ${context}.module.ts`;
67
+ return {
68
+ message: `"${file}" sits at the root of the context.`,
69
+ fix: `Move it into the directory of its role; only ${allowed} live at the root of a context.`,
70
+ };
71
+ }
72
+ function coveredByExtra(extras, directory) {
73
+ return extras.some((extra) => directory === extra || directory.startsWith(`${extra}/`) || extra.startsWith(`${directory}/`));
74
+ }
75
+ //# sourceMappingURL=stray-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stray-entry.js","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAWtC;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,EA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AAO,YAAY;QAChF,CAAC,CAAC,kBAAkB,OAAO,YAAY,CAAC;IAE1C,OAAO;QACL,OAAO,EAAE,IAAI,IAAI,oCAAoC;QACrD,GAAG,EAAE,gDAAgD,OAAO,iCAAiC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAyB,EAAE,SAAiB;IAClE,OAAO,MAAM,CAAC,IAAI,CAChB,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC,CACzG,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAsF7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAqF7C,CAAC"}
1
+ {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAuF7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAsF7C,CAAC"}
@@ -81,6 +81,7 @@ import { testNoMocks } from '../rules/test-no-mocks.js';
81
81
  import { testSpecRequired } from '../rules/test-spec-required.js';
82
82
  import { tracingPlatformOnly } from '../rules/tracing-platform-only.js';
83
83
  import { treeClosed } from '../rules/tree-closed.js';
84
+ import { treeDocumentedPaths } from '../rules/tree-documented-paths.js';
84
85
  import { treeContextDoc } from '../rules/tree-context-doc.js';
85
86
  /** The rules of docs/ARCHITECTURE.md section 3 this checker holds, `config/valid` aside: it needs their ids. */
86
87
  export const ARCHITECTURE_RULES = [
@@ -94,6 +95,7 @@ export const ARCHITECTURE_RULES = [
94
95
  contextNoCycle,
95
96
  treeClosed,
96
97
  treeContextDoc,
98
+ treeDocumentedPaths,
97
99
  namingSuffix,
98
100
  namingOneConceptPerFile,
99
101
  namingSearchNotList,
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE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B,mBAAmB;IACnB,kBAAkB;IAClB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,gCAAgC;IAChC,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,sBAAsB;IACtB,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,yBAAyB;IACzB,sBAAsB;IACtB,kCAAkC;IAClC,mCAAmC;IACnC,6BAA6B;IAC7B,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
1
+ {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAA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B;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,sBAAsB;IACtB,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,yBAAyB;IACzB,sBAAsB;IACtB,kCAAkC;IAClC,mCAAmC;IACnC,6BAA6B;IAC7B,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default-severities.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAUjE,CAAC"}
1
+ {"version":3,"file":"default-severities.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAWjE,CAAC"}
@@ -9,5 +9,6 @@ export const DEFAULT_SEVERITIES = {
9
9
  'application/command-query-separation': 'warn',
10
10
  'standard/no-parallel-interface': 'warn',
11
11
  'config/rule-off-everywhere': 'warn',
12
+ 'tree/documented-paths': 'warn',
12
13
  };
13
14
  //# sourceMappingURL=default-severities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-severities.js","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IACpE,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,uBAAuB,EAAE,MAAM;IAC/B,qBAAqB,EAAE,MAAM;IAC7B,wBAAwB,EAAE,MAAM;IAChC,wBAAwB,EAAE,MAAM;IAChC,sCAAsC,EAAE,MAAM;IAC9C,gCAAgC,EAAE,MAAM;IACxC,4BAA4B,EAAE,MAAM;CACrC,CAAC"}
1
+ {"version":3,"file":"default-severities.js","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IACpE,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,uBAAuB,EAAE,MAAM;IAC/B,qBAAqB,EAAE,MAAM;IAC7B,wBAAwB,EAAE,MAAM;IAChC,wBAAwB,EAAE,MAAM;IAChC,sCAAsC,EAAE,MAAM;IAC9C,gCAAgC,EAAE,MAAM;IACxC,4BAA4B,EAAE,MAAM;IACpC,uBAAuB,EAAE,MAAM;CAChC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const PERSISTENCE_DOCS = {
2
2
  'persistence/migration-history': {
3
- why: 'Migrations are applied in the order of their names, and several people add them at the same time. Numbered by an index, two branches each write `0002_...` and the order between them is a guess; named by a random word, nobody knows what a migration does. A timestamp and a description, `20261012093000_add-invoices`, keep every branch apart. drizzle-kit adds a journal and a chain of snapshots on top: its migrator applies only the entries newer than the last one a database applied, so an entry merged out of order is skipped without a word, and a snapshot generated from the same parent as another makes the next migration miss a change. After a merge, the migration of the branch is generated again on top of the main branch. A worker of a parallel build names the migration it needs `working-<what-it-does>`: its branch runs green in its worktree, and the conductor generates the real one on the trunk, so a working migration found outside a worktree is one that was merged as is.',
3
+ why: 'Migrations are applied in the order of their names, and several people add them at the same time. Numbered by an index, two branches each write `0002_...` and the order between them is a guess; named by a random word, nobody knows what a migration does. A timestamp and a description, `20261012093000_add-invoices`, keep every branch apart. drizzle-kit adds a journal and a chain of snapshots on top: its migrator applies only the entries newer than the last one a database applied, so an entry merged out of order is skipped without a word, and a snapshot generated from the same parent as another makes the next migration miss a change. After a merge, the migration of the branch is generated again on top of the main branch (under drizzle-kit, `npx ddd-ts-kit drizzle-generate --replay` deletes and generates them again). A worker of a parallel build names the migration it needs `working-<what-it-does>`: its branch runs green in its worktree, and the conductor generates the real one on the trunk, so a working migration found outside a worktree is one that was merged as is.',
4
4
  bad: `migrations/
5
5
  0002_brave_falcon.sql # an index, a random name
6
6
  0002_quiet_owl.sql # the same index, from another branch
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;CACF,CAAC"}
1
+ {"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6FvD,CAAC"}
1
+ {"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkGvD,CAAC"}
@@ -10,6 +10,11 @@ contexts/billing/billing.declarations.ts // declared style only`,
10
10
  bad: `contexts/billing/ without CONTEXT.md, or with "## Classification" saying generic while the config says core`,
11
11
  good: `## Purpose, ## Classification, ## Ubiquitous language, ## Aggregates, ## Published events, ## Relationships`,
12
12
  },
13
+ 'tree/documented-paths': {
14
+ why: 'A plan, a design note or a review of docs/architecture is read by the next person or agent before the code. When a rule moved a file (a service of application/services became a port), a document that still names the old place sends its reader to a design the code no longer has, and a worker may build it again. Each path of a context written as code in a Markdown file of docs/architecture is judged as tree/closed judges a file: its directories and the file itself must have a place in the canonical tree. A path that does not exist yet is not reported: a plan names files to create. It is a warning.',
15
+ bad: `docs/architecture/design-review.md: "add \`src/contexts/billing/application/services/return-basis.service.ts\`"`,
16
+ good: `docs/architecture/design-review.md: "add the port \`src/contexts/billing/application/ports/return-basis-reader.port.ts\`"`,
17
+ },
13
18
  'naming/suffix': {
14
19
  why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts.',
15
20
  bad: `domain/aggregates/Invoice.ts`,
@@ -1 +1 @@
1
- {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,iwBAAiwB;QACtwB,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;kEACwD;KAC/D;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,y3BAAy3B;QAC93B,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;uFAM6E;KACpF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;CACF,CAAC"}
1
+ {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,iwBAAiwB;QACtwB,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;kEACwD;KAC/D;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,4lBAA4lB;QACjmB,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,y3BAAy3B;QAC93B,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;uFAM6E;KACpF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tree-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/tree-fixtures.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAS5C,eAAO,MAAM,aAAa,EAAE,SAAS,OAAO,EA8N3C,CAAC"}
1
+ {"version":3,"file":"tree-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/tree-fixtures.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAS5C,eAAO,MAAM,aAAa,EAAE,SAAS,OAAO,EAiP3C,CAAC"}
@@ -212,5 +212,22 @@ export const TREE_FIXTURES = [
212
212
  [POLICY]: `${DECLARED.policy}\n@Policy(billingPermissions['invoice.issue'], { name: 'billing.only-accountant-issues' })\nclass OnlyAccountantIssuesPolicy {}\n`,
213
213
  }),
214
214
  },
215
+ {
216
+ ruleId: 'tree/documented-paths',
217
+ name: 'a plan citing canonical places, a file still to create, a line number and paths outside the contexts',
218
+ expect: 'pass',
219
+ files: project({
220
+ 'docs/architecture/slices.md': '# Slices\n\nAdd `src/contexts/billing/application/ports/return-basis-reader.port.ts` and fill `src/contexts/billing/domain/aggregates/invoice.aggregate.ts:42`, then `src/platform/auth/roles.ts` and `npm test`.\n',
221
+ 'docs/architecture/reviews/billing.md': 'See `src/contexts/billing/infrastructure/persistence/`.\n',
222
+ }),
223
+ },
224
+ {
225
+ ruleId: 'tree/documented-paths',
226
+ name: 'a design note naming a directory the canonical tree refuses',
227
+ expect: { file: 'docs/architecture/reviews/billing.md' },
228
+ files: project({
229
+ 'docs/architecture/reviews/billing.md': '# Review\n\nMove the rule to `src/contexts/billing/application/services/return-basis.service.ts`.\n',
230
+ }),
231
+ },
215
232
  ];
216
233
  //# sourceMappingURL=tree-fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/tree-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE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E,CAAC;KAC3E;IACD;QACE,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,mEAAmE;QACzE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;KAC7C;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,uDAAuD;QAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,IAAI,EAAE,CAAC,2BAA2B,CAAC;QACnC,KAAK,EAAE,eAAe,CAAC;YACrB,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,0IAA0I;SACvK,CAAC;KACH;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,yEAAyE;QAC/E,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,OAAO,CAAC;YACb,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,mIAAmI;SAChK,CAAC;KACH;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,IAAI,EAAE,sGAAsG;QAC5G,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,OAAO,CAAC;YACb,6BAA6B,EAC3B,qNAAqN;YACvN,sCAAsC,EAAE,2DAA2D;SACpG,CAAC;KACH;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,IAAI,EAAE,6DAA6D;QACnE,MAAM,EAAE,EAAE,IAAI,EAAE,sCAAsC,EAAE;QACxD,KAAK,EAAE,OAAO,CAAC;YACb,sCAAsC,EACpC,qGAAqG;SACxG,CAAC;KACH;CACF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { lineOf } from '../support/line-of.js';
2
- const REGENERATE = 'Keep the migrations of the main branch, delete the one of your branch (its .sql file, its snapshot under meta/ and its entry of meta/_journal.json), then run `npm run db:generate <name>` again on top of them.';
2
+ const REGENERATE = 'Keep the migrations of the main branch, delete the one of your branch (its .sql file, its snapshot under meta/ and its entry of meta/_journal.json), then run `npm run db:generate <name>` again on top of them, or let `npx ddd-ts-kit drizzle-generate --replay` do both.';
3
3
  /**
4
4
  * What makes drizzle-kit and its migrator misbehave after a merge: an entry without its file or
5
5
  * the reverse, entries out of the order they were generated in (the migrator skips a migration
@@ -1 +1 @@
1
- {"version":3,"file":"drizzle-history-findings.js","sourceRoot":"","sources":["../../../src/check/migrations/drizzle-history-findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,MAAM,UAAU,GACd,kNAAkN,CAAC;AAErN;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAA6B;IAClE,OAAO,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAqB;IAC3E,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE/C,MAAM,YAAY,GAAG,OAAO;SACzB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC7C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACf,IAAI,EAAE,MAAM,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,GAAG,GAAG,CAAC;QAC3C,OAAO,EAAE,oCAAoC,KAAK,CAAC,GAAG,SAAS,MAAM,IAAI,KAAK,CAAC,GAAG,sBAAsB;QACxG,GAAG,EAAE,WAAW,MAAM,IAAI,KAAK,CAAC,GAAG,yFAAyF;KAC7H,CAAC,CAAC,CAAC;IAEN,MAAM,cAAc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
+ {"version":3,"file":"tree-closed.d.ts","sourceRoot":"","sources":["../../../src/check/rules/tree-closed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,eAAO,MAAM,UAAU,EAAE,IA4BxB,CAAC"}