ddd-ts-kit 0.25.1 → 0.27.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 (1270) hide show
  1. package/CHANGELOG.md +363 -0
  2. package/README.fr.md +408 -20
  3. package/README.md +375 -19
  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/canonical/context-layers.d.ts +7 -0
  109. package/dist/check/canonical/context-layers.d.ts.map +1 -0
  110. package/dist/check/canonical/context-layers.js +13 -0
  111. package/dist/check/canonical/context-layers.js.map +1 -0
  112. package/dist/check/canonical/first-flaw.d.ts +9 -0
  113. package/dist/check/canonical/first-flaw.d.ts.map +1 -0
  114. package/dist/check/canonical/first-flaw.js +18 -0
  115. package/dist/check/canonical/first-flaw.js.map +1 -0
  116. package/dist/check/canonical/flaw-in-contexts.d.ts +9 -0
  117. package/dist/check/canonical/flaw-in-contexts.d.ts.map +1 -0
  118. package/dist/check/canonical/flaw-in-contexts.js +12 -0
  119. package/dist/check/canonical/flaw-in-contexts.js.map +1 -0
  120. package/dist/check/canonical/is-context-relative.d.ts +3 -0
  121. package/dist/check/canonical/is-context-relative.d.ts.map +1 -0
  122. package/dist/check/canonical/is-context-relative.js +12 -0
  123. package/dist/check/canonical/is-context-relative.js.map +1 -0
  124. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  125. package/dist/check/catalogue/architecture-rules.js +2 -0
  126. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  127. package/dist/check/catalogue/default-severities.d.ts.map +1 -1
  128. package/dist/check/catalogue/default-severities.js +1 -0
  129. package/dist/check/catalogue/default-severities.js.map +1 -1
  130. package/dist/check/configuration/config-inspection.d.ts +1 -0
  131. package/dist/check/configuration/config-inspection.d.ts.map +1 -1
  132. package/dist/check/configuration/config-inspection.js +9 -1
  133. package/dist/check/configuration/config-inspection.js.map +1 -1
  134. package/dist/check/explain/language-docs.js +1 -1
  135. package/dist/check/explain/language-docs.js.map +1 -1
  136. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  137. package/dist/check/explain/tree-docs.js +12 -3
  138. package/dist/check/explain/tree-docs.js.map +1 -1
  139. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  140. package/dist/check/fixtures/fixtures.js +2 -0
  141. package/dist/check/fixtures/fixtures.js.map +1 -1
  142. package/dist/check/fixtures/other-language-fixtures.d.ts +3 -0
  143. package/dist/check/fixtures/other-language-fixtures.d.ts.map +1 -0
  144. package/dist/check/fixtures/other-language-fixtures.js +151 -0
  145. package/dist/check/fixtures/other-language-fixtures.js.map +1 -0
  146. package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
  147. package/dist/check/fixtures/test-fixtures.js +35 -0
  148. package/dist/check/fixtures/test-fixtures.js.map +1 -1
  149. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  150. package/dist/check/fixtures/tree-fixtures.js +29 -2
  151. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  152. package/dist/check/language/in-outside-record.d.ts +9 -0
  153. package/dist/check/language/in-outside-record.d.ts.map +1 -0
  154. package/dist/check/language/in-outside-record.js +12 -0
  155. package/dist/check/language/in-outside-record.js.map +1 -0
  156. package/dist/check/language/is-outside-place.d.ts +4 -0
  157. package/dist/check/language/is-outside-place.d.ts.map +1 -0
  158. package/dist/check/language/is-outside-place.js +7 -0
  159. package/dist/check/language/is-outside-place.js.map +1 -0
  160. package/dist/check/language/other-language-of.d.ts +12 -0
  161. package/dist/check/language/other-language-of.d.ts.map +1 -0
  162. package/dist/check/language/other-language-of.js +46 -0
  163. package/dist/check/language/other-language-of.js.map +1 -0
  164. package/dist/check/language/record-arguments.d.ts +6 -0
  165. package/dist/check/language/record-arguments.d.ts.map +1 -0
  166. package/dist/check/language/record-arguments.js +28 -0
  167. package/dist/check/language/record-arguments.js.map +1 -0
  168. package/dist/check/language/type-declarations.d.ts +10 -0
  169. package/dist/check/language/type-declarations.d.ts.map +1 -0
  170. package/dist/check/language/type-declarations.js +37 -0
  171. package/dist/check/language/type-declarations.js.map +1 -0
  172. package/dist/check/language/type-root.d.ts +7 -0
  173. package/dist/check/language/type-root.d.ts.map +1 -0
  174. package/dist/check/language/type-root.js +43 -0
  175. package/dist/check/language/type-root.js.map +1 -0
  176. package/dist/check/language/typed-by-other-language.d.ts +9 -0
  177. package/dist/check/language/typed-by-other-language.d.ts.map +1 -0
  178. package/dist/check/language/typed-by-other-language.js +73 -0
  179. package/dist/check/language/typed-by-other-language.js.map +1 -0
  180. package/dist/check/project/markdown-under.d.ts +3 -0
  181. package/dist/check/project/markdown-under.d.ts.map +1 -0
  182. package/dist/check/project/markdown-under.js +20 -0
  183. package/dist/check/project/markdown-under.js.map +1 -0
  184. package/dist/check/project/walk-directory.js +1 -1
  185. package/dist/check/project/walk-directory.js.map +1 -1
  186. package/dist/check/rules/config-valid.d.ts.map +1 -1
  187. package/dist/check/rules/config-valid.js +1 -0
  188. package/dist/check/rules/config-valid.js.map +1 -1
  189. package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
  190. package/dist/check/rules/language-declared-vocabulary.js +28 -3
  191. package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
  192. package/dist/check/rules/test-acceptance-black-box.d.ts +3 -0
  193. package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -0
  194. package/dist/check/rules/test-acceptance-black-box.js +38 -0
  195. package/dist/check/rules/test-acceptance-black-box.js.map +1 -0
  196. package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
  197. package/dist/check/rules/tree-documented-paths.js +14 -30
  198. package/dist/check/rules/tree-documented-paths.js.map +1 -1
  199. package/dist/check/text/annotation-before.d.ts +7 -0
  200. package/dist/check/text/annotation-before.d.ts.map +1 -0
  201. package/dist/check/text/annotation-before.js +30 -0
  202. package/dist/check/text/annotation-before.js.map +1 -0
  203. package/dist/check/text/type-at.d.ts +7 -0
  204. package/dist/check/text/type-at.d.ts.map +1 -0
  205. package/dist/check/text/type-at.js +22 -0
  206. package/dist/check/text/type-at.js.map +1 -0
  207. package/dist/check/text/type-brackets.d.ts +6 -0
  208. package/dist/check/text/type-brackets.d.ts.map +1 -0
  209. package/dist/check/text/type-brackets.js +11 -0
  210. package/dist/check/text/type-brackets.js.map +1 -0
  211. package/dist/check/text/type-closing.d.ts +3 -0
  212. package/dist/check/text/type-closing.d.ts.map +1 -0
  213. package/dist/check/text/type-closing.js +13 -0
  214. package/dist/check/text/type-closing.js.map +1 -0
  215. package/dist/citations/candidates-of.d.ts +16 -0
  216. package/dist/citations/candidates-of.d.ts.map +1 -0
  217. package/dist/citations/candidates-of.js +51 -0
  218. package/dist/citations/candidates-of.js.map +1 -0
  219. package/dist/citations/citation-line.d.ts +4 -0
  220. package/dist/citations/citation-line.d.ts.map +1 -0
  221. package/dist/citations/citation-line.js +36 -0
  222. package/dist/citations/citation-line.js.map +1 -0
  223. package/dist/citations/citations-of.d.ts +14 -0
  224. package/dist/citations/citations-of.d.ts.map +1 -0
  225. package/dist/citations/citations-of.js +21 -0
  226. package/dist/citations/citations-of.js.map +1 -0
  227. package/dist/citations/cited-name.d.ts +12 -0
  228. package/dist/citations/cited-name.d.ts.map +1 -0
  229. package/dist/citations/cited-name.js +2 -0
  230. package/dist/citations/cited-name.js.map +1 -0
  231. package/dist/citations/cited-names.d.ts +14 -0
  232. package/dist/citations/cited-names.d.ts.map +1 -0
  233. package/dist/citations/cited-names.js +71 -0
  234. package/dist/citations/cited-names.js.map +1 -0
  235. package/dist/citations/cited-parts.d.ts +19 -0
  236. package/dist/citations/cited-parts.d.ts.map +1 -0
  237. package/dist/citations/cited-parts.js +30 -0
  238. package/dist/citations/cited-parts.js.map +1 -0
  239. package/dist/citations/cited-removals.d.ts +8 -0
  240. package/dist/citations/cited-removals.d.ts.map +1 -0
  241. package/dist/citations/cited-removals.js +13 -0
  242. package/dist/citations/cited-removals.js.map +1 -0
  243. package/dist/citations/citing.d.ts +7 -0
  244. package/dist/citations/citing.d.ts.map +1 -0
  245. package/dist/citations/citing.js +2 -0
  246. package/dist/citations/citing.js.map +1 -0
  247. package/dist/citations/declaration.d.ts +6 -0
  248. package/dist/citations/declaration.d.ts.map +1 -0
  249. package/dist/citations/declaration.js +2 -0
  250. package/dist/citations/declaration.js.map +1 -0
  251. package/dist/citations/design-of.d.ts +9 -0
  252. package/dist/citations/design-of.d.ts.map +1 -0
  253. package/dist/citations/design-of.js +8 -0
  254. package/dist/citations/design-of.js.map +1 -0
  255. package/dist/citations/document-part.d.ts +17 -0
  256. package/dist/citations/document-part.d.ts.map +1 -0
  257. package/dist/citations/document-part.js +2 -0
  258. package/dist/citations/document-part.js.map +1 -0
  259. package/dist/citations/evidence.d.ts +14 -0
  260. package/dist/citations/evidence.d.ts.map +1 -0
  261. package/dist/citations/evidence.js +2 -0
  262. package/dist/citations/evidence.js.map +1 -0
  263. package/dist/citations/format-citations.d.ts +4 -0
  264. package/dist/citations/format-citations.d.ts.map +1 -0
  265. package/dist/citations/format-citations.js +23 -0
  266. package/dist/citations/format-citations.js.map +1 -0
  267. package/dist/citations/format-removals.d.ts +4 -0
  268. package/dist/citations/format-removals.d.ts.map +1 -0
  269. package/dist/citations/format-removals.js +15 -0
  270. package/dist/citations/format-removals.js.map +1 -0
  271. package/dist/citations/history-of.d.ts +8 -0
  272. package/dist/citations/history-of.d.ts.map +1 -0
  273. package/dist/citations/history-of.js +59 -0
  274. package/dist/citations/history-of.js.map +1 -0
  275. package/dist/citations/history.d.ts +23 -0
  276. package/dist/citations/history.d.ts.map +1 -0
  277. package/dist/citations/history.js +2 -0
  278. package/dist/citations/history.js.map +1 -0
  279. package/dist/citations/index-at-ref.d.ts +7 -0
  280. package/dist/citations/index-at-ref.d.ts.map +1 -0
  281. package/dist/citations/index-at-ref.js +22 -0
  282. package/dist/citations/index-at-ref.js.map +1 -0
  283. package/dist/citations/index-of-project.d.ts +5 -0
  284. package/dist/citations/index-of-project.d.ts.map +1 -0
  285. package/dist/citations/index-of-project.js +12 -0
  286. package/dist/citations/index-of-project.js.map +1 -0
  287. package/dist/citations/is-test-file.d.ts +3 -0
  288. package/dist/citations/is-test-file.d.ts.map +1 -0
  289. package/dist/citations/is-test-file.js +5 -0
  290. package/dist/citations/is-test-file.js.map +1 -0
  291. package/dist/citations/judge-citation.d.ts +7 -0
  292. package/dist/citations/judge-citation.d.ts.map +1 -0
  293. package/dist/citations/judge-citation.js +11 -0
  294. package/dist/citations/judge-citation.js.map +1 -0
  295. package/dist/citations/judge-member.d.ts +10 -0
  296. package/dist/citations/judge-member.d.ts.map +1 -0
  297. package/dist/citations/judge-member.js +39 -0
  298. package/dist/citations/judge-member.js.map +1 -0
  299. package/dist/citations/judge-path.d.ts +10 -0
  300. package/dist/citations/judge-path.d.ts.map +1 -0
  301. package/dist/citations/judge-path.js +38 -0
  302. package/dist/citations/judge-path.js.map +1 -0
  303. package/dist/citations/judge-symbol.d.ts +10 -0
  304. package/dist/citations/judge-symbol.d.ts.map +1 -0
  305. package/dist/citations/judge-symbol.js +29 -0
  306. package/dist/citations/judge-symbol.js.map +1 -0
  307. package/dist/citations/judged-citations.d.ts +17 -0
  308. package/dist/citations/judged-citations.d.ts.map +1 -0
  309. package/dist/citations/judged-citations.js +24 -0
  310. package/dist/citations/judged-citations.js.map +1 -0
  311. package/dist/citations/line-time.d.ts +7 -0
  312. package/dist/citations/line-time.d.ts.map +1 -0
  313. package/dist/citations/line-time.js +12 -0
  314. package/dist/citations/line-time.js.map +1 -0
  315. package/dist/citations/lines-of.d.ts +3 -0
  316. package/dist/citations/lines-of.d.ts.map +1 -0
  317. package/dist/citations/lines-of.js +5 -0
  318. package/dist/citations/lines-of.js.map +1 -0
  319. package/dist/citations/mentioned-rows.d.ts +7 -0
  320. package/dist/citations/mentioned-rows.d.ts.map +1 -0
  321. package/dist/citations/mentioned-rows.js +21 -0
  322. package/dist/citations/mentioned-rows.js.map +1 -0
  323. package/dist/citations/name-index-of.d.ts +5 -0
  324. package/dist/citations/name-index-of.d.ts.map +1 -0
  325. package/dist/citations/name-index-of.js +13 -0
  326. package/dist/citations/name-index-of.js.map +1 -0
  327. package/dist/citations/name-index.d.ts +8 -0
  328. package/dist/citations/name-index.d.ts.map +1 -0
  329. package/dist/citations/name-index.js +2 -0
  330. package/dist/citations/name-index.js.map +1 -0
  331. package/dist/citations/names-of-file.d.ts +7 -0
  332. package/dist/citations/names-of-file.d.ts.map +1 -0
  333. package/dist/citations/names-of-file.js +18 -0
  334. package/dist/citations/names-of-file.js.map +1 -0
  335. package/dist/citations/open-rows.d.ts +4 -0
  336. package/dist/citations/open-rows.d.ts.map +1 -0
  337. package/dist/citations/open-rows.js +9 -0
  338. package/dist/citations/open-rows.js.map +1 -0
  339. package/dist/citations/parts-of-document.d.ts +14 -0
  340. package/dist/citations/parts-of-document.d.ts.map +1 -0
  341. package/dist/citations/parts-of-document.js +51 -0
  342. package/dist/citations/parts-of-document.js.map +1 -0
  343. package/dist/citations/parts-of-slices.d.ts +13 -0
  344. package/dist/citations/parts-of-slices.d.ts.map +1 -0
  345. package/dist/citations/parts-of-slices.js +40 -0
  346. package/dist/citations/parts-of-slices.js.map +1 -0
  347. package/dist/citations/ref-notes.d.ts +6 -0
  348. package/dist/citations/ref-notes.d.ts.map +1 -0
  349. package/dist/citations/ref-notes.js +27 -0
  350. package/dist/citations/ref-notes.js.map +1 -0
  351. package/dist/citations/removal-naming.d.ts +9 -0
  352. package/dist/citations/removal-naming.d.ts.map +1 -0
  353. package/dist/citations/removal-naming.js +32 -0
  354. package/dist/citations/removal-naming.js.map +1 -0
  355. package/dist/citations/removals-at-ref.d.ts +8 -0
  356. package/dist/citations/removals-at-ref.d.ts.map +1 -0
  357. package/dist/citations/removals-at-ref.js +24 -0
  358. package/dist/citations/removals-at-ref.js.map +1 -0
  359. package/dist/citations/removals-since.d.ts +8 -0
  360. package/dist/citations/removals-since.d.ts.map +1 -0
  361. package/dist/citations/removals-since.js +16 -0
  362. package/dist/citations/removals-since.js.map +1 -0
  363. package/dist/citations/removed-by-of.d.ts +5 -0
  364. package/dist/citations/removed-by-of.d.ts.map +1 -0
  365. package/dist/citations/removed-by-of.js +6 -0
  366. package/dist/citations/removed-by-of.js.map +1 -0
  367. package/dist/citations/role-suffix-of.d.ts +8 -0
  368. package/dist/citations/role-suffix-of.d.ts.map +1 -0
  369. package/dist/citations/role-suffix-of.js +28 -0
  370. package/dist/citations/role-suffix-of.js.map +1 -0
  371. package/dist/citations/row-documents.d.ts +10 -0
  372. package/dist/citations/row-documents.d.ts.map +1 -0
  373. package/dist/citations/row-documents.js +42 -0
  374. package/dist/citations/row-documents.js.map +1 -0
  375. package/dist/citations/same-stem-names.d.ts +11 -0
  376. package/dist/citations/same-stem-names.d.ts.map +1 -0
  377. package/dist/citations/same-stem-names.js +41 -0
  378. package/dist/citations/same-stem-names.js.map +1 -0
  379. package/dist/citations/select-parts.d.ts +9 -0
  380. package/dist/citations/select-parts.d.ts.map +1 -0
  381. package/dist/citations/select-parts.js +11 -0
  382. package/dist/citations/select-parts.js.map +1 -0
  383. package/dist/citations/stale-citation.d.ts +39 -0
  384. package/dist/citations/stale-citation.d.ts.map +1 -0
  385. package/dist/citations/stale-citation.js +2 -0
  386. package/dist/citations/stale-citation.js.map +1 -0
  387. package/dist/citations/stale-names-at.d.ts +26 -0
  388. package/dist/citations/stale-names-at.d.ts.map +1 -0
  389. package/dist/citations/stale-names-at.js +31 -0
  390. package/dist/citations/stale-names-at.js.map +1 -0
  391. package/dist/citations/stale-names-since.d.ts +10 -0
  392. package/dist/citations/stale-names-since.d.ts.map +1 -0
  393. package/dist/citations/stale-names-since.js +26 -0
  394. package/dist/citations/stale-names-since.js.map +1 -0
  395. package/dist/citations/text-units.d.ts +7 -0
  396. package/dist/citations/text-units.d.ts.map +1 -0
  397. package/dist/citations/text-units.js +31 -0
  398. package/dist/citations/text-units.js.map +1 -0
  399. package/dist/commands/acceptance.d.ts +11 -0
  400. package/dist/commands/acceptance.d.ts.map +1 -0
  401. package/dist/commands/acceptance.js +63 -0
  402. package/dist/commands/acceptance.js.map +1 -0
  403. package/dist/commands/cited.d.ts +8 -0
  404. package/dist/commands/cited.d.ts.map +1 -0
  405. package/dist/commands/cited.js +70 -0
  406. package/dist/commands/cited.js.map +1 -0
  407. package/dist/commands/doctor.d.ts +1 -1
  408. package/dist/commands/doctor.d.ts.map +1 -1
  409. package/dist/commands/doctor.js +7 -3
  410. package/dist/commands/doctor.js.map +1 -1
  411. package/dist/commands/merge-trunk.d.ts +9 -0
  412. package/dist/commands/merge-trunk.d.ts.map +1 -0
  413. package/dist/commands/merge-trunk.js +58 -0
  414. package/dist/commands/merge-trunk.js.map +1 -0
  415. package/dist/commands/plan-waves.d.ts.map +1 -1
  416. package/dist/commands/plan-waves.js +1 -2
  417. package/dist/commands/plan-waves.js.map +1 -1
  418. package/dist/commands/rows-option.d.ts +5 -0
  419. package/dist/commands/rows-option.d.ts.map +1 -0
  420. package/dist/commands/rows-option.js +13 -0
  421. package/dist/commands/rows-option.js.map +1 -0
  422. package/dist/commands/status.d.ts.map +1 -1
  423. package/dist/commands/status.js +3 -1
  424. package/dist/commands/status.js.map +1 -1
  425. package/dist/commands/stories.d.ts +9 -0
  426. package/dist/commands/stories.d.ts.map +1 -0
  427. package/dist/commands/stories.js +16 -0
  428. package/dist/commands/stories.js.map +1 -0
  429. package/dist/commands/story-check.d.ts +9 -0
  430. package/dist/commands/story-check.d.ts.map +1 -0
  431. package/dist/commands/story-check.js +21 -0
  432. package/dist/commands/story-check.js.map +1 -0
  433. package/dist/commands/story-scope.d.ts +4 -0
  434. package/dist/commands/story-scope.d.ts.map +1 -0
  435. package/dist/commands/story-scope.js +34 -0
  436. package/dist/commands/story-scope.js.map +1 -0
  437. package/dist/commands/story.d.ts +9 -0
  438. package/dist/commands/story.d.ts.map +1 -0
  439. package/dist/commands/story.js +45 -0
  440. package/dist/commands/story.js.map +1 -0
  441. package/dist/commands/verify-merge.d.ts +9 -0
  442. package/dist/commands/verify-merge.d.ts.map +1 -0
  443. package/dist/commands/verify-merge.js +33 -0
  444. package/dist/commands/verify-merge.js.map +1 -0
  445. package/dist/commands/worker-scope.d.ts +4 -1
  446. package/dist/commands/worker-scope.d.ts.map +1 -1
  447. package/dist/commands/worker-scope.js +19 -14
  448. package/dist/commands/worker-scope.js.map +1 -1
  449. package/dist/commands/worktree.d.ts +7 -0
  450. package/dist/commands/worktree.d.ts.map +1 -0
  451. package/dist/commands/worktree.js +34 -0
  452. package/dist/commands/worktree.js.map +1 -0
  453. package/dist/config/config.d.ts +7 -0
  454. package/dist/config/config.d.ts.map +1 -1
  455. package/dist/config/index.d.ts +1 -0
  456. package/dist/config/index.d.ts.map +1 -1
  457. package/dist/config/index.js +1 -0
  458. package/dist/config/index.js.map +1 -1
  459. package/dist/config/parse-config.js +1 -0
  460. package/dist/config/parse-config.js.map +1 -1
  461. package/dist/config/serialize-config.js +1 -0
  462. package/dist/config/serialize-config.js.map +1 -1
  463. package/dist/config/worktree-modes.d.ts +3 -0
  464. package/dist/config/worktree-modes.d.ts.map +1 -0
  465. package/dist/config/worktree-modes.js +3 -0
  466. package/dist/config/worktree-modes.js.map +1 -0
  467. package/dist/derived/is-derived.d.ts +8 -0
  468. package/dist/derived/is-derived.d.ts.map +1 -0
  469. package/dist/derived/is-derived.js +18 -0
  470. package/dist/derived/is-derived.js.map +1 -0
  471. package/dist/doctor/diagnose.d.ts +2 -2
  472. package/dist/doctor/diagnose.d.ts.map +1 -1
  473. package/dist/doctor/diagnose.js +4 -2
  474. package/dist/doctor/diagnose.js.map +1 -1
  475. package/dist/doctor/doctor-finding.d.ts +3 -2
  476. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  477. package/dist/doctor/format-diagnosis.d.ts +2 -1
  478. package/dist/doctor/format-diagnosis.d.ts.map +1 -1
  479. package/dist/doctor/format-diagnosis.js +31 -6
  480. package/dist/doctor/format-diagnosis.js.map +1 -1
  481. package/dist/doctor/hook-findings.d.ts +8 -0
  482. package/dist/doctor/hook-findings.d.ts.map +1 -0
  483. package/dist/doctor/hook-findings.js +54 -0
  484. package/dist/doctor/hook-findings.js.map +1 -0
  485. package/dist/generate/kinds/acceptance-kind.d.ts +3 -0
  486. package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -0
  487. package/dist/generate/kinds/acceptance-kind.js +69 -0
  488. package/dist/generate/kinds/acceptance-kind.js.map +1 -0
  489. package/dist/generate/kinds.d.ts.map +1 -1
  490. package/dist/generate/kinds.js +2 -0
  491. package/dist/generate/kinds.js.map +1 -1
  492. package/dist/generate/shared-writes.d.ts.map +1 -1
  493. package/dist/generate/shared-writes.js +3 -0
  494. package/dist/generate/shared-writes.js.map +1 -1
  495. package/dist/help/notes.d.ts +1 -1
  496. package/dist/help/notes.d.ts.map +1 -1
  497. package/dist/help/notes.js +144 -12
  498. package/dist/help/notes.js.map +1 -1
  499. package/dist/help/usage.d.ts +1 -1
  500. package/dist/help/usage.d.ts.map +1 -1
  501. package/dist/help/usage.js +13 -1
  502. package/dist/help/usage.js.map +1 -1
  503. package/dist/init/agent-permissions.d.ts.map +1 -1
  504. package/dist/init/agent-permissions.js +15 -1
  505. package/dist/init/agent-permissions.js.map +1 -1
  506. package/dist/init/ignore-worktrees.d.ts +7 -0
  507. package/dist/init/ignore-worktrees.d.ts.map +1 -0
  508. package/dist/init/ignore-worktrees.js +15 -0
  509. package/dist/init/ignore-worktrees.js.map +1 -0
  510. package/dist/init/manifest/versions.js +24 -24
  511. package/dist/init/run-init.d.ts.map +1 -1
  512. package/dist/init/run-init.js +9 -3
  513. package/dist/init/run-init.js.map +1 -1
  514. package/dist/merge/abort-merge.d.ts +6 -0
  515. package/dist/merge/abort-merge.d.ts.map +1 -0
  516. package/dist/merge/abort-merge.js +31 -0
  517. package/dist/merge/abort-merge.js.map +1 -0
  518. package/dist/merge/accept-in-merge-message.d.ts +7 -0
  519. package/dist/merge/accept-in-merge-message.d.ts.map +1 -0
  520. package/dist/merge/accept-in-merge-message.js +15 -0
  521. package/dist/merge/accept-in-merge-message.js.map +1 -0
  522. package/dist/merge/apply-resolutions.d.ts +8 -0
  523. package/dist/merge/apply-resolutions.d.ts.map +1 -0
  524. package/dist/merge/apply-resolutions.js +30 -0
  525. package/dist/merge/apply-resolutions.js.map +1 -0
  526. package/dist/merge/base-point.d.ts +34 -0
  527. package/dist/merge/base-point.d.ts.map +1 -0
  528. package/dist/merge/base-point.js +2 -0
  529. package/dist/merge/base-point.js.map +1 -0
  530. package/dist/merge/base-query.d.ts +14 -0
  531. package/dist/merge/base-query.d.ts.map +1 -0
  532. package/dist/merge/base-query.js +2 -0
  533. package/dist/merge/base-query.js.map +1 -0
  534. package/dist/merge/classify-conflict.d.ts +15 -0
  535. package/dist/merge/classify-conflict.d.ts.map +1 -0
  536. package/dist/merge/classify-conflict.js +33 -0
  537. package/dist/merge/classify-conflict.js.map +1 -0
  538. package/dist/merge/commit-merge.d.ts +15 -0
  539. package/dist/merge/commit-merge.d.ts.map +1 -0
  540. package/dist/merge/commit-merge.js +48 -0
  541. package/dist/merge/commit-merge.js.map +1 -0
  542. package/dist/merge/conflict-blocks.d.ts +23 -0
  543. package/dist/merge/conflict-blocks.d.ts.map +1 -0
  544. package/dist/merge/conflict-blocks.js +45 -0
  545. package/dist/merge/conflict-blocks.js.map +1 -0
  546. package/dist/merge/conflicted-path.d.ts +14 -0
  547. package/dist/merge/conflicted-path.d.ts.map +1 -0
  548. package/dist/merge/conflicted-path.js +2 -0
  549. package/dist/merge/conflicted-path.js.map +1 -0
  550. package/dist/merge/conflicted-paths.d.ts +9 -0
  551. package/dist/merge/conflicted-paths.d.ts.map +1 -0
  552. package/dist/merge/conflicted-paths.js +43 -0
  553. package/dist/merge/conflicted-paths.js.map +1 -0
  554. package/dist/merge/continue-merge.d.ts +16 -0
  555. package/dist/merge/continue-merge.d.ts.map +1 -0
  556. package/dist/merge/continue-merge.js +119 -0
  557. package/dist/merge/continue-merge.js.map +1 -0
  558. package/dist/merge/ensure-mergeable.d.ts +7 -0
  559. package/dist/merge/ensure-mergeable.d.ts.map +1 -0
  560. package/dist/merge/ensure-mergeable.js +42 -0
  561. package/dist/merge/ensure-mergeable.js.map +1 -0
  562. package/dist/merge/for-you-entry.d.ts +20 -0
  563. package/dist/merge/for-you-entry.d.ts.map +1 -0
  564. package/dist/merge/for-you-entry.js +47 -0
  565. package/dist/merge/for-you-entry.js.map +1 -0
  566. package/dist/merge/format-merge-report.d.ts +9 -0
  567. package/dist/merge/format-merge-report.d.ts.map +1 -0
  568. package/dist/merge/format-merge-report.js +105 -0
  569. package/dist/merge/format-merge-report.js.map +1 -0
  570. package/dist/merge/git-path.d.ts +3 -0
  571. package/dist/merge/git-path.d.ts.map +1 -0
  572. package/dist/merge/git-path.js +7 -0
  573. package/dist/merge/git-path.js.map +1 -0
  574. package/dist/merge/git-process.d.ts +14 -0
  575. package/dist/merge/git-process.d.ts.map +1 -0
  576. package/dist/merge/git-process.js +17 -0
  577. package/dist/merge/git-process.js.map +1 -0
  578. package/dist/merge/git-version.d.ts +9 -0
  579. package/dist/merge/git-version.d.ts.map +1 -0
  580. package/dist/merge/git-version.js +17 -0
  581. package/dist/merge/git-version.js.map +1 -0
  582. package/dist/merge/land-drizzle.d.ts +15 -0
  583. package/dist/merge/land-drizzle.d.ts.map +1 -0
  584. package/dist/merge/land-drizzle.js +34 -0
  585. package/dist/merge/land-drizzle.js.map +1 -0
  586. package/dist/merge/landed-commit.d.ts +20 -0
  587. package/dist/merge/landed-commit.d.ts.map +1 -0
  588. package/dist/merge/landed-commit.js +58 -0
  589. package/dist/merge/landed-commit.js.map +1 -0
  590. package/dist/merge/landed-point.d.ts +9 -0
  591. package/dist/merge/landed-point.d.ts.map +1 -0
  592. package/dist/merge/landed-point.js +80 -0
  593. package/dist/merge/landed-point.js.map +1 -0
  594. package/dist/merge/lost/changed-paths.d.ts +7 -0
  595. package/dist/merge/lost/changed-paths.d.ts.map +1 -0
  596. package/dist/merge/lost/changed-paths.js +25 -0
  597. package/dist/merge/lost/changed-paths.js.map +1 -0
  598. package/dist/merge/lost/collapsed-files.d.ts +10 -0
  599. package/dist/merge/lost/collapsed-files.d.ts.map +1 -0
  600. package/dist/merge/lost/collapsed-files.js +26 -0
  601. package/dist/merge/lost/collapsed-files.js.map +1 -0
  602. package/dist/merge/lost/commit-of.d.ts +3 -0
  603. package/dist/merge/lost/commit-of.d.ts.map +1 -0
  604. package/dist/merge/lost/commit-of.js +6 -0
  605. package/dist/merge/lost/commit-of.js.map +1 -0
  606. package/dist/merge/lost/conflict-markers.d.ts +10 -0
  607. package/dist/merge/lost/conflict-markers.d.ts.map +1 -0
  608. package/dist/merge/lost/conflict-markers.js +32 -0
  609. package/dist/merge/lost/conflict-markers.js.map +1 -0
  610. package/dist/merge/lost/deleted-specs.d.ts +5 -0
  611. package/dist/merge/lost/deleted-specs.d.ts.map +1 -0
  612. package/dist/merge/lost/deleted-specs.js +22 -0
  613. package/dist/merge/lost/deleted-specs.js.map +1 -0
  614. package/dist/merge/lost/finding-sections.d.ts +11 -0
  615. package/dist/merge/lost/finding-sections.d.ts.map +1 -0
  616. package/dist/merge/lost/finding-sections.js +46 -0
  617. package/dist/merge/lost/finding-sections.js.map +1 -0
  618. package/dist/merge/lost/format-merge-verification.d.ts +7 -0
  619. package/dist/merge/lost/format-merge-verification.d.ts.map +1 -0
  620. package/dist/merge/lost/format-merge-verification.js +45 -0
  621. package/dist/merge/lost/format-merge-verification.js.map +1 -0
  622. package/dist/merge/lost/hunk.d.ts +8 -0
  623. package/dist/merge/lost/hunk.d.ts.map +1 -0
  624. package/dist/merge/lost/hunk.js +2 -0
  625. package/dist/merge/lost/hunk.js.map +1 -0
  626. package/dist/merge/lost/hunks-of.d.ts +4 -0
  627. package/dist/merge/lost/hunks-of.d.ts.map +1 -0
  628. package/dist/merge/lost/hunks-of.js +32 -0
  629. package/dist/merge/lost/hunks-of.js.map +1 -0
  630. package/dist/merge/lost/in-progress-merge.d.ts +8 -0
  631. package/dist/merge/lost/in-progress-merge.d.ts.map +1 -0
  632. package/dist/merge/lost/in-progress-merge.js +49 -0
  633. package/dist/merge/lost/in-progress-merge.js.map +1 -0
  634. package/dist/merge/lost/is-generated-text.d.ts +6 -0
  635. package/dist/merge/lost/is-generated-text.d.ts.map +1 -0
  636. package/dist/merge/lost/is-generated-text.js +10 -0
  637. package/dist/merge/lost/is-generated-text.js.map +1 -0
  638. package/dist/merge/lost/is-line-checked.d.ts +8 -0
  639. package/dist/merge/lost/is-line-checked.d.ts.map +1 -0
  640. package/dist/merge/lost/is-line-checked.js +32 -0
  641. package/dist/merge/lost/is-line-checked.js.map +1 -0
  642. package/dist/merge/lost/kept-rows.d.ts +9 -0
  643. package/dist/merge/lost/kept-rows.d.ts.map +1 -0
  644. package/dist/merge/lost/kept-rows.js +41 -0
  645. package/dist/merge/lost/kept-rows.js.map +1 -0
  646. package/dist/merge/lost/line-counts.d.ts +19 -0
  647. package/dist/merge/lost/line-counts.d.ts.map +1 -0
  648. package/dist/merge/lost/line-counts.js +33 -0
  649. package/dist/merge/lost/line-counts.js.map +1 -0
  650. package/dist/merge/lost/line-findings.d.ts +15 -0
  651. package/dist/merge/lost/line-findings.d.ts.map +1 -0
  652. package/dist/merge/lost/line-findings.js +14 -0
  653. package/dist/merge/lost/line-findings.js.map +1 -0
  654. package/dist/merge/lost/lost-lines.d.ts +12 -0
  655. package/dist/merge/lost/lost-lines.d.ts.map +1 -0
  656. package/dist/merge/lost/lost-lines.js +64 -0
  657. package/dist/merge/lost/lost-lines.js.map +1 -0
  658. package/dist/merge/lost/lost-migrations.d.ts +9 -0
  659. package/dist/merge/lost/lost-migrations.d.ts.map +1 -0
  660. package/dist/merge/lost/lost-migrations.js +51 -0
  661. package/dist/merge/lost/lost-migrations.js.map +1 -0
  662. package/dist/merge/lost/lost-tests.d.ts +10 -0
  663. package/dist/merge/lost/lost-tests.d.ts.map +1 -0
  664. package/dist/merge/lost/lost-tests.js +43 -0
  665. package/dist/merge/lost/lost-tests.js.map +1 -0
  666. package/dist/merge/lost/merge-base-of.d.ts +17 -0
  667. package/dist/merge/lost/merge-base-of.d.ts.map +1 -0
  668. package/dist/merge/lost/merge-base-of.js +31 -0
  669. package/dist/merge/lost/merge-base-of.js.map +1 -0
  670. package/dist/merge/lost/merge-check.d.ts +14 -0
  671. package/dist/merge/lost/merge-check.d.ts.map +1 -0
  672. package/dist/merge/lost/merge-check.js +2 -0
  673. package/dist/merge/lost/merge-check.js.map +1 -0
  674. package/dist/merge/lost/merge-finding.d.ts +27 -0
  675. package/dist/merge/lost/merge-finding.d.ts.map +1 -0
  676. package/dist/merge/lost/merge-finding.js +2 -0
  677. package/dist/merge/lost/merge-finding.js.map +1 -0
  678. package/dist/merge/lost/merge-of-record.d.ts +14 -0
  679. package/dist/merge/lost/merge-of-record.d.ts.map +1 -0
  680. package/dist/merge/lost/merge-of-record.js +36 -0
  681. package/dist/merge/lost/merge-of-record.js.map +1 -0
  682. package/dist/merge/lost/merge-records.d.ts +13 -0
  683. package/dist/merge/lost/merge-records.d.ts.map +1 -0
  684. package/dist/merge/lost/merge-records.js +24 -0
  685. package/dist/merge/lost/merge-records.js.map +1 -0
  686. package/dist/merge/lost/merge-repository-of.d.ts +4 -0
  687. package/dist/merge/lost/merge-repository-of.d.ts.map +1 -0
  688. package/dist/merge/lost/merge-repository-of.js +21 -0
  689. package/dist/merge/lost/merge-repository-of.js.map +1 -0
  690. package/dist/merge/lost/merge-repository.d.ts +10 -0
  691. package/dist/merge/lost/merge-repository.d.ts.map +1 -0
  692. package/dist/merge/lost/merge-repository.js +2 -0
  693. package/dist/merge/lost/merge-repository.js.map +1 -0
  694. package/dist/merge/lost/merge-sides.d.ts +11 -0
  695. package/dist/merge/lost/merge-sides.d.ts.map +1 -0
  696. package/dist/merge/lost/merge-sides.js +2 -0
  697. package/dist/merge/lost/merge-sides.js.map +1 -0
  698. package/dist/merge/lost/merge-to-verify.d.ts +16 -0
  699. package/dist/merge/lost/merge-to-verify.d.ts.map +1 -0
  700. package/dist/merge/lost/merge-to-verify.js +2 -0
  701. package/dist/merge/lost/merge-to-verify.js.map +1 -0
  702. package/dist/merge/lost/merge-verification.d.ts +13 -0
  703. package/dist/merge/lost/merge-verification.d.ts.map +1 -0
  704. package/dist/merge/lost/merge-verification.js +2 -0
  705. package/dist/merge/lost/merge-verification.js.map +1 -0
  706. package/dist/merge/lost/merges-since.d.ts +4 -0
  707. package/dist/merge/lost/merges-since.d.ts.map +1 -0
  708. package/dist/merge/lost/merges-since.js +7 -0
  709. package/dist/merge/lost/merges-since.js.map +1 -0
  710. package/dist/merge/lost/normalized-lines.d.ts +13 -0
  711. package/dist/merge/lost/normalized-lines.d.ts.map +1 -0
  712. package/dist/merge/lost/normalized-lines.js +45 -0
  713. package/dist/merge/lost/normalized-lines.js.map +1 -0
  714. package/dist/merge/lost/ranked-places.d.ts +12 -0
  715. package/dist/merge/lost/ranked-places.d.ts.map +1 -0
  716. package/dist/merge/lost/ranked-places.js +11 -0
  717. package/dist/merge/lost/ranked-places.js.map +1 -0
  718. package/dist/merge/lost/revision-files.d.ts +9 -0
  719. package/dist/merge/lost/revision-files.d.ts.map +1 -0
  720. package/dist/merge/lost/revision-files.js +58 -0
  721. package/dist/merge/lost/revision-files.js.map +1 -0
  722. package/dist/merge/lost/rewritten-in-place.d.ts +12 -0
  723. package/dist/merge/lost/rewritten-in-place.d.ts.map +1 -0
  724. package/dist/merge/lost/rewritten-in-place.js +28 -0
  725. package/dist/merge/lost/rewritten-in-place.js.map +1 -0
  726. package/dist/merge/lost/side-hunks.d.ts +8 -0
  727. package/dist/merge/lost/side-hunks.d.ts.map +1 -0
  728. package/dist/merge/lost/side-hunks.js +18 -0
  729. package/dist/merge/lost/side-hunks.js.map +1 -0
  730. package/dist/merge/lost/since-of.d.ts +7 -0
  731. package/dist/merge/lost/since-of.d.ts.map +1 -0
  732. package/dist/merge/lost/since-of.js +22 -0
  733. package/dist/merge/lost/since-of.js.map +1 -0
  734. package/dist/merge/lost/spec-file.d.ts +3 -0
  735. package/dist/merge/lost/spec-file.d.ts.map +1 -0
  736. package/dist/merge/lost/spec-file.js +3 -0
  737. package/dist/merge/lost/spec-file.js.map +1 -0
  738. package/dist/merge/lost/superseded-lines.d.ts +25 -0
  739. package/dist/merge/lost/superseded-lines.d.ts.map +1 -0
  740. package/dist/merge/lost/superseded-lines.js +53 -0
  741. package/dist/merge/lost/superseded-lines.js.map +1 -0
  742. package/dist/merge/lost/three-way-count.d.ts +18 -0
  743. package/dist/merge/lost/three-way-count.d.ts.map +1 -0
  744. package/dist/merge/lost/three-way-count.js +18 -0
  745. package/dist/merge/lost/three-way-count.js.map +1 -0
  746. package/dist/merge/lost/verify-merge.d.ts +11 -0
  747. package/dist/merge/lost/verify-merge.d.ts.map +1 -0
  748. package/dist/merge/lost/verify-merge.js +95 -0
  749. package/dist/merge/lost/verify-merge.js.map +1 -0
  750. package/dist/merge/lost/verify-merges.d.ts +17 -0
  751. package/dist/merge/lost/verify-merges.d.ts.map +1 -0
  752. package/dist/merge/lost/verify-merges.js +49 -0
  753. package/dist/merge/lost/verify-merges.js.map +1 -0
  754. package/dist/merge/lost-lines-gate.d.ts +9 -0
  755. package/dist/merge/lost-lines-gate.d.ts.map +1 -0
  756. package/dist/merge/lost-lines-gate.js +28 -0
  757. package/dist/merge/lost-lines-gate.js.map +1 -0
  758. package/dist/merge/mentioned-tables.d.ts +3 -0
  759. package/dist/merge/mentioned-tables.d.ts.map +1 -0
  760. package/dist/merge/mentioned-tables.js +13 -0
  761. package/dist/merge/mentioned-tables.js.map +1 -0
  762. package/dist/merge/merge-context.d.ts +15 -0
  763. package/dist/merge/merge-context.d.ts.map +1 -0
  764. package/dist/merge/merge-context.js +14 -0
  765. package/dist/merge/merge-context.js.map +1 -0
  766. package/dist/merge/merge-exclusions.d.ts +8 -0
  767. package/dist/merge/merge-exclusions.d.ts.map +1 -0
  768. package/dist/merge/merge-exclusions.js +27 -0
  769. package/dist/merge/merge-exclusions.js.map +1 -0
  770. package/dist/merge/merge-message.d.ts +17 -0
  771. package/dist/merge/merge-message.d.ts.map +1 -0
  772. package/dist/merge/merge-message.js +16 -0
  773. package/dist/merge/merge-message.js.map +1 -0
  774. package/dist/merge/merge-report.d.ts +81 -0
  775. package/dist/merge/merge-report.d.ts.map +1 -0
  776. package/dist/merge/merge-report.js +2 -0
  777. package/dist/merge/merge-report.js.map +1 -0
  778. package/dist/merge/merge-slices-rows.d.ts +15 -0
  779. package/dist/merge/merge-slices-rows.d.ts.map +1 -0
  780. package/dist/merge/merge-slices-rows.js +111 -0
  781. package/dist/merge/merge-slices-rows.js.map +1 -0
  782. package/dist/merge/merge-state.d.ts +24 -0
  783. package/dist/merge/merge-state.d.ts.map +1 -0
  784. package/dist/merge/merge-state.js +41 -0
  785. package/dist/merge/merge-state.js.map +1 -0
  786. package/dist/merge/merge-steps.d.ts +18 -0
  787. package/dist/merge/merge-steps.d.ts.map +1 -0
  788. package/dist/merge/merge-steps.js +63 -0
  789. package/dist/merge/merge-steps.js.map +1 -0
  790. package/dist/merge/merge-stored-events-lock.d.ts +13 -0
  791. package/dist/merge/merge-stored-events-lock.d.ts.map +1 -0
  792. package/dist/merge/merge-stored-events-lock.js +50 -0
  793. package/dist/merge/merge-stored-events-lock.js.map +1 -0
  794. package/dist/merge/merge-trunk.d.ts +21 -0
  795. package/dist/merge/merge-trunk.d.ts.map +1 -0
  796. package/dist/merge/merge-trunk.js +150 -0
  797. package/dist/merge/merge-trunk.js.map +1 -0
  798. package/dist/merge/migrations-at.d.ts +11 -0
  799. package/dist/merge/migrations-at.d.ts.map +1 -0
  800. package/dist/merge/migrations-at.js +25 -0
  801. package/dist/merge/migrations-at.js.map +1 -0
  802. package/dist/merge/next-migration-number.d.ts +7 -0
  803. package/dist/merge/next-migration-number.d.ts.map +1 -0
  804. package/dist/merge/next-migration-number.js +17 -0
  805. package/dist/merge/next-migration-number.js.map +1 -0
  806. package/dist/merge/next-steps.d.ts +16 -0
  807. package/dist/merge/next-steps.d.ts.map +1 -0
  808. package/dist/merge/next-steps.js +16 -0
  809. package/dist/merge/next-steps.js.map +1 -0
  810. package/dist/merge/object-bytes.d.ts +6 -0
  811. package/dist/merge/object-bytes.d.ts.map +1 -0
  812. package/dist/merge/object-bytes.js +34 -0
  813. package/dist/merge/object-bytes.js.map +1 -0
  814. package/dist/merge/patch-ids-of.d.ts +7 -0
  815. package/dist/merge/patch-ids-of.d.ts.map +1 -0
  816. package/dist/merge/patch-ids-of.js +20 -0
  817. package/dist/merge/patch-ids-of.js.map +1 -0
  818. package/dist/merge/plain-git-merge.d.ts +11 -0
  819. package/dist/merge/plain-git-merge.d.ts.map +1 -0
  820. package/dist/merge/plain-git-merge.js +27 -0
  821. package/dist/merge/plain-git-merge.js.map +1 -0
  822. package/dist/merge/preview-merge.d.ts +27 -0
  823. package/dist/merge/preview-merge.d.ts.map +1 -0
  824. package/dist/merge/preview-merge.js +39 -0
  825. package/dist/merge/preview-merge.js.map +1 -0
  826. package/dist/merge/recorded-base.d.ts +11 -0
  827. package/dist/merge/recorded-base.d.ts.map +1 -0
  828. package/dist/merge/recorded-base.js +34 -0
  829. package/dist/merge/recorded-base.js.map +1 -0
  830. package/dist/merge/registry-union.d.ts +8 -0
  831. package/dist/merge/registry-union.d.ts.map +1 -0
  832. package/dist/merge/registry-union.js +22 -0
  833. package/dist/merge/registry-union.js.map +1 -0
  834. package/dist/merge/renumber-adrs.d.ts +19 -0
  835. package/dist/merge/renumber-adrs.d.ts.map +1 -0
  836. package/dist/merge/renumber-adrs.js +65 -0
  837. package/dist/merge/renumber-adrs.js.map +1 -0
  838. package/dist/merge/renumber-migrations.d.ts +23 -0
  839. package/dist/merge/renumber-migrations.d.ts.map +1 -0
  840. package/dist/merge/renumber-migrations.js +84 -0
  841. package/dist/merge/renumber-migrations.js.map +1 -0
  842. package/dist/merge/resolution.d.ts +19 -0
  843. package/dist/merge/resolution.d.ts.map +1 -0
  844. package/dist/merge/resolution.js +2 -0
  845. package/dist/merge/resolution.js.map +1 -0
  846. package/dist/merge/resolve-conflict.d.ts +11 -0
  847. package/dist/merge/resolve-conflict.d.ts.map +1 -0
  848. package/dist/merge/resolve-conflict.js +82 -0
  849. package/dist/merge/resolve-conflict.js.map +1 -0
  850. package/dist/merge/resume-merge.d.ts +5 -0
  851. package/dist/merge/resume-merge.d.ts.map +1 -0
  852. package/dist/merge/resume-merge.js +24 -0
  853. package/dist/merge/resume-merge.js.map +1 -0
  854. package/dist/merge/settle-regions.d.ts +10 -0
  855. package/dist/merge/settle-regions.d.ts.map +1 -0
  856. package/dist/merge/settle-regions.js +44 -0
  857. package/dist/merge/settle-regions.js.map +1 -0
  858. package/dist/merge/sharing-branches.d.ts +20 -0
  859. package/dist/merge/sharing-branches.d.ts.map +1 -0
  860. package/dist/merge/sharing-branches.js +24 -0
  861. package/dist/merge/sharing-branches.js.map +1 -0
  862. package/dist/merge/slices-table.d.ts +17 -0
  863. package/dist/merge/slices-table.d.ts.map +1 -0
  864. package/dist/merge/slices-table.js +35 -0
  865. package/dist/merge/slices-table.js.map +1 -0
  866. package/dist/merge/start-merge.d.ts +15 -0
  867. package/dist/merge/start-merge.d.ts.map +1 -0
  868. package/dist/merge/start-merge.js +33 -0
  869. package/dist/merge/start-merge.js.map +1 -0
  870. package/dist/merge/trunk-of.d.ts +9 -0
  871. package/dist/merge/trunk-of.d.ts.map +1 -0
  872. package/dist/merge/trunk-of.js +21 -0
  873. package/dist/merge/trunk-of.js.map +1 -0
  874. package/dist/merge/unmerged-entries.d.ts +4 -0
  875. package/dist/merge/unmerged-entries.d.ts.map +1 -0
  876. package/dist/merge/unmerged-entries.js +15 -0
  877. package/dist/merge/unmerged-entries.js.map +1 -0
  878. package/dist/migration/replay-drizzle-migrations.d.ts +5 -0
  879. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
  880. package/dist/migration/replay-drizzle-migrations.js +2 -2
  881. package/dist/migration/replay-drizzle-migrations.js.map +1 -1
  882. package/dist/migration/replayed-name.d.ts +5 -4
  883. package/dist/migration/replayed-name.d.ts.map +1 -1
  884. package/dist/migration/replayed-name.js +6 -5
  885. package/dist/migration/replayed-name.js.map +1 -1
  886. package/dist/plan/batched-waves.d.ts +0 -2
  887. package/dist/plan/batched-waves.d.ts.map +1 -1
  888. package/dist/plan/batched-waves.js +4 -4
  889. package/dist/plan/batched-waves.js.map +1 -1
  890. package/dist/plan/format-plan.d.ts +4 -1
  891. package/dist/plan/format-plan.d.ts.map +1 -1
  892. package/dist/plan/format-plan.js +7 -1
  893. package/dist/plan/format-plan.js.map +1 -1
  894. package/dist/plan/plan-waves.d.ts +0 -2
  895. package/dist/plan/plan-waves.d.ts.map +1 -1
  896. package/dist/plan/plan-waves.js +2 -2
  897. package/dist/plan/plan-waves.js.map +1 -1
  898. package/dist/progress/cells-of.d.ts +3 -0
  899. package/dist/progress/cells-of.d.ts.map +1 -0
  900. package/dist/progress/cells-of.js +12 -0
  901. package/dist/progress/cells-of.js.map +1 -0
  902. package/dist/progress/format-progress.d.ts.map +1 -1
  903. package/dist/progress/format-progress.js +9 -0
  904. package/dist/progress/format-progress.js.map +1 -1
  905. package/dist/progress/progress.d.ts +16 -0
  906. package/dist/progress/progress.d.ts.map +1 -1
  907. package/dist/progress/read-progress.d.ts +9 -3
  908. package/dist/progress/read-progress.d.ts.map +1 -1
  909. package/dist/progress/read-progress.js +18 -6
  910. package/dist/progress/read-progress.js.map +1 -1
  911. package/dist/progress/read-slice-rules.d.ts.map +1 -1
  912. package/dist/progress/read-slice-rules.js +1 -6
  913. package/dist/progress/read-slice-rules.js.map +1 -1
  914. package/dist/progress/read-slices.d.ts +2 -3
  915. package/dist/progress/read-slices.d.ts.map +1 -1
  916. package/dist/progress/read-slices.js +4 -50
  917. package/dist/progress/read-slices.js.map +1 -1
  918. package/dist/progress/rule-line.d.ts +7 -0
  919. package/dist/progress/rule-line.d.ts.map +1 -0
  920. package/dist/progress/rule-line.js +7 -0
  921. package/dist/progress/rule-line.js.map +1 -0
  922. package/dist/progress/slices-in.d.ts +8 -0
  923. package/dist/progress/slices-in.d.ts.map +1 -0
  924. package/dist/progress/slices-in.js +45 -0
  925. package/dist/progress/slices-in.js.map +1 -0
  926. package/dist/run.d.ts.map +1 -1
  927. package/dist/run.js +18 -0
  928. package/dist/run.js.map +1 -1
  929. package/dist/slice/format-slice-verification.d.ts.map +1 -1
  930. package/dist/slice/format-slice-verification.js +45 -6
  931. package/dist/slice/format-slice-verification.js.map +1 -1
  932. package/dist/slice/plan-staging.d.ts +1 -1
  933. package/dist/slice/plan-staging.d.ts.map +1 -1
  934. package/dist/slice/plan-staging.js +6 -15
  935. package/dist/slice/plan-staging.js.map +1 -1
  936. package/dist/slice/record-verification.d.ts +8 -0
  937. package/dist/slice/record-verification.d.ts.map +1 -0
  938. package/dist/slice/record-verification.js +28 -0
  939. package/dist/slice/record-verification.js.map +1 -0
  940. package/dist/slice/slice-verification.d.ts +10 -0
  941. package/dist/slice/slice-verification.d.ts.map +1 -1
  942. package/dist/slice/verification-file.d.ts +3 -0
  943. package/dist/slice/verification-file.d.ts.map +1 -0
  944. package/dist/slice/verification-file.js +3 -0
  945. package/dist/slice/verification-file.js.map +1 -0
  946. package/dist/slice/verify-slice.d.ts +5 -2
  947. package/dist/slice/verify-slice.d.ts.map +1 -1
  948. package/dist/slice/verify-slice.js +26 -5
  949. package/dist/slice/verify-slice.js.map +1 -1
  950. package/dist/slice/worker-slice-of.d.ts +15 -0
  951. package/dist/slice/worker-slice-of.d.ts.map +1 -0
  952. package/dist/slice/worker-slice-of.js +32 -0
  953. package/dist/slice/worker-slice-of.js.map +1 -0
  954. package/dist/stories/forecast-merge.d.ts +14 -0
  955. package/dist/stories/forecast-merge.d.ts.map +1 -0
  956. package/dist/stories/forecast-merge.js +44 -0
  957. package/dist/stories/forecast-merge.js.map +1 -0
  958. package/dist/stories/format-stories.d.ts +4 -0
  959. package/dist/stories/format-stories.d.ts.map +1 -0
  960. package/dist/stories/format-stories.js +66 -0
  961. package/dist/stories/format-stories.js.map +1 -0
  962. package/dist/stories/format-story-phases.d.ts +5 -0
  963. package/dist/stories/format-story-phases.d.ts.map +1 -0
  964. package/dist/stories/format-story-phases.js +14 -0
  965. package/dist/stories/format-story-phases.js.map +1 -0
  966. package/dist/stories/merge-forecast.d.ts +18 -0
  967. package/dist/stories/merge-forecast.d.ts.map +1 -0
  968. package/dist/stories/merge-forecast.js +2 -0
  969. package/dist/stories/merge-forecast.js.map +1 -0
  970. package/dist/stories/open-stories.d.ts +8 -0
  971. package/dist/stories/open-stories.d.ts.map +1 -0
  972. package/dist/stories/open-stories.js +31 -0
  973. package/dist/stories/open-stories.js.map +1 -0
  974. package/dist/stories/open-story-scope.d.ts +23 -0
  975. package/dist/stories/open-story-scope.d.ts.map +1 -0
  976. package/dist/stories/open-story-scope.js +86 -0
  977. package/dist/stories/open-story-scope.js.map +1 -0
  978. package/dist/stories/open-story.d.ts +11 -0
  979. package/dist/stories/open-story.d.ts.map +1 -0
  980. package/dist/stories/open-story.js +2 -0
  981. package/dist/stories/open-story.js.map +1 -0
  982. package/dist/stories/read-stories.d.ts +9 -0
  983. package/dist/stories/read-stories.d.ts.map +1 -0
  984. package/dist/stories/read-stories.js +60 -0
  985. package/dist/stories/read-stories.js.map +1 -0
  986. package/dist/stories/read-story-phases.d.ts +10 -0
  987. package/dist/stories/read-story-phases.d.ts.map +1 -0
  988. package/dist/stories/read-story-phases.js +144 -0
  989. package/dist/stories/read-story-phases.js.map +1 -0
  990. package/dist/stories/read-story-place.d.ts +4 -0
  991. package/dist/stories/read-story-place.d.ts.map +1 -0
  992. package/dist/stories/read-story-place.js +23 -0
  993. package/dist/stories/read-story-place.js.map +1 -0
  994. package/dist/stories/review-file-of.d.ts +4 -0
  995. package/dist/stories/review-file-of.d.ts.map +1 -0
  996. package/dist/stories/review-file-of.js +7 -0
  997. package/dist/stories/review-file-of.js.map +1 -0
  998. package/dist/stories/section-of.d.ts +3 -0
  999. package/dist/stories/section-of.d.ts.map +1 -0
  1000. package/dist/stories/section-of.js +11 -0
  1001. package/dist/stories/section-of.js.map +1 -0
  1002. package/dist/stories/stories-view.d.ts +13 -0
  1003. package/dist/stories/stories-view.d.ts.map +1 -0
  1004. package/dist/stories/stories-view.js +2 -0
  1005. package/dist/stories/stories-view.js.map +1 -0
  1006. package/dist/stories/story-crossing.d.ts +16 -0
  1007. package/dist/stories/story-crossing.d.ts.map +1 -0
  1008. package/dist/stories/story-crossing.js +2 -0
  1009. package/dist/stories/story-crossing.js.map +1 -0
  1010. package/dist/stories/story-gate.d.ts +4 -0
  1011. package/dist/stories/story-gate.d.ts.map +1 -0
  1012. package/dist/stories/story-gate.js +2 -0
  1013. package/dist/stories/story-gate.js.map +1 -0
  1014. package/dist/stories/story-phase.d.ts +13 -0
  1015. package/dist/stories/story-phase.d.ts.map +1 -0
  1016. package/dist/stories/story-phase.js +2 -0
  1017. package/dist/stories/story-phase.js.map +1 -0
  1018. package/dist/stories/story-place.d.ts +14 -0
  1019. package/dist/stories/story-place.d.ts.map +1 -0
  1020. package/dist/stories/story-place.js +2 -0
  1021. package/dist/stories/story-place.js.map +1 -0
  1022. package/dist/stories/story-scope-file.d.ts +3 -0
  1023. package/dist/stories/story-scope-file.d.ts.map +1 -0
  1024. package/dist/stories/story-scope-file.js +3 -0
  1025. package/dist/stories/story-scope-file.js.map +1 -0
  1026. package/dist/stories/story-scope.d.ts +17 -0
  1027. package/dist/stories/story-scope.d.ts.map +1 -0
  1028. package/dist/stories/story-scope.js +2 -0
  1029. package/dist/stories/story-scope.js.map +1 -0
  1030. package/dist/stories/story-state.d.ts +13 -0
  1031. package/dist/stories/story-state.d.ts.map +1 -0
  1032. package/dist/stories/story-state.js +2 -0
  1033. package/dist/stories/story-state.js.map +1 -0
  1034. package/dist/stories/trunk-phase.d.ts +8 -0
  1035. package/dist/stories/trunk-phase.d.ts.map +1 -0
  1036. package/dist/stories/trunk-phase.js +27 -0
  1037. package/dist/stories/trunk-phase.js.map +1 -0
  1038. package/dist/story/attribute-markers.d.ts +13 -0
  1039. package/dist/story/attribute-markers.d.ts.map +1 -0
  1040. package/dist/story/attribute-markers.js +38 -0
  1041. package/dist/story/attribute-markers.js.map +1 -0
  1042. package/dist/story/attributed-marker.d.ts +24 -0
  1043. package/dist/story/attributed-marker.d.ts.map +1 -0
  1044. package/dist/story/attributed-marker.js +2 -0
  1045. package/dist/story/attributed-marker.js.map +1 -0
  1046. package/dist/story/blamed-lines.d.ts +10 -0
  1047. package/dist/story/blamed-lines.d.ts.map +1 -0
  1048. package/dist/story/blamed-lines.js +36 -0
  1049. package/dist/story/blamed-lines.js.map +1 -0
  1050. package/dist/story/closing-of.d.ts +11 -0
  1051. package/dist/story/closing-of.d.ts.map +1 -0
  1052. package/dist/story/closing-of.js +87 -0
  1053. package/dist/story/closing-of.js.map +1 -0
  1054. package/dist/story/commit-rows.d.ts +16 -0
  1055. package/dist/story/commit-rows.d.ts.map +1 -0
  1056. package/dist/story/commit-rows.js +23 -0
  1057. package/dist/story/commit-rows.js.map +1 -0
  1058. package/dist/story/format-story-closing.d.ts +8 -0
  1059. package/dist/story/format-story-closing.d.ts.map +1 -0
  1060. package/dist/story/format-story-closing.js +89 -0
  1061. package/dist/story/format-story-closing.js.map +1 -0
  1062. package/dist/story/may-keep-open.d.ts +9 -0
  1063. package/dist/story/may-keep-open.d.ts.map +1 -0
  1064. package/dist/story/may-keep-open.js +12 -0
  1065. package/dist/story/may-keep-open.js.map +1 -0
  1066. package/dist/story/project-contexts.d.ts +5 -0
  1067. package/dist/story/project-contexts.d.ts.map +1 -0
  1068. package/dist/story/project-contexts.js +5 -0
  1069. package/dist/story/project-contexts.js.map +1 -0
  1070. package/dist/story/read-story-closing.d.ts +7 -0
  1071. package/dist/story/read-story-closing.d.ts.map +1 -0
  1072. package/dist/story/read-story-closing.js +44 -0
  1073. package/dist/story/read-story-closing.js.map +1 -0
  1074. package/dist/story/story-closing.d.ts +41 -0
  1075. package/dist/story/story-closing.d.ts.map +1 -0
  1076. package/dist/story/story-closing.js +2 -0
  1077. package/dist/story/story-closing.js.map +1 -0
  1078. package/dist/story/story-of.d.ts +7 -0
  1079. package/dist/story/story-of.d.ts.map +1 -0
  1080. package/dist/story/story-of.js +9 -0
  1081. package/dist/story/story-of.js.map +1 -0
  1082. package/dist/story/story-plan.d.ts +12 -0
  1083. package/dist/story/story-plan.d.ts.map +1 -0
  1084. package/dist/story/story-plan.js +2 -0
  1085. package/dist/story/story-plan.js.map +1 -0
  1086. package/dist/story/story-scope.d.ts +14 -0
  1087. package/dist/story/story-scope.d.ts.map +1 -0
  1088. package/dist/story/story-scope.js +14 -0
  1089. package/dist/story/story-scope.js.map +1 -0
  1090. package/dist/story/unclosed-stories.d.ts +19 -0
  1091. package/dist/story/unclosed-stories.d.ts.map +1 -0
  1092. package/dist/story/unclosed-stories.js +20 -0
  1093. package/dist/story/unclosed-stories.js.map +1 -0
  1094. package/dist/version.d.ts +1 -1
  1095. package/dist/version.js +1 -1
  1096. package/dist/worker/add-worktree.d.ts +7 -0
  1097. package/dist/worker/add-worktree.d.ts.map +1 -0
  1098. package/dist/worker/add-worktree.js +13 -0
  1099. package/dist/worker/add-worktree.js.map +1 -0
  1100. package/dist/worker/agent-file.d.ts +3 -0
  1101. package/dist/worker/agent-file.d.ts.map +1 -0
  1102. package/dist/worker/agent-file.js +3 -0
  1103. package/dist/worker/agent-file.js.map +1 -0
  1104. package/dist/worker/branch-exists.d.ts +3 -0
  1105. package/dist/worker/branch-exists.d.ts.map +1 -0
  1106. package/dist/worker/branch-exists.js +6 -0
  1107. package/dist/worker/branch-exists.js.map +1 -0
  1108. package/dist/worker/branch-standing.d.ts +24 -0
  1109. package/dist/worker/branch-standing.d.ts.map +1 -0
  1110. package/dist/worker/branch-standing.js +47 -0
  1111. package/dist/worker/branch-standing.js.map +1 -0
  1112. package/dist/worker/briefed-rows.d.ts +3 -2
  1113. package/dist/worker/briefed-rows.d.ts.map +1 -1
  1114. package/dist/worker/briefed-rows.js +32 -7
  1115. package/dist/worker/briefed-rows.js.map +1 -1
  1116. package/dist/worker/briefed-slice.d.ts +3 -0
  1117. package/dist/worker/briefed-slice.d.ts.map +1 -1
  1118. package/dist/worker/briefing-of.d.ts.map +1 -1
  1119. package/dist/worker/briefing-of.js +37 -7
  1120. package/dist/worker/briefing-of.js.map +1 -1
  1121. package/dist/worker/design-line.d.ts +4 -0
  1122. package/dist/worker/design-line.d.ts.map +1 -0
  1123. package/dist/worker/design-line.js +9 -0
  1124. package/dist/worker/design-line.js.map +1 -0
  1125. package/dist/worker/design-note.d.ts +4 -0
  1126. package/dist/worker/design-note.d.ts.map +1 -0
  1127. package/dist/worker/design-note.js +19 -0
  1128. package/dist/worker/design-note.js.map +1 -0
  1129. package/dist/worker/ensure-contains-base.d.ts +3 -1
  1130. package/dist/worker/ensure-contains-base.d.ts.map +1 -1
  1131. package/dist/worker/ensure-contains-base.js +4 -2
  1132. package/dist/worker/ensure-contains-base.js.map +1 -1
  1133. package/dist/worker/ensure-ignored.d.ts +7 -0
  1134. package/dist/worker/ensure-ignored.d.ts.map +1 -0
  1135. package/dist/worker/ensure-ignored.js +17 -0
  1136. package/dist/worker/ensure-ignored.js.map +1 -0
  1137. package/dist/worker/find-worker.d.ts +23 -0
  1138. package/dist/worker/find-worker.d.ts.map +1 -0
  1139. package/dist/worker/find-worker.js +42 -0
  1140. package/dist/worker/find-worker.js.map +1 -0
  1141. package/dist/worker/format-resume.d.ts +4 -0
  1142. package/dist/worker/format-resume.d.ts.map +1 -0
  1143. package/dist/worker/format-resume.js +60 -0
  1144. package/dist/worker/format-resume.js.map +1 -0
  1145. package/dist/worker/format-workers.d.ts.map +1 -1
  1146. package/dist/worker/format-workers.js +33 -5
  1147. package/dist/worker/format-workers.js.map +1 -1
  1148. package/dist/worker/install-dependencies.d.ts +16 -0
  1149. package/dist/worker/install-dependencies.d.ts.map +1 -0
  1150. package/dist/worker/install-dependencies.js +32 -0
  1151. package/dist/worker/install-dependencies.js.map +1 -0
  1152. package/dist/worker/install-notes.d.ts +9 -0
  1153. package/dist/worker/install-notes.d.ts.map +1 -0
  1154. package/dist/worker/install-notes.js +25 -0
  1155. package/dist/worker/install-notes.js.map +1 -0
  1156. package/dist/worker/is-worktree.d.ts +3 -0
  1157. package/dist/worker/is-worktree.d.ts.map +1 -0
  1158. package/dist/worker/is-worktree.js +15 -0
  1159. package/dist/worker/is-worktree.js.map +1 -0
  1160. package/dist/worker/landed-rows.d.ts +7 -0
  1161. package/dist/worker/landed-rows.d.ts.map +1 -0
  1162. package/dist/worker/landed-rows.js +8 -0
  1163. package/dist/worker/landed-rows.js.map +1 -0
  1164. package/dist/worker/named-paths.d.ts +3 -0
  1165. package/dist/worker/named-paths.d.ts.map +1 -0
  1166. package/dist/worker/named-paths.js +8 -0
  1167. package/dist/worker/named-paths.js.map +1 -0
  1168. package/dist/worker/next-step-of.d.ts +23 -0
  1169. package/dist/worker/next-step-of.d.ts.map +1 -0
  1170. package/dist/worker/next-step-of.js +32 -0
  1171. package/dist/worker/next-step-of.js.map +1 -0
  1172. package/dist/worker/open-worker-scope.d.ts +11 -3
  1173. package/dist/worker/open-worker-scope.d.ts.map +1 -1
  1174. package/dist/worker/open-worker-scope.js +91 -53
  1175. package/dist/worker/open-worker-scope.js.map +1 -1
  1176. package/dist/worker/progress-of.d.ts +14 -0
  1177. package/dist/worker/progress-of.d.ts.map +1 -0
  1178. package/dist/worker/progress-of.js +107 -0
  1179. package/dist/worker/progress-of.js.map +1 -0
  1180. package/dist/worker/read-agent-record.d.ts +4 -0
  1181. package/dist/worker/read-agent-record.d.ts.map +1 -0
  1182. package/dist/worker/read-agent-record.js +40 -0
  1183. package/dist/worker/read-agent-record.js.map +1 -0
  1184. package/dist/worker/read-verification.d.ts +9 -0
  1185. package/dist/worker/read-verification.d.ts.map +1 -0
  1186. package/dist/worker/read-verification.js +26 -0
  1187. package/dist/worker/read-verification.js.map +1 -0
  1188. package/dist/worker/read-worker-file.d.ts.map +1 -1
  1189. package/dist/worker/read-worker-file.js +2 -1
  1190. package/dist/worker/read-worker-file.js.map +1 -1
  1191. package/dist/worker/read-workers.d.ts.map +1 -1
  1192. package/dist/worker/read-workers.js +29 -9
  1193. package/dist/worker/read-workers.js.map +1 -1
  1194. package/dist/worker/repository-prefix.d.ts +3 -0
  1195. package/dist/worker/repository-prefix.d.ts.map +1 -0
  1196. package/dist/worker/repository-prefix.js +14 -0
  1197. package/dist/worker/repository-prefix.js.map +1 -0
  1198. package/dist/worker/resume-briefing.d.ts +17 -0
  1199. package/dist/worker/resume-briefing.d.ts.map +1 -0
  1200. package/dist/worker/resume-briefing.js +76 -0
  1201. package/dist/worker/resume-briefing.js.map +1 -0
  1202. package/dist/worker/resume-message.d.ts +15 -0
  1203. package/dist/worker/resume-message.d.ts.map +1 -0
  1204. package/dist/worker/resume-message.js +43 -0
  1205. package/dist/worker/resume-message.js.map +1 -0
  1206. package/dist/worker/resume-worker.d.ts +34 -0
  1207. package/dist/worker/resume-worker.d.ts.map +1 -0
  1208. package/dist/worker/resume-worker.js +47 -0
  1209. package/dist/worker/resume-worker.js.map +1 -0
  1210. package/dist/worker/row-commits.d.ts +22 -0
  1211. package/dist/worker/row-commits.d.ts.map +1 -0
  1212. package/dist/worker/row-commits.js +57 -0
  1213. package/dist/worker/row-commits.js.map +1 -0
  1214. package/dist/worker/rows-on-branches.d.ts +2 -1
  1215. package/dist/worker/rows-on-branches.d.ts.map +1 -1
  1216. package/dist/worker/rows-on-branches.js +2 -1
  1217. package/dist/worker/rows-on-branches.js.map +1 -1
  1218. package/dist/worker/stale-names-block.d.ts +4 -0
  1219. package/dist/worker/stale-names-block.d.ts.map +1 -0
  1220. package/dist/worker/stale-names-block.js +17 -0
  1221. package/dist/worker/stale-names-block.js.map +1 -0
  1222. package/dist/worker/state-line-of.d.ts +9 -0
  1223. package/dist/worker/state-line-of.d.ts.map +1 -0
  1224. package/dist/worker/state-line-of.js +55 -0
  1225. package/dist/worker/state-line-of.js.map +1 -0
  1226. package/dist/worker/upstream-of.d.ts +8 -0
  1227. package/dist/worker/upstream-of.d.ts.map +1 -0
  1228. package/dist/worker/upstream-of.js +18 -0
  1229. package/dist/worker/upstream-of.js.map +1 -0
  1230. package/dist/worker/worker-file.d.ts +2 -0
  1231. package/dist/worker/worker-file.d.ts.map +1 -1
  1232. package/dist/worker/worker-place.d.ts +3 -0
  1233. package/dist/worker/worker-place.d.ts.map +1 -1
  1234. package/dist/worker/worker-progress.d.ts +87 -0
  1235. package/dist/worker/worker-progress.d.ts.map +1 -0
  1236. package/dist/worker/worker-progress.js +2 -0
  1237. package/dist/worker/worker-progress.js.map +1 -0
  1238. package/dist/worker/worker-scope.d.ts +3 -0
  1239. package/dist/worker/worker-scope.d.ts.map +1 -1
  1240. package/dist/worker/workers-status.d.ts +29 -3
  1241. package/dist/worker/workers-status.d.ts.map +1 -1
  1242. package/dist/worker/worktree-home.d.ts +9 -0
  1243. package/dist/worker/worktree-home.d.ts.map +1 -0
  1244. package/dist/worker/worktree-home.js +17 -0
  1245. package/dist/worker/worktree-home.js.map +1 -0
  1246. package/dist/worker/worktree-of.d.ts +13 -0
  1247. package/dist/worker/worktree-of.d.ts.map +1 -0
  1248. package/dist/worker/worktree-of.js +30 -0
  1249. package/dist/worker/worktree-of.js.map +1 -0
  1250. package/dist/worktree/open-worktree.d.ts +20 -0
  1251. package/dist/worktree/open-worktree.d.ts.map +1 -0
  1252. package/dist/worktree/open-worktree.js +57 -0
  1253. package/dist/worktree/open-worktree.js.map +1 -0
  1254. package/dist/worktree/worktree-scope.d.ts +15 -0
  1255. package/dist/worktree/worktree-scope.d.ts.map +1 -0
  1256. package/dist/worktree/worktree-scope.js +2 -0
  1257. package/dist/worktree/worktree-scope.js.map +1 -0
  1258. package/package.json +2 -2
  1259. package/templates/acceptance/acceptance.spec.ts.tpl +35 -0
  1260. package/templates/init/AGENTS.md.tpl +1 -1
  1261. package/templates/init/docker/dockerignore.tpl +1 -0
  1262. package/templates/init/e2e/jest.e2e.config.js.tpl +1 -1
  1263. package/templates/init/e2e/vitest.e2e.config.ts.tpl +1 -1
  1264. package/templates/init/gitignore.tpl +1 -0
  1265. package/templates/init/rules/application.md.tpl +1 -1
  1266. package/templates/init/rules/infrastructure.md.tpl +3 -0
  1267. package/templates/pipeline/biome.json.tpl +1 -0
  1268. package/templates/pipeline/lefthook.yml +5 -0
  1269. package/templates/pipeline/package-scripts.json +1 -1
  1270. package/templates/pipeline/vitest.config.ts.tpl +28 -27
@@ -1,4 +1,6 @@
1
1
  import type { CheckResult } from '../check/engine/check-result.js';
2
+ import type { StaleCitation } from '../citations/stale-citation.js';
3
+ import type { MergeVerification } from '../merge/lost/merge-verification.js';
2
4
  import type { ScriptRun } from './script-run.js';
3
5
  import type { SizedFile } from './sized-file.js';
4
6
  /** What `verify-slice` found for one slice, step by step, and what is left to commit. */
@@ -8,11 +10,19 @@ export interface SliceVerification {
8
10
  readonly regenerate: ScriptRun;
9
11
  readonly check: CheckResult;
10
12
  readonly tests: ScriptRun;
13
+ /** The merges of the branch since `since`, the trunk brought in: what each one lost; reported, never in `ok` in this version. */
14
+ readonly merges: MergeVerification;
11
15
  readonly nearTheLimit: readonly SizedFile[];
12
16
  /** The paths of the slice, to stage one by one. */
13
17
  readonly toStage: readonly string[];
14
18
  /** The other changed paths of the working tree: never staged with the slice. */
15
19
  readonly leftOut: readonly string[];
20
+ /** The names the slice removes that the design of a row not done still cites: informational, never a failure. */
21
+ readonly citedRemovals: readonly StaleCitation[];
16
22
  readonly ok: boolean;
23
+ /** In the worktree of a worker: the row being closed, the first of its scope file no commit closes yet. */
24
+ readonly row?: string;
25
+ /** In the worktree of a worker: the commit command, with the trailer `Slice: <row>`. */
26
+ readonly commit?: string;
17
27
  }
18
28
  //# sourceMappingURL=slice-verification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slice-verification.d.ts","sourceRoot":"","sources":["../../src/slice/slice-verification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,yFAAyF;AACzF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;I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CAAC;IACpC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,iHAAiH;IACjH,QAAQ,CAAC,aAAa,EAAE,SAAS,aAAa,EAAE,CAAC;IACjD,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ /** Written by `verify-slice` in the worktree of a worker: its last verification, read by `status --workers` and `worker-scope --resume`. */
2
+ export declare const VERIFICATION_FILE = ".ddd-ts-kit/verification.json";
3
+ //# sourceMappingURL=verification-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-file.d.ts","sourceRoot":"","sources":["../../src/slice/verification-file.ts"],"names":[],"mappings":"AAAA,4IAA4I;AAC5I,eAAO,MAAM,iBAAiB,kCAAkC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Written by `verify-slice` in the worktree of a worker: its last verification, read by `status --workers` and `worker-scope --resume`. */
2
+ export const VERIFICATION_FILE = '.ddd-ts-kit/verification.json';
3
+ //# sourceMappingURL=verification-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-file.js","sourceRoot":"","sources":["../../src/slice/verification-file.ts"],"names":[],"mappings":"AAAA,4IAA4I;AAC5I,MAAM,CAAC,MAAM,iBAAiB,GAAG,+BAA+B,CAAC"}
@@ -3,8 +3,11 @@ import type { SliceVerification } from './slice-verification.js';
3
3
  /**
4
4
  * The steps that close a slice before its commit, in one run: the derived files regenerated,
5
5
  * the architecture rules on the files changed since `since` (new ones included), the specs of
6
- * the context; then the changed files near the size limit and the paths to stage. Every step
7
- * runs, so that one answer tells everything that is left.
6
+ * the context, the merges of the branch since `since` (what one of them lost is reported but does
7
+ * not fail the slice in this version: the check reaches projects as a warning first); then the
8
+ * changed files near the size limit and the paths to stage. Every step runs, so that one answer
9
+ * tells everything that is left. In the worktree of a worker, the answer names the row being
10
+ * closed and its commit command, and is kept in `.ddd-ts-kit/verification.json` for the conductor.
8
11
  */
9
12
  export declare function verifySlice({ root, config, context, since }: SliceToVerify): SliceVerification;
10
13
  //# sourceMappingURL=verify-slice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verify-slice.d.ts","sourceRoot":"","sources":["../../src/slice/verify-slice.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAKjE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,aAAa,GAAG,iBAAiB,CAyB9F"}
1
+ {"version":3,"file":"verify-slice.d.ts","sourceRoot":"","sources":["../../src/slice/verify-slice.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAMjE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,aAAa,GAAG,iBAAiB,CA6B9F"}
@@ -1,41 +1,62 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { changedFiles } from '../check/commands/changed-files.js';
4
+ import { citedRemovals } from '../citations/cited-removals.js';
4
5
  import { runCheck } from '../check/engine/run-check.js';
5
6
  import { summarize } from '../check/engine/summarize.js';
6
7
  import { loadProject } from '../check/project/load-project.js';
7
8
  import { CliError } from '../cli-error.js';
8
9
  import { isRecord } from '../config/values/is-record.js';
10
+ import { verifyMerges } from '../merge/lost/verify-merges.js';
9
11
  import { nearTheLimit } from './near-the-limit.js';
10
12
  import { changedEntries } from './changed-entries.js';
11
13
  import { planStaging } from './plan-staging.js';
14
+ import { recordVerification } from './record-verification.js';
12
15
  import { runScript } from './run-script.js';
16
+ import { workerSliceOf } from './worker-slice-of.js';
13
17
  /** The scripts a slice runs; `regenerate` arrived in 0.21. */
14
18
  const SCRIPTS = ['regenerate', 'test'];
15
19
  /**
16
20
  * The steps that close a slice before its commit, in one run: the derived files regenerated,
17
21
  * the architecture rules on the files changed since `since` (new ones included), the specs of
18
- * the context; then the changed files near the size limit and the paths to stage. Every step
19
- * runs, so that one answer tells everything that is left.
22
+ * the context, the merges of the branch since `since` (what one of them lost is reported but does
23
+ * not fail the slice in this version: the check reaches projects as a warning first); then the
24
+ * changed files near the size limit and the paths to stage. Every step runs, so that one answer
25
+ * tells everything that is left. In the worktree of a worker, the answer names the row being
26
+ * closed and its commit command, and is kept in `.ddd-ts-kit/verification.json` for the conductor.
20
27
  */
21
28
  export function verifySlice({ root, config, context, since }) {
22
29
  requireScripts(root);
23
30
  const manager = config.stack.packageManager;
24
31
  const regenerate = runScript({ root, manager, script: 'regenerate' });
25
32
  const changed = changedFiles(root, since);
26
- const run = runCheck(loadProject(root), { rules: [] });
33
+ const project = loadProject(root);
34
+ const run = runCheck(project, { rules: [] });
27
35
  const check = summarize(run.violations.filter((violation) => changed.has(violation.file)), run);
28
36
  const tests = runScript({ root, manager, script: 'test', args: [context] });
29
- return {
37
+ const merges = verifyMerges({ root, since });
38
+ return closedByWorker(root, {
30
39
  context,
31
40
  since,
32
41
  regenerate,
33
42
  check,
34
43
  tests,
44
+ merges,
35
45
  nearTheLimit: nearTheLimit(root, changed),
36
46
  ...planStaging(changedEntries(root), config, context),
47
+ citedRemovals: citedRemovals(project, since),
37
48
  ok: regenerate.ok && check.errorCount === 0 && tests.ok,
38
- };
49
+ });
50
+ }
51
+ /** In the worktree of a worker: the row it closes and its commit command, kept for the conductor. */
52
+ function closedByWorker(root, verification) {
53
+ const worker = workerSliceOf(root, verification.context, verification.since);
54
+ if (worker === undefined) {
55
+ return verification;
56
+ }
57
+ const named = { ...verification, ...worker };
58
+ recordVerification(root, named);
59
+ return named;
39
60
  }
40
61
  function requireScripts(root) {
41
62
  const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
@@ -1 +1 @@
1
- {"version":3,"file":"verify-slice.js","sourceRoot":"","sources":["../../src/slice/verify-slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,8DAA8D;AAC9D,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAiB;IACzE,cAAc,CAAC,IAAI,CAAC,CAAC;IAErB,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC;IAC5C,MAAM,UAAU,GAAG,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CA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C,UAAU,CAAC,UAAU,EACxF,oGAAoG,CACrG,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,15 @@
1
+ /** The row a worker is closing, and the commit command that names it; neither once every row is committed. */
2
+ export interface WorkerSlice {
3
+ /** The id of the row, as its scope file holds it. */
4
+ readonly row?: string;
5
+ /** `git commit -m "feat(<context>): <the slice>" -m "Slice: <id>"`. */
6
+ readonly commit?: string;
7
+ }
8
+ /**
9
+ * In the worktree of a worker, the first row of its scope file that no commit of its branch
10
+ * closes yet, with the commit command that closes it: the subject from the row's name, the
11
+ * trailer `Slice: <id>` that `status --workers` reads. Undefined outside a worker; empty once
12
+ * every row is committed.
13
+ */
14
+ export declare function workerSliceOf(root: string, context: string, since: string): WorkerSlice | undefined;
15
+ //# sourceMappingURL=worker-slice-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-slice-of.d.ts","sourceRoot":"","sources":["../../src/slice/worker-slice-of.ts"],"names":[],"mappings":"AAOA,8GAA8G;AAC9G,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAKD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAqBnG"}
@@ -0,0 +1,32 @@
1
+ import path from 'node:path';
2
+ import { WORKER_SCOPE_FILE } from '../commit/worker-scope-file.js';
3
+ import { readSlices } from '../progress/read-slices.js';
4
+ import { readWorkerFile } from '../worker/read-worker-file.js';
5
+ import { rowCommits } from '../worker/row-commits.js';
6
+ import { Workspace } from '../workspace/index.js';
7
+ /** Characters a double-quoted shell word would read: kept out of the subject. */
8
+ const SHELL_SPECIAL = /["`$\\]/g;
9
+ /**
10
+ * In the worktree of a worker, the first row of its scope file that no commit of its branch
11
+ * closes yet, with the commit command that closes it: the subject from the row's name, the
12
+ * trailer `Slice: <id>` that `status --workers` reads. Undefined outside a worker; empty once
13
+ * every row is committed.
14
+ */
15
+ export function workerSliceOf(root, context, since) {
16
+ const scope = readWorkerFile(path.join(root, WORKER_SCOPE_FILE));
17
+ if (scope?.rows === undefined || scope.context !== context) {
18
+ return undefined;
19
+ }
20
+ const committed = new Set(rowCommits(root, { base: scope.base ?? since, context, rows: scope.rows }).map((done) => done.row));
21
+ const row = scope.rows.find((id) => !committed.has(id));
22
+ if (row === undefined) {
23
+ return {};
24
+ }
25
+ const name = readSlices(new Workspace(root, false))?.find((slice) => slice.id === row)?.slice;
26
+ const subject = name === undefined ? '<the slice in business words>' : lowerFirst(name.replace(SHELL_SPECIAL, ''));
27
+ return { row, commit: `git commit -m "feat(${context}): ${subject}" -m "Slice: ${row}"` };
28
+ }
29
+ function lowerFirst(text) {
30
+ return text.charAt(0).toLowerCase() + text.slice(1);
31
+ }
32
+ //# sourceMappingURL=worker-slice-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-slice-of.js","sourceRoot":"","sources":["../../src/slice/worker-slice-of.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAUlD,iFAAiF;AACjF,MAAM,aAAa,GAAG,UAAU,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,OAAe,EAAE,KAAa;IACxE,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI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AK,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { MergeRepository } from '../merge/lost/merge-repository.js';
2
+ import type { MergeForecast } from './merge-forecast.js';
3
+ /** The two branches of a forecast: `theirs` merged into `ours`. */
4
+ export interface ForecastSides {
5
+ readonly ours: string;
6
+ readonly theirs: string;
7
+ }
8
+ /**
9
+ * Merging `theirs` into `ours` now, as `merge-trunk` would settle it: `git merge-tree` from the
10
+ * base git computes, each conflicted path settled or left to a person. Nothing is written but
11
+ * objects of the repository. Undefined when a side names no commit or git is older than 2.40.
12
+ */
13
+ export declare function forecastMerge(repo: MergeRepository, { ours, theirs }: ForecastSides): MergeForecast | undefined;
14
+ //# sourceMappingURL=forecast-merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forecast-merge.d.ts","sourceRoot":"","sources":["../../src/stories/forecast-merge.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvE,mEAAmE;AACnE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS,CAqB/G"}
@@ -0,0 +1,44 @@
1
+ import { CliError } from '../cli-error.js';
2
+ import { runGit } from '../commit/run-git.js';
3
+ import { conflictedPaths } from '../merge/conflicted-paths.js';
4
+ import { previewMerge } from '../merge/preview-merge.js';
5
+ import { resolveConflict } from '../merge/resolve-conflict.js';
6
+ /**
7
+ * Merging `theirs` into `ours` now, as `merge-trunk` would settle it: `git merge-tree` from the
8
+ * base git computes, each conflicted path settled or left to a person. Nothing is written but
9
+ * objects of the repository. Undefined when a side names no commit or git is older than 2.40.
10
+ */
11
+ export function forecastMerge(repo, { ours, theirs }) {
12
+ const behind = runGit(repo.top, ['rev-list', '--count', `${ours}..${theirs}`])?.trim();
13
+ if (behind === undefined) {
14
+ return undefined;
15
+ }
16
+ if (behind === '0') {
17
+ return { ref: theirs, behind: 0, settled: [], byHand: [] };
18
+ }
19
+ const resolutions = resolutionsOf(repo, { ours, theirs });
20
+ return resolutions === undefined
21
+ ? undefined
22
+ : {
23
+ ref: theirs,
24
+ behind: Number(behind),
25
+ settled: resolutions.filter((resolution) => resolution.settled).map(pathOf),
26
+ byHand: resolutions.filter((resolution) => !resolution.settled).map(pathOf),
27
+ };
28
+ }
29
+ function resolutionsOf(repo, sides) {
30
+ try {
31
+ const { tree, conflicts } = previewMerge(repo.top, sides);
32
+ return conflictedPaths(repo.top, conflicts, { tree }).map((path) => resolveConflict(path, repo));
33
+ }
34
+ catch (error) {
35
+ if (error instanceof CliError) {
36
+ return undefined;
37
+ }
38
+ throw error;
39
+ }
40
+ }
41
+ function pathOf({ file, kind }) {
42
+ return { file, kind };
43
+ }
44
+ //# sourceMappingURL=forecast-merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forecast-merge.js","sourceRoot":"","sources":["../../src/stories/forecast-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAS/D;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,IAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAiB;IAClF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,G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,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;YAC9B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAc;IACxC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACxB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { StoriesView } from './stories-view.js';
2
+ /** The open stories as text: one line each, where they meet, and what to do about it. */
3
+ export declare function formatStories(view: StoriesView, cwd: string): string;
4
+ //# sourceMappingURL=format-stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-stories.d.ts","sourceRoot":"","sources":["../../src/stories/format-stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAYpE"}
@@ -0,0 +1,66 @@
1
+ import path from 'node:path';
2
+ /** The open stories as text: one line each, where they meet, and what to do about it. */
3
+ export function formatStories(view, cwd) {
4
+ if (view.stories.length === 0) {
5
+ return 'No story is open in a worktree of this repository (`npx ddd-ts-kit story-scope <code>` opens one).';
6
+ }
7
+ return [
8
+ `Open stories (${view.stories.length})${view.here === undefined ? '' : `, this worktree takes ${view.here}`}; the trunk as ${view.fetched === undefined ? 'this repository holds it, never fetched' : `fetched ${view.fetched}`} (\`git fetch\` brings it up to date)`,
9
+ ...view.stories.map((story) => ` ${storyLine(story, cwd)}`),
10
+ '',
11
+ ...crossingsBlock(view),
12
+ ...nextBlock(view),
13
+ ].join('\n');
14
+ }
15
+ function storyLine(story, cwd) {
16
+ const contexts = story.contexts.length === 0 ? 'no row yet' : `contexts ${story.contexts.join(', ')}`;
17
+ const trunk = story.trunk === undefined ? '' : `; ${forecastText(story.trunk)}`;
18
+ return `${story.story} ${path.relative(cwd, story.worktree) || '.'} ${story.branch ?? 'detached'} ${contexts}, ${story.files.length} file(s) changed${trunk}`;
19
+ }
20
+ function crossingsBlock({ here, crossings }) {
21
+ if (crossings.length === 0) {
22
+ return [here === undefined ? 'No two of them meet.' : `${here} meets no other open story.`, ''];
23
+ }
24
+ return ['Where they meet', ...crossings.flatMap((crossing) => crossingLines(crossing)), ''];
25
+ }
26
+ function crossingLines({ stories: [first, second], contexts, files, merge }) {
27
+ return [
28
+ ` ${first} and ${second}`,
29
+ ...(contexts.length === 0 ? [] : [` contexts both change: ${contexts.join(', ')}`]),
30
+ ...(files.length === 0 ? [] : [` files both change: ${files.join(', ')}`]),
31
+ ...(merge === undefined ? [] : [` ${second} merged into ${first} now: ${forecastText(merge)}`]),
32
+ ];
33
+ }
34
+ /** `3 commits of main behind, 2 conflicts: 1 settled by merge-trunk, 1 for you (src/a.ts)`. */
35
+ function forecastText({ ref, behind, settled, byHand }) {
36
+ if (behind === 0) {
37
+ return `${ref} merged in`;
38
+ }
39
+ const conflicts = settled.length + byHand.length;
40
+ const forYou = byHand.length === 0 ? '' : `, ${byHand.length} for you (${byHand.map(({ file }) => file).join(', ')})`;
41
+ return `${behind} commit(s) of ${ref} to merge in, ${conflicts === 0 ? 'no conflict' : `${conflicts} conflict(s): ${settled.length} settled by merge-trunk${forYou}`}`;
42
+ }
43
+ function nextBlock(view) {
44
+ return [...trunkAdvice(view), ...crossingAdvice(view)];
45
+ }
46
+ function trunkAdvice({ here, stories }) {
47
+ const trunk = stories.find((story) => story.story === here)?.trunk;
48
+ return trunk === undefined || trunk.byHand.length === 0
49
+ ? []
50
+ : [
51
+ `Next: bring the trunk in now, while its conflicts are few: commit, then \`npx ddd-ts-kit merge-trunk --trunk ${trunk.ref}\`.`,
52
+ ];
53
+ }
54
+ function crossingAdvice({ crossings }) {
55
+ if (crossings.some((crossing) => (crossing.merge?.byHand.length ?? 0) > 0)) {
56
+ return [
57
+ 'Next: a conflict for you between two stories is settled by the second to land, once the first is on the trunk (`merge-trunk`): keep off its files when the rows allow it, else record which story lands first as a decision of the report.',
58
+ ];
59
+ }
60
+ return crossings.some((crossing) => crossing.files.length > 0 || crossing.contexts.length > 0)
61
+ ? [
62
+ 'Next: no conflict yet; read the rows and the design review of the other story before changing what both change, and keep off its aggregates when the rows allow it.',
63
+ ]
64
+ : [];
65
+ }
66
+ //# sourceMappingURL=format-stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-stories.js","sourceRoot":"","sources":["../../src/stories/format-stories.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAM7B,yFAAyF;AACzF,MAAM,UAAU,aAAa,CAAC,IAAiB,EAAE,GAAW;IAC1D,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,oGAAoG,CAAC;IAC9G,CAAC;IAED,OAAO;QACL,iBAAiB,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,yBAAyB,IAAI,CAAC,IAAI,EAAE,kBAAkB,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,uCAAuC;QACtQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;QAC5D,EAAE;QACF,GAAG,cAAc,CAAC,IAAI,CAAC;QACvB,GAAG,SAAS,CAAC,IAAI,CAAC;KACnB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAS,SAAS,CAAC,KAAiB,EAAE,GAAW;IAC/C,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAA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,EAAE,OAAO,EAAe;IACjD,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE,KAAK,CAAC;IAEnE,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;QACrD,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,gHAAgH,KAAK,CAAC,GAAG,KAAK;SAC/H,CAAC;AACR,CAAC;AAED,SAAS,cAAc,CAAC,EAAE,SAAS,EAAe;IAChD,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3E,OAAO;YACL,4OAA4O;SAC7O,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5F,CAAC,CAAC;YACE,qKAAqK;SACtK;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { StoryGate } from './story-gate.js';
2
+ import type { StoryPhase } from './story-phase.js';
3
+ /** The phases of a story as text: one line each, then the next step and, when asked, the gate. */
4
+ export declare function formatStoryPhases(story: string, phases: readonly StoryPhase[], gate: StoryGate | undefined): string;
5
+ //# sourceMappingURL=format-story-phases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-story-phases.d.ts","sourceRoot":"","sources":["../../src/stories/format-story-phases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,kGAAkG;AAClG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAYnH"}
@@ -0,0 +1,14 @@
1
+ /** The phases of a story as text: one line each, then the next step and, when asked, the gate. */
2
+ export function formatStoryPhases(story, phases, gate) {
3
+ const next = phases.find((phase) => !phase.met);
4
+ const asked = gate === undefined ? [] : phases.filter((phase) => gate === 'close' || phase.gate === 'build');
5
+ const width = Math.max(...phases.map((phase) => phase.title.length));
6
+ return [
7
+ story,
8
+ ...phases.map((phase) => ` [${phase.met ? 'x' : ' '}] ${phase.title.padEnd(width)} ${phase.detail}`),
9
+ '',
10
+ next === undefined ? 'Next: nothing, the story is ready for its pull request.' : `Next: ${next.next}`,
11
+ ...(gate === undefined ? [] : [`gate ${gate}: ${asked.every((phase) => phase.met) ? 'met' : 'not met'}`]),
12
+ ].join('\n');
13
+ }
14
+ //# sourceMappingURL=format-story-phases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-story-phases.js","sourceRoot":"","sources":["../../src/stories/format-story-phases.ts"],"names":[],"mappings":"AAGA,kGAAkG;AAClG,MAAM,UAAU,iBAAiB,CAAC,KAAa,EAAE,MAA6B,EAAE,IAA2B;IACzG,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;IAC7G,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAErE,OAAO;QACL,KAAK;QACL,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;QACtG,EAAE;QACF,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,yDAAyD,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE;QACrG,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;KAC1G,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Resolution } from '../merge/resolution.js';
2
+ /** What merging one branch into another would leave now, computed without touching a working tree. */
3
+ export interface MergeForecast {
4
+ /** The branch merged in: the trunk, or the branch of another story. */
5
+ readonly ref: string;
6
+ /** The commits of `ref` the branch it is merged into does not hold. */
7
+ readonly behind: number;
8
+ /** The conflicted paths `merge-trunk` settles: derived files, rows of slices.md, registries, the lockfile. */
9
+ readonly settled: readonly ForecastPath[];
10
+ /** The conflicted paths left to a person. */
11
+ readonly byHand: readonly ForecastPath[];
12
+ }
13
+ /** One conflicted path of a forecast, relative to the top of the repository, with its class. */
14
+ export interface ForecastPath {
15
+ readonly file: string;
16
+ readonly kind: Resolution['kind'];
17
+ }
18
+ //# sourceMappingURL=merge-forecast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-forecast.d.ts","sourceRoot":"","sources":["../../src/stories/merge-forecast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,sGAAsG;AACtG,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;CAC1C;AAED,gGAAgG;AAChG,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=merge-forecast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-forecast.js","sourceRoot":"","sources":["../../src/stories/merge-forecast.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { OpenStory } from './open-story.js';
2
+ /**
3
+ * Each story open in a worktree of the repository, with the contexts its rows name in that
4
+ * worktree: where two sessions are about to change the same contexts. `prefix` is the path of the
5
+ * project inside its repository.
6
+ */
7
+ export declare function openStories(root: string, prefix: string): OpenStory[];
8
+ //# sourceMappingURL=open-stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-stories.d.ts","sourceRoot":"","sources":["../../src/stories/open-stories.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,CAuBrE"}
@@ -0,0 +1,31 @@
1
+ import path from 'node:path';
2
+ import { storyOfRow } from '../acceptance/story-of-row.js';
3
+ import { readSlices } from '../progress/read-slices.js';
4
+ import { listWorktrees } from '../worker/list-worktrees.js';
5
+ import { Workspace } from '../workspace/index.js';
6
+ import { readStoryPlace } from './read-story-place.js';
7
+ /**
8
+ * Each story open in a worktree of the repository, with the contexts its rows name in that
9
+ * worktree: where two sessions are about to change the same contexts. `prefix` is the path of the
10
+ * project inside its repository.
11
+ */
12
+ export function openStories(root, prefix) {
13
+ return listWorktrees(root).flatMap((worktree) => {
14
+ const inside = path.join(worktree.path, prefix);
15
+ const place = readStoryPlace(inside);
16
+ if (place === undefined) {
17
+ return [];
18
+ }
19
+ const rows = (readSlices(new Workspace(inside, false)) ?? []).filter((row) => storyOfRow(row.id).toLowerCase() === place.story.toLowerCase());
20
+ return [
21
+ {
22
+ story: place.story,
23
+ worktree: inside,
24
+ base: place.base,
25
+ ...(worktree.branch === undefined ? {} : { branch: worktree.branch }),
26
+ contexts: [...new Set(rows.map((row) => row.context))].sort(),
27
+ },
28
+ ];
29
+ });
30
+ }
31
+ //# sourceMappingURL=open-stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-stories.js","sourceRoot":"","sources":["../../src/stories/open-stories.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,MAAc;IACtD,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QAErC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAClE,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CACxE,CAAC;QAEF,OAAO;YACL;gBACE,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,QAAQ,EAAE,MAAM;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACrE,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;aAC9D;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { Config } from '../config/index.js';
2
+ import type { StoryScope } from './story-scope.js';
3
+ /** What the caller asks for one story. */
4
+ export interface StoryRequest {
5
+ readonly story: string;
6
+ /** The worktree directory, relative to the project root; by default `.worktrees/<story>` in the project of the main checkout. */
7
+ readonly worktree?: string;
8
+ /** By default `story/<story>`, in lower case. */
9
+ readonly branch?: string;
10
+ /** The ref the branch is cut from and merges back into; by default the branch the current one follows, else the current one. */
11
+ readonly base?: string;
12
+ readonly dryRun: boolean;
13
+ readonly install: boolean;
14
+ }
15
+ /**
16
+ * Gives one story its place, where one session takes it to its pull request while other sessions
17
+ * take other stories: a git worktree on its own branch cut from the base, its dependencies
18
+ * installed, and `.ddd-ts-kit/story.json`. The worktree of a story already open is kept, and the
19
+ * story resumes there; the story open in another worktree is refused, so that two sessions never
20
+ * take the same one. Names the other open stories and the contexts they change.
21
+ */
22
+ export declare function openStoryScope(root: string, config: Config, request: StoryRequest): StoryScope;
23
+ //# sourceMappingURL=open-story-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-story-scope.d.ts","sourceRoot":"","sources":["../../src/stories/open-story-scope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAajD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAKnD,0CAA0C;AAC1C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iIAAiI;IACjI,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gIAAgI;IAChI,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,UAAU,CAgC9F"}
@@ -0,0 +1,86 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { CliError } from '../cli-error.js';
4
+ import { runGit } from '../commit/run-git.js';
5
+ import { addWorktree } from '../worker/add-worktree.js';
6
+ import { baseOf } from '../worker/base-of.js';
7
+ import { ensureContainsBase } from '../worker/ensure-contains-base.js';
8
+ import { installDependencies } from '../worker/install-dependencies.js';
9
+ import { isWorktree } from '../worker/is-worktree.js';
10
+ import { installNotes } from '../worker/install-notes.js';
11
+ import { repositoryPrefix } from '../worker/repository-prefix.js';
12
+ import { upstreamOf } from '../worker/upstream-of.js';
13
+ import { worktreeOf } from '../worker/worktree-of.js';
14
+ import { openStories } from './open-stories.js';
15
+ import { readStoryPlace } from './read-story-place.js';
16
+ import { STORY_SCOPE_FILE } from './story-scope-file.js';
17
+ const STORY = /^[A-Za-z0-9][A-Za-z0-9-]*$/;
18
+ /**
19
+ * Gives one story its place, where one session takes it to its pull request while other sessions
20
+ * take other stories: a git worktree on its own branch cut from the base, its dependencies
21
+ * installed, and `.ddd-ts-kit/story.json`. The worktree of a story already open is kept, and the
22
+ * story resumes there; the story open in another worktree is refused, so that two sessions never
23
+ * take the same one. Names the other open stories and the contexts they change.
24
+ */
25
+ export function openStoryScope(root, config, request) {
26
+ const story = storyNamed(request.story);
27
+ const prefix = repositoryPrefix(root);
28
+ const base = baseOutsideStory(root, config, request.base);
29
+ const { worktree, note } = worktreeOf(root, request.worktree, story.toLowerCase());
30
+ const branch = request.branch ?? `story/${story.toLowerCase()}`;
31
+ const inside = path.join(worktree, prefix);
32
+ const all = openStories(root, prefix);
33
+ refuseOpenElsewhere(all, story, inside);
34
+ const created = !isWorktree(root, worktree);
35
+ if (!created) {
36
+ ensureContainsBase(worktree, runGit(worktree, ['branch', '--show-current'])?.trim() || 'HEAD', base);
37
+ }
38
+ const install = request.dryRun
39
+ ? undefined
40
+ : prepare(root, { worktree, inside, created, install: request.install, story, base, branch, config });
41
+ return {
42
+ story,
43
+ dryRun: request.dryRun,
44
+ worktree: inside,
45
+ branch,
46
+ base,
47
+ created,
48
+ ...(install === undefined ? {} : { install }),
49
+ others: all.filter((open) => open.story.toLowerCase() !== story.toLowerCase()),
50
+ notes: [...(note === undefined ? [] : [note]), ...installNotes(inside, config, install)],
51
+ };
52
+ }
53
+ function storyNamed(story) {
54
+ if (!STORY.test(story)) {
55
+ 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`.');
56
+ }
57
+ return story;
58
+ }
59
+ /** The base, which is never the branch of another story: a story is cut from the trunk. */
60
+ function baseOutsideStory(root, config, base) {
61
+ const open = readStoryPlace(root);
62
+ if (base === undefined && open !== undefined) {
63
+ throw new CliError(`${root} is the worktree of the story ${open.story}: its branch would be the base of the new one.`, 'Run story-scope from the checkout of the trunk, or name the base: `--base origin/main`.');
64
+ }
65
+ return baseOf(root, config, base ?? upstreamOf(root));
66
+ }
67
+ function refuseOpenElsewhere(open, story, inside) {
68
+ const elsewhere = open.find((other) => other.story.toLowerCase() === story.toLowerCase() && path.resolve(other.worktree) !== path.resolve(inside));
69
+ if (elsewhere !== undefined) {
70
+ throw new CliError(`${story} is already open in ${elsewhere.worktree}: another session may be taking it.`, `Resume it there (\`cd ${elsewhere.worktree}\`), or close that worktree first; two sessions never take the same story.`);
71
+ }
72
+ }
73
+ /** The worktree it creates, the story file, then the clean install of a worktree it created, unless refused. */
74
+ function prepare(root, place) {
75
+ const { worktree, inside, created, story, base, branch, config } = place;
76
+ if (created) {
77
+ addWorktree(root, { worktree, branch, base });
78
+ }
79
+ const baseCommit = runGit(root, ['rev-parse', '--verify', '--quiet', `${base}^{commit}`])?.trim();
80
+ const written = { story, base, ...(baseCommit === undefined ? {} : { baseCommit }), branch };
81
+ const file = path.join(inside, STORY_SCOPE_FILE);
82
+ fs.mkdirSync(path.dirname(file), { recursive: true });
83
+ fs.writeFileSync(file, `${JSON.stringify(written, null, 2)}\n`);
84
+ return created && place.install ? installDependencies(inside, config.stack.packageManager) : undefined;
85
+ }
86
+ //# sourceMappingURL=open-story-scope.js.map