ddd-ts-kit 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.fr.md +42 -7
  3. package/README.md +38 -6
  4. package/dist/check/canonical/stray-entry.d.ts +8 -0
  5. package/dist/check/canonical/stray-entry.d.ts.map +1 -0
  6. package/dist/check/canonical/stray-entry.js +75 -0
  7. package/dist/check/canonical/stray-entry.js.map +1 -0
  8. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  9. package/dist/check/catalogue/architecture-rules.js +2 -0
  10. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  11. package/dist/check/catalogue/default-severities.d.ts.map +1 -1
  12. package/dist/check/catalogue/default-severities.js +1 -0
  13. package/dist/check/catalogue/default-severities.js.map +1 -1
  14. package/dist/check/explain/clean-docs.js +1 -1
  15. package/dist/check/explain/clean-docs.js.map +1 -1
  16. package/dist/check/explain/persistence-docs.js +1 -1
  17. package/dist/check/explain/persistence-docs.js.map +1 -1
  18. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  19. package/dist/check/explain/tree-docs.js +5 -0
  20. package/dist/check/explain/tree-docs.js.map +1 -1
  21. package/dist/check/fixtures/clean-fixtures.d.ts.map +1 -1
  22. package/dist/check/fixtures/clean-fixtures.js +16 -0
  23. package/dist/check/fixtures/clean-fixtures.js.map +1 -1
  24. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  25. package/dist/check/fixtures/tree-fixtures.js +17 -0
  26. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  27. package/dist/check/migrations/drizzle-history-findings.js +1 -1
  28. package/dist/check/migrations/drizzle-history-findings.js.map +1 -1
  29. package/dist/check/rules/clean-function-size.js +10 -2
  30. package/dist/check/rules/clean-function-size.js.map +1 -1
  31. package/dist/check/rules/tree-closed.d.ts.map +1 -1
  32. package/dist/check/rules/tree-closed.js +4 -68
  33. package/dist/check/rules/tree-closed.js.map +1 -1
  34. package/dist/check/rules/tree-documented-paths.d.ts +3 -0
  35. package/dist/check/rules/tree-documented-paths.d.ts.map +1 -0
  36. package/dist/check/rules/tree-documented-paths.js +54 -0
  37. package/dist/check/rules/tree-documented-paths.js.map +1 -0
  38. package/dist/commands/doctor.d.ts +4 -0
  39. package/dist/commands/doctor.d.ts.map +1 -0
  40. package/dist/commands/doctor.js +15 -0
  41. package/dist/commands/doctor.js.map +1 -0
  42. package/dist/commands/drizzle-generate.d.ts +6 -1
  43. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  44. package/dist/commands/drizzle-generate.js +39 -6
  45. package/dist/commands/drizzle-generate.js.map +1 -1
  46. package/dist/commands/plan-waves.d.ts +9 -0
  47. package/dist/commands/plan-waves.d.ts.map +1 -0
  48. package/dist/commands/plan-waves.js +36 -0
  49. package/dist/commands/plan-waves.js.map +1 -0
  50. package/dist/commands/status.d.ts +1 -0
  51. package/dist/commands/status.d.ts.map +1 -1
  52. package/dist/commands/status.js +4 -2
  53. package/dist/commands/status.js.map +1 -1
  54. package/dist/doctor/diagnose.d.ts +9 -0
  55. package/dist/doctor/diagnose.d.ts.map +1 -0
  56. package/dist/doctor/diagnose.js +34 -0
  57. package/dist/doctor/diagnose.js.map +1 -0
  58. package/dist/doctor/doctor-finding.d.ts +11 -0
  59. package/dist/doctor/doctor-finding.d.ts.map +1 -0
  60. package/dist/doctor/doctor-finding.js +2 -0
  61. package/dist/doctor/doctor-finding.js.map +1 -0
  62. package/dist/doctor/format-diagnosis.d.ts +4 -0
  63. package/dist/doctor/format-diagnosis.d.ts.map +1 -0
  64. package/dist/doctor/format-diagnosis.js +25 -0
  65. package/dist/doctor/format-diagnosis.js.map +1 -0
  66. package/dist/doctor/package-findings.d.ts +8 -0
  67. package/dist/doctor/package-findings.d.ts.map +1 -0
  68. package/dist/doctor/package-findings.js +21 -0
  69. package/dist/doctor/package-findings.js.map +1 -0
  70. package/dist/doctor/permission-findings.d.ts +5 -0
  71. package/dist/doctor/permission-findings.d.ts.map +1 -0
  72. package/dist/doctor/permission-findings.js +16 -0
  73. package/dist/doctor/permission-findings.js.map +1 -0
  74. package/dist/doctor/script-findings.d.ts +5 -0
  75. package/dist/doctor/script-findings.d.ts.map +1 -0
  76. package/dist/doctor/script-findings.js +12 -0
  77. package/dist/doctor/script-findings.js.map +1 -0
  78. package/dist/help/notes.d.ts +1 -1
  79. package/dist/help/notes.d.ts.map +1 -1
  80. package/dist/help/notes.js +25 -4
  81. package/dist/help/notes.js.map +1 -1
  82. package/dist/help/usage.d.ts +1 -1
  83. package/dist/help/usage.d.ts.map +1 -1
  84. package/dist/help/usage.js +3 -0
  85. package/dist/help/usage.js.map +1 -1
  86. package/dist/init/agent-permissions.d.ts +8 -0
  87. package/dist/init/agent-permissions.d.ts.map +1 -0
  88. package/dist/init/agent-permissions.js +55 -0
  89. package/dist/init/agent-permissions.js.map +1 -0
  90. package/dist/init/files/persistence-files.d.ts.map +1 -1
  91. package/dist/init/files/persistence-files.js +7 -1
  92. package/dist/init/files/persistence-files.js.map +1 -1
  93. package/dist/init/manifest/versions.js +24 -24
  94. package/dist/init/write-agent-settings.d.ts.map +1 -1
  95. package/dist/init/write-agent-settings.js +1 -54
  96. package/dist/init/write-agent-settings.js.map +1 -1
  97. package/dist/migration/branch-migration.d.ts +9 -0
  98. package/dist/migration/branch-migration.d.ts.map +1 -0
  99. package/dist/migration/branch-migration.js +2 -0
  100. package/dist/migration/branch-migration.js.map +1 -0
  101. package/dist/migration/branch-migrations.d.ts +16 -0
  102. package/dist/migration/branch-migrations.d.ts.map +1 -0
  103. package/dist/migration/branch-migrations.js +48 -0
  104. package/dist/migration/branch-migrations.js.map +1 -0
  105. package/dist/migration/delete-branch-migrations.d.ts +9 -0
  106. package/dist/migration/delete-branch-migrations.d.ts.map +1 -0
  107. package/dist/migration/delete-branch-migrations.js +23 -0
  108. package/dist/migration/delete-branch-migrations.js.map +1 -0
  109. package/dist/migration/drizzle-run.d.ts +7 -0
  110. package/dist/migration/drizzle-run.d.ts.map +1 -0
  111. package/dist/migration/drizzle-run.js +2 -0
  112. package/dist/migration/drizzle-run.js.map +1 -0
  113. package/dist/migration/drizzle-silent-failures.js +1 -1
  114. package/dist/migration/drizzle-silent-failures.js.map +1 -1
  115. package/dist/migration/find-project-formatter.d.ts +8 -0
  116. package/dist/migration/find-project-formatter.d.ts.map +1 -0
  117. package/dist/migration/find-project-formatter.js +52 -0
  118. package/dist/migration/find-project-formatter.js.map +1 -0
  119. package/dist/migration/format-written-files.d.ts +9 -0
  120. package/dist/migration/format-written-files.d.ts.map +1 -0
  121. package/dist/migration/format-written-files.js +32 -0
  122. package/dist/migration/format-written-files.js.map +1 -0
  123. package/dist/migration/generate-and-read.d.ts +6 -0
  124. package/dist/migration/generate-and-read.d.ts.map +1 -0
  125. package/dist/migration/generate-and-read.js +14 -0
  126. package/dist/migration/generate-and-read.js.map +1 -0
  127. package/dist/migration/index.d.ts +4 -0
  128. package/dist/migration/index.d.ts.map +1 -1
  129. package/dist/migration/index.js +4 -0
  130. package/dist/migration/index.js.map +1 -1
  131. package/dist/migration/known-primary-keys.d.ts +3 -0
  132. package/dist/migration/known-primary-keys.d.ts.map +1 -0
  133. package/dist/migration/known-primary-keys.js +2 -0
  134. package/dist/migration/known-primary-keys.js.map +1 -0
  135. package/dist/migration/migration-files.d.ts +7 -0
  136. package/dist/migration/migration-files.d.ts.map +1 -0
  137. package/dist/migration/migration-files.js +29 -0
  138. package/dist/migration/migration-files.js.map +1 -0
  139. package/dist/migration/plan-replay.d.ts +9 -0
  140. package/dist/migration/plan-replay.d.ts.map +1 -0
  141. package/dist/migration/plan-replay.js +68 -0
  142. package/dist/migration/plan-replay.js.map +1 -0
  143. package/dist/migration/previous-primary-keys.d.ts +9 -0
  144. package/dist/migration/previous-primary-keys.d.ts.map +1 -0
  145. package/dist/migration/previous-primary-keys.js +55 -0
  146. package/dist/migration/previous-primary-keys.js.map +1 -0
  147. package/dist/migration/primary-key-order-finding.d.ts +12 -0
  148. package/dist/migration/primary-key-order-finding.d.ts.map +1 -0
  149. package/dist/migration/primary-key-order-finding.js +2 -0
  150. package/dist/migration/primary-key-order-finding.js.map +1 -0
  151. package/dist/migration/primary-key-order-findings.d.ts +12 -0
  152. package/dist/migration/primary-key-order-findings.d.ts.map +1 -0
  153. package/dist/migration/primary-key-order-findings.js +55 -0
  154. package/dist/migration/primary-key-order-findings.js.map +1 -0
  155. package/dist/migration/project-formatter.d.ts +9 -0
  156. package/dist/migration/project-formatter.d.ts.map +1 -0
  157. package/dist/migration/project-formatter.js +2 -0
  158. package/dist/migration/project-formatter.js.map +1 -0
  159. package/dist/migration/replay-drizzle-migrations.d.ts +15 -0
  160. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -0
  161. package/dist/migration/replay-drizzle-migrations.js +63 -0
  162. package/dist/migration/replay-drizzle-migrations.js.map +1 -0
  163. package/dist/migration/replay-plan.d.ts +11 -0
  164. package/dist/migration/replay-plan.d.ts.map +1 -0
  165. package/dist/migration/replay-plan.js +2 -0
  166. package/dist/migration/replay-plan.js.map +1 -0
  167. package/dist/migration/replayed-name.d.ts +7 -0
  168. package/dist/migration/replayed-name.d.ts.map +1 -0
  169. package/dist/migration/replayed-name.js +12 -0
  170. package/dist/migration/replayed-name.js.map +1 -0
  171. package/dist/migration/sql-statement.d.ts +6 -0
  172. package/dist/migration/sql-statement.d.ts.map +1 -0
  173. package/dist/migration/sql-statement.js +2 -0
  174. package/dist/migration/sql-statement.js.map +1 -0
  175. package/dist/migration/sql-statements.d.ts +4 -0
  176. package/dist/migration/sql-statements.d.ts.map +1 -0
  177. package/dist/migration/sql-statements.js +36 -0
  178. package/dist/migration/sql-statements.js.map +1 -0
  179. package/dist/migration/table-change.d.ts +12 -0
  180. package/dist/migration/table-change.d.ts.map +1 -0
  181. package/dist/migration/table-change.js +2 -0
  182. package/dist/migration/table-change.js.map +1 -0
  183. package/dist/migration/table-changes.d.ts +9 -0
  184. package/dist/migration/table-changes.d.ts.map +1 -0
  185. package/dist/migration/table-changes.js +55 -0
  186. package/dist/migration/table-changes.js.map +1 -0
  187. package/dist/migration/tidy-written-migration.d.ts +5 -0
  188. package/dist/migration/tidy-written-migration.d.ts.map +1 -0
  189. package/dist/migration/tidy-written-migration.js +8 -0
  190. package/dist/migration/tidy-written-migration.js.map +1 -0
  191. package/dist/migration/wait-for-next-second.d.ts +6 -0
  192. package/dist/migration/wait-for-next-second.d.ts.map +1 -0
  193. package/dist/migration/wait-for-next-second.js +11 -0
  194. package/dist/migration/wait-for-next-second.js.map +1 -0
  195. package/dist/migration/warn-primary-key-order.d.ts +5 -0
  196. package/dist/migration/warn-primary-key-order.d.ts.map +1 -0
  197. package/dist/migration/warn-primary-key-order.js +16 -0
  198. package/dist/migration/warn-primary-key-order.js.map +1 -0
  199. package/dist/migration/written-migration.d.ts +9 -0
  200. package/dist/migration/written-migration.d.ts.map +1 -0
  201. package/dist/migration/written-migration.js +2 -0
  202. package/dist/migration/written-migration.js.map +1 -0
  203. package/dist/migration/written-paths.d.ts +3 -0
  204. package/dist/migration/written-paths.d.ts.map +1 -0
  205. package/dist/migration/written-paths.js +5 -0
  206. package/dist/migration/written-paths.js.map +1 -0
  207. package/dist/plan/aggregates-of.d.ts +6 -0
  208. package/dist/plan/aggregates-of.d.ts.map +1 -0
  209. package/dist/plan/aggregates-of.js +13 -0
  210. package/dist/plan/aggregates-of.js.map +1 -0
  211. package/dist/plan/batched-waves.d.ts +18 -0
  212. package/dist/plan/batched-waves.d.ts.map +1 -0
  213. package/dist/plan/batched-waves.js +73 -0
  214. package/dist/plan/batched-waves.js.map +1 -0
  215. package/dist/plan/cycles-of.d.ts +8 -0
  216. package/dist/plan/cycles-of.d.ts.map +1 -0
  217. package/dist/plan/cycles-of.js +30 -0
  218. package/dist/plan/cycles-of.js.map +1 -0
  219. package/dist/plan/format-plan.d.ts +4 -0
  220. package/dist/plan/format-plan.d.ts.map +1 -0
  221. package/dist/plan/format-plan.js +53 -0
  222. package/dist/plan/format-plan.js.map +1 -0
  223. package/dist/plan/merge-order.d.ts +8 -0
  224. package/dist/plan/merge-order.d.ts.map +1 -0
  225. package/dist/plan/merge-order.js +32 -0
  226. package/dist/plan/merge-order.js.map +1 -0
  227. package/dist/plan/plan-problems.d.ts +8 -0
  228. package/dist/plan/plan-problems.d.ts.map +1 -0
  229. package/dist/plan/plan-problems.js +57 -0
  230. package/dist/plan/plan-problems.js.map +1 -0
  231. package/dist/plan/plan-waves.d.ts +16 -0
  232. package/dist/plan/plan-waves.d.ts.map +1 -0
  233. package/dist/plan/plan-waves.js +23 -0
  234. package/dist/plan/plan-waves.js.map +1 -0
  235. package/dist/plan/rows-to-plan.d.ts +7 -0
  236. package/dist/plan/rows-to-plan.d.ts.map +1 -0
  237. package/dist/plan/rows-to-plan.js +19 -0
  238. package/dist/plan/rows-to-plan.js.map +1 -0
  239. package/dist/plan/wave-numbers.d.ts +8 -0
  240. package/dist/plan/wave-numbers.d.ts.map +1 -0
  241. package/dist/plan/wave-numbers.js +27 -0
  242. package/dist/plan/wave-numbers.js.map +1 -0
  243. package/dist/plan/wave-plan.d.ts +48 -0
  244. package/dist/plan/wave-plan.d.ts.map +1 -0
  245. package/dist/plan/wave-plan.js +2 -0
  246. package/dist/plan/wave-plan.js.map +1 -0
  247. package/dist/progress/format-progress.d.ts.map +1 -1
  248. package/dist/progress/format-progress.js +16 -1
  249. package/dist/progress/format-progress.js.map +1 -1
  250. package/dist/progress/progress.d.ts +11 -1
  251. package/dist/progress/progress.d.ts.map +1 -1
  252. package/dist/progress/read-progress.d.ts +6 -2
  253. package/dist/progress/read-progress.d.ts.map +1 -1
  254. package/dist/progress/read-progress.js +10 -5
  255. package/dist/progress/read-progress.js.map +1 -1
  256. package/dist/progress/status-row-of.d.ts +16 -0
  257. package/dist/progress/status-row-of.d.ts.map +1 -0
  258. package/dist/progress/status-row-of.js +23 -0
  259. package/dist/progress/status-row-of.js.map +1 -0
  260. package/dist/run.d.ts.map +1 -1
  261. package/dist/run.js +4 -0
  262. package/dist/run.js.map +1 -1
  263. package/dist/slice/changed-entries.d.ts +7 -0
  264. package/dist/slice/changed-entries.d.ts.map +1 -0
  265. package/dist/slice/changed-entries.js +20 -0
  266. package/dist/slice/changed-entries.js.map +1 -0
  267. package/dist/slice/changed-entry.d.ts +6 -0
  268. package/dist/slice/changed-entry.d.ts.map +1 -0
  269. package/dist/slice/changed-entry.js +2 -0
  270. package/dist/slice/changed-entry.js.map +1 -0
  271. package/dist/slice/format-slice-verification.d.ts.map +1 -1
  272. package/dist/slice/format-slice-verification.js +10 -0
  273. package/dist/slice/format-slice-verification.js.map +1 -1
  274. package/dist/slice/plan-staging.d.ts +13 -0
  275. package/dist/slice/plan-staging.d.ts.map +1 -0
  276. package/dist/slice/plan-staging.js +52 -0
  277. package/dist/slice/plan-staging.js.map +1 -0
  278. package/dist/slice/slice-verification.d.ts +3 -0
  279. package/dist/slice/slice-verification.d.ts.map +1 -1
  280. package/dist/slice/staging-plan.d.ts +6 -0
  281. package/dist/slice/staging-plan.d.ts.map +1 -0
  282. package/dist/slice/staging-plan.js +2 -0
  283. package/dist/slice/staging-plan.js.map +1 -0
  284. package/dist/slice/verify-slice.d.ts.map +1 -1
  285. package/dist/slice/verify-slice.js +3 -2
  286. package/dist/slice/verify-slice.js.map +1 -1
  287. package/dist/version.d.ts +1 -1
  288. package/dist/version.js +1 -1
  289. package/dist/worker/briefing-of.js +1 -1
  290. package/dist/worker/briefing-of.js.map +1 -1
  291. package/dist/worker/rows-on-branches.d.ts +8 -0
  292. package/dist/worker/rows-on-branches.d.ts.map +1 -0
  293. package/dist/worker/rows-on-branches.js +9 -0
  294. package/dist/worker/rows-on-branches.js.map +1 -0
  295. package/package.json +2 -2
  296. package/templates/e2e/e2e.spec.ts.tpl +2 -2
  297. package/templates/init/e2e/start-application.database.ts.tpl +30 -1
  298. package/templates/init/e2e/start-application.memory.ts.tpl +30 -1
  299. package/templates/init/e2e/vitest.e2e.config.ts.tpl +4 -0
  300. package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +18 -1
  301. package/templates/init/platform/database/open-test-database.knex.ts.tpl +18 -1
  302. package/templates/init/platform/database/open-test-database.prisma.ts.tpl +18 -1
  303. package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +18 -1
  304. package/templates/init/platform/database/test-database-template.ts.tpl +23 -0
  305. package/templates/init/rules/tests.md.tpl +1 -1
  306. package/templates/pipeline/package-scripts.json +1 -1
  307. package/templates/pipeline/vitest.config.ts.tpl +6 -0
  308. package/dist/slice/paths-to-stage.d.ts +0 -6
  309. package/dist/slice/paths-to-stage.d.ts.map +0 -1
  310. package/dist/slice/paths-to-stage.js +0 -13
  311. package/dist/slice/paths-to-stage.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-diagnosis.js","sourceRoot":"","sources":["../../src/doctor/format-diagnosis.ts"],"names":[],"mappings":"AAEA,kGAAkG;AAClG,MAAM,UAAU,eAAe,CAAC,QAAkC,EAAE,OAAe;IACjF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,mCAAmC,OAAO,wDAAwD,CAAC;IAC5G,CAAC;IAED,OAAO,CAAC,iCAAiC,OAAO,UAAU,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACjH,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAiB;IACrE,MAAM,KAAK,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,EAAE,CAAC;IAE7D,OAAO,KAAK,IAAI,IAAI,IAAI,KAAK,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,GAAG,KAAK,GAAG,CAAC;AAC/E,CAAC;AAED,SAAS,OAAO,CAAC,IAA2B;IAC1C,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AAC5C,CAAC;AAED,SAAS,OAAO,CAAC,QAAkC;IACjD,MAAM,KAAK,GAAG,CAAC,kGAAkG,CAAC,CAAC;IAEnH,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,KAAK,eAAe,CAAC,EAAE,CAAC;QAClG,KAAK,CAAC,IAAI,CACR,mKAAmK,CACpK,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,KAAK,mBAAmB,CAAC,EAAE,CAAC;QACxE,KAAK,CAAC,IAAI,CACR,2HAA2H,CAC5H,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { DoctorFinding } from './doctor-finding.js';
3
+ /**
4
+ * The packages of the kit the project needs for its stack, missing or at another range than this
5
+ * version writes: they are upgraded together, never one alone.
6
+ */
7
+ export declare function packageFindings(config: Config, installed: Readonly<Record<string, unknown>>): DoctorFinding[];
8
+ //# sourceMappingURL=package-findings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-findings.d.ts","sourceRoot":"","sources":["../../src/doctor/package-findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKzD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,aAAa,EAAE,CAe7G"}
@@ -0,0 +1,21 @@
1
+ import { dependenciesFor } from '../init/manifest/dependencies-for.js';
2
+ /** The packages of the kit are released together: each one at the range this version writes. */
3
+ const OF_THE_KIT = /^(?:ddd-ts-kit|@ddd-ts-kit\/.+)$/;
4
+ /**
5
+ * The packages of the kit the project needs for its stack, missing or at another range than this
6
+ * version writes: they are upgraded together, never one alone.
7
+ */
8
+ export function packageFindings(config, installed) {
9
+ const wanted = dependenciesFor(config);
10
+ const expected = { ...wanted.dependencies, ...wanted.devDependencies };
11
+ return Object.entries(expected)
12
+ .filter(([name]) => OF_THE_KIT.test(name))
13
+ .flatMap(([name, range]) => {
14
+ const found = installed[name];
15
+ if (typeof found !== 'string') {
16
+ return [{ area: 'package', name, problem: 'missing', expected: range }];
17
+ }
18
+ return found === range ? [] : [{ area: 'package', name, problem: 'other version', expected: range, found }];
19
+ });
20
+ }
21
+ //# sourceMappingURL=package-findings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-findings.js","sourceRoot":"","sources":["../../src/doctor/package-findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,gGAAgG;AAChG,MAAM,UAAU,GAAG,kCAAkC,CAAC;AAEtD;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,SAA4C;IAC1F,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,EAAE,GAAG,MAAM,CAAC,YAAY,EAAE,GAAG,MAAM,CAAC,eAAe,EAAE,CAAC;IAEvE,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;SAC5B,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAmB,EAAE;QAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAE9B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1E,CAAC;QAED,OAAO,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9G,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { DoctorFinding } from './doctor-finding.js';
3
+ /** The permissions of `.claude/settings.json` this version writes that the project's settings lack. */
4
+ export declare function permissionFindings(config: Config, settings: unknown): DoctorFinding[];
5
+ //# sourceMappingURL=permission-findings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-findings.d.ts","sourceRoot":"","sources":["../../src/doctor/permission-findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,uGAAuG;AACvG,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,aAAa,EAAE,CAcrF"}
@@ -0,0 +1,16 @@
1
+ import { AGENT_PERMISSIONS } from '../init/agent-permissions.js';
2
+ import { isRecord } from '../config/values/is-record.js';
3
+ import { inDialect } from '../package-manager/in-dialect.js';
4
+ /** The permissions of `.claude/settings.json` this version writes that the project's settings lack. */
5
+ export function permissionFindings(config, settings) {
6
+ const permissions = isRecord(settings) && isRecord(settings['permissions']) ? settings['permissions'] : {};
7
+ return Object.entries(AGENT_PERMISSIONS).flatMap(([kind, rules]) => {
8
+ const present = permissions[kind];
9
+ const held = Array.isArray(present) ? present : [];
10
+ return rules
11
+ .map((rule) => inDialect(rule, config.stack.packageManager))
12
+ .filter((rule) => !held.includes(rule))
13
+ .map((rule) => ({ area: 'permission', name: `${kind} ${rule}`, problem: 'missing', expected: rule }));
14
+ });
15
+ }
16
+ //# sourceMappingURL=permission-findings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-findings.js","sourceRoot":"","sources":["../../src/doctor/permission-findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAG7D,uGAAuG;AACvG,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,QAAiB;IAClE,MAAM,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3G,OAAO,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;QACjE,MAAM,OAAO,GAAY,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAEnD,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;aAC3D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aACtC,GAAG,CACF,CAAC,IAAI,EAAiB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,IAAI,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAC/G,CAAC;IACN,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { DoctorFinding } from './doctor-finding.js';
3
+ /** The scripts this version writes that package.json lacks, then the ones it writes otherwise. */
4
+ export declare function scriptFindings(config: Config, scripts: Readonly<Record<string, unknown>>): DoctorFinding[];
5
+ //# sourceMappingURL=script-findings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-findings.d.ts","sourceRoot":"","sources":["../../src/doctor/script-findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,aAAa,EAAE,CAU1G"}
@@ -0,0 +1,12 @@
1
+ import { scriptsFor } from '../init/manifest/scripts-for.js';
2
+ /** The scripts this version writes that package.json lacks, then the ones it writes otherwise. */
3
+ export function scriptFindings(config, scripts) {
4
+ return Object.entries(scriptsFor(config)).flatMap(([name, expected]) => {
5
+ const found = scripts[name];
6
+ if (typeof found !== 'string') {
7
+ return [{ area: 'script', name, problem: 'missing', expected }];
8
+ }
9
+ return found === expected ? [] : [{ area: 'script', name, problem: 'written otherwise', expected, found }];
10
+ });
11
+ }
12
+ //# sourceMappingURL=script-findings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-findings.js","sourceRoot":"","sources":["../../src/doctor/script-findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,kGAAkG;AAClG,MAAM,UAAU,cAAc,CAAC,MAAc,EAAE,OAA0C;IACvF,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAmB,EAAE;QACtF,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAE5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAClE,CAAC;QAED,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7G,CAAC,CAAC,CAAC;AACL,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 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\n error-factories moves a project from one class per error to static factories on one error class per\n concept: --plan writes error-factories.plan.json, where each class is given its concept;\n --apply follows it (classes, specs, every usage, \"stack.refusals\" in the config)\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n 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, and the TODO(domain), TODO(platform), it.todo and TODO(review) left in\n each context; --workers shows instead each worktree holding .ddd-ts-kit/worker.json (branch,\n context, rows, base, commits ahead, files changed since the base, its report), then the\n contexts and the files more than 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 worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from\n --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; an existing worktree or branch\n that does not contain the base is refused\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, and the paths to stage; exits 1 while a step fails\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 --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one: run it once the shape of a version is the one to store;\n docs --check fails while a declared version is not recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
2
+ export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: deletes\n the migrations of the branch that --base <ref> (origin/main by default) does not have,\n with their snapshots and journal entries, then generates each again on top, in order,\n under its name (working- dropped outside a worker's worktree, a custom one keeping\n its SQL); refused while the journal holds conflict markers or when two of them change\n the schema\n error-factories moves a project from one class per error to static factories on one error class per\n concept: --plan writes error-factories.plan.json, where each class is given its concept;\n --apply follows it (classes, specs, every usage, \"stack.refusals\" in the config)\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise; init adds what is missing; --strict exits 1 while something is missing\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), and the TODO(domain), TODO(platform), it.todo and TODO(review)\n left in each context; --workers shows instead each worktree holding .ddd-ts-kit/worker.json (branch,\n context, rows, base, commits ahead, files changed since the base, its report), then the\n contexts and the files more than one worker holds\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), and the merge order; a cycle, a dependency on an unknown id\n or a row without owner is reported alone, and exits 1\n worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from\n --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; an existing worktree or branch\n that does not contain the base is refused\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; exits 1 while a step fails\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 --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one: run it once the shape of a version is the one to store;\n docs --check fails while a declared version is not recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
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,+iJA6C8C,CAAC"}
1
+ {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,kqNAkE8C,CAAC"}
@@ -6,7 +6,15 @@ export const NOTES = ` affected what a pull request has to run: the con
6
6
  into relative paths, so that plain node runs the output (tsconfig.build.json by default)
7
7
  drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal
8
8
  fails and names the fix when drizzle-kit would ask whether a column or table is renamed,
9
- where drizzle-kit alone writes nothing and exits 0
9
+ where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the
10
+ journal it wrote with the Biome or Prettier of the format script, and warns when the
11
+ SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);
12
+ --replay, after merging the trunk into a branch when both added migrations: deletes
13
+ the migrations of the branch that --base <ref> (origin/main by default) does not have,
14
+ with their snapshots and journal entries, then generates each again on top, in order,
15
+ under its name (working- dropped outside a worker's worktree, a custom one keeping
16
+ its SQL); refused while the journal holds conflict markers or when two of them change
17
+ the schema
10
18
  error-factories moves a project from one class per error to static factories on one error class per
11
19
  concept: --plan writes error-factories.plan.json, where each class is given its concept;
12
20
  --apply follows it (classes, specs, every usage, "stack.refusals" in the config)
@@ -16,10 +24,15 @@ export const NOTES = ` affected what a pull request has to run: the con
16
24
  controllers moves the function routes of a project, or of one context, to controller classes: each
17
25
  <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of
18
26
  its resource, its schema files and its spec follow; a context is turned whole or not at all
27
+ doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this
28
+ version) and the agent permissions this version writes that the project lacks or writes
29
+ otherwise; init adds what is missing; --strict exits 1 while something is missing
19
30
  describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies
20
31
  status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by
21
- status and by owner, and the TODO(domain), TODO(platform), it.todo and TODO(review) left in
22
- each context; --workers shows instead each worktree holding .ddd-ts-kit/worker.json (branch,
32
+ status and by owner, each row not done ready on the trunk (its dependencies done), ready
33
+ on a branch (the others briefed to a worker with commits ahead of its base) or waiting
34
+ (with the ids it waits for), and the TODO(domain), TODO(platform), it.todo and TODO(review)
35
+ left in each context; --workers shows instead each worktree holding .ddd-ts-kit/worker.json (branch,
23
36
  context, rows, base, commits ahead, files changed since the base, its report), then the
24
37
  contexts and the files more than one worker holds
25
38
  sdk the typed client of each document of the contract, a workspace package under
@@ -28,6 +41,12 @@ export const NOTES = ` affected what a pull request has to run: the con
28
41
  scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);
29
42
  --check writes nothing and exits 1 while a client differs from its contract
30
43
  todo those markers as file:line, in the project or in one context
44
+ plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every
45
+ dependency done; wave n: the others in earlier waves), each wave cut into batches of one
46
+ owner, one or two rows on one aggregate, with the worker-scope command that briefs each,
47
+ the batches of a wave likely to touch the same files (same aggregate in Start with, or
48
+ unknown when it names none), and the merge order; a cycle, a dependency on an unknown id
49
+ or a row without owner is reported alone, and exits 1
31
50
  worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from
32
51
  --base <ref> (by default the current branch, refused from a worker's worktree), its
33
52
  .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>
@@ -35,7 +54,9 @@ export const NOTES = ` affected what a pull request has to run: the con
35
54
  that does not contain the base is refused
36
55
  verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files
37
56
  changed since --since (new ones included), the test script for the context; then the
38
- changed files past 300 of the 350 lines, and the paths to stage; exits 1 while a step fails
57
+ changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an
58
+ end-to-end spec, a working migration, the derived files git tracks) and every other
59
+ changed path, left out and never to stage with it; exits 1 while a step fails
39
60
  --commit-size the files and lines about to be committed against "commit" in the config (20 files and
40
61
  600 lines by default, generated files not counted); --staged reads the index only;
41
62
  advisory, --strict exits 1 when over
@@ -1 +1 @@
1
- {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEA6C2C,CAAC"}
1
+ {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAkE2C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Every command of the CLI and its flags, as `--help` prints them and docs/guides/commands.md shows them. */
2
- export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit error-factories --plan | --apply [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
2
+ export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit drizzle-generate --replay [--base <git-ref>]\n ddd-ts-kit error-factories --plan | --apply [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit 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,+6FA2CqE,CAAC"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,+iGA8CqE,CAAC"}
@@ -23,7 +23,9 @@ export const USAGE = `Usage
23
23
  ddd-ts-kit list [--context <name>]
24
24
  ddd-ts-kit describe <context>
25
25
  ddd-ts-kit status [--workers]
26
+ ddd-ts-kit doctor [--strict]
26
27
  ddd-ts-kit todo [<context>]
28
+ ddd-ts-kit plan-waves [<context>]
27
29
  ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]
28
30
  ddd-ts-kit verify-slice <context> --since <git-ref>
29
31
  ddd-ts-kit docs [--check] [--stored-events]
@@ -31,6 +33,7 @@ export const USAGE = `Usage
31
33
  ddd-ts-kit depcruise-config [--check|--write]
32
34
  ddd-ts-kit build-aliases [--project <tsconfig>]
33
35
  ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]
36
+ ddd-ts-kit drizzle-generate --replay [--base <git-ref>]
34
37
  ddd-ts-kit error-factories --plan | --apply [--dry-run]
35
38
  ddd-ts-kit controllers [<context>] [--dry-run]
36
39
  ddd-ts-kit value-objects [--dry-run]
@@ -1 +1 @@
1
- {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA2CkE,CAAC"}
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA8CkE,CAAC"}
@@ -0,0 +1,8 @@
1
+ type AgentPermissions = Readonly<Record<'allow' | 'deny' | 'ask', readonly string[]>>;
2
+ /**
3
+ * What an agent may do in the project without asking, what it never does, and what it asks
4
+ * for. Permissions only: nothing here changes how the agent behaves otherwise.
5
+ */
6
+ export declare const AGENT_PERMISSIONS: AgentPermissions;
7
+ export {};
8
+ //# sourceMappingURL=agent-permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-permissions.d.ts","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAiD/B,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * What an agent may do in the project without asking, what it never does, and what it asks
3
+ * for. Permissions only: nothing here changes how the agent behaves otherwise.
4
+ */
5
+ export const AGENT_PERMISSIONS = {
6
+ allow: [
7
+ 'Bash(npx ddd-ts-kit check *)',
8
+ 'Bash(npx ddd-ts-kit verify-slice *)',
9
+ 'Bash(npx ddd-ts-kit list *)',
10
+ 'Bash(npx ddd-ts-kit generate *)',
11
+ 'Bash(npx ddd-ts-kit docs *)',
12
+ 'Bash(npx ddd-ts-kit explain *)',
13
+ 'Bash(npx ddd-ts-kit rules)',
14
+ 'Bash(npm run verify)',
15
+ 'Bash(npm run typecheck)',
16
+ 'Bash(npm run lint *)',
17
+ 'Bash(npm test *)',
18
+ 'Bash(npm run test:e2e *)',
19
+ 'Bash(npm run regenerate)',
20
+ 'Bash(npm run docs:generate)',
21
+ 'Bash(npm run docs:check)',
22
+ 'Bash(npm run openapi:generate)',
23
+ 'Bash(npm run openapi:check)',
24
+ 'Bash(npm run events:generate)',
25
+ 'Bash(npm run events:check)',
26
+ ],
27
+ // Secrets, then the generated contracts: those are regenerated, never edited. In a deny
28
+ // list, a pattern starting with `!` carves its matches out of the rules before it
29
+ // (gitignore negation), which keeps `.env.example`, documentation, readable.
30
+ deny: [
31
+ 'Read(./.env)',
32
+ 'Read(./.env.*)',
33
+ 'Read(!./.env.example)',
34
+ 'Edit(./openapi/**)',
35
+ 'Edit(./docs/integration/asyncapi.*)',
36
+ 'Edit(./docs/integration/event-catalog.md)',
37
+ ],
38
+ // Then the files that hold the rules and the pipeline: changing one is a decision of the
39
+ // project owner, the same list as the editor hook of the plugin asks about.
40
+ ask: [
41
+ 'Bash(git push *)',
42
+ 'Bash(npm publish *)',
43
+ 'Edit(./ddd-ts-kit.config.json)',
44
+ 'Edit(./eslint.config.mjs)',
45
+ 'Edit(./biome.json)',
46
+ 'Edit(./.dependency-cruiser.cjs)',
47
+ 'Edit(./knip.json)',
48
+ 'Edit(./lefthook.yml)',
49
+ 'Edit(./.gitlab-ci.yml)',
50
+ 'Edit(./.github/workflows/**)',
51
+ 'Edit(./.claude/settings.json)',
52
+ 'Edit(./.github/copilot/settings.json)',
53
+ ],
54
+ };
55
+ //# sourceMappingURL=agent-permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IACjD,KAAK,EAAE;QACL,8BAA8B;QAC9B,qCAAqC;QACrC,6BAA6B;QAC7B,iCAAiC;QACjC,6BAA6B;QAC7B,gCAAgC;QAChC,4BAA4B;QAC5B,sBAAsB;QACtB,yBAAyB;QACzB,sBAAsB;QACtB,kBAAkB;QAClB,0BAA0B;QAC1B,0BAA0B;QAC1B,6BAA6B;QAC7B,0BAA0B;QAC1B,gCAAgC;QAChC,6BAA6B;QAC7B,+BAA+B;QAC/B,4BAA4B;KAC7B;IACD,wFAAwF;IACxF,kFAAkF;IAClF,6EAA6E;IAC7E,IAAI,EAAE;QACJ,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,oBAAoB;QACpB,qCAAqC;QACrC,2CAA2C;KAC5C;IACD,yFAAyF;IACzF,4EAA4E;IAC5E,GAAG,EAAE;QACH,kBAAkB;QAClB,qBAAqB;QACrB,gCAAgC;QAChC,2BAA2B;QAC3B,oBAAoB;QACpB,iCAAiC;QACjC,mBAAmB;QACnB,sBAAsB;QACtB,wBAAwB;QACxB,8BAA8B;QAC9B,+BAA+B;QAC/B,uCAAuC;KACxC;CACF,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,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA4D/C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQ3D"}
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,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA8D/C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAY3D"}
@@ -1,4 +1,6 @@
1
+ import { WITH_DATABASE } from '../../stack/with-database.js';
1
2
  import { platformFile } from './platform-file.js';
3
+ import { when } from './when.js';
2
4
  const INERT = 'inert-persistence.ts';
3
5
  const IN_MEMORY = [
4
6
  ['persistence.ts', 'memory'],
@@ -50,11 +52,15 @@ const TOOLING = {
50
52
  ],
51
53
  };
52
54
  export function persistenceFiles(config) {
53
- const { orm } = config.stack;
55
+ const { orm, tests } = config.stack;
54
56
  const files = (PERSISTENCE[orm] ?? []).filter(([file]) => file !== INERT || composesWithoutConnecting(config));
55
57
  return [
56
58
  ...files.map(([file, variant]) => platformFile(config, `database/${file}`, variant)),
57
59
  ...(TOOLING[orm] ?? []),
60
+ // The global setup of Vitest that saves the test database once per run, for each spec to open a copy of it.
61
+ ...when(tests === 'vitest' && WITH_DATABASE.includes(orm), [
62
+ ['test/support/test-database-template.ts', 'init/platform/database/test-database-template.ts.tpl'],
63
+ ]),
58
64
  ];
59
65
  }
60
66
  /** The script that lists the routes and the hand-wired architecture test compose the application without a database to reach. */
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-files.js","sourceRoot":"","sources":["../../../src/init/files/persistence-files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIlD,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,SAAS,EAAE,QAAQ,CAAC;QAClC,CAAC,aAAa,EAAE,SAAS,CAAC;QAC1B,CAAC,wBAAwB,EAAE,SAAS,CAAC;QACrC,CAAC,WAAW,EAAE,SAAS,CAAC;KACzB;IACD,IAAI,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAClG,MAAM,EA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pC,MAAM,KAAK,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,KAAK,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC;IAE/G,OAAO;QACL,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACvB,4GAA4G;QAC5G,GAAG,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,aAAa,CAAC,QAAQ,CAAC,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"}
@@ -1,35 +1,35 @@
1
1
  /** Ranges written to the generated package.json; bumped together with the kit. */
2
2
  export const VERSIONS = {
3
- '@ddd-ts-kit/kernel': '^0.23.0',
4
- '@ddd-ts-kit/validation': '^0.23.0',
5
- '@ddd-ts-kit/http': '^0.23.0',
6
- '@ddd-ts-kit/tracing': '^0.23.0',
7
- '@ddd-ts-kit/di': '^0.23.0',
8
- '@ddd-ts-kit/events': '^0.23.0',
9
- '@ddd-ts-kit/testing': '^0.23.0',
10
- '@ddd-ts-kit/drizzle': '^0.23.0',
11
- '@ddd-ts-kit/knex': '^0.23.0',
12
- '@ddd-ts-kit/prisma': '^0.23.0',
13
- '@ddd-ts-kit/typeorm': '^0.23.0',
14
- '@ddd-ts-kit/auth': '^0.23.0',
15
- '@ddd-ts-kit/rabbitmq': '^0.23.0',
16
- '@ddd-ts-kit/aspects': '^0.23.0',
17
- '@ddd-ts-kit/audit': '^0.23.0',
18
- '@ddd-ts-kit/redis': '^0.23.0',
19
- '@ddd-ts-kit/kafka': '^0.23.0',
20
- '@ddd-ts-kit/nats': '^0.23.0',
21
- '@ddd-ts-kit/scheduling': '^0.23.0',
22
- '@ddd-ts-kit/sentry': '^0.23.0',
23
- '@ddd-ts-kit/s3': '^0.23.0',
3
+ '@ddd-ts-kit/kernel': '^0.24.0',
4
+ '@ddd-ts-kit/validation': '^0.24.0',
5
+ '@ddd-ts-kit/http': '^0.24.0',
6
+ '@ddd-ts-kit/tracing': '^0.24.0',
7
+ '@ddd-ts-kit/di': '^0.24.0',
8
+ '@ddd-ts-kit/events': '^0.24.0',
9
+ '@ddd-ts-kit/testing': '^0.24.0',
10
+ '@ddd-ts-kit/drizzle': '^0.24.0',
11
+ '@ddd-ts-kit/knex': '^0.24.0',
12
+ '@ddd-ts-kit/prisma': '^0.24.0',
13
+ '@ddd-ts-kit/typeorm': '^0.24.0',
14
+ '@ddd-ts-kit/auth': '^0.24.0',
15
+ '@ddd-ts-kit/rabbitmq': '^0.24.0',
16
+ '@ddd-ts-kit/aspects': '^0.24.0',
17
+ '@ddd-ts-kit/audit': '^0.24.0',
18
+ '@ddd-ts-kit/redis': '^0.24.0',
19
+ '@ddd-ts-kit/kafka': '^0.24.0',
20
+ '@ddd-ts-kit/nats': '^0.24.0',
21
+ '@ddd-ts-kit/scheduling': '^0.24.0',
22
+ '@ddd-ts-kit/sentry': '^0.24.0',
23
+ '@ddd-ts-kit/s3': '^0.24.0',
24
24
  '@aws-sdk/client-s3': '^3.1150.0',
25
25
  '@aws-sdk/lib-storage': '^3.1150.0',
26
26
  '@aws-sdk/s3-request-presigner': '^3.1150.0',
27
27
  busboy: '^1.6.0',
28
28
  '@sentry/node': '^11.6.0',
29
- '@ddd-ts-kit/pino': '^0.23.0',
29
+ '@ddd-ts-kit/pino': '^0.24.0',
30
30
  pino: '^10.4.0',
31
31
  'pino-pretty': '^13.2.0',
32
- '@ddd-ts-kit/winston': '^0.23.0',
32
+ '@ddd-ts-kit/winston': '^0.24.0',
33
33
  winston: '^3.19.0',
34
34
  '@confluentinc/kafka-javascript': '^1.11.0',
35
35
  '@nats-io/jetstream': '^3.4.0',
@@ -37,7 +37,7 @@ export const VERSIONS = {
37
37
  ioredis: '^6.0.0',
38
38
  jose: '^6.0.0',
39
39
  amqplib: '^2.2.0',
40
- 'ddd-ts-kit': '^0.23.0',
40
+ 'ddd-ts-kit': '^0.24.0',
41
41
  tsx: '^4.23.15',
42
42
  vitest: '^5.0.3',
43
43
  zod: '^4.6.5',
@@ -1 +1 @@
1
- {"version":3,"file":"write-agent-settings.d.ts","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAgEvD,iHAAiH;AACjH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,SAAS,GAAG,IAAI,CAwBtD"}
1
+ {"version":3,"file":"write-agent-settings.d.ts","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQvD,iHAAiH;AACjH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,SAAS,GAAG,IAAI,CAwBtD"}
@@ -1,61 +1,8 @@
1
1
  import { isRecord } from './is-record.js';
2
2
  import { jsonObject } from './json-object.js';
3
3
  import { formatJson } from '../json/format-json.js';
4
+ import { AGENT_PERMISSIONS as PERMISSIONS } from './agent-permissions.js';
4
5
  const AGENT_SETTINGS = '.claude/settings.json';
5
- /**
6
- * What an agent may do in the project without asking, what it never does, and what it asks
7
- * for. Permissions only: nothing here changes how the agent behaves otherwise.
8
- */
9
- const PERMISSIONS = {
10
- allow: [
11
- 'Bash(npx ddd-ts-kit check *)',
12
- 'Bash(npx ddd-ts-kit verify-slice *)',
13
- 'Bash(npx ddd-ts-kit list *)',
14
- 'Bash(npx ddd-ts-kit generate *)',
15
- 'Bash(npx ddd-ts-kit docs *)',
16
- 'Bash(npx ddd-ts-kit explain *)',
17
- 'Bash(npx ddd-ts-kit rules)',
18
- 'Bash(npm run verify)',
19
- 'Bash(npm run typecheck)',
20
- 'Bash(npm run lint *)',
21
- 'Bash(npm test *)',
22
- 'Bash(npm run test:e2e *)',
23
- 'Bash(npm run regenerate)',
24
- 'Bash(npm run docs:generate)',
25
- 'Bash(npm run docs:check)',
26
- 'Bash(npm run openapi:generate)',
27
- 'Bash(npm run openapi:check)',
28
- 'Bash(npm run events:generate)',
29
- 'Bash(npm run events:check)',
30
- ],
31
- // Secrets, then the generated contracts: those are regenerated, never edited. In a deny
32
- // list, a pattern starting with `!` carves its matches out of the rules before it
33
- // (gitignore negation), which keeps `.env.example`, documentation, readable.
34
- deny: [
35
- 'Read(./.env)',
36
- 'Read(./.env.*)',
37
- 'Read(!./.env.example)',
38
- 'Edit(./openapi/**)',
39
- 'Edit(./docs/integration/asyncapi.*)',
40
- 'Edit(./docs/integration/event-catalog.md)',
41
- ],
42
- // Then the files that hold the rules and the pipeline: changing one is a decision of the
43
- // project owner, the same list as the editor hook of the plugin asks about.
44
- ask: [
45
- 'Bash(git push *)',
46
- 'Bash(npm publish *)',
47
- 'Edit(./ddd-ts-kit.config.json)',
48
- 'Edit(./eslint.config.mjs)',
49
- 'Edit(./biome.json)',
50
- 'Edit(./.dependency-cruiser.cjs)',
51
- 'Edit(./knip.json)',
52
- 'Edit(./lefthook.yml)',
53
- 'Edit(./.gitlab-ci.yml)',
54
- 'Edit(./.github/workflows/**)',
55
- 'Edit(./.claude/settings.json)',
56
- 'Edit(./.github/copilot/settings.json)',
57
- ],
58
- };
59
6
  /** Creates the settings, or adds the missing permissions to the ones the project already has, and says which. */
60
7
  export function writeAgentSettings(ws) {
61
8
  const existing = ws.read(AGENT_SETTINGS);
@@ -1 +1 @@
1
- {"version":3,"file":"write-agent-settings.js","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAI/C;;;GAGG;AACH,MAAM,WAAW,GAAgB;IAC/B,KAAK,EAAE;QACL,8BAA8B;QAC9B,qCAAqC;QACrC,6BAA6B;QAC7B,iCAAiC;QACjC,6BAA6B;QAC7B,gCAAgC;QAChC,4BAA4B;QAC5B,sBAAsB;QACtB,yBAAyB;QACzB,sBAAsB;QACtB,kBAAkB;QAClB,0BAA0B;QAC1B,0BAA0B;QAC1B,6BAA6B;QAC7B,0BAA0B;QAC1B,gCAAgC;QAChC,6BAA6B;QAC7B,+BAA+B;QAC/B,4BAA4B;KAC7B;IACD,wFAAwF;IACxF,kFAAkF;IAClF,6EAA6E;IAC7E,IAAI,EAAE;QACJ,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,oBAAoB;QACpB,qCAAqC;QACrC,2CAA2C;KAC5C;IACD,yFAAyF;IACzF,4EAA4E;IAC5E,GAAG,EAAE;QACH,kBAAkB;QAClB,qBAAqB;QACrB,gCAAgC;QAChC,2BAA2B;QAC3B,oBAAoB;QACpB,iCAAiC;QACjC,mBAAmB;QACnB,sBAAsB;QACtB,wBAAwB;QACxB,8BAA8B;QAC9B,+BAA+B;QAC/B,uCAAuC;KACxC;CACF,CAAC;AAEF,iHAAiH;AACjH,MAAM,UAAU,kBAAkB,CAAC,EAAa;IAC9C,MAAM,QAAQ,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAEzC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,EAAE,CAAC,M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,GAAc,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7E,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7E,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /** A migration of the branch that its base does not have, as the branch wrote it. */
2
+ export interface BranchMigration {
3
+ /** Its file name without `.sql`: `20261015101500_working-add-invoices`. */
4
+ readonly tag: string;
5
+ readonly sql: string;
6
+ /** Its snapshot repeats the one before it: the schema did not change, the statements were written by hand (`--custom`). */
7
+ readonly custom: boolean;
8
+ }
9
+ //# sourceMappingURL=branch-migration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-migration.d.ts","sourceRoot":"","sources":["../../src/migration/branch-migration.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,2HAA2H;IAC3H,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=branch-migration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-migration.js","sourceRoot":"","sources":["../../src/migration/branch-migration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import type { BranchMigration } from './branch-migration.js';
2
+ interface BranchFiles {
3
+ /** The files of the migrations folder and of its `meta/`, by path. */
4
+ readonly files: ReadonlyMap<string, string>;
5
+ readonly folder: string;
6
+ /** The tags of the branch's migrations, in their order. */
7
+ readonly tags: readonly string[];
8
+ }
9
+ /**
10
+ * The migrations of the branch with their SQL, each known as written by hand when its snapshot
11
+ * repeats, ids aside, the snapshot it names as `prevId`: drizzle-kit copies the last snapshot for a
12
+ * `--custom` migration, and writes the changed schema for any other.
13
+ */
14
+ export declare function branchMigrations({ files, folder, tags }: BranchFiles): BranchMigration[];
15
+ export {};
16
+ //# sourceMappingURL=branch-migrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/branch-migrations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,UAAU,WAAW;IACnB,sEAAsE;IACtE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,GAAG,eAAe,EAAE,CAsBxF"}