ddd-ts-kit 0.94.1 → 0.96.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 +76 -0
- package/README.fr.md +83 -21
- package/README.md +78 -22
- 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/cli-error.d.ts +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +4 -3
- package/dist/cli-error.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/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +2 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/generate.d.ts +4 -0
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +16 -6
- 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/plan-waves.d.ts +2 -1
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +28 -2
- package/dist/commands/plan-waves.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/diagnose.d.ts +2 -1
- package/dist/doctor/diagnose.d.ts.map +1 -1
- package/dist/doctor/diagnose.js +4 -1
- package/dist/doctor/diagnose.js.map +1 -1
- package/dist/doctor/doctor-finding.d.ts +1 -1
- package/dist/doctor/doctor-finding.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.js +25 -2
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/doctor/install-script-findings.d.ts +11 -0
- package/dist/doctor/install-script-findings.d.ts.map +1 -0
- package/dist/doctor/install-script-findings.js +86 -0
- package/dist/doctor/install-script-findings.js.map +1 -0
- package/dist/doctor/installed-from.d.ts +3 -0
- package/dist/doctor/installed-from.d.ts.map +1 -0
- package/dist/doctor/installed-from.js +15 -0
- package/dist/doctor/installed-from.js.map +1 -0
- package/dist/doctor/override-findings.d.ts.map +1 -1
- package/dist/doctor/override-findings.js +1 -11
- package/dist/doctor/override-findings.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 +11 -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 +19 -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-context.d.ts.map +1 -1
- package/dist/generate/kinds/generate-context.js +14 -0
- package/dist/generate/kinds/generate-context.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/language-probe.d.ts +16 -0
- package/dist/generate/language-probe.d.ts.map +1 -0
- package/dist/generate/language-probe.js +2 -0
- package/dist/generate/language-probe.js.map +1 -0
- 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 +4 -3
- package/dist/generate/spoken-in-language.d.ts.map +1 -1
- package/dist/generate/spoken-in-language.js +19 -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 +31 -8
- 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 +52 -0
- package/dist/init/first-install-note.js.map +1 -0
- package/dist/init/managed-settings-note.d.ts.map +1 -1
- package/dist/init/managed-settings-note.js +1 -0
- package/dist/init/managed-settings-note.js.map +1 -1
- package/dist/init/manifest/allow-builds-block.d.ts +3 -0
- package/dist/init/manifest/allow-builds-block.d.ts.map +1 -0
- package/dist/init/manifest/allow-builds-block.js +5 -0
- package/dist/init/manifest/allow-builds-block.js.map +1 -0
- package/dist/init/manifest/allow-builds-entries.d.ts +8 -0
- package/dist/init/manifest/allow-builds-entries.d.ts.map +1 -0
- package/dist/init/manifest/allow-builds-entries.js +8 -0
- package/dist/init/manifest/allow-builds-entries.js.map +1 -0
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +4 -2
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/install-scripts-of.d.ts +18 -0
- package/dist/init/manifest/install-scripts-of.d.ts.map +1 -0
- package/dist/init/manifest/install-scripts-of.js +25 -0
- package/dist/init/manifest/install-scripts-of.js.map +1 -0
- package/dist/init/manifest/names-package.d.ts +3 -0
- package/dist/init/manifest/names-package.d.ts.map +1 -0
- package/dist/init/manifest/names-package.js +5 -0
- package/dist/init/manifest/names-package.js.map +1 -0
- package/dist/init/manifest/prisma-client-script.d.ts +3 -0
- package/dist/init/manifest/prisma-client-script.d.ts.map +1 -0
- package/dist/init/manifest/prisma-client-script.js +5 -0
- package/dist/init/manifest/prisma-client-script.js.map +1 -0
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/manifest/write-install-scripts.d.ts +10 -0
- package/dist/init/manifest/write-install-scripts.d.ts.map +1 -0
- package/dist/init/manifest/write-install-scripts.js +78 -0
- package/dist/init/manifest/write-install-scripts.js.map +1 -0
- package/dist/init/manifest/write-manifest.d.ts.map +1 -1
- package/dist/init/manifest/write-manifest.js +9 -1
- package/dist/init/manifest/write-manifest.js.map +1 -1
- 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 +47 -7
- 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/ensure-mergeable.d.ts.map +1 -1
- package/dist/merge/ensure-mergeable.js +15 -0
- package/dist/merge/ensure-mergeable.js.map +1 -1
- package/dist/merge/ensure-writable.d.ts +9 -0
- package/dist/merge/ensure-writable.d.ts.map +1 -0
- package/dist/merge/ensure-writable.js +51 -0
- package/dist/merge/ensure-writable.js.map +1 -0
- 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/is-sandbox-mask.d.ts +4 -0
- package/dist/merge/is-sandbox-mask.d.ts.map +1 -0
- package/dist/merge/is-sandbox-mask.js +5 -0
- package/dist/merge/is-sandbox-mask.js.map +1 -0
- package/dist/merge/merge-trunk.d.ts.map +1 -1
- package/dist/merge/merge-trunk.js +4 -0
- package/dist/merge/merge-trunk.js.map +1 -1
- 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/plan/format-plan.d.ts +2 -1
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +20 -2
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/plan-waves.d.ts.map +1 -1
- package/dist/plan/plan-waves.js +2 -1
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/plan/planned-commands.d.ts +10 -0
- package/dist/plan/planned-commands.d.ts.map +1 -0
- package/dist/plan/planned-commands.js +13 -0
- package/dist/plan/planned-commands.js.map +1 -0
- package/dist/plan/planned-words.d.ts +27 -0
- package/dist/plan/planned-words.d.ts.map +1 -0
- package/dist/plan/planned-words.js +170 -0
- package/dist/plan/planned-words.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +11 -1
- package/dist/plan/wave-plan.d.ts.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 +11 -0
- package/dist/prisma-schema/index.d.ts.map +1 -0
- package/dist/prisma-schema/index.js +11 -0
- package/dist/prisma-schema/index.js.map +1 -0
- package/dist/prisma-schema/keeps-single-prisma-schema.d.ts +7 -0
- package/dist/prisma-schema/keeps-single-prisma-schema.d.ts.map +1 -0
- package/dist/prisma-schema/keeps-single-prisma-schema.js +11 -0
- package/dist/prisma-schema/keeps-single-prisma-schema.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/prisma-schema/single-prisma-schema-found.d.ts +3 -0
- package/dist/prisma-schema/single-prisma-schema-found.d.ts.map +1 -0
- package/dist/prisma-schema/single-prisma-schema-found.js +7 -0
- package/dist/prisma-schema/single-prisma-schema-found.js.map +1 -0
- package/dist/prisma-schema/single-prisma-schema-steps.d.ts +6 -0
- package/dist/prisma-schema/single-prisma-schema-steps.d.ts.map +1 -0
- package/dist/prisma-schema/single-prisma-schema-steps.js +25 -0
- package/dist/prisma-schema/single-prisma-schema-steps.js.map +1 -0
- package/dist/prisma-schema/single-prisma-schema.d.ts +3 -0
- package/dist/prisma-schema/single-prisma-schema.d.ts.map +1 -0
- package/dist/prisma-schema/single-prisma-schema.js +3 -0
- package/dist/prisma-schema/single-prisma-schema.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/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -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/pnpm-workspace.yaml +2 -5
- 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/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
|
|
|
@@ -135,6 +137,20 @@ The project forces the versions that close a vulnerability its stack still pins
|
|
|
135
137
|
nothing of `package.json`: qs `^6.16.0`, which Stryker asks for at 6.15.1 through
|
|
136
138
|
`typed-rest-client`, and under `--http nest` multer `^2.5.0`, which `@nestjs/platform-express`
|
|
137
139
|
asks for at 2.4.0. An override the project already sets for one of them is kept, and said.
|
|
140
|
+
The install scripts the stack needs are allowed by name: `@prisma/engines` under `--orm prisma`
|
|
141
|
+
(it downloads the schema engine that `prisma migrate` and `db:client` run) and
|
|
142
|
+
`@confluentinc/kafka-javascript` under `--broker kafka` (it downloads the prebuilt native client,
|
|
143
|
+
or builds it), in `allowScripts` of `package.json` under npm and in `allowBuilds` of
|
|
144
|
+
`pnpm-workspace.yaml` under pnpm. pnpm runs no build script of a dependency it is not told to;
|
|
145
|
+
npm 11 lists every install script not in `allowScripts` as not yet reviewed, still runs it in
|
|
146
|
+
11.19 with a warning, and says a later release blocks it. By name, because the version is known
|
|
147
|
+
once the install resolved the range, and npm drops an entry written with a range; a team that
|
|
148
|
+
reviews each version pins them after the first install (`npm install-scripts approve <package>`
|
|
149
|
+
turns a name into the installed version), which the regulated profile asks. An entry the project
|
|
150
|
+
has for one of them, a pin or a denial, is kept; a denial is said. The other install scripts an
|
|
151
|
+
install lists (esbuild, `@swc/core`, `unrs-resolver`, `protobufjs`, `@parcel/watcher`, lefthook,
|
|
152
|
+
the preinstall of `prisma`) are not needed by the kit: lefthook's installs the git hooks, which
|
|
153
|
+
`hooks:install` does.
|
|
138
154
|
|
|
139
155
|
**Pipelines.** A pull or merge request runs the unit specs, the integration specs and the lint of
|
|
140
156
|
the contexts its change reaches through the context map ([`ddd-ts-kit affected`](#affected)); types,
|
|
@@ -547,7 +563,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
547
563
|
| `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
564
|
| `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
565
|
| `--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 |
|
|
566
|
+
| `--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
567
|
| `--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
568
|
| `--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
569
|
| `--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 +575,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
559
575
|
| `--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
576
|
| `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
577
|
| `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` |
|
|
578
|
+
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema/schema.prisma` (the client, the datasource and the tables of the platform; `generate repository` adds the file of each context, `prisma/schema/<context>.prisma`) and `prisma.config.ts`, or `data-source.ts`. A project that keeps the one `prisma/schema.prisma` of versions before 0.95 keeps it with its `prisma.config.ts` and its `db:client`, even under `--force`: `init` writes nothing under `prisma/schema/`, its notes give the steps of the move with the contexts of the project named, and `generate repository` refuses until the move |
|
|
563
579
|
| `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
580
|
| `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
581
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile (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 +594,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
578
594
|
| `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
595
|
| `.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
596
|
| `.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),
|
|
597
|
+
| `.claude/settings.json` | permissions (and, with `--agent-profile regulated`, the sandbox block below): the checks and generators run without asking, `.env` files are unreadable (`.env.example` stays readable), `git push`, `npm publish` and any edit of the files that hold the rules and the pipeline (`ddd-ts-kit.config.json`, `REVIEW.md`, `eslint.config.mjs`, `biome.json`, `.dependency-cruiser.cjs`, `knip.json`, `lefthook.yml`, `.gitlab-ci.yml`, `.github/workflows/**`, `.claude/settings.json`, `.github/copilot/settings.json`) ask first, and so does an edit of the generated contracts and of the lock of an acceptance (`openapi/**`, `docs/integration/asyncapi.*`, `docs/integration/event-catalog.md`, `test/acceptance/*.acceptance.lock.json`: an ask rule, since the sandbox of Claude Code would make a denied path read-only to `docs:generate` and `acceptance --lock` too; the guard of the plugin refuses a hand edit of them) and of what reaches production otherwise than through the code: the migrations of the ORM (`migrations/**` with drizzle, knex and typeorm, `prisma/migrations/**` with prisma, nothing with a custom persistence or none), `Dockerfile`, `docker-compose.yml` and `docker/**`. The compose file reads `.env` at the root, which the deny list already covers; nothing under `docker/` holds a secret |
|
|
582
598
|
| `.gitignore` | `node_modules`, `dist`, `coverage`, `.env`, `*.tsbuildinfo`, `.ddd-ts-kit/`, where `worker-scope` writes, and `.worktrees/`, where the worktrees live |
|
|
583
599
|
|
|
584
600
|
`--ci both` writes the two pipelines, `--ci none` neither (and no `renovate.json`). The pipeline
|
|
@@ -588,11 +604,18 @@ documented placeholders.
|
|
|
588
604
|
|
|
589
605
|
`--agent-profile regulated` records `agents.profile` in the config, with or without `--force`
|
|
590
606
|
(`--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
|
-
|
|
607
|
+
permissions: enabled, failing when the sandbox is unavailable, no unsandboxed retry, the caches
|
|
608
|
+
the install of the stack writes as the only paths outside the project and the temporary directory
|
|
609
|
+
(`~/.npm`, or the store and the cache of pnpm, and `~/.cache/prisma` with Prisma), the npm
|
|
610
|
+
registry, the git host of the project (from `repository` of `package.json`, else the `origin`
|
|
611
|
+
remote) and the hosts the install scripts of the stack download from (`binaries.prisma.sh` with
|
|
612
|
+
Prisma, `github.com` and `release-assets.githubusercontent.com` with the Kafka client) as the only
|
|
613
|
+
hosts, the credential files (`~/.ssh`, `~/.aws`, `~/.config/gcloud`, `~/.azure`) and the usual secret variables denied to every sandboxed command; a key the project
|
|
614
|
+
already set is kept, and a list it holds gains the entries the stack needs. It also prints, as a
|
|
615
|
+
note, that the owner runs the first install outside the agent (a path missing when a session
|
|
616
|
+
starts stays read-only to it) and then pins the install scripts of the stack to the versions read
|
|
617
|
+
(`npm install-scripts approve <package>...`, or `'<package>@<version>': true` in `allowBuilds`
|
|
618
|
+
under pnpm), a bump of one of them asking the same again, and the block of managed settings a project file
|
|
596
619
|
cannot set (`allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`,
|
|
597
620
|
`permissions.disableBypassPermissionsMode`, `strictKnownMarketplaces` with the marketplace of
|
|
598
621
|
the kit, `requiredMinimumVersion`), for the platform team to paste, and writes the two hooks of
|
|
@@ -623,7 +646,9 @@ and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck
|
|
|
623
646
|
(`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
|
|
624
647
|
|
|
625
648
|
`init` and `generate context` start with the language: the first entry of `next` is the glossary
|
|
626
|
-
of the context to fill in.
|
|
649
|
+
of the context to fill in. Both refuse a context named `schema`, on every ORM: on Prisma the models
|
|
650
|
+
of a context live in `prisma/schema/<context>.prisma`, and `prisma/schema/schema.prisma` is the
|
|
651
|
+
main file every context shares (`init --force` moves a project to Prisma).
|
|
627
652
|
|
|
628
653
|
### Presets
|
|
629
654
|
|
|
@@ -642,8 +667,9 @@ leaves its organisations; an address the provider did not verify provisions no a
|
|
|
642
667
|
`generic`. Every signed-in person holds the permissions of the context whatever `--authz` says:
|
|
643
668
|
the grant `'identity:*'` of `platform/auth/authorization/signed-in-grants.ts`, answered by
|
|
644
669
|
`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
|
-
|
|
670
|
+
the context belong to none, under a decision record the preset writes and the declaration of the
|
|
671
|
+
context as the control plane of the tenants (`contexts.<name>.tenancy`, no suppression in its
|
|
672
|
+
adapters), and with `--authn keycloak` the authenticator reads the `organization` claim as the tenants of the person
|
|
647
673
|
(another authenticator gets a next step saying what to map). The preset is written for
|
|
648
674
|
`declared` with `signature` dependencies, `factories`, `throwing` value objects, `controllers` or `nest` routes (Nest controllers, read from their
|
|
649
675
|
signatures, on a Nest project),
|
|
@@ -729,7 +755,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
729
755
|
| `e2e` | `<context> <UseCaseName> [--event <eventType>]` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`). A use case no route reaches, started by an integration event handler of the context, gets a spec that publishes the upstream event, built from its declaration, with `application.publish([event])`, awaits `application.settled()` and leaves `it.todo` for what a client observes (the `GET` routes of the context, or the events it publishes with `collectEvents`); the handler that sends `<UseCase>Command` is found in `application/integration/handlers/`, and `--event billing.invoice.issued` names the event when handlers of several send it, or when the handler does not send it yet. Needs the route, or that handler |
|
|
730
756
|
| `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
757
|
| `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 |
|
|
758
|
+
| `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
759
|
| `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
760
|
| `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
761
|
| `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 +861,9 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
835
861
|
`## Ubiquitous language` table of the context (plural, past participle and -ing forms are
|
|
836
862
|
recognised). `--term "<Term>=<meaning>"`, repeatable, adds the rows in the same command.
|
|
837
863
|
Technical words (`Manager`, `Helper`, `Data`, `Impl`, `Model`...) and an event fact that does
|
|
838
|
-
not read as past tense are refused too
|
|
864
|
+
not read as past tense are refused too; a technical word passes when a term of the glossary
|
|
865
|
+
holds it (`--term "Scoring model=<meaning>"` lets `ScoringModel` through), because the language
|
|
866
|
+
of the business wins. `--allow-name` overrides the three checks; `check`
|
|
839
867
|
will still report what the glossary does not define.
|
|
840
868
|
- Generated code compiles as is and passes `check`, the ESLint preset, dependency-cruiser and knip
|
|
841
869
|
at the default severities: one export per file, files far under 350 lines, `private` members,
|
|
@@ -1252,9 +1280,25 @@ anyone carries it.
|
|
|
1252
1280
|
|
|
1253
1281
|
A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
|
|
1254
1282
|
rows carry make the rows impossible to order: they are reported alone, without waves, and the
|
|
1255
|
-
command exits 1. A file without a slices table, or a context no row names, is refused.
|
|
1256
|
-
|
|
1257
|
-
|
|
1283
|
+
command exits 1. A file without a slices table, or a context no row names, is refused.
|
|
1284
|
+
|
|
1285
|
+
Once the rows can be ordered, the generator commands of their `Start with` cells (between
|
|
1286
|
+
backquotes, `generate ...` or `npx ddd-ts-kit generate ...`) are replayed in a copy of the
|
|
1287
|
+
project (the files git sees; the project is left as it was), in the order of the waves, so that a
|
|
1288
|
+
command finds what the rows before it generate. The generator itself says which names each
|
|
1289
|
+
command introduces (the use case, the aggregate and the fact of an event, a `--name`, the words of
|
|
1290
|
+
a `--permission`, ...), and each is judged as the generator judges it, against the glossary of its
|
|
1291
|
+
context as it stands plus the `--term` of the row and of the rows it waits for, directly or not: a
|
|
1292
|
+
term a row it does not wait for adds is not counted, since that row may not be merged when this
|
|
1293
|
+
one is built. Each word it does not define (`undefined-word`) and each technical word no term
|
|
1294
|
+
holds (`technical-word`) is reported once per row, with the `--term` to add, without waves, and
|
|
1295
|
+
the command exits 1: a worker following that row as written would be refused. The commands the
|
|
1296
|
+
generator refused for another reason (a missing `--module`, an aggregate no row generates, an
|
|
1297
|
+
upstream not declared, a handler written by hand that an end-to-end spec needs) are listed after
|
|
1298
|
+
the waves under `Refused for another reason than a word when the plan was replayed`, without
|
|
1299
|
+
failing: the names they would introduce after that refusal are not judged. The replay costs about
|
|
1300
|
+
a tenth of a second per command. `--json` prints
|
|
1301
|
+
`{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, story, waitingFor, waitingForRows: [{ id, context, story, status }] }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder, otherStories: [{ id, context, story, kind, slice, owner, status, batch, waitedForBy }], notReplayed: [{ row, command, refusal }] }`,
|
|
1258
1302
|
`story` being `null` for a row whose id names none and `batch` `null` for a row the context asked
|
|
1259
1303
|
for does not show.
|
|
1260
1304
|
|
|
@@ -1553,14 +1597,26 @@ project keeps once the parent asks for the fixed version itself is `no longer ne
|
|
|
1553
1597
|
as it would hold the package back when a later major is asked for. A chain that is not installed
|
|
1554
1598
|
is not judged.
|
|
1555
1599
|
|
|
1600
|
+
And each install script the stack needs, the engines of Prisma (`@prisma/engines`) and the Kafka
|
|
1601
|
+
client (`@confluentinc/kafka-javascript`), judged on the version installed against `allowScripts`
|
|
1602
|
+
of `package.json` under npm or `allowBuilds` of `pnpm-workspace.yaml` under pnpm, read as npm
|
|
1603
|
+
reads them (the name alone, `name@*`, or exact versions joined by `||`; a denial wins): no entry is
|
|
1604
|
+
`missing`, and `init` adds the name; an entry pinned to other versions only, the pin a bump left
|
|
1605
|
+
behind, is `other version`, with `npm install-scripts approve <package>` then `npm rebuild
|
|
1606
|
+
<package>` (under pnpm, the version written in `allowBuilds`, then `pnpm rebuild <package>`) once
|
|
1607
|
+
the new script was read; a denial is `written otherwise`. A package that is not installed is not
|
|
1608
|
+
judged.
|
|
1609
|
+
|
|
1556
1610
|
`--strict` exits 1 while something is missing or at another range, or while the checkout cannot
|
|
1557
1611
|
run the project: a Node outside `engines.node`, no `node_modules`, a package of the kit not
|
|
1558
1612
|
installed or at another version, a submodule not initialised, an override missing. A script
|
|
1559
1613
|
written otherwise, a hook this clone has not installed, a Node `.nvmrc` does not name while
|
|
1560
1614
|
`engines.node` accepts it, a lockfile changed since the install (a checkout may rewrite it with
|
|
1561
|
-
what `node_modules` already holds),
|
|
1615
|
+
what `node_modules` already holds), an override no longer needed and a denied install script (the
|
|
1616
|
+
team may build the package another way) are said without failing it; an install script missing or
|
|
1617
|
+
pinned to another version fails it. `--json` prints `{ version, findings: [{ area, name, problem,
|
|
1562
1618
|
expected, found }] }`, `area` being `script`, `package`, `permission`, `hook`, `guidance`, `node`,
|
|
1563
|
-
`install`, `submodule` or `
|
|
1619
|
+
`install`, `submodule`, `override` or `install-script`.
|
|
1564
1620
|
|
|
1565
1621
|
## worker-scope
|
|
1566
1622
|
|
|
@@ -2065,7 +2121,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2065
2121
|
| `events/defined-in-published-language` | `defineIntegrationEvent` outside a published language, without a payload, twice for one version; an event described by hand |
|
|
2066
2122
|
| `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
2123
|
| `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 |
|
|
2124
|
+
| `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
2125
|
| `purity/no-system-clock` | `new Date()` without argument, `Date.now()`, `performance.now()` in `domain/` or `application/` |
|
|
2070
2126
|
| `purity/no-ambient-randomness` | `Math.random`, the random source of `crypto`, an id library |
|
|
2071
2127
|
| `purity/no-environment` | `process.env` and friends, `console`, `fetch`, file system and network modules |
|
|
@@ -2101,7 +2157,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2101
2157
|
| `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
2158
|
| `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
2159
|
| `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 |
|
|
2160
|
+
| `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
2161
|
| `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
2162
|
| `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
2163
|
| `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 +2169,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
2113
2169
|
| `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
2170
|
| `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
2171
|
| `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 |
|
|
2172
|
+
| `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
2173
|
| `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
2174
|
| `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
2175
|
| `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
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewrite-aliases.js","sourceRoot":"","sources":["../../src/build/rewrite-aliases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAC5C,MAAM,KAAK,GAAG,EAAE,CAAC;AAWjB;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAkB;IAC7E,MAAM,MAAM,GAAG,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAEhD,IAAI,MAAM,KAAK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EAAE,CAAC;YAC5C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;AACzE,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;AAC9E,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,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAanC;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAEpC,8FAA8F;IAC9F,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,EAAE,CAAC,EAAE,CAAC;
|
|
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,oBAAo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K,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,CAAC,QAAQ,CAAC,MAAM;IAFzB,YACmB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EAC7B;IAEJ,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,SAAS,EAAE,CAYjE;IAED,qBAAqB,IAAI,SAAS,EAAE,CAanC;IAED,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,CAgClD;IAED,SAAS,IAAI,SAAS,EAAE,CAcvB;IAED,YAAY,IAAI,SAAS,EAAE,CAY1B;IAED,qFAAqF;IACrF,YAAY,IAAI,SAAS,EAAE,CAY1B;IAED,6EAA6E;IAC7E,eAAe,IAAI,SAAS,EAAE,CAc7B;IAED,2GAA2G;IAC3G,kBAAkB,IAAI,SAAS,EAAE,CAiBhC;IAED,oHAAoH;IACpH,YAAY,IAAI,SAAS,EAAE,CAI1B;IAED,mHAAmH;IACnH,QAAQ,IAAI,SAAS,EAAE,CAItB;IAED,0EAA0E;IAC1E,eAAe,IAAI,SAAS,EAAE,CAM7B;IAED,0EAA0E;IAC1E,WAAW,IAAI,SAAS,EAAE,CAEzB;IAED,8GAA8G;IAC9G,eAAe,IAAI,SAAS,EAAE,CAE7B;IAED,qGAAqG;IACrG,oBAAoB,IAAI,SAAS,EAAE,CA4BlC;IAED,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,QAAQ;IAgChB,OAAO,CAAC,QAAQ;IAiBhB,gGAAgG;IAChG,OAAO,CAAC,cAAc;IAOtB,oGAAoG;IACpG,OAAO,CAAC,UAAU;IAIlB,qFAAqF;IACrF,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -2,6 +2,7 @@ import { ciExtraProblems, openApiProblems, sdkProblems, CLASSIFICATIONS, commitL
|
|
|
2
2
|
import { isRecord } from '../support/is-record.js';
|
|
3
3
|
import { lineOf } from '../support/line-of.js';
|
|
4
4
|
import { lineOfSequence } from '../support/line-of-sequence.js';
|
|
5
|
+
import { contextTenancy } from './context-tenancy.js';
|
|
5
6
|
import { measureSettings } from './measure-settings.js';
|
|
6
7
|
import { moduleProblems } from './module-problems.js';
|
|
7
8
|
import { rawConfig } from './raw-config.js';
|
|
@@ -16,6 +17,7 @@ export class ConfigInspection {
|
|
|
16
17
|
declaredContext(name, context) {
|
|
17
18
|
return [
|
|
18
19
|
...this.classification(name, context),
|
|
20
|
+
...contextTenancy(name, context, this.project.configText).map(({ line, message, fix }) => this.report({ file: CONFIG_FILE, line }, message, fix)),
|
|
19
21
|
...context.upstreams.flatMap((upstream) => this.upstream(name, upstream)),
|
|
20
22
|
...this.presence(name, context),
|
|
21
23
|
...moduleProblems(name, context, this.writtenModules(name)).map(({ needle, message, fix }) => this.report({ file: CONFIG_FILE, line: this.moduleLine(name, needle) }, message, fix)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-inspection.js","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,UAAU,GAG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;QAE1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACjB,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC;IACvD,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"config-inspection.js","sourceRoot":"","sources":["../../../src/check/configuration/config-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,UAAU,GAGX,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qGAAqG;AACrG,MAAM,OAAO,gBAAgB;IAER,OAAO;IACP,MAAM;IAFzB,YACmB,OAAgB,EAChB,MAAc;uBADd,OAAO;sBACP,MAAM;IACtB,CAAC;IAEJ,eAAe,CAAC,IAAY,EAAE,OAAsB;QAClD,OAAO;YACL,GAAG,IAAI,CAAC,cAAc,CAAC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OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ContextConfig } from '../../config/index.js';
|
|
2
|
+
interface TenancyProblem {
|
|
3
|
+
readonly line: number;
|
|
4
|
+
readonly message: string;
|
|
5
|
+
readonly fix: string;
|
|
6
|
+
}
|
|
7
|
+
/** `contexts.<name>.tenancy` names a place of the context against the tenancy the kit knows, or is absent. */
|
|
8
|
+
export declare function contextTenancy(name: string, { tenancy }: ContextConfig, configText: string): TenancyProblem[];
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=context-tenancy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-tenancy.d.ts","sourceRoot":"","sources":["../../../src/check/configuration/context-tenancy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAG9E,UAAU,cAAc;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,EAAE,CAY7G"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CONTEXT_TENANCIES, isOneOf } from '../../config/index.js';
|
|
2
|
+
import { lineOfSequence } from '../support/line-of-sequence.js';
|
|
3
|
+
/** `contexts.<name>.tenancy` names a place of the context against the tenancy the kit knows, or is absent. */
|
|
4
|
+
export function contextTenancy(name, { tenancy }, configText) {
|
|
5
|
+
if (tenancy === undefined || isOneOf(CONTEXT_TENANCIES, tenancy)) {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
line: lineOfSequence(configText, ['"contexts"', `"${name}":`, '"tenancy"']),
|
|
11
|
+
message: `The context "${name}" has the tenancy "${tenancy}".`,
|
|
12
|
+
fix: `Set contexts.${name}.tenancy to ${CONTEXT_TENANCIES.join(', ')} (the context decides who belongs to which tenant, its tables belong to none), or remove it: the context then holds tenant data as the project does.`,
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=context-tenancy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-tenancy.js","sourceRoot":"","sources":["../../../src/check/configuration/context-tenancy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAsB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAQ7D,8GAA8G;AAC9G,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,EAAE,OAAO,EAAiB,EAAE,UAAkB;IACzF,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,EAAE,CAAC;QACjE,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL;YACE,IAAI,EAAE,cAAc,CAAC,UAAU,EAAE,CAAC,YAAY,EAAE,IAAI,IAAI,IAAI,EAAE,WAAW,CAAC,CAAC;YAC3E,OAAO,EAAE,gBAAgB,IAAI,sBAAsB,OAAO,IAAI;YAC9D,GAAG,EAAE,gBAAgB,IAAI,eAAe,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,sJAAsJ;SAC3N;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SourceFile } from '../model/source-file.js';
|
|
2
2
|
import type { ErrorCode } from './error-code.js';
|
|
3
|
-
/** The codes the code list of a context holds, when `file` is that list: each one is a code set
|
|
3
|
+
/** The codes the code list of a context, or of the shared kernel, holds, when `file` is that list: each one is a code set there. */
|
|
4
4
|
export declare function listedCodes(file: SourceFile): ErrorCode[];
|
|
5
5
|
//# sourceMappingURL=listed-codes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listed-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/listed-codes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"listed-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/listed-codes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,oIAAoI;AACpI,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,EAAE,CAUzD"}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { codeListName } from './code-list-name.js';
|
|
2
2
|
import { isCodesFile } from './is-codes-file.js';
|
|
3
3
|
import { readCodeList } from './read-code-list.js';
|
|
4
|
-
/** The
|
|
4
|
+
/** The name the shared kernel gives its code list, `shared-kernel.codes.ts` at its root, as a context would. */
|
|
5
|
+
const SHARED_KERNEL = 'shared-kernel';
|
|
6
|
+
/** The codes the code list of a context, or of the shared kernel, holds, when `file` is that list: each one is a code set there. */
|
|
5
7
|
export function listedCodes(file) {
|
|
6
|
-
|
|
8
|
+
const owner = listOwner(file);
|
|
9
|
+
if (owner === undefined) {
|
|
7
10
|
return [];
|
|
8
11
|
}
|
|
9
|
-
const list = readCodeList(file.scan, codeListName(
|
|
12
|
+
const list = readCodeList(file.scan, codeListName(owner));
|
|
10
13
|
return (list?.entries ?? []).flatMap(({ code, line }) => (code === undefined ? [] : [{ code, line }]));
|
|
11
14
|
}
|
|
15
|
+
function listOwner(file) {
|
|
16
|
+
if (file.isTest) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (file.location.area === 'shared-kernel') {
|
|
20
|
+
return file.path.endsWith(`/${SHARED_KERNEL}.codes.ts`) ? SHARED_KERNEL : undefined;
|
|
21
|
+
}
|
|
22
|
+
return isCodesFile(file) && file.location.area === 'context' ? file.location.context : undefined;
|
|
23
|
+
}
|
|
12
24
|
//# sourceMappingURL=listed-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listed-codes.js","sourceRoot":"","sources":["../../../src/check/errors/listed-codes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,
|
|
1
|
+
{"version":3,"file":"listed-codes.js","sourceRoot":"","sources":["../../../src/check/errors/listed-codes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,gHAAgH;AAChH,MAAM,aAAa,GAAG,eAAe,CAAC;AAEtC,oIAAoI;AACpI,MAAM,UAAU,WAAW,CAAC,IAAgB;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAE9B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1D,OAAO,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC;AAED,SAAS,SAAS,CAAC,IAAgB;IACjC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,WAAW,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IACtF,CAAC;IAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACnG,CAAC"}
|
|
@@ -7,7 +7,7 @@ export class BillDispatcher {}`,
|
|
|
7
7
|
export class IssueInvoiceCommand {}`,
|
|
8
8
|
},
|
|
9
9
|
'language/no-technical-name': {
|
|
10
|
-
why: 'Manager, Helper, Data or Impl say how a class is built, not what it means. In the domain such a name marks a concept that was not discussed: the behaviour ends up in a bag that keeps growing. A domain expert never says "invoice manager".',
|
|
10
|
+
why: 'Manager, Helper, Data or Impl say how a class is built, not what it means. In the domain such a name marks a concept that was not discussed: the behaviour ends up in a bag that keeps growing. A domain expert never says "invoice manager". The ubiquitous language wins, though: when the business does name a concept with such a word (the scoring model of credit risk, the copy of data of the right of access), its term in the glossary of the context holds the word, and `ScoringModel` stands once `Scoring model` is a row of CONTEXT.md. Without that row the name is refused.',
|
|
11
11
|
bad: `export class InvoiceManager {}`,
|
|
12
12
|
good: `export class InvoiceNumbering {}`,
|
|
13
13
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-docs.js","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,wBAAwB,EAAE;QACxB,GAAG,EAAE,orBAAorB;QACzrB,GAAG,EAAE;+BACsB;QAC3B,IAAI,EAAE;oCAC0B;KACjC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"language-docs.js","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,wBAAwB,EAAE;QACxB,GAAG,EAAE,orBAAorB;QACzrB,GAAG,EAAE;+BACsB;QAC3B,IAAI,EAAE;oCAC0B;KACjC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,8jBAA8jB;QACnkB,GAAG,EAAE,gCAAgC;QACrC,IAAI,EAAE,kCAAkC;KACzC;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,y0EAAy0E;QAC90E,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;EAER;KACC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,iQAAiQ;QACtQ,GAAG,EAAE,4DAA4D;QACjE,IAAI,EAAE,8DAA8D;KACrE;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,4QAA4Q;QACjR,GAAG,EAAE,uEAAuE;QAC5E,IAAI,EAAE,gEAAgE;KACvE;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,2QAA2Q;QAChR,GAAG,EAAE,6DAA6D;QAClE,IAAI,EAAE,yDAAyD;KAChE;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const SILENT = 'Judged only in a project whose platform answers the requests of a data subject (`stack.privacy: "on"`): a project that chose `off`, or whose config was written before the choice existed, said it keeps no personal data. A warning by default.';
|
|
2
2
|
export const PRIVACY_DOCS = {
|
|
3
3
|
'privacy/declared-field': {
|
|
4
|
-
why: `The erasure, the export, the retention and the register of personal data read the personalFields declarations, never the columns: a column that holds a person and that no declaration names is a copy nobody erases, exports, purges or lists, and nothing fails. Judged on the name: a column of a table of a context (a Knex table, a Drizzle table, a TypeORM entity schema of its infrastructure/persistence/, a model of prisma/schema
|
|
4
|
+
why: `The erasure, the export, the retention and the register of personal data read the personalFields declarations, never the columns: a column that holds a person and that no declaration names is a copy nobody erases, exports, purges or lists, and nothing fails. Judged on the name: a column of a table of a context (a Knex table, a Drizzle table, a TypeORM entity schema of its infrastructure/persistence/, a model of prisma/schema/ in the schema of the context) whose words hold a word of the vocabulary (email, phone, first_name, birth_date, address, iban, ip_address and the others of the kit, with privacy.vocabulary of the config added and privacy.allow removed) is named by a declaration of the same context, among its fields, its files or as its subject, in either spelling (customer_email or customerEmail). A name says nothing of what a text column holds: a notes column may hold a diagnosis, which the declarations of the project say, not the rule; a column added only by a migration written by hand is not read. ${SILENT}`,
|
|
5
5
|
bad: `// contexts/billing/infrastructure/persistence/create-billing-tables.schema.ts
|
|
6
6
|
table.text('customer_email');
|
|
7
7
|
// and no billing/infrastructure/persistence/*.personal-fields.ts names it`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privacy-docs.js","sourceRoot":"","sources":["../../../src/check/explain/privacy-docs.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GACV,kPAAkP,CAAC;AAErP,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,wBAAwB,EAAE;QACxB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"privacy-docs.js","sourceRoot":"","sources":["../../../src/check/explain/privacy-docs.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GACV,kPAAkP,CAAC;AAErP,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,wBAAwB,EAAE;QACxB,GAAG,EAAE,+/BAA+/B,MAAM,EAAE;QAC5gC,GAAG,EAAE;;2EAEkE;QACvE,IAAI,EAAE;;;;;;;;8GAQoG;KAC3G;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,0zBAA0zB,MAAM,EAAE;QACv0B,GAAG,EAAE;;;;IAIL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,k0BAAk0B,MAAM,EAAE;QAC/0B,GAAG,EAAE;;oDAE2C;QAChD,IAAI,EAAE;;iFAEuE;KAC9E;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,gmBAAgmB,MAAM,EAAE;QAC7mB,GAAG,EAAE,wFAAwF;QAC7F,IAAI,EAAE,qGAAqG;KAC5G;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,k0BAAk0B,MAAM,EAAE;QAC/0B,GAAG,EAAE,oGAAoG;QACzG,IAAI,EAAE,8FAA8F;KACrG;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const TENANCY_DOCS = {
|
|
2
2
|
'tenancy/scoped-statement': {
|
|
3
|
-
why: 'On shared tables, one statement without its tenant condition reads or overwrites the data of every tenant: the most common and the most damaging leak of a multi-tenant application. The kit puts the condition in one place, the helpers of the ORM package, which read the tenant from the execution scope, refuse work that names none, widen reads only under an audited elevation and never widen writes. A table reached straight from the executor bypasses all of it. Judged in a project whose "stack.tenancy" is not "none": the infrastructure of the contexts, tests aside. Checked by text, statement by statement: on Knex the executor used other than as the argument of a helper, and raw SQL that may reach rows by itself: a word that reads or writes rows (`select`, `from`, `join`, `insert`, `update`, `delete`, `values`, `call`...) or starts a statement (`table`, `with`, `do`...), a call to a function that is not a known expression (an aggregate, a cast, arithmetic, text), a text that is not a literal or a template that interpolates; a statement of the schema (`create`, `alter`, `drop`, `comment`) with no word of rows, and an aggregate in a select, reach no row by themselves; on Drizzle a read, update or delete whose where carries no tenant condition (inline or in the local it is given), an insert whose row names no tenant, a relational query or a raw execute; on Prisma a statement on the client whose where spreads no `tenantWhere` (a read) or `ownTenantWhere` (an update, a delete), a create whose data spreads no `tenantScopeOf`, `findUnique` and `upsert`, which reach a row by its key when the tenant is never part of the key, raw SQL, and the client held in a variable; on TypeORM the same on the manager (`find*`, `count*`, `update`, `delete`, `insert`, a query builder whose where carries no condition, `insertIgnoringConflict` given a row that names no tenant, `save` and `upsert`, `query`); on the four, a read model store built without its tenant option. A where built by another function is not followed: inline it, or record a deviation.',
|
|
3
|
+
why: 'On shared tables, one statement without its tenant condition reads or overwrites the data of every tenant: the most common and the most damaging leak of a multi-tenant application. The kit puts the condition in one place, the helpers of the ORM package, which read the tenant from the execution scope, refuse work that names none, widen reads only under an audited elevation and never widen writes. A table reached straight from the executor bypasses all of it. Judged in a project whose "stack.tenancy" is not "none": the infrastructure of the contexts, tests aside, but a context declared the control plane of the tenants ("contexts.<name>.tenancy": "control-plane", a deviation recorded in "deviations"), whose tables belong to no tenant since it decides who belongs to which (the identity preset declares its context so). Checked by text, statement by statement: on Knex the executor used other than as the argument of a helper, and raw SQL that may reach rows by itself: a word that reads or writes rows (`select`, `from`, `join`, `insert`, `update`, `delete`, `values`, `call`...) or starts a statement (`table`, `with`, `do`...), a call to a function that is not a known expression (an aggregate, a cast, arithmetic, text), a text that is not a literal or a template that interpolates; a statement of the schema (`create`, `alter`, `drop`, `comment`) with no word of rows, and an aggregate in a select, reach no row by themselves; on Drizzle a read, update or delete whose where carries no tenant condition (inline or in the local it is given), an insert whose row names no tenant, a relational query or a raw execute; on Prisma a statement on the client whose where spreads no `tenantWhere` (a read) or `ownTenantWhere` (an update, a delete), a create whose data spreads no `tenantScopeOf`, `findUnique` and `upsert`, which reach a row by its key when the tenant is never part of the key, raw SQL, and the client held in a variable; on TypeORM the same on the manager (`find*`, `count*`, `update`, `delete`, `insert`, a query builder whose where carries no condition, `insertIgnoringConflict` given a row that names no tenant, `save` and `upsert`, `query`); on the four, a read model store built without its tenant option. A where built by another function is not followed: inline it, or record a deviation.',
|
|
4
4
|
bad: `// infrastructure/persistence/knex-invoice.repository.ts
|
|
5
5
|
const row = await this.database.executor()<InvoiceRow, InvoiceRow[]>('invoices').where({ id }).first();
|
|
6
6
|
const all = await this.database.executor().from('invoices').where({ status }); // the executor chained
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenancy-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tenancy-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,0BAA0B,EAAE;QAC1B,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"tenancy-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tenancy-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,0BAA0B,EAAE;QAC1B,GAAG,EAAE,6wEAA6wE;QAClxE,GAAG,EAAE;;;;;;;;;;;8EAWqE;QAC1E,IAAI,EAAE;;;;;;;;qGAQ2F;KAClG;CACF,CAAC"}
|