ddd-ts-kit 0.95.0 → 0.97.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 (243) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.fr.md +64 -11
  3. package/README.md +58 -10
  4. package/dist/check/authz/operator-tuples.d.ts +16 -0
  5. package/dist/check/authz/operator-tuples.d.ts.map +1 -0
  6. package/dist/check/authz/operator-tuples.js +29 -0
  7. package/dist/check/authz/operator-tuples.js.map +1 -0
  8. package/dist/check/authz/own-authorizer.d.ts +9 -0
  9. package/dist/check/authz/own-authorizer.d.ts.map +1 -0
  10. package/dist/check/authz/own-authorizer.js +15 -0
  11. package/dist/check/authz/own-authorizer.js.map +1 -0
  12. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  13. package/dist/check/catalogue/architecture-rules.js +4 -0
  14. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  15. package/dist/check/explain/authz-docs.d.ts.map +1 -1
  16. package/dist/check/explain/authz-docs.js +12 -1
  17. package/dist/check/explain/authz-docs.js.map +1 -1
  18. package/dist/check/explain/scheduling-docs.d.ts.map +1 -1
  19. package/dist/check/explain/scheduling-docs.js +22 -0
  20. package/dist/check/explain/scheduling-docs.js.map +1 -1
  21. package/dist/check/fixtures/authz-granted-fixtures.d.ts.map +1 -1
  22. package/dist/check/fixtures/authz-granted-fixtures.js +69 -0
  23. package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
  24. package/dist/check/fixtures/authz-resource-modelled-fixtures.d.ts.map +1 -1
  25. package/dist/check/fixtures/authz-resource-modelled-fixtures.js +5 -0
  26. package/dist/check/fixtures/authz-resource-modelled-fixtures.js.map +1 -1
  27. package/dist/check/fixtures/authz-system-actor-granted-fixtures.d.ts +3 -0
  28. package/dist/check/fixtures/authz-system-actor-granted-fixtures.d.ts.map +1 -0
  29. package/dist/check/fixtures/authz-system-actor-granted-fixtures.js +89 -0
  30. package/dist/check/fixtures/authz-system-actor-granted-fixtures.js.map +1 -0
  31. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  32. package/dist/check/fixtures/fixtures.js +2 -0
  33. package/dist/check/fixtures/fixtures.js.map +1 -1
  34. package/dist/check/fixtures/scheduling-fixtures.d.ts.map +1 -1
  35. package/dist/check/fixtures/scheduling-fixtures.js +47 -1
  36. package/dist/check/fixtures/scheduling-fixtures.js.map +1 -1
  37. package/dist/check/rules/authz-granted.d.ts +19 -6
  38. package/dist/check/rules/authz-granted.d.ts.map +1 -1
  39. package/dist/check/rules/authz-granted.js +59 -7
  40. package/dist/check/rules/authz-granted.js.map +1 -1
  41. package/dist/check/rules/authz-system-actor-granted.d.ts +15 -0
  42. package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -0
  43. package/dist/check/rules/authz-system-actor-granted.js +91 -0
  44. package/dist/check/rules/authz-system-actor-granted.js.map +1 -0
  45. package/dist/check/rules/scheduling-job-registered.d.ts +12 -0
  46. package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -0
  47. package/dist/check/rules/scheduling-job-registered.js +40 -0
  48. package/dist/check/rules/scheduling-job-registered.js.map +1 -0
  49. package/dist/check/scheduling/job-classes.d.ts +13 -0
  50. package/dist/check/scheduling/job-classes.d.ts.map +1 -0
  51. package/dist/check/scheduling/job-classes.js +32 -0
  52. package/dist/check/scheduling/job-classes.js.map +1 -0
  53. package/dist/cli-error.d.ts +3 -3
  54. package/dist/cli-error.d.ts.map +1 -1
  55. package/dist/cli-error.js +4 -3
  56. package/dist/cli-error.js.map +1 -1
  57. package/dist/commands/doctor.d.ts.map +1 -1
  58. package/dist/commands/doctor.js +2 -0
  59. package/dist/commands/doctor.js.map +1 -1
  60. package/dist/commands/generate.d.ts +4 -0
  61. package/dist/commands/generate.d.ts.map +1 -1
  62. package/dist/commands/generate.js +6 -4
  63. package/dist/commands/generate.js.map +1 -1
  64. package/dist/commands/plan-waves.d.ts +2 -1
  65. package/dist/commands/plan-waves.d.ts.map +1 -1
  66. package/dist/commands/plan-waves.js +28 -2
  67. package/dist/commands/plan-waves.js.map +1 -1
  68. package/dist/commands/prisma-generate.d.ts.map +1 -1
  69. package/dist/commands/prisma-generate.js +2 -1
  70. package/dist/commands/prisma-generate.js.map +1 -1
  71. package/dist/commands/typeorm-generate.d.ts.map +1 -1
  72. package/dist/commands/typeorm-generate.js +2 -1
  73. package/dist/commands/typeorm-generate.js.map +1 -1
  74. package/dist/doctor/diagnose.d.ts +2 -1
  75. package/dist/doctor/diagnose.d.ts.map +1 -1
  76. package/dist/doctor/diagnose.js +4 -1
  77. package/dist/doctor/diagnose.js.map +1 -1
  78. package/dist/doctor/doctor-finding.d.ts +1 -1
  79. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  80. package/dist/doctor/format-diagnosis.js +25 -2
  81. package/dist/doctor/format-diagnosis.js.map +1 -1
  82. package/dist/doctor/install-script-findings.d.ts +11 -0
  83. package/dist/doctor/install-script-findings.d.ts.map +1 -0
  84. package/dist/doctor/install-script-findings.js +86 -0
  85. package/dist/doctor/install-script-findings.js.map +1 -0
  86. package/dist/doctor/installed-from.d.ts +3 -0
  87. package/dist/doctor/installed-from.d.ts.map +1 -0
  88. package/dist/doctor/installed-from.js +15 -0
  89. package/dist/doctor/installed-from.js.map +1 -0
  90. package/dist/doctor/override-findings.d.ts.map +1 -1
  91. package/dist/doctor/override-findings.js +1 -11
  92. package/dist/doctor/override-findings.js.map +1 -1
  93. package/dist/generate/kind.d.ts +3 -0
  94. package/dist/generate/kind.d.ts.map +1 -1
  95. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  96. package/dist/generate/kinds/declare-storage.js +5 -1
  97. package/dist/generate/kinds/declare-storage.js.map +1 -1
  98. package/dist/generate/kinds/extend-event-sourced-aggregate.js +2 -2
  99. package/dist/generate/kinds/extend-event-sourced-aggregate.js.map +1 -1
  100. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  101. package/dist/generate/kinds/generate-context.js +14 -0
  102. package/dist/generate/kinds/generate-context.js.map +1 -1
  103. package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
  104. package/dist/generate/kinds/integration-handler-kind.js +1 -13
  105. package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
  106. package/dist/generate/kinds/job/grant-system-actor.js +4 -2
  107. package/dist/generate/kinds/job/grant-system-actor.js.map +1 -1
  108. package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
  109. package/dist/generate/kinds/projection-kind.js +15 -10
  110. package/dist/generate/kinds/projection-kind.js.map +1 -1
  111. package/dist/generate/kinds/subscription-vars.d.ts +8 -0
  112. package/dist/generate/kinds/subscription-vars.d.ts.map +1 -0
  113. package/dist/generate/kinds/subscription-vars.js +14 -0
  114. package/dist/generate/kinds/subscription-vars.js.map +1 -0
  115. package/dist/generate/language-probe.d.ts +16 -0
  116. package/dist/generate/language-probe.d.ts.map +1 -0
  117. package/dist/generate/language-probe.js +2 -0
  118. package/dist/generate/language-probe.js.map +1 -0
  119. package/dist/generate/refuse-shared-writes.d.ts +1 -1
  120. package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
  121. package/dist/generate/refuse-shared-writes.js +25 -2
  122. package/dist/generate/refuse-shared-writes.js.map +1 -1
  123. package/dist/generate/spoken-in-language.d.ts +2 -1
  124. package/dist/generate/spoken-in-language.d.ts.map +1 -1
  125. package/dist/generate/spoken-in-language.js +6 -1
  126. package/dist/generate/spoken-in-language.js.map +1 -1
  127. package/dist/help/notes.d.ts +1 -1
  128. package/dist/help/notes.d.ts.map +1 -1
  129. package/dist/help/notes.js +11 -3
  130. package/dist/help/notes.js.map +1 -1
  131. package/dist/init/first-install-note.d.ts.map +1 -1
  132. package/dist/init/first-install-note.js +22 -0
  133. package/dist/init/first-install-note.js.map +1 -1
  134. package/dist/init/managed-settings-note.d.ts.map +1 -1
  135. package/dist/init/managed-settings-note.js +1 -0
  136. package/dist/init/managed-settings-note.js.map +1 -1
  137. package/dist/init/manifest/allow-builds-block.d.ts +3 -0
  138. package/dist/init/manifest/allow-builds-block.d.ts.map +1 -0
  139. package/dist/init/manifest/allow-builds-block.js +5 -0
  140. package/dist/init/manifest/allow-builds-block.js.map +1 -0
  141. package/dist/init/manifest/allow-builds-entries.d.ts +8 -0
  142. package/dist/init/manifest/allow-builds-entries.d.ts.map +1 -0
  143. package/dist/init/manifest/allow-builds-entries.js +8 -0
  144. package/dist/init/manifest/allow-builds-entries.js.map +1 -0
  145. package/dist/init/manifest/database-scripts.d.ts.map +1 -1
  146. package/dist/init/manifest/database-scripts.js +3 -1
  147. package/dist/init/manifest/database-scripts.js.map +1 -1
  148. package/dist/init/manifest/install-scripts-of.d.ts +18 -0
  149. package/dist/init/manifest/install-scripts-of.d.ts.map +1 -0
  150. package/dist/init/manifest/install-scripts-of.js +25 -0
  151. package/dist/init/manifest/install-scripts-of.js.map +1 -0
  152. package/dist/init/manifest/names-package.d.ts +3 -0
  153. package/dist/init/manifest/names-package.d.ts.map +1 -0
  154. package/dist/init/manifest/names-package.js +5 -0
  155. package/dist/init/manifest/names-package.js.map +1 -0
  156. package/dist/init/manifest/prisma-client-script.d.ts +3 -0
  157. package/dist/init/manifest/prisma-client-script.d.ts.map +1 -0
  158. package/dist/init/manifest/prisma-client-script.js +5 -0
  159. package/dist/init/manifest/prisma-client-script.js.map +1 -0
  160. package/dist/init/manifest/versions.js +24 -24
  161. package/dist/init/manifest/write-install-scripts.d.ts +10 -0
  162. package/dist/init/manifest/write-install-scripts.d.ts.map +1 -0
  163. package/dist/init/manifest/write-install-scripts.js +78 -0
  164. package/dist/init/manifest/write-install-scripts.js.map +1 -0
  165. package/dist/init/manifest/write-manifest.d.ts.map +1 -1
  166. package/dist/init/manifest/write-manifest.js +9 -1
  167. package/dist/init/manifest/write-manifest.js.map +1 -1
  168. package/dist/init/run-init.d.ts.map +1 -1
  169. package/dist/init/run-init.js +20 -3
  170. package/dist/init/run-init.js.map +1 -1
  171. package/dist/merge/ensure-mergeable.d.ts.map +1 -1
  172. package/dist/merge/ensure-mergeable.js +15 -0
  173. package/dist/merge/ensure-mergeable.js.map +1 -1
  174. package/dist/merge/ensure-writable.d.ts +9 -0
  175. package/dist/merge/ensure-writable.d.ts.map +1 -0
  176. package/dist/merge/ensure-writable.js +51 -0
  177. package/dist/merge/ensure-writable.js.map +1 -0
  178. package/dist/merge/is-sandbox-mask.d.ts +4 -0
  179. package/dist/merge/is-sandbox-mask.d.ts.map +1 -0
  180. package/dist/merge/is-sandbox-mask.js +5 -0
  181. package/dist/merge/is-sandbox-mask.js.map +1 -0
  182. package/dist/merge/merge-trunk.d.ts.map +1 -1
  183. package/dist/merge/merge-trunk.js +4 -0
  184. package/dist/merge/merge-trunk.js.map +1 -1
  185. package/dist/migration/ensure-database-reachable.d.ts +13 -0
  186. package/dist/migration/ensure-database-reachable.d.ts.map +1 -0
  187. package/dist/migration/ensure-database-reachable.js +51 -0
  188. package/dist/migration/ensure-database-reachable.js.map +1 -0
  189. package/dist/migration/index.d.ts +1 -0
  190. package/dist/migration/index.d.ts.map +1 -1
  191. package/dist/migration/index.js +1 -0
  192. package/dist/migration/index.js.map +1 -1
  193. package/dist/plan/format-plan.d.ts +2 -1
  194. package/dist/plan/format-plan.d.ts.map +1 -1
  195. package/dist/plan/format-plan.js +20 -2
  196. package/dist/plan/format-plan.js.map +1 -1
  197. package/dist/plan/plan-waves.d.ts.map +1 -1
  198. package/dist/plan/plan-waves.js +2 -1
  199. package/dist/plan/plan-waves.js.map +1 -1
  200. package/dist/plan/planned-commands.d.ts +10 -0
  201. package/dist/plan/planned-commands.d.ts.map +1 -0
  202. package/dist/plan/planned-commands.js +13 -0
  203. package/dist/plan/planned-commands.js.map +1 -0
  204. package/dist/plan/planned-words.d.ts +27 -0
  205. package/dist/plan/planned-words.d.ts.map +1 -0
  206. package/dist/plan/planned-words.js +170 -0
  207. package/dist/plan/planned-words.js.map +1 -0
  208. package/dist/plan/wave-plan.d.ts +11 -1
  209. package/dist/plan/wave-plan.d.ts.map +1 -1
  210. package/dist/prisma-schema/index.d.ts +4 -0
  211. package/dist/prisma-schema/index.d.ts.map +1 -1
  212. package/dist/prisma-schema/index.js +4 -0
  213. package/dist/prisma-schema/index.js.map +1 -1
  214. package/dist/prisma-schema/keeps-single-prisma-schema.d.ts +7 -0
  215. package/dist/prisma-schema/keeps-single-prisma-schema.d.ts.map +1 -0
  216. package/dist/prisma-schema/keeps-single-prisma-schema.js +11 -0
  217. package/dist/prisma-schema/keeps-single-prisma-schema.js.map +1 -0
  218. package/dist/prisma-schema/single-prisma-schema-found.d.ts +3 -0
  219. package/dist/prisma-schema/single-prisma-schema-found.d.ts.map +1 -0
  220. package/dist/prisma-schema/single-prisma-schema-found.js +7 -0
  221. package/dist/prisma-schema/single-prisma-schema-found.js.map +1 -0
  222. package/dist/prisma-schema/single-prisma-schema-steps.d.ts +6 -0
  223. package/dist/prisma-schema/single-prisma-schema-steps.d.ts.map +1 -0
  224. package/dist/prisma-schema/single-prisma-schema-steps.js +25 -0
  225. package/dist/prisma-schema/single-prisma-schema-steps.js.map +1 -0
  226. package/dist/prisma-schema/single-prisma-schema.d.ts +3 -0
  227. package/dist/prisma-schema/single-prisma-schema.d.ts.map +1 -0
  228. package/dist/prisma-schema/single-prisma-schema.js +3 -0
  229. package/dist/prisma-schema/single-prisma-schema.js.map +1 -0
  230. package/dist/version.d.ts +1 -1
  231. package/dist/version.js +1 -1
  232. package/dist/worker/add-worktree.d.ts +5 -1
  233. package/dist/worker/add-worktree.d.ts.map +1 -1
  234. package/dist/worker/add-worktree.js +6 -2
  235. package/dist/worker/add-worktree.js.map +1 -1
  236. package/package.json +4 -4
  237. package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -0
  238. package/templates/aggregate/event-sourced.events.mapper.ts.tpl +2 -2
  239. package/templates/init/pnpm-workspace.yaml +2 -5
  240. package/templates/pipeline/package-scripts.json +1 -1
  241. package/templates/projection/projection.manual.ts.tpl +8 -0
  242. package/templates/projection/wiring.manual.tpl +22 -0
  243. package/templates/projection/wiring.tsyringe.tpl +4 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,62 @@ 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.97.0
8
+
9
+ **Under the sandbox of the regulated profile, `prisma-generate` and `typeorm-generate` say that the database is out of reach instead of failing with a raw connection error.** A sandboxed command cannot open a TCP connection to the local PostgreSQL (probed on Claude Code 2.1.311 on Linux: `allowedDomains` with the host and the port, `allowLocalBinding` and `allowAllUnixSockets` all end in `ECONNREFUSED`; the sandbox's network leaves through an HTTP proxy only, and `allowLocalBinding` and `allowUnixSockets` are macOS settings), so `init` writes no setting for it. When `DATABASE_URL` is set and its server does not answer, the two commands stop before the ORM tool, exit 3 and say that migrations and database tests run outside the sandbox, by the owner or the CI. `drizzle-kit generate` needs no connection and is unchanged. The sandbox guide (and its French translation), the notes of `init` and the `persistence`, `parallel-work` and `story` skills say it.
10
+
11
+ **`check` reports a slice the started application cannot run: a job nobody registers, a system actor nobody grants, a permission nobody holds under relationships.** Three rows of a trial were marked done with every spec and `verify` green, yet the started application could not do them. Two rules are new and one reads more:
12
+
13
+ - **`scheduling/job-registered`** (an error): in the explicit style, the class of a job (`application/scheduling/*.job.ts`) or background job (`application/background/*.background-job.ts`) that no other file outside the tests registers (`.handledBy(..)`, `.register(..)` or `new`) is reported. The declared style registers by decorator, which `declarations/role-declared` already requires.
14
+ - **`authz/system-actor-granted`** (an error): under relationships, a `systemActor(<name>)` of a context (a string literal, or `<Class>.name`) in a file that sends a command or a query not declared public needs the subject `system:system:<name>` in a file of `platform/auth/relationships/`. Without it the command is refused with FORBIDDEN when the application runs, which a spec on a fake authorizer never shows. Silent with an authorizer of the project's own.
15
+ - **`authz/granted`** now reads relationships too (a warning, as under roles): a permission the schema leaves on the context is held by its operators, and it is reported when no signed-in grant holds it and no source outside the tests writes an `operator` relationship on that context (for a person or a system actor). Silent with an authorizer of the project's own, which may grant what the schema does not, and in a project that makes no person operator of any context in its sources: it provisions its operators out of the tree, and a project as generated stays at zero finding. It stays a warning because a permission granted to nobody can be a state between two slices. A permission derived on an element is not judged, and a schema or a tuple the checker cannot read keeps the rule silent.
16
+
17
+ **`generate job` wrote the grant of the system actor of a job under a subject the authorizer never matches.** On relationships it wrote `subject: 'system:<job>'`, while the authorizer reads an actor as `<type>:<id>`, here `system:system:<job>`: the job was refused at run time. It now writes `system:system:<job>`.
18
+
19
+ The use-case and plan-slices skills say a row is done when the started application does it, and name the three rules that prove it.
20
+
21
+ To move: run `ddd-ts-kit check`. Register each reported job in the module file of its context; in `relate-system-actors.ts` of a project on relationships, write `system:system:<name>` for each reported system actor, and correct the lines `generate job` wrote as `system:<job>`; make somebody operator of each context whose permissions `authz/granted` reports (a provisioning step), or leave the warning while the grant is the work of a later slice.
22
+
23
+ **`generate projection` works in the explicit style.** It no longer refuses `stack.style: explicit`. On tsyringe the projector keeps `@Projection` and `@On` and the module file of the context includes it with `builder.include(<Name>Projection)`, so its consumer, its processed mark and its metrics are the ones of the declared style. On a platform wired by hand (Nest, or `di: manual`) the projector is a plain class and the module file subscribes it under its consumer name `<context>.<name>`, with the processed mark of any hand-wired consumer (no projection metrics, no listing by `describe`).
24
+
25
+ **`generate job` and `generate integration-event` with `--local-only` name the command the conductor runs on the trunk.** The refusal (these two kinds write shared files: the job settings and the grant of the system actor, the audited events and the context map) now prints the same command without `--local-only` (and without `--cwd`), then says to commit it there, run `merge-trunk` in the worker's branch and fill the TODOs, as the refusal of a missing repository already does. The `parallel-work` and `plan-slices` skills and the parallel-work guide (and its French translation) plan a job or an integration event of a row as a conductor step before the worker's row, the contracts first. The shared part is not split: the registries stay the conductor's.
26
+
27
+ **`worktree`, `worker-scope` and `story-scope` cut the branch of the new worktree with `--no-track`.** A worker's branch needs no upstream, and recording one writes `.git/config`, which the Claude Code sandbox keeps read-only for the length of a session (`git worktree add -b` failed with "unable to lock .git/config" and left a branch without a worktree). The three commands now succeed there. Their default worktree already resolves under `.worktrees/` of the main checkout wherever they run, from inside another worktree too; specs on temporary repositories (a read-only `config.lock`, a run from a worktree) pin both.
28
+
29
+ **The codec `generate aggregate --event-sourced` and `generate domain-event` write now declares an event without data in the shape `docs --stored-events` accepts.** The generator wrote `interface LedgerCreditedData {}`, which the command refuses ("declares no member"). It now writes `type LedgerCreditedData = Record<string, never>;`, which is recorded as it stands; an event that carries fields gets an `interface` with them, as before.
30
+
31
+ To move: nothing for a codec already filled. A generated codec you left with an empty `interface XData {}` for an event that carries nothing: write `type XData = Record<string, never>;`.
32
+
33
+ **The guard refuses a git command that skips the hooks of the project.** A headless session committed with `git commit --no-verify` and nothing stopped it, though the pre-commit and commit-msg hooks are the local gate of the pipeline. The guard now refuses `--no-verify` on `git commit`, `push`, `merge`, `pull` and `rebase` (also its unambiguous abbreviations), `-n` on `git commit` (alone or in a cluster such as `-an`), `git -c core.hooksPath=...`, `git config core.hooksPath`, and `LEFTHOOK=0` or `HUSKY=0` set for a command that runs git. The reason says the hooks are the local gate; in `advise` mode it asks, with `guard: "off"` it is silent. The commit-discipline skill says so.
34
+
35
+ To move: nothing. If a hook is broken, fix the hook or have the project owner skip it in a terminal.
36
+
37
+ ## 0.96.0
38
+
39
+ **`plan-waves` replays the generator commands of the plan and refuses a name the glossary does not define, before a worker runs the row.** A plan whose rows use words the glossary of their context does not define, with no `--term`, was handed to workers as it was, and each of them was refused at the first command: on a plan of the incident-response example written by a small model, 71 of the 85 commands of one context. Once the rows can be ordered, `plan-waves` now replays their generator commands in a copy of the project, in the order of the waves, and reports, without waves and with exit 1, each name whose words the glossary of its context does not define (`undefined-word`) or that carries a technical word no term holds (`technical-word`), counting the `--term` of the row and of the rows it waits for, with the `--term` to add. The generator itself says which names a command introduces, so the check judges exactly what a worker would meet. The commands the generator refuses for another reason (a missing `--module`, an aggregate no row generates) are listed apart, without failing (`notReplayed` in `--json`). The `plan-slices` skill commits a plan only once `plan-waves` exits 0.
40
+
41
+ To move: run `npx ddd-ts-kit plan-waves` on a plan in progress, and add to its rows the `--term` it names.
42
+
43
+ **`merge-trunk` stops before it writes when the trunk changes a path the session cannot write, and no longer counts the sandbox's device nodes as uncommitted work.** In a Claude Code sandbox, a trunk that changed `.claude/settings.json` (mounted read-only) or a folder under an Edit deny rule left the worktree half merged, and the character devices the sandbox binds over denied paths made the cleanliness check refuse. Before the merge writes anything, `merge-trunk` now probes each path the trunk changes (the file, and its folder for the merge to create or remove it); when one is not writable it stops with nothing changed, names the paths and exits 3, the code `init` uses: the owner runs the same command from a terminal outside the sandbox. Untracked character devices are ignored by the cleanliness check; any other untracked or modified file still refuses. The `parallel-work` and `story` skills say that a merge of a trunk that changes the settings of the project is the owner's.
44
+
45
+ **`generate context` and `init --context` refuse a bounded context named `schema`, on every ORM.** On Prisma the models of a context live in `prisma/schema/<context>.prisma`, beside the main file `prisma/schema/schema.prisma` (the generator of the client, the datasource and the tables of the platform): a context named `schema` would have written its models into that shared file, which the guard already read as the file of no context. The name is refused before anything is written, with the reason and a name to use instead. It is refused on every ORM, not on Prisma alone: `init --force` moves a project to another ORM, and the word names the storage, not a capability of the business. `schema-registry` and other names that only hold the word are accepted.
46
+
47
+ **`init` run again on a Prisma project laid out before 0.95 keeps its one `prisma/schema.prisma`, says how to move it, and `generate repository` waits for the move.** On a project whose schema was the one `prisma/schema.prisma` of 0.94, `init` 0.95.0 wrote a fresh `prisma/schema/schema.prisma` beside it (a second generator and datasource), while `prisma.config.ts` still named the old file, and the `git mv` of the To move of 0.95.0 then failed on its target. While `prisma/schema.prisma` is there and `prisma/schema/schema.prisma` is not, `init` now writes neither `prisma/schema/schema.prisma` nor `prisma.config.ts`, keeps `db:client` on the one file (under `--force` too), and its notes give the steps of the move with each context of the project and the file its models go to. The move stays the team's: it parts the models by their `@@schema` and edits a config and a script the team may have changed. `generate repository` refuses to write the model of a context until the move, with the same steps: Prisma would not read `prisma/schema/<context>.prisma` while `prisma.config.ts` names the one file.
48
+
49
+ To move: the two To move lines of 0.95.0 now run in either order. A project that already ran `init` 0.95.0 deletes the `prisma/schema/` folder it wrote (it holds only that fresh `schema.prisma`) before `mkdir prisma/schema && git mv prisma/schema.prisma prisma/schema/schema.prisma`.
50
+
51
+ **`init` allows by name the install scripts the stack needs, the regulated profile pins them after the first install, and `doctor` reports one a bump left unreviewed.** `@prisma/engines` (under `--orm prisma`: it downloads the schema engine `prisma migrate` and `db:client` run) and `@confluentinc/kafka-javascript` (under `--broker kafka`: it downloads the prebuilt native client, or builds it, and the client does not load without it) go into `allowScripts` of `package.json` under npm and into `allowBuilds` of `pnpm-workspace.yaml` under pnpm. Under pnpm, the default package manager, nothing allowed them: pnpm 12 skipped both scripts at every install, so a project on Kafka had no native client (Prisma fetches its engine at first use). Under npm 11.19 the scripts ran, but every install listed them among the scripts not yet reviewed, which npm says a later release blocks. The entries are by name: npm accepts only a name or exact versions (it drops `^7.10.0` with a warning), and the versions are known once the install resolved the ranges. An entry the project has for one of these packages, a pin or a denial, is kept, even under `--force`, and a denial is said. The other install scripts an install lists (esbuild, `@swc/core`, `unrs-resolver`, `protobufjs`, `@parcel/watcher`, lefthook, the preinstall of `prisma`) are left to the team: the kit needs none of them. Under `--agent-profile regulated`, the notes of `init` ask the owner to pin both after the first install, `npm install-scripts approve @prisma/engines @confluentinc/kafka-javascript` turning each name into the installed version (under pnpm, `'<package>@<version>': true` in `allowBuilds`), and say that a bump of one of them then needs the same step once its new script was read. `doctor` reads the version installed against that list: `install-script <package>` is `missing` without an entry (`init` adds it), `other version` when only pins of other versions exist, with the `approve` and `rebuild` commands, both failing `--strict`, and `written otherwise` for a denial, which does not.
52
+
53
+ To move: run `npx ddd-ts-kit init` again on a project on Prisma or Kafka: it adds the two entries (a pnpm project with an `allowBuilds` block of its own is told what to add). Then, on pnpm, `pnpm rebuild @confluentinc/kafka-javascript @prisma/engines` runs the scripts the earlier installs skipped.
54
+
55
+ **`init --agent-profile regulated` and the sandbox guide now say that the `permissions.allow` rules of the project apply only in a workspace trusted on the machine.** A headless `claude -p` run in a workspace never trusted (a fresh clone in CI, a scripted agent run) ignores the `allow` entries of `.claude/settings.json` and prints `Ignoring N permissions.allow entries` on stderr, while `deny` and `ask` still apply; this was checked on Claude Code 2.1.311. The notes of `init` and `docs/guides/agent-sandbox.md` give the two ways to trust a workspace (open it once interactively, or `projects["<root>"].hasTrustDialogAccepted` in `~/.claude.json` of the account that runs it) and say that a git worktree uses the trust of its main checkout (Claude Code docs; not probed). `doctor` does not report the trust: it would have to open `~/.claude.json`, which also holds account data.
56
+
57
+ **A worker is no longer locked out because `verify-slice` regenerated the derived files.** `verify-slice` runs `regenerate` in the worktree of a worker, which rewrites the derived files outside its context (`clients/`, `docs/behaviour/`, `docs/context-map.md`, `openapi/`, `docs/integration/`). When the worker had run inline code in the same stretch (for example `verify-slice --json | node -e ...`), the guard read those files as its own writes outside the scope and refused every Bash and Edit call until the conductor restored them. The guard now leaves what `regenerate` rewrites out of the files it watches after inline code; any other file outside the scope still stops the worker. Workers still commit their derived files with the slice, as `parallel-work` says, and `merge-trunk` still takes the trunk's side and regenerates.
58
+
59
+ **The spec that `generate aggregate --event-sourced` writes uses the builder it is generated with, so the deadcode gate of the project stays green on the trunk.** The builder (`test/builders/<aggregate>.builder.ts`) was written with no importer: the generated spec built its aggregate through `create` and `givenEvents`, so `npm run deadcode` (knip) reported `Unused files` on the builder until a later row first used it. The spec now has a test that loads the aggregate through its builder (state of its birth, no event recorded), the way the state-stored spec already did. The state-stored aggregate needed no change: its spec built every case through its builder.
60
+
61
+ To move: nothing for a project already generated. Re-running the generator on a new aggregate writes the spec with the builder.
62
+
7
63
  ## 0.95.0
8
64
 
9
65
  **The bare project of a wide stack passes its lint.** With `--audit on` and a tenancy, `src/platform/event-sourcing/create-event-sourcing.ts` imported `ExecutionScope` without using it, an error of `@typescript-eslint/no-unused-vars`; it is imported only where it is used, without the audit. On a composition by hand (manual or Nest DI), `composeApplication` grew a line with each option, and with audit, Sentry, presentation, Nest routes, files over HTTP, an external broker, rate limiting and Redis it reached 31 lines, over the limit of `clean/function-size`: the boundary of the HTTP server is now built by a function of its own, `boundaryOf`, placed under it. To move: a project whose lint reports either finding drops the import, or moves the `httpBoundary({...})` literal of `composeApplication` into a function `boundaryOf(platform, options, presentation)` placed under it.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:4f8e579be466d3bc -->
2
+ <!-- translation-of: README.md sha256:f7701cee925ecc13 -->
3
3
 
4
4
  # ddd-ts-kit
5
5
 
@@ -146,6 +146,22 @@ correctif, dans les `overrides` de `package.json` sous npm et de `pnpm-workspace
146
146
  qui ne lit rien de `package.json` : qs `^6.16.0`, que Stryker demande en 6.15.1 par
147
147
  `typed-rest-client`, et avec `--http nest` multer `^2.5.0`, que `@nestjs/platform-express`
148
148
  demande en 2.4.0. Un override que le projet pose déjà pour l'un d'eux est gardé, et signalé.
149
+ Les scripts d'installation dont la pile a besoin sont autorisés par leur nom : `@prisma/engines`
150
+ avec `--orm prisma` (il télécharge le moteur de schéma que lancent `prisma migrate` et
151
+ `db:client`) et `@confluentinc/kafka-javascript` avec `--broker kafka` (il télécharge le client
152
+ natif précompilé, ou le construit), dans `allowScripts` de `package.json` sous npm et dans
153
+ `allowBuilds` de `pnpm-workspace.yaml` sous pnpm. pnpm n'exécute aucun script de build d'une
154
+ dépendance qu'on ne lui nomme pas ; npm 11 liste chaque script d'installation absent
155
+ d'`allowScripts` comme pas encore relu, l'exécute encore en 11.19 avec un avertissement, et
156
+ annonce qu'une version ultérieure le bloquera. Par leur nom, parce que la version n'est connue
157
+ qu'une fois la plage résolue par l'installation, et que npm écarte une entrée écrite avec une
158
+ plage ; une équipe qui relit chaque version les épingle après la première installation
159
+ (`npm install-scripts approve <package>` change un nom en la version installée), ce que demande
160
+ le profil réglementé. Une entrée que le projet a pour l'un d'eux, une épingle ou un refus, est
161
+ gardée ; un refus est signalé. Les autres scripts d'installation qu'une installation liste
162
+ (esbuild, `@swc/core`, `unrs-resolver`, `protobufjs`, `@parcel/watcher`, lefthook, le
163
+ *preinstall* de `prisma`) ne sont pas nécessaires au kit : celui de lefthook installe les *hooks*
164
+ git, ce que fait `hooks:install`.
149
165
 
150
166
  **Pipelines.** Une *pull request* ou une *merge request* exécute les *specs* unitaires, les
151
167
  *specs* d'intégration et le lint des contextes que son changement atteint par la carte des
@@ -581,7 +597,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
581
597
  | `--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)) |
582
598
  | `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` |
583
599
  | `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` (`MESSAGING_SCHEMA`, le schéma de ce que le kit stocke pour l'application), `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 ; avec drizzle depuis `table-statements.ts`, le SQL des tables de `schema.ts`, puisque drizzle-kit écrit des migrations, pas des tables, ses index uniques compris), `persistence.contract.spec.ts` (les stores de l'outbox, des événements traités, des *jobs* et des processus tels que la plateforme les branche, tenus aux contrats de `@ddd-ts-kit/testing` avec ce que la pile active : le *tenant* sous `--tenancy`, l'unité de travail). 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` |
584
- | outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (le client, la datasource et les tables de la plateforme ; `generate repository` ajoute le fichier de chaque contexte, `prisma/schema/<context>.prisma`) et `prisma.config.ts`, ou `data-source.ts` |
600
+ | outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (le client, la datasource et les tables de la plateforme ; `generate repository` ajoute le fichier de chaque contexte, `prisma/schema/<context>.prisma`) et `prisma.config.ts`, ou `data-source.ts`. Un projet qui garde le seul `prisma/schema.prisma` des versions antérieures à 0.95 le garde avec son `prisma.config.ts` et son `db:client`, même sous `--force` : `init` n'écrit rien sous `prisma/schema/`, ses notes donnent les étapes du déplacement en nommant les contextes du projet, et `generate repository` refuse jusqu'au déplacement |
585
601
  | `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 |
586
602
  | `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | avec `--privacy on`, les deux demandes d'une personne concernée, traitées en ligne de commande sur les sources avec les variables de `.env` (`npm run privacy:erase -- <subject-id> [--operator <qui-demande>]`, `npm run privacy:export -- <subject-id> > export.json`) : l'effacement détruit d'abord la clé de la personne quand le projet a un event store (`--event-sourcing on` : ses événements stockés se lisent effacés ; audité avec `--audit on`), puis efface chaque copie listée dans `src/platform/privacy/data-subject-copies.ts` ; `privacy:purge` lance à la main ce que le *job* `privacy.purge-expired` lance chaque nuit à 03:00 UTC, la purge de ce qui a dépassé sa durée de conservation (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` coupe le *job*) ; l'export rassemble chaque enregistrement listé dans `data-subject-exports.ts` en un document JSON daté (`format`, `subject`, `exportedAt`, `records`), l'export de chaque contexte audité avec `--audit on`, jamais les valeurs (chaque exécution laisse son entrée, un essai compris : essayez-le sur une personne de test). Avec `--tenancy shared-table`, `TENANTS` nomme les tenants, séparés par des virgules : une écriture de données de tenant n'est jamais élargie. Ni l'un ni l'autre n'atteint les sauvegardes, les journaux ou une copie qu'aucun contexte n'a déclarée |
587
603
  | `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 |
@@ -621,7 +637,9 @@ client Kafka) comme seuls hôtes, les fichiers d'identifiants
621
637
  chaque commande en bac à sable ; une clé que le projet avait déjà posée est gardée, et une liste
622
638
  qu'il porte gagne les entrées dont la pile a besoin. Elle affiche aussi, en note, que le
623
639
  propriétaire lance la première installation hors de l'agent (un chemin absent au démarrage d'une
624
- session y reste en lecture seule), et le bloc de réglages gérés qu'un fichier de projet ne peut pas poser
640
+ session y reste en lecture seule) puis épingle les scripts d'installation de la pile sur les
641
+ versions relues (`npm install-scripts approve <package>...`, ou `'<package>@<version>': true` dans
642
+ `allowBuilds` sous pnpm), une montée de version de l'un d'eux demandant la même chose, et le bloc de réglages gérés qu'un fichier de projet ne peut pas poser
625
643
  (`allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`,
626
644
  `permissions.disableBypassPermissionsMode`, `strictKnownMarketplaces` avec la *marketplace* du
627
645
  kit, `requiredMinimumVersion`), pour que l'équipe plateforme le colle, et écrit les deux *hooks*
@@ -654,7 +672,10 @@ appellent par son chemin (`node node_modules/@typescript/native/bin/tsc`). `npx
654
672
  l'ancien.
655
673
 
656
674
  `init` et `generate context` commencent par le langage : la première entrée de `next` est le
657
- glossaire du contexte à remplir.
675
+ glossaire du contexte à remplir. Tous deux refusent un contexte nommé `schema`, quel que soit
676
+ l'ORM : sous Prisma les modèles d'un contexte vivent dans `prisma/schema/<context>.prisma`, et
677
+ `prisma/schema/schema.prisma` est le fichier principal que tous les contextes partagent (un projet
678
+ passe à Prisma par `init --force`).
658
679
 
659
680
  ### Presets
660
681
 
@@ -755,7 +776,7 @@ Next, in this order: the language of the context first, then the business decisi
755
776
  | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>` | `application/integration/handlers/<name>.integration-handler.ts`, une classe `<Name>IntegrationHandler` qui dépend de `CommandBus`, sa *spec*, son abonnement idempotent sous le nom de consommateur `<context>.<name>` ; refusé sauf si l'amont est déclaré |
756
777
  | `erasure-handler` | `<context>` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, une classe `DataSubjectErasedIntegrationHandler` qui efface ce que le contexte garde d'une personne par son `<Context>PersonalDataErasure` quand la plateforme annonce `privacy.data-subject.erased` (`dataSubjectErasedV1` du kernel), sa *spec* sur le *fake*, son abonnement idempotent sous le nom de consommateur `<context>.data-subject-erased` (dans une transaction derrière un *broker*) ; pour un contexte qui tourne comme un service à part ou copie des données personnelles depuis des événements. Refusé tant que le contexte n'a pas son effacement (`generate repository --personal`) |
757
778
  | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit]` | réaction à un événement du domaine du contexte, *spec*, abonnement ; avant la validation (commit) de l'unité de travail par défaut, après elle avec `--phase after-commit` (un effet qu'aucune transaction ne couvre, au plus une fois), et la *spec* exécute la réaction dans cette phase |
758
- | `projection` (`projector`) | `<context> <Name> <event-type>` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec* ; style déclaré seulement. Il tient un seul modèle de lecture : son port est reçu par le constructeur |
779
+ | `projection` (`projector`) | `<context> <Name> <event-type>` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec*. Dans le style explicite sur tsyringe, le fichier de module du contexte l'inclut par `builder.include(<Name>Projection)` ; sur une plateforme câblée à la main, la classe est simple et le module la souscrit sous son nom de consommateur. Il tient un seul modèle de lecture : son port est reçu par le constructeur |
759
780
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, une classe `<Name>Job implements ScheduledJob` qui envoie la commande, en tant que `systemActor('<context>.<name>')` quand elle est protégée, avec `execution.scheduledAt` quand la commande le prend ; `test/unit/<name>.job.spec.ts`, qui exécute le *job* (par son nom sur tsyringe, `application.jobs.runNow` ; `job.run(occurrence)` en câblage manuel) et vérifie la commande qu'il a envoyée ; son enregistrement ; son interrupteur dans `platform/jobs/job-settings.ts` ; l'autorisation de son acteur système (ci-dessous) |
760
781
  | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, une classe `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` nommée par son `jobName` statique `<context>.<name>`, qui envoie la commande en tant que `execution.actor` quand elle est protégée, suivi d'un champ de `<Name>Payload` par autre paramètre du constructeur de la commande (chaînes, nombres, booléens, littéraux et listes de ceux-ci tels qu'écrits, une `Date` sous forme de son texte ISO ; tout le reste est refusé) ; `test/unit/<name>.background-job.spec.ts`, qui le met en file avec une charge utile de chaque champ en tant qu'utilisateur et exécute ce qui est dû (à travers l'application de test sur tsyringe, à travers une file et un *worker* en mémoire sur les bus de test sinon) ; son enregistrement (`@Background()`, `builder.backgroundJob(..)` dans le fichier de module sur tsyringe, `platform.backgroundJobs.register(..)` dans le fichier de module d'une plateforme câblée à la main) |
761
782
  | `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (son état, `processName`, `timeoutJob`, `isState`, une première étape qui arme une échéance, une étape qui y met fin à temps, l'étape de l'échéance), `application/background/<name>-timeout.background-job.ts`, qui livre ses expirations au moyen de `ProcessRunner`, et les *specs* des deux (`givenProcess`, la file de l'application de test sur tsyringe, une file et un *runner* en mémoire sur les bus de test sinon) |
@@ -1331,8 +1352,26 @@ porte.
1331
1352
  Un cycle dans `Depends on`, une dépendance vers un identifiant qu'aucune ligne ne porte, une ligne
1332
1353
  sans responsable et un identifiant que portent deux lignes rendent les lignes impossibles à
1333
1354
  ordonner : ils sont signalés seuls, sans vagues, et la commande sort avec 1. Un fichier sans table
1334
- de tranches, ou un contexte qu'aucune ligne ne nomme, est refusé. `--json` affiche
1335
- `{ 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 }] }`,
1355
+ de tranches, ou un contexte qu'aucune ligne ne nomme, est refusé.
1356
+
1357
+ Une fois les lignes ordonnables, les commandes de génération de leurs cellules `Start with` (entre
1358
+ accents graves, `generate ...` ou `npx ddd-ts-kit generate ...`) sont rejouées dans une copie du
1359
+ projet (les fichiers que git voit ; le projet reste tel quel), dans l'ordre des vagues, pour
1360
+ qu'une commande trouve ce que génèrent les lignes d'avant. Le générateur dit lui-même quels noms
1361
+ introduit chaque commande (le cas d'usage, l'agrégat et le fait d'un événement, un `--name`, les
1362
+ mots d'une `--permission`, ...), et chacun est jugé comme le générateur le juge, contre le
1363
+ glossaire de son contexte tel qu'il est, plus les `--term` de la ligne et des lignes qu'elle
1364
+ attend, directement ou non : un terme qu'ajoute une ligne qu'elle n'attend pas ne compte pas, car
1365
+ cette ligne peut ne pas être fusionnée quand celle-ci se construit. Chaque mot que le glossaire ne
1366
+ définit pas (`undefined-word`) et chaque mot technique qu'aucun terme ne porte (`technical-word`)
1367
+ est signalé une fois par ligne, avec le `--term` à ajouter, sans vagues, et la commande sort avec
1368
+ 1 : un worker qui suivrait cette ligne telle qu'écrite serait refusé. Les commandes que le
1369
+ générateur a refusées pour une autre raison (un `--module` manquant, un agrégat qu'aucune ligne ne
1370
+ génère, un amont non déclaré, un handler écrit à la main dont un spec de bout en bout a besoin)
1371
+ sont listées après les vagues sous `Refused for another reason than a word when the plan was
1372
+ replayed`, sans échec : les noms qu'elles introduiraient après ce refus ne sont pas jugés. Le rejeu
1373
+ coûte environ un dixième de seconde par commande. `--json` affiche
1374
+ `{ 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 }] }`,
1336
1375
  `story` valant `null` pour une ligne dont l'identifiant n'en nomme aucune, et `batch` `null` pour
1337
1376
  une ligne que le contexte demandé ne montre pas.
1338
1377
 
@@ -1654,15 +1693,27 @@ manque au projet tant que le parent épingle encore le paquet sous le correctif
1654
1693
  version corrigée est `no longer needed`, à retirer, car il retiendrait le paquet quand une majeure
1655
1694
  suivante sera demandée. Une chaîne qui n'est pas installée n'est pas jugée.
1656
1695
 
1696
+ Et chaque script d'installation dont la pile a besoin, les moteurs de Prisma (`@prisma/engines`) et
1697
+ le client Kafka (`@confluentinc/kafka-javascript`), jugé sur la version installée face à
1698
+ `allowScripts` de `package.json` sous npm ou à `allowBuilds` de `pnpm-workspace.yaml` sous pnpm,
1699
+ lus comme npm les lit (le nom seul, `name@*`, ou des versions exactes jointes par `||` ; un refus
1700
+ l'emporte) : aucune entrée donne `missing`, et `init` ajoute le nom ; des entrées épinglées sur
1701
+ d'autres versions seulement, l'épingle qu'une montée de version a laissée, donnent `other
1702
+ version`, avec `npm install-scripts approve <package>` puis `npm rebuild <package>` (sous pnpm, la
1703
+ version écrite dans `allowBuilds`, puis `pnpm rebuild <package>`) une fois le nouveau script lu ; un
1704
+ refus donne `written otherwise`. Un paquet qui n'est pas installé n'est pas jugé.
1705
+
1657
1706
  `--strict` sort avec 1 tant que quelque chose manque ou est à une autre plage, ou tant que le
1658
1707
  *checkout* ne peut pas faire tourner le projet : un Node hors d'`engines.node`, pas de
1659
1708
  `node_modules`, un paquet du kit non installé ou à une autre version, un sous-module non
1660
1709
  initialisé, un *override* qui manque. Un script écrit autrement, un *hook* que ce clone n'a pas
1661
1710
  installé, un Node que `.nvmrc` ne nomme pas quand `engines.node` l'accepte, un *lockfile* modifié
1662
- depuis l'installation (un *checkout* peut le réécrire avec ce que `node_modules` contient déjà), et
1663
- un *override* qui n'est plus nécessaire sont signalés sans le faire échouer. `--json` affiche `{ version, findings: [{ area, name, problem,
1711
+ depuis l'installation (un *checkout* peut le réécrire avec ce que `node_modules` contient déjà), un
1712
+ *override* qui n'est plus nécessaire et un script d'installation refusé (l'équipe peut construire le
1713
+ paquet autrement) sont signalés sans le faire échouer ; un script d'installation qui manque ou
1714
+ épinglé sur une autre version le fait échouer. `--json` affiche `{ version, findings: [{ area, name, problem,
1664
1715
  expected, found }] }`, `area` valant `script`, `package`, `permission`, `hook`, `guidance`,
1665
- `node`, `install`, `submodule` ou `override`.
1716
+ `node`, `install`, `submodule`, `override` ou `install-script`.
1666
1717
 
1667
1718
  ## worker-scope
1668
1719
 
@@ -2227,7 +2278,8 @@ règle.
2227
2278
  | `config/valid` | un amont, une classification, une relation, un identifiant de règle, un mode de `guard` ou un `importExtension` inconnu ; un contexte absent du disque ou de la configuration ; une limite de `commit` qui n'est pas un entier positif |
2228
2279
  | `config/suppression-needs-reason` | une désactivation sans identifiant de règle ou sans raison (gardée comme alias à côté de `governance/recorded-deviation`, qui juge la raison) |
2229
2280
  | `authz/declared` | dans un fichier de module, `builder.command(X)` ou `builder.query(X)` sans `.requires(` ni `.public(` dans sa chaîne, sauf si la classe du message porte `@Requires` ou `@Public` de `@ddd-ts-kit/kernel/declarations` ; en câblage manuel ou nest, une classe de commande ou de requête absente de tous les `requires(X, ...)` et `publicUseCase(X)` du fichier de module et de `application/authorization/` ; un `defineRoute` sans `security` (le type de la route le refuse déjà, et une liste vide aussi : c'est le filet au niveau du texte pour une définition construite de façon lâche) ; dans le style déclaré, la classe exportée d'un fichier `*.command.ts` ou `*.query.ts` qui ne porte ni `@Requires` ni `@Public` |
2230
- | `authz/granted` | avec `stack.authz` `rbac`, une permission du `definePermissions` d'un contexte que ni `platform/auth/roles/roles.ts` ni `platform/auth/authorization/signed-in-grants.ts` n'accorde par son nom (par l'entrée de son ensemble, son identifiant ou `<contexte>:*`) ; le `*` du super-administrateur ne compte pas (un avertissement) |
2281
+ | `authz/granted` | avec `stack.authz` `rbac`, une permission du `definePermissions` d'un contexte que ni `platform/auth/roles/roles.ts` ni `platform/auth/authorization/signed-in-grants.ts` n'accorde par son nom (par l'entrée de son ensemble, son identifiant ou `<contexte>:*`) ; le `*` du super-administrateur ne compte pas (un avertissement) ; avec `rebac`, une permission que le schéma laisse sur le contexte alors qu'aucune source hors des tests n'écrit de relation `operator` (d'une personne ou d'un acteur système) sur ce contexte et qu'aucun droit de toute personne connectée ne la tient, dans un projet qui fait déjà d'une personne l'opérateur d'un contexte ; muette avec un *authorizer* propre au projet (un avertissement) |
2282
+ | `authz/system-actor-granted` | avec `stack.authz` `rebac`, un `systemActor(<name>)` d'un contexte (un littéral, ou `<Classe>.name`) dans un fichier qui envoie une commande ou une requête non déclarée publique, alors qu'aucun fichier de `platform/auth/relationships/` ne nomme le sujet `system:system:<name>` |
2231
2283
  | `authz/scope-narrows` | dans un contexte, un appel `.scope(` dont la permission (l'entrée d'un ensemble dans l'appel, ou dans une constante ou un champ du fichier) est détenue par toute personne connectée, dans `platform/auth/authorization/signed-in-grants.ts` ou dans les `grants` d'un `new SignedInGrantsAuthorizer` : sa portée est toujours `all` ; des droits ou une permission qu'elle ne sait pas lire sont signalés aussi (un avertissement) |
2232
2284
  | `privacy/declared-field` | avec `stack.privacy` `on` : une colonne d'une table Knex, d'une table Drizzle ou d'un *entity schema* TypeORM de `infrastructure/persistence/`, ou d'un modèle Prisma dans le schéma du contexte, dont le nom porte un mot du vocabulaire personnel et qu'aucune déclaration `personalFields` du contexte ne nomme |
2233
2285
  | `privacy/event-payload-declared` | avec `stack.privacy` `on` : un champ du *payload* d'un événement d'intégration (le `z.object` de la déclaration, la classe ou l'interface de son `.payload.ts`) nommé comme une donnée personnelle que son option `personal` ne liste pas |
@@ -2264,6 +2316,7 @@ règle.
2264
2316
  | `ports/no-concrete-dependency` | une liste de dépendances qui nomme une classe importée de `infrastructure/` ou de `test/fakes/` d'un contexte ; dans le style déclaré, un paramètre de constructeur d'une classe déclarée qui ne liste rien, typé par une telle classe |
2265
2317
  | `ports/value-import` | une classe nommée dans une liste de dépendances, ou donnée à `bind` ou `rebind`, importée avec `import type` ou `import { type X }` |
2266
2318
  | `scheduling/job-triggers-use-case` | dans `application/scheduling/*.job.ts` : une classe exportée qui n'implémente pas `ScheduledJob` ; un `run` qui n'envoie aucune commande (pas d'appel `.execute(`) ; un *repository* dans la liste de dépendances ou le constructeur ; un import de `domain/aggregates/`, `domain/entities/`, `domain/services/` ou `infrastructure/`. Un enregistrement `builder.job(..)` d'une classe qui vit ailleurs |
2319
+ | `scheduling/job-registered` | dans le style explicite, la classe d'un *job* (`application/scheduling/*.job.ts`) ou d'un *job* d'arrière-plan (`application/background/*.background-job.ts`) qu'aucun autre fichier hors des tests n'enregistre (`.handledBy(..)`, `.register(..)` ou `new`) |
2267
2320
  | `scheduling/job-name` | le premier argument de `@Scheduled(..)` ou de `.job(..)` qui n'est pas une chaîne littérale `<context>.<job-name>` en kebab-case minuscule avec le contexte de son fichier ; un `systemActor(..)` d'un fichier de *job* qui passe un autre nom ; un même nom de *job* utilisé deux fois dans le projet |
2268
2321
  | `errors/code-unique` | sous `"stack.refusals": "named"` ou `"factories"`, dans le `domain/errors/` d'un contexte : un code posé une seconde fois, par une valeur de `<context>.codes.ts`, une fabrique (`refusal('CODE', ..)`) ou une classe (`readonly code = 'CODE'`), avec le fichier et la ligne du premier. Le même code dans deux contextes n'est pas signalé |
2269
2322
  | `errors/code-listed` | sous `"stack.refusals": "named"`, dans le `domain/errors/` d'un contexte : une classe de refus (qui étend `DomainRefusal`) dont le code n'est pas `readonly code = <Context>Codes.<Class>` lu dans le `<context>.codes.ts` de son contexte, des classes de refus sans `<context>.codes.ts`, une classe que la liste ne contient pas ; dans `<context>.codes.ts`, pas de liste `<Context>Codes` ou une liste non déclarée `as const`, une clé qui ne nomme aucune classe de refus du contexte, une valeur qui n'est pas un littéral de chaîne en casse de constante |
package/README.md CHANGED
@@ -137,6 +137,20 @@ The project forces the versions that close a vulnerability its stack still pins
137
137
  nothing of `package.json`: qs `^6.16.0`, which Stryker asks for at 6.15.1 through
138
138
  `typed-rest-client`, and under `--http nest` multer `^2.5.0`, which `@nestjs/platform-express`
139
139
  asks for at 2.4.0. An override the project already sets for one of them is kept, and said.
140
+ The install scripts the stack needs are allowed by name: `@prisma/engines` under `--orm prisma`
141
+ (it downloads the schema engine that `prisma migrate` and `db:client` run) and
142
+ `@confluentinc/kafka-javascript` under `--broker kafka` (it downloads the prebuilt native client,
143
+ or builds it), in `allowScripts` of `package.json` under npm and in `allowBuilds` of
144
+ `pnpm-workspace.yaml` under pnpm. pnpm runs no build script of a dependency it is not told to;
145
+ npm 11 lists every install script not in `allowScripts` as not yet reviewed, still runs it in
146
+ 11.19 with a warning, and says a later release blocks it. By name, because the version is known
147
+ once the install resolved the range, and npm drops an entry written with a range; a team that
148
+ reviews each version pins them after the first install (`npm install-scripts approve <package>`
149
+ turns a name into the installed version), which the regulated profile asks. An entry the project
150
+ has for one of them, a pin or a denial, is kept; a denial is said. The other install scripts an
151
+ install lists (esbuild, `@swc/core`, `unrs-resolver`, `protobufjs`, `@parcel/watcher`, lefthook,
152
+ the preinstall of `prisma`) are not needed by the kit: lefthook's installs the git hooks, which
153
+ `hooks:install` does.
140
154
 
141
155
  **Pipelines.** A pull or merge request runs the unit specs, the integration specs and the lint of
142
156
  the contexts its change reaches through the context map ([`ddd-ts-kit affected`](#affected)); types,
@@ -561,7 +575,7 @@ config, `docsUi`, `ci` and `logger` included.
561
575
  | `--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)) |
562
576
  | `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` |
563
577
  | `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` (`MESSAGING_SCHEMA`, the schema of what the kit stores for the application), `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; with drizzle from `table-statements.ts`, the SQL of the tables of `schema.ts`, since drizzle-kit writes migrations, not tables, its unique indexes included), `persistence.contract.spec.ts` (the outbox, processed-event, job and process stores as the platform wires them, held to the contracts of `@ddd-ts-kit/testing` with what the stack turns on: the tenant under `--tenancy`, the unit of work). 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` |
564
- | 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` |
578
+ | 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 |
565
579
  | `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 |
566
580
  | `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 |
567
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 |
@@ -599,7 +613,9 @@ Prisma, `github.com` and `release-assets.githubusercontent.com` with the Kafka c
599
613
  hosts, the credential files (`~/.ssh`, `~/.aws`, `~/.config/gcloud`, `~/.azure`) and the usual secret variables denied to every sandboxed command; a key the project
600
614
  already set is kept, and a list it holds gains the entries the stack needs. It also prints, as a
601
615
  note, that the owner runs the first install outside the agent (a path missing when a session
602
- starts stays read-only to it), and the block of managed settings a project file
616
+ starts stays read-only to it) and then pins the install scripts of the stack to the versions read
617
+ (`npm install-scripts approve <package>...`, or `'<package>@<version>': true` in `allowBuilds`
618
+ under pnpm), a bump of one of them asking the same again, and the block of managed settings a project file
603
619
  cannot set (`allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`,
604
620
  `permissions.disableBypassPermissionsMode`, `strictKnownMarketplaces` with the marketplace of
605
621
  the kit, `requiredMinimumVersion`), for the platform team to paste, and writes the two hooks of
@@ -630,7 +646,9 @@ and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck
630
646
  (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
631
647
 
632
648
  `init` and `generate context` start with the language: the first entry of `next` is the glossary
633
- of the context to fill in.
649
+ of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
650
+ 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).
634
652
 
635
653
  ### Presets
636
654
 
@@ -729,7 +747,7 @@ Next, in this order: the language of the context first, then the business decisi
729
747
  | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; refused unless the upstream is declared |
730
748
  | `erasure-handler` | `<context>` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, a class `DataSubjectErasedIntegrationHandler` that erases what the context keeps of a person through its `<Context>PersonalDataErasure` when the platform announces `privacy.data-subject.erased` (`dataSubjectErasedV1` of the kernel), its spec on the fake, its idempotent subscription under the consumer name `<context>.data-subject-erased` (in a transaction behind a broker); for a context that runs as a service of its own or copies personal data from events. Refused until the context has its erasure (`generate repository --personal`) |
731
749
  | `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 |
732
- | `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; declared style only. It keeps one read model: its port is received in the constructor |
750
+ | `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 |
733
751
  | `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) |
734
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) |
735
753
  | `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) |
@@ -1262,9 +1280,25 @@ anyone carries it.
1262
1280
 
1263
1281
  A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
1264
1282
  rows carry make the rows impossible to order: they are reported alone, without waves, and the
1265
- command exits 1. A file without a slices table, or a context no row names, is refused. `--json`
1266
- prints
1267
- `{ 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 }] }`,
1283
+ command exits 1. A file without a slices table, or a context no row names, is refused.
1284
+
1285
+ Once the rows can be ordered, the generator commands of their `Start with` cells (between
1286
+ 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
1288
+ command finds what the rows before it generate. The generator itself says which names each
1289
+ command introduces (the use case, the aggregate and the fact of an event, a `--name`, the words of
1290
+ a `--permission`, ...), and each is judged as the generator judges it, against the glossary of its
1291
+ context as it stands plus the `--term` of the row and of the rows it waits for, directly or not: a
1292
+ term a row it does not wait for adds is not counted, since that row may not be merged when this
1293
+ one is built. Each word it does not define (`undefined-word`) and each technical word no term
1294
+ 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 }] }`,
1268
1302
  `story` being `null` for a row whose id names none and `batch` `null` for a row the context asked
1269
1303
  for does not show.
1270
1304
 
@@ -1563,14 +1597,26 @@ project keeps once the parent asks for the fixed version itself is `no longer ne
1563
1597
  as it would hold the package back when a later major is asked for. A chain that is not installed
1564
1598
  is not judged.
1565
1599
 
1600
+ And each install script the stack needs, the engines of Prisma (`@prisma/engines`) and the Kafka
1601
+ client (`@confluentinc/kafka-javascript`), judged on the version installed against `allowScripts`
1602
+ of `package.json` under npm or `allowBuilds` of `pnpm-workspace.yaml` under pnpm, read as npm
1603
+ reads them (the name alone, `name@*`, or exact versions joined by `||`; a denial wins): no entry is
1604
+ `missing`, and `init` adds the name; an entry pinned to other versions only, the pin a bump left
1605
+ behind, is `other version`, with `npm install-scripts approve <package>` then `npm rebuild
1606
+ <package>` (under pnpm, the version written in `allowBuilds`, then `pnpm rebuild <package>`) once
1607
+ the new script was read; a denial is `written otherwise`. A package that is not installed is not
1608
+ judged.
1609
+
1566
1610
  `--strict` exits 1 while something is missing or at another range, or while the checkout cannot
1567
1611
  run the project: a Node outside `engines.node`, no `node_modules`, a package of the kit not
1568
1612
  installed or at another version, a submodule not initialised, an override missing. A script
1569
1613
  written otherwise, a hook this clone has not installed, a Node `.nvmrc` does not name while
1570
1614
  `engines.node` accepts it, a lockfile changed since the install (a checkout may rewrite it with
1571
- what `node_modules` already holds), and an override no longer needed are said without failing it. `--json` prints `{ version, findings: [{ area, name, problem,
1615
+ what `node_modules` already holds), an override no longer needed and a denied install script (the
1616
+ team may build the package another way) are said without failing it; an install script missing or
1617
+ pinned to another version fails it. `--json` prints `{ version, findings: [{ area, name, problem,
1572
1618
  expected, found }] }`, `area` being `script`, `package`, `permission`, `hook`, `guidance`, `node`,
1573
- `install`, `submodule` or `override`.
1619
+ `install`, `submodule`, `override` or `install-script`.
1574
1620
 
1575
1621
  ## worker-scope
1576
1622
 
@@ -2097,7 +2143,8 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2097
2143
  | `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 |
2098
2144
  | `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) |
2099
2145
  | `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` |
2100
- | `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) |
2146
+ | `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) |
2147
+ | `authz/system-actor-granted` | with `stack.authz` `rebac`, a `systemActor(<name>)` of a context (a literal, or `<Class>.name`) in a file that sends a command or a query not declared public, while no file of `platform/auth/relationships/` names the subject `system:system:<name>` |
2101
2148
  | `authz/scope-narrows` | in a context, a `.scope(` call whose permission (the entry of a set in the call, or in a constant or a field of the file) every signed-in person holds, in `platform/auth/authorization/signed-in-grants.ts` or in the `grants` of a `new SignedInGrantsAuthorizer`: its scope is always `all`; grants or a permission it cannot read are reported too (a warning) |
2102
2149
  | `privacy/declared-field` | with `stack.privacy` `on`: a column of a Knex table, a Drizzle table or a TypeORM entity schema of `infrastructure/persistence/`, or of a Prisma model in the schema of the context, whose name holds a word of the personal vocabulary and that no `personalFields` declaration of the context names |
2103
2150
  | `privacy/event-payload-declared` | with `stack.privacy` `on`: a field of the payload of an integration event (the `z.object` of the declaration, the class or the interface of its `.payload.ts`) named like personal data that its `personal` option does not list |
@@ -2134,6 +2181,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2134
2181
  | `ports/no-concrete-dependency` | a dependency list naming a class imported from `infrastructure/` or from `test/fakes/` of a context; in the declared style, a constructor parameter of a declared class that lists nothing, typed by such a class |
2135
2182
  | `ports/value-import` | a class named in a dependency list, or given to `bind` or `rebind`, imported with `import type` or `import { type X }` |
2136
2183
  | `scheduling/job-triggers-use-case` | in `application/scheduling/*.job.ts`: an exported class that does not implement `ScheduledJob`; a `run` that sends no command (no `.execute(` call); a repository in the dependency list or the constructor; an import from `domain/aggregates/`, `domain/entities/`, `domain/services/` or `infrastructure/`. A `builder.job(..)` registration of a class that lives elsewhere |
2184
+ | `scheduling/job-registered` | in the explicit style, the class of a job (`application/scheduling/*.job.ts`) or background job (`application/background/*.background-job.ts`) that no other file outside the tests registers (`.handledBy(..)`, `.register(..)` or `new`) |
2137
2185
  | `scheduling/job-name` | the first argument of `@Scheduled(..)` or `.job(..)` that is not a string literal `<context>.<job-name>` in lower-case kebab-case with the context of its file; a `systemActor(..)` of a job file passing another name; one job name used twice in the project |
2138
2186
  | `errors/code-unique` | under `"stack.refusals": "named"` or `"factories"`, in the `domain/errors/` of a context: a code set a second time, by a value of `<context>.codes.ts`, a factory (`refusal('CODE', ..)`) or a class (`readonly code = 'CODE'`), with the file and line of the first. The same code in two contexts is not reported |
2139
2187
  | `errors/code-listed` | under `"stack.refusals": "named"`, in the `domain/errors/` of a context: a refusal class (extending `DomainRefusal`) whose code is not `readonly code = <Context>Codes.<Class>` from the `<context>.codes.ts` of its context, refusal classes and no `<context>.codes.ts`, a class the list does not hold; in `<context>.codes.ts`, no list `<Context>Codes` or one not declared `as const`, a key that names no refusal class of the context, a value that is not a string literal in constant case |
@@ -0,0 +1,16 @@
1
+ import type { Project } from '../model/project.js';
2
+ /** The contexts somebody is made operator of by a relationship written in the sources, outside the tests. */
3
+ export interface OperatorTuples {
4
+ /** A tuple whose object the checker cannot read (a computed context): every context may be covered. */
5
+ readonly unreadable: boolean;
6
+ readonly contexts: ReadonlySet<string>;
7
+ /** A tuple makes a person (a subject other than `system:..`) operator of some context: the project provisions its operators in its tree. */
8
+ readonly provisioned: boolean;
9
+ }
10
+ /**
11
+ * The `{ object: 'context:<name>', relation: 'operator', subject: '..' }` tuples the project writes
12
+ * in its sources, tests aside, whoever the subject is: a person, or a system actor whose grant
13
+ * `authz/system-actor-granted` judges (a use case only the system sends is held by it).
14
+ */
15
+ export declare function operatorTuples(project: Project): OperatorTuples;
16
+ //# sourceMappingURL=operator-tuples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-tuples.d.ts","sourceRoot":"","sources":["../../../src/check/authz/operator-tuples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQhD,6GAA6G;AAC7G,MAAM,WAAW,cAAc;IAC7B,uGAAuG;IACvG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,4IAA4I;IAC5I,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAoB/D"}
@@ -0,0 +1,29 @@
1
+ const BODY = '(?:[^{}]|\\$\\{[^{}]*\\})*';
2
+ const QUOTE = '[\'"`]';
3
+ const TUPLE = new RegExp(`\\{${BODY}?\\brelation\\s*:\\s*(${QUOTE})operator\\1${BODY}\\}`, 'g');
4
+ const SYSTEM_SUBJECT = /\bsubject\s*:\s*(['"`])system:/;
5
+ const OBJECT = /\bobject\s*:\s*(['"`])context:([^'"`]*)\1/;
6
+ /**
7
+ * The `{ object: 'context:<name>', relation: 'operator', subject: '..' }` tuples the project writes
8
+ * in its sources, tests aside, whoever the subject is: a person, or a system actor whose grant
9
+ * `authz/system-actor-granted` judges (a use case only the system sends is held by it).
10
+ */
11
+ export function operatorTuples(project) {
12
+ const contexts = new Set();
13
+ let unreadable = false;
14
+ let provisioned = false;
15
+ for (const file of project.files.filter(({ isTest }) => !isTest)) {
16
+ for (const [tuple] of file.text.matchAll(TUPLE)) {
17
+ provisioned ||= !SYSTEM_SUBJECT.test(tuple);
18
+ const context = OBJECT.exec(tuple)?.[2];
19
+ if (context === undefined || context.includes('${')) {
20
+ unreadable = true;
21
+ }
22
+ else {
23
+ contexts.add(context);
24
+ }
25
+ }
26
+ }
27
+ return { unreadable, contexts, provisioned };
28
+ }
29
+ //# sourceMappingURL=operator-tuples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-tuples.js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/project.js';
2
+ /**
3
+ * Whether the project decides rights with an authorizer of its own: the `createAuthorizer` of the
4
+ * platform imports a class named `*Authorizer` from a file of the project. Such a class may grant
5
+ * what the schema does not (a system actor its own context, a role of the token), which the
6
+ * checker cannot read: the rules that judge the grants of the standard authorizer stay silent.
7
+ */
8
+ export declare function ownAuthorizer(project: Project): boolean;
9
+ //# sourceMappingURL=own-authorizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"own-authorizer.d.ts","sourceRoot":"","sources":["../../../src/check/authz/own-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIhD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAYvD"}
@@ -0,0 +1,15 @@
1
+ import { platformFileIn } from '../../platform-layout/index.js';
2
+ import { isInProject } from './is-in-project.js';
3
+ /**
4
+ * Whether the project decides rights with an authorizer of its own: the `createAuthorizer` of the
5
+ * platform imports a class named `*Authorizer` from a file of the project. Such a class may grant
6
+ * what the schema does not (a system actor its own context, a role of the token), which the
7
+ * checker cannot read: the rules that judge the grants of the standard authorizer stay silent.
8
+ */
9
+ export function ownAuthorizer(project) {
10
+ const path = platformFileIn(project.config, 'auth/authorization/create-authorizer.ts', (candidate) => isInProject(project, candidate));
11
+ return (project.files
12
+ .find((file) => file.path === path)
13
+ ?.imports.some(({ target, names }) => target.kind === 'file' && names.some((name) => name.endsWith('Authorizer'))) ?? false);
14
+ }
15
+ //# sourceMappingURL=own-authorizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"own-authorizer.js","sourceRoot":"","sources":["../../../src/check/authz/own-authorizer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,yCAAyC,EAAE,CAAC,SAAS,EAAE,EAAE,CACnG,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAChC,CAAC;IAEF,OAAO,CACL,OAAO,CAAC,KAAK;SACV,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;QACnC,EAAE,OAAO,CAAC,IAAI,CACZ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CACnG,IAAI,KAAK,CACb,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,eAAe,CAAC;AA0G1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAyG7C,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,eAAe,CAAC;AA4G1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA2G7C,CAAC"}
@@ -4,6 +4,7 @@ import { authzFieldsBySchema } from '../rules/authz-fields-by-schema.js';
4
4
  import { authzDeclared } from '../rules/authz-declared.js';
5
5
  import { authzGranted } from '../rules/authz-granted.js';
6
6
  import { authzResourceModelled } from '../rules/authz-resource-modelled.js';
7
+ import { authzSystemActorGranted } from '../rules/authz-system-actor-granted.js';
7
8
  import { authzScopeNarrows } from '../rules/authz-scope-narrows.js';
8
9
  import { privacyDeclaredField } from '../rules/privacy-declared-field.js';
9
10
  import { privacyErasureReachesCopies } from '../rules/privacy-erasure-reaches-copies.js';
@@ -86,6 +87,7 @@ import { purityNoEnvironment } from '../rules/purity-no-environment.js';
86
87
  import { purityNoSystemClock } from '../rules/purity-no-system-clock.js';
87
88
  import { schedulingTenancyDeclared } from '../rules/scheduling-tenancy-declared.js';
88
89
  import { schedulingJobName } from '../rules/scheduling-job-name.js';
90
+ import { schedulingJobRegistered } from '../rules/scheduling-job-registered.js';
89
91
  import { schedulingJobTriggersUseCase } from '../rules/scheduling-job-triggers-use-case.js';
90
92
  import { schemaNoDuplicateShape } from '../rules/schema-no-duplicate-shape.js';
91
93
  import { schemaPresentationOnly } from '../rules/schema-presentation-only.js';
@@ -170,6 +172,7 @@ export const ARCHITECTURE_RULES = [
170
172
  authzGranted,
171
173
  authzScopeNarrows,
172
174
  authzResourceModelled,
175
+ authzSystemActorGranted,
173
176
  privacyDeclaredField,
174
177
  privacyEventPayloadDeclared,
175
178
  privacyErasureReachesCopies,
@@ -197,6 +200,7 @@ export const ARCHITECTURE_RULES = [
197
200
  lifecycleStatusThroughMachine,
198
201
  processSendsCommandsOnly,
199
202
  schedulingJobName,
203
+ schedulingJobRegistered,
200
204
  schedulingTenancyDeclared,
201
205
  importsAliasOnly,
202
206
  importsExtension,
@@ -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,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,q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;IAChB,YAAY;IACZ,iBAAiB;IACjB,qBAAqB;IACrB,oBAAoB;IACpB,2BAA2B;IAC3B,2BAA2B;IAC3B,sBAAsB;IACtB,2BAA2B;IAC3B,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,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,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,O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