ddd-ts-kit 0.99.0 → 0.100.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 +215 -0
- package/README.fr.md +241 -59
- package/README.md +221 -60
- 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 +17 -0
- package/dist/check/fixtures/privacy-fixtures.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/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/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/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/kind-help.d.ts +19 -0
- package/dist/generate/kind-help.d.ts.map +1 -0
- package/dist/generate/kind-help.js +18 -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/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/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 +17 -10
- 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/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 +6 -1
- 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 +6 -2
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- 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/find-event-declaration.d.ts +4 -1
- package/dist/generate/kinds/find-event-declaration.d.ts.map +1 -1
- package/dist/generate/kinds/find-event-declaration.js +16 -7
- package/dist/generate/kinds/find-event-declaration.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-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +4 -3
- 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 +13 -2
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.js +2 -2
- 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/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/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 +4 -2
- 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 +4 -2
- package/dist/generate/kinds/projection-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/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 +89 -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 +36 -13
- 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 +21 -0
- package/dist/generate/kinds/route/spec-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/spec-vars.js +61 -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 +2 -1
- package/dist/generate/kinds/route-group-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/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 +27 -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 +35 -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/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 +10 -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-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 +11 -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/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.body.ts.tpl +9 -0
- package/templates/route/route.class-validator.ts.tpl +17 -3
- package/templates/route/route.spec.ts.tpl +10 -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/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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload-shape.js","sourceRoot":"","sources":["../../../../src/generate/kinds/background/payload-shape.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,GAAwB,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AACjF,MAAM,IAAI,GAAG,+DAA+D,CAAC;AAC7E,MAAM,MAAM,GAAG,yBAAyB,CAAC;AAEzC,kIAAkI;AAClI,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IAExC,IAAI,IAAI,KAAK,SAAS,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACpC,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAE1E,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;IACzF,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAY;IACpC,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,WAAW,CAAC;SACtC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Name } from '../../../naming/index.js';
|
|
2
|
+
import type { PayloadField } from './payload-field.js';
|
|
3
|
+
/** What the schema of a payload says around its fields. */
|
|
4
|
+
export declare const payloadTexts: {
|
|
5
|
+
/** Above the type of the payload. */
|
|
6
|
+
typeComment: (name: Name) => string;
|
|
7
|
+
/** In the schema of a payload the generator knows no field of. */
|
|
8
|
+
emptyTodo: (name: Name) => string;
|
|
9
|
+
/** Above a field whose type the generator writes no check for. */
|
|
10
|
+
unreadTodo: (field: PayloadField, type: string) => string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=payload-texts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload-texts.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/background/payload-texts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,2DAA2D;AAC3D,eAAO,MAAM,YAAY;IACvB,qCAAqC;IACrC,WAAW,SAAS,IAAI,KAAG,MAAM;IAGjC,kEAAkE;IAClE,SAAS,SAAS,IAAI,KAAG,MAAM;IAG/B,kEAAkE;IAClE,UAAU,UAAU,YAAY,QAAQ,MAAM,KAAG,MAAM;CAExD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** What the schema of a payload says around its fields. */
|
|
2
|
+
export const payloadTexts = {
|
|
3
|
+
/** Above the type of the payload. */
|
|
4
|
+
typeComment: (name) => `/** What "${name.words}" works on, as plain JSON: a date travels as its ISO text. */`,
|
|
5
|
+
/** In the schema of a payload the generator knows no field of. */
|
|
6
|
+
emptyTodo: (name) => `// TODO(domain): declare what "${name.words}" works on (identifiers, a period, never an aggregate), as plain JSON: a date travels as its ISO text.`,
|
|
7
|
+
/** Above a field whose type the generator writes no check for. */
|
|
8
|
+
unreadTodo: (field, type) => `// TODO(domain): check \`${field.name}\` (${type}) in the schema: the payload a queue kept is read with it before each run.`,
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=payload-texts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload-texts.js","sourceRoot":"","sources":["../../../../src/generate/kinds/background/payload-texts.ts"],"names":[],"mappings":"AAGA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,qCAAqC;IACrC,WAAW,EAAE,CAAC,IAAU,EAAU,EAAE,CAClC,aAAa,IAAI,CAAC,KAAK,+DAA+D;IAExF,kEAAkE;IAClE,SAAS,EAAE,CAAC,IAAU,EAAU,EAAE,CAChC,kCAAkC,IAAI,CAAC,KAAK,wGAAwG;IAEtJ,kEAAkE;IAClE,UAAU,EAAE,CAAC,KAAmB,EAAE,IAAY,EAAU,EAAE,CACxD,4BAA4B,KAAK,CAAC,IAAI,OAAO,IAAI,4EAA4E;CAChI,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PayloadOf } from './payload-of.js';
|
|
2
|
+
import type { PayloadSchema } from './payload-schema.js';
|
|
3
|
+
/** A Standard Schema written by hand, or, with no validation library, the schema of the kernel. */
|
|
4
|
+
type Form = 'standard-schema' | 'kernel';
|
|
5
|
+
/**
|
|
6
|
+
* Each field checked by hand, the type of the payload declared next to it: one refusal per
|
|
7
|
+
* field in a list, which the schema runs, so that no function grows with the payload.
|
|
8
|
+
*/
|
|
9
|
+
export declare function writtenPayloadSchema(form: Form, payload: PayloadOf): PayloadSchema;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=written-payload-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"written-payload-schema.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/background/written-payload-schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAStD,mGAAmG;AACnG,KAAK,IAAI,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAiBzC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,GAAG,aAAa,CAmBlF"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { LINE_WIDTH } from '../../../layout/index.js';
|
|
2
|
+
import { payloadTexts } from './payload-texts.js';
|
|
3
|
+
const { emptyTodo, typeComment, unreadTodo } = payloadTexts;
|
|
4
|
+
const ARTICLES = {
|
|
5
|
+
string: 'A string',
|
|
6
|
+
number: 'A number',
|
|
7
|
+
boolean: 'A boolean',
|
|
8
|
+
};
|
|
9
|
+
const LISTS = {
|
|
10
|
+
string: 'isListOfStrings',
|
|
11
|
+
number: 'isListOfNumbers',
|
|
12
|
+
boolean: 'isListOfBooleans',
|
|
13
|
+
};
|
|
14
|
+
/** A payload that is no object (a text, a number, a list) is refused before any field is read. */
|
|
15
|
+
const NO_OBJECT = "typeof input !== 'object' || input === null || Array.isArray(input)";
|
|
16
|
+
/**
|
|
17
|
+
* Each field checked by hand, the type of the payload declared next to it: one refusal per
|
|
18
|
+
* field in a list, which the schema runs, so that no function grows with the payload.
|
|
19
|
+
*/
|
|
20
|
+
export function writtenPayloadSchema(form, payload) {
|
|
21
|
+
const empty = payload.fields.length === 0;
|
|
22
|
+
return {
|
|
23
|
+
libraryImports: [],
|
|
24
|
+
kernelNames: form === 'kernel' ? ['err', 'ok', 'type BackgroundJobPayloadSchema'] : [],
|
|
25
|
+
kitImports: form === 'kernel'
|
|
26
|
+
? []
|
|
27
|
+
: ["import { standardSchema, type StandardSchemaV1 } from '@ddd-ts-kit/validation/standard-schema';"],
|
|
28
|
+
declaration: [
|
|
29
|
+
...typeOf(payload),
|
|
30
|
+
'',
|
|
31
|
+
...(empty ? [] : [...refusalsOf(payload.fields), '']),
|
|
32
|
+
...(form === 'kernel' ? kernelSchema(payload) : standard(payload)),
|
|
33
|
+
].join('\n'),
|
|
34
|
+
schema: 'payloadSchema',
|
|
35
|
+
helpers: empty ? '' : helpersOf(payload),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function typeOf({ name, fields }) {
|
|
39
|
+
if (fields.length === 0) {
|
|
40
|
+
return [emptyTodo(name), `export type ${name.pascal}Payload = Readonly<Record<string, never>>;`];
|
|
41
|
+
}
|
|
42
|
+
return [typeComment(name), `export interface ${name.pascal}Payload {`, ...fields.flatMap(declarationOf), '}'];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A field the generator writes no check for is let through as `unknown`, as `z.unknown()` and
|
|
46
|
+
* `Allow()` let it through: the type checker stops at the command it is handed to.
|
|
47
|
+
*/
|
|
48
|
+
function declarationOf(field) {
|
|
49
|
+
if (field.shape.kind !== 'unread') {
|
|
50
|
+
return [field.declaration];
|
|
51
|
+
}
|
|
52
|
+
return [` ${unreadTodo(field, field.shape.type)}`, ` readonly ${field.name}${field.optional ? '?' : ''}: unknown;`];
|
|
53
|
+
}
|
|
54
|
+
function refusalsOf(fields) {
|
|
55
|
+
return [
|
|
56
|
+
'interface Refusal {',
|
|
57
|
+
' readonly path: string;',
|
|
58
|
+
' readonly message: string;',
|
|
59
|
+
' readonly refuses: (sent: Readonly<Record<string, unknown>>) => boolean;',
|
|
60
|
+
'}',
|
|
61
|
+
'',
|
|
62
|
+
...refusalListOf(fields.filter(isChecked)),
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
function refusalListOf(checked) {
|
|
66
|
+
if (checked.length === 0) {
|
|
67
|
+
return ['const refusals: readonly Refusal[] = [];'];
|
|
68
|
+
}
|
|
69
|
+
return ['const refusals: readonly Refusal[] = [', ...checked.flatMap(refusalOf), '];'];
|
|
70
|
+
}
|
|
71
|
+
function refusalOf(field) {
|
|
72
|
+
const { test, message } = refusedBy(field);
|
|
73
|
+
const parts = [`path: '${field.name}'`, `message: '${message}'`, `refuses: (sent) => ${test}`];
|
|
74
|
+
const line = ` { ${parts.join(', ')} },`;
|
|
75
|
+
return [...(line.length <= LINE_WIDTH ? [line] : [' {', ...parts.map((part) => ` ${part},`), ' },'])];
|
|
76
|
+
}
|
|
77
|
+
function refusedBy(field) {
|
|
78
|
+
const sent = `sent.${field.name}`;
|
|
79
|
+
const { test, message } = testOf(field.shape, sent);
|
|
80
|
+
return { test: field.optional ? `${sent} !== undefined && ${grouped(test)}` : test, message };
|
|
81
|
+
}
|
|
82
|
+
function testOf(shape, sent) {
|
|
83
|
+
switch (shape.kind) {
|
|
84
|
+
case 'instant':
|
|
85
|
+
return {
|
|
86
|
+
test: `typeof ${sent} !== 'string' || Number.isNaN(Date.parse(${sent}))`,
|
|
87
|
+
message: 'An instant is expected.',
|
|
88
|
+
};
|
|
89
|
+
case 'list':
|
|
90
|
+
return { test: `!${LISTS[shape.of]}(${sent})`, message: `A list of ${shape.of}s is expected.` };
|
|
91
|
+
case 'literals':
|
|
92
|
+
return {
|
|
93
|
+
test: shape.values.map((value) => `${sent} !== '${value}'`).join(' && '),
|
|
94
|
+
message: `One of ${shape.values.join(', ')} is expected.`,
|
|
95
|
+
};
|
|
96
|
+
default:
|
|
97
|
+
return { test: `typeof ${sent} !== '${shape.kind}'`, message: `${ARTICLES[shape.kind]} is expected.` };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function isChecked(field) {
|
|
101
|
+
return field.shape.kind !== 'unread';
|
|
102
|
+
}
|
|
103
|
+
function grouped(test) {
|
|
104
|
+
return /&&|\|\|/.test(test) ? `(${test})` : test;
|
|
105
|
+
}
|
|
106
|
+
function standard(payload) {
|
|
107
|
+
const type = `${payload.name.pascal}Payload`;
|
|
108
|
+
return [
|
|
109
|
+
`const payloadShape: StandardSchemaV1<unknown, ${type}> = {`,
|
|
110
|
+
" '~standard': {",
|
|
111
|
+
' version: 1,',
|
|
112
|
+
` vendor: '${payload.vendor}',`,
|
|
113
|
+
...(payload.fields.length === 0 ? standardOfNothing() : standardOfFields()),
|
|
114
|
+
' },',
|
|
115
|
+
'};',
|
|
116
|
+
'',
|
|
117
|
+
'const payloadSchema = standardSchema(payloadShape);',
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
function standardOfNothing() {
|
|
121
|
+
return [
|
|
122
|
+
' validate: (value) =>',
|
|
123
|
+
" typeof value === 'object' && value !== null && !Array.isArray(value)",
|
|
124
|
+
' ? { value: {} }',
|
|
125
|
+
" : { issues: [{ message: 'An object is expected.' }] },",
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
function standardOfFields() {
|
|
129
|
+
return [
|
|
130
|
+
' validate: (input) => {',
|
|
131
|
+
` if (${NO_OBJECT}) {`,
|
|
132
|
+
" return { issues: [{ message: 'An object is expected.' }] };",
|
|
133
|
+
' }',
|
|
134
|
+
'',
|
|
135
|
+
' const sent: Readonly<Record<string, unknown>> = { ...input };',
|
|
136
|
+
' const refused = refusals.filter((refusal) => refusal.refuses(sent));',
|
|
137
|
+
'',
|
|
138
|
+
' return fits(sent, refused)',
|
|
139
|
+
' ? { value: sent }',
|
|
140
|
+
' : { issues: refused.map(({ path, message }) => ({ message, path: [path] })) };',
|
|
141
|
+
' },',
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
function kernelSchema(payload) {
|
|
145
|
+
const type = `${payload.name.pascal}Payload`;
|
|
146
|
+
return [
|
|
147
|
+
`const payloadSchema: BackgroundJobPayloadSchema<${type}> = {`,
|
|
148
|
+
...(payload.fields.length === 0 ? kernelOfNothing() : kernelOfFields()),
|
|
149
|
+
'};',
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
function kernelOfNothing() {
|
|
153
|
+
return [
|
|
154
|
+
' parse: (input) =>',
|
|
155
|
+
" typeof input === 'object' && input !== null && !Array.isArray(input)",
|
|
156
|
+
' ? ok({})',
|
|
157
|
+
" : err([{ path: '', code: 'invalid_type', message: 'An object is expected.' }]),",
|
|
158
|
+
];
|
|
159
|
+
}
|
|
160
|
+
function kernelOfFields() {
|
|
161
|
+
return [
|
|
162
|
+
' parse(input) {',
|
|
163
|
+
` if (${NO_OBJECT}) {`,
|
|
164
|
+
" return err([{ path: '', code: 'invalid_type', message: 'An object is expected.' }]);",
|
|
165
|
+
' }',
|
|
166
|
+
'',
|
|
167
|
+
' const sent: Readonly<Record<string, unknown>> = { ...input };',
|
|
168
|
+
' const refused = refusals.filter((refusal) => refusal.refuses(sent));',
|
|
169
|
+
'',
|
|
170
|
+
' return fits(sent, refused)',
|
|
171
|
+
' ? ok(sent)',
|
|
172
|
+
" : err(refused.map(({ path, message }) => ({ path, code: 'invalid_type', message })));",
|
|
173
|
+
' },',
|
|
174
|
+
];
|
|
175
|
+
}
|
|
176
|
+
/** Below the class: the guard the schema answers with, then the checks of the lists. */
|
|
177
|
+
function helpersOf({ name, fields }) {
|
|
178
|
+
const lists = [...new Set(fields.flatMap(({ shape }) => (shape.kind === 'list' ? [shape.of] : [])))].sort();
|
|
179
|
+
const fitting = [
|
|
180
|
+
`function fits(sent: object, refused: readonly Refusal[]): sent is ${name.pascal}Payload {`,
|
|
181
|
+
' return refused.length === 0;',
|
|
182
|
+
'}',
|
|
183
|
+
].join('\n');
|
|
184
|
+
return [fitting, ...lists.map(listGuard)].join('\n\n');
|
|
185
|
+
}
|
|
186
|
+
function listGuard(kind) {
|
|
187
|
+
return [
|
|
188
|
+
`function ${LISTS[kind]}(value: unknown): value is ${kind}[] {`,
|
|
189
|
+
` return Array.isArray(value) && value.every((entry) => typeof entry === '${kind}');`,
|
|
190
|
+
'}',
|
|
191
|
+
].join('\n');
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=written-payload-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"written-payload-schema.js","sourceRoot":"","sources":["../../../../src/generate/kinds/background/written-payload-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC;AAQ5D,MAAM,QAAQ,GAA4C;IACxD,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,WAAW;CACrB,CAAC;AAEF,MAAM,KAAK,GAA4C;IACrD,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,kBAAkB;CAC5B,CAAC;AAEF,kGAAkG;AAClG,MAAM,SAAS,GAAG,qEAAqE,CAAC;AAExF;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAAkB;IACjE,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;IAE1C,OAAO;QACL,cAAc,EAAE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AC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Name } from '../../naming/index.js';
|
|
2
|
+
import { type EventNames } from '../event-names.js';
|
|
3
|
+
import type { Scope } from '../scope.js';
|
|
4
|
+
/**
|
|
5
|
+
* The names of the event an aggregate is born with, from the fact `--birth` gives in business
|
|
6
|
+
* words: `Issued`, `Invoice Issued` and `InvoiceIssued` all name `InvoiceIssued` of `Invoice`. The
|
|
7
|
+
* words of the aggregate the fact starts with are its subject, not the fact; the rest is judged as
|
|
8
|
+
* the fact of any domain event (past tense, glossary).
|
|
9
|
+
*/
|
|
10
|
+
export declare function birthNames(scope: Scope, aggregate: Name, input: string): EventNames;
|
|
11
|
+
//# sourceMappingURL=birth-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-names.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/birth-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAInF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { parseConceptName, toName } from '../../naming/index.js';
|
|
2
|
+
import { eventNames } from '../event-names.js';
|
|
3
|
+
/**
|
|
4
|
+
* The names of the event an aggregate is born with, from the fact `--birth` gives in business
|
|
5
|
+
* words: `Issued`, `Invoice Issued` and `InvoiceIssued` all name `InvoiceIssued` of `Invoice`. The
|
|
6
|
+
* words of the aggregate the fact starts with are its subject, not the fact; the rest is judged as
|
|
7
|
+
* the fact of any domain event (past tense, glossary).
|
|
8
|
+
*/
|
|
9
|
+
export function birthNames(scope, aggregate, input) {
|
|
10
|
+
const typed = parseConceptName(input, 'fact', { strip: ['event'] });
|
|
11
|
+
return eventNames(scope, aggregate.pascal, withoutSubject(typed, aggregate).pascal);
|
|
12
|
+
}
|
|
13
|
+
function withoutSubject(fact, aggregate) {
|
|
14
|
+
const subject = `${aggregate.words} `;
|
|
15
|
+
return fact.words.startsWith(subject) ? toName(fact.words.slice(subject.length)) : fact;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=birth-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-names.js","sourceRoot":"","sources":["../../../src/generate/kinds/birth-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAa,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,KAAY,EAAE,SAAe,EAAE,KAAa;IACrE,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEpE,OAAO,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,cAAc,CAAC,IAAU,EAAE,SAAe;IACjD,MAAM,OAAO,GAAG,GAAG,SAAS,CAAC,KAAK,GAAG,CAAC;IAEtC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Name } from '../../naming/index.js';
|
|
2
|
+
import type { Scope } from '../scope.js';
|
|
3
|
+
import type { Birth } from './birth.js';
|
|
4
|
+
/** The birth read from an existing aggregate: the event it records, none, or why it cannot be read. */
|
|
5
|
+
export type ReadBirth = {
|
|
6
|
+
readonly birth: Birth | undefined;
|
|
7
|
+
} | {
|
|
8
|
+
readonly unreadable: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The birth of an existing aggregate, read from its `create` as `generate aggregate --birth` wrote
|
|
12
|
+
* it: the event it records, named after the aggregate and its fact. Unreadable when the aggregate
|
|
13
|
+
* has no `create`, or records there an event named otherwise.
|
|
14
|
+
*/
|
|
15
|
+
export declare function birthOf(scope: Scope, aggregate: Name): ReadBirth;
|
|
16
|
+
//# sourceMappingURL=birth-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-of.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/birth-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMrC,uGAAuG;AACvG,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,GAAG,SAAS,CAmBhE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { toName } from '../../naming/index.js';
|
|
2
|
+
import { factoryOf } from './factory-of.js';
|
|
3
|
+
/** The event `create` records, whatever it is given: `created.record(new InvoiceIssued(id, now, customerId))`. */
|
|
4
|
+
const RECORDED = /\.record\(new ([A-Z][A-Za-z0-9]*)\(/;
|
|
5
|
+
/**
|
|
6
|
+
* The birth of an existing aggregate, read from its `create` as `generate aggregate --birth` wrote
|
|
7
|
+
* it: the event it records, named after the aggregate and its fact. Unreadable when the aggregate
|
|
8
|
+
* has no `create`, or records there an event named otherwise.
|
|
9
|
+
*/
|
|
10
|
+
export function birthOf(scope, aggregate) {
|
|
11
|
+
const file = `${scope.dir}/domain/aggregates/${aggregate.kebab}.aggregate.ts`;
|
|
12
|
+
const factory = factoryOf(scope.ws.read(file) ?? '');
|
|
13
|
+
if (factory === undefined) {
|
|
14
|
+
return { unreadable: `${file} has no \`static create\`, which the builder calls` };
|
|
15
|
+
}
|
|
16
|
+
const event = RECORDED.exec(factory)?.[1];
|
|
17
|
+
if (event === undefined) {
|
|
18
|
+
return { birth: undefined };
|
|
19
|
+
}
|
|
20
|
+
return event.startsWith(aggregate.pascal) && event !== aggregate.pascal
|
|
21
|
+
? { birth: { event: toName(event), fact: toName(event.slice(aggregate.pascal.length)) } }
|
|
22
|
+
: {
|
|
23
|
+
unreadable: `\`create\` of ${aggregate.pascal} records ${event}, which is not named ${aggregate.pascal}<Fact>`,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=birth-of.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-of.js","sourceRoot":"","sources":["../../../src/generate/kinds/birth-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,cAAc,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,kHAAkH;AAClH,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAKvD;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,KAAY,EAAE,SAAe;IACnD,MAAM,IAAI,GAAG,GAAG,KAAK,CAAC,GAAG,sBAAsB,SAAS,CAAC,KAAK,eAAe,CAAC;IAC9E,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAErD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,oDAAoD,EAAE,CAAC;IACrF,CAAC;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE1C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,KAAK,SAAS,CAAC,MAAM;QACrE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE;QACzF,CAAC,CAAC;YACE,UAAU,EAAE,iBAAiB,SAAS,CAAC,MAAM,YAAY,KAAK,wBAAwB,SAAS,CAAC,MAAM,QAAQ;SAC/G,CAAC;AACR,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Scope } from '../scope.js';
|
|
2
|
+
/**
|
|
3
|
+
* The spans the birth of the aggregate a handler creates leaves after its save, as the trace of
|
|
4
|
+
* the request shows them: `unit-of-work before-commit`, then `domain-event <name>`. Empty when the
|
|
5
|
+
* handler creates nothing or the aggregate records no birth. The reactions to that event are the
|
|
6
|
+
* team's to add: a note names the files that already react to it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function birthSpan(scope: Scope, handler: string): string;
|
|
9
|
+
//# sourceMappingURL=birth-span.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-span.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/birth-span.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAQtC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAiB/D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { eventName, toName } from '../../naming/index.js';
|
|
2
|
+
import { filesUnder } from '../files-under.js';
|
|
3
|
+
import { birthOf } from './birth-of.js';
|
|
4
|
+
/** The aggregate a handler gives birth to: `Invoice.create(`. */
|
|
5
|
+
const CREATED = /\b([A-Z][A-Za-z0-9]*)\.create\(/;
|
|
6
|
+
const DECLARED_NAME = /NamedDomainEvent\('([^']+)'\)/;
|
|
7
|
+
/**
|
|
8
|
+
* The spans the birth of the aggregate a handler creates leaves after its save, as the trace of
|
|
9
|
+
* the request shows them: `unit-of-work before-commit`, then `domain-event <name>`. Empty when the
|
|
10
|
+
* handler creates nothing or the aggregate records no birth. The reactions to that event are the
|
|
11
|
+
* team's to add: a note names the files that already react to it.
|
|
12
|
+
*/
|
|
13
|
+
export function birthSpan(scope, handler) {
|
|
14
|
+
const created = CREATED.exec(handler)?.[1];
|
|
15
|
+
if (created === undefined) {
|
|
16
|
+
return '';
|
|
17
|
+
}
|
|
18
|
+
const aggregate = toName(created);
|
|
19
|
+
const read = birthOf(scope, aggregate);
|
|
20
|
+
if ('unreadable' in read || read.birth === undefined) {
|
|
21
|
+
return '';
|
|
22
|
+
}
|
|
23
|
+
noteReactions(scope, read.birth);
|
|
24
|
+
return `, { name: 'unit-of-work before-commit', children: [{ name: 'domain-event ${nameOf(scope, aggregate, read.birth)}' }] }`;
|
|
25
|
+
}
|
|
26
|
+
/** The name the event declares, else the one the generator gives it. */
|
|
27
|
+
function nameOf(scope, aggregate, birth) {
|
|
28
|
+
const event = scope.ws.read(`${scope.dir}/domain/events/${birth.event.kebab}.event.ts`) ?? '';
|
|
29
|
+
return DECLARED_NAME.exec(event)?.[1] ?? eventName(scope.context, aggregate, birth.fact);
|
|
30
|
+
}
|
|
31
|
+
function noteReactions(scope, birth) {
|
|
32
|
+
const application = `${scope.dir}/application`;
|
|
33
|
+
const reacting = filesUnder(scope.ws, application).filter((file) => !file.includes('/commands/') &&
|
|
34
|
+
new RegExp(`\\b${birth.event.pascal}\\b`).test(scope.ws.read(`${application}/${file}`) ?? ''));
|
|
35
|
+
if (reacting.length > 0) {
|
|
36
|
+
scope.ws.note(`The trace the end-to-end spec expects stops at \`domain-event\` of ${birth.event.pascal}: add under it the spans of what reacts to it (${reacting.join(', ')}), \`handler <Class>\`, then \`outbox append <type>\` for a publisher.`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=birth-span.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-span.js","sourceRoot":"","sources":["../../../src/generate/kinds/birth-span.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAa,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,iEAAiE;AACjE,MAAM,OAAO,GAAG,iCAAiC,CAAC;AAClD,MAAM,aAAa,GAAG,+BAA+B,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,KAAY,EAAE,OAAe;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE3C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;I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AsE,KAAK,CAAC,KAAK,CAAC,MAAM,kDAAkD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,wEAAwE,CACtO,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RenderContext } from '../../templating/index.js';
|
|
2
|
+
import type { Birth } from './birth.js';
|
|
3
|
+
/**
|
|
4
|
+
* What the templates of an aggregate, its builder and its spec read of its birth: `{{#if birth.named}}`,
|
|
5
|
+
* the event `{{birth.pascal}}` and the instant `{{birth.instant}}`, named after the fact (`issuedAt`).
|
|
6
|
+
*/
|
|
7
|
+
export declare function birthVars(birth: Birth | undefined): RenderContext;
|
|
8
|
+
//# sourceMappingURL=birth-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-vars.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/birth-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,aAAa,CAIjE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { named } from '../named.js';
|
|
2
|
+
import { instantOf } from './instant-of.js';
|
|
3
|
+
/**
|
|
4
|
+
* What the templates of an aggregate, its builder and its spec read of its birth: `{{#if birth.named}}`,
|
|
5
|
+
* the event `{{birth.pascal}}` and the instant `{{birth.instant}}`, named after the fact (`issuedAt`).
|
|
6
|
+
*/
|
|
7
|
+
export function birthVars(birth) {
|
|
8
|
+
return birth === undefined
|
|
9
|
+
? { named: false }
|
|
10
|
+
: { ...named(birth.event), named: true, instant: instantOf(birth.fact) };
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=birth-vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth-vars.js","sourceRoot":"","sources":["../../../src/generate/kinds/birth-vars.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAwB;IAChD,OAAO,KAAK,KAAK,SAAS;QACxB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE;QAClB,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/birth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,6FAA6F;AAC7F,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth.js","sourceRoot":"","sources":["../../../src/generate/kinds/birth.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-kind.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/builder-kind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder-kind.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/builder-kind.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAiBpC,eAAO,MAAM,WAAW,EAAE,IAuBzB,CAAC"}
|
|
@@ -2,21 +2,60 @@ import { emit } from '../emit.js';
|
|
|
2
2
|
import { named } from '../named.js';
|
|
3
3
|
import { openScope } from '../open-scope.js';
|
|
4
4
|
import { vars } from '../vars.js';
|
|
5
|
+
import { birthOf } from './birth-of.js';
|
|
6
|
+
import { birthVars } from './birth-vars.js';
|
|
5
7
|
import { existingAggregate } from './existing-aggregate.js';
|
|
8
|
+
import { factoryOf } from './factory-of.js';
|
|
9
|
+
import { instantOf } from './instant-of.js';
|
|
10
|
+
import { isEventSourced } from './is-event-sourced.js';
|
|
11
|
+
import { parameterCount } from './parameter-count.js';
|
|
12
|
+
/** What `create` of a generated aggregate takes: its identifier and the instant it is born at. */
|
|
13
|
+
const GENERATED_PARAMETERS = 2;
|
|
6
14
|
export const builderKind = {
|
|
7
15
|
name: 'builder',
|
|
8
16
|
aliases: [],
|
|
9
17
|
usage: 'builder <context> <Aggregate>',
|
|
10
|
-
summary: 'The test data builder of an existing aggregate, in test/builders
|
|
18
|
+
summary: 'The test data builder of an existing aggregate, in test/builders/; the instant of its birth is an ingredient named after the fact its create records (issuedAt), and the builder of an event-sourced aggregate replays its birth event.',
|
|
11
19
|
positionals: ['context', 'Aggregate'],
|
|
12
20
|
writesShared: false,
|
|
13
21
|
writesInModules: false,
|
|
14
22
|
run: (request) => {
|
|
15
23
|
const scope = openScope(request);
|
|
16
24
|
const aggregate = existingAggregate(scope, request.args[1] ?? '');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
const read = birthOf(scope, aggregate);
|
|
26
|
+
if ('unreadable' in read) {
|
|
27
|
+
refrain(scope, aggregate, read.unreadable);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
writeBuilder(scope, aggregate, read.birth);
|
|
31
|
+
noteFactsAtBirth(scope, aggregate);
|
|
20
32
|
},
|
|
21
33
|
};
|
|
34
|
+
/** No builder is better than one whose `construct` calls `create` in a way it does not take. */
|
|
35
|
+
function refrain(scope, aggregate, why) {
|
|
36
|
+
scope.ws.note(`${why}: no builder written. Write test/builders/${aggregate.kebab}.builder.ts by hand, a \`construct\` that calls \`${aggregate.pascal}.create\` as it is declared.`);
|
|
37
|
+
}
|
|
38
|
+
function writeBuilder(scope, aggregate, birth) {
|
|
39
|
+
const target = `test/builders/${aggregate.kebab}.builder.ts`;
|
|
40
|
+
if (!isEventSourced(scope, aggregate)) {
|
|
41
|
+
emit(scope, vars(scope, { aggregate: named(aggregate), birth: birthVars(birth) }), [
|
|
42
|
+
['builder/builder.ts.tpl', target],
|
|
43
|
+
]);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (birth === undefined) {
|
|
47
|
+
refrain(scope, aggregate, `\`create\` of the event-sourced ${aggregate.pascal} records no birth event`);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const event = { ...named(birth.event), instant: instantOf(birth.fact) };
|
|
51
|
+
emit(scope, vars(scope, { aggregate: named(aggregate), event }), [['builder/event-sourced.builder.ts.tpl', target]]);
|
|
52
|
+
}
|
|
53
|
+
/** A `create` that takes more than its identifier and its instant needs ingredients the builder cannot guess. */
|
|
54
|
+
function noteFactsAtBirth(scope, aggregate) {
|
|
55
|
+
const factory = factoryOf(scope.ws.read(`${scope.dir}/domain/aggregates/${aggregate.kebab}.aggregate.ts`) ?? '');
|
|
56
|
+
const count = factory === undefined ? GENERATED_PARAMETERS : parameterCount(factory);
|
|
57
|
+
if (count > GENERATED_PARAMETERS) {
|
|
58
|
+
scope.ws.note(`\`create\` of ${aggregate.pascal} takes ${String(count)} parameters: give the builder an ingredient for each one beyond its identifier and its instant, with a valid default, and pass it in \`construct\`.`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
22
61
|
//# sourceMappingURL=builder-kind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-kind.js","sourceRoot":"","sources":["../../../src/generate/kinds/builder-kind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder-kind.js","sourceRoot":"","sources":["../../../src/generate/kinds/builder-kind.ts"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,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AACvH,CAAC;AAED,iHAAiH;AACjH,SAAS,gBAAgB,CAAC,KAAY,EAAE,SAAe;IACrD,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,sBAAsB,SAAS,CAAC,KAAK,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC;IACjH,MAAM,KAAK,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAErF,IAAI,KAAK,GAAG,oBAAoB,EAAE,CAAC;QACjC,KAAK,CAAC,EAAE,CAAC,IAAI,CACX,iBAAiB,SAAS,CAAC,MAAM,UAAU,MAAM,CAAC,KAAK,CAAC,qJAAqJ,CAC9M,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Name } from '../../naming/index.js';
|
|
2
|
-
import type { RenderContext } from '../../templating/index.js';
|
|
3
2
|
import type { Scope } from '../scope.js';
|
|
3
|
+
import type { UseCaseContext } from './use-case-context.js';
|
|
4
4
|
/**
|
|
5
5
|
* What the templates of a command read. `asksPolicy`: a policy refines its permission, so the
|
|
6
6
|
* handler receives `Access` and asks it, about the command until the element is loaded. `births`:
|
|
@@ -11,5 +11,5 @@ export declare function commandContext(scope: Scope, { name, aggregate, creates
|
|
|
11
11
|
name: Name;
|
|
12
12
|
aggregate: Name | undefined;
|
|
13
13
|
creates: boolean;
|
|
14
|
-
}, asksPolicy: boolean):
|
|
14
|
+
}, asksPolicy: boolean): UseCaseContext;
|
|
15
15
|
//# sourceMappingURL=command-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-context.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/command-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"command-context.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/command-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,EACZ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAC3F,UAAU,EAAE,OAAO,GAClB,cAAc,CAyBhB"}
|
|
@@ -2,6 +2,7 @@ import { accessVars } from '../access-vars.js';
|
|
|
2
2
|
import { named } from '../named.js';
|
|
3
3
|
import { specVars } from '../spec-vars.js';
|
|
4
4
|
import { vars } from '../vars.js';
|
|
5
|
+
import { worldArrangement } from './world/world-arrangement.js';
|
|
5
6
|
/**
|
|
6
7
|
* What the templates of a command read. `asksPolicy`: a policy refines its permission, so the
|
|
7
8
|
* handler receives `Access` and asks it, about the command until the element is loaded. `births`:
|
|
@@ -11,9 +12,16 @@ import { vars } from '../vars.js';
|
|
|
11
12
|
export function commandContext(scope, { name, aggregate, creates }, asksPolicy) {
|
|
12
13
|
const births = aggregate !== undefined && creates;
|
|
13
14
|
const reference = `${scope.context.camel}Permissions['${scope.flags.permission ?? ''}']`;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const required = accessVars(scope, { name, kind: 'Command' });
|
|
16
|
+
const access = { ...required, policy: asksPolicy, reference };
|
|
17
|
+
const spec = specVars(scope, access);
|
|
18
|
+
const world = worldArrangement(scope, spec, {
|
|
19
|
+
repository: aggregate,
|
|
20
|
+
idPrefix: births ? aggregate.kebab : undefined,
|
|
21
|
+
permission: required['protected'] === true ? 'holders' : undefined,
|
|
22
|
+
});
|
|
23
|
+
const context = {
|
|
24
|
+
...vars(scope, { name: named(name), access, spec, world: world.vars }),
|
|
17
25
|
command: {
|
|
18
26
|
hasAggregate: aggregate !== undefined,
|
|
19
27
|
births,
|
|
@@ -22,5 +30,6 @@ export function commandContext(scope, { name, aggregate, creates }, asksPolicy)
|
|
|
22
30
|
},
|
|
23
31
|
...(aggregate === undefined ? {} : { aggregate: named(aggregate) }),
|
|
24
32
|
};
|
|
33
|
+
return { vars: context, worldHint: world.hint };
|
|
25
34
|
}
|
|
26
35
|
//# sourceMappingURL=command-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-context.js","sourceRoot":"","sources":["../../../src/generate/kinds/command-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-context.js","sourceRoot":"","sources":["../../../src/generate/kinds/command-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAY,EACZ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAiE,EAC3F,UAAmB;IAEnB,MAAM,MAAM,GAAG,SAAS,KAAK,SAAS,IAAI,OAAO,CAAC;IAClD,MAAM,SAAS,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,gBAAgB,KAAK,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,IAAI,CAAC;IACzF,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,EAAE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