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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copy to .env: `npm run dev` and docker compose both read it. Never commit .env.
|
|
1
|
+
# Copy to .env: `npm run dev` and docker compose both read it. Never commit .env nor any .env.* but this one: git ignores them.
|
|
2
2
|
NODE_ENV=development
|
|
3
3
|
PORT=3000
|
|
4
4
|
# debug, info, warn or error.
|
|
@@ -105,6 +105,21 @@ VARNISH_PURGE_KEY=local-purge-key
|
|
|
105
105
|
# RATE_LIMIT_MAX=120
|
|
106
106
|
# RATE_LIMIT_WINDOW_MS=60000
|
|
107
107
|
{{/if}}
|
|
108
|
+
{{#if http.any}}
|
|
109
|
+
{{#unless http.hono}}
|
|
110
|
+
# Behind a load balancer or a reverse proxy: the proxies believed when they name the caller in X-Forwarded-For (request.ip{{#if cache.rateLimit}}, the address
|
|
111
|
+
# the rate limit counts{{/if}}). A number of hops (1: the nearest proxy), or their addresses, subnets or ranges (10.0.0.0/8,loopback).
|
|
112
|
+
# Left out, none is: behind a proxy every caller then has the address of the proxy.
|
|
113
|
+
# TRUST_PROXY=1
|
|
114
|
+
{{/unless}}
|
|
115
|
+
{{#if http.hono}}
|
|
116
|
+
{{#if cache.rateLimit}}
|
|
117
|
+
# Behind a load balancer or a reverse proxy: how many proxies add the caller to X-Forwarded-For, for the address the rate limit counts.
|
|
118
|
+
# Left out (0), none is believed: behind a proxy every caller then shares the window of the proxy.
|
|
119
|
+
# TRUST_PROXY=1
|
|
120
|
+
{{/if}}
|
|
121
|
+
{{/if}}
|
|
122
|
+
{{/if}}
|
|
108
123
|
{{#if authn.keycloak}}
|
|
109
124
|
|
|
110
125
|
# Authentication: the Keycloak realm tokens come from, and the audience this service answers to.
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
1
2
|
import base from './jest.config.js';
|
|
2
3
|
|
|
4
|
+
// Each spec file starts its own application, and its own PostgreSQL in process unless DATABASE_URL names a server.
|
|
5
|
+
// On a shared server the files cannot overlap (they would empty each other's tables): one worker, so Jest runs
|
|
6
|
+
// them in band, in one process that keeps the modules of every file it ran (about 15 MB of heap each with ES modules).
|
|
7
|
+
// A long suite there needs a larger heap: NODE_OPTIONS=--max-old-space-size=<MB>.
|
|
8
|
+
const sharedServer = (process.env.DATABASE_URL ?? '') !== '';
|
|
9
|
+
|
|
3
10
|
export default {
|
|
4
11
|
...base,
|
|
5
12
|
testMatch: ['<rootDir>/test/e2e/**/*.e2e.spec.ts', '<rootDir>/test/acceptance/**/*.acceptance.spec.ts'],
|
|
6
13
|
testTimeout: 20000,
|
|
7
|
-
maxWorkers: 1,
|
|
14
|
+
maxWorkers: sharedServer ? 1 : 2,
|
|
15
|
+
// Out of band, a worker whose memory passes this after a file is replaced by a fresh one, so the heap of a long suite
|
|
16
|
+
// stays bounded whatever the number of files. Jest ignores the limit in band, where the heap grows from file to file.
|
|
17
|
+
workerIdleMemoryLimit: '800MB',
|
|
8
18
|
};
|
|
@@ -3,8 +3,8 @@ import type { Actor } from '@ddd-ts-kit/kernel';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The actor the payload of a verified token stands for, as the kit reads claims: `sub`, the roles
|
|
6
|
-
* (`realm_access.roles`, `roles`,
|
|
7
|
-
* here when the tokens of the issuer say these elsewhere.
|
|
6
|
+
* (`realm_access.roles`, else `roles`, never `scope`), the tenant (`tenant_id`) and the profile.
|
|
7
|
+
* Change it here when the tokens of the issuer say these elsewhere.
|
|
8
8
|
*/
|
|
9
9
|
export function actorOfToken(payload: unknown): Actor {
|
|
10
10
|
if (typeof payload !== 'object' || payload === null || Array.isArray(payload)) {
|
|
@@ -5,18 +5,44 @@ import { ExtractJwt, Strategy } from 'passport-jwt';
|
|
|
5
5
|
export type BearerTokens = {
|
|
6
6
|
readonly issuer: string;
|
|
7
7
|
readonly audience: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether a token must carry `exp`, as `requireExpiry` of `JwtAuthenticator`. Default `true`: a
|
|
10
|
+
* token without it is refused. `false` is a conscious choice, for an issuer whose tokens never
|
|
11
|
+
* expire: a stolen one then works until its key is revoked.
|
|
12
|
+
*/
|
|
13
|
+
readonly requireExpiry?: boolean;
|
|
8
14
|
} & ({ readonly jwksUri: string } | { readonly publicKey: string });
|
|
9
15
|
|
|
16
|
+
/**
|
|
17
|
+
* `DEFAULT_JWT_ALGORITHMS` of `@ddd-ts-kit/auth`, the algorithms `JwtAuthenticator` allows, but
|
|
18
|
+
* EdDSA, which `jsonwebtoken` (under `passport-jwt`) cannot verify: an issuer that signs with
|
|
19
|
+
* EdDSA needs `--authn jwt`.
|
|
20
|
+
*/
|
|
10
21
|
const ALGORITHMS = ['RS256', 'PS256', 'ES256'] as const;
|
|
11
22
|
|
|
12
23
|
/**
|
|
13
24
|
* The strategy of Passport that verifies a bearer token: its signature, against the key set the
|
|
14
25
|
* issuer publishes (or one public key, as the end-to-end tests sign with), its issuer, its
|
|
15
|
-
* audience, its expiry
|
|
26
|
+
* audience, its expiry, which it must carry unless `requireExpiry` is `false`. It hands the
|
|
27
|
+
* payload on as the user; `actorOfToken` reads it.
|
|
16
28
|
*/
|
|
17
29
|
export function bearerStrategy(tokens: BearerTokens): Strategy {
|
|
18
|
-
const verified = {
|
|
19
|
-
|
|
30
|
+
const verified = {
|
|
31
|
+
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
|
|
32
|
+
issuer: tokens.issuer,
|
|
33
|
+
audience: tokens.audience,
|
|
34
|
+
algorithms: [...ALGORITHMS],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const requireExpiry = tokens.requireExpiry ?? true;
|
|
38
|
+
|
|
39
|
+
const handOn = (payload: unknown, done: (error: unknown, user?: unknown, info?: unknown) => void): void => {
|
|
40
|
+
if (requireExpiry && !carriesExpiry(payload)) {
|
|
41
|
+
done(null, false, { message: 'NO_EXPIRY' });
|
|
42
|
+
} else {
|
|
43
|
+
done(null, payload);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
20
46
|
|
|
21
47
|
if ('publicKey' in tokens) {
|
|
22
48
|
return new Strategy({ ...verified, secretOrKey: tokens.publicKey }, handOn);
|
|
@@ -27,3 +53,8 @@ export function bearerStrategy(tokens: BearerTokens): Strategy {
|
|
|
27
53
|
handOn,
|
|
28
54
|
);
|
|
29
55
|
}
|
|
56
|
+
|
|
57
|
+
/** `passport-jwt` checks `exp` when the token carries it, and lets a token without it through. */
|
|
58
|
+
function carriesExpiry(payload: unknown): boolean {
|
|
59
|
+
return typeof payload === 'object' && payload !== null && 'exp' in payload;
|
|
60
|
+
}
|
|
@@ -61,6 +61,21 @@ export interface AppConfig {
|
|
|
61
61
|
/** How many requests one caller address may send in a sliding window, before the HTTP layer answers 429. */
|
|
62
62
|
readonly rateLimit: RateLimit;
|
|
63
63
|
{{/if}}
|
|
64
|
+
{{#if http.any}}
|
|
65
|
+
{{#unless http.hono}}
|
|
66
|
+
/**
|
|
67
|
+
* The proxies in front of the server believed when they name the caller in `X-Forwarded-For` (`TRUST_PROXY`): a
|
|
68
|
+
* number of hops, or their addresses and subnets. `false` by default: the caller is the address of the socket.
|
|
69
|
+
*/
|
|
70
|
+
readonly trustProxy: false | number | readonly string[];
|
|
71
|
+
{{/unless}}
|
|
72
|
+
{{#if http.hono}}
|
|
73
|
+
{{#if cache.rateLimit}}
|
|
74
|
+
/** How many proxies in front of the server add the caller to `X-Forwarded-For` (`TRUST_PROXY`); 0 by default, none. */
|
|
75
|
+
readonly trustProxy: number;
|
|
76
|
+
{{/if}}
|
|
77
|
+
{{/if}}
|
|
78
|
+
{{/if}}
|
|
64
79
|
{{#if errors.sentry}}
|
|
65
80
|
/** Where unexpected failures are reported: a Sentry or a GlitchTip project. Without a DSN nothing is reported. */
|
|
66
81
|
readonly errorReporting: ErrorReportingConfig;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
{{#if http.any}}
|
|
2
|
+
{{#unless http.hono}}
|
|
3
|
+
import { isIP } from 'node:net';
|
|
4
|
+
{{/unless}}
|
|
5
|
+
{{/if}}
|
|
1
6
|
{{#if tenancy.any}}
|
|
2
7
|
import { LOG_LEVELS, isTenantId } from '@ddd-ts-kit/kernel';
|
|
3
8
|
{{/if}}
|
|
@@ -12,6 +17,13 @@ import { readFiles } from '{{alias.platform}}/config/read-files{{alias.ext}}';
|
|
|
12
17
|
import { readTracing } from '{{alias.platform}}/config/read-tracing{{alias.ext}}';
|
|
13
18
|
|
|
14
19
|
const environments = ['development', 'test', 'production'] as const;
|
|
20
|
+
{{#if http.any}}
|
|
21
|
+
{{#unless http.hono}}
|
|
22
|
+
|
|
23
|
+
/** What Express and Fastify name the private ranges, besides the addresses and the subnets. */
|
|
24
|
+
const PROXY_RANGES = ['loopback', 'linklocal', 'uniquelocal'];
|
|
25
|
+
{{/unless}}
|
|
26
|
+
{{/if}}
|
|
15
27
|
|
|
16
28
|
/** Whether a process runs the scheduled jobs when `RUN_JOBS` does not say. `ddd-ts-kit generate worker` turns it off: the worker then runs them. */
|
|
17
29
|
// ddd-ts-kit:run-jobs
|
|
@@ -72,6 +84,16 @@ export function loadConfig(variables: Variables): AppConfig {
|
|
|
72
84
|
{{#if cache.rateLimit}}
|
|
73
85
|
rateLimit: readRateLimit(env),
|
|
74
86
|
{{/if}}
|
|
87
|
+
{{#if http.any}}
|
|
88
|
+
{{#unless http.hono}}
|
|
89
|
+
trustProxy: readTrustProxy(env),
|
|
90
|
+
{{/unless}}
|
|
91
|
+
{{#if http.hono}}
|
|
92
|
+
{{#if cache.rateLimit}}
|
|
93
|
+
trustProxy: env.integer('TRUST_PROXY', { fallback: 0, min: 0, max: 32 }),
|
|
94
|
+
{{/if}}
|
|
95
|
+
{{/if}}
|
|
96
|
+
{{/if}}
|
|
75
97
|
{{#if errors.sentry}}
|
|
76
98
|
errorReporting: readErrorReporting(env, environment),
|
|
77
99
|
{{/if}}
|
|
@@ -144,6 +166,50 @@ function readRateLimit(env: Environment): AppConfig['rateLimit'] {
|
|
|
144
166
|
};
|
|
145
167
|
}
|
|
146
168
|
{{/if}}
|
|
169
|
+
{{#if http.any}}
|
|
170
|
+
{{#unless http.hono}}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* `TRUST_PROXY=1`: the nearest proxy, a load balancer, is believed when it names the caller in
|
|
174
|
+
* `X-Forwarded-For`; `TRUST_PROXY=10.0.0.0/8,loopback`: the proxies at those addresses. Left out,
|
|
175
|
+
* none is: behind a proxy every caller would then have its address, and share one window of the
|
|
176
|
+
* rate limit.
|
|
177
|
+
*/
|
|
178
|
+
function readTrustProxy(env: Environment): AppConfig['trustProxy'] {
|
|
179
|
+
const written = env.optional('TRUST_PROXY');
|
|
180
|
+
|
|
181
|
+
if (written === undefined) {
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (/^\d+$/.test(written)) {
|
|
186
|
+
return env.integer('TRUST_PROXY', { fallback: 0, min: 0, max: 32 });
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const proxies = written.split(',').map((proxy) => proxy.trim());
|
|
190
|
+
|
|
191
|
+
if (!proxies.every(isProxy)) {
|
|
192
|
+
env.problem('TRUST_PROXY must be a number of proxies, or their addresses, subnets or ranges, comma separated');
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return proxies;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** `10.0.0.1`, `10.0.0.0/8`, `fd00::/8`, or the name of a range. */
|
|
199
|
+
function isProxy(proxy: string): boolean {
|
|
200
|
+
const [address = '', bits, ...rest] = proxy.split('/');
|
|
201
|
+
const version = isIP(address);
|
|
202
|
+
|
|
203
|
+
if (version === 0) {
|
|
204
|
+
return PROXY_RANGES.includes(proxy);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const widest = version === 4 ? 32 : 128;
|
|
208
|
+
|
|
209
|
+
return rest.length === 0 && (bits === undefined || (/^\d+$/.test(bits) && Number(bits) <= widest));
|
|
210
|
+
}
|
|
211
|
+
{{/unless}}
|
|
212
|
+
{{/if}}
|
|
147
213
|
{{#if errors.sentry}}
|
|
148
214
|
|
|
149
215
|
/** An empty `SENTRY_DSN` is a choice, not a problem: the application starts and reports nothing. */
|
|
@@ -5,6 +5,8 @@ import { entities } from '{{alias.platform}}/database/schema{{alias.ext}}';
|
|
|
5
5
|
export default new DataSource({
|
|
6
6
|
type: 'postgres',
|
|
7
7
|
url: process.env['DATABASE_URL'] ?? '',
|
|
8
|
+
// One connection when `npm run db:generate` runs on the in-process database, which is one session.
|
|
9
|
+
poolSize: Number(process.env['DATABASE_POOL_SIZE'] ?? 10),
|
|
8
10
|
entities: [...entities],
|
|
9
11
|
migrations: ['dist/migrations/*.js'],
|
|
10
12
|
});
|
|
@@ -5,5 +5,9 @@ export default defineConfig({
|
|
|
5
5
|
schema: './prisma/schema',
|
|
6
6
|
migrations: { path: './prisma/migrations' },
|
|
7
7
|
// `generate` and `migrate diff` never connect: they work without a database.
|
|
8
|
-
|
|
8
|
+
// SHADOW_DATABASE_URL: `npm run db:generate` replays the migrations there when no DATABASE_URL names a server.
|
|
9
|
+
datasource: {
|
|
10
|
+
url: process.env['DATABASE_URL'] ?? 'postgresql://unused:unused@127.0.0.1:1/unused',
|
|
11
|
+
shadowDatabaseUrl: process.env['SHADOW_DATABASE_URL'],
|
|
12
|
+
},
|
|
9
13
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Server } from 'node:http';
|
|
2
2
|
import type { AddressInfo } from 'node:net';
|
|
3
3
|
import express from 'express';
|
|
4
|
-
import { mountExpress } from '@ddd-ts-kit/http/express';
|
|
4
|
+
import { mountExpress, problemErrorHandler } from '@ddd-ts-kit/http/express';
|
|
5
5
|
{{#if rpc.orpc}}
|
|
6
6
|
import { orpcRouter } from '@ddd-ts-kit/http/orpc';
|
|
7
7
|
import { RPCHandler } from '@orpc/server/node';
|
|
@@ -27,12 +27,14 @@ export interface HttpServer {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/** What the server needs of the application: its routes and what stands at its edge. */
|
|
30
|
-
type Served = Pick<Application, 'routes' | 'boundary'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
30
|
+
type Served = Pick<Application, 'routes' | 'boundary' | 'logger'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Serves, in this order: the readiness probe and the limit of each caller (with a Redis protocol
|
|
34
34
|
* server), the signed file links before any body parser (with a storage the application serves),
|
|
35
|
-
* the routes of the contexts, then the pages of the contract (with documentation on)
|
|
35
|
+
* the routes of the contexts, then the pages of the contract (with documentation on), and last the
|
|
36
|
+
* problem of a request refused before its route: a body that is not JSON or too large, a failed
|
|
37
|
+
* middleware.{{#if rpc.orpc}} The same
|
|
36
38
|
* routes are served as oRPC procedures under /rpc, for the typed client of the contract.{{/if}}{{#if rpc.trpc}} The same
|
|
37
39
|
* routes are served as tRPC procedures under /trpc, for the typed client of the contract.{{/if}}
|
|
38
40
|
*/
|
|
@@ -40,6 +42,8 @@ export async function startHttpServer(served: Served, config: AppConfig): Promis
|
|
|
40
42
|
const app = express();
|
|
41
43
|
|
|
42
44
|
app.disable('x-powered-by');
|
|
45
|
+
// TRUST_PROXY: which proxies name the caller in X-Forwarded-For, for `request.ip`; none by default.
|
|
46
|
+
app.set('trust proxy', config.trustProxy);
|
|
43
47
|
{{#if cache.rateLimit}}
|
|
44
48
|
answerReadiness(app, served);
|
|
45
49
|
limitEachCaller(app, served, config);
|
|
@@ -67,6 +71,8 @@ export async function startHttpServer(served: Served, config: AppConfig): Promis
|
|
|
67
71
|
{{#unless docs.any}}
|
|
68
72
|
mountExpress(app, served.routes, served.boundary);
|
|
69
73
|
{{/unless}}
|
|
74
|
+
// Instead of the final handler of Express, which answers HTML and writes the error, body included, to stderr.
|
|
75
|
+
app.use(problemErrorHandler({ logger: served.logger }));
|
|
70
76
|
|
|
71
77
|
const server = await listen(app, config.port);
|
|
72
78
|
|
|
@@ -76,11 +82,11 @@ export async function startHttpServer(served: Served, config: AppConfig): Promis
|
|
|
76
82
|
|
|
77
83
|
/** Whether the Redis protocol server answers, for the load balancer; never limited, since it is polled. */
|
|
78
84
|
function answerReadiness(app: express.Express, served: Served): void {
|
|
79
|
-
app.get(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
);
|
|
85
|
+
app.get('/health/ready', (_request, response, next) => {
|
|
86
|
+
void served.ready().then((ready) => {
|
|
87
|
+
response.status(ready ? 200 : 503).json({ status: ready ? 'up' : 'down' });
|
|
88
|
+
}, next);
|
|
89
|
+
});
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
/** One sliding window per caller address, before authentication costs anything. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Fastify{{#if cache.rateLimit}}, { type FastifyInstance }{{/if}}{{#unless cache.rateLimit}}{{#unless rpc.none}}, { type FastifyInstance }{{/unless}}{{/unless}} from 'fastify';
|
|
2
|
-
import { mountFastify } from '@ddd-ts-kit/http/fastify';
|
|
2
|
+
import { mountFastify, problemErrorHandler } from '@ddd-ts-kit/http/fastify';
|
|
3
3
|
{{#if rpc.orpc}}
|
|
4
4
|
import { orpcRouter } from '@ddd-ts-kit/http/orpc';
|
|
5
5
|
import { RPCHandler } from '@orpc/server/fastify';
|
|
@@ -25,7 +25,7 @@ export interface HttpServer {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** What the server needs of the application: its routes and what stands at its edge. */
|
|
28
|
-
type Served = Pick<Application, 'routes' | 'boundary'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
28
|
+
type Served = Pick<Application, 'routes' | 'boundary' | 'logger'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Serves, in this order: the readiness probe and the limit of each caller (with a Redis protocol
|
|
@@ -35,7 +35,11 @@ type Served = Pick<Application, 'routes' | 'boundary'{{#if cache.rateLimit}} | '
|
|
|
35
35
|
* as tRPC procedures under /trpc, for the typed client of the contract.{{/if}}
|
|
36
36
|
*/
|
|
37
37
|
export async function startHttpServer(served: Served, config: AppConfig): Promise<HttpServer> {
|
|
38
|
-
|
|
38
|
+
// TRUST_PROXY: which proxies name the caller in X-Forwarded-For, for `request.ip`; none by default.
|
|
39
|
+
const app = Fastify({ trustProxy: trustedProxies(config.trustProxy) });
|
|
40
|
+
|
|
41
|
+
// Before any route: a body Fastify refuses and a failed hook are answered as problems, not with their message.
|
|
42
|
+
app.setErrorHandler(problemErrorHandler({ logger: served.logger }));
|
|
39
43
|
|
|
40
44
|
{{#if cache.rateLimit}}
|
|
41
45
|
answerReadiness(app, served);
|
|
@@ -62,6 +66,15 @@ export async function startHttpServer(served: Served, config: AppConfig): Promis
|
|
|
62
66
|
|
|
63
67
|
return { port: address?.port ?? 0, close: () => app.close() };
|
|
64
68
|
}
|
|
69
|
+
|
|
70
|
+
/** TRUST_PROXY as Fastify takes it: a number of hops as the test of each hop. */
|
|
71
|
+
function trustedProxies(trustProxy: AppConfig['trustProxy']): boolean | string[] | ((address: string, hop: number) => boolean) {
|
|
72
|
+
if (typeof trustProxy === 'number') {
|
|
73
|
+
return (_address, hop) => hop < trustProxy;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return trustProxy === false ? false : [...trustProxy];
|
|
77
|
+
}
|
|
65
78
|
{{#if cache.rateLimit}}
|
|
66
79
|
|
|
67
80
|
/** Whether the Redis protocol server answers, for the load balancer; never limited, since it is polled. */
|
|
@@ -4,7 +4,7 @@ import { serve, type ServerType } from '@hono/node-server';
|
|
|
4
4
|
import { getConnInfo } from '@hono/node-server/conninfo';
|
|
5
5
|
{{/if}}
|
|
6
6
|
import { Hono } from 'hono';
|
|
7
|
-
import { mountHono } from '@ddd-ts-kit/http/hono';
|
|
7
|
+
import { mountHono, problemErrorHandler } from '@ddd-ts-kit/http/hono';
|
|
8
8
|
{{#if rpc.orpc}}
|
|
9
9
|
import { orpcRouter } from '@ddd-ts-kit/http/orpc';
|
|
10
10
|
import { RPCHandler } from '@orpc/server/fetch';
|
|
@@ -30,7 +30,7 @@ export interface HttpServer {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/** What the server needs of the application: its routes and what stands at its edge. */
|
|
33
|
-
type Served = Pick<Application, 'routes' | 'boundary'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
33
|
+
type Served = Pick<Application, 'routes' | 'boundary' | 'logger'{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Serves, in this order: the readiness probe and the limit of each caller (with a Redis protocol
|
|
@@ -42,6 +42,9 @@ type Served = Pick<Application, 'routes' | 'boundary'{{#if cache.rateLimit}} | '
|
|
|
42
42
|
export async function startHttpServer(served: Served, config: AppConfig): Promise<HttpServer> {
|
|
43
43
|
const app = new Hono();
|
|
44
44
|
|
|
45
|
+
// A failed middleware is answered as a problem, not as a text with the error written to stderr.
|
|
46
|
+
app.onError(problemErrorHandler({ logger: served.logger }));
|
|
47
|
+
|
|
45
48
|
{{#if cache.rateLimit}}
|
|
46
49
|
answerReadiness(app, served);
|
|
47
50
|
limitEachCaller(app, served, config);
|
|
@@ -77,7 +80,8 @@ function answerReadiness(app: Hono, served: Served): void {
|
|
|
77
80
|
/** One sliding window per caller address, before authentication costs anything. */
|
|
78
81
|
function limitEachCaller(app: Hono, served: Served, config: AppConfig): void {
|
|
79
82
|
app.use(async (context, next) => {
|
|
80
|
-
const
|
|
83
|
+
const forwardedFor = context.req.header('x-forwarded-for');
|
|
84
|
+
const address = callerAddress(getConnInfo(context).remote.address, forwardedFor, config.trustProxy);
|
|
81
85
|
const tooMany = await tooManyRequestsFor(served.rateLimiter, config.rateLimit, address);
|
|
82
86
|
|
|
83
87
|
if (tooMany === undefined) {
|
|
@@ -89,6 +93,21 @@ function limitEachCaller(app: Hono, served: Served, config: AppConfig): void {
|
|
|
89
93
|
return new Response(tooMany.body, { status: tooMany.status, headers: tooMany.headers });
|
|
90
94
|
});
|
|
91
95
|
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The address of the socket, or, behind `hops` trusted proxies (TRUST_PROXY), the one the farthest
|
|
99
|
+
* of them saw: X-Forwarded-For is read from the right, each proxy having added the one before it.
|
|
100
|
+
*/
|
|
101
|
+
function callerAddress(socket: string | undefined, forwardedFor: string | undefined, hops: number): string | undefined {
|
|
102
|
+
const forwarded = (forwardedFor ?? '')
|
|
103
|
+
.split(',')
|
|
104
|
+
.map((address) => address.trim())
|
|
105
|
+
.filter((address) => address !== '');
|
|
106
|
+
|
|
107
|
+
const chain = [socket, ...forwarded.reverse()];
|
|
108
|
+
|
|
109
|
+
return chain[Math.min(hops, chain.length - 1)];
|
|
110
|
+
}
|
|
92
111
|
{{/if}}
|
|
93
112
|
{{#if rpc.orpc}}
|
|
94
113
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import { {{#if rpc.orpc}}type IncomingMessage, {{/if}}{{#if rpc.trpc}}type RequestListener, {{/if}}Server{{#if rpc.orpc}}, type ServerResponse{{/if}} } from 'node:http';
|
|
3
3
|
import { NestFactory } from '@nestjs/core';
|
|
4
|
+
import type { NestExpressApplication } from '@nestjs/platform-express';
|
|
5
|
+
import { ProblemExceptionFilter } from '@ddd-ts-kit/http/nest';
|
|
4
6
|
{{#if rpc.orpc}}
|
|
5
7
|
import { orpcRouter } from '@ddd-ts-kit/http/orpc';
|
|
6
8
|
import { RPCHandler } from '@orpc/server/node';
|
|
@@ -27,13 +29,14 @@ export interface HttpServer {
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/** What the server needs of the application: its routes and what stands at its edge. */
|
|
30
|
-
type Served = Pick<Application, 'routes' | 'boundary'{{#if routes.nest}} | 'controllers'{{/if}}{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
32
|
+
type Served = Pick<Application, 'routes' | 'boundary' | 'logger'{{#if routes.nest}} | 'controllers'{{/if}}{{#if cache.rateLimit}} | 'rateLimiter' | 'ready'{{/if}}{{#if files.http}} | 'fileRoutes'{{/if}}>;
|
|
31
33
|
{{#if cache.rateLimit}}
|
|
32
34
|
|
|
33
35
|
/** The part of the incoming request and of its response the limiter and the probe need, whatever Nest runs on. */
|
|
34
36
|
interface Incoming {
|
|
35
37
|
readonly url?: string;
|
|
36
|
-
|
|
38
|
+
/** The caller as Express reads it, through the proxies TRUST_PROXY trusts. */
|
|
39
|
+
readonly ip?: string;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
interface Outgoing {
|
|
@@ -42,7 +45,7 @@ interface Outgoing {
|
|
|
42
45
|
end(body: string): void;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
|
-
type Middleware = (request: Incoming, response: Outgoing, next: () => void) => void;
|
|
48
|
+
type Middleware = (request: Incoming, response: Outgoing, next: (error?: unknown) => void) => void;
|
|
46
49
|
{{/if}}
|
|
47
50
|
|
|
48
51
|
/**
|
|
@@ -71,19 +74,28 @@ export async function startHttpServer(served: Served, config: AppConfig): Promis
|
|
|
71
74
|
{{/unless}}
|
|
72
75
|
|
|
73
76
|
{{#if routes.nest}}
|
|
74
|
-
const
|
|
77
|
+
const appModule = createAppModule(routes, served.boundary, served.controllers);
|
|
78
|
+
|
|
79
|
+
const app = await NestFactory.create<NestExpressApplication>(appModule, {
|
|
75
80
|
logger: ['error', 'warn'],
|
|
76
81
|
// Keeps the bytes of the body for a controller that declares `rawBody` (a signed webhook).
|
|
77
82
|
rawBody: true,
|
|
78
83
|
});
|
|
79
84
|
{{/if}}
|
|
80
85
|
{{#unless routes.nest}}
|
|
81
|
-
const
|
|
86
|
+
const appModule = createAppModule(routes, served.boundary);
|
|
87
|
+
|
|
88
|
+
const app = await NestFactory.create<NestExpressApplication>(appModule, {
|
|
82
89
|
logger: ['error', 'warn'],
|
|
83
90
|
rawBody: true,
|
|
84
91
|
});
|
|
85
92
|
{{/unless}}
|
|
86
93
|
|
|
94
|
+
// TRUST_PROXY: which proxies name the caller in X-Forwarded-For, for `request.ip`; none by default.
|
|
95
|
+
app.set('trust proxy', config.trustProxy);
|
|
96
|
+
// A body Nest refuses, a path no route serves and a failed middleware are answered as problems, not with a message.
|
|
97
|
+
app.useGlobalFilters(new ProblemExceptionFilter(app.getHttpAdapter(), { logger: served.logger }));
|
|
98
|
+
|
|
87
99
|
{{#if cache.rateLimit}}
|
|
88
100
|
app.use(answeringReadiness(served));
|
|
89
101
|
app.use(limitingEachCaller(served, config));
|
|
@@ -116,20 +128,20 @@ function answeringReadiness(served: Served): Middleware {
|
|
|
116
128
|
response
|
|
117
129
|
.writeHead(ready ? 200 : 503, { 'content-type': 'application/json' })
|
|
118
130
|
.end(JSON.stringify({ status: ready ? 'up' : 'down' }));
|
|
119
|
-
});
|
|
131
|
+
}, next);
|
|
120
132
|
};
|
|
121
133
|
}
|
|
122
134
|
|
|
123
135
|
/** One sliding window per caller address, before authentication costs anything. */
|
|
124
136
|
function limitingEachCaller(served: Served, config: AppConfig): Middleware {
|
|
125
137
|
return (request, response, next) => {
|
|
126
|
-
void tooManyRequestsFor(served.rateLimiter, config.rateLimit, request.
|
|
138
|
+
void tooManyRequestsFor(served.rateLimiter, config.rateLimit, request.ip).then((tooMany) => {
|
|
127
139
|
if (tooMany === undefined) {
|
|
128
140
|
next();
|
|
129
141
|
} else {
|
|
130
142
|
response.writeHead(tooMany.status, tooMany.headers).end(tooMany.body);
|
|
131
143
|
}
|
|
132
|
-
});
|
|
144
|
+
}, next);
|
|
133
145
|
};
|
|
134
146
|
}
|
|
135
147
|
{{/if}}
|
|
@@ -11,8 +11,8 @@ export interface TooManyRequests {
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Asked for every request before authentication costs anything: one sliding window per caller
|
|
14
|
-
* address. Answers nothing when the request may pass. Behind a proxy,
|
|
15
|
-
*
|
|
14
|
+
* address. Answers nothing when the request may pass. Behind a proxy, set `TRUST_PROXY`, or
|
|
15
|
+
* every caller shares the address of the proxy.
|
|
16
16
|
*/
|
|
17
17
|
export async function tooManyRequestsFor(
|
|
18
18
|
limiter: RateLimiter,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { BackgroundJob, BackgroundJobOptions } from '@ddd-ts-kit/kernel';
|
|
1
|
+
import type { BackgroundJob, BackgroundJobOptions, BackgroundJobPayloadSchema } from '@ddd-ts-kit/kernel';
|
|
2
2
|
|
|
3
|
-
/** A background job class: named by its static `jobName`, built from what its constructor takes
|
|
3
|
+
/** A background job class: named by its static `jobName`, built from what its constructor takes, its stored payload read with its static `payload`. */
|
|
4
4
|
export interface BackgroundJobClass<Deps extends readonly unknown[]> {
|
|
5
5
|
readonly jobName: string;
|
|
6
|
+
readonly payload: BackgroundJobPayloadSchema<unknown>;
|
|
6
7
|
new (...deps: Deps): BackgroundJob<unknown>;
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -129,6 +129,7 @@ function backgroundJobsOn(worker: QueueWorker, traced: TracedApplication): Backg
|
|
|
129
129
|
|
|
130
130
|
worker.register({
|
|
131
131
|
name,
|
|
132
|
+
payload: job.payload,
|
|
132
133
|
...(options === undefined ? {} : { options }),
|
|
133
134
|
run: traced.backgroundJob((payload, execution) => built.run(payload, execution), {
|
|
134
135
|
name,
|
|
@@ -6,7 +6,7 @@ paths:
|
|
|
6
6
|
|
|
7
7
|
# Application layer
|
|
8
8
|
|
|
9
|
-
- Imports `domain/`, `application/`, published languages, `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth` only (`layer/application-inward`): never `infrastructure/`, `presentation/`, a framework or a driver.
|
|
9
|
+
- Imports `domain/`, `application/`, published languages, `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth` only (`layer/application-inward`): never `infrastructure/`, `presentation/`, a framework or a driver. A background job, and no other file here, also imports `@ddd-ts-kit/validation` and the validation library of the stack, for the schema of its payload.
|
|
10
10
|
- One use case per folder, `commands/<use-case>/` or `queries/<use-case>/`: the message, its handler, a `*.result.ts` when the answer has a shape of its own. The handler has one public method, `execute` (`application/handler-shape`): it loads or builds, calls ONE intention method, `await repository.save(aggregate)`, and returns at most an identifier. Each binding is named after the concept it holds, `const invoice = await this.invoiceRepository.findById(command.invoiceId)`, `for (const reminder of dueReminders)`, never `target`, `data` or `item` (`naming/business-name`).
|
|
11
11
|
- Events leave with the save: never `pullEvents()`, never a `DomainEventDispatcher` here (`domain-events/dispatched-on-save`). A reaction is a class of `event-handlers/` or a publisher of `integration/publishers/`. It runs at the end of the unit of work, before the commit, and depends only on what the transaction covers (`domain-events/transactional-before-commit`): repositories, the integration event publisher, the command bus. An effect outside the database is a handler of the `after-commit` phase (`generate event-handler ... --phase after-commit`: at most once, never saves, sends a command) or, when it must not be lost, the handler of an integration event.
|
|
12
12
|
- Nothing here reads the event store: an event-sourced aggregate is loaded and saved through its repository port like any other (`event-sourcing/store-behind-repository`). A projection writes its read model and never a stream (`event-sourcing/projection-never-appends`); one fed by the store is declared `@Projection(name, { feed: 'event-store' })`.
|
|
@@ -27,7 +27,7 @@ paths:
|
|
|
27
27
|
- A dependency list names port classes, imported as values, in the order of the constructor: never an adapter or a fake (`ports/value-import`, `ports/no-concrete-dependency`).
|
|
28
28
|
{{/if}}
|
|
29
29
|
- A job (`scheduling/*.job.ts`) and an integration event handler (`integration/handlers/`) only build one command and send it as a system actor; both are safe to repeat (`scheduling/job-triggers-use-case`, `events/consumer-idempotent`).
|
|
30
|
-
- Work a use case hands to a worker is a background job (`background/*.background-job.ts`, `generate background-job ... --command <UseCase>`): enqueued through `JobQueue` in the unit of work of the command, run later as the actor that enqueued it, at least once, so it sends commands safe to repeat and a long one reports its progress and saves a checkpoint. A process that waits for events and has deadlines is a process manager (`processes/*.process.ts`, `generate process`): its steps decide from its state alone and answer commands and timeouts, never write an aggregate (`process/sends-commands-only`); an event handler runs each step through `ProcessRunner`.
|
|
30
|
+
- Work a use case hands to a worker is a background job (`background/*.background-job.ts`, `generate background-job ... --command <UseCase>`): enqueued through `JobQueue` in the unit of work of the command, run later as the actor that enqueued it, at least once, so it sends commands safe to repeat and a long one reports its progress and saves a checkpoint. Its static `payload` is the schema of what it works on, in the validation library of the project: the worker reads the stored payload with it before each run, and one that does not fit is dead with `INVALID_JOB_PAYLOAD`, never run. A payload changes by a new optional field, or by a new job name when its shape changes. A process that waits for events and has deadlines is a process manager (`processes/*.process.ts`, `generate process`): its steps decide from its state alone and answer commands and timeouts, never write an aggregate (`process/sends-commands-only`); an event handler runs each step through `ProcessRunner`.
|
|
31
31
|
{{#if files.any}}
|
|
32
32
|
- A file arrives in the command as a `FileUpload` of its area, which the bus stages before the transaction under a key of `FileKeys` (never a name or a path from the user) and scans; the handler records `upload.file`, its `StoredFile`, on the aggregate and calls `FileStaging.promoteOnCommit`, which moves it to its key with the commit. A direct upload is confirmed from the `PendingUpload` the aggregate kept, never from a key the client sends. The ports are named here, never a connector (`files/port-not-connector`); `npx ddd-ts-kit generate file-upload` writes the slice.
|
|
33
33
|
{{/if}}
|
|
@@ -2,7 +2,7 @@ import { IsString } from 'class-validator';
|
|
|
2
2
|
|
|
3
3
|
export class {{event.pascal}}V{{event.version}}Payload {
|
|
4
4
|
@IsString()
|
|
5
|
-
{{aggregate.camel}}Id
|
|
5
|
+
declare {{aggregate.camel}}Id: string;
|
|
6
6
|
|
|
7
|
-
// TODO(domain): add what downstream contexts need to know about "{{event.words}}", as decorated primitive fields; this is a public contract: inside version {{event.version}} a field can be added, never renamed or removed.
|
|
7
|
+
// TODO(domain): add what downstream contexts need to know about "{{event.words}}", as decorated primitive fields `declare`d without an initial value, so that a payload without one is refused; this is a public contract: inside version {{event.version}} a field can be added, never renamed or removed.
|
|
8
8
|
}
|
|
@@ -1,40 +1,35 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
|
-
import {
|
|
2
|
+
import { RecordingCommandBus } from '@ddd-ts-kit/kernel/testing';
|
|
3
3
|
{{#if upstream.known}}
|
|
4
4
|
import { {{upstream.definition}} } from '{{alias.contexts}}/{{upstream.kebab}}/published-language{{alias.index}}';
|
|
5
5
|
{{/if}}
|
|
6
6
|
import { {{name.pascal}}IntegrationHandler } from '{{alias.context}}/application/integration/handlers/{{name.kebab}}.integration-handler{{alias.ext}}';
|
|
7
7
|
|
|
8
|
+
const meta = { id: 'event-1', occurredAt: '2026-01-01T00:00:00.000Z' };
|
|
9
|
+
|
|
8
10
|
describe('When {{upstream.kebab}} publishes {{upstream.eventName}}', () => {
|
|
9
|
-
it('listens to the type {{upstream.kebab}} publishes', () => {
|
|
10
|
-
const handler = new {{name.pascal}}IntegrationHandler(new
|
|
11
|
+
it('listens to the type {{upstream.kebab}} publishes, as a system actor named after its consumer name', () => {
|
|
12
|
+
const handler = new {{name.pascal}}IntegrationHandler(new RecordingCommandBus());
|
|
11
13
|
|
|
12
|
-
expect(handler).toBeInstanceOf({{name.pascal}}IntegrationHandler);
|
|
13
14
|
expect({{name.pascal}}IntegrationHandler.eventType).toBe('{{upstream.eventName}}');
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('acts as a system actor named after its consumer name', () => {
|
|
17
|
-
const handler = new {{name.pascal}}IntegrationHandler(new InMemoryCommandBus());
|
|
18
|
-
|
|
19
15
|
expect(handler.actor).toMatchObject({ id: 'system:{{context.kebab}}.{{name.kebab}}', type: 'system' });
|
|
20
16
|
});
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
18
|
+
// TODO(domain): replace this test by the entries below once what {{context.kebab}} does is written: each named after it, of the same shape, the event given (every field {{upstream.kebab}} declares) and the command built with `handler.actor` asserted, `expect(commands.executed).toEqual([new ...Command(handler.actor, ...)])`.
|
|
19
|
+
it('receives the event and sends no command until what {{context.kebab}} does is written', async () => {
|
|
20
|
+
const commands = new RecordingCommandBus();
|
|
25
21
|
{{#if upstream.known}}
|
|
26
|
-
// TODO(domain): give the payload every field {{upstream.kebab}} declares, register the command the handler executes and assert what {{context.kebab}} did.
|
|
27
22
|
const event = {{upstream.definition}}.create({ {{upstream.payloadKey}}: '{{upstream.payloadSample}}' }, meta);
|
|
28
23
|
{{/if}}
|
|
29
24
|
{{#unless upstream.known}}
|
|
30
|
-
// TODO(domain): give the payload what {{upstream.kebab}} really sends, register the command the handler executes and assert what {{context.kebab}} did.
|
|
31
25
|
const event = { ...meta, type: '{{upstream.eventName}}', version: {{upstream.version}}, payload: {} };
|
|
32
26
|
{{/unless}}
|
|
33
27
|
|
|
34
|
-
await
|
|
28
|
+
await new {{name.pascal}}IntegrationHandler(commands).handle(event);
|
|
29
|
+
|
|
30
|
+
expect(commands.executed).toEqual([]);
|
|
35
31
|
});
|
|
36
32
|
|
|
37
|
-
// TODO(domain): replace each entry below by a test that hands the handler an event built from the upstream declaration and asserts what {{context.kebab}} did, through a real command bus with the handler and its fakes.
|
|
38
33
|
it.todo('executes the command that follows the upstream fact');
|
|
39
|
-
it.todo('
|
|
34
|
+
it.todo('executes a command that is safe to repeat when the same event is delivered twice');
|
|
40
35
|
});
|