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
package/README.md
CHANGED
|
@@ -503,7 +503,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
503
503
|
| `biome.json` | the formatter: Biome with its linter and its import organiser off, line width 120; `npm run format` writes, `npm run format:check` checks, and what the CLI generates is already formatted |
|
|
504
504
|
| `knip.json` | dead code: entry points are `main.ts` and `apps/*/main.ts`, the scripts, the specs and the fakes, the module files in the explicit style, the role files under discovery (jobs and publishers included) |
|
|
505
505
|
| `vitest.config.ts` | unit and integration projects, the coverage thresholds read from `ddd-ts-kit.config.json` (`governedCoverage`), per context and layer, in the standard decorator mode `decorators()` of `@ddd-ts-kit/testing/vitest`, which compiles the files holding a decorator with the compiler of the project (Vitest does not lower standard decorators; it lowers legacy ones itself, so a project with `experimentalDecorators` gets no plugin), and under `--assembly discovery` `server.deps.inline: ['@ddd-ts-kit/di']` |
|
|
506
|
-
| `lefthook.yml`, `commitlint.config.mjs` | pre-commit (ESLint, the format check and `check` on the staged files, `check --commit-size --staged`, which never blocks), pre-push (types, unit tests) and commit-msg hooks (`npm run hooks:install`), conventional commits |
|
|
506
|
+
| `lefthook.yml`, `commitlint.config.mjs` | pre-commit (ESLint, the format check and `check` on the staged files, `check --commit-size --staged`, which never blocks), pre-push (types, unit tests) and commit-msg hooks (`npm run hooks:install`), each run by the lefthook of the checkout it fires in (`lefthook: node_modules/.bin/lefthook`: a worktree without its dependencies fails the commit instead of skipping the checks), conventional commits |
|
|
507
507
|
| `--ci github` | `.github/workflows/ci.yml`, `pr-title.yml`, `copilot-setup-steps.yml` (Node and the dependencies, installed before the Copilot cloud agent starts), `.github/dependabot.yml`, `.github/branch-protection.md`, `renovate.json`; `codeql.yml` with `--ci-extras codeql` |
|
|
508
508
|
| `--ci gitlab` | `.gitlab-ci.yml` (architecture findings as a Code Quality report through `check --format gitlab`), `.gitlab/merge-request-settings.md`, `renovate.json` |
|
|
509
509
|
| `README.md`, `AGENTS.md`, `CLAUDE.md`, `.claude/rules/*.md`, `.github/instructions/*.instructions.md` | how to run it; a slim guide in `AGENTS.md`, which Codex, Copilot and most coding agents read and `CLAUDE.md` imports (commands, how to read less, the map of the rules, generated files, compiler note, the skills of the plugin: `/ddd-ts-kit:start`, `glossary`, `use-case`, `document`, `quality-gate`) and the invariants in seven rule files, `domain.md`, `application.md`, `published-language.md`, `infrastructure.md`, `presentation.md`, `platform.md` and `tests.md`, each scoped by a `paths` frontmatter, and the same seven for GitHub Copilot, each scoped by `applyTo` |
|
|
@@ -1028,23 +1028,46 @@ ddd-ts-kit todo [<context>]
|
|
|
1028
1028
|
error. Each row not done says whether it can start: ready on the trunk when every dependency is
|
|
1029
1029
|
done, ready on a branch when each dependency not done is a row briefed to a worker whose worktree
|
|
1030
1030
|
has commits ahead of its base (the `rows` of its `.ddd-ts-kit/worker.json`, as `status --workers`
|
|
1031
|
-
reads them), and waiting otherwise, with the ids it waits for.
|
|
1031
|
+
reads them), and waiting otherwise, with the ids it waits for. A story or a milestone whose rows
|
|
1032
|
+
are all done while markers of its own keep it open gets a line of its own (only the markers that
|
|
1033
|
+
may keep such a story open are blamed, one git call per file), with the command that lists them:
|
|
1034
|
+
`story M1: every row done, 3 markers left: npx ddd-ts-kit story-check M1` (see
|
|
1035
|
+
[story-check](#story-check)). `--json` prints
|
|
1032
1036
|
`{ next, slices, remaining }`: `next` and `slices` are `null` when their file is missing,
|
|
1033
|
-
`slices` holds `{ file, rows, byStatus, byOwner
|
|
1034
|
-
`
|
|
1037
|
+
`slices` holds `{ file, rows, byStatus, byOwner, duplicates, unscoped, unclosed }`, `unclosed`
|
|
1038
|
+
being `[{ story, markers, command }]`, a row not done carrying
|
|
1039
|
+
`ready: 'trunk' | 'branch' | 'waiting'` and `waitingFor` (its dependencies not done), and
|
|
1040
|
+
`landedNotDone` the rows not marked done that landed on the trunk with a worker's branch, each
|
|
1041
|
+
`{ id, commit }` (said as `#<id> landed on the trunk (<commit>) but is not marked done`),
|
|
1035
1042
|
`remaining` one `{ context, domain, platform, test }` per context, and one with an empty
|
|
1036
1043
|
`context` for what is left outside them.
|
|
1037
1044
|
|
|
1038
1045
|
`status --workers` prints the workers of a parallel build instead: each worktree of the
|
|
1039
1046
|
repository whose copy of the project holds `.ddd-ts-kit/worker.json`, with its branch, its
|
|
1040
|
-
context, its rows, its base, the commits it is ahead of the base,
|
|
1047
|
+
context, its rows, its base, the commits it is ahead of the base, `dependencies not installed`
|
|
1048
|
+
when its copy of the project has no `node_modules`, the files it changed (committed
|
|
1041
1049
|
since the merge base, modified, and untracked but not ignored, relative to the top of the
|
|
1042
|
-
repository) and its `.ddd-ts-kit/report.md` with when it was written
|
|
1050
|
+
repository) and its `.ddd-ts-kit/report.md` with when it was written. Once its branch was
|
|
1051
|
+
squash-merged into the base, found as `merge-trunk` finds it (patch ids, no GitHub call), the
|
|
1052
|
+
commit that took it in and the rows it had done there are shown, and its commits ahead and its
|
|
1053
|
+
files are counted from where it landed: a reused branch with nothing new counts nothing, and no
|
|
1054
|
+
false overlap is reported on what already landed. Its commits behind the base follow, and, when
|
|
1055
|
+
it is behind, what `merge-trunk` would leave conflicted now (computed with `git merge-tree`,
|
|
1056
|
+
nothing written). Then the contexts built by
|
|
1043
1057
|
more than one worker and the files changed by more than one worker, each with their worktrees.
|
|
1044
1058
|
A scope file that holds the context only is read too: the worker comes without its rows, its
|
|
1045
1059
|
base and its commits ahead, and its files are the uncommitted ones. `--json` prints
|
|
1046
|
-
`{ workers: [{ worktree, branch, context, rows, base, ahead, files, report }], overlaps: { contexts: [{ context, worktrees }], files: [{ file, worktrees }] } }`,
|
|
1047
|
-
`
|
|
1060
|
+
`{ workers: [{ worktree, branch, context, rows, base, ahead, behind, landed, mergePreview, installed, files, report, progress }], overlaps: { contexts: [{ context, worktrees }], files: [{ file, worktrees }] } }`,
|
|
1061
|
+
`landed` being `{ commit, subject, rows }`, `mergePreview` `{ conflicts, files }`, `report`
|
|
1062
|
+
`{ file, modified }` or `null`. Without a worker it says so in one line. A worker
|
|
1063
|
+
whose scope file names its rows gets a `state:` line, such as `stopped mid-row #M1.14 (6 files
|
|
1064
|
+
uncommitted, 3 TODO(domain), last verify-slice failed: tests); resume: npx ddd-ts-kit
|
|
1065
|
+
worker-scope billing --resume`, and `progress` in JSON: `{ rows: [{ id, slice, state, commit?,
|
|
1066
|
+
byOrder? }], inSlice, leftOut, markers: { domain, test }, verification, report: { modified,
|
|
1067
|
+
current }, agent, phase, next }`, `phase` being `not started`, `mid-row`, `between rows` or
|
|
1068
|
+
`rows committed`, and `next` one of `wait`, `send-message` (with `to`), `new-agent`, `merge`, as
|
|
1069
|
+
`worker-scope --resume` decides it (`wait` while the agent called a tool in the last three minutes
|
|
1070
|
+
and did not stop since).
|
|
1048
1071
|
|
|
1049
1072
|
`todo` lists those markers as `file:line` with their kind and their text, in the project or in one
|
|
1050
1073
|
context; `--json` prints `{ count, remaining: [{ kind, context, file, line, text }] }`.
|
|
@@ -1067,7 +1090,8 @@ be unknown rather than guessed. Each batch of a context's worker comes with the
|
|
|
1067
1090
|
it, `npx ddd-ts-kit worker-scope <context> --base origin/main --rows <ids>`, with its own
|
|
1068
1091
|
`--worktree` and `--branch` when its wave holds another batch of that context; a batch of the
|
|
1069
1092
|
conductor is built on the trunk; a person is briefed by hand. Then the merge order: by wave, and in
|
|
1070
|
-
a wave the batch that the most rows wait for, directly or not, first
|
|
1093
|
+
a wave the batch that the most rows wait for, directly or not, first, and what runs before each
|
|
1094
|
+
merge: `npx ddd-ts-kit merge-trunk --to-land --cwd <worktree>`, then the squash merge. With a context, only its rows
|
|
1071
1095
|
are shown; the rows of other contexts it waits for count in the numbering of the waves.
|
|
1072
1096
|
|
|
1073
1097
|
A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
|
|
@@ -1076,27 +1100,358 @@ command exits 1. A file without a slices table, or a context no row names, is re
|
|
|
1076
1100
|
prints
|
|
1077
1101
|
`{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, waitingFor }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder }`.
|
|
1078
1102
|
|
|
1103
|
+
## story-check
|
|
1104
|
+
|
|
1105
|
+
```
|
|
1106
|
+
ddd-ts-kit story-check <code> [--strict]
|
|
1107
|
+
```
|
|
1108
|
+
|
|
1109
|
+
Says whether a story or a milestone can close: every row of it in `docs/architecture/slices.md`
|
|
1110
|
+
is `done` (the others are listed with their status), and no marker of its own is left. `<code>` is
|
|
1111
|
+
the start of the ids of its rows, the id without its last `.<number>`: `M1` for `M1.01`, `M1.02`,
|
|
1112
|
+
`US5` for `US5.03` (a `#` before it is left out).
|
|
1113
|
+
|
|
1114
|
+
Several stories often build the same context at once, and a marker does not say whose it is: each
|
|
1115
|
+
`TODO(domain)`, `TODO(platform)`, `it.todo` and `TODO(review)` is attributed to rows first.
|
|
1116
|
+
|
|
1117
|
+
1. Its text names a row: `#M1.03` or `M1.03`, word-bounded as `cited` reads them (`M1.035` is not
|
|
1118
|
+
`M1.03`). This is why a remark of a review is written `TODO(review): #<row id> <remark>`.
|
|
1119
|
+
2. Else the commit that wrote its line names one: `git blame --porcelain` gives the commit (one call
|
|
1120
|
+
per file, on the lines of its markers, and one git call for all the commits), whose
|
|
1121
|
+
`Slice: <id>` trailer, else the row ids its subject or body names, give the rows. A
|
|
1122
|
+
`TODO(domain)` or an `it.todo` a generator wrote belongs to the row whose commit created it.
|
|
1123
|
+
3. Else, for a line not committed yet, the rows of `.ddd-ts-kit/worker.json` when the project is
|
|
1124
|
+
the worktree of a worker.
|
|
1125
|
+
|
|
1126
|
+
A marker is the story's own when it belongs to one of its rows, wherever it is. A marker of a
|
|
1127
|
+
context of its rows that belongs to no row is its own when no other open story (one with a row not
|
|
1128
|
+
done) has a row in that context, since it can be no one else's; otherwise it is listed without
|
|
1129
|
+
blocking, with the stories it may belong to: settle it, or name its row in it. A marker of the rows
|
|
1130
|
+
of other stories does not block, and is counted. A Context cell that names no context of the
|
|
1131
|
+
project (`all`, `platform`) adds none: outside the contexts, only a marker attributed to one of its
|
|
1132
|
+
rows counts. `--strict` makes every marker of its contexts block, whoever it belongs to.
|
|
1133
|
+
|
|
1134
|
+
It reads the files and git only. It exits 0 when the story can close (one line, then the markers
|
|
1135
|
+
listed without blocking, if any), 1 when something keeps it open, each blocker with why it is its
|
|
1136
|
+
own (`names #M1.01`, `written by a782a19 Slice: M1.02`, `no other open story in payments`), its
|
|
1137
|
+
`file:line` and its fix (handle it, or dismiss it by a decision record,
|
|
1138
|
+
`npx ddd-ts-kit generate adr "<title>"`, then delete the marker), and 2 on a code no row carries or
|
|
1139
|
+
without a slices table. `--json` prints
|
|
1140
|
+
`{ story, rows, contexts, unread, strict, open: [{ id, context, slice, status }], markers, unattributed, others, canClose }`,
|
|
1141
|
+
each marker being `{ kind, context, file, line, text, attribution: { by, rows, commit? } }`, with
|
|
1142
|
+
`why`, `sharedWith` and `fix` in `markers` and `unattributed`; `by` is `text`, `commit`, `worker`
|
|
1143
|
+
or `none`.
|
|
1144
|
+
|
|
1145
|
+
```
|
|
1146
|
+
$ npx ddd-ts-kit story-check M1
|
|
1147
|
+
M1 cannot close: every row done, 3 markers of its own left.
|
|
1148
|
+
|
|
1149
|
+
TODO(review) (1): handle it in a slice, or dismiss it by a decision record (`npx ddd-ts-kit generate adr "<title>"`, quoting the remark without its marker), then delete the marker in the same commit
|
|
1150
|
+
docs/architecture/reviews/invoices.md:3 #M1.01 name the total after its term. (names #M1.01)
|
|
1151
|
+
|
|
1152
|
+
TODO(domain) (1): write the business decision it asks for, or dismiss it by a decision record (`npx ddd-ts-kit generate adr "<title>"`), then delete the marker
|
|
1153
|
+
src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts:2 the rounding of a total. (written by a782a19 Slice: M1.02)
|
|
1154
|
+
|
|
1155
|
+
TODO(platform) (1): make the technical choice it asks for, or dismiss it by a decision record (`npx ddd-ts-kit generate adr "<title>"`), then delete the marker
|
|
1156
|
+
src/contexts/payments/domain/aggregates/payment.aggregate.ts:2 the provider of a refund. (no other open story in payments)
|
|
1157
|
+
|
|
1158
|
+
Not blocking, unattributed (1): settle each, or name its row in the marker (`TODO(review): #<row> <remark>`)
|
|
1159
|
+
src/contexts/billing/test/unit/invoice.aggregate.spec.ts:1 it.todo refuses an invoice without lines (unattributed, may belong to open US2: settle it or name the row in the marker)
|
|
1160
|
+
|
|
1161
|
+
Not blocking: 1 marker of these contexts belongs to rows of US2.
|
|
1162
|
+
|
|
1163
|
+
Once each is settled: npx ddd-ts-kit story-check M1
|
|
1164
|
+
```
|
|
1165
|
+
|
|
1166
|
+
Once the three are settled:
|
|
1167
|
+
|
|
1168
|
+
```
|
|
1169
|
+
$ npx ddd-ts-kit story-check M1
|
|
1170
|
+
M1 can close: its 3 rows done, no marker of its own left in billing, payments.
|
|
1171
|
+
|
|
1172
|
+
Not blocking, unattributed (1): settle each, or name its row in the marker (`TODO(review): #<row> <remark>`)
|
|
1173
|
+
src/contexts/billing/test/unit/invoice.aggregate.spec.ts:1 it.todo refuses an invoice without lines (unattributed, may belong to open US2: settle it or name the row in the marker)
|
|
1174
|
+
|
|
1175
|
+
Not blocking: 1 marker of these contexts belongs to rows of US2.
|
|
1176
|
+
```
|
|
1177
|
+
|
|
1178
|
+
## doctor
|
|
1179
|
+
|
|
1180
|
+
```
|
|
1181
|
+
ddd-ts-kit doctor [--strict]
|
|
1182
|
+
```
|
|
1183
|
+
|
|
1184
|
+
What an upgrade left to do: the scripts, the packages of the kit (at the ranges of this version)
|
|
1185
|
+
and the permissions of the agents that this version writes and the project lacks or writes
|
|
1186
|
+
otherwise, then the git hooks. `lefthook.yml` must hold `lefthook: node_modules/.bin/lefthook`,
|
|
1187
|
+
which makes each checkout and each worktree run its own lefthook and fail a commit, loudly,
|
|
1188
|
+
when its dependencies are missing; the fix is that line, or `init --force` for the whole file.
|
|
1189
|
+
The pre-commit hook under `git rev-parse --git-path hooks` must exist and come from lefthook;
|
|
1190
|
+
the fix is `npm run hooks:install`, once per clone. `--strict` exits 1 while something is
|
|
1191
|
+
missing or at another range; a script written otherwise and a hook this clone has not installed
|
|
1192
|
+
are said without failing it. `--json` prints `{ version, findings: [{ area, name, problem,
|
|
1193
|
+
expected, found }] }`, `area` being `script`, `package`, `permission` or `hook`.
|
|
1194
|
+
|
|
1079
1195
|
## worker-scope
|
|
1080
1196
|
|
|
1081
1197
|
```
|
|
1082
|
-
ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]
|
|
1198
|
+
ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]
|
|
1199
|
+
ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]
|
|
1083
1200
|
```
|
|
1084
1201
|
|
|
1085
1202
|
Prepares the place of one worker of a build split by context: creates a git worktree of the
|
|
1086
1203
|
project (`../<project>-<context>` by default) on the branch `build/<context>`, cut from
|
|
1087
1204
|
`--base` (a branch, a tag or a commit: `origin/main`; by default the current branch), writes
|
|
1088
|
-
`.ddd-ts-kit/worker.json` in it (`{ context, rows, base, branch }
|
|
1089
|
-
|
|
1090
|
-
|
|
1205
|
+
`.ddd-ts-kit/worker.json` in it (`{ context, rows, base, baseCommit, branch }`, `baseCommit` being
|
|
1206
|
+
the commit the base names at that moment; `init` ignores `.ddd-ts-kit/`), and
|
|
1207
|
+
prints the briefing of the worker: its scope, the generators it may run, its slices from
|
|
1208
|
+
`docs/architecture/slices.md` (by default the first batch `plan-waves` cuts for the context, one
|
|
1209
|
+
or two rows still to do on one aggregate, with a note naming the `--rows` of the next batch), its
|
|
1210
|
+
turn budget, the published languages it consumes, and the base as the
|
|
1091
1211
|
trunk of its checks (`check --changed-since <base>`). `--rows 4.15,4.16` briefs those rows only,
|
|
1092
1212
|
in that order: an id is read as written, and a row the file does not have, has twice or gives to
|
|
1093
1213
|
another owner is refused. Each row carries its rules, from a line `- #<id>: <rules>` under the
|
|
1094
1214
|
tables; more than two rows get a note, since an agent holds one or two. An existing worktree, or
|
|
1095
1215
|
an existing branch, is kept when it contains the base and refused when it does not, so that no
|
|
1096
|
-
worker builds on a stale trunk
|
|
1216
|
+
worker builds on a stale trunk, with the fix: `npx ddd-ts-kit merge-trunk --trunk <base> --cwd
|
|
1217
|
+
<worktree>`, never a plain `git merge`, which conflicts again on what already landed; only the
|
|
1218
|
+
file is written again. Without `--base`, run from a
|
|
1097
1219
|
worker's worktree (its `.ddd-ts-kit/worker.json`, or a branch `build/<context>`), it refuses:
|
|
1098
|
-
that branch would become the trunk.
|
|
1099
|
-
|
|
1220
|
+
that branch would become the trunk. In a worktree it creates, it then runs the clean install of
|
|
1221
|
+
the package manager of the project (`npm ci`, `pnpm install --frozen-lockfile`), its output kept
|
|
1222
|
+
only when it fails; a note gives the time it took, or, when it failed or `--no-install` left it
|
|
1223
|
+
out, what to run before the worker starts. `--dry-run` creates, writes and installs nothing. It
|
|
1224
|
+
needs a git repository with one commit at least. The worker then generates with `--local-only`.
|
|
1225
|
+
|
|
1226
|
+
Under each row whose design lives in a document of `docs/architecture/`, the briefing names it
|
|
1227
|
+
(`design: docs/architecture/reviews/refunds.md (section "#M2.03 Compute the refund")`), and the
|
|
1228
|
+
names that design cites the base does not have, as `cited` finds them, come in a block of eight
|
|
1229
|
+
lines at most, with a note for the conductor naming the lines to correct on the trunk. `--json`
|
|
1230
|
+
holds them under `citations`.
|
|
1231
|
+
|
|
1232
|
+
In a worker's worktree, `verify-slice` names the row it closes (the first of `worker.json` that no
|
|
1233
|
+
commit of the branch closes yet) and prints the exact commit command, with the trailer that
|
|
1234
|
+
names the row: `git commit -m "feat(billing): pay an invoice" -m "Slice: M1.14"`. It keeps its
|
|
1235
|
+
result in `.ddd-ts-kit/verification.json` (`{ at, head, row, ok, failed, toStage }`), and the
|
|
1236
|
+
guard of the plugin keeps the runs of the `context-builder` agent in `.ddd-ts-kit/agent.json`.
|
|
1237
|
+
|
|
1238
|
+
`--resume` reads where the stopped worker of the context stands, from the trunk, and creates and
|
|
1239
|
+
rewrites nothing: its rows (committed by their `Slice:` trailer, or in order with the
|
|
1240
|
+
`feat(<context>)` commits for an older commit, shown `(by order)`), the files of the row under
|
|
1241
|
+
way, the markers left in the context, its last verification and what changed since, whether its
|
|
1242
|
+
report is current, and its agent. Then the next step: `SendMessage` to that agent, with the
|
|
1243
|
+
message to send as it is, when it stopped mid-row after progress in a run that is not its third;
|
|
1244
|
+
a new `context-builder` with the briefing of the row under way only, plus the files the earlier
|
|
1245
|
+
agent left (never to regenerate) and its report quoted, between rows, without a recorded agent,
|
|
1246
|
+
after three runs or a run without progress, or with `--fresh` (a full context); the merge once
|
|
1247
|
+
every row is committed and nothing is left. It refuses a context no worktree builds, and names
|
|
1248
|
+
the worktrees of a context two workers build: choose one with `--worktree` or `--branch`.
|
|
1249
|
+
`--json` prints `{ context, worktree, root, branch, base, progress, next, sendMessage, briefing,
|
|
1250
|
+
notes }`.
|
|
1251
|
+
|
|
1252
|
+
## cited
|
|
1253
|
+
|
|
1254
|
+
```
|
|
1255
|
+
ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]
|
|
1256
|
+
```
|
|
1257
|
+
|
|
1258
|
+
The names the design of rows not done cites as code that the code does not have. The design of
|
|
1259
|
+
a row is its `Slice` and `Start with` cells and its rule lines in `docs/architecture/slices.md`,
|
|
1260
|
+
the section of a Markdown file of `docs/architecture/` whose heading names the row (to the next
|
|
1261
|
+
heading of the same level), a file that names it in its text (the whole file), and a file its
|
|
1262
|
+
rule line links to; a file written before the bootstrap and a translation next to its original
|
|
1263
|
+
are left out. A name is an inline code span: a path under the source root or relative to a
|
|
1264
|
+
context, `Class.member`, or a PascalCase name (one word only when it is not a term of the
|
|
1265
|
+
glossary of the row's context). A span with a space, such as a generator command, names nothing.
|
|
1266
|
+
|
|
1267
|
+
Each name is read against `--base` (the current branch by default) from git, without a checkout,
|
|
1268
|
+
and reported only with evidence:
|
|
1269
|
+
|
|
1270
|
+
- removed: the history of the ref removed the file that gave it (`verify-occupancy.command.ts`
|
|
1271
|
+
gives `VerifyOccupancy`, when that file declared it), or the last commit that changed a class
|
|
1272
|
+
took the member out; the report names the commit, its day and subject, and what replaced it,
|
|
1273
|
+
three at most: the file it was renamed to, a file the same commit added in the same context
|
|
1274
|
+
with its words, a name of its stem;
|
|
1275
|
+
- refused: a path the canonical tree refuses, judged as `tree/closed` judges a file;
|
|
1276
|
+
- similar: a name the ref never had, ending with a role suffix (`RefundBasisService`), when the
|
|
1277
|
+
ref has a name of its stem whose role plays the same part (`RefundBasisReader`, a port) and
|
|
1278
|
+
whose file arrived after the line citing it was last changed.
|
|
1279
|
+
|
|
1280
|
+
Everything else is planned, and silent. A name whose sentence says it was removed or renamed is
|
|
1281
|
+
history, and silent; so is a name whose successor the same part cites. `--rows` checks those
|
|
1282
|
+
rows; without it every row not done, of the context when one is given. With `--removed-since
|
|
1283
|
+
<ref>` it lists instead the names the change removes, from the merge base with `<ref>` to the
|
|
1284
|
+
working tree, that the design of a row not done still cites (the rows of the worker of the
|
|
1285
|
+
worktree left out), and a document linked to no row is read too. It reads, writes nothing, and
|
|
1286
|
+
exits 0. `--json` prints `{ base, commit, counts: { present, planned }, citations: [{ rows,
|
|
1287
|
+
document, line, cited, kind, state, removedBy?, refusal?, candidates }], notes }`, or
|
|
1288
|
+
`{ since, citations }` with `--removed-since`. A shallow clone, where a removed name cannot be
|
|
1289
|
+
told from a planned one, and a local base behind its upstream are noted.
|
|
1290
|
+
|
|
1291
|
+
From the example application, before its slices file was corrected:
|
|
1292
|
+
|
|
1293
|
+
```text
|
|
1294
|
+
$ npx ddd-ts-kit cited analytics --rows M1.37 --base HEAD
|
|
1295
|
+
Names of the design of #M1.37 that HEAD does not have (checked at d2bb88de):
|
|
1296
|
+
- docs/architecture/briefings/analytics.md:18 `VerifyOccupancy`: removed by eefe4d21 (2026-10-10, "refactor(example): compute analytics occupancy at read time from one row per appointment (#5)") (#M1.37)
|
|
1297
|
+
- docs/architecture/briefings/analytics.md:33 `VerifyOccupancy`: removed by eefe4d21 (2026-10-10, "refactor(example): compute analytics occupancy at read time from one row per appointment (#5)") (#M1.37)
|
|
1298
|
+
- docs/architecture/slices.md:49 `VerifyOccupancy`: removed by eefe4d21 (2026-10-10, "refactor(example): compute analytics occupancy at read time from one row per appointment (#5)") (#M1.37)
|
|
1299
|
+
Also cited: 4 present, 3 planned (silent).
|
|
1300
|
+
```
|
|
1301
|
+
|
|
1302
|
+
## verify-merge
|
|
1303
|
+
|
|
1304
|
+
```
|
|
1305
|
+
ddd-ts-kit verify-merge [<commit>] [--since <ref>] [--theirs <ref>] [--base <commit>] [--warn]
|
|
1306
|
+
```
|
|
1307
|
+
|
|
1308
|
+
Reports what the merges of a branch lost, read from git alone (no build, no config needed), in
|
|
1309
|
+
about a second. Without a commit it checks every merge commit of `<since>..HEAD` and the merge in
|
|
1310
|
+
progress, whose result is the index plus the working tree, new untracked files included;
|
|
1311
|
+
`--since` defaults to the base of `.ddd-ts-kit/worker.json`, then `origin/HEAD`, then
|
|
1312
|
+
`origin/main`. With a commit it checks that one: a merge commit, or a squash commit with
|
|
1313
|
+
`--theirs <head of the branch it took in>`. A merge is compared with its base: `--base`, else the
|
|
1314
|
+
`Merge-Base:` trailer of its message (a merge computed from the branch's own base after a squash
|
|
1315
|
+
has another base than git would find), else `git merge-base`.
|
|
1316
|
+
|
|
1317
|
+
Over the files the merge, its base or its sides changed, each line is counted, trimmed and with
|
|
1318
|
+
its whitespace collapsed, lines of punctuation only and conflict markers a side committed left
|
|
1319
|
+
out, and each import of named bindings split into one entry per binding: the result must hold it
|
|
1320
|
+
as many times as the base, plus what either side added, minus what either removed. The files are
|
|
1321
|
+
counted together, so a line moved to another file is not lost; a line laid out again on several
|
|
1322
|
+
lines is not either. The derived files, the files whose first lines say a tool wrote them
|
|
1323
|
+
(`@generated`, `autogenerated`, `DO NOT EDIT`), the migrations, the lockfiles (npm, pnpm, yarn,
|
|
1324
|
+
bun, uv, poetry, Pipfile, Cargo, Bundler, Composer, Go, NuGet) and `docs/architecture/slices.md`
|
|
1325
|
+
are left out of the lines.
|
|
1326
|
+
|
|
1327
|
+
| Finding | Severity |
|
|
1328
|
+
|---|---|
|
|
1329
|
+
| a line one side added, or both kept, missing from the result | error |
|
|
1330
|
+
| a file neither side deleted, gone from the result with lines no other file has (one finding per file) | error |
|
|
1331
|
+
| a row of `slices.md` done on one side and not done in the result, or a row of one side gone | error |
|
|
1332
|
+
| the title of an `it(` or a `test(` of one side gone, a spec file of one side deleted | error |
|
|
1333
|
+
| a migration of one side whose description (its name without number and `working-`) no migration of the result has | error |
|
|
1334
|
+
| a conflict marker left in a changed file (`=======` only inside an opened conflict; a file whose sides hold as many markers is passed over) | error |
|
|
1335
|
+
| a line one side removed, brought back | warning |
|
|
1336
|
+
| a line one side wrote where the other side changed the same base lines, inside a block the other side deleted, or in a file it deleted: the merge chose (`superseded`) | warning |
|
|
1337
|
+
| a line the merge replaced, where it stood, by lines of its own that no side has; lines both sides lost in a file where the merge wrote lines of its own (`rewritten`) | warning |
|
|
1338
|
+
|
|
1339
|
+
A line inserted between base lines the other side left alone stays an error even when the other
|
|
1340
|
+
side inserted at the same place: dropping one of two new methods is the loss the check exists
|
|
1341
|
+
for. So does a rewrite that lost more lines than the base lines or the other side's rewrite it
|
|
1342
|
+
competed with (an edit with a new method under it). What one side deleted, or reopened, is never
|
|
1343
|
+
reported. A removal decided on purpose is recorded in the merge commit as a trailer
|
|
1344
|
+
`Lost-Accepted: <file:line>,...` (a file alone accepts all of its lines): those findings are
|
|
1345
|
+
listed and never fail. For a merge older than HEAD, a finding HEAD no longer shows was repaired
|
|
1346
|
+
by a later commit: listed too.
|
|
1347
|
+
|
|
1348
|
+
Without a merge it prints nothing and exits 0; it exits 1 on an error. `--warn` prints the same
|
|
1349
|
+
report, adds that the errors do not block yet, and exits 0. In this version the pre-push hook of
|
|
1350
|
+
`init` runs `verify-merge --warn`, whose output lefthook shows, and `verify-slice` reports the
|
|
1351
|
+
merges since its `--since` without failing the slice; a later minor version makes both block.
|
|
1352
|
+
The check is an estimate: on 150 merges that resolved conflicts in three public projects, one in
|
|
1353
|
+
five still reported an error, most of them a change of one branch dropped on purpose because the
|
|
1354
|
+
other branch had replaced the feature, which only a reader can tell from a loss. `--json` prints
|
|
1355
|
+
`{ since, merges: [{ commit, subject, base, baseFrom, ours, theirs, errors, warnings, accepted, repaired }], errorCount, warningCount, ok }`,
|
|
1356
|
+
each finding being `{ kind, file, line, side, text }`. It cannot see a line both sides added in
|
|
1357
|
+
two places, a lost line of punctuation or a change of meaning, and a shallow clone lacks the
|
|
1358
|
+
commits it reads: in CI it needs `fetch-depth: 0`, which is why the pipelines of `init` do not
|
|
1359
|
+
run it.
|
|
1360
|
+
|
|
1361
|
+
## merge-trunk
|
|
1362
|
+
|
|
1363
|
+
```
|
|
1364
|
+
ddd-ts-kit merge-trunk [--trunk <ref>] [--since <commit>] [--to-land] [--dry-run]
|
|
1365
|
+
ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1368
|
+
Brings the trunk into the branch as one merge commit computed from the branch's own diff. Never
|
|
1369
|
+
rebases, never fetches (the commit `--trunk` names is printed; by default `origin/HEAD`, then
|
|
1370
|
+
`origin/main`). Refused, exit 2: a working tree that is not clean (`.ddd-ts-kit/` aside), a merge,
|
|
1371
|
+
rebase, cherry-pick or revert in progress, a repository where git knows no committer (the merge
|
|
1372
|
+
ends with a commit), an unknown trunk.
|
|
1373
|
+
|
|
1374
|
+
1. **The base**: the newest commit of the branch the trunk already holds. `--since <commit>` (a
|
|
1375
|
+
commit of the branch); else the landed point: the newest commit whose whole change since the
|
|
1376
|
+
trunk is one commit of the trunk, compared by stable patch id without context lines, the
|
|
1377
|
+
derived files, migrations, `slices.md`, `plan.md` and lockfiles left out, looked for on this
|
|
1378
|
+
branch, on the branch `.ddd-ts-kit/worker.json` records as its base, and on the local branches
|
|
1379
|
+
sharing commits with it (a stacked branch whose parent was squash-merged, a branch reused after
|
|
1380
|
+
its first row landed); of commits sharing one patch the oldest is taken, a newer one only when
|
|
1381
|
+
the trunk holds what it changed; else the `baseCommit` worker-scope recorded, when it is a
|
|
1382
|
+
commit of the branch and its own lines are all on the trunk (otherwise it stops, nothing
|
|
1383
|
+
changed, and lists them for a person to confirm with `--since`); else `git merge-base`, and
|
|
1384
|
+
the report names each branch sharing commits not found on the trunk, with its `--since`. Too
|
|
1385
|
+
old shows as more conflicts, never as a silent loss.
|
|
1386
|
+
2. **The preview**: `git merge-tree --write-tree --merge-base=<base> HEAD <trunk>`, diff3 markers;
|
|
1387
|
+
the same without the base gives what a plain `git merge` would conflict on. `--dry-run` stops
|
|
1388
|
+
here and changes nothing.
|
|
1389
|
+
3. **The merge**: the tree becomes a merge in progress git understands (`ORIG_HEAD`, the index
|
|
1390
|
+
with the three stages of each conflicted path, `MERGE_HEAD`, `MERGE_MODE`, `MERGE_MSG`, linked
|
|
1391
|
+
worktrees included): `git status`, `git add`, `git commit` and `git merge --abort` work on it.
|
|
1392
|
+
The message is `Merge <trunk> into <branch>` with the trailers `Merge-Base: <base>`,
|
|
1393
|
+
`Trunk: <commit>` and, when the branch was found squashed there, `Landed: <commit>`.
|
|
1394
|
+
4. **What is settled without a person**:
|
|
1395
|
+
|
|
1396
|
+
| Class | Paths | Resolution |
|
|
1397
|
+
|---|---|---|
|
|
1398
|
+
| derived | `openapi/`, `clients/`, `docs/integration/`, `.dependency-cruiser.cjs`, the barrels and lists of each context | trunk side, rewritten by `regenerate` |
|
|
1399
|
+
| mixed document | `CONTEXT.md`, `docs/context-map.md` | a conflict inside a `<!-- ddd-ts-kit:<region> -->` region: trunk side; outside: for you |
|
|
1400
|
+
| registry | a conflict inside `// ddd-ts-kit:<region>` markers of any file | the base without what either side removed, plus what each added, ours first, once each; names imported from one module joined in one statement in `imports` |
|
|
1401
|
+
| slices | `docs/architecture/slices.md` | row by row by `#`: the furthest status (done, in progress, todo), each other cell from the side that changed it; a cell both changed differently: for you |
|
|
1402
|
+
| drizzle meta | `<out>/meta/_journal.json`, snapshots | trunk side, then the replay |
|
|
1403
|
+
| lockfile | `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock` | trunk side; `<manager> install` when the branch changed `package.json` since the base |
|
|
1404
|
+
| stored events | `stored-events.lock.json` | every version of both sides; one recorded with two shapes: for you |
|
|
1405
|
+
| anything else | sources, tests, `package.json`, configuration, a file one side deleted | for you |
|
|
1406
|
+
|
|
1407
|
+
Anything for you: `.ddd-ts-kit/merge.json` records the merge, the report lists each file with
|
|
1408
|
+
the lines of each hunk, what this branch and its rows did there, the commits of the trunk that
|
|
1409
|
+
touched it since the base and what they did, and the command exits 1.
|
|
1410
|
+
5. **`--continue`** (or straight on without a conflict for you): refused while a path is unmerged
|
|
1411
|
+
or keeps a conflict marker; the install, then the migrations: under drizzle-kit, when both
|
|
1412
|
+
sides added some since the base, or with `--to-land` and a working migration, the replay of
|
|
1413
|
+
`drizzle-generate --replay` (with `--to-land`, the real names, in a worker's worktree too);
|
|
1414
|
+
under knex, Prisma and TypeORM with `--to-land` only, each migration of the branch the trunk
|
|
1415
|
+
does not have renamed after the trunk's last, without `working-`, the content kept (TypeORM's
|
|
1416
|
+
class and `name`, Prisma's folder), and a stop when a migration the trunk gained since the base
|
|
1417
|
+
names a table one of the branch names (generate it again on the trunk); a decision record of
|
|
1418
|
+
the branch whose number the trunk took since the base gets the next free one (its files, its
|
|
1419
|
+
`# ADR-NNNN` title, the links of its translations, recorded as `Lost-Accepted:` lines).
|
|
1420
|
+
6. **`regenerate`** (skipped without the config of the kit or the script); a failure stops.
|
|
1421
|
+
7. **`verify-merge`** on the uncommitted result, on the base the trailer records: an error stops
|
|
1422
|
+
(exit 1), with `file:line (ours|theirs) <text>`, the rows no longer done, the tests lost;
|
|
1423
|
+
`--continue --accept-lost` records them in a `Lost-Accepted:` trailer and goes on.
|
|
1424
|
+
8. **The commit** of the paths of the merge only: what is staged plus what the steps rewrote (the
|
|
1425
|
+
derived files, the migrations, the decision records, the lockfile, `slices.md`, the
|
|
1426
|
+
stored-events lock). Any other changed path is listed as left out and blocks it until it is
|
|
1427
|
+
staged or set aside. The hooks of the project run.
|
|
1428
|
+
|
|
1429
|
+
`--abort` undoes the merge in progress as `git merge --abort` does and forgets its state. Each stop
|
|
1430
|
+
says what to do next and keeps the merge in progress for the next `--continue`. git 2.40 is needed
|
|
1431
|
+
for a base git would not compute; an older git merges with `git merge` itself from
|
|
1432
|
+
`git merge-base` (`--since <merge base>`), and refuses `--dry-run`. Exit 0 once committed, up to
|
|
1433
|
+
date or previewed, 1 on a stop, 2 when it cannot start.
|
|
1434
|
+
|
|
1435
|
+
```text
|
|
1436
|
+
merge-trunk build/billing-2 <- origin/main (d8d281b)
|
|
1437
|
+
base 6d8be4b: build/billing-1 landed as d8d281b "feat(billing): issue and cancel (#1)"
|
|
1438
|
+
conflicts: plain git merge 3, own diff since base 2, automatic 1, for you 1
|
|
1439
|
+
automatic:
|
|
1440
|
+
openapi/openapi.yaml derived: trunk side, regenerated at the end
|
|
1441
|
+
for you (a merge is in progress; `merge-trunk --abort` undoes it):
|
|
1442
|
+
src/contexts/billing/domain/invoice.ts hunks at lines 40-58
|
|
1443
|
+
ours (build/billing-2, rows #M1.02): adds 4 lines: pay(amount: Money, at: Date): void {
|
|
1444
|
+
theirs (origin/main since 6d8be4b, 9a0c1f2 "feat(billing): cancel an invoice (#7)"): adds 3 lines: cancel(reason: CancelReason): void {
|
|
1445
|
+
both sides only add lines: keep both. Never take one side of the whole file.
|
|
1446
|
+
stopped: 1 conflicted path left for you
|
|
1447
|
+
next: resolve each hunk, `git add <file>`, then `npx ddd-ts-kit merge-trunk --continue`
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
`--json` prints the same report:
|
|
1451
|
+
`{ status, branch, trunk: { ref, commit }, base: { commit, evidence, landedAs?, unlanded?, notOnTrunk? }, conflicts: { plainMerge, ownDiff, automatic, forYou }, automatic: [{ file, kind, how }], forYou: [{ file, kind, why, hunks, ours: { branch, rows, change }, theirs: { ref, commits, change }, advice }], migrations, regenerate: { status, output? }, lostLines: { errors, warnings, accepted } | null, leftOut, stop?, commit?, next }`,
|
|
1452
|
+
`status` being `up-to-date`, `dry-run`, `stopped` or `committed` and `evidence` `option`,
|
|
1453
|
+
`landed`, `recorded` or `merge-base`. The guard of the plugin refuses `--to-land` to a sub-agent:
|
|
1454
|
+
landing a branch is the conductor's step, just before its squash merge.
|
|
1100
1455
|
|
|
1101
1456
|
## affected
|
|
1102
1457
|
|
|
@@ -1267,7 +1622,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
1267
1622
|
| `events/name-declared-once` | a class of `domain/events/` without `static readonly eventName`, or whose `readonly name` writes the name again instead of reading it |
|
|
1268
1623
|
| `events/defined-in-published-language` | `defineIntegrationEvent` outside a published language, without a payload, twice for one version; an event described by hand |
|
|
1269
1624
|
| `language/glossary-term` | a class of the model named with a word the glossary of its context does not define; an empty glossary; under `"stack.refusals": "factories"`, an error class of `domain/errors/` too |
|
|
1270
|
-
| `language/declared-vocabulary` | a string literal whose value is a value of a closed vocabulary the project declares (an object `as const` exported with the union type of its name, a permission set of `definePermissions`), outside the file that declares it, in the place that speaks its language (its context; the platform and the route groups for the platform; everywhere for a permission id or the shared kernel); tests, published languages and the relationship schema are not judged; under `"stack.literals": "named"` |
|
|
1625
|
+
| `language/declared-vocabulary` | a string literal whose value is a value of a closed vocabulary the project declares (an object `as const` exported with the union type of its name, a permission set of `definePermissions`), outside the file that declares it, in the place that speaks its language (its context; the platform and the route groups for the platform; everywhere for a permission id or the shared kernel); tests, published languages and the relationship schema are not judged, nor, outside `domain/`, a word typed by another language (a key of a `Record<T, ..>`, a value of a `Record<.., T>`, `'x' satisfies T`, `T` a type of a published language, of a package or of `infrastructure/anti-corruption/` or `infrastructure/external/`); under `"stack.literals": "named"` |
|
|
1271
1626
|
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` in a type declared under `domain/` or in a use case folder |
|
|
1272
1627
|
| `purity/no-system-clock` | `new Date()` without argument, `Date.now()`, `performance.now()` in `domain/` or `application/` |
|
|
1273
1628
|
| `purity/no-ambient-randomness` | `Math.random`, the random source of `crypto`, an id library |
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The top directories of a bounded context: a path cited from one of them (`application/ports/`)
|
|
3
|
+
* is relative to its context. `test/` is left out: `test/e2e/` and `test/integration/` are
|
|
4
|
+
* directories of the project root too.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CONTEXT_LAYERS: readonly string[];
|
|
7
|
+
//# sourceMappingURL=context-layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-layers.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/context-layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAM3C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The top directories of a bounded context: a path cited from one of them (`application/ports/`)
|
|
3
|
+
* is relative to its context. `test/` is left out: `test/e2e/` and `test/integration/` are
|
|
4
|
+
* directories of the project root too.
|
|
5
|
+
*/
|
|
6
|
+
export const CONTEXT_LAYERS = [
|
|
7
|
+
'domain',
|
|
8
|
+
'application',
|
|
9
|
+
'infrastructure',
|
|
10
|
+
'presentation',
|
|
11
|
+
'published-language',
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=context-layers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-layers.js","sourceRoot":"","sources":["../../../src/check/canonical/context-layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,oBAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Config } from '../../config/index.js';
|
|
2
|
+
import type { Flaw } from '../model/flaw.js';
|
|
3
|
+
/**
|
|
4
|
+
* Why the canonical tree refuses a path of a context (`src/contexts/<context>/...`): the flaw of
|
|
5
|
+
* its first directory the tree refuses, from the outermost, then of the path itself; undefined
|
|
6
|
+
* when the tree has a place for it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function firstFlaw(cited: string, config: Config): Flaw | undefined;
|
|
9
|
+
//# sourceMappingURL=first-flaw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-flaw.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/first-flaw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAazE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { strayEntry } from './stray-entry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Why the canonical tree refuses a path of a context (`src/contexts/<context>/...`): the flaw of
|
|
4
|
+
* its first directory the tree refuses, from the outermost, then of the path itself; undefined
|
|
5
|
+
* when the tree has a place for it.
|
|
6
|
+
*/
|
|
7
|
+
export function firstFlaw(cited, config) {
|
|
8
|
+
const segments = cited.replace(/\/$/, '').split('/');
|
|
9
|
+
const directories = segments.slice(0, -1).map((_, index) => `${segments.slice(0, index + 1).join('/')}/`);
|
|
10
|
+
for (const entry of [...directories, cited]) {
|
|
11
|
+
const flaw = strayEntry(entry, config);
|
|
12
|
+
if (flaw !== undefined) {
|
|
13
|
+
return flaw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=first-flaw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-flaw.js","sourceRoot":"","sources":["../../../src/check/canonical/first-flaw.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,MAAc;IACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE1G,KAAK,MAAM,KAAK,IAAI,CAAC,GAAG,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAEvC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Config } from '../../config/index.js';
|
|
2
|
+
import type { Flaw } from '../model/flaw.js';
|
|
3
|
+
/**
|
|
4
|
+
* Why the canonical tree refuses a path given relative to a context (`application/services/`),
|
|
5
|
+
* judged in each of `contexts` with its extra directories: the flaw of the first one when every
|
|
6
|
+
* one of them refuses it; undefined when one accepts it, or when no context is given.
|
|
7
|
+
*/
|
|
8
|
+
export declare function flawInContexts(relative: string, contexts: readonly string[], config: Config): Flaw | undefined;
|
|
9
|
+
//# sourceMappingURL=flaw-in-contexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flaw-in-contexts.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/flaw-in-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAK9G"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { firstFlaw } from './first-flaw.js';
|
|
2
|
+
/**
|
|
3
|
+
* Why the canonical tree refuses a path given relative to a context (`application/services/`),
|
|
4
|
+
* judged in each of `contexts` with its extra directories: the flaw of the first one when every
|
|
5
|
+
* one of them refuses it; undefined when one accepts it, or when no context is given.
|
|
6
|
+
*/
|
|
7
|
+
export function flawInContexts(relative, contexts, config) {
|
|
8
|
+
const flaws = contexts.map((context) => firstFlaw(`${config.contextsDir}/${context}/${relative}`, config));
|
|
9
|
+
const [first] = flaws;
|
|
10
|
+
return flaws.every((flaw) => flaw !== undefined) ? first : undefined;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=flaw-in-contexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flaw-in-contexts.js","sourceRoot":"","sources":["../../../src/check/canonical/flaw-in-contexts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgB,EAAE,QAA2B,EAAE,MAAc;IAC1F,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,IAAI,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3G,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;IAEtB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-context-relative.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/is-context-relative.ts"],"names":[],"mappings":"AAKA,4HAA4H;AAC5H,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CASxD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CONTEXT_LAYERS } from './context-layers.js';
|
|
2
|
+
/** A plain path of a file or a directory, with no placeholder (`<name>`, `*`). */
|
|
3
|
+
const PLAIN_PATH = /^[\w$@.-]+(?:\/[\w$@.-]+)*\/?$/;
|
|
4
|
+
/** True when a path cited in a document starts with a top directory of a context, and names a `.ts` file or a directory. */
|
|
5
|
+
export function isContextRelative(cited) {
|
|
6
|
+
const [first = ''] = cited.split('/');
|
|
7
|
+
return (cited.includes('/') &&
|
|
8
|
+
PLAIN_PATH.test(cited) &&
|
|
9
|
+
(cited.endsWith('.ts') || cited.endsWith('/')) &&
|
|
10
|
+
CONTEXT_LAYERS.includes(first));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=is-context-relative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-context-relative.js","sourceRoot":"","sources":["../../../src/check/canonical/is-context-relative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,kFAAkF;AAClF,MAAM,UAAU,GAAG,gCAAgC,CAAC;AAEpD,4HAA4H;AAC5H,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtC,OAAO,CACL,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;QACnB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC9C,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -12,7 +12,7 @@ export class IssueInvoiceCommand {}`,
|
|
|
12
12
|
good: `export class InvoiceNumbering {}`,
|
|
13
13
|
},
|
|
14
14
|
'language/declared-vocabulary': {
|
|
15
|
-
why: 'A status, a kind, a role or a permission is a word of the language whose values are a closed list. Spelled again as a string wherever it is compared, granted or stored, each copy can drift: a typo compiles, a renamed value leaves its old spelling behind, and nothing completes it in the editor. Declared once, as an object `as const` and the union type of its name (a permission set for permissions), it is read by its key, completed by the editor, and a parameter typed with it accepts nothing else. The value stays the same string on the wire and in the database. A quoted key counts, and is written as a computed key, `[AppointmentStatus.NoShow]: ..`. Tests and published languages are not judged: a test sends the values a client sends, and a published language names the values of its contract itself; nor is the relationship schema of the access model, which declares its relations. In the persistence of a context, the name of a column, a table or a schema is a word of the storage that may spell a value by chance: the first argument of a call (`text("note")`) and the value of `name`, `tableName` or `schema` are not judged; a stored value, the argument of `.default(..)` or a value compared in a query, is. Where: the vocabulary of a context in that context only (the same word may mean something else next door), one of the platform (the roles) in the platform and in the route groups `*.routes.ts`, a permission id and a vocabulary of the shared kernel everywhere. What is read as a vocabulary: every entry a key and a string literal, comments, either quote and `as const satisfies ..` allowed; a number, a spread or a computed entry leaves the object unread, and so does a union type written otherwise than `(typeof X)[keyof typeof X]`. The rule holds under "stack.literals": "named", which `init` writes; a config that does not say keeps the free literals of 0.5.',
|
|
15
|
+
why: 'A status, a kind, a role or a permission is a word of the language whose values are a closed list. Spelled again as a string wherever it is compared, granted or stored, each copy can drift: a typo compiles, a renamed value leaves its old spelling behind, and nothing completes it in the editor. Declared once, as an object `as const` and the union type of its name (a permission set for permissions), it is read by its key, completed by the editor, and a parameter typed with it accepts nothing else. The value stays the same string on the wire and in the database. A quoted key counts, and is written as a computed key, `[AppointmentStatus.NoShow]: ..`. Tests and published languages are not judged: a test sends the values a client sends, and a published language names the values of its contract itself; nor is the relationship schema of the access model, which declares its relations. In the persistence of a context, the name of a column, a table or a schema is a word of the storage that may spell a value by chance: the first argument of a call (`text("note")`) and the value of `name`, `tableName` or `schema` are not judged; a stored value, the argument of `.default(..)` or a value compared in a query, is. A word of another language that spells a value of the context does not belong to the context, and is not judged outside `domain/` when its type says so: a key of a table typed `Record<T, ..>`, a value of one typed `Record<.., T>` or a literal written `"x" satisfies T`, `T` being one type imported from a published language, imported as a type from a package, or imported from or declared in `infrastructure/anti-corruption/` or `infrastructure/external/`, so that the compiler holds its spelling. Where: the vocabulary of a context in that context only (the same word may mean something else next door), one of the platform (the roles) in the platform and in the route groups `*.routes.ts`, a permission id and a vocabulary of the shared kernel everywhere. What is read as a vocabulary: every entry a key and a string literal, comments, either quote and `as const satisfies ..` allowed; a number, a spread or a computed entry leaves the object unread, and so does a union type written otherwise than `(typeof X)[keyof typeof X]`. The rule holds under "stack.literals": "named", which `init` writes; a config that does not say keeps the free literals of 0.5.',
|
|
16
16
|
bad: `// domain/vocabularies/appointment-status.vocabulary.ts declares AppointmentStatus
|
|
17
17
|
if (appointment.status === 'no-show') {
|
|
18
18
|
grants.push('billing:invoice.issue');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-docs.js","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,wBAAwB,EAAE;QACxB,GAAG,EAAE,gTAAgT;QACrT,GAAG,EAAE;+BACsB;QAC3B,IAAI,EAAE;oCAC0B;KACjC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+OAA+O;QACpP,GAAG,EAAE,gCAAgC;QACrC,IAAI,EAAE,kCAAkC;KACzC;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"language-docs.js","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,wBAAwB,EAAE;QACxB,GAAG,EAAE,gTAAgT;QACrT,GAAG,EAAE;+BACsB;QAC3B,IAAI,EAAE;oCAC0B;KACjC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+OAA+O;QACpP,GAAG,EAAE,gCAAgC;QACrC,IAAI,EAAE,kCAAkC;KACzC;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,y0EAAy0E;QAC90E,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;EAER;KACC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,iQAAiQ;QACtQ,GAAG,EAAE,4DAA4D;QACjE,IAAI,EAAE,8DAA8D;KACrE;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,4QAA4Q;QACjR,GAAG,EAAE,uEAAuE;QAC5E,IAAI,EAAE,gEAAgE;KACvE;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,2QAA2Q;QAChR,GAAG,EAAE,6DAA6D;QAClE,IAAI,EAAE,yDAAyD;KAChE;CACF,CAAC"}
|