ddd-ts-kit 0.99.0 → 0.101.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 +229 -0
- package/README.fr.md +253 -64
- package/README.md +233 -65
- package/dist/acceptance/lock-acceptance.d.ts +2 -0
- package/dist/acceptance/lock-acceptance.d.ts.map +1 -1
- package/dist/acceptance/lock-acceptance.js +28 -8
- package/dist/acceptance/lock-acceptance.js.map +1 -1
- package/dist/acceptance/lock-in.d.ts +4 -0
- package/dist/acceptance/lock-in.d.ts.map +1 -0
- package/dist/acceptance/lock-in.js +45 -0
- package/dist/acceptance/lock-in.js.map +1 -0
- package/dist/acceptance/previous-lock-of.d.ts +32 -0
- package/dist/acceptance/previous-lock-of.d.ts.map +1 -0
- package/dist/acceptance/previous-lock-of.js +29 -0
- package/dist/acceptance/previous-lock-of.js.map +1 -0
- package/dist/acceptance/read-acceptance.js +13 -3
- package/dist/acceptance/read-acceptance.js.map +1 -1
- package/dist/acceptance/read-committed-lock.d.ts +28 -0
- package/dist/acceptance/read-committed-lock.d.ts.map +1 -0
- package/dist/acceptance/read-committed-lock.js +27 -0
- package/dist/acceptance/read-committed-lock.js.map +1 -0
- package/dist/acceptance/read-lock.d.ts.map +1 -1
- package/dist/acceptance/read-lock.js +2 -41
- package/dist/acceptance/read-lock.js.map +1 -1
- package/dist/affected/changed-paths.d.ts +2 -1
- package/dist/affected/changed-paths.d.ts.map +1 -1
- package/dist/affected/changed-paths.js +10 -6
- package/dist/affected/changed-paths.js.map +1 -1
- package/dist/affected/format-selection.d.ts.map +1 -1
- package/dist/affected/format-selection.js +2 -1
- package/dist/affected/format-selection.js.map +1 -1
- package/dist/affected/reach-of.d.ts.map +1 -1
- package/dist/affected/reach-of.js +2 -1
- package/dist/affected/reach-of.js.map +1 -1
- package/dist/affected/run-affected.d.ts.map +1 -1
- package/dist/affected/run-affected.js +0 -1
- package/dist/affected/run-affected.js.map +1 -1
- package/dist/check/authz/permission-sets.d.ts +1 -1
- package/dist/check/authz/permission-sets.d.ts.map +1 -1
- package/dist/check/authz/permission-sets.js.map +1 -1
- package/dist/check/canonical/stray-entry.d.ts.map +1 -1
- package/dist/check/canonical/stray-entry.js +2 -1
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/commands/changed-files.d.ts +5 -5
- package/dist/check/commands/changed-files.d.ts.map +1 -1
- package/dist/check/commands/changed-files.js +7 -7
- package/dist/check/commands/changed-files.js.map +1 -1
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +3 -1
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.js +2 -1
- package/dist/check/commands/check-file-command.js.map +1 -1
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +3 -2
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/commands/rules-command.d.ts.map +1 -1
- package/dist/check/commands/rules-command.js +5 -2
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/commands/self-check.d.ts.map +1 -1
- package/dist/check/commands/self-check.js +2 -1
- package/dist/check/commands/self-check.js.map +1 -1
- package/dist/check/configuration/config-inspection.d.ts +2 -0
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +9 -3
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/configuration/leaving-directories.d.ts +7 -0
- package/dist/check/configuration/leaving-directories.d.ts.map +1 -0
- package/dist/check/configuration/leaving-directories.js +13 -0
- package/dist/check/configuration/leaving-directories.js.map +1 -0
- package/dist/check/configuration/unknown-keys.d.ts +8 -0
- package/dist/check/configuration/unknown-keys.d.ts.map +1 -0
- package/dist/check/configuration/unknown-keys.js +84 -0
- package/dist/check/configuration/unknown-keys.js.map +1 -0
- package/dist/check/engine/format-check.d.ts.map +1 -1
- package/dist/check/engine/format-check.js +3 -2
- package/dist/check/engine/format-check.js.map +1 -1
- package/dist/check/explain/layer-docs.js +1 -1
- package/dist/check/explain/layer-docs.js.map +1 -1
- package/dist/check/explain/privacy-docs.js +1 -1
- package/dist/check/explain/privacy-docs.js.map +1 -1
- package/dist/check/fixtures/layer-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/layer-fixtures.js +47 -1
- package/dist/check/fixtures/layer-fixtures.js.map +1 -1
- package/dist/check/fixtures/privacy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/privacy-fixtures.js +39 -0
- package/dist/check/fixtures/privacy-fixtures.js.map +1 -1
- package/dist/check/privacy/published-events-of.d.ts.map +1 -1
- package/dist/check/privacy/published-events-of.js +4 -2
- package/dist/check/privacy/published-events-of.js.map +1 -1
- package/dist/check/project/load-project.d.ts.map +1 -1
- package/dist/check/project/load-project.js +2 -1
- package/dist/check/project/load-project.js.map +1 -1
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +7 -2
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
- package/dist/check/rules/context-declared-relationship.js +2 -1
- package/dist/check/rules/context-declared-relationship.js.map +1 -1
- package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/context-no-cycle.js +2 -1
- package/dist/check/rules/context-no-cycle.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +2 -1
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
- package/dist/check/rules/layer-application-inward.js +11 -2
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +2 -1
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +3 -1
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +10 -2
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
- package/dist/check/rules/tree-context-doc.js +2 -1
- package/dist/check/rules/tree-context-doc.js.map +1 -1
- package/dist/check/scheduling/is-background-job-file.d.ts +4 -0
- package/dist/check/scheduling/is-background-job-file.d.ts.map +1 -0
- package/dist/check/scheduling/is-background-job-file.js +8 -0
- package/dist/check/scheduling/is-background-job-file.js.map +1 -0
- package/dist/check/scheduling/job-classes.d.ts.map +1 -1
- package/dist/check/scheduling/job-classes.js +1 -7
- package/dist/check/scheduling/job-classes.js.map +1 -1
- package/dist/check/schemas/class-shapes.d.ts.map +1 -1
- package/dist/check/schemas/class-shapes.js +5 -26
- package/dist/check/schemas/class-shapes.js.map +1 -1
- package/dist/check/structure/class-statements.d.ts +13 -0
- package/dist/check/structure/class-statements.d.ts.map +1 -0
- package/dist/check/structure/class-statements.js +34 -0
- package/dist/check/structure/class-statements.js.map +1 -0
- package/dist/check/structure/property-of.d.ts +13 -0
- package/dist/check/structure/property-of.d.ts.map +1 -0
- package/dist/check/structure/property-of.js +23 -0
- package/dist/check/structure/property-of.js.map +1 -0
- package/dist/citations/ref-notes.js +7 -2
- package/dist/citations/ref-notes.js.map +1 -1
- package/dist/citations/removals-since.d.ts +2 -1
- package/dist/citations/removals-since.d.ts.map +1 -1
- package/dist/citations/removals-since.js +3 -2
- package/dist/citations/removals-since.js.map +1 -1
- package/dist/citations/stale-names-at.d.ts +6 -1
- package/dist/citations/stale-names-at.d.ts.map +1 -1
- package/dist/citations/stale-names-at.js +14 -6
- package/dist/citations/stale-names-at.js.map +1 -1
- package/dist/commands/acceptance.d.ts.map +1 -1
- package/dist/commands/acceptance.js +4 -4
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/affected.d.ts +4 -1
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +14 -2
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/arguments-error.d.ts +5 -0
- package/dist/commands/arguments-error.d.ts.map +1 -0
- package/dist/commands/arguments-error.js +5 -0
- package/dist/commands/arguments-error.js.map +1 -0
- package/dist/commands/arguments.js +2 -2
- package/dist/commands/arguments.js.map +1 -1
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +2 -1
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +8 -11
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/commit-size.d.ts.map +1 -1
- package/dist/commands/commit-size.js +2 -1
- package/dist/commands/commit-size.js.map +1 -1
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +6 -4
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/controllers.d.ts.map +1 -1
- package/dist/commands/controllers.js +4 -2
- package/dist/commands/controllers.js.map +1 -1
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +5 -3
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +2 -1
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/digest.d.ts +8 -0
- package/dist/commands/digest.d.ts.map +1 -0
- package/dist/commands/digest.js +23 -0
- package/dist/commands/digest.js.map +1 -0
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +4 -2
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +2 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +2 -2
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +2 -1
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/format-context.d.ts +1 -1
- package/dist/commands/format-context.d.ts.map +1 -1
- package/dist/commands/format-context.js +16 -16
- package/dist/commands/format-context.js.map +1 -1
- package/dist/commands/generate.d.ts +6 -3
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +32 -68
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +8 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/known-context.d.ts.map +1 -1
- package/dist/commands/known-context.js +2 -1
- package/dist/commands/known-context.js.map +1 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +4 -3
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/measures.d.ts.map +1 -1
- package/dist/commands/measures.js +2 -1
- package/dist/commands/measures.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts.map +1 -1
- package/dist/commands/merge-trunk.js +3 -2
- package/dist/commands/merge-trunk.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +9 -5
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +5 -2
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/plan-waves.d.ts +3 -2
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +15 -19
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/platform-folders.d.ts.map +1 -1
- package/dist/commands/platform-folders.js +2 -1
- package/dist/commands/platform-folders.js.map +1 -1
- package/dist/commands/print-report.d.ts +1 -1
- package/dist/commands/print-report.d.ts.map +1 -1
- package/dist/commands/print-report.js +15 -6
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +2 -1
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +14 -7
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/sdk.d.ts.map +1 -1
- package/dist/commands/sdk.js +3 -4
- package/dist/commands/sdk.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js +2 -1
- package/dist/commands/stories.js.map +1 -1
- package/dist/commands/story-check.d.ts.map +1 -1
- package/dist/commands/story-check.js +2 -1
- package/dist/commands/story-check.js.map +1 -1
- package/dist/commands/story-scope.d.ts.map +1 -1
- package/dist/commands/story-scope.js +2 -1
- package/dist/commands/story-scope.js.map +1 -1
- package/dist/commands/story.d.ts.map +1 -1
- package/dist/commands/story.js +2 -1
- package/dist/commands/story.js.map +1 -1
- package/dist/commands/todo.d.ts +4 -1
- package/dist/commands/todo.d.ts.map +1 -1
- package/dist/commands/todo.js +12 -6
- package/dist/commands/todo.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts +3 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +36 -7
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/value-objects.d.ts.map +1 -1
- package/dist/commands/value-objects.js +2 -1
- package/dist/commands/value-objects.js.map +1 -1
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +2 -1
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +5 -2
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +3 -2
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/commands/worktree.js +2 -1
- package/dist/commands/worktree.js.map +1 -1
- package/dist/commit/commit-of.d.ts +6 -0
- package/dist/commit/commit-of.d.ts.map +1 -0
- package/dist/commit/commit-of.js +9 -0
- package/dist/commit/commit-of.js.map +1 -0
- package/dist/commit/known-commit.d.ts +6 -0
- package/dist/commit/known-commit.d.ts.map +1 -0
- package/dist/commit/known-commit.js +14 -0
- package/dist/commit/known-commit.js.map +1 -0
- package/dist/commit/run-git.d.ts +2 -1
- package/dist/commit/run-git.d.ts.map +1 -1
- package/dist/commit/run-git.js +3 -1
- package/dist/commit/run-git.js.map +1 -1
- package/dist/commit/worker-scope-file.d.ts.map +1 -1
- package/dist/commit/worker-scope-file.js +2 -1
- package/dist/commit/worker-scope-file.js.map +1 -1
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/default-allowed-packages.d.ts.map +1 -1
- package/dist/config/default-allowed-packages.js +2 -14
- package/dist/config/default-allowed-packages.js.map +1 -1
- package/dist/config/derived-config-keys.d.ts +6 -0
- package/dist/config/derived-config-keys.d.ts.map +1 -0
- package/dist/config/derived-config-keys.js +6 -0
- package/dist/config/derived-config-keys.js.map +1 -0
- package/dist/config/directories-of.d.ts +4 -0
- package/dist/config/directories-of.d.ts.map +1 -0
- package/dist/config/directories-of.js +13 -0
- package/dist/config/directories-of.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/inside-defaults-of.d.ts +4 -0
- package/dist/config/inside-defaults-of.d.ts.map +1 -0
- package/dist/config/inside-defaults-of.js +9 -0
- package/dist/config/inside-defaults-of.js.map +1 -0
- package/dist/config/is-control-plane.d.ts.map +1 -1
- package/dist/config/is-control-plane.js +2 -1
- package/dist/config/is-control-plane.js.map +1 -1
- package/dist/config/known-config-keys.d.ts +7 -0
- package/dist/config/known-config-keys.d.ts.map +1 -0
- package/dist/config/known-config-keys.js +41 -0
- package/dist/config/known-config-keys.js.map +1 -0
- package/dist/config/known-stack-keys.d.ts +3 -0
- package/dist/config/known-stack-keys.d.ts.map +1 -0
- package/dist/config/known-stack-keys.js +39 -0
- package/dist/config/known-stack-keys.js.map +1 -0
- package/dist/config/leaves-project.d.ts +3 -0
- package/dist/config/leaves-project.d.ts.map +1 -0
- package/dist/config/leaves-project.js +11 -0
- package/dist/config/leaves-project.js.map +1 -0
- package/dist/config/leaving-directory-problem.d.ts +7 -0
- package/dist/config/leaving-directory-problem.d.ts.map +1 -0
- package/dist/config/leaving-directory-problem.js +8 -0
- package/dist/config/leaving-directory-problem.js.map +1 -0
- package/dist/config/normalized-directory.d.ts +3 -0
- package/dist/config/normalized-directory.d.ts.map +1 -0
- package/dist/config/normalized-directory.js +7 -0
- package/dist/config/normalized-directory.js.map +1 -0
- package/dist/config/parse-config.d.ts +8 -2
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/parse-config.js +31 -8
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/payload-schema-packages-of.d.ts +7 -0
- package/dist/config/payload-schema-packages-of.d.ts.map +1 -0
- package/dist/config/payload-schema-packages-of.js +10 -0
- package/dist/config/payload-schema-packages-of.js.map +1 -0
- package/dist/config/project-directories.d.ts +4 -0
- package/dist/config/project-directories.d.ts.map +1 -0
- package/dist/config/project-directories.js +3 -0
- package/dist/config/project-directories.js.map +1 -0
- package/dist/config/read-config.d.ts +2 -1
- package/dist/config/read-config.d.ts.map +1 -1
- package/dist/config/read-config.js +2 -2
- package/dist/config/read-config.js.map +1 -1
- package/dist/config/schema-libraries-of.d.ts +6 -0
- package/dist/config/schema-libraries-of.d.ts.map +1 -0
- package/dist/config/schema-libraries-of.js +18 -0
- package/dist/config/schema-libraries-of.js.map +1 -0
- package/dist/config/values/nearest-of.d.ts +7 -0
- package/dist/config/values/nearest-of.d.ts.map +1 -0
- package/dist/config/values/nearest-of.js +34 -0
- package/dist/config/values/nearest-of.js.map +1 -0
- package/dist/config/values/own-entry.d.ts +6 -0
- package/dist/config/values/own-entry.d.ts.map +1 -0
- package/dist/config/values/own-entry.js +8 -0
- package/dist/config/values/own-entry.js.map +1 -0
- package/dist/controllers/finish-migration.js +7 -2
- package/dist/controllers/finish-migration.js.map +1 -1
- package/dist/controllers/migrate-context.js +17 -5
- package/dist/controllers/migrate-context.js.map +1 -1
- package/dist/depcruise/context-rules.d.ts.map +1 -1
- package/dist/depcruise/context-rules.js +2 -1
- package/dist/depcruise/context-rules.js.map +1 -1
- package/dist/depcruise/layer-rules.d.ts.map +1 -1
- package/dist/depcruise/layer-rules.js +38 -8
- package/dist/depcruise/layer-rules.js.map +1 -1
- package/dist/derived/behaviour-pages.d.ts +3 -0
- package/dist/derived/behaviour-pages.d.ts.map +1 -0
- package/dist/derived/behaviour-pages.js +3 -0
- package/dist/derived/behaviour-pages.js.map +1 -0
- package/dist/derived/derived-file-kind.d.ts +19 -0
- package/dist/derived/derived-file-kind.d.ts.map +1 -0
- package/dist/derived/derived-file-kind.js +2 -0
- package/dist/derived/derived-file-kind.js.map +1 -0
- package/dist/derived/derived-files.d.ts +9 -0
- package/dist/derived/derived-files.d.ts.map +1 -0
- package/dist/derived/derived-files.js +71 -0
- package/dist/derived/derived-files.js.map +1 -0
- package/dist/derived/derived-tree.d.ts +9 -0
- package/dist/derived/derived-tree.d.ts.map +1 -0
- package/dist/derived/derived-tree.js +2 -0
- package/dist/derived/derived-tree.js.map +1 -0
- package/dist/derived/is-derived.d.ts +7 -11
- package/dist/derived/is-derived.d.ts.map +1 -1
- package/dist/derived/is-derived.js +8 -16
- package/dist/derived/is-derived.js.map +1 -1
- package/dist/describe/read-event-definitions.d.ts +2 -0
- package/dist/describe/read-event-definitions.d.ts.map +1 -1
- package/dist/describe/read-event-definitions.js +1 -0
- package/dist/describe/read-event-definitions.js.map +1 -1
- package/dist/digest/branch-points.d.ts +14 -0
- package/dist/digest/branch-points.d.ts.map +1 -0
- package/dist/digest/branch-points.js +32 -0
- package/dist/digest/branch-points.js.map +1 -0
- package/dist/digest/changed-path.d.ts +7 -0
- package/dist/digest/changed-path.d.ts.map +1 -0
- package/dist/digest/changed-path.js +2 -0
- package/dist/digest/changed-path.js.map +1 -0
- package/dist/digest/changed-paths.d.ts +8 -0
- package/dist/digest/changed-paths.d.ts.map +1 -0
- package/dist/digest/changed-paths.js +35 -0
- package/dist/digest/changed-paths.js.map +1 -0
- package/dist/digest/changes-of.d.ts +8 -0
- package/dist/digest/changes-of.d.ts.map +1 -0
- package/dist/digest/changes-of.js +20 -0
- package/dist/digest/changes-of.js.map +1 -0
- package/dist/digest/context-changes.d.ts +9 -0
- package/dist/digest/context-changes.d.ts.map +1 -0
- package/dist/digest/context-changes.js +60 -0
- package/dist/digest/context-changes.js.map +1 -0
- package/dist/digest/context-entries.d.ts +14 -0
- package/dist/digest/context-entries.d.ts.map +1 -0
- package/dist/digest/context-entries.js +18 -0
- package/dist/digest/context-entries.js.map +1 -0
- package/dist/digest/digest.d.ts +90 -0
- package/dist/digest/digest.d.ts.map +1 -0
- package/dist/digest/digest.js +2 -0
- package/dist/digest/digest.js.map +1 -0
- package/dist/digest/files-to-read.d.ts +16 -0
- package/dist/digest/files-to-read.d.ts.map +1 -0
- package/dist/digest/files-to-read.js +33 -0
- package/dist/digest/files-to-read.js.map +1 -0
- package/dist/digest/format-digest.d.ts +8 -0
- package/dist/digest/format-digest.d.ts.map +1 -0
- package/dist/digest/format-digest.js +105 -0
- package/dist/digest/format-digest.js.map +1 -0
- package/dist/digest/grant-sources.d.ts +22 -0
- package/dist/digest/grant-sources.d.ts.map +1 -0
- package/dist/digest/grant-sources.js +47 -0
- package/dist/digest/grant-sources.js.map +1 -0
- package/dist/digest/grants-of.d.ts +19 -0
- package/dist/digest/grants-of.d.ts.map +1 -0
- package/dist/digest/grants-of.js +35 -0
- package/dist/digest/grants-of.js.map +1 -0
- package/dist/digest/index.d.ts +3 -0
- package/dist/digest/index.d.ts.map +1 -0
- package/dist/digest/index.js +3 -0
- package/dist/digest/index.js.map +1 -0
- package/dist/digest/new-spec-titles.d.ts +11 -0
- package/dist/digest/new-spec-titles.d.ts.map +1 -0
- package/dist/digest/new-spec-titles.js +38 -0
- package/dist/digest/new-spec-titles.js.map +1 -0
- package/dist/digest/project-tree.d.ts +16 -0
- package/dist/digest/project-tree.d.ts.map +1 -0
- package/dist/digest/project-tree.js +2 -0
- package/dist/digest/project-tree.js.map +1 -0
- package/dist/digest/read-digest.d.ts +11 -0
- package/dist/digest/read-digest.d.ts.map +1 -0
- package/dist/digest/read-digest.js +52 -0
- package/dist/digest/read-digest.js.map +1 -0
- package/dist/digest/reading-part.d.ts +10 -0
- package/dist/digest/reading-part.d.ts.map +1 -0
- package/dist/digest/reading-part.js +40 -0
- package/dist/digest/reading-part.js.map +1 -0
- package/dist/digest/tree-at.d.ts +9 -0
- package/dist/digest/tree-at.d.ts.map +1 -0
- package/dist/digest/tree-at.js +77 -0
- package/dist/digest/tree-at.js.map +1 -0
- package/dist/digest/without-generated-sections.d.ts +3 -0
- package/dist/digest/without-generated-sections.d.ts.map +1 -0
- package/dist/digest/without-generated-sections.js +21 -0
- package/dist/digest/without-generated-sections.js.map +1 -0
- package/dist/docs/all-rules.d.ts +4 -0
- package/dist/docs/all-rules.d.ts.map +1 -0
- package/dist/docs/all-rules.js +5 -0
- package/dist/docs/all-rules.js.map +1 -0
- package/dist/docs/behaviour-page.d.ts +6 -2
- package/dist/docs/behaviour-page.d.ts.map +1 -1
- package/dist/docs/behaviour-page.js +65 -57
- package/dist/docs/behaviour-page.js.map +1 -1
- package/dist/docs/cited-rows.d.ts +11 -0
- package/dist/docs/cited-rows.d.ts.map +1 -0
- package/dist/docs/cited-rows.js +13 -0
- package/dist/docs/cited-rows.js.map +1 -0
- package/dist/docs/context-sections.d.ts +18 -0
- package/dist/docs/context-sections.d.ts.map +1 -0
- package/dist/docs/context-sections.js +112 -0
- package/dist/docs/context-sections.js.map +1 -0
- package/dist/docs/counts-of.d.ts +3 -1
- package/dist/docs/counts-of.d.ts.map +1 -1
- package/dist/docs/counts-of.js +8 -8
- package/dist/docs/counts-of.js.map +1 -1
- package/dist/docs/describe-on-disk.d.ts +7 -0
- package/dist/docs/describe-on-disk.d.ts.map +1 -0
- package/dist/docs/describe-on-disk.js +6 -0
- package/dist/docs/describe-on-disk.js.map +1 -0
- package/dist/docs/is-empty-rules.d.ts +4 -0
- package/dist/docs/is-empty-rules.d.ts.map +1 -0
- package/dist/docs/is-empty-rules.js +5 -0
- package/dist/docs/is-empty-rules.js.map +1 -0
- package/dist/docs/is-generated-title.d.ts +7 -0
- package/dist/docs/is-generated-title.d.ts.map +1 -0
- package/dist/docs/is-generated-title.js +96 -0
- package/dist/docs/is-generated-title.js.map +1 -0
- package/dist/docs/joined-specs.d.ts +23 -0
- package/dist/docs/joined-specs.d.ts.map +1 -0
- package/dist/docs/joined-specs.js +95 -0
- package/dist/docs/joined-specs.js.map +1 -0
- package/dist/docs/kebab-of-use-case.d.ts +4 -0
- package/dist/docs/kebab-of-use-case.d.ts.map +1 -0
- package/dist/docs/kebab-of-use-case.js +6 -0
- package/dist/docs/kebab-of-use-case.js.map +1 -0
- package/dist/docs/page-section.d.ts +17 -3
- package/dist/docs/page-section.d.ts.map +1 -1
- package/dist/docs/policy-owners.d.ts +8 -0
- package/dist/docs/policy-owners.d.ts.map +1 -0
- package/dist/docs/policy-owners.js +13 -0
- package/dist/docs/policy-owners.js.map +1 -0
- package/dist/docs/read-context.d.ts.map +1 -1
- package/dist/docs/read-context.js +2 -1
- package/dist/docs/read-context.js.map +1 -1
- package/dist/docs/read-job-files.d.ts +16 -0
- package/dist/docs/read-job-files.d.ts.map +1 -0
- package/dist/docs/read-job-files.js +50 -0
- package/dist/docs/read-job-files.js.map +1 -0
- package/dist/docs/read-jobs.d.ts +2 -6
- package/dist/docs/read-jobs.d.ts.map +1 -1
- package/dist/docs/read-jobs.js +3 -45
- package/dist/docs/read-jobs.js.map +1 -1
- package/dist/docs/readable-title.d.ts +10 -0
- package/dist/docs/readable-title.d.ts.map +1 -0
- package/dist/docs/readable-title.js +38 -0
- package/dist/docs/readable-title.js.map +1 -0
- package/dist/docs/refresh-context-doc.d.ts +4 -2
- package/dist/docs/refresh-context-doc.d.ts.map +1 -1
- package/dist/docs/refresh-context-doc.js +12 -4
- package/dist/docs/refresh-context-doc.js.map +1 -1
- package/dist/docs/rules-where.d.ts +4 -0
- package/dist/docs/rules-where.d.ts.map +1 -0
- package/dist/docs/rules-where.js +12 -0
- package/dist/docs/rules-where.js.map +1 -0
- package/dist/docs/spec-heading.d.ts +3 -0
- package/dist/docs/spec-heading.d.ts.map +1 -0
- package/dist/docs/spec-heading.js +10 -0
- package/dist/docs/spec-heading.js.map +1 -0
- package/dist/docs/spec-of-page.d.ts +5 -0
- package/dist/docs/spec-of-page.d.ts.map +1 -0
- package/dist/docs/spec-of-page.js +14 -0
- package/dist/docs/spec-of-page.js.map +1 -0
- package/dist/docs/spec-roles.d.ts +9 -0
- package/dist/docs/spec-roles.d.ts.map +1 -0
- package/dist/docs/spec-roles.js +50 -0
- package/dist/docs/spec-roles.js.map +1 -0
- package/dist/docs/spec-subject.d.ts +15 -0
- package/dist/docs/spec-subject.d.ts.map +1 -0
- package/dist/docs/spec-subject.js +19 -0
- package/dist/docs/spec-subject.js.map +1 -0
- package/dist/docs/specs-by-directory.d.ts +7 -0
- package/dist/docs/specs-by-directory.d.ts.map +1 -0
- package/dist/docs/specs-by-directory.js +31 -0
- package/dist/docs/specs-by-directory.js.map +1 -0
- package/dist/docs/use-case-of-spec.d.ts +11 -0
- package/dist/docs/use-case-of-spec.d.ts.map +1 -0
- package/dist/docs/use-case-of-spec.js +40 -0
- package/dist/docs/use-case-of-spec.js.map +1 -0
- package/dist/docs/use-cases-of-context.d.ts +8 -0
- package/dist/docs/use-cases-of-context.d.ts.map +1 -0
- package/dist/docs/use-cases-of-context.js +2 -0
- package/dist/docs/use-cases-of-context.js.map +1 -0
- package/dist/docs/write-behaviour.d.ts +6 -5
- package/dist/docs/write-behaviour.d.ts.map +1 -1
- package/dist/docs/write-behaviour.js +37 -47
- package/dist/docs/write-behaviour.js.map +1 -1
- package/dist/docs/write-code-owners.d.ts.map +1 -1
- package/dist/docs/write-code-owners.js +3 -2
- package/dist/docs/write-code-owners.js.map +1 -1
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +4 -2
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/doctor/format-diagnosis.js +2 -4
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/generate/context-argument.d.ts +5 -0
- package/dist/generate/context-argument.d.ts.map +1 -0
- package/dist/generate/context-argument.js +9 -0
- package/dist/generate/context-argument.js.map +1 -0
- package/dist/generate/flags-of.d.ts +4 -0
- package/dist/generate/flags-of.d.ts.map +1 -0
- package/dist/generate/flags-of.js +6 -0
- package/dist/generate/flags-of.js.map +1 -0
- package/dist/generate/found-prerequisite.d.ts +7 -0
- package/dist/generate/found-prerequisite.d.ts.map +1 -0
- package/dist/generate/found-prerequisite.js +12 -0
- package/dist/generate/found-prerequisite.js.map +1 -0
- package/dist/generate/generate-arguments.d.ts +4 -0
- package/dist/generate/generate-arguments.d.ts.map +1 -0
- package/dist/generate/generate-arguments.js +12 -0
- package/dist/generate/generate-arguments.js.map +1 -0
- package/dist/generate/generate-options.d.ts +172 -0
- package/dist/generate/generate-options.d.ts.map +1 -0
- package/dist/generate/generate-options.js +57 -0
- package/dist/generate/generate-options.js.map +1 -0
- package/dist/generate/generator-probe.d.ts +19 -0
- package/dist/generate/generator-probe.d.ts.map +1 -0
- package/dist/generate/generator-probe.js +2 -0
- package/dist/generate/generator-probe.js.map +1 -0
- package/dist/generate/held-to-glossary.d.ts +9 -0
- package/dist/generate/held-to-glossary.d.ts.map +1 -0
- package/dist/generate/held-to-glossary.js +11 -0
- package/dist/generate/held-to-glossary.js.map +1 -0
- package/dist/generate/kind-help.d.ts +21 -0
- package/dist/generate/kind-help.d.ts.map +1 -0
- package/dist/generate/kind-help.js +20 -0
- package/dist/generate/kind-help.js.map +1 -0
- package/dist/generate/kind-in.d.ts +8 -0
- package/dist/generate/kind-in.d.ts.map +1 -0
- package/dist/generate/kind-in.js +29 -0
- package/dist/generate/kind-in.js.map +1 -0
- package/dist/generate/kind.d.ts +4 -1
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +3 -2
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +1 -1
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +24 -13
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js +2 -2
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
- package/dist/generate/kinds/background/background-job-vars.d.ts.map +1 -1
- package/dist/generate/kinds/background/background-job-vars.js +33 -0
- package/dist/generate/kinds/background/background-job-vars.js.map +1 -1
- package/dist/generate/kinds/background/class-payload-schema.d.ts +5 -0
- package/dist/generate/kinds/background/class-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/class-payload-schema.js +88 -0
- package/dist/generate/kinds/background/class-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/object-payload-schema.d.ts +7 -0
- package/dist/generate/kinds/background/object-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/object-payload-schema.js +75 -0
- package/dist/generate/kinds/background/object-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/payload-field.d.ts +5 -0
- package/dist/generate/kinds/background/payload-field.d.ts.map +1 -1
- package/dist/generate/kinds/background/payload-field.js +7 -0
- package/dist/generate/kinds/background/payload-field.js.map +1 -1
- package/dist/generate/kinds/background/payload-of.d.ts +9 -0
- package/dist/generate/kinds/background/payload-of.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-of.js +2 -0
- package/dist/generate/kinds/background/payload-of.js.map +1 -0
- package/dist/generate/kinds/background/payload-schema-of.d.ts +10 -0
- package/dist/generate/kinds/background/payload-schema-of.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-schema-of.js +21 -0
- package/dist/generate/kinds/background/payload-schema-of.js.map +1 -0
- package/dist/generate/kinds/background/payload-schema.d.ts +16 -0
- package/dist/generate/kinds/background/payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-schema.js +2 -0
- package/dist/generate/kinds/background/payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/payload-shape.d.ts +19 -0
- package/dist/generate/kinds/background/payload-shape.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-shape.js +31 -0
- package/dist/generate/kinds/background/payload-shape.js.map +1 -0
- package/dist/generate/kinds/background/payload-texts.d.ts +12 -0
- package/dist/generate/kinds/background/payload-texts.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-texts.js +10 -0
- package/dist/generate/kinds/background/payload-texts.js.map +1 -0
- package/dist/generate/kinds/background/written-payload-schema.d.ts +11 -0
- package/dist/generate/kinds/background/written-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/written-payload-schema.js +193 -0
- package/dist/generate/kinds/background/written-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background-job-kind.js +1 -1
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/birth-names.d.ts +11 -0
- package/dist/generate/kinds/birth-names.d.ts.map +1 -0
- package/dist/generate/kinds/birth-names.js +17 -0
- package/dist/generate/kinds/birth-names.js.map +1 -0
- package/dist/generate/kinds/birth-of.d.ts +16 -0
- package/dist/generate/kinds/birth-of.d.ts.map +1 -0
- package/dist/generate/kinds/birth-of.js +26 -0
- package/dist/generate/kinds/birth-of.js.map +1 -0
- package/dist/generate/kinds/birth-span.d.ts +9 -0
- package/dist/generate/kinds/birth-span.d.ts.map +1 -0
- package/dist/generate/kinds/birth-span.js +39 -0
- package/dist/generate/kinds/birth-span.js.map +1 -0
- package/dist/generate/kinds/birth-vars.d.ts +8 -0
- package/dist/generate/kinds/birth-vars.d.ts.map +1 -0
- package/dist/generate/kinds/birth-vars.js +12 -0
- package/dist/generate/kinds/birth-vars.js.map +1 -0
- package/dist/generate/kinds/birth.d.ts +7 -0
- package/dist/generate/kinds/birth.d.ts.map +1 -0
- package/dist/generate/kinds/birth.js +2 -0
- package/dist/generate/kinds/birth.js.map +1 -0
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +43 -4
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-context.d.ts +2 -2
- package/dist/generate/kinds/command-context.d.ts.map +1 -1
- package/dist/generate/kinds/command-context.js +12 -3
- package/dist/generate/kinds/command-context.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +18 -11
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/context-kind.d.ts.map +1 -1
- package/dist/generate/kinds/context-kind.js +1 -0
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/context-request.d.ts +3 -0
- package/dist/generate/kinds/context-request.d.ts.map +1 -1
- package/dist/generate/kinds/declarations-of.d.ts +11 -0
- package/dist/generate/kinds/declarations-of.d.ts.map +1 -0
- package/dist/generate/kinds/declarations-of.js +17 -0
- package/dist/generate/kinds/declarations-of.js.map +1 -0
- package/dist/generate/kinds/e2e/jobs-sending.d.ts +4 -1
- package/dist/generate/kinds/e2e/jobs-sending.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/jobs-sending.js +10 -4
- package/dist/generate/kinds/e2e/jobs-sending.js.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.js +9 -4
- package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +7 -2
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.js +7 -3
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/event-type-as-published.d.ts +11 -0
- package/dist/generate/kinds/event-type-as-published.d.ts.map +1 -0
- package/dist/generate/kinds/event-type-as-published.js +17 -0
- package/dist/generate/kinds/event-type-as-published.js.map +1 -0
- package/dist/generate/kinds/factory-of.d.ts +3 -0
- package/dist/generate/kinds/factory-of.d.ts.map +1 -0
- package/dist/generate/kinds/factory-of.js +13 -0
- package/dist/generate/kinds/factory-of.js.map +1 -0
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +3 -2
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.js +1 -1
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +3 -1
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/generate-context.d.ts.map +1 -1
- package/dist/generate/kinds/generate-context.js +24 -6
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/generate-event-sourced-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-event-sourced-repository.js +4 -2
- package/dist/generate/kinds/generate-event-sourced-repository.js.map +1 -1
- package/dist/generate/kinds/instant-of.d.ts +4 -0
- package/dist/generate/kinds/instant-of.d.ts.map +1 -0
- package/dist/generate/kinds/instant-of.js +5 -0
- package/dist/generate/kinds/instant-of.js.map +1 -0
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +2 -9
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +33 -16
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job/read-sent-command.d.ts.map +1 -1
- package/dist/generate/kinds/job/read-sent-command.js +1 -7
- package/dist/generate/kinds/job/read-sent-command.js.map +1 -1
- package/dist/generate/kinds/job/without-comments.d.ts +7 -0
- package/dist/generate/kinds/job/without-comments.d.ts.map +1 -0
- package/dist/generate/kinds/job/without-comments.js +13 -0
- package/dist/generate/kinds/job/without-comments.js.map +1 -0
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +14 -3
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.js +3 -3
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/parameter-count.d.ts +6 -0
- package/dist/generate/kinds/parameter-count.d.ts.map +1 -0
- package/dist/generate/kinds/parameter-count.js +32 -0
- package/dist/generate/kinds/parameter-count.js.map +1 -0
- package/dist/generate/kinds/parse-version.d.ts +3 -0
- package/dist/generate/kinds/parse-version.d.ts.map +1 -0
- package/dist/generate/kinds/parse-version.js +9 -0
- package/dist/generate/kinds/parse-version.js.map +1 -0
- package/dist/generate/kinds/personal-data/personal-request-of.d.ts.map +1 -1
- package/dist/generate/kinds/personal-data/personal-request-of.js +9 -6
- package/dist/generate/kinds/personal-data/personal-request-of.js.map +1 -1
- package/dist/generate/kinds/personal-data/personal-vars.js +1 -1
- package/dist/generate/kinds/personal-data/personal-vars.js.map +1 -1
- package/dist/generate/kinds/pick-declaration.d.ts +9 -0
- package/dist/generate/kinds/pick-declaration.d.ts.map +1 -0
- package/dist/generate/kinds/pick-declaration.js +14 -0
- package/dist/generate/kinds/pick-declaration.js.map +1 -0
- package/dist/generate/kinds/plan-vars.d.ts.map +1 -1
- package/dist/generate/kinds/plan-vars.js +2 -1
- package/dist/generate/kinds/plan-vars.js.map +1 -1
- package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
- package/dist/generate/kinds/policy-kind.js +15 -2
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.js +17 -5
- package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +24 -13
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.js +1 -1
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-context.d.ts +7 -3
- package/dist/generate/kinds/query-context.d.ts.map +1 -1
- package/dist/generate/kinds/query-context.js +16 -5
- package/dist/generate/kinds/query-context.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +4 -1
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/refuse-unpublished-version.d.ts +7 -0
- package/dist/generate/kinds/refuse-unpublished-version.d.ts.map +1 -0
- package/dist/generate/kinds/refuse-unpublished-version.js +15 -0
- package/dist/generate/kinds/refuse-unpublished-version.js.map +1 -0
- package/dist/generate/kinds/repository-kind.js +1 -1
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.js +1 -1
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route/carries-body.d.ts +4 -0
- package/dist/generate/kinds/route/carries-body.d.ts.map +1 -0
- package/dist/generate/kinds/route/carries-body.js +6 -0
- package/dist/generate/kinds/route/carries-body.js.map +1 -0
- package/dist/generate/kinds/route/controller-types.d.ts +3 -1
- package/dist/generate/kinds/route/controller-types.d.ts.map +1 -1
- package/dist/generate/kinds/route/controller-types.js +7 -4
- package/dist/generate/kinds/route/controller-types.js.map +1 -1
- package/dist/generate/kinds/route/controller-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/controller-vars.js +15 -8
- package/dist/generate/kinds/route/controller-vars.js.map +1 -1
- package/dist/generate/kinds/route/described-field.d.ts +4 -0
- package/dist/generate/kinds/route/described-field.d.ts.map +1 -0
- package/dist/generate/kinds/route/described-field.js +5 -0
- package/dist/generate/kinds/route/described-field.js.map +1 -0
- package/dist/generate/kinds/route/dto-classes.d.ts.map +1 -1
- package/dist/generate/kinds/route/dto-classes.js +2 -2
- package/dist/generate/kinds/route/dto-classes.js.map +1 -1
- package/dist/generate/kinds/route/find-use-case.d.ts.map +1 -1
- package/dist/generate/kinds/route/find-use-case.js +4 -1
- package/dist/generate/kinds/route/find-use-case.js.map +1 -1
- package/dist/generate/kinds/route/group-prefix.d.ts.map +1 -1
- package/dist/generate/kinds/route/group-prefix.js +9 -3
- package/dist/generate/kinds/route/group-prefix.js.map +1 -1
- package/dist/generate/kinds/route/message-call.d.ts +15 -0
- package/dist/generate/kinds/route/message-call.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-call.js +19 -0
- package/dist/generate/kinds/route/message-call.js.map +1 -0
- package/dist/generate/kinds/route/message-fields-of.d.ts +15 -0
- package/dist/generate/kinds/route/message-fields-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-fields-of.js +13 -0
- package/dist/generate/kinds/route/message-fields-of.js.map +1 -0
- package/dist/generate/kinds/route/message-plan.d.ts +31 -0
- package/dist/generate/kinds/route/message-plan.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-plan.js +46 -0
- package/dist/generate/kinds/route/message-plan.js.map +1 -0
- package/dist/generate/kinds/route/message-vars.d.ts +11 -0
- package/dist/generate/kinds/route/message-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-vars.js +92 -0
- package/dist/generate/kinds/route/message-vars.js.map +1 -0
- package/dist/generate/kinds/route/nest-controller-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/nest-controller-vars.js +2 -2
- package/dist/generate/kinds/route/nest-controller-vars.js.map +1 -1
- package/dist/generate/kinds/route/plan-of.d.ts +14 -0
- package/dist/generate/kinds/route/plan-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/plan-of.js +6 -0
- package/dist/generate/kinds/route/plan-of.js.map +1 -0
- package/dist/generate/kinds/route/resolve-group.d.ts.map +1 -1
- package/dist/generate/kinds/route/resolve-group.js +4 -2
- package/dist/generate/kinds/route/resolve-group.js.map +1 -1
- package/dist/generate/kinds/route/route-vars.d.ts +6 -2
- package/dist/generate/kinds/route/route-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/route-vars.js +37 -14
- package/dist/generate/kinds/route/route-vars.js.map +1 -1
- package/dist/generate/kinds/route/sample-params.d.ts +3 -0
- package/dist/generate/kinds/route/sample-params.d.ts.map +1 -0
- package/dist/generate/kinds/route/sample-params.js +7 -0
- package/dist/generate/kinds/route/sample-params.js.map +1 -0
- package/dist/generate/kinds/route/spec-vars.d.ts +22 -0
- package/dist/generate/kinds/route/spec-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/spec-vars.js +80 -0
- package/dist/generate/kinds/route/spec-vars.js.map +1 -0
- package/dist/generate/kinds/route/standard-schema-of.d.ts +17 -0
- package/dist/generate/kinds/route/standard-schema-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/standard-schema-of.js +74 -0
- package/dist/generate/kinds/route/standard-schema-of.js.map +1 -0
- package/dist/generate/kinds/route/use-case.d.ts +3 -0
- package/dist/generate/kinds/route/use-case.d.ts.map +1 -1
- package/dist/generate/kinds/route/writes-body-of.d.ts +4 -0
- package/dist/generate/kinds/route/writes-body-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/writes-body-of.js +5 -0
- package/dist/generate/kinds/route/writes-body-of.js.map +1 -0
- package/dist/generate/kinds/route/writes-params-of.d.ts +4 -0
- package/dist/generate/kinds/route/writes-params-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/writes-params-of.js +5 -0
- package/dist/generate/kinds/route/writes-params-of.js.map +1 -0
- package/dist/generate/kinds/route-group-kind.js +3 -2
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.js +2 -2
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +1 -1
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/traced-command.d.ts +1 -1
- package/dist/generate/kinds/traced-command.d.ts.map +1 -1
- package/dist/generate/kinds/traced-command.js +5 -2
- package/dist/generate/kinds/traced-command.js.map +1 -1
- package/dist/generate/kinds/use-case-context.d.ts +7 -0
- package/dist/generate/kinds/use-case-context.d.ts.map +1 -0
- package/dist/generate/kinds/use-case-context.js +2 -0
- package/dist/generate/kinds/use-case-context.js.map +1 -0
- package/dist/generate/kinds/wanted-event.d.ts +6 -0
- package/dist/generate/kinds/wanted-event.d.ts.map +1 -0
- package/dist/generate/kinds/wanted-event.js +2 -0
- package/dist/generate/kinds/wanted-event.js.map +1 -0
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +2 -1
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/kinds/world/context-fakes.d.ts +2 -1
- package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
- package/dist/generate/kinds/world/context-fakes.js +24 -4
- package/dist/generate/kinds/world/context-fakes.js.map +1 -1
- package/dist/generate/kinds/world/context-world.d.ts +37 -0
- package/dist/generate/kinds/world/context-world.d.ts.map +1 -0
- package/dist/generate/kinds/world/context-world.js +60 -0
- package/dist/generate/kinds/world/context-world.js.map +1 -0
- package/dist/generate/kinds/world/fake-class.d.ts +2 -0
- package/dist/generate/kinds/world/fake-class.d.ts.map +1 -1
- package/dist/generate/kinds/world/fake-class.js +2 -2
- package/dist/generate/kinds/world/fake-class.js.map +1 -1
- package/dist/generate/kinds/world/is-world-comment.d.ts +3 -0
- package/dist/generate/kinds/world/is-world-comment.d.ts.map +1 -0
- package/dist/generate/kinds/world/is-world-comment.js +12 -0
- package/dist/generate/kinds/world/is-world-comment.js.map +1 -0
- package/dist/generate/kinds/world/world-arrangement.d.ts +32 -0
- package/dist/generate/kinds/world/world-arrangement.d.ts.map +1 -0
- package/dist/generate/kinds/world/world-arrangement.js +110 -0
- package/dist/generate/kinds/world/world-arrangement.js.map +1 -0
- package/dist/generate/kinds/world/world-comments.d.ts +11 -0
- package/dist/generate/kinds/world/world-comments.d.ts.map +1 -0
- package/dist/generate/kinds/world/world-comments.js +11 -0
- package/dist/generate/kinds/world/world-comments.js.map +1 -0
- package/dist/generate/kinds/world/world-vars.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-vars.js +6 -2
- package/dist/generate/kinds/world/world-vars.js.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.js +9 -3
- package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
- package/dist/generate/kinds-help.d.ts +1 -15
- package/dist/generate/kinds-help.d.ts.map +1 -1
- package/dist/generate/kinds-help.js +2 -16
- package/dist/generate/kinds-help.js.map +1 -1
- package/dist/generate/learn-terms.d.ts +4 -1
- package/dist/generate/learn-terms.d.ts.map +1 -1
- package/dist/generate/learn-terms.js +6 -2
- package/dist/generate/learn-terms.js.map +1 -1
- package/dist/generate/missing-prerequisite.d.ts +10 -0
- package/dist/generate/missing-prerequisite.d.ts.map +1 -0
- package/dist/generate/missing-prerequisite.js +10 -0
- package/dist/generate/missing-prerequisite.js.map +1 -0
- package/dist/generate/open-scope.d.ts.map +1 -1
- package/dist/generate/open-scope.js +9 -5
- package/dist/generate/open-scope.js.map +1 -1
- package/dist/generate/place-generated-files.d.ts.map +1 -1
- package/dist/generate/place-generated-files.js +2 -1
- package/dist/generate/place-generated-files.js.map +1 -1
- package/dist/generate/prerequisite-refusal.d.ts +8 -0
- package/dist/generate/prerequisite-refusal.d.ts.map +1 -0
- package/dist/generate/prerequisite-refusal.js +11 -0
- package/dist/generate/prerequisite-refusal.js.map +1 -0
- package/dist/generate/refresh-barrels.d.ts.map +1 -1
- package/dist/generate/refresh-barrels.js +4 -1
- package/dist/generate/refresh-barrels.js.map +1 -1
- package/dist/generate/refuse-undeclared-flags.d.ts +9 -0
- package/dist/generate/refuse-undeclared-flags.d.ts.map +1 -0
- package/dist/generate/refuse-undeclared-flags.js +34 -0
- package/dist/generate/refuse-undeclared-flags.js.map +1 -0
- package/dist/generate/require-file.d.ts.map +1 -1
- package/dist/generate/require-file.js +4 -3
- package/dist/generate/require-file.js.map +1 -1
- package/dist/generate/without-language-todo.d.ts +3 -0
- package/dist/generate/without-language-todo.d.ts.map +1 -0
- package/dist/generate/without-language-todo.js +7 -0
- package/dist/generate/without-language-todo.js.map +1 -0
- package/dist/generator-lock/held-lock-refusal.d.ts +5 -0
- package/dist/generator-lock/held-lock-refusal.d.ts.map +1 -0
- package/dist/generator-lock/held-lock-refusal.js +14 -0
- package/dist/generator-lock/held-lock-refusal.js.map +1 -0
- package/dist/generator-lock/holder-of.d.ts +9 -0
- package/dist/generator-lock/holder-of.d.ts.map +1 -0
- package/dist/generator-lock/holder-of.js +40 -0
- package/dist/generator-lock/holder-of.js.map +1 -0
- package/dist/generator-lock/index.d.ts +2 -0
- package/dist/generator-lock/index.d.ts.map +1 -0
- package/dist/generator-lock/index.js +2 -0
- package/dist/generator-lock/index.js.map +1 -0
- package/dist/generator-lock/is-same-holder.d.ts +4 -0
- package/dist/generator-lock/is-same-holder.d.ts.map +1 -0
- package/dist/generator-lock/is-same-holder.js +5 -0
- package/dist/generator-lock/is-same-holder.js.map +1 -0
- package/dist/generator-lock/is-stale.d.ts +9 -0
- package/dist/generator-lock/is-stale.d.ts.map +1 -0
- package/dist/generator-lock/is-stale.js +24 -0
- package/dist/generator-lock/is-stale.js.map +1 -0
- package/dist/generator-lock/lock-holder.d.ts +10 -0
- package/dist/generator-lock/lock-holder.d.ts.map +1 -0
- package/dist/generator-lock/lock-holder.js +2 -0
- package/dist/generator-lock/lock-holder.js.map +1 -0
- package/dist/generator-lock/lock-timing.d.ts +7 -0
- package/dist/generator-lock/lock-timing.d.ts.map +1 -0
- package/dist/generator-lock/lock-timing.js +2 -0
- package/dist/generator-lock/lock-timing.js.map +1 -0
- package/dist/generator-lock/own-lock.d.ts +18 -0
- package/dist/generator-lock/own-lock.d.ts.map +1 -0
- package/dist/generator-lock/own-lock.js +44 -0
- package/dist/generator-lock/own-lock.js.map +1 -0
- package/dist/generator-lock/remove-made-folder.d.ts +3 -0
- package/dist/generator-lock/remove-made-folder.d.ts.map +1 -0
- package/dist/generator-lock/remove-made-folder.js +14 -0
- package/dist/generator-lock/remove-made-folder.js.map +1 -0
- package/dist/generator-lock/remove-stale.d.ts +7 -0
- package/dist/generator-lock/remove-stale.d.ts.map +1 -0
- package/dist/generator-lock/remove-stale.js +23 -0
- package/dist/generator-lock/remove-stale.js.map +1 -0
- package/dist/generator-lock/with-generator-lock.d.ts +24 -0
- package/dist/generator-lock/with-generator-lock.d.ts.map +1 -0
- package/dist/generator-lock/with-generator-lock.js +69 -0
- package/dist/generator-lock/with-generator-lock.js.map +1 -0
- package/dist/help/command-help-data.d.ts +14 -0
- package/dist/help/command-help-data.d.ts.map +1 -0
- package/dist/help/command-help-data.js +15 -0
- package/dist/help/command-help-data.js.map +1 -0
- package/dist/help/command-help.d.ts +7 -0
- package/dist/help/command-help.d.ts.map +1 -0
- package/dist/help/command-help.js +21 -0
- package/dist/help/command-help.js.map +1 -0
- package/dist/help/flag-notes.d.ts +4 -0
- package/dist/help/flag-notes.d.ts.map +1 -0
- package/dist/help/flag-notes.js +112 -0
- package/dist/help/flag-notes.js.map +1 -0
- package/dist/help/help-for.d.ts +7 -0
- package/dist/help/help-for.d.ts.map +1 -0
- package/dist/help/help-for.js +37 -0
- package/dist/help/help-for.js.map +1 -0
- package/dist/help/kind-asked.d.ts +4 -0
- package/dist/help/kind-asked.d.ts.map +1 -0
- package/dist/help/kind-asked.js +6 -0
- package/dist/help/kind-asked.js.map +1 -0
- package/dist/help/kind-help-text.d.ts +4 -0
- package/dist/help/kind-help-text.d.ts.map +1 -0
- package/dist/help/kind-help-text.js +46 -0
- package/dist/help/kind-help-text.js.map +1 -0
- package/dist/help/kind-line.d.ts +4 -0
- package/dist/help/kind-line.d.ts.map +1 -0
- package/dist/help/kind-line.js +6 -0
- package/dist/help/kind-line.js.map +1 -0
- package/dist/help/note-lines.d.ts +4 -0
- package/dist/help/note-lines.d.ts.map +1 -0
- package/dist/help/note-lines.js +8 -0
- package/dist/help/note-lines.js.map +1 -0
- package/dist/help/note.d.ts +10 -0
- package/dist/help/note.d.ts.map +1 -0
- package/dist/help/note.js +2 -0
- package/dist/help/note.js.map +1 -0
- package/dist/help/notes.d.ts +3 -2
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +6 -318
- package/dist/help/notes.js.map +1 -1
- package/dist/help/reading-notes.d.ts +4 -0
- package/dist/help/reading-notes.d.ts.map +1 -0
- package/dist/help/reading-notes.js +150 -0
- package/dist/help/reading-notes.js.map +1 -0
- package/dist/help/reference-text.d.ts.map +1 -1
- package/dist/help/reference-text.js +4 -4
- package/dist/help/reference-text.js.map +1 -1
- package/dist/help/tool-notes.d.ts +4 -0
- package/dist/help/tool-notes.d.ts.map +1 -0
- package/dist/help/tool-notes.js +152 -0
- package/dist/help/tool-notes.js.map +1 -0
- package/dist/help/usage-for.d.ts +6 -0
- package/dist/help/usage-for.d.ts.map +1 -0
- package/dist/help/usage-for.js +16 -0
- package/dist/help/usage-for.js.map +1 -0
- package/dist/help/usage-lines-of.d.ts +3 -0
- package/dist/help/usage-lines-of.d.ts.map +1 -0
- package/dist/help/usage-lines-of.js +19 -0
- package/dist/help/usage-lines-of.js.map +1 -0
- package/dist/help/usage.d.ts +3 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +10 -4
- package/dist/help/usage.js.map +1 -1
- package/dist/help/work-notes.d.ts +4 -0
- package/dist/help/work-notes.d.ts.map +1 -0
- package/dist/help/work-notes.js +197 -0
- package/dist/help/work-notes.js.map +1 -0
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +10 -1
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/forced-note.d.ts +4 -0
- package/dist/init/forced-note.d.ts.map +1 -0
- package/dist/init/forced-note.js +14 -0
- package/dist/init/forced-note.js.map +1 -0
- package/dist/init/ignore-worktrees.d.ts.map +1 -1
- package/dist/init/ignore-worktrees.js +7 -1
- package/dist/init/ignore-worktrees.js.map +1 -1
- package/dist/init/is-pipeline-definition.d.ts +3 -0
- package/dist/init/is-pipeline-definition.d.ts.map +1 -0
- package/dist/init/is-pipeline-definition.js +7 -0
- package/dist/init/is-pipeline-definition.js.map +1 -0
- package/dist/init/is-team-file.d.ts +9 -0
- package/dist/init/is-team-file.d.ts.map +1 -0
- package/dist/init/is-team-file.js +12 -0
- package/dist/init/is-team-file.js.map +1 -0
- package/dist/init/kept-combination-notes.d.ts +5 -0
- package/dist/init/kept-combination-notes.d.ts.map +1 -0
- package/dist/init/kept-combination-notes.js +18 -0
- package/dist/init/kept-combination-notes.js.map +1 -0
- package/dist/init/kept-or-merged.d.ts +11 -0
- package/dist/init/kept-or-merged.d.ts.map +1 -0
- package/dist/init/kept-or-merged.js +23 -0
- package/dist/init/kept-or-merged.js.map +1 -0
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/manifest/versions.js.map +1 -1
- package/dist/init/manifest/write-manifest.js +8 -0
- package/dist/init/manifest/write-manifest.js.map +1 -1
- package/dist/init/manifest/write-overrides.js +4 -0
- package/dist/init/manifest/write-overrides.js.map +1 -1
- package/dist/init/merged-ignore-files.d.ts +3 -0
- package/dist/init/merged-ignore-files.d.ts.map +1 -0
- package/dist/init/merged-ignore-files.js +3 -0
- package/dist/init/merged-ignore-files.js.map +1 -0
- package/dist/init/merged-ignore-lines.d.ts +9 -0
- package/dist/init/merged-ignore-lines.d.ts.map +1 -0
- package/dist/init/merged-ignore-lines.js +32 -0
- package/dist/init/merged-ignore-lines.js.map +1 -0
- package/dist/init/refuse-unprojected-root.d.ts +7 -0
- package/dist/init/refuse-unprojected-root.d.ts.map +1 -0
- package/dist/init/refuse-unprojected-root.js +31 -0
- package/dist/init/refuse-unprojected-root.js.map +1 -0
- package/dist/init/run-init.d.ts +3 -2
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +29 -9
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/http-cache-misfit.d.ts +4 -0
- package/dist/init/stack/http-cache-misfit.d.ts.map +1 -0
- package/dist/init/stack/http-cache-misfit.js +21 -0
- package/dist/init/stack/http-cache-misfit.js.map +1 -0
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +2 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/issues-url.d.ts +3 -0
- package/dist/issues-url.d.ts.map +1 -0
- package/dist/issues-url.js +3 -0
- package/dist/issues-url.js.map +1 -0
- package/dist/json/format-json.d.ts +2 -1
- package/dist/json/format-json.d.ts.map +1 -1
- package/dist/json/format-json.js +2 -1
- package/dist/json/format-json.js.map +1 -1
- package/dist/json/stdout-json.d.ts +7 -0
- package/dist/json/stdout-json.d.ts.map +1 -0
- package/dist/json/stdout-json.js +9 -0
- package/dist/json/stdout-json.js.map +1 -0
- package/dist/layout/fit-declaration.d.ts +2 -1
- package/dist/layout/fit-declaration.d.ts.map +1 -1
- package/dist/layout/fit-declaration.js +3 -2
- package/dist/layout/fit-declaration.js.map +1 -1
- package/dist/merge/is-derived-in-merge.d.ts.map +1 -1
- package/dist/merge/is-derived-in-merge.js +1 -2
- package/dist/merge/is-derived-in-merge.js.map +1 -1
- package/dist/merge/landed-point.js +1 -1
- package/dist/merge/landed-point.js.map +1 -1
- package/dist/merge/lost/in-progress-merge.js +1 -1
- package/dist/merge/lost/in-progress-merge.js.map +1 -1
- package/dist/merge/lost/merge-base-of.d.ts.map +1 -1
- package/dist/merge/lost/merge-base-of.js +6 -9
- package/dist/merge/lost/merge-base-of.js.map +1 -1
- package/dist/merge/lost/merge-of-record.d.ts.map +1 -1
- package/dist/merge/lost/merge-of-record.js +4 -9
- package/dist/merge/lost/merge-of-record.js.map +1 -1
- package/dist/merge/lost/merges-since.d.ts +1 -1
- package/dist/merge/lost/merges-since.d.ts.map +1 -1
- package/dist/merge/lost/merges-since.js +1 -1
- package/dist/merge/lost/merges-since.js.map +1 -1
- package/dist/merge/lost/since-of.d.ts +11 -2
- package/dist/merge/lost/since-of.d.ts.map +1 -1
- package/dist/merge/lost/since-of.js +17 -9
- package/dist/merge/lost/since-of.js.map +1 -1
- package/dist/merge/lost/verify-merge.js +1 -1
- package/dist/merge/lost/verify-merge.js.map +1 -1
- package/dist/merge/lost/verify-merges.d.ts +2 -0
- package/dist/merge/lost/verify-merges.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.js +8 -5
- package/dist/merge/lost/verify-merges.js.map +1 -1
- package/dist/merge/merge-exclusions.d.ts +3 -4
- package/dist/merge/merge-exclusions.d.ts.map +1 -1
- package/dist/merge/merge-exclusions.js +19 -19
- package/dist/merge/merge-exclusions.js.map +1 -1
- package/dist/merge/merge-state.d.ts.map +1 -1
- package/dist/merge/merge-state.js +2 -1
- package/dist/merge/merge-state.js.map +1 -1
- package/dist/merge/merge-steps.d.ts.map +1 -1
- package/dist/merge/merge-steps.js +0 -1
- package/dist/merge/merge-steps.js.map +1 -1
- package/dist/merge/merge-trunk.js +1 -1
- package/dist/merge/merge-trunk.js.map +1 -1
- package/dist/merge/resume-merge.js +1 -1
- package/dist/merge/resume-merge.js.map +1 -1
- package/dist/merge/sharing-branches.js +1 -1
- package/dist/merge/sharing-branches.js.map +1 -1
- package/dist/merge/trunk-of.d.ts.map +1 -1
- package/dist/merge/trunk-of.js +8 -5
- package/dist/merge/trunk-of.js.map +1 -1
- package/dist/migration/audit-guard/orm-tool-entry.d.ts +3 -0
- package/dist/migration/audit-guard/orm-tool-entry.d.ts.map +1 -0
- package/dist/migration/audit-guard/orm-tool-entry.js +12 -0
- package/dist/migration/audit-guard/orm-tool-entry.js.map +1 -0
- package/dist/migration/audit-guard/run-orm-tool.d.ts.map +1 -1
- package/dist/migration/audit-guard/run-orm-tool.js +2 -7
- package/dist/migration/audit-guard/run-orm-tool.js.map +1 -1
- package/dist/migration/has-database-url.d.ts +3 -0
- package/dist/migration/has-database-url.d.ts.map +1 -0
- package/dist/migration/has-database-url.js +5 -0
- package/dist/migration/has-database-url.js.map +1 -0
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/migration-name.d.ts +8 -0
- package/dist/migration/migration-name.d.ts.map +1 -0
- package/dist/migration/migration-name.js +14 -0
- package/dist/migration/migration-name.js.map +1 -0
- package/dist/migration/offline-prisma-migration.d.ts +18 -0
- package/dist/migration/offline-prisma-migration.d.ts.map +1 -0
- package/dist/migration/offline-prisma-migration.js +91 -0
- package/dist/migration/offline-prisma-migration.js.map +1 -0
- package/dist/migration/plan-replay.d.ts.map +1 -1
- package/dist/migration/plan-replay.js +3 -7
- package/dist/migration/plan-replay.js.map +1 -1
- package/dist/migration/run-on-in-process-database.d.ts +8 -0
- package/dist/migration/run-on-in-process-database.d.ts.map +1 -0
- package/dist/migration/run-on-in-process-database.js +55 -0
- package/dist/migration/run-on-in-process-database.js.map +1 -0
- package/dist/migration/tool-step.d.ts +8 -0
- package/dist/migration/tool-step.d.ts.map +1 -0
- package/dist/migration/tool-step.js +2 -0
- package/dist/migration/tool-step.js.map +1 -0
- package/dist/model-modules/declared-module.d.ts.map +1 -1
- package/dist/model-modules/declared-module.js +2 -2
- package/dist/model-modules/declared-module.js.map +1 -1
- package/dist/model-modules/declared-modules.d.ts.map +1 -1
- package/dist/model-modules/declared-modules.js +2 -1
- package/dist/model-modules/declared-modules.js.map +1 -1
- package/dist/model-modules/module-placement.d.ts.map +1 -1
- package/dist/model-modules/module-placement.js +2 -1
- package/dist/model-modules/module-placement.js.map +1 -1
- package/dist/naming/index.d.ts +1 -0
- package/dist/naming/index.d.ts.map +1 -1
- package/dist/naming/index.js +1 -0
- package/dist/naming/index.js.map +1 -1
- package/dist/naming/name.d.ts +1 -1
- package/dist/naming/name.d.ts.map +1 -1
- package/dist/naming/parse-context-name.d.ts +1 -0
- package/dist/naming/parse-context-name.d.ts.map +1 -1
- package/dist/naming/parse-context-name.js +5 -3
- package/dist/naming/parse-context-name.js.map +1 -1
- package/dist/naming/read-name.d.ts +8 -0
- package/dist/naming/read-name.d.ts.map +1 -0
- package/dist/naming/read-name.js +20 -0
- package/dist/naming/read-name.js.map +1 -0
- package/dist/nest-controllers/refresh-nest-controllers.d.ts.map +1 -1
- package/dist/nest-controllers/refresh-nest-controllers.js +4 -1
- package/dist/nest-controllers/refresh-nest-controllers.js.map +1 -1
- package/dist/plan/copy-of-project.d.ts +3 -0
- package/dist/plan/copy-of-project.d.ts.map +1 -0
- package/dist/plan/copy-of-project.js +43 -0
- package/dist/plan/copy-of-project.js.map +1 -0
- package/dist/plan/format-plan.d.ts +4 -3
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +48 -17
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/is-started.d.ts +4 -0
- package/dist/plan/is-started.d.ts.map +1 -0
- package/dist/plan/is-started.js +6 -0
- package/dist/plan/is-started.js.map +1 -0
- package/dist/plan/missing-dependencies.d.ts +10 -0
- package/dist/plan/missing-dependencies.d.ts.map +1 -0
- package/dist/plan/missing-dependencies.js +35 -0
- package/dist/plan/missing-dependencies.js.map +1 -0
- package/dist/plan/plan-problems.d.ts +4 -2
- package/dist/plan/plan-problems.d.ts.map +1 -1
- package/dist/plan/plan-problems.js +30 -2
- package/dist/plan/plan-problems.js.map +1 -1
- package/dist/plan/plan-waves.d.ts +2 -0
- package/dist/plan/plan-waves.d.ts.map +1 -1
- package/dist/plan/plan-waves.js +3 -3
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/plan/planned-words.d.ts +11 -23
- package/dist/plan/planned-words.d.ts.map +1 -1
- package/dist/plan/planned-words.js +50 -105
- package/dist/plan/planned-words.js.map +1 -1
- package/dist/plan/refused-command.d.ts +18 -0
- package/dist/plan/refused-command.d.ts.map +1 -0
- package/dist/plan/refused-command.js +109 -0
- package/dist/plan/refused-command.js.map +1 -0
- package/dist/plan/replay-plan.d.ts +27 -0
- package/dist/plan/replay-plan.d.ts.map +1 -0
- package/dist/plan/replay-plan.js +91 -0
- package/dist/plan/replay-plan.js.map +1 -0
- package/dist/plan/replay.d.ts +39 -0
- package/dist/plan/replay.d.ts.map +1 -0
- package/dist/plan/replay.js +52 -0
- package/dist/plan/replay.js.map +1 -0
- package/dist/plan/replayed-plan.d.ts +13 -0
- package/dist/plan/replayed-plan.d.ts.map +1 -0
- package/dist/plan/replayed-plan.js +17 -0
- package/dist/plan/replayed-plan.js.map +1 -0
- package/dist/plan/rows-to-plan.d.ts +1 -1
- package/dist/plan/rows-to-plan.d.ts.map +1 -1
- package/dist/plan/rows-to-plan.js +2 -1
- package/dist/plan/rows-to-plan.js.map +1 -1
- package/dist/plan/transitive-dependencies.d.ts +8 -0
- package/dist/plan/transitive-dependencies.d.ts.map +1 -0
- package/dist/plan/transitive-dependencies.js +26 -0
- package/dist/plan/transitive-dependencies.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +55 -9
- package/dist/plan/wave-plan.d.ts.map +1 -1
- package/dist/platform-folders/placements.d.ts.map +1 -1
- package/dist/platform-folders/placements.js +17 -1
- package/dist/platform-folders/placements.js.map +1 -1
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +2 -2
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/outside-the-tenancy.d.ts.map +1 -1
- package/dist/presets/outside-the-tenancy.js +3 -1
- package/dist/presets/outside-the-tenancy.js.map +1 -1
- package/dist/progress/format-progress.d.ts.map +1 -1
- package/dist/progress/format-progress.js +3 -2
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/slice.d.ts +7 -1
- package/dist/progress/slice.d.ts.map +1 -1
- package/dist/progress/slice.js +2 -1
- package/dist/progress/slice.js.map +1 -1
- package/dist/refusals/apply-plan.d.ts.map +1 -1
- package/dist/refusals/apply-plan.js +2 -1
- package/dist/refusals/apply-plan.js.map +1 -1
- package/dist/refuse-windows-shell.d.ts +17 -0
- package/dist/refuse-windows-shell.d.ts.map +1 -0
- package/dist/refuse-windows-shell.js +32 -0
- package/dist/refuse-windows-shell.js.map +1 -0
- package/dist/review/generated-file-kind.d.ts +13 -0
- package/dist/review/generated-file-kind.d.ts.map +1 -0
- package/dist/review/generated-file-kind.js +2 -0
- package/dist/review/generated-file-kind.js.map +1 -0
- package/dist/review/generated-files-named.d.ts +4 -0
- package/dist/review/generated-files-named.d.ts.map +1 -0
- package/dist/review/generated-files-named.js +8 -0
- package/dist/review/generated-files-named.js.map +1 -0
- package/dist/review/generated-files.d.ts +9 -0
- package/dist/review/generated-files.d.ts.map +1 -0
- package/dist/review/generated-files.js +20 -0
- package/dist/review/generated-files.js.map +1 -0
- package/dist/review/index.d.ts +3 -0
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/index.js +3 -0
- package/dist/review/index.js.map +1 -0
- package/dist/run.d.ts +5 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +62 -25
- package/dist/run.js.map +1 -1
- package/dist/slice/plan-staging.d.ts.map +1 -1
- package/dist/slice/plan-staging.js +2 -1
- package/dist/slice/plan-staging.js.map +1 -1
- package/dist/slice/run-script.d.ts.map +1 -1
- package/dist/slice/run-script.js +0 -1
- package/dist/slice/run-script.js.map +1 -1
- package/dist/slice/slice-to-verify.d.ts +3 -0
- package/dist/slice/slice-to-verify.d.ts.map +1 -1
- package/dist/slice/storage-of-slice.d.ts +1 -1
- package/dist/slice/storage-of-slice.d.ts.map +1 -1
- package/dist/slice/storage-of-slice.js.map +1 -1
- package/dist/slice/verification-file.d.ts.map +1 -1
- package/dist/slice/verification-file.js +2 -1
- package/dist/slice/verification-file.js.map +1 -1
- package/dist/slice/verify-slice.d.ts +1 -1
- package/dist/slice/verify-slice.d.ts.map +1 -1
- package/dist/slice/verify-slice.js +4 -4
- package/dist/slice/verify-slice.js.map +1 -1
- package/dist/stories/open-story-scope.js +4 -5
- package/dist/stories/open-story-scope.js.map +1 -1
- package/dist/stories/read-story-phases.js +1 -1
- package/dist/stories/read-story-phases.js.map +1 -1
- package/dist/stories/story-scope-file.d.ts.map +1 -1
- package/dist/stories/story-scope-file.js +2 -1
- package/dist/stories/story-scope-file.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/worker/add-worktree.d.ts +2 -1
- package/dist/worker/add-worktree.d.ts.map +1 -1
- package/dist/worker/add-worktree.js +2 -1
- package/dist/worker/add-worktree.js.map +1 -1
- package/dist/worker/agent-file.d.ts.map +1 -1
- package/dist/worker/agent-file.js +2 -1
- package/dist/worker/agent-file.js.map +1 -1
- package/dist/worker/base-of.d.ts +6 -1
- package/dist/worker/base-of.d.ts.map +1 -1
- package/dist/worker/base-of.js +4 -8
- package/dist/worker/base-of.js.map +1 -1
- package/dist/worker/branch-standing.js +1 -1
- package/dist/worker/branch-standing.js.map +1 -1
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +2 -1
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/ensure-contains-base.d.ts +4 -2
- package/dist/worker/ensure-contains-base.d.ts.map +1 -1
- package/dist/worker/ensure-contains-base.js +4 -3
- package/dist/worker/ensure-contains-base.js.map +1 -1
- package/dist/worker/install-dependencies.d.ts.map +1 -1
- package/dist/worker/install-dependencies.js +0 -1
- package/dist/worker/install-dependencies.js.map +1 -1
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +22 -16
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/worker/report-file.d.ts.map +1 -1
- package/dist/worker/report-file.js +2 -1
- package/dist/worker/report-file.js.map +1 -1
- package/dist/workspace/disk-writes.d.ts +10 -0
- package/dist/workspace/disk-writes.d.ts.map +1 -0
- package/dist/workspace/disk-writes.js +2 -0
- package/dist/workspace/disk-writes.js.map +1 -0
- package/dist/workspace/files-git-does-not-hold.d.ts +7 -0
- package/dist/workspace/files-git-does-not-hold.d.ts.map +1 -0
- package/dist/workspace/files-git-does-not-hold.js +28 -0
- package/dist/workspace/files-git-does-not-hold.js.map +1 -0
- package/dist/workspace/gist-of.d.ts +9 -0
- package/dist/workspace/gist-of.d.ts.map +1 -0
- package/dist/workspace/gist-of.js +55 -0
- package/dist/workspace/gist-of.js.map +1 -0
- package/dist/workspace/index.d.ts +1 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js.map +1 -1
- package/dist/workspace/is-language-step.d.ts +4 -0
- package/dist/workspace/is-language-step.d.ts.map +1 -0
- package/dist/workspace/is-language-step.js +5 -0
- package/dist/workspace/is-language-step.js.map +1 -0
- package/dist/workspace/kit-folder.d.ts +5 -0
- package/dist/workspace/kit-folder.d.ts.map +1 -0
- package/dist/workspace/kit-folder.js +5 -0
- package/dist/workspace/kit-folder.js.map +1 -0
- package/dist/workspace/leaving-project.d.ts +14 -0
- package/dist/workspace/leaving-project.d.ts.map +1 -0
- package/dist/workspace/leaving-project.js +17 -0
- package/dist/workspace/leaving-project.js.map +1 -0
- package/dist/workspace/names-on-disk.d.ts +4 -0
- package/dist/workspace/names-on-disk.d.ts.map +1 -0
- package/dist/workspace/names-on-disk.js +15 -0
- package/dist/workspace/names-on-disk.js.map +1 -0
- package/dist/workspace/real-path-of.d.ts +12 -0
- package/dist/workspace/real-path-of.d.ts.map +1 -0
- package/dist/workspace/real-path-of.js +59 -0
- package/dist/workspace/real-path-of.js.map +1 -0
- package/dist/workspace/real-root-of.d.ts +3 -0
- package/dist/workspace/real-root-of.d.ts.map +1 -0
- package/dist/workspace/real-root-of.js +7 -0
- package/dist/workspace/real-root-of.js.map +1 -0
- package/dist/workspace/refuse-leaving.d.ts +8 -0
- package/dist/workspace/refuse-leaving.d.ts.map +1 -0
- package/dist/workspace/refuse-leaving.js +26 -0
- package/dist/workspace/refuse-leaving.js.map +1 -0
- package/dist/workspace/refuse-unheld.d.ts +10 -0
- package/dist/workspace/refuse-unheld.d.ts.map +1 -0
- package/dist/workspace/refuse-unheld.js +56 -0
- package/dist/workspace/refuse-unheld.js.map +1 -0
- package/dist/workspace/todo-place.d.ts +10 -0
- package/dist/workspace/todo-place.d.ts.map +1 -0
- package/dist/workspace/todo-place.js +2 -0
- package/dist/workspace/todo-place.js.map +1 -0
- package/dist/workspace/workspace-report.d.ts +5 -3
- package/dist/workspace/workspace-report.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +17 -7
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +46 -49
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +16 -2
- package/dist/workspace/write-if-allowed.d.ts.map +1 -1
- package/dist/workspace/write-if-allowed.js +64 -4
- package/dist/workspace/write-if-allowed.js.map +1 -1
- package/dist/workspace/written-of.d.ts +18 -0
- package/dist/workspace/written-of.d.ts.map +1 -0
- package/dist/workspace/written-of.js +15 -0
- package/dist/workspace/written-of.js.map +1 -0
- package/dist/worktree/open-worktree.js +2 -2
- package/dist/worktree/open-worktree.js.map +1 -1
- package/package.json +5 -4
- package/templates/adapter/simulated.spec.ts.tpl +3 -3
- package/templates/aggregate/aggregate.spec.ts.tpl +17 -5
- package/templates/aggregate/aggregate.ts.tpl +12 -8
- package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -8
- package/templates/aggregate/event-sourced.aggregate.ts.tpl +5 -5
- package/templates/background-job/background-job.declared.ts.tpl +14 -11
- package/templates/background-job/background-job.spec.buses.ts.tpl +17 -2
- package/templates/background-job/background-job.spec.tsyringe.ts.tpl +16 -0
- package/templates/background-job/background-job.ts.tpl +14 -11
- package/templates/builder/builder.ts.tpl +19 -5
- package/templates/builder/event-sourced.builder.ts.tpl +5 -5
- package/templates/command/handler.declared.ts.tpl +8 -5
- package/templates/command/handler.spec.buses.ts.tpl +35 -22
- package/templates/command/handler.spec.tsyringe.ts.tpl +30 -13
- package/templates/command/handler.ts.tpl +8 -5
- package/templates/controller/controller.class-validator.ts.tpl +11 -0
- package/templates/controller/controller.spec.ts.tpl +29 -34
- package/templates/controller/controller.standard-schema.ts.tpl +16 -0
- package/templates/controller/controller.typebox.ts.tpl +12 -0
- package/templates/controller/controller.zod.ts.tpl +12 -0
- package/templates/domain-event/domain-event.spec.ts.tpl +1 -1
- package/templates/domain-service/domain-service.spec.ts.tpl +3 -3
- package/templates/entity/entity.spec.ts.tpl +1 -1
- package/templates/error/case.spec.ts.tpl +0 -1
- package/templates/error/refusal-case.spec.ts.tpl +0 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +8 -1
- package/templates/event-handler/event-handler.spec.ts.tpl +19 -25
- package/templates/event-handler/event-handler.ts.tpl +8 -1
- package/templates/event-handler/wiring.manual.tpl +1 -1
- package/templates/event-handler/wiring.tsyringe.tpl +2 -2
- package/templates/file-upload/controller.spec.ts.tpl +8 -30
- package/templates/init/AGENTS.md.tpl +5 -5
- package/templates/init/README.md.tpl +23 -1
- package/templates/init/REVIEW.md.tpl +1 -1
- package/templates/init/docker/docker-compose.yml.tpl +10 -8
- package/templates/init/docker/dockerignore.tpl +3 -0
- package/templates/init/docker/env.example.tpl +16 -1
- package/templates/init/e2e/jest.e2e.config.js.tpl +11 -1
- package/templates/init/gitignore.tpl +3 -0
- package/templates/init/platform/auth/authentication/actor-of-token.ts.tpl +2 -2
- package/templates/init/platform/auth/authentication/bearer-strategy.ts.tpl +34 -3
- package/templates/init/platform/config/app-config.ts.tpl +15 -0
- package/templates/init/platform/config/load-config.ts.tpl +66 -0
- package/templates/init/platform/database/data-source.typeorm.ts.tpl +2 -0
- package/templates/init/platform/database/prisma.config.ts.tpl +5 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +14 -8
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +16 -3
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +22 -3
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +20 -8
- package/templates/init/platform/http/too-many-requests-for.ts.tpl +2 -2
- package/templates/init/platform/jobs/background-jobs.ts.tpl +3 -2
- package/templates/init/platform/jobs/create-background-work.ts.tpl +1 -0
- package/templates/init/rules/application.md.tpl +2 -2
- package/templates/integration-event/payload.class-validator.ts.tpl +2 -2
- package/templates/integration-handler/integration-handler.spec.ts.tpl +12 -17
- package/templates/job/job.spec.buses.ts.tpl +15 -2
- package/templates/job/job.spec.tsyringe.ts.tpl +36 -9
- package/templates/nest-controller/controller.spec.ts.tpl +36 -35
- package/templates/nest-controller/controller.ts.tpl +6 -0
- package/templates/nest-controller/upload.spec.ts.tpl +9 -30
- package/templates/pipeline/github/actions/setup/action.yml.tpl +2 -2
- package/templates/pipeline/github/workflows/ci.yml.tpl +20 -20
- package/templates/pipeline/github/workflows/codeql.yml +3 -3
- package/templates/pipeline/github/workflows/copilot-setup-steps.yml +1 -1
- package/templates/pipeline/github/workflows/intent-to-spec.yml +1 -1
- package/templates/pipeline/github/workflows/pr-title.yml +1 -1
- package/templates/pipeline/lefthook.yml +9 -4
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/renovate.json +6 -1
- package/templates/policy/policy.spec.declared.ts.tpl +1 -1
- package/templates/policy/policy.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/deactivate-account/deactivate-account.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/provision-account/provision-account.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/provision-account/provision-account.body.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.body.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/decline-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/decline-invitation.body.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.body.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.body.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.accepted.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.body.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/open-organisation/open-organisation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/open-organisation/open-organisation.body.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/remove-member/remove-member.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/remove-member/remove-member.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/revoke-delegation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/revoke-delegation.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/revoke-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/revoke-invitation.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/search-members/search-members.line.class-validator.ts.tpl +6 -6
- package/templates/presets/identity/context/presentation/http/organisations/search-members/search-members.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/shared/invitation-token.schema.class-validator.shared.ts.tpl +1 -1
- package/templates/presets/identity/context/published-language/account-deactivated.v1.payload.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/published-language/delegation-granted.v1.payload.class-validator.ts.tpl +7 -7
- package/templates/presets/identity/context/published-language/delegation-revoked.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-joined.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-removed.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-role-changed.v1.payload.class-validator.ts.tpl +6 -6
- package/templates/presets/identity/context/published-language/organisation-opened.v1.payload.class-validator.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/delegation-period.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/display-name.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/email-address.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/invite-member.controller.spec.kit-routes.ts.tpl +16 -28
- package/templates/presets/identity/context/test/unit/invite-member.controller.spec.nest-routes.ts.tpl +16 -28
- package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/organisation-name.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/organisation-rights.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/organisation-slug.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/provision-account.controller.spec.kit-routes.ts.tpl +19 -42
- package/templates/presets/identity/context/test/unit/provision-account.controller.spec.nest-routes.ts.tpl +19 -42
- package/templates/presets/identity/context/test/unit/remove-member.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/remove-member.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/role-rights.service.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/search-members.controller.spec.kit-routes.ts.tpl +7 -18
- package/templates/presets/identity/context/test/unit/search-members.controller.spec.nest-routes.ts.tpl +8 -17
- package/templates/process/timeout-job.declared.ts.tpl +9 -1
- package/templates/process/timeout-job.spec.buses.ts.tpl +5 -1
- package/templates/process/timeout-job.ts.tpl +9 -1
- package/templates/projection/projection.spec.ts.tpl +7 -5
- package/templates/property/value-object.properties.spec.ts.tpl +1 -1
- package/templates/query/handler.spec.buses.ts.tpl +25 -19
- package/templates/query/handler.spec.tsyringe.ts.tpl +30 -10
- package/templates/query/reader.fake.ts.tpl +6 -4
- package/templates/query/reader.in-memory.ts.tpl +1 -1
- package/templates/query/search.handler.spec.buses.ts.tpl +22 -19
- package/templates/query/search.handler.spec.tsyringe.ts.tpl +25 -12
- package/templates/repository/drizzle/mapper.ts.tpl +1 -1
- package/templates/repository/drizzle/schema.ts.tpl +1 -1
- package/templates/repository/drizzle/table.tpl +3 -2
- package/templates/repository/event-sourced/contract.spec.ts.tpl +2 -2
- package/templates/repository/knex/mapper.ts.tpl +2 -3
- package/templates/repository/knex/row.ts.tpl +0 -1
- package/templates/repository/knex/table.tpl +0 -1
- package/templates/repository/prisma/mapper.ts.tpl +1 -1
- package/templates/repository/prisma/model.tpl +0 -1
- package/templates/repository/typeorm/mapper.ts.tpl +1 -1
- package/templates/repository/typeorm/row.ts.tpl +0 -1
- package/templates/repository/typeorm/table.tpl +0 -2
- package/templates/route/dto.accepted.ts.tpl +1 -1
- package/templates/route/dto.answer.ts.tpl +1 -1
- package/templates/route/dto.body.ts.tpl +10 -1
- package/templates/route/dto.line.ts.tpl +2 -2
- package/templates/route/route.class-validator.ts.tpl +17 -3
- package/templates/route/route.spec.ts.tpl +29 -28
- package/templates/route/route.standard-schema.ts.tpl +24 -5
- package/templates/route/route.typebox.ts.tpl +18 -3
- package/templates/route/route.zod.ts.tpl +18 -3
- package/templates/schema/schema.class-validator.ts.tpl +1 -1
- package/templates/test-world/world.buses.ts.tpl +7 -1
- package/templates/test-world/world.tsyringe.ts.tpl +20 -1
- package/templates/value-object/value-object.spec.ts.tpl +2 -2
- package/dist/generate/kinds/find-event-declaration.d.ts +0 -5
- package/dist/generate/kinds/find-event-declaration.d.ts.map +0 -1
- package/dist/generate/kinds/find-event-declaration.js +0 -18
- package/dist/generate/kinds/find-event-declaration.js.map +0 -1
- package/dist/merge/lost/commit-of.d.ts +0 -3
- package/dist/merge/lost/commit-of.d.ts.map +0 -1
- package/dist/merge/lost/commit-of.js +0 -6
- package/dist/merge/lost/commit-of.js.map +0 -1
package/README.md
CHANGED
|
@@ -22,13 +22,15 @@ to run.
|
|
|
22
22
|
|
|
23
23
|

|
|
24
24
|
|
|
25
|
-
No runtime dependency. Node 22.12 or later.
|
|
25
|
+
No runtime dependency. Node 22.12 or later. Windows through WSL 2 only: outside it, `affected --run`,
|
|
26
|
+
`verify-slice`, `worker-scope`, `story-scope`, `worktree` (unless `--no-install` or `--dry-run`) and
|
|
27
|
+
`merge-trunk` refuse to run.
|
|
26
28
|
|
|
27
29
|
```
|
|
28
30
|
npx ddd-ts-kit init
|
|
29
31
|
npx ddd-ts-kit generate context billing --classification core --term "Invoice=A request for payment"
|
|
30
|
-
npx ddd-ts-kit generate aggregate billing Invoice
|
|
31
|
-
npx ddd-ts-kit generate command billing IssueInvoice --aggregate Invoice --creates --permission invoice.issue --grant accountant
|
|
32
|
+
npx ddd-ts-kit generate aggregate billing Invoice --birth "Invoice Issued" --term "Issue=To make an invoice final"
|
|
33
|
+
npx ddd-ts-kit generate command billing IssueInvoice --aggregate Invoice --creates --permission invoice.issue --grant accountant
|
|
32
34
|
npx ddd-ts-kit generate route billing IssueInvoice --method POST --path /invoices
|
|
33
35
|
npx ddd-ts-kit check
|
|
34
36
|
```
|
|
@@ -41,12 +43,20 @@ anything is generated, with no context, with one and with several: the end-to-en
|
|
|
41
43
|
it for real and runs it, on both package managers and on every proven stack. After the install the
|
|
42
44
|
CLI is the one the project pins: `pnpm exec ddd-ts-kit <command>`, or `npx ddd-ts-kit <command>`.
|
|
43
45
|
|
|
44
|
-
Every command accepts `--json` (machine-readable output, errors included
|
|
46
|
+
Every command accepts `--json` (machine-readable output, errors included, printed on one line
|
|
47
|
+
without indentation; the JSON files the CLI writes keep the layout of the formatter) and
|
|
48
|
+
`--cwd <dir>`.
|
|
45
49
|
Commands other than `init` look for `ddd-ts-kit.config.json` in the directory and its parents.
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
`ddd-ts-kit --help` prints the whole reference, `ddd-ts-kit <command> --help` (or `help <command>`)
|
|
51
|
+
the usage and the notes of that command alone (with `--json`, `{ command, usage, notes }`), and an option a command does not know is refused
|
|
52
|
+
with its usage line as the fix. Exit codes: `0` success, `1` violations, stale documentation or,
|
|
53
|
+
under `--strict`, a commit over its limits, `2` wrong usage (the message says what to do), `3` a command that writes files could
|
|
48
54
|
not write some of them where it ran (a path the sandbox of an agent protects): they are listed
|
|
49
|
-
under `unwritable`, every other file is written and none is deleted
|
|
55
|
+
under `unwritable`, every other file is written and none is deleted; `4` an internal error of the
|
|
56
|
+
kit, said in one line with its version (`internal error of ddd-ts-kit <version>: ...`, its stack
|
|
57
|
+
trace after it when `DDD_TS_KIT_DEBUG` is set; under `--json` an `error` with its `stack` and
|
|
58
|
+
`"internal": true`): report it at https://github.com/gbourgeat/ddd-ts-kit/issues with the command
|
|
59
|
+
and the stack trace.
|
|
50
60
|
|
|
51
61
|
## init
|
|
52
62
|
|
|
@@ -78,7 +88,11 @@ ddd-ts-kit init [--http express|fastify|hono|nest|none]
|
|
|
78
88
|
```
|
|
79
89
|
|
|
80
90
|
Works in an empty directory or an existing project. An existing file is never replaced without
|
|
81
|
-
`--force`; it is reported as skipped. `
|
|
91
|
+
`--force`; it is reported as skipped. `--force` replaces only what git holds: a file it would
|
|
92
|
+
replace that differs from the last commit (uncommitted, staged, or untracked and not ignored)
|
|
93
|
+
refuses the command with exit code 2, the files named and nothing written (`Commit or stash them
|
|
94
|
+
first, then run again: git diff shows what the kit rewrote.`), and outside a git repository every
|
|
95
|
+
file whose content would change does. The same holds for `generate --force`. `init` also writes the generated contracts as the scripts
|
|
82
96
|
of the project write them for a project without a route or an integration event of its own
|
|
83
97
|
(`openapi/openapi.yaml`, `docs/integration/asyncapi.yaml` and `event-catalog.md`; JSON under
|
|
84
98
|
`"openapi": { "format": "json" }` of the config), so that the first commit holds them and
|
|
@@ -90,6 +104,24 @@ name each dependency the stack about to be written contradicts, and the flag tha
|
|
|
90
104
|
fastify to keep it.`), a dry run included: run `init --dry-run` first on an existing project.
|
|
91
105
|
Run again later, `init` keeps the stack recorded in the config.
|
|
92
106
|
|
|
107
|
+
Every file `init` and `generate` write stays inside the project: a path that leads out of it
|
|
108
|
+
through a symbolic link, in its place or above it (a `docs/adr` or a `.claude/settings.json`
|
|
109
|
+
linked to elsewhere), refuses the command with exit code 2 and the path named, before
|
|
110
|
+
anything is written; a link that stays inside the project is written through. `init` refuses a home directory and the root of the file system, where its
|
|
111
|
+
`.claude/settings.json` would be the settings of every session: run it in the directory of the
|
|
112
|
+
project.
|
|
113
|
+
|
|
114
|
+
Each file is written whole or not at all: to `<name>.<random>.tmp` beside it, then renamed into
|
|
115
|
+
place. A command stopped half way leaves complete files only (a process killed there may leave
|
|
116
|
+
its `.tmp` file, which can be removed), and the same command run again writes the ones missing.
|
|
117
|
+
`init` on a project already initialised, and each `generate` of a kind that writes shared files
|
|
118
|
+
(`writesShared` in `generate --help --json`), hold the lock of the project, `.ddd-ts-kit/lock`,
|
|
119
|
+
which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
|
|
120
|
+
holds it and the fix, run the generators one after the other:
|
|
121
|
+
``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
|
|
122
|
+
A lock taken on this machine is kept while its command runs and taken over once it has ended; one
|
|
123
|
+
taken on another machine, or whose holder cannot be read, is taken over a minute after it was taken.
|
|
124
|
+
|
|
93
125
|
`init --force` on a project that is already initialised rewrites the files `init` owns and keeps
|
|
94
126
|
the config: the contexts and their upstreams, the rules, the limits, the deviations and every
|
|
95
127
|
other key stay as written, and the stack changes only where a flag names a choice
|
|
@@ -99,7 +131,13 @@ and the registry of permissions are rewritten from their templates, then the dec
|
|
|
99
131
|
are wired into them again, and the erasure of each context is listed again in the copies of the
|
|
100
132
|
privacy folder; what another generator had added to a file of the platform (the value of a
|
|
101
133
|
gateway, the settings of a job) is not, and a note says so. A config that cannot be
|
|
102
|
-
read is replaced.
|
|
134
|
+
read is replaced. The files a team owns once written stay as they are, listed as `kept`:
|
|
135
|
+
`README.md`, `AGENTS.md`, `CLAUDE.md`, `src/main.ts` and the pipeline definitions
|
|
136
|
+
(`.github/workflows/`, `.gitlab-ci.yml`), whose jobs and includes are the team's to edit, those of
|
|
137
|
+
`--ci-extras` too; to take what a new version writes in one of them, run
|
|
138
|
+
`init` in an empty folder and compare. `.gitignore` and `.dockerignore` gain the lines of the kit
|
|
139
|
+
they lack, first, under a comment, and keep the lines of the team after them, which have the last
|
|
140
|
+
word; a line of the kit on a path the team already writes rules for is left out. A last note says what `--force` rewrote and what it kept.
|
|
103
141
|
|
|
104
142
|
The pipeline uses free tools only. `--ci-extras` adds jobs that need a paid plan on a private
|
|
105
143
|
repository, report into a merge request only in a paid tier, or spend API tokens on every run:
|
|
@@ -559,7 +597,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
559
597
|
| tracing | wired once, by the platform (`tracing/platform-only`): no `decorate` hook, no `decorate-bindings.ts`. `tracing.ts` starts `initTracing` of `@ddd-ts-kit/tracing/node` before any other module, on what `config/read-tracing.ts` validates: `OTEL_EXPORTER_OTLP_ENDPOINT` (a URL; left out, no span leaves the process), `TRACE_SAMPLE_RATIO` (0 to 1) and `TRACE_CONSUMERS` (`continue`, the default: a consumed event stays in the trace of its publication; `link`: each delivery starts a trace linked to it). With `--di tsyringe`: `lay-foundations.ts` builds `traceApplication({ consumers })`, `compose-application.ts` hands it to `kernelModule({ instrumentation })` (one span per use case, repository call, domain event, publication, consumer and job) and gives the outbox relay `tracedPublisher(bus)`. With hand wiring: `create-platform.ts` applies the members of `traceApplication()` itself (`useCase` on both buses, `domainEvents`, `publisher`, `binding` around every adapter, `job`, `executionScope`, `errorReporter`), with `tracedSubscriber` and `tracedPublisher` around the provider. With an HTTP stack, in both families, `auth/authentication/http-boundary.ts` sets `around: tracedRoutes()`: one `SERVER` span per request, named by its route |
|
|
560
598
|
| `--logger` | `src/platform/observability/create-logger.ts`, one per choice: `stdout` (the default) is the `StdoutLogger` of `@ddd-ts-kit/aspects`, JSON lines, credentials not redacted; `pino` is `createPinoLogger` of `@ddd-ts-kit/pino` (dependencies `pino` and `pino-pretty`); `winston` is `createWinstonLogger` of `@ddd-ts-kit/winston`; these two redact the credential keys of the kernel. Every entry carries `traceLogFields(scope)`: the correlation id, origin, actor and tenant of the work in progress and the ids of the active trace. `LOG_LEVEL`, `LOG_FORMAT` (`json`, the default, or `pretty`; with `stdout`, which has no pretty format, `pretty` is refused when the configuration is loaded) and `LOG_SCRUB_MESSAGES` (`[message removed]` in place of the message of a logged error that is not a `DomainError`) are validated in `config/load-config.ts`. Stopping the application flushes the error reporter, then the logger, last: `container.stop()` does it on tsyringe, `compose-application.ts` flushes explicitly with hand wiring. The tools and the tests compose the application without `log` and write nothing |
|
|
561
599
|
| `src/platform/auth/` | one folder per question: `authentication/` (who is calling), `authorization/` (what they may do, whatever the model) and the folder of the model `stack.authz` names (`roles/`, `attributes/`, `relationships/` or `custom/`). A project generated before the folders keeps its files flat: the generators read them there, `npx ddd-ts-kit doctor` says so and `npx ddd-ts-kit platform-folders` moves them with every import |
|
|
562
|
-
| `src/platform/auth/authentication/` | `create-authenticator.ts` (`--authn jwt`: `JwtAuthenticator` on `AUTH_ISSUER`, `AUTH_AUDIENCE`, `AUTH_JWKS_URI`; `--authn keycloak`: `keycloakAuthenticator` on `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_AUDIENCE` and the optional `KEYCLOAK_CLIENT_ID`; `--authn passport`: `passportAuthenticator` of `@ddd-ts-kit/auth/passport` over `bearer-strategy.ts`, the strategy of `passport-jwt` on the key set `AUTH_JWKS_URI` publishes (`jwks-rsa`), `AUTH_ISSUER` and `AUTH_AUDIENCE`, and `actor-of-token.ts`, which reads its payload with `actorOfClaims`; `--authn none`: `development-header-authenticator.ts` and `development-actor-header.ts`, which read `x-development-actor` and throw in production), `principal-of.ts`, `security-schemes.ts`, `offline-authenticator.ts`, `http-boundary.ts` (`resolvePrincipal` answering a `Session`, `executionScope`, `errorMapper` and `onError`, spread into the mount options: every request runs inside the execution scope, with its correlation id). Without an HTTP stack there is no authenticator and no boundary, and no folder |
|
|
600
|
+
| `src/platform/auth/authentication/` | `create-authenticator.ts` (`--authn jwt`: `JwtAuthenticator` on `AUTH_ISSUER`, `AUTH_AUDIENCE`, `AUTH_JWKS_URI`; `--authn keycloak`: `keycloakAuthenticator` on `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_AUDIENCE` and the optional `KEYCLOAK_CLIENT_ID`; `--authn passport`: `passportAuthenticator` of `@ddd-ts-kit/auth/passport` over `bearer-strategy.ts`, the strategy of `passport-jwt` on the key set `AUTH_JWKS_URI` publishes (`jwks-rsa`), `AUTH_ISSUER` and `AUTH_AUDIENCE`, which refuses a token without `exp` unless given `requireExpiry: false` and allows RS256, PS256 and ES256, the `DEFAULT_JWT_ALGORITHMS` of `JwtAuthenticator` but EdDSA, which `jsonwebtoken` cannot verify (an issuer that signs with EdDSA needs `--authn jwt`), and `actor-of-token.ts`, which reads its payload with `actorOfClaims`; `--authn none`: `development-header-authenticator.ts` and `development-actor-header.ts`, which read `x-development-actor` and throw in production), `principal-of.ts`, `security-schemes.ts`, `offline-authenticator.ts`, `http-boundary.ts` (`resolvePrincipal` answering a `Session`, `executionScope`, `errorMapper` and `onError`, spread into the mount options: every request runs inside the execution scope, with its correlation id). Without an HTTP stack there is no authenticator and no boundary, and no folder |
|
|
563
601
|
| `src/platform/auth/authorization/` | `create-authorizer.ts`, `authorization.ts` (`authorizationModule` with tsyringe) or `use-case-protection.ts` (the guard of the hand-wired buses), `access-policies.ts`, `role.ts` (the roles a credential carries, with roles or attributes, or once a guard names one), `permissions.ts` (the registry of every permission, with relationships or an authorizer of your own), `signed-in-grants.ts` once a context preset grants every signed-in person, and with `--audit off` `log-decisions.ts` (one log entry per decision, ids and codes only) |
|
|
564
602
|
| `src/platform/auth/<model>/` | `roles/roles.ts` (with the role `system` every system actor holds); `attributes/attribute-policies.ts`; `relationships/`: `relationship-schema.ts`, `create-tuple-store.ts` and its contract spec, `relation-tuples.ts`, `relate-system-actors.ts`; `custom/`: `custom-authorizer.ts` and its `authorizerContract` spec |
|
|
565
603
|
| `--representations negotiated`, `--forms on` | `src/platform/http/presentation-of.ts` (`Representations.standard()` with `negotiated`, and `fieldDeciderOf` over the `Access` of the application), spread into the HTTP boundary and given to the contract script; with `--forms on`, `src/platform/http/with-forms.ts` adds `formRoutes` to the routes and `scripts/openapi.ts` writes `openapi/forms/<operationId>.json`. Both are the default with an HTTP stack; `json` and `off` leave them out ([docs/CONFIG.md](../../docs/CONFIG.md)) |
|
|
@@ -568,7 +606,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
568
606
|
| `--privacy on` | recorded as `stack.privacy`, `on` when there is an ORM: `src/platform/privacy/`, with `data-subject-copies.ts` and `data-subject-exports.ts` (the ports, or the adapters by hand, of the contexts that extend `PersonalDataErasure` and `PersonalDataExport`, between markers; `generate repository --personal` lists the erasure and the export of a context there), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, tenants? })`: an execution context of origin `cli` with the operator as actor, the key of the subject when the project has an event store, then `eraseDataSubject` of the kernel over the copies, `inEachTenant` with `--tenancy shared-table`, then `privacy.data-subject.erased` published through the outbox, once per tenant) and `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })`: `exportDataSubject` of the kernel over the exports, each wrapped by `auditedPersonalDataExport` with `--audit on`, `recordsInEachTenant` with `--tenancy shared-table`, one dated `PersonalDataExportDocument`), and the two scripts below. `docs/privacy/register.md`, the register of personal data `ddd-ts-kit docs` keeps (see `docs` below). A project without personal data takes `--privacy off` and pays nothing. No HTTP command erases yet: the two scripts are the entry points |
|
|
569
607
|
| `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM); the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
|
|
570
608
|
| `--queue database\|redis\|memory` | recorded as `stack.queue`. `database` (the default on Knex, Drizzle, Prisma and TypeORM, whatever the container): the tables of the ORM package (`createJobTable` and `createProcessTable`, `jobsTable` and `processesTable`, the `BackgroundJob` and `ProcessInstance` models, `jobEntity` and `processEntity`) in the `messaging` schema, `Persistence` gains `jobs` and `processes`, and the platform binds `JobStore` and `ProcessStore` to them (the platform module on tsyringe, `jobs/create-background-work.ts` where the platform is wired by hand or under Nest), so a job enqueued by a command is written in its transaction; `redis` (with `--cache redis`): `RedisJobStore` on the connection of the cache, the processes in the database; `memory` (the default with a custom persistence or none): nothing is written, both stay in the process. Refused: `database` with another ORM, `redis` without the cache |
|
|
571
|
-
| `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
|
|
609
|
+
| `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/too-many-requests-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`; the address is the socket's unless `TRUST_PROXY` names the proxies in front, by hops or by address, by hops only on Hono), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
|
|
572
610
|
| `--http-cache varnish` | a compose service `varnish` (Varnish 9.1.0, reaching the API on `host.docker.internal`) with its VCL in `docker/varnish/default.vcl` (only answers whose `Cache-Control` allows them by `max-age` or `s-maxage` are kept, filed under their `xkey` tags, purged by `PURGE` from the machine of Varnish or with `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` and `VARNISH_PURGE_KEY` validated, `cacheTags: { header: CacheTagHeader.xkey }` in the HTTP boundary, and the outbox relay of `main.ts` and of every `generate service` entry point publishing through `PurgingPublisher` with `VarnishCachePurger` (the end-to-end application records the purges in `purges`); on `--di manual` and `nest` the platform gains `cacheInvalidation`; with `--tenancy`, the tags of the answers and the purges are filed under the tenant (`perTenant`) and the tenant of a request is read from `x-tenant-id`. Needs an HTTP framework and `--events outbox`: a purge is a row of the outbox |
|
|
573
611
|
| `--errors sentry` | unexpected failures reported to Sentry or GlitchTip (one protocol, only the DSN differs) through the kernel `ErrorReporter`, bound to `@ddd-ts-kit/sentry`. `src/platform/observability/errors.ts` (`initSentry` on the validated configuration, then `reportProcessFailures`), the second import of `main.ts`, of `apps/<context>/main.ts` and of `apps/worker/main.ts`, right after `tracing.ts`; `errors` handed to `composeApplication`, which gives it to the kernel module on tsyringe (`errorReporter`, flushed by `container.stop()` before the logger, `errorReportingMiddleware` first on both buses, the default scheduler observing with `reportFailedRuns`) or to `createPlatform` by hand (the same middleware, `onRun: reportFailedRuns(errors)`, `platform.errors`, flushed two seconds at most when the application stops); `reportHttpErrors` in `auth/authentication/http-boundary.ts` for every request answered 5xx; `DeadLetterReports` on the `onFailure` hook of a provided broker (`createEventProvider(config, errors)`, with `observing` around each consumer) and of the outbox relay. `SENTRY_DSN`, `SENTRY_ENVIRONMENT` (default: `NODE_ENV`), `SENTRY_RELEASE` and `SENTRY_SCRUB_MESSAGES` validated in `config/load-config.ts` as `errorReporting`: without a DSN the application starts and reports nothing; a DSN that is not a URL refuses the start. Dependencies `@ddd-ts-kit/sentry` and `@sentry/node`. A compose profile `errors` running GlitchTip 6.2.6 with its own PostgreSQL and Valkey (`GLITCHTIP_PORT`, loopback only, development bootstrap), and a section of the generated README saying how to read its DSN. The tools and the tests compose the application without a reporter. It goes with every other choice of the stack; with `--errors none` nothing of this is written |
|
|
574
612
|
| `--authn keycloak` | a compose service `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profile `identity`) and `docker/keycloak/<project>-realm.json`: the API client, a public client `<project>-local` with the direct grant, its audience and `tenant_id` mappers, the realm role `admin`, and the demo users `demo-admin` and `demo-user`, for local development only |
|
|
@@ -578,7 +616,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
578
616
|
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (the client, the datasource and the tables of the platform; `generate repository` adds the file of each context, `prisma/schema/<context>.prisma`) and `prisma.config.ts`, or `data-source.ts`. A project that keeps the one `prisma/schema.prisma` of versions before 0.95 keeps it with its `prisma.config.ts` and its `db:client`, even under `--force`: `init` writes nothing under `prisma/schema/`, its notes give the steps of the move with the contexts of the project named, and `generate repository` refuses until the move |
|
|
579
617
|
| `scripts/openapi.ts`, `scripts/events.ts` | write `openapi/openapi.yaml` (one file per document of `openapi.documents`), `docs/integration/asyncapi.yaml` and `docs/integration/event-catalog.md`, in JSON under `openapi.format: json`; `--check` fails on a difference |
|
|
580
618
|
| `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | with `--privacy on`, the two requests of a data subject, answered from the command line on the sources with the variables of `.env` (`npm run privacy:erase -- <subject-id> [--operator <who-asks>]`, `npm run privacy:export -- <subject-id> > export.json`): the erasure destroys the key of the subject first when the project has an event store (`--event-sourcing on`: its stored events read as erased; audited with `--audit on`), then erases every copy listed in `src/platform/privacy/data-subject-copies.ts`; `privacy:purge` runs by hand what the job `privacy.purge-expired` runs every night at 03:00 UTC, the purge of what outlived its retention (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` switches the job off); the export gathers every record listed in `data-subject-exports.ts` into one dated JSON document (`format`, `subject`, `exportedAt`, `records`), the export of each context audited with `--audit on`, never the values (every run leaves its entry, a trial included: try it on a test subject). With `--tenancy shared-table`, `TENANTS` names the tenants, comma separated: a write of tenant data is never widened. Neither reaches backups, logs or a copy no context declared |
|
|
581
|
-
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile
|
|
619
|
+
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile, every port published on 127.0.0.1 only (a wider address is written in the entry on purpose, the README of the project says how), ports from `.env`; a multi-stage, non-root image with production dependencies only |
|
|
582
620
|
| `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (the whole application on a free port, on an in-process database unless `DATABASE_URL` is set, no job run by time; `settled()` resolves once the outbox has relayed what the requests stored; `publish(events)` hands integration events of an upstream to its handlers, as the relay of that upstream would), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)`: a trace without the calls an adapter makes on itself, the form `expectSpanTree` asserts) |
|
|
583
621
|
| `docs/context-map.md`, `docs/integration/README.md` | see `docs` |
|
|
584
622
|
| `test/architecture/extractable.spec.ts` | written with the first context: boots each context alone on the kernel and the platform, its jobs included |
|
|
@@ -594,14 +632,20 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
594
632
|
| `REVIEW.md` | the review policy of the project: the passes of a review (bugs, security, compliance against the design review of the row, the acceptance of the story, the records of `docs/adr/` and the rules), what Important means, at most five nits (a recurring one becomes a line of `AGENTS.md` under `## Mistakes seen here` or a rule of the config), what is not reported (generated files, what `npm run verify` refuses). Read by the `architecture-reviewer` agent on top of its method, by a human reviewer and by any review bot. Written once, for the team to edit: `--force` leaves it alone, `doctor` says when it is missing |
|
|
595
633
|
| `.github/copilot/settings.json` | the plugin of the kit, declared for GitHub Copilot (`extraKnownMarketplaces`, `enabledPlugins`): its cloud agent installs it, the Copilot CLI and VS Code recommend it; an existing file keeps what it holds and gains the two entries |
|
|
596
634
|
| `.claude/hooks/production-gate.mjs`, `.claude/hooks/change-reference.mjs` | with `--agent-profile regulated`: the two hooks of the profile, registered under `hooks.PreToolUse` of `.claude/settings.json`, written once for the team to edit (`--force` writes them again). The gate blocks a command that names the production environment with a release action unless `RELEASE_APPROVAL` names an approver and a change; the reference asks before an edit of a migration or of the containers, for the `Change: <id>` trailer of the commit ([Sandboxing coding agents](../../docs/guides/agent-sandbox.md#the-regulated-profile)) |
|
|
597
|
-
| `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
|
|
598
|
-
| `.gitignore` | `node_modules`, `dist`, `coverage`, `.env
|
|
635
|
+
| `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `generate` and `init` with `--force`, `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
|
|
636
|
+
| `.gitignore` | `node_modules`, `dist`, `coverage`, `.env` and every `.env.*` but `.env.example` (the same in `.dockerignore`), `*.tsbuildinfo`, `.ddd-ts-kit/`, where `worker-scope` writes, and `.worktrees/`, where the worktrees live |
|
|
599
637
|
|
|
600
638
|
`--ci both` writes the two pipelines, `--ci none` neither (and no `renovate.json`). The pipeline
|
|
601
639
|
files are copies of the assets of the repository's `pipeline/` directory, shipped in
|
|
602
640
|
`templates/pipeline/`; a test fails when a copy differs from its source by more than its
|
|
603
641
|
documented placeholders.
|
|
604
642
|
|
|
643
|
+
Every `uses:` of the generated GitHub workflows names the digest of a commit with its tag in a comment
|
|
644
|
+
(`actions/checkout@<40 hex digits> # v7.0.1`), since a tag can move and a digest cannot; the
|
|
645
|
+
`renovate.json` extends `helpers:pinGitHubActionDigests` (the preset matches no file in a project
|
|
646
|
+
without GitHub workflows, `--ci gitlab` for one, and is inert there) and Dependabot keeps the digests
|
|
647
|
+
current too.
|
|
648
|
+
|
|
605
649
|
`--agent-profile regulated` records `agents.profile` in the config, with or without `--force`
|
|
606
650
|
(`--agent-profile none` removes it), and writes the `sandbox` block of Claude Code next to the
|
|
607
651
|
permissions: enabled, failing when the sandbox is unavailable, no unsandboxed retry, the caches
|
|
@@ -641,14 +685,26 @@ pipelines call, `test:coverage` (every spec once, each context and layer held to
|
|
|
641
685
|
`format:check`, `test:coverage`, end-to-end tests, `check:arch`, `depcruise`, `deadcode`,
|
|
642
686
|
`docs:check`.
|
|
643
687
|
|
|
688
|
+
`db:generate` takes what the migration does, in letters, digits, dashes and underscores, starting
|
|
689
|
+
with a letter or a digit (`npm run db:generate add-invoices`, on TypeORM
|
|
690
|
+
`migrations/add-invoices`): `drizzle-generate`, `prisma-generate` and `typeorm-generate` refuse
|
|
691
|
+
any other name before the ORM reads it, since a value that starts with a dash would be one of its
|
|
692
|
+
options; `typeorm-generate` also refuses a folder outside the project.
|
|
693
|
+
|
|
644
694
|
`package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
|
|
645
695
|
and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` call by path
|
|
646
696
|
(`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
|
|
647
697
|
|
|
648
|
-
`init` and `generate context` start with the language: the first entry of `
|
|
698
|
+
`init` and `generate context` start with the language: the first entry of `todos` is the glossary
|
|
649
699
|
of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
|
|
650
700
|
of a context live in `prisma/schema/<context>.prisma`, and `prisma/schema/schema.prisma` is the
|
|
651
|
-
main file every context shares (`init --force` moves a project to Prisma).
|
|
701
|
+
main file every context shares (`init --force` moves a project to Prisma). They refuse too the
|
|
702
|
+
names every JavaScript object has (`constructor`, `prototype`, `__proto__`, `toString`,
|
|
703
|
+
`hasOwnProperty`, `valueOf`): a context is a key of the config and of the objects built from it.
|
|
704
|
+
A context or a module is named in letters, digits and dashes, read in any case and with `-`, `_`
|
|
705
|
+
or spaces between its words (`OrderFulfilment`, `order_fulfilment`); every command refuses a name
|
|
706
|
+
it would have to drop part of to read it, such as `../billing` or `Évil`, and says what it would
|
|
707
|
+
have read (`billing`, `vil`).
|
|
652
708
|
|
|
653
709
|
### Presets
|
|
654
710
|
|
|
@@ -682,11 +738,12 @@ written from the same preset. Why, and which other contexts deserve one:
|
|
|
682
738
|
|
|
683
739
|
```
|
|
684
740
|
ddd-ts-kit generate <kind> ... [--term "<Term>=<meaning>"]... [--allow-name] [--local-only] [--dry-run] [--force]
|
|
685
|
-
ddd-ts-kit generate --help --json
|
|
741
|
+
ddd-ts-kit generate [<kind>] --help [--json]
|
|
686
742
|
```
|
|
687
743
|
|
|
688
744
|
One run of `generate` does five things, in this order, and writes nothing when the first one
|
|
689
|
-
refuses
|
|
745
|
+
refuses (each file written whole, a kind that writes shared files under the lock of the
|
|
746
|
+
project: [init](#init)):
|
|
690
747
|
|
|
691
748
|

|
|
692
749
|
|
|
@@ -712,17 +769,17 @@ would update src/contexts/notification/notification.permissions.ts
|
|
|
712
769
|
would update src/contexts/notification/application/application.declarations.ts
|
|
713
770
|
|
|
714
771
|
Next, in this order: the language of the context first, then the business decisions only you can make
|
|
715
|
-
src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor
|
|
716
|
-
src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16
|
|
717
|
-
src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour
|
|
772
|
+
src/contexts/notification/application/commands/archive-notification/archive-notification.command.ts:9 declare the input of "archive notification" as a constructor with the actor...
|
|
773
|
+
src/contexts/notification/application/commands/archive-notification/archive-notification.handler.ts:16 "archive notification" changes Notifications that exist and writes nothing until you decide...
|
|
774
|
+
src/contexts/notification/test/unit/archive-notification.handler.spec.ts:38 replace each entry below by a test named after the business behaviour...
|
|
718
775
|
```
|
|
719
776
|
|
|
720
777
|
| Kind | Arguments | Writes |
|
|
721
778
|
|---|---|---|
|
|
722
779
|
| `context` | `<name> --classification <c> [--purpose "<two sentences>"] [--term ...]... [--upstream <ctx>[:relationship]]... [--preset identity]` | `CONTEXT.md` with its glossary, `published-language/index.ts`, config entry, registration in `platform/composition/compose-application.ts` and in `test/architecture/extractable.spec.ts`; on tsyringe, with HTTP, `presentation/http/<name>.routes.ts` (a function of the two buses, in both styles); declared: the barrel `<name>.declarations.ts`; explicit and hand wiring: `<name>.module.ts`. `<name>.permissions.ts`, at the root of the context, is born with the first permission, or at once when `platform/auth/authorization/permissions.ts` lists the permission sets (rebac, custom). With `--preset`, the context is then written whole from that preset, its classification and purpose those of the preset unless the flags say otherwise ([Presets](#presets)) |
|
|
723
|
-
| `aggregate` | `<context> <Name> [--
|
|
724
|
-
| `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, a class extending `Builder` |
|
|
725
|
-
| `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note |
|
|
780
|
+
| `aggregate` | `<context> <Name> [--birth "<Fact>"] [--event-sourced]` | aggregate, builder, spec in given / when / then. `--birth` names the fact it is born with in business words (`"Invoice Issued"`, `InvoiceIssued` or `Issued`), judged by the glossary and refused when it does not read as something that happened: it writes that domain event as `generate domain-event` does, `create` records it at the instant it is given, the builder takes that instant named after the fact (`issuedAt(instant)`) and the spec proves the birth; without it, the state holds no instant of its own (the audit columns of the row date its creation) and a `TODO(domain)` in `create` says how to record the birth later without rewriting the aggregate (`generate domain-event`, the `record` line, then `generate builder`); with `--event-sourced`, an aggregate on `EventSourcedAggregate` whose state is the replay of its events, born with its `Created` domain event (or the fact `--birth` names), its state holding the instant of that fact (`createdAt`), the codec of its stored events in `infrastructure/persistence/<name>-events.mapper.ts`, a builder that replays a history and a spec given events, and a note naming the `EventSourcedRepository` its repository adapter delegates to; refused while `stack.eventSourcing` is `off`, with the `init --force --event-sourcing on` to run |
|
|
781
|
+
| `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, a class extending `Builder`; the instant of the birth `create` records is an ingredient named after its fact, the builder of an event-sourced aggregate replays its birth event, and a note names the parameters of `create` it cannot guess; when `create` is missing or records an event not named `<Aggregate><Fact>`, no builder is written and a note says why |
|
|
782
|
+
| `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note. Under a container it also takes `fakes`, the fake of a port it cannot build (a reader that answers what the spec gives it), and, under tenancy, `tenants`. The world named after the context is the one the specs of `command`, `query` and `job` generated after it arrange through |
|
|
726
783
|
| `entity` | `<context> <Name>` | entity, spec |
|
|
727
784
|
| `value-object` (`vo`) | `<context> <Name>` | value object, spec |
|
|
728
785
|
| `vocabulary` | `<context> <Name> --value <value> [--value <value>]...` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold |
|
|
@@ -731,7 +788,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
731
788
|
| `domain-error` | `<context> <Name> [--code CODE]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `named` and `factories`, with the `generate error` command to run instead |
|
|
732
789
|
| `domain-service` | `<context> <Name>` | service, spec |
|
|
733
790
|
| `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]...` | the vocabulary `<Aggregate>Status` (created from `--value`, two states at least, or given the values it misses), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle`: every value a state, the first one initial, the transitions asked, a `TODO(domain)` for the refusal of the concept error) and `test/unit/<aggregate>.state-machine.spec.ts` (each transition where it leads, a refusal from a state it does not leave); the aggregate is left to use it |
|
|
734
|
-
| `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `
|
|
791
|
+
| `repository` | `<context> <Aggregate> [--tenant-scoped] [--personal <column>,... [--subject <column>] [--erasure pseudonymise\|row] [--retention <column>:<n><d\|m\|y>]]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration. On an event-sourced aggregate (its class extends `EventSourcedAggregate`) there is no table nor mapper: `event-store-<name>.repository.ts` delegates to `EventSourcedRepository` of the kernel over the `EventStore` and the `PersonalDataCipher` the platform binds, with the codec of `<name>-events.mapper.ts` (the snapshot policy left as a `TODO(domain)`), the fake is that adapter over the in-memory stores, and the contract suite runs on both (its stale-save case pending until a `mutate` that records an event is added); `--personal` is refused there, the personal values being sealed in the events. With `--personal`, the columns of the table that hold personal data: added to the storage and to the row type as nullable text (the mapper writes them empty until the aggregate carries them), declared next to the mapper in `<name>.personal-fields.ts` (`personalFields` of the kernel: the subject column, `id` unless `--subject` names the column that holds the id of the person, the fields, `pseudonymise` unless `--erasure row`), spelled as the erasure of the ORM reads them (SQL names on Knex and Prisma, properties on Drizzle and TypeORM); and, once per context, its erasure: the port `application/ports/<context>-personal-data-erasure.port.ts` (`extends PersonalDataErasure`), the adapter `<orm>-<context>-personal-data-erasure.repository.ts` over `<Orm>PersonalDataErasure` of the ORM package (confined to the tenant of the work with `--tenant-scoped`), its fake, bound where the context binds its adapters and listed in `src/platform/privacy/data-subject-copies.ts`, so that `npm run privacy:erase` reaches it; and its export: the port `<context>-personal-data-export.port.ts` (`extends PersonalDataExport`), the adapter `<orm>-<context>-personal-data-export.repository.ts` over `<Orm>PersonalDataExport`, its fake, bound the same way and listed in `data-subject-exports.ts`, so that `npm run privacy:export` hands it over; one spec, `test/integration/<context>-personal-data.spec.ts`, proves both on the test database. With `--retention <column>:<n><d|m|y>`, the declaration gains `retention`, counted from a column that dates the end of the relation and joins the storage as a nullable timestamp, empty while it lasts (a column the table keeps for itself, `created_at` first, or the `registered_at` of a table generated before 0.100, is refused: counted from the creation, the purge would erase people who are still customers) and the spec proves the purge of what outlived it. A second table of the context joins the declarations of both adapters. Refused without `stack.privacy` on (`init --force --privacy on`), with `--orm none` or `custom`, and before anything is written for a column that is not one, a column the table keeps for itself, a subject listed as personal or a mode that does not exist |
|
|
735
792
|
| `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--aggregate <Name> [--creates]]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (with `--aggregate` it receives the repository and writes nothing until its `TODO(domain)` is answered: a command changes an aggregate that exists; with `--creates` it builds the aggregate, saves it and answers its identifier: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
|
|
736
793
|
| `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--search]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
|
|
737
794
|
| `port` | `<context> <Name>` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
|
|
@@ -740,19 +797,19 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
740
797
|
| `file-upload` | `<context> <UseCaseName> --path <p> (--permission <aggregate>.<action> [--grant <role>] \| --public) [--method POST\|PUT] [--group <Name>]` | an upload: a controller that declares the file it receives (its size and media types in the contract, checked as it streams), the command that carries it as a `FileUpload`, staged by the command bus before the transaction, the handler that records it and promotes it with the commit, and their specs. Refused without `stack.storage` or without an HTTP stack, with the `init --force --storage local` to run |
|
|
741
798
|
| `route-group` (`group`) | `<context> <Name> [--prefix <path>] [--group <ParentName>] [--public \| --role <role>]` | `presentation/http/<name>.routes.ts`: an empty class carrying `@RouteGroup`, behind `Authenticated` unless `--public` or `--role` says otherwise (`HasRole(Role.Admin)`, the role read from the vocabulary of the platform, `<platformDir>/auth/authorization/role.ts`, which gets it when it does not hold it); with `--group` it refines that group and inherits from it |
|
|
742
799
|
| `guard` | `<context> <Name>` | `presentation/http/guards/<name>.guard.ts`: a declared guard class to fill, and its spec |
|
|
743
|
-
| `representation` | `<context> <UseCase> <xml\|csv\|media/type>[,...]` | adds `produces` to the `@Controller` of the use case, and `consumes: ['application/xml']` to one that receives a body when XML is asked; says when CSV needs a page or a streamed list, and when `stack.representations` is not `negotiated` |
|
|
800
|
+
| `representation` | `<context> <UseCase> <xml\|csv\|media/type>[,...]` | after `generate route` of the use case (a controller under `"stack.routes": "controllers"` or `"nest"`) or `generate controller`: adds `produces` to the `@Controller` of the use case, and `consumes: ['application/xml']` to one that receives a body when XML is asked; says when CSV needs a page or a streamed list, and when `stack.representations` is not `negotiated` |
|
|
744
801
|
| `form` | `<context> <UseCase>` | adds `const form = defineForm<Infer<typeof body>>({ ... })` before the `@Controller` of a use case that receives a body, and `form` to its options: the hints of its form at `GET /forms/<operationId>` |
|
|
745
802
|
| `schema` | `<context\|shared-kernel> <Name>` | `presentation/http/shared/<name>.schema.ts` of the context, or `presentation/<name>.schema.ts` of the shared kernel: one shape of the contract declared once (a zod schema with `.meta({ id })`, a class-validator class, or a schema wrapped by `sharedSchema`), to fill; the routes use it whole, nested or in part |
|
|
746
803
|
| `integration-event` | `<context> <Aggregate> <Fact> [--version n]` | `defineIntegrationEvent` declaration in the published language (its payload in `<event>.v<n>.payload.ts` with class-validator or a schema of your own), index export, the publisher `application/integration/publishers/<event>.publisher.ts`, spec, registration, a line of `platform/audit/audited-events.ts` |
|
|
747
|
-
| `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType
|
|
804
|
+
| `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>[@v<n>]` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; the type is taken as `list` prints it, with or without `@v<n>` (the newest version without, `--version <n>` saying the same as the suffix); refused unless the upstream is declared and publishes that version (a version that is not found is refused, never replaced by another) |
|
|
748
805
|
| `erasure-handler` | `<context>` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, a class `DataSubjectErasedIntegrationHandler` that erases what the context keeps of a person through its `<Context>PersonalDataErasure` when the platform announces `privacy.data-subject.erased` (`dataSubjectErasedV1` of the kernel), its spec on the fake, its idempotent subscription under the consumer name `<context>.data-subject-erased` (in a transaction behind a broker); for a context that runs as a service of its own or copies personal data from events. Refused until the context has its erasure (`generate repository --personal`), and refused on an event-sourced context, whose personal values are erased by destroying the key of the subject (`eraseDataSubject`) |
|
|
749
806
|
| `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
|
|
750
|
-
| `projection` (`projector`) | `<context> <Name> <event-type
|
|
807
|
+
| `projection` (`projector`) | `<context> <Name> <event-type>[@v<n>]` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; the type is taken as `list` prints it, `@v<n>` pinning the version (the newest without). In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model: its port is received in the constructor |
|
|
751
808
|
| `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/jobs/job-settings.ts`; the grant of its system actor (below) |
|
|
752
|
-
| `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused); `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
|
|
809
|
+
| `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused), and its static `payload`, the schema of that payload in the validation library of the stack (a `z.object` under zod, a class of decorated fields without initial value under class-validator, a `Type.Object` under TypeBox, one refusal per field written by hand under Standard Schema and, with `--validation none`, in the `BackgroundJobPayloadSchema` of the kernel; a type it writes no check for is typed `unknown` with a `TODO(domain)`), which the worker reads the stored payload with before each run; `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due, then enqueues it as an earlier version declared it (`earlierVersionOf` of `@ddd-ts-kit/testing`) and shows the job dead with `INVALID_JOB_PAYLOAD` (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
|
|
753
810
|
| `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application on tsyringe, a queue and a runner in memory on the test buses otherwise) |
|
|
754
811
|
| `acl` | `<context> <upstreamOrSystemName>` | translator in `infrastructure/anti-corruption/`, spec |
|
|
755
|
-
| `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
|
|
812
|
+
| `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`, and after it, for a command that gives birth to an aggregate born with `--birth`, `unit-of-work before-commit` and `domain-event <name>` of its birth event, a note naming what already reacts to it). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
|
|
756
813
|
| `policy` | `<context> <Name> --permission <aggregate>.<action>` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
|
|
757
814
|
| `gateway` | `<context> <upstreamContext> <Name>` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; refused unless the upstream is declared |
|
|
758
815
|
| `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused. With `--kind simulated`: `infrastructure/external/simulated-<port>.adapter.ts` and its spec, a class of production code that answers in the memory of the process the way the outside system would, for an environment whose provider is simulated; it carries no policy (`--decorators` is refused), is declared `@Adapter(<Port>, { kind: 'external' })` or bound `.toClass(Simulated<Port>).as('external')`, and takes turns with the remote adapter, one per port |
|
|
@@ -801,9 +858,10 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
801
858
|
handler finds what to act on. Parameters that are optional or have a default are left out of the call.
|
|
802
859
|
- **The grant of a job.** A job whose command is protected sends it as `system:<context>.<name>`,
|
|
803
860
|
which has no right unless the model gives it one. `generate job` writes the grant where the model
|
|
804
|
-
makes it one line, in a `system-grants` marker region, and `
|
|
861
|
+
makes it one line, in a `system-grants` marker region, and `todos` points at that line:
|
|
805
862
|
`--authz rbac`, the id of the permission under the role `system` of `platform/auth/roles/roles.ts`,
|
|
806
|
-
the role `createAuthorizer` gives every system actor (`systemRole`)
|
|
863
|
+
the role `createAuthorizer` gives every system actor (`systemRole`) and no other: a user token
|
|
864
|
+
that names `system` among its roles does not hold it; `--authz abac`, a
|
|
807
865
|
`permit('system-<job>', [permission], ({ actor }) => actor.id === 'system:<job>')` rule in
|
|
808
866
|
`platform/auth/attributes/attribute-policies.ts`; `--authz rebac`, the tuple
|
|
809
867
|
`context:<context>#operator@system:<job>` in `platform/auth/relationships/relate-system-actors.ts`,
|
|
@@ -834,7 +892,17 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
834
892
|
other name. With `--authz rebac` the requirement names the context as its resource, a starting
|
|
835
893
|
point to replace by the element the right bears on. With `--authz rbac`, `--grant <role>` gives
|
|
836
894
|
the permission to the role in `platform/auth/roles/roles.ts` (the role joins `role.ts` when it is
|
|
837
|
-
new); without it, a `
|
|
895
|
+
new); without it, a step of `todos` says the grant is left to do (`authz/granted`).
|
|
896
|
+
- `route` reads the constructor of its command or query when it already declares its fields, past
|
|
897
|
+
the actor: a string, a number or a boolean is read from the path when the route names a parameter
|
|
898
|
+
after it (a string), from the body otherwise, and the route writes the body schema in the library
|
|
899
|
+
of the stack (`zod`, `class-validator`, `typebox`, a hand-written Standard Schema of the body and
|
|
900
|
+
of the path parameters under `standard-schema`), the call
|
|
901
|
+
`new CancelInvoiceCommand(request.actor, request.params.invoiceId, request.body.reason)` and a
|
|
902
|
+
spec that sends a valid body and asserts that command. The reading stops at the first field of
|
|
903
|
+
another type (a value object, a date, a nested object, an optional field), which stays a
|
|
904
|
+
`TODO(domain)` of the schema and of the call; a request mapper (`--mapper`) builds the message
|
|
905
|
+
itself. Generate the command, fill its constructor, then generate the route.
|
|
838
906
|
- `route` hands `actorOf(context.principal)` to a protected use case and sets `security` (the scheme
|
|
839
907
|
of `--authn`, or `false` for a public one). `integration-handler` carries `systemActor('<context>.<name>')`
|
|
840
908
|
for the command it builds; behind a broker it listens on the subscriber of its context
|
|
@@ -842,7 +910,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
842
910
|
- A generated repository adapter only persists: it takes `ExecutionScope` and `Clock`, never
|
|
843
911
|
`ActorContext` nor a dispatcher, and stamps `created_at`, `created_by`, `updated_at`, `updated_by` with `stampCreation` and `stampUpdate`;
|
|
844
912
|
the table uses `auditColumns` of the ORM package (the five fields are written out for Prisma).
|
|
845
|
-
The
|
|
913
|
+
The table holds no instant of the birth: `created_at` dates the row, and an instant a rule reads is a field of the state, named after its fact.
|
|
846
914
|
`repository --tenant-scoped` (the four ORMs), and every repository of a project whose
|
|
847
915
|
`stack.tenancy` is `shared-table`, adds the tenant column (`tenantColumn`, or the `tenantId` field
|
|
848
916
|
of the Prisma model) and an index that starts with it, names the tenant on the insert and reaches
|
|
@@ -864,7 +932,11 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
864
932
|
not read as past tense are refused too; a technical word passes when a term of the glossary
|
|
865
933
|
holds it (`--term "Scoring model=<meaning>"` lets `ScoringModel` through), because the language
|
|
866
934
|
of the business wins. `--allow-name` overrides the three checks; `check`
|
|
867
|
-
will still report what the glossary does not define.
|
|
935
|
+
will still report what the glossary does not define. Only the kinds whose usage shows `--term`
|
|
936
|
+
take it (`heldToGlossary` in `generate --help --json`, a line of `generate <kind> --help`); the
|
|
937
|
+
others (`port`, `adapter`, `repository`, `route`, `representation`...) name what an earlier
|
|
938
|
+
command named or what the concept they serve is called, and refuse `--term`, naming the kinds
|
|
939
|
+
that take it.
|
|
868
940
|
- Generated code compiles as is and passes `check`, the ESLint preset, dependency-cruiser and knip
|
|
869
941
|
at the default severities: one export per file, files far under 350 lines, `private` members,
|
|
870
942
|
the blank-line layout. Every place that needs business knowledge carries a
|
|
@@ -876,13 +948,21 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
876
948
|
announced with the save with `application.domainEvents.on('<name>', ...)`; with hand wiring it
|
|
877
949
|
goes through `createTestBuses()` of `@ddd-ts-kit/testing`, whose `dispatching(fake)` makes the
|
|
878
950
|
save of a fake announce its events to `domainEvents`. The arrangement several specs of a
|
|
879
|
-
context share is generated once, `generate test-world`, in `test/worlds
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
951
|
+
context share is generated once, `generate test-world`, in `test/worlds/`: the handler, query
|
|
952
|
+
and job specs generated after it arrange through it, in one call, and those generated before
|
|
953
|
+
say so in a comment. Either way `holdersOf(permission)` of `@ddd-ts-kit/auth/testing` gives the
|
|
954
|
+
actor holding the permission and the authorizer granting it.
|
|
955
|
+
- `--json` prints `{ dryRun, created, updated, deleted, skipped, unwritable, todos, notes }`.
|
|
956
|
+
`todos` lists the `TODO(domain)` places, the glossary first, each as `{ file, line, gist }`:
|
|
957
|
+
`gist` is the first words of the marker (up to its first `:` or `;`, twelve words at most), whose
|
|
958
|
+
whole sentence is in the file at that line. Then come the lines a command wrote for the team to
|
|
959
|
+
check (the grant of a job), which no file explains: those also carry their whole `text`. The text
|
|
960
|
+
output prints each place on one line, `file:line gist` (the whole `text` of a step).
|
|
883
961
|
- A kind that needs something else to compile either creates it (a missing repository or
|
|
884
962
|
domain event) or stops with the command that creates it (a missing aggregate, use case or
|
|
885
|
-
route).
|
|
963
|
+
route). Its `summary` names that command, `After generate ...`
|
|
964
|
+
(`After generate route <context> <UseCase>` for a `representation`): the commands of one row
|
|
965
|
+
of the slices run in that order.
|
|
886
966
|
- Registration goes between marker comments (`// ddd-ts-kit:<region>` ... `// /ddd-ts-kit:<region>`,
|
|
887
967
|
HTML comments in Markdown). Remove a marker and the generator prints what to add by hand.
|
|
888
968
|
- Every `generate` refreshes the generated documentation and `.dependency-cruiser.cjs` when
|
|
@@ -890,7 +970,9 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
890
970
|
- `--local-only` refuses, naming the files and writing nothing, when the run would write outside
|
|
891
971
|
`<contextsDir>/<context>/` and `test/e2e/*.e2e.spec.ts`. `generate --help --json` prints every
|
|
892
972
|
kind with its `usage`, `aliases`, `summary` and `writesShared`, plus `shared` and `sharedWhen`:
|
|
893
|
-
what it writes outside its context, and when
|
|
973
|
+
what it writes outside its context, and when; `writesInModules`, true when it takes `--module`;
|
|
974
|
+
and `heldToGlossary`, true when it takes `--term`. `generate <kind> --help --json` prints that kind
|
|
975
|
+
alone, as one object, and `generate <kind> --help` the same as text. Both serve a build split between workers (see
|
|
894
976
|
`worker-scope`).
|
|
895
977
|
- A fake is an entry point for knip and may have no importer for dependency-cruiser: a port
|
|
896
978
|
and its fake generated before a use case needs them fail neither analyzer. A domain service
|
|
@@ -945,7 +1027,7 @@ Regenerates what is derived from the config and the code, and nothing else:
|
|
|
945
1027
|
platform owners. A file the team wrote keeps its lines, the block appended after them; without
|
|
946
1028
|
any owner nothing is written.
|
|
947
1029
|
|
|
948
|
-
`--behaviour` writes the pages of `docs/behaviour/` alone, every other generated document left as it is: what the pre-commit hook runs when a spec is staged; with `--check`, those pages alone are compared. A
|
|
1030
|
+
`--behaviour` writes the pages of `docs/behaviour/` alone, every other generated document left as it is: what the pre-commit hook runs when a spec, a source under `src/` or `ddd-ts-kit.config.json` is staged, since a source can move a spec to another heading (the use case its route sends, the permission its policy decides) while no spec changes; with `--check`, those pages alone are compared. A page reads as a specification. It opens with one heading per use case of the context, the command or query in the words its handler spec is described with (`Cancel invoice (command)`), which holds the rules of its handler, of its policy (named after it, or deciding the permission it requires; a policy several use cases share states its rules under the first of them, `shared with ...`, and is named under the others), of its controller or route, of its reader, of its end-to-end spec (`test/e2e/<use-case>.e2e.spec.ts`, `<use-case>-<behaviour>`, or named after its route) and of the acceptance scenarios that cite a row its titles alone cite (a row two use cases cite leaves the scenario on the application page). One heading per part of the model follows (aggregate, entity, value object, state machine, domain service, domain event, error), then one per reaction (event and integration handlers, publishers, projections, process managers, jobs), then each spec that fits none, under its directory. Under each heading come the rules written for the project, then, in a sub-list `Generated by the kit`, each under the `describe` of its spec, the titles that match word for word a title a spec template of the kit writes for a spec of that role, its names substituted (`saves the invoice and answers its identifier`, `is refused to an actor who does not hold the permission invoice.cancel`), so that the eye goes to what the project added; a planned rule (`it.todo`) comes last in each list, the generic ones a generator planted included. `docs/behaviour/application.md` keeps the specs of `test/` that serve no use case: the journeys, the architecture, the scenarios that cite no row of a use case. The rows of the plan and the criterion a title opens with, as `test/title-states-a-rule` asks them written (`#US5.02 AC1 ...`), are shown before the rule (`` `#US5.02 AC1` a customer places an order ``), and each page ends with `Rows of the plan`: each row its titles cite and how many titles cite it, so that a reviewer checks that each rule line of a row of `docs/architecture/slices.md` has its title.
|
|
949
1031
|
|
|
950
1032
|
`--stored-events` also records in `stored-events.lock.json` the shape of each version of a stored
|
|
951
1033
|
event declared in the codecs of `infrastructure/persistence/`, never rewriting a recorded version:
|
|
@@ -1017,7 +1099,8 @@ Moves the function routes of a project, or of one context, to controller classes
|
|
|
1017
1099
|
- the schema files named after the route follow it (`<name>-body.dto.ts` becomes
|
|
1018
1100
|
`<name>.body.ts`), the others go to `shared/` under their name, and every import of a moved
|
|
1019
1101
|
file is rewritten;
|
|
1020
|
-
- the spec becomes `<name>.controller.spec.ts
|
|
1102
|
+
- the spec becomes `<name>.controller.spec.ts`: sent through `routeOf`, the controller stands
|
|
1103
|
+
behind the guards of its group; a spec that calls `executeRoute` runs it without them;
|
|
1021
1104
|
- in a declared project the list `<context>.routes.ts`, its spec and its line in the
|
|
1022
1105
|
composition root are removed; in an explicit one the list builds each controller by hand;
|
|
1023
1106
|
- the config says `controllers` once no function route is left in the contexts.
|
|
@@ -1159,6 +1242,8 @@ handlers, the policies, the gateways and the adapters are read from the decorato
|
|
|
1159
1242
|
query shows what it requires (or `public`), a handler its consumer name and its event, a policy its
|
|
1160
1243
|
permission, an adapter its port; `--json` adds them under `declarations`. In the explicit style the
|
|
1161
1244
|
jobs are read from the `builder.job(...)` and `platform.jobs.register(...)` lines of the module file.
|
|
1245
|
+
The text leaves out the kinds a context holds none of, and the end-to-end specs when there is none;
|
|
1246
|
+
`--json` keeps every key, an empty list included.
|
|
1162
1247
|
|
|
1163
1248
|
## describe
|
|
1164
1249
|
|
|
@@ -1194,7 +1279,7 @@ each `CONTEXT.md`.
|
|
|
1194
1279
|
|
|
1195
1280
|
```
|
|
1196
1281
|
ddd-ts-kit status [--workers]
|
|
1197
|
-
ddd-ts-kit todo [<context>]
|
|
1282
|
+
ddd-ts-kit todo [<context>] [--brief]
|
|
1198
1283
|
```
|
|
1199
1284
|
|
|
1200
1285
|
`status` prints the `Next:` line of `docs/architecture/plan.md`, the rows of
|
|
@@ -1245,7 +1330,9 @@ current }, agent, phase, next }`, `phase` being `not started`, `mid-row`, `betwe
|
|
|
1245
1330
|
and did not stop since).
|
|
1246
1331
|
|
|
1247
1332
|
`todo` lists those markers as `file:line` with their kind and their text, in the project or in one
|
|
1248
|
-
context; `--
|
|
1333
|
+
context; `--brief` prints each as `file:line` and its first words (up to its first `:` or `;`,
|
|
1334
|
+
twelve words at most), the file holding the rest, a quarter of the size mid-slice; `--json` prints
|
|
1335
|
+
`{ count, remaining: [{ kind, context, file, line, text }] }`, every text whole.
|
|
1249
1336
|
|
|
1250
1337
|
## plan-waves
|
|
1251
1338
|
|
|
@@ -1278,13 +1365,16 @@ batch that holds them (or the `plan-waves <context>` that shows them) and the ro
|
|
|
1278
1365
|
before launching a wave, the conductor sees that it waits on the work of another story, and whether
|
|
1279
1366
|
anyone carries it.
|
|
1280
1367
|
|
|
1281
|
-
A cycle in `Depends on`, a dependency on an id no row carries, a row without owner
|
|
1282
|
-
rows carry
|
|
1368
|
+
A cycle in `Depends on`, a dependency on an id no row carries, a row without owner, an id two
|
|
1369
|
+
rows carry, an id that is not a code and a number (`US1.02`, never `US1.02;id`) and a context the
|
|
1370
|
+
config does not declare make the rows impossible to order or to brief (a brief is a command the
|
|
1371
|
+
conductor runs, and only the context and the ids of declared, well-formed rows are written in it):
|
|
1372
|
+
they are reported alone, without waves, and the
|
|
1283
1373
|
command exits 1. A file without a slices table, or a context no row names, is refused.
|
|
1284
1374
|
|
|
1285
1375
|
Once the rows can be ordered, the generator commands of their `Start with` cells (between
|
|
1286
1376
|
backquotes, `generate ...` or `npx ddd-ts-kit generate ...`) are replayed in a copy of the
|
|
1287
|
-
project (the files git sees; the project is left as it was), in the order of the waves, so that a
|
|
1377
|
+
project (the files git sees, a symbolic link left out wherever it points; the project is left as it was), in the order of the waves, so that a
|
|
1288
1378
|
command finds what the rows before it generate. The generator itself says which names each
|
|
1289
1379
|
command introduces (the use case, the aggregate and the fact of an event, a `--name`, the words of
|
|
1290
1380
|
a `--permission`, ...), and each is judged as the generator judges it, against the glossary of its
|
|
@@ -1292,15 +1382,47 @@ context as it stands plus the `--term` of the row and of the rows it waits for,
|
|
|
1292
1382
|
term a row it does not wait for adds is not counted, since that row may not be merged when this
|
|
1293
1383
|
one is built. Each word it does not define (`undefined-word`) and each technical word no term
|
|
1294
1384
|
holds (`technical-word`) is reported once per row, with the `--term` to add, without waves, and
|
|
1295
|
-
the command exits 1: a worker following that row as written would be refused.
|
|
1296
|
-
generator
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
a
|
|
1301
|
-
|
|
1385
|
+
the command exits 1: a worker following that row as written would be refused. So is each command
|
|
1386
|
+
the generator refuses for another reason (`refused-command`: a missing `--module` in a context
|
|
1387
|
+
divided into modules, `--grant` on a project whose rights are not roles, an aggregate no row
|
|
1388
|
+
generates, an upstream not declared, an unknown flag), without waves and with exit 1, the refusal
|
|
1389
|
+
of the generator and its fix printed under the row: fix the row. The generator also says, while it
|
|
1390
|
+
replays a command, which files it builds on (the aggregate of `--aggregate`, the port of an
|
|
1391
|
+
adapter, the use case of a route, a route group, the route, the event handler or the job that
|
|
1392
|
+
starts the use case of an end-to-end spec, the `CONTEXT.md` of the context it writes in and of
|
|
1393
|
+
each upstream it declares, the declaration of an event) and which files it creates. A command
|
|
1394
|
+
that builds on a file a row it does not wait for generates, directly or not, is a
|
|
1395
|
+
`missing-dependency`, even though the replay, one row after the other in one copy, found the file:
|
|
1396
|
+
the worker of that row, on a branch of its own, would be refused (`#US5.02 ... builds on
|
|
1397
|
+
<file>, which #US5.01 generates: add US5.01 to its Depends on`). A command the generator refuses
|
|
1398
|
+
names those rows with its refusal instead, in its `prerequisite` and its `rows`: one problem per
|
|
1399
|
+
command. A command refused for what it
|
|
1400
|
+
builds on is run again once the whole plan has run, with `--dry-run` so that the copy stays as the
|
|
1401
|
+
plan left it and no rerun passes on what another wrote, and the files it then finds say which row
|
|
1402
|
+
generates what it needed, each file in one pass: a later row it does not wait for (`add <id> to its Depends on`, and
|
|
1403
|
+
that id in `rows`, as many ids as rows), a later row that waits for it (move the command that generates it to this row or
|
|
1404
|
+
to a row before it, rather than make a cycle), a later command of the same row (put it first), or
|
|
1405
|
+
none as the rows are written (add the command the fix names, or fix the refused row that would
|
|
1406
|
+
generate it); what it is refused for then, for another reason (a `--grant` once the aggregate is
|
|
1407
|
+
found) or for another file no row generates, is said too (`then:`, `nextRefusal`), so that fixing
|
|
1408
|
+
the order is not followed by another refusal. A row `in progress` is replayed, so that the rows after it
|
|
1409
|
+
find what it generates, but neither its names, nor its refusals, nor what it builds on are problems:
|
|
1410
|
+
its worker may have added the term a name needs on their branch, its commands may have run in the
|
|
1411
|
+
project already, and the generator refuses a second run of some of them (a
|
|
1412
|
+
port already bound to an adapter, a decision record whose number is taken); they are listed apart,
|
|
1413
|
+
with their fix, under `Refused in rows in progress, not counted`. A command whose files exist is
|
|
1414
|
+
otherwise skipped by the generator, not refused. The replay runs each command for real in the
|
|
1415
|
+
copy, never with `--dry-run`, so that the next command finds its files. With a context, the open
|
|
1416
|
+
rows of the other contexts are replayed too, in their waves (when the whole file can be ordered),
|
|
1417
|
+
so that a row finds what a row of another context it does not wait for generates and is told to
|
|
1418
|
+
wait for it; only the rows of its plan, its own and those they wait for, are judged and listed
|
|
1419
|
+
under `Refused in rows in progress`. A plan whose rows run no generator command makes no copy. The
|
|
1420
|
+
replay costs about a tenth of a second per command. `--json` prints
|
|
1421
|
+
`{ file, context, problems: [{ kind, rows, message, command?, refusal?, fix?, prerequisite?, nextRefusal?, builtOn? }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, story, waitingFor, waitingForRows: [{ id, context, story, status }] }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder, otherStories: [{ id, context, story, kind, slice, owner, status, batch, waitedForBy }], started: [{ row, command, refusal, fix }] }`,
|
|
1302
1422
|
`story` being `null` for a row whose id names none and `batch` `null` for a row the context asked
|
|
1303
|
-
for does not show
|
|
1423
|
+
for does not show; `command`, `refusal`, `fix` and `prerequisite` are those of a `refused-command`,
|
|
1424
|
+
`fix`, `prerequisite` and `nextRefusal` (`{ refusal, fix, prerequisite }`, its `prerequisite` saying that no row generates the file it then lacks) `null` when there is none, `command` and `builtOn` those of a
|
|
1425
|
+
`missing-dependency`; `message` holds a problem on one line.
|
|
1304
1426
|
|
|
1305
1427
|
## acceptance
|
|
1306
1428
|
|
|
@@ -1319,7 +1441,14 @@ its rows: every slice row and criterion has a written scenario, and the acceptan
|
|
|
1319
1441
|
scenario (`pending(...)`, layout and comments aside); after it, a scenario changes only with its
|
|
1320
1442
|
criterion, and a criterion, or a scenario whose criteria stayed, only with a `Verdict: amend` of
|
|
1321
1443
|
the `acceptance-judge` agent on that very version (`test/acceptance/verdicts/*.md`), which the lock
|
|
1322
|
-
keeps as an amendment for the owner to validate.
|
|
1444
|
+
keeps as an amendment for the owner to validate. When the lock file is missing, unreadable or holds nothing, `--lock` and the report read the last
|
|
1445
|
+
lock a commit holds and compare with it: a scenario or a criterion that differs without a verdict
|
|
1446
|
+
for its version is refused (exit 2, naming it, with `git checkout <commit> -- <lock>` to restore the
|
|
1447
|
+
lock), the report lists the same drift, and the verdicts it finds are kept as amendments. A lock whose
|
|
1448
|
+
deletion a commit holds is a removal decided: locked again, with one line saying so. Without an answer
|
|
1449
|
+
from git (no repository, or git not installed) it locks, and says the previous lock could not be
|
|
1450
|
+
checked only when a removal is plausible (a lock file that holds nothing, or a verdict on the story):
|
|
1451
|
+
a first lock says nothing. It never runs a test. Exits 1 while a gate is not
|
|
1323
1452
|
met, or, without one, on an inconsistency or a drift from the lock. `--json` prints
|
|
1324
1453
|
`{ gate, met, stories: [{ story, file?, specification?, rows, criteria, scenarios, regression?, lock?, amendments, problems }] }`.
|
|
1325
1454
|
|
|
@@ -1712,8 +1841,8 @@ Where a story stands, phase by phase, and the next step: its specification and c
|
|
|
1712
1841
|
(`docs/architecture/stories/<story>.md`), its rows in `slices.md`, a design review section per
|
|
1713
1842
|
row not done (`docs/architecture/reviews/<story>.md`, `## #<id>`), its acceptance written and
|
|
1714
1843
|
locked, its rows done with no marker of its own left, its acceptance passing, its trunk merged
|
|
1715
|
-
in, its `## Origin` (`From:` and `Built with:`), its `## Report` with `###
|
|
1716
|
-
`npm run verify`. In the worktree of a story, the story is its own. `--gate build` exits 1 until
|
|
1844
|
+
in, its `## Origin` (`From:` and `Built with:`), its `## Report` with `### Digest` (what `digest` prints)
|
|
1845
|
+
then `### Verification` naming `npm run verify`. In the worktree of a story, the story is its own. `--gate build` exits 1 until
|
|
1717
1846
|
the first four phases are met (the code may start: the guard of the plugin opens the contexts);
|
|
1718
1847
|
`--gate close` until all are. For a story of kind `fix` (its `story.json`, or a `## Regression`
|
|
1719
1848
|
section in its file), the rows and their design are optional, the acceptance phase reads the
|
|
@@ -1721,6 +1850,42 @@ specs listed under `## Regression` instead of `test/acceptance/`, each of which
|
|
|
1721
1850
|
no passing phase is read: the regression specs run with the tests of the project. `--json`
|
|
1722
1851
|
prints `{ story, gate, met, next, phases }`.
|
|
1723
1852
|
|
|
1853
|
+
## digest
|
|
1854
|
+
|
|
1855
|
+
```
|
|
1856
|
+
ddd-ts-kit digest --base <ref> [--json]
|
|
1857
|
+
```
|
|
1858
|
+
|
|
1859
|
+
What the branch changes, for its reviewer, in about thirty lines of Markdown read before the
|
|
1860
|
+
diff: the story skill writes it into `## Report`, the pull-request skill keeps it at the top of
|
|
1861
|
+
the body of the pull request. HEAD is compared with its merge base with `<ref>`, so that a trunk
|
|
1862
|
+
that moved on since the branch was cut adds nothing; both commits are written under the temporary
|
|
1863
|
+
directory of the system through an index of their own (`git read-tree`, then `git checkout-index`,
|
|
1864
|
+
which, unlike `git archive`, keeps what `export-ignore` of `.gitattributes` names), described there as `describe` reads a project, and
|
|
1865
|
+
removed afterwards: the working tree is never checked out, and what it holds uncommitted is said
|
|
1866
|
+
in a note, not digested.
|
|
1867
|
+
|
|
1868
|
+
- **By context**: the use cases, the permissions with the roles that hold them by name (in
|
|
1869
|
+
`<platformDir>/auth/roles/roles.ts`, and `signed-in` for `signed-in-grants.ts`), the routes with
|
|
1870
|
+
their error codes, the events published and consumed, the ports with their adapters, each
|
|
1871
|
+
`added`, `changed` or `removed`.
|
|
1872
|
+
- **New spec titles**: per spec file the branch changes, the titles the base did not state, read
|
|
1873
|
+
as the behaviour pages read them; those a template of the kit wrote are counted, not listed.
|
|
1874
|
+
- **To review, in reading order**: the files a person wrote, by part: the root of a context (its
|
|
1875
|
+
`CONTEXT.md`, permissions, codes), domain (the shared kernel too), application, presentation
|
|
1876
|
+
(the published language too), infrastructure (the migrations too), tests, elsewhere (the
|
|
1877
|
+
platform, the documents, the config).
|
|
1878
|
+
- **Regenerated, do not review**: the generated files the `## Do not report` of `REVIEW.md` names,
|
|
1879
|
+
from one list: the barrels, `openapi/`, `clients/`, the AsyncAPI document and the event catalog,
|
|
1880
|
+
the behaviour pages, `docs/context-map.md`, the OpenAPI documents of the platform, the schema
|
|
1881
|
+
index, `.dependency-cruiser.cjs`, and a `CONTEXT.md` changed in its generated sections alone.
|
|
1882
|
+
|
|
1883
|
+
Outside a git repository, before the first commit, on a ref git does not know or one that shares
|
|
1884
|
+
no history with HEAD, it refuses with exit 2. `--json` prints `{ base, baseCommit, head, branch,
|
|
1885
|
+
contexts, specs, review, regenerated, notes }`: each context `{ name, change, useCases,
|
|
1886
|
+
permissions, routes, publishedEvents, consumedEvents, ports }`, each entry with its `change`; each
|
|
1887
|
+
spec `{ file, titles: [{ title, state }], generated }`; each file to review `{ path, part, change }`.
|
|
1888
|
+
|
|
1724
1889
|
## cited
|
|
1725
1890
|
|
|
1726
1891
|
```
|
|
@@ -1951,10 +2116,11 @@ Each changed path reaches something:
|
|
|
1951
2116
|
lockfile, the pipeline, a directory of `src/contexts/` the config does not declare.
|
|
1952
2117
|
|
|
1953
2118
|
Without `--base`, or when git cannot tell what changed (an unknown ref, a shallow clone without
|
|
1954
|
-
the base), everything is selected: that is what the default branch and the nightly run get.
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2119
|
+
the base), everything is selected: that is what the default branch and the nightly run get. A
|
|
2120
|
+
`--base` or `--head` that starts with a dash is refused (exit 2): no ref does, and git would read
|
|
2121
|
+
it as one of its own options. The selection is never narrower than the declared relationships,
|
|
2122
|
+
because `context/declared-relationship` keeps every import between contexts inside them, and that
|
|
2123
|
+
rule runs on the whole project in every pipeline.
|
|
1958
2124
|
|
|
1959
2125
|

|
|
1960
2126
|
|
|
@@ -2065,7 +2231,9 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2065
2231
|
baseline was committed (a `git mv`); a file moved otherwise reports its errors at its new path,
|
|
2066
2232
|
and its old entry fails until the owner writes the baseline again. A baseline makes old errors quiet; it does
|
|
2067
2233
|
not make a tree outside the canonical one checkable.
|
|
2068
|
-
`--changed-since` runs `git diff --name-only --relative <ref>...` in the project
|
|
2234
|
+
`--changed-since` runs `git diff --name-only --relative <ref>...` in the project, on the commit
|
|
2235
|
+
the ref names: a ref that names no commit is refused (exit 2, `<ref> is not a commit of this
|
|
2236
|
+
repository`), as it is by every command that takes one.
|
|
2069
2237
|
- `--format github` prints `::error file=...,line=...::` annotations.
|
|
2070
2238
|
- `--explain` follows the violations with each rule they report, once, with its description and
|
|
2071
2239
|
the reason it exists (as `explain` prints it, without the examples), and in JSON adds an
|
|
@@ -2148,7 +2316,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2148
2316
|
| `imports/alias-only` | under the source root, `test/` and `scripts/`: an `import`, `export ... from` or `import()` with a relative specifier, the same directory included (the fix names the alias to write; `eslint --fix` writes it); an alias specifier with a `.` or `..` segment |
|
|
2149
2317
|
| `imports/extension` | under the source root, `test/` and `scripts/`: with `importExtension` `none`, an alias specifier that ends with `.js`, `.mjs`, `.cjs`, `.ts`, `.mts` or `.cts`; with `js` (or no key), an alias specifier that does not end with `.js` (the fix names the specifier to write; `eslint --fix` writes it). A package subpath is never judged |
|
|
2150
2318
|
| `imports/alias-declared` | an `importAlias` that is not `@/` or `$<name>/`, or that is `$test/`, `$scripts/`, `$generated/`; a `paths` entry of `tsconfig.json` missing or different from what `importAlias` gives (the fix gives the entry); another `paths` entry under an alias; a `baseUrl`; a `tsconfig.build.json` whose `paths` differ; `paths` of `knip.json` mapping an alias; a script that compiles (`tsc` without `--noEmit`) and does not run `ddd-ts-kit build-aliases` afterwards; a script running `tsx --tsconfig` on another file; a `vitest` config at the root without `tsconfigPaths: true`, a `jest` config without the derived `moduleNameMapper` entries, or `.dependency-cruiser.cjs` without `tsConfig`; `module` and `moduleResolution` of `tsconfig.json` (or of a `tsconfig.build.json` that sets its own) that are not what `importExtension` gives: `ESNext`, `Bundler` and `customConditions` holding `node` under `none`, and under `js` a written value that is not a Node resolution; a jest mapping whose pattern does not end as the imports do. A project without `package.json` is not judged |
|
|
2151
|
-
| `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
|
|
2319
|
+
| `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a directory of the config that leads out of the project; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
|
|
2152
2320
|
| `config/suppression-needs-reason` | a suppression without a rule id or a reason (kept as an alias next to `governance/recorded-deviation`, which judges the reason) |
|
|
2153
2321
|
| `authz/declared` | in a module file, `builder.command(X)` or `builder.query(X)` without `.requires(` or `.public(` in its chain, unless the message class carries `@Requires` or `@Public` of `@ddd-ts-kit/kernel/declarations`; with manual or nest wiring, a command or query class absent from every `requires(X, ...)` and `publicUseCase(X)` of the module file and of `application/authorization/`; a `defineRoute` without `security` (the route type refuses it already, and an empty list too: this is the text-level net for a definition built loosely); in the declared style, the exported class of a `*.command.ts` or `*.query.ts` file carrying neither `@Requires` nor `@Public` |
|
|
2154
2322
|
| `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning); with `rebac`, a permission the schema leaves on the context while no source outside the tests writes an `operator` relationship (of a person or a system actor) on that context and no signed-in grant holds it, in a project that already makes a person operator of some context; silent with an authorizer of the project's own (a warning) |
|