ddd-ts-kit 0.102.0 → 0.103.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 +230 -0
- package/README.fr.md +8 -9
- package/README.md +7 -8
- package/dist/acceptance/check-locked-files.d.ts.map +1 -1
- package/dist/acceptance/check-locked-files.js +6 -3
- package/dist/acceptance/check-locked-files.js.map +1 -1
- package/dist/build/rewrite-aliases.d.ts.map +1 -1
- package/dist/build/rewrite-aliases.js +3 -0
- package/dist/build/rewrite-aliases.js.map +1 -1
- package/dist/check/baseline/write-baseline.d.ts.map +1 -1
- package/dist/check/baseline/write-baseline.js +2 -3
- package/dist/check/baseline/write-baseline.js.map +1 -1
- package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
- package/dist/check/errors/kit-error-codes.js +1 -0
- package/dist/check/errors/kit-error-codes.js.map +1 -1
- package/dist/check/explain/authz-docs.js +1 -1
- package/dist/check/explain/authz-docs.js.map +1 -1
- package/dist/check/explain/errors-docs.js +1 -1
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.js +13 -1
- package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
- package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
- package/dist/check/rules/authz-policy-asked.js +45 -6
- package/dist/check/rules/authz-policy-asked.js.map +1 -1
- package/dist/check/rules/test-spec-required.d.ts.map +1 -1
- package/dist/check/rules/test-spec-required.js +3 -1
- package/dist/check/rules/test-spec-required.js.map +1 -1
- package/dist/check/scan/named-outside-imports.d.ts +3 -0
- package/dist/check/scan/named-outside-imports.d.ts.map +1 -0
- package/dist/check/scan/named-outside-imports.js +8 -0
- package/dist/check/scan/named-outside-imports.js.map +1 -0
- package/dist/check/scan/star-exports-of.d.ts +3 -0
- package/dist/check/scan/star-exports-of.d.ts.map +1 -0
- package/dist/check/scan/star-exports-of.js +8 -0
- package/dist/check/scan/star-exports-of.js.map +1 -0
- package/dist/check/scan/string-at.d.ts +3 -0
- package/dist/check/scan/string-at.d.ts.map +1 -0
- package/dist/check/scan/string-at.js +5 -0
- package/dist/check/scan/string-at.js.map +1 -0
- package/dist/check/text/closing-bracket.d.ts +6 -0
- package/dist/check/text/closing-bracket.d.ts.map +1 -0
- package/dist/check/text/closing-bracket.js +24 -0
- package/dist/check/text/closing-bracket.js.map +1 -0
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +4 -0
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts +3 -2
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +14 -6
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +3 -2
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/knex-generate.d.ts +10 -0
- package/dist/commands/knex-generate.d.ts.map +1 -0
- package/dist/commands/knex-generate.js +74 -0
- package/dist/commands/knex-generate.js.map +1 -0
- package/dist/commands/lint.js +15 -0
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +3 -0
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.js +1 -1
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/parse-migration-arguments.d.ts +11 -0
- package/dist/commands/parse-migration-arguments.d.ts.map +1 -0
- package/dist/commands/parse-migration-arguments.js +17 -0
- package/dist/commands/parse-migration-arguments.js.map +1 -0
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +5 -11
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts +2 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +5 -2
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/doctor/permission-findings.d.ts.map +1 -1
- package/dist/doctor/permission-findings.js +68 -4
- package/dist/doctor/permission-findings.js.map +1 -1
- package/dist/generate/concept-role.d.ts +10 -0
- package/dist/generate/concept-role.d.ts.map +1 -1
- package/dist/generate/concept.d.ts.map +1 -1
- package/dist/generate/concept.js +5 -1
- package/dist/generate/concept.js.map +1 -1
- package/dist/generate/emit.d.ts +5 -2
- package/dist/generate/emit.d.ts.map +1 -1
- package/dist/generate/emit.js +5 -4
- package/dist/generate/emit.js.map +1 -1
- package/dist/generate/event-names.d.ts.map +1 -1
- package/dist/generate/event-names.js.map +1 -1
- package/dist/generate/files-without-modules.d.ts +8 -0
- package/dist/generate/files-without-modules.d.ts.map +1 -0
- package/dist/generate/files-without-modules.js +12 -0
- package/dist/generate/files-without-modules.js.map +1 -0
- package/dist/generate/grant-permission.js +2 -2
- package/dist/generate/grant-permission.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +4 -4
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +6 -1
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
- package/dist/generate/kinds/declare-storage.js +4 -10
- package/dist/generate/kinds/declare-storage.js.map +1 -1
- package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-event-kind.js +3 -1
- package/dist/generate/kinds/domain-event-kind.js.map +1 -1
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +8 -1
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/ensure-domain-event.d.ts.map +1 -1
- package/dist/generate/kinds/ensure-domain-event.js +2 -0
- package/dist/generate/kinds/ensure-domain-event.js.map +1 -1
- package/dist/generate/kinds/extraction/add-compose-service.js +1 -1
- package/dist/generate/kinds/extraction/add-compose-service.js.map +1 -1
- package/dist/generate/kinds/extraction/compose-service-of.d.ts +5 -0
- package/dist/generate/kinds/extraction/compose-service-of.d.ts.map +1 -0
- package/dist/generate/kinds/extraction/compose-service-of.js +8 -0
- package/dist/generate/kinds/extraction/compose-service-of.js.map +1 -0
- package/dist/generate/kinds/gateway-kind.js +9 -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 +36 -0
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-repository.js +13 -0
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +24 -2
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/route/find-use-case.js +1 -1
- package/dist/generate/kinds/route/find-use-case.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +3 -2
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/tables-files.d.ts +3 -0
- package/dist/generate/kinds/tables-files.d.ts.map +1 -0
- package/dist/generate/kinds/tables-files.js +7 -0
- package/dist/generate/kinds/tables-files.js.map +1 -0
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +12 -0
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/kinds/write-birth.d.ts +8 -0
- package/dist/generate/kinds/write-birth.d.ts.map +1 -0
- package/dist/generate/kinds/write-birth.js +13 -0
- package/dist/generate/kinds/write-birth.js.map +1 -0
- package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.js +8 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
- package/dist/generate/mark-policy-questions.js +2 -2
- package/dist/generate/mark-policy-questions.js.map +1 -1
- package/dist/generate/permission-name.d.ts +3 -0
- package/dist/generate/permission-name.d.ts.map +1 -0
- package/dist/generate/permission-name.js +3 -0
- package/dist/generate/permission-name.js.map +1 -0
- package/dist/generate/permission-named.d.ts.map +1 -1
- package/dist/generate/permission-named.js +1 -1
- package/dist/generate/permission-named.js.map +1 -1
- package/dist/generate/permission-words.d.ts +7 -0
- package/dist/generate/permission-words.d.ts.map +1 -0
- package/dist/generate/permission-words.js +11 -0
- package/dist/generate/permission-words.js.map +1 -0
- package/dist/generate/refined-by-policy.js +2 -2
- package/dist/generate/refined-by-policy.js.map +1 -1
- package/dist/generate/refuse-stuttering-event.d.ts +8 -0
- package/dist/generate/refuse-stuttering-event.d.ts.map +1 -0
- package/dist/generate/refuse-stuttering-event.js +14 -0
- package/dist/generate/refuse-stuttering-event.js.map +1 -0
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +1 -0
- package/dist/generate/shared-writes.js.map +1 -1
- package/dist/generate/spoken-in-language.d.ts +11 -2
- package/dist/generate/spoken-in-language.d.ts.map +1 -1
- package/dist/generate/spoken-in-language.js +27 -12
- package/dist/generate/spoken-in-language.js.map +1 -1
- package/dist/help/flag-notes.d.ts.map +1 -1
- package/dist/help/flag-notes.js +5 -1
- package/dist/help/flag-notes.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +16 -0
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +1 -0
- package/dist/help/usage.js.map +1 -1
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +18 -3
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/files/audit-files.d.ts.map +1 -1
- package/dist/init/files/audit-files.js +1 -0
- package/dist/init/files/audit-files.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +2 -1
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/files/script-files.d.ts +4 -1
- package/dist/init/files/script-files.d.ts.map +1 -1
- package/dist/init/files/script-files.js +6 -1
- package/dist/init/files/script-files.js.map +1 -1
- package/dist/init/is-team-file.d.ts +2 -2
- package/dist/init/is-team-file.d.ts.map +1 -1
- package/dist/init/is-team-file.js +5 -3
- package/dist/init/is-team-file.js.map +1 -1
- package/dist/init/keep-regions.d.ts +21 -0
- package/dist/init/keep-regions.d.ts.map +1 -0
- package/dist/init/keep-regions.js +63 -0
- package/dist/init/keep-regions.js.map +1 -0
- package/dist/init/kept-combination-notes.d.ts.map +1 -1
- package/dist/init/kept-combination-notes.js +6 -2
- package/dist/init/kept-combination-notes.js.map +1 -1
- package/dist/init/kept-compose-services.d.ts +6 -0
- package/dist/init/kept-compose-services.d.ts.map +1 -0
- package/dist/init/kept-compose-services.js +42 -0
- package/dist/init/kept-compose-services.js.map +1 -0
- package/dist/init/kept-role-vocabulary.d.ts +3 -0
- package/dist/init/kept-role-vocabulary.d.ts.map +1 -0
- package/dist/init/kept-role-vocabulary.js +7 -0
- package/dist/init/kept-role-vocabulary.js.map +1 -0
- package/dist/init/kept-roles.d.ts +12 -0
- package/dist/init/kept-roles.d.ts.map +1 -0
- package/dist/init/kept-roles.js +29 -0
- package/dist/init/kept-roles.js.map +1 -0
- package/dist/init/kept-wiring.d.ts +22 -0
- package/dist/init/kept-wiring.d.ts.map +1 -0
- package/dist/init/kept-wiring.js +91 -0
- package/dist/init/kept-wiring.js.map +1 -0
- package/dist/init/knip-vars.d.ts.map +1 -1
- package/dist/init/knip-vars.js +5 -1
- package/dist/init/knip-vars.js.map +1 -1
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +5 -3
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/scripts-for.d.ts.map +1 -1
- package/dist/init/manifest/scripts-for.js +8 -0
- package/dist/init/manifest/scripts-for.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/orphaned-wiring-notes.d.ts +13 -0
- package/dist/init/orphaned-wiring-notes.d.ts.map +1 -0
- package/dist/init/orphaned-wiring-notes.js +42 -0
- package/dist/init/orphaned-wiring-notes.js.map +1 -0
- package/dist/init/profile-hooks.js +1 -1
- package/dist/init/profile-hooks.js.map +1 -1
- package/dist/init/repositories-left-behind.d.ts +12 -0
- package/dist/init/repositories-left-behind.d.ts.map +1 -0
- package/dist/init/repositories-left-behind.js +26 -0
- package/dist/init/repositories-left-behind.js.map +1 -0
- package/dist/init/rewire-audited-events.d.ts +10 -0
- package/dist/init/rewire-audited-events.d.ts.map +1 -0
- package/dist/init/rewire-audited-events.js +32 -0
- package/dist/init/rewire-audited-events.js.map +1 -0
- package/dist/init/rewire-contexts.d.ts +15 -0
- package/dist/init/rewire-contexts.d.ts.map +1 -0
- package/dist/init/rewire-contexts.js +41 -0
- package/dist/init/rewire-contexts.js.map +1 -0
- package/dist/init/rewire-preset.d.ts +9 -0
- package/dist/init/rewire-preset.d.ts.map +1 -0
- package/dist/init/rewire-preset.js +29 -0
- package/dist/init/rewire-preset.js.map +1 -0
- package/dist/init/rewire-tables.d.ts +10 -0
- package/dist/init/rewire-tables.d.ts.map +1 -0
- package/dist/init/rewire-tables.js +54 -0
- package/dist/init/rewire-tables.js.map +1 -0
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +28 -28
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/kept-flag-notes.d.ts +7 -0
- package/dist/init/stack/kept-flag-notes.d.ts.map +1 -0
- package/dist/init/stack/kept-flag-notes.js +24 -0
- package/dist/init/stack/kept-flag-notes.js.map +1 -0
- package/dist/init/stack/refuse-unused-no-outbox.d.ts +4 -0
- package/dist/init/stack/refuse-unused-no-outbox.d.ts.map +1 -0
- package/dist/init/stack/refuse-unused-no-outbox.js +9 -0
- package/dist/init/stack/refuse-unused-no-outbox.js.map +1 -0
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +10 -0
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/stack-before.d.ts +4 -0
- package/dist/init/stack-before.d.ts.map +1 -0
- package/dist/init/stack-before.js +11 -0
- package/dist/init/stack-before.js.map +1 -0
- package/dist/init/wiring-notes.d.ts +9 -0
- package/dist/init/wiring-notes.d.ts.map +1 -0
- package/dist/init/wiring-notes.js +22 -0
- package/dist/init/wiring-notes.js.map +1 -0
- package/dist/init/with-named-imports.d.ts +8 -0
- package/dist/init/with-named-imports.d.ts.map +1 -0
- package/dist/init/with-named-imports.js +69 -0
- package/dist/init/with-named-imports.js.map +1 -0
- package/dist/init/with-system-grants.d.ts +7 -0
- package/dist/init/with-system-grants.d.ts.map +1 -0
- package/dist/init/with-system-grants.js +26 -0
- package/dist/init/with-system-grants.js.map +1 -0
- package/dist/init/write-local-environment.d.ts +8 -0
- package/dist/init/write-local-environment.d.ts.map +1 -0
- package/dist/init/write-local-environment.js +18 -0
- package/dist/init/write-local-environment.js.map +1 -0
- package/dist/lint/eslint-in-project.d.ts +1 -1
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +11 -2
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/markers/index.d.ts +3 -0
- package/dist/markers/index.d.ts.map +1 -1
- package/dist/markers/index.js +3 -0
- package/dist/markers/index.js.map +1 -1
- package/dist/markers/region-marker.d.ts +3 -0
- package/dist/markers/region-marker.d.ts.map +1 -0
- package/dist/markers/region-marker.js +3 -0
- package/dist/markers/region-marker.js.map +1 -0
- package/dist/markers/regions-of.d.ts +9 -0
- package/dist/markers/regions-of.d.ts.map +1 -0
- package/dist/markers/regions-of.js +20 -0
- package/dist/markers/regions-of.js.map +1 -0
- package/dist/markers/unpaired-markers.d.ts +3 -0
- package/dist/markers/unpaired-markers.d.ts.map +1 -0
- package/dist/markers/unpaired-markers.js +13 -0
- package/dist/markers/unpaired-markers.js.map +1 -0
- package/dist/merge/apply-resolutions.d.ts.map +1 -1
- package/dist/merge/apply-resolutions.js +6 -4
- package/dist/merge/apply-resolutions.js.map +1 -1
- package/dist/merge/continue-merge.d.ts.map +1 -1
- package/dist/merge/continue-merge.js +1 -0
- package/dist/merge/continue-merge.js.map +1 -1
- package/dist/merge/ensure-mergeable.js +1 -1
- package/dist/merge/ensure-mergeable.js.map +1 -1
- package/dist/merge/lost/verify-merges.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.js +4 -0
- package/dist/merge/lost/verify-merges.js.map +1 -1
- package/dist/merge/merge-state.d.ts.map +1 -1
- package/dist/merge/merge-state.js +2 -2
- package/dist/merge/merge-state.js.map +1 -1
- 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/refuse-shallow-history.d.ts +10 -0
- package/dist/merge/refuse-shallow-history.d.ts.map +1 -0
- package/dist/merge/refuse-shallow-history.js +15 -0
- package/dist/merge/refuse-shallow-history.js.map +1 -0
- package/dist/merge/resume-merge.js +2 -2
- package/dist/merge/resume-merge.js.map +1 -1
- package/dist/merge/settle-regions.d.ts.map +1 -1
- package/dist/merge/settle-regions.js +3 -4
- package/dist/merge/settle-regions.js.map +1 -1
- package/dist/migration/audit-guard/append-audit-guard.d.ts +4 -2
- package/dist/migration/audit-guard/append-audit-guard.d.ts.map +1 -1
- package/dist/migration/audit-guard/append-audit-guard.js +18 -3
- package/dist/migration/audit-guard/append-audit-guard.js.map +1 -1
- package/dist/migration/declared-tables.d.ts +8 -0
- package/dist/migration/declared-tables.d.ts.map +1 -0
- package/dist/migration/declared-tables.js +13 -0
- package/dist/migration/declared-tables.js.map +1 -0
- package/dist/migration/find-project-formatter.d.ts.map +1 -1
- package/dist/migration/find-project-formatter.js +2 -1
- package/dist/migration/find-project-formatter.js.map +1 -1
- package/dist/migration/index.d.ts +8 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/knex-migration-text.d.ts +4 -0
- package/dist/migration/knex-migration-text.d.ts.map +1 -0
- package/dist/migration/knex-migration-text.js +24 -0
- package/dist/migration/knex-migration-text.js.map +1 -0
- package/dist/migration/knex-schema-difference.d.ts +12 -0
- package/dist/migration/knex-schema-difference.d.ts.map +1 -0
- package/dist/migration/knex-schema-difference.js +165 -0
- package/dist/migration/knex-schema-difference.js.map +1 -0
- package/dist/migration/listed-in-index.d.ts +6 -0
- package/dist/migration/listed-in-index.d.ts.map +1 -0
- package/dist/migration/listed-in-index.js +8 -0
- package/dist/migration/listed-in-index.js.map +1 -0
- package/dist/migration/refuse-other-orm.d.ts +8 -0
- package/dist/migration/refuse-other-orm.d.ts.map +1 -0
- package/dist/migration/refuse-other-orm.js +34 -0
- package/dist/migration/refuse-other-orm.js.map +1 -0
- package/dist/migration/required-migration-name.d.ts +3 -0
- package/dist/migration/required-migration-name.d.ts.map +1 -0
- package/dist/migration/required-migration-name.js +11 -0
- package/dist/migration/required-migration-name.js.map +1 -0
- package/dist/migration/warn-dropped-context-tables.d.ts +12 -0
- package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -0
- package/dist/migration/warn-dropped-context-tables.js +88 -0
- package/dist/migration/warn-dropped-context-tables.js.map +1 -0
- package/dist/package-manager/dialects.js +1 -1
- package/dist/package-manager/dialects.js.map +1 -1
- package/dist/package-manager/in-project-dialect.d.ts +8 -0
- package/dist/package-manager/in-project-dialect.d.ts.map +1 -0
- package/dist/package-manager/in-project-dialect.js +22 -0
- package/dist/package-manager/in-project-dialect.js.map +1 -0
- package/dist/presets/adapter-of.d.ts +5 -0
- package/dist/presets/adapter-of.d.ts.map +1 -0
- package/dist/presets/adapter-of.js +6 -0
- package/dist/presets/adapter-of.js.map +1 -0
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +1 -5
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/grant-to-signed-in.d.ts.map +1 -1
- package/dist/presets/grant-to-signed-in.js +1 -24
- package/dist/presets/grant-to-signed-in.js.map +1 -1
- package/dist/presets/identity-terms.d.ts.map +1 -1
- package/dist/presets/identity-terms.js +4 -0
- package/dist/presets/identity-terms.js.map +1 -1
- package/dist/presets/lay-out-prisma-models.js +1 -19
- package/dist/presets/lay-out-prisma-models.js.map +1 -1
- package/dist/presets/organisations-as-tenants.d.ts +2 -2
- package/dist/presets/organisations-as-tenants.d.ts.map +1 -1
- package/dist/presets/organisations-as-tenants.js +46 -2
- package/dist/presets/organisations-as-tenants.js.map +1 -1
- package/dist/presets/preset-named.d.ts +2 -0
- package/dist/presets/preset-named.d.ts.map +1 -1
- package/dist/presets/preset-named.js +1 -1
- package/dist/presets/preset-named.js.map +1 -1
- package/dist/presets/wrap-authorizer.d.ts +4 -0
- package/dist/presets/wrap-authorizer.d.ts.map +1 -0
- package/dist/presets/wrap-authorizer.js +25 -0
- package/dist/presets/wrap-authorizer.js.map +1 -0
- package/dist/prisma-schema/datasource-schemas.d.ts +3 -0
- package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -0
- package/dist/prisma-schema/datasource-schemas.js +5 -0
- package/dist/prisma-schema/datasource-schemas.js.map +1 -0
- package/dist/prisma-schema/index.d.ts +4 -0
- package/dist/prisma-schema/index.d.ts.map +1 -1
- package/dist/prisma-schema/index.js +4 -0
- package/dist/prisma-schema/index.js.map +1 -1
- package/dist/prisma-schema/preview-features-of.d.ts +3 -0
- package/dist/prisma-schema/preview-features-of.d.ts.map +1 -0
- package/dist/prisma-schema/preview-features-of.js +7 -0
- package/dist/prisma-schema/preview-features-of.js.map +1 -0
- package/dist/prisma-schema/with-datasource-schema.d.ts +3 -0
- package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -0
- package/dist/prisma-schema/with-datasource-schema.js +9 -0
- package/dist/prisma-schema/with-datasource-schema.js.map +1 -0
- package/dist/prisma-schema/with-preview-feature.d.ts +3 -0
- package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -0
- package/dist/prisma-schema/with-preview-feature.js +19 -0
- package/dist/prisma-schema/with-preview-feature.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +10 -1
- package/dist/run.js.map +1 -1
- package/dist/sdk/render-client.js +1 -1
- package/dist/sdk/render-client.js.map +1 -1
- package/dist/slice/record-verification.d.ts.map +1 -1
- package/dist/slice/record-verification.js +2 -5
- package/dist/slice/record-verification.js.map +1 -1
- package/dist/stack/stack-vars.js +6 -2
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/stories/open-story-scope.d.ts.map +1 -1
- package/dist/stories/open-story-scope.js +2 -4
- package/dist/stories/open-story-scope.js.map +1 -1
- package/dist/story/change-gated.d.ts +3 -3
- package/dist/story/change-gated.d.ts.map +1 -1
- package/dist/story/change-gated.js +13 -7
- package/dist/story/change-gated.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +2 -3
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/workspace/write-inside-project.d.ts +8 -0
- package/dist/workspace/write-inside-project.d.ts.map +1 -0
- package/dist/workspace/write-inside-project.js +17 -0
- package/dist/workspace/write-inside-project.js.map +1 -0
- package/package.json +5 -5
- package/templates/aggregate/event-sourced.events.mapper.ts.tpl +5 -1
- package/templates/command/handler.declared.ts.tpl +4 -12
- package/templates/command/handler.ts.tpl +4 -12
- package/templates/e2e/e2e.spec.ts.tpl +2 -2
- package/templates/init/README.md.tpl +29 -5
- package/templates/init/docker/docker-compose.yml.tpl +5 -2
- package/templates/init/docker/dockerignore.tpl +1 -0
- package/templates/init/docker/env.example.tpl +8 -1
- package/templates/init/gitignore.tpl +1 -0
- package/templates/init/hooks/change-reference.mjs +96 -17
- package/templates/init/hooks/production-gate.mjs +65 -11
- package/templates/init/jest.config.js.tpl +4 -1
- package/templates/init/platform/audit/audit.module.tsyringe.ts.tpl +25 -8
- package/templates/init/platform/audit/create-audit-trail.ts.tpl +59 -0
- package/templates/init/platform/audit/create-audit.ts.tpl +1 -46
- package/templates/init/platform/auth/authentication/development-header-authenticator.ts.tpl +7 -3
- package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +5 -0
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +22 -7
- package/templates/init/platform/composition/compose-application.tsyringe.ts.tpl +2 -4
- package/templates/init/platform/config/app-config.ts.tpl +9 -0
- package/templates/init/platform/config/load-config.ts.tpl +24 -0
- package/templates/init/platform/database/data-source.typeorm.ts.tpl +6 -0
- package/templates/init/platform/database/gitkeep +0 -0
- package/templates/init/platform/database/knexfile.js.tpl +10 -3
- package/templates/init/platform/database/open-persistence.prisma.ts.tpl +5 -2
- package/templates/init/platform/database/persistence-over.prisma.ts.tpl +11 -3
- package/templates/init/platform/database/prisma.config.ts.tpl +6 -0
- package/templates/init/platform/database/schema.knex.ts.tpl +4 -3
- package/templates/init/platform/http/start-http-server.express.ts.tpl +9 -6
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +5 -2
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +5 -2
- package/templates/init/platform/jobs/job-settings.ts.tpl +3 -0
- package/templates/init/platform/privacy/run-export.manual.ts.tpl +24 -2
- package/templates/init/platform/privacy/run-export.tsyringe.ts.tpl +30 -1
- package/templates/init/scripts/audit-verify.ts.tpl +35 -0
- package/templates/init/scripts/privacy-export.manual.ts.tpl +1 -7
- package/templates/init/scripts/privacy-export.tsyringe.ts.tpl +1 -7
- package/templates/pipeline/github/dependabot.yml +6 -0
- package/templates/pipeline/github/workflows/ci.yml.tpl +26 -1
- package/templates/pipeline/github/workflows/claude-review.yml +3 -2
- package/templates/pipeline/github/workflows/claude-triage.yml +1 -1
- package/templates/pipeline/github/workflows/codeql.yml +2 -0
- package/templates/pipeline/github/workflows/copilot-setup-steps.yml +2 -0
- package/templates/pipeline/github/workflows/intent-to-spec.yml +12 -4
- package/templates/pipeline/github/workflows/pr-title.yml +2 -0
- package/templates/pipeline/gitlab/claude-review.gitlab-ci.yml.tpl +1 -1
- package/templates/pipeline/knip.json.tpl +1 -4
- package/templates/pipeline/package-scripts.json +2 -2
- package/templates/pipeline/renovate.json +11 -0
- package/templates/pipeline/vitest.config.ts.tpl +3 -2
- package/templates/presets/identity/context/__context__.codes.named.ts.tpl +1 -0
- package/templates/presets/identity/context/__context__.module.explicit.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.handler.ts.tpl +28 -1
- package/templates/presets/identity/context/domain/aggregates/invitation.aggregate.ts.tpl +13 -1
- package/templates/presets/identity/context/domain/aggregates/member.aggregate.ts.tpl +6 -1
- package/templates/presets/identity/context/domain/errors/invitation-withdrawn.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/invitation.error.factories.ts.tpl +8 -0
- package/templates/presets/identity/context/domain/services/role-rights.service.ts.tpl +23 -1
- package/templates/presets/identity/context/infrastructure/persistence/__context__.schema.drizzle.ts.tpl +1 -0
- package/templates/presets/identity/context/infrastructure/persistence/create-__context__-tables.schema.knex.ts.tpl +1 -0
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +6 -2
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +6 -2
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +6 -2
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +6 -2
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +6 -2
- package/templates/presets/identity/context/infrastructure/persistence/invitation-row.schema.knex.ts.tpl +1 -0
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +2 -0
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +2 -0
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +2 -0
- package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -5
- package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -5
- package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -5
- package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -5
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -5
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.controller.kit-routes.ts.tpl +1 -0
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.controller.nest-routes.ts.tpl +1 -0
- package/templates/presets/identity/context/test/builders/invitation.builder.ts.tpl +15 -2
- package/templates/presets/identity/context/test/integration/invitation.repository.contract.spec.ts.tpl +10 -0
- package/templates/presets/identity/context/test/unit/accept-invitation.handler.spec.ts.tpl +114 -4
- package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
- package/templates/presets/identity/design.md.tpl +3 -1
- package/templates/presets/identity/prisma/models.prisma.tpl +1 -0
- package/templates/query/reader.fake.ts.tpl +4 -6
- package/templates/query/reader.in-memory.ts.tpl +1 -1
- package/templates/repository/drizzle/repository.ts.tpl +4 -3
- package/templates/repository/knex/table.tpl +1 -1
- package/templates/repository/prisma/repository.ts.tpl +24 -18
- package/templates/state-machine/state-machine.spec.ts.tpl +5 -0
- package/templates/init/platform/database/migration.knex.js.tpl +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,236 @@ What each version changes for someone who uses the kit. The packages of `package
|
|
|
4
4
|
together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
|
|
5
5
|
list the pull requests behind it.
|
|
6
6
|
|
|
7
|
+
## 0.103.0
|
|
8
|
+
|
|
9
|
+
**A `merge-trunk` stopped half way can be continued with `merge-trunk --continue`.** The state of the merge is written as soon as the merge starts and after each step, not only at the first stop for a person, so a merge killed on the automatic path no longer needs a plain `git commit`, which skips the steps merge-trunk runs (regenerate, the migrations replay). A merge in progress that holds no state is now refused with `npx ddd-ts-kit merge-trunk --abort` named first.
|
|
10
|
+
|
|
11
|
+
**`merge-trunk` and `verify-merge` say when a shallow clone is why they cannot compare two sides.** Where the clone holds no commit shared by the branch and the trunk, `merge-trunk` no longer blames git (`could not lookup commit ''`) and `verify-merge --since` no longer answers nothing at exit 0: both refuse with exit 2, name the shallow clone and give `git fetch --unshallow` (or a deeper `--depth`) as the fix.
|
|
12
|
+
|
|
13
|
+
**Two `generate` or two `drizzle-generate` started at once no longer lose each other's work.** Every `generate` that is not a dry run now holds the lock of the project, not only the kinds that write outside their context: two `generate entity --term` at once used to leave glossary rows out of `CONTEXT.md` at exit 0. `drizzle-generate` holds it too, so two of them no longer leave a migration out of the journal. A second command waits up to five seconds, then exits 2 naming the command that holds the lock.
|
|
14
|
+
|
|
15
|
+
**The end-to-end sweeps over every stack remove each project once its case has ended.** A case of `first-minute-*` kept its project, with a copy of every package of the kit, until the whole file had run, so the disk of a runner grew with the number of stacks and the shard ended on `ENOSPC`. This changes the tests of the kit only.
|
|
16
|
+
|
|
17
|
+
**`drizzle-generate` and `typeorm-generate` say before they run that the migration will drop the tables of a context the schema index no longer lists.** The warning gives the tables and the fix, and the exit code does not change. It reads what the tables files of the context export, under whatever file name, and a comment in the index lists nothing; a table removed from those files on purpose is not concerned.
|
|
18
|
+
|
|
19
|
+
**`generate worker` and `generate service` leave what `init` writes for a project with a worker or a service.** `.env.example` says that `RUN_JOBS` defaults to false, a service joins the compose file with one blank line before `volumes:`, and the entry of `apps/` comes last in `knip.json`, where the generators add it.
|
|
20
|
+
|
|
21
|
+
**`init --force` keeps what the generators wired: at the same version `git diff` is empty.** It rewrote the files `init` owns from templates whose regions are empty, so the tables of a context left the schema index (on Drizzle the next `db:generate` wrote `DROP TABLE`), its events the audit trail, and the grants, the job settings, the values of the gateways and the policies went with them. Each rewritten file now takes the template of the new version with what its `ddd-ts-kit:*` regions held; the grants of `roles.ts`, the role vocabulary, the schemas and preview features of the Prisma datasource and the services of `docker-compose.yml` stay too, with the imports they name. The tables and the audited events a region does not hold, as after an earlier `--force`, are listed again from the tree, what a preset changed in the authorizer and the authenticator is applied again, and the journal of drizzle-kit is no longer emptied. What it cannot keep is named in a note, file by file, with the command that writes it again, and the note says that nothing is lost only when that is so: a region the new version no longer holds, a marker without its partner, a `roles` object it cannot read to its end, left out whole, and the repositories left on the ORM a flag changed. A flag that changes the ORM or the wiring leaves out the lines of the old stack. A file with Windows line ends is written with the line ends of the template, and a `roles.ts` of an older template gets its `system-grants` region back.
|
|
22
|
+
|
|
23
|
+
**`generate e2e` writes `tenantId: 'acme'` in the actors of its spec where the project has a tenancy.** Under `--tenancy shared-table` the spec was red from the start (a 500, `NoCurrentTenantError` raised by the tenant-scoped repository); it now passes until a business decision changes it, as it does without tenancy. A context declared the control plane keeps the actors without a tenant.
|
|
24
|
+
|
|
25
|
+
**`generate query` writes a fake that extends the in-memory reader, so the handler spec runs the `read` it generated.** The coverage gate of the infrastructure layer no longer fails right after a plain query: before, the fake implemented the port and nothing ran the adapter, as only `--search` had it run. The adapter keeps its canned `answer` as a protected field, the fake sets it.
|
|
26
|
+
|
|
27
|
+
**The generated README and `docker-compose.yml` give the command that starts a compose profile: `docker compose --profile observability up -d --wait`.** They said `pnpm run infra:up --profile observability`, which fails with "unknown flag: --profile" because the flag goes before `up`. The same for the `identity` and `errors` profiles.
|
|
28
|
+
|
|
29
|
+
**The generated Vitest config keeps the reporters Vitest picks itself, and the Jest config asks for `summary` under a coding agent.** The explicit `reporters: ['default', ...]` replaced the terse reporter Vitest chooses when `AI_AGENT` or `CLAUDECODE` is set; the budget reporter is now added after `configDefaults.reporters`. A person sees no change.
|
|
30
|
+
|
|
31
|
+
To move: in `vitest.config.ts` write `reporters: [...configDefaults.reporters, '@ddd-ts-kit/testing/budget/vitest']` and import `configDefaults` from `vitest/config`; in `jest.config.js` use `'summary'` in place of `'default'` when `process.env.AI_AGENT` is set.
|
|
32
|
+
|
|
33
|
+
**A new project gives `vitest` and `@vitest/coverage-v8` the same range (`^5.0.3`).** Every test run printed "Running mixed versions is not supported" because the coverage package was pinned exactly while `vitest` resolved to a later patch.
|
|
34
|
+
|
|
35
|
+
To move: in a project already created, write `"@vitest/coverage-v8": "^5.0.3"` in `package.json` and install again.
|
|
36
|
+
|
|
37
|
+
**`db:migrate` finds `DATABASE_URL` in `.env` on the four ORM.** The README copies `.env.example` to `.env` and runs `db:migrate`, but the CLI of knex, Prisma and TypeORM reads no `.env`: only drizzle-kit reached the database, and the three others failed on the connection unless the shell exported the variable. `knexfile.js`, `prisma.config.ts` and the data source of TypeORM load the file when it exists, and what the shell sets wins.
|
|
38
|
+
|
|
39
|
+
To move: add to the top of `knexfile.js`, `prisma.config.ts` or `src/platform/database/data-source.ts` the lines `if (existsSync('.env')) { process.loadEnvFile('.env'); }`, with `import { existsSync } from 'node:fs';`.
|
|
40
|
+
|
|
41
|
+
**On Knex, `db:generate` writes the migration, and a table generated after the first one reaches the database, existing or fresh.** Knex has no schema diff: `generate repository` added a table to `createTables` only, `db:generate` gave an empty stub, and `migrations/00000000000000_initial.js` called the compiled `createTables` of today, so that a table written by hand in a migration failed on a fresh database with `relation already exists`. A project on Knex now has the steps of the three other ORM: `init` writes no migration, `npm run db:generate initial` writes the first, `npm run db:generate add-invoices` the next, `npm run db:migrate` applies them, and a file holds its SQL and calls nothing of the application. `db:generate` is `npm run build && ddd-ts-kit knex-generate --name`: it compares `createTables` with the migrations replayed, both on PostgreSQL in process, with no server, and writes the new tables, columns and indexes; a column changed or dropped and a table dropped are listed as a `TODO(domain)` of the migration; with nothing different it writes nothing; `--custom` writes the empty migration of knex. `db:migrate` no longer builds. The difference with the three others is in the persistence skill.
|
|
42
|
+
|
|
43
|
+
To move: on a project with no shared database, delete `migrations/00000000000000_initial.js`, set `db:generate` to `npm run build && ddd-ts-kit knex-generate --name` and `db:migrate` to `knex migrate:latest`, add `migrations/.gitkeep`, run `npm run db:generate initial` and migrate again from an empty database. With a deployed database, keep `migrations/00000000000000_initial.js` under its name, since knex refuses a recorded migration that is missing, and replace its `up` by the SQL of the tables that database got from it. To get that SQL, in a copy of the project at that commit, never in the project itself, delete the file, set the two scripts, run `npm run db:generate initial`, and copy the `up` of the migration it writes into the kept file, whose name and `down` stay as they are; knex never runs a recorded file again. Set the two scripts in the project too. Then `npm run db:generate <what-it-does>` writes what the database lacks, and the history replays on a fresh one.
|
|
44
|
+
|
|
45
|
+
**On TypeORM, `db:migrate` builds first, and runs what `db:generate` just wrote.** The data source reads `dist/migrations`, and a migration is written after the build: the README ended on `No migrations are pending` with one table, `migrations`, and `npm run dev` then logged failures of the outbox relay. `db:migrate` is now `npm run build && typeorm migration:run -d ...`.
|
|
46
|
+
|
|
47
|
+
To move: add `npm run build && ` at the start of the `db:migrate` script of `package.json`.
|
|
48
|
+
|
|
49
|
+
**The `TODO(domain)` of a command handler asks only what its flags left open.** A handler generated with `--creates` says to keep `create` and pass the facts of the command as value objects, instead of offering the other option too; the handler that changes an aggregate no longer describes `--creates`.
|
|
50
|
+
|
|
51
|
+
A handler generated by an earlier version is not rewritten when a policy comes later: it gets a `TODO(domain)` marker where it asks, as before.
|
|
52
|
+
|
|
53
|
+
**`generate domain-event` refuses a fact that starts with its aggregate.** `generate domain-event ordering Order "Order Confirmed"` used to write `OrderOrderConfirmed`; it now stops and names the form to use, `Confirmed`. The refusal applies where the event would be created: `generate domain-event`, and `event-handler` or `integration-event` when the event file is absent; a handler for an event that exists is never refused. `--allow-name` lets a name through that is right as typed.
|
|
54
|
+
|
|
55
|
+
To move: a project that already holds a stuttering event renames it by hand; nothing else changes.
|
|
56
|
+
|
|
57
|
+
**`generate aggregate --birth` on an aggregate that already exists no longer writes an event the aggregate does not record.** The aggregate is kept, the birth event and its spec are not written, and a `note:` says that `--birth` applies to a new aggregate: add the event with `generate domain-event`, or replace the aggregate with `--force`. `--event-sourced` is the same: on a kept aggregate nothing event-sourced is written (no mapper, builder or spec), and the note says it applies when the aggregate is created.
|
|
58
|
+
|
|
59
|
+
**`generate context` and `init --context` refuse a name no other kind can write into.** `shared-kernel` (every kind reads it as the shared kernel), the name of a layer or of a folder of a context (`domain`, `test`...) and a technical grouping alone (`shared`, `common`, `core`, `utils`, `platform`...) used to create a context that `generate aggregate` and the other kinds then refused. They are refused up front, with the reason. Only the whole name is judged: `core-banking` or `platform-fees` are accepted.
|
|
60
|
+
|
|
61
|
+
To move: a project that already has a context named by one of these whole names renames it, or keeps it and writes into it by hand.
|
|
62
|
+
|
|
63
|
+
**The glossary refusal of `generate query` and `generate command` lists the missing words of the use case and of its permission together.** `GetOrder --permission order.read` used to refuse `get`, then, one run later, `read`; one message now lists both with their `--term` flags. The permission is named as a permission, and its technical words are judged in the same pass.
|
|
64
|
+
|
|
65
|
+
**`generate policy` and `generate command|query` ask a policy in the use cases of a module of the model too.** A policy that refines the permission of `PayInvoice` made the handler ask it only when the use case sat outside a module; inside one, the handler never called `access.authorize` and `authz/policy-asked` reported it. Both orders now work, with or without `--module`.
|
|
66
|
+
|
|
67
|
+
To move: a handler generated inside a module before a policy existed gets its `access.authorize` call by hand.
|
|
68
|
+
|
|
69
|
+
**`generate query` refuses a name that starts with `List` and names the `Search<Things>` form.** `generate query billing ListInvoices` used to ask for a `List` term in the glossary and, once given, wrote files that `naming/search-not-list` reported. It now stops first: `SearchInvoices`, with `--term "Search=..."` when the glossary lacks the word. The use-case skill says the same.
|
|
70
|
+
|
|
71
|
+
**The fix of `test/spec-required` names `test/unit/<module>/` for a file of a module of the model.** It used to name `test/unit/`, and the spec created there was reported by `module/complete` as a file outside every module.
|
|
72
|
+
|
|
73
|
+
**The `TODO(domain)` of a generated state machine spec names the refusal the style produces.** Under `"stack.refusals": "named"` it no longer sends to an `<Aggregate>Error` class the project does not have, and says to use `generate error <context> <Refusal> <factory>`.
|
|
74
|
+
|
|
75
|
+
**`ddd-ts-kit drizzle-generate`, `prisma-generate` and `typeorm-generate` refuse a project of another ORM before they write anything.** The refusal names the ORM of the project and the script that fits it (`pnpm run db:generate <what-it-does>`, with `ddd-ts-kit <orm>-generate` for Drizzle, Prisma and TypeORM; Knex has no generate command of the kit). Before, `prisma-generate` on a Drizzle project said to run `npm install` and left a `prisma/` folder behind. No project has to act.
|
|
76
|
+
|
|
77
|
+
**`ddd-ts-kit init` run again on a project checks every flag and says which one it did not apply.** The project keeps the stack recorded in its config, as documented, but a flag with a value no choice accepts (`--http nope`) is now refused with exit 2, as in an empty directory, and a flag that names another choice than the recorded one (`--http fastify` on an Express project) is said in a note, with the `init --force` command that changes it. No project has to act.
|
|
78
|
+
|
|
79
|
+
**`ddd-ts-kit init` no longer accepts in silence two choices that do nothing.** `--orm none --event-sourcing on` is kept and now says in a note that the events of an event-sourced aggregate, their only record, live in memory and are lost when the process stops. `--allow-no-outbox "<reason>"` on a stack that keeps the outbox (no `--events in-memory`, or no ORM) is refused with exit 2, since no deviation exists to record there and the reason would be lost.
|
|
80
|
+
|
|
81
|
+
To move: drop `--allow-no-outbox` from a command that does not also ask for `--events in-memory` with an ORM.
|
|
82
|
+
|
|
83
|
+
**The fix of a refusal of the CLI is written for the package manager of the project.** `ddd-ts-kit lint` without ESLint on a pnpm project says `pnpm install --frozen-lockfile` instead of `npm ci`, and the generators and the other refusals that said `npm install` or `npm run` say `pnpm install`, `pnpm run`, as the project does. The manager is read from the config, the notes of the formatter and of the locked files go through the same place, and a project with no config keeps npm. No project has to act.
|
|
84
|
+
|
|
85
|
+
**Seven small refusals of the CLI now give a next step that is right and runnable.** `mutation` says its report covers the domain and application layers; `generate route` for a use case that does not exist gives the whole `generate command` line (`--permission` or `--public`); `generate gateway` to a context that already depends on this one is refused as a cycle instead of telling to declare it; `move-to-module` with no module says so; `build-aliases --project` says when the file does not exist; `lint` reports a pattern that matches no file and a formatter ESLint cannot load as a refusal with a fix, not a Node stack; `depcruise-config --check --write` is refused with exit 2 instead of writing the file. No project has to act.
|
|
86
|
+
|
|
87
|
+
**The Claude jobs of the generated pipeline install their agent with npm at a pinned version, and the headless design pass loads the plugin at the tag of the kit version the project uses.** On pnpm, the default, the install of Claude Code no longer asks for a global bin directory the runner does not have, so `intent-to-spec` and the GitLab Claude jobs run. A global `npm install` is no longer translated for pnpm, and `renovate.json` keeps the pinned version of the agent up to date.
|
|
88
|
+
|
|
89
|
+
**The Dependabot file `init` writes waits seven days for a release of each ecosystem, and the Renovate preset pins the digest of every container image.** Security updates are not delayed.
|
|
90
|
+
|
|
91
|
+
To move: add `cooldown: { default-days: 7 }` to each ecosystem of your `.github/dependabot.yml` and `docker:pinDigests` to `extends` of `renovate.json`, or take the new files.
|
|
92
|
+
|
|
93
|
+
**An edit of the composite actions, the pipeline scripts, the GitLab includes, the hooks of the gates, the dependency bots, the Stryker config and `pnpm-workspace.yaml` is asked, with the workflows.** The permissions that `init` writes and the editor hook of the plugin both name them, and the hook also asks about `REVIEW.md`.
|
|
94
|
+
|
|
95
|
+
To move: run `npx ddd-ts-kit init` again to merge the new rules into `.claude/settings.json`.
|
|
96
|
+
|
|
97
|
+
**The generated GitHub workflows keep no token in the checkout, read the base branch of a pull request through the environment, and the two Claude jobs hold no identity token.** `persist-credentials: false` is on every checkout but the one of `intent-to-spec`, which pushes its branch. `claude-review` and `claude-triage` no longer declare `id-token: write`; a project that reaches the model through a cloud provider with an identity token adds it back to the job.
|
|
98
|
+
|
|
99
|
+
To move: run `init --force` to take the new workflows, or add `persist-credentials: false` to your checkouts.
|
|
100
|
+
|
|
101
|
+
**The base branch of a pull request reaches a script of the generated and of the kit's own workflows through the environment, never through the text of the script.** The mutation job of `ci.yml` and `intent-to-spec` read it as `$BASE_REF`.
|
|
102
|
+
|
|
103
|
+
**The production gate reads a release named with a dash, an underscore or a dot.** `deploy-production`, `deploy_production` and `db:migrate-production` are held for approval as `deploy:production` is, and `non-production` and `pre-production` are not read as production.
|
|
104
|
+
|
|
105
|
+
To move: a project that wrote its production gate before keeps the old reading until it takes the new `.claude/hooks/production-gate.mjs` (`init --force` after saving the lists it edited).
|
|
106
|
+
|
|
107
|
+
**The job of the release workflow that publishes to npm installs and builds nothing.** A first job installs, builds and packs each package; the job that holds the publishing identity downloads those tarballs and publishes them.
|
|
108
|
+
|
|
109
|
+
**A path no route serves is answered 404 `NOT_FOUND` as a problem on Express, Fastify and Hono, as on Nest.** Express answered the HTML page `Cannot GET /path`, Fastify `{ message, error, statusCode }` and Hono the text `404 Not Found`, so a client that reads every error of the service as a problem failed on this one. `problemNotFoundHandler` of `@ddd-ts-kit/http/express`, `@ddd-ts-kit/http/fastify` and `@ddd-ts-kit/http/hono` answers it with the identifiers of the request and logs it at `info`, as `ProblemExceptionFilter` now does on Nest (a scanner probes paths by the thousand: no warning per probe), and the generated `start-http-server.ts` installs it.
|
|
110
|
+
|
|
111
|
+
To move: in `src/platform/http/start-http-server.ts`, import `problemNotFoundHandler` beside `problemErrorHandler` and install it with the logger of the application: on Express `app.use(problemNotFoundHandler({ logger: served.logger }))` after the routes and before `problemErrorHandler`, on Fastify `app.setNotFoundHandler(...)`, on Hono `app.notFound(...)`.
|
|
112
|
+
|
|
113
|
+
**A save that takes a value a unique constraint keeps (an email) is refused as `CONFLICT` on the four ORM, not as a lost update or a 500.** The first save of an aggregate ignored any conflict on Drizzle, Prisma and TypeORM, so a new aggregate with a taken email wrote nothing and `optimisticUpdate` raised `ConcurrencyError`, a 409 `CONCURRENCY_CONFLICT` that a client retries for nothing; on Knex the driver error went through as a 500. Now the first save ignores a conflict on the id alone (`onConflictDoNothing({ target: primaryKeyOf(table) })` on Drizzle, the primary key as the table declares it, `insertIgnoringConflict` of `@ddd-ts-kit/typeorm` on the primary key, as on Knex), Prisma, whose `skipDuplicates` names no target, tells a taken id from another value with `rowsCreated` of `@ddd-ts-kit/prisma`, and `optimisticUpdate` raises the new `UniqueViolationError` of the kernel, a `ConflictError` (code `CONFLICT`, 409) whose `cause` is the error of the driver (`23505`, `ER_DUP_ENTRY`, `SQLITE_CONSTRAINT_UNIQUE`, `SQLITE_CONSTRAINT_PRIMARYKEY`, a raw `SQLITE_CONSTRAINT` of libsql that names a unique key, `P2002`), on an insert and on an update alike. `repositoryContract` of `@ddd-ts-kit/testing` takes `createAggregateTaking` to prove it on an adapter over a table with a unique column. On MySQL, whose `INSERT IGNORE` names no conflict target, `insertIgnoringConflict` of Knex and of TypeORM asks whether a row holds the key when nothing was written, as `rowsCreated` does.
|
|
114
|
+
|
|
115
|
+
To move: a client that retried the 409 `CONCURRENCY_CONFLICT` of a taken value now gets a 409 `CONFLICT`; a handler that has its own refusal for it catches `UniqueViolationError`. A generated repository changes its first save: on Drizzle `.onConflictDoNothing({ target: primaryKeyOf(<table>) })`, `primaryKeyOf` imported from `@ddd-ts-kit/drizzle/postgres`; on Prisma `insert` answers `rowsCreated(created, { id, holders: () => <table>.count({ where: { id } }) })` (with `...tenantWhere(this.scope)` on a tenant table); Knex and TypeORM need no change. `insertIgnoringConflict` of `@ddd-ts-kit/typeorm` ignores a conflict on the primary key only: a call that relied on it to skip a row for another unique constraint writes that statement with `.orIgnore()`.
|
|
116
|
+
|
|
117
|
+
**A project generated on Prisma sets how long a unit of work waits for its transaction and how long it may run, and answers 503 beyond, not 500.** The generated `persistence-over.ts` passed no options to `createPrismaUnitOfWork`, so Prisma gave up a transaction after 2 seconds of waiting for a connection or 5 seconds of work: a burst of 400 commands on a pool of 10 lost half of them, and every one was a 500. The generated config now reads `DATABASE_TRANSACTION_WAIT_MS` and `DATABASE_TRANSACTION_TIMEOUT_MS` (10 and 30 seconds by default: not more, since a caller gives up near 30 seconds, and a connection held for an answer nobody reads sheds no load) and hands them over as `maxWait` and `timeout`. A transaction Prisma could not start or ended (`P2028`, `P2024`), or a connection the pool of Knex did not give in time (`KnexTimeoutError`), rejects the unit of work with the new `TransactionTimeoutError` of the kernel, code `SERVICE_UNAVAILABLE`, which the default error mapping of `@ddd-ts-kit/http` answers 503. It is a fault of the infrastructure, not a business refusal: `retry` tries again, a circuit breaker counts it, the error reporting sees it, and the problem says nothing of the driver. Drizzle and TypeORM wait for a connection of their pool and bound no transaction in time: they need no such setting.
|
|
118
|
+
|
|
119
|
+
To move: a project on Prisma adds `readonly databaseTransaction: { readonly waitMs: number; readonly timeoutMs: number }` to `AppConfig`, reads it in `load-config.ts` (`env.integer('DATABASE_TRANSACTION_WAIT_MS', { fallback: 10_000, min: 1, max: 3_600_000 })`, and `DATABASE_TRANSACTION_TIMEOUT_MS` with `fallback: 30_000`), passes `config.databaseTransaction` from `openPersistence` to `persistenceOver(client, transaction)`, and there to `createPrismaUnitOfWork(client, { maxWait: transaction.waitMs, timeout: transaction.timeoutMs })`; `ddd-ts-kit init --force` rewrites these files while git holds them.
|
|
120
|
+
|
|
121
|
+
**A project generated on Express fails at start when its port cannot be bound.** Express 5 hands the error of `listen` to its callback, which the generated `start-http-server.ts` ignored: on a port already in use the process logged `listening` on port 0, served nothing and stayed up until its signal. The start now rejects with the error of `listen` (`EADDRINUSE`), as on Fastify, Hono and Nest, and the process exits before it logs `listening`.
|
|
122
|
+
|
|
123
|
+
To move: in `src/platform/http/start-http-server.ts`, `listen` takes `(resolve, reject)` and calls `app.listen(port, (error) => (error === undefined ? resolve(server) : reject(error)))`.
|
|
124
|
+
|
|
125
|
+
**`assertTopology` of `@ddd-ts-kit/kafka` fails with `BROKER_UNAVAILABLE` when the cluster cannot be reached, even with no topic to create.** It reached the cluster only to create a missing topic, so a service that subscribed to nothing yet, or whose topics all existed, or that may not create topics, started and logged `listening` with no broker. It now asks the cluster for its topics first, as the NATS, RabbitMQ and Redis buses reach their server, and gives up after `connectTimeoutMs` (10 seconds by default): a generated service with `--broker kafka` fails at startup, never at its first record.
|
|
126
|
+
|
|
127
|
+
To move: a start without a reachable cluster, which used to pass, now rejects with `BROKER_UNAVAILABLE` after `connectTimeoutMs`: start Kafka before the service (or a test that starts it), or point `KAFKA_BROKERS` at a cluster that answers.
|
|
128
|
+
|
|
129
|
+
**Every file the guard reads is a regular file read within its bound.** The config, the plan, a scope file, the state of a worker, a file counted for the size of a commit and a file compared after a worker's command are read through one descriptor that never waits and never past their limit: a link to a device or a FIFO is read as no text at once, and a file of state or a plan larger than 16 MiB is not read.
|
|
130
|
+
|
|
131
|
+
**A folder another user may write holds no project for the guard.** The guard looks for the config of a project and for the top of its repository up to a folder owned by neither the user nor the system, or writable by others, the shared temp directory above all: a config, a `.git` or a CLI planted there is never read nor run.
|
|
132
|
+
|
|
133
|
+
**A project under the temp directory keeps the rules of its shell.** The temp directory is a free place for a redirection outside every project only: in a project cloned or checked out there, a redirection, `sed -i` or `tee` is judged as anywhere else.
|
|
134
|
+
|
|
135
|
+
**What the guard counts as a reader runs no program, and a sub-agent gives git no setting that runs one.** A program named like a reader but by its path, git given a setting for the command (`-c`, `--config-env`, a variable before it) or an option that hands the files to a program (`grep -O`, `--ext-diff`), and inline code whose arguments name the kit are no longer pure readers: the state outside a worker's scope is noted before them. The kit is launched by the program word, or by the first operand of `node` or of a package runner, never by a word among the arguments of another program. To a sub-agent, the git settings that run a program now include `diff.external`, the textconv and merge drivers, `include.path` and `includeIf`, the credential helpers, `core.attributesFile`, `core.gitProxy`, `core.askPass`, `sequence.editor`, `interactive.diffFilter`, `pager.*`, `mergetool.*`, `difftool.*`, every `gpg` program and `protocol.*`, given by `-c` or `--config-env`; and the variables `GIT_EXTERNAL_DIFF`, `GIT_PAGER`, `GIT_EDITOR`, `GIT_SEQUENCE_EDITOR`, `GIT_SSH*`, `GIT_ASKPASS`, `GIT_PROXY_COMMAND`, `GIT_EXEC_PATH` and `GIT_CONFIG*`, set for a command or exported, are refused to it.
|
|
136
|
+
|
|
137
|
+
**A file a worker writes is judged where it lands.** A link of its scope, or a folder of the path that is one, is the place it reaches, a link that points nowhere yet included; a link of the temp directory into a project is that place; and a file of its scope that has another name elsewhere (a hard link) is refused, by the editor tools and by the shell.
|
|
138
|
+
|
|
139
|
+
**A worker's git keeps to its own branch.** The branch is the one `.ddd-ts-kit/worker.json` records (`branch`), else the one its worktree has checked out. In its worktree a worker pushes that branch alone: `git push`, `git push -u origin <branch>`, `git push origin <branch>` and `HEAD:<branch>` stay free, while a push to another branch, a deletion (`:<ref>`, `--delete`, `-d`), `--force`, `-f`, `--force-with-lease`, a `+` refspec, `--all`, `--tags` and `--mirror` are refused. A `git fetch` into a ref (`src:dst`) is refused from any checkout, and so are a new tag, and a `checkout` or `switch` to another branch, a new one (`-b`, `-c`, `--orphan`) or none (`--detach`). Checking out files (`git checkout -- <path>`, `git checkout <ref> <path>`, `--ours`, `--theirs`, `--patch`) is unchanged.
|
|
140
|
+
|
|
141
|
+
To move: a worker that pushed elsewhere, tagged or changed branch reports it to the conductor, who lands its branch.
|
|
142
|
+
|
|
143
|
+
**A worker sets no variable that moves where the shell or git find their places, and a `cd` that CDPATH sends elsewhere is uncertain.** `TMPDIR`, `CDPATH`, `HOME`, `GIT_DIR`, `GIT_WORK_TREE` and `PATH`, set for a command, on their own or exported, are refused to a worker: the guard reads the places of a command by their values when the session started. A relative `cd` that a folder of `CDPATH` holds lands where only the shell knows, so what follows it is judged as a place only the shell knows.
|
|
144
|
+
|
|
145
|
+
To move: a worker that set one of these variables in a command runs it without, from its worktree.
|
|
146
|
+
|
|
147
|
+
**A worker only reads outside its worktree, whatever the program and wherever its session stands.** From the checkout of the conductor, a builder's command that is not made of readers (`cat`, `ls`, `grep`, git that reads, `git add` and `git commit` in its own worktree, the kit asked to list, describe, report or read a briefing, and its checks that write nothing: `check` without `--baseline`, `lint` without `--fix`, `rules`, `docs --check` without `--stored-events`, `verify-merge`, `cited`, `affected` without `--run`) is refused with the instruction to run it as `cd <worktree> && ...`: `sort -o`, `mkdir`, `chmod`, `git -C <worktree> merge`, `reset`, `rebase` and `pull` included. A session opened above the project holds its worker to the project its command names, and a builder whose session stands in its worktree stays pinned to it when a command starts in another project.
|
|
148
|
+
|
|
149
|
+
To move: a worker that ran a writing command from the checkout of the conductor with `git -C <worktree>` or a path under its worktree runs it as `cd <worktree> && ...`.
|
|
150
|
+
|
|
151
|
+
**Every Codex patch of a command line is judged, and one the command does not hold is refused.** Each `*** Begin Patch` of a line run through the shell, in a here-document or an argument, is judged as the editor tools judge a write; `apply_patch` fed from a file or a pipe is refused, with the here-document to use. A file a patch deletes, or leaves by a move, is held as `rm` holds it: the baseline is refused, and so is a file outside the scope of a worker.
|
|
152
|
+
|
|
153
|
+
To move: a Codex session that applied a patch from a file passes it as a here-document.
|
|
154
|
+
|
|
155
|
+
**The guard's own git runs no program a repository plants.** The git the runs of a builder start reads no `core.fsmonitor` of the config, as the git of the guard already did, and neither runs a hook planted in the repository: both run with no hooks and `--no-optional-locks`, so that a `git status` of the guard writes no index.
|
|
156
|
+
|
|
157
|
+
**The hooks of the project and the steps of the conductor are read on the words of a command, as the shell gives them.** A quote inside a word (`g''it`, `--to-la'nd'`) no longer hides a git command that skips the hooks, nor a landing, a lock or the place of a worker asked by a sub-agent. A git command that skips the hooks now also covers `core.hooksPath` set by `--config-env` with a space or by `GIT_CONFIG_*` in the environment, `LEFTHOOK_EXCLUDE` and `LEFTHOOK_SKIP`, `git am`, `cherry-pick` and `revert --no-verify`, and `git commit-tree`. Taking one side of a merge is refused to a sub-agent in `rebase`, `cherry-pick` and `revert` too, and in every spelling of `-X` and `--strategy-option`.
|
|
158
|
+
|
|
159
|
+
**The lock of an acceptance and its verdicts are held however a command reaches them, and the judge runs the kit only to read.** A folder that holds them (`test/acceptance`, `test`) counts as them, and so does a place only the shell knows on a line that names the acceptance (`cd test/acceptance; cp ...`); `git log`, `show` and `diff --output` write the file they name, `rg --pre` and a git given a setting run a program, and `git commit -a` is no read. The acceptance judge reads git without adding or committing, and runs the kit only to read (`acceptance` without `--lock`, `list`, `describe`, `explain`, `status`, `story`, `stories`, `story-check`).
|
|
160
|
+
|
|
161
|
+
**The mode of the guard is pinned with the scope of a worker, and a branch it merges back is its own work.** A config of the worktree that turns the guard off, or grows past what the guard reads, after a worker's first call no longer lifts that worker: its change is compared as any other change outside the scope, and stops the worker until it is put back. What a merge brings into a worker's branch is left out of the comparison only when the trunk holds it; a branch of the worker merged back is compared as its commits are. The guide states that the state the guard keeps between two calls lies in the project.
|
|
162
|
+
|
|
163
|
+
**The reviewer, the explorer and the verifier of the plugin change no file of a project by the shell.** A redirection, a writer or a git command that changes the work tree (`checkout`, `switch`, `stash`, `reset`...) is refused to `architecture-reviewer`, `domain-explorer` and `story-verifier`; they read a branch with `git show` and `git diff`, may stage with `git add`, run tests, and write to the temp directory.
|
|
164
|
+
|
|
165
|
+
**The guard walks no glob outside the project and reads at most 32 wrappers before a program.** A pattern a command writes that starts outside the project (`/**/.cache`) stays as written instead of being walked from the root of the disk, and a command with more than 32 wrappers and assignments before its program names a program only the shell knows, refused to a worker: every answer stays within the time of the hook.
|
|
166
|
+
|
|
167
|
+
**The record of the trial of `dependenciesBeforeWrite` follows no link, and a sanctioned script run in another folder is no tool of the project.** `.git/ddd-ts-kit/before-write.jsonl` is appended through no link put under its name. A `format`, `lint:fix` or `regenerate` script run with `--prefix`, `-C`, `--dir`, `--filter` or `--workspace` runs another folder's script: what it changes outside a worker's scope is held, as any other code's, rather than said.
|
|
168
|
+
|
|
169
|
+
**The scope file of a story or of a worker is the conductor's.** `.ddd-ts-kit/story.json` and `.ddd-ts-kit/worker.json`, and the `.ddd-ts-kit` folder that holds them, are refused to every change, by the editor tools and by the shell (a removal of a folder above them included: `rm -r`, a `find -delete` or `-exec rm` whose `-name` tests can find them, `git clean -x` or `-X`, `git stash --all`, and `git clean -d` or `git stash --include-untracked` when git does not ignore them), to the session that stands in the worktree that holds them and to every sub-agent: removing the scope file of a story no longer opens its build gate. The conductor writes them from its checkout, with `story-scope` and `worker-scope`.
|
|
170
|
+
|
|
171
|
+
**The documentation of the guard says that its stop checks a tree with uncommitted changes.** The `Stop` hook refuses to finish while architecture errors remain in a tree with uncommitted changes; a clean tree is left to the pre-commit hook and the pipeline, as it always was. The description of the hooks, the guide of the coding agents and the guide of commit discipline now say so.
|
|
172
|
+
|
|
173
|
+
**The stop of a worker reads its branch since its base.** At the stop of a context builder, the guard compares with its scope what its branch holds since the `baseCommit` of its scope file: the files its commits changed since then, what a merge of the trunk brought in left out, and the files left uncommitted. A file outside the scope keeps the worker going once to take it out of its branch, and what stays reaches the conductor with the stop. A scope file that records no base leaves the commits uncompared: the guard fails open there.
|
|
174
|
+
|
|
175
|
+
**A contract title that holds `*/` stays inside the comment of the generated client.** The title and the version were written into the comment of `Client` as they came; they now go through the same escape as the summaries and descriptions of the operations, and a title on several lines is a multi-line comment.
|
|
176
|
+
|
|
177
|
+
**A handler that answers a success with no question on its permission allowed is refused, at run time and by `authz/policy-asked`.** When a policy refines the permission of a use case, the authorization module now refuses a handler that answers with a success (an `ok` Result, or a value that is no Result) when no question on that permission was allowed (every answer denied or failed), with `PolicyDenialIgnoredError` (exported by `@ddd-ts-kit/auth`), inside the unit of work, so that its change is rolled back. A handler that stops on the denial with a failed Result (`err(...)`) or a throw answers its own refusal, unchanged; a handler that skips the elements it was denied and applies those it was allowed on passes, whatever the order of the answers. `authz/policy-asked` reports a `decide` or `decideOn` on that permission written as a statement of its own, its decision dropped, with a fix that names `authorize`.
|
|
178
|
+
|
|
179
|
+
To move: a handler that answers a success with no question allowed, after `access.decide(...)`, calls `access.authorize(...)`, which refuses a denial, or keeps the decision and stops when `decision.allowed` is false, with a failed Result or a throw.
|
|
180
|
+
|
|
181
|
+
**With the identity preset and tenants, a request names the organisation it works in.** The preset gives the HTTP boundary of the project (`http-boundary.ts`) `resolveTenant: firstTenantOf(tenantFromHeader(), tenantFromClaim())`: a person of several organisations names one with `x-tenant-id` on each request to the data of a tenant, a person of one works in it as before, and a header naming an organisation the person does not belong to is refused with 403 at the edge. A boundary that resolves its tenant already is left alone; one the team rewrote gets a step saying what to add. The header is read on every route, so a client sends none for an organisation the person is not a member of yet: the routes of the identity context that come before a membership (provisioning the account, answering an invitation, opening an organisation) are called without it, as [the identity page](docs/tools/identity.md) says, rather than exempted route by route, which the pipeline has no setting for.
|
|
182
|
+
|
|
183
|
+
To move: a project bootstrapped with `--preset identity` and tenants before this version adds `resolveTenant: firstTenantOf(tenantFromHeader(), tenantFromClaim())` to the object `httpBoundary` returns, and `readonly resolveTenant: TenantResolver` to `HttpBoundary`, the three functions and the type imported from `@ddd-ts-kit/http`.
|
|
184
|
+
|
|
185
|
+
**With tenants, the documentation of ReBAC says that a tuple names no tenant, and how to decide per tenant.** A tuple on an element reaches that element alone, its id shared by no other tenant; one on the context of a use case (`context:ordering operator user:olivia`) holds in every tenant the person works in. [Choosing access control](docs/guides/choosing-access-control.md), [Multitenancy](docs/concepts/multitenancy.md) and the schema `init --authz rebac --tenancy ...` writes now say so, and decide what a use case on no element allows tenant by tenant: by roles with the tenant check, or on an object that names the tenant, the relationships kept for the elements.
|
|
186
|
+
|
|
187
|
+
To move: a project with tenants that grants the operator of a context by a tuple, to a person who belongs to several tenants, decides those permissions per tenant instead.
|
|
188
|
+
|
|
189
|
+
**`drizzle-generate`, `prisma-generate` and `typeorm-generate` say so when the migration that creates the audit trail lacks the append-only guard.** A run stopped after the tool of the ORM wrote its migration and before the guard was added left the audit entries open to UPDATE and DELETE, and the next run found nothing to write. The next run now prints one notice that names the migration and the way to add the guard in a new migration. It never rewrites a migration of an earlier run, which may be applied already and whose checksum the ORM checks; the run that wrote a migration still completes it in the same run.
|
|
190
|
+
|
|
191
|
+
**An archive row that no file proves is the break of its chain.** The guard of the trail lets through the `DELETE` of an entry a row of `audit_archives` covers, so a role that may both insert such a row and delete entries can let entries go behind a row of its own. `verifyTrail(trail, { files })` now reads back the file of every archive of each chain, oldest first, and proves it with `verifyArchive` against the one before it, before it verifies the entries left from the anchor of the last: a row without its file answers `missing-entry`, a file that does not prove its row `altered-content`, at the first sequence the row names, and a storage that fails to give a file back `unreadable-archive`, a new kind of `ChainBreakKind`, for that chain alone. Whatever the storage, the rows follow each other with no gap and the head goes on from the last one: a head behind it, or at its end with another hash, is a break. `VerifyAuditTrail(trail, files)` passes the storage on; without `files` the archives are not read back, and an anchor is what its row says. A generated project that archives (a trail in a database and a storage of files) gives the storage to the nightly `audit.verify` and to `npm run audit:verify`: the module of tsyringe resolves `FileStorage`, the composition by hand passes `platform.files.storage`, both only when the archive is on. A project with `--storage none` archives nothing and verifies its chains from their genesis. The documentation of the guard says which two privileges open that path, and that they belong to the role that archives.
|
|
192
|
+
|
|
193
|
+
To move: `init --force` rewrites `src/platform/audit/audit.module.ts` (or the composition by hand) and `scripts/audit-verify.ts`. A verification of your own passes `files` to `verifyTrail`.
|
|
194
|
+
|
|
195
|
+
**`known(...attributes)` lets an attribute rule demand the facts it reads, and the guide writes its ABAC preset with it.** `known('amount', 'approvals')`, a condition of `@ddd-ts-kit/auth`, holds when the `ResourceAttributes` port answered every attribute named. An element a projection does not hold yet answers none: the preset of [Choosing access control](docs/guides/choosing-access-control.md) now refuses voiding such an invoice (`forbid(..., not(known('amount', 'approvals')))`), its `permit` on the department requires the attribute, and its comparison with the department of the actor demands that the actor has one, where the rules it showed before let an unknown invoice through.
|
|
196
|
+
|
|
197
|
+
To move: a project whose attribute rules were copied from the guide writes them the same way: each `forbid` that reads an attribute of the resource is joined by one that refuses when the attribute is not `known`, each `permit` that reads one requires it with `allOf(known(...), ...)`, and a comparison with an attribute of the actor checks that the actor has it.
|
|
198
|
+
|
|
199
|
+
**A personal value read as a date or a value object keeps the aggregate readable once its subject is erased.** `StoredEventData` gains `personalText(field)`, `personalInstant(field)` and `personal(field, read)`, which answer `undefined` when the field is absent or its subject was erased, and never hand `ERASED_PERSONAL_DATA` to `read`; `isErased(field)` says whether it was, from what the cipher opens such a value into: `PersonalDataCipher.open` now gives an `ErasedValue`, `{ $erased: { key } }`, in place of the text `[erased]`, so a text that reads `[erased]` is never taken for an erased value; `text` and `texts` read it as `ERASED_PERSONAL_DATA`. `optionalInstant` reads an erased date as absent. A sealed date read with `data.instant`, or an address parsed by a value object in `decode`, used to refuse `[erased]` with an `UnreadableEventError`, so the aggregate no longer loaded after the erasure of its subject.
|
|
200
|
+
|
|
201
|
+
To move: an upcaster that reads a personal value of the raw data finds `{ $erased: { key } }` once its subject is erased. A `decode` that reads a personal value with `data.text`, `data.instant` or a value object reads it with `data.personalText`, `data.personalInstant` or `data.personal(field, ValueObject.of)`, and the field of its event admits `undefined`.
|
|
202
|
+
|
|
203
|
+
**An invitation of the identity preset holds while its issuer may still invite in its role.** `AcceptInvitationHandler` reads where the account that issued the invitation stands when the invitation is answered: removed from the organisation, deactivated, demoted below the role of the invitation, or, for an invitation issued under a delegation, that delegation ended or revoked (another one lending the right does not count), its pending invitations are withdrawn and let nobody in (`INVITATION_WITHDRAWN`, a new refusal of the context, and the term `Withdrawn` of its glossary). `RoleRightsService.mayStillIssue` decides it, from the same table of rights as every other use case of the context. An invitation now keeps the delegation it was issued under (`delegationId`, the column `delegation_id` of `invitations`).
|
|
204
|
+
|
|
205
|
+
To move: a project bootstrapped with `--preset identity` before this version keeps its handler. To hold the same rule, add the nullable column `delegation_id` to the table `invitations` (a migration; existing rows keep `null`, read as issued in a role), keep `delegationId` in `InvitationState` and its mappers, give `AcceptInvitationHandler` the `DelegationRepository`, and before saving the accepted invitation refuse it when `new RoleRightsService().mayStillIssue(invitation, { member, lent, now })` is false, `member` and `lent` read for `invitation.invitedBy` in its organisation (`findOf`, `findUnendedTo`). Once the rule holds, the pending invitations of an issuer already removed, deactivated or demoted are withdrawn at once, and so is an invitation whose issuer has no current membership in the organisation (one written by a seed or a script under an account that is no member): issue those again from a member who may invite.
|
|
206
|
+
|
|
207
|
+
**`doctor` reports a regulated sandbox whose lists no longer hold what the profile writes.** A `sandbox.network.allowedDomains` that lets every host through (`*`), and a `sandbox.credentials.files` or `envVars` that denies other paths or variables than the ones of the profile, were passed because the lists were only checked for being non-empty. Each entry of the profile must now be there; a project may list more.
|
|
208
|
+
|
|
209
|
+
`doctor` also refuses, under the regulated profile, a `permissions.defaultMode` of `bypassPermissions` and an allow rule `Bash(*)` or `Bash`: with either, the sandbox has no gate left.
|
|
210
|
+
|
|
211
|
+
**The state and scope files a command writes are written inside the project only.** `story-scope`, `worker-scope`, `check --baseline write`, `verify-slice` and `merge-trunk` now refuse, with the path named and before anything is written, a file or a folder that is a symbolic link leading out of the project, as `generate` and `docs` already did. Each file is written whole or not at all.
|
|
212
|
+
|
|
213
|
+
**The grants the README of `@ddd-ts-kit/audit` gives run the verification and the archive.** The application role reads `audit_archives`, which the verification of each chain from its last archive needs, and the archive runs as a role of its own, `audit_archiver`, which alone may record an archive and remove the entries it covers: the application can then neither rewrite nor remove an entry. The README of a generated project with its trail in a database says that it runs its migrations and the application with one role, and points to these grants for production.
|
|
214
|
+
|
|
215
|
+
**The audit trail of a generated project is verified every night.** `verifyTrail(trail)` of `@ddd-ts-kit/audit` verifies every chain, each from the anchor of its last archive to its head, so a chain cut at its tail does not verify, and answers the first break of each chain with the number of entries examined; `VerifyAuditTrail` is the scheduled job that runs it and fails with `AuditTrailBrokenError` (`breaks`, code `AUDIT_TRAIL_BROKEN`) on a break. `ArchivableAuditTrail` gains `chainHeads()`, the sequence and the hash of the last entry of every chain, in one order on every store: once in `PostgresAuditTrail`, which the four ORM stores share through their `SqlSession`, and on `InMemoryAuditTrail`. `archivableAuditTrailContract` of `@ddd-ts-kit/audit/testing` holds a store to `chainHeads`, `archiveBefore` and `archivesOf`; the four ORM stores and the one in memory pass it. With the trail in a database, `init` registers the platform job `audit.verify` every night at 04:30 UTC, in the three families of dependency injection, switched off with `JOB_AUDIT_VERIFY_ENABLED=false`, and writes `scripts/audit-verify.ts`, run by `npm run audit:verify`, exit code 1 on a break. A trail kept in the memory of the process (`audit: on` without an ORM) gets neither, and the README of the project says so. The factory of the store moves to `src/platform/audit/create-audit-trail.ts`, which the script shares with the platform.
|
|
216
|
+
|
|
217
|
+
To move: `init --force` rewrites `src/platform/audit/create-audit.ts`, writes `create-audit-trail.ts` and `scripts/audit-verify.ts`, and rewrites the composition and `jobs/job-settings.ts`. On tsyringe, `auditModule(audit, { jobs })` takes `jobs` whenever the trail is in a database. A store of your own that implements `ArchivableAuditTrail` adds `chainHeads()` and passes `archivableAuditTrailContract`.
|
|
218
|
+
|
|
219
|
+
**`init --authn none`: the development header is believed where `NODE_ENV` says `development` or `test`, never by default.** `loadConfig` refuses to start a project on the development header when `NODE_ENV` is left out or empty (`NODE_ENV must be development or test`), and `DevelopmentHeaderAuthenticator` is built in `development` and `test` only, where it refused `production` alone. `init` now writes the `.env` a new project starts from, a copy of `.env.example` with `NODE_ENV=development`, so that `npm run dev` runs at once; a `.env` that exists is kept, `--force` included. The Dockerfile sets `production`, the test runners `test`, as before.
|
|
220
|
+
|
|
221
|
+
To move: a project on `--authn none` adds `NODE_ENV=development` to its `.env` (the line of `.env.example`), and every other place it starts from (a script, a service) sets `NODE_ENV`. A project generated before keeps its files; to hold the same rule, add the check after the line that reads `NODE_ENV` in `src/platform/config/load-config.ts` (`if (env.optional('NODE_ENV') === undefined) env.problem(...)`), and refuse in the constructor of `DevelopmentHeaderAuthenticator` every environment but `development` and `test`.
|
|
222
|
+
|
|
223
|
+
**The export of a person holds what the event store keeps of them.** `EventStorePersonalDataExport` of `@ddd-ts-kit/kernel` is the `PersonalDataExport` of the event store: one record per event that holds a value sealed with a key of the subject, under `<name>.<event type>`, naming its `event` (stream, aggregate id, version, instant), each value opened and named by its path in the data of the event (`note`, `contacts[0]`); a value that does not decipher is named in `unreadable` and the export goes on. `PersonalDataRecord` gains the optional `event` and `unreadable`. A stream is named after its aggregate, so it reads the whole store in rounds, in the order of the positions, which a store commits its appends in; given a scope, only the events of the tenant of the work, as an export runs once in each tenant. A value whose key an erasure destroyed answers nothing. `PersonalDataCipher` gains `valuesOf(subject, data)`, the values of one subject opened by their path and those that do not decipher. With `--event-sourcing on`, `runExport` hands it to `exportDataSubject` beside the exports of the contexts, as `platform.event-store`, audited like them when the trail is on, in the three families of dependency injection.
|
|
224
|
+
|
|
225
|
+
To move: `init --force` rewrites `src/platform/privacy/run-export.ts`; a project that keeps its file adds `new EventStorePersonalDataExport({ name: 'platform.event-store', events, keys: subjectKeys, scope })` to its exports.
|
|
226
|
+
|
|
227
|
+
**The hook of this repository on the two registries of asymmetries asks before any shell command that names one, unless every command of its pipeline only reads.** It asked for a short list of ways to write (`sed -i`, a redirection, `mv`); `sed -E -i`, `sed --in-place`, `rm`, `awk -i inplace`, `dd of=`, a `sed` that writes with a `w` flag, `git diff --output=` and a write later in a pipeline went through. The readers (`cat`, `grep`, `git diff`, `git log`, `node --check`, `biome check`, `sed` without a writing flag...) are the list that is spelled out; quoted text is no operator.
|
|
228
|
+
|
|
229
|
+
**The two hooks of the regulated profile wait for an input that arrives late, and `change-reference` watches every `Dockerfile`, `docker-compose*.yml` and `docker/` folder of the checkout and its worktrees.** `production-gate.mjs` no longer lets a command through when its input cannot be read: it refuses it with exit 2 and says so, and `change-reference.mjs` asks. `change-reference.mjs` also answers `MultiEdit`, reads a path from the checkout that holds the file (a worktree of the project, a session started in a subdirectory), and `story-check` reads the same places.
|
|
230
|
+
|
|
231
|
+
To move: the hooks are the team's files once `init` wrote them. Copy the reader and the `GATED` list of `packages/cli/templates/init/hooks/` into yours, and register `change-reference.mjs` on `Edit|Write|MultiEdit` in `.claude/settings.json`.
|
|
232
|
+
|
|
233
|
+
An input that is JSON but no object (`null`, a string, a number) is treated like an unreadable one, and the refusal says which error it was.
|
|
234
|
+
|
|
235
|
+
**`init` denies the `Read` of `.env.staging`, `.env.stage`, `.env.prod`, `.env.preview`, `.env.ci` and `.envrc`, and keeps `.envrc` out of git and out of the image.** They join the five environment files already denied; the example file stays readable. `init` adds the rules to the settings of a project that already has some, and `doctor` reports a missing one.
|
|
236
|
+
|
|
7
237
|
## 0.102.0
|
|
8
238
|
|
|
9
239
|
**A subscription removed while its consumer was starting no longer leaves a consumer without handler, on RabbitMQ and on NATS.** The consumer stayed registered with nothing to handle a message: each one came back at once, in a loop with no delay, until a handler took it or the bus closed. The consumer now leaves as soon as it is registered, and the messages wait in the queue or the stream for the next handler.
|
package/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:68d7243caa5c60a6 -->
|
|
3
3
|
|
|
4
4
|
# ddd-ts-kit
|
|
5
5
|
|
|
@@ -110,7 +110,7 @@ les notes. La première fois, les notes nomment aussi chaque dépendance que la
|
|
|
110
110
|
point d'être écrite contredit, et l'option qui la garde (`package.json depends on fastify, and the
|
|
111
111
|
project is written for --http express: pass --http fastify to keep it.`), en *dry run* compris :
|
|
112
112
|
lancez d'abord `init --dry-run` sur un projet existant. Relancé plus tard, `init` garde la
|
|
113
|
-
*stack* enregistrée dans la configuration
|
|
113
|
+
*stack* enregistrée dans la configuration : une valeur de drapeau qu'aucun choix n'accepte est refusée, et un drapeau qui diffère de l'enregistré est gardé tel quel, avec une note qui nomme `init --force`. `drizzle-generate`, `prisma-generate` et `typeorm-generate` refusent un projet d'un autre ORM et nomment son `db:generate`.
|
|
114
114
|
|
|
115
115
|
Chaque fichier qu'écrivent `init` et `generate` reste dans le projet : un chemin qui en sort par
|
|
116
116
|
un lien symbolique, à sa place ou au-dessus (un `docs/adr` ou un `.claude/settings.json` liés à un
|
|
@@ -122,9 +122,8 @@ le répertoire du projet.
|
|
|
122
122
|
Chaque fichier est écrit en entier ou pas du tout : dans `<name>.<random>.tmp` à côté de lui, puis
|
|
123
123
|
renommé à sa place. Une commande arrêtée à mi-chemin ne laisse que des fichiers complets (un
|
|
124
124
|
processus tué à ce moment peut laisser son fichier `.tmp`, qu'on peut supprimer), et la même
|
|
125
|
-
commande relancée écrit ceux qui manquent. `init` sur un projet déjà initialisé,
|
|
126
|
-
`generate`
|
|
127
|
-
--json`), tiennent le verrou du projet, `.ddd-ts-kit/lock`, que git ignore : une deuxième commande
|
|
125
|
+
commande relancée écrit ceux qui manquent. `init` sur un projet déjà initialisé, chaque
|
|
126
|
+
`generate` qui n'est pas un essai à blanc et `drizzle-generate` tiennent le verrou du projet, `.ddd-ts-kit/lock`, que git ignore : une deuxième commande
|
|
128
127
|
attend jusqu'à cinq secondes, puis sort avec le code 2 en nommant la commande qui le tient et le
|
|
129
128
|
correctif, lancer les générateurs l'un après l'autre :
|
|
130
129
|
``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
|
|
@@ -612,7 +611,7 @@ export class IssueInvoiceHandler implements CommandHandler<IssueInvoiceCommand>
|
|
|
612
611
|
|
|
613
612
|
`--events in-memory` avec un ORM est refusé sauf si `--allow-no-outbox "<reason>"` est donné :
|
|
614
613
|
il enregistre une entrée `deviations` (`stack.events`) et écrit l'enregistrement de décision vers
|
|
615
|
-
lequel elle pointe. La persistance générée des quatre ORM est écrite pour PostgreSQL ; `custom`
|
|
614
|
+
lequel elle pointe ; `--allow-no-outbox` est refusé quand la *stack* garde l'*outbox* ou n'a pas d'ORM. La persistance générée des quatre ORM est écrite pour PostgreSQL ; `custom`
|
|
616
615
|
démarre sur des adaptateurs en mémoire tenus aux suites de contrat, à vous de les remplacer. Les
|
|
617
616
|
choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `logger` compris.
|
|
618
617
|
|
|
@@ -642,7 +641,7 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
|
|
|
642
641
|
| `--storage local\|s3` | enregistré comme `stack.storage` : où vit le contenu des fichiers, jamais dans la base de données. `src/platform/config/read-files.ts` et `src/platform/files/open-files.ts`, un par choix : `local`, un répertoire en développement (`FILES_DIRECTORY`, `.data/files`) et les liens signés servis par l'application sous `/files` (`FILES_PUBLIC_URL` et `FILES_SIGNING_SECRET` requises en production) ; `s3`, un bucket de n'importe quel fournisseur du protocole S3 au moyen de `@ddd-ts-kit/s3` (les variables `S3_*`, MinIO dans la stack compose) ; la mémoire du processus dans les tests et les outils, dans les deux cas. Avec `--di tsyringe` : `files/bind-files.ts`, `files/files.module.ts` et `files/staging-uploads.ts` ; en câblage manuel, `files/create-files.ts` ; avec une *stack* HTTP, `files/file-routes.ts`. Ils lient `FileStorage`, `FileKeys`, `FileScanner` et `FileStaging`, enregistrent la purge horaire des fichiers en attente et mettent en attente le fichier que porte une commande avant sa transaction ; `generate file-upload` en a besoin. `--storage none` n'écrit rien de tout cela ([Stockage de fichiers](../../docs/concepts/file-storage.fr.md)) |
|
|
643
642
|
| `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, et pour `--broker` `create-event-provider.ts` : `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, avec `aggregate-key-of.ts` pour l'ordre par agrégat), `NatsEventBus` (`NATS_URL`) ou `RedisStreamsEventBus` de `@ddd-ts-kit/redis/event-bus` (`REDIS_URL` : Redis, Dragonfly ou Valkey), chacun avec un abonné par contexte consommateur (`forConsumer`), `assertTopology` au démarrage, son adresse validée et un service compose avec un contrôle de santé ; ou `custom-event-bus.ts` avec sa *spec* `eventBusContract`. `start-outbox-relay.ts` avec l'outbox. `--broker redis` avec `--cache redis` fait un seul serveur et un seul service compose, `cache` ; seul, le service s'appelle `streams` |
|
|
644
643
|
| `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts` (`MESSAGING_SCHEMA`, le schéma de ce que le kit stocke pour l'application), `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL ; avec Vitest chaque *spec* ouvre une copie du cluster que `test/support/test-database-template.ts`, la mise en place globale de l'exécution, initialise une fois, et y crée ses tables ; avec drizzle depuis `table-statements.ts`, le SQL des tables de `schema.ts`, puisque drizzle-kit écrit des migrations, pas des tables, ses index uniques compris), `persistence.contract.spec.ts` (les stores de l'outbox, des événements traités, des *jobs* et des processus tels que la plateforme les branche, tenus aux contrats de `@ddd-ts-kit/testing` avec ce que la pile active : le *tenant* sous `--tenancy`, l'unité de travail). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
|
|
645
|
-
| outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations
|
|
644
|
+
| outillage des migrations | `drizzle.config.ts`, `knexfile.js` et le dossier `migrations/`, `prisma/schema/schema.prisma` (le client, la datasource et les tables de la plateforme ; `generate repository` ajoute le fichier de chaque contexte, `prisma/schema/<context>.prisma`) et `prisma.config.ts`, ou `data-source.ts`. Un projet qui garde le seul `prisma/schema.prisma` des versions antérieures à 0.95 le garde avec son `prisma.config.ts` et son `db:client`, même sous `--force` : `init` n'écrit rien sous `prisma/schema/`, ses notes donnent les étapes du déplacement en nommant les contextes du projet, et `generate repository` refuse jusqu'au déplacement |
|
|
646
645
|
| `scripts/openapi.ts`, `scripts/events.ts` | écrivent `openapi/openapi.yaml` (un fichier par document de `openapi.documents`), `docs/integration/asyncapi.yaml` et `docs/integration/event-catalog.md`, en JSON sous `openapi.format: json` ; `--check` échoue sur une différence |
|
|
647
646
|
| `scripts/privacy-erase.ts`, `scripts/privacy-export.ts` | avec `--privacy on`, les deux demandes d'une personne concernée, traitées en ligne de commande sur les sources avec les variables de `.env` (`npm run privacy:erase -- <subject-id> [--operator <qui-demande>] [--rerun]`, `npm run privacy:export -- <subject-id> > export.json`) : l'effacement détruit d'abord la clé de la personne quand le projet a un event store (`--event-sourcing on` : ses événements stockés se lisent effacés ; audité avec `--audit on`), puis efface chaque copie listée dans `src/platform/privacy/data-subject-copies.ts`, chacune laissant son entrée avec `--audit on`, et ce que l'outbox et le stockage des *jobs* gardent de la personne ; un id qui n'a rien atteint est refusé, code de sortie 1, et annoncé à personne, sauf si `--rerun` dit que cette personne a déjà été effacée ; `privacy:purge` lance à la main ce que le *job* `privacy.purge-expired` lance chaque nuit à 03:00 UTC, la purge de ce qui a dépassé sa durée de conservation (`JOB_PRIVACY_PURGE_EXPIRED_ENABLED=false` coupe le *job*) ; l'export rassemble chaque enregistrement listé dans `data-subject-exports.ts` en un document JSON daté (`format`, `subject`, `exportedAt`, `records`), l'export de chaque contexte audité avec `--audit on`, jamais les valeurs (chaque exécution laisse son entrée, un essai compris : essayez-le sur une personne de test). Avec `--tenancy shared-table`, `TENANTS` nomme les tenants, séparés par des virgules : une écriture de données de tenant n'est jamais élargie. Ni l'un ni l'autre n'atteint les sauvegardes, les journaux, une copie qu'aucun contexte n'a déclarée, un message déjà livré ou un *job* qui ne nomme aucun `subject` |
|
|
648
647
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | la base de données avec un contrôle de santé et un volume nommé, `jaegertracing/jaeger:2.22.0` derrière le profil `observability`, chaque port publié sur 127.0.0.1 seulement (une adresse plus large s'écrit dans l'entrée à dessein, le README du projet dit comment), les ports depuis `.env` ; une image multi-étapes, sans root, avec les seules dépendances de production |
|
|
@@ -719,8 +718,8 @@ toute la base : typecheck, lint, `format:check`, `test:coverage`, tests de bout
|
|
|
719
718
|
|
|
720
719
|
`db:generate` prend ce que fait la migration, en lettres, chiffres, tirets et tirets bas,
|
|
721
720
|
commençant par une lettre ou un chiffre (`npm run db:generate add-invoices`, sous TypeORM
|
|
722
|
-
`migrations/add-invoices`) : `drizzle-generate`, `
|
|
723
|
-
tout autre nom avant que l'ORM ne le lise, puisqu'une valeur qui commence par un tiret serait l'une
|
|
721
|
+
`migrations/add-invoices`) : `drizzle-generate`, `knex-generate`, `prisma-generate` et
|
|
722
|
+
`typeorm-generate` refusent tout autre nom avant que l'ORM ne le lise, puisqu'une valeur qui commence par un tiret serait l'une
|
|
724
723
|
de ses options ; `typeorm-generate` refuse aussi un dossier hors du projet.
|
|
725
724
|
|
|
726
725
|
`package.json` porte deux compilateurs : `typescript ~6.0.3`, que les outils chargent comme une
|
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ dependencies are added, yours are kept and mentioned in the notes. The first tim
|
|
|
102
102
|
name each dependency the stack about to be written contradicts, and the flag that keeps it
|
|
103
103
|
(`package.json depends on fastify, and the project is written for --http express: pass --http
|
|
104
104
|
fastify to keep it.`), a dry run included: run `init --dry-run` first on an existing project.
|
|
105
|
-
Run again later, `init` keeps the stack recorded in the config
|
|
105
|
+
Run again later, `init` keeps the stack recorded in the config: a flag value no choice accepts is refused, and a flag that differs from the record is kept as recorded, with a note naming `init --force`. `drizzle-generate`, `prisma-generate` and `typeorm-generate` refuse a project of another ORM and name its `db:generate`.
|
|
106
106
|
|
|
107
107
|
Every file `init` and `generate` write stays inside the project: a path that leads out of it
|
|
108
108
|
through a symbolic link, in its place or above it (a `docs/adr` or a `.claude/settings.json`
|
|
@@ -114,9 +114,8 @@ project.
|
|
|
114
114
|
Each file is written whole or not at all: to `<name>.<random>.tmp` beside it, then renamed into
|
|
115
115
|
place. A command stopped half way leaves complete files only (a process killed there may leave
|
|
116
116
|
its `.tmp` file, which can be removed), and the same command run again writes the ones missing.
|
|
117
|
-
`init` on a project already initialised,
|
|
118
|
-
|
|
119
|
-
which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
|
|
117
|
+
`init` on a project already initialised, each `generate` that is not a dry run and `drizzle-generate`
|
|
118
|
+
hold the lock of the project, `.ddd-ts-kit/lock`, which git ignores: a second one waits up to five seconds, then exits 2 naming the command that
|
|
120
119
|
holds it and the fix, run the generators one after the other:
|
|
121
120
|
``Another generator holds the lock of this project: `ddd-ts-kit generate context billing` (pid 1234, started 12 seconds ago).``
|
|
122
121
|
A lock taken on this machine is kept while its command runs and taken over once it has ended; one
|
|
@@ -582,7 +581,7 @@ export class IssueInvoiceHandler implements CommandHandler<IssueInvoiceCommand>
|
|
|
582
581
|
```
|
|
583
582
|
|
|
584
583
|
`--events in-memory` together with an ORM is refused unless `--allow-no-outbox "<reason>"` is given:
|
|
585
|
-
it records a `deviations` entry (`stack.events`) and writes the decision record it points to. The generated
|
|
584
|
+
it records a `deviations` entry (`stack.events`) and writes the decision record it points to; `--allow-no-outbox` is refused when the stack keeps the outbox or has no ORM. The generated
|
|
586
585
|
persistence of the four ORMs is written for PostgreSQL; `custom` starts on in-memory adapters
|
|
587
586
|
held to the contract suites, for you to replace. The choices are recorded under `stack` in the
|
|
588
587
|
config, `docsUi`, `ci` and `logger` included.
|
|
@@ -613,7 +612,7 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
613
612
|
| `--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)) |
|
|
614
613
|
| `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` |
|
|
615
614
|
| `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` |
|
|
616
|
-
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations
|
|
615
|
+
| migration tooling | `drizzle.config.ts`, `knexfile.js` and the folder `migrations/`, `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 |
|
|
617
616
|
| `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 |
|
|
618
617
|
| `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>] [--rerun]`, `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`, each leaving its entry with `--audit on`, and what the outbox and the job store keep of the person; an id that reached nothing is refused, exit code 1, and announced to nobody, unless `--rerun` says this person was erased before; `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, a copy no context declared, a message already delivered or a job that names no `subject` |
|
|
619
618
|
| `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, every port published on 127.0.0.1 only (a wider address is written in the entry on purpose, the README of the project says how), ports from `.env`; a multi-stage, non-root image with production dependencies only |
|
|
@@ -687,8 +686,8 @@ pipelines call, `test:coverage` (every spec once, each context and layer held to
|
|
|
687
686
|
|
|
688
687
|
`db:generate` takes what the migration does, in letters, digits, dashes and underscores, starting
|
|
689
688
|
with a letter or a digit (`npm run db:generate add-invoices`, on TypeORM
|
|
690
|
-
`migrations/add-invoices`): `drizzle-generate`, `
|
|
691
|
-
any other name before the ORM reads it, since a value that starts with a dash would be one of its
|
|
689
|
+
`migrations/add-invoices`): `drizzle-generate`, `knex-generate`, `prisma-generate` and
|
|
690
|
+
`typeorm-generate` refuse any other name before the ORM reads it, since a value that starts with a dash would be one of its
|
|
692
691
|
options; `typeorm-generate` also refuses a folder outside the project.
|
|
693
692
|
|
|
694
693
|
`package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-locked-files.d.ts","sourceRoot":"","sources":["../../src/acceptance/check-locked-files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-locked-files.d.ts","sourceRoot":"","sources":["../../src/acceptance/check-locked-files.ts"],"names":[],"mappings":"AAOA,qEAAqE;AACrE,UAAU,OAAO;IACf,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,uHAAuH;AACvH,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;AAEzF,+GAA+G;AAC/G,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAED,mHAAmH;AACnH,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAKD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,GAAE,KAAU,GAAG,gBAAgB,CAY5G"}
|
|
@@ -3,6 +3,7 @@ import fs from 'node:fs';
|
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { isRecord } from '../check/support/is-record.js';
|
|
5
5
|
import { findProjectFormatter } from '../migration/find-project-formatter.js';
|
|
6
|
+
import { inProjectDialect } from '../package-manager/in-project-dialect.js';
|
|
6
7
|
/** Enough of a failing tool to read the cause. */
|
|
7
8
|
const TAIL_LINES = 40;
|
|
8
9
|
/**
|
|
@@ -31,7 +32,9 @@ function formatCheck(root, files, run) {
|
|
|
31
32
|
const result = run(process.execPath, [formatter.bin, ...args, ...files], root);
|
|
32
33
|
return result.status === 0
|
|
33
34
|
? {}
|
|
34
|
-
: {
|
|
35
|
+
: {
|
|
36
|
+
finding: inProjectDialect(`${formatter.name} wants these files formatted (\`npm run format\`):\n${tail(result.output)}`, root),
|
|
37
|
+
};
|
|
35
38
|
}
|
|
36
39
|
function lintCheck({ root, files, run, cli }) {
|
|
37
40
|
const script = scriptOf(root, 'lint');
|
|
@@ -45,12 +48,12 @@ function lintCheck({ root, files, run, cli }) {
|
|
|
45
48
|
const result = run(process.execPath, [...program, ...files], root);
|
|
46
49
|
return result.status === 0
|
|
47
50
|
? {}
|
|
48
|
-
: { finding: `The linter reports these files (\`npm run lint\`):\n${tail(result.output)}
|
|
51
|
+
: { finding: inProjectDialect(`The linter reports these files (\`npm run lint\`):\n${tail(result.output)}`, root) };
|
|
49
52
|
}
|
|
50
53
|
/** The node arguments that lint the given files as the `lint` script does, or why they cannot be found. */
|
|
51
54
|
function lintProgram(root, script, cli) {
|
|
52
55
|
if (!resolves(root, 'eslint')) {
|
|
53
|
-
return 'ESLint is not installed (run `npm install`)';
|
|
56
|
+
return inProjectDialect('ESLint is not installed (run `npm install`)', root);
|
|
54
57
|
}
|
|
55
58
|
if (/\bddd-ts-kit\s+lint\b/.test(script)) {
|
|
56
59
|
return cli === undefined ? 'the ddd-ts-kit command line is not known' : [cli, 'lint', '--no-cache'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-locked-files.js","sourceRoot":"","sources":["../../src/acceptance/check-locked-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MA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K,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,WAAW,CAAC,OAAe,EAAE,IAAuB,EAAE,GAAW;IACxE,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;IAElG,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,KAAK,EAAE,OAAO,IAAI,EAAE,EAAE,EAAE,CAAC;AACtG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewrite-aliases.d.ts","sourceRoot":"","sources":["../../src/build/rewrite-aliases.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"rewrite-aliases.d.ts","sourceRoot":"","sources":["../../src/build/rewrite-aliases.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,cAAc,GAAG,aAAa,CAqC9F"}
|
|
@@ -14,6 +14,9 @@ const SHOWN = 20;
|
|
|
14
14
|
* `.js` extension whether or not the sources write one, so that plain `node` runs the output. Nothing is written when one specifier cannot be rewritten.
|
|
15
15
|
*/
|
|
16
16
|
export function rewriteAliases({ root, roots, suffix, project }) {
|
|
17
|
+
if (!fs.existsSync(path.join(root, project))) {
|
|
18
|
+
throw new CliError(`${project} does not exist.`, 'Name the tsconfig of the build with --project <file>.');
|
|
19
|
+
}
|
|
17
20
|
const layout = buildLayoutOf({ root }, project);
|
|
18
21
|
if (layout === undefined || !isDirectory(path.join(root, layout.outDir))) {
|
|
19
22
|
throw noOutput(project);
|
|
@@ -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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S,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-baseline.d.ts","sourceRoot":"","sources":["../../../src/check/baseline/write-baseline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"write-baseline.d.ts","sourceRoot":"","sources":["../../../src/check/baseline/write-baseline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,4DAA4D;AAC5D,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAEpE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import path from 'node:path';
|
|
1
|
+
import { writeInsideProject } from '../../workspace/write-inside-project.js';
|
|
3
2
|
import { baselineText } from './baseline-text.js';
|
|
4
3
|
import { BASELINE_FILE } from './read-baseline.js';
|
|
5
4
|
/** Writes the baseline of the project beside its config. */
|
|
6
5
|
export function writeBaseline(root, baseline) {
|
|
7
|
-
|
|
6
|
+
writeInsideProject(root, BASELINE_FILE, baselineText(baseline));
|
|
8
7
|
}
|
|
9
8
|
//# sourceMappingURL=write-baseline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-baseline.js","sourceRoot":"","sources":["../../../src/check/baseline/write-baseline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"write-baseline.js","sourceRoot":"","sources":["../../../src/check/baseline/write-baseline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,4DAA4D;AAC5D,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,QAAkB;IAC5D,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"kit-error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAuB5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"kit-error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;CACnB,CAAC"}
|