ddd-ts-kit 0.94.1 → 0.95.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 +50 -0
- package/README.fr.md +26 -15
- package/README.md +26 -16
- package/dist/build/rewrite-aliases.js +1 -1
- package/dist/build/rewrite-aliases.js.map +1 -1
- package/dist/check/canonical/stray-entry.js +7 -1
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +2 -0
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/configuration/context-tenancy.d.ts +10 -0
- package/dist/check/configuration/context-tenancy.d.ts.map +1 -0
- package/dist/check/configuration/context-tenancy.js +16 -0
- package/dist/check/configuration/context-tenancy.js.map +1 -0
- package/dist/check/errors/listed-codes.d.ts +1 -1
- package/dist/check/errors/listed-codes.d.ts.map +1 -1
- package/dist/check/errors/listed-codes.js +15 -3
- package/dist/check/errors/listed-codes.js.map +1 -1
- package/dist/check/explain/language-docs.js +1 -1
- package/dist/check/explain/language-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/explain/tenancy-docs.js +1 -1
- package/dist/check/explain/tenancy-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.js +2 -2
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +13 -0
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/config.js +2 -1
- package/dist/check/fixtures/config.js.map +1 -1
- package/dist/check/fixtures/control-plane-fixtures.d.ts +4 -0
- package/dist/check/fixtures/control-plane-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/control-plane-fixtures.js +41 -0
- package/dist/check/fixtures/control-plane-fixtures.js.map +1 -0
- package/dist/check/fixtures/files-fixtures.js +2 -2
- package/dist/check/fixtures/files-fixtures.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/governance-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/governance-fixtures.js +15 -0
- package/dist/check/fixtures/governance-fixtures.js.map +1 -1
- package/dist/check/fixtures/language-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/language-fixtures.js +22 -0
- package/dist/check/fixtures/language-fixtures.js.map +1 -1
- package/dist/check/fixtures/privacy-fixtures.js +2 -2
- package/dist/check/fixtures/privacy-fixtures.js.map +1 -1
- package/dist/check/fixtures/shared-kernel-fixtures.d.ts +3 -0
- package/dist/check/fixtures/shared-kernel-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/shared-kernel-fixtures.js +60 -0
- package/dist/check/fixtures/shared-kernel-fixtures.js.map +1 -0
- package/dist/check/fixtures/shared-kernel-glossary.d.ts +7 -0
- package/dist/check/fixtures/shared-kernel-glossary.d.ts.map +1 -0
- package/dist/check/fixtures/shared-kernel-glossary.js +12 -0
- package/dist/check/fixtures/shared-kernel-glossary.js.map +1 -0
- package/dist/check/fixtures/standard-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/standard-fixtures.js +2 -0
- package/dist/check/fixtures/standard-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-adapters.d.ts +20 -0
- package/dist/check/fixtures/tenancy-adapters.d.ts.map +1 -0
- package/dist/check/fixtures/tenancy-adapters.js +10 -0
- package/dist/check/fixtures/tenancy-adapters.js.map +1 -0
- package/dist/check/fixtures/tenancy-bypass.d.ts +2 -21
- package/dist/check/fixtures/tenancy-bypass.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-bypass.js +2 -10
- package/dist/check/fixtures/tenancy-bypass.js.map +1 -1
- package/dist/check/fixtures/tenancy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-fixtures.js +2 -0
- package/dist/check/fixtures/tenancy-fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +17 -0
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/fixtures/value-object-file-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/value-object-file-fixtures.js +2 -0
- package/dist/check/fixtures/value-object-file-fixtures.js.map +1 -1
- package/dist/check/language/add-glossary-rows.d.ts +1 -0
- package/dist/check/language/add-glossary-rows.d.ts.map +1 -1
- package/dist/check/language/add-glossary-rows.js +7 -2
- package/dist/check/language/add-glossary-rows.js.map +1 -1
- package/dist/check/language/glossaries.d.ts +8 -2
- package/dist/check/language/glossaries.d.ts.map +1 -1
- package/dist/check/language/glossaries.js +28 -18
- package/dist/check/language/glossaries.js.map +1 -1
- package/dist/check/language/held-by-glossary.d.ts +8 -0
- package/dist/check/language/held-by-glossary.d.ts.map +1 -0
- package/dist/check/language/held-by-glossary.js +19 -0
- package/dist/check/language/held-by-glossary.js.map +1 -0
- package/dist/check/language/technical-words-of.d.ts +9 -0
- package/dist/check/language/technical-words-of.d.ts.map +1 -0
- package/dist/check/language/technical-words-of.js +15 -0
- package/dist/check/language/technical-words-of.js.map +1 -0
- package/dist/check/privacy/prisma-columns-of.d.ts +5 -5
- package/dist/check/privacy/prisma-columns-of.d.ts.map +1 -1
- package/dist/check/privacy/prisma-columns-of.js +25 -12
- package/dist/check/privacy/prisma-columns-of.js.map +1 -1
- package/dist/check/project/beside-the-sources.js +1 -1
- package/dist/check/project/beside-the-sources.js.map +1 -1
- package/dist/check/project/git-ignored.d.ts +11 -0
- package/dist/check/project/git-ignored.d.ts.map +1 -0
- package/dist/check/project/git-ignored.js +26 -0
- package/dist/check/project/git-ignored.js.map +1 -0
- package/dist/check/project/load-loose-project.js +1 -1
- package/dist/check/project/load-loose-project.js.map +1 -1
- package/dist/check/project/load-project.d.ts.map +1 -1
- package/dist/check/project/load-project.js +13 -2
- package/dist/check/project/load-project.js.map +1 -1
- package/dist/check/project/locate.js +2 -1
- package/dist/check/project/locate.js.map +1 -1
- package/dist/check/project/walk-directory.d.ts +10 -2
- package/dist/check/project/walk-directory.d.ts.map +1 -1
- package/dist/check/project/walk-directory.js +9 -4
- package/dist/check/project/walk-directory.js.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.js +14 -1
- package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
- package/dist/check/rules/language-glossary-term.js +38 -18
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
- package/dist/check/rules/language-no-technical-name.js +9 -7
- package/dist/check/rules/language-no-technical-name.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +1 -1
- package/dist/check/rules/privacy-declared-field.js +1 -1
- package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.js +8 -6
- package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
- package/dist/commands/acceptance.js +6 -2
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +3 -2
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +13 -5
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +2 -4
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +11 -3
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +10 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +3 -2
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/print-report.d.ts +3 -3
- package/dist/commands/print-report.d.ts.map +1 -1
- package/dist/commands/print-report.js +10 -3
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/sdk.js +1 -2
- package/dist/commands/sdk.js.map +1 -1
- package/dist/config/config.d.ts +7 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/context-tenancies.d.ts +7 -0
- package/dist/config/context-tenancies.d.ts.map +1 -0
- package/dist/config/context-tenancies.js +7 -0
- package/dist/config/context-tenancies.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/is-control-plane.d.ts +4 -0
- package/dist/config/is-control-plane.d.ts.map +1 -0
- package/dist/config/is-control-plane.js +5 -0
- package/dist/config/is-control-plane.js.map +1 -0
- package/dist/config/parse-context.d.ts.map +1 -1
- package/dist/config/parse-context.js +1 -0
- package/dist/config/parse-context.js.map +1 -1
- package/dist/config/serialize-config.js +1 -0
- package/dist/config/serialize-config.js.map +1 -1
- package/dist/dev/refresh-declarations.d.ts.map +1 -1
- package/dist/dev/refresh-declarations.js +2 -1
- package/dist/dev/refresh-declarations.js.map +1 -1
- package/dist/doctor/permission-findings.d.ts.map +1 -1
- package/dist/doctor/permission-findings.js +15 -2
- package/dist/doctor/permission-findings.js.map +1 -1
- package/dist/generate/concept.d.ts +2 -2
- package/dist/generate/concept.js +3 -3
- package/dist/generate/concept.js.map +1 -1
- package/dist/generate/context-vars.d.ts +5 -2
- package/dist/generate/context-vars.d.ts.map +1 -1
- package/dist/generate/context-vars.js +6 -3
- package/dist/generate/context-vars.js.map +1 -1
- package/dist/generate/errors/codes-of-context.d.ts +1 -1
- package/dist/generate/errors/codes-of-context.d.ts.map +1 -1
- package/dist/generate/errors/codes-of-context.js +10 -2
- package/dist/generate/errors/codes-of-context.js.map +1 -1
- package/dist/generate/errors/refusal-class-name.d.ts +1 -1
- package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
- package/dist/generate/errors/refusal-class-name.js +2 -2
- package/dist/generate/errors/refusal-class-name.js.map +1 -1
- package/dist/generate/glossary-of.d.ts +5 -0
- package/dist/generate/glossary-of.d.ts.map +1 -0
- package/dist/generate/glossary-of.js +6 -0
- package/dist/generate/glossary-of.js.map +1 -0
- package/dist/generate/is-shared-kernel.d.ts +4 -0
- package/dist/generate/is-shared-kernel.d.ts.map +1 -0
- package/dist/generate/is-shared-kernel.js +5 -0
- package/dist/generate/is-shared-kernel.js.map +1 -0
- package/dist/generate/kind.d.ts +8 -6
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.js +1 -0
- package/dist/generate/kinds/acceptance-kind.js.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +1 -0
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +57 -7
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.js +1 -0
- package/dist/generate/kinds/adr-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +1 -0
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +1 -0
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +1 -0
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +1 -0
- 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 +3 -1
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/context-request.d.ts +2 -0
- package/dist/generate/kinds/context-request.d.ts.map +1 -1
- package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
- package/dist/generate/kinds/declare-storage.js +15 -9
- package/dist/generate/kinds/declare-storage.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +7 -4
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-event-kind.js +1 -0
- package/dist/generate/kinds/domain-event-kind.js.map +1 -1
- package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-service-kind.js +1 -0
- package/dist/generate/kinds/domain-service-kind.js.map +1 -1
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +1 -0
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
- package/dist/generate/kinds/entity-kind.js +1 -0
- package/dist/generate/kinds/entity-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 +1 -0
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/error-kind.js +6 -5
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/event-handler-kind.js +1 -0
- package/dist/generate/kinds/event-handler-kind.js.map +1 -1
- package/dist/generate/kinds/extend-event-sourced-aggregate.d.ts +4 -2
- package/dist/generate/kinds/extend-event-sourced-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/extend-event-sourced-aggregate.js +45 -10
- package/dist/generate/kinds/extend-event-sourced-aggregate.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +1 -0
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.d.ts.map +1 -1
- package/dist/generate/kinds/form-kind.js +1 -0
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +1 -0
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/generate-repository.js +11 -7
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
- package/dist/generate/kinds/guard-kind.js +1 -0
- package/dist/generate/kinds/guard-kind.js.map +1 -1
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +1 -0
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +1 -0
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +1 -0
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.d.ts.map +1 -1
- package/dist/generate/kinds/module-kind.js +1 -0
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/plan-vars.d.ts.map +1 -1
- package/dist/generate/kinds/plan-vars.js +5 -2
- 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 +1 -0
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +4 -2
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +1 -0
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +4 -5
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.d.ts.map +1 -1
- package/dist/generate/kinds/property-kind.js +1 -0
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +1 -0
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
- package/dist/generate/kinds/repository-kind.js +1 -0
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
- package/dist/generate/kinds/representation-kind.js +1 -0
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-group-kind.js +1 -0
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-kind.js +1 -0
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
- package/dist/generate/kinds/schema-kind.js +4 -9
- package/dist/generate/kinds/schema-kind.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +1 -0
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +1 -0
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +1 -0
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
- package/dist/generate/kinds/value-object-kind.js +5 -4
- package/dist/generate/kinds/value-object-kind.js.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.js +1 -0
- package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +1 -0
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/kinds-help.d.ts +2 -0
- package/dist/generate/kinds-help.d.ts.map +1 -1
- package/dist/generate/kinds-help.js +5 -2
- package/dist/generate/kinds-help.js.map +1 -1
- package/dist/generate/label.d.ts +4 -1
- package/dist/generate/label.d.ts.map +1 -1
- package/dist/generate/label.js +24 -3
- package/dist/generate/label.js.map +1 -1
- package/dist/generate/learn-terms.d.ts.map +1 -1
- package/dist/generate/learn-terms.js +7 -1
- package/dist/generate/learn-terms.js.map +1 -1
- package/dist/generate/open-scope.d.ts +7 -2
- package/dist/generate/open-scope.d.ts.map +1 -1
- package/dist/generate/open-scope.js +14 -2
- package/dist/generate/open-scope.js.map +1 -1
- package/dist/generate/parse-terms.d.ts +7 -1
- package/dist/generate/parse-terms.d.ts.map +1 -1
- package/dist/generate/parse-terms.js +14 -4
- package/dist/generate/parse-terms.js.map +1 -1
- package/dist/generate/place-generated-files.d.ts +2 -2
- package/dist/generate/place-generated-files.d.ts.map +1 -1
- package/dist/generate/place-generated-files.js +7 -7
- package/dist/generate/place-generated-files.js.map +1 -1
- package/dist/generate/refuse-shared-writes.d.ts +2 -2
- package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
- package/dist/generate/refuse-shared-writes.js +25 -4
- package/dist/generate/refuse-shared-writes.js.map +1 -1
- package/dist/generate/shared-kernel-placement.d.ts +9 -0
- package/dist/generate/shared-kernel-placement.d.ts.map +1 -0
- package/dist/generate/shared-kernel-placement.js +20 -0
- package/dist/generate/shared-kernel-placement.js.map +1 -0
- package/dist/generate/shared-kernel-scope.d.ts +11 -0
- package/dist/generate/shared-kernel-scope.d.ts.map +1 -0
- package/dist/generate/shared-kernel-scope.js +12 -0
- package/dist/generate/shared-kernel-scope.js.map +1 -0
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +26 -2
- package/dist/generate/shared-writes.js.map +1 -1
- package/dist/generate/spoken-in-language.d.ts +3 -3
- package/dist/generate/spoken-in-language.d.ts.map +1 -1
- package/dist/generate/spoken-in-language.js +14 -14
- package/dist/generate/spoken-in-language.js.map +1 -1
- package/dist/generate/usage-of.d.ts +6 -0
- package/dist/generate/usage-of.d.ts.map +1 -0
- package/dist/generate/usage-of.js +7 -0
- package/dist/generate/usage-of.js.map +1 -0
- package/dist/generate/vars.d.ts.map +1 -1
- package/dist/generate/vars.js +9 -1
- package/dist/generate/vars.js.map +1 -1
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +20 -5
- package/dist/help/notes.js.map +1 -1
- package/dist/help/reference-text.d.ts.map +1 -1
- package/dist/help/reference-text.js +2 -1
- package/dist/help/reference-text.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +1 -1
- package/dist/init/agent-permissions.d.ts +7 -0
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +19 -8
- package/dist/init/agent-permissions.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/first-install-note.d.ts +9 -0
- package/dist/init/first-install-note.d.ts.map +1 -0
- package/dist/init/first-install-note.js +31 -0
- package/dist/init/first-install-note.js.map +1 -0
- package/dist/init/manifest/database-scripts.js +2 -2
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/merge-sandbox.d.ts +3 -1
- package/dist/init/merge-sandbox.d.ts.map +1 -1
- package/dist/init/merge-sandbox.js +25 -7
- package/dist/init/merge-sandbox.js.map +1 -1
- package/dist/init/regulated-sandbox.d.ts +6 -4
- package/dist/init/regulated-sandbox.d.ts.map +1 -1
- package/dist/init/regulated-sandbox.js +11 -5
- package/dist/init/regulated-sandbox.js.map +1 -1
- package/dist/init/run-init.d.ts +2 -0
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +27 -4
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack-sandbox.d.ts +9 -0
- package/dist/init/stack-sandbox.d.ts.map +1 -0
- package/dist/init/stack-sandbox.js +28 -0
- package/dist/init/stack-sandbox.js.map +1 -0
- package/dist/init/write-agent-settings.d.ts.map +1 -1
- package/dist/init/write-agent-settings.js +26 -16
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/merge/abort-merge.d.ts.map +1 -1
- package/dist/merge/abort-merge.js +38 -6
- package/dist/merge/abort-merge.js.map +1 -1
- package/dist/merge/commit-merge.d.ts.map +1 -1
- package/dist/merge/commit-merge.js +1 -16
- package/dist/merge/commit-merge.js.map +1 -1
- package/dist/merge/continue-merge.d.ts.map +1 -1
- package/dist/merge/continue-merge.js +2 -0
- package/dist/merge/continue-merge.js.map +1 -1
- package/dist/merge/is-merge-path.d.ts +4 -0
- package/dist/merge/is-merge-path.d.ts.map +1 -0
- package/dist/merge/is-merge-path.js +18 -0
- package/dist/merge/is-merge-path.js.map +1 -0
- package/dist/merge/modified-since-staged.d.ts +4 -0
- package/dist/merge/modified-since-staged.d.ts.map +1 -0
- package/dist/merge/modified-since-staged.js +8 -0
- package/dist/merge/modified-since-staged.js.map +1 -0
- package/dist/merge/stage-rewritten.d.ts +8 -0
- package/dist/merge/stage-rewritten.d.ts.map +1 -0
- package/dist/merge/stage-rewritten.js +15 -0
- package/dist/merge/stage-rewritten.js.map +1 -0
- package/dist/naming/parse-concept-name.d.ts +5 -3
- package/dist/naming/parse-concept-name.d.ts.map +1 -1
- package/dist/naming/parse-concept-name.js +6 -10
- package/dist/naming/parse-concept-name.js.map +1 -1
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +6 -4
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/identity-preset.d.ts.map +1 -1
- package/dist/presets/identity-preset.js +1 -4
- package/dist/presets/identity-preset.js.map +1 -1
- package/dist/presets/lay-out-prisma-models.d.ts +4 -4
- package/dist/presets/lay-out-prisma-models.d.ts.map +1 -1
- package/dist/presets/lay-out-prisma-models.js +15 -12
- package/dist/presets/lay-out-prisma-models.js.map +1 -1
- package/dist/presets/outside-the-tenancy.d.ts +10 -0
- package/dist/presets/outside-the-tenancy.d.ts.map +1 -0
- package/dist/presets/outside-the-tenancy.js +31 -0
- package/dist/presets/outside-the-tenancy.js.map +1 -0
- package/dist/presets/preset-decision.d.ts +1 -1
- package/dist/presets/preset-decision.js +1 -1
- package/dist/presets/preset.d.ts +1 -1
- package/dist/prisma-schema/index.d.ts +7 -0
- package/dist/prisma-schema/index.d.ts.map +1 -0
- package/dist/prisma-schema/index.js +7 -0
- package/dist/prisma-schema/index.js.map +1 -0
- package/dist/prisma-schema/prisma-blocks.d.ts +9 -0
- package/dist/prisma-schema/prisma-blocks.d.ts.map +1 -0
- package/dist/prisma-schema/prisma-blocks.js +15 -0
- package/dist/prisma-schema/prisma-blocks.js.map +1 -0
- package/dist/prisma-schema/prisma-main-schema.d.ts +3 -0
- package/dist/prisma-schema/prisma-main-schema.d.ts.map +1 -0
- package/dist/prisma-schema/prisma-main-schema.js +4 -0
- package/dist/prisma-schema/prisma-main-schema.js.map +1 -0
- package/dist/prisma-schema/prisma-schema-folder.d.ts +3 -0
- package/dist/prisma-schema/prisma-schema-folder.d.ts.map +1 -0
- package/dist/prisma-schema/prisma-schema-folder.js +3 -0
- package/dist/prisma-schema/prisma-schema-folder.js.map +1 -0
- package/dist/prisma-schema/prisma-schema-of.d.ts +7 -0
- package/dist/prisma-schema/prisma-schema-of.d.ts.map +1 -0
- package/dist/prisma-schema/prisma-schema-of.js +10 -0
- package/dist/prisma-schema/prisma-schema-of.js.map +1 -0
- package/dist/prisma-schema/schema-at.d.ts +4 -0
- package/dist/prisma-schema/schema-at.d.ts.map +1 -0
- package/dist/prisma-schema/schema-at.js +5 -0
- package/dist/prisma-schema/schema-at.js.map +1 -0
- package/dist/prisma-schema/schema-of-context.d.ts +3 -0
- package/dist/prisma-schema/schema-of-context.d.ts.map +1 -0
- package/dist/prisma-schema/schema-of-context.js +5 -0
- package/dist/prisma-schema/schema-of-context.js.map +1 -0
- package/dist/progress/read-remaining.d.ts.map +1 -1
- package/dist/progress/read-remaining.js +49 -6
- package/dist/progress/read-remaining.js.map +1 -1
- package/dist/slice/plan-staging.d.ts +7 -4
- package/dist/slice/plan-staging.d.ts.map +1 -1
- package/dist/slice/plan-staging.js +23 -5
- package/dist/slice/plan-staging.js.map +1 -1
- package/dist/slice/staging-scope.d.ts +9 -0
- package/dist/slice/staging-scope.d.ts.map +1 -0
- package/dist/slice/staging-scope.js +2 -0
- package/dist/slice/staging-scope.js.map +1 -0
- package/dist/slice/storage-of-slice.d.ts +14 -0
- package/dist/slice/storage-of-slice.d.ts.map +1 -0
- package/dist/slice/storage-of-slice.js +79 -0
- package/dist/slice/storage-of-slice.js.map +1 -0
- package/dist/slice/verify-slice.d.ts.map +1 -1
- package/dist/slice/verify-slice.js +3 -1
- package/dist/slice/verify-slice.js.map +1 -1
- package/dist/stack/audit-vars.js +1 -1
- package/dist/stack/audit-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +7 -0
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/progress-of.d.ts.map +1 -1
- package/dist/worker/progress-of.js +4 -1
- package/dist/worker/progress-of.js.map +1 -1
- package/dist/workspace/cannot-write.d.ts +7 -0
- package/dist/workspace/cannot-write.d.ts.map +1 -0
- package/dist/workspace/cannot-write.js +36 -0
- package/dist/workspace/cannot-write.js.map +1 -0
- package/dist/workspace/error-code-of.d.ts +3 -0
- package/dist/workspace/error-code-of.d.ts.map +1 -0
- package/dist/workspace/error-code-of.js +5 -0
- package/dist/workspace/error-code-of.js.map +1 -0
- package/dist/workspace/exit-code-of.d.ts +6 -0
- package/dist/workspace/exit-code-of.d.ts.map +1 -0
- package/dist/workspace/exit-code-of.js +7 -0
- package/dist/workspace/exit-code-of.js.map +1 -0
- package/dist/workspace/index.d.ts +2 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +2 -0
- package/dist/workspace/index.js.map +1 -1
- package/dist/workspace/is-file-or-absent.d.ts +3 -0
- package/dist/workspace/is-file-or-absent.d.ts.map +1 -0
- package/dist/workspace/is-file-or-absent.js +11 -0
- package/dist/workspace/is-file-or-absent.js.map +1 -0
- package/dist/workspace/prune-emptied.d.ts +3 -0
- package/dist/workspace/prune-emptied.d.ts.map +1 -0
- package/dist/workspace/prune-emptied.js +12 -0
- package/dist/workspace/prune-emptied.js.map +1 -0
- package/dist/workspace/tell-unwritable.d.ts +9 -0
- package/dist/workspace/tell-unwritable.d.ts.map +1 -0
- package/dist/workspace/tell-unwritable.js +10 -0
- package/dist/workspace/tell-unwritable.js.map +1 -0
- package/dist/workspace/workspace-report.d.ts +3 -0
- package/dist/workspace/workspace-report.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +15 -4
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +47 -27
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +3 -0
- package/dist/workspace/write-if-allowed.d.ts.map +1 -0
- package/dist/workspace/write-if-allowed.js +20 -0
- package/dist/workspace/write-if-allowed.js.map +1 -0
- package/package.json +4 -4
- package/templates/adapter/simulated.declared.ts.tpl +7 -0
- package/templates/adapter/simulated.spec.ts.tpl +12 -0
- package/templates/adapter/simulated.ts.tpl +5 -0
- package/templates/adapter/simulated.wiring.tsyringe.tpl +5 -0
- package/templates/context/CONTEXT.md.tpl +1 -1
- package/templates/init/README.md.tpl +1 -1
- package/templates/init/platform/audit/create-audit.ts.tpl +1 -1
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +24 -17
- package/templates/init/platform/database/create-client.prisma.ts.tpl +1 -1
- package/templates/init/platform/database/open-test-database.prisma.ts.tpl +1 -1
- package/templates/init/platform/database/persistence-over.prisma.ts.tpl +2 -2
- package/templates/init/platform/database/prisma.config.ts.tpl +2 -1
- package/templates/init/platform/database/schema.prisma.tpl +3 -4
- package/templates/init/platform/event-sourcing/create-event-sourcing.ts.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +2 -1
- package/templates/pipeline/github/actions/setup/action.yml.tpl +1 -1
- package/templates/pipeline/gitlab/gitlab-ci.yml.tpl +1 -1
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation-tenant-directory.reader.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-search-members-reader.repository.drizzle.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-organisation-tenant-directory.reader.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/knex-search-members-reader.repository.knex.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation-tenant-directory.reader.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/context/infrastructure/persistence/prisma-search-members-reader.repository.prisma.ts.tpl +0 -3
- package/templates/presets/identity/decision.md.tpl +9 -6
- package/templates/presets/identity/design.md.tpl +4 -1
- package/templates/repository/prisma/schema.prisma.tpl +4 -0
- package/templates/shared-kernel/CONTEXT.md.tpl +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,56 @@ What each version changes for someone who uses the kit. The packages of `package
|
|
|
4
4
|
together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
|
|
5
5
|
list the pull requests behind it.
|
|
6
6
|
|
|
7
|
+
## 0.95.0
|
|
8
|
+
|
|
9
|
+
**The bare project of a wide stack passes its lint.** With `--audit on` and a tenancy, `src/platform/event-sourcing/create-event-sourcing.ts` imported `ExecutionScope` without using it, an error of `@typescript-eslint/no-unused-vars`; it is imported only where it is used, without the audit. On a composition by hand (manual or Nest DI), `composeApplication` grew a line with each option, and with audit, Sentry, presentation, Nest routes, files over HTTP, an external broker, rate limiting and Redis it reached 31 lines, over the limit of `clean/function-size`: the boundary of the HTTP server is now built by a function of its own, `boundaryOf`, placed under it. To move: a project whose lint reports either finding drops the import, or moves the `httpBoundary({...})` literal of `composeApplication` into a function `boundaryOf(platform, options, presentation)` placed under it.
|
|
10
|
+
|
|
11
|
+
**`generate context` writes the three cells of each glossary row and the sentence of its classification.** `--term "<Term>=<meaning>|<not to be confused with>"` fills the "Not to be confused with" cell, on every generator that takes `--term`; a pipe is the one character a cell of the table cannot hold, so it never clashes with a meaning, and a second one is refused. `generate context --reason "<one sentence>"` writes the line under `## Classification` in place of its `TODO(domain)`. The `bootstrap` skill passes both, so the draft `docs/architecture/glossary.md` is deleted without losing a cell.
|
|
12
|
+
|
|
13
|
+
**Under a tenancy, the identity preset declares its context the control plane of the tenants instead of writing seven suppressions, and a fresh project prints the passing line its `AGENTS.md` names.** `generate context identity --preset identity` with `--tenancy shared-table` wrote a `ddd-ts-kit-disable-next-line tenancy/scoped-statement` in each of the seven adapters of the context, and `check` printed `0 errors, 0 warnings, 7 suppressions` where the guide of the project gives `0 suppressions` as the line of a pass. A context now says where it stands against the tenancy of the project: `"tenancy": "control-plane"` under `contexts.<name>` of `ddd-ts-kit.config.json`, for a context that decides who belongs to which tenant and whose tables belong to none. `tenancy/scoped-statement` does not judge its adapters, `generate repository` confines none of its repositories (unless `--tenant-scoped` is passed), `governance/recorded-deviation` asks for the entry `contexts.<name>.tenancy` of `deviations` with its decision record, and `config/valid` reports another value. The preset writes the key, the entry and its record `docs/adr/NNNN-<context>-is-the-control-plane-of-the-tenants.md`, and its adapters carry no suppression on Drizzle, Knex and Prisma (it is not written for TypeORM). The `persistence` skill says to declare such a context rather than suppress its statements.
|
|
14
|
+
|
|
15
|
+
To move, optional since the suppressions keep passing: in a project that ran the preset under a tenancy, add `"tenancy": "control-plane"` to the entry of the identity context under `contexts`, add `{ "what": "contexts.identity.tenancy", "adr": "0001", "reason": "The identity context is the control plane of the tenants: it decides who belongs to which, and its rows belong to none of them." }` to `deviations` (the number of the record the preset wrote), then remove the seven `ddd-ts-kit-disable-next-line tenancy/scoped-statement` lines of `src/contexts/identity/infrastructure/persistence/`. `check` then prints `0 suppressions`.
|
|
16
|
+
|
|
17
|
+
**`init` no longer stops midway when a sandbox protects a path: it writes every other file and gives the command to finish.** Under the sandbox of Claude Code, which the regulated profile turns on, the agent cannot write `.claude/settings.json` nor `.claude/hooks/`, and `init` stopped with `EEXIST` after part of its files, leaving a project that could not be verified. It now leaves out each file it cannot write, lists it under `unwritable` (and in `skipped`) of its report, a dry run included, and ends with a note that gives the same `init` to run from a terminal outside the sandbox: it writes the missing files and keeps the ones written. It exits with the new code 3, so that a script or an agent never reads a half-written project as done. A file the sandbox masks with a device is reported as unwritable, no longer as an existing file to keep. Every command that writes files (`generate`, `docs`, `sdk`, the moves) reports a protected path the same way and exits 3, and then deletes nothing, so that a move whose target is protected loses no file. The `bootstrap` skill hands the real `init` and `npm run hooks:install` to the owner in a sandboxed session: the agent runs the dry run and shows the command, the owner runs `init`, the agent resumes at `npm install`, and the owner installs the git hooks before the first commit.
|
|
18
|
+
|
|
19
|
+
**`generate --help` shows `[--module <module>]` on every kind that takes it, and the other kinds refuse `--module`.** In a context divided into modules of its model, the generator refuses a file of a layer written without `--module`, yet no kind showed the flag in its usage: an agent that read `generate --help --json` left it out. The usage line of the 31 kinds that write the files the modules divide (the model, the use cases, their routes, ports, adapters, gateways, policies, events, jobs and projections) now ends with `[--module <module>]`, `generate --help --json` gives `writesInModules` for each kind, and the note of `--module` says that a context with modules requires it. A kind that writes only what the context keeps aside or what lies outside the contexts (`builder`, `test-world`, `route-group`, `guard`, `schema`, `e2e`, `service`, `module`, `context`, `acceptance`, `worker`, `adr`) refuses `--module` instead of ignoring it: `generate service servicing --module ledger` was accepted with no effect, and `generate guard ... --module` wrote the spec of a guard kept at the level of the context into the module. The plan-slices and scaffold skills say which commands carry it.
|
|
20
|
+
|
|
21
|
+
To move: drop `--module` from a command of one of those twelve kinds, in a plan or a script.
|
|
22
|
+
|
|
23
|
+
**Under the sandbox of Claude Code, `docs:generate` and `acceptance --lock` write their files again, and the regulated profile lets the agent install the stack `init` chose.** The sandbox turns an `Edit` deny rule into a path no shell command writes, so the deny rules `init` wrote on the generated contracts and the lock of an acceptance (`Edit(./openapi/**)`, `Edit(./docs/integration/asyncapi.*)`, `Edit(./docs/integration/event-catalog.md)`, `Edit(./test/acceptance/*.acceptance.lock.json)`) made their own generators fail with `EROFS`. They are `ask` rules now, which keep the Edit tool off the files without reaching the sandbox; the guard of the plugin still refuses a hand edit of them, and now of the forms of `openapi/forms/` too. `init --agent-profile regulated` derives the sandbox from the stack: `sandbox.filesystem.allowWrite` holds the cache of the package manager (`~/.npm`, or the store and the cache of pnpm) and `~/.cache/prisma` under `--orm prisma`, and `sandbox.network.allowedDomains` gains `binaries.prisma.sh` under Prisma and `github.com` and `release-assets.githubusercontent.com` under `--broker kafka`, where the prebuilt binary of the Kafka client comes from. A list the project already holds gains the entries it lacks, and `doctor` names them. The notes of `init` say that the owner runs the first install outside the agent (a path missing when a session starts stays read-only for that session), that the Kafka client built from sources needs more than the sandbox allows, and that a sandbox the managed settings require ignores these entries of the project file, which then go into the managed settings. `docs/guides/agent-sandbox.md` says the same.
|
|
24
|
+
|
|
25
|
+
To move: run `npx ddd-ts-kit init` again. It takes the four deny rules out of `permissions.deny` and asks for them instead, and under the regulated profile it adds the paths and the hosts of the stack to the sandbox block. Then run the first install yourself, outside the agent.
|
|
26
|
+
|
|
27
|
+
**The guard no longer refuses `cd <worktree> && git add <verdict> && git commit`, nor `sed -n` on a verdict.** A command that names the lock of an acceptance or a verdict of the `acceptance-judge` agent was refused as soon as one of its programs was not a reader, so a chain that started with `cd` could not version a verdict, and `sed -n 1,30p` could not read one. `cd`, `pushd`, `popd`, `pwd`, `true` and `test` now touch nothing, and `sed` without `-i` (nor a script that writes with `w`, `W` or `e`), `awk` whose program writes nothing (no `>`, pipe, `system`, `@include` nor script file), `less` without a log file and `jq` read. A redirection to a file is still a write. The rules of a worker now follow `pushd` and `popd` as they follow `cd`, to judge where its commands write.
|
|
28
|
+
|
|
29
|
+
**Under Jest, `pending(...)` of `@ddd-ts-kit/testing/e2e` reads a failed assertion of `node:assert` as an assertion.** Jest runs a spec in a vm context, and `node:assert`, a core module, throws its `AssertionError` from the outer realm: it is not an instance of the `Error` the kit sees there, so `pending` stopped before it read its name, and a scenario waiting for its route, failing on `expectStatus` as expected, was reported as a broken scenario (`The scenario stops on AssertionError [ERR_ASSERTION]: ..., not on an assertion`). `pending` and `eventually` now read a failure by its shape (a string `name` and `message`), never by `instanceof Error`, and `expectRefusal` and `thenError` name the class of an error of another realm instead of printing it whole. A cycle of causes no longer makes `pending` loop.
|
|
30
|
+
|
|
31
|
+
**`ddd-ts-kit check` reads the source root as git sees it: an ignored folder or a dot-directory in a context is no longer reported by `tree/closed`.** The Claude Code sandbox leaves `.claude/.cc-writes/` in a folder where a command ran, and a context that held it failed `tree/closed` (and with it `check:arch` and `verify`) with a fix that offered to declare `.claude` as a module. The walk of the source root now leaves out the entries git ignores and no one tracks (a `.gitignore`, `.git/info/exclude`, the global excludes file of the machine), listed by one `git ls-files` call, and every dot-directory under the contexts directory. A tracked file is read even when an ignore pattern names it. Outside a git repository, or when the project sits in a folder its enclosing repository ignores, every entry is read as before, the dot-directories of the contexts left out. `tree/documented-paths` no longer reports a path of `docs/architecture` that goes through a dot-directory of a context either. What git ignores under the source root is no longer read by any rule of `check`, so a source the project keeps out of git is not judged either.
|
|
32
|
+
|
|
33
|
+
**`generate domain-event` on an event-sourced aggregate adds only what the aggregate and its codec lack.** Run on the birth event that `generate aggregate --event-sourced --birth <Event>` already wrote, it imported the event a second time and declared a second applier, and the aggregate no longer compiled; a second run on a later event did the same. Each piece (the member of the union of events, the entry of `appliers()`, the apply method, the import, the data type and the entry of the codec) is now added only when it is absent, in a context and in a module alike, so a command run twice leaves both files as they are.
|
|
34
|
+
|
|
35
|
+
**`todo` reads the markers of every kind of file, the Prisma schema included, and `verify-slice` stages the schema and the behaviour pages the generator wrote for the slice.** `ddd-ts-kit todo <context>` read only the TypeScript and Markdown files of the context: the `TODO(domain)` that `generate repository` leaves in `prisma/schema.prisma` (the columns of the new model) went unnoticed, and the row was committed with it. `todo` now reads the schema of Prisma, every file of `prisma/schema/`, a marker of `prisma/schema/<context>.prisma` under that context and another under the context whose database schema holds its model (`todo <context>` lists it), and, for the whole project, the migrations (`migrations/`, `prisma/migrations/`), the pages under `docs/` and the configuration at the root (`docker-compose.yml`, the config files of the ORMs, `ddd-ts-kit.config.json`), not the lockfiles. The other ORMs already wrote that marker in the tables file of the context, which `todo` read. `status`, `story-check` and the state of a worker count the same markers. `verify-slice` listed `prisma/schema.prisma` and `docs/behaviour/*` as left out, for a person to decide about, while the generator and `regenerate` had written them for the slice. It now stages the pages of `docs/behaviour/` (the page of the context, the application and the index, but not the page of another context), and the main Prisma file `prisma/schema/schema.prisma` when its one change since `HEAD` is the database schema of the context joining the datasource (the models are in `prisma/schema/<context>.prisma`, staged with the context), or the schema index of the platform (`<platformDir>/database/schema.ts`, for Drizzle, Knex and TypeORM) when every line changed there is the import of the tables file of the context. Any other change in the same file keeps it left out. The working migration of a Prisma worker (`prisma/migrations/<number>_working_<what>/migration.sql`) is staged like those of the other ORMs.
|
|
36
|
+
|
|
37
|
+
**A folder whose name starts with a dot under the contexts directory is never a context, nor a module.** The Claude Code sandbox leaves `.claude/.cc-writes` in a folder where a command wrote, and `ddd-ts-kit docs` wrote `docs/behaviour/.claude.md` for it, `list`, `status` and the other commands that walk the contexts read it as an undeclared context, and the ESLint plugin located its files in a context named `.claude`. The listing of the directories of a workspace now leaves out every name that starts with a dot, which covers the contexts and the modules of a context for all commands, and the location of a file by its path (CLI and ESLint plugin) no longer reads a dot folder as a context. `check` already left such a folder out of its walk.
|
|
38
|
+
|
|
39
|
+
**`merge-trunk --abort` works when the regeneration rewrote a file the merge had staged.** `merge-trunk --continue` now stages again the derived files (and the migrations, decision records, lockfile) its steps rewrite, so a `CONTEXT.md` the trunk changed is no longer left staged then modified, which made `git merge --abort` and `git reset --merge` fail with `Entry '...' not uptodate`. `--abort` also restores, and names, such a file when it was modified after staging; if any other tracked file was changed by hand, it refuses (exit 2) and says which, and discards nothing.
|
|
40
|
+
|
|
41
|
+
**`generate command --aggregate --local-only` names the repository to generate first, and plan-slices plans it.** A worker that runs a command on an aggregate with no repository is refused under `--local-only`, because the command would create the repository and write shared files (the schema index, the grants). The refusal listed those files and never said the cause. It now adds the exact command for the trunk, `ddd-ts-kit generate repository <context> <Aggregate>`, with no flag: it reads the aggregate and writes the event store adapter, with no table, when the aggregate is event-sourced. `generate aggregate` does not write the repository, by design: the repository is a row of the skeleton. The plan-slices and parallel-work skills now say that every aggregate a command row names has a skeleton row generating its repository (and `--event-sourced` on the aggregate when it is), which the command rows depend on.
|
|
42
|
+
|
|
43
|
+
**A name that says a term of the glossary passes the technical-word checks: `ScoringModel` once `Scoring model` is a row of CONTEXT.md.** The generator and `language/no-technical-name` refused every name carrying `Model`, `Data`, `Manager` and the other technical words, even when the business itself names the concept so: the scoring model of credit risk, a regulated object with its own validation and versioning, or the copy of data of the GDPR right of access. The team had to rename it to please the linter, and the code drifted from the words of the examiner. A technical word now passes when the words of the name around it say a whole term of the `## Ubiquitous language` table of the context, inflected or not: `Scoring model` holds `ScoringModel`, `ScoringModels` and `ScoringModelVersioned`, `Copy of data` holds `CopyOfData`, and `PricingModel` or `InvoiceData` are still refused. The generator and the checker judge the name with the same function. The refusal says how: use the business word, or, when the business does say it, define the term in CONTEXT.md, in the same command with `--term "Scoring model=<meaning>"`. A concept name ending with `Data` or `Info` is now refused by that one check, with its message, instead of the earlier "names a technical bucket"; the name of a port, a gateway, a policy, a route or a projection keeps the bucket check on its last word, which a term of the glossary lifts the same way. The clean-code and glossary skills say when to add such a row: when a domain expert uses the term, never to silence the rule.
|
|
44
|
+
|
|
45
|
+
**`generate adapter <context> <Port> --kind simulated` writes an adapter that answers in memory, for an environment whose outside system is simulated.** A sandbox, a demo or an environment kept for examiners had no supported way to run a port without its provider: the remote adapter threw "has no transport yet", and the fake of `test/fakes/` is test code that production code may not import. The new kind writes `infrastructure/external/simulated-<port>.adapter.ts` and its spec: a class of production code that answers as the outside system would, from records it keeps, through the translator of `infrastructure/anti-corruption/` when the system has one. It is bound to the port like the remote adapter, kind `external`, with no policy of its own (`--decorators` is refused): `@Adapter(<Port>, { kind: 'external' })` in the declared style, `builder.bind(<Port>).toClass(Simulated<Port>).as('external')` in an explicit module on tsyringe, a note that says what to instantiate where the context is wired by hand (manual, Nest). A port keeps one adapter: in the declared style a remote adapter is refused while a simulated one is declared, and the other way round, and the refusal says which file to remove. The import graph still refuses a fake of the tests imported by production code (`not-to-test`).
|
|
46
|
+
|
|
47
|
+
To move: a port whose remote adapter only throws while its provider is simulated: delete that adapter and its spec (and its binding in an explicit module), then run `npx ddd-ts-kit generate adapter <context> <Port> --kind simulated` and answer its operations the way the outside system would, as its fake does in the tests.
|
|
48
|
+
|
|
49
|
+
**`generate value-object`, `error` and `domain-error` write in the shared kernel, and its terms have a glossary the checks read.** `generate value-object shared-kernel Money --term "Money=<meaning>"` writes `src/shared-kernel/money.vo.ts` and its spec beside it, at the root of `sharedKernelDir`, as the tree lays the shared kernel out, and starts `src/shared-kernel/CONTEXT.md`, the glossary of the shared kernel, with the term. `generate error shared-kernel InvalidMoney forCents` writes the refusal of such a value at the same root, its code in `shared-kernel.codes.ts` (`SharedKernelCodes`) under `"stack.refusals": "named"`; `domain-error shared-kernel` does it under `classes`, and now takes `--term` as the other kinds do. `language/glossary-term` names the value objects (`*.vo.ts`) and, under `named` or `factories`, the refusals (`*.error.ts`) of the shared kernel after that glossary, and `errors/known-code` counts the codes the shared kernel lists. Any other kind given `shared-kernel` is refused with what the shared kernel holds and the contexts to use instead, where it said `Unknown context "shared-kernel"`. The three kinds now declare a shared write (`generate --help --json`): `--local-only` refuses them in the shared kernel, and a worker runs them in its own context. The guard refuses a new `*.vo.ts` or `*.error.ts` of the shared kernel written by hand, with the command that generates it.
|
|
50
|
+
|
|
51
|
+
To move: a project whose shared kernel holds a value object or, under `named` or `factories`, a refusal is now judged by `language/glossary-term`: write `src/shared-kernel/CONTEXT.md` with a `## Ubiquitous language` table that defines their words, or run the next `generate value-object shared-kernel ... --term` that creates it.
|
|
52
|
+
|
|
53
|
+
**On Prisma, each bounded context keeps its models in a file of its own, `prisma/schema/<context>.prisma`, which its worker changes with the mapper on its own branch.** A worker of `parallel-work` that added a state field to an aggregate needed a column, but `prisma/schema.prisma` held the models of every context and the guard refused it to the worker as a shared file: the conductor wrote the column on the trunk, where the mapper of the context had not changed, and the trunk failed to typecheck until the column was reverted. Drizzle, Knex and TypeORM already kept the tables of a context in its own `infrastructure/persistence/`; Prisma now does the same with its multi-file schema. `init --orm prisma` writes `prisma/schema/schema.prisma` (the generator of the client, the datasource and the tables of the platform: outbox, background jobs, process instances, event store, audit trail) and `prisma.config.ts` names the folder (`schema: './prisma/schema'`); `generate repository` writes the model in `prisma/schema/<context>.prisma`, started with the models region of the context, and adds the database schema of the context to the datasource on the first repository of the context only. The guard lets the worker of a context write `prisma/schema/<context>.prisma`, and refuses it the file of another context and `prisma/schema/schema.prisma`; `generate --local-only` treats it as a file of the context, `verify-slice` stages it with the slice (and the main file only when its one change is the context joining the datasource), and `todo <context>` lists its markers; `worker-scope` briefs the worker on Prisma that the models of its context are its own, a stored field changing its column and the mapper in one commit. The identity preset lays its models out in `prisma/schema/identity.prisma`, `privacy/declared-field` and `persistence/no-file-content` read every `.prisma` file of `prisma/schema/`, and `db:client` derives the schema of the tests from the folder (`prisma migrate diff --to-schema prisma/schema`).
|
|
54
|
+
|
|
55
|
+
To move: in a project on Prisma, `mkdir prisma/schema && git mv prisma/schema.prisma prisma/schema/schema.prisma`; in that file write the `output` of the generator one level up (`"../../generated/prisma"`), and move the models and enums of each context (those whose `@@schema` is the schema of the context) out of the `// ddd-ts-kit:models` region into `prisma/schema/<context>.prisma`, between a `// ddd-ts-kit:models` and a `// /ddd-ts-kit:models` line of their own, then remove the empty region from the main file. In `prisma.config.ts` set `schema: './prisma/schema'`, and in the `db:client` script of `package.json` replace `--to-schema prisma/schema.prisma` by `--to-schema prisma/schema`. Run `npm run db:client`: the tables are the same, so `npm run db:generate` finds no change and no migration is needed.
|
|
56
|
+
|
|
7
57
|
## 0.94.1
|
|
8
58
|
|
|
9
59
|
**The glossary step finds the terms of the identity preset in the plugin, and every row of a context with modules passes `--module`.** The `glossary` skill sent an agent to `packages/cli/src/presets/identity-terms.ts`, a file of the repository of the kit: the package ships no source, and before the bootstrap a project has no CLI installed. The terms are now on a page beside the skill, `identity-preset.md`, kept equal to the rows the preset writes by a spec of the CLI. The `plan-slices` skill said that what the modules share stays at the level of the context, and a plan of a context with modules then left `--module` out of its policies, integration events and integration handlers, which the generator refuses there: it now says that every generator command of such a row carries `--module`, and that the generator keeps the shared files (codes, permissions, the schema of the database, route groups, fakes and builders) at the level of the context by itself.
|
package/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:4f8e579be466d3bc -->
|
|
3
3
|
|
|
4
4
|
# ddd-ts-kit
|
|
5
5
|
|
|
@@ -49,7 +49,9 @@ Chaque commande accepte `--json` (sortie lisible par une machine, erreurs compri
|
|
|
49
49
|
`--cwd <dir>`. Les commandes autres que `init` cherchent `ddd-ts-kit.config.json` dans le
|
|
50
50
|
répertoire et ses parents. Codes de sortie : `0` succès, `1` violations, documentation périmée
|
|
51
51
|
ou, sous `--strict`, un *commit* au-delà de ses limites, `2` mauvais usage (le message dit quoi
|
|
52
|
-
faire)
|
|
52
|
+
faire), `3` une commande qui écrit des fichiers n'a pas pu en écrire certains là où elle tournait
|
|
53
|
+
(un chemin que protège le bac à sable d'un agent) : ils sont listés sous `unwritable`, tous les
|
|
54
|
+
autres fichiers sont écrits et aucun n'est supprimé.
|
|
53
55
|
|
|
54
56
|
## init
|
|
55
57
|
|
|
@@ -567,7 +569,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
|
|
|
567
569
|
| `src/platform/auth/authorization/` | `create-authorizer.ts`, `authorization.ts` (`authorizationModule` avec tsyringe) ou `use-case-protection.ts` (la garde des bus câblés à la main), `access-policies.ts`, `role.ts` (les rôles que porte un identifiant, avec des rôles ou des attributs, ou dès qu'une garde en nomme un), `permissions.ts` (le registre de toutes les permissions, avec des relations ou un authorizer à vous), `signed-in-grants.ts` dès qu'un *preset* de contexte accorde à toute personne connectée, et avec `--audit off` `log-decisions.ts` (une entrée de journal par décision, identifiants et codes seulement) |
|
|
568
570
|
| `src/platform/auth/<modèle>/` | `roles/roles.ts` (avec le rôle `system` que détient chaque acteur système) ; `attributes/attribute-policies.ts` ; `relationships/` : `relationship-schema.ts`, `create-tuple-store.ts` et sa *spec* de contrat, `relation-tuples.ts`, `relate-system-actors.ts` ; `custom/` : `custom-authorizer.ts` et sa *spec* `authorizerContract` |
|
|
569
571
|
| `--representations negotiated`, `--forms on` | `src/platform/http/presentation-of.ts` (`Representations.standard()` avec `negotiated`, et `fieldDeciderOf` sur l'`Access` de l'application), décomposé dans la frontière HTTP et donné au script du contrat ; avec `--forms on`, `src/platform/http/with-forms.ts` ajoute `formRoutes` aux routes et `scripts/openapi.ts` écrit `openapi/forms/<operationId>.json`. Les deux sont la valeur par défaut avec une *stack* HTTP ; `json` et `off` les laissent de côté ([docs/CONFIG.fr.md](../../docs/CONFIG.fr.md)) |
|
|
570
|
-
| `--audit on` | `src/platform/audit/` : `create-audit.ts` (le journal, le `onDecision` de l'autorisation, les refus des gardes à la frontière remis à la frontière HTTP comme `onGuardRefusal`, le *middleware* avant l'unité de travail, les événements d'intégration abonnés sous le nom de consommateur `audit`), `audited-events.ts` (le registre auquel `generate integration-event` ajoute), `audit.module.ts`, et avec une *stack* HTTP le côté lecture : `audit.permissions.ts` (`audit:trail.read`), puis dans `search-audit-entries/` : `search-audit-entries.query.ts`, son gestionnaire, `search-audit-entries.route.ts` ou `.controller.ts` (`GET /audit/entries` : pages par curseur, filtres `actorId`, `action`, `outcome`, `correlationId`), qui commence par le point d'entrée et prend ce qu'il reçoit et répond dans `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` et `audit-outcomes.ts`. C'est une capacité de la plateforme, pas un contexte délimité : pas de modèle, une requête protégée sur le port `AuditReader`, bornée par le *tenant* de l'acteur (avec `--tenancy shared-table`, par le *tenant* du travail au moyen de `TenantAuditReader` : le personnel de la plateforme ne lit à travers les *tenants* qu'à l'intérieur de `acrossTenants`). Les refus d'un appelant sans identifiant de connexion ne sont pas enregistrés. Un *job* planifié est audité comme une requête HTTP : origine `schedule`, acteur `system:<context>.<job>`. Avec knex, les deux tables et leurs déclencheurs en ajout seul sont créés par la première migration ; avec drizzle, les tables sont dans `schema.ts` et `npm run db:generate` ajoute les instructions des déclencheurs à la migration qui crée les tables (`npm run db:audit-guard` les affiche pour une migration écrite à la main) ; avec prisma et typeorm, les tables sont des modèles de `prisma/schema.prisma` ou des entités de `schema.ts` (`auditPrismaModels`, `auditEntities` de `@ddd-ts-kit/audit`), écrites par `PrismaAuditTrail` et `TypeOrmAuditTrail`, et `npm run db:generate` (par `ddd-ts-kit prisma-generate` ou `typeorm-generate`) ajoute les instructions des déclencheurs à la migration qui crée les tables, `npm run db:audit-guard` les affichant pour une migration écrite à la main ; les bases de test installent ce garde ; avec `custom` ou sans ORM, le journal est un `InMemoryAuditTrail` derrière un `TODO(platform)`. Les bases de test laissent le schéma d'audit hors de `reset()`. Avec le journal en base et `--storage local` ou `s3`, `audit.module.ts` (ou la composition câblée à la main) enregistre `audit.archive` le premier jour de chaque mois à 04:00 UTC : les entrées de plus de douze mois entiers partent dans le stockage sous `audit-archives/`, vérifiées, relues et ancrées (`ArchiveAuditEntries`) ; avec `s3` il tourne sauf `JOB_AUDIT_ARCHIVE_ENABLED=false`, avec `local` seulement avec `JOB_AUDIT_ARCHIVE_ENABLED=true`, puisque l'archive supprime les entrées de la base et que le disque du serveur peut ne pas durer |
|
|
572
|
+
| `--audit on` | `src/platform/audit/` : `create-audit.ts` (le journal, le `onDecision` de l'autorisation, les refus des gardes à la frontière remis à la frontière HTTP comme `onGuardRefusal`, le *middleware* avant l'unité de travail, les événements d'intégration abonnés sous le nom de consommateur `audit`), `audited-events.ts` (le registre auquel `generate integration-event` ajoute), `audit.module.ts`, et avec une *stack* HTTP le côté lecture : `audit.permissions.ts` (`audit:trail.read`), puis dans `search-audit-entries/` : `search-audit-entries.query.ts`, son gestionnaire, `search-audit-entries.route.ts` ou `.controller.ts` (`GET /audit/entries` : pages par curseur, filtres `actorId`, `action`, `outcome`, `correlationId`), qui commence par le point d'entrée et prend ce qu'il reçoit et répond dans `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` et `audit-outcomes.ts`. C'est une capacité de la plateforme, pas un contexte délimité : pas de modèle, une requête protégée sur le port `AuditReader`, bornée par le *tenant* de l'acteur (avec `--tenancy shared-table`, par le *tenant* du travail au moyen de `TenantAuditReader` : le personnel de la plateforme ne lit à travers les *tenants* qu'à l'intérieur de `acrossTenants`). Les refus d'un appelant sans identifiant de connexion ne sont pas enregistrés. Un *job* planifié est audité comme une requête HTTP : origine `schedule`, acteur `system:<context>.<job>`. Avec knex, les deux tables et leurs déclencheurs en ajout seul sont créés par la première migration ; avec drizzle, les tables sont dans `schema.ts` et `npm run db:generate` ajoute les instructions des déclencheurs à la migration qui crée les tables (`npm run db:audit-guard` les affiche pour une migration écrite à la main) ; avec prisma et typeorm, les tables sont des modèles de `prisma/schema/schema.prisma` ou des entités de `schema.ts` (`auditPrismaModels`, `auditEntities` de `@ddd-ts-kit/audit`), écrites par `PrismaAuditTrail` et `TypeOrmAuditTrail`, et `npm run db:generate` (par `ddd-ts-kit prisma-generate` ou `typeorm-generate`) ajoute les instructions des déclencheurs à la migration qui crée les tables, `npm run db:audit-guard` les affichant pour une migration écrite à la main ; les bases de test installent ce garde ; avec `custom` ou sans ORM, le journal est un `InMemoryAuditTrail` derrière un `TODO(platform)`. Les bases de test laissent le schéma d'audit hors de `reset()`. Avec le journal en base et `--storage local` ou `s3`, `audit.module.ts` (ou la composition câblée à la main) enregistre `audit.archive` le premier jour de chaque mois à 04:00 UTC : les entrées de plus de douze mois entiers partent dans le stockage sous `audit-archives/`, vérifiées, relues et ancrées (`ArchiveAuditEntries`) ; avec `s3` il tourne sauf `JOB_AUDIT_ARCHIVE_ENABLED=false`, avec `local` seulement avec `JOB_AUDIT_ARCHIVE_ENABLED=true`, puisque l'archive supprime les entrées de la base et que le disque du serveur peut ne pas durer |
|
|
571
573
|
| `--event-sourcing on` | enregistré comme `stack.eventSourcing`, `off` sauf demande : `Persistence` gagne `eventSourcing` (`create<Orm>EventSourcing` dans le schéma `event_store`, dont le fichier de schéma déclare les cinq tables ; les stores en mémoire avec `--orm none`), et `src/platform/event-sourcing/` : `create-event-sourcing.ts` (`EventSourcing` : les stores, le `SubjectKeyStore` enveloppé par `auditedSubjectKeys` avec `--audit on`, et le `PersonalDataCipher` par-dessus) et, avec tsyringe, `event-sourcing.module.ts` (lie `EventStore`, `SnapshotStore`, `CheckpointStore`, `SubjectKeyStore` et `PersonalDataCipher`, pour qu'un adaptateur de *repository* *event-sourced* les nomme dans son constructeur ; la `Platform` câblée à la main les porte comme `platform.eventSourcing`) ; `platform-test.module.ts` lie les stores en mémoire, pour qu'une *spec* de gestionnaire d'un agrégat *event-sourced* n'ait besoin d'aucun *fake*. `generate aggregate --event-sourced` est refusé sans lui, avec le `init --force --event-sourcing on` à lancer. Refusé avec `--orm custom` : l'event store du kit tourne sur PostgreSQL par les quatre paquets d'ORM |
|
|
572
574
|
| `--privacy on` | enregistré comme `stack.privacy`, `on` quand il y a un ORM : `src/platform/privacy/`, avec `data-subject-copies.ts` et `data-subject-exports.ts` (les ports, ou les adaptateurs à la main, des contextes qui étendent `PersonalDataErasure` et `PersonalDataExport`, entre marqueurs ; `generate repository --personal` y liste l'effacement et l'export d'un contexte), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, tenants? })` : un contexte d'exécution d'origine `cli` avec l'opérateur pour acteur, la clé de la personne quand le projet a un event store, puis `eraseDataSubject` du kernel sur les copies, `inEachTenant` avec `--tenancy shared-table`, puis `privacy.data-subject.erased` publié par l'outbox, une fois par *tenant*) et `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })` : `exportDataSubject` du kernel sur les exports, chacun enveloppé par `auditedPersonalDataExport` avec `--audit on`, `recordsInEachTenant` avec `--tenancy shared-table`, un `PersonalDataExportDocument` daté), et les deux scripts ci-dessous. `docs/privacy/register.md`, le registre des données personnelles que `ddd-ts-kit docs` tient (voir `docs` plus bas). Un projet sans donnée personnelle prend `--privacy off` et ne paie rien. Aucune commande HTTP n'efface encore : les deux scripts sont les points d'entrée |
|
|
573
575
|
| `--tenancy shared-table` | enregistré comme `stack.tenancy` ; les quatre ORM. Chaque `generate repository` est cloisonné par *tenant* (comme `--tenant-scoped`), au moyen de `tenantTable` et `ownTenantTable` (Knex), de `tenantCondition` et `ownTenantCondition` (Drizzle), de `tenantWhere` et `ownTenantWhere` (Prisma, TypeORM) ; l'outbox garde le *tenant* de chaque événement (`createOutboxTables(knex, { tenant: true })` et le `tenant: true` de `KnexOutboxStore`, `tenantOutboxTable`, le champ `tenantId` du modèle Prisma et le `tenant: true` de `PrismaOutboxStore`, `outboxEntity({ tenant: true })`), si bien que les consommateurs s'exécutent dans ce *tenant* ; `tenancy/scoped-statement` juge les adaptateurs. La sécurité au niveau des lignes, un schéma par *tenant* et une base par *tenant* sont refusés, avec ce qu'il faut câbler à la main ([Multitenance](../../docs/concepts/multitenancy.fr.md)) |
|
|
@@ -579,7 +581,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
|
|
|
579
581
|
| `--storage local\|s3` | enregistré comme `stack.storage` : où vit le contenu des fichiers, jamais dans la base de données. `src/platform/config/read-files.ts` et `src/platform/files/open-files.ts`, un par choix : `local`, un répertoire en développement (`FILES_DIRECTORY`, `.data/files`) et les liens signés servis par l'application sous `/files` (`FILES_PUBLIC_URL` et `FILES_SIGNING_SECRET` requises en production) ; `s3`, un bucket de n'importe quel fournisseur du protocole S3 au moyen de `@ddd-ts-kit/s3` (les variables `S3_*`, MinIO dans la stack compose) ; la mémoire du processus dans les tests et les outils, dans les deux cas. Avec `--di tsyringe` : `files/bind-files.ts`, `files/files.module.ts` et `files/staging-uploads.ts` ; en câblage manuel, `files/create-files.ts` ; avec une *stack* HTTP, `files/file-routes.ts`. Ils lient `FileStorage`, `FileKeys`, `FileScanner` et `FileStaging`, enregistrent la purge horaire des fichiers en attente et mettent en attente le fichier que porte une commande avant sa transaction ; `generate file-upload` en a besoin. `--storage none` n'écrit rien de tout cela ([Stockage de fichiers](../../docs/concepts/file-storage.fr.md)) |
|
|
580
582
|
| `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, et pour `--broker` `create-event-provider.ts` : `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, avec `aggregate-key-of.ts` pour l'ordre par agrégat), `NatsEventBus` (`NATS_URL`) ou `RedisStreamsEventBus` de `@ddd-ts-kit/redis/event-bus` (`REDIS_URL` : Redis, Dragonfly ou Valkey), chacun avec un abonné par contexte consommateur (`forConsumer`), `assertTopology` au démarrage, son adresse validée et un service compose avec un contrôle de santé ; ou `custom-event-bus.ts` avec sa *spec* `eventBusContract`. `start-outbox-relay.ts` avec l'outbox. `--broker redis` avec `--cache redis` fait un seul serveur et un seul service compose, `cache` ; seul, le service s'appelle `streams` |
|
|
581
583
|
| `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts` (`MESSAGING_SCHEMA`, le schéma de ce que le kit stocke pour l'application), `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL ; avec Vitest chaque *spec* ouvre une copie du cluster que `test/support/test-database-template.ts`, la mise en place globale de l'exécution, initialise une fois, et y crée ses tables ; avec drizzle depuis `table-statements.ts`, le SQL des tables de `schema.ts`, puisque drizzle-kit écrit des migrations, pas des tables, ses index uniques compris), `persistence.contract.spec.ts` (les stores de l'outbox, des événements traités, des *jobs* et des processus tels que la plateforme les branche, tenus aux contrats de `@ddd-ts-kit/testing` avec ce que la pile active : le *tenant* sous `--tenancy`, l'unité de travail). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
|
|
582
|
-
| outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema.prisma` et `prisma.config.ts`, ou `data-source.ts` |
|
|
584
|
+
| outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (le client, la datasource et les tables de la plateforme ; `generate repository` ajoute le fichier de chaque contexte, `prisma/schema/<context>.prisma`) et `prisma.config.ts`, ou `data-source.ts` |
|
|
583
585
|
| `scripts/openapi.ts`, `scripts/events.ts` | écrivent `openapi/openapi.yaml` (un fichier par document de `openapi.documents`), `docs/integration/asyncapi.yaml` et `docs/integration/event-catalog.md`, en JSON sous `openapi.format: json` ; `--check` échoue sur une différence |
|
|
584
586
|
| `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | avec `--privacy on`, les deux demandes d'une personne concernée, traitées en ligne de commande sur les sources avec les variables de `.env` (`npm run privacy:erase -- <subject-id> [--operator <qui-demande>]`, `npm run privacy:export -- <subject-id> > export.json`) : l'effacement détruit d'abord la clé de la personne quand le projet a un event store (`--event-sourcing on` : ses événements stockés se lisent effacés ; audité avec `--audit on`), puis efface chaque copie listée dans `src/platform/privacy/data-subject-copies.ts` ; `privacy:purge` lance à la main ce que le *job* `privacy.purge-expired` lance chaque nuit à 03:00 UTC, la purge de ce qui a dépassé sa durée de conservation (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` coupe le *job*) ; l'export rassemble chaque enregistrement listé dans `data-subject-exports.ts` en un document JSON daté (`format`, `subject`, `exportedAt`, `records`), l'export de chaque contexte audité avec `--audit on`, jamais les valeurs (chaque exécution laisse son entrée, un essai compris : essayez-le sur une personne de test). Avec `--tenancy shared-table`, `TENANTS` nomme les tenants, séparés par des virgules : une écriture de données de tenant n'est jamais élargie. Ni l'un ni l'autre n'atteint les sauvegardes, les journaux ou une copie qu'aucun contexte n'a déclarée |
|
|
585
587
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | la base de données avec un contrôle de santé et un volume nommé, `jaegertracing/jaeger:2.22.0` derrière le profil `observability` (son interface et son port OTLP liés à 127.0.0.1), les ports depuis `.env` ; une image multi-étapes, sans root, avec les seules dépendances de production |
|
|
@@ -598,7 +600,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
|
|
|
598
600
|
| `REVIEW.md` | la politique de revue du projet : les passes d'une revue (bugs, sécurité, conformité face à la revue de conception de la ligne, l'acceptation de la *story*, les enregistrements de `docs/adr/` et les règles), ce qu'Important veut dire, au plus cinq *nits* (un *nit* récurrent devient une ligne de `AGENTS.md` sous `## Mistakes seen here` ou une règle de la configuration), ce qui n'est pas signalé (les fichiers générés, ce que `npm run verify` refuse). Lu par l'agent `architecture-reviewer` par-dessus sa méthode, par un relecteur humain et par tout robot de revue. Écrit une fois, pour que l'équipe le modifie : `--force` le laisse tel quel, `doctor` dit quand il manque |
|
|
599
601
|
| `.github/copilot/settings.json` | le *plugin* du kit, déclaré pour GitHub Copilot (`extraKnownMarketplaces`, `enabledPlugins`) : son agent cloud l'installe, la CLI Copilot et VS Code le recommandent ; un fichier existant garde ce qu'il contient et reçoit les deux entrées |
|
|
600
602
|
| `.claude/hooks/production-gate.mjs`, `.claude/hooks/change-reference.mjs` | avec `--agent-profile regulated` : les deux *hooks* du profil, enregistrés sous `hooks.PreToolUse` de `.claude/settings.json`, écrits une fois pour que l'équipe les modifie (`--force` les réécrit). La porte bloque une commande qui nomme l'environnement de production avec une action de mise en production sauf si `RELEASE_APPROVAL` nomme un approbateur et un changement ; la référence demande avant une modification d'une migration ou des conteneurs, pour le *trailer* `Change: <id>` du *commit* ([Mettre les agents de code en bac à sable](../../docs/guides/agent-sandbox.fr.md#le-profil-réglementé)) |
|
|
601
|
-
| `.claude/settings.json` | des permissions (et, avec `--agent-profile regulated`, le bloc de bac à sable ci-dessous) : les vérifications et les générateurs s'exécutent sans demander, les fichiers `.env` sont illisibles (`.env.example` reste lisible),
|
|
603
|
+
| `.claude/settings.json` | des permissions (et, avec `--agent-profile regulated`, le bloc de bac à sable ci-dessous) : les vérifications et les générateurs s'exécutent sans demander, les fichiers `.env` sont illisibles (`.env.example` reste lisible), `git push`, `npm publish` et toute modification des fichiers qui portent les règles et le *pipeline* (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) demandent d'abord, comme une modification des contrats générés et du verrou d'une acceptation (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json` : une règle `ask`, puisque le bac à sable de Claude Code mettrait un chemin refusé en lecture seule pour `docs:generate` et `acceptance --lock` aussi ; la garde du plugin en refuse la modification à la main) et de ce qui atteint la production autrement que par le code : les migrations de l'ORM (`migrations/**` avec drizzle, knex et typeorm, `prisma/migrations/**` avec prisma, rien avec une persistance *custom* ou sans ORM), `Dockerfile`, `docker-compose.yml` et `docker/**`. Le fichier compose lit `.env` à la racine, que la liste de refus couvre déjà ; rien sous `docker/` ne porte de secret |
|
|
602
604
|
| `.gitignore` | `node_modules`, `dist`, `coverage`, `.env`, `*.tsbuildinfo`, `.ddd-ts-kit/`, où écrit `worker-scope`, et `.worktrees/`, où vivent les *worktrees* |
|
|
603
605
|
|
|
604
606
|
`--ci both` écrit les deux *pipelines*, `--ci none` aucun (et pas de `renovate.json`). Les
|
|
@@ -609,11 +611,17 @@ emplacements à remplacer documentés.
|
|
|
609
611
|
`--agent-profile regulated` enregistre `agents.profile` dans la configuration, avec ou sans
|
|
610
612
|
`--force` (`--agent-profile none` le retire), et écrit le bloc `sandbox` de Claude Code à côté des
|
|
611
613
|
permissions : activé, échouant quand le bac à sable est indisponible, aucune nouvelle tentative
|
|
612
|
-
hors bac à sable,
|
|
613
|
-
|
|
614
|
+
hors bac à sable, les caches qu'écrit l'installation de la pile comme seuls chemins hors du
|
|
615
|
+
projet et du répertoire temporaire (`~/.npm`, ou le *store* et le cache de pnpm, et `~/.cache/prisma` avec Prisma), le
|
|
616
|
+
registre npm, l'hôte git du projet (lu dans `repository` de `package.json`, sinon dans le
|
|
617
|
+
*remote* `origin`) et les hôtes d'où téléchargent les scripts d'installation de la pile
|
|
618
|
+
(`binaries.prisma.sh` avec Prisma, `github.com` et `release-assets.githubusercontent.com` avec le
|
|
619
|
+
client Kafka) comme seuls hôtes, les fichiers d'identifiants
|
|
614
620
|
(`~/.ssh`, `~/.aws`, `~/.config/gcloud`, `~/.azure`) et les variables secrètes usuelles refusés à
|
|
615
|
-
chaque commande en bac à sable ; une clé que le projet avait déjà posée est gardée
|
|
616
|
-
|
|
621
|
+
chaque commande en bac à sable ; une clé que le projet avait déjà posée est gardée, et une liste
|
|
622
|
+
qu'il porte gagne les entrées dont la pile a besoin. Elle affiche aussi, en note, que le
|
|
623
|
+
propriétaire lance la première installation hors de l'agent (un chemin absent au démarrage d'une
|
|
624
|
+
session y reste en lecture seule), et le bloc de réglages gérés qu'un fichier de projet ne peut pas poser
|
|
617
625
|
(`allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`,
|
|
618
626
|
`permissions.disableBypassPermissionsMode`, `strictKnownMarketplaces` avec la *marketplace* du
|
|
619
627
|
kit, `requiredMinimumVersion`), pour que l'équipe plateforme le colle, et écrit les deux *hooks*
|
|
@@ -668,7 +676,8 @@ vérifiée ne provisionne aucun compte. Sur `init` sans `--context` de son nom,
|
|
|
668
676
|
quoi que dise `--authz` : l'attribution `'identity:*'` de `platform/auth/authorization/signed-in-grants.ts`,
|
|
669
677
|
à laquelle répond `SignedInGrantsAuthorizer` avant le modèle dans `createAuthorizer`. Avec des
|
|
670
678
|
*tenants*, les tables du contexte n'appartiennent à aucun, sous un enregistrement de décision que
|
|
671
|
-
le *preset* écrit
|
|
679
|
+
le *preset* écrit et la déclaration du contexte comme plan de contrôle des *tenants*
|
|
680
|
+
(`contexts.<name>.tenancy`, aucune désactivation dans ses adaptateurs), et avec `--authn keycloak` l'authentificateur lit le *claim* `organization`
|
|
672
681
|
comme les *tenants* de la personne (un autre authentificateur reçoit une étape suivante qui dit
|
|
673
682
|
quoi faire correspondre). Le *preset* est écrit pour `declared` avec les dépendances `signature`,
|
|
674
683
|
`factories`, les objets-valeurs `throwing`, les routes `controllers` ou `nest` (des contrôleurs Nest, lus dans leurs signatures, sur un projet Nest), Knex ou Drizzle sur PostgreSQL, Zod ou
|
|
@@ -754,7 +763,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
754
763
|
| `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` qui pilote la route du cas d'usage : 401 sans identifiant de connexion, 403 sans la permission, le statut documenté avec elle ; pour une commande, un test de plus vérifie la trace de la requête HTTP, exacte sur les noms et la structure, avec `installTestTracing()` et `expectSpanTree(storyOf(trace), [...])` de `@ddd-ts-kit/tracing/testing` (`POST /invoices`, puis `command IssueInvoiceCommand`, puis `repository InvoiceRepository.save`). Un cas d'usage qu'aucune route n'atteint, lancé par un gestionnaire d'événement d'intégration du contexte, reçoit une spec qui publie l'événement de l'amont, construit depuis sa déclaration, avec `application.publish([event])`, attend `application.settled()` et laisse des `it.todo` pour ce qu'un client observe (les routes `GET` du contexte, ou les événements qu'il publie, avec `collectEvents`) ; le gestionnaire qui envoie `<UseCase>Command` est cherché dans `application/integration/handlers/`, et `--event billing.invoice.issued` nomme l'événement quand des gestionnaires de plusieurs l'envoient, ou quand le gestionnaire ne l'envoie pas encore. Demande la route, ou ce gestionnaire |
|
|
755
764
|
| `policy` | `<context> <Name> --permission <aggregate>.<action>` | `application/authorization/<name>.policy.ts`, *spec* ; déclaré : la classe porte `@Policy(permission, { name })` et rien d'autre n'est écrit ; explicite : l'enregistrement dans `platform/auth/authorization/access-policies.ts` |
|
|
756
765
|
| `gateway` | `<context> <upstreamContext> <Name>` | le contrat de lecture dans le langage publié de l'amont (`<name>.contract.ts`, une classe abstraite et le jeton de la valeur de l'amont), le port `application/ports/<name>-gateway.port.ts`, un adaptateur dans le processus dans `infrastructure/external/` lié `.as('gateway')`, un *fake*, une suite de contrat ; refusé sauf si l'amont est déclaré |
|
|
757
|
-
| `adapter` | `<context> <Port> [--kind external\|gateway] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` pour un port existant, sa *spec*, et sur tsyringe sa liaison `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))` ; avec `--decorators`, sur toute *stack*, la classe porte `@Retry` et `@Timeout` de `@ddd-ts-kit/aspects/decorators` sur son unique méthode sortante et est liée `.with(ownPolicy())`. Explicite : un port déjà lié, ou le câblage manuel, reçoit une note au lieu d'une liaison. Déclaré : la classe porte `@Adapter(<Port>, { kind, aspects })`, ou `@Gateway(<Port>, { aspects })` dans `remote-<port>.gateway.ts` avec `--kind gateway`, et un port qui a déjà un adaptateur déclaré est refusé |
|
|
766
|
+
| `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` pour un port existant, sa *spec*, et sur tsyringe sa liaison `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))` ; avec `--decorators`, sur toute *stack*, la classe porte `@Retry` et `@Timeout` de `@ddd-ts-kit/aspects/decorators` sur son unique méthode sortante et est liée `.with(ownPolicy())`. Explicite : un port déjà lié, ou le câblage manuel, reçoit une note au lieu d'une liaison. Déclaré : la classe porte `@Adapter(<Port>, { kind, aspects })`, ou `@Gateway(<Port>, { aspects })` dans `remote-<port>.gateway.ts` avec `--kind gateway`, et un port qui a déjà un adaptateur déclaré est refusé. Avec `--kind simulated` : `infrastructure/external/simulated-<port>.adapter.ts` et sa *spec*, une classe du code de production qui répond dans la mémoire du processus comme le système extérieur répondrait, pour un environnement dont le fournisseur est simulé ; elle ne porte aucune politique (`--decorators` est refusé), est déclarée `@Adapter(<Port>, { kind: 'external' })` ou liée `.toClass(Simulated<Port>).as('external')`, et alterne avec l'adaptateur distant, un par port |
|
|
758
767
|
| `service` | `<context>` | `src/apps/<context>/main.ts` (kernel, plateforme, ce contexte seul, avec ses *jobs* : `jobSettings(process.env, '<context>')`), le script `start:<context>`, un service compose derrière le profil `services`, l'entrée knip, `deployable: true` dans la configuration. Le Dockerfile prend le point d'entrée comme argument de build `ENTRY` |
|
|
759
768
|
| `worker` | aucun | `src/apps/worker/main.ts` : les modules de `main.ts`, pas de serveur HTTP, pas de relais de l'outbox, les *jobs* démarrés quoi que dise `RUN_JOBS`, un arrêt propre ; le script `start:worker`, un service compose `worker` derrière le profil `services`, l'entrée knip, `"worker": true` dans la configuration, et `RUN_JOBS` qui vaut `false` par défaut à partir de là, si bien que l'API cesse d'exécuter les *jobs* qu'exécute le *worker*. Avec plusieurs instances, le verrou doit être un vrai verrou : `--cache redis` lie le verrou Redis, et sans lui le README généré dit la limite. Un contexte nommé `worker` est refusé |
|
|
760
769
|
| `adr` | `"<title>" [--deviation <what>] [--reason "<why>"]` | `docs/adr/NNNN-<slug>.md` ; avec `--deviation`, l'entrée `deviations` de la configuration qui pointe vers lui |
|
|
@@ -871,7 +880,9 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
871
880
|
du pluriel, du participe passé et en -ing sont reconnues). `--term "<Term>=<meaning>"`,
|
|
872
881
|
répétable, ajoute les lignes dans la même commande. Les mots techniques (`Manager`, `Helper`,
|
|
873
882
|
`Data`, `Impl`, `Model`...) et un fait d'événement qui ne se lit pas au passé sont refusés eux
|
|
874
|
-
aussi
|
|
883
|
+
aussi ; un mot technique passe quand un terme du glossaire le tient
|
|
884
|
+
(`--term "Scoring model=<meaning>"` laisse passer `ScoringModel`), parce que le langage du
|
|
885
|
+
métier l'emporte. `--allow-name` passe outre les trois vérifications ; `check` signalera tout de même ce
|
|
875
886
|
que le glossaire ne définit pas.
|
|
876
887
|
- Le code généré compile tel quel et passe `check`, le preset ESLint, dependency-cruiser et knip
|
|
877
888
|
aux sévérités par défaut : un export par fichier, des fichiers bien en dessous de 350 lignes,
|
|
@@ -2194,7 +2205,7 @@ règle.
|
|
|
2194
2205
|
| `events/defined-in-published-language` | `defineIntegrationEvent` hors d'un langage publié, sans charge utile, deux fois pour une même version ; un événement décrit à la main |
|
|
2195
2206
|
| `language/glossary-term` | une classe du modèle nommée avec un mot que le glossaire de son contexte ne définit pas ; un glossaire vide ; sous `"stack.refusals": "factories"` ou `"named"`, une classe de `domain/errors/` aussi, une classe de refus de `named` ayant droit en plus aux qualificatifs `invalid`, `unknown`, `already`, `too`, `no`, `missing` et `required` (`<context>.codes.ts` n'est pas jugé) |
|
|
2196
2207
|
| `language/declared-vocabulary` | une chaîne littérale dont la valeur est une valeur d'un vocabulaire fermé que le projet déclare (un objet `as const` exporté avec le type union de son nom, un ensemble de permissions de `definePermissions`), hors du fichier qui le déclare, à l'endroit qui parle son langage (son contexte ; la plateforme et les groupes de routes pour la plateforme ; partout pour un identifiant de permission ou le noyau partagé) ; les tests, les langages publiés et le schéma de relations ne sont pas jugés, ni, hors de `domain/`, un mot typé par un autre langage (une clé d'un `Record<T, ..>`, une valeur d'un `Record<.., T>`, `'x' satisfies T`, `T` un type d'un langage publié, d'un paquet ou de `infrastructure/anti-corruption/` ou `infrastructure/external/`) ; sous `"stack.literals": "named"` |
|
|
2197
|
-
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` dans un type déclaré sous `domain/` ou dans un dossier de cas d'usage |
|
|
2208
|
+
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` dans un type déclaré sous `domain/` ou dans un dossier de cas d'usage, sauf quand un terme du glossaire du contexte tient le mot (`Scoring model` tient `ScoringModel`) |
|
|
2198
2209
|
| `purity/no-system-clock` | `new Date()` sans argument, `Date.now()`, `performance.now()` dans `domain/` ou `application/` |
|
|
2199
2210
|
| `purity/no-ambient-randomness` | `Math.random`, la source aléatoire de `crypto`, une bibliothèque d'identifiants |
|
|
2200
2211
|
| `purity/no-environment` | `process.env` et apparentés, `console`, `fetch`, les modules de système de fichiers et de réseau |
|
|
@@ -2230,7 +2241,7 @@ règle.
|
|
|
2230
2241
|
| `tracing/platform-only` | un import de `@ddd-ts-kit/tracing` ou d'un *package* `@opentelemetry/*` hors du répertoire de la plateforme, de `main.ts` et de `apps/`, tests compris |
|
|
2231
2242
|
| `nest/no-parallel-pipeline` | dans `presentation/`, `infrastructure/` ou le fichier de module d'un contexte, tests à part : un import d'un contrôleur que Nest sert (ses décorateurs de route et de paramètres, sauf si le fichier importe `KitRoute` ou `KitRoutes` de `@ddd-ts-kit/http/nest`), de la requête ou de la réponse brutes, d'un *guard*, d'un *pipe*, d'un filtre d'exceptions ou d'une `HttpException`, d'un intercepteur ou du `Logger` de `@nestjs/common`, un import sans nom de celui-ci, ou un import d'un *package* de Nest dont le kit fait le travail (`@nestjs/core`, `@nestjs/swagger`, `@nestjs/cqrs`, `@nestjs/passport`, `@nestjs/config`, `@nestjs/schedule` et les autres de la section 3 d'ARCHITECTURE.md) ; le message dit ce que le kit fait à sa place ; sous la racine des sources hors des contextes, tests à part : un fichier qui importe `Controller` de `@nestjs/common`, ni `KitRoute` ni `KitRoutes`, et nomme `CommandBus` ou `QueryBus` ou importe un fichier d'un contexte |
|
|
2232
2243
|
| `nest/controllers-current` | avec `"stack.routes": "nest"` : un `<context>.controllers.ts` qui diffère de ce que donnent les contrôleurs Nest du contexte et les signatures de leurs méthodes, ou absent ; une partie de la requête prise entière par aucune classe DTO et que `request` de `@KitRoute` ne donne pas ; une méthode de route qui ne répond ni une classe DTO, ni `Accepted`, ni `void`, et ne déclare pas de `response` dans `@KitRoute` |
|
|
2233
|
-
| `tenancy/scoped-statement` | avec `stack.tenancy` autre que `none`, dans `infrastructure/` d'un contexte, tests mis à part : sur Knex, l'exécuteur utilisé autrement que comme argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) et tout `.raw(` ; sur Drizzle, instruction par instruction, une lecture, une mise à jour ou une suppression sur l'exécuteur dont le where n'a ni `tenantCondition(` ni `ownTenantCondition(` (en ligne ou dans la variable locale qu'il reçoit), une insertion dont la ligne n'a pas de `tenantScopeOf(`, une requête relationnelle (`executor().query`), un `execute(` brut, ou l'exécuteur gardé dans une variable ; sur Prisma, instruction par instruction sur le client, une lecture (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) dont le where ne décompose pas `tenantWhere(`, une mise à jour ou une suppression dont le where ne décompose pas `ownTenantWhere(`, une création dont les données ne décomposent pas `tenantScopeOf(` (en ligne ou dans une variable locale que les arguments nomment), `findUnique(`, `upsert(`, une requête brute (`$queryRaw`, `$executeRaw`), ou le client gardé dans une variable ; sur TypeORM, la même chose sur le *manager* (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, la ligne confiée à `insertIgnoringConflict(`, un *query builder* dont le where ne porte aucune condition, `save(`, `upsert(`, `query(`) ; sur les quatre, un magasin de modèle de lecture construit sans son option `tenant`. Un where construit par une autre fonction n'est pas suivi |
|
|
2244
|
+
| `tenancy/scoped-statement` | avec `stack.tenancy` autre que `none`, dans `infrastructure/` d'un contexte, tests et contexte dont `tenancy` vaut `control-plane` mis à part : sur Knex, l'exécuteur utilisé autrement que comme argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) et tout `.raw(` ; sur Drizzle, instruction par instruction, une lecture, une mise à jour ou une suppression sur l'exécuteur dont le where n'a ni `tenantCondition(` ni `ownTenantCondition(` (en ligne ou dans la variable locale qu'il reçoit), une insertion dont la ligne n'a pas de `tenantScopeOf(`, une requête relationnelle (`executor().query`), un `execute(` brut, ou l'exécuteur gardé dans une variable ; sur Prisma, instruction par instruction sur le client, une lecture (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) dont le where ne décompose pas `tenantWhere(`, une mise à jour ou une suppression dont le where ne décompose pas `ownTenantWhere(`, une création dont les données ne décomposent pas `tenantScopeOf(` (en ligne ou dans une variable locale que les arguments nomment), `findUnique(`, `upsert(`, une requête brute (`$queryRaw`, `$executeRaw`), ou le client gardé dans une variable ; sur TypeORM, la même chose sur le *manager* (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, la ligne confiée à `insertIgnoringConflict(`, un *query builder* dont le where ne porte aucune condition, `save(`, `upsert(`, `query(`) ; sur les quatre, un magasin de modèle de lecture construit sans son option `tenant`. Un where construit par une autre fonction n'est pas suivi |
|
|
2234
2245
|
| `standard/no-parallel-interface` | une classe, une interface ou un alias de type déclaré comme `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (hors de `presentation/` et de la plateforme), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` suivi d'un nom standard (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) ou un nom de `standardInterfaces` ; une classe qui implémente ou étend l'interface standard est un adaptateur et n'est pas signalée |
|
|
2235
2246
|
| `events/outbox-required` | `stack.events` autre que `outbox` avec un ORM et sans dérogation `stack.events` ; dans `domain/` et `application/`, l'import d'un client de *broker* ou d'une implémentation de bus ou de relais ; un *publisher* qui dépend de plus que `IntegrationEventPublisher` ; un module de la plateforme qui distribue un *publisher* et ne nomme jamais `OutboxPublisher` |
|
|
2236
2247
|
| `events/consumer-idempotent` | une classe de gestionnaire d'événement d'intégration (`application/integration/handlers/*.integration-handler.ts`) qui ne porte pas `@IntegrationEventHandler` et n'est pas non plus enregistrée dans son fichier de module sous un nom de consommateur ; un `@IntegrationEventHandler` dont le `consumer` n'est pas une chaîne littérale non vide ; un `on(` ou un `consume(` libre sans `processed` ; un nom de consommateur utilisé deux fois, dans les déclarations comme dans les enregistrements |
|
|
@@ -2242,7 +2253,7 @@ règle.
|
|
|
2242
2253
|
| `event-sourcing/projection-never-appends` | dans `application/projections/` ou un fichier qui déclare `@Projection`, `EventStore` ou `EventSourcedRepository` importé ; dans une projection déclarée `{ feed: 'event-store' }`, tout ce qui vient de `domain/repositories/` aussi |
|
|
2243
2254
|
| `event-sourcing/upcaster-required` | un `defineStoredEvent` dont `encode` ne nomme aucun type, ou un type non déclaré dans le fichier, ou un type qu'il atteint et que le fichier ne déclare pas ; une version au-dessus de 1 sans *upcaster* depuis chaque version inférieure ; une version en dessous de la dernière enregistrée dans `stored-events.lock.json`, ou une version enregistrée dont la forme a changé. `ddd-ts-kit docs --stored-events` enregistre les nouvelles versions et n'en réécrit jamais une ; `docs --check` échoue tant qu'une version déclarée n'est pas enregistrée |
|
|
2244
2255
|
| `context/extractable` | un fichier de module qui importe un autre contexte hors de son langage publié ; une persistance qui importe l'infrastructure d'un autre contexte ou nomme son schéma ; un gestionnaire qui importe le *repository* d'un autre contexte ; `export let` ou un `new Map`, `Set`, `WeakMap` exporté au niveau du module ; `deployable: true` sans `apps/<context>/main.ts` ; dans le style déclaré, un fichier de rôle qui importe quoi que ce soit d'un fichier de port d'un autre contexte |
|
|
2245
|
-
| `governance/recorded-deviation` | un commentaire `ddd-ts-kit-disable` ou `eslint-disable` dont la raison ne nomme aucun `ADR-<number>` avec un fichier `docs/adr/<number>-*.md` ; une règle mise à `off` (ou à `warn` en dessous de sa valeur par défaut), un répertoire supplémentaire, un *package* autorisé supplémentaire, un `guard` autre que `enforce` ou `stack.events` hors de l'outbox, sans entrée `deviations` `{ what, adr, reason }` qui pointe vers un enregistrement existant |
|
|
2256
|
+
| `governance/recorded-deviation` | un commentaire `ddd-ts-kit-disable` ou `eslint-disable` dont la raison ne nomme aucun `ADR-<number>` avec un fichier `docs/adr/<number>-*.md` ; une règle mise à `off` (ou à `warn` en dessous de sa valeur par défaut), un répertoire supplémentaire, un contexte dont `tenancy` vaut `control-plane`, un *package* autorisé supplémentaire, un `guard` autre que `enforce` ou `stack.events` hors de l'outbox, sans entrée `deviations` `{ what, adr, reason }` qui pointe vers un enregistrement existant |
|
|
2246
2257
|
| `declarations/role-declared` | style déclaré seulement : un fichier de rôle (autre que `*.command.ts` et `*.query.ts`, tenus par `authz/declared` ; `*.job.ts` sous `application/scheduling/` avec `@Scheduled` et `*.publisher.ts` avec `@DomainEventHandler` sont des rôles) qui n'exporte aucune classe portant le décorateur de son suffixe et de son dossier, ou une classe qui en porte une autre ; une classe déclarée dans un fichier qui n'est pas un fichier de rôle ; une option `consumer` ou `name` manquante, vide, une variable, une concaténation ou un template literal avec une substitution ; tout décorateur de déclaration sur une classe sous `domain/` |
|
|
2247
2258
|
| `declarations/barrel-current` | style déclaré seulement : avec `stack.assembly: barrel`, un `<layer>.declarations.ts` d'une couche manquant ou qui diffère d'un `export *` par fichier de rôle de la couche trié par chemin, suivi d'un `injected(Class, [Tokens])` par classe de la couche dont le constructeur reçoit quelque chose (lu depuis les signatures, avec leurs imports), un `<context>.declarations.ts` manquant ou qui diffère d'un `export *` par tel fichier trié par chemin, et les déclarations d'une couche qui ne contient plus aucun fichier de rôle ; avec `discovery`, des déclarations générées qui existent encore, et un `<context>.dependencies.ts` qui diffère de ces instructions `injected` (son absence est acceptée tant qu'il n'en contiendrait aucune). Le message nomme le fichier de rôle manquant ou la classe dont la liste est périmée. Un contexte encore déclaré comme l'écrivait une version antérieure, exactement tel que l'écrirait cette version (le fichier unique `<context>.declarations.ts` de 0.84, ou un `<folder>.declarations.ts` par dossier de rôle comme l'écrivaient 0.85 et 0.86), est un avertissement dans cette version (`docs --check` passe et l'affiche, `docs` le déplace) et une erreur dans une version mineure ultérieure. Elle a besoin de l'arbre, c'est pourquoi `check-file` ne l'exécute pas |
|
|
2248
2259
|
| `declarations/constructor-injection` | style déclaré seulement, dans un fichier de rôle : sur une classe dont le décorateur ne liste rien, un paramètre de constructeur optionnel, qui a une valeur par défaut, est un paramètre du reste ou est déstructuré, n'a pas de type, ou est typé par autre chose qu'un nom de classe (arguments de type mis à part) : une union, une intersection, un tableau, un nom qualifié, un type du langage, une interface, un alias de type, une enum ou une classe non exportée du fichier ou du fichier du projet d'où elle est importée ; une classe qui hérite son constructeur d'une classe que le projet ne sait pas lire. Sous `stack.dependencies: signature`, un décorateur qui porte une liste alors que le constructeur peut être lu : une liste qui le répète, une qui en diffère |
|
package/README.md
CHANGED
|
@@ -44,7 +44,9 @@ CLI is the one the project pins: `pnpm exec ddd-ts-kit <command>`, or `npx ddd-t
|
|
|
44
44
|
Every command accepts `--json` (machine-readable output, errors included) and `--cwd <dir>`.
|
|
45
45
|
Commands other than `init` look for `ddd-ts-kit.config.json` in the directory and its parents.
|
|
46
46
|
Exit codes: `0` success, `1` violations, stale documentation or, under `--strict`, a commit over
|
|
47
|
-
its limits, `2` wrong usage (the message says what to do)
|
|
47
|
+
its limits, `2` wrong usage (the message says what to do), `3` a command that writes files could
|
|
48
|
+
not write some of them where it ran (a path the sandbox of an agent protects): they are listed
|
|
49
|
+
under `unwritable`, every other file is written and none is deleted.
|
|
48
50
|
|
|
49
51
|
## init
|
|
50
52
|
|
|
@@ -547,7 +549,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
547
549
|
| `src/platform/auth/authorization/` | `create-authorizer.ts`, `authorization.ts` (`authorizationModule` with tsyringe) or `use-case-protection.ts` (the guard of the hand-wired buses), `access-policies.ts`, `role.ts` (the roles a credential carries, with roles or attributes, or once a guard names one), `permissions.ts` (the registry of every permission, with relationships or an authorizer of your own), `signed-in-grants.ts` once a context preset grants every signed-in person, and with `--audit off` `log-decisions.ts` (one log entry per decision, ids and codes only) |
|
|
548
550
|
| `src/platform/auth/<model>/` | `roles/roles.ts` (with the role `system` every system actor holds); `attributes/attribute-policies.ts`; `relationships/`: `relationship-schema.ts`, `create-tuple-store.ts` and its contract spec, `relation-tuples.ts`, `relate-system-actors.ts`; `custom/`: `custom-authorizer.ts` and its `authorizerContract` spec |
|
|
549
551
|
| `--representations negotiated`, `--forms on` | `src/platform/http/presentation-of.ts` (`Representations.standard()` with `negotiated`, and `fieldDeciderOf` over the `Access` of the application), spread into the HTTP boundary and given to the contract script; with `--forms on`, `src/platform/http/with-forms.ts` adds `formRoutes` to the routes and `scripts/openapi.ts` writes `openapi/forms/<operationId>.json`. Both are the default with an HTTP stack; `json` and `off` leave them out ([docs/CONFIG.md](../../docs/CONFIG.md)) |
|
|
550
|
-
| `--audit on` | `src/platform/audit/`: `create-audit.ts` (the trail, the `onDecision` of the authorization, the refusals of the guards at the edge given to the HTTP boundary as `onGuardRefusal`, the middleware before the unit of work, the integration events subscribed under the consumer name `audit`), `audited-events.ts` (the registry `generate integration-event` adds to), `audit.module.ts`, and with an HTTP stack the read side: `audit.permissions.ts` (`audit:trail.read`), then in `search-audit-entries/`: `search-audit-entries.query.ts`, its handler, `search-audit-entries.route.ts` or `.controller.ts` (`GET /audit/entries`: cursor pages, filters `actorId`, `action`, `outcome`, `correlationId`), which starts with the endpoint and takes what it receives and answers from `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` and `audit-outcomes.ts`. It is a capability of the platform, not a bounded context: no model, one protected query over the `AuditReader` port, bounded by the tenant of the actor (with `--tenancy shared-table`, by the tenant of the work through `TenantAuditReader`: platform staff read across tenants only inside `acrossTenants`). The refusals of a caller without a credential are not recorded. A scheduled job is audited like a request: origin `schedule`, actor `system:<context>.<job>`. With knex the two tables and their append-only triggers are created by the first migration; with drizzle the tables are in `schema.ts` and `npm run db:generate` adds the trigger statements to the migration that creates the tables (`npm run db:audit-guard` prints them for a migration by hand); with prisma and typeorm the tables are models of `prisma/schema.prisma` or entities of `schema.ts` (`auditPrismaModels`, `auditEntities` of `@ddd-ts-kit/audit`), written by `PrismaAuditTrail` and `TypeOrmAuditTrail`, and `npm run db:generate` (through `ddd-ts-kit prisma-generate` or `typeorm-generate`) adds the trigger statements to the migration that creates the tables, `npm run db:audit-guard` printing them for a migration by hand; the test databases install that guard; with `custom` or no ORM the trail is an `InMemoryAuditTrail` behind a `TODO(platform)`. The test databases leave the audit schema out of `reset()`. With the trail in a database and `--storage local` or `s3`, `audit.module.ts` (or the hand-wired composition) registers `audit.archive` on the first day of every month at 04:00 UTC: the entries older than twelve whole months move to the storage under `audit-archives/`, verified, read back and anchored (`ArchiveAuditEntries`); with `s3` it runs unless `JOB_AUDIT_ARCHIVE_ENABLED=false`, with `local` only with `JOB_AUDIT_ARCHIVE_ENABLED=true`, since the archive removes the entries from the database and the disk of the server may not last |
|
|
552
|
+
| `--audit on` | `src/platform/audit/`: `create-audit.ts` (the trail, the `onDecision` of the authorization, the refusals of the guards at the edge given to the HTTP boundary as `onGuardRefusal`, the middleware before the unit of work, the integration events subscribed under the consumer name `audit`), `audited-events.ts` (the registry `generate integration-event` adds to), `audit.module.ts`, and with an HTTP stack the read side: `audit.permissions.ts` (`audit:trail.read`), then in `search-audit-entries/`: `search-audit-entries.query.ts`, its handler, `search-audit-entries.route.ts` or `.controller.ts` (`GET /audit/entries`: cursor pages, filters `actorId`, `action`, `outcome`, `correlationId`), which starts with the endpoint and takes what it receives and answers from `audit-entries-parameters.ts`, `audit-entries-filter-of.ts`, `audit-entry-view.ts`, `audit-entry-view-of.ts` and `audit-outcomes.ts`. It is a capability of the platform, not a bounded context: no model, one protected query over the `AuditReader` port, bounded by the tenant of the actor (with `--tenancy shared-table`, by the tenant of the work through `TenantAuditReader`: platform staff read across tenants only inside `acrossTenants`). The refusals of a caller without a credential are not recorded. A scheduled job is audited like a request: origin `schedule`, actor `system:<context>.<job>`. With knex the two tables and their append-only triggers are created by the first migration; with drizzle the tables are in `schema.ts` and `npm run db:generate` adds the trigger statements to the migration that creates the tables (`npm run db:audit-guard` prints them for a migration by hand); with prisma and typeorm the tables are models of `prisma/schema/schema.prisma` or entities of `schema.ts` (`auditPrismaModels`, `auditEntities` of `@ddd-ts-kit/audit`), written by `PrismaAuditTrail` and `TypeOrmAuditTrail`, and `npm run db:generate` (through `ddd-ts-kit prisma-generate` or `typeorm-generate`) adds the trigger statements to the migration that creates the tables, `npm run db:audit-guard` printing them for a migration by hand; the test databases install that guard; with `custom` or no ORM the trail is an `InMemoryAuditTrail` behind a `TODO(platform)`. The test databases leave the audit schema out of `reset()`. With the trail in a database and `--storage local` or `s3`, `audit.module.ts` (or the hand-wired composition) registers `audit.archive` on the first day of every month at 04:00 UTC: the entries older than twelve whole months move to the storage under `audit-archives/`, verified, read back and anchored (`ArchiveAuditEntries`); with `s3` it runs unless `JOB_AUDIT_ARCHIVE_ENABLED=false`, with `local` only with `JOB_AUDIT_ARCHIVE_ENABLED=true`, since the archive removes the entries from the database and the disk of the server may not last |
|
|
551
553
|
| `--event-sourcing on` | recorded as `stack.eventSourcing`, `off` unless asked: `Persistence` gains `eventSourcing` (`create<Orm>EventSourcing` in the `event_store` schema, whose five tables the schema file declares; the in-memory stores with `--orm none`), and `src/platform/event-sourcing/`: `create-event-sourcing.ts` (`EventSourcing`: the stores, the `SubjectKeyStore` wrapped by `auditedSubjectKeys` with `--audit on`, and the `PersonalDataCipher` over it) and, on tsyringe, `event-sourcing.module.ts` (binds `EventStore`, `SnapshotStore`, `CheckpointStore`, `SubjectKeyStore` and `PersonalDataCipher`, so an event-sourced repository adapter names them in its constructor; the hand-wired `Platform` carries them as `platform.eventSourcing`); `platform-test.module.ts` binds the in-memory stores, so a handler spec of an event-sourced aggregate needs no fake. `generate aggregate --event-sourced` is refused without it, with the `init --force --event-sourcing on` to run. Refused with `--orm custom`: the event store of the kit runs on PostgreSQL through the four ORM packages |
|
|
552
554
|
| `--privacy on` | recorded as `stack.privacy`, `on` when there is an ORM: `src/platform/privacy/`, with `data-subject-copies.ts` and `data-subject-exports.ts` (the ports, or the adapters by hand, of the contexts that extend `PersonalDataErasure` and `PersonalDataExport`, between markers; `generate repository --personal` lists the erasure and the export of a context there), `run-erasure.ts` (`runErasure(subject, { operator, correlationId, tenants? })`: an execution context of origin `cli` with the operator as actor, the key of the subject when the project has an event store, then `eraseDataSubject` of the kernel over the copies, `inEachTenant` with `--tenancy shared-table`, then `privacy.data-subject.erased` published through the outbox, once per tenant) and `run-export.ts` (`runExport(subject, { operator, correlationId, tenants? })`: `exportDataSubject` of the kernel over the exports, each wrapped by `auditedPersonalDataExport` with `--audit on`, `recordsInEachTenant` with `--tenancy shared-table`, one dated `PersonalDataExportDocument`), and the two scripts below. `docs/privacy/register.md`, the register of personal data `ddd-ts-kit docs` keeps (see `docs` below). A project without personal data takes `--privacy off` and pays nothing. No HTTP command erases yet: the two scripts are the entry points |
|
|
553
555
|
| `--tenancy shared-table` | recorded as `stack.tenancy`; the four ORMs. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` (Knex), `tenantCondition` and `ownTenantCondition` (Drizzle), `tenantWhere` and `ownTenantWhere` (Prisma, TypeORM); the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, `tenantOutboxTable`, the `tenantId` field of the Prisma model and `PrismaOutboxStore`'s `tenant: true`, `outboxEntity({ tenant: true })`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
|
|
@@ -559,7 +561,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
559
561
|
| `--storage local\|s3` | recorded as `stack.storage`: where the content of files lives, never in the database. `src/platform/config/read-files.ts` and `src/platform/files/open-files.ts`, one per choice: `local`, a directory in development (`FILES_DIRECTORY`, `.data/files`) and the signed links answered by the application under `/files` (`FILES_PUBLIC_URL` and `FILES_SIGNING_SECRET` required in production); `s3`, a bucket of any provider of the S3 protocol through `@ddd-ts-kit/s3` (the `S3_*` variables, MinIO in the compose stack); the memory of the process in the tests and the tools, either way. With `--di tsyringe`: `files/bind-files.ts`, `files/files.module.ts` and `files/staging-uploads.ts`; with hand wiring `files/create-files.ts`; with an HTTP stack `files/file-routes.ts`. They bind `FileStorage`, `FileKeys`, `FileScanner` and `FileStaging`, register the hourly purge of staged files and stage the file a command carries before its transaction; `generate file-upload` needs them. `--storage none` writes none of this ([File storage](../../docs/concepts/file-storage.md)) |
|
|
560
562
|
| `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, and for `--broker` `create-event-provider.ts`: `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, with `aggregate-key-of.ts` for per-aggregate order), `NatsEventBus` (`NATS_URL`) or `RedisStreamsEventBus` of `@ddd-ts-kit/redis/event-bus` (`REDIS_URL`: Redis, Dragonfly or Valkey), each with one subscriber per consuming context (`forConsumer`), `assertTopology` at start, its address validated and a compose service with a healthcheck; or `custom-event-bus.ts` with its `eventBusContract` spec. `start-outbox-relay.ts` with the outbox. `--broker redis` with `--cache redis` is one server and one compose service, `cache`; alone, the service is `streams` |
|
|
561
563
|
| `src/platform/database/` | `persistence.ts` (`interface Persistence`: unit of work, outbox and processed-event stores of the ORM package, the storage handle), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, the connection (`connect-to-database.ts`, `create-client.ts` or `create-data-source.ts`), `schema.ts` (`MESSAGING_SCHEMA`, the schema of what the kit stores for the application), `open-test-database.ts` (PostgreSQL in process, or the server named by a URL; with Vitest each spec opens a copy of the cluster `test/support/test-database-template.ts`, the global setup of the run, initialised once, and creates its tables there; with drizzle from `table-statements.ts`, the SQL of the tables of `schema.ts`, since drizzle-kit writes migrations, not tables, its unique indexes included), `persistence.contract.spec.ts` (the outbox, processed-event, job and process stores as the platform wires them, held to the contracts of `@ddd-ts-kit/testing` with what the stack turns on: the tenant under `--tenancy`, the unit of work). The storage class a repository adapter names in its dependency list: `database.ts` with drizzle and prisma (`abstract class Database extends` the context type of the ORM package), `KnexContext` of `@ddd-ts-kit/knex`, `TypeOrmContext` of `@ddd-ts-kit/typeorm` |
|
|
562
|
-
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema.prisma` and `prisma.config.ts`, or `data-source.ts` |
|
|
564
|
+
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (the client, the datasource and the tables of the platform; `generate repository` adds the file of each context, `prisma/schema/<context>.prisma`) and `prisma.config.ts`, or `data-source.ts` |
|
|
563
565
|
| `scripts/openapi.ts`, `scripts/events.ts` | write `openapi/openapi.yaml` (one file per document of `openapi.documents`), `docs/integration/asyncapi.yaml` and `docs/integration/event-catalog.md`, in JSON under `openapi.format: json`; `--check` fails on a difference |
|
|
564
566
|
| `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | with `--privacy on`, the two requests of a data subject, answered from the command line on the sources with the variables of `.env` (`npm run privacy:erase -- <subject-id> [--operator <who-asks>]`, `npm run privacy:export -- <subject-id> > export.json`): the erasure destroys the key of the subject first when the project has an event store (`--event-sourcing on`: its stored events read as erased; audited with `--audit on`), then erases every copy listed in `src/platform/privacy/data-subject-copies.ts`; `privacy:purge` runs by hand what the job `privacy.purge-expired` runs every night at 03:00 UTC, the purge of what outlived its retention (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` switches the job off); the export gathers every record listed in `data-subject-exports.ts` into one dated JSON document (`format`, `subject`, `exportedAt`, `records`), the export of each context audited with `--audit on`, never the values (every run leaves its entry, a trial included: try it on a test subject). With `--tenancy shared-table`, `TENANTS` names the tenants, comma separated: a write of tenant data is never widened. Neither reaches backups, logs or a copy no context declared |
|
|
565
567
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile (its UI and its OTLP port bound to 127.0.0.1), ports from `.env`; a multi-stage, non-root image with production dependencies only |
|
|
@@ -578,7 +580,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
578
580
|
| `REVIEW.md` | the review policy of the project: the passes of a review (bugs, security, compliance against the design review of the row, the acceptance of the story, the records of `docs/adr/` and the rules), what Important means, at most five nits (a recurring one becomes a line of `AGENTS.md` under `## Mistakes seen here` or a rule of the config), what is not reported (generated files, what `npm run verify` refuses). Read by the `architecture-reviewer` agent on top of its method, by a human reviewer and by any review bot. Written once, for the team to edit: `--force` leaves it alone, `doctor` says when it is missing |
|
|
579
581
|
| `.github/copilot/settings.json` | the plugin of the kit, declared for GitHub Copilot (`extraKnownMarketplaces`, `enabledPlugins`): its cloud agent installs it, the Copilot CLI and VS Code recommend it; an existing file keeps what it holds and gains the two entries |
|
|
580
582
|
| `.claude/hooks/production-gate.mjs`, `.claude/hooks/change-reference.mjs` | with `--agent-profile regulated`: the two hooks of the profile, registered under `hooks.PreToolUse` of `.claude/settings.json`, written once for the team to edit (`--force` writes them again). The gate blocks a command that names the production environment with a release action unless `RELEASE_APPROVAL` names an approver and a change; the reference asks before an edit of a migration or of the containers, for the `Change: <id>` trailer of the commit ([Sandboxing coding agents](../../docs/guides/agent-sandbox.md#the-regulated-profile)) |
|
|
581
|
-
| `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable),
|
|
583
|
+
| `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
|
|
582
584
|
| `.gitignore` | `node_modules`, `dist`, `coverage`, `.env`, `*.tsbuildinfo`, `.ddd-ts-kit/`, where `worker-scope` writes, and `.worktrees/`, where the worktrees live |
|
|
583
585
|
|
|
584
586
|
`--ci both` writes the two pipelines, `--ci none` neither (and no `renovate.json`). The pipeline
|
|
@@ -588,11 +590,16 @@ documented placeholders.
|
|
|
588
590
|
|
|
589
591
|
`--agent-profile regulated` records `agents.profile` in the config, with or without `--force`
|
|
590
592
|
(`--agent-profile none` removes it), and writes the `sandbox` block of Claude Code next to the
|
|
591
|
-
permissions: enabled, failing when the sandbox is unavailable, no unsandboxed retry, the
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
593
|
+
permissions: enabled, failing when the sandbox is unavailable, no unsandboxed retry, the caches
|
|
594
|
+
the install of the stack writes as the only paths outside the project and the temporary directory
|
|
595
|
+
(`~/.npm`, or the store and the cache of pnpm, and `~/.cache/prisma` with Prisma), the npm
|
|
596
|
+
registry, the git host of the project (from `repository` of `package.json`, else the `origin`
|
|
597
|
+
remote) and the hosts the install scripts of the stack download from (`binaries.prisma.sh` with
|
|
598
|
+
Prisma, `github.com` and `release-assets.githubusercontent.com` with the Kafka client) as the only
|
|
599
|
+
hosts, the credential files (`~/.ssh`, `~/.aws`, `~/.config/gcloud`, `~/.azure`) and the usual secret variables denied to every sandboxed command; a key the project
|
|
600
|
+
already set is kept, and a list it holds gains the entries the stack needs. It also prints, as a
|
|
601
|
+
note, that the owner runs the first install outside the agent (a path missing when a session
|
|
602
|
+
starts stays read-only to it), and the block of managed settings a project file
|
|
596
603
|
cannot set (`allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`,
|
|
597
604
|
`permissions.disableBypassPermissionsMode`, `strictKnownMarketplaces` with the marketplace of
|
|
598
605
|
the kit, `requiredMinimumVersion`), for the platform team to paste, and writes the two hooks of
|
|
@@ -642,8 +649,9 @@ leaves its organisations; an address the provider did not verify provisions no a
|
|
|
642
649
|
`generic`. Every signed-in person holds the permissions of the context whatever `--authz` says:
|
|
643
650
|
the grant `'identity:*'` of `platform/auth/authorization/signed-in-grants.ts`, answered by
|
|
644
651
|
`SignedInGrantsAuthorizer` before the model in `createAuthorizer`. With tenants, the tables of
|
|
645
|
-
the context belong to none, under a decision record the preset writes
|
|
646
|
-
|
|
652
|
+
the context belong to none, under a decision record the preset writes and the declaration of the
|
|
653
|
+
context as the control plane of the tenants (`contexts.<name>.tenancy`, no suppression in its
|
|
654
|
+
adapters), and with `--authn keycloak` the authenticator reads the `organization` claim as the tenants of the person
|
|
647
655
|
(another authenticator gets a next step saying what to map). The preset is written for
|
|
648
656
|
`declared` with `signature` dependencies, `factories`, `throwing` value objects, `controllers` or `nest` routes (Nest controllers, read from their
|
|
649
657
|
signatures, on a Nest project),
|
|
@@ -729,7 +737,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
729
737
|
| `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
|
|
730
738
|
| `policy` | `<context> <Name> --permission <aggregate>.<action>` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/authorization/access-policies.ts` |
|
|
731
739
|
| `gateway` | `<context> <upstreamContext> <Name>` | the read contract in the upstream's published language (`<name>.contract.ts`, an abstract class and the token of the upstream value), the port `application/ports/<name>-gateway.port.ts`, an in-process adapter in `infrastructure/external/` bound `.as('gateway')`, a fake, one contract suite; refused unless the upstream is declared |
|
|
732
|
-
| `adapter` | `<context> <Port> [--kind external\|gateway] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused |
|
|
740
|
+
| `adapter` | `<context> <Port> [--kind external\|gateway\|simulated] [--decorators]` | `infrastructure/external/remote-<port>.adapter.ts` for an existing port, its spec, and on tsyringe its binding `builder.bind(<Port>).toClass(Remote<Port>).as(<kind>).with(ownPolicy(retry(...), timeout(...)))`; with `--decorators`, on every stack, the class carries `@Retry` and `@Timeout` of `@ddd-ts-kit/aspects/decorators` on its one outbound method and is bound `.with(ownPolicy())`. Explicit: a port that is already bound, or hand wiring, gets a note instead of a binding. Declared: the class carries `@Adapter(<Port>, { kind, aspects })`, or `@Gateway(<Port>, { aspects })` in `remote-<port>.gateway.ts` with `--kind gateway`, and a port that already has a declared adapter is refused. With `--kind simulated`: `infrastructure/external/simulated-<port>.adapter.ts` and its spec, a class of production code that answers in the memory of the process the way the outside system would, for an environment whose provider is simulated; it carries no policy (`--decorators` is refused), is declared `@Adapter(<Port>, { kind: 'external' })` or bound `.toClass(Simulated<Port>).as('external')`, and takes turns with the remote adapter, one per port |
|
|
733
741
|
| `service` | `<context>` | `src/apps/<context>/main.ts` (kernel, platform, that context only, with its jobs: `jobSettings(process.env, '<context>')`), script `start:<context>`, a compose service behind the `services` profile, the knip entry, `deployable: true` in the config. The Dockerfile takes the entry as build argument `ENTRY` |
|
|
734
742
|
| `worker` | none | `src/apps/worker/main.ts`: the modules of `main.ts`, no HTTP server, no outbox relay, the jobs started whatever `RUN_JOBS` says, a graceful stop; script `start:worker`, a compose service `worker` behind the `services` profile, the knip entry, `"worker": true` in the config, and `RUN_JOBS` defaulting to `false` from then on, so the API stops running the jobs the worker runs. With several instances the lock has to be a real one: `--cache redis` binds the Redis lock, without it the generated README says the limit. A context named `worker` is refused |
|
|
735
743
|
| `adr` | `"<title>" [--deviation <what>] [--reason "<why>"]` | `docs/adr/NNNN-<slug>.md`; with `--deviation`, the `deviations` entry of the config that points to it |
|
|
@@ -835,7 +843,9 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
835
843
|
`## Ubiquitous language` table of the context (plural, past participle and -ing forms are
|
|
836
844
|
recognised). `--term "<Term>=<meaning>"`, repeatable, adds the rows in the same command.
|
|
837
845
|
Technical words (`Manager`, `Helper`, `Data`, `Impl`, `Model`...) and an event fact that does
|
|
838
|
-
not read as past tense are refused too
|
|
846
|
+
not read as past tense are refused too; a technical word passes when a term of the glossary
|
|
847
|
+
holds it (`--term "Scoring model=<meaning>"` lets `ScoringModel` through), because the language
|
|
848
|
+
of the business wins. `--allow-name` overrides the three checks; `check`
|
|
839
849
|
will still report what the glossary does not define.
|
|
840
850
|
- Generated code compiles as is and passes `check`, the ESLint preset, dependency-cruiser and knip
|
|
841
851
|
at the default severities: one export per file, files far under 350 lines, `private` members,
|
|
@@ -2065,7 +2075,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2065
2075
|
| `events/defined-in-published-language` | `defineIntegrationEvent` outside a published language, without a payload, twice for one version; an event described by hand |
|
|
2066
2076
|
| `language/glossary-term` | a class of the model named with a word the glossary of its context does not define; an empty glossary; under `"stack.refusals": "factories"` or `"named"`, a class of `domain/errors/` too, a refusal class of `named` allowed the qualifiers `invalid`, `unknown`, `already`, `too`, `no`, `missing` and `required` besides (`<context>.codes.ts` is not judged) |
|
|
2067
2077
|
| `language/declared-vocabulary` | a string literal whose value is a value of a closed vocabulary the project declares (an object `as const` exported with the union type of its name, a permission set of `definePermissions`), outside the file that declares it, in the place that speaks its language (its context; the platform and the route groups for the platform; everywhere for a permission id or the shared kernel); tests, published languages and the relationship schema are not judged, nor, outside `domain/`, a word typed by another language (a key of a `Record<T, ..>`, a value of a `Record<.., T>`, `'x' satisfies T`, `T` a type of a published language, of a package or of `infrastructure/anti-corruption/` or `infrastructure/external/`); under `"stack.literals": "named"` |
|
|
2068
|
-
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` in a type declared under `domain/` or in a use case folder |
|
|
2078
|
+
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` in a type declared under `domain/` or in a use case folder, unless a term of the glossary of the context holds the word (`Scoring model` holds `ScoringModel`) |
|
|
2069
2079
|
| `purity/no-system-clock` | `new Date()` without argument, `Date.now()`, `performance.now()` in `domain/` or `application/` |
|
|
2070
2080
|
| `purity/no-ambient-randomness` | `Math.random`, the random source of `crypto`, an id library |
|
|
2071
2081
|
| `purity/no-environment` | `process.env` and friends, `console`, `fetch`, file system and network modules |
|
|
@@ -2101,7 +2111,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2101
2111
|
| `tracing/platform-only` | an import of `@ddd-ts-kit/tracing` or of an `@opentelemetry/*` package outside the platform directory, `main.ts` and `apps/`, tests included |
|
|
2102
2112
|
| `nest/no-parallel-pipeline` | in `presentation/`, `infrastructure/` or the module file of a context, tests apart: an import of a controller Nest serves (its route and parameter decorators, unless the file imports `KitRoute` or `KitRoutes` of `@ddd-ts-kit/http/nest`), the raw request or answer, a guard, a pipe, an exception filter or an `HttpException`, an interceptor or the `Logger` of `@nestjs/common`, a bare import of it, or an import of a package of Nest whose work the kit does (`@nestjs/core`, `@nestjs/swagger`, `@nestjs/cqrs`, `@nestjs/passport`, `@nestjs/config`, `@nestjs/schedule` and the others of section 3 of ARCHITECTURE.md); the message names what the kit does in its place; under the source root outside the contexts, tests apart: a file that imports `Controller` of `@nestjs/common`, neither `KitRoute` nor `KitRoutes`, and names `CommandBus` or `QueryBus` or imports a file of a context |
|
|
2103
2113
|
| `nest/controllers-current` | with `"stack.routes": "nest"`: a `<context>.controllers.ts` that differs from what the Nest controllers of the context and the signatures of their methods give, or is missing; a part of the request taken whole by no DTO class that `request` of `@KitRoute` does not give; a route method that answers no DTO class, `Accepted` or `void` and declares no `response` in `@KitRoute` |
|
|
2104
|
-
| `tenancy/scoped-statement` | with `stack.tenancy` other than `none`, in `infrastructure/` of a context, tests aside: on Knex the executor used other than as an argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) and any `.raw(`; on Drizzle, statement by statement, a read, update or delete on the executor whose where has no `tenantCondition(` nor `ownTenantCondition(` (inline or in the local it is given), an insert whose row has no `tenantScopeOf(`, a relational query (`executor().query`), a raw `execute(`, or the executor held in a variable; on Prisma, statement by statement on the client, a read (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) whose where spreads no `tenantWhere(`, an update or a delete whose where spreads no `ownTenantWhere(`, a create whose data spreads no `tenantScopeOf(` (inline or in a local the arguments name), `findUnique(`, `upsert(`, a raw query (`$queryRaw`, `$executeRaw`), or the client held in a variable; on TypeORM the same on the manager (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, the row handed to `insertIgnoringConflict(`, a query builder whose where carries no condition, `save(`, `upsert(`, `query(`); on the four, a read model store built without its `tenant` option. A where built by another function is not followed |
|
|
2114
|
+
| `tenancy/scoped-statement` | with `stack.tenancy` other than `none`, in `infrastructure/` of a context, tests and a context whose `tenancy` is `control-plane` aside: on Knex the executor used other than as an argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) and any `.raw(`; on Drizzle, statement by statement, a read, update or delete on the executor whose where has no `tenantCondition(` nor `ownTenantCondition(` (inline or in the local it is given), an insert whose row has no `tenantScopeOf(`, a relational query (`executor().query`), a raw `execute(`, or the executor held in a variable; on Prisma, statement by statement on the client, a read (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) whose where spreads no `tenantWhere(`, an update or a delete whose where spreads no `ownTenantWhere(`, a create whose data spreads no `tenantScopeOf(` (inline or in a local the arguments name), `findUnique(`, `upsert(`, a raw query (`$queryRaw`, `$executeRaw`), or the client held in a variable; on TypeORM the same on the manager (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, the row handed to `insertIgnoringConflict(`, a query builder whose where carries no condition, `save(`, `upsert(`, `query(`); on the four, a read model store built without its `tenant` option. A where built by another function is not followed |
|
|
2105
2115
|
| `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
|
|
2106
2116
|
| `events/outbox-required` | `stack.events` other than `outbox` with an ORM and no `stack.events` deviation; in `domain/` and `application/`, the import of a broker client or of a bus or relay implementation; a publisher depending on more than `IntegrationEventPublisher`; a platform module that hands out a publisher and never names `OutboxPublisher` |
|
|
2107
2117
|
| `events/consumer-idempotent` | an integration event handler class (`application/integration/handlers/*.integration-handler.ts`) that neither carries `@IntegrationEventHandler` nor is registered in its module file under a consumer name; an `@IntegrationEventHandler` whose `consumer` is not a non-empty string literal; a free `on(` or `consume(` without `processed`; a consumer name used twice, in declarations and registrations alike |
|
|
@@ -2113,7 +2123,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2113
2123
|
| `event-sourcing/projection-never-appends` | in `application/projections/` or a file declaring `@Projection`, `EventStore` or `EventSourcedRepository` imported; in a projection declared `{ feed: 'event-store' }`, anything of `domain/repositories/` too |
|
|
2114
2124
|
| `event-sourcing/upcaster-required` | a `defineStoredEvent` whose `encode` names no type, or a type not declared in the file, or a type it reaches that the file does not declare; a version above 1 without an upcaster from each version below; a version below the last one recorded in `stored-events.lock.json`, or a recorded version whose shape changed. `ddd-ts-kit docs --stored-events` records new versions and never rewrites one; `docs --check` fails while a declared version is unrecorded |
|
|
2115
2125
|
| `context/extractable` | a module file importing another context outside its published language; persistence importing another context's infrastructure or naming its schema; a handler importing another context's repository; `export let` or an exported `new Map`, `Set`, `WeakMap` at module level; `deployable: true` without `apps/<context>/main.ts`; in the declared style, a role file importing anything of a port file of another context |
|
|
2116
|
-
| `governance/recorded-deviation` | a `ddd-ts-kit-disable` or `eslint-disable` comment whose reason names no `ADR-<number>` with a file `docs/adr/<number>-*.md`; a rule set to `off` (or to `warn` below its default), an extra directory, an extra allowed package, a `guard` other than `enforce` or `stack.events` off the outbox, without a `deviations` entry `{ what, adr, reason }` pointing to an existing record |
|
|
2126
|
+
| `governance/recorded-deviation` | a `ddd-ts-kit-disable` or `eslint-disable` comment whose reason names no `ADR-<number>` with a file `docs/adr/<number>-*.md`; a rule set to `off` (or to `warn` below its default), an extra directory, a context whose `tenancy` is `control-plane`, an extra allowed package, a `guard` other than `enforce` or `stack.events` off the outbox, without a `deviations` entry `{ what, adr, reason }` pointing to an existing record |
|
|
2117
2127
|
| `declarations/role-declared` | declared style only: a role file (other than `*.command.ts` and `*.query.ts`, held by `authz/declared`; `*.job.ts` under `application/scheduling/` with `@Scheduled` and `*.publisher.ts` with `@DomainEventHandler` are roles) exporting no class with the decorator of its suffix and folder, or one carrying another declaration; a declared class in a file that is not a role file; a `consumer` or `name` option that is missing, empty, a variable, a concatenation or a template with a substitution; any declaration decorator on a class under `domain/` |
|
|
2118
2128
|
| `declarations/barrel-current` | declared style only: with `stack.assembly: barrel`, a missing `<layer>.declarations.ts` of a layer or one that differs from one `export *` per role file of the layer sorted by path followed by one `injected(Class, [Tokens])` per class of the layer whose constructor takes something (read from the signatures, with their imports), a `<context>.declarations.ts` that is missing or differs from one `export *` per such file sorted by path, and the declarations of a layer that holds no role file any more; with `discovery`, generated declarations that still exist, and a `<context>.dependencies.ts` that differs from those `injected` statements (absent is accepted while it would hold none). The message names the missing role file or the class whose list is stale. A context still declared as an earlier version wrote it, exactly as that version would write it (the single `<context>.declarations.ts` of 0.84, or one `<folder>.declarations.ts` per role folder as 0.85 and 0.86 wrote them), is a warning in this version (`docs --check` passes and prints it, `docs` moves it) and an error in a later minor version. It needs the tree, so `check-file` does not run it |
|
|
2119
2129
|
| `declarations/constructor-injection` | declared style only, in a role file: on a class whose decorator lists nothing, a constructor parameter that is optional, has a default value, is a rest parameter or is destructured, has no type, or is typed by anything but one class name (type arguments aside): a union, an intersection, an array, a qualified name, a type of the language, an interface, a type alias, an enum or an unexported class of the file or of the file of the project it is imported from; a class that inherits its constructor from a class the project cannot read. Under `stack.dependencies: signature`, a decorator that carries a list although the constructor can be read: one that repeats it, one that differs |
|
|
@@ -49,7 +49,7 @@ function refuse(problems) {
|
|
|
49
49
|
}
|
|
50
50
|
function emittedUnder(root, outDir) {
|
|
51
51
|
const files = [];
|
|
52
|
-
walkDirectory(root, outDir, (file, isDirectoryEntry) => {
|
|
52
|
+
walkDirectory({ root, directory: outDir }, (file, isDirectoryEntry) => {
|
|
53
53
|
if (!isDirectoryEntry && EMITTED.test(file)) {
|
|
54
54
|
files.push(file);
|
|
55
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AC9E,CAAC"}
|
|
@@ -13,11 +13,17 @@ import { roleOf } from './role-of.js';
|
|
|
13
13
|
export function strayEntry(entry, config) {
|
|
14
14
|
const placed = place(entry, config);
|
|
15
15
|
// The folder of a declared module holds its layers: it is canonical as the context itself is.
|
|
16
|
-
if (placed === undefined || (placed.module !== undefined && placed.inside === '')) {
|
|
16
|
+
if (placed === undefined || (placed.module !== undefined && placed.inside === '') || inDotDirectory(entry)) {
|
|
17
17
|
return undefined;
|
|
18
18
|
}
|
|
19
19
|
return entry.endsWith('/') ? strayDirectory(placed) : straySource(placed);
|
|
20
20
|
}
|
|
21
|
+
/** A dot-directory of a context (the `.claude/` a sandbox leaves) is written by a tool: it is no part of the tree. */
|
|
22
|
+
function inDotDirectory(entry) {
|
|
23
|
+
const segments = entry.split('/');
|
|
24
|
+
const directories = entry.endsWith('/') ? segments : segments.slice(0, -1);
|
|
25
|
+
return directories.some((segment) => segment.startsWith('.') && segment !== '.' && segment !== '..');
|
|
26
|
+
}
|
|
21
27
|
function place(entry, config) {
|
|
22
28
|
const { contextsDir, contexts, stack } = config;
|
|
23
29
|
const [context = '', ...rest] = entry
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stray-entry.js","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAA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,QAAQ,OAAO,YAAY;QAC5G,CAAC,CAAC,eAAe,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,OAAO,YAAY,CAAC;IAEtE,OAAO;QACL,OAAO,EAAE,IAAI,IAAI,oCAAoC;QACrD,GAAG,EAAE,gDAAgD,OAAO,iCAAiC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAyB,EAAE,SAAiB;IAClE,OAAO,MAAM,CAAC,IAAI,CAChB,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC,CACzG,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-inspection.d.ts","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAeL,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"config-inspection.d.ts","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAeL,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AASpD,qGAAqG;AACrG,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,C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