ddd-ts-kit 0.25.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +363 -0
- package/README.fr.md +408 -20
- package/README.md +375 -19
- package/dist/acceptance/acceptance-file-of.d.ts +5 -0
- package/dist/acceptance/acceptance-file-of.d.ts.map +1 -0
- package/dist/acceptance/acceptance-file-of.js +7 -0
- package/dist/acceptance/acceptance-file-of.js.map +1 -0
- package/dist/acceptance/acceptance-gate.d.ts +8 -0
- package/dist/acceptance/acceptance-gate.d.ts.map +1 -0
- package/dist/acceptance/acceptance-gate.js +2 -0
- package/dist/acceptance/acceptance-gate.js.map +1 -0
- package/dist/acceptance/acceptance-lock.d.ts +32 -0
- package/dist/acceptance/acceptance-lock.d.ts.map +1 -0
- package/dist/acceptance/acceptance-lock.js +2 -0
- package/dist/acceptance/acceptance-lock.js.map +1 -0
- package/dist/acceptance/acceptance-problem.d.ts +15 -0
- package/dist/acceptance/acceptance-problem.d.ts.map +1 -0
- package/dist/acceptance/acceptance-problem.js +2 -0
- package/dist/acceptance/acceptance-problem.js.map +1 -0
- package/dist/acceptance/commentless.d.ts +4 -0
- package/dist/acceptance/commentless.d.ts.map +1 -0
- package/dist/acceptance/commentless.js +31 -0
- package/dist/acceptance/commentless.js.map +1 -0
- package/dist/acceptance/counts-for.d.ts +5 -0
- package/dist/acceptance/counts-for.d.ts.map +1 -0
- package/dist/acceptance/counts-for.js +8 -0
- package/dist/acceptance/counts-for.js.map +1 -0
- package/dist/acceptance/criteria-in.d.ts +14 -0
- package/dist/acceptance/criteria-in.d.ts.map +1 -0
- package/dist/acceptance/criteria-in.js +34 -0
- package/dist/acceptance/criteria-in.js.map +1 -0
- package/dist/acceptance/drift.d.ts +30 -0
- package/dist/acceptance/drift.d.ts.map +1 -0
- package/dist/acceptance/drift.js +44 -0
- package/dist/acceptance/drift.js.map +1 -0
- package/dist/acceptance/format-acceptance.d.ts +5 -0
- package/dist/acceptance/format-acceptance.d.ts.map +1 -0
- package/dist/acceptance/format-acceptance.js +40 -0
- package/dist/acceptance/format-acceptance.js.map +1 -0
- package/dist/acceptance/lock-acceptance.d.ts +24 -0
- package/dist/acceptance/lock-acceptance.d.ts.map +1 -0
- package/dist/acceptance/lock-acceptance.js +58 -0
- package/dist/acceptance/lock-acceptance.js.map +1 -0
- package/dist/acceptance/lock-file-of.d.ts +3 -0
- package/dist/acceptance/lock-file-of.d.ts.map +1 -0
- package/dist/acceptance/lock-file-of.js +6 -0
- package/dist/acceptance/lock-file-of.js.map +1 -0
- package/dist/acceptance/lock-problems.d.ts +21 -0
- package/dist/acceptance/lock-problems.d.ts.map +1 -0
- package/dist/acceptance/lock-problems.js +58 -0
- package/dist/acceptance/lock-problems.js.map +1 -0
- package/dist/acceptance/read-acceptance.d.ts +9 -0
- package/dist/acceptance/read-acceptance.d.ts.map +1 -0
- package/dist/acceptance/read-acceptance.js +76 -0
- package/dist/acceptance/read-acceptance.js.map +1 -0
- package/dist/acceptance/read-lock.d.ts +5 -0
- package/dist/acceptance/read-lock.d.ts.map +1 -0
- package/dist/acceptance/read-lock.js +45 -0
- package/dist/acceptance/read-lock.js.map +1 -0
- package/dist/acceptance/read-verdicts.d.ts +9 -0
- package/dist/acceptance/read-verdicts.d.ts.map +1 -0
- package/dist/acceptance/read-verdicts.js +35 -0
- package/dist/acceptance/read-verdicts.js.map +1 -0
- package/dist/acceptance/scenario-problems.d.ts +12 -0
- package/dist/acceptance/scenario-problems.d.ts.map +1 -0
- package/dist/acceptance/scenario-problems.js +74 -0
- package/dist/acceptance/scenario-problems.js.map +1 -0
- package/dist/acceptance/scenario.d.ts +23 -0
- package/dist/acceptance/scenario.d.ts.map +1 -0
- package/dist/acceptance/scenario.js +2 -0
- package/dist/acceptance/scenario.js.map +1 -0
- package/dist/acceptance/scenarios-in.d.ts +4 -0
- package/dist/acceptance/scenarios-in.d.ts.map +1 -0
- package/dist/acceptance/scenarios-in.js +68 -0
- package/dist/acceptance/scenarios-in.js.map +1 -0
- package/dist/acceptance/story-acceptance.d.ts +29 -0
- package/dist/acceptance/story-acceptance.d.ts.map +1 -0
- package/dist/acceptance/story-acceptance.js +2 -0
- package/dist/acceptance/story-acceptance.js.map +1 -0
- package/dist/acceptance/story-file-of.d.ts +4 -0
- package/dist/acceptance/story-file-of.d.ts.map +1 -0
- package/dist/acceptance/story-file-of.js +8 -0
- package/dist/acceptance/story-file-of.js.map +1 -0
- package/dist/acceptance/story-of-file.d.ts +3 -0
- package/dist/acceptance/story-of-file.d.ts.map +1 -0
- package/dist/acceptance/story-of-file.js +6 -0
- package/dist/acceptance/story-of-file.js.map +1 -0
- package/dist/acceptance/story-of-row.d.ts +3 -0
- package/dist/acceptance/story-of-row.d.ts.map +1 -0
- package/dist/acceptance/story-of-row.js +6 -0
- package/dist/acceptance/story-of-row.js.map +1 -0
- package/dist/acceptance/story-problems.d.ts +16 -0
- package/dist/acceptance/story-problems.d.ts.map +1 -0
- package/dist/acceptance/story-problems.js +48 -0
- package/dist/acceptance/story-problems.js.map +1 -0
- package/dist/acceptance/verdict-on.d.ts +8 -0
- package/dist/acceptance/verdict-on.d.ts.map +1 -0
- package/dist/acceptance/verdict-on.js +9 -0
- package/dist/acceptance/verdict-on.js.map +1 -0
- package/dist/acceptance/verdict.d.ts +14 -0
- package/dist/acceptance/verdict.d.ts.map +1 -0
- package/dist/acceptance/verdict.js +2 -0
- package/dist/acceptance/verdict.js.map +1 -0
- package/dist/acceptance/verdicts-dir.d.ts +3 -0
- package/dist/acceptance/verdicts-dir.d.ts.map +1 -0
- package/dist/acceptance/verdicts-dir.js +3 -0
- package/dist/acceptance/verdicts-dir.js.map +1 -0
- package/dist/check/canonical/context-layers.d.ts +7 -0
- package/dist/check/canonical/context-layers.d.ts.map +1 -0
- package/dist/check/canonical/context-layers.js +13 -0
- package/dist/check/canonical/context-layers.js.map +1 -0
- package/dist/check/canonical/first-flaw.d.ts +9 -0
- package/dist/check/canonical/first-flaw.d.ts.map +1 -0
- package/dist/check/canonical/first-flaw.js +18 -0
- package/dist/check/canonical/first-flaw.js.map +1 -0
- package/dist/check/canonical/flaw-in-contexts.d.ts +9 -0
- package/dist/check/canonical/flaw-in-contexts.d.ts.map +1 -0
- package/dist/check/canonical/flaw-in-contexts.js +12 -0
- package/dist/check/canonical/flaw-in-contexts.js.map +1 -0
- package/dist/check/canonical/is-context-relative.d.ts +3 -0
- package/dist/check/canonical/is-context-relative.d.ts.map +1 -0
- package/dist/check/canonical/is-context-relative.js +12 -0
- package/dist/check/canonical/is-context-relative.js.map +1 -0
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +2 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/default-severities.d.ts.map +1 -1
- package/dist/check/catalogue/default-severities.js +1 -0
- package/dist/check/catalogue/default-severities.js.map +1 -1
- package/dist/check/configuration/config-inspection.d.ts +1 -0
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +9 -1
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/explain/language-docs.js +1 -1
- package/dist/check/explain/language-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.d.ts.map +1 -1
- package/dist/check/explain/tree-docs.js +12 -3
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/other-language-fixtures.d.ts +3 -0
- package/dist/check/fixtures/other-language-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/other-language-fixtures.js +151 -0
- package/dist/check/fixtures/other-language-fixtures.js.map +1 -0
- package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/test-fixtures.js +35 -0
- package/dist/check/fixtures/test-fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +29 -2
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/language/in-outside-record.d.ts +9 -0
- package/dist/check/language/in-outside-record.d.ts.map +1 -0
- package/dist/check/language/in-outside-record.js +12 -0
- package/dist/check/language/in-outside-record.js.map +1 -0
- package/dist/check/language/is-outside-place.d.ts +4 -0
- package/dist/check/language/is-outside-place.d.ts.map +1 -0
- package/dist/check/language/is-outside-place.js +7 -0
- package/dist/check/language/is-outside-place.js.map +1 -0
- package/dist/check/language/other-language-of.d.ts +12 -0
- package/dist/check/language/other-language-of.d.ts.map +1 -0
- package/dist/check/language/other-language-of.js +46 -0
- package/dist/check/language/other-language-of.js.map +1 -0
- package/dist/check/language/record-arguments.d.ts +6 -0
- package/dist/check/language/record-arguments.d.ts.map +1 -0
- package/dist/check/language/record-arguments.js +28 -0
- package/dist/check/language/record-arguments.js.map +1 -0
- package/dist/check/language/type-declarations.d.ts +10 -0
- package/dist/check/language/type-declarations.d.ts.map +1 -0
- package/dist/check/language/type-declarations.js +37 -0
- package/dist/check/language/type-declarations.js.map +1 -0
- package/dist/check/language/type-root.d.ts +7 -0
- package/dist/check/language/type-root.d.ts.map +1 -0
- package/dist/check/language/type-root.js +43 -0
- package/dist/check/language/type-root.js.map +1 -0
- package/dist/check/language/typed-by-other-language.d.ts +9 -0
- package/dist/check/language/typed-by-other-language.d.ts.map +1 -0
- package/dist/check/language/typed-by-other-language.js +73 -0
- package/dist/check/language/typed-by-other-language.js.map +1 -0
- package/dist/check/project/markdown-under.d.ts +3 -0
- package/dist/check/project/markdown-under.d.ts.map +1 -0
- package/dist/check/project/markdown-under.js +20 -0
- package/dist/check/project/markdown-under.js.map +1 -0
- package/dist/check/project/walk-directory.js +1 -1
- package/dist/check/project/walk-directory.js.map +1 -1
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +1 -0
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.js +28 -3
- package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.d.ts +3 -0
- package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -0
- package/dist/check/rules/test-acceptance-black-box.js +38 -0
- package/dist/check/rules/test-acceptance-black-box.js.map +1 -0
- package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
- package/dist/check/rules/tree-documented-paths.js +14 -30
- package/dist/check/rules/tree-documented-paths.js.map +1 -1
- package/dist/check/text/annotation-before.d.ts +7 -0
- package/dist/check/text/annotation-before.d.ts.map +1 -0
- package/dist/check/text/annotation-before.js +30 -0
- package/dist/check/text/annotation-before.js.map +1 -0
- package/dist/check/text/type-at.d.ts +7 -0
- package/dist/check/text/type-at.d.ts.map +1 -0
- package/dist/check/text/type-at.js +22 -0
- package/dist/check/text/type-at.js.map +1 -0
- package/dist/check/text/type-brackets.d.ts +6 -0
- package/dist/check/text/type-brackets.d.ts.map +1 -0
- package/dist/check/text/type-brackets.js +11 -0
- package/dist/check/text/type-brackets.js.map +1 -0
- package/dist/check/text/type-closing.d.ts +3 -0
- package/dist/check/text/type-closing.d.ts.map +1 -0
- package/dist/check/text/type-closing.js +13 -0
- package/dist/check/text/type-closing.js.map +1 -0
- package/dist/citations/candidates-of.d.ts +16 -0
- package/dist/citations/candidates-of.d.ts.map +1 -0
- package/dist/citations/candidates-of.js +51 -0
- package/dist/citations/candidates-of.js.map +1 -0
- package/dist/citations/citation-line.d.ts +4 -0
- package/dist/citations/citation-line.d.ts.map +1 -0
- package/dist/citations/citation-line.js +36 -0
- package/dist/citations/citation-line.js.map +1 -0
- package/dist/citations/citations-of.d.ts +14 -0
- package/dist/citations/citations-of.d.ts.map +1 -0
- package/dist/citations/citations-of.js +21 -0
- package/dist/citations/citations-of.js.map +1 -0
- package/dist/citations/cited-name.d.ts +12 -0
- package/dist/citations/cited-name.d.ts.map +1 -0
- package/dist/citations/cited-name.js +2 -0
- package/dist/citations/cited-name.js.map +1 -0
- package/dist/citations/cited-names.d.ts +14 -0
- package/dist/citations/cited-names.d.ts.map +1 -0
- package/dist/citations/cited-names.js +71 -0
- package/dist/citations/cited-names.js.map +1 -0
- package/dist/citations/cited-parts.d.ts +19 -0
- package/dist/citations/cited-parts.d.ts.map +1 -0
- package/dist/citations/cited-parts.js +30 -0
- package/dist/citations/cited-parts.js.map +1 -0
- package/dist/citations/cited-removals.d.ts +8 -0
- package/dist/citations/cited-removals.d.ts.map +1 -0
- package/dist/citations/cited-removals.js +13 -0
- package/dist/citations/cited-removals.js.map +1 -0
- package/dist/citations/citing.d.ts +7 -0
- package/dist/citations/citing.d.ts.map +1 -0
- package/dist/citations/citing.js +2 -0
- package/dist/citations/citing.js.map +1 -0
- package/dist/citations/declaration.d.ts +6 -0
- package/dist/citations/declaration.d.ts.map +1 -0
- package/dist/citations/declaration.js +2 -0
- package/dist/citations/declaration.js.map +1 -0
- package/dist/citations/design-of.d.ts +9 -0
- package/dist/citations/design-of.d.ts.map +1 -0
- package/dist/citations/design-of.js +8 -0
- package/dist/citations/design-of.js.map +1 -0
- package/dist/citations/document-part.d.ts +17 -0
- package/dist/citations/document-part.d.ts.map +1 -0
- package/dist/citations/document-part.js +2 -0
- package/dist/citations/document-part.js.map +1 -0
- package/dist/citations/evidence.d.ts +14 -0
- package/dist/citations/evidence.d.ts.map +1 -0
- package/dist/citations/evidence.js +2 -0
- package/dist/citations/evidence.js.map +1 -0
- package/dist/citations/format-citations.d.ts +4 -0
- package/dist/citations/format-citations.d.ts.map +1 -0
- package/dist/citations/format-citations.js +23 -0
- package/dist/citations/format-citations.js.map +1 -0
- package/dist/citations/format-removals.d.ts +4 -0
- package/dist/citations/format-removals.d.ts.map +1 -0
- package/dist/citations/format-removals.js +15 -0
- package/dist/citations/format-removals.js.map +1 -0
- package/dist/citations/history-of.d.ts +8 -0
- package/dist/citations/history-of.d.ts.map +1 -0
- package/dist/citations/history-of.js +59 -0
- package/dist/citations/history-of.js.map +1 -0
- package/dist/citations/history.d.ts +23 -0
- package/dist/citations/history.d.ts.map +1 -0
- package/dist/citations/history.js +2 -0
- package/dist/citations/history.js.map +1 -0
- package/dist/citations/index-at-ref.d.ts +7 -0
- package/dist/citations/index-at-ref.d.ts.map +1 -0
- package/dist/citations/index-at-ref.js +22 -0
- package/dist/citations/index-at-ref.js.map +1 -0
- package/dist/citations/index-of-project.d.ts +5 -0
- package/dist/citations/index-of-project.d.ts.map +1 -0
- package/dist/citations/index-of-project.js +12 -0
- package/dist/citations/index-of-project.js.map +1 -0
- package/dist/citations/is-test-file.d.ts +3 -0
- package/dist/citations/is-test-file.d.ts.map +1 -0
- package/dist/citations/is-test-file.js +5 -0
- package/dist/citations/is-test-file.js.map +1 -0
- package/dist/citations/judge-citation.d.ts +7 -0
- package/dist/citations/judge-citation.d.ts.map +1 -0
- package/dist/citations/judge-citation.js +11 -0
- package/dist/citations/judge-citation.js.map +1 -0
- package/dist/citations/judge-member.d.ts +10 -0
- package/dist/citations/judge-member.d.ts.map +1 -0
- package/dist/citations/judge-member.js +39 -0
- package/dist/citations/judge-member.js.map +1 -0
- package/dist/citations/judge-path.d.ts +10 -0
- package/dist/citations/judge-path.d.ts.map +1 -0
- package/dist/citations/judge-path.js +38 -0
- package/dist/citations/judge-path.js.map +1 -0
- package/dist/citations/judge-symbol.d.ts +10 -0
- package/dist/citations/judge-symbol.d.ts.map +1 -0
- package/dist/citations/judge-symbol.js +29 -0
- package/dist/citations/judge-symbol.js.map +1 -0
- package/dist/citations/judged-citations.d.ts +17 -0
- package/dist/citations/judged-citations.d.ts.map +1 -0
- package/dist/citations/judged-citations.js +24 -0
- package/dist/citations/judged-citations.js.map +1 -0
- package/dist/citations/line-time.d.ts +7 -0
- package/dist/citations/line-time.d.ts.map +1 -0
- package/dist/citations/line-time.js +12 -0
- package/dist/citations/line-time.js.map +1 -0
- package/dist/citations/lines-of.d.ts +3 -0
- package/dist/citations/lines-of.d.ts.map +1 -0
- package/dist/citations/lines-of.js +5 -0
- package/dist/citations/lines-of.js.map +1 -0
- package/dist/citations/mentioned-rows.d.ts +7 -0
- package/dist/citations/mentioned-rows.d.ts.map +1 -0
- package/dist/citations/mentioned-rows.js +21 -0
- package/dist/citations/mentioned-rows.js.map +1 -0
- package/dist/citations/name-index-of.d.ts +5 -0
- package/dist/citations/name-index-of.d.ts.map +1 -0
- package/dist/citations/name-index-of.js +13 -0
- package/dist/citations/name-index-of.js.map +1 -0
- package/dist/citations/name-index.d.ts +8 -0
- package/dist/citations/name-index.d.ts.map +1 -0
- package/dist/citations/name-index.js +2 -0
- package/dist/citations/name-index.js.map +1 -0
- package/dist/citations/names-of-file.d.ts +7 -0
- package/dist/citations/names-of-file.d.ts.map +1 -0
- package/dist/citations/names-of-file.js +18 -0
- package/dist/citations/names-of-file.js.map +1 -0
- package/dist/citations/open-rows.d.ts +4 -0
- package/dist/citations/open-rows.d.ts.map +1 -0
- package/dist/citations/open-rows.js +9 -0
- package/dist/citations/open-rows.js.map +1 -0
- package/dist/citations/parts-of-document.d.ts +14 -0
- package/dist/citations/parts-of-document.d.ts.map +1 -0
- package/dist/citations/parts-of-document.js +51 -0
- package/dist/citations/parts-of-document.js.map +1 -0
- package/dist/citations/parts-of-slices.d.ts +13 -0
- package/dist/citations/parts-of-slices.d.ts.map +1 -0
- package/dist/citations/parts-of-slices.js +40 -0
- package/dist/citations/parts-of-slices.js.map +1 -0
- package/dist/citations/ref-notes.d.ts +6 -0
- package/dist/citations/ref-notes.d.ts.map +1 -0
- package/dist/citations/ref-notes.js +27 -0
- package/dist/citations/ref-notes.js.map +1 -0
- package/dist/citations/removal-naming.d.ts +9 -0
- package/dist/citations/removal-naming.d.ts.map +1 -0
- package/dist/citations/removal-naming.js +32 -0
- package/dist/citations/removal-naming.js.map +1 -0
- package/dist/citations/removals-at-ref.d.ts +8 -0
- package/dist/citations/removals-at-ref.d.ts.map +1 -0
- package/dist/citations/removals-at-ref.js +24 -0
- package/dist/citations/removals-at-ref.js.map +1 -0
- package/dist/citations/removals-since.d.ts +8 -0
- package/dist/citations/removals-since.d.ts.map +1 -0
- package/dist/citations/removals-since.js +16 -0
- package/dist/citations/removals-since.js.map +1 -0
- package/dist/citations/removed-by-of.d.ts +5 -0
- package/dist/citations/removed-by-of.d.ts.map +1 -0
- package/dist/citations/removed-by-of.js +6 -0
- package/dist/citations/removed-by-of.js.map +1 -0
- package/dist/citations/role-suffix-of.d.ts +8 -0
- package/dist/citations/role-suffix-of.d.ts.map +1 -0
- package/dist/citations/role-suffix-of.js +28 -0
- package/dist/citations/role-suffix-of.js.map +1 -0
- package/dist/citations/row-documents.d.ts +10 -0
- package/dist/citations/row-documents.d.ts.map +1 -0
- package/dist/citations/row-documents.js +42 -0
- package/dist/citations/row-documents.js.map +1 -0
- package/dist/citations/same-stem-names.d.ts +11 -0
- package/dist/citations/same-stem-names.d.ts.map +1 -0
- package/dist/citations/same-stem-names.js +41 -0
- package/dist/citations/same-stem-names.js.map +1 -0
- package/dist/citations/select-parts.d.ts +9 -0
- package/dist/citations/select-parts.d.ts.map +1 -0
- package/dist/citations/select-parts.js +11 -0
- package/dist/citations/select-parts.js.map +1 -0
- package/dist/citations/stale-citation.d.ts +39 -0
- package/dist/citations/stale-citation.d.ts.map +1 -0
- package/dist/citations/stale-citation.js +2 -0
- package/dist/citations/stale-citation.js.map +1 -0
- package/dist/citations/stale-names-at.d.ts +26 -0
- package/dist/citations/stale-names-at.d.ts.map +1 -0
- package/dist/citations/stale-names-at.js +31 -0
- package/dist/citations/stale-names-at.js.map +1 -0
- package/dist/citations/stale-names-since.d.ts +10 -0
- package/dist/citations/stale-names-since.d.ts.map +1 -0
- package/dist/citations/stale-names-since.js +26 -0
- package/dist/citations/stale-names-since.js.map +1 -0
- package/dist/citations/text-units.d.ts +7 -0
- package/dist/citations/text-units.d.ts.map +1 -0
- package/dist/citations/text-units.js +31 -0
- package/dist/citations/text-units.js.map +1 -0
- package/dist/commands/acceptance.d.ts +11 -0
- package/dist/commands/acceptance.d.ts.map +1 -0
- package/dist/commands/acceptance.js +63 -0
- package/dist/commands/acceptance.js.map +1 -0
- package/dist/commands/cited.d.ts +8 -0
- package/dist/commands/cited.d.ts.map +1 -0
- package/dist/commands/cited.js +70 -0
- package/dist/commands/cited.js.map +1 -0
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +7 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts +9 -0
- package/dist/commands/merge-trunk.d.ts.map +1 -0
- package/dist/commands/merge-trunk.js +58 -0
- package/dist/commands/merge-trunk.js.map +1 -0
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +1 -2
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/rows-option.d.ts +5 -0
- package/dist/commands/rows-option.d.ts.map +1 -0
- package/dist/commands/rows-option.js +13 -0
- package/dist/commands/rows-option.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts +9 -0
- package/dist/commands/stories.d.ts.map +1 -0
- package/dist/commands/stories.js +16 -0
- package/dist/commands/stories.js.map +1 -0
- package/dist/commands/story-check.d.ts +9 -0
- package/dist/commands/story-check.d.ts.map +1 -0
- package/dist/commands/story-check.js +21 -0
- package/dist/commands/story-check.js.map +1 -0
- package/dist/commands/story-scope.d.ts +4 -0
- package/dist/commands/story-scope.d.ts.map +1 -0
- package/dist/commands/story-scope.js +34 -0
- package/dist/commands/story-scope.js.map +1 -0
- package/dist/commands/story.d.ts +9 -0
- package/dist/commands/story.d.ts.map +1 -0
- package/dist/commands/story.js +45 -0
- package/dist/commands/story.js.map +1 -0
- package/dist/commands/verify-merge.d.ts +9 -0
- package/dist/commands/verify-merge.d.ts.map +1 -0
- package/dist/commands/verify-merge.js +33 -0
- package/dist/commands/verify-merge.js.map +1 -0
- package/dist/commands/worker-scope.d.ts +4 -1
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +19 -14
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts +7 -0
- package/dist/commands/worktree.d.ts.map +1 -0
- package/dist/commands/worktree.js +34 -0
- package/dist/commands/worktree.js.map +1 -0
- package/dist/config/config.d.ts +7 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/parse-config.js +1 -0
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/serialize-config.js +1 -0
- package/dist/config/serialize-config.js.map +1 -1
- package/dist/config/worktree-modes.d.ts +3 -0
- package/dist/config/worktree-modes.d.ts.map +1 -0
- package/dist/config/worktree-modes.js +3 -0
- package/dist/config/worktree-modes.js.map +1 -0
- package/dist/derived/is-derived.d.ts +8 -0
- package/dist/derived/is-derived.d.ts.map +1 -0
- package/dist/derived/is-derived.js +18 -0
- package/dist/derived/is-derived.js.map +1 -0
- package/dist/doctor/diagnose.d.ts +2 -2
- package/dist/doctor/diagnose.d.ts.map +1 -1
- package/dist/doctor/diagnose.js +4 -2
- package/dist/doctor/diagnose.js.map +1 -1
- package/dist/doctor/doctor-finding.d.ts +3 -2
- package/dist/doctor/doctor-finding.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.d.ts +2 -1
- package/dist/doctor/format-diagnosis.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.js +31 -6
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/doctor/hook-findings.d.ts +8 -0
- package/dist/doctor/hook-findings.d.ts.map +1 -0
- package/dist/doctor/hook-findings.js +54 -0
- package/dist/doctor/hook-findings.js.map +1 -0
- package/dist/generate/kinds/acceptance-kind.d.ts +3 -0
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -0
- package/dist/generate/kinds/acceptance-kind.js +69 -0
- package/dist/generate/kinds/acceptance-kind.js.map +1 -0
- package/dist/generate/kinds.d.ts.map +1 -1
- package/dist/generate/kinds.js +2 -0
- package/dist/generate/kinds.js.map +1 -1
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +3 -0
- package/dist/generate/shared-writes.js.map +1 -1
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +144 -12
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +13 -1
- package/dist/help/usage.js.map +1 -1
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +15 -1
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/ignore-worktrees.d.ts +7 -0
- package/dist/init/ignore-worktrees.d.ts.map +1 -0
- package/dist/init/ignore-worktrees.js +15 -0
- package/dist/init/ignore-worktrees.js.map +1 -0
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +9 -3
- package/dist/init/run-init.js.map +1 -1
- package/dist/merge/abort-merge.d.ts +6 -0
- package/dist/merge/abort-merge.d.ts.map +1 -0
- package/dist/merge/abort-merge.js +31 -0
- package/dist/merge/abort-merge.js.map +1 -0
- package/dist/merge/accept-in-merge-message.d.ts +7 -0
- package/dist/merge/accept-in-merge-message.d.ts.map +1 -0
- package/dist/merge/accept-in-merge-message.js +15 -0
- package/dist/merge/accept-in-merge-message.js.map +1 -0
- package/dist/merge/apply-resolutions.d.ts +8 -0
- package/dist/merge/apply-resolutions.d.ts.map +1 -0
- package/dist/merge/apply-resolutions.js +30 -0
- package/dist/merge/apply-resolutions.js.map +1 -0
- package/dist/merge/base-point.d.ts +34 -0
- package/dist/merge/base-point.d.ts.map +1 -0
- package/dist/merge/base-point.js +2 -0
- package/dist/merge/base-point.js.map +1 -0
- package/dist/merge/base-query.d.ts +14 -0
- package/dist/merge/base-query.d.ts.map +1 -0
- package/dist/merge/base-query.js +2 -0
- package/dist/merge/base-query.js.map +1 -0
- package/dist/merge/classify-conflict.d.ts +15 -0
- package/dist/merge/classify-conflict.d.ts.map +1 -0
- package/dist/merge/classify-conflict.js +33 -0
- package/dist/merge/classify-conflict.js.map +1 -0
- package/dist/merge/commit-merge.d.ts +15 -0
- package/dist/merge/commit-merge.d.ts.map +1 -0
- package/dist/merge/commit-merge.js +48 -0
- package/dist/merge/commit-merge.js.map +1 -0
- package/dist/merge/conflict-blocks.d.ts +23 -0
- package/dist/merge/conflict-blocks.d.ts.map +1 -0
- package/dist/merge/conflict-blocks.js +45 -0
- package/dist/merge/conflict-blocks.js.map +1 -0
- package/dist/merge/conflicted-path.d.ts +14 -0
- package/dist/merge/conflicted-path.d.ts.map +1 -0
- package/dist/merge/conflicted-path.js +2 -0
- package/dist/merge/conflicted-path.js.map +1 -0
- package/dist/merge/conflicted-paths.d.ts +9 -0
- package/dist/merge/conflicted-paths.d.ts.map +1 -0
- package/dist/merge/conflicted-paths.js +43 -0
- package/dist/merge/conflicted-paths.js.map +1 -0
- package/dist/merge/continue-merge.d.ts +16 -0
- package/dist/merge/continue-merge.d.ts.map +1 -0
- package/dist/merge/continue-merge.js +119 -0
- package/dist/merge/continue-merge.js.map +1 -0
- package/dist/merge/ensure-mergeable.d.ts +7 -0
- package/dist/merge/ensure-mergeable.d.ts.map +1 -0
- package/dist/merge/ensure-mergeable.js +42 -0
- package/dist/merge/ensure-mergeable.js.map +1 -0
- package/dist/merge/for-you-entry.d.ts +20 -0
- package/dist/merge/for-you-entry.d.ts.map +1 -0
- package/dist/merge/for-you-entry.js +47 -0
- package/dist/merge/for-you-entry.js.map +1 -0
- package/dist/merge/format-merge-report.d.ts +9 -0
- package/dist/merge/format-merge-report.d.ts.map +1 -0
- package/dist/merge/format-merge-report.js +105 -0
- package/dist/merge/format-merge-report.js.map +1 -0
- package/dist/merge/git-path.d.ts +3 -0
- package/dist/merge/git-path.d.ts.map +1 -0
- package/dist/merge/git-path.js +7 -0
- package/dist/merge/git-path.js.map +1 -0
- package/dist/merge/git-process.d.ts +14 -0
- package/dist/merge/git-process.d.ts.map +1 -0
- package/dist/merge/git-process.js +17 -0
- package/dist/merge/git-process.js.map +1 -0
- package/dist/merge/git-version.d.ts +9 -0
- package/dist/merge/git-version.d.ts.map +1 -0
- package/dist/merge/git-version.js +17 -0
- package/dist/merge/git-version.js.map +1 -0
- package/dist/merge/land-drizzle.d.ts +15 -0
- package/dist/merge/land-drizzle.d.ts.map +1 -0
- package/dist/merge/land-drizzle.js +34 -0
- package/dist/merge/land-drizzle.js.map +1 -0
- package/dist/merge/landed-commit.d.ts +20 -0
- package/dist/merge/landed-commit.d.ts.map +1 -0
- package/dist/merge/landed-commit.js +58 -0
- package/dist/merge/landed-commit.js.map +1 -0
- package/dist/merge/landed-point.d.ts +9 -0
- package/dist/merge/landed-point.d.ts.map +1 -0
- package/dist/merge/landed-point.js +80 -0
- package/dist/merge/landed-point.js.map +1 -0
- package/dist/merge/lost/changed-paths.d.ts +7 -0
- package/dist/merge/lost/changed-paths.d.ts.map +1 -0
- package/dist/merge/lost/changed-paths.js +25 -0
- package/dist/merge/lost/changed-paths.js.map +1 -0
- package/dist/merge/lost/collapsed-files.d.ts +10 -0
- package/dist/merge/lost/collapsed-files.d.ts.map +1 -0
- package/dist/merge/lost/collapsed-files.js +26 -0
- package/dist/merge/lost/collapsed-files.js.map +1 -0
- package/dist/merge/lost/commit-of.d.ts +3 -0
- package/dist/merge/lost/commit-of.d.ts.map +1 -0
- package/dist/merge/lost/commit-of.js +6 -0
- package/dist/merge/lost/commit-of.js.map +1 -0
- package/dist/merge/lost/conflict-markers.d.ts +10 -0
- package/dist/merge/lost/conflict-markers.d.ts.map +1 -0
- package/dist/merge/lost/conflict-markers.js +32 -0
- package/dist/merge/lost/conflict-markers.js.map +1 -0
- package/dist/merge/lost/deleted-specs.d.ts +5 -0
- package/dist/merge/lost/deleted-specs.d.ts.map +1 -0
- package/dist/merge/lost/deleted-specs.js +22 -0
- package/dist/merge/lost/deleted-specs.js.map +1 -0
- package/dist/merge/lost/finding-sections.d.ts +11 -0
- package/dist/merge/lost/finding-sections.d.ts.map +1 -0
- package/dist/merge/lost/finding-sections.js +46 -0
- package/dist/merge/lost/finding-sections.js.map +1 -0
- package/dist/merge/lost/format-merge-verification.d.ts +7 -0
- package/dist/merge/lost/format-merge-verification.d.ts.map +1 -0
- package/dist/merge/lost/format-merge-verification.js +45 -0
- package/dist/merge/lost/format-merge-verification.js.map +1 -0
- package/dist/merge/lost/hunk.d.ts +8 -0
- package/dist/merge/lost/hunk.d.ts.map +1 -0
- package/dist/merge/lost/hunk.js +2 -0
- package/dist/merge/lost/hunk.js.map +1 -0
- package/dist/merge/lost/hunks-of.d.ts +4 -0
- package/dist/merge/lost/hunks-of.d.ts.map +1 -0
- package/dist/merge/lost/hunks-of.js +32 -0
- package/dist/merge/lost/hunks-of.js.map +1 -0
- package/dist/merge/lost/in-progress-merge.d.ts +8 -0
- package/dist/merge/lost/in-progress-merge.d.ts.map +1 -0
- package/dist/merge/lost/in-progress-merge.js +49 -0
- package/dist/merge/lost/in-progress-merge.js.map +1 -0
- package/dist/merge/lost/is-generated-text.d.ts +6 -0
- package/dist/merge/lost/is-generated-text.d.ts.map +1 -0
- package/dist/merge/lost/is-generated-text.js +10 -0
- package/dist/merge/lost/is-generated-text.js.map +1 -0
- package/dist/merge/lost/is-line-checked.d.ts +8 -0
- package/dist/merge/lost/is-line-checked.d.ts.map +1 -0
- package/dist/merge/lost/is-line-checked.js +32 -0
- package/dist/merge/lost/is-line-checked.js.map +1 -0
- package/dist/merge/lost/kept-rows.d.ts +9 -0
- package/dist/merge/lost/kept-rows.d.ts.map +1 -0
- package/dist/merge/lost/kept-rows.js +41 -0
- package/dist/merge/lost/kept-rows.js.map +1 -0
- package/dist/merge/lost/line-counts.d.ts +19 -0
- package/dist/merge/lost/line-counts.d.ts.map +1 -0
- package/dist/merge/lost/line-counts.js +33 -0
- package/dist/merge/lost/line-counts.js.map +1 -0
- package/dist/merge/lost/line-findings.d.ts +15 -0
- package/dist/merge/lost/line-findings.d.ts.map +1 -0
- package/dist/merge/lost/line-findings.js +14 -0
- package/dist/merge/lost/line-findings.js.map +1 -0
- package/dist/merge/lost/lost-lines.d.ts +12 -0
- package/dist/merge/lost/lost-lines.d.ts.map +1 -0
- package/dist/merge/lost/lost-lines.js +64 -0
- package/dist/merge/lost/lost-lines.js.map +1 -0
- package/dist/merge/lost/lost-migrations.d.ts +9 -0
- package/dist/merge/lost/lost-migrations.d.ts.map +1 -0
- package/dist/merge/lost/lost-migrations.js +51 -0
- package/dist/merge/lost/lost-migrations.js.map +1 -0
- package/dist/merge/lost/lost-tests.d.ts +10 -0
- package/dist/merge/lost/lost-tests.d.ts.map +1 -0
- package/dist/merge/lost/lost-tests.js +43 -0
- package/dist/merge/lost/lost-tests.js.map +1 -0
- package/dist/merge/lost/merge-base-of.d.ts +17 -0
- package/dist/merge/lost/merge-base-of.d.ts.map +1 -0
- package/dist/merge/lost/merge-base-of.js +31 -0
- package/dist/merge/lost/merge-base-of.js.map +1 -0
- package/dist/merge/lost/merge-check.d.ts +14 -0
- package/dist/merge/lost/merge-check.d.ts.map +1 -0
- package/dist/merge/lost/merge-check.js +2 -0
- package/dist/merge/lost/merge-check.js.map +1 -0
- package/dist/merge/lost/merge-finding.d.ts +27 -0
- package/dist/merge/lost/merge-finding.d.ts.map +1 -0
- package/dist/merge/lost/merge-finding.js +2 -0
- package/dist/merge/lost/merge-finding.js.map +1 -0
- package/dist/merge/lost/merge-of-record.d.ts +14 -0
- package/dist/merge/lost/merge-of-record.d.ts.map +1 -0
- package/dist/merge/lost/merge-of-record.js +36 -0
- package/dist/merge/lost/merge-of-record.js.map +1 -0
- package/dist/merge/lost/merge-records.d.ts +13 -0
- package/dist/merge/lost/merge-records.d.ts.map +1 -0
- package/dist/merge/lost/merge-records.js +24 -0
- package/dist/merge/lost/merge-records.js.map +1 -0
- package/dist/merge/lost/merge-repository-of.d.ts +4 -0
- package/dist/merge/lost/merge-repository-of.d.ts.map +1 -0
- package/dist/merge/lost/merge-repository-of.js +21 -0
- package/dist/merge/lost/merge-repository-of.js.map +1 -0
- package/dist/merge/lost/merge-repository.d.ts +10 -0
- package/dist/merge/lost/merge-repository.d.ts.map +1 -0
- package/dist/merge/lost/merge-repository.js +2 -0
- package/dist/merge/lost/merge-repository.js.map +1 -0
- package/dist/merge/lost/merge-sides.d.ts +11 -0
- package/dist/merge/lost/merge-sides.d.ts.map +1 -0
- package/dist/merge/lost/merge-sides.js +2 -0
- package/dist/merge/lost/merge-sides.js.map +1 -0
- package/dist/merge/lost/merge-to-verify.d.ts +16 -0
- package/dist/merge/lost/merge-to-verify.d.ts.map +1 -0
- package/dist/merge/lost/merge-to-verify.js +2 -0
- package/dist/merge/lost/merge-to-verify.js.map +1 -0
- package/dist/merge/lost/merge-verification.d.ts +13 -0
- package/dist/merge/lost/merge-verification.d.ts.map +1 -0
- package/dist/merge/lost/merge-verification.js +2 -0
- package/dist/merge/lost/merge-verification.js.map +1 -0
- package/dist/merge/lost/merges-since.d.ts +4 -0
- package/dist/merge/lost/merges-since.d.ts.map +1 -0
- package/dist/merge/lost/merges-since.js +7 -0
- package/dist/merge/lost/merges-since.js.map +1 -0
- package/dist/merge/lost/normalized-lines.d.ts +13 -0
- package/dist/merge/lost/normalized-lines.d.ts.map +1 -0
- package/dist/merge/lost/normalized-lines.js +45 -0
- package/dist/merge/lost/normalized-lines.js.map +1 -0
- package/dist/merge/lost/ranked-places.d.ts +12 -0
- package/dist/merge/lost/ranked-places.d.ts.map +1 -0
- package/dist/merge/lost/ranked-places.js +11 -0
- package/dist/merge/lost/ranked-places.js.map +1 -0
- package/dist/merge/lost/revision-files.d.ts +9 -0
- package/dist/merge/lost/revision-files.d.ts.map +1 -0
- package/dist/merge/lost/revision-files.js +58 -0
- package/dist/merge/lost/revision-files.js.map +1 -0
- package/dist/merge/lost/rewritten-in-place.d.ts +12 -0
- package/dist/merge/lost/rewritten-in-place.d.ts.map +1 -0
- package/dist/merge/lost/rewritten-in-place.js +28 -0
- package/dist/merge/lost/rewritten-in-place.js.map +1 -0
- package/dist/merge/lost/side-hunks.d.ts +8 -0
- package/dist/merge/lost/side-hunks.d.ts.map +1 -0
- package/dist/merge/lost/side-hunks.js +18 -0
- package/dist/merge/lost/side-hunks.js.map +1 -0
- package/dist/merge/lost/since-of.d.ts +7 -0
- package/dist/merge/lost/since-of.d.ts.map +1 -0
- package/dist/merge/lost/since-of.js +22 -0
- package/dist/merge/lost/since-of.js.map +1 -0
- package/dist/merge/lost/spec-file.d.ts +3 -0
- package/dist/merge/lost/spec-file.d.ts.map +1 -0
- package/dist/merge/lost/spec-file.js +3 -0
- package/dist/merge/lost/spec-file.js.map +1 -0
- package/dist/merge/lost/superseded-lines.d.ts +25 -0
- package/dist/merge/lost/superseded-lines.d.ts.map +1 -0
- package/dist/merge/lost/superseded-lines.js +53 -0
- package/dist/merge/lost/superseded-lines.js.map +1 -0
- package/dist/merge/lost/three-way-count.d.ts +18 -0
- package/dist/merge/lost/three-way-count.d.ts.map +1 -0
- package/dist/merge/lost/three-way-count.js +18 -0
- package/dist/merge/lost/three-way-count.js.map +1 -0
- package/dist/merge/lost/verify-merge.d.ts +11 -0
- package/dist/merge/lost/verify-merge.d.ts.map +1 -0
- package/dist/merge/lost/verify-merge.js +95 -0
- package/dist/merge/lost/verify-merge.js.map +1 -0
- package/dist/merge/lost/verify-merges.d.ts +17 -0
- package/dist/merge/lost/verify-merges.d.ts.map +1 -0
- package/dist/merge/lost/verify-merges.js +49 -0
- package/dist/merge/lost/verify-merges.js.map +1 -0
- package/dist/merge/lost-lines-gate.d.ts +9 -0
- package/dist/merge/lost-lines-gate.d.ts.map +1 -0
- package/dist/merge/lost-lines-gate.js +28 -0
- package/dist/merge/lost-lines-gate.js.map +1 -0
- package/dist/merge/mentioned-tables.d.ts +3 -0
- package/dist/merge/mentioned-tables.d.ts.map +1 -0
- package/dist/merge/mentioned-tables.js +13 -0
- package/dist/merge/mentioned-tables.js.map +1 -0
- package/dist/merge/merge-context.d.ts +15 -0
- package/dist/merge/merge-context.d.ts.map +1 -0
- package/dist/merge/merge-context.js +14 -0
- package/dist/merge/merge-context.js.map +1 -0
- package/dist/merge/merge-exclusions.d.ts +8 -0
- package/dist/merge/merge-exclusions.d.ts.map +1 -0
- package/dist/merge/merge-exclusions.js +27 -0
- package/dist/merge/merge-exclusions.js.map +1 -0
- package/dist/merge/merge-message.d.ts +17 -0
- package/dist/merge/merge-message.d.ts.map +1 -0
- package/dist/merge/merge-message.js +16 -0
- package/dist/merge/merge-message.js.map +1 -0
- package/dist/merge/merge-report.d.ts +81 -0
- package/dist/merge/merge-report.d.ts.map +1 -0
- package/dist/merge/merge-report.js +2 -0
- package/dist/merge/merge-report.js.map +1 -0
- package/dist/merge/merge-slices-rows.d.ts +15 -0
- package/dist/merge/merge-slices-rows.d.ts.map +1 -0
- package/dist/merge/merge-slices-rows.js +111 -0
- package/dist/merge/merge-slices-rows.js.map +1 -0
- package/dist/merge/merge-state.d.ts +24 -0
- package/dist/merge/merge-state.d.ts.map +1 -0
- package/dist/merge/merge-state.js +41 -0
- package/dist/merge/merge-state.js.map +1 -0
- package/dist/merge/merge-steps.d.ts +18 -0
- package/dist/merge/merge-steps.d.ts.map +1 -0
- package/dist/merge/merge-steps.js +63 -0
- package/dist/merge/merge-steps.js.map +1 -0
- package/dist/merge/merge-stored-events-lock.d.ts +13 -0
- package/dist/merge/merge-stored-events-lock.d.ts.map +1 -0
- package/dist/merge/merge-stored-events-lock.js +50 -0
- package/dist/merge/merge-stored-events-lock.js.map +1 -0
- package/dist/merge/merge-trunk.d.ts +21 -0
- package/dist/merge/merge-trunk.d.ts.map +1 -0
- package/dist/merge/merge-trunk.js +150 -0
- package/dist/merge/merge-trunk.js.map +1 -0
- package/dist/merge/migrations-at.d.ts +11 -0
- package/dist/merge/migrations-at.d.ts.map +1 -0
- package/dist/merge/migrations-at.js +25 -0
- package/dist/merge/migrations-at.js.map +1 -0
- package/dist/merge/next-migration-number.d.ts +7 -0
- package/dist/merge/next-migration-number.d.ts.map +1 -0
- package/dist/merge/next-migration-number.js +17 -0
- package/dist/merge/next-migration-number.js.map +1 -0
- package/dist/merge/next-steps.d.ts +16 -0
- package/dist/merge/next-steps.d.ts.map +1 -0
- package/dist/merge/next-steps.js +16 -0
- package/dist/merge/next-steps.js.map +1 -0
- package/dist/merge/object-bytes.d.ts +6 -0
- package/dist/merge/object-bytes.d.ts.map +1 -0
- package/dist/merge/object-bytes.js +34 -0
- package/dist/merge/object-bytes.js.map +1 -0
- package/dist/merge/patch-ids-of.d.ts +7 -0
- package/dist/merge/patch-ids-of.d.ts.map +1 -0
- package/dist/merge/patch-ids-of.js +20 -0
- package/dist/merge/patch-ids-of.js.map +1 -0
- package/dist/merge/plain-git-merge.d.ts +11 -0
- package/dist/merge/plain-git-merge.d.ts.map +1 -0
- package/dist/merge/plain-git-merge.js +27 -0
- package/dist/merge/plain-git-merge.js.map +1 -0
- package/dist/merge/preview-merge.d.ts +27 -0
- package/dist/merge/preview-merge.d.ts.map +1 -0
- package/dist/merge/preview-merge.js +39 -0
- package/dist/merge/preview-merge.js.map +1 -0
- package/dist/merge/recorded-base.d.ts +11 -0
- package/dist/merge/recorded-base.d.ts.map +1 -0
- package/dist/merge/recorded-base.js +34 -0
- package/dist/merge/recorded-base.js.map +1 -0
- package/dist/merge/registry-union.d.ts +8 -0
- package/dist/merge/registry-union.d.ts.map +1 -0
- package/dist/merge/registry-union.js +22 -0
- package/dist/merge/registry-union.js.map +1 -0
- package/dist/merge/renumber-adrs.d.ts +19 -0
- package/dist/merge/renumber-adrs.d.ts.map +1 -0
- package/dist/merge/renumber-adrs.js +65 -0
- package/dist/merge/renumber-adrs.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +23 -0
- package/dist/merge/renumber-migrations.d.ts.map +1 -0
- package/dist/merge/renumber-migrations.js +84 -0
- package/dist/merge/renumber-migrations.js.map +1 -0
- package/dist/merge/resolution.d.ts +19 -0
- package/dist/merge/resolution.d.ts.map +1 -0
- package/dist/merge/resolution.js +2 -0
- package/dist/merge/resolution.js.map +1 -0
- package/dist/merge/resolve-conflict.d.ts +11 -0
- package/dist/merge/resolve-conflict.d.ts.map +1 -0
- package/dist/merge/resolve-conflict.js +82 -0
- package/dist/merge/resolve-conflict.js.map +1 -0
- package/dist/merge/resume-merge.d.ts +5 -0
- package/dist/merge/resume-merge.d.ts.map +1 -0
- package/dist/merge/resume-merge.js +24 -0
- package/dist/merge/resume-merge.js.map +1 -0
- package/dist/merge/settle-regions.d.ts +10 -0
- package/dist/merge/settle-regions.d.ts.map +1 -0
- package/dist/merge/settle-regions.js +44 -0
- package/dist/merge/settle-regions.js.map +1 -0
- package/dist/merge/sharing-branches.d.ts +20 -0
- package/dist/merge/sharing-branches.d.ts.map +1 -0
- package/dist/merge/sharing-branches.js +24 -0
- package/dist/merge/sharing-branches.js.map +1 -0
- package/dist/merge/slices-table.d.ts +17 -0
- package/dist/merge/slices-table.d.ts.map +1 -0
- package/dist/merge/slices-table.js +35 -0
- package/dist/merge/slices-table.js.map +1 -0
- package/dist/merge/start-merge.d.ts +15 -0
- package/dist/merge/start-merge.d.ts.map +1 -0
- package/dist/merge/start-merge.js +33 -0
- package/dist/merge/start-merge.js.map +1 -0
- package/dist/merge/trunk-of.d.ts +9 -0
- package/dist/merge/trunk-of.d.ts.map +1 -0
- package/dist/merge/trunk-of.js +21 -0
- package/dist/merge/trunk-of.js.map +1 -0
- package/dist/merge/unmerged-entries.d.ts +4 -0
- package/dist/merge/unmerged-entries.d.ts.map +1 -0
- package/dist/merge/unmerged-entries.js +15 -0
- package/dist/merge/unmerged-entries.js.map +1 -0
- package/dist/migration/replay-drizzle-migrations.d.ts +5 -0
- package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
- package/dist/migration/replay-drizzle-migrations.js +2 -2
- package/dist/migration/replay-drizzle-migrations.js.map +1 -1
- package/dist/migration/replayed-name.d.ts +5 -4
- package/dist/migration/replayed-name.d.ts.map +1 -1
- package/dist/migration/replayed-name.js +6 -5
- package/dist/migration/replayed-name.js.map +1 -1
- package/dist/plan/batched-waves.d.ts +0 -2
- package/dist/plan/batched-waves.d.ts.map +1 -1
- package/dist/plan/batched-waves.js +4 -4
- package/dist/plan/batched-waves.js.map +1 -1
- package/dist/plan/format-plan.d.ts +4 -1
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +7 -1
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/plan-waves.d.ts +0 -2
- package/dist/plan/plan-waves.d.ts.map +1 -1
- package/dist/plan/plan-waves.js +2 -2
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/progress/cells-of.d.ts +3 -0
- package/dist/progress/cells-of.d.ts.map +1 -0
- package/dist/progress/cells-of.js +12 -0
- package/dist/progress/cells-of.js.map +1 -0
- package/dist/progress/format-progress.d.ts.map +1 -1
- package/dist/progress/format-progress.js +9 -0
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/progress.d.ts +16 -0
- package/dist/progress/progress.d.ts.map +1 -1
- package/dist/progress/read-progress.d.ts +9 -3
- package/dist/progress/read-progress.d.ts.map +1 -1
- package/dist/progress/read-progress.js +18 -6
- package/dist/progress/read-progress.js.map +1 -1
- package/dist/progress/read-slice-rules.d.ts.map +1 -1
- package/dist/progress/read-slice-rules.js +1 -6
- package/dist/progress/read-slice-rules.js.map +1 -1
- package/dist/progress/read-slices.d.ts +2 -3
- package/dist/progress/read-slices.d.ts.map +1 -1
- package/dist/progress/read-slices.js +4 -50
- package/dist/progress/read-slices.js.map +1 -1
- package/dist/progress/rule-line.d.ts +7 -0
- package/dist/progress/rule-line.d.ts.map +1 -0
- package/dist/progress/rule-line.js +7 -0
- package/dist/progress/rule-line.js.map +1 -0
- package/dist/progress/slices-in.d.ts +8 -0
- package/dist/progress/slices-in.d.ts.map +1 -0
- package/dist/progress/slices-in.js +45 -0
- package/dist/progress/slices-in.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +18 -0
- package/dist/run.js.map +1 -1
- package/dist/slice/format-slice-verification.d.ts.map +1 -1
- package/dist/slice/format-slice-verification.js +45 -6
- package/dist/slice/format-slice-verification.js.map +1 -1
- package/dist/slice/plan-staging.d.ts +1 -1
- package/dist/slice/plan-staging.d.ts.map +1 -1
- package/dist/slice/plan-staging.js +6 -15
- package/dist/slice/plan-staging.js.map +1 -1
- package/dist/slice/record-verification.d.ts +8 -0
- package/dist/slice/record-verification.d.ts.map +1 -0
- package/dist/slice/record-verification.js +28 -0
- package/dist/slice/record-verification.js.map +1 -0
- package/dist/slice/slice-verification.d.ts +10 -0
- package/dist/slice/slice-verification.d.ts.map +1 -1
- package/dist/slice/verification-file.d.ts +3 -0
- package/dist/slice/verification-file.d.ts.map +1 -0
- package/dist/slice/verification-file.js +3 -0
- package/dist/slice/verification-file.js.map +1 -0
- package/dist/slice/verify-slice.d.ts +5 -2
- package/dist/slice/verify-slice.d.ts.map +1 -1
- package/dist/slice/verify-slice.js +26 -5
- package/dist/slice/verify-slice.js.map +1 -1
- package/dist/slice/worker-slice-of.d.ts +15 -0
- package/dist/slice/worker-slice-of.d.ts.map +1 -0
- package/dist/slice/worker-slice-of.js +32 -0
- package/dist/slice/worker-slice-of.js.map +1 -0
- package/dist/stories/forecast-merge.d.ts +14 -0
- package/dist/stories/forecast-merge.d.ts.map +1 -0
- package/dist/stories/forecast-merge.js +44 -0
- package/dist/stories/forecast-merge.js.map +1 -0
- package/dist/stories/format-stories.d.ts +4 -0
- package/dist/stories/format-stories.d.ts.map +1 -0
- package/dist/stories/format-stories.js +66 -0
- package/dist/stories/format-stories.js.map +1 -0
- package/dist/stories/format-story-phases.d.ts +5 -0
- package/dist/stories/format-story-phases.d.ts.map +1 -0
- package/dist/stories/format-story-phases.js +14 -0
- package/dist/stories/format-story-phases.js.map +1 -0
- package/dist/stories/merge-forecast.d.ts +18 -0
- package/dist/stories/merge-forecast.d.ts.map +1 -0
- package/dist/stories/merge-forecast.js +2 -0
- package/dist/stories/merge-forecast.js.map +1 -0
- package/dist/stories/open-stories.d.ts +8 -0
- package/dist/stories/open-stories.d.ts.map +1 -0
- package/dist/stories/open-stories.js +31 -0
- package/dist/stories/open-stories.js.map +1 -0
- package/dist/stories/open-story-scope.d.ts +23 -0
- package/dist/stories/open-story-scope.d.ts.map +1 -0
- package/dist/stories/open-story-scope.js +86 -0
- package/dist/stories/open-story-scope.js.map +1 -0
- package/dist/stories/open-story.d.ts +11 -0
- package/dist/stories/open-story.d.ts.map +1 -0
- package/dist/stories/open-story.js +2 -0
- package/dist/stories/open-story.js.map +1 -0
- package/dist/stories/read-stories.d.ts +9 -0
- package/dist/stories/read-stories.d.ts.map +1 -0
- package/dist/stories/read-stories.js +60 -0
- package/dist/stories/read-stories.js.map +1 -0
- package/dist/stories/read-story-phases.d.ts +10 -0
- package/dist/stories/read-story-phases.d.ts.map +1 -0
- package/dist/stories/read-story-phases.js +144 -0
- package/dist/stories/read-story-phases.js.map +1 -0
- package/dist/stories/read-story-place.d.ts +4 -0
- package/dist/stories/read-story-place.d.ts.map +1 -0
- package/dist/stories/read-story-place.js +23 -0
- package/dist/stories/read-story-place.js.map +1 -0
- package/dist/stories/review-file-of.d.ts +4 -0
- package/dist/stories/review-file-of.d.ts.map +1 -0
- package/dist/stories/review-file-of.js +7 -0
- package/dist/stories/review-file-of.js.map +1 -0
- package/dist/stories/section-of.d.ts +3 -0
- package/dist/stories/section-of.d.ts.map +1 -0
- package/dist/stories/section-of.js +11 -0
- package/dist/stories/section-of.js.map +1 -0
- package/dist/stories/stories-view.d.ts +13 -0
- package/dist/stories/stories-view.d.ts.map +1 -0
- package/dist/stories/stories-view.js +2 -0
- package/dist/stories/stories-view.js.map +1 -0
- package/dist/stories/story-crossing.d.ts +16 -0
- package/dist/stories/story-crossing.d.ts.map +1 -0
- package/dist/stories/story-crossing.js +2 -0
- package/dist/stories/story-crossing.js.map +1 -0
- package/dist/stories/story-gate.d.ts +4 -0
- package/dist/stories/story-gate.d.ts.map +1 -0
- package/dist/stories/story-gate.js +2 -0
- package/dist/stories/story-gate.js.map +1 -0
- package/dist/stories/story-phase.d.ts +13 -0
- package/dist/stories/story-phase.d.ts.map +1 -0
- package/dist/stories/story-phase.js +2 -0
- package/dist/stories/story-phase.js.map +1 -0
- package/dist/stories/story-place.d.ts +14 -0
- package/dist/stories/story-place.d.ts.map +1 -0
- package/dist/stories/story-place.js +2 -0
- package/dist/stories/story-place.js.map +1 -0
- package/dist/stories/story-scope-file.d.ts +3 -0
- package/dist/stories/story-scope-file.d.ts.map +1 -0
- package/dist/stories/story-scope-file.js +3 -0
- package/dist/stories/story-scope-file.js.map +1 -0
- package/dist/stories/story-scope.d.ts +17 -0
- package/dist/stories/story-scope.d.ts.map +1 -0
- package/dist/stories/story-scope.js +2 -0
- package/dist/stories/story-scope.js.map +1 -0
- package/dist/stories/story-state.d.ts +13 -0
- package/dist/stories/story-state.d.ts.map +1 -0
- package/dist/stories/story-state.js +2 -0
- package/dist/stories/story-state.js.map +1 -0
- package/dist/stories/trunk-phase.d.ts +8 -0
- package/dist/stories/trunk-phase.d.ts.map +1 -0
- package/dist/stories/trunk-phase.js +27 -0
- package/dist/stories/trunk-phase.js.map +1 -0
- package/dist/story/attribute-markers.d.ts +13 -0
- package/dist/story/attribute-markers.d.ts.map +1 -0
- package/dist/story/attribute-markers.js +38 -0
- package/dist/story/attribute-markers.js.map +1 -0
- package/dist/story/attributed-marker.d.ts +24 -0
- package/dist/story/attributed-marker.d.ts.map +1 -0
- package/dist/story/attributed-marker.js +2 -0
- package/dist/story/attributed-marker.js.map +1 -0
- package/dist/story/blamed-lines.d.ts +10 -0
- package/dist/story/blamed-lines.d.ts.map +1 -0
- package/dist/story/blamed-lines.js +36 -0
- package/dist/story/blamed-lines.js.map +1 -0
- package/dist/story/closing-of.d.ts +11 -0
- package/dist/story/closing-of.d.ts.map +1 -0
- package/dist/story/closing-of.js +87 -0
- package/dist/story/closing-of.js.map +1 -0
- package/dist/story/commit-rows.d.ts +16 -0
- package/dist/story/commit-rows.d.ts.map +1 -0
- package/dist/story/commit-rows.js +23 -0
- package/dist/story/commit-rows.js.map +1 -0
- package/dist/story/format-story-closing.d.ts +8 -0
- package/dist/story/format-story-closing.d.ts.map +1 -0
- package/dist/story/format-story-closing.js +89 -0
- package/dist/story/format-story-closing.js.map +1 -0
- package/dist/story/may-keep-open.d.ts +9 -0
- package/dist/story/may-keep-open.d.ts.map +1 -0
- package/dist/story/may-keep-open.js +12 -0
- package/dist/story/may-keep-open.js.map +1 -0
- package/dist/story/project-contexts.d.ts +5 -0
- package/dist/story/project-contexts.d.ts.map +1 -0
- package/dist/story/project-contexts.js +5 -0
- package/dist/story/project-contexts.js.map +1 -0
- package/dist/story/read-story-closing.d.ts +7 -0
- package/dist/story/read-story-closing.d.ts.map +1 -0
- package/dist/story/read-story-closing.js +44 -0
- package/dist/story/read-story-closing.js.map +1 -0
- package/dist/story/story-closing.d.ts +41 -0
- package/dist/story/story-closing.d.ts.map +1 -0
- package/dist/story/story-closing.js +2 -0
- package/dist/story/story-closing.js.map +1 -0
- package/dist/story/story-of.d.ts +7 -0
- package/dist/story/story-of.d.ts.map +1 -0
- package/dist/story/story-of.js +9 -0
- package/dist/story/story-of.js.map +1 -0
- package/dist/story/story-plan.d.ts +12 -0
- package/dist/story/story-plan.d.ts.map +1 -0
- package/dist/story/story-plan.js +2 -0
- package/dist/story/story-plan.js.map +1 -0
- package/dist/story/story-scope.d.ts +14 -0
- package/dist/story/story-scope.d.ts.map +1 -0
- package/dist/story/story-scope.js +14 -0
- package/dist/story/story-scope.js.map +1 -0
- package/dist/story/unclosed-stories.d.ts +19 -0
- package/dist/story/unclosed-stories.d.ts.map +1 -0
- package/dist/story/unclosed-stories.js +20 -0
- package/dist/story/unclosed-stories.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/add-worktree.d.ts +7 -0
- package/dist/worker/add-worktree.d.ts.map +1 -0
- package/dist/worker/add-worktree.js +13 -0
- package/dist/worker/add-worktree.js.map +1 -0
- package/dist/worker/agent-file.d.ts +3 -0
- package/dist/worker/agent-file.d.ts.map +1 -0
- package/dist/worker/agent-file.js +3 -0
- package/dist/worker/agent-file.js.map +1 -0
- package/dist/worker/branch-exists.d.ts +3 -0
- package/dist/worker/branch-exists.d.ts.map +1 -0
- package/dist/worker/branch-exists.js +6 -0
- package/dist/worker/branch-exists.js.map +1 -0
- package/dist/worker/branch-standing.d.ts +24 -0
- package/dist/worker/branch-standing.d.ts.map +1 -0
- package/dist/worker/branch-standing.js +47 -0
- package/dist/worker/branch-standing.js.map +1 -0
- package/dist/worker/briefed-rows.d.ts +3 -2
- package/dist/worker/briefed-rows.d.ts.map +1 -1
- package/dist/worker/briefed-rows.js +32 -7
- package/dist/worker/briefed-rows.js.map +1 -1
- package/dist/worker/briefed-slice.d.ts +3 -0
- package/dist/worker/briefed-slice.d.ts.map +1 -1
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +37 -7
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/design-line.d.ts +4 -0
- package/dist/worker/design-line.d.ts.map +1 -0
- package/dist/worker/design-line.js +9 -0
- package/dist/worker/design-line.js.map +1 -0
- package/dist/worker/design-note.d.ts +4 -0
- package/dist/worker/design-note.d.ts.map +1 -0
- package/dist/worker/design-note.js +19 -0
- package/dist/worker/design-note.js.map +1 -0
- package/dist/worker/ensure-contains-base.d.ts +3 -1
- package/dist/worker/ensure-contains-base.d.ts.map +1 -1
- package/dist/worker/ensure-contains-base.js +4 -2
- package/dist/worker/ensure-contains-base.js.map +1 -1
- package/dist/worker/ensure-ignored.d.ts +7 -0
- package/dist/worker/ensure-ignored.d.ts.map +1 -0
- package/dist/worker/ensure-ignored.js +17 -0
- package/dist/worker/ensure-ignored.js.map +1 -0
- package/dist/worker/find-worker.d.ts +23 -0
- package/dist/worker/find-worker.d.ts.map +1 -0
- package/dist/worker/find-worker.js +42 -0
- package/dist/worker/find-worker.js.map +1 -0
- package/dist/worker/format-resume.d.ts +4 -0
- package/dist/worker/format-resume.d.ts.map +1 -0
- package/dist/worker/format-resume.js +60 -0
- package/dist/worker/format-resume.js.map +1 -0
- package/dist/worker/format-workers.d.ts.map +1 -1
- package/dist/worker/format-workers.js +33 -5
- package/dist/worker/format-workers.js.map +1 -1
- package/dist/worker/install-dependencies.d.ts +16 -0
- package/dist/worker/install-dependencies.d.ts.map +1 -0
- package/dist/worker/install-dependencies.js +32 -0
- package/dist/worker/install-dependencies.js.map +1 -0
- package/dist/worker/install-notes.d.ts +9 -0
- package/dist/worker/install-notes.d.ts.map +1 -0
- package/dist/worker/install-notes.js +25 -0
- package/dist/worker/install-notes.js.map +1 -0
- package/dist/worker/is-worktree.d.ts +3 -0
- package/dist/worker/is-worktree.d.ts.map +1 -0
- package/dist/worker/is-worktree.js +15 -0
- package/dist/worker/is-worktree.js.map +1 -0
- package/dist/worker/landed-rows.d.ts +7 -0
- package/dist/worker/landed-rows.d.ts.map +1 -0
- package/dist/worker/landed-rows.js +8 -0
- package/dist/worker/landed-rows.js.map +1 -0
- package/dist/worker/named-paths.d.ts +3 -0
- package/dist/worker/named-paths.d.ts.map +1 -0
- package/dist/worker/named-paths.js +8 -0
- package/dist/worker/named-paths.js.map +1 -0
- package/dist/worker/next-step-of.d.ts +23 -0
- package/dist/worker/next-step-of.d.ts.map +1 -0
- package/dist/worker/next-step-of.js +32 -0
- package/dist/worker/next-step-of.js.map +1 -0
- package/dist/worker/open-worker-scope.d.ts +11 -3
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +91 -53
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/worker/progress-of.d.ts +14 -0
- package/dist/worker/progress-of.d.ts.map +1 -0
- package/dist/worker/progress-of.js +107 -0
- package/dist/worker/progress-of.js.map +1 -0
- package/dist/worker/read-agent-record.d.ts +4 -0
- package/dist/worker/read-agent-record.d.ts.map +1 -0
- package/dist/worker/read-agent-record.js +40 -0
- package/dist/worker/read-agent-record.js.map +1 -0
- package/dist/worker/read-verification.d.ts +9 -0
- package/dist/worker/read-verification.d.ts.map +1 -0
- package/dist/worker/read-verification.js +26 -0
- package/dist/worker/read-verification.js.map +1 -0
- package/dist/worker/read-worker-file.d.ts.map +1 -1
- package/dist/worker/read-worker-file.js +2 -1
- package/dist/worker/read-worker-file.js.map +1 -1
- package/dist/worker/read-workers.d.ts.map +1 -1
- package/dist/worker/read-workers.js +29 -9
- package/dist/worker/read-workers.js.map +1 -1
- package/dist/worker/repository-prefix.d.ts +3 -0
- package/dist/worker/repository-prefix.d.ts.map +1 -0
- package/dist/worker/repository-prefix.js +14 -0
- package/dist/worker/repository-prefix.js.map +1 -0
- package/dist/worker/resume-briefing.d.ts +17 -0
- package/dist/worker/resume-briefing.d.ts.map +1 -0
- package/dist/worker/resume-briefing.js +76 -0
- package/dist/worker/resume-briefing.js.map +1 -0
- package/dist/worker/resume-message.d.ts +15 -0
- package/dist/worker/resume-message.d.ts.map +1 -0
- package/dist/worker/resume-message.js +43 -0
- package/dist/worker/resume-message.js.map +1 -0
- package/dist/worker/resume-worker.d.ts +34 -0
- package/dist/worker/resume-worker.d.ts.map +1 -0
- package/dist/worker/resume-worker.js +47 -0
- package/dist/worker/resume-worker.js.map +1 -0
- package/dist/worker/row-commits.d.ts +22 -0
- package/dist/worker/row-commits.d.ts.map +1 -0
- package/dist/worker/row-commits.js +57 -0
- package/dist/worker/row-commits.js.map +1 -0
- package/dist/worker/rows-on-branches.d.ts +2 -1
- package/dist/worker/rows-on-branches.d.ts.map +1 -1
- package/dist/worker/rows-on-branches.js +2 -1
- package/dist/worker/rows-on-branches.js.map +1 -1
- package/dist/worker/stale-names-block.d.ts +4 -0
- package/dist/worker/stale-names-block.d.ts.map +1 -0
- package/dist/worker/stale-names-block.js +17 -0
- package/dist/worker/stale-names-block.js.map +1 -0
- package/dist/worker/state-line-of.d.ts +9 -0
- package/dist/worker/state-line-of.d.ts.map +1 -0
- package/dist/worker/state-line-of.js +55 -0
- package/dist/worker/state-line-of.js.map +1 -0
- package/dist/worker/upstream-of.d.ts +8 -0
- package/dist/worker/upstream-of.d.ts.map +1 -0
- package/dist/worker/upstream-of.js +18 -0
- package/dist/worker/upstream-of.js.map +1 -0
- package/dist/worker/worker-file.d.ts +2 -0
- package/dist/worker/worker-file.d.ts.map +1 -1
- package/dist/worker/worker-place.d.ts +3 -0
- package/dist/worker/worker-place.d.ts.map +1 -1
- package/dist/worker/worker-progress.d.ts +87 -0
- package/dist/worker/worker-progress.d.ts.map +1 -0
- package/dist/worker/worker-progress.js +2 -0
- package/dist/worker/worker-progress.js.map +1 -0
- package/dist/worker/worker-scope.d.ts +3 -0
- package/dist/worker/worker-scope.d.ts.map +1 -1
- package/dist/worker/workers-status.d.ts +29 -3
- package/dist/worker/workers-status.d.ts.map +1 -1
- package/dist/worker/worktree-home.d.ts +9 -0
- package/dist/worker/worktree-home.d.ts.map +1 -0
- package/dist/worker/worktree-home.js +17 -0
- package/dist/worker/worktree-home.js.map +1 -0
- package/dist/worker/worktree-of.d.ts +13 -0
- package/dist/worker/worktree-of.d.ts.map +1 -0
- package/dist/worker/worktree-of.js +30 -0
- package/dist/worker/worktree-of.js.map +1 -0
- package/dist/worktree/open-worktree.d.ts +20 -0
- package/dist/worktree/open-worktree.d.ts.map +1 -0
- package/dist/worktree/open-worktree.js +57 -0
- package/dist/worktree/open-worktree.js.map +1 -0
- package/dist/worktree/worktree-scope.d.ts +15 -0
- package/dist/worktree/worktree-scope.d.ts.map +1 -0
- package/dist/worktree/worktree-scope.js +2 -0
- package/dist/worktree/worktree-scope.js.map +1 -0
- package/package.json +2 -2
- package/templates/acceptance/acceptance.spec.ts.tpl +35 -0
- package/templates/init/AGENTS.md.tpl +1 -1
- package/templates/init/docker/dockerignore.tpl +1 -0
- package/templates/init/e2e/jest.e2e.config.js.tpl +1 -1
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +1 -1
- package/templates/init/gitignore.tpl +1 -0
- package/templates/init/rules/application.md.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +3 -0
- package/templates/pipeline/biome.json.tpl +1 -0
- package/templates/pipeline/lefthook.yml +5 -0
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/vitest.config.ts.tpl +28 -27
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Lines a merge settled, or one conflict with its three sides as diff3 markers wrote them. */
|
|
2
|
+
export type Segment = SettledLines | ConflictBlock;
|
|
3
|
+
interface SettledLines {
|
|
4
|
+
readonly kind: 'settled';
|
|
5
|
+
readonly lines: readonly string[];
|
|
6
|
+
}
|
|
7
|
+
export interface ConflictBlock {
|
|
8
|
+
readonly kind: 'conflict';
|
|
9
|
+
readonly ours: readonly string[];
|
|
10
|
+
readonly base: readonly string[];
|
|
11
|
+
readonly theirs: readonly string[];
|
|
12
|
+
/** The block as written, markers included, to write it back untouched. */
|
|
13
|
+
readonly raw: readonly string[];
|
|
14
|
+
/** The line of its first marker in the file, from 1. */
|
|
15
|
+
readonly line: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The segments of a file a merge wrote with diff3 markers, in their order. A block left open at
|
|
19
|
+
* the end of the file is read as settled lines: nothing is resolved from a block not understood.
|
|
20
|
+
*/
|
|
21
|
+
export declare function conflictBlocks(text: string): Segment[];
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=conflict-blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflict-blocks.d.ts","sourceRoot":"","sources":["../../src/merge/conflict-blocks.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,aAAa,CAAC;AAEnD,UAAU,YAAY;IACpB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AASD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,CAyBtD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const OPENING = /^<{7}(?: |$)/;
|
|
2
|
+
const BASE = /^\|{7}(?: |$)/;
|
|
3
|
+
const MIDDLE = /^={7}$/;
|
|
4
|
+
const CLOSING = /^>{7}(?: |$)/;
|
|
5
|
+
/**
|
|
6
|
+
* The segments of a file a merge wrote with diff3 markers, in their order. A block left open at
|
|
7
|
+
* the end of the file is read as settled lines: nothing is resolved from a block not understood.
|
|
8
|
+
*/
|
|
9
|
+
export function conflictBlocks(text) {
|
|
10
|
+
const segments = [];
|
|
11
|
+
let settled = [];
|
|
12
|
+
let open;
|
|
13
|
+
text.split('\n').forEach((line, index) => {
|
|
14
|
+
if (open === undefined) {
|
|
15
|
+
if (OPENING.test(line)) {
|
|
16
|
+
segments.push({ kind: 'settled', lines: settled });
|
|
17
|
+
settled = [];
|
|
18
|
+
open = { parts: { ours: [], base: [], theirs: [] }, part: 'ours', raw: [line], line: index + 1 };
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
settled.push(line);
|
|
22
|
+
}
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
open.raw.push(line);
|
|
26
|
+
open = advanced(open, line, segments);
|
|
27
|
+
});
|
|
28
|
+
const last = { kind: 'settled', lines: [...settled, ...(open?.raw ?? [])] };
|
|
29
|
+
return [...segments, last].filter((segment) => segment.kind === 'conflict' || segment.lines.length > 0);
|
|
30
|
+
}
|
|
31
|
+
function advanced(open, line, segments) {
|
|
32
|
+
if (BASE.test(line) && open.part === 'ours') {
|
|
33
|
+
return { ...open, part: 'base' };
|
|
34
|
+
}
|
|
35
|
+
if (MIDDLE.test(line) && open.part !== 'theirs') {
|
|
36
|
+
return { ...open, part: 'theirs' };
|
|
37
|
+
}
|
|
38
|
+
if (CLOSING.test(line) && open.part === 'theirs') {
|
|
39
|
+
segments.push({ kind: 'conflict', ...open.parts, raw: open.raw, line: open.line });
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
open.parts[open.part].push(line);
|
|
43
|
+
return open;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=conflict-blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflict-blocks.js","sourceRoot":"","sources":["../../src/merge/conflict-blocks.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAO,GAAG,cAAc,CAAC;AAC/B,MAAM,IAAI,GAAG,eAAe,CAAC;AAC7B,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,MAAM,OAAO,GAAG,cAAc,CAAC;AAI/B;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,QAAQ,GAAc,EAAE,CAAC;IAC/B,IAAI,OAAO,GAAa,EAAE,CAAC;IAC3B,IAAI,IAA4F,CAAC;IAEjG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvC,IAAI,IAAI,KA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G,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACnC,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAChD,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACrC,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACjD,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAEnF,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEjC,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** A path a merge left conflicted: the text of each side it has, and what the merge wrote. */
|
|
2
|
+
export interface ConflictedPath {
|
|
3
|
+
/** From the top of the repository. */
|
|
4
|
+
readonly file: string;
|
|
5
|
+
/** Each side as text; absent when that side has no such file. */
|
|
6
|
+
readonly base?: string;
|
|
7
|
+
readonly ours?: string;
|
|
8
|
+
readonly theirs?: string;
|
|
9
|
+
/** What the merge wrote, conflicts as diff3 markers; absent when it wrote nothing. */
|
|
10
|
+
readonly merged?: string;
|
|
11
|
+
/** A side holds bytes that are not text: nothing is merged from it. */
|
|
12
|
+
readonly binary: boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=conflicted-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflicted-path.d.ts","sourceRoot":"","sources":["../../src/merge/conflicted-path.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflicted-path.js","sourceRoot":"","sources":["../../src/merge/conflicted-path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConflictedPath } from './conflicted-path.js';
|
|
2
|
+
import type { StageEntry } from './preview-merge.js';
|
|
3
|
+
/** Where the text a merge wrote for a conflicted path is read: the tree `merge-tree` wrote, or the working tree. */
|
|
4
|
+
export type MergedFrom = {
|
|
5
|
+
readonly tree: string;
|
|
6
|
+
} | 'worktree';
|
|
7
|
+
/** The conflicted paths with the text of each side and what the merge wrote, read in one pass. */
|
|
8
|
+
export declare function conflictedPaths(top: string, conflicts: ReadonlyMap<string, readonly StageEntry[]>, from: MergedFrom): ConflictedPath[];
|
|
9
|
+
//# sourceMappingURL=conflicted-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflicted-paths.d.ts","sourceRoot":"","sources":["../../src/merge/conflicted-paths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,oHAAoH;AACpH,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,CAAC;AAMhE,kGAAkG;AAClG,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC,EACrD,IAAI,EAAE,UAAU,GACf,cAAc,EAAE,CA2BlB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { objectBytes } from './object-bytes.js';
|
|
4
|
+
const STAGES = { base: 1, ours: 2, theirs: 3 };
|
|
5
|
+
/** The conflicted paths with the text of each side and what the merge wrote, read in one pass. */
|
|
6
|
+
export function conflictedPaths(top, conflicts, from) {
|
|
7
|
+
const files = [...conflicts.keys()];
|
|
8
|
+
const bytes = objectBytes(top, [...conflicts.values()].flat().map((entry) => entry.object));
|
|
9
|
+
const trees = from === 'worktree'
|
|
10
|
+
? new Map()
|
|
11
|
+
: objectBytes(top, files.map((file) => `${from.tree}:${file}`));
|
|
12
|
+
return files.map((file) => {
|
|
13
|
+
const side = (key) => {
|
|
14
|
+
const entry = conflicts.get(file)?.find((candidate) => candidate.stage === STAGES[key]);
|
|
15
|
+
return entry === undefined || entry.mode === '160000' ? undefined : bytes.get(entry.object);
|
|
16
|
+
};
|
|
17
|
+
const merged = from === 'worktree' ? readIfFile(path.join(top, file)) : trees.get(`${from.tree}:${file}`);
|
|
18
|
+
return pathOf(file, { base: side('base'), ours: side('ours'), theirs: side('theirs'), merged });
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function pathOf(file, sides) {
|
|
22
|
+
const text = (key) => {
|
|
23
|
+
const content = sides[key];
|
|
24
|
+
return content === undefined ? {} : { [key]: content.toString('utf8') };
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
file,
|
|
28
|
+
binary: Object.values(sides).some((content) => content?.includes(0) === true),
|
|
29
|
+
...text('base'),
|
|
30
|
+
...text('ours'),
|
|
31
|
+
...text('theirs'),
|
|
32
|
+
...text('merged'),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function readIfFile(file) {
|
|
36
|
+
try {
|
|
37
|
+
return fs.readFileSync(file);
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=conflicted-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflicted-paths.js","sourceRoot":"","sources":["../../src/merge/conflicted-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQhD,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAW,CAAC;AAExD,kGAAkG;AAClG,MAAM,UAAU,eAAe,CAC7B,GAAW,EACX,SAAqD,EACrD,IAAgB;IAEhB,MAAM,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IAEpC,MAAM,KAAK,GAAG,WAAW,CACvB,GAAG,EACH,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAC5D,CAAC;IAEF,MAAM,KAAK,GACT,IAAI,KAAK,UAAU;QACjB,CAAC,CAAC,IAAI,GAAG,EAAkB;QAC3B,CAAC,CAAC,WAAW,CACT,GAAG,EACH,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAC5C,CAAC;IAER,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,I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AAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;QAC7E,GAAG,IAAI,CAAC,MAAM,CAAC;QACf,GAAG,IAAI,CAAC,MAAM,CAAC;QACf,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjB,GAAG,IAAI,CAAC,QAAQ,CAAC;KAClB,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MergeContext } from './merge-context.js';
|
|
2
|
+
import type { MergeReport } from './merge-report.js';
|
|
3
|
+
import { type MergeState } from './merge-state.js';
|
|
4
|
+
/** How `--continue` goes on. */
|
|
5
|
+
export interface ContinueOptions {
|
|
6
|
+
readonly acceptLost: boolean;
|
|
7
|
+
readonly now: Date;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Goes on with a merge whose conflicts are settled: refuses while a path is unmerged or keeps
|
|
11
|
+
* conflict markers, runs the steps not done yet (install, migrations, decision records), then
|
|
12
|
+
* regenerate, the lost-lines gate on the uncommitted result, and the commit of the merge's
|
|
13
|
+
* paths. Each stop keeps the merge in progress and its state for the next `--continue`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function continueMerge(context: MergeContext, state: MergeState, options: ContinueOptions): MergeReport;
|
|
16
|
+
//# sourceMappingURL=continue-merge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-merge.d.ts","sourceRoot":"","sources":["../../src/merge/continue-merge.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAW,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,kBAAkB,CAAC;AAK/D,gCAAgC;AAChC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;CACpB;AAID;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,GAAG,WAAW,CAwB7G"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { isRecord } from '../config/values/is-record.js';
|
|
4
|
+
import { runScript } from '../slice/run-script.js';
|
|
5
|
+
import { commitMerge } from './commit-merge.js';
|
|
6
|
+
import { lostLinesGate } from './lost-lines-gate.js';
|
|
7
|
+
import { mergeState } from './merge-state.js';
|
|
8
|
+
import { MERGE_STEPS } from './merge-steps.js';
|
|
9
|
+
import { NEXT_STEPS } from './next-steps.js';
|
|
10
|
+
import { unmergedEntries } from './unmerged-entries.js';
|
|
11
|
+
const MARKER = /^(?:<{7}|={7}|>{7}|\|{7})(?: |$)/m;
|
|
12
|
+
/**
|
|
13
|
+
* Goes on with a merge whose conflicts are settled: refuses while a path is unmerged or keeps
|
|
14
|
+
* conflict markers, runs the steps not done yet (install, migrations, decision records), then
|
|
15
|
+
* regenerate, the lost-lines gate on the uncommitted result, and the commit of the merge's
|
|
16
|
+
* paths. Each stop keeps the merge in progress and its state for the next `--continue`.
|
|
17
|
+
*/
|
|
18
|
+
export function continueMerge(context, state, options) {
|
|
19
|
+
const unsettled = unsettledPaths(context, state);
|
|
20
|
+
if (unsettled !== undefined) {
|
|
21
|
+
return stopped(context, state, { why: unsettled, next: NEXT_STEPS.resolve });
|
|
22
|
+
}
|
|
23
|
+
let current = state;
|
|
24
|
+
for (const step of ['install', 'migrations', 'adrs'].filter((name) => !state.done.includes(name))) {
|
|
25
|
+
const outcome = MERGE_STEPS[step](context, current, options.now);
|
|
26
|
+
current = {
|
|
27
|
+
...current,
|
|
28
|
+
report: outcome.report,
|
|
29
|
+
done: outcome.stop === undefined ? [...current.done, step] : current.done,
|
|
30
|
+
};
|
|
31
|
+
if (outcome.stop !== undefined) {
|
|
32
|
+
return stopped(context, current, outcome.stop);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return checkedAndCommitted(context, current, options);
|
|
36
|
+
}
|
|
37
|
+
function checkedAndCommitted(context, state, options) {
|
|
38
|
+
const regenerate = regenerated(context);
|
|
39
|
+
const withRegenerate = { ...state, report: { ...state.report, regenerate } };
|
|
40
|
+
if (regenerate.status === 'failed') {
|
|
41
|
+
return stopped(context, withRegenerate, { why: '`npm run regenerate` failed', next: NEXT_STEPS.regenerate });
|
|
42
|
+
}
|
|
43
|
+
const lostLines = lostLinesGate(context.repo, options.acceptLost);
|
|
44
|
+
const checked = { ...withRegenerate, report: { ...withRegenerate.report, lostLines } };
|
|
45
|
+
if (lostLines.errors.length > 0) {
|
|
46
|
+
return stopped(context, checked, {
|
|
47
|
+
why: `the merge lost ${lostLines.errors.length} line(s), row(s) or test(s)`,
|
|
48
|
+
next: NEXT_STEPS.lostLines,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return committed(context, checked);
|
|
52
|
+
}
|
|
53
|
+
/** Commits the paths of the merge, or stops on what blocks it. */
|
|
54
|
+
function committed(context, checked) {
|
|
55
|
+
const commit = commitMerge(context.repo);
|
|
56
|
+
const report = { ...checked.report, leftOut: commit.leftOut };
|
|
57
|
+
if (commit.commit === undefined) {
|
|
58
|
+
const why = commit.failure === undefined
|
|
59
|
+
? "changed paths that are not the merge's"
|
|
60
|
+
: `git commit refused:\n${commit.failure}`;
|
|
61
|
+
return stopped(context, { ...checked, report }, { why, next: commit.failure === undefined ? NEXT_STEPS.leftOut : NEXT_STEPS.commit });
|
|
62
|
+
}
|
|
63
|
+
mergeState.remove(context.root);
|
|
64
|
+
const { stop, ...settled } = report;
|
|
65
|
+
return {
|
|
66
|
+
...settled,
|
|
67
|
+
status: 'committed',
|
|
68
|
+
commit: commit.commit,
|
|
69
|
+
next: checked.toLand ? NEXT_STEPS.landed : NEXT_STEPS.committed,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/** The paths still unmerged in the index, or still holding conflict markers; undefined when every one is settled. */
|
|
73
|
+
function unsettledPaths({ repo }, { report }) {
|
|
74
|
+
const unmerged = [...unmergedEntries(repo.top).keys()];
|
|
75
|
+
if (unmerged.length > 0) {
|
|
76
|
+
return `still unmerged: ${unmerged.join(', ')}`;
|
|
77
|
+
}
|
|
78
|
+
const marked = report.forYou
|
|
79
|
+
.map((entry) => entry.file)
|
|
80
|
+
.filter((file) => MARKER.test(readIfPresent(path.join(repo.top, file))));
|
|
81
|
+
return marked.length === 0 ? undefined : `conflict markers left in ${marked.join(', ')}`;
|
|
82
|
+
}
|
|
83
|
+
/** `npm run regenerate` of the project; skipped without the config of the kit or without the script. */
|
|
84
|
+
function regenerated({ root, config }) {
|
|
85
|
+
if (config === undefined) {
|
|
86
|
+
return { status: 'skipped', output: 'no ddd-ts-kit.config.json: nothing is derived here' };
|
|
87
|
+
}
|
|
88
|
+
if (!hasScript(root, 'regenerate')) {
|
|
89
|
+
return {
|
|
90
|
+
status: 'skipped',
|
|
91
|
+
output: 'package.json has no "regenerate" script: run `npx ddd-ts-kit init --force` to add it',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const run = runScript({ root, manager: config.stack.packageManager, script: 'regenerate' });
|
|
95
|
+
return run.ok ? { status: 'ok' } : { status: 'failed', output: run.output };
|
|
96
|
+
}
|
|
97
|
+
function hasScript(root, script) {
|
|
98
|
+
try {
|
|
99
|
+
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
|
100
|
+
return isRecord(manifest) && isRecord(manifest['scripts']) && typeof manifest['scripts'][script] === 'string';
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function stopped(context, state, stop) {
|
|
107
|
+
const report = { ...state.report, status: 'stopped', stop: stop.why, next: stop.next };
|
|
108
|
+
mergeState.write(context.root, { ...state, report });
|
|
109
|
+
return report;
|
|
110
|
+
}
|
|
111
|
+
function readIfPresent(file) {
|
|
112
|
+
try {
|
|
113
|
+
return fs.readFileSync(file, 'utf8');
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
return '';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=continue-merge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-merge.js","sourceRoot":"","sources":["../../src/merge/continue-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAQxD,MAAM,MAAM,GAAG,mCAAmC,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,OAAqB,EAAE,KAAiB,EAAE,OAAwB;IAC9F,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,EAAE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M,MAAM,GAAgB,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAEpG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refuses to start a merge on a working tree that is not clean (the kit's own folder aside),
|
|
3
|
+
* while another operation waits (the merge would mix with work that is not the trunk's), or
|
|
4
|
+
* where git knows no committer (its commit would fail once the merge is in progress).
|
|
5
|
+
*/
|
|
6
|
+
export declare function ensureMergeable(top: string, mergeTrunkInProgress: boolean): void;
|
|
7
|
+
//# sourceMappingURL=ensure-mergeable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-mergeable.d.ts","sourceRoot":"","sources":["../../src/merge/ensure-mergeable.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,GAAG,IAAI,CA0BhF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { CliError } from '../cli-error.js';
|
|
3
|
+
import { gitPath } from './git-path.js';
|
|
4
|
+
import { gitProcess } from './git-process.js';
|
|
5
|
+
/** What git leaves in its directory while an operation waits for a person, and its name. */
|
|
6
|
+
const OPERATIONS = [
|
|
7
|
+
['MERGE_HEAD', 'a merge'],
|
|
8
|
+
['CHERRY_PICK_HEAD', 'a cherry-pick'],
|
|
9
|
+
['REVERT_HEAD', 'a revert'],
|
|
10
|
+
['rebase-merge', 'a rebase'],
|
|
11
|
+
['rebase-apply', 'a rebase or an am'],
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* Refuses to start a merge on a working tree that is not clean (the kit's own folder aside),
|
|
15
|
+
* while another operation waits (the merge would mix with work that is not the trunk's), or
|
|
16
|
+
* where git knows no committer (its commit would fail once the merge is in progress).
|
|
17
|
+
*/
|
|
18
|
+
export function ensureMergeable(top, mergeTrunkInProgress) {
|
|
19
|
+
const waiting = OPERATIONS.find(([file]) => fs.existsSync(gitPath(top, file)));
|
|
20
|
+
if (waiting !== undefined) {
|
|
21
|
+
throw new CliError(`${waiting[1]} is in progress in this worktree.`, mergeTrunkInProgress && waiting[0] === 'MERGE_HEAD'
|
|
22
|
+
? 'It is the merge of merge-trunk: settle what it lists, then `npx ddd-ts-kit merge-trunk --continue`, or `npx ddd-ts-kit merge-trunk --abort`.'
|
|
23
|
+
: 'Finish it or abort it first (`git merge --abort`, `git rebase --abort`, `git cherry-pick --abort`), then merge-trunk again.');
|
|
24
|
+
}
|
|
25
|
+
ensureCommitter(top);
|
|
26
|
+
const changed = gitProcess(top, ['status', '--porcelain', '-z', '--untracked-files=all'])
|
|
27
|
+
.stdout.split('\0')
|
|
28
|
+
.filter((entry) => /^.. /.test(entry))
|
|
29
|
+
.map((entry) => entry.slice(3))
|
|
30
|
+
.filter((file) => !/(?:^|\/)\.ddd-ts-kit\//.test(file));
|
|
31
|
+
if (changed.length > 0) {
|
|
32
|
+
throw new CliError(`The working tree is not clean: ${changed.slice(0, 5).join(', ')}${changed.length > 5 ? ` and ${changed.length - 5} more` : ''}.`, 'Commit the work (one slice, one commit), or set it aside in a commit of its own, then merge-trunk again: a merge mixed with uncommitted work cannot be checked.');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** The merge ends with a commit: without a committer git refuses it, after the merge has started. */
|
|
36
|
+
function ensureCommitter(top) {
|
|
37
|
+
const ident = gitProcess(top, ['var', 'GIT_COMMITTER_IDENT']);
|
|
38
|
+
if (ident.status !== 0) {
|
|
39
|
+
throw new CliError(`git does not know who commits in this repository: ${ident.stderr.trim().split('\n').at(-1) ?? 'no identity'}.`, 'Set it first (`git config user.name "<name>"` and `git config user.email "<email>"`), then merge-trunk again: the merge ends with a commit.');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ensure-mergeable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-mergeable.js","sourceRoot":"","sources":["../../src/merge/ensure-mergeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,4FAA4F;AAC5F,MAAM,UAAU,GAA2C;IACzD,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,kBAAkB,EAAE,eAAe,CAAC;IACrC,CAAC,aAAa,EAAE,UAAU,CAAC;IAC3B,CAAC,cAAc,EAAE,UAAU,CAAC;IAC5B,CAAC,cAAc,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,GAAW,EAAE,oBAA6B;IACxE,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAE/E,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,QAAQ,CAChB,GAAG,OAAO,CAAC,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AC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,aAAa,GAAG,EAC/G,6IAA6I,CAC9I,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ForYou } from './merge-report.js';
|
|
2
|
+
import type { Resolution } from './resolution.js';
|
|
3
|
+
/** Who the two sides are: the branch with its rows, the trunk since the base. */
|
|
4
|
+
export interface SidesNamed {
|
|
5
|
+
readonly top: string;
|
|
6
|
+
readonly branch: string;
|
|
7
|
+
readonly rows: readonly string[];
|
|
8
|
+
readonly trunk: {
|
|
9
|
+
readonly ref: string;
|
|
10
|
+
readonly commit: string;
|
|
11
|
+
};
|
|
12
|
+
readonly base: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A path left to a person, told so that it can be settled without reading either history: the
|
|
16
|
+
* lines of each conflict, what this branch and its rows did there, the commits of the trunk that
|
|
17
|
+
* touched the file since the base and what they did, and how to settle it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function forYouEntry(resolution: Resolution, sides: SidesNamed): ForYou;
|
|
20
|
+
//# sourceMappingURL=for-you-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"for-you-entry.d.ts","sourceRoot":"","sources":["../../src/merge/for-you-entry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAID;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAkB7E"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { runGit } from '../commit/run-git.js';
|
|
2
|
+
const NEVER_ONE_SIDE = 'Never take one side of the whole file.';
|
|
3
|
+
/**
|
|
4
|
+
* A path left to a person, told so that it can be settled without reading either history: the
|
|
5
|
+
* lines of each conflict, what this branch and its rows did there, the commits of the trunk that
|
|
6
|
+
* touched the file since the base and what they did, and how to settle it.
|
|
7
|
+
*/
|
|
8
|
+
export function forYouEntry(resolution, sides) {
|
|
9
|
+
const { blocks } = resolution;
|
|
10
|
+
const commits = (runGit(sides.top, ['log', '--format=%h %s', `${sides.base}..${sides.trunk.commit}`, '--', resolution.file]) ?? '')
|
|
11
|
+
.split('\n')
|
|
12
|
+
.filter((line) => line !== '');
|
|
13
|
+
return {
|
|
14
|
+
file: resolution.file,
|
|
15
|
+
kind: resolution.kind,
|
|
16
|
+
why: resolution.how,
|
|
17
|
+
hunks: blocks.map((block) => `${block.line}-${block.line + block.raw.length - 1}`),
|
|
18
|
+
ours: { branch: sides.branch, rows: sides.rows, change: changeOf(blocks, 'ours') },
|
|
19
|
+
theirs: { ref: sides.trunk.ref, commits, change: changeOf(blocks, 'theirs') },
|
|
20
|
+
advice: adviceOf(resolution),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** What one side did in the conflicts: what it adds and removes, its first added line as an example. */
|
|
24
|
+
function changeOf(blocks, side) {
|
|
25
|
+
const added = blocks.flatMap((block) => block[side].filter((line) => !block.base.includes(line) && line.trim() !== ''));
|
|
26
|
+
const removed = blocks.flatMap((block) => block.base.filter((line) => !block[side].includes(line) && line.trim() !== ''));
|
|
27
|
+
const first = added[0]?.trim();
|
|
28
|
+
const example = first === undefined ? '' : `: ${first.length > 72 ? `${first.slice(0, 69)}...` : first}`;
|
|
29
|
+
if (added.length === 0 && removed.length === 0) {
|
|
30
|
+
return blocks.length === 0 ? 'see the file' : 'keeps the lines of the base';
|
|
31
|
+
}
|
|
32
|
+
const counts = [
|
|
33
|
+
...(added.length > 0 ? [`adds ${added.length}`] : []),
|
|
34
|
+
...(removed.length > 0 ? [`removes ${removed.length}`] : []),
|
|
35
|
+
];
|
|
36
|
+
return `${counts.join(', ')} line${added.length + removed.length === 1 ? '' : 's'}${example}`;
|
|
37
|
+
}
|
|
38
|
+
function adviceOf({ blocks, how }) {
|
|
39
|
+
if (blocks.length === 0) {
|
|
40
|
+
return `${how}: decide what the result holds, then \`git add\` or \`git rm\` it. ${NEVER_ONE_SIDE}`;
|
|
41
|
+
}
|
|
42
|
+
const onlyAdding = blocks.every((block) => block.base.every((line) => block.ours.includes(line) && block.theirs.includes(line)));
|
|
43
|
+
return onlyAdding
|
|
44
|
+
? `both sides only add lines: keep both. ${NEVER_ONE_SIDE}`
|
|
45
|
+
: `both sides change the same lines: write the lines that keep the intent of each. ${NEVER_ONE_SIDE}`;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=for-you-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"for-you-entry.js","sourceRoot":"","sources":["../../src/merge/for-you-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAc9C,MAAM,cAAc,GAAG,wCAAwC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,UAAsB,EAAE,KAAiB;IACnE,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IAE9B,MAAM,OAAO,GAAG,CACd,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC,I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GAAG,OAAO,EAAE,CAAC;AAChG,CAAC;AAED,SAAS,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,EAAc;IAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,GAAG,GAAG,sEAAsE,cAAc,EAAE,CAAC;IACtG,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACrF,CAAC;IAEF,OAAO,UAAU;QACf,CAAC,CAAC,yCAAyC,cAAc,EAAE;QAC3D,CAAC,CAAC,mFAAmF,cAAc,EAAE,CAAC;AAC1G,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MergeReport } from './merge-report.js';
|
|
2
|
+
/**
|
|
3
|
+
* The report of merge-trunk for a reader: who merges what from which base and why, the conflicts
|
|
4
|
+
* a plain merge would show against those of the branch's own diff, what was settled and how,
|
|
5
|
+
* what is left with what each side did, then the migrations, regenerate, the lost-lines gate,
|
|
6
|
+
* the commit, and what to do next.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatMergeReport(report: MergeReport): string;
|
|
9
|
+
//# sourceMappingURL=format-merge-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-merge-report.d.ts","sourceRoot":"","sources":["../../src/merge/format-merge-report.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAU,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM7D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAQ7D"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { findingSections } from './lost/finding-sections.js';
|
|
2
|
+
import { NEXT_STEPS } from './next-steps.js';
|
|
3
|
+
/** Past this many commits of the trunk on one file, the rest is counted. */
|
|
4
|
+
const COMMITS_SHOWN = 3;
|
|
5
|
+
/**
|
|
6
|
+
* The report of merge-trunk for a reader: who merges what from which base and why, the conflicts
|
|
7
|
+
* a plain merge would show against those of the branch's own diff, what was settled and how,
|
|
8
|
+
* what is left with what each side did, then the migrations, regenerate, the lost-lines gate,
|
|
9
|
+
* the commit, and what to do next.
|
|
10
|
+
*/
|
|
11
|
+
export function formatMergeReport(report) {
|
|
12
|
+
const short = report.trunk.commit.slice(0, 7);
|
|
13
|
+
return [
|
|
14
|
+
`merge-trunk ${report.branch} <- ${report.trunk.ref} (${short})${report.status === 'dry-run' ? ', dry run: nothing changed' : ''}`,
|
|
15
|
+
...(report.status === 'up-to-date' ? [] : bodyLines(report)),
|
|
16
|
+
`next: ${report.next}`,
|
|
17
|
+
].join('\n');
|
|
18
|
+
}
|
|
19
|
+
function bodyLines(report) {
|
|
20
|
+
const { conflicts } = report;
|
|
21
|
+
return [
|
|
22
|
+
...baseLines(report.base),
|
|
23
|
+
`conflicts: plain git merge ${conflicts.plainMerge}, own diff since base ${conflicts.ownDiff}, automatic ${conflicts.automatic}, for you ${conflicts.forYou}`,
|
|
24
|
+
...(report.automatic.length === 0
|
|
25
|
+
? []
|
|
26
|
+
: ['automatic:', ...report.automatic.map(({ file, how }) => ` ${file} ${how}`)]),
|
|
27
|
+
...forYouLines(report),
|
|
28
|
+
...(report.migrations.length === 0 ? [] : ['migrations:', ...report.migrations.map((line) => ` ${line}`)]),
|
|
29
|
+
...regenerateLines(report),
|
|
30
|
+
...lostLines(report),
|
|
31
|
+
...(report.leftOut.length === 0
|
|
32
|
+
? []
|
|
33
|
+
: ['left out (not paths of the merge, they block its commit):', ...report.leftOut.map((file) => ` ${file}`)]),
|
|
34
|
+
...(report.stop === undefined ? [] : [`stopped: ${report.stop}`]),
|
|
35
|
+
...(report.commit === undefined
|
|
36
|
+
? []
|
|
37
|
+
: [`committed ${report.commit.slice(0, 7)} "Merge ${report.trunk.ref} into ${report.branch}"`]),
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
function baseLines(base) {
|
|
41
|
+
const short = base.commit.slice(0, 7);
|
|
42
|
+
if (base.evidence === 'landed' && base.landedAs !== undefined) {
|
|
43
|
+
const { from, commit, subject } = base.landedAs;
|
|
44
|
+
return [`base ${short}: ${from} landed as ${commit.slice(0, 7)} "${subject}"`];
|
|
45
|
+
}
|
|
46
|
+
if (base.evidence === 'option') {
|
|
47
|
+
return [`base ${short}: given by --since`];
|
|
48
|
+
}
|
|
49
|
+
if (base.evidence === 'recorded') {
|
|
50
|
+
return [
|
|
51
|
+
`base ${short}: the base recorded for this worker${base.notOnTrunk === undefined ? ', its lines found on the trunk' : ', not proven: lines of it are not on the trunk'}`,
|
|
52
|
+
];
|
|
53
|
+
}
|
|
54
|
+
return [
|
|
55
|
+
`base ${short}: git merge-base (no commit of this branch found landed on the trunk)`,
|
|
56
|
+
...(base.unlanded ?? []).map(({ branch, since }) => ` ${branch} shares commits with this branch and was not found on the trunk: if it landed, pass --since ${since.slice(0, 7)}`),
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
function forYouLines(report) {
|
|
60
|
+
if (report.forYou.length === 0) {
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
if (report.status !== 'dry-run' && report.next !== NEXT_STEPS.resolve) {
|
|
64
|
+
return [`settled by you: ${report.forYou.map((entry) => entry.file).join(', ')}`];
|
|
65
|
+
}
|
|
66
|
+
const header = report.status === 'dry-run'
|
|
67
|
+
? 'for you (once the merge starts):'
|
|
68
|
+
: 'for you (a merge is in progress; `merge-trunk --abort` undoes it):';
|
|
69
|
+
return [header, ...report.forYou.flatMap((entry) => entryLines(entry, report.base.commit))];
|
|
70
|
+
}
|
|
71
|
+
function entryLines(entry, base) {
|
|
72
|
+
const where = entry.hunks.length === 0 ? entry.why : `hunks at lines ${entry.hunks.join(', ')}`;
|
|
73
|
+
const rows = entry.ours.rows.length === 0 ? '' : `, rows ${entry.ours.rows.map((row) => `#${row}`).join(', ')}`;
|
|
74
|
+
const commits = entry.theirs.commits.slice(0, COMMITS_SHOWN).map((line) => {
|
|
75
|
+
const [hash = '', ...subject] = line.split(' ');
|
|
76
|
+
return `, ${hash} "${subject.join(' ')}"`;
|
|
77
|
+
});
|
|
78
|
+
const more = entry.theirs.commits.length > COMMITS_SHOWN ? ` and ${entry.theirs.commits.length - COMMITS_SHOWN} more` : '';
|
|
79
|
+
return [
|
|
80
|
+
` ${entry.file} ${where}`,
|
|
81
|
+
` ours (${entry.ours.branch}${rows}): ${entry.ours.change}`,
|
|
82
|
+
` theirs (${entry.theirs.ref} since ${base.slice(0, 7)}${commits.join('')}${more}): ${entry.theirs.change}`,
|
|
83
|
+
` ${entry.advice}`,
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
function regenerateLines({ regenerate }) {
|
|
87
|
+
if (regenerate.status === 'pending') {
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
const output = regenerate.output === undefined ? [] : regenerate.output.split('\n').map((line) => ` ${line}`);
|
|
91
|
+
return regenerate.status === 'skipped'
|
|
92
|
+
? [`regenerate: skipped, ${regenerate.output ?? ''}`]
|
|
93
|
+
: [`regenerate: ${regenerate.status}`, ...output];
|
|
94
|
+
}
|
|
95
|
+
function lostLines({ lostLines: found }) {
|
|
96
|
+
if (found === null) {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
const counted = found.errors.length === 0 ? 'none lost' : `${found.errors.length} error(s)`;
|
|
100
|
+
return [
|
|
101
|
+
`lost lines: ${counted}${found.warnings.length === 0 ? '' : `, ${found.warnings.length} warning(s)`}`,
|
|
102
|
+
...findingSections(found),
|
|
103
|
+
];
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=format-merge-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|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nB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,WAAW,CAAC;IAE5F,OAAO;QACL,eAAe,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,QAAQ,CAAC,MAAM,aAAa,EAAE;QACrG,GAAG,eAAe,CAAC,KAAK,CAAC;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-path.d.ts","sourceRoot":"","sources":["../../src/merge/git-path.ts"],"names":[],"mappings":"AAGA,iIAAiI;AACjI,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { runGit } from '../commit/run-git.js';
|
|
3
|
+
/** The absolute path of a file of the repository's git directory, `MERGE_HEAD` or `MERGE_MSG`: in a linked worktree, its own. */
|
|
4
|
+
export function gitPath(top, name) {
|
|
5
|
+
return path.resolve(top, runGit(top, ['rev-parse', '--git-path', name])?.trim() ?? path.join('.git', name));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=git-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-path.js","sourceRoot":"","sources":["../../src/merge/git-path.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,iIAAiI;AACjI,MAAM,UAAU,OAAO,CAAC,GAAW,EAAE,IAAY;IAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9G,CAAC"}
|