ddd-ts-kit 0.105.0 → 0.107.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 +132 -0
- package/README.fr.md +63 -46
- package/README.md +61 -45
- package/dist/check/baseline/renamed-files.d.ts.map +1 -1
- package/dist/check/baseline/renamed-files.js +2 -1
- package/dist/check/baseline/renamed-files.js.map +1 -1
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +2 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/default-severities.d.ts.map +1 -1
- package/dist/check/catalogue/default-severities.js +1 -0
- package/dist/check/catalogue/default-severities.js.map +1 -1
- package/dist/check/commands/changed-files.d.ts.map +1 -1
- package/dist/check/commands/changed-files.js +2 -1
- package/dist/check/commands/changed-files.js.map +1 -1
- package/dist/check/explain/privacy-docs.d.ts.map +1 -1
- package/dist/check/explain/privacy-docs.js +13 -0
- package/dist/check/explain/privacy-docs.js.map +1 -1
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/privacy-snapshot-fixtures.d.ts +3 -0
- package/dist/check/fixtures/privacy-snapshot-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/privacy-snapshot-fixtures.js +86 -0
- package/dist/check/fixtures/privacy-snapshot-fixtures.js.map +1 -0
- package/dist/check/privacy/clear-snapshot-values-in.d.ts +13 -0
- package/dist/check/privacy/clear-snapshot-values-in.d.ts.map +1 -0
- package/dist/check/privacy/clear-snapshot-values-in.js +36 -0
- package/dist/check/privacy/clear-snapshot-values-in.js.map +1 -0
- package/dist/check/privacy/is-snapshot-mapper.d.ts +4 -0
- package/dist/check/privacy/is-snapshot-mapper.d.ts.map +1 -0
- package/dist/check/privacy/is-snapshot-mapper.js +11 -0
- package/dist/check/privacy/is-snapshot-mapper.js.map +1 -0
- package/dist/check/project/git-ignored.d.ts.map +1 -1
- package/dist/check/project/git-ignored.js +2 -1
- package/dist/check/project/git-ignored.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +2 -1
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +2 -1
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +4 -1
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.d.ts +9 -0
- package/dist/check/rules/privacy-snapshot-sealed.d.ts.map +1 -0
- package/dist/check/rules/privacy-snapshot-sealed.js +34 -0
- package/dist/check/rules/privacy-snapshot-sealed.js.map +1 -0
- package/dist/commit/git-arguments.d.ts +9 -0
- package/dist/commit/git-arguments.d.ts.map +1 -0
- package/dist/commit/git-arguments.js +46 -0
- package/dist/commit/git-arguments.js.map +1 -0
- package/dist/commit/run-git.d.ts.map +1 -1
- package/dist/commit/run-git.js +2 -1
- package/dist/commit/run-git.js.map +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/kit-container.d.ts +6 -0
- package/dist/config/kit-container.d.ts.map +1 -0
- package/dist/config/kit-container.js +10 -0
- package/dist/config/kit-container.js.map +1 -0
- package/dist/config/stack.d.ts +1 -1
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +1 -1
- package/dist/config/stack.js.map +1 -1
- package/dist/doctor/format-diagnosis.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.js +10 -2
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/doctor/hook-findings.d.ts +2 -1
- package/dist/doctor/hook-findings.d.ts.map +1 -1
- package/dist/doctor/hook-findings.js +27 -3
- package/dist/doctor/hook-findings.js.map +1 -1
- package/dist/doctor/permission-findings.js +1 -0
- package/dist/doctor/permission-findings.js.map +1 -1
- package/dist/generate/concept-role.d.ts +2 -0
- package/dist/generate/concept-role.d.ts.map +1 -1
- package/dist/generate/concept.d.ts.map +1 -1
- package/dist/generate/concept.js +4 -1
- package/dist/generate/concept.js.map +1 -1
- package/dist/generate/di-entry.d.ts +4 -0
- package/dist/generate/di-entry.d.ts.map +1 -0
- package/dist/generate/di-entry.js +5 -0
- package/dist/generate/di-entry.js.map +1 -0
- package/dist/generate/di-imports.d.ts +4 -0
- package/dist/generate/di-imports.d.ts.map +1 -0
- package/dist/generate/di-imports.js +12 -0
- package/dist/generate/di-imports.js.map +1 -0
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +3 -2
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/background/spec-family.d.ts +1 -1
- package/dist/generate/kinds/background/spec-family.d.ts.map +1 -1
- package/dist/generate/kinds/background/spec-family.js +2 -1
- package/dist/generate/kinds/background/spec-family.js.map +1 -1
- package/dist/generate/kinds/birth-names.js +1 -1
- package/dist/generate/kinds/birth-names.js.map +1 -1
- package/dist/generate/kinds/command-outputs.d.ts.map +1 -1
- package/dist/generate/kinds/command-outputs.js +2 -1
- package/dist/generate/kinds/command-outputs.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +1 -0
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/existing-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/existing-aggregate.js +1 -0
- package/dist/generate/kinds/existing-aggregate.js.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.d.ts.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.js +2 -1
- package/dist/generate/kinds/extraction/service-selection.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +1 -1
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/import-assembler.d.ts.map +1 -1
- package/dist/generate/kinds/import-assembler.js +11 -2
- package/dist/generate/kinds/import-assembler.js.map +1 -1
- package/dist/generate/kinds/job/grant-system-actor.d.ts.map +1 -1
- package/dist/generate/kinds/job/grant-system-actor.js +8 -4
- package/dist/generate/kinds/job/grant-system-actor.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +2 -1
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/personal-data/declare-personal-data.js +1 -1
- package/dist/generate/kinds/personal-data/declare-personal-data.js.map +1 -1
- package/dist/generate/kinds/query-kind.js +1 -1
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/query-outputs.d.ts.map +1 -1
- package/dist/generate/kinds/query-outputs.js +2 -1
- package/dist/generate/kinds/query-outputs.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +3 -2
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
- package/dist/generate/kinds/world/context-fakes.js +2 -1
- package/dist/generate/kinds/world/context-fakes.js.map +1 -1
- package/dist/generate/kinds/world/world-arrangement.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-arrangement.js +2 -1
- package/dist/generate/kinds/world/world-arrangement.js.map +1 -1
- package/dist/generate/kinds/world/world-vars.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-vars.js +2 -1
- package/dist/generate/kinds/world/world-vars.js.map +1 -1
- package/dist/generate/label.js +1 -1
- package/dist/generate/label.js.map +1 -1
- package/dist/generate/spec-vars.d.ts.map +1 -1
- package/dist/generate/spec-vars.js +2 -1
- package/dist/generate/spec-vars.js.map +1 -1
- package/dist/generate/wiring-family.d.ts +1 -1
- package/dist/generate/wiring-family.d.ts.map +1 -1
- package/dist/generate/wiring-family.js +2 -1
- package/dist/generate/wiring-family.js.map +1 -1
- package/dist/generate/wirings.js +2 -2
- package/dist/generate/wirings.js.map +1 -1
- package/dist/help/usage.js +1 -1
- package/dist/init/add-presets.d.ts +8 -0
- package/dist/init/add-presets.d.ts.map +1 -0
- package/dist/init/add-presets.js +17 -0
- package/dist/init/add-presets.js.map +1 -0
- package/dist/init/agent-permissions.js +2 -0
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/files/audit-files.js +1 -1
- package/dist/init/files/audit-files.js.map +1 -1
- package/dist/init/files/auth-files.js +2 -2
- package/dist/init/files/auth-files.js.map +1 -1
- package/dist/init/files/event-sourcing-files.js +1 -1
- package/dist/init/files/event-sourcing-files.js.map +1 -1
- package/dist/init/files/family-of.d.ts +1 -1
- package/dist/init/files/family-of.d.ts.map +1 -1
- package/dist/init/files/family-of.js +2 -1
- package/dist/init/files/family-of.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +2 -1
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/files/platform-files.js +2 -2
- package/dist/init/files/platform-files.js.map +1 -1
- package/dist/init/files/privacy-files.js +1 -1
- package/dist/init/files/privacy-files.js.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.js +5 -1
- package/dist/init/manifest/dependencies-against-stack.js.map +1 -1
- package/dist/init/manifest/dependencies-for.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-for.js +4 -0
- package/dist/init/manifest/dependencies-for.js.map +1 -1
- package/dist/init/manifest/versions.d.ts.map +1 -1
- package/dist/init/manifest/versions.js +28 -24
- package/dist/init/manifest/versions.js.map +1 -1
- package/dist/init/manifest/write-manifest.js +1 -1
- package/dist/init/manifest/write-manifest.js.map +1 -1
- package/dist/init/regulated-sandbox.d.ts +5 -3
- package/dist/init/regulated-sandbox.d.ts.map +1 -1
- package/dist/init/regulated-sandbox.js +6 -3
- package/dist/init/regulated-sandbox.js.map +1 -1
- package/dist/init/rewire-personal-data.js +1 -1
- package/dist/init/rewire-personal-data.js.map +1 -1
- package/dist/init/rewire-preset.d.ts +1 -1
- package/dist/init/rewire-preset.d.ts.map +1 -1
- package/dist/init/rewire-preset.js +5 -2
- package/dist/init/rewire-preset.js.map +1 -1
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +13 -5
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/resolve-stack.js +1 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/stack/resolve-style.d.ts +1 -1
- package/dist/init/stack/resolve-style.js +4 -4
- package/dist/init/stack/resolve-style.js.map +1 -1
- package/dist/init/subfolder-of.d.ts +3 -0
- package/dist/init/subfolder-of.d.ts.map +1 -0
- package/dist/init/subfolder-of.js +7 -0
- package/dist/init/subfolder-of.js.map +1 -0
- package/dist/init/subfolder-sentence.d.ts +6 -0
- package/dist/init/subfolder-sentence.d.ts.map +1 -0
- package/dist/init/subfolder-sentence.js +13 -0
- package/dist/init/subfolder-sentence.js.map +1 -0
- package/dist/init/validation-dependencies.d.ts.map +1 -1
- package/dist/init/validation-dependencies.js +3 -1
- package/dist/init/validation-dependencies.js.map +1 -1
- package/dist/layout/fit-statement.js +16 -2
- package/dist/layout/fit-statement.js.map +1 -1
- package/dist/merge/git-process.d.ts.map +1 -1
- package/dist/merge/git-process.js +2 -1
- package/dist/merge/git-process.js.map +1 -1
- package/dist/merge/lost/revision-files.d.ts.map +1 -1
- package/dist/merge/lost/revision-files.js +6 -1
- package/dist/merge/lost/revision-files.js.map +1 -1
- package/dist/merge/lost/side-hunks.d.ts.map +1 -1
- package/dist/merge/lost/side-hunks.js +2 -1
- package/dist/merge/lost/side-hunks.js.map +1 -1
- package/dist/merge/object-bytes.d.ts.map +1 -1
- package/dist/merge/object-bytes.js +2 -1
- package/dist/merge/object-bytes.js.map +1 -1
- package/dist/naming/parse-concept-name.d.ts +2 -0
- package/dist/naming/parse-concept-name.d.ts.map +1 -1
- package/dist/naming/parse-concept-name.js +4 -1
- package/dist/naming/parse-concept-name.js.map +1 -1
- package/dist/naming/parse-context-name.d.ts.map +1 -1
- package/dist/naming/parse-context-name.js +2 -0
- package/dist/naming/parse-context-name.js.map +1 -1
- package/dist/naming/refuse-windows-reserved.d.ts +7 -0
- package/dist/naming/refuse-windows-reserved.d.ts.map +1 -0
- package/dist/naming/refuse-windows-reserved.js +14 -0
- package/dist/naming/refuse-windows-reserved.js.map +1 -0
- package/dist/package-manager/package-manager-vars.d.ts +1 -1
- package/dist/package-manager/package-manager-vars.js +2 -2
- package/dist/package-manager/package-manager-vars.js.map +1 -1
- package/dist/package-manager/pinned-package-managers.d.ts +2 -2
- package/dist/package-manager/pinned-package-managers.js +2 -2
- package/dist/plan/copy-of-project.d.ts.map +1 -1
- package/dist/plan/copy-of-project.js +2 -1
- package/dist/plan/copy-of-project.js.map +1 -1
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +2 -0
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/identity-refusal.d.ts.map +1 -1
- package/dist/presets/identity-refusal.js +4 -3
- package/dist/presets/identity-refusal.js.map +1 -1
- package/dist/presets/organisations-as-audit-chains.d.ts +10 -0
- package/dist/presets/organisations-as-audit-chains.d.ts.map +1 -0
- package/dist/presets/organisations-as-audit-chains.js +30 -0
- package/dist/presets/organisations-as-audit-chains.js.map +1 -0
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +7 -2
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -5
- package/templates/architecture/{extractable.tsyringe.spec.ts.tpl → extractable.container.spec.ts.tpl} +2 -1
- package/templates/architecture/extractable.declared.spec.ts.tpl +2 -1
- package/templates/controller/guard.spec.ts.tpl +20 -15
- package/templates/controller/guard.ts.tpl +3 -5
- package/templates/docs/privacy-register.md.tpl +1 -1
- package/templates/init/README.md.tpl +8 -6
- package/templates/init/docker/Dockerfile.tpl +7 -7
- package/templates/init/docker/env.example.tpl +2 -0
- package/templates/init/e2e/create-credentials.keycloak.ts.tpl +1 -0
- package/templates/init/e2e/start-application.database.ts.tpl +5 -5
- package/templates/init/e2e/start-application.memory.ts.tpl +5 -5
- package/templates/init/main.ts.tpl +1 -0
- package/templates/init/platform/auth/relationships/create-tuple-store.contract.spec.ts.tpl +11 -1
- package/templates/init/platform/auth/relationships/create-tuple-store.ts.tpl +16 -1
- package/templates/init/platform/composition/{compose-application.tsyringe.ts.tpl → compose-application.container.ts.tpl} +5 -9
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +4 -2
- package/templates/init/platform/events/start-outbox-relay.ts.tpl +5 -1
- package/templates/init/platform/observability/create-logger.stdout.ts.tpl +2 -2
- package/templates/init/platform/observability/create-metrics.ts.tpl +6 -3
- package/templates/init/platform/resilience/adapters-with-own-policy.ts.tpl +1 -1
- package/templates/init/platform/resilience/default-policy.ts.tpl +1 -1
- package/templates/init/rules/platform.md.tpl +3 -3
- package/templates/init/rules/tests.md.tpl +2 -2
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/github/actions/setup/action.yml.tpl +3 -2
- package/templates/pipeline/github/workflows/ci.yml.tpl +4 -0
- package/templates/pipeline/gitlab/gitlab-ci.yml.tpl +6 -2
- package/templates/pipeline/package-scripts.json +2 -2
- package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.handler.ts.tpl +6 -4
- package/templates/presets/identity/context/test/integration/organisation-tenant-directory.spec.ts.tpl +7 -6
- package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +2 -1
- package/templates/presets/identity/design.md.tpl +4 -2
- package/templates/presets/identity/e2e/support.wiring.tpl +4 -4
- package/templates/presets/identity/platform/organisation-of-command.ts.tpl +36 -0
- package/templates/repository/event-sourced/repository.ts.tpl +1 -1
- package/templates/repository/knex/mapper.ts.tpl +1 -1
- package/templates/repository/typeorm/table.tpl +2 -2
- package/templates/sdk/runtime.ts.tpl +10 -1
- package/templates/service/main.ts.tpl +1 -0
- /package/templates/adapter/{simulated.wiring.tsyringe.tpl → simulated.wiring.container.tpl} +0 -0
- /package/templates/adapter/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/architecture/{hosting.tsyringe.spec.ts.tpl → hosting.container.spec.ts.tpl} +0 -0
- /package/templates/architecture/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/background-job/{background-job.spec.tsyringe.ts.tpl → background-job.spec.container.ts.tpl} +0 -0
- /package/templates/background-job/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/command/{handler.spec.tsyringe.ts.tpl → handler.spec.container.ts.tpl} +0 -0
- /package/templates/command/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/context/{module.tsyringe.ts.tpl → module.container.ts.tpl} +0 -0
- /package/templates/context/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/controller/{routes.tsyringe.tpl → routes.container.tpl} +0 -0
- /package/templates/erasure-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/event-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/file-upload/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/gateway/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/init/platform/audit/{audit.module.tsyringe.ts.tpl → audit.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/auth/authorization/{authorization.tsyringe.ts.tpl → authorization.container.ts.tpl} +0 -0
- /package/templates/init/platform/buses/{create-command-bus.tsyringe.ts.tpl → create-command-bus.container.ts.tpl} +0 -0
- /package/templates/init/platform/buses/{create-query-bus.tsyringe.ts.tpl → create-query-bus.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{context-selection.tsyringe.ts.tpl → context-selection.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{lay-foundations.tsyringe.ts.tpl → lay-foundations.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{platform-test.module.tsyringe.ts.tpl → platform-test.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{platform.module.tsyringe.ts.tpl → platform.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{routes-of.tsyringe.ts.tpl → routes-of.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{bind-files.tsyringe.ts.tpl → bind-files.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{files.module.tsyringe.ts.tpl → files.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{staging-uploads.tsyringe.ts.tpl → staging-uploads.container.ts.tpl} +0 -0
- /package/templates/init/platform/jobs/{housekeeping.module.tsyringe.ts.tpl → housekeeping.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{data-subject-copies.tsyringe.ts.tpl → data-subject-copies.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{data-subject-exports.tsyringe.ts.tpl → data-subject-exports.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{privacy.module.tsyringe.ts.tpl → privacy.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-erasure.tsyringe.ts.tpl → run-erasure.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-export.tsyringe.ts.tpl → run-export.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-purge.tsyringe.ts.tpl → run-purge.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-erase.tsyringe.ts.tpl → privacy-erase.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-export.tsyringe.ts.tpl → privacy-export.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-purge.tsyringe.ts.tpl → privacy-purge.container.ts.tpl} +0 -0
- /package/templates/integration-event/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/integration-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/job/{job.spec.tsyringe.ts.tpl → job.spec.container.ts.tpl} +0 -0
- /package/templates/job/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/module/{module-file.tsyringe.ts.tpl → module-file.container.ts.tpl} +0 -0
- /package/templates/module/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/personal-data/{copies.tsyringe.tpl → copies.container.tpl} +0 -0
- /package/templates/personal-data/{exports.tsyringe.tpl → exports.container.tpl} +0 -0
- /package/templates/personal-data/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/process/{timeout-job.spec.tsyringe.ts.tpl → timeout-job.spec.container.ts.tpl} +0 -0
- /package/templates/process/{timeout-job.wiring.tsyringe.tpl → timeout-job.wiring.container.tpl} +0 -0
- /package/templates/projection/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/query/{handler.spec.tsyringe.ts.tpl → handler.spec.container.ts.tpl} +0 -0
- /package/templates/query/{search.handler.spec.tsyringe.ts.tpl → search.handler.spec.container.ts.tpl} +0 -0
- /package/templates/query/{search.wiring.tsyringe.tpl → search.wiring.container.tpl} +0 -0
- /package/templates/query/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/repository/{event-sourced.wiring.tsyringe.tpl → event-sourced.wiring.container.tpl} +0 -0
- /package/templates/repository/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/route/{routes.on-tsyringe.tpl → routes.on-container.tpl} +0 -0
- /package/templates/service/{extracted.tsyringe.tpl → extracted.container.tpl} +0 -0
- /package/templates/test-world/{world.tsyringe.ts.tpl → world.container.ts.tpl} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-concept-name.js","sourceRoot":"","sources":["../../src/naming/parse-concept-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;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|
|
1
|
-
{"version":3,"file":"parse-context-name.d.ts","sourceRoot":"","sources":["../../src/naming/parse-context-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"parse-context-name.d.ts","sourceRoot":"","sources":["../../src/naming/parse-context-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,4HAA4H;AAC5H,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAUpD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CliError } from '../cli-error.js';
|
|
2
|
+
import { refuseWindowsReserved } from './refuse-windows-reserved.js';
|
|
2
3
|
import { readName } from './read-name.js';
|
|
3
4
|
const FIX = 'Name the bounded context in kebab-case after the business capability, for example billing or order-fulfilment.';
|
|
4
5
|
/** The name of a context as the caller typed it, in kebab-case once read: nothing of it dropped, starting with a letter. */
|
|
@@ -7,6 +8,7 @@ export function parseContextName(input) {
|
|
|
7
8
|
if (!/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/.test(name.kebab)) {
|
|
8
9
|
throw new CliError(`"${input}" is not a valid context name.`, FIX);
|
|
9
10
|
}
|
|
11
|
+
refuseWindowsReserved(name, 'context');
|
|
10
12
|
return name;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=parse-context-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-context-name.js","sourceRoot":"","sources":["../../src/naming/parse-context-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,GAAG,GACP,gHAAgH,CAAC;AAEnH,4HAA4H;AAC5H,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IAE7C,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,gCAAgC,EAAE,GAAG,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"parse-context-name.js","sourceRoot":"","sources":["../../src/naming/parse-context-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,GAAG,GACP,gHAAgH,CAAC;AAEnH,4HAA4H;AAC5H,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IAE7C,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,gCAAgC,EAAE,GAAG,CAAC,CAAC;IACrE,CAAC;IAED,qBAAqB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAEvC,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Name } from './name.js';
|
|
2
|
+
/**
|
|
3
|
+
* Refuses a name that is a file name Windows reserves, since the kit writes files and folders named after it.
|
|
4
|
+
* `allowName` is the `--allow-name` of the command; undefined where the command has no such flag.
|
|
5
|
+
*/
|
|
6
|
+
export declare function refuseWindowsReserved(name: Name, what: string, allowName?: boolean): void;
|
|
7
|
+
//# sourceMappingURL=refuse-windows-reserved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refuse-windows-reserved.d.ts","sourceRoot":"","sources":["../../src/naming/refuse-windows-reserved.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAKnC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CASzF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CliError } from '../cli-error.js';
|
|
2
|
+
/** The names Windows reserves for devices, whatever the case and the extension: `con.aggregate.ts` cannot be checked out on NTFS. */
|
|
3
|
+
const WINDOWS_RESERVED = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/;
|
|
4
|
+
/**
|
|
5
|
+
* Refuses a name that is a file name Windows reserves, since the kit writes files and folders named after it.
|
|
6
|
+
* `allowName` is the `--allow-name` of the command; undefined where the command has no such flag.
|
|
7
|
+
*/
|
|
8
|
+
export function refuseWindowsReserved(name, what, allowName) {
|
|
9
|
+
if (allowName === true || !WINDOWS_RESERVED.test(name.kebab)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
throw new CliError(`"${name.pascal}" is a name Windows reserves for a device (CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9): the files of this ${what} cannot be checked out there.`, `Rename the ${what}${allowName === undefined ? '' : ', or pass --allow-name if no one works on Windows'}.`);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=refuse-windows-reserved.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refuse-windows-reserved.js","sourceRoot":"","sources":["../../src/naming/refuse-windows-reserved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,qIAAqI;AACrI,MAAM,gBAAgB,GAAG,yCAAyC,CAAC;AAEnE;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAU,EAAE,IAAY,EAAE,SAAmB;IACjF,IAAI,SAAS,KAAK,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,OAAO;IACT,CAAC;IAED,MAAM,IAAI,QAAQ,CAChB,IAAI,IAAI,CAAC,MAAM,iHAAiH,IAAI,+BAA+B,EACnK,cAAc,IAAI,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mDAAmD,GAAG,CAC3G,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from '../config/index.js';
|
|
2
2
|
import type { RenderContext } from '../templating/index.js';
|
|
3
|
-
/** The package manager as template variables: which one, whether
|
|
3
|
+
/** The package manager as template variables: which one, whether package.json pins it, and the lockfile it writes. */
|
|
4
4
|
export declare function packageManagerVars(config: Config): RenderContext;
|
|
5
5
|
//# sourceMappingURL=package-manager-vars.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { one } from '../stack/one.js';
|
|
2
2
|
import { LOCKFILES } from './lockfiles.js';
|
|
3
|
-
/** The package manager as template variables: which one, whether
|
|
3
|
+
/** The package manager as template variables: which one, whether package.json pins it, and the lockfile it writes. */
|
|
4
4
|
export function packageManagerVars(config) {
|
|
5
5
|
const { packageManager } = config.stack;
|
|
6
6
|
return {
|
|
7
7
|
...one(packageManager, ['npm', 'pnpm']),
|
|
8
8
|
name: packageManager,
|
|
9
|
-
|
|
9
|
+
pinned: packageManager !== 'npm',
|
|
10
10
|
lockfile: LOCKFILES[packageManager],
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manager-vars.js","sourceRoot":"","sources":["../../src/package-manager/package-manager-vars.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,sHAAsH;AACtH,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAExC,OAAO;QACL,GAAG,GAAG,CAAC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvC,IAAI,EAAE,cAAc;QACpB,
|
|
1
|
+
{"version":3,"file":"package-manager-vars.js","sourceRoot":"","sources":["../../src/package-manager/package-manager-vars.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,sHAAsH;AACtH,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAExC,OAAO;QACL,GAAG,GAAG,CAAC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvC,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,cAAc,KAAK,KAAK;QAChC,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAC;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Stack } from '../config/index.js';
|
|
2
2
|
/**
|
|
3
|
-
* The release `packageManager` pins in package.json, which
|
|
4
|
-
* developer and
|
|
3
|
+
* The release `packageManager` pins in package.json, which npm installs for every
|
|
4
|
+
* developer and for the pipeline, and which pnpm then runs. npm comes with Node and is not pinned.
|
|
5
5
|
*/
|
|
6
6
|
export declare const PINNED_PACKAGE_MANAGERS: Readonly<Record<Stack['packageManager'], string | undefined>>;
|
|
7
7
|
//# sourceMappingURL=pinned-package-managers.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The release `packageManager` pins in package.json, which
|
|
3
|
-
* developer and
|
|
2
|
+
* The release `packageManager` pins in package.json, which npm installs for every
|
|
3
|
+
* developer and for the pipeline, and which pnpm then runs. npm comes with Node and is not pinned.
|
|
4
4
|
*/
|
|
5
5
|
export const PINNED_PACKAGE_MANAGERS = {
|
|
6
6
|
npm: undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-of-project.d.ts","sourceRoot":"","sources":["../../src/plan/copy-of-project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"copy-of-project.d.ts","sourceRoot":"","sources":["../../src/plan/copy-of-project.ts"],"names":[],"mappings":"AASA,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASlD"}
|
|
@@ -2,6 +2,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
+
import { gitArguments } from '../commit/git-arguments.js';
|
|
5
6
|
/** Directories never copied when the project is not a git repository. */
|
|
6
7
|
const NOT_COPIED = new Set(['node_modules', '.git', 'dist', 'coverage', '.worktrees']);
|
|
7
8
|
/** A copy of the project, its sources only, in a directory of its own that the caller removes. */
|
|
@@ -19,7 +20,7 @@ export function copyOfProject(root) {
|
|
|
19
20
|
* copy never holds what one points at, wherever it points (a key of the home folder, say).
|
|
20
21
|
*/
|
|
21
22
|
function sourceFiles(root) {
|
|
22
|
-
const listed = spawnSync('git', ['ls-files', '--cached', '--others', '--exclude-standard', '-z'], {
|
|
23
|
+
const listed = spawnSync('git', gitArguments(['ls-files', '--cached', '--others', '--exclude-standard', '-z']), {
|
|
23
24
|
cwd: root,
|
|
24
25
|
encoding: 'utf8',
|
|
25
26
|
maxBuffer: 1 << 28,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-of-project.js","sourceRoot":"","sources":["../../src/plan/copy-of-project.ts"],"names":[],"mappings":"AAAA,OAAO,E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,CAAC,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-preset.d.ts","sourceRoot":"","sources":["../../src/presets/apply-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AASlE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"apply-preset.d.ts","sourceRoot":"","sources":["../../src/presets/apply-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AASlE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC,qGAAqG;AACrG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAmCzF"}
|
|
@@ -10,6 +10,7 @@ import { platformPath } from '../generate/platform-path.js';
|
|
|
10
10
|
import { grantToSignedIn } from './grant-to-signed-in.js';
|
|
11
11
|
import { layOutPrismaModels } from './lay-out-prisma-models.js';
|
|
12
12
|
import { NO_FLAGS } from './no-flags.js';
|
|
13
|
+
import { organisationsAsAuditChains } from './organisations-as-audit-chains.js';
|
|
13
14
|
import { organisationsAsTenantDirectory } from './organisations-as-tenant-directory.js';
|
|
14
15
|
import { organisationsAsTenants } from './organisations-as-tenants.js';
|
|
15
16
|
import { outsideTheTenancy } from './outside-the-tenancy.js';
|
|
@@ -38,6 +39,7 @@ export function applyPreset(ws, config, request) {
|
|
|
38
39
|
const wired = runSteps(scope, preset);
|
|
39
40
|
if (preset.organisationsAreTenants) {
|
|
40
41
|
organisationsAsTenantDirectory({ ...scope, config: wired }, rendering.context);
|
|
42
|
+
organisationsAsAuditChains({ ...scope, config: wired }, rendering.context);
|
|
41
43
|
}
|
|
42
44
|
layOutAfterSteps({ ...scope, config: wired }, preset, rendering);
|
|
43
45
|
describeContext(scope, preset, rendering);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-preset.js","sourceRoot":"","sources":["../../src/presets/apply-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,mHAAmH;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C,IAAI,CAAC,KAAK,CAAC;QAC/E,MAAM,KAAK,GAAc,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC;QAElE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1F,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC;IACvC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,OAAO,CAAC,EAAa;IAC5B,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAElC,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-refusal.d.ts","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identity-refusal.d.ts","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAyBtD,0IAA0I;AAC1I,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAuBzE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isKitContainer } from '../config/index.js';
|
|
1
2
|
/** What the identity preset is written for, each with the value it needs and the flag of `init` that gives it. */
|
|
2
3
|
const NEEDED = [
|
|
3
4
|
{ key: 'dependencies', values: ['signature'], flag: '--dependencies signature', declaredOnly: true },
|
|
@@ -17,10 +18,10 @@ const NEEDED = [
|
|
|
17
18
|
/** The identity preset is written for the defaults of `init` and their nearest variants; another stack is refused with what to change. */
|
|
18
19
|
export function identityRefusal(config) {
|
|
19
20
|
const { style, di } = config.stack;
|
|
20
|
-
if (style === 'explicit' && di
|
|
21
|
+
if (style === 'explicit' && isKitContainer(di)) {
|
|
21
22
|
return {
|
|
22
|
-
message:
|
|
23
|
-
fix: 'In the explicit style it is written for --di manual and --di nest, whose module file lists every binding; on
|
|
23
|
+
message: `The identity preset is not written for "stack.style": "explicit" with "stack.di": "${di}".`,
|
|
24
|
+
fix: 'In the explicit style it is written for --di manual and --di nest, whose module file lists every binding; on this container, keep --style declared, which init writes by default (docs/guides/bootstrap-with-well-designed-contexts.md says why).',
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
const missing = NEEDED.find(({ key, values, declaredOnly }) => (declaredOnly !== true || style === 'declared') && !values.includes(config.stack[key]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-refusal.js","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identity-refusal.js","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI3C,kHAAkH;AAClH,MAAM,MAAM,GAMN;IACJ,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,YAAY,EAAE,IAAI,EAAE;IACpG,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,0CAA0C,EAAE;IACrG,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,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AM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACzF,CAAC;IAEF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,OAAO,EAAE,iDAAiD,OAAO,CAAC,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI;QACzG,GAAG,EAAE,YAAY,OAAO,CAAC,IAAI,yKAAyK;KACvM,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Scope } from '../generate/scope.js';
|
|
2
|
+
import { type RenderContext } from '../templating/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* With tenants and an audit trail, the entry of a command that succeeded on an organisation is
|
|
5
|
+
* written in the chain of that organisation: `organisationOfCommand`, next to `create-audit.ts`,
|
|
6
|
+
* names it, and the audit middleware of the commands is given it as `tenantOf`. A `create-audit.ts`
|
|
7
|
+
* the team rewrote is left as it is, with what to add.
|
|
8
|
+
*/
|
|
9
|
+
export declare function organisationsAsAuditChains(scope: Scope, rendering: RenderContext): void;
|
|
10
|
+
//# sourceMappingURL=organisations-as-audit-chains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisations-as-audit-chains.d.ts","sourceRoot":"","sources":["../../src/presets/organisations-as-audit-chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAOnE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,GAAG,IAAI,CA0BvF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { specifierOf } from '../alias/index.js';
|
|
2
|
+
import { withImport } from '../generate/with-import.js';
|
|
3
|
+
import { renderTemplate } from '../templating/index.js';
|
|
4
|
+
const COMMANDS = 'commands: auditMiddleware(trail, { ...source, unitOfWork, onLostRecord })';
|
|
5
|
+
const COMMANDS_IN_THE_ORGANISATION = 'commands: auditMiddleware(trail, { ...source, unitOfWork, onLostRecord, tenantOf: organisationOfCommand })';
|
|
6
|
+
/**
|
|
7
|
+
* With tenants and an audit trail, the entry of a command that succeeded on an organisation is
|
|
8
|
+
* written in the chain of that organisation: `organisationOfCommand`, next to `create-audit.ts`,
|
|
9
|
+
* names it, and the audit middleware of the commands is given it as `tenantOf`. A `create-audit.ts`
|
|
10
|
+
* the team rewrote is left as it is, with what to add.
|
|
11
|
+
*/
|
|
12
|
+
export function organisationsAsAuditChains(scope, rendering) {
|
|
13
|
+
const createAudit = `${scope.config.platformDir}/audit/create-audit.ts`;
|
|
14
|
+
const current = scope.ws.read(createAudit);
|
|
15
|
+
if (scope.config.stack.tenancy === 'none' || current === undefined) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const file = `${scope.config.platformDir}/audit/organisation-of-command.ts`;
|
|
19
|
+
// Written once: `init --force` rewires `create-audit.ts` and keeps what the team made of this file.
|
|
20
|
+
if (!scope.ws.exists(file)) {
|
|
21
|
+
scope.ws.create(file, renderTemplate('presets/identity/platform/organisation-of-command.ts.tpl', rendering));
|
|
22
|
+
}
|
|
23
|
+
if (!current.includes(COMMANDS)) {
|
|
24
|
+
scope.ws.note(`${createAudit} no longer builds the audit of the commands as init wrote it: give \`auditMiddleware\` \`tenantOf: organisationOfCommand\` (${file}), so that a command on an organisation is audited in its chain.`);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const importLine = `import { organisationOfCommand } from '${specifierOf(scope.config, file)}';`;
|
|
28
|
+
scope.ws.update(createAudit, withImport(current.replaceAll(COMMANDS, COMMANDS_IN_THE_ORGANISATION), importLine));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=organisations-as-audit-chains.js.map
|
|
@@ -0,0 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IAAI,CAAC;IAEjG,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,4BAA4B,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AACnH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-vars.d.ts","sourceRoot":"","sources":["../../src/stack/stack-vars.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"stack-vars.d.ts","sourceRoot":"","sources":["../../src/stack/stack-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiBnD,6GAA6G;AAC7G,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAoCvD"}
|
package/dist/stack/stack-vars.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { QUEUE_ORMS } from '../config/index.js';
|
|
1
|
+
import { onKitContainer, QUEUE_ORMS } from '../config/index.js';
|
|
2
|
+
import { diEntry } from '../generate/di-entry.js';
|
|
2
3
|
import { aliasVars } from './alias-vars.js';
|
|
3
4
|
import { auditVars } from './audit-vars.js';
|
|
4
5
|
import { authenticationVars } from './authentication-vars.js';
|
|
@@ -23,7 +24,11 @@ export function stackVars(config) {
|
|
|
23
24
|
decorators: { legacy, standard: !legacy },
|
|
24
25
|
...edgeVars(config),
|
|
25
26
|
validation: one(validation, ['zod', 'class-validator', 'typebox', 'standard-schema', 'none']),
|
|
26
|
-
di:
|
|
27
|
+
di: {
|
|
28
|
+
...one(di, ['tsyringe', 'inversify', 'awilix', 'nest', 'manual']),
|
|
29
|
+
container: onKitContainer(config),
|
|
30
|
+
entry: diEntry(config),
|
|
31
|
+
},
|
|
27
32
|
orm: { ...one(orm, ['drizzle', 'knex', 'prisma', 'typeorm', 'custom', 'none']), any: orm !== 'none' },
|
|
28
33
|
events: eventVars(config),
|
|
29
34
|
authn: authenticationVars(config),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-vars.js","sourceRoot":"","sources":["../../src/stack/stack-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAe,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"stack-vars.js","sourceRoot":"","sources":["../../src/stack/stack-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAe,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,0FAA0F;AAC1F,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,6GAA6G;AAC7G,MAAM,UAAU,SAAS,CAAC,MAAc;IACtC,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAA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E,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5D,GAAG,EAAE,IAAI,KAAK,MAAM;QACpB,KAAK,EAAE,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,MAAM;KACnE,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,MAAc;IACnC,OAAO;QACL,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,WAAW,EAAE,MAAM,CAAC,WAAW;KAChC,CAAC;AACJ,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.107.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.107.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddd-ts-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.107.0",
|
|
4
4
|
"description": "Bootstrap, scaffold and verify Domain-Driven Design (DDD), Clean Architecture and hexagonal TypeScript backends on Node.js: project and code generators, architecture checks, OpenAPI and AsyncAPI documents, for developers and AI coding agents (Claude Code, Codex, GitHub Copilot).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"provenance": true
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=22.12.0"
|
|
41
|
+
},
|
|
39
42
|
"bin": {
|
|
40
43
|
"ddd-ts-kit": "./dist/bin.js",
|
|
41
44
|
"ddd-ts-kit-refresh-declarations": "./dist/refresh-declarations.js"
|
|
@@ -52,10 +55,10 @@
|
|
|
52
55
|
"clean:packages": "node dist/bin.js check --clean-only ../kernel/src ../validation/src ../http/src ../tracing/src ../di/src ../events/src ../testing/src ../s3/src ../drizzle/src ../knex/src ../prisma/src ../typeorm/src ../aspects/src ../rabbitmq/src ../auth/src ../audit/src ../redis/src ../scheduling/src ../pino/src ../winston/src ../sentry/src ../kafka/src ../nats/src ../eslint-plugin/src"
|
|
53
56
|
},
|
|
54
57
|
"devDependencies": {
|
|
55
|
-
"@ddd-ts-kit/audit": "^0.
|
|
56
|
-
"@ddd-ts-kit/auth": "^0.
|
|
57
|
-
"@ddd-ts-kit/events": "^0.
|
|
58
|
-
"@ddd-ts-kit/kernel": "^0.
|
|
58
|
+
"@ddd-ts-kit/audit": "^0.107.0",
|
|
59
|
+
"@ddd-ts-kit/auth": "^0.107.0",
|
|
60
|
+
"@ddd-ts-kit/events": "^0.107.0",
|
|
61
|
+
"@ddd-ts-kit/kernel": "^0.107.0",
|
|
59
62
|
"@types/pg": "^8.23.1",
|
|
60
63
|
"pg": "^8.23.1"
|
|
61
64
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
import { authorizationModule } from '@ddd-ts-kit/auth/di';
|
|
3
3
|
import { AllowAll } from '@ddd-ts-kit/auth/testing';
|
|
4
|
-
import {
|
|
4
|
+
import { type ContextModule } from '@ddd-ts-kit/di';
|
|
5
|
+
import { createTestApplication } from '{{di.entry}}';
|
|
5
6
|
import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
|
|
6
7
|
// ddd-ts-kit:imports
|
|
7
8
|
// /ddd-ts-kit:imports
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
import { authorizationModule } from '@ddd-ts-kit/auth/di';
|
|
3
3
|
import { AllowAll } from '@ddd-ts-kit/auth/testing';
|
|
4
|
-
import {
|
|
4
|
+
import { type ContextModule } from '@ddd-ts-kit/di';
|
|
5
|
+
import { createTestApplication } from '{{di.entry}}';
|
|
5
6
|
import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
|
|
6
7
|
// ddd-ts-kit:imports
|
|
7
8
|
// /ddd-ts-kit:imports
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
import { anActor } from '@ddd-ts-kit/auth/testing';
|
|
3
3
|
import type { GuardRequest } from '@ddd-ts-kit/http';
|
|
4
|
-
import { executionContext } from '@ddd-ts-kit/kernel';
|
|
4
|
+
import { type Actor, executionContext } from '@ddd-ts-kit/kernel';
|
|
5
5
|
import { {{name.pascal}}Guard } from '{{alias.context}}/presentation/http/guards/{{name.kebab}}.guard{{alias.ext}}';
|
|
6
6
|
|
|
7
|
-
const actor = anActor().build();
|
|
8
|
-
const execution = executionContext({ correlationId: 'correlation-1', actor, origin: 'http' });
|
|
9
|
-
|
|
10
|
-
const request: GuardRequest = {
|
|
11
|
-
method: 'GET',
|
|
12
|
-
path: '/',
|
|
13
|
-
operationId: 'anOperation',
|
|
14
|
-
params: {},
|
|
15
|
-
headers: {},
|
|
16
|
-
actor,
|
|
17
|
-
context: { requestId: 'request-1', execution, raw: undefined },
|
|
18
|
-
};
|
|
19
|
-
|
|
20
7
|
describe('Who may pass the {{name.words}} guard', () => {
|
|
8
|
+
// TODO(domain): the stub refuses everybody. Once the control is written, hold one test per decision of the guard: who it lets through, who it refuses with 403.
|
|
21
9
|
it('refuses a caller with 403', () => {
|
|
10
|
+
const request = requestOf(anActor().build());
|
|
11
|
+
|
|
22
12
|
expect(() => new {{name.pascal}}Guard().check(request)).toThrow(expect.objectContaining({ code: 'FORBIDDEN' }));
|
|
23
13
|
});
|
|
24
14
|
|
|
25
|
-
// TODO(domain): replace the test above by one per decision of the guard.
|
|
26
15
|
it.todo('lets through the caller it is written for');
|
|
27
16
|
});
|
|
17
|
+
|
|
18
|
+
function requestOf(actor: Actor): GuardRequest {
|
|
19
|
+
return {
|
|
20
|
+
method: 'GET',
|
|
21
|
+
path: '/',
|
|
22
|
+
operationId: 'anOperation',
|
|
23
|
+
params: {},
|
|
24
|
+
headers: {},
|
|
25
|
+
actor,
|
|
26
|
+
context: {
|
|
27
|
+
requestId: 'request-1',
|
|
28
|
+
execution: executionContext({ correlationId: 'correlation-1', actor, origin: 'http' }),
|
|
29
|
+
raw: undefined,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -5,10 +5,8 @@ import { ForbiddenError, Guard, type GuardRequest } from '@ddd-ts-kit/http';
|
|
|
5
5
|
export class {{name.pascal}}Guard implements Guard {
|
|
6
6
|
readonly documents = { errors: ['FORBIDDEN'] };
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
throw new ForbiddenError('The caller may not use these routes');
|
|
12
|
-
}
|
|
8
|
+
// TODO(domain): a guard refuses everybody until it is written. Replace this refusal by the control, read from `actor` and `params` of the request: a role of the caller, a membership read from the path, a key of the request.
|
|
9
|
+
check(_request: GuardRequest): void {
|
|
10
|
+
throw new ForbiddenError('The caller may not use these routes');
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -22,6 +22,6 @@ TODO(domain): the processors and the third parties that receive personal data (m
|
|
|
22
22
|
|
|
23
23
|
## What the code does not purge
|
|
24
24
|
|
|
25
|
-
`npm run privacy:erase` reaches the declared copies, the records of the outbox of the events listed above and the jobs enqueued with the person as `subject`. It does not reach what the code cannot name: a message already delivered to a broker or a consumer, a field of a payload that no `personal` option lists, a job that holds a person in its payload and names no `subject
|
|
25
|
+
`npm run privacy:erase` reaches the declared copies, the records of the outbox of the events listed above and the jobs enqueued with the person as `subject`. It does not reach what the code cannot name: a message already delivered to a broker or a consumer, a field of a payload that no `personal` option lists, a job that holds a person in its payload and names no `subject`, a value a `cached` read keeps of a person, until its time to live. The jobs `events.purge-published` and `jobs.purge-finished` drop what the platform is done with past `OUTBOX_RETENTION_DAYS` and `BACKGROUND_JOBS_RETENTION_DAYS`; dead events and dead jobs wait for an operator.
|
|
26
26
|
|
|
27
27
|
TODO(domain): how long the backups, the logs, the files and the archives of the audit trail keep personal data, and who deletes them.
|
|
@@ -100,7 +100,7 @@ configuration, the storage, and `composeApplication` of `{{config.platformDir}}/
|
|
|
100
100
|
parameter typed by a port class names what is injected (`private readonly clock: Clock`), the
|
|
101
101
|
ports of the kernel included (`Clock`, `IdGenerator`, `CommandBus`, `UnitOfWork`... of
|
|
102
102
|
`@ddd-ts-kit/kernel`).
|
|
103
|
-
{{#if di.
|
|
103
|
+
{{#if di.container}}
|
|
104
104
|
- **Three modules, then the contexts.** `kernelModule({...})` binds the ports of the kernel to what
|
|
105
105
|
this platform chose (one execution scope, one clock, the two buses with their middlewares);
|
|
106
106
|
`platformModule` (`{{config.platformDir}}/composition/platform.module.ts`) rebinds what needs the storage{{#if broker.external}}, the broker{{/if}}{{#if cache.redis}} or the Redis protocol server{{/if}}
|
|
@@ -108,7 +108,7 @@ configuration, the storage, and `composeApplication` of `{{config.platformDir}}/
|
|
|
108
108
|
module binds the guard both buses ask first. Replacing a provider happens in the platform module
|
|
109
109
|
and nowhere else.
|
|
110
110
|
{{/if}}
|
|
111
|
-
{{#unless di.
|
|
111
|
+
{{#unless di.container}}
|
|
112
112
|
- **One `Platform`, handed to each context.** `createPlatform` (`{{config.platformDir}}/composition/create-platform.ts`)
|
|
113
113
|
builds the buses, the clock, the storage and the event ports once; the module file of a context
|
|
114
114
|
receives it and registers its handlers, adapters and jobs on it. Replacing a provider happens
|
|
@@ -151,7 +151,8 @@ configuration, the storage, and `composeApplication` of `{{config.platformDir}}/
|
|
|
151
151
|
| `LOG_FORMAT` | `json` (the default, everywhere) or `pretty` (a developer's terminal) |
|
|
152
152
|
{{/unless}}
|
|
153
153
|
| `LOG_SCRUB_MESSAGES` | `true` writes `[message removed]` for the message of every logged error that is not a `DomainError` |
|
|
154
|
-
| `OTEL_EXPORTER_OTLP_ENDPOINT` | where spans go; left out, none leaves the process. `docker compose --profile observability up -d jaeger`, then `http://127.0.0.1:4318`, and the traces are on `http://127.0.0.1:16686` |
|
|
154
|
+
| `OTEL_EXPORTER_OTLP_ENDPOINT` | where spans and metrics go; left out, none leaves the process. `docker compose --profile observability up -d jaeger`, then `http://127.0.0.1:4318`, and the traces are on `http://127.0.0.1:16686` (Jaeger keeps no metrics) |
|
|
155
|
+
| `OTEL_METRICS_EXPORTER` | `none` keeps the metrics in the process, the spans still leave; left out or `otlp`, they leave with the spans, every `OTEL_METRIC_EXPORT_INTERVAL` milliseconds (60000 by default) |
|
|
155
156
|
| `TRACE_SAMPLE_RATIO` | the share of traces kept, 0 to 1; left out, every trace |
|
|
156
157
|
| `TRACE_CONSUMERS` | `continue` (the default): a consumed event stays in the trace of the request that published it; `link`: each delivery starts a trace linked to it |
|
|
157
158
|
|
|
@@ -246,7 +247,7 @@ Unexpected failures go to an error tracker through the kernel `ErrorReporter`, b
|
|
|
246
247
|
| `SENTRY_DSN` | where the events go. Empty or absent: the application starts and reports nothing. Anything else than a URL refuses the start |
|
|
247
248
|
| `SENTRY_ENVIRONMENT` | the environment issues are filed under; `NODE_ENV` when left out |
|
|
248
249
|
| `SENTRY_RELEASE` | the release issues are attached to; none when left out |
|
|
249
|
-
| `SENTRY_SCRUB_MESSAGES` | `true` removes the message of every reported error that is not a `DomainError`: for a tracker hosted by a third party |
|
|
250
|
+
| `SENTRY_SCRUB_MESSAGES` | `true` removes the message of every reported error that is not a `DomainError`: for a tracker hosted by a third party. Left out, the message is sent with the values a failed statement quotes redacted |
|
|
250
251
|
|
|
251
252
|
| Reported | Not reported |
|
|
252
253
|
|---|---|
|
|
@@ -268,8 +269,9 @@ Unexpected failures go to an error tracker through the kernel `ErrorReporter`, b
|
|
|
268
269
|
One failure is one report: the first boundary that sees an error reports it, the others recognise
|
|
269
270
|
it. Each report carries the trace id of the active span, which opens the trace in the tracing
|
|
270
271
|
backend. What leaves the process is scrubbed first: no request body, header, cookie or query
|
|
271
|
-
string, no local variable, no breadcrumb, no email or name (the actor id only), no tenant
|
|
272
|
-
message of the error is sent
|
|
272
|
+
string, no local variable, no breadcrumb, no email or name (the actor id only), no tenant, no
|
|
273
|
+
value a failed statement quotes. The message of the error is sent, the statement it quotes with
|
|
274
|
+
its values redacted: `scrubMessages: true` in `{{config.platformDir}}/observability/errors.ts` removes
|
|
273
275
|
it for everything that is not a `DomainError`, which is the setting for a tracker hosted by a
|
|
274
276
|
third party. The README of `@ddd-ts-kit/sentry` has the full table and the other options
|
|
275
277
|
(`sampleRate`, `tagTenant`, `beforeSend`).
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
FROM node:24-slim AS build
|
|
4
4
|
WORKDIR /app
|
|
5
|
-
{{#if pm.corepack}}
|
|
6
|
-
# corepack provides the release of the package manager that package.json pins.
|
|
7
|
-
RUN corepack enable
|
|
8
|
-
{{/if}}
|
|
9
5
|
COPY package.json package-lock.json{{#if pm.pnpm}} pnpm-workspace.yaml{{/if}} ./
|
|
6
|
+
{{#if pm.pinned}}
|
|
7
|
+
# npm installs the release of pnpm that package.json pins: Node 25 and later ship no corepack.
|
|
8
|
+
RUN npm install --global "$(node -p "require('./package.json').packageManager")"
|
|
9
|
+
{{/if}}
|
|
10
10
|
RUN npm ci
|
|
11
11
|
COPY . .
|
|
12
12
|
RUN npm run build
|
|
13
13
|
|
|
14
14
|
FROM node:24-slim AS dependencies
|
|
15
15
|
WORKDIR /app
|
|
16
|
-
{{#if pm.corepack}}
|
|
17
|
-
RUN corepack enable
|
|
18
|
-
{{/if}}
|
|
19
16
|
COPY package.json package-lock.json{{#if pm.pnpm}} pnpm-workspace.yaml{{/if}} ./
|
|
17
|
+
{{#if pm.pinned}}
|
|
18
|
+
RUN npm install --global "$(node -p "require('./package.json').packageManager")"
|
|
19
|
+
{{/if}}
|
|
20
20
|
RUN npm ci --omit=dev
|
|
21
21
|
|
|
22
22
|
FROM node:24-slim
|
|
@@ -191,6 +191,8 @@ MINIO_PORT=9000
|
|
|
191
191
|
# Traces: start Jaeger with `docker compose --profile observability up -d jaeger`, then open http://127.0.0.1:16686
|
|
192
192
|
# Without an endpoint no span leaves the process.
|
|
193
193
|
# OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
|
|
194
|
+
# The metrics leave with the spans, every OTEL_METRIC_EXPORT_INTERVAL milliseconds (60000 by default). This keeps the metrics in the process, the spans still leave:
|
|
195
|
+
# OTEL_METRICS_EXPORTER=none
|
|
194
196
|
# Share of the traces kept, 0 to 1, decided where a trace starts; left out, every trace is kept.
|
|
195
197
|
# TRACE_SAMPLE_RATIO=1
|
|
196
198
|
# continue: a consumed event stays in the trace of the request that published it. link: each delivery starts its own trace, linked to it.
|