ddd-ts-kit 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +284 -0
- package/README.fr.md +405 -18
- package/README.md +372 -17
- 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/explain/language-docs.js +1 -1
- package/dist/check/explain/language-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.js +3 -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/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/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/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/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/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/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/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 +17 -14
- package/dist/commands/worker-scope.js.map +1 -1
- 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/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +94 -10
- 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 +7 -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 +6 -0
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- 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/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/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 +8 -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.map +1 -1
- package/dist/slice/plan-staging.js +1 -13
- 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/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/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-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/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/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 +5 -2
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +63 -18
- 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/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/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/package.json +2 -2
- package/templates/command/handler.spec.buses.ts.tpl +2 -2
- package/templates/command/handler.spec.tsyringe.ts.tpl +2 -2
- package/templates/init/AGENTS.md.tpl +1 -1
- package/templates/init/rules/application.md.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +3 -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,38 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { mentionedRows } from '../citations/mentioned-rows.js';
|
|
3
|
+
import { WORKER_SCOPE_FILE } from '../commit/worker-scope-file.js';
|
|
4
|
+
import { readWorkerFile } from '../worker/read-worker-file.js';
|
|
5
|
+
import { blamedLines } from './blamed-lines.js';
|
|
6
|
+
import { commitRows } from './commit-rows.js';
|
|
7
|
+
const NONE = { by: 'none', rows: [] };
|
|
8
|
+
/**
|
|
9
|
+
* The rows each marker belongs to: those its text names; else those the commit that wrote its
|
|
10
|
+
* line names (its `Slice:` trailer, else its message), read with one `git blame` per file and one
|
|
11
|
+
* git call for the commits; else, for a line not committed, the rows of the worker whose worktree
|
|
12
|
+
* holds the project (`.ddd-ts-kit/worker.json`). `ids` are the ids of every row of the slices file.
|
|
13
|
+
*/
|
|
14
|
+
export function attributeMarkers(root, markers, around) {
|
|
15
|
+
const named = markers.map((marker) => ({ marker, rows: mentionedRows(marker.text, around.ids) }));
|
|
16
|
+
const blamed = blamedLines(root, named.filter(({ rows }) => rows.length === 0).map(({ marker }) => marker), around.git);
|
|
17
|
+
const shas = [...new Set(blamed.values())].filter((sha) => sha !== '');
|
|
18
|
+
const lines = { blamed, commits: commitRows(root, shas, around), worker: workerRows(root, around.ids) };
|
|
19
|
+
return named.map(({ marker, rows }) => ({
|
|
20
|
+
...marker,
|
|
21
|
+
attribution: rows.length > 0 ? { by: 'text', rows } : fromLine(lines, `${marker.file}:${marker.line}`),
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
function fromLine({ blamed, commits, worker }, at) {
|
|
25
|
+
const sha = blamed.get(at);
|
|
26
|
+
if (sha === '') {
|
|
27
|
+
return worker.length === 0 ? NONE : { by: 'worker', rows: worker };
|
|
28
|
+
}
|
|
29
|
+
const commit = sha === undefined ? undefined : commits.get(sha);
|
|
30
|
+
return sha === undefined || commit === undefined
|
|
31
|
+
? NONE
|
|
32
|
+
: { by: 'commit', rows: commit.rows, commit: { sha: sha.slice(0, 7), trailer: commit.trailer } };
|
|
33
|
+
}
|
|
34
|
+
/** The rows of the worker whose worktree holds the project, those the slices file has; none outside a worker. */
|
|
35
|
+
function workerRows(root, ids) {
|
|
36
|
+
return (readWorkerFile(path.join(root, WORKER_SCOPE_FILE))?.rows ?? []).filter((id) => ids.includes(id));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=attribute-markers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-markers.js","sourceRoot":"","sources":["../../src/story/attribute-markers.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG/D,MAAM,IAAI,GAAsB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,UAAU,gBA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AAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAS,EAAE,EAAU;IAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAE3B,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACrE,CAAC;IAED,MAAM,MAAM,GAAG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEhE,OAAO,GAAG,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS;QAC9C,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;AACrG,CAAC;AAED,iHAAiH;AACjH,SAAS,UAAU,CAAC,IAAY,EAAE,GAAsB;IACtD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3G,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Remaining } from '../progress/remaining.js';
|
|
2
|
+
/** Runs git in a directory: what it prints, undefined when it fails. */
|
|
3
|
+
export type GitRunner = (directory: string, args: readonly string[]) => string | undefined;
|
|
4
|
+
/** Which rows a marker belongs to, and how that is known. */
|
|
5
|
+
export interface MarkerAttribution {
|
|
6
|
+
/**
|
|
7
|
+
* `text`: it names a row (`#M1.03` or `M1.03`). `commit`: the commit that wrote its line names
|
|
8
|
+
* one, by its `Slice:` trailer or else in its message. `worker`: its line is not committed, in
|
|
9
|
+
* the worktree of a worker, whose rows it takes. `none`: nothing says.
|
|
10
|
+
*/
|
|
11
|
+
readonly by: 'text' | 'commit' | 'worker' | 'none';
|
|
12
|
+
/** The ids of the rows it belongs to; empty for `none`. */
|
|
13
|
+
readonly rows: readonly string[];
|
|
14
|
+
/** For `commit`: the abbreviated hash, and whether its `Slice:` trailer named the rows. */
|
|
15
|
+
readonly commit?: {
|
|
16
|
+
readonly sha: string;
|
|
17
|
+
readonly trailer: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** A marker with the rows it belongs to. */
|
|
21
|
+
export interface AttributedMarker extends Remaining {
|
|
22
|
+
readonly attribution: MarkerAttribution;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=attributed-marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributed-marker.d.ts","sourceRoot":"","sources":["../../src/story/attributed-marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,wEAAwE;AACxE,MAAM,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,MAAM,GAAG,SAAS,CAAC;AAE3F,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACnD,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,2FAA2F;IAC3F,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CACvE;AAED,4CAA4C;AAC5C,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributed-marker.js","sourceRoot":"","sources":["../../src/story/attributed-marker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Remaining } from '../progress/remaining.js';
|
|
2
|
+
import type { GitRunner } from './attributed-marker.js';
|
|
3
|
+
/**
|
|
4
|
+
* The commit that wrote the line of each marker, by `file:line`: its full hash, or an empty
|
|
5
|
+
* string for a line not committed yet. One `git blame` per file, on the lines of its markers. A
|
|
6
|
+
* file git cannot blame (not tracked yet) counts as not committed when the project is in a
|
|
7
|
+
* repository; outside one, nothing is known.
|
|
8
|
+
*/
|
|
9
|
+
export declare function blamedLines(root: string, markers: readonly Remaining[], git: GitRunner): Map<string, string>;
|
|
10
|
+
//# sourceMappingURL=blamed-lines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blamed-lines.d.ts","sourceRoot":"","sources":["../../src/story/blamed-lines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKxD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAwB5G"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const NOT_COMMITTED = '0'.repeat(40);
|
|
2
|
+
const HEADER = /^([0-9a-f]{40}) \d+ (\d+)/gm;
|
|
3
|
+
/**
|
|
4
|
+
* The commit that wrote the line of each marker, by `file:line`: its full hash, or an empty
|
|
5
|
+
* string for a line not committed yet. One `git blame` per file, on the lines of its markers. A
|
|
6
|
+
* file git cannot blame (not tracked yet) counts as not committed when the project is in a
|
|
7
|
+
* repository; outside one, nothing is known.
|
|
8
|
+
*/
|
|
9
|
+
export function blamedLines(root, markers, git) {
|
|
10
|
+
const blamed = new Map();
|
|
11
|
+
let inRepository;
|
|
12
|
+
for (const [file, lines] of linesByFile(markers)) {
|
|
13
|
+
const ranges = lines.flatMap((line) => ['-L', `${line},${line}`]);
|
|
14
|
+
const output = git(root, ['blame', '--porcelain', ...ranges, '--', file]);
|
|
15
|
+
if (output !== undefined) {
|
|
16
|
+
for (const [, sha = '', line] of output.matchAll(HEADER)) {
|
|
17
|
+
blamed.set(`${file}:${line}`, sha === NOT_COMMITTED ? '' : sha);
|
|
18
|
+
}
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
inRepository ??= git(root, ['rev-parse', '--is-inside-work-tree'])?.trim() === 'true';
|
|
22
|
+
for (const line of inRepository ? lines : []) {
|
|
23
|
+
blamed.set(`${file}:${line}`, '');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return blamed;
|
|
27
|
+
}
|
|
28
|
+
function linesByFile(markers) {
|
|
29
|
+
const byFile = new Map();
|
|
30
|
+
for (const { file, line } of markers) {
|
|
31
|
+
const lines = byFile.get(file) ?? [];
|
|
32
|
+
byFile.set(file, lines.includes(line) ? lines : [...lines, line]);
|
|
33
|
+
}
|
|
34
|
+
return byFile;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=blamed-lines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blamed-lines.js","sourceRoot":"","sources":["../../src/story/blamed-lines.ts"],"names":[],"mappings":"AAGA,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC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AAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAAC,OAA6B;IAChD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAE3C,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,OAAO,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAErC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryClosing } from './story-closing.js';
|
|
2
|
+
import type { StoryPlan } from './story-plan.js';
|
|
3
|
+
/**
|
|
4
|
+
* Whether a story or a milestone can close: every row of it done, and no marker of its own left.
|
|
5
|
+
* A marker is its own when the rows it belongs to (its text, the commit that wrote it, the worker
|
|
6
|
+
* that holds it uncommitted) include one of its rows, wherever it is; a marker of its contexts that
|
|
7
|
+
* belongs to no row is its own when no other open story has a row in that context, and is listed
|
|
8
|
+
* without blocking otherwise. With `strict`, every marker of its contexts is its own.
|
|
9
|
+
*/
|
|
10
|
+
export declare function closingOf(story: string, plan: StoryPlan, strict?: boolean): StoryClosing;
|
|
11
|
+
//# sourceMappingURL=closing-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closing-of.d.ts","sourceRoot":"","sources":["../../src/story/closing-of.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAW,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAkBjD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAQ,GAAG,YAAY,CA0BtF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { storyOf } from './story-of.js';
|
|
2
|
+
import { storyScope } from './story-scope.js';
|
|
3
|
+
const ADR = '`npx ddd-ts-kit generate adr "<title>"`';
|
|
4
|
+
const FIXES = {
|
|
5
|
+
domain: `write the business decision it asks for, or dismiss it by a decision record (${ADR}), then delete the marker`,
|
|
6
|
+
platform: `make the technical choice it asks for, or dismiss it by a decision record (${ADR}), then delete the marker`,
|
|
7
|
+
test: `write the test, or dismiss it by a decision record (${ADR}), then delete the it.todo`,
|
|
8
|
+
review: `handle it in a slice, or dismiss it by a decision record (${ADR}, quoting the remark without its marker), then delete the marker in the same commit`,
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Whether a story or a milestone can close: every row of it done, and no marker of its own left.
|
|
12
|
+
* A marker is its own when the rows it belongs to (its text, the commit that wrote it, the worker
|
|
13
|
+
* that holds it uncommitted) include one of its rows, wherever it is; a marker of its contexts that
|
|
14
|
+
* belongs to no row is its own when no other open story has a row in that context, and is listed
|
|
15
|
+
* without blocking otherwise. With `strict`, every marker of its contexts is its own.
|
|
16
|
+
*/
|
|
17
|
+
export function closingOf(story, plan, strict = false) {
|
|
18
|
+
const scope = storyScope(story, plan.rows, plan.contexts);
|
|
19
|
+
const open = plan.rows.filter((row) => storyOf(row.id) === story && row.status !== 'done').map(openRow);
|
|
20
|
+
const judged = plan.markers.map((marker) => ({
|
|
21
|
+
marker,
|
|
22
|
+
verdict: verdictOf(marker, scope, { rows: plan.rows, strict }),
|
|
23
|
+
}));
|
|
24
|
+
const of = (kind) => judged.filter(({ verdict }) => verdict.kind === kind).map(({ marker, verdict }) => storyMarker(marker, verdict));
|
|
25
|
+
const markers = of('own');
|
|
26
|
+
return {
|
|
27
|
+
story,
|
|
28
|
+
rows: scope.ids,
|
|
29
|
+
contexts: scope.contexts,
|
|
30
|
+
unread: scope.unread,
|
|
31
|
+
strict,
|
|
32
|
+
open,
|
|
33
|
+
markers,
|
|
34
|
+
unattributed: of('unattributed'),
|
|
35
|
+
others: judged.filter(({ verdict }) => verdict.kind === 'other').map(({ marker }) => marker),
|
|
36
|
+
canClose: open.length === 0 && markers.length === 0,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function openRow({ id, context, slice, status }) {
|
|
40
|
+
return { id, context, slice, status };
|
|
41
|
+
}
|
|
42
|
+
function storyMarker(marker, { why, sharedWith }) {
|
|
43
|
+
return { ...marker, why, sharedWith, fix: FIXES[marker.kind] };
|
|
44
|
+
}
|
|
45
|
+
function verdictOf(marker, scope, around) {
|
|
46
|
+
const own = marker.attribution.rows.filter((id) => scope.ids.includes(id));
|
|
47
|
+
const inContext = scope.contexts.includes(marker.context);
|
|
48
|
+
const sharedWith = inContext ? openStoriesIn(marker.context, scope.story, around.rows) : [];
|
|
49
|
+
if (own.length > 0) {
|
|
50
|
+
return { kind: 'own', why: attributionWhy(marker.attribution, own), sharedWith };
|
|
51
|
+
}
|
|
52
|
+
if (!inContext) {
|
|
53
|
+
return { kind: 'none', why: '', sharedWith };
|
|
54
|
+
}
|
|
55
|
+
if (around.strict) {
|
|
56
|
+
return { kind: 'own', why: `in ${marker.context}, --strict`, sharedWith };
|
|
57
|
+
}
|
|
58
|
+
if (marker.attribution.rows.length > 0) {
|
|
59
|
+
return { kind: 'other', why: '', sharedWith };
|
|
60
|
+
}
|
|
61
|
+
return sharedWith.length === 0
|
|
62
|
+
? { kind: 'own', why: `no other open story in ${marker.context}`, sharedWith }
|
|
63
|
+
: {
|
|
64
|
+
kind: 'unattributed',
|
|
65
|
+
why: `unattributed, may belong to open ${sharedWith.join(', ')}: settle it or name the row in the marker`,
|
|
66
|
+
sharedWith,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function attributionWhy(attribution, own) {
|
|
70
|
+
const ids = own.map((id) => `#${id}`).join(', ');
|
|
71
|
+
const { commit } = attribution;
|
|
72
|
+
if (attribution.by === 'commit' && commit !== undefined) {
|
|
73
|
+
return commit.trailer
|
|
74
|
+
? `written by ${commit.sha} Slice: ${own.join(', ')}`
|
|
75
|
+
: `written by ${commit.sha}, whose message names ${ids}`;
|
|
76
|
+
}
|
|
77
|
+
return attribution.by === 'worker' ? `not committed, in the worktree of ${ids}` : `names ${ids}`;
|
|
78
|
+
}
|
|
79
|
+
/** The other stories with a row not done in the context. */
|
|
80
|
+
function openStoriesIn(context, story, rows) {
|
|
81
|
+
const stories = rows
|
|
82
|
+
.filter((row) => row.context === context && row.status !== 'done')
|
|
83
|
+
.map((row) => storyOf(row.id))
|
|
84
|
+
.filter((code) => code !== undefined && code !== story);
|
|
85
|
+
return [...new Set(stories)].sort();
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=closing-of.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closing-of.js","sourceRoot":"","sources":["../../src/story/closing-of.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,GAAG,GAAG,yCAAyC,CAAC;AAEtD,MAAM,KAAK,GAAgD;IACzD,MAAM,EAAE,gFAAgF,GAAG,2BAA2B;IACtH,QAAQ,EAAE,8EAA8E,GAAG,2BAA2B;IACtH,IAAI,EAAE,uDAAuD,GAAG,4BAA4B;IAC5F,MAAM,EAAE,6DAA6D,GAAG,qFAAqF;CAC9J,CAAC;AAQF;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,IAAe,EAAE,MAAM,GAAG,KAAK;IACtE,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CA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AED,4DAA4D;AAC5D,SAAS,aAAa,CAAC,OAAe,EAAE,KAAa,EAAE,IAAsB;IAC3E,MAAM,OAAO,GAAG,IAAI;SACjB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,KAAK,OAAO,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC;SACjE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAC7B,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC;IAE1E,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GitRunner } from './attributed-marker.js';
|
|
2
|
+
/** The rows a commit belongs to. */
|
|
3
|
+
export interface CommitRows {
|
|
4
|
+
readonly rows: readonly string[];
|
|
5
|
+
/** True when its `Slice:` trailer named them, false when its message did. */
|
|
6
|
+
readonly trailer: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The rows each commit belongs to, by full hash: the ids of its `Slice:` trailer, else the ids of
|
|
10
|
+
* rows its message names. One git call for every commit. A commit naming no row is left out.
|
|
11
|
+
*/
|
|
12
|
+
export declare function commitRows(root: string, shas: readonly string[], around: {
|
|
13
|
+
readonly ids: readonly string[];
|
|
14
|
+
readonly git: GitRunner;
|
|
15
|
+
}): Map<string, CommitRows>;
|
|
16
|
+
//# sourceMappingURL=commit-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-rows.d.ts","sourceRoot":"","sources":["../../src/story/commit-rows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,oCAAoC;AACpC,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAID;;;GAGG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,MAAM,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAA;CAAE,GACnE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAoBzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mentionedRows } from '../citations/mentioned-rows.js';
|
|
2
|
+
const FORMAT = '--format=%H%x1f%(trailers:key=Slice,valueonly,separator=%x2C)%x1f%B%x1e';
|
|
3
|
+
/**
|
|
4
|
+
* The rows each commit belongs to, by full hash: the ids of its `Slice:` trailer, else the ids of
|
|
5
|
+
* rows its message names. One git call for every commit. A commit naming no row is left out.
|
|
6
|
+
*/
|
|
7
|
+
export function commitRows(root, shas, around) {
|
|
8
|
+
const commits = new Map();
|
|
9
|
+
const output = shas.length === 0 ? undefined : around.git(root, ['show', '--no-patch', FORMAT, ...shas]);
|
|
10
|
+
for (const record of (output ?? '').split('\x1e')) {
|
|
11
|
+
const [sha = '', trailer = '', message = ''] = record.trim().split('\x1f');
|
|
12
|
+
const trailed = trailer
|
|
13
|
+
.split(',')
|
|
14
|
+
.map((id) => id.trim().replace(/^#/, ''))
|
|
15
|
+
.filter((id) => around.ids.includes(id));
|
|
16
|
+
const rows = trailed.length > 0 ? trailed : mentionedRows(message, around.ids);
|
|
17
|
+
if (sha !== '' && rows.length > 0) {
|
|
18
|
+
commits.set(sha, { rows, trailer: trailed.length > 0 });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return commits;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL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CAAC,CAAC;QAE/E,IAAI,GAAG,KAAK,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryClosing } from './story-closing.js';
|
|
2
|
+
/**
|
|
3
|
+
* `story-check` for a reader: a first line that says whether the story can close; then the rows
|
|
4
|
+
* and the markers of its own that keep it open, each with why it is its own and the fix; then the
|
|
5
|
+
* markers that may be its own, listed without blocking.
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatStoryClosing(closing: StoryClosing): string;
|
|
8
|
+
//# sourceMappingURL=format-story-closing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-story-closing.d.ts","sourceRoot":"","sources":["../../src/story/format-story-closing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAWpE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAQhE"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { storyOf } from './story-of.js';
|
|
2
|
+
const MARK = {
|
|
3
|
+
review: 'TODO(review)',
|
|
4
|
+
domain: 'TODO(domain)',
|
|
5
|
+
platform: 'TODO(platform)',
|
|
6
|
+
test: 'it.todo',
|
|
7
|
+
};
|
|
8
|
+
const ORDER = ['review', 'domain', 'platform', 'test'];
|
|
9
|
+
/**
|
|
10
|
+
* `story-check` for a reader: a first line that says whether the story can close; then the rows
|
|
11
|
+
* and the markers of its own that keep it open, each with why it is its own and the fix; then the
|
|
12
|
+
* markers that may be its own, listed without blocking.
|
|
13
|
+
*/
|
|
14
|
+
export function formatStoryClosing(closing) {
|
|
15
|
+
return [
|
|
16
|
+
verdictLine(closing),
|
|
17
|
+
...openLines(closing),
|
|
18
|
+
...ownLines(closing),
|
|
19
|
+
...notBlocking(closing),
|
|
20
|
+
...notes(closing),
|
|
21
|
+
].join('\n');
|
|
22
|
+
}
|
|
23
|
+
function verdictLine({ story, rows, open, markers, contexts, canClose }) {
|
|
24
|
+
if (canClose) {
|
|
25
|
+
return `${story} can close: its ${plural(rows.length, 'row')} done, no marker of its own left${contexts.length === 0 ? '' : ` in ${contexts.join(', ')}`}.`;
|
|
26
|
+
}
|
|
27
|
+
const left = open.length === 0 ? 'every row done' : `${plural(open.length, 'row')} not done`;
|
|
28
|
+
return `${story} cannot close: ${left}, ${plural(markers.length, 'marker')} of its own left.`;
|
|
29
|
+
}
|
|
30
|
+
function plural(count, noun) {
|
|
31
|
+
return `${count} ${noun}${count === 1 ? '' : 's'}`;
|
|
32
|
+
}
|
|
33
|
+
function openLines({ open }) {
|
|
34
|
+
if (open.length === 0) {
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
return [
|
|
38
|
+
'',
|
|
39
|
+
'Rows not done (the conductor marks a row done when its branch merges)',
|
|
40
|
+
...open.map((row) => ` #${row.id} ${row.context} "${row.slice}": ${row.status}`),
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
function ownLines({ markers }) {
|
|
44
|
+
return ORDER.flatMap((kind) => {
|
|
45
|
+
const ofKind = markers.filter((marker) => marker.kind === kind);
|
|
46
|
+
const [first] = ofKind;
|
|
47
|
+
return first === undefined
|
|
48
|
+
? []
|
|
49
|
+
: ['', `${MARK[kind]} (${ofKind.length}): ${first.fix}`, ...ofKind.map((marker) => markerLine(marker, ''))];
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function markerLine(marker, mark) {
|
|
53
|
+
return ` ${marker.file}:${marker.line} ${mark}${marker.text} (${marker.why})`;
|
|
54
|
+
}
|
|
55
|
+
function notBlocking({ unattributed, others }) {
|
|
56
|
+
const listed = unattributed.length === 0
|
|
57
|
+
? []
|
|
58
|
+
: [
|
|
59
|
+
'',
|
|
60
|
+
`Not blocking, unattributed (${unattributed.length}): settle each, or name its row in the marker (\`TODO(review): #<row> <remark>\`)`,
|
|
61
|
+
...unattributed.map((marker) => markerLine(marker, `${MARK[marker.kind]} `)),
|
|
62
|
+
];
|
|
63
|
+
const owners = [
|
|
64
|
+
...new Set(others.flatMap((marker) => marker.attribution.rows.map((id) => storyOf(id) ?? id))),
|
|
65
|
+
].sort();
|
|
66
|
+
const counted = others.length === 0
|
|
67
|
+
? []
|
|
68
|
+
: [
|
|
69
|
+
'',
|
|
70
|
+
`Not blocking: ${plural(others.length, 'marker')} of these contexts ${others.length === 1 ? 'belongs' : 'belong'} to rows of ${owners.join(', ')}.`,
|
|
71
|
+
];
|
|
72
|
+
return [...listed, ...counted];
|
|
73
|
+
}
|
|
74
|
+
function notes({ story, canClose, strict, unread }) {
|
|
75
|
+
if (canClose) {
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
return [
|
|
79
|
+
'',
|
|
80
|
+
...(strict ? ['--strict: every marker of its contexts keeps it open, whoever it belongs to.'] : []),
|
|
81
|
+
...(unread.length === 0
|
|
82
|
+
? []
|
|
83
|
+
: [
|
|
84
|
+
`Not a context of the project: ${unread.join(', ')}; a marker outside the contexts is its own only when attributed to one of its rows.`,
|
|
85
|
+
]),
|
|
86
|
+
`Once each is settled: npx ddd-ts-kit story-check ${story}`,
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=format-story-closing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-story-closing.js","sourceRoot":"","sources":["../../src/story/format-story-closing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,MAAM,IAAI,GAAgD;IACxD,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,cA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C,CAAC,EAAE,CAAC;QACnG,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;YACrB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACE,iCAAiC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,qFAAqF;aACxI,CAAC;QACN,oDAAoD,KAAK,EAAE;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Remaining } from '../progress/remaining.js';
|
|
2
|
+
import type { StoryScope } from './story-scope.js';
|
|
3
|
+
/**
|
|
4
|
+
* True for a marker that may keep the story open, before git says whose it is: in a context of
|
|
5
|
+
* its rows, naming one of its rows, or outside the contexts when a row of it names none (`all`,
|
|
6
|
+
* `platform`). Only those are blamed.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mayKeepOpen(marker: Remaining, scope: StoryScope): boolean;
|
|
9
|
+
//# sourceMappingURL=may-keep-open.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"may-keep-open.d.ts","sourceRoot":"","sources":["../../src/story/may-keep-open.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAMzE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { mentionedRows } from '../citations/mentioned-rows.js';
|
|
2
|
+
/**
|
|
3
|
+
* True for a marker that may keep the story open, before git says whose it is: in a context of
|
|
4
|
+
* its rows, naming one of its rows, or outside the contexts when a row of it names none (`all`,
|
|
5
|
+
* `platform`). Only those are blamed.
|
|
6
|
+
*/
|
|
7
|
+
export function mayKeepOpen(marker, scope) {
|
|
8
|
+
return (scope.contexts.includes(marker.context) ||
|
|
9
|
+
mentionedRows(marker.text, scope.ids).length > 0 ||
|
|
10
|
+
(scope.unread.length > 0 && marker.context === ''));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=may-keep-open.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"may-keep-open.js","sourceRoot":"","sources":["../../src/story/may-keep-open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,MAAiB,EAAE,KAAiB;IAC9D,OAAO,CACL,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACvC,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC;QAChD,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,KAAK,EAAE,CAAC,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '../config/index.js';
|
|
2
|
+
import type { Workspace } from '../workspace/index.js';
|
|
3
|
+
/** The contexts of the project: those the config declares and the directories of the contexts folder. */
|
|
4
|
+
export declare function projectContexts(ws: Workspace, config: Config): string[];
|
|
5
|
+
//# sourceMappingURL=project-contexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-contexts.d.ts","sourceRoot":"","sources":["../../src/story/project-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,yGAAyG;AACzG,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAEvE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The contexts of the project: those the config declares and the directories of the contexts folder. */
|
|
2
|
+
export function projectContexts(ws, config) {
|
|
3
|
+
return [...new Set([...Object.keys(config.contexts), ...ws.directories(config.contextsDir)])].sort();
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=project-contexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-contexts.js","sourceRoot":"","sources":["../../src/story/project-contexts.ts"],"names":[],"mappings":"AAGA,yGAAyG;AACzG,MAAM,UAAU,eAAe,CAAC,EAAa,EAAE,MAAc;IAC3D,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACvG,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StoryClosing } from './story-closing.js';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the story or milestone `asked` (`M1`, `#M1`) can close, read from the slices file, the
|
|
4
|
+
* markers of the tree and, for the markers that may be its own, the commits that wrote them.
|
|
5
|
+
*/
|
|
6
|
+
export declare function readStoryClosing(root: string, asked: string, strict: boolean): StoryClosing;
|
|
7
|
+
//# sourceMappingURL=read-story-closing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-story-closing.d.ts","sourceRoot":"","sources":["../../src/story/read-story-closing.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,YAAY,CAyB3F"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CliError } from '../cli-error.js';
|
|
2
|
+
import { runGit } from '../commit/run-git.js';
|
|
3
|
+
import { readConfig } from '../config/index.js';
|
|
4
|
+
import { readRemaining } from '../progress/read-remaining.js';
|
|
5
|
+
import { readSlices, SLICES_FILE } from '../progress/read-slices.js';
|
|
6
|
+
import { Workspace } from '../workspace/index.js';
|
|
7
|
+
import { attributeMarkers } from './attribute-markers.js';
|
|
8
|
+
import { closingOf } from './closing-of.js';
|
|
9
|
+
import { mayKeepOpen } from './may-keep-open.js';
|
|
10
|
+
import { projectContexts } from './project-contexts.js';
|
|
11
|
+
import { storyOf } from './story-of.js';
|
|
12
|
+
import { storyScope } from './story-scope.js';
|
|
13
|
+
/**
|
|
14
|
+
* Whether the story or milestone `asked` (`M1`, `#M1`) can close, read from the slices file, the
|
|
15
|
+
* markers of the tree and, for the markers that may be its own, the commits that wrote them.
|
|
16
|
+
*/
|
|
17
|
+
export function readStoryClosing(root, asked, strict) {
|
|
18
|
+
const ws = new Workspace(root, false);
|
|
19
|
+
const { config } = readConfig(root);
|
|
20
|
+
const rows = readSlices(ws);
|
|
21
|
+
if (rows === undefined) {
|
|
22
|
+
throw new CliError(`${SLICES_FILE} is missing or has no slices table.`, 'Plan the slices first (the skill ddd-ts-kit:plan-slices writes the table), then run story-check again.');
|
|
23
|
+
}
|
|
24
|
+
const story = asked.replace(/^#/, '');
|
|
25
|
+
if (!rows.some((row) => storyOf(row.id) === story)) {
|
|
26
|
+
throw unknownStory(story, rows);
|
|
27
|
+
}
|
|
28
|
+
const contexts = projectContexts(ws, config);
|
|
29
|
+
const scope = storyScope(story, rows, contexts);
|
|
30
|
+
const candidates = readRemaining(ws, config).filter((marker) => mayKeepOpen(marker, scope));
|
|
31
|
+
const ids = [...new Set(rows.map((row) => row.id))];
|
|
32
|
+
const markers = attributeMarkers(root, candidates, { ids, git: runGit });
|
|
33
|
+
return closingOf(story, { rows, markers, contexts }, strict);
|
|
34
|
+
}
|
|
35
|
+
function unknownStory(story, rows) {
|
|
36
|
+
const known = [...new Set(rows.map((row) => storyOf(row.id)))].filter((code) => code !== undefined);
|
|
37
|
+
const row = rows.find((candidate) => candidate.id === story);
|
|
38
|
+
const ofRow = row === undefined ? '' : `#${story} is a row: its story is ${storyOf(story) ?? 'none'}. `;
|
|
39
|
+
const use = known.length > 0
|
|
40
|
+
? `Use one of: ${known.join(', ')}.`
|
|
41
|
+
: 'Number the rows with the code of their story or milestone (`US5.03`, `M2.07`), as the skill ddd-ts-kit:plan-slices says.';
|
|
42
|
+
return new CliError(`No row of ${SLICES_FILE} belongs to the story or milestone "${story}".`, `${ofRow}Pass the code the ids of its rows start with (\`M1\` for \`M1.03\`). ${use}`);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=read-story-closing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-story-closing.js","sourceRoot":"","sources":["../../src/story/read-story-closing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CA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S,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,YAAY,CAAC,KAAa,EAAE,IAAsB;IACzD,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACpG,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,2BAA2B,OAAO,CAAC,KAAK,CAAC,IAAI,MAAM,IAAI,CAAC;IAExG,MAAM,GAAG,GACP,KAAK,CAAC,MAAM,GAAG,CAAC;QACd,CAAC,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;QACpC,CAAC,CAAC,0HAA0H,CAAC;IAEjI,OAAO,IAAI,QAAQ,CACjB,aAAa,WAAW,uCAAuC,KAAK,IAAI,EACxE,GAAG,KAAK,wEAAwE,GAAG,EAAE,CACtF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AttributedMarker } from './attributed-marker.js';
|
|
2
|
+
/** Whether a story or a milestone can close, and what keeps it open. */
|
|
3
|
+
export interface StoryClosing {
|
|
4
|
+
/** Its code, the start of the ids of its rows: `M1` for `M1.01`, `M1.02`. */
|
|
5
|
+
readonly story: string;
|
|
6
|
+
/** The ids of its rows, in the order of the slices file. */
|
|
7
|
+
readonly rows: readonly string[];
|
|
8
|
+
/** The contexts of the project its rows belong to. */
|
|
9
|
+
readonly contexts: readonly string[];
|
|
10
|
+
/** The Context cells of its rows that name no context of the project (`all`, `platform`). */
|
|
11
|
+
readonly unread: readonly string[];
|
|
12
|
+
/** True with `--strict`: every marker of its contexts keeps it open, whoever it belongs to. */
|
|
13
|
+
readonly strict: boolean;
|
|
14
|
+
/** Its rows not done. */
|
|
15
|
+
readonly open: readonly OpenRow[];
|
|
16
|
+
/** The markers that keep it open: its own, each with why it is. */
|
|
17
|
+
readonly markers: readonly StoryMarker[];
|
|
18
|
+
/** The markers of its contexts that belong to no row while another open story works there: listed, not blocking. */
|
|
19
|
+
readonly unattributed: readonly StoryMarker[];
|
|
20
|
+
/** The markers of its contexts that belong to rows of other stories: not blocking. */
|
|
21
|
+
readonly others: readonly AttributedMarker[];
|
|
22
|
+
/** True when every row is done and no marker of its own is left. */
|
|
23
|
+
readonly canClose: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** A row of the story not done yet. */
|
|
26
|
+
export interface OpenRow {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly context: string;
|
|
29
|
+
readonly slice: string;
|
|
30
|
+
readonly status: string;
|
|
31
|
+
}
|
|
32
|
+
/** A marker the story has to settle, or one that may be its own. */
|
|
33
|
+
export interface StoryMarker extends AttributedMarker {
|
|
34
|
+
/** Why it is the story's (`names #M1.03`, `written by 2443af2 Slice: M1.02`), or whose it may be. */
|
|
35
|
+
readonly why: string;
|
|
36
|
+
/** The other stories with a row not done in the context of the marker. */
|
|
37
|
+
readonly sharedWith: readonly string[];
|
|
38
|
+
/** What settles it. */
|
|
39
|
+
readonly fix: string;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=story-closing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-closing.d.ts","sourceRoot":"","sources":["../../src/story/story-closing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA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story-closing.js","sourceRoot":"","sources":["../../src/story/story-closing.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of the story or milestone a row belongs to: its id without the last `.<number>`
|
|
3
|
+
* (`M1` for `M1.03`, `US5` for `US5.12`), as the plan-slices skill numbers the rows. Undefined for
|
|
4
|
+
* an id without that number (`12`, `M1`): such a row belongs to no story.
|
|
5
|
+
*/
|
|
6
|
+
export declare function storyOf(id: string): string | undefined;
|
|
7
|
+
//# sourceMappingURL=story-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-of.d.ts","sourceRoot":"","sources":["../../src/story/story-of.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of the story or milestone a row belongs to: its id without the last `.<number>`
|
|
3
|
+
* (`M1` for `M1.03`, `US5` for `US5.12`), as the plan-slices skill numbers the rows. Undefined for
|
|
4
|
+
* an id without that number (`12`, `M1`): such a row belongs to no story.
|
|
5
|
+
*/
|
|
6
|
+
export function storyOf(id) {
|
|
7
|
+
return /^(.+)\.\d+$/.exec(id)?.[1];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=story-of.js.map
|