ddd-ts-kit 0.26.0 → 0.82.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 (491) hide show
  1. package/CHANGELOG.md +225 -0
  2. package/README.fr.md +62 -15
  3. package/README.md +56 -14
  4. package/dist/acceptance/acceptance-file-of.d.ts +5 -0
  5. package/dist/acceptance/acceptance-file-of.d.ts.map +1 -0
  6. package/dist/acceptance/acceptance-file-of.js +7 -0
  7. package/dist/acceptance/acceptance-file-of.js.map +1 -0
  8. package/dist/acceptance/acceptance-gate.d.ts +8 -0
  9. package/dist/acceptance/acceptance-gate.d.ts.map +1 -0
  10. package/dist/acceptance/acceptance-gate.js +2 -0
  11. package/dist/acceptance/acceptance-gate.js.map +1 -0
  12. package/dist/acceptance/acceptance-lock.d.ts +32 -0
  13. package/dist/acceptance/acceptance-lock.d.ts.map +1 -0
  14. package/dist/acceptance/acceptance-lock.js +2 -0
  15. package/dist/acceptance/acceptance-lock.js.map +1 -0
  16. package/dist/acceptance/acceptance-problem.d.ts +15 -0
  17. package/dist/acceptance/acceptance-problem.d.ts.map +1 -0
  18. package/dist/acceptance/acceptance-problem.js +2 -0
  19. package/dist/acceptance/acceptance-problem.js.map +1 -0
  20. package/dist/acceptance/commentless.d.ts +4 -0
  21. package/dist/acceptance/commentless.d.ts.map +1 -0
  22. package/dist/acceptance/commentless.js +31 -0
  23. package/dist/acceptance/commentless.js.map +1 -0
  24. package/dist/acceptance/counts-for.d.ts +5 -0
  25. package/dist/acceptance/counts-for.d.ts.map +1 -0
  26. package/dist/acceptance/counts-for.js +8 -0
  27. package/dist/acceptance/counts-for.js.map +1 -0
  28. package/dist/acceptance/criteria-in.d.ts +14 -0
  29. package/dist/acceptance/criteria-in.d.ts.map +1 -0
  30. package/dist/acceptance/criteria-in.js +34 -0
  31. package/dist/acceptance/criteria-in.js.map +1 -0
  32. package/dist/acceptance/drift.d.ts +30 -0
  33. package/dist/acceptance/drift.d.ts.map +1 -0
  34. package/dist/acceptance/drift.js +44 -0
  35. package/dist/acceptance/drift.js.map +1 -0
  36. package/dist/acceptance/format-acceptance.d.ts +5 -0
  37. package/dist/acceptance/format-acceptance.d.ts.map +1 -0
  38. package/dist/acceptance/format-acceptance.js +40 -0
  39. package/dist/acceptance/format-acceptance.js.map +1 -0
  40. package/dist/acceptance/lock-acceptance.d.ts +24 -0
  41. package/dist/acceptance/lock-acceptance.d.ts.map +1 -0
  42. package/dist/acceptance/lock-acceptance.js +58 -0
  43. package/dist/acceptance/lock-acceptance.js.map +1 -0
  44. package/dist/acceptance/lock-file-of.d.ts +3 -0
  45. package/dist/acceptance/lock-file-of.d.ts.map +1 -0
  46. package/dist/acceptance/lock-file-of.js +6 -0
  47. package/dist/acceptance/lock-file-of.js.map +1 -0
  48. package/dist/acceptance/lock-problems.d.ts +21 -0
  49. package/dist/acceptance/lock-problems.d.ts.map +1 -0
  50. package/dist/acceptance/lock-problems.js +58 -0
  51. package/dist/acceptance/lock-problems.js.map +1 -0
  52. package/dist/acceptance/read-acceptance.d.ts +9 -0
  53. package/dist/acceptance/read-acceptance.d.ts.map +1 -0
  54. package/dist/acceptance/read-acceptance.js +76 -0
  55. package/dist/acceptance/read-acceptance.js.map +1 -0
  56. package/dist/acceptance/read-lock.d.ts +5 -0
  57. package/dist/acceptance/read-lock.d.ts.map +1 -0
  58. package/dist/acceptance/read-lock.js +45 -0
  59. package/dist/acceptance/read-lock.js.map +1 -0
  60. package/dist/acceptance/read-verdicts.d.ts +9 -0
  61. package/dist/acceptance/read-verdicts.d.ts.map +1 -0
  62. package/dist/acceptance/read-verdicts.js +35 -0
  63. package/dist/acceptance/read-verdicts.js.map +1 -0
  64. package/dist/acceptance/scenario-problems.d.ts +12 -0
  65. package/dist/acceptance/scenario-problems.d.ts.map +1 -0
  66. package/dist/acceptance/scenario-problems.js +74 -0
  67. package/dist/acceptance/scenario-problems.js.map +1 -0
  68. package/dist/acceptance/scenario.d.ts +23 -0
  69. package/dist/acceptance/scenario.d.ts.map +1 -0
  70. package/dist/acceptance/scenario.js +2 -0
  71. package/dist/acceptance/scenario.js.map +1 -0
  72. package/dist/acceptance/scenarios-in.d.ts +4 -0
  73. package/dist/acceptance/scenarios-in.d.ts.map +1 -0
  74. package/dist/acceptance/scenarios-in.js +68 -0
  75. package/dist/acceptance/scenarios-in.js.map +1 -0
  76. package/dist/acceptance/story-acceptance.d.ts +29 -0
  77. package/dist/acceptance/story-acceptance.d.ts.map +1 -0
  78. package/dist/acceptance/story-acceptance.js +2 -0
  79. package/dist/acceptance/story-acceptance.js.map +1 -0
  80. package/dist/acceptance/story-file-of.d.ts +4 -0
  81. package/dist/acceptance/story-file-of.d.ts.map +1 -0
  82. package/dist/acceptance/story-file-of.js +8 -0
  83. package/dist/acceptance/story-file-of.js.map +1 -0
  84. package/dist/acceptance/story-of-file.d.ts +3 -0
  85. package/dist/acceptance/story-of-file.d.ts.map +1 -0
  86. package/dist/acceptance/story-of-file.js +6 -0
  87. package/dist/acceptance/story-of-file.js.map +1 -0
  88. package/dist/acceptance/story-of-row.d.ts +3 -0
  89. package/dist/acceptance/story-of-row.d.ts.map +1 -0
  90. package/dist/acceptance/story-of-row.js +6 -0
  91. package/dist/acceptance/story-of-row.js.map +1 -0
  92. package/dist/acceptance/story-problems.d.ts +16 -0
  93. package/dist/acceptance/story-problems.d.ts.map +1 -0
  94. package/dist/acceptance/story-problems.js +48 -0
  95. package/dist/acceptance/story-problems.js.map +1 -0
  96. package/dist/acceptance/verdict-on.d.ts +8 -0
  97. package/dist/acceptance/verdict-on.d.ts.map +1 -0
  98. package/dist/acceptance/verdict-on.js +9 -0
  99. package/dist/acceptance/verdict-on.js.map +1 -0
  100. package/dist/acceptance/verdict.d.ts +14 -0
  101. package/dist/acceptance/verdict.d.ts.map +1 -0
  102. package/dist/acceptance/verdict.js +2 -0
  103. package/dist/acceptance/verdict.js.map +1 -0
  104. package/dist/acceptance/verdicts-dir.d.ts +3 -0
  105. package/dist/acceptance/verdicts-dir.d.ts.map +1 -0
  106. package/dist/acceptance/verdicts-dir.js +3 -0
  107. package/dist/acceptance/verdicts-dir.js.map +1 -0
  108. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  109. package/dist/check/catalogue/architecture-rules.js +6 -0
  110. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  111. package/dist/check/catalogue/default-severities.d.ts.map +1 -1
  112. package/dist/check/catalogue/default-severities.js +3 -0
  113. package/dist/check/catalogue/default-severities.js.map +1 -1
  114. package/dist/check/commands/check-command.d.ts.map +1 -1
  115. package/dist/check/commands/check-command.js +4 -1
  116. package/dist/check/commands/check-command.js.map +1 -1
  117. package/dist/check/commands/explain-command.d.ts.map +1 -1
  118. package/dist/check/commands/explain-command.js +2 -9
  119. package/dist/check/commands/explain-command.js.map +1 -1
  120. package/dist/check/configuration/config-inspection.d.ts +1 -0
  121. package/dist/check/configuration/config-inspection.d.ts.map +1 -1
  122. package/dist/check/configuration/config-inspection.js +9 -1
  123. package/dist/check/configuration/config-inspection.js.map +1 -1
  124. package/dist/check/engine/format-check.d.ts +6 -1
  125. package/dist/check/engine/format-check.d.ts.map +1 -1
  126. package/dist/check/engine/format-check.js +33 -11
  127. package/dist/check/engine/format-check.js.map +1 -1
  128. package/dist/check/explain/documented-rule.d.ts +8 -0
  129. package/dist/check/explain/documented-rule.d.ts.map +1 -0
  130. package/dist/check/explain/documented-rule.js +14 -0
  131. package/dist/check/explain/documented-rule.js.map +1 -0
  132. package/dist/check/explain/explanations-of.d.ts +5 -0
  133. package/dist/check/explain/explanations-of.d.ts.map +1 -0
  134. package/dist/check/explain/explanations-of.js +16 -0
  135. package/dist/check/explain/explanations-of.js.map +1 -0
  136. package/dist/check/explain/persistence-docs.d.ts.map +1 -1
  137. package/dist/check/explain/persistence-docs.js +7 -0
  138. package/dist/check/explain/persistence-docs.js.map +1 -1
  139. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  140. package/dist/check/explain/tree-docs.js +9 -0
  141. package/dist/check/explain/tree-docs.js.map +1 -1
  142. package/dist/check/explain/wiring-docs.d.ts.map +1 -1
  143. package/dist/check/explain/wiring-docs.js +13 -0
  144. package/dist/check/explain/wiring-docs.js.map +1 -1
  145. package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
  146. package/dist/check/fixtures/declarations-fixtures.js +78 -1
  147. package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
  148. package/dist/check/fixtures/persistence-fixtures.d.ts.map +1 -1
  149. package/dist/check/fixtures/persistence-fixtures.js +25 -0
  150. package/dist/check/fixtures/persistence-fixtures.js.map +1 -1
  151. package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
  152. package/dist/check/fixtures/test-fixtures.js +35 -0
  153. package/dist/check/fixtures/test-fixtures.js.map +1 -1
  154. package/dist/check/model/rule-explanation.d.ts +10 -0
  155. package/dist/check/model/rule-explanation.d.ts.map +1 -0
  156. package/dist/check/model/rule-explanation.js +2 -0
  157. package/dist/check/model/rule-explanation.js.map +1 -0
  158. package/dist/check/project/walk-directory.js +1 -1
  159. package/dist/check/project/walk-directory.js.map +1 -1
  160. package/dist/check/rules/config-valid.d.ts.map +1 -1
  161. package/dist/check/rules/config-valid.js +1 -0
  162. package/dist/check/rules/config-valid.js.map +1 -1
  163. package/dist/check/rules/declarations-port-adapter-wired.d.ts +3 -0
  164. package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -0
  165. package/dist/check/rules/declarations-port-adapter-wired.js +104 -0
  166. package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -0
  167. package/dist/check/rules/persistence-primary-key-order.d.ts +3 -0
  168. package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -0
  169. package/dist/check/rules/persistence-primary-key-order.js +31 -0
  170. package/dist/check/rules/persistence-primary-key-order.js.map +1 -0
  171. package/dist/check/rules/test-acceptance-black-box.d.ts +3 -0
  172. package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -0
  173. package/dist/check/rules/test-acceptance-black-box.js +38 -0
  174. package/dist/check/rules/test-acceptance-black-box.js.map +1 -0
  175. package/dist/commands/acceptance.d.ts +11 -0
  176. package/dist/commands/acceptance.d.ts.map +1 -0
  177. package/dist/commands/acceptance.js +63 -0
  178. package/dist/commands/acceptance.js.map +1 -0
  179. package/dist/commands/doctor.d.ts +4 -1
  180. package/dist/commands/doctor.d.ts.map +1 -1
  181. package/dist/commands/doctor.js +20 -4
  182. package/dist/commands/doctor.js.map +1 -1
  183. package/dist/commands/lint.d.ts +7 -0
  184. package/dist/commands/lint.d.ts.map +1 -0
  185. package/dist/commands/lint.js +55 -0
  186. package/dist/commands/lint.js.map +1 -0
  187. package/dist/commands/plan-waves.d.ts.map +1 -1
  188. package/dist/commands/plan-waves.js +1 -2
  189. package/dist/commands/plan-waves.js.map +1 -1
  190. package/dist/commands/stories.d.ts +9 -0
  191. package/dist/commands/stories.d.ts.map +1 -0
  192. package/dist/commands/stories.js +16 -0
  193. package/dist/commands/stories.js.map +1 -0
  194. package/dist/commands/story-scope.d.ts +4 -0
  195. package/dist/commands/story-scope.d.ts.map +1 -0
  196. package/dist/commands/story-scope.js +34 -0
  197. package/dist/commands/story-scope.js.map +1 -0
  198. package/dist/commands/story.d.ts +9 -0
  199. package/dist/commands/story.d.ts.map +1 -0
  200. package/dist/commands/story.js +45 -0
  201. package/dist/commands/story.js.map +1 -0
  202. package/dist/commands/worker-scope.d.ts.map +1 -1
  203. package/dist/commands/worker-scope.js +2 -0
  204. package/dist/commands/worker-scope.js.map +1 -1
  205. package/dist/commands/worktree.d.ts +7 -0
  206. package/dist/commands/worktree.d.ts.map +1 -0
  207. package/dist/commands/worktree.js +34 -0
  208. package/dist/commands/worktree.js.map +1 -0
  209. package/dist/config/config.d.ts +9 -0
  210. package/dist/config/config.d.ts.map +1 -1
  211. package/dist/config/index.d.ts +1 -0
  212. package/dist/config/index.d.ts.map +1 -1
  213. package/dist/config/index.js +1 -0
  214. package/dist/config/index.js.map +1 -1
  215. package/dist/config/parse-config.d.ts.map +1 -1
  216. package/dist/config/parse-config.js +3 -0
  217. package/dist/config/parse-config.js.map +1 -1
  218. package/dist/config/restack-config-text.d.ts +3 -2
  219. package/dist/config/restack-config-text.d.ts.map +1 -1
  220. package/dist/config/restack-config-text.js +5 -3
  221. package/dist/config/restack-config-text.js.map +1 -1
  222. package/dist/config/serialize-config.d.ts.map +1 -1
  223. package/dist/config/serialize-config.js +3 -1
  224. package/dist/config/serialize-config.js.map +1 -1
  225. package/dist/config/worktree-modes.d.ts +3 -0
  226. package/dist/config/worktree-modes.d.ts.map +1 -0
  227. package/dist/config/worktree-modes.js +3 -0
  228. package/dist/config/worktree-modes.js.map +1 -0
  229. package/dist/doctor/diagnose.d.ts +2 -0
  230. package/dist/doctor/diagnose.d.ts.map +1 -1
  231. package/dist/doctor/diagnose.js +22 -3
  232. package/dist/doctor/diagnose.js.map +1 -1
  233. package/dist/doctor/doctor-finding.d.ts +13 -5
  234. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  235. package/dist/doctor/format-diagnosis.d.ts +4 -1
  236. package/dist/doctor/format-diagnosis.d.ts.map +1 -1
  237. package/dist/doctor/format-diagnosis.js +49 -3
  238. package/dist/doctor/format-diagnosis.js.map +1 -1
  239. package/dist/doctor/in-range.d.ts +7 -0
  240. package/dist/doctor/in-range.d.ts.map +1 -0
  241. package/dist/doctor/in-range.js +90 -0
  242. package/dist/doctor/in-range.js.map +1 -0
  243. package/dist/doctor/install-findings.d.ts +11 -0
  244. package/dist/doctor/install-findings.d.ts.map +1 -0
  245. package/dist/doctor/install-findings.js +119 -0
  246. package/dist/doctor/install-findings.js.map +1 -0
  247. package/dist/doctor/node-findings.d.ts +7 -0
  248. package/dist/doctor/node-findings.d.ts.map +1 -0
  249. package/dist/doctor/node-findings.js +19 -0
  250. package/dist/doctor/node-findings.js.map +1 -0
  251. package/dist/doctor/package-findings.d.ts +2 -0
  252. package/dist/doctor/package-findings.d.ts.map +1 -1
  253. package/dist/doctor/package-findings.js +1 -1
  254. package/dist/doctor/package-findings.js.map +1 -1
  255. package/dist/doctor/submodule-findings.d.ts +7 -0
  256. package/dist/doctor/submodule-findings.d.ts.map +1 -0
  257. package/dist/doctor/submodule-findings.js +22 -0
  258. package/dist/doctor/submodule-findings.js.map +1 -0
  259. package/dist/generate/kinds/acceptance-kind.d.ts +3 -0
  260. package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -0
  261. package/dist/generate/kinds/acceptance-kind.js +69 -0
  262. package/dist/generate/kinds/acceptance-kind.js.map +1 -0
  263. package/dist/generate/kinds.d.ts.map +1 -1
  264. package/dist/generate/kinds.js +2 -0
  265. package/dist/generate/kinds.js.map +1 -1
  266. package/dist/generate/schedule/cron-problem.d.ts.map +1 -1
  267. package/dist/generate/schedule/cron-problem.js +16 -1
  268. package/dist/generate/schedule/cron-problem.js.map +1 -1
  269. package/dist/generate/shared-writes.d.ts.map +1 -1
  270. package/dist/generate/shared-writes.js +3 -0
  271. package/dist/generate/shared-writes.js.map +1 -1
  272. package/dist/help/notes.d.ts +1 -1
  273. package/dist/help/notes.d.ts.map +1 -1
  274. package/dist/help/notes.js +71 -10
  275. package/dist/help/notes.js.map +1 -1
  276. package/dist/help/usage.d.ts +1 -1
  277. package/dist/help/usage.d.ts.map +1 -1
  278. package/dist/help/usage.js +8 -1
  279. package/dist/help/usage.js.map +1 -1
  280. package/dist/init/agent-permissions.d.ts.map +1 -1
  281. package/dist/init/agent-permissions.js +9 -1
  282. package/dist/init/agent-permissions.js.map +1 -1
  283. package/dist/init/ignore-worktrees.d.ts +7 -0
  284. package/dist/init/ignore-worktrees.d.ts.map +1 -0
  285. package/dist/init/ignore-worktrees.js +15 -0
  286. package/dist/init/ignore-worktrees.js.map +1 -0
  287. package/dist/init/manifest/versions.js +24 -24
  288. package/dist/init/run-init.d.ts.map +1 -1
  289. package/dist/init/run-init.js +12 -4
  290. package/dist/init/run-init.js.map +1 -1
  291. package/dist/lint/eslint-in-project.d.ts +8 -0
  292. package/dist/lint/eslint-in-project.d.ts.map +1 -0
  293. package/dist/lint/eslint-in-project.js +33 -0
  294. package/dist/lint/eslint-in-project.js.map +1 -0
  295. package/dist/lint/format-verdict.d.ts +4 -0
  296. package/dist/lint/format-verdict.d.ts.map +1 -0
  297. package/dist/lint/format-verdict.js +11 -0
  298. package/dist/lint/format-verdict.js.map +1 -0
  299. package/dist/lint/lint-run.d.ts +8 -0
  300. package/dist/lint/lint-run.d.ts.map +1 -0
  301. package/dist/lint/lint-run.js +2 -0
  302. package/dist/lint/lint-run.js.map +1 -0
  303. package/dist/lint/lint-verdict.d.ts +19 -0
  304. package/dist/lint/lint-verdict.d.ts.map +1 -0
  305. package/dist/lint/lint-verdict.js +25 -0
  306. package/dist/lint/lint-verdict.js.map +1 -0
  307. package/dist/lint/parse-lint-answer.d.ts +13 -0
  308. package/dist/lint/parse-lint-answer.d.ts.map +1 -0
  309. package/dist/lint/parse-lint-answer.js +18 -0
  310. package/dist/lint/parse-lint-answer.js.map +1 -0
  311. package/dist/migration/plan-replay.d.ts +4 -3
  312. package/dist/migration/plan-replay.d.ts.map +1 -1
  313. package/dist/migration/plan-replay.js +21 -6
  314. package/dist/migration/plan-replay.js.map +1 -1
  315. package/dist/migration/rename-branch-migrations.d.ts +13 -0
  316. package/dist/migration/rename-branch-migrations.d.ts.map +1 -0
  317. package/dist/migration/rename-branch-migrations.js +25 -0
  318. package/dist/migration/rename-branch-migrations.js.map +1 -0
  319. package/dist/migration/replay-drizzle-migrations.d.ts +6 -3
  320. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
  321. package/dist/migration/replay-drizzle-migrations.js +48 -4
  322. package/dist/migration/replay-drizzle-migrations.js.map +1 -1
  323. package/dist/migration/replay-plan.d.ts +8 -0
  324. package/dist/migration/replay-plan.d.ts.map +1 -1
  325. package/dist/migration/restore-migration-folder.d.ts +4 -0
  326. package/dist/migration/restore-migration-folder.d.ts.map +1 -0
  327. package/dist/migration/restore-migration-folder.js +15 -0
  328. package/dist/migration/restore-migration-folder.js.map +1 -0
  329. package/dist/package-manager/lockfiles.d.ts +2 -0
  330. package/dist/package-manager/lockfiles.d.ts.map +1 -1
  331. package/dist/package-manager/lockfiles.js +5 -0
  332. package/dist/package-manager/lockfiles.js.map +1 -1
  333. package/dist/plan/batched-waves.d.ts +0 -2
  334. package/dist/plan/batched-waves.d.ts.map +1 -1
  335. package/dist/plan/batched-waves.js +4 -4
  336. package/dist/plan/batched-waves.js.map +1 -1
  337. package/dist/plan/plan-waves.d.ts +0 -2
  338. package/dist/plan/plan-waves.d.ts.map +1 -1
  339. package/dist/plan/plan-waves.js +2 -2
  340. package/dist/plan/plan-waves.js.map +1 -1
  341. package/dist/run.d.ts.map +1 -1
  342. package/dist/run.js +12 -0
  343. package/dist/run.js.map +1 -1
  344. package/dist/slice/plan-staging.d.ts +1 -1
  345. package/dist/slice/plan-staging.d.ts.map +1 -1
  346. package/dist/slice/plan-staging.js +5 -2
  347. package/dist/slice/plan-staging.js.map +1 -1
  348. package/dist/stories/forecast-merge.d.ts +14 -0
  349. package/dist/stories/forecast-merge.d.ts.map +1 -0
  350. package/dist/stories/forecast-merge.js +44 -0
  351. package/dist/stories/forecast-merge.js.map +1 -0
  352. package/dist/stories/format-stories.d.ts +4 -0
  353. package/dist/stories/format-stories.d.ts.map +1 -0
  354. package/dist/stories/format-stories.js +66 -0
  355. package/dist/stories/format-stories.js.map +1 -0
  356. package/dist/stories/format-story-phases.d.ts +5 -0
  357. package/dist/stories/format-story-phases.d.ts.map +1 -0
  358. package/dist/stories/format-story-phases.js +14 -0
  359. package/dist/stories/format-story-phases.js.map +1 -0
  360. package/dist/stories/merge-forecast.d.ts +18 -0
  361. package/dist/stories/merge-forecast.d.ts.map +1 -0
  362. package/dist/stories/merge-forecast.js +2 -0
  363. package/dist/stories/merge-forecast.js.map +1 -0
  364. package/dist/stories/open-stories.d.ts +8 -0
  365. package/dist/stories/open-stories.d.ts.map +1 -0
  366. package/dist/stories/open-stories.js +31 -0
  367. package/dist/stories/open-stories.js.map +1 -0
  368. package/dist/stories/open-story-scope.d.ts +23 -0
  369. package/dist/stories/open-story-scope.d.ts.map +1 -0
  370. package/dist/stories/open-story-scope.js +86 -0
  371. package/dist/stories/open-story-scope.js.map +1 -0
  372. package/dist/stories/open-story.d.ts +11 -0
  373. package/dist/stories/open-story.d.ts.map +1 -0
  374. package/dist/stories/open-story.js +2 -0
  375. package/dist/stories/open-story.js.map +1 -0
  376. package/dist/stories/read-stories.d.ts +9 -0
  377. package/dist/stories/read-stories.d.ts.map +1 -0
  378. package/dist/stories/read-stories.js +60 -0
  379. package/dist/stories/read-stories.js.map +1 -0
  380. package/dist/stories/read-story-phases.d.ts +10 -0
  381. package/dist/stories/read-story-phases.d.ts.map +1 -0
  382. package/dist/stories/read-story-phases.js +144 -0
  383. package/dist/stories/read-story-phases.js.map +1 -0
  384. package/dist/stories/read-story-place.d.ts +4 -0
  385. package/dist/stories/read-story-place.d.ts.map +1 -0
  386. package/dist/stories/read-story-place.js +23 -0
  387. package/dist/stories/read-story-place.js.map +1 -0
  388. package/dist/stories/review-file-of.d.ts +4 -0
  389. package/dist/stories/review-file-of.d.ts.map +1 -0
  390. package/dist/stories/review-file-of.js +7 -0
  391. package/dist/stories/review-file-of.js.map +1 -0
  392. package/dist/stories/section-of.d.ts +3 -0
  393. package/dist/stories/section-of.d.ts.map +1 -0
  394. package/dist/stories/section-of.js +11 -0
  395. package/dist/stories/section-of.js.map +1 -0
  396. package/dist/stories/stories-view.d.ts +13 -0
  397. package/dist/stories/stories-view.d.ts.map +1 -0
  398. package/dist/stories/stories-view.js +2 -0
  399. package/dist/stories/stories-view.js.map +1 -0
  400. package/dist/stories/story-crossing.d.ts +16 -0
  401. package/dist/stories/story-crossing.d.ts.map +1 -0
  402. package/dist/stories/story-crossing.js +2 -0
  403. package/dist/stories/story-crossing.js.map +1 -0
  404. package/dist/stories/story-gate.d.ts +4 -0
  405. package/dist/stories/story-gate.d.ts.map +1 -0
  406. package/dist/stories/story-gate.js +2 -0
  407. package/dist/stories/story-gate.js.map +1 -0
  408. package/dist/stories/story-phase.d.ts +13 -0
  409. package/dist/stories/story-phase.d.ts.map +1 -0
  410. package/dist/stories/story-phase.js +2 -0
  411. package/dist/stories/story-phase.js.map +1 -0
  412. package/dist/stories/story-place.d.ts +14 -0
  413. package/dist/stories/story-place.d.ts.map +1 -0
  414. package/dist/stories/story-place.js +2 -0
  415. package/dist/stories/story-place.js.map +1 -0
  416. package/dist/stories/story-scope-file.d.ts +3 -0
  417. package/dist/stories/story-scope-file.d.ts.map +1 -0
  418. package/dist/stories/story-scope-file.js +3 -0
  419. package/dist/stories/story-scope-file.js.map +1 -0
  420. package/dist/stories/story-scope.d.ts +17 -0
  421. package/dist/stories/story-scope.d.ts.map +1 -0
  422. package/dist/stories/story-scope.js +2 -0
  423. package/dist/stories/story-scope.js.map +1 -0
  424. package/dist/stories/story-state.d.ts +13 -0
  425. package/dist/stories/story-state.d.ts.map +1 -0
  426. package/dist/stories/story-state.js +2 -0
  427. package/dist/stories/story-state.js.map +1 -0
  428. package/dist/stories/trunk-phase.d.ts +8 -0
  429. package/dist/stories/trunk-phase.d.ts.map +1 -0
  430. package/dist/stories/trunk-phase.js +27 -0
  431. package/dist/stories/trunk-phase.js.map +1 -0
  432. package/dist/version.d.ts +1 -1
  433. package/dist/version.js +1 -1
  434. package/dist/worker/add-worktree.d.ts +7 -0
  435. package/dist/worker/add-worktree.d.ts.map +1 -0
  436. package/dist/worker/add-worktree.js +13 -0
  437. package/dist/worker/add-worktree.js.map +1 -0
  438. package/dist/worker/branch-exists.d.ts +3 -0
  439. package/dist/worker/branch-exists.d.ts.map +1 -0
  440. package/dist/worker/branch-exists.js +6 -0
  441. package/dist/worker/branch-exists.js.map +1 -0
  442. package/dist/worker/briefed-rows.js +1 -1
  443. package/dist/worker/briefed-rows.js.map +1 -1
  444. package/dist/worker/ensure-ignored.d.ts +7 -0
  445. package/dist/worker/ensure-ignored.d.ts.map +1 -0
  446. package/dist/worker/ensure-ignored.js +17 -0
  447. package/dist/worker/ensure-ignored.js.map +1 -0
  448. package/dist/worker/install-notes.d.ts +9 -0
  449. package/dist/worker/install-notes.d.ts.map +1 -0
  450. package/dist/worker/install-notes.js +25 -0
  451. package/dist/worker/install-notes.js.map +1 -0
  452. package/dist/worker/is-worktree.d.ts +3 -0
  453. package/dist/worker/is-worktree.d.ts.map +1 -0
  454. package/dist/worker/is-worktree.js +15 -0
  455. package/dist/worker/is-worktree.js.map +1 -0
  456. package/dist/worker/open-worker-scope.d.ts +6 -1
  457. package/dist/worker/open-worker-scope.d.ts.map +1 -1
  458. package/dist/worker/open-worker-scope.js +29 -36
  459. package/dist/worker/open-worker-scope.js.map +1 -1
  460. package/dist/worker/repository-prefix.d.ts +3 -0
  461. package/dist/worker/repository-prefix.d.ts.map +1 -0
  462. package/dist/worker/repository-prefix.js +14 -0
  463. package/dist/worker/repository-prefix.js.map +1 -0
  464. package/dist/worker/upstream-of.d.ts +8 -0
  465. package/dist/worker/upstream-of.d.ts.map +1 -0
  466. package/dist/worker/upstream-of.js +18 -0
  467. package/dist/worker/upstream-of.js.map +1 -0
  468. package/dist/worker/worktree-home.d.ts +9 -0
  469. package/dist/worker/worktree-home.d.ts.map +1 -0
  470. package/dist/worker/worktree-home.js +17 -0
  471. package/dist/worker/worktree-home.js.map +1 -0
  472. package/dist/worker/worktree-of.d.ts +13 -0
  473. package/dist/worker/worktree-of.d.ts.map +1 -0
  474. package/dist/worker/worktree-of.js +30 -0
  475. package/dist/worker/worktree-of.js.map +1 -0
  476. package/dist/worktree/open-worktree.d.ts +20 -0
  477. package/dist/worktree/open-worktree.d.ts.map +1 -0
  478. package/dist/worktree/open-worktree.js +57 -0
  479. package/dist/worktree/open-worktree.js.map +1 -0
  480. package/dist/worktree/worktree-scope.d.ts +15 -0
  481. package/dist/worktree/worktree-scope.d.ts.map +1 -0
  482. package/dist/worktree/worktree-scope.js +2 -0
  483. package/dist/worktree/worktree-scope.js.map +1 -0
  484. package/package.json +2 -2
  485. package/templates/acceptance/acceptance.spec.ts.tpl +35 -0
  486. package/templates/init/docker/dockerignore.tpl +1 -0
  487. package/templates/init/e2e/jest.e2e.config.js.tpl +1 -1
  488. package/templates/init/e2e/vitest.e2e.config.ts.tpl +1 -1
  489. package/templates/init/gitignore.tpl +1 -0
  490. package/templates/pipeline/biome.json.tpl +1 -0
  491. package/templates/pipeline/package-scripts.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-findings.js","sourceRoot":"","sources":["../../src/doctor/install-findings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,IAAY,EACZ,OAAgC,EAChC,QAA2C;IAE3C,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEjD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,4BAA4B,EAAE,CAAC,CAAC;IACjH,CAAC;IAED,OAAO,CAAC,GAAG,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAChH,CAAC;AAED;;;;GAIG;AACH,SAAS,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C;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { DoctorFinding } from './doctor-finding.js';
2
+ /**
3
+ * The running Node against what the project asks: `engines.node` of package.json, the range it
4
+ * runs on, then the version `.nvmrc` names, the one its team works with.
5
+ */
6
+ export declare function nodeFindings(running: string, engines: unknown, nvmrc: string | undefined): DoctorFinding[];
7
+ //# sourceMappingURL=node-findings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-findings.d.ts","sourceRoot":"","sources":["../../src/doctor/node-findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,EAAE,CAc1G"}
@@ -0,0 +1,19 @@
1
+ import { inRange } from './in-range.js';
2
+ /** A version `.nvmrc` names, as nvm reads it: `22`, `22.12` or `v22.12.0`. An alias such as `lts/*` is not judged. */
3
+ const NVMRC_VERSION = /^v?\d+(?:\.\d+){0,2}$/;
4
+ /**
5
+ * The running Node against what the project asks: `engines.node` of package.json, the range it
6
+ * runs on, then the version `.nvmrc` names, the one its team works with.
7
+ */
8
+ export function nodeFindings(running, engines, nvmrc) {
9
+ const findings = [];
10
+ if (typeof engines === 'string' && inRange(running, engines) === false) {
11
+ findings.push({ area: 'node', name: 'engines.node', problem: 'unsupported', expected: engines, found: running });
12
+ }
13
+ const named = nvmrc?.trim() ?? '';
14
+ if (NVMRC_VERSION.test(named) && inRange(running, named) === false) {
15
+ findings.push({ area: 'node', name: '.nvmrc', problem: 'other version', expected: named, found: running });
16
+ }
17
+ return findings;
18
+ }
19
+ //# sourceMappingURL=node-findings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-findings.js","sourceRoot":"","sources":["../../src/doctor/node-findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,sHAAsH;AACtH,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe,EAAE,OAAgB,EAAE,KAAyB;IACvF,MAAM,QAAQ,GAAoB,EAAE,CAAC;IAErC,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,EAAE,CAAC;QACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IACnH,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAElC,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC;QACnE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7G,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import type { Config } from '../config/index.js';
2
2
  import type { DoctorFinding } from './doctor-finding.js';
3
+ /** The packages of the kit are released together: each one at the range this version writes. */
4
+ export declare const OF_THE_KIT: RegExp;
3
5
  /**
4
6
  * The packages of the kit the project needs for its stack, missing or at another range than this
5
7
  * version writes: they are upgraded together, never one alone.
@@ -1 +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"}
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;AAEzD,gGAAgG;AAChG,eAAO,MAAM,UAAU,QAAqC,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,aAAa,EAAE,CAe7G"}
@@ -1,6 +1,6 @@
1
1
  import { dependenciesFor } from '../init/manifest/dependencies-for.js';
2
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\/.+)$/;
3
+ export const OF_THE_KIT = /^(?:ddd-ts-kit|@ddd-ts-kit\/.+)$/;
4
4
  /**
5
5
  * The packages of the kit the project needs for its stack, missing or at another range than this
6
6
  * version writes: they are upgraded together, never one alone.
@@ -1 +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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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,7 @@
1
+ import type { DoctorFinding } from './doctor-finding.js';
2
+ /**
3
+ * The submodules `.gitmodules` declares that this checkout has not initialised, as a new worktree
4
+ * has none: `git submodule status` only reads.
5
+ */
6
+ export declare function submoduleFindings(root: string): DoctorFinding[];
7
+ //# sourceMappingURL=submodule-findings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-findings.d.ts","sourceRoot":"","sources":["../../src/doctor/submodule-findings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKzD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAc/D"}
@@ -0,0 +1,22 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { runGit } from '../commit/run-git.js';
4
+ /** A line of `git submodule status` for a submodule not initialised: `-<commit> <path>`. */
5
+ const NOT_INITIALISED = /^-(\S+) (.+?)(?: \(.*\))?$/;
6
+ /**
7
+ * The submodules `.gitmodules` declares that this checkout has not initialised, as a new worktree
8
+ * has none: `git submodule status` only reads.
9
+ */
10
+ export function submoduleFindings(root) {
11
+ const top = runGit(root, ['rev-parse', '--show-toplevel'])?.trim();
12
+ if (top === undefined || top === '' || !fs.existsSync(path.join(top, '.gitmodules'))) {
13
+ return [];
14
+ }
15
+ return (runGit(root, ['submodule', 'status']) ?? '').split('\n').flatMap((line) => {
16
+ const [, commit = '', name = ''] = NOT_INITIALISED.exec(line) ?? [];
17
+ return name === ''
18
+ ? []
19
+ : [{ area: 'submodule', name, problem: 'not initialised', expected: `checked out at ${commit.slice(0, 12)}` }];
20
+ });
21
+ }
22
+ //# sourceMappingURL=submodule-findings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-findings.js","sourceRoot":"","sources":["../../src/doctor/submodule-findings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,4FAA4F;AAC5F,MAAM,eAAe,GAAG,4BAA4B,CAAC;AAErD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAEnE,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;QACrF,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAmB,EAAE;QACjG,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAEpE,OAAO,IAAI,KAAK,EAAE;YAChB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,kBAAkB,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACnH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Kind } from '../kind.js';
2
+ export declare const acceptanceKind: Kind;
3
+ //# sourceMappingURL=acceptance-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptance-kind.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/acceptance-kind.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,eAAO,MAAM,cAAc,EAAE,IAoC5B,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { acceptanceFileOf } from '../../acceptance/acceptance-file-of.js';
2
+ import { criteriaIn } from '../../acceptance/criteria-in.js';
3
+ import { storyFileOf } from '../../acceptance/story-file-of.js';
4
+ import { storyOfRow } from '../../acceptance/story-of-row.js';
5
+ import { CliError } from '../../cli-error.js';
6
+ import { readSlices, SLICES_FILE } from '../../progress/read-slices.js';
7
+ import { stackVars } from '../../stack/stack-vars.js';
8
+ import { renderTemplate } from '../../templating/index.js';
9
+ const STORY = /^[A-Za-z0-9][A-Za-z0-9-]*$/;
10
+ export const acceptanceKind = {
11
+ name: 'acceptance',
12
+ aliases: [],
13
+ usage: 'acceptance <story> ["<title>"]',
14
+ summary: 'The acceptance spec of a story, in test/acceptance/, written before its code: an it.todo per acceptance criterion of docs/architecture/stories/<story>.md, or per slice row of the story in docs/architecture/slices.md when it states none.',
15
+ positionals: ['story'],
16
+ optionalPositionals: ['title'],
17
+ writesShared: true,
18
+ run: ({ ws, config, args }) => {
19
+ const story = storyNamed(args[0] ?? '');
20
+ requireHttp(config);
21
+ const rows = slicesOf(readSlices(ws) ?? [], story);
22
+ ws.create(acceptanceFileOf(story), renderTemplate('acceptance/acceptance.spec.ts.tpl', {
23
+ ...stackVars(config),
24
+ story: {
25
+ id: story,
26
+ title: quoted(args[1]?.trim() || story),
27
+ example: `${story}.01`,
28
+ rows: rows.map((row) => `#${row.id} ${row.slice}`).join(', '),
29
+ todos: todosOf(ws, story, rows).join('\n'),
30
+ },
31
+ }));
32
+ if (!ws.exists('test/e2e/support/start-application.ts')) {
33
+ ws.note('test/e2e/support/start-application.ts is missing: `ddd-ts-kit init` creates it (existing files are kept).');
34
+ }
35
+ },
36
+ };
37
+ function storyNamed(story) {
38
+ if (!STORY.test(story)) {
39
+ throw new CliError(`"${story}" is not the code of a story.`, 'Pass the code its rows start with in docs/architecture/slices.md: `US5` for the rows `US5.01`, `US5.02`.');
40
+ }
41
+ return story;
42
+ }
43
+ function requireHttp(config) {
44
+ if (config.stack.http === 'none') {
45
+ throw new CliError('The project has no HTTP stack: an acceptance scenario drives the application through its API.', 'Write the acceptance of the story as specs of its handlers in each context (skill ddd-ts-kit:testing).');
46
+ }
47
+ }
48
+ /** An it.todo per acceptance criterion the specification of the story states, else per slice row. */
49
+ function todosOf(ws, story, rows) {
50
+ const specification = storyFileOf(ws, story);
51
+ const criteria = specification === undefined ? [] : criteriaIn(ws.read(specification) ?? '');
52
+ return criteria.length > 0
53
+ ? criteria.map((criterion) => ` it.todo('${criterion.id} ${quoted(criterion.text)}');`)
54
+ : rows.map((row) => ` it.todo('#${row.id} ${quoted(row.slice)}');`);
55
+ }
56
+ /** The slice rows of the story, which a client can observe; contracts and skeletons are proved through them. */
57
+ function slicesOf(slices, story) {
58
+ const own = slices.filter((row) => storyOfRow(row.id).toLowerCase() === story.toLowerCase());
59
+ if (own.length === 0) {
60
+ throw new CliError(`No row of ${SLICES_FILE} belongs to ${story}.`, `Plan the story first (skill ddd-ts-kit:plan-slices), its rows numbered ${story}.01, ${story}.02: each scenario names the row that makes it pass.`);
61
+ }
62
+ const slicesOnly = own.filter((row) => row.kind === 'slice');
63
+ return slicesOnly.length > 0 ? slicesOnly : own;
64
+ }
65
+ /** A text safe between the single quotes of a test title. */
66
+ function quoted(text) {
67
+ return text.replaceAll('\\', '\\\\').replaceAll("'", "\\'");
68
+ }
69
+ //# sourceMappingURL=acceptance-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptance-kind.js","sourceRoot":"","sources":["../../../src/generate/kinds/acceptance-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAS;IAClC,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,gCAAgC;IACvC,OAAO,EACL,8OAA8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AAM,KAAK,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,QAAQ,CAChB,aAAa,WAAW,eAAe,KAAK,GAAG,EAC/C,0EAA0E,KAAK,QAAQ,KAAK,sDAAsD,CACnJ,CAAC;IACJ,CAAC;IAED,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;IAE7D,OAAO,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC;AAClD,CAAC;AAED,6DAA6D;AAC7D,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAwCtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAwChC,CAAC"}
1
+ {"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAyCtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAyChC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { acceptanceKind } from './kinds/acceptance-kind.js';
1
2
  import { aclKind } from './kinds/acl-kind.js';
2
3
  import { adapterKind } from './kinds/adapter-kind.js';
3
4
  import { adrKind } from './kinds/adr-kind.js';
@@ -71,6 +72,7 @@ export const KINDS = [
71
72
  processKind,
72
73
  aclKind,
73
74
  e2eKind,
75
+ acceptanceKind,
74
76
  policyKind,
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ACR,SAAS;IACT,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,sBAAsB;IACtB,gBAAgB;IAChB,cAAc;IACd,OAAO;IACP,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,OAAO;IACP,cAAc;IACd,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cron-problem.d.ts","sourceRoot":"","sources":["../../../src/generate/schedule/cron-problem.ts"],"names":[],"mappings":"AAiBA,2IAA2I;AAC3I,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiBlE"}
1
+ {"version":3,"file":"cron-problem.d.ts","sourceRoot":"","sources":["../../../src/generate/schedule/cron-problem.ts"],"names":[],"mappings":"AA4BA,2IAA2I;AAC3I,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAwBlE"}
@@ -9,10 +9,25 @@ const FIELDS = [
9
9
  { label: 'month', min: 1, max: 12, names: MONTH_NAMES },
10
10
  { label: 'day of week', min: 0, max: 7, names: DAY_NAMES },
11
11
  ];
12
+ /** The shorthands most cron implementations accept, each one a fixed set of five fields. `@reboot` is not one: a scheduled job has no occurrence at start. */
13
+ const SHORTHANDS = new Map([
14
+ ['@yearly', '0 0 1 1 *'],
15
+ ['@annually', '0 0 1 1 *'],
16
+ ['@monthly', '0 0 1 * *'],
17
+ ['@weekly', '0 0 * * 0'],
18
+ ['@daily', '0 0 * * *'],
19
+ ['@midnight', '0 0 * * *'],
20
+ ['@hourly', '0 * * * *'],
21
+ ]);
12
22
  const LONGEST_MONTH = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
13
23
  /** Why a text is not a cron expression a job can run on, or undefined. The same judgement as the kernel makes when the job is declared. */
14
24
  export function cronProblem(expression) {
15
- const texts = expression.trim().split(/\s+/);
25
+ const written = expression.trim();
26
+ const expanded = written.startsWith('@') ? SHORTHANDS.get(written.toLowerCase()) : written;
27
+ if (expanded === undefined) {
28
+ return `Cron "${written}" is not a shorthand a scheduled job runs on: write five fields or one of ${[...SHORTHANDS.keys()].join(', ')}.`;
29
+ }
30
+ const texts = expanded.split(/\s+/);
16
31
  if (texts.length !== FIELDS.length) {
17
32
  return `Cron "${expression}" has ${texts.length} field(s): five are expected (minute, hour, day of month, month, day of week).`;
18
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cron-problem.js","sourceRoot":"","sources":["../../../src/generate/schedule/cron-problem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AACzG,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEpE,0FAA0F;AAC1F,MAAM,MAAM,GAAyB;IACnC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/C,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7C,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACrD,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK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0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD,uJAAuJ;AACvJ,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CA0E/D,CAAC"}
1
+ {"version":3,"file":"shared-writes.d.ts","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD,uJAAuJ;AACvJ,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CA6E/D,CAAC"}
@@ -75,6 +75,9 @@ export const SHARED_WRITES = {
75
75
  files: ['docs/adr/', 'ddd-ts-kit.config.json (with --deviation)'],
76
76
  worker: 'without --deviation: a decision of its slices',
77
77
  },
78
+ acceptance: {
79
+ files: ['test/acceptance/<story>.acceptance.spec.ts, the acceptance of a story, written before its code'],
80
+ },
78
81
  schema: {
79
82
  files: ['<sharedKernelDir>/presentation/<name>.schema.ts'],
80
83
  when: 'the first argument is shared-kernel: a schema several contexts answer with',
@@ -1 +1 @@
1
- {"version":3,"file":"shared-writes.js","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,GAAG,CAAC,qEAAqE,EAAE,sBAAsB,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E;QACN,KAAK,EAAE,CAAC,sEAAsE,CAAC;QAC/E,IAAI,EAAE,yBAAyB;KAChC;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,2EAA2E;YAC3E,+EAA+E;SAChF;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,qCAAqC;YACrC,cAAc;YACd,WAAW;YACX,wBAAwB;YACxB,oBAAoB;YACpB,qBAAqB;SACtB;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,kCAAkC;YAClC,cAAc;YACd,wBAAwB;YACxB,oBAAoB;YACpB,qCAAqC;SACtC;KACF;IACD,GAAG,EAAE;QACH,KAAK,EAAE,CAAC,WAAW,EAAE,2CAA2C,CAAC;QACjE,MAAM,EAAE,+CAA+C;KACxD;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,iDAAiD,CAAC;QAC1D,IAAI,EAAE,4EAA4E;QAClF,MAAM,EAAE,sDAAsD;KAC/D;CACF,CAAC"}
1
+ {"version":3,"file":"shared-writes.js","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,GAAG,CAAC,qEAAqE,EAAE,sBAAsB,CAAC,CAAC;AAEhH,MAAM,MAAM,GAAG;IACb,yDAAyD;IACzD,kEAAkE;CACnE,CAAC;AAEF,MAAM,OAAO,GAAG,4EAA4E,CAAC;AAE7F,MAAM,MAAM,GACV,6LAA6L,CAAC;AAEhM,uJAAuJ;AACvJ,MAAM,CAAC,MAAM,aAAa,GAA0C;IAClE,OAAO,EAAE;QACP,KAAK,EAAE;YACL,wBAAwB;YACxB,6DAA6D;YAC7D,uCAAuC;YACvC,8DAA8D;YAC9D,iCAAiC;YACjC,qBAAqB;YACrB,yBAAyB;YACzB,+BAA+B;SAChC;KACF;IACD,UAAU,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,GAAG,OAA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E;QACV,KAAK,EAAE,CAAC,gGAAgG,CAAC;KAC1G;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,iDAAiD,CAAC;QAC1D,IAAI,EAAE,4EAA4E;QAClF,MAAM,EAAE,sDAAsD;KAC/D;CACF,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; 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, 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; --strict\n exits 1 while something is missing, never for a hook this clone has not installed\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 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), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n 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. Reads only: exits 0 when it can close, 1\n listing what keeps it open, 2 on a code no row carries or without slices.md\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, 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 --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), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n 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 --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: 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 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, 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 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 or a lockfile changed since the install\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 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), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n 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. Reads only: exits 0 when it can close, 1\n 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\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 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\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 ## Report; 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), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n 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 --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,4peAsJ8C,CAAC"}
1
+ {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,6pqBAmN8C,CAAC"}
@@ -9,12 +9,14 @@ export const NOTES = ` affected what a pull request has to run: the con
9
9
  where drizzle-kit alone writes nothing and exits 0; then formats the snapshot and the
10
10
  journal it wrote with the Biome or Prettier of the format script, and warns when the
11
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
12
+ --replay, after merging the trunk into a branch when both added migrations: when the
13
+ history forks from --base <ref> (origin/main by default), deletes the migrations of the
14
+ branch the base does not have, with their snapshots and journal entries, then generates
15
+ each again on top, in order, under its name (working- dropped outside a worker's
16
+ worktree, a custom one keeping its SQL); when it does not fork, only renames them;
17
+ refused while the journal holds conflict markers, when two of them change the schema,
18
+ or when drizzle-kit now writes a generated one otherwise (edited by hand), the folder
19
+ then put back as it was
18
20
  error-factories moves a project from one class per error to static factories on one error class per
19
21
  concept: --plan writes error-factories.plan.json, where each class is given its concept;
20
22
  --apply follows it (classes, specs, every usage, "stack.refusals" in the config)
@@ -27,8 +29,16 @@ export const NOTES = ` affected what a pull request has to run: the con
27
29
  doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this
28
30
  version) and the agent permissions this version writes that the project lacks or writes
29
31
  otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of
30
- lefthook in this clone); init adds what is missing, hooks:install the hook; --strict
31
- exits 1 while something is missing, never for a hook this clone has not installed
32
+ lefthook in this clone); init adds what is missing, hooks:install the hook; then what
33
+ this checkout lacks to run the project, read without network: the running Node against
34
+ engines.node and .nvmrc, node_modules installed since the lockfile last changed, each
35
+ package of the kit installed at the version of this CLI, the submodules initialised;
36
+ each with its fix; --strict exits 1 while something is missing or the checkout cannot
37
+ run the project, never for a hook this clone has not installed, a Node .nvmrc does not
38
+ name or a lockfile changed since the install
39
+ lint the ESLint of the project (lint and ci:lint run it): fails on an error, and on a warning
40
+ as on an error, but on one of a rule of the kit in transition, a new rule that becomes an
41
+ error in the version it names, whose warnings are listed apart; --format and --fix as ESLint
32
42
  describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies
33
43
  status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by
34
44
  status and by owner, each row not done ready on the trunk (its dependencies done), ready
@@ -72,8 +82,25 @@ export const NOTES = ` affected what a pull request has to run: the con
72
82
  is its own, its file:line and its fix: handle it, or dismiss it by a decision record
73
83
  (generate adr), then delete the marker. Reads only: exits 0 when it can close, 1
74
84
  listing what keeps it open, 2 on a code no row carries or without slices.md
75
- worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from
76
- --base <ref> (by default the current branch, refused from a worker's worktree), its
85
+ acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against
86
+ its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and
87
+ criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write
88
+ (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is
89
+ built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,
90
+ a pending one whose rows are done, a locked one changed while its criteria were not);
91
+ --gate written: every slice row and criterion has a written scenario, none is left to
92
+ write, the acceptance is locked (before the code of the story); --gate passing: none is
93
+ pending either (before the story closes); exits 1 while a gate is not met, or, without
94
+ one, on an inconsistency. Never runs a test. --lock writes
95
+ test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of
96
+ each scenario (pending(...), layout and comments aside), refused while a scenario is
97
+ left to write, or while a criterion changed, or a locked scenario changed while its
98
+ criteria did not, without a verdict "amend" of the acceptance-judge agent on that very
99
+ version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,
100
+ Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,
101
+ listed for the owner to validate
102
+ worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),
103
+ cut from --base <ref> (by default the current branch, refused from a worker's worktree), its
77
104
  .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>
78
105
  briefs those rows of slices.md only, with their rules, the documents of their design and
79
106
  the names that design cites the base does not have (see cited), and by default the first
@@ -81,6 +108,37 @@ export const NOTES = ` affected what a pull request has to run: the con
81
108
  next; a worktree it creates gets the clean install of the package manager (npm ci), its
82
109
  time in the notes, unless --no-install; an existing worktree or branch that does not
83
110
  contain the base is refused, with the merge-trunk that brings it in
111
+ --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the
112
+ next agent in place, its base the base of the story, and prints its briefing; no
113
+ worktree, branch or install of its own; the agents of a story run one after the other
114
+ story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default
115
+ origin/main from the trunk, else the current branch, refused from the worktree of a
116
+ story), its .ddd-ts-kit/story.json and
117
+ its clean install; an existing one is kept and the story resumes there; refused when the
118
+ story is open in another worktree; names the other open stories and the contexts their
119
+ rows change
120
+ worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base
121
+ (by default origin/main from the trunk, else the current branch), and its clean install
122
+ unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,
123
+ whichever worktree it runs from, ignored by git and by the tools of the project; while
124
+ the .gitignore of a project started before does not hold it (init adds it), a worktree
125
+ opens next to the project, ../<project>-<name>; in a project whose config says
126
+ "worktrees": "required" (what init writes), the guard of the plugin refuses the code of
127
+ a context in the main checkout of the trunk, and in a worktree of .worktrees/ without
128
+ its own node_modules
129
+ story where a story stands, phase by phase: its specification and criteria
130
+ (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section
131
+ per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written
132
+ and locked, its rows done, its acceptance passing, its trunk merged in, its ## Report; and
133
+ the next step; in the worktree of a story, the story is its own; --gate build exits 1
134
+ until the first four are met (the code may start: the guard of the plugin opens the
135
+ contexts), --gate close until all are
136
+ stories the stories open in the worktrees of the repository and where two of them meet: the
137
+ contexts the rows of both name, the files both worktrees change (committed or not), what
138
+ merging the branch of one into the other leaves to a person and what merge-trunk settles
139
+ (git merge-tree, nothing written); how far each is behind its base; from the worktree of a
140
+ story, the stories it meets; the guard of the plugin says it at session start and on a
141
+ write to a file another story changes
84
142
  --resume worker-scope reads where the stopped worker of the context stands (its rows by their
85
143
  Slice: trailer, the files of the row under way, the markers, its last verify-slice, its
86
144
  report, its agent as the guard recorded it) and prints the message that resumes its agent
@@ -144,6 +202,9 @@ export const NOTES = ` affected what a pull request has to run: the con
144
202
  --commit-size the files and lines about to be committed against "commit" in the config (20 files and
145
203
  600 lines by default, generated files not counted); --staged reads the index only;
146
204
  advisory, --strict exits 1 when over
205
+ --explain check follows the violations with the reason of each rule they report, once per rule, as
206
+ explain gives it without its examples ("explanations" in JSON); with github and gitlab, each
207
+ annotation carries the reason of its rule, a pull request showing an annotation on its own
147
208
  --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,
148
209
  never rewriting a recorded one: run it once the shape of a version is the one to store;
149
210
  docs --check fails while a declared version is not recorded
@@ -1 +1 @@
1
- {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAsJ2C,CAAC"}
1
+ {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAmN2C,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 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 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 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]\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).";
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 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> [--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 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]\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>] [--explain] [--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 lint [paths...] [--format <eslint formatter>] [--fix]\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,miHAoDqE,CAAC"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,siIA2DqE,CAAC"}