ddd-ts-kit 0.25.0 → 0.26.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 (948) hide show
  1. package/CHANGELOG.md +284 -0
  2. package/README.fr.md +405 -18
  3. package/README.md +372 -17
  4. package/dist/check/canonical/context-layers.d.ts +7 -0
  5. package/dist/check/canonical/context-layers.d.ts.map +1 -0
  6. package/dist/check/canonical/context-layers.js +13 -0
  7. package/dist/check/canonical/context-layers.js.map +1 -0
  8. package/dist/check/canonical/first-flaw.d.ts +9 -0
  9. package/dist/check/canonical/first-flaw.d.ts.map +1 -0
  10. package/dist/check/canonical/first-flaw.js +18 -0
  11. package/dist/check/canonical/first-flaw.js.map +1 -0
  12. package/dist/check/canonical/flaw-in-contexts.d.ts +9 -0
  13. package/dist/check/canonical/flaw-in-contexts.d.ts.map +1 -0
  14. package/dist/check/canonical/flaw-in-contexts.js +12 -0
  15. package/dist/check/canonical/flaw-in-contexts.js.map +1 -0
  16. package/dist/check/canonical/is-context-relative.d.ts +3 -0
  17. package/dist/check/canonical/is-context-relative.d.ts.map +1 -0
  18. package/dist/check/canonical/is-context-relative.js +12 -0
  19. package/dist/check/canonical/is-context-relative.js.map +1 -0
  20. package/dist/check/explain/language-docs.js +1 -1
  21. package/dist/check/explain/language-docs.js.map +1 -1
  22. package/dist/check/explain/tree-docs.js +3 -3
  23. package/dist/check/explain/tree-docs.js.map +1 -1
  24. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  25. package/dist/check/fixtures/fixtures.js +2 -0
  26. package/dist/check/fixtures/fixtures.js.map +1 -1
  27. package/dist/check/fixtures/other-language-fixtures.d.ts +3 -0
  28. package/dist/check/fixtures/other-language-fixtures.d.ts.map +1 -0
  29. package/dist/check/fixtures/other-language-fixtures.js +151 -0
  30. package/dist/check/fixtures/other-language-fixtures.js.map +1 -0
  31. package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
  32. package/dist/check/fixtures/tree-fixtures.js +29 -2
  33. package/dist/check/fixtures/tree-fixtures.js.map +1 -1
  34. package/dist/check/language/in-outside-record.d.ts +9 -0
  35. package/dist/check/language/in-outside-record.d.ts.map +1 -0
  36. package/dist/check/language/in-outside-record.js +12 -0
  37. package/dist/check/language/in-outside-record.js.map +1 -0
  38. package/dist/check/language/is-outside-place.d.ts +4 -0
  39. package/dist/check/language/is-outside-place.d.ts.map +1 -0
  40. package/dist/check/language/is-outside-place.js +7 -0
  41. package/dist/check/language/is-outside-place.js.map +1 -0
  42. package/dist/check/language/other-language-of.d.ts +12 -0
  43. package/dist/check/language/other-language-of.d.ts.map +1 -0
  44. package/dist/check/language/other-language-of.js +46 -0
  45. package/dist/check/language/other-language-of.js.map +1 -0
  46. package/dist/check/language/record-arguments.d.ts +6 -0
  47. package/dist/check/language/record-arguments.d.ts.map +1 -0
  48. package/dist/check/language/record-arguments.js +28 -0
  49. package/dist/check/language/record-arguments.js.map +1 -0
  50. package/dist/check/language/type-declarations.d.ts +10 -0
  51. package/dist/check/language/type-declarations.d.ts.map +1 -0
  52. package/dist/check/language/type-declarations.js +37 -0
  53. package/dist/check/language/type-declarations.js.map +1 -0
  54. package/dist/check/language/type-root.d.ts +7 -0
  55. package/dist/check/language/type-root.d.ts.map +1 -0
  56. package/dist/check/language/type-root.js +43 -0
  57. package/dist/check/language/type-root.js.map +1 -0
  58. package/dist/check/language/typed-by-other-language.d.ts +9 -0
  59. package/dist/check/language/typed-by-other-language.d.ts.map +1 -0
  60. package/dist/check/language/typed-by-other-language.js +73 -0
  61. package/dist/check/language/typed-by-other-language.js.map +1 -0
  62. package/dist/check/project/markdown-under.d.ts +3 -0
  63. package/dist/check/project/markdown-under.d.ts.map +1 -0
  64. package/dist/check/project/markdown-under.js +20 -0
  65. package/dist/check/project/markdown-under.js.map +1 -0
  66. package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
  67. package/dist/check/rules/language-declared-vocabulary.js +28 -3
  68. package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
  69. package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
  70. package/dist/check/rules/tree-documented-paths.js +14 -30
  71. package/dist/check/rules/tree-documented-paths.js.map +1 -1
  72. package/dist/check/text/annotation-before.d.ts +7 -0
  73. package/dist/check/text/annotation-before.d.ts.map +1 -0
  74. package/dist/check/text/annotation-before.js +30 -0
  75. package/dist/check/text/annotation-before.js.map +1 -0
  76. package/dist/check/text/type-at.d.ts +7 -0
  77. package/dist/check/text/type-at.d.ts.map +1 -0
  78. package/dist/check/text/type-at.js +22 -0
  79. package/dist/check/text/type-at.js.map +1 -0
  80. package/dist/check/text/type-brackets.d.ts +6 -0
  81. package/dist/check/text/type-brackets.d.ts.map +1 -0
  82. package/dist/check/text/type-brackets.js +11 -0
  83. package/dist/check/text/type-brackets.js.map +1 -0
  84. package/dist/check/text/type-closing.d.ts +3 -0
  85. package/dist/check/text/type-closing.d.ts.map +1 -0
  86. package/dist/check/text/type-closing.js +13 -0
  87. package/dist/check/text/type-closing.js.map +1 -0
  88. package/dist/citations/candidates-of.d.ts +16 -0
  89. package/dist/citations/candidates-of.d.ts.map +1 -0
  90. package/dist/citations/candidates-of.js +51 -0
  91. package/dist/citations/candidates-of.js.map +1 -0
  92. package/dist/citations/citation-line.d.ts +4 -0
  93. package/dist/citations/citation-line.d.ts.map +1 -0
  94. package/dist/citations/citation-line.js +36 -0
  95. package/dist/citations/citation-line.js.map +1 -0
  96. package/dist/citations/citations-of.d.ts +14 -0
  97. package/dist/citations/citations-of.d.ts.map +1 -0
  98. package/dist/citations/citations-of.js +21 -0
  99. package/dist/citations/citations-of.js.map +1 -0
  100. package/dist/citations/cited-name.d.ts +12 -0
  101. package/dist/citations/cited-name.d.ts.map +1 -0
  102. package/dist/citations/cited-name.js +2 -0
  103. package/dist/citations/cited-name.js.map +1 -0
  104. package/dist/citations/cited-names.d.ts +14 -0
  105. package/dist/citations/cited-names.d.ts.map +1 -0
  106. package/dist/citations/cited-names.js +71 -0
  107. package/dist/citations/cited-names.js.map +1 -0
  108. package/dist/citations/cited-parts.d.ts +19 -0
  109. package/dist/citations/cited-parts.d.ts.map +1 -0
  110. package/dist/citations/cited-parts.js +30 -0
  111. package/dist/citations/cited-parts.js.map +1 -0
  112. package/dist/citations/cited-removals.d.ts +8 -0
  113. package/dist/citations/cited-removals.d.ts.map +1 -0
  114. package/dist/citations/cited-removals.js +13 -0
  115. package/dist/citations/cited-removals.js.map +1 -0
  116. package/dist/citations/citing.d.ts +7 -0
  117. package/dist/citations/citing.d.ts.map +1 -0
  118. package/dist/citations/citing.js +2 -0
  119. package/dist/citations/citing.js.map +1 -0
  120. package/dist/citations/declaration.d.ts +6 -0
  121. package/dist/citations/declaration.d.ts.map +1 -0
  122. package/dist/citations/declaration.js +2 -0
  123. package/dist/citations/declaration.js.map +1 -0
  124. package/dist/citations/design-of.d.ts +9 -0
  125. package/dist/citations/design-of.d.ts.map +1 -0
  126. package/dist/citations/design-of.js +8 -0
  127. package/dist/citations/design-of.js.map +1 -0
  128. package/dist/citations/document-part.d.ts +17 -0
  129. package/dist/citations/document-part.d.ts.map +1 -0
  130. package/dist/citations/document-part.js +2 -0
  131. package/dist/citations/document-part.js.map +1 -0
  132. package/dist/citations/evidence.d.ts +14 -0
  133. package/dist/citations/evidence.d.ts.map +1 -0
  134. package/dist/citations/evidence.js +2 -0
  135. package/dist/citations/evidence.js.map +1 -0
  136. package/dist/citations/format-citations.d.ts +4 -0
  137. package/dist/citations/format-citations.d.ts.map +1 -0
  138. package/dist/citations/format-citations.js +23 -0
  139. package/dist/citations/format-citations.js.map +1 -0
  140. package/dist/citations/format-removals.d.ts +4 -0
  141. package/dist/citations/format-removals.d.ts.map +1 -0
  142. package/dist/citations/format-removals.js +15 -0
  143. package/dist/citations/format-removals.js.map +1 -0
  144. package/dist/citations/history-of.d.ts +8 -0
  145. package/dist/citations/history-of.d.ts.map +1 -0
  146. package/dist/citations/history-of.js +59 -0
  147. package/dist/citations/history-of.js.map +1 -0
  148. package/dist/citations/history.d.ts +23 -0
  149. package/dist/citations/history.d.ts.map +1 -0
  150. package/dist/citations/history.js +2 -0
  151. package/dist/citations/history.js.map +1 -0
  152. package/dist/citations/index-at-ref.d.ts +7 -0
  153. package/dist/citations/index-at-ref.d.ts.map +1 -0
  154. package/dist/citations/index-at-ref.js +22 -0
  155. package/dist/citations/index-at-ref.js.map +1 -0
  156. package/dist/citations/index-of-project.d.ts +5 -0
  157. package/dist/citations/index-of-project.d.ts.map +1 -0
  158. package/dist/citations/index-of-project.js +12 -0
  159. package/dist/citations/index-of-project.js.map +1 -0
  160. package/dist/citations/is-test-file.d.ts +3 -0
  161. package/dist/citations/is-test-file.d.ts.map +1 -0
  162. package/dist/citations/is-test-file.js +5 -0
  163. package/dist/citations/is-test-file.js.map +1 -0
  164. package/dist/citations/judge-citation.d.ts +7 -0
  165. package/dist/citations/judge-citation.d.ts.map +1 -0
  166. package/dist/citations/judge-citation.js +11 -0
  167. package/dist/citations/judge-citation.js.map +1 -0
  168. package/dist/citations/judge-member.d.ts +10 -0
  169. package/dist/citations/judge-member.d.ts.map +1 -0
  170. package/dist/citations/judge-member.js +39 -0
  171. package/dist/citations/judge-member.js.map +1 -0
  172. package/dist/citations/judge-path.d.ts +10 -0
  173. package/dist/citations/judge-path.d.ts.map +1 -0
  174. package/dist/citations/judge-path.js +38 -0
  175. package/dist/citations/judge-path.js.map +1 -0
  176. package/dist/citations/judge-symbol.d.ts +10 -0
  177. package/dist/citations/judge-symbol.d.ts.map +1 -0
  178. package/dist/citations/judge-symbol.js +29 -0
  179. package/dist/citations/judge-symbol.js.map +1 -0
  180. package/dist/citations/judged-citations.d.ts +17 -0
  181. package/dist/citations/judged-citations.d.ts.map +1 -0
  182. package/dist/citations/judged-citations.js +24 -0
  183. package/dist/citations/judged-citations.js.map +1 -0
  184. package/dist/citations/line-time.d.ts +7 -0
  185. package/dist/citations/line-time.d.ts.map +1 -0
  186. package/dist/citations/line-time.js +12 -0
  187. package/dist/citations/line-time.js.map +1 -0
  188. package/dist/citations/lines-of.d.ts +3 -0
  189. package/dist/citations/lines-of.d.ts.map +1 -0
  190. package/dist/citations/lines-of.js +5 -0
  191. package/dist/citations/lines-of.js.map +1 -0
  192. package/dist/citations/mentioned-rows.d.ts +7 -0
  193. package/dist/citations/mentioned-rows.d.ts.map +1 -0
  194. package/dist/citations/mentioned-rows.js +21 -0
  195. package/dist/citations/mentioned-rows.js.map +1 -0
  196. package/dist/citations/name-index-of.d.ts +5 -0
  197. package/dist/citations/name-index-of.d.ts.map +1 -0
  198. package/dist/citations/name-index-of.js +13 -0
  199. package/dist/citations/name-index-of.js.map +1 -0
  200. package/dist/citations/name-index.d.ts +8 -0
  201. package/dist/citations/name-index.d.ts.map +1 -0
  202. package/dist/citations/name-index.js +2 -0
  203. package/dist/citations/name-index.js.map +1 -0
  204. package/dist/citations/names-of-file.d.ts +7 -0
  205. package/dist/citations/names-of-file.d.ts.map +1 -0
  206. package/dist/citations/names-of-file.js +18 -0
  207. package/dist/citations/names-of-file.js.map +1 -0
  208. package/dist/citations/open-rows.d.ts +4 -0
  209. package/dist/citations/open-rows.d.ts.map +1 -0
  210. package/dist/citations/open-rows.js +9 -0
  211. package/dist/citations/open-rows.js.map +1 -0
  212. package/dist/citations/parts-of-document.d.ts +14 -0
  213. package/dist/citations/parts-of-document.d.ts.map +1 -0
  214. package/dist/citations/parts-of-document.js +51 -0
  215. package/dist/citations/parts-of-document.js.map +1 -0
  216. package/dist/citations/parts-of-slices.d.ts +13 -0
  217. package/dist/citations/parts-of-slices.d.ts.map +1 -0
  218. package/dist/citations/parts-of-slices.js +40 -0
  219. package/dist/citations/parts-of-slices.js.map +1 -0
  220. package/dist/citations/ref-notes.d.ts +6 -0
  221. package/dist/citations/ref-notes.d.ts.map +1 -0
  222. package/dist/citations/ref-notes.js +27 -0
  223. package/dist/citations/ref-notes.js.map +1 -0
  224. package/dist/citations/removal-naming.d.ts +9 -0
  225. package/dist/citations/removal-naming.d.ts.map +1 -0
  226. package/dist/citations/removal-naming.js +32 -0
  227. package/dist/citations/removal-naming.js.map +1 -0
  228. package/dist/citations/removals-at-ref.d.ts +8 -0
  229. package/dist/citations/removals-at-ref.d.ts.map +1 -0
  230. package/dist/citations/removals-at-ref.js +24 -0
  231. package/dist/citations/removals-at-ref.js.map +1 -0
  232. package/dist/citations/removals-since.d.ts +8 -0
  233. package/dist/citations/removals-since.d.ts.map +1 -0
  234. package/dist/citations/removals-since.js +16 -0
  235. package/dist/citations/removals-since.js.map +1 -0
  236. package/dist/citations/removed-by-of.d.ts +5 -0
  237. package/dist/citations/removed-by-of.d.ts.map +1 -0
  238. package/dist/citations/removed-by-of.js +6 -0
  239. package/dist/citations/removed-by-of.js.map +1 -0
  240. package/dist/citations/role-suffix-of.d.ts +8 -0
  241. package/dist/citations/role-suffix-of.d.ts.map +1 -0
  242. package/dist/citations/role-suffix-of.js +28 -0
  243. package/dist/citations/role-suffix-of.js.map +1 -0
  244. package/dist/citations/row-documents.d.ts +10 -0
  245. package/dist/citations/row-documents.d.ts.map +1 -0
  246. package/dist/citations/row-documents.js +42 -0
  247. package/dist/citations/row-documents.js.map +1 -0
  248. package/dist/citations/same-stem-names.d.ts +11 -0
  249. package/dist/citations/same-stem-names.d.ts.map +1 -0
  250. package/dist/citations/same-stem-names.js +41 -0
  251. package/dist/citations/same-stem-names.js.map +1 -0
  252. package/dist/citations/select-parts.d.ts +9 -0
  253. package/dist/citations/select-parts.d.ts.map +1 -0
  254. package/dist/citations/select-parts.js +11 -0
  255. package/dist/citations/select-parts.js.map +1 -0
  256. package/dist/citations/stale-citation.d.ts +39 -0
  257. package/dist/citations/stale-citation.d.ts.map +1 -0
  258. package/dist/citations/stale-citation.js +2 -0
  259. package/dist/citations/stale-citation.js.map +1 -0
  260. package/dist/citations/stale-names-at.d.ts +26 -0
  261. package/dist/citations/stale-names-at.d.ts.map +1 -0
  262. package/dist/citations/stale-names-at.js +31 -0
  263. package/dist/citations/stale-names-at.js.map +1 -0
  264. package/dist/citations/stale-names-since.d.ts +10 -0
  265. package/dist/citations/stale-names-since.d.ts.map +1 -0
  266. package/dist/citations/stale-names-since.js +26 -0
  267. package/dist/citations/stale-names-since.js.map +1 -0
  268. package/dist/citations/text-units.d.ts +7 -0
  269. package/dist/citations/text-units.d.ts.map +1 -0
  270. package/dist/citations/text-units.js +31 -0
  271. package/dist/citations/text-units.js.map +1 -0
  272. package/dist/commands/cited.d.ts +8 -0
  273. package/dist/commands/cited.d.ts.map +1 -0
  274. package/dist/commands/cited.js +70 -0
  275. package/dist/commands/cited.js.map +1 -0
  276. package/dist/commands/doctor.d.ts +1 -1
  277. package/dist/commands/doctor.d.ts.map +1 -1
  278. package/dist/commands/doctor.js +7 -3
  279. package/dist/commands/doctor.js.map +1 -1
  280. package/dist/commands/merge-trunk.d.ts +9 -0
  281. package/dist/commands/merge-trunk.d.ts.map +1 -0
  282. package/dist/commands/merge-trunk.js +58 -0
  283. package/dist/commands/merge-trunk.js.map +1 -0
  284. package/dist/commands/rows-option.d.ts +5 -0
  285. package/dist/commands/rows-option.d.ts.map +1 -0
  286. package/dist/commands/rows-option.js +13 -0
  287. package/dist/commands/rows-option.js.map +1 -0
  288. package/dist/commands/status.d.ts.map +1 -1
  289. package/dist/commands/status.js +3 -1
  290. package/dist/commands/status.js.map +1 -1
  291. package/dist/commands/story-check.d.ts +9 -0
  292. package/dist/commands/story-check.d.ts.map +1 -0
  293. package/dist/commands/story-check.js +21 -0
  294. package/dist/commands/story-check.js.map +1 -0
  295. package/dist/commands/verify-merge.d.ts +9 -0
  296. package/dist/commands/verify-merge.d.ts.map +1 -0
  297. package/dist/commands/verify-merge.js +33 -0
  298. package/dist/commands/verify-merge.js.map +1 -0
  299. package/dist/commands/worker-scope.d.ts +4 -1
  300. package/dist/commands/worker-scope.d.ts.map +1 -1
  301. package/dist/commands/worker-scope.js +17 -14
  302. package/dist/commands/worker-scope.js.map +1 -1
  303. package/dist/derived/is-derived.d.ts +8 -0
  304. package/dist/derived/is-derived.d.ts.map +1 -0
  305. package/dist/derived/is-derived.js +18 -0
  306. package/dist/derived/is-derived.js.map +1 -0
  307. package/dist/doctor/diagnose.d.ts +2 -2
  308. package/dist/doctor/diagnose.d.ts.map +1 -1
  309. package/dist/doctor/diagnose.js +4 -2
  310. package/dist/doctor/diagnose.js.map +1 -1
  311. package/dist/doctor/doctor-finding.d.ts +3 -2
  312. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  313. package/dist/doctor/format-diagnosis.d.ts +2 -1
  314. package/dist/doctor/format-diagnosis.d.ts.map +1 -1
  315. package/dist/doctor/format-diagnosis.js +31 -6
  316. package/dist/doctor/format-diagnosis.js.map +1 -1
  317. package/dist/doctor/hook-findings.d.ts +8 -0
  318. package/dist/doctor/hook-findings.d.ts.map +1 -0
  319. package/dist/doctor/hook-findings.js +54 -0
  320. package/dist/doctor/hook-findings.js.map +1 -0
  321. package/dist/help/notes.d.ts +1 -1
  322. package/dist/help/notes.d.ts.map +1 -1
  323. package/dist/help/notes.js +94 -10
  324. package/dist/help/notes.js.map +1 -1
  325. package/dist/help/usage.d.ts +1 -1
  326. package/dist/help/usage.d.ts.map +1 -1
  327. package/dist/help/usage.js +7 -1
  328. package/dist/help/usage.js.map +1 -1
  329. package/dist/init/agent-permissions.d.ts.map +1 -1
  330. package/dist/init/agent-permissions.js +6 -0
  331. package/dist/init/agent-permissions.js.map +1 -1
  332. package/dist/init/manifest/versions.js +24 -24
  333. package/dist/merge/abort-merge.d.ts +6 -0
  334. package/dist/merge/abort-merge.d.ts.map +1 -0
  335. package/dist/merge/abort-merge.js +31 -0
  336. package/dist/merge/abort-merge.js.map +1 -0
  337. package/dist/merge/accept-in-merge-message.d.ts +7 -0
  338. package/dist/merge/accept-in-merge-message.d.ts.map +1 -0
  339. package/dist/merge/accept-in-merge-message.js +15 -0
  340. package/dist/merge/accept-in-merge-message.js.map +1 -0
  341. package/dist/merge/apply-resolutions.d.ts +8 -0
  342. package/dist/merge/apply-resolutions.d.ts.map +1 -0
  343. package/dist/merge/apply-resolutions.js +30 -0
  344. package/dist/merge/apply-resolutions.js.map +1 -0
  345. package/dist/merge/base-point.d.ts +34 -0
  346. package/dist/merge/base-point.d.ts.map +1 -0
  347. package/dist/merge/base-point.js +2 -0
  348. package/dist/merge/base-point.js.map +1 -0
  349. package/dist/merge/base-query.d.ts +14 -0
  350. package/dist/merge/base-query.d.ts.map +1 -0
  351. package/dist/merge/base-query.js +2 -0
  352. package/dist/merge/base-query.js.map +1 -0
  353. package/dist/merge/classify-conflict.d.ts +15 -0
  354. package/dist/merge/classify-conflict.d.ts.map +1 -0
  355. package/dist/merge/classify-conflict.js +33 -0
  356. package/dist/merge/classify-conflict.js.map +1 -0
  357. package/dist/merge/commit-merge.d.ts +15 -0
  358. package/dist/merge/commit-merge.d.ts.map +1 -0
  359. package/dist/merge/commit-merge.js +48 -0
  360. package/dist/merge/commit-merge.js.map +1 -0
  361. package/dist/merge/conflict-blocks.d.ts +23 -0
  362. package/dist/merge/conflict-blocks.d.ts.map +1 -0
  363. package/dist/merge/conflict-blocks.js +45 -0
  364. package/dist/merge/conflict-blocks.js.map +1 -0
  365. package/dist/merge/conflicted-path.d.ts +14 -0
  366. package/dist/merge/conflicted-path.d.ts.map +1 -0
  367. package/dist/merge/conflicted-path.js +2 -0
  368. package/dist/merge/conflicted-path.js.map +1 -0
  369. package/dist/merge/conflicted-paths.d.ts +9 -0
  370. package/dist/merge/conflicted-paths.d.ts.map +1 -0
  371. package/dist/merge/conflicted-paths.js +43 -0
  372. package/dist/merge/conflicted-paths.js.map +1 -0
  373. package/dist/merge/continue-merge.d.ts +16 -0
  374. package/dist/merge/continue-merge.d.ts.map +1 -0
  375. package/dist/merge/continue-merge.js +119 -0
  376. package/dist/merge/continue-merge.js.map +1 -0
  377. package/dist/merge/ensure-mergeable.d.ts +7 -0
  378. package/dist/merge/ensure-mergeable.d.ts.map +1 -0
  379. package/dist/merge/ensure-mergeable.js +42 -0
  380. package/dist/merge/ensure-mergeable.js.map +1 -0
  381. package/dist/merge/for-you-entry.d.ts +20 -0
  382. package/dist/merge/for-you-entry.d.ts.map +1 -0
  383. package/dist/merge/for-you-entry.js +47 -0
  384. package/dist/merge/for-you-entry.js.map +1 -0
  385. package/dist/merge/format-merge-report.d.ts +9 -0
  386. package/dist/merge/format-merge-report.d.ts.map +1 -0
  387. package/dist/merge/format-merge-report.js +105 -0
  388. package/dist/merge/format-merge-report.js.map +1 -0
  389. package/dist/merge/git-path.d.ts +3 -0
  390. package/dist/merge/git-path.d.ts.map +1 -0
  391. package/dist/merge/git-path.js +7 -0
  392. package/dist/merge/git-path.js.map +1 -0
  393. package/dist/merge/git-process.d.ts +14 -0
  394. package/dist/merge/git-process.d.ts.map +1 -0
  395. package/dist/merge/git-process.js +17 -0
  396. package/dist/merge/git-process.js.map +1 -0
  397. package/dist/merge/git-version.d.ts +9 -0
  398. package/dist/merge/git-version.d.ts.map +1 -0
  399. package/dist/merge/git-version.js +17 -0
  400. package/dist/merge/git-version.js.map +1 -0
  401. package/dist/merge/land-drizzle.d.ts +15 -0
  402. package/dist/merge/land-drizzle.d.ts.map +1 -0
  403. package/dist/merge/land-drizzle.js +34 -0
  404. package/dist/merge/land-drizzle.js.map +1 -0
  405. package/dist/merge/landed-commit.d.ts +20 -0
  406. package/dist/merge/landed-commit.d.ts.map +1 -0
  407. package/dist/merge/landed-commit.js +58 -0
  408. package/dist/merge/landed-commit.js.map +1 -0
  409. package/dist/merge/landed-point.d.ts +9 -0
  410. package/dist/merge/landed-point.d.ts.map +1 -0
  411. package/dist/merge/landed-point.js +80 -0
  412. package/dist/merge/landed-point.js.map +1 -0
  413. package/dist/merge/lost/changed-paths.d.ts +7 -0
  414. package/dist/merge/lost/changed-paths.d.ts.map +1 -0
  415. package/dist/merge/lost/changed-paths.js +25 -0
  416. package/dist/merge/lost/changed-paths.js.map +1 -0
  417. package/dist/merge/lost/collapsed-files.d.ts +10 -0
  418. package/dist/merge/lost/collapsed-files.d.ts.map +1 -0
  419. package/dist/merge/lost/collapsed-files.js +26 -0
  420. package/dist/merge/lost/collapsed-files.js.map +1 -0
  421. package/dist/merge/lost/commit-of.d.ts +3 -0
  422. package/dist/merge/lost/commit-of.d.ts.map +1 -0
  423. package/dist/merge/lost/commit-of.js +6 -0
  424. package/dist/merge/lost/commit-of.js.map +1 -0
  425. package/dist/merge/lost/conflict-markers.d.ts +10 -0
  426. package/dist/merge/lost/conflict-markers.d.ts.map +1 -0
  427. package/dist/merge/lost/conflict-markers.js +32 -0
  428. package/dist/merge/lost/conflict-markers.js.map +1 -0
  429. package/dist/merge/lost/deleted-specs.d.ts +5 -0
  430. package/dist/merge/lost/deleted-specs.d.ts.map +1 -0
  431. package/dist/merge/lost/deleted-specs.js +22 -0
  432. package/dist/merge/lost/deleted-specs.js.map +1 -0
  433. package/dist/merge/lost/finding-sections.d.ts +11 -0
  434. package/dist/merge/lost/finding-sections.d.ts.map +1 -0
  435. package/dist/merge/lost/finding-sections.js +46 -0
  436. package/dist/merge/lost/finding-sections.js.map +1 -0
  437. package/dist/merge/lost/format-merge-verification.d.ts +7 -0
  438. package/dist/merge/lost/format-merge-verification.d.ts.map +1 -0
  439. package/dist/merge/lost/format-merge-verification.js +45 -0
  440. package/dist/merge/lost/format-merge-verification.js.map +1 -0
  441. package/dist/merge/lost/hunk.d.ts +8 -0
  442. package/dist/merge/lost/hunk.d.ts.map +1 -0
  443. package/dist/merge/lost/hunk.js +2 -0
  444. package/dist/merge/lost/hunk.js.map +1 -0
  445. package/dist/merge/lost/hunks-of.d.ts +4 -0
  446. package/dist/merge/lost/hunks-of.d.ts.map +1 -0
  447. package/dist/merge/lost/hunks-of.js +32 -0
  448. package/dist/merge/lost/hunks-of.js.map +1 -0
  449. package/dist/merge/lost/in-progress-merge.d.ts +8 -0
  450. package/dist/merge/lost/in-progress-merge.d.ts.map +1 -0
  451. package/dist/merge/lost/in-progress-merge.js +49 -0
  452. package/dist/merge/lost/in-progress-merge.js.map +1 -0
  453. package/dist/merge/lost/is-generated-text.d.ts +6 -0
  454. package/dist/merge/lost/is-generated-text.d.ts.map +1 -0
  455. package/dist/merge/lost/is-generated-text.js +10 -0
  456. package/dist/merge/lost/is-generated-text.js.map +1 -0
  457. package/dist/merge/lost/is-line-checked.d.ts +8 -0
  458. package/dist/merge/lost/is-line-checked.d.ts.map +1 -0
  459. package/dist/merge/lost/is-line-checked.js +32 -0
  460. package/dist/merge/lost/is-line-checked.js.map +1 -0
  461. package/dist/merge/lost/kept-rows.d.ts +9 -0
  462. package/dist/merge/lost/kept-rows.d.ts.map +1 -0
  463. package/dist/merge/lost/kept-rows.js +41 -0
  464. package/dist/merge/lost/kept-rows.js.map +1 -0
  465. package/dist/merge/lost/line-counts.d.ts +19 -0
  466. package/dist/merge/lost/line-counts.d.ts.map +1 -0
  467. package/dist/merge/lost/line-counts.js +33 -0
  468. package/dist/merge/lost/line-counts.js.map +1 -0
  469. package/dist/merge/lost/line-findings.d.ts +15 -0
  470. package/dist/merge/lost/line-findings.d.ts.map +1 -0
  471. package/dist/merge/lost/line-findings.js +14 -0
  472. package/dist/merge/lost/line-findings.js.map +1 -0
  473. package/dist/merge/lost/lost-lines.d.ts +12 -0
  474. package/dist/merge/lost/lost-lines.d.ts.map +1 -0
  475. package/dist/merge/lost/lost-lines.js +64 -0
  476. package/dist/merge/lost/lost-lines.js.map +1 -0
  477. package/dist/merge/lost/lost-migrations.d.ts +9 -0
  478. package/dist/merge/lost/lost-migrations.d.ts.map +1 -0
  479. package/dist/merge/lost/lost-migrations.js +51 -0
  480. package/dist/merge/lost/lost-migrations.js.map +1 -0
  481. package/dist/merge/lost/lost-tests.d.ts +10 -0
  482. package/dist/merge/lost/lost-tests.d.ts.map +1 -0
  483. package/dist/merge/lost/lost-tests.js +43 -0
  484. package/dist/merge/lost/lost-tests.js.map +1 -0
  485. package/dist/merge/lost/merge-base-of.d.ts +17 -0
  486. package/dist/merge/lost/merge-base-of.d.ts.map +1 -0
  487. package/dist/merge/lost/merge-base-of.js +31 -0
  488. package/dist/merge/lost/merge-base-of.js.map +1 -0
  489. package/dist/merge/lost/merge-check.d.ts +14 -0
  490. package/dist/merge/lost/merge-check.d.ts.map +1 -0
  491. package/dist/merge/lost/merge-check.js +2 -0
  492. package/dist/merge/lost/merge-check.js.map +1 -0
  493. package/dist/merge/lost/merge-finding.d.ts +27 -0
  494. package/dist/merge/lost/merge-finding.d.ts.map +1 -0
  495. package/dist/merge/lost/merge-finding.js +2 -0
  496. package/dist/merge/lost/merge-finding.js.map +1 -0
  497. package/dist/merge/lost/merge-of-record.d.ts +14 -0
  498. package/dist/merge/lost/merge-of-record.d.ts.map +1 -0
  499. package/dist/merge/lost/merge-of-record.js +36 -0
  500. package/dist/merge/lost/merge-of-record.js.map +1 -0
  501. package/dist/merge/lost/merge-records.d.ts +13 -0
  502. package/dist/merge/lost/merge-records.d.ts.map +1 -0
  503. package/dist/merge/lost/merge-records.js +24 -0
  504. package/dist/merge/lost/merge-records.js.map +1 -0
  505. package/dist/merge/lost/merge-repository-of.d.ts +4 -0
  506. package/dist/merge/lost/merge-repository-of.d.ts.map +1 -0
  507. package/dist/merge/lost/merge-repository-of.js +21 -0
  508. package/dist/merge/lost/merge-repository-of.js.map +1 -0
  509. package/dist/merge/lost/merge-repository.d.ts +10 -0
  510. package/dist/merge/lost/merge-repository.d.ts.map +1 -0
  511. package/dist/merge/lost/merge-repository.js +2 -0
  512. package/dist/merge/lost/merge-repository.js.map +1 -0
  513. package/dist/merge/lost/merge-sides.d.ts +11 -0
  514. package/dist/merge/lost/merge-sides.d.ts.map +1 -0
  515. package/dist/merge/lost/merge-sides.js +2 -0
  516. package/dist/merge/lost/merge-sides.js.map +1 -0
  517. package/dist/merge/lost/merge-to-verify.d.ts +16 -0
  518. package/dist/merge/lost/merge-to-verify.d.ts.map +1 -0
  519. package/dist/merge/lost/merge-to-verify.js +2 -0
  520. package/dist/merge/lost/merge-to-verify.js.map +1 -0
  521. package/dist/merge/lost/merge-verification.d.ts +13 -0
  522. package/dist/merge/lost/merge-verification.d.ts.map +1 -0
  523. package/dist/merge/lost/merge-verification.js +2 -0
  524. package/dist/merge/lost/merge-verification.js.map +1 -0
  525. package/dist/merge/lost/merges-since.d.ts +4 -0
  526. package/dist/merge/lost/merges-since.d.ts.map +1 -0
  527. package/dist/merge/lost/merges-since.js +7 -0
  528. package/dist/merge/lost/merges-since.js.map +1 -0
  529. package/dist/merge/lost/normalized-lines.d.ts +13 -0
  530. package/dist/merge/lost/normalized-lines.d.ts.map +1 -0
  531. package/dist/merge/lost/normalized-lines.js +45 -0
  532. package/dist/merge/lost/normalized-lines.js.map +1 -0
  533. package/dist/merge/lost/ranked-places.d.ts +12 -0
  534. package/dist/merge/lost/ranked-places.d.ts.map +1 -0
  535. package/dist/merge/lost/ranked-places.js +11 -0
  536. package/dist/merge/lost/ranked-places.js.map +1 -0
  537. package/dist/merge/lost/revision-files.d.ts +9 -0
  538. package/dist/merge/lost/revision-files.d.ts.map +1 -0
  539. package/dist/merge/lost/revision-files.js +58 -0
  540. package/dist/merge/lost/revision-files.js.map +1 -0
  541. package/dist/merge/lost/rewritten-in-place.d.ts +12 -0
  542. package/dist/merge/lost/rewritten-in-place.d.ts.map +1 -0
  543. package/dist/merge/lost/rewritten-in-place.js +28 -0
  544. package/dist/merge/lost/rewritten-in-place.js.map +1 -0
  545. package/dist/merge/lost/side-hunks.d.ts +8 -0
  546. package/dist/merge/lost/side-hunks.d.ts.map +1 -0
  547. package/dist/merge/lost/side-hunks.js +18 -0
  548. package/dist/merge/lost/side-hunks.js.map +1 -0
  549. package/dist/merge/lost/since-of.d.ts +7 -0
  550. package/dist/merge/lost/since-of.d.ts.map +1 -0
  551. package/dist/merge/lost/since-of.js +22 -0
  552. package/dist/merge/lost/since-of.js.map +1 -0
  553. package/dist/merge/lost/spec-file.d.ts +3 -0
  554. package/dist/merge/lost/spec-file.d.ts.map +1 -0
  555. package/dist/merge/lost/spec-file.js +3 -0
  556. package/dist/merge/lost/spec-file.js.map +1 -0
  557. package/dist/merge/lost/superseded-lines.d.ts +25 -0
  558. package/dist/merge/lost/superseded-lines.d.ts.map +1 -0
  559. package/dist/merge/lost/superseded-lines.js +53 -0
  560. package/dist/merge/lost/superseded-lines.js.map +1 -0
  561. package/dist/merge/lost/three-way-count.d.ts +18 -0
  562. package/dist/merge/lost/three-way-count.d.ts.map +1 -0
  563. package/dist/merge/lost/three-way-count.js +18 -0
  564. package/dist/merge/lost/three-way-count.js.map +1 -0
  565. package/dist/merge/lost/verify-merge.d.ts +11 -0
  566. package/dist/merge/lost/verify-merge.d.ts.map +1 -0
  567. package/dist/merge/lost/verify-merge.js +95 -0
  568. package/dist/merge/lost/verify-merge.js.map +1 -0
  569. package/dist/merge/lost/verify-merges.d.ts +17 -0
  570. package/dist/merge/lost/verify-merges.d.ts.map +1 -0
  571. package/dist/merge/lost/verify-merges.js +49 -0
  572. package/dist/merge/lost/verify-merges.js.map +1 -0
  573. package/dist/merge/lost-lines-gate.d.ts +9 -0
  574. package/dist/merge/lost-lines-gate.d.ts.map +1 -0
  575. package/dist/merge/lost-lines-gate.js +28 -0
  576. package/dist/merge/lost-lines-gate.js.map +1 -0
  577. package/dist/merge/mentioned-tables.d.ts +3 -0
  578. package/dist/merge/mentioned-tables.d.ts.map +1 -0
  579. package/dist/merge/mentioned-tables.js +13 -0
  580. package/dist/merge/mentioned-tables.js.map +1 -0
  581. package/dist/merge/merge-context.d.ts +15 -0
  582. package/dist/merge/merge-context.d.ts.map +1 -0
  583. package/dist/merge/merge-context.js +14 -0
  584. package/dist/merge/merge-context.js.map +1 -0
  585. package/dist/merge/merge-exclusions.d.ts +8 -0
  586. package/dist/merge/merge-exclusions.d.ts.map +1 -0
  587. package/dist/merge/merge-exclusions.js +27 -0
  588. package/dist/merge/merge-exclusions.js.map +1 -0
  589. package/dist/merge/merge-message.d.ts +17 -0
  590. package/dist/merge/merge-message.d.ts.map +1 -0
  591. package/dist/merge/merge-message.js +16 -0
  592. package/dist/merge/merge-message.js.map +1 -0
  593. package/dist/merge/merge-report.d.ts +81 -0
  594. package/dist/merge/merge-report.d.ts.map +1 -0
  595. package/dist/merge/merge-report.js +2 -0
  596. package/dist/merge/merge-report.js.map +1 -0
  597. package/dist/merge/merge-slices-rows.d.ts +15 -0
  598. package/dist/merge/merge-slices-rows.d.ts.map +1 -0
  599. package/dist/merge/merge-slices-rows.js +111 -0
  600. package/dist/merge/merge-slices-rows.js.map +1 -0
  601. package/dist/merge/merge-state.d.ts +24 -0
  602. package/dist/merge/merge-state.d.ts.map +1 -0
  603. package/dist/merge/merge-state.js +41 -0
  604. package/dist/merge/merge-state.js.map +1 -0
  605. package/dist/merge/merge-steps.d.ts +18 -0
  606. package/dist/merge/merge-steps.d.ts.map +1 -0
  607. package/dist/merge/merge-steps.js +63 -0
  608. package/dist/merge/merge-steps.js.map +1 -0
  609. package/dist/merge/merge-stored-events-lock.d.ts +13 -0
  610. package/dist/merge/merge-stored-events-lock.d.ts.map +1 -0
  611. package/dist/merge/merge-stored-events-lock.js +50 -0
  612. package/dist/merge/merge-stored-events-lock.js.map +1 -0
  613. package/dist/merge/merge-trunk.d.ts +21 -0
  614. package/dist/merge/merge-trunk.d.ts.map +1 -0
  615. package/dist/merge/merge-trunk.js +150 -0
  616. package/dist/merge/merge-trunk.js.map +1 -0
  617. package/dist/merge/migrations-at.d.ts +11 -0
  618. package/dist/merge/migrations-at.d.ts.map +1 -0
  619. package/dist/merge/migrations-at.js +25 -0
  620. package/dist/merge/migrations-at.js.map +1 -0
  621. package/dist/merge/next-migration-number.d.ts +7 -0
  622. package/dist/merge/next-migration-number.d.ts.map +1 -0
  623. package/dist/merge/next-migration-number.js +17 -0
  624. package/dist/merge/next-migration-number.js.map +1 -0
  625. package/dist/merge/next-steps.d.ts +16 -0
  626. package/dist/merge/next-steps.d.ts.map +1 -0
  627. package/dist/merge/next-steps.js +16 -0
  628. package/dist/merge/next-steps.js.map +1 -0
  629. package/dist/merge/object-bytes.d.ts +6 -0
  630. package/dist/merge/object-bytes.d.ts.map +1 -0
  631. package/dist/merge/object-bytes.js +34 -0
  632. package/dist/merge/object-bytes.js.map +1 -0
  633. package/dist/merge/patch-ids-of.d.ts +7 -0
  634. package/dist/merge/patch-ids-of.d.ts.map +1 -0
  635. package/dist/merge/patch-ids-of.js +20 -0
  636. package/dist/merge/patch-ids-of.js.map +1 -0
  637. package/dist/merge/plain-git-merge.d.ts +11 -0
  638. package/dist/merge/plain-git-merge.d.ts.map +1 -0
  639. package/dist/merge/plain-git-merge.js +27 -0
  640. package/dist/merge/plain-git-merge.js.map +1 -0
  641. package/dist/merge/preview-merge.d.ts +27 -0
  642. package/dist/merge/preview-merge.d.ts.map +1 -0
  643. package/dist/merge/preview-merge.js +39 -0
  644. package/dist/merge/preview-merge.js.map +1 -0
  645. package/dist/merge/recorded-base.d.ts +11 -0
  646. package/dist/merge/recorded-base.d.ts.map +1 -0
  647. package/dist/merge/recorded-base.js +34 -0
  648. package/dist/merge/recorded-base.js.map +1 -0
  649. package/dist/merge/registry-union.d.ts +8 -0
  650. package/dist/merge/registry-union.d.ts.map +1 -0
  651. package/dist/merge/registry-union.js +22 -0
  652. package/dist/merge/registry-union.js.map +1 -0
  653. package/dist/merge/renumber-adrs.d.ts +19 -0
  654. package/dist/merge/renumber-adrs.d.ts.map +1 -0
  655. package/dist/merge/renumber-adrs.js +65 -0
  656. package/dist/merge/renumber-adrs.js.map +1 -0
  657. package/dist/merge/renumber-migrations.d.ts +23 -0
  658. package/dist/merge/renumber-migrations.d.ts.map +1 -0
  659. package/dist/merge/renumber-migrations.js +84 -0
  660. package/dist/merge/renumber-migrations.js.map +1 -0
  661. package/dist/merge/resolution.d.ts +19 -0
  662. package/dist/merge/resolution.d.ts.map +1 -0
  663. package/dist/merge/resolution.js +2 -0
  664. package/dist/merge/resolution.js.map +1 -0
  665. package/dist/merge/resolve-conflict.d.ts +11 -0
  666. package/dist/merge/resolve-conflict.d.ts.map +1 -0
  667. package/dist/merge/resolve-conflict.js +82 -0
  668. package/dist/merge/resolve-conflict.js.map +1 -0
  669. package/dist/merge/resume-merge.d.ts +5 -0
  670. package/dist/merge/resume-merge.d.ts.map +1 -0
  671. package/dist/merge/resume-merge.js +24 -0
  672. package/dist/merge/resume-merge.js.map +1 -0
  673. package/dist/merge/settle-regions.d.ts +10 -0
  674. package/dist/merge/settle-regions.d.ts.map +1 -0
  675. package/dist/merge/settle-regions.js +44 -0
  676. package/dist/merge/settle-regions.js.map +1 -0
  677. package/dist/merge/sharing-branches.d.ts +20 -0
  678. package/dist/merge/sharing-branches.d.ts.map +1 -0
  679. package/dist/merge/sharing-branches.js +24 -0
  680. package/dist/merge/sharing-branches.js.map +1 -0
  681. package/dist/merge/slices-table.d.ts +17 -0
  682. package/dist/merge/slices-table.d.ts.map +1 -0
  683. package/dist/merge/slices-table.js +35 -0
  684. package/dist/merge/slices-table.js.map +1 -0
  685. package/dist/merge/start-merge.d.ts +15 -0
  686. package/dist/merge/start-merge.d.ts.map +1 -0
  687. package/dist/merge/start-merge.js +33 -0
  688. package/dist/merge/start-merge.js.map +1 -0
  689. package/dist/merge/trunk-of.d.ts +9 -0
  690. package/dist/merge/trunk-of.d.ts.map +1 -0
  691. package/dist/merge/trunk-of.js +21 -0
  692. package/dist/merge/trunk-of.js.map +1 -0
  693. package/dist/merge/unmerged-entries.d.ts +4 -0
  694. package/dist/merge/unmerged-entries.d.ts.map +1 -0
  695. package/dist/merge/unmerged-entries.js +15 -0
  696. package/dist/merge/unmerged-entries.js.map +1 -0
  697. package/dist/migration/replay-drizzle-migrations.d.ts +5 -0
  698. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
  699. package/dist/migration/replay-drizzle-migrations.js +2 -2
  700. package/dist/migration/replay-drizzle-migrations.js.map +1 -1
  701. package/dist/migration/replayed-name.d.ts +5 -4
  702. package/dist/migration/replayed-name.d.ts.map +1 -1
  703. package/dist/migration/replayed-name.js +6 -5
  704. package/dist/migration/replayed-name.js.map +1 -1
  705. package/dist/plan/format-plan.d.ts +4 -1
  706. package/dist/plan/format-plan.d.ts.map +1 -1
  707. package/dist/plan/format-plan.js +7 -1
  708. package/dist/plan/format-plan.js.map +1 -1
  709. package/dist/progress/cells-of.d.ts +3 -0
  710. package/dist/progress/cells-of.d.ts.map +1 -0
  711. package/dist/progress/cells-of.js +12 -0
  712. package/dist/progress/cells-of.js.map +1 -0
  713. package/dist/progress/format-progress.d.ts.map +1 -1
  714. package/dist/progress/format-progress.js +9 -0
  715. package/dist/progress/format-progress.js.map +1 -1
  716. package/dist/progress/progress.d.ts +16 -0
  717. package/dist/progress/progress.d.ts.map +1 -1
  718. package/dist/progress/read-progress.d.ts +9 -3
  719. package/dist/progress/read-progress.d.ts.map +1 -1
  720. package/dist/progress/read-progress.js +18 -6
  721. package/dist/progress/read-progress.js.map +1 -1
  722. package/dist/progress/read-slice-rules.d.ts.map +1 -1
  723. package/dist/progress/read-slice-rules.js +1 -6
  724. package/dist/progress/read-slice-rules.js.map +1 -1
  725. package/dist/progress/read-slices.d.ts +2 -3
  726. package/dist/progress/read-slices.d.ts.map +1 -1
  727. package/dist/progress/read-slices.js +4 -50
  728. package/dist/progress/read-slices.js.map +1 -1
  729. package/dist/progress/rule-line.d.ts +7 -0
  730. package/dist/progress/rule-line.d.ts.map +1 -0
  731. package/dist/progress/rule-line.js +7 -0
  732. package/dist/progress/rule-line.js.map +1 -0
  733. package/dist/progress/slices-in.d.ts +8 -0
  734. package/dist/progress/slices-in.d.ts.map +1 -0
  735. package/dist/progress/slices-in.js +45 -0
  736. package/dist/progress/slices-in.js.map +1 -0
  737. package/dist/run.d.ts.map +1 -1
  738. package/dist/run.js +8 -0
  739. package/dist/run.js.map +1 -1
  740. package/dist/slice/format-slice-verification.d.ts.map +1 -1
  741. package/dist/slice/format-slice-verification.js +45 -6
  742. package/dist/slice/format-slice-verification.js.map +1 -1
  743. package/dist/slice/plan-staging.d.ts.map +1 -1
  744. package/dist/slice/plan-staging.js +1 -13
  745. package/dist/slice/plan-staging.js.map +1 -1
  746. package/dist/slice/record-verification.d.ts +8 -0
  747. package/dist/slice/record-verification.d.ts.map +1 -0
  748. package/dist/slice/record-verification.js +28 -0
  749. package/dist/slice/record-verification.js.map +1 -0
  750. package/dist/slice/slice-verification.d.ts +10 -0
  751. package/dist/slice/slice-verification.d.ts.map +1 -1
  752. package/dist/slice/verification-file.d.ts +3 -0
  753. package/dist/slice/verification-file.d.ts.map +1 -0
  754. package/dist/slice/verification-file.js +3 -0
  755. package/dist/slice/verification-file.js.map +1 -0
  756. package/dist/slice/verify-slice.d.ts +5 -2
  757. package/dist/slice/verify-slice.d.ts.map +1 -1
  758. package/dist/slice/verify-slice.js +26 -5
  759. package/dist/slice/verify-slice.js.map +1 -1
  760. package/dist/slice/worker-slice-of.d.ts +15 -0
  761. package/dist/slice/worker-slice-of.d.ts.map +1 -0
  762. package/dist/slice/worker-slice-of.js +32 -0
  763. package/dist/slice/worker-slice-of.js.map +1 -0
  764. package/dist/story/attribute-markers.d.ts +13 -0
  765. package/dist/story/attribute-markers.d.ts.map +1 -0
  766. package/dist/story/attribute-markers.js +38 -0
  767. package/dist/story/attribute-markers.js.map +1 -0
  768. package/dist/story/attributed-marker.d.ts +24 -0
  769. package/dist/story/attributed-marker.d.ts.map +1 -0
  770. package/dist/story/attributed-marker.js +2 -0
  771. package/dist/story/attributed-marker.js.map +1 -0
  772. package/dist/story/blamed-lines.d.ts +10 -0
  773. package/dist/story/blamed-lines.d.ts.map +1 -0
  774. package/dist/story/blamed-lines.js +36 -0
  775. package/dist/story/blamed-lines.js.map +1 -0
  776. package/dist/story/closing-of.d.ts +11 -0
  777. package/dist/story/closing-of.d.ts.map +1 -0
  778. package/dist/story/closing-of.js +87 -0
  779. package/dist/story/closing-of.js.map +1 -0
  780. package/dist/story/commit-rows.d.ts +16 -0
  781. package/dist/story/commit-rows.d.ts.map +1 -0
  782. package/dist/story/commit-rows.js +23 -0
  783. package/dist/story/commit-rows.js.map +1 -0
  784. package/dist/story/format-story-closing.d.ts +8 -0
  785. package/dist/story/format-story-closing.d.ts.map +1 -0
  786. package/dist/story/format-story-closing.js +89 -0
  787. package/dist/story/format-story-closing.js.map +1 -0
  788. package/dist/story/may-keep-open.d.ts +9 -0
  789. package/dist/story/may-keep-open.d.ts.map +1 -0
  790. package/dist/story/may-keep-open.js +12 -0
  791. package/dist/story/may-keep-open.js.map +1 -0
  792. package/dist/story/project-contexts.d.ts +5 -0
  793. package/dist/story/project-contexts.d.ts.map +1 -0
  794. package/dist/story/project-contexts.js +5 -0
  795. package/dist/story/project-contexts.js.map +1 -0
  796. package/dist/story/read-story-closing.d.ts +7 -0
  797. package/dist/story/read-story-closing.d.ts.map +1 -0
  798. package/dist/story/read-story-closing.js +44 -0
  799. package/dist/story/read-story-closing.js.map +1 -0
  800. package/dist/story/story-closing.d.ts +41 -0
  801. package/dist/story/story-closing.d.ts.map +1 -0
  802. package/dist/story/story-closing.js +2 -0
  803. package/dist/story/story-closing.js.map +1 -0
  804. package/dist/story/story-of.d.ts +7 -0
  805. package/dist/story/story-of.d.ts.map +1 -0
  806. package/dist/story/story-of.js +9 -0
  807. package/dist/story/story-of.js.map +1 -0
  808. package/dist/story/story-plan.d.ts +12 -0
  809. package/dist/story/story-plan.d.ts.map +1 -0
  810. package/dist/story/story-plan.js +2 -0
  811. package/dist/story/story-plan.js.map +1 -0
  812. package/dist/story/story-scope.d.ts +14 -0
  813. package/dist/story/story-scope.d.ts.map +1 -0
  814. package/dist/story/story-scope.js +14 -0
  815. package/dist/story/story-scope.js.map +1 -0
  816. package/dist/story/unclosed-stories.d.ts +19 -0
  817. package/dist/story/unclosed-stories.d.ts.map +1 -0
  818. package/dist/story/unclosed-stories.js +20 -0
  819. package/dist/story/unclosed-stories.js.map +1 -0
  820. package/dist/version.d.ts +1 -1
  821. package/dist/version.js +1 -1
  822. package/dist/worker/agent-file.d.ts +3 -0
  823. package/dist/worker/agent-file.d.ts.map +1 -0
  824. package/dist/worker/agent-file.js +3 -0
  825. package/dist/worker/agent-file.js.map +1 -0
  826. package/dist/worker/branch-standing.d.ts +24 -0
  827. package/dist/worker/branch-standing.d.ts.map +1 -0
  828. package/dist/worker/branch-standing.js +47 -0
  829. package/dist/worker/branch-standing.js.map +1 -0
  830. package/dist/worker/briefed-rows.d.ts +3 -2
  831. package/dist/worker/briefed-rows.d.ts.map +1 -1
  832. package/dist/worker/briefed-rows.js +32 -7
  833. package/dist/worker/briefed-rows.js.map +1 -1
  834. package/dist/worker/briefed-slice.d.ts +3 -0
  835. package/dist/worker/briefed-slice.d.ts.map +1 -1
  836. package/dist/worker/briefing-of.d.ts.map +1 -1
  837. package/dist/worker/briefing-of.js +37 -7
  838. package/dist/worker/briefing-of.js.map +1 -1
  839. package/dist/worker/design-line.d.ts +4 -0
  840. package/dist/worker/design-line.d.ts.map +1 -0
  841. package/dist/worker/design-line.js +9 -0
  842. package/dist/worker/design-line.js.map +1 -0
  843. package/dist/worker/design-note.d.ts +4 -0
  844. package/dist/worker/design-note.d.ts.map +1 -0
  845. package/dist/worker/design-note.js +19 -0
  846. package/dist/worker/design-note.js.map +1 -0
  847. package/dist/worker/ensure-contains-base.d.ts +3 -1
  848. package/dist/worker/ensure-contains-base.d.ts.map +1 -1
  849. package/dist/worker/ensure-contains-base.js +4 -2
  850. package/dist/worker/ensure-contains-base.js.map +1 -1
  851. package/dist/worker/find-worker.d.ts +23 -0
  852. package/dist/worker/find-worker.d.ts.map +1 -0
  853. package/dist/worker/find-worker.js +42 -0
  854. package/dist/worker/find-worker.js.map +1 -0
  855. package/dist/worker/format-resume.d.ts +4 -0
  856. package/dist/worker/format-resume.d.ts.map +1 -0
  857. package/dist/worker/format-resume.js +60 -0
  858. package/dist/worker/format-resume.js.map +1 -0
  859. package/dist/worker/format-workers.d.ts.map +1 -1
  860. package/dist/worker/format-workers.js +33 -5
  861. package/dist/worker/format-workers.js.map +1 -1
  862. package/dist/worker/install-dependencies.d.ts +16 -0
  863. package/dist/worker/install-dependencies.d.ts.map +1 -0
  864. package/dist/worker/install-dependencies.js +32 -0
  865. package/dist/worker/install-dependencies.js.map +1 -0
  866. package/dist/worker/landed-rows.d.ts +7 -0
  867. package/dist/worker/landed-rows.d.ts.map +1 -0
  868. package/dist/worker/landed-rows.js +8 -0
  869. package/dist/worker/landed-rows.js.map +1 -0
  870. package/dist/worker/named-paths.d.ts +3 -0
  871. package/dist/worker/named-paths.d.ts.map +1 -0
  872. package/dist/worker/named-paths.js +8 -0
  873. package/dist/worker/named-paths.js.map +1 -0
  874. package/dist/worker/next-step-of.d.ts +23 -0
  875. package/dist/worker/next-step-of.d.ts.map +1 -0
  876. package/dist/worker/next-step-of.js +32 -0
  877. package/dist/worker/next-step-of.js.map +1 -0
  878. package/dist/worker/open-worker-scope.d.ts +5 -2
  879. package/dist/worker/open-worker-scope.d.ts.map +1 -1
  880. package/dist/worker/open-worker-scope.js +63 -18
  881. package/dist/worker/open-worker-scope.js.map +1 -1
  882. package/dist/worker/progress-of.d.ts +14 -0
  883. package/dist/worker/progress-of.d.ts.map +1 -0
  884. package/dist/worker/progress-of.js +107 -0
  885. package/dist/worker/progress-of.js.map +1 -0
  886. package/dist/worker/read-agent-record.d.ts +4 -0
  887. package/dist/worker/read-agent-record.d.ts.map +1 -0
  888. package/dist/worker/read-agent-record.js +40 -0
  889. package/dist/worker/read-agent-record.js.map +1 -0
  890. package/dist/worker/read-verification.d.ts +9 -0
  891. package/dist/worker/read-verification.d.ts.map +1 -0
  892. package/dist/worker/read-verification.js +26 -0
  893. package/dist/worker/read-verification.js.map +1 -0
  894. package/dist/worker/read-worker-file.d.ts.map +1 -1
  895. package/dist/worker/read-worker-file.js +2 -1
  896. package/dist/worker/read-worker-file.js.map +1 -1
  897. package/dist/worker/read-workers.d.ts.map +1 -1
  898. package/dist/worker/read-workers.js +29 -9
  899. package/dist/worker/read-workers.js.map +1 -1
  900. package/dist/worker/resume-briefing.d.ts +17 -0
  901. package/dist/worker/resume-briefing.d.ts.map +1 -0
  902. package/dist/worker/resume-briefing.js +76 -0
  903. package/dist/worker/resume-briefing.js.map +1 -0
  904. package/dist/worker/resume-message.d.ts +15 -0
  905. package/dist/worker/resume-message.d.ts.map +1 -0
  906. package/dist/worker/resume-message.js +43 -0
  907. package/dist/worker/resume-message.js.map +1 -0
  908. package/dist/worker/resume-worker.d.ts +34 -0
  909. package/dist/worker/resume-worker.d.ts.map +1 -0
  910. package/dist/worker/resume-worker.js +47 -0
  911. package/dist/worker/resume-worker.js.map +1 -0
  912. package/dist/worker/row-commits.d.ts +22 -0
  913. package/dist/worker/row-commits.d.ts.map +1 -0
  914. package/dist/worker/row-commits.js +57 -0
  915. package/dist/worker/row-commits.js.map +1 -0
  916. package/dist/worker/rows-on-branches.d.ts +2 -1
  917. package/dist/worker/rows-on-branches.d.ts.map +1 -1
  918. package/dist/worker/rows-on-branches.js +2 -1
  919. package/dist/worker/rows-on-branches.js.map +1 -1
  920. package/dist/worker/stale-names-block.d.ts +4 -0
  921. package/dist/worker/stale-names-block.d.ts.map +1 -0
  922. package/dist/worker/stale-names-block.js +17 -0
  923. package/dist/worker/stale-names-block.js.map +1 -0
  924. package/dist/worker/state-line-of.d.ts +9 -0
  925. package/dist/worker/state-line-of.d.ts.map +1 -0
  926. package/dist/worker/state-line-of.js +55 -0
  927. package/dist/worker/state-line-of.js.map +1 -0
  928. package/dist/worker/worker-file.d.ts +2 -0
  929. package/dist/worker/worker-file.d.ts.map +1 -1
  930. package/dist/worker/worker-place.d.ts +3 -0
  931. package/dist/worker/worker-place.d.ts.map +1 -1
  932. package/dist/worker/worker-progress.d.ts +87 -0
  933. package/dist/worker/worker-progress.d.ts.map +1 -0
  934. package/dist/worker/worker-progress.js +2 -0
  935. package/dist/worker/worker-progress.js.map +1 -0
  936. package/dist/worker/worker-scope.d.ts +3 -0
  937. package/dist/worker/worker-scope.d.ts.map +1 -1
  938. package/dist/worker/workers-status.d.ts +29 -3
  939. package/dist/worker/workers-status.d.ts.map +1 -1
  940. package/package.json +2 -2
  941. package/templates/command/handler.spec.buses.ts.tpl +2 -2
  942. package/templates/command/handler.spec.tsyringe.ts.tpl +2 -2
  943. package/templates/init/AGENTS.md.tpl +1 -1
  944. package/templates/init/rules/application.md.tpl +1 -1
  945. package/templates/init/rules/infrastructure.md.tpl +3 -0
  946. package/templates/pipeline/lefthook.yml +5 -0
  947. package/templates/pipeline/package-scripts.json +1 -1
  948. package/templates/pipeline/vitest.config.ts.tpl +28 -27
@@ -0,0 +1,22 @@
1
+ /** The commit that closed a row of a worker, read from its branch. */
2
+ export interface RowCommit {
3
+ readonly row: string;
4
+ /** The short hash. */
5
+ readonly commit: string;
6
+ /** True when no `Slice:` trailer names the row: it was matched in order with the `feat(<context>)` commits. */
7
+ readonly byOrder: boolean;
8
+ }
9
+ /** What a worker's branch is read against. */
10
+ export interface RowsOfBranch {
11
+ readonly base: string;
12
+ readonly context: string;
13
+ readonly rows: readonly string[];
14
+ }
15
+ /**
16
+ * The rows of a worker already committed on its branch since its base, in the order of its rows.
17
+ * A commit names its row by its trailer `Slice: <id>`, which `verify-slice` prints in the commit
18
+ * command. A commit written without it (an older kit, a commit by hand) is matched in order: the
19
+ * rows no trailer names take the `feat(<context>)` commits no trailer marks, one each.
20
+ */
21
+ export declare function rowCommits(directory: string, branch: RowsOfBranch): RowCommit[];
22
+ //# sourceMappingURL=row-commits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-commits.d.ts","sourceRoot":"","sources":["../../src/worker/row-commits.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAQD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,SAAS,EAAE,CA+B/E"}
@@ -0,0 +1,57 @@
1
+ import { runGit } from '../commit/run-git.js';
2
+ /**
3
+ * The rows of a worker already committed on its branch since its base, in the order of its rows.
4
+ * A commit names its row by its trailer `Slice: <id>`, which `verify-slice` prints in the commit
5
+ * command. A commit written without it (an older kit, a commit by hand) is matched in order: the
6
+ * rows no trailer names take the `feat(<context>)` commits no trailer marks, one each.
7
+ */
8
+ export function rowCommits(directory, branch) {
9
+ const logged = commitsSince(directory, branch.base);
10
+ const named = new Map();
11
+ for (const { commit, slices } of logged) {
12
+ for (const row of slices) {
13
+ if (!named.has(row)) {
14
+ named.set(row, commit);
15
+ }
16
+ }
17
+ }
18
+ const unnamed = logged.filter(({ subject, slices }) => slices.length === 0 && subject.startsWith(`feat(${branch.context})`));
19
+ let next = 0;
20
+ return branch.rows.flatMap((row) => {
21
+ const commit = named.get(row);
22
+ if (commit !== undefined) {
23
+ return [{ row, commit, byOrder: false }];
24
+ }
25
+ const ordered = unnamed[next];
26
+ next += 1;
27
+ return ordered === undefined ? [] : [{ row, commit: ordered.commit, byOrder: true }];
28
+ });
29
+ }
30
+ /** The commits of the branch's own line since the base, oldest first, merges left out. */
31
+ function commitsSince(directory, base) {
32
+ const format = '%h%x1f%s%x1f%(trailers:key=Slice,valueonly,separator=%x2C)%x1e';
33
+ const log = runGit(directory, [
34
+ 'log',
35
+ '--reverse',
36
+ '--first-parent',
37
+ '--no-merges',
38
+ `--format=${format}`,
39
+ `${base}..HEAD`,
40
+ ]);
41
+ return (log ?? '')
42
+ .split('\x1e')
43
+ .map((record) => record.trim())
44
+ .filter((record) => record !== '')
45
+ .map((record) => {
46
+ const [commit = '', subject = '', slices = ''] = record.split('\x1f');
47
+ return {
48
+ commit,
49
+ subject,
50
+ slices: slices
51
+ .split(',')
52
+ .map((id) => id.trim().replace(/^#/, ''))
53
+ .filter((id) => id !== ''),
54
+ };
55
+ });
56
+ }
57
+ //# sourceMappingURL=row-commits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-commits.js","sourceRoot":"","sources":["../../src/worker/row-commits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAwB9C;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,SAAiB,EAAE,MAAoB;IAChE,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,MAAM,EAAE,CAAC;QACxC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAC3B,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,MAAM,CAAC,OAAO,GAAG,CAAC,CAC9F,CAAC;IAEF,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAe,EAAE;QAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE9B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,CAAC,EAAE,GAAG,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MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;SAC7B,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -2,7 +2,8 @@ import type { WorkersStatus } from './workers-status.js';
2
2
  /**
3
3
  * The ids of the rows briefed to a worker whose branch has commits its base does not have: they
4
4
  * are on their way to the trunk. A worker without commits ahead, or whose base is unknown, has
5
- * nothing on its way yet.
5
+ * nothing on its way yet; nor has one whose branch was squash-merged into its base with nothing
6
+ * since: its commits are counted from where it landed.
6
7
  */
7
8
  export declare function rowsOnBranches(status: WorkersStatus): Set<string>;
8
9
  //# sourceMappingURL=rows-on-branches.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rows-on-branches.d.ts","sourceRoot":"","sources":["../../src/worker/rows-on-branches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAEjE"}
1
+ {"version":3,"file":"rows-on-branches.d.ts","sourceRoot":"","sources":["../../src/worker/rows-on-branches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAEjE"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * The ids of the rows briefed to a worker whose branch has commits its base does not have: they
3
3
  * are on their way to the trunk. A worker without commits ahead, or whose base is unknown, has
4
- * nothing on its way yet.
4
+ * nothing on its way yet; nor has one whose branch was squash-merged into its base with nothing
5
+ * since: its commits are counted from where it landed.
5
6
  */
6
7
  export function rowsOnBranches(status) {
7
8
  return new Set(status.workers.filter((worker) => (worker.ahead ?? 0) > 0).flatMap((worker) => worker.rows ?? []));
@@ -1 +1 @@
1
- {"version":3,"file":"rows-on-branches.js","sourceRoot":"","sources":["../../src/worker/rows-on-branches.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,MAAqB;IAClD,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;AACpH,CAAC"}
1
+ {"version":3,"file":"rows-on-branches.js","sourceRoot":"","sources":["../../src/worker/rows-on-branches.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,MAAqB;IAClD,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;AACpH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CitationsAtRef } from '../citations/stale-names-at.js';
2
+ /** The names of the design the trunk does not have, as a worker reads them in its briefing; nothing when there is none. */
3
+ export declare function staleNamesBlock({ base, commit, citations }: CitationsAtRef): string[];
4
+ //# sourceMappingURL=stale-names-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stale-names-block.d.ts","sourceRoot":"","sources":["../../src/worker/stale-names-block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAKrE,2HAA2H;AAC3H,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc,GAAG,MAAM,EAAE,CAarF"}
@@ -0,0 +1,17 @@
1
+ import { citationLine } from '../citations/citation-line.js';
2
+ /** Past this many lines, the briefing points to the JSON: it stays under 300 words. */
3
+ const MOST = 8;
4
+ /** The names of the design the trunk does not have, as a worker reads them in its briefing; nothing when there is none. */
5
+ export function staleNamesBlock({ base, commit, citations }) {
6
+ if (citations.length === 0) {
7
+ return [];
8
+ }
9
+ const more = citations.length - MOST;
10
+ return [
11
+ `Names of the design that ${base} does not have (checked at ${commit}): build on what ${base} has,`,
12
+ 'and put each line in your report as a note for the conductor, who corrects the document.',
13
+ ...citations.slice(0, MOST).map((citation) => `- ${citationLine(citation, base)}`),
14
+ ...(more > 0 ? [`(${more} more: worker-scope --json)`] : []),
15
+ ];
16
+ }
17
+ //# sourceMappingURL=stale-names-block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stale-names-block.js","sourceRoot":"","sources":["../../src/worker/stale-names-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,uFAAuF;AACvF,MAAM,IAAI,GAAG,CAAC,CAAC;AAEf,2HAA2H;AAC3H,MAAM,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAkB;IACzE,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC;IAErC,OAAO;QACL,4BAA4B,IAAI,8BAA8B,MAAM,oBAAoB,IAAI,OAAO;QACnG,0FAA0F;QAC1F,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC;QAClF,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,6BAA6B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { WorkerStatus } from './workers-status.js';
2
+ /**
3
+ * The state of a worker in one line, and the command that resumes it:
4
+ * `stopped mid-row #14 (6 files uncommitted, 3 TODO(domain), last verify-slice failed: tests);
5
+ * resume: npx ddd-ts-kit worker-scope billing --resume`. `named` adds `--worktree` when another
6
+ * worker builds the same context.
7
+ */
8
+ export declare function stateLineOf(worker: WorkerStatus, named: boolean): string | undefined;
9
+ //# sourceMappingURL=state-line-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-line-of.d.ts","sourceRoot":"","sources":["../../src/worker/state-line-of.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAWpF"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The state of a worker in one line, and the command that resumes it:
3
+ * `stopped mid-row #14 (6 files uncommitted, 3 TODO(domain), last verify-slice failed: tests);
4
+ * resume: npx ddd-ts-kit worker-scope billing --resume`. `named` adds `--worktree` when another
5
+ * worker builds the same context.
6
+ */
7
+ export function stateLineOf(worker, named) {
8
+ const { progress } = worker;
9
+ if (progress === undefined) {
10
+ return undefined;
11
+ }
12
+ const details = detailsOf(progress);
13
+ const where = named ? ` --worktree ${worker.worktree}` : '';
14
+ return `${phaseText(progress)}${details.length === 0 ? '' : ` (${details.join(', ')})`}; ${nextText(progress, `npx ddd-ts-kit worker-scope ${worker.context} --resume${where}`)}`;
15
+ }
16
+ function phaseText({ phase, rows, next }) {
17
+ const current = rows.find((row) => row.state !== 'committed');
18
+ const committed = rows.filter((row) => row.state === 'committed').map((row) => `#${row.id}`);
19
+ if (phase === 'mid-row') {
20
+ return `${next.action === 'wait' ? 'working' : 'stopped'} mid-row #${current?.id ?? '?'}`;
21
+ }
22
+ if (phase === 'between rows') {
23
+ return `between rows (${committed.join(', ')} committed, #${current?.id ?? '?'} to do)`;
24
+ }
25
+ return phase === 'rows committed' ? `rows committed (${committed.join(', ')})` : 'not started';
26
+ }
27
+ function detailsOf({ inSlice, markers, verification }) {
28
+ const count = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
29
+ return [
30
+ ...(inSlice.length > 0 ? [`${count(inSlice.length, 'file')} uncommitted`] : []),
31
+ ...(markers.domain > 0 ? [`${markers.domain} TODO(domain)`] : []),
32
+ ...(markers.test > 0 ? [`${markers.test} it.todo`] : []),
33
+ ...(verification === null ? [] : [verificationText(verification)]),
34
+ ];
35
+ }
36
+ function verificationText(verification) {
37
+ const result = verification.ok ? 'passed' : `failed: ${verification.failed.join(', ') || 'unknown'}`;
38
+ const since = [
39
+ ...(verification.changedAfter > 0
40
+ ? [`${verification.changedAfter} file${verification.changedAfter === 1 ? '' : 's'} changed since`]
41
+ : []),
42
+ ...(verification.committedAfter ? ['committed since'] : []),
43
+ ];
44
+ return `last verify-slice ${result}${since.length === 0 ? '' : `, ${since.join(', ')}`}`;
45
+ }
46
+ function nextText({ next, agent }, resume) {
47
+ if (next.action === 'merge') {
48
+ return 'next: merge the branch';
49
+ }
50
+ if (next.action === 'wait') {
51
+ return `an agent is working (last tool call ${agent?.lastSeen ?? 'unknown'})`;
52
+ }
53
+ return `resume: ${resume}`;
54
+ }
55
+ //# sourceMappingURL=state-line-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-line-of.js","sourceRoot":"","sources":["../../src/worker/state-line-of.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,MAAoB,EAAE,KAAc;IAC9D,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE5B,IA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,EAAE,CAAC;IAErG,MAAM,KAAK,GAAG;QACZ,GAAG,CAAC,YAAY,CAAC,YAAY,GAAG,CAAC;YAC/B,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,QAAQ,YAAY,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;YAClG,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5D,CAAC;IAEF,OAAO,qBAAqB,MAAM,GAAG,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;AAC3F,CAAC;AAED,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAkB,EAAE,MAAc;IAC/D,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;QAC5B,OAAO,wBAAwB,CAAC;IAClC,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QAC3B,OAAO,uCAAuC,KAAK,EAAE,QAAQ,IAAI,SAAS,GAAG,CAAC;IAChF,CAAC;IAED,OAAO,WAAW,MAAM,EAAE,CAAC;AAC7B,CAAC"}
@@ -9,6 +9,8 @@ export interface WorkerFile {
9
9
  readonly rows?: readonly string[];
10
10
  /** The ref its worktree was cut from and is checked against. */
11
11
  readonly base?: string;
12
+ /** The commit the base named when worker-scope created or kept the worktree; absent from older files. */
13
+ readonly baseCommit?: string;
12
14
  readonly branch?: string;
13
15
  }
14
16
  //# sourceMappingURL=worker-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker-file.d.ts","sourceRoot":"","sources":["../../src/worker/worker-file.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"worker-file.d.ts","sourceRoot":"","sources":["../../src/worker/worker-file.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,yGAAyG;IACzG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -1,3 +1,4 @@
1
+ import type { CitationsAtRef } from '../citations/stale-names-at.js';
1
2
  import type { Config } from '../config/index.js';
2
3
  import type { BriefedSlice } from './briefed-slice.js';
3
4
  /** What a briefing is filled with. */
@@ -11,5 +12,7 @@ export interface WorkerPlace {
11
12
  readonly trunk: string;
12
13
  readonly generators: readonly string[];
13
14
  readonly slices: readonly BriefedSlice[];
15
+ /** The names their design cites that the trunk does not have. */
16
+ readonly citations: CitationsAtRef;
14
17
  }
15
18
  //# sourceMappingURL=worker-place.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker-place.d.ts","sourceRoot":"","sources":["../../src/worker/worker-place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY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+ * Where a worker stands, derived from git and from the files the kit and the guard write in its
3
+ * worktree, never from what its agent says: its rows, the files of the row under way, the markers
4
+ * left, its last verification, its report, its agent, and what the conductor does next.
5
+ */
6
+ export interface WorkerProgress {
7
+ /** Its rows, in the order of its scope file. */
8
+ readonly rows: readonly ProgressRow[];
9
+ /** The changed paths of its worktree that belong to its slice: those `verify-slice` would stage. */
10
+ readonly inSlice: readonly string[];
11
+ /** The other changed paths: never committed with a slice. */
12
+ readonly leftOut: readonly string[];
13
+ /** The markers left in its context: what `todo <context>` lists. */
14
+ readonly markers: {
15
+ readonly domain: number;
16
+ readonly test: number;
17
+ };
18
+ readonly verification: ProgressVerification | null;
19
+ readonly report: ProgressReport | null;
20
+ readonly agent: AgentRecord | null;
21
+ readonly phase: 'not started' | 'mid-row' | 'between rows' | 'rows committed';
22
+ readonly next: NextStep;
23
+ }
24
+ export interface ProgressRow {
25
+ readonly id: string;
26
+ /** The name of the row in the slices file; empty when the file does not hold it. */
27
+ readonly slice: string;
28
+ readonly state: 'committed' | 'in progress' | 'to do';
29
+ /** The short hash of the commit that closed it. */
30
+ readonly commit?: string;
31
+ /** True when no `Slice:` trailer names it: matched in order with the `feat(<context>)` commits. */
32
+ readonly byOrder?: boolean;
33
+ }
34
+ /** The last `verify-slice` of the worker, from `.ddd-ts-kit/verification.json`. */
35
+ export interface ProgressVerification {
36
+ readonly at: string;
37
+ readonly head: string | null;
38
+ readonly row: string | null;
39
+ readonly ok: boolean;
40
+ /** The steps that failed: `regenerate`, `check`, `tests`. */
41
+ readonly failed: readonly string[];
42
+ readonly toStage: readonly string[];
43
+ /** The files of the slice changed after it ran. */
44
+ readonly changedAfter: number;
45
+ /** True when a commit was made after it ran. */
46
+ readonly committedAfter: boolean;
47
+ }
48
+ export interface ProgressReport {
49
+ readonly modified: string;
50
+ /** Written after the last commit and after the last change of a file of the slice. */
51
+ readonly current: boolean;
52
+ }
53
+ /** What the guard records in `.ddd-ts-kit/agent.json` while a context-builder works in the worktree. */
54
+ export interface AgentRecord {
55
+ readonly agentId: string;
56
+ /** The run of the agent: 1 at its launch, one more at each resume. */
57
+ readonly run: number;
58
+ readonly runStartedAt: string;
59
+ /** The commit checked out when the run started. */
60
+ readonly runStartHead: string | null;
61
+ /** When the guard last saw one of its tool calls. */
62
+ readonly lastSeen: string;
63
+ /** The tool calls the guard counted in this run (shell and writes; reads are not seen). */
64
+ readonly toolCalls: number;
65
+ /** The tool calls counted for each row it committed, by id. */
66
+ readonly rowCosts: Readonly<Record<string, number>>;
67
+ /** When it last stopped on its own, and whether its report was current then. */
68
+ readonly lastStop: {
69
+ readonly at: string;
70
+ readonly reportCurrent: boolean;
71
+ } | null;
72
+ }
73
+ /**
74
+ * `wait`: an agent is working; `send-message`: resume that agent, which keeps its history;
75
+ * `new-agent`: launch a new one with the resume briefing; `merge`: every row is committed.
76
+ */
77
+ export type NextStep = {
78
+ readonly action: 'wait';
79
+ } | {
80
+ readonly action: 'send-message';
81
+ readonly to: string;
82
+ } | {
83
+ readonly action: 'new-agent';
84
+ } | {
85
+ readonly action: 'merge';
86
+ };
87
+ //# sourceMappingURL=worker-progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-progress.d.ts","sourceRoot":"","sources":["../../src/worker/worker-progress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;IACtC,oGAAoG;IACpG,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,QAAQ,CAAC,YAAY,EAAE,oBA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ACxG,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,mDAAmD;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,gFAAgF;IAChF,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACpF;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAChB;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3B;IAAE,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAAE,GAChC;IAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=worker-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-progress.js","sourceRoot":"","sources":["../../src/worker/worker-progress.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import type { CitationsAtRef } from '../citations/stale-names-at.js';
1
2
  import type { BriefedSlice } from './briefed-slice.js';
2
3
  /** The place one worker builds one context in, and what to tell that worker. */
3
4
  export interface WorkerScope {
@@ -20,6 +21,8 @@ export interface WorkerScope {
20
21
  readonly generators: readonly string[];
21
22
  /** The rows of the slices table the worker builds: those of `--rows`, by default those of the context still to do. */
22
23
  readonly slices: readonly BriefedSlice[];
24
+ /** The names the design of those rows cites that the trunk does not have, checked at the trunk. */
25
+ readonly citations: CitationsAtRef;
23
26
  readonly briefing: string;
24
27
  readonly notes: readonly string[];
25
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"worker-scope.d.ts","sourceRoot":"","sources":["../../src/worker/worker-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gGAAgG;IAChG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kJAAkJ;IAClJ,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,sHAAsH;IACtH,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC"}
1
+ {"version":3,"file":"worker-scope.d.ts","sourceRoot":"","sources":["../../src/worker/worker-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gGAAgG;IAChG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kJAAkJ;IAClJ,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,sHAAsH;IACtH,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,mGAAmG;IACnG,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC"}
@@ -1,3 +1,4 @@
1
+ import type { WorkerProgress } from './worker-progress.js';
1
2
  /** Who builds what, in which worktree, and where two workers meet: what `status --workers` says. */
2
3
  export interface WorkersStatus {
3
4
  /** One entry per worktree holding `.ddd-ts-kit/worker.json`, in the order git lists them. */
@@ -15,16 +16,32 @@ export interface WorkerStatus {
15
16
  readonly rows?: readonly string[];
16
17
  /** The ref it was cut from. */
17
18
  readonly base?: string;
18
- /** The commits on its branch that the base does not have; left out when the base is unknown or names no commit. */
19
+ /**
20
+ * The commits on its branch that the base does not have, since the commit the base took it in
21
+ * at when it was squash-merged there; left out when the base is unknown or names no commit.
22
+ */
19
23
  readonly ahead?: number;
24
+ /** The commits of the base its branch does not have. */
25
+ readonly behind?: number;
26
+ /** The commit of the base that took its branch in (a squash), found by patch id, when one did. */
27
+ readonly landed?: Landed;
28
+ /** What `merge-trunk` would leave conflicted now, computed from what the base already holds; left out when nothing is to merge. */
29
+ readonly mergePreview?: {
30
+ readonly conflicts: number;
31
+ readonly files: readonly string[];
32
+ };
33
+ /** Whether its copy of the project has its dependencies (`node_modules`): without them its hooks and checks fail. */
34
+ readonly installed: boolean;
20
35
  /**
21
36
  * The files it changed, relative to the top of the repository: committed since the merge base
22
- * with its base, modified, and untracked but not ignored. Without a known base, the modified
23
- * and untracked ones only.
37
+ * with its base (since where it landed, once the base took it in), modified, and untracked but
38
+ * not ignored. Without a known base, the modified and untracked ones only.
24
39
  */
25
40
  readonly files: readonly string[];
26
41
  /** Its `.ddd-ts-kit/report.md`; null while it has written none. */
27
42
  readonly report: WorkerReport | null;
43
+ /** Where its rows stand and what the conductor does next; left out when its config cannot be read. */
44
+ readonly progress?: WorkerProgress;
28
45
  }
29
46
  export interface WorkerReport {
30
47
  /** Absolute path. */
@@ -45,4 +62,13 @@ export interface Overlaps {
45
62
  readonly worktrees: readonly string[];
46
63
  }[];
47
64
  }
65
+ /** Where a worker's branch landed on its base, and what of it. */
66
+ interface Landed {
67
+ /** The commit of the base that took the branch in. */
68
+ readonly commit: string;
69
+ readonly subject: string;
70
+ /** The rows briefed to the worker that its branch had done where it landed. */
71
+ readonly rows: readonly string[];
72
+ }
73
+ export {};
48
74
  //# sourceMappingURL=workers-status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workers-status.d.ts","sourceRoot":"","sources":["../../src/worker/workers-status.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,MAAM,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C,QAAQ,CAAC,EAAE,cAAc,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,wEAAwE;AACxE,MAAM,WAAW,QAAQ;IACvB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;IAClG,8GAA8G;IAC9G,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAC7F;AAED,kEAAkE;AAClE,UAAU,MAAM;IACd,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddd-ts-kit",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "Bootstrap, scaffold and verify Domain-Driven Design (DDD), Clean Architecture and hexagonal TypeScript backends on Node.js: project and code generators, architecture checks, OpenAPI and AsyncAPI documents, for developers and AI coding agents (Claude Code, Codex, GitHub Copilot).",
5
5
  "keywords": [
6
6
  "ddd",
@@ -52,6 +52,6 @@
52
52
  "clean:packages": "node dist/bin.js check --clean-only ../kernel/src ../validation/src ../http/src ../tracing/src ../di/src ../events/src ../testing/src ../s3/src ../drizzle/src ../knex/src ../prisma/src ../typeorm/src ../aspects/src ../rabbitmq/src ../auth/src ../audit/src ../redis/src ../scheduling/src ../pino/src ../winston/src ../sentry/src ../kafka/src ../nats/src ../eslint-plugin/src"
53
53
  },
54
54
  "devDependencies": {
55
- "@ddd-ts-kit/kernel": "^0.25.0"
55
+ "@ddd-ts-kit/kernel": "^0.26.0"
56
56
  }
57
57
  }
@@ -69,11 +69,11 @@ describe('{{name.title}}', () => {
69
69
  {{/if}}
70
70
 
71
71
  {{#if command.hasAggregate}}
72
- // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`domainEvents.on('<name>', ...)` registered in `arrange`) and the answer.
72
+ // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`domainEvents.on('<name>', ...)` registered in `arrange`) and the answer; when several specs of {{context.kebab}} share this arrangement, `npx ddd-ts-kit generate test-world {{context.kebab}}` writes it once in test/worlds/.
73
73
  it.todo('applies the business decision to the {{aggregate.words}}');
74
74
  {{/if}}
75
75
  {{#unless command.hasAggregate}}
76
- // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports, execute through the bus, assert the outcome.
76
+ // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports, execute through the bus, assert the outcome; when several specs of {{context.kebab}} share this arrangement, `npx ddd-ts-kit generate test-world {{context.kebab}}` writes it once in test/worlds/.
77
77
  it.todo('applies the business decision to the aggregate');
78
78
  {{/unless}}
79
79
  it.todo('refuses the command when a business rule is violated, with the expected error code');
@@ -65,11 +65,11 @@ describe('{{name.title}}', () => {
65
65
  {{/if}}
66
66
 
67
67
  {{#if command.hasAggregate}}
68
- // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`application.domainEvents.on('<name>', ...)` before executing), `application.eventBus.published` and the answer.
68
+ // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`application.domainEvents.on('<name>', ...)` before executing), `application.eventBus.published` and the answer; when several specs of {{context.kebab}} share this arrangement, `npx ddd-ts-kit generate test-world {{context.kebab}}` writes it once in test/worlds/.
69
69
  it.todo('applies the business decision to the {{aggregate.words}}');
70
70
  {{/if}}
71
71
  {{#unless command.hasAggregate}}
72
- // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports (`fakes: [fake(Port, aFake)]`), execute through the bus, assert the outcome.
72
+ // TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports (`fakes: [fake(Port, aFake)]`), execute through the bus, assert the outcome; when several specs of {{context.kebab}} share this arrangement, `npx ddd-ts-kit generate test-world {{context.kebab}}` writes it once in test/worlds/.
73
73
  it.todo('applies the business decision to the aggregate');
74
74
  {{/unless}}
75
75
  it.todo('refuses the command when a business rule is violated, with the expected error code');
@@ -34,7 +34,7 @@ Never edit the contracts under `openapi/` (`openapi/openapi.yaml`, one file per
34
34
  {{sdk.instruction}}
35
35
  {{/if}}
36
36
  Imports: a file of the project is imported by its alias from the project root, never by a relative path, the same directory included: `{{alias.source}}/...` for `{{config.sourceRoot}}/`, `{{alias.test}}/...` for `test/`, `{{alias.scripts}}/...` for `scripts/`, {{#if alias.extensionless}}never ending in `.js` or `.ts`, and naming a file, never a directory{{/if}}{{#unless alias.extensionless}}always ending in `.js`{{/unless}} (`imports/alias-only`, `imports/extension`; `npm run lint:fix` rewrites a relative import and a wrong ending). The alias is declared once, under `paths` in `tsconfig.json`, from `importAlias` of `ddd-ts-kit.config.json`, and the ending follows `importExtension`: never add a second entry or mapping, never change `module` or `moduleResolution` in `tsconfig.json`, and never compile without `npm run build`, which rewrites the aliases of `dist/` into relative paths ending in `.js` for Node (`imports/alias-declared`).
37
- Everywhere: one exported class, interface or function per file, named after it in kebab-case; at most 350 lines a file, 30 lines and 3 parameters a function; `private` members, never `#name`; a blank line before a `return` and around `if`, `for`, `try` (`npm run lint:fix`); braces around the body of every `if`, `else`, `for`, `while` and `do`, on its own lines: a branch is visible at a glance, and a statement added to it later cannot silently fall outside it. `npm run format` (Biome, line width 120) lays out every file: do not spend tokens on line breaks.
37
+ Everywhere: one exported class, interface or function per file, named after it in kebab-case; at most 350 lines a file, 30 lines and 3 parameters a function; `private` members, never `#name`; a blank line before a `return` and around `if`, `for`, `try` (`npm run lint:fix`); braces around the body of every `if`, `else`, `for`, `while` and `do`, on its own lines: a branch is visible at a glance, and a statement added to it later cannot silently fall outside it. `npm run format` (Biome, line width 120) lays out every file, then `npm run lint:fix` adds the blank lines a wrapped statement now needs: do not spend tokens on line breaks, and never run Prettier or a bare `npx biome`.
38
38
 
39
39
  ## TypeScript
40
40
 
@@ -33,7 +33,7 @@ paths:
33
33
  - A query never saves, deletes or publishes (`application/command-query-separation`); it hands the access scope of the actor to its read port and never filters after loading, and answers every field its read model holds: a field reserved to some callers is marked on the response schema with `withFieldAccess` of `@ddd-ts-kit/http`, never removed by a test on the roles of the actor (`authz/fields-by-schema`).
34
34
  - A read that takes criteria, a scope or a page is a search, never a list (`naming/search-not-list`): `Search<Things>Query` in `queries/search-<things>/` (`generate query ... --search`), `search...` on the port, its adapters and its fakes; one element or none stays `findById` or `findBy...`.
35
35
  {{#if literals.named}}
36
- - A permission, a role or a status is read from its declaration, `billingPermissions['invoice.issue']`, `InvoiceStatus.Issued`, never written as a string (`language/declared-vocabulary`); a number has a name (`clean/no-magic-number`).
36
+ - A permission, a role or a status is read from its declaration, `billingPermissions['invoice.issue']`, `InvoiceStatus.Issued`, never written as a string (`language/declared-vocabulary`), while a word of a published payload is typed by its contract, `Record<ProductListedV1Payload['state'], InvoiceStatus>` or `'issued' satisfies ProductListedV1Payload['state']`; a number has a name (`clean/no-magic-number`).
37
37
  {{/if}}
38
38
  - Time through `Clock`, identifiers through `IdGenerator`, no `process.env` (`purity/*`). No logging, tracing, retry or audit call: they are applied from outside (`aspects/outside-in`, `tracing/platform-only`).
39
39
  - A whole feature with `/ddd-ts-kit:use-case`. Create with `npx ddd-ts-kit generate command|query|port|policy|job|background-job|process|event-handler|integration-handler ... --json`, then fill the `TODO(domain)` places.
@@ -7,6 +7,9 @@ paths:
7
7
 
8
8
  - An adapter `implements` a port of `application/ports/` or a repository port of `domain/repositories/`, and never `extends` it (`ports/implements-never-extends`). It never imports `presentation/` (`layer/infrastructure-no-presentation`).
9
9
  - `persistence/` holds repository adapters, mappers and rows, `external/` the adapters of outside systems, `anti-corruption/` the translators of another model.
10
+ {{#if literals.named}}
11
+ - A word of the other model stays its word: a translator keys its tables by the type of that model, `Record<TheirRecord['code'], InvoiceStatus>` (an annotation or `satisfies`), and compares with `'code' satisfies TheirRecord['code']`, so that the compiler holds its spelling; the value of the context it produces is read from its vocabulary (`language/declared-vocabulary`).
12
+ {{/if}}
10
13
  - Rows never leave `persistence/`: a mapper translates to and from the aggregate, and is the only place for a type assertion (`clean/no-escape-hatch`).
11
14
  - The content of a file never goes in a table: no binary or base64 column (`persistence/no-file-content`). The file lives in the `FileStorage` port; a row keeps the key, size, media type and checksum of its `StoredFile`.
12
15
  - Own tables, in the schema of the context: no join, foreign key or transaction across contexts (`context/extractable`).
@@ -1,4 +1,7 @@
1
1
  min_version: 2.0.0
2
+ # The hook runs the lefthook of the checkout it fires in: each worktree its own, and a checkout
3
+ # without its dependencies fails the commit instead of skipping the checks.
4
+ lefthook: node_modules/.bin/lefthook
2
5
 
3
6
  pre-commit:
4
7
  parallel: true
@@ -21,6 +24,8 @@ pre-push:
21
24
  run: npm run ci:typecheck
22
25
  - name: unit tests
23
26
  run: npm run ci:test:unit
27
+ - name: merges
28
+ run: npx --no -- ddd-ts-kit verify-merge --warn
24
29
 
25
30
  commit-msg:
26
31
  jobs:
@@ -23,7 +23,7 @@
23
23
  "@biomejs/biome": "2.5.15",
24
24
  "@commitlint/cli": "^21.2.3",
25
25
  "@commitlint/config-conventional": "^21.2.3",
26
- "@ddd-ts-kit/eslint-plugin": "^0.25.0",
26
+ "@ddd-ts-kit/eslint-plugin": "^0.26.0",
27
27
  "@eslint/js": "^10.0.1",
28
28
  "@typescript/native": "npm:typescript@~7.0.2",
29
29
  "@vitest/coverage-v8": "5.0.3",