ddd-ts-kit 0.94.1 → 0.96.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 (731) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.fr.md +83 -21
  3. package/README.md +78 -22
  4. package/dist/build/rewrite-aliases.js +1 -1
  5. package/dist/build/rewrite-aliases.js.map +1 -1
  6. package/dist/check/canonical/stray-entry.js +7 -1
  7. package/dist/check/canonical/stray-entry.js.map +1 -1
  8. package/dist/check/configuration/config-inspection.d.ts.map +1 -1
  9. package/dist/check/configuration/config-inspection.js +2 -0
  10. package/dist/check/configuration/config-inspection.js.map +1 -1
  11. package/dist/check/configuration/context-tenancy.d.ts +10 -0
  12. package/dist/check/configuration/context-tenancy.d.ts.map +1 -0
  13. package/dist/check/configuration/context-tenancy.js +16 -0
  14. package/dist/check/configuration/context-tenancy.js.map +1 -0
  15. package/dist/check/errors/listed-codes.d.ts +1 -1
  16. package/dist/check/errors/listed-codes.d.ts.map +1 -1
  17. package/dist/check/errors/listed-codes.js +15 -3
  18. package/dist/check/errors/listed-codes.js.map +1 -1
  19. package/dist/check/explain/language-docs.js +1 -1
  20. package/dist/check/explain/language-docs.js.map +1 -1
  21. package/dist/check/explain/privacy-docs.js +1 -1
  22. package/dist/check/explain/privacy-docs.js.map +1 -1
  23. package/dist/check/explain/tenancy-docs.js +1 -1
  24. package/dist/check/explain/tenancy-docs.js.map +1 -1
  25. package/dist/check/explain/tree-docs.js +2 -2
  26. package/dist/check/explain/tree-docs.js.map +1 -1
  27. package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
  28. package/dist/check/fixtures/config-fixtures.js +13 -0
  29. package/dist/check/fixtures/config-fixtures.js.map +1 -1
  30. package/dist/check/fixtures/config.js +2 -1
  31. package/dist/check/fixtures/config.js.map +1 -1
  32. package/dist/check/fixtures/control-plane-fixtures.d.ts +4 -0
  33. package/dist/check/fixtures/control-plane-fixtures.d.ts.map +1 -0
  34. package/dist/check/fixtures/control-plane-fixtures.js +41 -0
  35. package/dist/check/fixtures/control-plane-fixtures.js.map +1 -0
  36. package/dist/check/fixtures/files-fixtures.js +2 -2
  37. package/dist/check/fixtures/files-fixtures.js.map +1 -1
  38. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  39. package/dist/check/fixtures/fixtures.js +2 -0
  40. package/dist/check/fixtures/fixtures.js.map +1 -1
  41. package/dist/check/fixtures/governance-fixtures.d.ts.map +1 -1
  42. package/dist/check/fixtures/governance-fixtures.js +15 -0
  43. package/dist/check/fixtures/governance-fixtures.js.map +1 -1
  44. package/dist/check/fixtures/language-fixtures.d.ts.map +1 -1
  45. package/dist/check/fixtures/language-fixtures.js +22 -0
  46. package/dist/check/fixtures/language-fixtures.js.map +1 -1
  47. package/dist/check/fixtures/privacy-fixtures.js +2 -2
  48. package/dist/check/fixtures/privacy-fixtures.js.map +1 -1
  49. package/dist/check/fixtures/shared-kernel-fixtures.d.ts +3 -0
  50. package/dist/check/fixtures/shared-kernel-fixtures.d.ts.map +1 -0
  51. package/dist/check/fixtures/shared-kernel-fixtures.js +60 -0
  52. package/dist/check/fixtures/shared-kernel-fixtures.js.map +1 -0
  53. package/dist/check/fixtures/shared-kernel-glossary.d.ts +7 -0
  54. package/dist/check/fixtures/shared-kernel-glossary.d.ts.map +1 -0
  55. package/dist/check/fixtures/shared-kernel-glossary.js +12 -0
  56. package/dist/check/fixtures/shared-kernel-glossary.js.map +1 -0
  57. package/dist/check/fixtures/standard-fixtures.d.ts.map +1 -1
  58. package/dist/check/fixtures/standard-fixtures.js +2 -0
  59. package/dist/check/fixtures/standard-fixtures.js.map +1 -1
  60. package/dist/check/fixtures/tenancy-adapters.d.ts +20 -0
  61. package/dist/check/fixtures/tenancy-adapters.d.ts.map +1 -0
  62. package/dist/check/fixtures/tenancy-adapters.js +10 -0
  63. package/dist/check/fixtures/tenancy-adapters.js.map +1 -0
  64. package/dist/check/fixtures/tenancy-bypass.d.ts +2 -21
  65. package/dist/check/fixtures/tenancy-bypass.d.ts.map +1 -1
  66. package/dist/check/fixtures/tenancy-bypass.js +2 -10
  67. package/dist/check/fixtures/tenancy-bypass.js.map +1 -1
  68. package/dist/check/fixtures/tenancy-fixtures.d.ts.map +1 -1
  69. package/dist/check/fixtures/tenancy-fixtures.js +2 -0
  70. package/dist/check/fixtures/tenancy-fixtures.js.map +1 -1
  71. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  72. package/dist/check/fixtures/tree-fixtures.js +17 -0
  73. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  74. package/dist/check/fixtures/value-object-file-fixtures.d.ts.map +1 -1
  75. package/dist/check/fixtures/value-object-file-fixtures.js +2 -0
  76. package/dist/check/fixtures/value-object-file-fixtures.js.map +1 -1
  77. package/dist/check/language/add-glossary-rows.d.ts +1 -0
  78. package/dist/check/language/add-glossary-rows.d.ts.map +1 -1
  79. package/dist/check/language/add-glossary-rows.js +7 -2
  80. package/dist/check/language/add-glossary-rows.js.map +1 -1
  81. package/dist/check/language/glossaries.d.ts +8 -2
  82. package/dist/check/language/glossaries.d.ts.map +1 -1
  83. package/dist/check/language/glossaries.js +28 -18
  84. package/dist/check/language/glossaries.js.map +1 -1
  85. package/dist/check/language/held-by-glossary.d.ts +8 -0
  86. package/dist/check/language/held-by-glossary.d.ts.map +1 -0
  87. package/dist/check/language/held-by-glossary.js +19 -0
  88. package/dist/check/language/held-by-glossary.js.map +1 -0
  89. package/dist/check/language/technical-words-of.d.ts +9 -0
  90. package/dist/check/language/technical-words-of.d.ts.map +1 -0
  91. package/dist/check/language/technical-words-of.js +15 -0
  92. package/dist/check/language/technical-words-of.js.map +1 -0
  93. package/dist/check/privacy/prisma-columns-of.d.ts +5 -5
  94. package/dist/check/privacy/prisma-columns-of.d.ts.map +1 -1
  95. package/dist/check/privacy/prisma-columns-of.js +25 -12
  96. package/dist/check/privacy/prisma-columns-of.js.map +1 -1
  97. package/dist/check/project/beside-the-sources.js +1 -1
  98. package/dist/check/project/beside-the-sources.js.map +1 -1
  99. package/dist/check/project/git-ignored.d.ts +11 -0
  100. package/dist/check/project/git-ignored.d.ts.map +1 -0
  101. package/dist/check/project/git-ignored.js +26 -0
  102. package/dist/check/project/git-ignored.js.map +1 -0
  103. package/dist/check/project/load-loose-project.js +1 -1
  104. package/dist/check/project/load-loose-project.js.map +1 -1
  105. package/dist/check/project/load-project.d.ts.map +1 -1
  106. package/dist/check/project/load-project.js +13 -2
  107. package/dist/check/project/load-project.js.map +1 -1
  108. package/dist/check/project/locate.js +2 -1
  109. package/dist/check/project/locate.js.map +1 -1
  110. package/dist/check/project/walk-directory.d.ts +10 -2
  111. package/dist/check/project/walk-directory.d.ts.map +1 -1
  112. package/dist/check/project/walk-directory.js +9 -4
  113. package/dist/check/project/walk-directory.js.map +1 -1
  114. package/dist/check/rules/governance-recorded-deviation.js +14 -1
  115. package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
  116. package/dist/check/rules/language-glossary-term.js +38 -18
  117. package/dist/check/rules/language-glossary-term.js.map +1 -1
  118. package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
  119. package/dist/check/rules/language-no-technical-name.js +9 -7
  120. package/dist/check/rules/language-no-technical-name.js.map +1 -1
  121. package/dist/check/rules/privacy-declared-field.d.ts +1 -1
  122. package/dist/check/rules/privacy-declared-field.js +1 -1
  123. package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
  124. package/dist/check/rules/tenancy-scoped-statement.js +8 -6
  125. package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
  126. package/dist/cli-error.d.ts +3 -3
  127. package/dist/cli-error.d.ts.map +1 -1
  128. package/dist/cli-error.js +4 -3
  129. package/dist/cli-error.js.map +1 -1
  130. package/dist/commands/acceptance.js +6 -2
  131. package/dist/commands/acceptance.js.map +1 -1
  132. package/dist/commands/context-layout.d.ts.map +1 -1
  133. package/dist/commands/context-layout.js +3 -2
  134. package/dist/commands/context-layout.js.map +1 -1
  135. package/dist/commands/depcruise-config.d.ts.map +1 -1
  136. package/dist/commands/depcruise-config.js +13 -5
  137. package/dist/commands/depcruise-config.js.map +1 -1
  138. package/dist/commands/docs.d.ts.map +1 -1
  139. package/dist/commands/docs.js +2 -4
  140. package/dist/commands/docs.js.map +1 -1
  141. package/dist/commands/doctor.d.ts.map +1 -1
  142. package/dist/commands/doctor.js +2 -0
  143. package/dist/commands/doctor.js.map +1 -1
  144. package/dist/commands/generate.d.ts +4 -0
  145. package/dist/commands/generate.d.ts.map +1 -1
  146. package/dist/commands/generate.js +16 -6
  147. package/dist/commands/generate.js.map +1 -1
  148. package/dist/commands/init.d.ts.map +1 -1
  149. package/dist/commands/init.js +10 -2
  150. package/dist/commands/init.js.map +1 -1
  151. package/dist/commands/move-to-module.d.ts.map +1 -1
  152. package/dist/commands/move-to-module.js +3 -2
  153. package/dist/commands/move-to-module.js.map +1 -1
  154. package/dist/commands/plan-waves.d.ts +2 -1
  155. package/dist/commands/plan-waves.d.ts.map +1 -1
  156. package/dist/commands/plan-waves.js +28 -2
  157. package/dist/commands/plan-waves.js.map +1 -1
  158. package/dist/commands/print-report.d.ts +3 -3
  159. package/dist/commands/print-report.d.ts.map +1 -1
  160. package/dist/commands/print-report.js +10 -3
  161. package/dist/commands/print-report.js.map +1 -1
  162. package/dist/commands/sdk.js +1 -2
  163. package/dist/commands/sdk.js.map +1 -1
  164. package/dist/config/config.d.ts +7 -0
  165. package/dist/config/config.d.ts.map +1 -1
  166. package/dist/config/context-tenancies.d.ts +7 -0
  167. package/dist/config/context-tenancies.d.ts.map +1 -0
  168. package/dist/config/context-tenancies.js +7 -0
  169. package/dist/config/context-tenancies.js.map +1 -0
  170. package/dist/config/index.d.ts +2 -0
  171. package/dist/config/index.d.ts.map +1 -1
  172. package/dist/config/index.js +2 -0
  173. package/dist/config/index.js.map +1 -1
  174. package/dist/config/is-control-plane.d.ts +4 -0
  175. package/dist/config/is-control-plane.d.ts.map +1 -0
  176. package/dist/config/is-control-plane.js +5 -0
  177. package/dist/config/is-control-plane.js.map +1 -0
  178. package/dist/config/parse-context.d.ts.map +1 -1
  179. package/dist/config/parse-context.js +1 -0
  180. package/dist/config/parse-context.js.map +1 -1
  181. package/dist/config/serialize-config.js +1 -0
  182. package/dist/config/serialize-config.js.map +1 -1
  183. package/dist/dev/refresh-declarations.d.ts.map +1 -1
  184. package/dist/dev/refresh-declarations.js +2 -1
  185. package/dist/dev/refresh-declarations.js.map +1 -1
  186. package/dist/doctor/diagnose.d.ts +2 -1
  187. package/dist/doctor/diagnose.d.ts.map +1 -1
  188. package/dist/doctor/diagnose.js +4 -1
  189. package/dist/doctor/diagnose.js.map +1 -1
  190. package/dist/doctor/doctor-finding.d.ts +1 -1
  191. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  192. package/dist/doctor/format-diagnosis.js +25 -2
  193. package/dist/doctor/format-diagnosis.js.map +1 -1
  194. package/dist/doctor/install-script-findings.d.ts +11 -0
  195. package/dist/doctor/install-script-findings.d.ts.map +1 -0
  196. package/dist/doctor/install-script-findings.js +86 -0
  197. package/dist/doctor/install-script-findings.js.map +1 -0
  198. package/dist/doctor/installed-from.d.ts +3 -0
  199. package/dist/doctor/installed-from.d.ts.map +1 -0
  200. package/dist/doctor/installed-from.js +15 -0
  201. package/dist/doctor/installed-from.js.map +1 -0
  202. package/dist/doctor/override-findings.d.ts.map +1 -1
  203. package/dist/doctor/override-findings.js +1 -11
  204. package/dist/doctor/override-findings.js.map +1 -1
  205. package/dist/doctor/permission-findings.d.ts.map +1 -1
  206. package/dist/doctor/permission-findings.js +15 -2
  207. package/dist/doctor/permission-findings.js.map +1 -1
  208. package/dist/generate/concept.d.ts +2 -2
  209. package/dist/generate/concept.js +3 -3
  210. package/dist/generate/concept.js.map +1 -1
  211. package/dist/generate/context-vars.d.ts +5 -2
  212. package/dist/generate/context-vars.d.ts.map +1 -1
  213. package/dist/generate/context-vars.js +6 -3
  214. package/dist/generate/context-vars.js.map +1 -1
  215. package/dist/generate/errors/codes-of-context.d.ts +1 -1
  216. package/dist/generate/errors/codes-of-context.d.ts.map +1 -1
  217. package/dist/generate/errors/codes-of-context.js +10 -2
  218. package/dist/generate/errors/codes-of-context.js.map +1 -1
  219. package/dist/generate/errors/refusal-class-name.d.ts +1 -1
  220. package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
  221. package/dist/generate/errors/refusal-class-name.js +2 -2
  222. package/dist/generate/errors/refusal-class-name.js.map +1 -1
  223. package/dist/generate/glossary-of.d.ts +5 -0
  224. package/dist/generate/glossary-of.d.ts.map +1 -0
  225. package/dist/generate/glossary-of.js +6 -0
  226. package/dist/generate/glossary-of.js.map +1 -0
  227. package/dist/generate/is-shared-kernel.d.ts +4 -0
  228. package/dist/generate/is-shared-kernel.d.ts.map +1 -0
  229. package/dist/generate/is-shared-kernel.js +5 -0
  230. package/dist/generate/is-shared-kernel.js.map +1 -0
  231. package/dist/generate/kind.d.ts +11 -6
  232. package/dist/generate/kind.d.ts.map +1 -1
  233. package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
  234. package/dist/generate/kinds/acceptance-kind.js +1 -0
  235. package/dist/generate/kinds/acceptance-kind.js.map +1 -1
  236. package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
  237. package/dist/generate/kinds/acl-kind.js +1 -0
  238. package/dist/generate/kinds/acl-kind.js.map +1 -1
  239. package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
  240. package/dist/generate/kinds/adapter-kind.js +57 -7
  241. package/dist/generate/kinds/adapter-kind.js.map +1 -1
  242. package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
  243. package/dist/generate/kinds/adr-kind.js +1 -0
  244. package/dist/generate/kinds/adr-kind.js.map +1 -1
  245. package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
  246. package/dist/generate/kinds/aggregate-kind.js +1 -0
  247. package/dist/generate/kinds/aggregate-kind.js.map +1 -1
  248. package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
  249. package/dist/generate/kinds/background-job-kind.js +1 -0
  250. package/dist/generate/kinds/background-job-kind.js.map +1 -1
  251. package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
  252. package/dist/generate/kinds/builder-kind.js +1 -0
  253. package/dist/generate/kinds/builder-kind.js.map +1 -1
  254. package/dist/generate/kinds/command-kind.d.ts.map +1 -1
  255. package/dist/generate/kinds/command-kind.js +1 -0
  256. package/dist/generate/kinds/command-kind.js.map +1 -1
  257. package/dist/generate/kinds/context-kind.d.ts.map +1 -1
  258. package/dist/generate/kinds/context-kind.js +3 -1
  259. package/dist/generate/kinds/context-kind.js.map +1 -1
  260. package/dist/generate/kinds/context-request.d.ts +2 -0
  261. package/dist/generate/kinds/context-request.d.ts.map +1 -1
  262. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  263. package/dist/generate/kinds/declare-storage.js +19 -9
  264. package/dist/generate/kinds/declare-storage.js.map +1 -1
  265. package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
  266. package/dist/generate/kinds/domain-error-kind.js +7 -4
  267. package/dist/generate/kinds/domain-error-kind.js.map +1 -1
  268. package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
  269. package/dist/generate/kinds/domain-event-kind.js +1 -0
  270. package/dist/generate/kinds/domain-event-kind.js.map +1 -1
  271. package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
  272. package/dist/generate/kinds/domain-service-kind.js +1 -0
  273. package/dist/generate/kinds/domain-service-kind.js.map +1 -1
  274. package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
  275. package/dist/generate/kinds/e2e-kind.js +1 -0
  276. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  277. package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
  278. package/dist/generate/kinds/entity-kind.js +1 -0
  279. package/dist/generate/kinds/entity-kind.js.map +1 -1
  280. package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
  281. package/dist/generate/kinds/erasure-handler-kind.js +1 -0
  282. package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
  283. package/dist/generate/kinds/error-kind.d.ts.map +1 -1
  284. package/dist/generate/kinds/error-kind.js +6 -5
  285. package/dist/generate/kinds/error-kind.js.map +1 -1
  286. package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
  287. package/dist/generate/kinds/event-handler-kind.js +1 -0
  288. package/dist/generate/kinds/event-handler-kind.js.map +1 -1
  289. package/dist/generate/kinds/extend-event-sourced-aggregate.d.ts +4 -2
  290. package/dist/generate/kinds/extend-event-sourced-aggregate.d.ts.map +1 -1
  291. package/dist/generate/kinds/extend-event-sourced-aggregate.js +45 -10
  292. package/dist/generate/kinds/extend-event-sourced-aggregate.js.map +1 -1
  293. package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
  294. package/dist/generate/kinds/file-upload-kind.js +1 -0
  295. package/dist/generate/kinds/file-upload-kind.js.map +1 -1
  296. package/dist/generate/kinds/form-kind.d.ts.map +1 -1
  297. package/dist/generate/kinds/form-kind.js +1 -0
  298. package/dist/generate/kinds/form-kind.js.map +1 -1
  299. package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
  300. package/dist/generate/kinds/gateway-kind.js +1 -0
  301. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  302. package/dist/generate/kinds/generate-context.d.ts.map +1 -1
  303. package/dist/generate/kinds/generate-context.js +14 -0
  304. package/dist/generate/kinds/generate-context.js.map +1 -1
  305. package/dist/generate/kinds/generate-repository.js +11 -7
  306. package/dist/generate/kinds/generate-repository.js.map +1 -1
  307. package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
  308. package/dist/generate/kinds/guard-kind.js +1 -0
  309. package/dist/generate/kinds/guard-kind.js.map +1 -1
  310. package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
  311. package/dist/generate/kinds/integration-event-kind.js +1 -0
  312. package/dist/generate/kinds/integration-event-kind.js.map +1 -1
  313. package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
  314. package/dist/generate/kinds/integration-handler-kind.js +1 -0
  315. package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
  316. package/dist/generate/kinds/job-kind.d.ts.map +1 -1
  317. package/dist/generate/kinds/job-kind.js +1 -0
  318. package/dist/generate/kinds/job-kind.js.map +1 -1
  319. package/dist/generate/kinds/module-kind.d.ts.map +1 -1
  320. package/dist/generate/kinds/module-kind.js +1 -0
  321. package/dist/generate/kinds/module-kind.js.map +1 -1
  322. package/dist/generate/kinds/plan-vars.d.ts.map +1 -1
  323. package/dist/generate/kinds/plan-vars.js +5 -2
  324. package/dist/generate/kinds/plan-vars.js.map +1 -1
  325. package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
  326. package/dist/generate/kinds/policy-kind.js +1 -0
  327. package/dist/generate/kinds/policy-kind.js.map +1 -1
  328. package/dist/generate/kinds/port-kind.d.ts.map +1 -1
  329. package/dist/generate/kinds/port-kind.js +4 -2
  330. package/dist/generate/kinds/port-kind.js.map +1 -1
  331. package/dist/generate/kinds/process-kind.d.ts.map +1 -1
  332. package/dist/generate/kinds/process-kind.js +1 -0
  333. package/dist/generate/kinds/process-kind.js.map +1 -1
  334. package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
  335. package/dist/generate/kinds/projection-kind.js +4 -5
  336. package/dist/generate/kinds/projection-kind.js.map +1 -1
  337. package/dist/generate/kinds/property-kind.d.ts.map +1 -1
  338. package/dist/generate/kinds/property-kind.js +1 -0
  339. package/dist/generate/kinds/property-kind.js.map +1 -1
  340. package/dist/generate/kinds/query-kind.d.ts.map +1 -1
  341. package/dist/generate/kinds/query-kind.js +1 -0
  342. package/dist/generate/kinds/query-kind.js.map +1 -1
  343. package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
  344. package/dist/generate/kinds/repository-kind.js +1 -0
  345. package/dist/generate/kinds/repository-kind.js.map +1 -1
  346. package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
  347. package/dist/generate/kinds/representation-kind.js +1 -0
  348. package/dist/generate/kinds/representation-kind.js.map +1 -1
  349. package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
  350. package/dist/generate/kinds/route-group-kind.js +1 -0
  351. package/dist/generate/kinds/route-group-kind.js.map +1 -1
  352. package/dist/generate/kinds/route-kind.d.ts.map +1 -1
  353. package/dist/generate/kinds/route-kind.js +1 -0
  354. package/dist/generate/kinds/route-kind.js.map +1 -1
  355. package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
  356. package/dist/generate/kinds/schema-kind.js +4 -9
  357. package/dist/generate/kinds/schema-kind.js.map +1 -1
  358. package/dist/generate/kinds/service-kind.d.ts.map +1 -1
  359. package/dist/generate/kinds/service-kind.js +1 -0
  360. package/dist/generate/kinds/service-kind.js.map +1 -1
  361. package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
  362. package/dist/generate/kinds/state-machine-kind.js +1 -0
  363. package/dist/generate/kinds/state-machine-kind.js.map +1 -1
  364. package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
  365. package/dist/generate/kinds/test-world-kind.js +1 -0
  366. package/dist/generate/kinds/test-world-kind.js.map +1 -1
  367. package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
  368. package/dist/generate/kinds/value-object-kind.js +5 -4
  369. package/dist/generate/kinds/value-object-kind.js.map +1 -1
  370. package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
  371. package/dist/generate/kinds/vocabulary-kind.js +1 -0
  372. package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
  373. package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
  374. package/dist/generate/kinds/worker-kind.js +1 -0
  375. package/dist/generate/kinds/worker-kind.js.map +1 -1
  376. package/dist/generate/kinds-help.d.ts +2 -0
  377. package/dist/generate/kinds-help.d.ts.map +1 -1
  378. package/dist/generate/kinds-help.js +5 -2
  379. package/dist/generate/kinds-help.js.map +1 -1
  380. package/dist/generate/label.d.ts +4 -1
  381. package/dist/generate/label.d.ts.map +1 -1
  382. package/dist/generate/label.js +24 -3
  383. package/dist/generate/label.js.map +1 -1
  384. package/dist/generate/language-probe.d.ts +16 -0
  385. package/dist/generate/language-probe.d.ts.map +1 -0
  386. package/dist/generate/language-probe.js +2 -0
  387. package/dist/generate/language-probe.js.map +1 -0
  388. package/dist/generate/learn-terms.d.ts.map +1 -1
  389. package/dist/generate/learn-terms.js +7 -1
  390. package/dist/generate/learn-terms.js.map +1 -1
  391. package/dist/generate/open-scope.d.ts +7 -2
  392. package/dist/generate/open-scope.d.ts.map +1 -1
  393. package/dist/generate/open-scope.js +14 -2
  394. package/dist/generate/open-scope.js.map +1 -1
  395. package/dist/generate/parse-terms.d.ts +7 -1
  396. package/dist/generate/parse-terms.d.ts.map +1 -1
  397. package/dist/generate/parse-terms.js +14 -4
  398. package/dist/generate/parse-terms.js.map +1 -1
  399. package/dist/generate/place-generated-files.d.ts +2 -2
  400. package/dist/generate/place-generated-files.d.ts.map +1 -1
  401. package/dist/generate/place-generated-files.js +7 -7
  402. package/dist/generate/place-generated-files.js.map +1 -1
  403. package/dist/generate/refuse-shared-writes.d.ts +2 -2
  404. package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
  405. package/dist/generate/refuse-shared-writes.js +25 -4
  406. package/dist/generate/refuse-shared-writes.js.map +1 -1
  407. package/dist/generate/shared-kernel-placement.d.ts +9 -0
  408. package/dist/generate/shared-kernel-placement.d.ts.map +1 -0
  409. package/dist/generate/shared-kernel-placement.js +20 -0
  410. package/dist/generate/shared-kernel-placement.js.map +1 -0
  411. package/dist/generate/shared-kernel-scope.d.ts +11 -0
  412. package/dist/generate/shared-kernel-scope.d.ts.map +1 -0
  413. package/dist/generate/shared-kernel-scope.js +12 -0
  414. package/dist/generate/shared-kernel-scope.js.map +1 -0
  415. package/dist/generate/shared-writes.d.ts.map +1 -1
  416. package/dist/generate/shared-writes.js +26 -2
  417. package/dist/generate/shared-writes.js.map +1 -1
  418. package/dist/generate/spoken-in-language.d.ts +4 -3
  419. package/dist/generate/spoken-in-language.d.ts.map +1 -1
  420. package/dist/generate/spoken-in-language.js +19 -14
  421. package/dist/generate/spoken-in-language.js.map +1 -1
  422. package/dist/generate/usage-of.d.ts +6 -0
  423. package/dist/generate/usage-of.d.ts.map +1 -0
  424. package/dist/generate/usage-of.js +7 -0
  425. package/dist/generate/usage-of.js.map +1 -0
  426. package/dist/generate/vars.d.ts.map +1 -1
  427. package/dist/generate/vars.js +9 -1
  428. package/dist/generate/vars.js.map +1 -1
  429. package/dist/help/notes.d.ts +1 -1
  430. package/dist/help/notes.d.ts.map +1 -1
  431. package/dist/help/notes.js +31 -8
  432. package/dist/help/notes.js.map +1 -1
  433. package/dist/help/reference-text.d.ts.map +1 -1
  434. package/dist/help/reference-text.js +2 -1
  435. package/dist/help/reference-text.js.map +1 -1
  436. package/dist/help/usage.d.ts +1 -1
  437. package/dist/help/usage.d.ts.map +1 -1
  438. package/dist/help/usage.js +1 -1
  439. package/dist/init/agent-permissions.d.ts +7 -0
  440. package/dist/init/agent-permissions.d.ts.map +1 -1
  441. package/dist/init/agent-permissions.js +19 -8
  442. package/dist/init/agent-permissions.js.map +1 -1
  443. package/dist/init/files/persistence-files.d.ts.map +1 -1
  444. package/dist/init/files/persistence-files.js +2 -1
  445. package/dist/init/files/persistence-files.js.map +1 -1
  446. package/dist/init/first-install-note.d.ts +9 -0
  447. package/dist/init/first-install-note.d.ts.map +1 -0
  448. package/dist/init/first-install-note.js +52 -0
  449. package/dist/init/first-install-note.js.map +1 -0
  450. package/dist/init/managed-settings-note.d.ts.map +1 -1
  451. package/dist/init/managed-settings-note.js +1 -0
  452. package/dist/init/managed-settings-note.js.map +1 -1
  453. package/dist/init/manifest/allow-builds-block.d.ts +3 -0
  454. package/dist/init/manifest/allow-builds-block.d.ts.map +1 -0
  455. package/dist/init/manifest/allow-builds-block.js +5 -0
  456. package/dist/init/manifest/allow-builds-block.js.map +1 -0
  457. package/dist/init/manifest/allow-builds-entries.d.ts +8 -0
  458. package/dist/init/manifest/allow-builds-entries.d.ts.map +1 -0
  459. package/dist/init/manifest/allow-builds-entries.js +8 -0
  460. package/dist/init/manifest/allow-builds-entries.js.map +1 -0
  461. package/dist/init/manifest/database-scripts.d.ts.map +1 -1
  462. package/dist/init/manifest/database-scripts.js +4 -2
  463. package/dist/init/manifest/database-scripts.js.map +1 -1
  464. package/dist/init/manifest/install-scripts-of.d.ts +18 -0
  465. package/dist/init/manifest/install-scripts-of.d.ts.map +1 -0
  466. package/dist/init/manifest/install-scripts-of.js +25 -0
  467. package/dist/init/manifest/install-scripts-of.js.map +1 -0
  468. package/dist/init/manifest/names-package.d.ts +3 -0
  469. package/dist/init/manifest/names-package.d.ts.map +1 -0
  470. package/dist/init/manifest/names-package.js +5 -0
  471. package/dist/init/manifest/names-package.js.map +1 -0
  472. package/dist/init/manifest/prisma-client-script.d.ts +3 -0
  473. package/dist/init/manifest/prisma-client-script.d.ts.map +1 -0
  474. package/dist/init/manifest/prisma-client-script.js +5 -0
  475. package/dist/init/manifest/prisma-client-script.js.map +1 -0
  476. package/dist/init/manifest/versions.js +24 -24
  477. package/dist/init/manifest/write-install-scripts.d.ts +10 -0
  478. package/dist/init/manifest/write-install-scripts.d.ts.map +1 -0
  479. package/dist/init/manifest/write-install-scripts.js +78 -0
  480. package/dist/init/manifest/write-install-scripts.js.map +1 -0
  481. package/dist/init/manifest/write-manifest.d.ts.map +1 -1
  482. package/dist/init/manifest/write-manifest.js +9 -1
  483. package/dist/init/manifest/write-manifest.js.map +1 -1
  484. package/dist/init/merge-sandbox.d.ts +3 -1
  485. package/dist/init/merge-sandbox.d.ts.map +1 -1
  486. package/dist/init/merge-sandbox.js +25 -7
  487. package/dist/init/merge-sandbox.js.map +1 -1
  488. package/dist/init/regulated-sandbox.d.ts +6 -4
  489. package/dist/init/regulated-sandbox.d.ts.map +1 -1
  490. package/dist/init/regulated-sandbox.js +11 -5
  491. package/dist/init/regulated-sandbox.js.map +1 -1
  492. package/dist/init/run-init.d.ts +2 -0
  493. package/dist/init/run-init.d.ts.map +1 -1
  494. package/dist/init/run-init.js +47 -7
  495. package/dist/init/run-init.js.map +1 -1
  496. package/dist/init/stack-sandbox.d.ts +9 -0
  497. package/dist/init/stack-sandbox.d.ts.map +1 -0
  498. package/dist/init/stack-sandbox.js +28 -0
  499. package/dist/init/stack-sandbox.js.map +1 -0
  500. package/dist/init/write-agent-settings.d.ts.map +1 -1
  501. package/dist/init/write-agent-settings.js +26 -16
  502. package/dist/init/write-agent-settings.js.map +1 -1
  503. package/dist/merge/abort-merge.d.ts.map +1 -1
  504. package/dist/merge/abort-merge.js +38 -6
  505. package/dist/merge/abort-merge.js.map +1 -1
  506. package/dist/merge/commit-merge.d.ts.map +1 -1
  507. package/dist/merge/commit-merge.js +1 -16
  508. package/dist/merge/commit-merge.js.map +1 -1
  509. package/dist/merge/continue-merge.d.ts.map +1 -1
  510. package/dist/merge/continue-merge.js +2 -0
  511. package/dist/merge/continue-merge.js.map +1 -1
  512. package/dist/merge/ensure-mergeable.d.ts.map +1 -1
  513. package/dist/merge/ensure-mergeable.js +15 -0
  514. package/dist/merge/ensure-mergeable.js.map +1 -1
  515. package/dist/merge/ensure-writable.d.ts +9 -0
  516. package/dist/merge/ensure-writable.d.ts.map +1 -0
  517. package/dist/merge/ensure-writable.js +51 -0
  518. package/dist/merge/ensure-writable.js.map +1 -0
  519. package/dist/merge/is-merge-path.d.ts +4 -0
  520. package/dist/merge/is-merge-path.d.ts.map +1 -0
  521. package/dist/merge/is-merge-path.js +18 -0
  522. package/dist/merge/is-merge-path.js.map +1 -0
  523. package/dist/merge/is-sandbox-mask.d.ts +4 -0
  524. package/dist/merge/is-sandbox-mask.d.ts.map +1 -0
  525. package/dist/merge/is-sandbox-mask.js +5 -0
  526. package/dist/merge/is-sandbox-mask.js.map +1 -0
  527. package/dist/merge/merge-trunk.d.ts.map +1 -1
  528. package/dist/merge/merge-trunk.js +4 -0
  529. package/dist/merge/merge-trunk.js.map +1 -1
  530. package/dist/merge/modified-since-staged.d.ts +4 -0
  531. package/dist/merge/modified-since-staged.d.ts.map +1 -0
  532. package/dist/merge/modified-since-staged.js +8 -0
  533. package/dist/merge/modified-since-staged.js.map +1 -0
  534. package/dist/merge/stage-rewritten.d.ts +8 -0
  535. package/dist/merge/stage-rewritten.d.ts.map +1 -0
  536. package/dist/merge/stage-rewritten.js +15 -0
  537. package/dist/merge/stage-rewritten.js.map +1 -0
  538. package/dist/naming/parse-concept-name.d.ts +5 -3
  539. package/dist/naming/parse-concept-name.d.ts.map +1 -1
  540. package/dist/naming/parse-concept-name.js +6 -10
  541. package/dist/naming/parse-concept-name.js.map +1 -1
  542. package/dist/plan/format-plan.d.ts +2 -1
  543. package/dist/plan/format-plan.d.ts.map +1 -1
  544. package/dist/plan/format-plan.js +20 -2
  545. package/dist/plan/format-plan.js.map +1 -1
  546. package/dist/plan/plan-waves.d.ts.map +1 -1
  547. package/dist/plan/plan-waves.js +2 -1
  548. package/dist/plan/plan-waves.js.map +1 -1
  549. package/dist/plan/planned-commands.d.ts +10 -0
  550. package/dist/plan/planned-commands.d.ts.map +1 -0
  551. package/dist/plan/planned-commands.js +13 -0
  552. package/dist/plan/planned-commands.js.map +1 -0
  553. package/dist/plan/planned-words.d.ts +27 -0
  554. package/dist/plan/planned-words.d.ts.map +1 -0
  555. package/dist/plan/planned-words.js +170 -0
  556. package/dist/plan/planned-words.js.map +1 -0
  557. package/dist/plan/wave-plan.d.ts +11 -1
  558. package/dist/plan/wave-plan.d.ts.map +1 -1
  559. package/dist/presets/apply-preset.d.ts.map +1 -1
  560. package/dist/presets/apply-preset.js +6 -4
  561. package/dist/presets/apply-preset.js.map +1 -1
  562. package/dist/presets/identity-preset.d.ts.map +1 -1
  563. package/dist/presets/identity-preset.js +1 -4
  564. package/dist/presets/identity-preset.js.map +1 -1
  565. package/dist/presets/lay-out-prisma-models.d.ts +4 -4
  566. package/dist/presets/lay-out-prisma-models.d.ts.map +1 -1
  567. package/dist/presets/lay-out-prisma-models.js +15 -12
  568. package/dist/presets/lay-out-prisma-models.js.map +1 -1
  569. package/dist/presets/outside-the-tenancy.d.ts +10 -0
  570. package/dist/presets/outside-the-tenancy.d.ts.map +1 -0
  571. package/dist/presets/outside-the-tenancy.js +31 -0
  572. package/dist/presets/outside-the-tenancy.js.map +1 -0
  573. package/dist/presets/preset-decision.d.ts +1 -1
  574. package/dist/presets/preset-decision.js +1 -1
  575. package/dist/presets/preset.d.ts +1 -1
  576. package/dist/prisma-schema/index.d.ts +11 -0
  577. package/dist/prisma-schema/index.d.ts.map +1 -0
  578. package/dist/prisma-schema/index.js +11 -0
  579. package/dist/prisma-schema/index.js.map +1 -0
  580. package/dist/prisma-schema/keeps-single-prisma-schema.d.ts +7 -0
  581. package/dist/prisma-schema/keeps-single-prisma-schema.d.ts.map +1 -0
  582. package/dist/prisma-schema/keeps-single-prisma-schema.js +11 -0
  583. package/dist/prisma-schema/keeps-single-prisma-schema.js.map +1 -0
  584. package/dist/prisma-schema/prisma-blocks.d.ts +9 -0
  585. package/dist/prisma-schema/prisma-blocks.d.ts.map +1 -0
  586. package/dist/prisma-schema/prisma-blocks.js +15 -0
  587. package/dist/prisma-schema/prisma-blocks.js.map +1 -0
  588. package/dist/prisma-schema/prisma-main-schema.d.ts +3 -0
  589. package/dist/prisma-schema/prisma-main-schema.d.ts.map +1 -0
  590. package/dist/prisma-schema/prisma-main-schema.js +4 -0
  591. package/dist/prisma-schema/prisma-main-schema.js.map +1 -0
  592. package/dist/prisma-schema/prisma-schema-folder.d.ts +3 -0
  593. package/dist/prisma-schema/prisma-schema-folder.d.ts.map +1 -0
  594. package/dist/prisma-schema/prisma-schema-folder.js +3 -0
  595. package/dist/prisma-schema/prisma-schema-folder.js.map +1 -0
  596. package/dist/prisma-schema/prisma-schema-of.d.ts +7 -0
  597. package/dist/prisma-schema/prisma-schema-of.d.ts.map +1 -0
  598. package/dist/prisma-schema/prisma-schema-of.js +10 -0
  599. package/dist/prisma-schema/prisma-schema-of.js.map +1 -0
  600. package/dist/prisma-schema/schema-at.d.ts +4 -0
  601. package/dist/prisma-schema/schema-at.d.ts.map +1 -0
  602. package/dist/prisma-schema/schema-at.js +5 -0
  603. package/dist/prisma-schema/schema-at.js.map +1 -0
  604. package/dist/prisma-schema/schema-of-context.d.ts +3 -0
  605. package/dist/prisma-schema/schema-of-context.d.ts.map +1 -0
  606. package/dist/prisma-schema/schema-of-context.js +5 -0
  607. package/dist/prisma-schema/schema-of-context.js.map +1 -0
  608. package/dist/prisma-schema/single-prisma-schema-found.d.ts +3 -0
  609. package/dist/prisma-schema/single-prisma-schema-found.d.ts.map +1 -0
  610. package/dist/prisma-schema/single-prisma-schema-found.js +7 -0
  611. package/dist/prisma-schema/single-prisma-schema-found.js.map +1 -0
  612. package/dist/prisma-schema/single-prisma-schema-steps.d.ts +6 -0
  613. package/dist/prisma-schema/single-prisma-schema-steps.d.ts.map +1 -0
  614. package/dist/prisma-schema/single-prisma-schema-steps.js +25 -0
  615. package/dist/prisma-schema/single-prisma-schema-steps.js.map +1 -0
  616. package/dist/prisma-schema/single-prisma-schema.d.ts +3 -0
  617. package/dist/prisma-schema/single-prisma-schema.d.ts.map +1 -0
  618. package/dist/prisma-schema/single-prisma-schema.js +3 -0
  619. package/dist/prisma-schema/single-prisma-schema.js.map +1 -0
  620. package/dist/progress/read-remaining.d.ts.map +1 -1
  621. package/dist/progress/read-remaining.js +49 -6
  622. package/dist/progress/read-remaining.js.map +1 -1
  623. package/dist/slice/plan-staging.d.ts +7 -4
  624. package/dist/slice/plan-staging.d.ts.map +1 -1
  625. package/dist/slice/plan-staging.js +23 -5
  626. package/dist/slice/plan-staging.js.map +1 -1
  627. package/dist/slice/staging-scope.d.ts +9 -0
  628. package/dist/slice/staging-scope.d.ts.map +1 -0
  629. package/dist/slice/staging-scope.js +2 -0
  630. package/dist/slice/staging-scope.js.map +1 -0
  631. package/dist/slice/storage-of-slice.d.ts +14 -0
  632. package/dist/slice/storage-of-slice.d.ts.map +1 -0
  633. package/dist/slice/storage-of-slice.js +79 -0
  634. package/dist/slice/storage-of-slice.js.map +1 -0
  635. package/dist/slice/verify-slice.d.ts.map +1 -1
  636. package/dist/slice/verify-slice.js +3 -1
  637. package/dist/slice/verify-slice.js.map +1 -1
  638. package/dist/stack/audit-vars.js +1 -1
  639. package/dist/stack/audit-vars.js.map +1 -1
  640. package/dist/version.d.ts +1 -1
  641. package/dist/version.js +1 -1
  642. package/dist/worker/briefing-of.d.ts.map +1 -1
  643. package/dist/worker/briefing-of.js +7 -0
  644. package/dist/worker/briefing-of.js.map +1 -1
  645. package/dist/worker/progress-of.d.ts.map +1 -1
  646. package/dist/worker/progress-of.js +4 -1
  647. package/dist/worker/progress-of.js.map +1 -1
  648. package/dist/workspace/cannot-write.d.ts +7 -0
  649. package/dist/workspace/cannot-write.d.ts.map +1 -0
  650. package/dist/workspace/cannot-write.js +36 -0
  651. package/dist/workspace/cannot-write.js.map +1 -0
  652. package/dist/workspace/error-code-of.d.ts +3 -0
  653. package/dist/workspace/error-code-of.d.ts.map +1 -0
  654. package/dist/workspace/error-code-of.js +5 -0
  655. package/dist/workspace/error-code-of.js.map +1 -0
  656. package/dist/workspace/exit-code-of.d.ts +6 -0
  657. package/dist/workspace/exit-code-of.d.ts.map +1 -0
  658. package/dist/workspace/exit-code-of.js +7 -0
  659. package/dist/workspace/exit-code-of.js.map +1 -0
  660. package/dist/workspace/index.d.ts +2 -0
  661. package/dist/workspace/index.d.ts.map +1 -1
  662. package/dist/workspace/index.js +2 -0
  663. package/dist/workspace/index.js.map +1 -1
  664. package/dist/workspace/is-file-or-absent.d.ts +3 -0
  665. package/dist/workspace/is-file-or-absent.d.ts.map +1 -0
  666. package/dist/workspace/is-file-or-absent.js +11 -0
  667. package/dist/workspace/is-file-or-absent.js.map +1 -0
  668. package/dist/workspace/prune-emptied.d.ts +3 -0
  669. package/dist/workspace/prune-emptied.d.ts.map +1 -0
  670. package/dist/workspace/prune-emptied.js +12 -0
  671. package/dist/workspace/prune-emptied.js.map +1 -0
  672. package/dist/workspace/tell-unwritable.d.ts +9 -0
  673. package/dist/workspace/tell-unwritable.d.ts.map +1 -0
  674. package/dist/workspace/tell-unwritable.js +10 -0
  675. package/dist/workspace/tell-unwritable.js.map +1 -0
  676. package/dist/workspace/workspace-report.d.ts +3 -0
  677. package/dist/workspace/workspace-report.d.ts.map +1 -1
  678. package/dist/workspace/workspace.d.ts +15 -4
  679. package/dist/workspace/workspace.d.ts.map +1 -1
  680. package/dist/workspace/workspace.js +47 -27
  681. package/dist/workspace/workspace.js.map +1 -1
  682. package/dist/workspace/write-if-allowed.d.ts +3 -0
  683. package/dist/workspace/write-if-allowed.d.ts.map +1 -0
  684. package/dist/workspace/write-if-allowed.js +20 -0
  685. package/dist/workspace/write-if-allowed.js.map +1 -0
  686. package/package.json +4 -4
  687. package/templates/adapter/simulated.declared.ts.tpl +7 -0
  688. package/templates/adapter/simulated.spec.ts.tpl +12 -0
  689. package/templates/adapter/simulated.ts.tpl +5 -0
  690. package/templates/adapter/simulated.wiring.tsyringe.tpl +5 -0
  691. package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -0
  692. package/templates/context/CONTEXT.md.tpl +1 -1
  693. package/templates/init/README.md.tpl +1 -1
  694. package/templates/init/platform/audit/create-audit.ts.tpl +1 -1
  695. package/templates/init/platform/composition/compose-application.manual.ts.tpl +24 -17
  696. package/templates/init/platform/database/create-client.prisma.ts.tpl +1 -1
  697. package/templates/init/platform/database/open-test-database.prisma.ts.tpl +1 -1
  698. package/templates/init/platform/database/persistence-over.prisma.ts.tpl +2 -2
  699. package/templates/init/platform/database/prisma.config.ts.tpl +2 -1
  700. package/templates/init/platform/database/schema.prisma.tpl +3 -4
  701. package/templates/init/platform/event-sourcing/create-event-sourcing.ts.tpl +1 -1
  702. package/templates/init/pnpm-workspace.yaml +2 -5
  703. package/templates/init/rules/infrastructure.md.tpl +2 -1
  704. package/templates/pipeline/github/actions/setup/action.yml.tpl +1 -1
  705. package/templates/pipeline/gitlab/gitlab-ci.yml.tpl +1 -1
  706. package/templates/pipeline/package-scripts.json +1 -1
  707. package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +0 -3
  708. package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +0 -3
  709. package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +0 -3
  710. package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +0 -3
  711. package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation-tenant-directory.reader.drizzle.ts.tpl +0 -3
  712. package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +0 -3
  713. package/templates/presets/identity/context/infrastructure/persistence/drizzle-search-members-reader.repository.drizzle.ts.tpl +0 -3
  714. package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +0 -3
  715. package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +0 -3
  716. package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +0 -3
  717. package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +0 -3
  718. package/templates/presets/identity/context/infrastructure/persistence/knex-organisation-tenant-directory.reader.knex.ts.tpl +0 -3
  719. package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +0 -3
  720. package/templates/presets/identity/context/infrastructure/persistence/knex-search-members-reader.repository.knex.ts.tpl +0 -3
  721. package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +0 -3
  722. package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +0 -3
  723. package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +0 -3
  724. package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +0 -3
  725. package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation-tenant-directory.reader.prisma.ts.tpl +0 -3
  726. package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +0 -3
  727. package/templates/presets/identity/context/infrastructure/persistence/prisma-search-members-reader.repository.prisma.ts.tpl +0 -3
  728. package/templates/presets/identity/decision.md.tpl +9 -6
  729. package/templates/presets/identity/design.md.tpl +4 -1
  730. package/templates/repository/prisma/schema.prisma.tpl +4 -0
  731. package/templates/shared-kernel/CONTEXT.md.tpl +16 -0
@@ -1 +1 @@
1
- {"version":3,"file":"spoken-in-language.js","sourceRoot":"","sources":["../../src/generate/spoken-in-language.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAa,MAAM,WAAW,CAAC;AAG1D;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,IAAU,EAAE,UAAU,GAAsB,EAAE;IAC3F,IAAI,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QAC1B,OAAO;IACT,CAAC;IAED,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC3B,kBAAkB,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAU;IACtC,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAE3F,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IAED,MAAM,IAAI,QAAQ,CAChB,IA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CAAC,IAAI,CAAC,IAAI,CAAC,2BAA2B,IAAI,mBAAmB,EACxH,UAAU,KAAK,0CAA0C,KAAK,0EAA0E,CACzI,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Kind } from './kind.js';
2
+ /** The option of the kinds that write the files the modules of the model of a context divide. */
3
+ export declare const MODULE_OPTION = "[--module <module>]";
4
+ /** What follows `ddd-ts-kit generate` for a kind, as the help prints it: `--module` on the kinds that take it. */
5
+ export declare function usageOf(kind: Kind): string;
6
+ //# sourceMappingURL=usage-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-of.d.ts","sourceRoot":"","sources":["../../src/generate/usage-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,iGAAiG;AACjG,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD,kHAAkH;AAClH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1C"}
@@ -0,0 +1,7 @@
1
+ /** The option of the kinds that write the files the modules of the model of a context divide. */
2
+ export const MODULE_OPTION = '[--module <module>]';
3
+ /** What follows `ddd-ts-kit generate` for a kind, as the help prints it: `--module` on the kinds that take it. */
4
+ export function usageOf(kind) {
5
+ return kind.writesInModules ? `${kind.usage} ${MODULE_OPTION}` : kind.usage;
6
+ }
7
+ //# sourceMappingURL=usage-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-of.js","sourceRoot":"","sources":["../../src/generate/usage-of.ts"],"names":[],"mappings":"AAEA,iGAAiG;AACjG,MAAM,CAAC,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAEnD,kHAAkH;AAClH,MAAM,UAAU,OAAO,CAAC,IAAU;IAChC,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AAC9E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../src/generate/vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,gFAAgF;AAChF,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,aAAa,CAEpF"}
1
+ {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../src/generate/vars.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,gFAAgF;AAChF,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,aAAa,CAEpF"}
@@ -1,6 +1,14 @@
1
+ import { aliasRoots, contextAlias, directoryAlias } from '../alias/index.js';
1
2
  import { contextVars } from './context-vars.js';
3
+ import { isSharedKernel } from './is-shared-kernel.js';
2
4
  /** The variables of the stack and of the context, plus the ones of the kind. */
3
5
  export function vars(scope, extra) {
4
- return { ...contextVars(scope.config, scope.context), ...extra };
6
+ return { ...contextVars(scope.config, scope.context, aliasOf(scope)), ...extra };
7
+ }
8
+ /** The alias the files of the scope are imported by: the shared kernel is not under the contexts. */
9
+ function aliasOf(scope) {
10
+ return isSharedKernel(scope)
11
+ ? directoryAlias(aliasRoots(scope.config), scope.dir)
12
+ : contextAlias(scope.config, scope.context.kebab);
5
13
  }
6
14
  //# sourceMappingURL=vars.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../src/generate/vars.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,gFAAgF;AAChF,MAAM,UAAU,IAAI,CAAC,KAAY,EAAE,KAAkC;IACnE,OAAO,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../src/generate/vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,gFAAgF;AAChF,MAAM,UAAU,IAAI,CAAC,KAAY,EAAE,KAAkC;IACnE,OAAO,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;AACnF,CAAC;AAED,qGAAqG;AACrG,SAAS,OAAO,CAAC,KAAY;IAC3B,OAAO,cAAc,CAAC,KAAK,CAAC;QAC1B,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QACrD,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACtD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** What a line of the usage cannot say about a command or a flag. */
2
- export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base;\n --run <script> runs that script of the project on them (DDD_TS_KIT_AFFECTED set,\n --passWithNoTests on a partial run) and nothing when nothing that runs changed:\n the pre-push hook tests the contexts its branch reaches\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: when the\n history forks from --base <ref> (origin/main by default), deletes the migrations of the\n branch the base does not have, with their snapshots and journal entries, then generates\n each again on top, in order, under its name (working- dropped outside a worker's\n worktree, a custom one keeping its SQL); when it does not fork, only renames them;\n refused while the journal holds conflict markers, when two of them change the schema,\n or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder\n then put back as it was\n error-factories moves the refusals of a project to one class per refusal (--to named, the default), from\n one class per error or from the factories of one error class per concept: --plan writes\n error-factories.plan.json, where each refusal is given a class (the PascalCase of its\n code, which it keeps) and a factory (for<Concept>), both editable; --apply follows it\n (codes.ts per context, one class file per refusal, specs, every usage, the concept\n classes left empty, \"stack.refusals\" in the config) and lists what it cannot rewrite\n (a bare <Concept>Error.is(error), CodeOf<typeof <Concept>Error>); --to factories moves\n one class per error to static factories on one error class per concept instead\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n platform-folders takes the files of the platform a project generated flat to their folders:\n composition/, observability/ (tracing.ts first), jobs/, auth/authentication/ (who is\n calling), auth/authorization/ (what they may do, whatever the model), the folder of\n the model (auth/roles/, attributes/, relationships/, custom/) and\n audit/search-audit-entries/; every import of them under the source root, test/ and\n scripts/ follows, and the scripts of package.json; a file the kit did not write at\n the root of the platform or of auth/ stays where it is, named, unless --place\n <file>=<folder> (both from the platform) gives it its folder; the generators and\n init --force keep either layout until then\n move-to-module takes files of a context into a module of its model, declared first with generate module,\n each to <module>/<layer>/ and each spec to test/<unit|integration>/<module>/: each <path>\n is a file or a folder of a role or a spec, relative to the context\n (domain/aggregates/waitlist.aggregate.ts, application/commands/join-waitlist,\n infrastructure/persistence/knex-waitlist.repository.ts); the specs named after a moved\n file follow it, every import of them under the source root, test/ and scripts/ follows,\n and the generated declarations are rewritten; what the modules share stays at the level\n of the context: the code list and the permission set at its root, the schema of its\n database, its route groups, guards and shared shapes, its fakes, builders and worlds\n context-layout takes the files of the contexts, or of the ones named, that 0.86 or 0.87 wrote elsewhere to\n their place of today: domain/errors/codes.ts to <context>.codes.ts and\n application/authorization/<context>.permissions.ts to <context>.permissions.ts, at the\n root of the context, and each module of the model from domain/<module>/ and\n application/<module>/ to <module>/domain/ and <module>/application/, with the adapters,\n routes and specs it tells by their imports (a spec by the file it is named after); what\n names no module, or two, is listed and stays; every import of them under the source\n root, test/ and scripts/ follows, what derives from the tree is written again\n (.dependency-cruiser.cjs, the declarations) and knip is told of the code lists where they\n are; the generators keep the code lists and permission sets where they are until then\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; then what\n this checkout lacks to run the project, read without network: the running Node against\n engines.node and .nvmrc, node_modules installed since the lockfile last changed, each\n package of the kit installed at the version of this CLI, the submodules initialised;\n last, the overrides init writes under a dependency that pins a package below a\n security fix, missing or no longer needed once it asks for the fix itself;\n each with its fix; --strict exits 1 while something is missing or the checkout cannot\n run the project, never for a hook this clone has not installed, a Node .nvmrc does not\n name, a lockfile changed since the install or an override no longer needed\n lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning\n as on an error, but on one of a rule of the kit in transition, a new rule that becomes an\n error in the version it names, whose warnings are listed apart; --format and --fix as ESLint\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n mutation the mutation score of the domain and application layers of each context, read from the\n json report the last stryker run wrote (reports/mutation/mutation.json, or --report\n <file>), each held to its \"mutation\" floor of the config (80 and 75 by default): detected over detected and\n undetected, the errors left out, as Stryker counts, the ignored mutants (the texts of\n refusals, the code that runs once when the module loads) shown beside, since the\n score says nothing about them; exits 1 while a layer is under its floor, 2 without\n a report. --survivors lists the mutants no test noticed (file:line, mutator, what the\n code became), each a decision: a test named after the rule, or left alive and said so;\n --changed <ref>, or DDD_TS_KIT_MUTATION_SINCE in the environment as the job of a pull\n request sets it, lists those of the files changed since the git ref alone and exits 0\n whatever the scores, a reading for a change in progress. Runs no test: npm run\n test:mutation runs Stryker, then this; the pipeline runs it every night and, with\n the variable set to the merge base of the change, on a pull request\n plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), each row a row waits for with its status (and its context\n and story when it is of another story or outside the context shown), the rows of other\n stories the planned rows wait for, not done, in a section of their own, the merge order\n and what runs before each merge (merge-trunk --to-land); a cycle, a dependency on an\n unknown id or a row without owner is reported alone, and exits 1\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. A done row also holds to its design: every\n name the ## #<id> section of docs/architecture/reviews/<code>.md cites (a path, a\n PascalCase name, a Class.member, as cited reads them) exists in the tree, or is\n listed under ### Compromises of ## Report in the story file; a name that is neither\n blocks, with its file:line in the review. A commit of the story on the current branch\n (its Slice: trailer, else its message naming a row or the story) that changes a\n migration or a container file (the paths the change-reference hook of the regulated\n profile watches) without a Change: <id> trailer is listed, with its files, and blocks\n under agents.profile regulated or with --strict. Reads only: exits 0 when it can\n close, 1 listing what keeps it open, 2 on a code no row carries or without slices.md\n acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against\n its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and\n criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write\n (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is\n built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,\n a pending one whose rows are done, a locked one changed while its criteria were not);\n --gate written: every slice row and criterion has a written scenario, none is left to\n write, the acceptance is locked (before the code of the story); --gate passing: none is\n pending either (before the story closes); exits 1 while a gate is not met, or, without\n one, on an inconsistency. Never runs a test. --lock writes\n test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of\n each scenario (pending(...), layout and comments aside), refused while a scenario is\n left to write, or while a criterion changed, or a locked scenario changed while its\n criteria did not, without a verdict \"amend\" of the acceptance-judge agent on that very\n version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,\n Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,\n listed for the owner to validate. A fix is a story file with a ## Regression section\n listing the spec files that prove it (- test/unit/<name>.spec.ts): held to the tests of\n those files instead of rows and scenarios, locked and judged the same way, the statement\n of the fix being the criterion\n worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),\n cut from --base <ref> (by default the current branch, refused from a worker's worktree), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>\n briefs those rows of slices.md only, with their rules, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the\n next agent in place, its base the base of the story, and prints its briefing; no\n worktree, branch or install of its own; the agents of a story run one after the other\n story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default\n origin/main from the trunk, else the current branch, refused from the worktree of a\n story), its .ddd-ts-kit/story.json ({ story, base, baseCommit, branch, kind, from }) and\n its clean install; an existing one is kept and the story resumes there; refused when the\n story is open in another worktree; names the other open stories and the contexts their\n rows change; --kind story (the default) or fix (a story built behind locked regression\n specs, listed under ## Regression of its file); --from <file> records where the story\n comes from, an intent of docs/architecture/intents/ (refused unless its header says\n Status: accepted) or an incident record of docs/architecture/incidents/, and the Next:\n line says that the story skill seeds the statement from it while the story file does\n not exist\n worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base\n (by default origin/main from the trunk, else the current branch), and its clean install\n unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,\n whichever worktree it runs from, ignored by git and by the tools of the project; while\n the .gitignore of a project started before does not hold it (init adds it), a worktree\n opens next to the project, ../<project>-<name>; in a project whose config says\n \"worktrees\": \"required\" (what init writes), the guard of the plugin refuses the code of\n a context in the main checkout of the trunk, and in a worktree of .worktrees/ without\n its own node_modules\n story where a story stands, phase by phase: its specification and criteria\n (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section\n per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written\n and locked, its rows done, its acceptance passing, its trunk merged in, its ## Origin\n (From: and Built with:), its ## Report with ### Verification naming npm run verify; and\n the next step; in the worktree of a story, the story is its own; --gate build exits 1\n until the first four are met (the code may start: the guard of the plugin opens the\n contexts), --gate close until all are\n stories the stories open in the worktrees of the repository and where two of them meet: the\n contexts the rows of both name, the files both worktrees change (committed or not), what\n merging the branch of one into the other leaves to a person and what merge-trunk settles\n (git merge-tree, nothing written); how far each is behind its base; from the worktree of a\n story, the stories it meets; the guard of the plugin says it at session start and on a\n write to a file another story changes\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an\n end-to-end spec, a working migration, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), the package.json of a client (trunk side, at the higher of both versions;\n left to you when one is not a semantic version), generated regions of CONTEXT.md and the\n context map (trunk side), conflicts inside generated registries (lines of both sides),\n slices.md row by row (the furthest status), the stored-events lock by key, the lockfile\n (trunk side, installed again when the branch changed package.json); the rest is left in a\n merge in progress git understands, with what each side did (exit 1). Then, or on\n --continue: the drizzle migrations of both sides replayed, on --to-land the working\n migrations renamed (knex, Prisma, TypeORM; stop when both sides change one table), decision\n records renumbered, regenerate, verify-merge on the uncommitted result (an error stops;\n --accept-lost records a Lost-Accepted: trailer), and the commit of the merge's paths only,\n with the trailers Merge-Base:, Trunk: and Landed:; any other changed path blocks it.\n --dry-run previews, --abort undoes; refused (exit 2) on a dirty tree, another operation in\n progress, no committer known to git, an unknown trunk, or a git older than 2.40 with a base\n git would not compute\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --explain check follows the violations with the reason of each rule they report, once per rule, as\n explain gives it without its examples (\"explanations\" in JSON); with github and gitlab, each\n annotation carries the reason of its rule, a pull request showing an annotation on its own\n --behaviour docs writes the pages of what the tests state (docs/behaviour/) alone, every other generated\n document left as it is: what the pre-commit hook runs when a spec is staged; with --check,\n those pages alone are compared\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one but one recorded by 0.82.0 or earlier, recorded again as\n the kit reads it now: run it once the shape of a version is the one to store; docs --check\n fails while a declared version is not recorded, or recorded by 0.82.0 or earlier, or\n recorded as the hash of nothing; the codecs of each module of a context are read too, and a\n codec whose data type is not found or declares no member is refused, nothing recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do\n --module generate writes the files of the layers into that module of the model of the context\n (declared first with generate module), <module>/domain/ to <module>/presentation/, and\n their specs into test/unit/<module>/, finds the files it reads in the module that holds\n them and writes the imports to where they are; required in a context that declares\n modules, what the modules share staying at the level of the context";
2
+ export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base;\n --run <script> runs that script of the project on them (DDD_TS_KIT_AFFECTED set,\n --passWithNoTests on a partial run) and nothing when nothing that runs changed:\n the pre-push hook tests the contexts its branch reaches\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: when the\n history forks from --base <ref> (origin/main by default), deletes the migrations of the\n branch the base does not have, with their snapshots and journal entries, then generates\n each again on top, in order, under its name (working- dropped outside a worker's\n worktree, a custom one keeping its SQL); when it does not fork, only renames them;\n refused while the journal holds conflict markers, when two of them change the schema,\n or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder\n then put back as it was\n error-factories moves the refusals of a project to one class per refusal (--to named, the default), from\n one class per error or from the factories of one error class per concept: --plan writes\n error-factories.plan.json, where each refusal is given a class (the PascalCase of its\n code, which it keeps) and a factory (for<Concept>), both editable; --apply follows it\n (codes.ts per context, one class file per refusal, specs, every usage, the concept\n classes left empty, \"stack.refusals\" in the config) and lists what it cannot rewrite\n (a bare <Concept>Error.is(error), CodeOf<typeof <Concept>Error>); --to factories moves\n one class per error to static factories on one error class per concept instead\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n platform-folders takes the files of the platform a project generated flat to their folders:\n composition/, observability/ (tracing.ts first), jobs/, auth/authentication/ (who is\n calling), auth/authorization/ (what they may do, whatever the model), the folder of\n the model (auth/roles/, attributes/, relationships/, custom/) and\n audit/search-audit-entries/; every import of them under the source root, test/ and\n scripts/ follows, and the scripts of package.json; a file the kit did not write at\n the root of the platform or of auth/ stays where it is, named, unless --place\n <file>=<folder> (both from the platform) gives it its folder; the generators and\n init --force keep either layout until then\n move-to-module takes files of a context into a module of its model, declared first with generate module,\n each to <module>/<layer>/ and each spec to test/<unit|integration>/<module>/: each <path>\n is a file or a folder of a role or a spec, relative to the context\n (domain/aggregates/waitlist.aggregate.ts, application/commands/join-waitlist,\n infrastructure/persistence/knex-waitlist.repository.ts); the specs named after a moved\n file follow it, every import of them under the source root, test/ and scripts/ follows,\n and the generated declarations are rewritten; what the modules share stays at the level\n of the context: the code list and the permission set at its root, the schema of its\n database, its route groups, guards and shared shapes, its fakes, builders and worlds\n context-layout takes the files of the contexts, or of the ones named, that 0.86 or 0.87 wrote elsewhere to\n their place of today: domain/errors/codes.ts to <context>.codes.ts and\n application/authorization/<context>.permissions.ts to <context>.permissions.ts, at the\n root of the context, and each module of the model from domain/<module>/ and\n application/<module>/ to <module>/domain/ and <module>/application/, with the adapters,\n routes and specs it tells by their imports (a spec by the file it is named after); what\n names no module, or two, is listed and stays; every import of them under the source\n root, test/ and scripts/ follows, what derives from the tree is written again\n (.dependency-cruiser.cjs, the declarations) and knip is told of the code lists where they\n are; the generators keep the code lists and permission sets where they are until then\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; then what\n this checkout lacks to run the project, read without network: the running Node against\n engines.node and .nvmrc, node_modules installed since the lockfile last changed, each\n package of the kit installed at the version of this CLI, the submodules initialised;\n last, the overrides init writes under a dependency that pins a package below a\n security fix, missing or no longer needed once it asks for the fix itself; and each\n install script the stack needs (the engines of Prisma, the Kafka client) that\n allowScripts of package.json or allowBuilds of pnpm-workspace.yaml does not allow for\n the version installed: missing, pinned to another version, or denied;\n each with its fix; --strict exits 1 while something is missing or the checkout cannot\n run the project, never for a hook this clone has not installed, a Node .nvmrc does not\n name, a lockfile changed since the install, an override no longer needed or a denied\n install script\n lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning\n as on an error, but on one of a rule of the kit in transition, a new rule that becomes an\n error in the version it names, whose warnings are listed apart; --format and --fix as ESLint\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context, read in every kind of file\n they are written into: the code, the pages, the files of prisma/schema/ (a marker of\n prisma/schema/<context>.prisma is of that context, another of the context whose\n database schema holds its model), the migrations, the configuration at the root\n mutation the mutation score of the domain and application layers of each context, read from the\n json report the last stryker run wrote (reports/mutation/mutation.json, or --report\n <file>), each held to its \"mutation\" floor of the config (80 and 75 by default): detected over detected and\n undetected, the errors left out, as Stryker counts, the ignored mutants (the texts of\n refusals, the code that runs once when the module loads) shown beside, since the\n score says nothing about them; exits 1 while a layer is under its floor, 2 without\n a report. --survivors lists the mutants no test noticed (file:line, mutator, what the\n code became), each a decision: a test named after the rule, or left alive and said so;\n --changed <ref>, or DDD_TS_KIT_MUTATION_SINCE in the environment as the job of a pull\n request sets it, lists those of the files changed since the git ref alone and exits 0\n whatever the scores, a reading for a change in progress. Runs no test: npm run\n test:mutation runs Stryker, then this; the pipeline runs it every night and, with\n the variable set to the merge base of the change, on a pull request\n plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), each row a row waits for with its status (and its context\n and story when it is of another story or outside the context shown), the rows of other\n stories the planned rows wait for, not done, in a section of their own, the merge order\n and what runs before each merge (merge-trunk --to-land); a cycle, a dependency on an\n unknown id or a row without owner is reported alone, and exits 1. Then replays the\n generator commands of the rows in a copy of the project, in the order of the waves,\n and reports without waves, exiting 1, each name whose words the glossary of its\n context does not define with the --term of its row and of the rows it waits for;\n the commands refused for another reason are listed, without failing\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. A done row also holds to its design: every\n name the ## #<id> section of docs/architecture/reviews/<code>.md cites (a path, a\n PascalCase name, a Class.member, as cited reads them) exists in the tree, or is\n listed under ### Compromises of ## Report in the story file; a name that is neither\n blocks, with its file:line in the review. A commit of the story on the current branch\n (its Slice: trailer, else its message naming a row or the story) that changes a\n migration or a container file (the paths the change-reference hook of the regulated\n profile watches) without a Change: <id> trailer is listed, with its files, and blocks\n under agents.profile regulated or with --strict. Reads only: exits 0 when it can\n close, 1 listing what keeps it open, 2 on a code no row carries or without slices.md\n acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against\n its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and\n criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write\n (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is\n built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,\n a pending one whose rows are done, a locked one changed while its criteria were not);\n --gate written: every slice row and criterion has a written scenario, none is left to\n write, the acceptance is locked (before the code of the story); --gate passing: none is\n pending either (before the story closes); exits 1 while a gate is not met, or, without\n one, on an inconsistency. Never runs a test. --lock writes\n test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of\n each scenario (pending(...), layout and comments aside), refused while a scenario is\n left to write, or while a criterion changed, or a locked scenario changed while its\n criteria did not, without a verdict \"amend\" of the acceptance-judge agent on that very\n version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,\n Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,\n listed for the owner to validate. A fix is a story file with a ## Regression section\n listing the spec files that prove it (- test/unit/<name>.spec.ts): held to the tests of\n those files instead of rows and scenarios, locked and judged the same way, the statement\n of the fix being the criterion\n worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),\n cut from --base <ref> (by default the current branch, refused from a worker's worktree), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>\n briefs those rows of slices.md only, with their rules, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the\n next agent in place, its base the base of the story, and prints its briefing; no\n worktree, branch or install of its own; the agents of a story run one after the other\n story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default\n origin/main from the trunk, else the current branch, refused from the worktree of a\n story), its .ddd-ts-kit/story.json ({ story, base, baseCommit, branch, kind, from }) and\n its clean install; an existing one is kept and the story resumes there; refused when the\n story is open in another worktree; names the other open stories and the contexts their\n rows change; --kind story (the default) or fix (a story built behind locked regression\n specs, listed under ## Regression of its file); --from <file> records where the story\n comes from, an intent of docs/architecture/intents/ (refused unless its header says\n Status: accepted) or an incident record of docs/architecture/incidents/, and the Next:\n line says that the story skill seeds the statement from it while the story file does\n not exist\n worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base\n (by default origin/main from the trunk, else the current branch), and its clean install\n unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,\n whichever worktree it runs from, ignored by git and by the tools of the project; while\n the .gitignore of a project started before does not hold it (init adds it), a worktree\n opens next to the project, ../<project>-<name>; in a project whose config says\n \"worktrees\": \"required\" (what init writes), the guard of the plugin refuses the code of\n a context in the main checkout of the trunk, and in a worktree of .worktrees/ without\n its own node_modules\n story where a story stands, phase by phase: its specification and criteria\n (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section\n per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written\n and locked, its rows done, its acceptance passing, its trunk merged in, its ## Origin\n (From: and Built with:), its ## Report with ### Verification naming npm run verify; and\n the next step; in the worktree of a story, the story is its own; --gate build exits 1\n until the first four are met (the code may start: the guard of the plugin opens the\n contexts), --gate close until all are\n stories the stories open in the worktrees of the repository and where two of them meet: the\n contexts the rows of both name, the files both worktrees change (committed or not), what\n merging the branch of one into the other leaves to a person and what merge-trunk settles\n (git merge-tree, nothing written); how far each is behind its base; from the worktree of a\n story, the stories it meets; the guard of the plugin says it at session start and on a\n write to a file another story changes\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, its\n Prisma models, an end-to-end spec, a working migration, the pages of docs/behaviour/ but\n those of other contexts, prisma/schema/schema.prisma when its one change is the context\n joining the schemas of the datasource, the schema index of the platform when every line\n changed there is of the context, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), the package.json of a client (trunk side, at the higher of both versions;\n left to you when one is not a semantic version), generated regions of CONTEXT.md and the\n context map (trunk side), conflicts inside generated registries (lines of both sides),\n slices.md row by row (the furthest status), the stored-events lock by key, the lockfile\n (trunk side, installed again when the branch changed package.json); the rest is left in a\n merge in progress git understands, with what each side did (exit 1). Then, or on\n --continue: the drizzle migrations of both sides replayed, on --to-land the working\n migrations renamed (knex, Prisma, TypeORM; stop when both sides change one table), decision\n records renumbered, regenerate, verify-merge on the uncommitted result (an error stops;\n --accept-lost records a Lost-Accepted: trailer), and the commit of the merge's paths only,\n with the trailers Merge-Base:, Trunk: and Landed:; any other changed path blocks it.\n --dry-run previews, --abort undoes; refused (exit 2) on a dirty tree, another operation in\n progress, no committer known to git, an unknown trunk, or a git older than 2.40 with a base\n git would not compute\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --explain check follows the violations with the reason of each rule they report, once per rule, as\n explain gives it without its examples (\"explanations\" in JSON); with github and gitlab, each\n annotation carries the reason of its rule, a pull request showing an annotation on its own\n --behaviour docs writes the pages of what the tests state (docs/behaviour/) alone, every other generated\n document left as it is: what the pre-commit hook runs when a spec is staged; with --check,\n those pages alone are compared\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one but one recorded by 0.82.0 or earlier, recorded again as\n the kit reads it now: run it once the shape of a version is the one to store; docs --check\n fails while a declared version is not recorded, or recorded by 0.82.0 or earlier, or\n recorded as the hash of nothing; the codecs of each module of a context are read too, and a\n codec whose data type is not found or declares no member is refused, nothing recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --term generate adds the row \"<Term>=<meaning>\" to the glossary of the CONTEXT.md before it judges\n a name; \"<Term>=<meaning>|<not to be confused with>\" fills the third cell too, a pipe being\n the one character a cell of the table cannot hold\n --reason generate context writes it under ## Classification, the sentence of why the context is\n of its classification; generate adr --deviation records it as the reason of the deviation\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do\n --module generate writes the files of the layers into that module of the model of the context\n (declared first with generate module), <module>/domain/ to <module>/presentation/, and\n their specs into test/unit/<module>/, finds the files it reads in the module that holds\n them and writes the imports to where they are; taken by the kinds whose usage below\n shows [--module <module>], and required by them in a context that declares modules\n (a file of a use case already in a module goes with it, and another module is\n refused); every other kind refuses it, what it writes staying at the level of the\n context (code list, permission set, database schema, route groups, guards, shared\n shapes, fakes, builders, worlds) or outside the contexts";
3
3
  //# sourceMappingURL=notes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,0j7BAqSqE,CAAC"}
1
+ {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,60/BA4T0D,CAAC"}
@@ -70,10 +70,14 @@ export const NOTES = ` affected what a pull request has to run: the con
70
70
  engines.node and .nvmrc, node_modules installed since the lockfile last changed, each
71
71
  package of the kit installed at the version of this CLI, the submodules initialised;
72
72
  last, the overrides init writes under a dependency that pins a package below a
73
- security fix, missing or no longer needed once it asks for the fix itself;
73
+ security fix, missing or no longer needed once it asks for the fix itself; and each
74
+ install script the stack needs (the engines of Prisma, the Kafka client) that
75
+ allowScripts of package.json or allowBuilds of pnpm-workspace.yaml does not allow for
76
+ the version installed: missing, pinned to another version, or denied;
74
77
  each with its fix; --strict exits 1 while something is missing or the checkout cannot
75
78
  run the project, never for a hook this clone has not installed, a Node .nvmrc does not
76
- name, a lockfile changed since the install or an override no longer needed
79
+ name, a lockfile changed since the install, an override no longer needed or a denied
80
+ install script
77
81
  lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning
78
82
  as on an error, but on one of a rule of the kit in transition, a new rule that becomes an
79
83
  error in the version it names, whose warnings are listed apart; --format and --fix as ESLint
@@ -97,7 +101,10 @@ export const NOTES = ` affected what a pull request has to run: the con
97
101
  credentials per security scheme; records "sdk" in the config the first time, wires the
98
102
  scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);
99
103
  --check writes nothing and exits 1 while a client differs from its contract
100
- todo those markers as file:line, in the project or in one context
104
+ todo those markers as file:line, in the project or in one context, read in every kind of file
105
+ they are written into: the code, the pages, the files of prisma/schema/ (a marker of
106
+ prisma/schema/<context>.prisma is of that context, another of the context whose
107
+ database schema holds its model), the migrations, the configuration at the root
101
108
  mutation the mutation score of the domain and application layers of each context, read from the
102
109
  json report the last stryker run wrote (reports/mutation/mutation.json, or --report
103
110
  <file>), each held to its "mutation" floor of the config (80 and 75 by default): detected over detected and
@@ -119,7 +126,11 @@ export const NOTES = ` affected what a pull request has to run: the con
119
126
  and story when it is of another story or outside the context shown), the rows of other
120
127
  stories the planned rows wait for, not done, in a section of their own, the merge order
121
128
  and what runs before each merge (merge-trunk --to-land); a cycle, a dependency on an
122
- unknown id or a row without owner is reported alone, and exits 1
129
+ unknown id or a row without owner is reported alone, and exits 1. Then replays the
130
+ generator commands of the rows in a copy of the project, in the order of the waves,
131
+ and reports without waves, exiting 1, each name whose words the glossary of its
132
+ context does not define with the --term of its row and of the rows it waits for;
133
+ the commands refused for another reason are listed, without failing
123
134
  story-check whether a story or a milestone can close, <code> being the start of the ids of its rows
124
135
  (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in
125
136
  slices.md (the others listed with their status), and no marker of its own left
@@ -216,8 +227,11 @@ export const NOTES = ` affected what a pull request has to run: the con
216
227
  a new agent whatever the last one did; several worktrees of the context need --worktree
217
228
  verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files
218
229
  changed since --since (new ones included), the test script for the context; then the
219
- changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an
220
- end-to-end spec, a working migration, the derived files git tracks) and every other
230
+ changed files past 300 of the 350 lines, the paths of the slice to stage (its context, its
231
+ Prisma models, an end-to-end spec, a working migration, the pages of docs/behaviour/ but
232
+ those of other contexts, prisma/schema/schema.prisma when its one change is the context
233
+ joining the schemas of the datasource, the schema index of the platform when every line
234
+ changed there is of the context, the derived files git tracks) and every other
221
235
  changed path, left out and never to stage with it; the merges since --since, as
222
236
  verify-merge checks them, reported without failing the slice in this version (a later
223
237
  minor version fails it); exits 1 while a step fails; then the names the slice removes
@@ -286,11 +300,20 @@ export const NOTES = ` affected what a pull request has to run: the con
286
300
  recorded as the hash of nothing; the codecs of each module of a context are read too, and a
287
301
  codec whose data type is not found or declares no member is refused, nothing recorded
288
302
  --sdk init records "sdk" in the config and generates the clients with the project
303
+ --term generate adds the row "<Term>=<meaning>" to the glossary of the CONTEXT.md before it judges
304
+ a name; "<Term>=<meaning>|<not to be confused with>" fills the third cell too, a pipe being
305
+ the one character a cell of the table cannot hold
306
+ --reason generate context writes it under ## Classification, the sentence of why the context is
307
+ of its classification; generate adr --deviation records it as the reason of the deviation
289
308
  --local-only generate refuses, and writes nothing, when the kind would write outside its context;
290
309
  "generate --help --json" says which kinds do
291
310
  --module generate writes the files of the layers into that module of the model of the context
292
311
  (declared first with generate module), <module>/domain/ to <module>/presentation/, and
293
312
  their specs into test/unit/<module>/, finds the files it reads in the module that holds
294
- them and writes the imports to where they are; required in a context that declares
295
- modules, what the modules share staying at the level of the context`;
313
+ them and writes the imports to where they are; taken by the kinds whose usage below
314
+ shows [--module <module>], and required by them in a context that declares modules
315
+ (a file of a use case already in a module goes with it, and another module is
316
+ refused); every other kind refuses it, what it writes staying at the level of the
317
+ context (code list, permission set, database schema, route groups, guards, shared
318
+ shapes, fakes, builders, worlds) or outside the contexts`;
296
319
  //# sourceMappingURL=notes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAqSkE,CAAC"}
1
+ {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA4TuD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reference-text.d.ts","sourceRoot":"","sources":["../../src/help/reference-text.ts"],"names":[],"mappings":"AAIA,yIAAyI;AACzI,wBAAgB,aAAa,IAAI,MAAM,CAWtC"}
1
+ {"version":3,"file":"reference-text.d.ts","sourceRoot":"","sources":["../../src/help/reference-text.ts"],"names":[],"mappings":"AAKA,yIAAyI;AACzI,wBAAgB,aAAa,IAAI,MAAM,CAWtC"}
@@ -1,9 +1,10 @@
1
1
  import { KINDS } from '../generate/kinds.js';
2
+ import { usageOf } from '../generate/usage-of.js';
2
3
  import { NOTES } from './notes.js';
3
4
  import { USAGE } from './usage.js';
4
5
  /** The usage, the notes and the kinds of `generate`: `--help` without its version line, and the reference of docs/guides/commands.md. */
5
6
  export function referenceText() {
6
- const kinds = KINDS.map((kind) => ` ${kind.usage}${kind.aliases.length > 0 ? ` (alias: ${kind.aliases.join(', ')})` : ''}`);
7
+ const kinds = KINDS.map((kind) => ` ${usageOf(kind)}${kind.aliases.length > 0 ? ` (alias: ${kind.aliases.join(', ')})` : ''}`);
7
8
  return `${USAGE}
8
9
 
9
10
  ${NOTES}
@@ -1 +1 @@
1
- {"version":3,"file":"reference-text.js","sourceRoot":"","sources":["../../src/help/reference-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,yIAAyI;AACzI,MAAM,UAAU,aAAa;IAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CACrB,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACtG,CAAC;IAEF,OAAO,GAAG,KAAK;;EAEf,KAAK;;;EAGL,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"reference-text.js","sourceRoot":"","sources":["../../src/help/reference-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,yIAAyI;AACzI,MAAM,UAAU,aAAa;IAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CACrB,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACzG,CAAC;IAEF,OAAO,GAAG,KAAK;;EAEf,KAAK;;;EAGL,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACrB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Every command of the CLI and its flags, as `--help` prints them and docs/guides/commands.md shows them. */
2
- export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|passport|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--rpc none|orpc|trpc]\n [--storage local|s3|none]\n [--audit on|off] [--event-sourcing on|off] [--privacy on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals named|factories|classes]\n [--routes controllers|functions|nest] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk] [--agent-profile regulated|none]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--module <module>] [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]\n ddd-ts-kit story-scope <story> [--from <file>] [--kind story|fix] [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit story [<story>] [--gate build|close]\n ddd-ts-kit stories\n ddd-ts-kit measures [--since <date>] [--story <code>] [--by-author] [--format text|json]\n ddd-ts-kit mutation [--report <file>] [--survivors] [--changed <ref>] [--json]\n ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\n ddd-ts-kit docs [--check] [--stored-events] [--behaviour]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit drizzle-generate --replay [--base <git-ref>]\n ddd-ts-kit prisma-generate --name <what-it-does>\n ddd-ts-kit typeorm-generate <folder>/<what-it-does>\n ddd-ts-kit error-factories --plan | --apply [--to named|factories] [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit platform-folders [--place <file>=<folder>]... [--dry-run]\n ddd-ts-kit move-to-module <context> <module> <path>... [--dry-run]\n ddd-ts-kit context-layout [<context>...] [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit affected --base <git-ref> --run <script>\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--explain] [--self]\n ddd-ts-kit check --baseline write|prune\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path> [--content-from <file>] [--rule <id>]...\n ddd-ts-kit lint [paths...] [--format <eslint formatter>] [--fix] [--no-cache]\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
2
+ export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|passport|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--rpc none|orpc|trpc]\n [--storage local|s3|none]\n [--audit on|off] [--event-sourcing on|off] [--privacy on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals named|factories|classes]\n [--routes controllers|functions|nest] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk] [--agent-profile regulated|none]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>[|<not to be confused with>]\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]\n ddd-ts-kit story-scope <story> [--from <file>] [--kind story|fix] [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit story [<story>] [--gate build|close]\n ddd-ts-kit stories\n ddd-ts-kit measures [--since <date>] [--story <code>] [--by-author] [--format text|json]\n ddd-ts-kit mutation [--report <file>] [--survivors] [--changed <ref>] [--json]\n ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\n ddd-ts-kit docs [--check] [--stored-events] [--behaviour]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit drizzle-generate --replay [--base <git-ref>]\n ddd-ts-kit prisma-generate --name <what-it-does>\n ddd-ts-kit typeorm-generate <folder>/<what-it-does>\n ddd-ts-kit error-factories --plan | --apply [--to named|factories] [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit platform-folders [--place <file>=<folder>]... [--dry-run]\n ddd-ts-kit move-to-module <context> <module> <path>... [--dry-run]\n ddd-ts-kit context-layout [<context>...] [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit affected --base <git-ref> --run <script>\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--explain] [--self]\n ddd-ts-kit check --baseline write|prune\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path> [--content-from <file>] [--rule <id>]...\n ddd-ts-kit lint [paths...] [--format <eslint formatter>] [--fix] [--no-cache]\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
3
3
  //# sourceMappingURL=usage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,q4JAqEqE,CAAC"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,64JAqEqE,CAAC"}
@@ -19,7 +19,7 @@ export const USAGE = `Usage
19
19
  [--package-manager npm|pnpm] [--allow-no-outbox "<reason>"] [--import-alias '$<name>/']
20
20
  [--import-extension none|js] [--sdk] [--agent-profile regulated|none]
21
21
  [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]
22
- ddd-ts-kit generate <kind> ... [--term "<Term>=<meaning>"]... [--module <module>] [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)
22
+ ddd-ts-kit generate <kind> ... [--term "<Term>=<meaning>[|<not to be confused with>]"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)
23
23
  ddd-ts-kit generate --help --json
24
24
  ddd-ts-kit list [--context <name>]
25
25
  ddd-ts-kit describe <context>
@@ -7,5 +7,12 @@ type Permitted = Pick<Config, 'stack'>;
7
7
  * for. Permissions only: nothing here changes how the agent behaves otherwise.
8
8
  */
9
9
  export declare function agentPermissions(config: Permitted): AgentPermissions;
10
+ /**
11
+ * The generated contracts and the lock of an acceptance, which `docs:generate` and
12
+ * `ddd-ts-kit acceptance <story> --lock` write. Earlier versions denied them, and under the sandbox
13
+ * those commands then failed on a read-only path: `init` takes them out of the deny rules of a
14
+ * project and asks for them instead.
15
+ */
16
+ export declare const GENERATED_FILES: readonly string[];
10
17
  export {};
11
18
  //# sourceMappingURL=agent-permissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-permissions.d.ts","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAE7F,gGAAgG;AAChG,KAAK,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAUvC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,gBAAgB,CAEpE"}
1
+ {"version":3,"file":"agent-permissions.d.ts","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAE7F,gGAAgG;AAChG,KAAK,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAUvC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,gBAAgB,CAEpE;AAmDD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAK5C,CAAC"}
@@ -45,12 +45,12 @@ const ALLOW = [
45
45
  'Bash(npm run events:generate)',
46
46
  'Bash(npm run events:check)',
47
47
  ];
48
- // Secrets, then the generated contracts: those are regenerated, never edited, and the lock of
49
- // an acceptance, which `ddd-ts-kit acceptance <story> --lock` alone writes. The secrets are
50
- // named one by one: the sandbox of Claude Code masks every path a Read rule matches, and it
51
- // ignores the negation of a `!` pattern, so a glob such as `.env.*` would also mask
52
- // `.env.example` and break git. The compose file reads `.env` at the root, denied here;
53
- // nothing under `docker/` holds a secret.
48
+ // The secrets, named one by one. The sandbox of Claude Code turns every Read deny rule into a
49
+ // path no shell command reads, and every Edit deny rule into a path no shell command writes: an
50
+ // Edit deny rule on a file a command of the kit writes would stop that command too, so none is
51
+ // written here (the generated contracts are asked below). The sandbox also ignores the negation of
52
+ // a `!` pattern, so a glob such as `.env.*` would mask `.env.example` and break git. The compose
53
+ // file reads `.env` at the root, denied here; nothing under `docker/` holds a secret.
54
54
  const DENY = [
55
55
  'Read(./.env)',
56
56
  'Read(./.env.local)',
@@ -58,18 +58,29 @@ const DENY = [
58
58
  'Read(./.env.production)',
59
59
  'Read(./.env.development)',
60
60
  'Read(./.env.test)',
61
+ ];
62
+ /**
63
+ * The generated contracts and the lock of an acceptance, which `docs:generate` and
64
+ * `ddd-ts-kit acceptance <story> --lock` write. Earlier versions denied them, and under the sandbox
65
+ * those commands then failed on a read-only path: `init` takes them out of the deny rules of a
66
+ * project and asks for them instead.
67
+ */
68
+ export const GENERATED_FILES = [
61
69
  'Edit(./openapi/**)',
62
70
  'Edit(./docs/integration/asyncapi.*)',
63
71
  'Edit(./docs/integration/event-catalog.md)',
64
72
  'Edit(./test/acceptance/*.acceptance.lock.json)',
65
73
  ];
66
- // Then the files that hold the rules and the pipeline: changing one is a decision of the
67
- // project owner, the same list as the editor hook of the plugin asks about. The review policy
74
+ // Then the generated files: an ask rule keeps the Edit tool off them without reaching the sandbox,
75
+ // which takes the allow and deny rules only, and the guard of the plugin refuses a hand edit of
76
+ // one outright. Then the files that hold the rules and the pipeline: changing one is a decision of
77
+ // the project owner, the same list as the editor hook of the plugin asks about. The review policy
68
78
  // holds a rule of the project too.
69
79
  const ASK = [
70
80
  'Bash(git push *)',
71
81
  'Bash(npm publish *)',
72
82
  'Bash(npx ddd-ts-kit check --baseline write*)',
83
+ ...GENERATED_FILES,
73
84
  'Edit(./ddd-ts-kit.config.json)',
74
85
  'Edit(./ddd-ts-kit-baseline.json)',
75
86
  'Edit(./REVIEW.md)',
@@ -1 +1 @@
1
- {"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAOA,kHAAkH;AAClH,MAAM,UAAU,GAAqC;IACnD,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,mBAAmB;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IAChD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,KAAK,GAAsB;IAC/B,8BAA8B;IAC9B,qCAAqC;IACrC,8BAA8B;IAC9B,mCAAmC;IACnC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CAAC;QACjE,oBAAoB;QACpB,4BAA4B;QAC5B,mBAAmB;KACpB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAOA,kHAAkH;AAClH,MAAM,UAAU,GAAqC;IACnD,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,mBAAmB;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IAChD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,KAAK,GAAsB;IAC/B,8BAA8B;IAC9B,qCAAqC;IACrC,8BAA8B;IAC9B,mCAAmC;IACnC,8BAA8B;IAC9B,oCAAoC;IACpC,8BAA8B;IAC9B,gCAAgC;IAChC,iCAAiC;IACjC,mCAAmC;IACnC,qCAAqC;IACrC,oCAAoC;IACpC,kCAAkC;IAClC,oCAAoC;IACpC,6BAA6B;IAC7B,iCAAiC;IACjC,6BAA6B;IAC7B,gCAAgC;IAChC,4BAA4B;IAC5B,sBAAsB;IACtB,yBAAyB;IACzB,sBAAsB;IACtB,kBAAkB;IAClB,0BAA0B;IAC1B,0BAA0B;IAC1B,6BAA6B;IAC7B,0BAA0B;IAC1B,gCAAgC;IAChC,6BAA6B;IAC7B,+BAA+B;IAC/B,4BAA4B;CAC7B,CAAC;AAEF,8FAA8F;AAC9F,gGAAgG;AAChG,+FAA+F;AAC/F,mGAAmG;AACnG,iGAAiG;AACjG,sFAAsF;AACtF,MAAM,IAAI,GAAsB;IAC9B,cAAc;IACd,oBAAoB;IACpB,sBAAsB;IACtB,yBAAyB;IACzB,0BAA0B;IAC1B,mBAAmB;CACpB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,oBAAoB;IACpB,qCAAqC;IACrC,2CAA2C;IAC3C,gDAAgD;CACjD,CAAC;AAEF,mGAAmG;AACnG,gGAAgG;AAChG,mGAAmG;AACnG,kGAAkG;AAClG,mCAAmC;AACnC,MAAM,GAAG,GAAsB;IAC7B,kBAAkB;IAClB,qBAAqB;IACrB,8CAA8C;IAC9C,GAAG,eAAe;IAClB,gCAAgC;IAChC,kCAAkC;IAClC,mBAAmB;IACnB,2BAA2B;IAC3B,oBAAoB;IACpB,iCAAiC;IACjC,mBAAmB;IACnB,sBAAsB;IACtB,wBAAwB;IACxB,8BAA8B;IAC9B,+BAA+B;IAC/B,uCAAuC;CACxC,CAAC;AAEF;;;;GAIG;AACH,SAAS,UAAU,CAAC,EAAE,KAAK,EAAa;IACtC,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEzC,OAAO;QACL,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,UAAU,MAAM,CAAC,CAAC;QACjE,oBAAoB;QACpB,4BAA4B;QAC5B,mBAAmB;KACpB,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-files.d.ts","sourceRoot":"","sources":["../../../src/init/files/persistence-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkE5C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAY3D"}
1
+ {"version":3,"file":"persistence-files.d.ts","sourceRoot":"","sources":["../../../src/init/files/persistence-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmE5C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAY3D"}
@@ -1,6 +1,7 @@
1
1
  import { WITH_DATABASE } from '../../stack/with-database.js';
2
2
  import { platformFile } from './platform-file.js';
3
3
  import { when } from './when.js';
4
+ import { PRISMA_MAIN_SCHEMA } from '../../prisma-schema/index.js';
4
5
  const INERT = 'inert-persistence.ts';
5
6
  const IN_MEMORY = [
6
7
  ['persistence.ts', 'memory'],
@@ -51,7 +52,7 @@ const TOOLING = {
51
52
  ['migrations/00000000000000_initial.js', 'init/platform/database/migration.knex.js.tpl'],
52
53
  ],
53
54
  prisma: [
54
- ['prisma/schema.prisma', 'init/platform/database/schema.prisma.tpl'],
55
+ [PRISMA_MAIN_SCHEMA, 'init/platform/database/schema.prisma.tpl'],
55
56
  ['prisma.config.ts', 'init/platform/database/prisma.config.ts.tpl'],
56
57
  ],
57
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-files.js","sourceRoot":"","sources":["../../../src/init/files/persistence-files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,MAAM,KAAK,GAAG,sBAAsB,CAAC;AAErC,MAAM,SAAS,GAAa;IAC1B,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IAC5B,CAAC,qBAAqB,EAAE,QAAQ,CAAC;IACjC,CAAC,KAAK,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,2GAA2G;AAC3G,MAAM,WAAW,GAAuC;IACtD,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,mCAAmC,CAAC,CAAC;IAC7D,OAAO,EAAE;QACP,GAAG,UAAU,CAAC,S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GAAG,CAAC,EAAE;YACzD,CAAC,wCAAwC,EAAE,sDAAsD,CAAC;SACnG,CAAC;KACH,CAAC;AACJ,CAAC;AAED,iIAAiI;AACjI,SAAS,yBAAyB,CAAC,MAAc;IAC/C,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,UAAU,CAAC;AACxE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Stack } from '../config/index.js';
2
+ /**
3
+ * Who runs the first install under the regulated profile, and why: the owner, outside the agent.
4
+ * What the sandbox lets a command write and reach for the install is said from the stack, with the
5
+ * two cases where the project file is not enough (Claude Code docs, sandboxing and settings
6
+ * reference, read on 2026-10-27; the missing path was seen on Linux with Claude Code 2.1.311).
7
+ */
8
+ export declare function firstInstallNote(stack: Stack): string;
9
+ //# sourceMappingURL=first-install-note.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-install-note.d.ts","sourceRoot":"","sources":["../../src/init/first-install-note.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAyBrD"}
@@ -0,0 +1,52 @@
1
+ import { installScriptsOf } from './manifest/install-scripts-of.js';
2
+ import { stackSandbox } from './stack-sandbox.js';
3
+ /**
4
+ * Who runs the first install under the regulated profile, and why: the owner, outside the agent.
5
+ * What the sandbox lets a command write and reach for the install is said from the stack, with the
6
+ * two cases where the project file is not enough (Claude Code docs, sandboxing and settings
7
+ * reference, read on 2026-10-27; the missing path was seen on Linux with Claude Code 2.1.311).
8
+ */
9
+ export function firstInstallNote(stack) {
10
+ const { writes, hosts } = stackSandbox(stack);
11
+ const install = `${stack.packageManager} install`;
12
+ const scripts = [
13
+ ...(stack.orm === 'prisma' ? ['the engines of Prisma from binaries.prisma.sh'] : []),
14
+ ...(stack.broker === 'kafka'
15
+ ? ['the prebuilt client of Kafka from github.com and release-assets.githubusercontent.com']
16
+ : []),
17
+ ];
18
+ return [
19
+ `Run the first \`${install}\` of this project yourself, outside the agent, before its first session in the sandbox of the regulated profile.`,
20
+ `The sandbox lets a command write ${writes.join(', ')}${hosts.length > 0 ? ` and reach ${hosts.join(', ')}` : ''}, but a path missing when the session starts stays read-only for the whole session: the first install creates it.`,
21
+ ...(scripts.length > 0
22
+ ? [`It also runs the install scripts of the stack under your eyes: ${scripts.join('; ')}.`]
23
+ : []),
24
+ ...pinNote(stack),
25
+ ...(stack.broker === 'kafka'
26
+ ? [
27
+ 'Where no prebuilt binary fits the machine, @confluentinc/kafka-javascript builds librdkafka from sources (a compiler, ~/.cache/node-gyp, nodejs.org, zlib.net and curl.se), which the sandbox does not allow: that install runs outside the agent every time.',
28
+ ]
29
+ : []),
30
+ 'When the managed settings, or the --settings of a session, set sandbox.allowUnsandboxedCommands to false (or the managed settings set sandbox.network.allowManagedDomainsOnly), the sandbox is admin-required and Claude Code ignores sandbox.filesystem.allowWrite and sandbox.network.allowedDomains of .claude/settings.json: copy them into the managed settings.',
31
+ ].join(' ');
32
+ }
33
+ /**
34
+ * Init allows the install scripts of the stack by name, the one form it can write before the
35
+ * install resolves the versions. The profile narrows each to the version the owner read, so that a
36
+ * later release runs its script only once someone read it too (npm 11.19.1 and pnpm 12.11.2:
37
+ * `approve` turns a name into the installed version, pnpm honours a key with its version).
38
+ */
39
+ function pinNote(stack) {
40
+ const names = installScriptsOf(stack).map(({ name }) => name);
41
+ if (names.length === 0) {
42
+ return [];
43
+ }
44
+ const pin = stack.packageManager === 'pnpm'
45
+ ? `write each of ${names.join(', ')} with the version installed (\`pnpm why <package>\`) in allowBuilds of pnpm-workspace.yaml, \`'<package>@<version>': true\` in place of its name`
46
+ : `\`npm install-scripts approve ${names.join(' ')}\` turns the names init wrote in allowScripts of package.json into the versions installed`;
47
+ const meanwhile = stack.packageManager === 'pnpm' ? 'pnpm skips the new script' : 'npm 11.19 runs the new script with a warning';
48
+ return [
49
+ `Then pin these scripts to the versions you read: ${pin}. A bump of one of them, a Dependabot pull request for one, then needs the same step again once its new script was read: until then \`npx ddd-ts-kit doctor\` reports it and ${meanwhile}.`,
50
+ ];
51
+ }
52
+ //# sourceMappingURL=first-install-note.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-install-note.js","sourceRoot":"","sources":["../../src/init/first-install-note.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAY;IAC3C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,GAAG,KAAK,CAAC,cAAc,UAAU,CAAC;IAElD,MAAM,OAAO,GAAG;QACd,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,+CAA+C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpF,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,OAAO;YAC1B,CAAC,CAAC,CAAC,uFAAuF,CAAC;YAC3F,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IAEF,OAAO;QACL,mBAAmB,OAAO,mHAAmH;QAC7I,oCAAoC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mHAAmH;QACnO,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;YACpB,CAAC,CAAC,CAAC,kEAAkE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YAC3F,CAAC,CAA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