ddd-ts-kit 0.114.1 → 0.115.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 +360 -0
- package/README.fr.md +40 -29
- package/README.md +38 -27
- package/dist/build/specifier-literals.d.ts.map +1 -1
- package/dist/build/specifier-literals.js +6 -6
- package/dist/build/specifier-literals.js.map +1 -1
- package/dist/check/catalogue/default-severity.d.ts +3 -0
- package/dist/check/catalogue/default-severity.d.ts.map +1 -0
- package/dist/check/catalogue/default-severity.js +8 -0
- package/dist/check/catalogue/default-severity.js.map +1 -0
- package/dist/check/catalogue/delegated-rules.d.ts +2 -0
- package/dist/check/catalogue/delegated-rules.d.ts.map +1 -1
- package/dist/check/catalogue/delegated-rules.js.map +1 -1
- package/dist/check/catalogue/eslint-judged-rules.d.ts +7 -0
- package/dist/check/catalogue/eslint-judged-rules.d.ts.map +1 -0
- package/dist/check/catalogue/eslint-judged-rules.js +64 -0
- package/dist/check/catalogue/eslint-judged-rules.js.map +1 -0
- package/dist/check/catalogue/eslint-only-rules.d.ts +8 -4
- package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +23 -1
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/catalogue/formatter-rule.d.ts +1 -0
- package/dist/check/catalogue/formatter-rule.d.ts.map +1 -1
- package/dist/check/catalogue/formatter-rule.js +1 -0
- package/dist/check/catalogue/formatter-rule.js.map +1 -1
- package/dist/check/catalogue/rule-ids.d.ts.map +1 -1
- package/dist/check/catalogue/rule-ids.js +2 -2
- package/dist/check/catalogue/rule-ids.js.map +1 -1
- package/dist/check/catalogue/rules.d.ts +1 -0
- package/dist/check/catalogue/rules.d.ts.map +1 -1
- package/dist/check/catalogue/rules.js +9 -1
- package/dist/check/catalogue/rules.js.map +1 -1
- package/dist/check/catalogue/severity-of.d.ts +7 -0
- package/dist/check/catalogue/severity-of.d.ts.map +1 -0
- package/dist/check/catalogue/severity-of.js +7 -0
- package/dist/check/catalogue/severity-of.js.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts +3 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.js +4 -0
- package/dist/check/catalogue/standalone-rule-ids.js.map +1 -0
- package/dist/check/commands/baseline-command.d.ts +6 -0
- package/dist/check/commands/baseline-command.d.ts.map +1 -0
- package/dist/check/commands/baseline-command.js +43 -0
- package/dist/check/commands/baseline-command.js.map +1 -0
- package/dist/check/commands/changed-since.d.ts +6 -0
- package/dist/check/commands/changed-since.d.ts.map +1 -0
- package/dist/check/commands/changed-since.js +14 -0
- package/dist/check/commands/changed-since.js.map +1 -0
- package/dist/check/commands/check-command.d.ts +2 -2
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +24 -91
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.d.ts +1 -2
- package/dist/check/commands/check-file-command.d.ts.map +1 -1
- package/dist/check/commands/check-file-command.js +29 -26
- package/dist/check/commands/check-file-command.js.map +1 -1
- package/dist/check/commands/check-formats.d.ts +4 -0
- package/dist/check/commands/check-formats.d.ts.map +1 -0
- package/dist/check/commands/check-formats.js +3 -0
- package/dist/check/commands/check-formats.js.map +1 -0
- package/dist/check/commands/clean-only-command.d.ts +6 -0
- package/dist/check/commands/clean-only-command.d.ts.map +1 -0
- package/dist/check/commands/clean-only-command.js +51 -0
- package/dist/check/commands/clean-only-command.js.map +1 -0
- package/dist/check/commands/explain-command.d.ts +1 -2
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +26 -18
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/commands/print-check.d.ts +12 -0
- package/dist/check/commands/print-check.d.ts.map +1 -0
- package/dist/check/commands/print-check.js +8 -0
- package/dist/check/commands/print-check.js.map +1 -0
- package/dist/check/commands/refuse-missing-paths.d.ts +4 -0
- package/dist/check/commands/refuse-missing-paths.d.ts.map +1 -0
- package/dist/check/commands/refuse-missing-paths.js +11 -0
- package/dist/check/commands/refuse-missing-paths.js.map +1 -0
- package/dist/check/commands/rules-command.d.ts +1 -2
- package/dist/check/commands/rules-command.d.ts.map +1 -1
- package/dist/check/commands/rules-command.js +17 -20
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/commands/self-check.d.ts +1 -3
- package/dist/check/commands/self-check.d.ts.map +1 -1
- package/dist/check/commands/self-check.js +25 -19
- package/dist/check/commands/self-check.js.map +1 -1
- package/dist/check/domain-events/event-handlers-of.d.ts +2 -2
- package/dist/check/domain-events/event-handlers-of.d.ts.map +1 -1
- package/dist/check/domain-events/event-handlers-of.js +1 -2
- package/dist/check/domain-events/event-handlers-of.js.map +1 -1
- package/dist/check/engine/run-check.d.ts.map +1 -1
- package/dist/check/engine/run-check.js +17 -11
- package/dist/check/engine/run-check.js.map +1 -1
- package/dist/check/errors/builds-through-factories.d.ts +2 -2
- package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
- package/dist/check/errors/builds-through-factories.js.map +1 -1
- package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
- package/dist/check/errors/kit-error-codes.js +2 -0
- package/dist/check/errors/kit-error-codes.js.map +1 -1
- package/dist/check/explain/documented-rule.d.ts +1 -1
- package/dist/check/explain/documented-rule.d.ts.map +1 -1
- package/dist/check/explain/documented-rule.js +4 -7
- package/dist/check/explain/documented-rule.js.map +1 -1
- package/dist/check/fixtures/alias-declarations.js +2 -2
- package/dist/check/fixtures/alias-declarations.js.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +29 -0
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.js +4 -0
- package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/domain-events-fixtures.js +5 -5
- package/dist/check/fixtures/domain-events-fixtures.js.map +1 -1
- package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/purity-fixtures.js +25 -0
- package/dist/check/fixtures/purity-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.js +5 -0
- package/dist/check/fixtures/tenancy-prisma-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js +1 -0
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
- package/dist/check/governance/records-of.d.ts +4 -0
- package/dist/check/governance/records-of.d.ts.map +1 -0
- package/dist/check/governance/records-of.js +5 -0
- package/dist/check/governance/records-of.js.map +1 -0
- package/dist/check/language/glossaries-of.d.ts +4 -0
- package/dist/check/language/glossaries-of.d.ts.map +1 -0
- package/dist/check/language/glossaries-of.js +5 -0
- package/dist/check/language/glossaries-of.js.map +1 -0
- package/dist/check/language/glossaries.d.ts +0 -3
- package/dist/check/language/glossaries.d.ts.map +1 -1
- package/dist/check/language/glossaries.js +0 -9
- package/dist/check/language/glossaries.js.map +1 -1
- package/dist/check/migrations/drizzle-migration-folder.d.ts +4 -0
- package/dist/check/migrations/drizzle-migration-folder.d.ts.map +1 -0
- package/dist/check/migrations/drizzle-migration-folder.js +7 -0
- package/dist/check/migrations/drizzle-migration-folder.js.map +1 -0
- package/dist/check/migrations/migrations-in.d.ts +6 -0
- package/dist/check/migrations/migrations-in.d.ts.map +1 -0
- package/dist/check/migrations/migrations-in.js +28 -0
- package/dist/check/migrations/migrations-in.js.map +1 -0
- package/dist/check/migrations/read-migration-folder.d.ts.map +1 -1
- package/dist/check/migrations/read-migration-folder.js +2 -34
- package/dist/check/migrations/read-migration-folder.js.map +1 -1
- package/dist/check/model/finding.d.ts +7 -0
- package/dist/check/model/finding.d.ts.map +1 -1
- package/dist/check/model/project.d.ts +17 -6
- package/dist/check/model/project.d.ts.map +1 -1
- package/dist/check/model/resolved-import.d.ts +3 -7
- package/dist/check/model/resolved-import.d.ts.map +1 -1
- package/dist/check/model/rule.d.ts +36 -7
- package/dist/check/model/rule.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.d.ts +2 -2
- package/dist/check/ports/class-declaring.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.js +1 -2
- package/dist/check/ports/class-declaring.js.map +1 -1
- package/dist/check/privacy/judged-only-when-on.d.ts +3 -0
- package/dist/check/privacy/judged-only-when-on.d.ts.map +1 -0
- package/dist/check/privacy/judged-only-when-on.js +3 -0
- package/dist/check/privacy/judged-only-when-on.js.map +1 -0
- package/dist/check/project/assemble-project.d.ts +7 -2
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +10 -8
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/project/load-source-file.d.ts.map +1 -1
- package/dist/check/project/load-source-file.js +1 -7
- package/dist/check/project/load-source-file.js.map +1 -1
- package/dist/check/project/source-reader.d.ts +7 -0
- package/dist/check/project/source-reader.d.ts.map +1 -0
- package/dist/check/project/source-reader.js +29 -0
- package/dist/check/project/source-reader.js.map +1 -0
- package/dist/check/purity/ambient-mentions.d.ts +8 -0
- package/dist/check/purity/ambient-mentions.d.ts.map +1 -0
- package/dist/check/purity/ambient-mentions.js +81 -0
- package/dist/check/purity/ambient-mentions.js.map +1 -0
- package/dist/check/purity/define-purity-rule.d.ts +9 -4
- package/dist/check/purity/define-purity-rule.d.ts.map +1 -1
- package/dist/check/purity/define-purity-rule.js +23 -16
- package/dist/check/purity/define-purity-rule.js.map +1 -1
- package/dist/check/purity/forbidden-named-imports.d.ts +6 -0
- package/dist/check/purity/forbidden-named-imports.d.ts.map +1 -0
- package/dist/check/purity/forbidden-named-imports.js +17 -0
- package/dist/check/purity/forbidden-named-imports.js.map +1 -0
- package/dist/check/purity/forbidden-use.d.ts +6 -0
- package/dist/check/purity/forbidden-use.d.ts.map +1 -0
- package/dist/check/purity/forbidden-use.js +2 -0
- package/dist/check/purity/forbidden-use.js.map +1 -0
- package/dist/check/purity/forbidden-uses.d.ts +6 -0
- package/dist/check/purity/forbidden-uses.d.ts.map +1 -0
- package/dist/check/purity/forbidden-uses.js +57 -0
- package/dist/check/purity/forbidden-uses.js.map +1 -0
- package/dist/check/purity/is-member-declaration.d.ts +8 -0
- package/dist/check/purity/is-member-declaration.d.ts.map +1 -0
- package/dist/check/purity/is-member-declaration.js +32 -0
- package/dist/check/purity/is-member-declaration.js.map +1 -0
- package/dist/check/purity/keys-taken-from.d.ts +9 -0
- package/dist/check/purity/keys-taken-from.d.ts.map +1 -0
- package/dist/check/purity/keys-taken-from.js +26 -0
- package/dist/check/purity/keys-taken-from.js.map +1 -0
- package/dist/check/purity/local-scopes.d.ts +9 -0
- package/dist/check/purity/local-scopes.d.ts.map +1 -0
- package/dist/check/purity/local-scopes.js +66 -0
- package/dist/check/purity/local-scopes.js.map +1 -0
- package/dist/check/purity/member-after.d.ts +4 -0
- package/dist/check/purity/member-after.d.ts.map +1 -0
- package/dist/check/purity/member-after.js +14 -0
- package/dist/check/purity/member-after.js.map +1 -0
- package/dist/check/purity/mention.d.ts +7 -0
- package/dist/check/purity/mention.d.ts.map +1 -0
- package/dist/check/purity/mention.js +2 -0
- package/dist/check/purity/mention.js.map +1 -0
- package/dist/check/purity/reference/forbidden-call.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-call.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-call.js +5 -0
- package/dist/check/purity/reference/forbidden-call.js.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.js +8 -0
- package/dist/check/purity/reference/forbidden-construction.js.map +1 -0
- package/dist/check/purity/reference/forbidden-member.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-member.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-member.js +9 -0
- package/dist/check/purity/reference/forbidden-member.js.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.js +7 -0
- package/dist/check/purity/reference/forbidden-named-import.js.map +1 -0
- package/dist/check/purity/reference/global-objects.d.ts +3 -0
- package/dist/check/purity/reference/global-objects.d.ts.map +1 -0
- package/dist/check/purity/reference/global-objects.js +3 -0
- package/dist/check/purity/reference/global-objects.js.map +1 -0
- package/dist/check/purity/reference/purity-table.d.ts +21 -0
- package/dist/check/purity/reference/purity-table.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-table.js +2 -0
- package/dist/check/purity/reference/purity-table.js.map +1 -0
- package/dist/check/purity/reference/purity-tables.d.ts +48 -0
- package/dist/check/purity/reference/purity-tables.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-tables.js +68 -0
- package/dist/check/purity/reference/purity-tables.js.map +1 -0
- package/dist/check/purity/taken-key.d.ts +6 -0
- package/dist/check/purity/taken-key.d.ts.map +1 -0
- package/dist/check/purity/taken-key.js +2 -0
- package/dist/check/purity/taken-key.js.map +1 -0
- package/dist/check/purity/text/body-after.d.ts +7 -0
- package/dist/check/purity/text/body-after.d.ts.map +1 -0
- package/dist/check/purity/text/body-after.js +49 -0
- package/dist/check/purity/text/body-after.js.map +1 -0
- package/dist/check/purity/text/holder-of.d.ts +4 -0
- package/dist/check/purity/text/holder-of.d.ts.map +1 -0
- package/dist/check/purity/text/holder-of.js +17 -0
- package/dist/check/purity/text/holder-of.js.map +1 -0
- package/dist/check/purity/text/significant-after.d.ts +3 -0
- package/dist/check/purity/text/significant-after.d.ts.map +1 -0
- package/dist/check/purity/text/significant-after.js +9 -0
- package/dist/check/purity/text/significant-after.js.map +1 -0
- package/dist/check/purity/text/significant-before.d.ts +3 -0
- package/dist/check/purity/text/significant-before.d.ts.map +1 -0
- package/dist/check/purity/text/significant-before.js +9 -0
- package/dist/check/purity/text/significant-before.js.map +1 -0
- package/dist/check/purity/text/span.d.ts +6 -0
- package/dist/check/purity/text/span.d.ts.map +1 -0
- package/dist/check/purity/text/span.js +2 -0
- package/dist/check/purity/text/span.js.map +1 -0
- package/dist/check/purity/text/word-before.d.ts +3 -0
- package/dist/check/purity/text/word-before.d.ts.map +1 -0
- package/dist/check/purity/text/word-before.js +6 -0
- package/dist/check/purity/text/word-before.js.map +1 -0
- package/dist/check/read-models/list-findings.d.ts.map +1 -1
- package/dist/check/read-models/list-findings.js +3 -4
- package/dist/check/read-models/list-findings.js.map +1 -1
- package/dist/check/rules/aspects-outside-in.d.ts +2 -2
- package/dist/check/rules/aspects-outside-in.d.ts.map +1 -1
- package/dist/check/rules/aspects-outside-in.js +21 -14
- package/dist/check/rules/aspects-outside-in.js.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +2 -2
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js +18 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -1
- package/dist/check/rules/authz-actor-explicit.d.ts +2 -2
- package/dist/check/rules/authz-actor-explicit.d.ts.map +1 -1
- package/dist/check/rules/authz-actor-explicit.js +16 -4
- package/dist/check/rules/authz-actor-explicit.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts +2 -2
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +17 -3
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.d.ts +2 -2
- package/dist/check/rules/authz-fields-by-schema.d.ts.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.js +14 -4
- package/dist/check/rules/authz-fields-by-schema.js.map +1 -1
- package/dist/check/rules/authz-granted.d.ts +2 -2
- package/dist/check/rules/authz-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-granted.js +17 -1
- package/dist/check/rules/authz-granted.js.map +1 -1
- package/dist/check/rules/authz-in-application.d.ts +2 -2
- package/dist/check/rules/authz-in-application.d.ts.map +1 -1
- package/dist/check/rules/authz-in-application.js +19 -3
- package/dist/check/rules/authz-in-application.js.map +1 -1
- package/dist/check/rules/authz-policy-asked.d.ts +2 -2
- package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
- package/dist/check/rules/authz-policy-asked.js +15 -1
- package/dist/check/rules/authz-policy-asked.js.map +1 -1
- package/dist/check/rules/authz-resource-modelled.d.ts +2 -2
- package/dist/check/rules/authz-resource-modelled.d.ts.map +1 -1
- package/dist/check/rules/authz-resource-modelled.js +19 -1
- package/dist/check/rules/authz-resource-modelled.js.map +1 -1
- package/dist/check/rules/authz-scope-narrows.d.ts +2 -2
- package/dist/check/rules/authz-scope-narrows.d.ts.map +1 -1
- package/dist/check/rules/authz-scope-narrows.js +15 -1
- package/dist/check/rules/authz-scope-narrows.js.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.d.ts +2 -2
- package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.js +13 -1
- package/dist/check/rules/authz-system-actor-granted.js.map +1 -1
- package/dist/check/rules/clean-blank-lines.d.ts +2 -2
- package/dist/check/rules/clean-blank-lines.d.ts.map +1 -1
- package/dist/check/rules/clean-blank-lines.js +18 -6
- package/dist/check/rules/clean-blank-lines.js.map +1 -1
- package/dist/check/rules/clean-braces.d.ts +2 -2
- package/dist/check/rules/clean-braces.d.ts.map +1 -1
- package/dist/check/rules/clean-braces.js +26 -8
- package/dist/check/rules/clean-braces.js.map +1 -1
- package/dist/check/rules/clean-file-size.d.ts +2 -2
- package/dist/check/rules/clean-file-size.d.ts.map +1 -1
- package/dist/check/rules/clean-file-size.js +10 -4
- package/dist/check/rules/clean-file-size.js.map +1 -1
- package/dist/check/rules/clean-function-size.d.ts +2 -2
- package/dist/check/rules/clean-function-size.d.ts.map +1 -1
- package/dist/check/rules/clean-function-size.js +19 -20
- package/dist/check/rules/clean-function-size.js.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.d.ts +2 -2
- package/dist/check/rules/clean-no-commented-out-code.d.ts.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.js +18 -14
- package/dist/check/rules/clean-no-commented-out-code.js.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.d.ts +2 -2
- package/dist/check/rules/clean-no-escape-hatch.d.ts.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.js +24 -17
- package/dist/check/rules/clean-no-escape-hatch.js.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.d.ts +2 -2
- package/dist/check/rules/clean-no-flag-argument.d.ts.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.js +10 -4
- package/dist/check/rules/clean-no-flag-argument.js.map +1 -1
- package/dist/check/rules/clean-no-hash-private.d.ts +2 -2
- package/dist/check/rules/clean-no-hash-private.d.ts.map +1 -1
- package/dist/check/rules/clean-no-hash-private.js +22 -4
- package/dist/check/rules/clean-no-hash-private.js.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.d.ts +2 -2
- package/dist/check/rules/clean-no-noise-comment.d.ts.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.js +12 -3
- package/dist/check/rules/clean-no-noise-comment.js.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.d.ts +2 -2
- package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.js +24 -11
- package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
- package/dist/check/rules/clean-stepdown.d.ts +2 -2
- package/dist/check/rules/clean-stepdown.d.ts.map +1 -1
- package/dist/check/rules/clean-stepdown.js +16 -10
- package/dist/check/rules/clean-stepdown.js.map +1 -1
- package/dist/check/rules/composition-only-in-module.d.ts +2 -2
- package/dist/check/rules/composition-only-in-module.d.ts.map +1 -1
- package/dist/check/rules/composition-only-in-module.js +18 -4
- package/dist/check/rules/composition-only-in-module.js.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.d.ts +2 -2
- package/dist/check/rules/config-rule-off-everywhere.d.ts.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.js +9 -1
- package/dist/check/rules/config-rule-off-everywhere.js.map +1 -1
- package/dist/check/rules/config-suppression-needs-reason.d.ts +4 -0
- package/dist/check/rules/config-suppression-needs-reason.d.ts.map +1 -0
- package/dist/check/rules/config-suppression-needs-reason.js +26 -0
- package/dist/check/rules/config-suppression-needs-reason.js.map +1 -0
- package/dist/check/rules/config-unused-suppression.d.ts +3 -0
- package/dist/check/rules/config-unused-suppression.d.ts.map +1 -0
- package/dist/check/rules/config-unused-suppression.js +48 -0
- package/dist/check/rules/config-unused-suppression.js.map +1 -0
- package/dist/check/rules/config-valid.d.ts +2 -2
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +11 -1
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/context-declared-relationship.d.ts +2 -2
- package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
- package/dist/check/rules/context-declared-relationship.js +20 -16
- package/dist/check/rules/context-declared-relationship.js.map +1 -1
- package/dist/check/rules/context-extractable.d.ts +2 -2
- package/dist/check/rules/context-extractable.d.ts.map +1 -1
- package/dist/check/rules/context-extractable.js +23 -12
- package/dist/check/rules/context-extractable.js.map +1 -1
- package/dist/check/rules/context-no-cycle.d.ts +2 -2
- package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/context-no-cycle.js +9 -1
- package/dist/check/rules/context-no-cycle.js.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.d.ts +2 -2
- package/dist/check/rules/context-published-language-is-a-contract.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.js +19 -14
- package/dist/check/rules/context-published-language-is-a-contract.js.map +1 -1
- package/dist/check/rules/context-published-language-only.d.ts +2 -2
- package/dist/check/rules/context-published-language-only.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-only.js +23 -18
- package/dist/check/rules/context-published-language-only.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts +2 -2
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +29 -3
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.d.ts +2 -2
- package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.js +28 -12
- package/dist/check/rules/declarations-constructor-injection.js.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.d.ts +2 -2
- package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.js +15 -1
- package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
- package/dist/check/rules/declarations-role-declared.d.ts +2 -2
- package/dist/check/rules/declarations-role-declared.d.ts.map +1 -1
- package/dist/check/rules/declarations-role-declared.js +20 -9
- package/dist/check/rules/declarations-role-declared.js.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts +2 -2
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.js +30 -17
- package/dist/check/rules/domain-events-dispatched-on-save.js.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts +2 -2
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.js +40 -2
- package/dist/check/rules/domain-events-transactional-before-commit.js.map +1 -1
- package/dist/check/rules/domain-value-object-class.d.ts +2 -2
- package/dist/check/rules/domain-value-object-class.d.ts.map +1 -1
- package/dist/check/rules/domain-value-object-class.js +37 -10
- package/dist/check/rules/domain-value-object-class.js.map +1 -1
- package/dist/check/rules/errors-code-listed.d.ts +2 -2
- package/dist/check/rules/errors-code-listed.d.ts.map +1 -1
- package/dist/check/rules/errors-code-listed.js +30 -1
- package/dist/check/rules/errors-code-listed.js.map +1 -1
- package/dist/check/rules/errors-code-unique.d.ts +2 -2
- package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
- package/dist/check/rules/errors-code-unique.js +15 -1
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.d.ts +2 -2
- package/dist/check/rules/errors-known-code.d.ts.map +1 -1
- package/dist/check/rules/errors-known-code.js +11 -1
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.d.ts +2 -2
- package/dist/check/rules/event-sourcing-past-tense.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.js +11 -6
- package/dist/check/rules/event-sourcing-past-tense.js.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts +2 -2
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.js +16 -3
- package/dist/check/rules/event-sourcing-projection-never-appends.js.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts +2 -2
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.js +19 -3
- package/dist/check/rules/event-sourcing-state-in-apply.js.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts +2 -2
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.js +22 -15
- package/dist/check/rules/event-sourcing-store-behind-repository.js.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts +2 -2
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.js +32 -6
- package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.d.ts +2 -2
- package/dist/check/rules/events-consumer-idempotent.d.ts.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.js +19 -2
- package/dist/check/rules/events-consumer-idempotent.js.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.d.ts +2 -2
- package/dist/check/rules/events-defined-in-published-language.d.ts.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.js +38 -12
- package/dist/check/rules/events-defined-in-published-language.js.map +1 -1
- package/dist/check/rules/events-name-declared-once.d.ts +2 -2
- package/dist/check/rules/events-name-declared-once.d.ts.map +1 -1
- package/dist/check/rules/events-name-declared-once.js +19 -14
- package/dist/check/rules/events-name-declared-once.js.map +1 -1
- package/dist/check/rules/events-name-format.d.ts +2 -2
- package/dist/check/rules/events-name-format.d.ts.map +1 -1
- package/dist/check/rules/events-name-format.js +18 -15
- package/dist/check/rules/events-name-format.js.map +1 -1
- package/dist/check/rules/events-outbox-required.d.ts +2 -2
- package/dist/check/rules/events-outbox-required.d.ts.map +1 -1
- package/dist/check/rules/events-outbox-required.js +15 -4
- package/dist/check/rules/events-outbox-required.js.map +1 -1
- package/dist/check/rules/files-port-not-connector.d.ts +2 -2
- package/dist/check/rules/files-port-not-connector.d.ts.map +1 -1
- package/dist/check/rules/files-port-not-connector.js +17 -6
- package/dist/check/rules/files-port-not-connector.js.map +1 -1
- package/dist/check/rules/files-upload-content-rule.d.ts +2 -2
- package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -1
- package/dist/check/rules/files-upload-content-rule.js +24 -3
- package/dist/check/rules/files-upload-content-rule.js.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.d.ts +2 -2
- package/dist/check/rules/governance-recorded-deviation.d.ts.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.js +22 -14
- package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
- package/dist/check/rules/imports-alias-declared.d.ts +2 -2
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +21 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts +2 -2
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +16 -4
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/imports-extension.d.ts +2 -2
- package/dist/check/rules/imports-extension.d.ts.map +1 -1
- package/dist/check/rules/imports-extension.js +16 -3
- package/dist/check/rules/imports-extension.js.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.d.ts +2 -2
- package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.js +12 -1
- package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
- package/dist/check/rules/language-glossary-term.d.ts +2 -2
- package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
- package/dist/check/rules/language-glossary-term.js +28 -26
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/language-no-technical-name.d.ts +2 -2
- package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
- package/dist/check/rules/language-no-technical-name.js +25 -22
- package/dist/check/rules/language-no-technical-name.js.map +1 -1
- package/dist/check/rules/layer-application-inward.d.ts +2 -2
- package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
- package/dist/check/rules/layer-application-inward.js +25 -15
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/layer-domain-purity.d.ts +2 -2
- package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
- package/dist/check/rules/layer-domain-purity.js +19 -9
- package/dist/check/rules/layer-domain-purity.js.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts +2 -2
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.js +19 -14
- package/dist/check/rules/layer-infrastructure-no-presentation.js.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts +2 -2
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.js +20 -15
- package/dist/check/rules/layer-presentation-no-infrastructure.js.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.d.ts +2 -2
- package/dist/check/rules/lifecycle-status-through-machine.d.ts.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.js +18 -2
- package/dist/check/rules/lifecycle-status-through-machine.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts +2 -2
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +17 -1
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/module-declared.d.ts +2 -2
- package/dist/check/rules/module-declared.d.ts.map +1 -1
- package/dist/check/rules/module-declared.js +14 -1
- package/dist/check/rules/module-declared.js.map +1 -1
- package/dist/check/rules/module-no-cycle.d.ts +2 -2
- package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/module-no-cycle.js +12 -1
- package/dist/check/rules/module-no-cycle.js.map +1 -1
- package/dist/check/rules/naming-business-name.d.ts +2 -2
- package/dist/check/rules/naming-business-name.d.ts.map +1 -1
- package/dist/check/rules/naming-business-name.js +19 -10
- package/dist/check/rules/naming-business-name.js.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.d.ts +2 -2
- package/dist/check/rules/naming-one-concept-per-file.d.ts.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.js +22 -9
- package/dist/check/rules/naming-one-concept-per-file.js.map +1 -1
- package/dist/check/rules/naming-search-not-list.d.ts +2 -2
- package/dist/check/rules/naming-search-not-list.d.ts.map +1 -1
- package/dist/check/rules/naming-search-not-list.js +20 -8
- package/dist/check/rules/naming-search-not-list.js.map +1 -1
- package/dist/check/rules/naming-suffix.d.ts +2 -2
- package/dist/check/rules/naming-suffix.d.ts.map +1 -1
- package/dist/check/rules/naming-suffix.js +21 -14
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts +2 -2
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +12 -1
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts +2 -2
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.js +27 -11
- package/dist/check/rules/nest-no-parallel-pipeline.js.map +1 -1
- package/dist/check/rules/persistence-migration-history.d.ts +2 -2
- package/dist/check/rules/persistence-migration-history.d.ts.map +1 -1
- package/dist/check/rules/persistence-migration-history.js +13 -1
- package/dist/check/rules/persistence-migration-history.js.map +1 -1
- package/dist/check/rules/persistence-no-file-content.d.ts +2 -2
- package/dist/check/rules/persistence-no-file-content.d.ts.map +1 -1
- package/dist/check/rules/persistence-no-file-content.js +15 -1
- package/dist/check/rules/persistence-no-file-content.js.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.d.ts +2 -2
- package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.js +9 -1
- package/dist/check/rules/persistence-primary-key-order.js.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.d.ts +2 -2
- package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.js +20 -3
- package/dist/check/rules/persistence-read-model-listed.js.map +1 -1
- package/dist/check/rules/ports-abstract-class.d.ts +2 -2
- package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
- package/dist/check/rules/ports-abstract-class.js +33 -20
- package/dist/check/rules/ports-abstract-class.js.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.d.ts +2 -2
- package/dist/check/rules/ports-implements-never-extends.d.ts.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.js +25 -14
- package/dist/check/rules/ports-implements-never-extends.js.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.d.ts +2 -2
- package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.js +23 -5
- package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
- package/dist/check/rules/ports-no-token-constant.d.ts +2 -2
- package/dist/check/rules/ports-no-token-constant.d.ts.map +1 -1
- package/dist/check/rules/ports-no-token-constant.js +20 -3
- package/dist/check/rules/ports-no-token-constant.js.map +1 -1
- package/dist/check/rules/ports-value-import.d.ts +2 -2
- package/dist/check/rules/ports-value-import.d.ts.map +1 -1
- package/dist/check/rules/ports-value-import.js +23 -12
- package/dist/check/rules/ports-value-import.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +2 -2
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +18 -1
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts +2 -2
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js +12 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.d.ts +2 -2
- package/dist/check/rules/privacy-event-payload-declared.d.ts.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.js +17 -1
- package/dist/check/rules/privacy-event-payload-declared.js.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts +2 -2
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js +8 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.d.ts +2 -2
- package/dist/check/rules/privacy-snapshot-sealed.d.ts.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.js +16 -1
- package/dist/check/rules/privacy-snapshot-sealed.js.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.d.ts +2 -2
- package/dist/check/rules/privacy-subject-is-opaque.d.ts.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.js +8 -1
- package/dist/check/rules/privacy-subject-is-opaque.js.map +1 -1
- package/dist/check/rules/process-sends-commands-only.d.ts +2 -2
- package/dist/check/rules/process-sends-commands-only.d.ts.map +1 -1
- package/dist/check/rules/process-sends-commands-only.js +18 -3
- package/dist/check/rules/process-sends-commands-only.js.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.js +5 -29
- package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
- package/dist/check/rules/purity-no-environment.d.ts +1 -1
- package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
- package/dist/check/rules/purity-no-environment.js +5 -37
- package/dist/check/rules/purity-no-environment.js.map +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
- package/dist/check/rules/purity-no-system-clock.js +5 -14
- package/dist/check/rules/purity-no-system-clock.js.map +1 -1
- package/dist/check/rules/scheduling-job-name.d.ts +2 -2
- package/dist/check/rules/scheduling-job-name.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-name.js +18 -8
- package/dist/check/rules/scheduling-job-name.js.map +1 -1
- package/dist/check/rules/scheduling-job-registered.d.ts +2 -2
- package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-registered.js +24 -1
- package/dist/check/rules/scheduling-job-registered.js.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts +2 -2
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.js +36 -10
- package/dist/check/rules/scheduling-job-triggers-use-case.js.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.d.ts +2 -2
- package/dist/check/rules/scheduling-tenancy-declared.d.ts.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.js +10 -6
- package/dist/check/rules/scheduling-tenancy-declared.js.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.d.ts +2 -2
- package/dist/check/rules/schema-no-duplicate-shape.d.ts.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.js +14 -1
- package/dist/check/rules/schema-no-duplicate-shape.js.map +1 -1
- package/dist/check/rules/schema-presentation-only.d.ts +2 -2
- package/dist/check/rules/schema-presentation-only.d.ts.map +1 -1
- package/dist/check/rules/schema-presentation-only.js +17 -4
- package/dist/check/rules/schema-presentation-only.js.map +1 -1
- package/dist/check/rules/search-store-from-platform.d.ts +2 -2
- package/dist/check/rules/search-store-from-platform.d.ts.map +1 -1
- package/dist/check/rules/search-store-from-platform.js +23 -3
- package/dist/check/rules/search-store-from-platform.js.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.d.ts +2 -2
- package/dist/check/rules/standard-no-parallel-interface.d.ts.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.js +19 -4
- package/dist/check/rules/standard-no-parallel-interface.js.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.d.ts +2 -2
- package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.js +45 -6
- package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.d.ts +2 -2
- package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.js +11 -1
- package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
- package/dist/check/rules/test-builder-required.d.ts +2 -2
- package/dist/check/rules/test-builder-required.d.ts.map +1 -1
- package/dist/check/rules/test-builder-required.js +8 -1
- package/dist/check/rules/test-builder-required.js.map +1 -1
- package/dist/check/rules/test-coverage-governed.d.ts +2 -2
- package/dist/check/rules/test-coverage-governed.d.ts.map +1 -1
- package/dist/check/rules/test-coverage-governed.js +20 -5
- package/dist/check/rules/test-coverage-governed.js.map +1 -1
- package/dist/check/rules/test-helper-placed.d.ts +2 -2
- package/dist/check/rules/test-helper-placed.d.ts.map +1 -1
- package/dist/check/rules/test-helper-placed.js +20 -16
- package/dist/check/rules/test-helper-placed.js.map +1 -1
- package/dist/check/rules/test-mutation-governed.d.ts +2 -2
- package/dist/check/rules/test-mutation-governed.d.ts.map +1 -1
- package/dist/check/rules/test-mutation-governed.js +13 -1
- package/dist/check/rules/test-mutation-governed.js.map +1 -1
- package/dist/check/rules/test-no-mocks.d.ts +2 -2
- package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
- package/dist/check/rules/test-no-mocks.js +23 -18
- package/dist/check/rules/test-no-mocks.js.map +1 -1
- package/dist/check/rules/test-spec-required.d.ts +2 -2
- package/dist/check/rules/test-spec-required.d.ts.map +1 -1
- package/dist/check/rules/test-spec-required.js +7 -1
- package/dist/check/rules/test-spec-required.js.map +1 -1
- package/dist/check/rules/tracing-platform-only.d.ts +2 -2
- package/dist/check/rules/tracing-platform-only.d.ts.map +1 -1
- package/dist/check/rules/tracing-platform-only.js +20 -14
- package/dist/check/rules/tracing-platform-only.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts +2 -2
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +12 -1
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/rules/tree-context-doc.d.ts +2 -2
- package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
- package/dist/check/rules/tree-context-doc.js +7 -1
- package/dist/check/rules/tree-context-doc.js.map +1 -1
- package/dist/check/rules/tree-documented-paths.d.ts +2 -2
- package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
- package/dist/check/rules/tree-documented-paths.js +7 -1
- package/dist/check/rules/tree-documented-paths.js.map +1 -1
- package/dist/check/scan/find-imports.js +6 -5
- package/dist/check/scan/find-imports.js.map +1 -1
- package/dist/check/scan/found-statement.d.ts +4 -1
- package/dist/check/scan/found-statement.d.ts.map +1 -1
- package/dist/check/scan/lexer.d.ts +1 -0
- package/dist/check/scan/lexer.d.ts.map +1 -1
- package/dist/check/scan/lexer.js +20 -5
- package/dist/check/scan/lexer.js.map +1 -1
- package/dist/check/scan/statements-of.d.ts +9 -0
- package/dist/check/scan/statements-of.d.ts.map +1 -0
- package/dist/check/scan/statements-of.js +61 -0
- package/dist/check/scan/statements-of.js.map +1 -0
- package/dist/check/schemas/holds-schemas.d.ts +2 -2
- package/dist/check/schemas/holds-schemas.d.ts.map +1 -1
- package/dist/check/schemas/holds-schemas.js.map +1 -1
- package/dist/check/schemas/shares-schemas.d.ts +2 -2
- package/dist/check/schemas/shares-schemas.d.ts.map +1 -1
- package/dist/check/schemas/shares-schemas.js.map +1 -1
- package/dist/check/support/binding-place.d.ts +2 -2
- package/dist/check/support/binding-place.d.ts.map +1 -1
- package/dist/check/support/binding-place.js.map +1 -1
- package/dist/check/support/is-declared-style.d.ts +2 -2
- package/dist/check/support/is-declared-style.d.ts.map +1 -1
- package/dist/check/support/is-declared-style.js.map +1 -1
- package/dist/check/support/once-per-project.d.ts +8 -0
- package/dist/check/support/once-per-project.d.ts.map +1 -0
- package/dist/check/support/once-per-project.js +18 -0
- package/dist/check/support/once-per-project.js.map +1 -0
- package/dist/check/support/path-in-context.d.ts +2 -2
- package/dist/check/support/path-in-context.d.ts.map +1 -1
- package/dist/check/support/path-in-context.js.map +1 -1
- package/dist/check/support/per-file.d.ts +4 -1
- package/dist/check/support/per-file.d.ts.map +1 -1
- package/dist/check/support/per-file.js +21 -2
- package/dist/check/support/per-file.js.map +1 -1
- package/dist/check/support/reporter.d.ts +2 -2
- package/dist/check/support/reporter.d.ts.map +1 -1
- package/dist/check/support/reporter.js.map +1 -1
- package/dist/check/support/source-declaring.d.ts +2 -2
- package/dist/check/support/source-declaring.d.ts.map +1 -1
- package/dist/check/support/source-declaring.js +1 -2
- package/dist/check/support/source-declaring.js.map +1 -1
- package/dist/check/support/to-violations.d.ts +1 -0
- package/dist/check/support/to-violations.d.ts.map +1 -1
- package/dist/check/support/to-violations.js +5 -1
- package/dist/check/support/to-violations.js.map +1 -1
- package/dist/check/suppressions/find-suppressions.d.ts +9 -2
- package/dist/check/suppressions/find-suppressions.d.ts.map +1 -1
- package/dist/check/suppressions/find-suppressions.js +30 -7
- package/dist/check/suppressions/find-suppressions.js.map +1 -1
- package/dist/check/suppressions/idle-suppression.d.ts +7 -0
- package/dist/check/suppressions/idle-suppression.d.ts.map +1 -0
- package/dist/check/suppressions/idle-suppression.js +2 -0
- package/dist/check/suppressions/idle-suppression.js.map +1 -0
- package/dist/check/suppressions/silencing.d.ts +19 -0
- package/dist/check/suppressions/silencing.d.ts.map +1 -0
- package/dist/check/suppressions/silencing.js +32 -0
- package/dist/check/suppressions/silencing.js.map +1 -0
- package/dist/check/tenancy/prisma-unscoped.d.ts.map +1 -1
- package/dist/check/tenancy/prisma-unscoped.js +3 -1
- package/dist/check/tenancy/prisma-unscoped.js.map +1 -1
- package/dist/check/tenancy/saves-without-tenant.d.ts +4 -0
- package/dist/check/tenancy/saves-without-tenant.d.ts.map +1 -0
- package/dist/check/tenancy/saves-without-tenant.js +6 -0
- package/dist/check/tenancy/saves-without-tenant.js.map +1 -0
- package/dist/commands/acceptance.d.ts +1 -2
- package/dist/commands/acceptance.d.ts.map +1 -1
- package/dist/commands/acceptance.js +25 -30
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/affected.d.ts +1 -2
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +23 -19
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/arguments-error.d.ts +11 -1
- package/dist/commands/arguments-error.d.ts.map +1 -1
- package/dist/commands/arguments-error.js +15 -1
- package/dist/commands/arguments-error.js.map +1 -1
- package/dist/commands/arguments.d.ts +87 -10
- package/dist/commands/arguments.d.ts.map +1 -1
- package/dist/commands/arguments.js +95 -18
- package/dist/commands/arguments.js.map +1 -1
- package/dist/commands/build-aliases.d.ts +1 -2
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +16 -14
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/checks.d.ts +7 -3
- package/dist/commands/checks.d.ts.map +1 -1
- package/dist/commands/checks.js +16 -2
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/cited.d.ts +1 -2
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +32 -28
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/command.d.ts +81 -1
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +31 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/commit-size.d.ts +1 -2
- package/dist/commands/commit-size.d.ts.map +1 -1
- package/dist/commands/commit-size.js +16 -12
- package/dist/commands/commit-size.js.map +1 -1
- package/dist/commands/context-layout.d.ts +1 -2
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +30 -25
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/controllers.d.ts +1 -2
- package/dist/commands/controllers.d.ts.map +1 -1
- package/dist/commands/controllers.js +34 -29
- package/dist/commands/controllers.js.map +1 -1
- package/dist/commands/define-tool-command.d.ts +18 -0
- package/dist/commands/define-tool-command.d.ts.map +1 -0
- package/dist/commands/define-tool-command.js +19 -0
- package/dist/commands/define-tool-command.js.map +1 -0
- package/dist/commands/depcruise-config.d.ts +1 -2
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +34 -30
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/describe.d.ts +1 -2
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +14 -10
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/digest.d.ts +1 -2
- package/dist/commands/digest.d.ts.map +1 -1
- package/dist/commands/digest.js +17 -13
- package/dist/commands/digest.js.map +1 -1
- package/dist/commands/docs.d.ts +1 -2
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +29 -25
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -2
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -13
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts +1 -2
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +19 -10
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/error-factories.d.ts +1 -2
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +28 -30
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/generate.d.ts +2 -2
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +27 -15
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/holding-the-lock.d.ts +23 -0
- package/dist/commands/holding-the-lock.d.ts.map +1 -0
- package/dist/commands/holding-the-lock.js +28 -0
- package/dist/commands/holding-the-lock.js.map +1 -0
- package/dist/commands/init.d.ts +1 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +42 -25
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knex-generate.d.ts +1 -2
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +20 -12
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/lint.d.ts +1 -2
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +61 -39
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/list.d.ts +1 -2
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +10 -7
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/measures.d.ts +1 -2
- package/dist/commands/measures.d.ts.map +1 -1
- package/dist/commands/measures.js +20 -20
- package/dist/commands/measures.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts +1 -2
- package/dist/commands/merge-trunk.d.ts.map +1 -1
- package/dist/commands/merge-trunk.js +33 -26
- package/dist/commands/merge-trunk.js.map +1 -1
- package/dist/commands/move-to-module.d.ts +1 -2
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +50 -46
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.d.ts +1 -2
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +20 -16
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/option-usage.d.ts +12 -0
- package/dist/commands/option-usage.d.ts.map +1 -0
- package/dist/commands/option-usage.js +13 -0
- package/dist/commands/option-usage.js.map +1 -0
- package/dist/commands/plan-waves.d.ts +1 -2
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +18 -14
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/platform-folders.d.ts +1 -2
- package/dist/commands/platform-folders.d.ts.map +1 -1
- package/dist/commands/platform-folders.js +25 -21
- package/dist/commands/platform-folders.js.map +1 -1
- package/dist/commands/prisma-client.d.ts +1 -2
- package/dist/commands/prisma-client.d.ts.map +1 -1
- package/dist/commands/prisma-client.js +17 -14
- package/dist/commands/prisma-client.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +1 -2
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +28 -20
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/refuse-second-name.d.ts +7 -0
- package/dist/commands/refuse-second-name.d.ts.map +1 -0
- package/dist/commands/refuse-second-name.js +12 -0
- package/dist/commands/refuse-second-name.js.map +1 -0
- package/dist/commands/sdk.d.ts +1 -2
- package/dist/commands/sdk.d.ts.map +1 -1
- package/dist/commands/sdk.js +18 -14
- package/dist/commands/sdk.js.map +1 -1
- package/dist/commands/status.d.ts +1 -2
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +26 -22
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts +1 -2
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js +10 -7
- package/dist/commands/stories.js.map +1 -1
- package/dist/commands/story-check.d.ts +1 -2
- package/dist/commands/story-check.d.ts.map +1 -1
- package/dist/commands/story-check.js +15 -11
- package/dist/commands/story-check.js.map +1 -1
- package/dist/commands/story-scope.d.ts +1 -2
- package/dist/commands/story-scope.d.ts.map +1 -1
- package/dist/commands/story-scope.js +28 -35
- package/dist/commands/story-scope.js.map +1 -1
- package/dist/commands/story.d.ts +1 -2
- package/dist/commands/story.d.ts.map +1 -1
- package/dist/commands/story.js +17 -23
- package/dist/commands/story.js.map +1 -1
- package/dist/commands/todo.d.ts +1 -2
- package/dist/commands/todo.d.ts.map +1 -1
- package/dist/commands/todo.js +22 -18
- package/dist/commands/todo.js.map +1 -1
- package/dist/commands/tsc.d.ts +8 -0
- package/dist/commands/tsc.d.ts.map +1 -0
- package/dist/commands/tsc.js +49 -0
- package/dist/commands/tsc.js.map +1 -0
- package/dist/commands/typeorm-generate.d.ts +1 -2
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +34 -29
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/usage-line.d.ts +18 -0
- package/dist/commands/usage-line.d.ts.map +1 -0
- package/dist/commands/usage-line.js +16 -0
- package/dist/commands/usage-line.js.map +1 -0
- package/dist/commands/value-objects.d.ts +1 -2
- package/dist/commands/value-objects.d.ts.map +1 -1
- package/dist/commands/value-objects.js +23 -19
- package/dist/commands/value-objects.js.map +1 -1
- package/dist/commands/verify-merge.d.ts +1 -2
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +27 -23
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/commands/verify-slice.d.ts +1 -2
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +19 -15
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commands/with-modes.d.ts +10 -0
- package/dist/commands/with-modes.d.ts.map +1 -0
- package/dist/commands/with-modes.js +56 -0
- package/dist/commands/with-modes.js.map +1 -0
- package/dist/commands/worker-scope.d.ts +1 -2
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +35 -27
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts +1 -2
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/commands/worktree.js +23 -19
- package/dist/commands/worktree.js.map +1 -1
- package/dist/commands.d.ts +8 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +94 -0
- package/dist/commands.js.map +1 -0
- package/dist/commit/changed-files.d.ts +8 -0
- package/dist/commit/changed-files.d.ts.map +1 -0
- package/dist/commit/changed-files.js +26 -0
- package/dist/commit/changed-files.js.map +1 -0
- package/dist/config/add-upstreams-to-config-text.d.ts +4 -0
- package/dist/config/add-upstreams-to-config-text.d.ts.map +1 -0
- package/dist/config/add-upstreams-to-config-text.js +17 -0
- package/dist/config/add-upstreams-to-config-text.js.map +1 -0
- package/dist/docs/write-behaviour.js +2 -1
- package/dist/docs/write-behaviour.js.map +1 -1
- package/dist/docs/write-code-owners.js +1 -1
- package/dist/docs/write-code-owners.js.map +1 -1
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +6 -2
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/docs/write-personal-events.js +1 -1
- package/dist/docs/write-personal-events.js.map +1 -1
- package/dist/docs/write-privacy-register.js +1 -1
- package/dist/docs/write-privacy-register.js.map +1 -1
- package/dist/doctor/install-script-findings.d.ts.map +1 -1
- package/dist/doctor/install-script-findings.js +2 -1
- package/dist/doctor/install-script-findings.js.map +1 -1
- package/dist/doctor/override-findings.d.ts.map +1 -1
- package/dist/doctor/override-findings.js +3 -1
- package/dist/doctor/override-findings.js.map +1 -1
- package/dist/generate/apply-wiring.js +1 -1
- package/dist/generate/apply-wiring.js.map +1 -1
- package/dist/generate/concept-kind.d.ts +23 -0
- package/dist/generate/concept-kind.d.ts.map +1 -0
- package/dist/generate/concept-kind.js +26 -0
- package/dist/generate/concept-kind.js.map +1 -0
- package/dist/generate/define-kind.d.ts +18 -0
- package/dist/generate/define-kind.d.ts.map +1 -0
- package/dist/generate/define-kind.js +24 -0
- package/dist/generate/define-kind.js.map +1 -0
- package/dist/generate/errors/add-factory.js +2 -2
- package/dist/generate/errors/add-factory.js.map +1 -1
- package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
- package/dist/generate/errors/refusal-class-name.js +10 -2
- package/dist/generate/errors/refusal-class-name.js.map +1 -1
- package/dist/generate/errors/static-methods.d.ts +1 -1
- package/dist/generate/errors/static-methods.d.ts.map +1 -1
- package/dist/generate/errors/static-methods.js +3 -2
- package/dist/generate/errors/static-methods.js.map +1 -1
- package/dist/generate/generate-arguments.d.ts.map +1 -1
- package/dist/generate/generate-arguments.js +2 -7
- package/dist/generate/generate-arguments.js.map +1 -1
- package/dist/generate/generate-options-on.d.ts +8 -0
- package/dist/generate/generate-options-on.d.ts.map +1 -0
- package/dist/generate/generate-options-on.js +13 -0
- package/dist/generate/generate-options-on.js.map +1 -0
- package/dist/generate/generate-options.d.ts +8 -179
- package/dist/generate/generate-options.d.ts.map +1 -1
- package/dist/generate/generate-options.js +24 -54
- package/dist/generate/generate-options.js.map +1 -1
- package/dist/generate/grant-permission.d.ts.map +1 -1
- package/dist/generate/grant-permission.js +27 -48
- package/dist/generate/grant-permission.js.map +1 -1
- package/dist/generate/held-to-glossary.d.ts +4 -4
- package/dist/generate/held-to-glossary.d.ts.map +1 -1
- package/dist/generate/held-to-glossary.js +5 -6
- package/dist/generate/held-to-glossary.js.map +1 -1
- package/dist/generate/kind-help.d.ts.map +1 -1
- package/dist/generate/kind-help.js +2 -4
- package/dist/generate/kind-help.js.map +1 -1
- package/dist/generate/kind-in.d.ts.map +1 -1
- package/dist/generate/kind-in.js +3 -3
- package/dist/generate/kind-in.js.map +1 -1
- package/dist/generate/kind-options.d.ts +10 -0
- package/dist/generate/kind-options.d.ts.map +1 -0
- package/dist/generate/kind-options.js +6 -0
- package/dist/generate/kind-options.js.map +1 -0
- package/dist/generate/kind.d.ts +31 -6
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.js +6 -2
- package/dist/generate/kinds/acceptance-kind.js.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts +1 -2
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +11 -10
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts +1 -2
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +12 -9
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.js +11 -2
- package/dist/generate/kinds/adr-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts +1 -2
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +8 -11
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts +2 -0
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js +20 -4
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts +1 -2
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +9 -12
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/builder-kind.d.ts +1 -2
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +7 -9
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-context.d.ts +2 -2
- package/dist/generate/kinds/command-context.d.ts.map +1 -1
- package/dist/generate/kinds/command-context.js +10 -4
- package/dist/generate/kinds/command-context.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts +1 -2
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +23 -12
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/context-kind.d.ts.map +1 -1
- package/dist/generate/kinds/context-kind.js +22 -2
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/declare-table.d.ts +1 -11
- package/dist/generate/kinds/declare-table.d.ts.map +1 -1
- package/dist/generate/kinds/declare-table.js +2 -132
- package/dist/generate/kinds/declare-table.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +14 -11
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/domain-event-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-event-kind.js +8 -11
- package/dist/generate/kinds/domain-event-kind.js.map +1 -1
- package/dist/generate/kinds/domain-service-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-service-kind.js +8 -22
- package/dist/generate/kinds/domain-service-kind.js.map +1 -1
- package/dist/generate/kinds/e2e/held-scenarios.d.ts +8 -0
- package/dist/generate/kinds/e2e/held-scenarios.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/held-scenarios.js +18 -0
- package/dist/generate/kinds/e2e/held-scenarios.js.map +1 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts +2 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.js +29 -15
- package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
- package/dist/generate/kinds/e2e/still-refusing.d.ts +10 -0
- package/dist/generate/kinds/e2e/still-refusing.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/still-refusing.js +22 -0
- package/dist/generate/kinds/e2e/still-refusing.js.map +1 -0
- package/dist/generate/kinds/e2e-kind.d.ts +1 -2
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +30 -11
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/entity-kind.d.ts +1 -2
- package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
- package/dist/generate/kinds/entity-kind.js +8 -22
- package/dist/generate/kinds/entity-kind.js.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.js +7 -9
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts +1 -2
- package/dist/generate/kinds/error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/error-kind.js +18 -10
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/event-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/event-handler-kind.js +12 -11
- package/dist/generate/kinds/event-handler-kind.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts +1 -2
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +20 -11
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.d.ts +1 -2
- package/dist/generate/kinds/form-kind.d.ts.map +1 -1
- package/dist/generate/kinds/form-kind.js +7 -9
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts +1 -2
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +25 -19
- 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 +75 -9
- 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 +9 -1
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/guard-kind.d.ts +1 -2
- package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
- package/dist/generate/kinds/guard-kind.js +7 -9
- package/dist/generate/kinds/guard-kind.js.map +1 -1
- package/dist/generate/kinds/integration-event-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +13 -11
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +9 -10
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts +1 -2
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +20 -12
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.d.ts +1 -2
- package/dist/generate/kinds/module-kind.d.ts.map +1 -1
- package/dist/generate/kinds/module-kind.js +14 -11
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/personal-data/table-of-schema.js +2 -2
- package/dist/generate/kinds/personal-data/table-of-schema.js.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.d.ts +1 -2
- package/dist/generate/kinds/personal-fields-kind.d.ts.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.js +21 -9
- package/dist/generate/kinds/personal-fields-kind.js.map +1 -1
- package/dist/generate/kinds/policy-kind.d.ts +1 -2
- package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
- package/dist/generate/kinds/policy-kind.js +13 -11
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts +1 -2
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +7 -9
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts +1 -2
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +8 -10
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts +1 -2
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +26 -11
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.d.ts +1 -2
- package/dist/generate/kinds/property-kind.d.ts.map +1 -1
- package/dist/generate/kinds/property-kind.js +14 -10
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-context.d.ts +1 -1
- package/dist/generate/kinds/query-context.d.ts.map +1 -1
- package/dist/generate/kinds/query-context.js +3 -2
- package/dist/generate/kinds/query-context.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts +1 -2
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +17 -11
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/query-outputs.js +1 -1
- package/dist/generate/kinds/query-outputs.js.map +1 -1
- package/dist/generate/kinds/read-model-kind.d.ts +1 -2
- package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
- package/dist/generate/kinds/read-model-kind.js +16 -11
- package/dist/generate/kinds/read-model-kind.js.map +1 -1
- package/dist/generate/kinds/repository-kind.d.ts +1 -2
- package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
- package/dist/generate/kinds/repository-kind.js +16 -9
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.d.ts +1 -2
- package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
- package/dist/generate/kinds/representation-kind.js +8 -9
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route-group-kind.d.ts +1 -2
- package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-group-kind.js +18 -8
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-kind.js +17 -11
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.d.ts +1 -19
- package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.js +4 -52
- package/dist/generate/kinds/same-name/index-picture.js.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.js +18 -36
- package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -1
- package/dist/generate/kinds/schema-kind.d.ts +1 -2
- package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
- package/dist/generate/kinds/schema-kind.js +12 -9
- package/dist/generate/kinds/schema-kind.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts +1 -2
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +17 -9
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.d.ts +1 -2
- package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +12 -11
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts +1 -2
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +7 -9
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/value-object-kind.d.ts +1 -2
- package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
- package/dist/generate/kinds/value-object-kind.js +14 -20
- package/dist/generate/kinds/value-object-kind.js.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.d.ts +1 -2
- package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.js +10 -9
- package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +12 -2
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/options-of.d.ts +5 -0
- package/dist/generate/options-of.d.ts.map +1 -0
- package/dist/generate/options-of.js +7 -0
- package/dist/generate/options-of.js.map +1 -0
- package/dist/generate/refuse-shared-writes.d.ts +9 -1
- package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
- package/dist/generate/refuse-shared-writes.js +10 -9
- package/dist/generate/refuse-shared-writes.js.map +1 -1
- package/dist/generate/refuse-undeclared-flags.d.ts +4 -4
- package/dist/generate/refuse-undeclared-flags.js +6 -6
- package/dist/generate/refuse-undeclared-flags.js.map +1 -1
- package/dist/generate/searched-elements.d.ts +1 -1
- package/dist/generate/searched-elements.d.ts.map +1 -1
- package/dist/generate/searched-elements.js +5 -1
- package/dist/generate/searched-elements.js.map +1 -1
- package/dist/generate/shared-write.d.ts +27 -0
- package/dist/generate/shared-write.d.ts.map +1 -0
- package/dist/generate/shared-write.js +19 -0
- package/dist/generate/shared-write.js.map +1 -0
- package/dist/generate/stop-ignoring-validation.d.ts.map +1 -1
- package/dist/generate/stop-ignoring-validation.js +1 -3
- package/dist/generate/stop-ignoring-validation.js.map +1 -1
- package/dist/generate/usage-of.d.ts +4 -1
- package/dist/generate/usage-of.d.ts.map +1 -1
- package/dist/generate/usage-of.js +24 -2
- package/dist/generate/usage-of.js.map +1 -1
- package/dist/generate/with-import.d.ts +2 -2
- package/dist/generate/with-import.d.ts.map +1 -1
- package/dist/generate/with-import.js +4 -10
- package/dist/generate/with-import.js.map +1 -1
- package/dist/generate/writes-in-a-context.d.ts +4 -0
- package/dist/generate/writes-in-a-context.d.ts.map +1 -0
- package/dist/generate/writes-in-a-context.js +5 -0
- package/dist/generate/writes-in-a-context.js.map +1 -0
- package/dist/generator-lock/held-lock-refusal.js +1 -1
- package/dist/generator-lock/held-lock-refusal.js.map +1 -1
- package/dist/generator-lock/remove-stale.d.ts +6 -3
- package/dist/generator-lock/remove-stale.d.ts.map +1 -1
- package/dist/generator-lock/remove-stale.js +19 -8
- package/dist/generator-lock/remove-stale.js.map +1 -1
- package/dist/help/help-for.d.ts +2 -2
- package/dist/help/help-for.d.ts.map +1 -1
- package/dist/help/help-for.js +2 -3
- package/dist/help/help-for.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +8 -0
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage-for.d.ts +3 -2
- package/dist/help/usage-for.d.ts.map +1 -1
- package/dist/help/usage-for.js +9 -8
- package/dist/help/usage-for.js.map +1 -1
- package/dist/help/usage-lines-of.d.ts +1 -1
- package/dist/help/usage-lines-of.d.ts.map +1 -1
- package/dist/help/usage-lines-of.js +3 -16
- package/dist/help/usage-lines-of.js.map +1 -1
- package/dist/help/usage.d.ts +4 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +8 -72
- package/dist/help/usage.js.map +1 -1
- package/dist/init/knip-vars.d.ts.map +1 -1
- package/dist/init/knip-vars.js +7 -6
- package/dist/init/knip-vars.js.map +1 -1
- package/dist/init/manifest/left-to-workspace-root.d.ts +4 -0
- package/dist/init/manifest/left-to-workspace-root.d.ts.map +1 -0
- package/dist/init/manifest/left-to-workspace-root.js +6 -0
- package/dist/init/manifest/left-to-workspace-root.js.map +1 -0
- package/dist/init/manifest/versions.js +25 -25
- package/dist/init/manifest/write-install-settings.d.ts +10 -0
- package/dist/init/manifest/write-install-settings.d.ts.map +1 -0
- package/dist/init/manifest/write-install-settings.js +57 -0
- package/dist/init/manifest/write-install-settings.js.map +1 -0
- package/dist/init/rewire-tables.d.ts.map +1 -1
- package/dist/init/rewire-tables.js +2 -52
- package/dist/init/rewire-tables.js.map +1 -1
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +11 -7
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/settle-index-names.d.ts.map +1 -1
- package/dist/init/settle-index-names.js +4 -43
- package/dist/init/settle-index-names.js.map +1 -1
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +10 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/subfolder-sentence.js +1 -1
- package/dist/init/subfolder-sentence.js.map +1 -1
- package/dist/init/template-vars.d.ts.map +1 -1
- package/dist/init/template-vars.js +0 -2
- package/dist/init/template-vars.js.map +1 -1
- package/dist/init/workspace-image-note.d.ts +9 -0
- package/dist/init/workspace-image-note.d.ts.map +1 -0
- package/dist/init/workspace-image-note.js +37 -0
- package/dist/init/workspace-image-note.js.map +1 -0
- package/dist/init/workspace-manager-note.d.ts +5 -0
- package/dist/init/workspace-manager-note.d.ts.map +1 -0
- package/dist/init/workspace-manager-note.js +12 -0
- package/dist/init/workspace-manager-note.js.map +1 -0
- package/dist/init/write-agent-settings.js +1 -1
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/init/write-contracts.js +1 -1
- package/dist/init/write-contracts.js.map +1 -1
- package/dist/init/write-local-environment.js +1 -1
- package/dist/init/write-local-environment.js.map +1 -1
- package/dist/init/write-profile-hooks.js +1 -1
- package/dist/init/write-profile-hooks.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +6 -2
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +9 -3
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/markers/insert-in-region.js +23 -6
- package/dist/markers/insert-in-region.js.map +1 -1
- package/dist/markers/merge-imports.d.ts +3 -1
- package/dist/markers/merge-imports.d.ts.map +1 -1
- package/dist/markers/merge-imports.js +66 -23
- package/dist/markers/merge-imports.js.map +1 -1
- package/dist/markers/replace-in-region.js +1 -1
- package/dist/markers/replace-in-region.js.map +1 -1
- package/dist/merge/land-drizzle.d.ts +1 -1
- package/dist/merge/land-drizzle.d.ts.map +1 -1
- package/dist/merge/land-drizzle.js +2 -2
- package/dist/merge/land-drizzle.js.map +1 -1
- package/dist/merge/land-up-to-date.d.ts.map +1 -1
- package/dist/merge/land-up-to-date.js +11 -47
- package/dist/merge/land-up-to-date.js.map +1 -1
- package/dist/merge/merge-steps.d.ts.map +1 -1
- package/dist/merge/merge-steps.js +4 -9
- package/dist/merge/merge-steps.js.map +1 -1
- package/dist/merge/order/applied-under-old-name.d.ts +4 -9
- package/dist/merge/order/applied-under-old-name.d.ts.map +1 -1
- package/dist/merge/order/applied-under-old-name.js +5 -9
- package/dist/merge/order/applied-under-old-name.js.map +1 -1
- package/dist/merge/order/drizzle-order.js +3 -3
- package/dist/merge/order/drizzle-order.js.map +1 -1
- package/dist/merge/order/migration-order.d.ts.map +1 -1
- package/dist/merge/order/migration-order.js +2 -6
- package/dist/merge/order/migration-order.js.map +1 -1
- package/dist/merge/order/named-order.d.ts +3 -3
- package/dist/merge/order/named-order.d.ts.map +1 -1
- package/dist/merge/order/named-order.js +10 -14
- package/dist/merge/order/named-order.js.map +1 -1
- package/dist/merge/renamed-after-trunk.d.ts +10 -0
- package/dist/merge/renamed-after-trunk.d.ts.map +1 -0
- package/dist/merge/renamed-after-trunk.js +21 -0
- package/dist/merge/renamed-after-trunk.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +4 -8
- package/dist/merge/renumber-migrations.d.ts.map +1 -1
- package/dist/merge/renumber-migrations.js +28 -53
- package/dist/merge/renumber-migrations.js.map +1 -1
- package/dist/merge/replayed-after-trunk.d.ts +7 -0
- package/dist/merge/replayed-after-trunk.d.ts.map +1 -0
- package/dist/merge/replayed-after-trunk.js +35 -0
- package/dist/merge/replayed-after-trunk.js.map +1 -0
- package/dist/migration/refuse-taken-migration-name.d.ts +2 -1
- package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -1
- package/dist/migration/refuse-taken-migration-name.js +3 -5
- package/dist/migration/refuse-taken-migration-name.js.map +1 -1
- package/dist/naming/inflection.d.ts +15 -0
- package/dist/naming/inflection.d.ts.map +1 -0
- package/dist/naming/inflection.js +24 -0
- package/dist/naming/inflection.js.map +1 -0
- package/dist/naming/parse-concept-name.d.ts +3 -2
- package/dist/naming/parse-concept-name.d.ts.map +1 -1
- package/dist/naming/parse-concept-name.js +5 -2
- package/dist/naming/parse-concept-name.js.map +1 -1
- package/dist/naming/plural.d.ts +1 -1
- package/dist/naming/plural.d.ts.map +1 -1
- package/dist/naming/plural.js +7 -4
- package/dist/naming/plural.js.map +1 -1
- package/dist/naming/refuse-unwritable.d.ts +8 -0
- package/dist/naming/refuse-unwritable.d.ts.map +1 -0
- package/dist/naming/refuse-unwritable.js +32 -0
- package/dist/naming/refuse-unwritable.js.map +1 -0
- package/dist/naming/singular.d.ts +5 -1
- package/dist/naming/singular.d.ts.map +1 -1
- package/dist/naming/singular.js +15 -2
- package/dist/naming/singular.js.map +1 -1
- package/dist/naming/to-name.d.ts +5 -0
- package/dist/naming/to-name.d.ts.map +1 -1
- package/dist/naming/to-name.js +7 -2
- package/dist/naming/to-name.js.map +1 -1
- package/dist/orm/database-access.d.ts +13 -0
- package/dist/orm/database-access.d.ts.map +1 -0
- package/dist/orm/database-access.js +2 -0
- package/dist/orm/database-access.js.map +1 -0
- package/dist/orm/members/drizzle.d.ts +3 -0
- package/dist/orm/members/drizzle.d.ts.map +1 -0
- package/dist/orm/members/drizzle.js +16 -0
- package/dist/orm/members/drizzle.js.map +1 -0
- package/dist/orm/members/knex.d.ts +3 -0
- package/dist/orm/members/knex.d.ts.map +1 -0
- package/dist/orm/members/knex.js +20 -0
- package/dist/orm/members/knex.js.map +1 -0
- package/dist/orm/members/prisma.d.ts +3 -0
- package/dist/orm/members/prisma.d.ts.map +1 -0
- package/dist/orm/members/prisma.js +9 -0
- package/dist/orm/members/prisma.js.map +1 -0
- package/dist/orm/members/typeorm.d.ts +3 -0
- package/dist/orm/members/typeorm.d.ts.map +1 -0
- package/dist/orm/members/typeorm.js +18 -0
- package/dist/orm/members/typeorm.js.map +1 -0
- package/dist/orm/migrations/files-of-commit.d.ts +3 -0
- package/dist/orm/migrations/files-of-commit.d.ts.map +1 -0
- package/dist/orm/migrations/files-of-commit.js +8 -0
- package/dist/orm/migrations/files-of-commit.js.map +1 -0
- package/dist/orm/migrations/in-order.d.ts +5 -0
- package/dist/orm/migrations/in-order.d.ts.map +1 -0
- package/dist/orm/migrations/in-order.js +5 -0
- package/dist/orm/migrations/in-order.js.map +1 -0
- package/dist/orm/migrations/migration-history.d.ts +44 -0
- package/dist/orm/migrations/migration-history.d.ts.map +1 -0
- package/dist/orm/migrations/migration-history.js +2 -0
- package/dist/orm/migrations/migration-history.js.map +1 -0
- package/dist/orm/migrations/migration-tool.d.ts +32 -0
- package/dist/orm/migrations/migration-tool.d.ts.map +1 -0
- package/dist/orm/migrations/migration-tool.js +2 -0
- package/dist/orm/migrations/migration-tool.js.map +1 -0
- package/dist/orm/migrations/migrations-landed.d.ts +6 -0
- package/dist/orm/migrations/migrations-landed.d.ts.map +1 -0
- package/dist/orm/migrations/migrations-landed.js +2 -0
- package/dist/orm/migrations/migrations-landed.js.map +1 -0
- package/dist/orm/migrations/named-folders.d.ts +7 -0
- package/dist/orm/migrations/named-folders.d.ts.map +1 -0
- package/dist/orm/migrations/named-folders.js +40 -0
- package/dist/orm/migrations/named-folders.js.map +1 -0
- package/dist/orm/migrations/named-scripts.d.ts +7 -0
- package/dist/orm/migrations/named-scripts.d.ts.map +1 -0
- package/dist/orm/migrations/named-scripts.js +36 -0
- package/dist/orm/migrations/named-scripts.js.map +1 -0
- package/dist/orm/migrations/numbered-name.d.ts +6 -0
- package/dist/orm/migrations/numbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/numbered-name.js +7 -0
- package/dist/orm/migrations/numbered-name.js.map +1 -0
- package/dist/{merge/order → orm/migrations}/ordered-migration.d.ts +0 -2
- package/dist/orm/migrations/ordered-migration.d.ts.map +1 -0
- package/dist/orm/migrations/ordered-migration.js.map +1 -0
- package/dist/orm/migrations/renumbered-name.d.ts +3 -0
- package/dist/orm/migrations/renumbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/renumbered-name.js +7 -0
- package/dist/orm/migrations/renumbered-name.js.map +1 -0
- package/dist/orm/migrations/restamp-class.d.ts.map +1 -0
- package/dist/{merge → orm/migrations}/restamp-class.js +2 -2
- package/dist/orm/migrations/restamp-class.js.map +1 -0
- package/dist/orm/migrations/script-named.d.ts +3 -0
- package/dist/orm/migrations/script-named.d.ts.map +1 -0
- package/dist/orm/migrations/script-named.js +6 -0
- package/dist/orm/migrations/script-named.js.map +1 -0
- package/dist/orm/migrations/scripts.d.ts +7 -0
- package/dist/orm/migrations/scripts.d.ts.map +1 -0
- package/dist/orm/migrations/scripts.js +7 -0
- package/dist/orm/migrations/scripts.js.map +1 -0
- package/dist/orm/migrations/stamped-classes.d.ts +8 -0
- package/dist/orm/migrations/stamped-classes.d.ts.map +1 -0
- package/dist/orm/migrations/stamped-classes.js +53 -0
- package/dist/orm/migrations/stamped-classes.js.map +1 -0
- package/dist/orm/orm-member.d.ts +16 -0
- package/dist/orm/orm-member.d.ts.map +1 -0
- package/dist/orm/orm-member.js +2 -0
- package/dist/orm/orm-member.js.map +1 -0
- package/dist/orm/orm-members.d.ts +5 -0
- package/dist/orm/orm-members.d.ts.map +1 -0
- package/dist/orm/orm-members.js +11 -0
- package/dist/orm/orm-members.js.map +1 -0
- package/dist/orm/tables/declare-once.d.ts +14 -0
- package/dist/orm/tables/declare-once.d.ts.map +1 -0
- package/dist/orm/tables/declare-once.js +22 -0
- package/dist/orm/tables/declare-once.js.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts +35 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.js +98 -0
- package/dist/orm/tables/declared-in-tables-file.js.map +1 -0
- package/dist/orm/tables/declared-table.d.ts +12 -0
- package/dist/orm/tables/declared-table.d.ts.map +1 -0
- package/dist/orm/tables/declared-table.js +2 -0
- package/dist/orm/tables/declared-table.js.map +1 -0
- package/dist/orm/tables/empty-picture.d.ts +4 -0
- package/dist/orm/tables/empty-picture.d.ts.map +1 -0
- package/dist/orm/tables/empty-picture.js +5 -0
- package/dist/orm/tables/empty-picture.js.map +1 -0
- package/dist/orm/tables/exported-names.d.ts +8 -0
- package/dist/orm/tables/exported-names.d.ts.map +1 -0
- package/dist/orm/tables/exported-names.js +68 -0
- package/dist/orm/tables/exported-names.js.map +1 -0
- package/dist/orm/tables/file-of-table.d.ts +3 -0
- package/dist/orm/tables/file-of-table.d.ts.map +1 -0
- package/dist/orm/tables/file-of-table.js +5 -0
- package/dist/orm/tables/file-of-table.js.map +1 -0
- package/dist/orm/tables/index-names.d.ts +55 -0
- package/dist/orm/tables/index-names.d.ts.map +1 -0
- package/dist/orm/tables/index-names.js +2 -0
- package/dist/orm/tables/index-names.js.map +1 -0
- package/dist/orm/tables/index-picture.d.ts +20 -0
- package/dist/orm/tables/index-picture.d.ts.map +1 -0
- package/dist/orm/tables/index-picture.js +2 -0
- package/dist/orm/tables/index-picture.js.map +1 -0
- package/dist/orm/tables/listed-entities.d.ts +9 -0
- package/dist/orm/tables/listed-entities.d.ts.map +1 -0
- package/dist/orm/tables/listed-entities.js +65 -0
- package/dist/orm/tables/listed-entities.js.map +1 -0
- package/dist/orm/tables/prisma-models.d.ts +7 -0
- package/dist/orm/tables/prisma-models.d.ts.map +1 -0
- package/dist/orm/tables/prisma-models.js +33 -0
- package/dist/orm/tables/prisma-models.js.map +1 -0
- package/dist/orm/tables/tables-declaration.d.ts +30 -0
- package/dist/orm/tables/tables-declaration.d.ts.map +1 -0
- package/dist/orm/tables/tables-declaration.js +2 -0
- package/dist/orm/tables/tables-declaration.js.map +1 -0
- package/dist/orm/tables/template-of-table.d.ts +4 -0
- package/dist/orm/tables/template-of-table.d.ts.map +1 -0
- package/dist/orm/tables/template-of-table.js +7 -0
- package/dist/orm/tables/template-of-table.js.map +1 -0
- package/dist/package-manager/listed-by.d.ts +3 -0
- package/dist/package-manager/listed-by.d.ts.map +1 -0
- package/dist/package-manager/listed-by.js +17 -0
- package/dist/package-manager/listed-by.js.map +1 -0
- package/dist/package-manager/npm-workspace-of.d.ts +15 -0
- package/dist/package-manager/npm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/npm-workspace-of.js +35 -0
- package/dist/package-manager/npm-workspace-of.js.map +1 -0
- package/dist/package-manager/package-manager-vars.d.ts +1 -1
- package/dist/package-manager/package-manager-vars.d.ts.map +1 -1
- package/dist/package-manager/package-manager-vars.js +2 -1
- package/dist/package-manager/package-manager-vars.js.map +1 -1
- package/dist/package-manager/pnpm-settings-file.d.ts +6 -0
- package/dist/package-manager/pnpm-settings-file.d.ts.map +1 -0
- package/dist/package-manager/pnpm-settings-file.js +12 -0
- package/dist/package-manager/pnpm-settings-file.js.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts +18 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.js +49 -0
- package/dist/package-manager/pnpm-workspace-of.js.map +1 -0
- package/dist/package-manager/workspace-package-manager.d.ts +14 -0
- package/dist/package-manager/workspace-package-manager.d.ts.map +1 -0
- package/dist/package-manager/workspace-package-manager.js +56 -0
- package/dist/package-manager/workspace-package-manager.js.map +1 -0
- package/dist/plan/planned-words.js +1 -1
- package/dist/plan/planned-words.js.map +1 -1
- package/dist/prisma-schema/datasource-list.d.ts +4 -0
- package/dist/prisma-schema/datasource-list.d.ts.map +1 -0
- package/dist/prisma-schema/datasource-list.js +6 -0
- package/dist/prisma-schema/datasource-list.js.map +1 -0
- package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -1
- package/dist/prisma-schema/datasource-schemas.js +2 -1
- package/dist/prisma-schema/datasource-schemas.js.map +1 -1
- package/dist/prisma-schema/preview-features-of.d.ts.map +1 -1
- package/dist/prisma-schema/preview-features-of.js +2 -3
- package/dist/prisma-schema/preview-features-of.js.map +1 -1
- package/dist/prisma-schema/schema-block.d.ts +20 -0
- package/dist/prisma-schema/schema-block.d.ts.map +1 -0
- package/dist/prisma-schema/schema-block.js +45 -0
- package/dist/prisma-schema/schema-block.js.map +1 -0
- package/dist/prisma-schema/schema-code.d.ts +7 -0
- package/dist/prisma-schema/schema-code.d.ts.map +1 -0
- package/dist/prisma-schema/schema-code.js +10 -0
- package/dist/prisma-schema/schema-code.js.map +1 -0
- package/dist/prisma-schema/schema-list.d.ts +14 -0
- package/dist/prisma-schema/schema-list.d.ts.map +1 -0
- package/dist/prisma-schema/schema-list.js +33 -0
- package/dist/prisma-schema/schema-list.js.map +1 -0
- package/dist/prisma-schema/with-datasource-schema.d.ts +5 -1
- package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -1
- package/dist/prisma-schema/with-datasource-schema.js +12 -5
- package/dist/prisma-schema/with-datasource-schema.js.map +1 -1
- package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -1
- package/dist/prisma-schema/with-preview-feature.js +6 -14
- package/dist/prisma-schema/with-preview-feature.js.map +1 -1
- package/dist/refusals/cut-factories.js +2 -2
- package/dist/refusals/cut-factories.js.map +1 -1
- package/dist/refusals/read-concept-error.d.ts.map +1 -1
- package/dist/refusals/read-concept-error.js +2 -2
- package/dist/refusals/read-concept-error.js.map +1 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +35 -114
- package/dist/run.js.map +1 -1
- package/dist/sdk/put-file.d.ts +5 -2
- package/dist/sdk/put-file.d.ts.map +1 -1
- package/dist/sdk/put-file.js +6 -2
- package/dist/sdk/put-file.js.map +1 -1
- package/dist/sdk/sdk-scripts.d.ts +4 -3
- package/dist/sdk/sdk-scripts.d.ts.map +1 -1
- package/dist/sdk/sdk-scripts.js +6 -5
- package/dist/sdk/sdk-scripts.js.map +1 -1
- package/dist/sdk/wire-sdk.d.ts.map +1 -1
- package/dist/sdk/wire-sdk.js +10 -1
- package/dist/sdk/wire-sdk.js.map +1 -1
- package/dist/slice/verify-slice.js +2 -2
- package/dist/source-text/block-after.d.ts +8 -0
- package/dist/source-text/block-after.d.ts.map +1 -0
- package/dist/source-text/block-after.js +35 -0
- package/dist/source-text/block-after.js.map +1 -0
- package/dist/source-text/bound-by.d.ts +4 -0
- package/dist/source-text/bound-by.d.ts.map +1 -0
- package/dist/source-text/bound-by.js +5 -0
- package/dist/source-text/bound-by.js.map +1 -0
- package/dist/source-text/class-body.d.ts +8 -0
- package/dist/source-text/class-body.d.ts.map +1 -0
- package/dist/source-text/class-body.js +11 -0
- package/dist/source-text/class-body.js.map +1 -0
- package/dist/source-text/import-statement.d.ts +17 -0
- package/dist/source-text/import-statement.d.ts.map +1 -0
- package/dist/source-text/import-statement.js +2 -0
- package/dist/source-text/import-statement.js.map +1 -0
- package/dist/source-text/import-statements.d.ts +20 -0
- package/dist/source-text/import-statements.d.ts.map +1 -0
- package/dist/source-text/import-statements.js +53 -0
- package/dist/source-text/import-statements.js.map +1 -0
- package/dist/source-text/index.d.ts +7 -0
- package/dist/source-text/index.d.ts.map +1 -0
- package/dist/source-text/index.js +6 -0
- package/dist/source-text/index.js.map +1 -0
- package/dist/source-text/line-of.d.ts +8 -0
- package/dist/source-text/line-of.d.ts.map +1 -0
- package/dist/source-text/line-of.js +7 -0
- package/dist/source-text/line-of.js.map +1 -0
- package/dist/source-text/list-literal.d.ts +24 -0
- package/dist/source-text/list-literal.d.ts.map +1 -0
- package/dist/source-text/list-literal.js +68 -0
- package/dist/source-text/list-literal.js.map +1 -0
- package/dist/source-text/object-entry.d.ts +14 -0
- package/dist/source-text/object-entry.d.ts.map +1 -0
- package/dist/source-text/object-entry.js +26 -0
- package/dist/source-text/object-entry.js.map +1 -0
- package/dist/source-text/object-literal.d.ts +27 -0
- package/dist/source-text/object-literal.d.ts.map +1 -0
- package/dist/source-text/object-literal.js +66 -0
- package/dist/source-text/object-literal.js.map +1 -0
- package/dist/source-text/parts-between.d.ts +8 -0
- package/dist/source-text/parts-between.d.ts.map +1 -0
- package/dist/source-text/parts-between.js +33 -0
- package/dist/source-text/parts-between.js.map +1 -0
- package/dist/source-text/read-imports.d.ts +9 -0
- package/dist/source-text/read-imports.d.ts.map +1 -0
- package/dist/source-text/read-imports.js +46 -0
- package/dist/source-text/read-imports.js.map +1 -0
- package/dist/source-text/read-source.d.ts +10 -0
- package/dist/source-text/read-source.d.ts.map +1 -0
- package/dist/source-text/read-source.js +2 -0
- package/dist/source-text/read-source.js.map +1 -0
- package/dist/source-text/source-text.d.ts +21 -0
- package/dist/source-text/source-text.d.ts.map +1 -0
- package/dist/source-text/source-text.js +38 -0
- package/dist/source-text/source-text.js.map +1 -0
- package/dist/source-text/span.d.ts +6 -0
- package/dist/source-text/span.d.ts.map +1 -0
- package/dist/source-text/span.js +2 -0
- package/dist/source-text/span.js.map +1 -0
- package/dist/stack/audit-vars.d.ts.map +1 -1
- package/dist/stack/audit-vars.js +4 -3
- package/dist/stack/audit-vars.js.map +1 -1
- package/dist/stack/authentication-vars.d.ts +1 -1
- package/dist/stack/authentication-vars.d.ts.map +1 -1
- package/dist/stack/authentication-vars.js +3 -1
- package/dist/stack/authentication-vars.js.map +1 -1
- package/dist/stack/broker-vars.d.ts +1 -1
- package/dist/stack/broker-vars.d.ts.map +1 -1
- package/dist/stack/broker-vars.js +2 -1
- package/dist/stack/broker-vars.js.map +1 -1
- package/dist/stack/files-vars.d.ts +1 -1
- package/dist/stack/files-vars.d.ts.map +1 -1
- package/dist/stack/files-vars.js +2 -1
- package/dist/stack/files-vars.js.map +1 -1
- package/dist/stack/one.d.ts +6 -2
- package/dist/stack/one.d.ts.map +1 -1
- package/dist/stack/one.js +5 -1
- package/dist/stack/one.js.map +1 -1
- package/dist/stack/persistence-vars.d.ts.map +1 -1
- package/dist/stack/persistence-vars.js +9 -14
- package/dist/stack/persistence-vars.js.map +1 -1
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +28 -26
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/stack/with-database.d.ts.map +1 -1
- package/dist/stack/with-database.js +3 -1
- package/dist/stack/with-database.js.map +1 -1
- package/dist/stories/read-stories.js +2 -2
- package/dist/stories/read-stories.js.map +1 -1
- package/dist/templating/render-template.d.ts +4 -1
- package/dist/templating/render-template.d.ts.map +1 -1
- package/dist/templating/render-template.js +9 -3
- package/dist/templating/render-template.js.map +1 -1
- package/dist/templating/rendering.d.ts +5 -0
- package/dist/templating/rendering.d.ts.map +1 -1
- package/dist/templating/rendering.js +14 -6
- package/dist/templating/rendering.js.map +1 -1
- package/dist/templating/spoken-for.d.ts +15 -0
- package/dist/templating/spoken-for.d.ts.map +1 -0
- package/dist/templating/spoken-for.js +21 -0
- package/dist/templating/spoken-for.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/read-workers.js +2 -2
- package/dist/worker/read-workers.js.map +1 -1
- package/dist/worker/worker-generators.js +4 -4
- package/dist/worker/worker-generators.js.map +1 -1
- package/dist/worker/{changed-files.d.ts → worktree-files.d.ts} +2 -2
- package/dist/worker/worktree-files.d.ts.map +1 -0
- package/dist/worker/worktree-files.js +10 -0
- package/dist/worker/worktree-files.js.map +1 -0
- package/dist/workspace/stage-if-allowed.d.ts +22 -0
- package/dist/workspace/stage-if-allowed.d.ts.map +1 -0
- package/dist/workspace/stage-if-allowed.js +97 -0
- package/dist/workspace/stage-if-allowed.js.map +1 -0
- package/dist/workspace/updated-and-skipped.d.ts +20 -0
- package/dist/workspace/updated-and-skipped.d.ts.map +1 -0
- package/dist/workspace/updated-and-skipped.js +11 -0
- package/dist/workspace/updated-and-skipped.js.map +1 -0
- package/dist/workspace/workspace.d.ts +9 -8
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +13 -12
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +5 -13
- package/dist/workspace/write-if-allowed.d.ts.map +1 -1
- package/dist/workspace/write-if-allowed.js +9 -69
- package/dist/workspace/write-if-allowed.js.map +1 -1
- package/dist/workspace/written-of.d.ts +8 -2
- package/dist/workspace/written-of.d.ts.map +1 -1
- package/dist/workspace/written-of.js +39 -11
- package/dist/workspace/written-of.js.map +1 -1
- package/package.json +6 -6
- package/templates/acl/translator.spec.ts.tpl +6 -3
- package/templates/acl/translator.ts.tpl +4 -2
- package/templates/aggregate/aggregate.spec.ts.tpl +3 -2
- package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +3 -3
- package/templates/command/handler.declared.ts.tpl +13 -21
- package/templates/command/handler.spec.buses.ts.tpl +5 -4
- package/templates/command/handler.spec.container.ts.tpl +18 -4
- package/templates/command/handler.ts.tpl +13 -23
- package/templates/domain-event/domain-event.ts.tpl +1 -7
- package/templates/e2e/e2e-reaction.spec.ts.tpl +6 -0
- package/templates/e2e/e2e.spec.ts.tpl +4 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +7 -3
- package/templates/event-handler/event-handler.spec.ts.tpl +8 -9
- package/templates/event-handler/event-handler.ts.tpl +7 -3
- package/templates/gateway/adapter.declared.ts.tpl +1 -1
- package/templates/gateway/adapter.ts.tpl +1 -1
- package/templates/gateway/contract.platform-test.declared.tpl +8 -0
- package/templates/gateway/contract.platform.declared.tpl +8 -0
- package/templates/gateway/contract.wiring.container.tpl +8 -0
- package/templates/gateway/wiring.container.tpl +0 -1
- package/templates/init/e2e/jest.e2e.config.js.tpl +2 -0
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -0
- package/templates/init/jest.config.js.tpl +2 -0
- package/templates/init/platform/auth/authorization/authorization.container.ts.tpl +19 -2
- package/templates/init/platform/auth/authorization/use-case-protection.ts.tpl +5 -2
- package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +3 -2
- package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -2
- package/templates/init/platform/database/schema.prisma.tpl +2 -0
- package/templates/init/platform/events/custom-event-bus.ts.tpl +1 -1
- package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -2
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +9 -1
- package/templates/init/platform/observability/create-logger.winston.ts.tpl +1 -2
- package/templates/init/rules/application.md.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +2 -2
- package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -2
- package/templates/integration-handler/integration-handler.spec.ts.tpl +5 -6
- package/templates/integration-handler/integration-handler.ts.tpl +6 -4
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/jest.mutation.config.js.tpl +2 -0
- package/templates/pipeline/knip.json.tpl +0 -2
- package/templates/pipeline/package-scripts.json +4 -4
- package/templates/pipeline/vitest.config.ts.tpl +2 -0
- package/templates/pipeline/vitest.mutation.config.ts.tpl +2 -0
- package/templates/policy/policy.declared.ts.tpl +4 -4
- package/templates/policy/policy.spec.declared.ts.tpl +3 -14
- package/templates/policy/policy.spec.ts.tpl +3 -9
- package/templates/policy/policy.ts.tpl +2 -3
- package/templates/presets/identity/context/domain/events/account-deactivated.event.ts.tpl +1 -8
- package/templates/presets/identity/context/domain/events/account-provisioned.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-granted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-accepted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-declined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-issued.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-joined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-removed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-role-changed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/organisation-opened.event.ts.tpl +3 -3
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/test/unit/account.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/delegation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/invitation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/member.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/organisation.aggregate.spec.ts.tpl +3 -2
- package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +0 -1
- package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
- package/templates/process/process.spec.ts.tpl +5 -5
- package/templates/process/timeout-job.declared.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.buses.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.container.ts.tpl +2 -2
- package/templates/process/timeout-job.ts.tpl +2 -2
- package/templates/projection/projection.manual.ts.tpl +8 -1
- package/templates/projection/projection.spec.ts.tpl +18 -4
- package/templates/projection/projection.ts.tpl +28 -1
- package/templates/query/handler.declared.ts.tpl +8 -4
- package/templates/query/handler.spec.container.ts.tpl +13 -0
- package/templates/query/handler.ts.tpl +8 -4
- package/templates/query/reader.fake.ts.tpl +6 -4
- package/templates/query/reader.in-memory.ts.tpl +3 -4
- package/templates/query/reader.spec.ts.tpl +19 -0
- package/templates/repository/contract.spec.ts.tpl +21 -12
- package/templates/repository/drizzle/mapper.ts.tpl +5 -9
- package/templates/repository/drizzle/repository.ts.tpl +11 -35
- package/templates/repository/fake.ts.tpl +19 -0
- package/templates/repository/knex/mapper.ts.tpl +4 -7
- package/templates/repository/knex/repository.ts.tpl +12 -73
- package/templates/repository/none/repository.ts.tpl +9 -12
- package/templates/repository/prisma/mapper.ts.tpl +5 -9
- package/templates/repository/prisma/repository.ts.tpl +10 -70
- package/templates/repository/typeorm/mapper.ts.tpl +4 -7
- package/templates/repository/typeorm/repository.ts.tpl +10 -63
- package/templates/test-world/world.buses.ts.tpl +1 -1
- package/templates/test-world/world.container.ts.tpl +0 -1
- package/dist/check/catalogue/clean-rule-ids.d.ts +0 -3
- package/dist/check/catalogue/clean-rule-ids.d.ts.map +0 -1
- package/dist/check/catalogue/clean-rule-ids.js +0 -14
- package/dist/check/catalogue/clean-rule-ids.js.map +0 -1
- package/dist/check/catalogue/default-severities.d.ts +0 -4
- package/dist/check/catalogue/default-severities.d.ts.map +0 -1
- package/dist/check/catalogue/default-severities.js +0 -27
- package/dist/check/catalogue/default-severities.js.map +0 -1
- package/dist/check/catalogue/suppression-rule.d.ts +0 -9
- package/dist/check/catalogue/suppression-rule.d.ts.map +0 -1
- package/dist/check/catalogue/suppression-rule.js +0 -10
- package/dist/check/catalogue/suppression-rule.js.map +0 -1
- package/dist/check/commands/changed-files.d.ts +0 -8
- package/dist/check/commands/changed-files.d.ts.map +0 -1
- package/dist/check/commands/changed-files.js +0 -27
- package/dist/check/commands/changed-files.js.map +0 -1
- package/dist/check/explain/authz-docs.d.ts +0 -3
- package/dist/check/explain/authz-docs.d.ts.map +0 -1
- package/dist/check/explain/authz-docs.js +0 -127
- package/dist/check/explain/authz-docs.js.map +0 -1
- package/dist/check/explain/clean-docs.d.ts +0 -3
- package/dist/check/explain/clean-docs.d.ts.map +0 -1
- package/dist/check/explain/clean-docs.js +0 -39
- package/dist/check/explain/clean-docs.js.map +0 -1
- package/dist/check/explain/context-docs.d.ts +0 -3
- package/dist/check/explain/context-docs.d.ts.map +0 -1
- package/dist/check/explain/context-docs.js +0 -44
- package/dist/check/explain/context-docs.js.map +0 -1
- package/dist/check/explain/domain-docs.d.ts +0 -3
- package/dist/check/explain/domain-docs.d.ts.map +0 -1
- package/dist/check/explain/domain-docs.js +0 -30
- package/dist/check/explain/domain-docs.js.map +0 -1
- package/dist/check/explain/errors-docs.d.ts +0 -3
- package/dist/check/explain/errors-docs.d.ts.map +0 -1
- package/dist/check/explain/errors-docs.js +0 -53
- package/dist/check/explain/errors-docs.js.map +0 -1
- package/dist/check/explain/event-sourcing-docs.d.ts +0 -3
- package/dist/check/explain/event-sourcing-docs.d.ts.map +0 -1
- package/dist/check/explain/event-sourcing-docs.js +0 -62
- package/dist/check/explain/event-sourcing-docs.js.map +0 -1
- package/dist/check/explain/events-docs.d.ts +0 -3
- package/dist/check/explain/events-docs.d.ts.map +0 -1
- package/dist/check/explain/events-docs.js +0 -103
- package/dist/check/explain/events-docs.js.map +0 -1
- package/dist/check/explain/imports-docs.d.ts +0 -3
- package/dist/check/explain/imports-docs.d.ts.map +0 -1
- package/dist/check/explain/imports-docs.js +0 -48
- package/dist/check/explain/imports-docs.js.map +0 -1
- package/dist/check/explain/language-docs.d.ts +0 -3
- package/dist/check/explain/language-docs.d.ts.map +0 -1
- package/dist/check/explain/language-docs.js +0 -40
- package/dist/check/explain/language-docs.js.map +0 -1
- package/dist/check/explain/layer-docs.d.ts +0 -3
- package/dist/check/explain/layer-docs.d.ts.map +0 -1
- package/dist/check/explain/layer-docs.js +0 -41
- package/dist/check/explain/layer-docs.js.map +0 -1
- package/dist/check/explain/layout-docs.d.ts +0 -3
- package/dist/check/explain/layout-docs.d.ts.map +0 -1
- package/dist/check/explain/layout-docs.js +0 -73
- package/dist/check/explain/layout-docs.js.map +0 -1
- package/dist/check/explain/lifecycle-docs.d.ts +0 -3
- package/dist/check/explain/lifecycle-docs.d.ts.map +0 -1
- package/dist/check/explain/lifecycle-docs.js +0 -33
- package/dist/check/explain/lifecycle-docs.js.map +0 -1
- package/dist/check/explain/module-docs.d.ts +0 -3
- package/dist/check/explain/module-docs.d.ts.map +0 -1
- package/dist/check/explain/module-docs.js +0 -40
- package/dist/check/explain/module-docs.js.map +0 -1
- package/dist/check/explain/nest-docs.d.ts +0 -3
- package/dist/check/explain/nest-docs.d.ts.map +0 -1
- package/dist/check/explain/nest-docs.js +0 -31
- package/dist/check/explain/nest-docs.js.map +0 -1
- package/dist/check/explain/persistence-docs.d.ts +0 -3
- package/dist/check/explain/persistence-docs.d.ts.map +0 -1
- package/dist/check/explain/persistence-docs.js +0 -103
- package/dist/check/explain/persistence-docs.js.map +0 -1
- package/dist/check/explain/ports-docs.d.ts +0 -3
- package/dist/check/explain/ports-docs.d.ts.map +0 -1
- package/dist/check/explain/ports-docs.js +0 -78
- package/dist/check/explain/ports-docs.js.map +0 -1
- package/dist/check/explain/privacy-docs.d.ts +0 -3
- package/dist/check/explain/privacy-docs.d.ts.map +0 -1
- package/dist/check/explain/privacy-docs.js +0 -65
- package/dist/check/explain/privacy-docs.js.map +0 -1
- package/dist/check/explain/rule-docs.d.ts +0 -4
- package/dist/check/explain/rule-docs.d.ts.map +0 -1
- package/dist/check/explain/rule-docs.js +0 -50
- package/dist/check/explain/rule-docs.js.map +0 -1
- package/dist/check/explain/scheduling-docs.d.ts +0 -3
- package/dist/check/explain/scheduling-docs.d.ts.map +0 -1
- package/dist/check/explain/scheduling-docs.js +0 -71
- package/dist/check/explain/scheduling-docs.js.map +0 -1
- package/dist/check/explain/schema-docs.d.ts +0 -3
- package/dist/check/explain/schema-docs.d.ts.map +0 -1
- package/dist/check/explain/schema-docs.js +0 -28
- package/dist/check/explain/schema-docs.js.map +0 -1
- package/dist/check/explain/standard-docs.d.ts +0 -3
- package/dist/check/explain/standard-docs.d.ts.map +0 -1
- package/dist/check/explain/standard-docs.js +0 -61
- package/dist/check/explain/standard-docs.js.map +0 -1
- package/dist/check/explain/tenancy-docs.d.ts +0 -3
- package/dist/check/explain/tenancy-docs.d.ts.map +0 -1
- package/dist/check/explain/tenancy-docs.js +0 -39
- package/dist/check/explain/tenancy-docs.js.map +0 -1
- package/dist/check/explain/tree-docs.d.ts +0 -3
- package/dist/check/explain/tree-docs.d.ts.map +0 -1
- package/dist/check/explain/tree-docs.js +0 -132
- package/dist/check/explain/tree-docs.js.map +0 -1
- package/dist/check/explain/wiring-docs.d.ts +0 -3
- package/dist/check/explain/wiring-docs.d.ts.map +0 -1
- package/dist/check/explain/wiring-docs.js +0 -114
- package/dist/check/explain/wiring-docs.js.map +0 -1
- package/dist/check/project/source-at.d.ts +0 -8
- package/dist/check/project/source-at.d.ts.map +0 -1
- package/dist/check/project/source-at.js +0 -29
- package/dist/check/project/source-at.js.map +0 -1
- package/dist/check/purity/purity-rule.d.ts +0 -13
- package/dist/check/purity/purity-rule.d.ts.map +0 -1
- package/dist/check/purity/purity-rule.js +0 -2
- package/dist/check/purity/purity-rule.js.map +0 -1
- package/dist/check/scan/statement-of.d.ts +0 -5
- package/dist/check/scan/statement-of.d.ts.map +0 -1
- package/dist/check/scan/statement-of.js +0 -70
- package/dist/check/scan/statement-of.js.map +0 -1
- package/dist/check/suppressions/is-suppressed.d.ts +0 -8
- package/dist/check/suppressions/is-suppressed.d.ts.map +0 -1
- package/dist/check/suppressions/is-suppressed.js +0 -11
- package/dist/check/suppressions/is-suppressed.js.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.d.ts +0 -2
- package/dist/check/suppressions/suppression-rule-id.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.js +0 -2
- package/dist/check/suppressions/suppression-rule-id.js.map +0 -1
- package/dist/check/suppressions/suppression-violations.d.ts +0 -6
- package/dist/check/suppressions/suppression-violations.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-violations.js +0 -25
- package/dist/check/suppressions/suppression-violations.js.map +0 -1
- package/dist/commands/parse-migration-arguments.d.ts +0 -11
- package/dist/commands/parse-migration-arguments.d.ts.map +0 -1
- package/dist/commands/parse-migration-arguments.js +0 -17
- package/dist/commands/parse-migration-arguments.js.map +0 -1
- package/dist/generate/errors/class-body.d.ts +0 -8
- package/dist/generate/errors/class-body.d.ts.map +0 -1
- package/dist/generate/errors/class-body.js +0 -11
- package/dist/generate/errors/class-body.js.map +0 -1
- package/dist/generate/flags-of.d.ts +0 -4
- package/dist/generate/flags-of.d.ts.map +0 -1
- package/dist/generate/flags-of.js +0 -6
- package/dist/generate/flags-of.js.map +0 -1
- package/dist/generate/kinds/tables-files.d.ts +0 -3
- package/dist/generate/kinds/tables-files.d.ts.map +0 -1
- package/dist/generate/kinds/tables-files.js +0 -7
- package/dist/generate/kinds/tables-files.js.map +0 -1
- package/dist/generate/shared-writes.d.ts +0 -12
- package/dist/generate/shared-writes.d.ts.map +0 -1
- package/dist/generate/shared-writes.js +0 -127
- package/dist/generate/shared-writes.js.map +0 -1
- package/dist/merge/order/comes-after.d.ts +0 -8
- package/dist/merge/order/comes-after.d.ts.map +0 -1
- package/dist/merge/order/comes-after.js +0 -9
- package/dist/merge/order/comes-after.js.map +0 -1
- package/dist/merge/order/in-order.d.ts +0 -4
- package/dist/merge/order/in-order.d.ts.map +0 -1
- package/dist/merge/order/in-order.js +0 -6
- package/dist/merge/order/in-order.js.map +0 -1
- package/dist/merge/order/migrations-of-commit.d.ts +0 -7
- package/dist/merge/order/migrations-of-commit.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-commit.js +0 -43
- package/dist/merge/order/migrations-of-commit.js.map +0 -1
- package/dist/merge/order/migrations-of-tree.d.ts +0 -9
- package/dist/merge/order/migrations-of-tree.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-tree.js +0 -25
- package/dist/merge/order/migrations-of-tree.js.map +0 -1
- package/dist/merge/order/ordered-migration.d.ts.map +0 -1
- package/dist/merge/order/ordered-migration.js.map +0 -1
- package/dist/merge/restamp-class.d.ts.map +0 -1
- package/dist/merge/restamp-class.js.map +0 -1
- package/dist/mutation/changed-files.d.ts +0 -7
- package/dist/mutation/changed-files.d.ts.map +0 -1
- package/dist/mutation/changed-files.js +0 -15
- package/dist/mutation/changed-files.js.map +0 -1
- package/dist/worker/changed-files.d.ts.map +0 -1
- package/dist/worker/changed-files.js +0 -20
- package/dist/worker/changed-files.js.map +0 -1
- package/templates/gateway/platform-test.declared.tpl +0 -4
- package/templates/gateway/platform.declared.tpl +0 -4
- /package/dist/{merge/order → orm/migrations}/ordered-migration.js +0 -0
- /package/dist/{merge → orm/migrations}/restamp-class.d.ts +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export const TENANCY_DOCS = {
|
|
2
|
-
'tenancy/scoped-statement': {
|
|
3
|
-
why: 'On shared tables, one statement without its tenant condition reads or overwrites the data of every tenant: the most common and the most damaging leak of a multi-tenant application. The kit puts the condition in one place, the helpers of the ORM package, which read the tenant from the execution scope, refuse work that names none, widen reads only under an audited elevation and never widen writes. A table reached straight from the executor bypasses all of it. Judged in a project whose "stack.tenancy" is not "none": the infrastructure of the contexts, tests aside, but a context declared the control plane of the tenants ("contexts.<name>.tenancy": "control-plane", a deviation recorded in "deviations"), whose tables belong to no tenant since it decides who belongs to which (the identity preset declares its context so). Checked by text, statement by statement: on Knex the executor used other than as the argument of a helper, and raw SQL that may reach rows by itself: a word that reads or writes rows (`select`, `from`, `join`, `insert`, `update`, `delete`, `values`, `call`...) or starts a statement (`table`, `with`, `do`...), a call to a function that is not a known expression (an aggregate, a cast, arithmetic, text), a text that is not a literal or a template that interpolates; a statement of the schema (`create`, `alter`, `drop`, `comment`) with no word of rows, and an aggregate in a select, reach no row by themselves; on Drizzle a read, update or delete whose where carries no tenant condition (inline or in the local it is given), an insert whose row names no tenant, a relational query or a raw execute; on Prisma a statement on the client whose where spreads no `tenantWhere` (a read) or `ownTenantWhere` (an update, a delete), a create whose data spreads no `tenantScopeOf`, `findUnique` and `upsert`, which reach a row by its key when the tenant is never part of the key, raw SQL, and the client held in a variable; on TypeORM the same on the manager (`find*`, `count*`, `update`, `delete`, `insert`, a query builder whose where carries no condition, `insertIgnoringConflict` given a row that names no tenant, `save` and `upsert`, `query`); on the four, a read model store built without its tenant option. The condition has to be a conjunct of the statement, since SQL binds `and` before `or` and an alternative beside it is outside it: on Knex no `.orWhere*` or `.or` at the top of a statement of `tenantTable`, `ownTenantTable` or `whereTenant`, and no `clearWhere()` or `clear(\'where\')`, on the chain, on a local, on what a function of the file answers or in a `modify` (`tenantTable`, `ownTenantTable` and `whereTenant` also refuse them when the statement is built, `UngroupedOrError` and `ClearedTenantConditionError`, and hold the text of a `whereRaw`, or a `knex.raw` given to a where, as one conjunct in parentheses; an `orHaving` applies after the where, and is free); on Drizzle the condition is a direct argument of `where` or of `and`, never under `or`, `not` or a `sql` template; on Prisma the helper is spread at the top of the where or in its `AND`, never under `OR`, `NOT` or a relation; on TypeORM the same, a where array spreads it in each entry, a query builder has no `orWhere` at its top, and the condition stands in its last `where` or an `andWhere` after it, since a `where` resets what comes before it. What is in a group beside the condition is correct and accepted: a callback of a Knex `where`, an `or` given to the `and` of Drizzle, an `OR` beside the Prisma spread, `new Brackets(...)` in a TypeORM `andWhere`. A where built by another function is not followed: inline it, or record a deviation. A lock on a business key (count then insert, the next number of a sequence) is taken with `advisoryLock(context, key, { tenant: scope })` or `tryAdvisoryLock` of the ORM package, which is given the context and never the executor: a raw `pg_advisory_xact_lock` is raw SQL, reported with a message that names the helper.',
|
|
4
|
-
bad: `// infrastructure/persistence/knex-invoice.repository.ts
|
|
5
|
-
const row = await this.database.executor()<InvoiceRow, InvoiceRow[]>('invoices').where({ id }).first();
|
|
6
|
-
const all = await this.database.executor().from('invoices').where({ status }); // the executor chained
|
|
7
|
-
// infrastructure/persistence/drizzle-invoice.repository.ts
|
|
8
|
-
await this.database.executor().select().from(invoices).where(eq(invoices.id, id));
|
|
9
|
-
await this.database.executor().query.invoices.findMany(); // a relational query cannot carry the condition
|
|
10
|
-
// infrastructure/persistence/prisma-invoice.repository.ts
|
|
11
|
-
const found = await this.database.client().billingInvoice.findUnique({ where: { id } }); // the key holds no tenant
|
|
12
|
-
await this.database.client().billingInvoice.updateMany({ where: { id, version }, data });
|
|
13
|
-
// infrastructure/persistence/type-orm-invoice.repository.ts
|
|
14
|
-
await this.database.manager().findOneBy(invoices, { id });
|
|
15
|
-
await this.database.manager().save(invoices, row); // writes by the key alone
|
|
16
|
-
await this.database.executor().raw('select pg_advisory_xact_lock(hashtext(?))', [key]); // a lock by hand: one key for every tenant
|
|
17
|
-
// the tenant is not a conjunct: \`and\` binds first, or the condition holds for one branch alone
|
|
18
|
-
await tenantTable<InvoiceRow>(this.database, this.scope, INVOICES).where({ id }).orWhere({ reference: id });
|
|
19
|
-
await this.database.executor().select().from(invoices).where(or(eq(invoices.id, id), tenantCondition(invoices.tenantId, this.scope)));
|
|
20
|
-
await this.database.client().billingInvoice.findMany({ where: { OR: [{ id, ...tenantWhere(this.scope) }, { reference: id }] } });
|
|
21
|
-
await this.database.manager().find(invoices, { where: [{ id, ...tenantWhere(this.scope) }, { reference: id }] });`,
|
|
22
|
-
good: `const row = await tenantTable<InvoiceRow>(this.database, this.scope, INVOICES).where({ id }).first();
|
|
23
|
-
await ownTenantTable<InvoiceRow>(this.database, this.scope, INVOICES).where({ id, version }).update(changes);
|
|
24
|
-
const grouped = tenantTable(this.database, this.scope, INVOICES).select('status', this.database.executor().raw('sum(amount) as due')).groupBy('status');
|
|
25
|
-
const pages = await derivedTable(this.database, grouped, 'dues').orderBy('due', 'desc').limit(20);
|
|
26
|
-
await this.database.executor().select().from(invoices).where(and(eq(invoices.id, id), tenantCondition(invoices.tenantId, this.scope)));
|
|
27
|
-
const found = await this.database.client().billingInvoice.findFirst({ where: { id, ...tenantWhere(this.scope) } });
|
|
28
|
-
await this.database.client().billingInvoice.updateMany({ where: { id, version, ...ownTenantWhere(this.scope) }, data });
|
|
29
|
-
await this.database.manager().findOneBy(invoices, { id, ...tenantWhere(this.scope) });
|
|
30
|
-
await this.database.manager().update(invoices, { id, version, ...ownTenantWhere(this.scope) }, row);
|
|
31
|
-
await advisoryLock(this.database, 'invoice-number', { tenant: this.scope }); // held until the unit of work ends
|
|
32
|
-
// alternatives in a group beside the condition
|
|
33
|
-
await tenantTable<InvoiceRow>(this.database, this.scope, INVOICES).where((either) => either.where({ id }).orWhere({ reference: id }));
|
|
34
|
-
await this.database.executor().select().from(invoices).where(and(tenantCondition(invoices.tenantId, this.scope), or(eq(invoices.id, id), eq(invoices.reference, id))));
|
|
35
|
-
await this.database.client().billingInvoice.findMany({ where: { ...tenantWhere(this.scope), OR: [{ id }, { reference: id }] } });
|
|
36
|
-
await this.database.manager().find(invoices, { where: [{ id, ...tenantWhere(this.scope) }, { reference: id, ...tenantWhere(this.scope) }] });`,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=tenancy-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenancy-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tenancy-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,0BAA0B,EAAE;QAC1B,GAAG,EAAE,o4HAAo4H;QACz4H,GAAG,EAAE;;;;;;;;;;;;;;;;;kHAiByG;QAC9G,IAAI,EAAE;;;;;;;;;;;;;;8IAcoI;KAC3I;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkIvD,CAAC"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export const TREE_DOCS = {
|
|
2
|
-
'tree/closed': {
|
|
3
|
-
why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. Its sources are .ts files: a .js, .mjs, .cjs, .jsx, .tsx, .mts or .cts file in a context is read by no rule and is reported. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual. A context divided into modules of its model keeps one more place in the explicit style: <module>/<module>.module.ts, at the root of the folder of each module, registers what the module holds (its handlers, consumers, reactions, jobs and routes) and is composed by <context>.module.ts, which then stays small; nothing else sits at the root of a module. The tree is read as git sees it: what git ignores, and a dot-directory of a context such as the .claude/ a sandbox leaves behind, are not part of it.',
|
|
4
|
-
bad: `contexts/billing/domain/utils/rounding.ts`,
|
|
5
|
-
good: `contexts/billing/domain/value-objects/money.vo.ts
|
|
6
|
-
contexts/billing/billing.declarations.ts // declared style only
|
|
7
|
-
contexts/billing/application/application.declarations.ts // declared style only
|
|
8
|
-
contexts/billing/invoices/invoices.module.ts // explicit style, a module of the model
|
|
9
|
-
contexts/billing/invoices/test/unit/invoice.aggregate.spec.ts // a module holds its tests
|
|
10
|
-
contexts/billing/shared/infrastructure/persistence/billing.schema.ts // what belongs to no module`,
|
|
11
|
-
},
|
|
12
|
-
'tree/context-doc': {
|
|
13
|
-
why: 'CONTEXT.md is where the vocabulary and the boundaries are agreed with the domain experts. Without it, names drift and nobody can tell whether a concept belongs here. The classification says how much design effort the context deserves.',
|
|
14
|
-
bad: `contexts/billing/ without CONTEXT.md, or with "## Classification" saying generic while the config says core`,
|
|
15
|
-
good: `## Purpose, ## Classification, ## Ubiquitous language, ## Aggregates, ## Published events, ## Relationships`,
|
|
16
|
-
},
|
|
17
|
-
'tree/documented-paths': {
|
|
18
|
-
why: 'A plan, a design note or a review of docs/architecture is read by the next person or agent before the code. When a rule moved a file (a service of application/services became a port), a document that still names the old place sends its reader to a design the code no longer has, and a worker may build it again. Each path of a context written as code in a Markdown file of docs/architecture is judged as tree/closed judges a file: its directories and the file itself must have a place in the canonical tree. A path written relative to its context (`application/services/credit-limit.service.ts`) names no context: it is reported only when every declared context refuses it, their extra directories considered; a path starting with `test/` is left alone, since the project root has `test/e2e/` too. A path that does not exist yet is not reported: a plan names files to create; nor is a path through a dot-directory of a context, which is no part of the tree. It is a warning.',
|
|
19
|
-
bad: `docs/architecture/design-review.md: "add \`src/contexts/billing/application/services/credit-limit.service.ts\`"`,
|
|
20
|
-
good: `docs/architecture/design-review.md: "add the port \`src/contexts/billing/application/ports/credit-limit-reader.port.ts\`"`,
|
|
21
|
-
},
|
|
22
|
-
'naming/suffix': {
|
|
23
|
-
why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts. A barrel (index.ts) in a role folder that has a suffix is reported: a role folder holds its role files and nothing else, each imported by its own path.',
|
|
24
|
-
bad: `domain/aggregates/Invoice.ts`,
|
|
25
|
-
good: `domain/aggregates/invoice.aggregate.ts
|
|
26
|
-
application/commands/issue-invoice/issue-invoice.result.ts
|
|
27
|
-
application/scheduling/send-reminders.job.ts
|
|
28
|
-
presentation/http/invoices.routes.ts
|
|
29
|
-
presentation/http/invoices/issue-invoice/issue-invoice.controller.ts`,
|
|
30
|
-
},
|
|
31
|
-
'naming/search-not-list': {
|
|
32
|
-
why: 'A read that takes criteria, a scope or a page is a search, and the whole project says so with one word: a port, its adapters, its fakes, the query and its folder. Two words for one thing make a reader wonder what the difference is, and a generated name then disagrees with a written one. Judged: a method named list, or list followed by an upper-case letter, in domain/repositories/*.repository.ts, application/ports/*.port.ts, infrastructure/ and test/fakes/ of a context (properties are not judged, nor listAccessible, which the Authorizer port of the kit requires); and under application/queries/, a folder or a file named list or starting with list- or list., and a class named List or starting with List followed by an upper-case letter. A read of one element or none stays findById or findBy...',
|
|
33
|
-
bad: `// application/ports/invoice-reader.port.ts
|
|
34
|
-
abstract list(scope: AccessScope, page: PageRequest<InvoiceSort>): Promise<Page<InvoiceLine>>;
|
|
35
|
-
abstract listByCustomer(customerId: string): Promise<readonly InvoiceLine[]>;
|
|
36
|
-
// application/queries/list-invoices/list-invoices.query.ts
|
|
37
|
-
export class ListInvoicesQuery {}`,
|
|
38
|
-
good: `// application/ports/invoice-reader.port.ts
|
|
39
|
-
abstract search(scope: AccessScope, page: PageRequest<InvoiceSort>): Promise<Page<InvoiceLine>>;
|
|
40
|
-
abstract searchByCustomer(customerId: string): Promise<readonly InvoiceLine[]>;
|
|
41
|
-
abstract findById(id: string): Promise<InvoiceLine | undefined>;
|
|
42
|
-
// application/queries/search-invoices/search-invoices.query.ts
|
|
43
|
-
export class SearchInvoicesQuery {}`,
|
|
44
|
-
},
|
|
45
|
-
'naming/business-name': {
|
|
46
|
-
why: 'The code of the model is read by people who speak the business, and it is the ubiquitous language written down: a handler that loads an appointment and calls it target, data or item makes every reader translate it back, and hides which concept a line handles. A generic name also spreads, because the next line copies it: the command handler templates of the kit wrote target until 0.17, and forty handlers of the example inherited it. Judged: a variable, a loop variable, a destructured binding, a parameter (of a function, a method, a signature or an arrow) and a property (of a class, an interface or a type of an object) under domain/ and application/ of a context, and in the shared kernel outside presentation/, named target, targets, data, item, items, obj, object, thing, things, stuff, info, element, el, tmp, temp, foo, bar or baz; "businessNames": { "words": [..] } replaces the list and { "allow": [..] } removes words from it. A key of an object literal follows the type it is written for and is not judged, nor infrastructure, presentation, the platform and the tests. npx eslint --fix renames a variable built by X.create(..) or new X(..), or read from a repository, with every use of it; a loop variable is reported with the singular of its collection.',
|
|
47
|
-
bad: `const target = await this.appointmentRepository.findById(command.appointmentId);
|
|
48
|
-
for (const target of due) {
|
|
49
|
-
target.expire(now);
|
|
50
|
-
}`,
|
|
51
|
-
good: `const appointment = await this.appointmentRepository.findById(command.appointmentId);
|
|
52
|
-
for (const reminder of dueReminders) {
|
|
53
|
-
reminder.send(now);
|
|
54
|
-
}`,
|
|
55
|
-
},
|
|
56
|
-
'naming/one-concept-per-file': {
|
|
57
|
-
why: 'One concept per file keeps the file name truthful and the diff of a change small. A second class in an aggregate file is usually an entity or a value object that deserves its own name and its own tests. In the declared style a role file is found by its name and holds one declared class: a second class carrying a declaration decorator in the same file is reported, whatever the role.',
|
|
58
|
-
bad: `// invoice.aggregate.ts
|
|
59
|
-
export class Invoice {}
|
|
60
|
-
export class InvoiceLine {}
|
|
61
|
-
// application/authorization/invoice.policy.ts, declared style
|
|
62
|
-
@Policy(billingPermissions['invoice.void'], { name: 'billing.only-issuer-voids' })
|
|
63
|
-
export class OnlyIssuerVoidsPolicy {}
|
|
64
|
-
@Policy(billingPermissions['invoice.issue'], { name: 'billing.only-accountant-issues' })
|
|
65
|
-
export class OnlyAccountantIssuesPolicy {}`,
|
|
66
|
-
good: `// invoice.aggregate.ts
|
|
67
|
-
export class Invoice {}
|
|
68
|
-
// ../entities/invoice-line.entity.ts
|
|
69
|
-
export class InvoiceLine {}`,
|
|
70
|
-
},
|
|
71
|
-
'test/spec-required': {
|
|
72
|
-
why: 'Aggregates, value objects, domain services, handlers and jobs hold the business behaviour and what triggers it; an untested one is an unverified rule. Requiring the spec file makes the missing test visible at the moment the code is written. An abstract base (every exported class abstract, no exported function), such as a strategy of domain/services, needs none: the specs of its implementations hold its behaviour.',
|
|
73
|
-
bad: `domain/aggregates/invoice.aggregate.ts with no test/**/invoice.aggregate.spec.ts`,
|
|
74
|
-
good: `test/unit/invoice.aggregate.spec.ts`,
|
|
75
|
-
},
|
|
76
|
-
'test/coverage-governed': {
|
|
77
|
-
why: 'A coverage threshold is a floor that says how much of a layer no test has ever run, and it only says so while the measure is honest. One source holds it: the "coverage" key of ddd-ts-kit.config.json gives, per layer, the four rates every context must reach (the reference when the key is absent), and the test runner config reads them through governedCoverage of @ddd-ts-kit/testing/coverage, which also measures the four layers of every context, the files no test loads included. Raising a threshold is free; lowering one is a deviation with its decision record (governance/recorded-deviation). What this rule refuses is the quiet way around: an include, an exclude or thresholds written by hand in the runner config, the same set by a flag in a script, and a coverage ignore comment (v8 ignore, istanbul ignore, c8 ignore) in a production source that names no decision record. A rate proves that code ran under a test, never that the test asserts anything: the floor is not a goal.',
|
|
78
|
-
bad: `// vitest.config.ts
|
|
79
|
-
coverage: { ...governedCoverage(mode), exclude: ['src/contexts/billing/infrastructure/**'] }
|
|
80
|
-
// domain/aggregates/invoice.aggregate.ts
|
|
81
|
-
/* v8 ignore next 3 */`,
|
|
82
|
-
good: `// vitest.config.ts
|
|
83
|
-
coverage: { provider: 'v8', reporter: ['text', 'cobertura', 'lcov'], ...governedCoverage(mode) }
|
|
84
|
-
// ddd-ts-kit.config.json
|
|
85
|
-
"coverage": { "infrastructure": { "branches": 50 } },
|
|
86
|
-
"deviations": [{ "what": "coverage.infrastructure.branches", "adr": "0011", "reason": "The driver's failure branches are held by its contract suite." }]
|
|
87
|
-
// domain/aggregates/invoice.aggregate.ts, under Vitest, whose v8 provider reads v8 hints only
|
|
88
|
-
/* v8 ignore next 3 -- ADR-0012: reached only by the legacy import, removed with it */
|
|
89
|
-
// the same under Jest, whose babel provider reads istanbul hints only
|
|
90
|
-
/* istanbul ignore next -- ADR-0012: reached only by the legacy import, removed with it */`,
|
|
91
|
-
},
|
|
92
|
-
'test/mutation-governed': {
|
|
93
|
-
why: 'A mutation score says how many of the changes made to the domain and the application its tests would notice, and it only says so while the measure is honest. One source holds it: the "mutation" key of ddd-ts-kit.config.json gives the floor of each layer every context must reach, the domain and the application (80 and 75 when the key is absent), and the Stryker config reads it through governedMutation of @ddd-ts-kit/testing/mutation, which also mutates the domain and application layers of every context, the texts of their refusals left out through the ignorer of the kit, since a refusal is asserted by its code and never by its text, every other string measured. Raising the floor is free; lowering it is a deviation with its decision record (governance/recorded-deviation). What this rule refuses is the quiet way around: a mutate, mutator, ignorers, ignoreStatic or thresholds written by hand in the Stryker config, or a config that does not read the kit at all. A survivor is a rule no test states: it is read as a decision, then tested or left alive and said so, never hidden by the configuration.',
|
|
94
|
-
bad: `// stryker.config.mjs
|
|
95
|
-
export default { testRunner: 'vitest', mutate: ['src/contexts/billing/domain/**'], thresholds: { break: 10 } };`,
|
|
96
|
-
good: `// stryker.config.mjs
|
|
97
|
-
import { governedMutation } from '@ddd-ts-kit/testing/mutation';
|
|
98
|
-
export default { testRunner: 'vitest', vitest: { configFile: 'vitest.mutation.config.ts' }, ...governedMutation() };
|
|
99
|
-
// ddd-ts-kit.config.json
|
|
100
|
-
"mutation": { "domain": 70 },
|
|
101
|
-
"deviations": [{ "what": "mutation.domain", "adr": "0013", "reason": "The legacy module is retired next quarter." }]`,
|
|
102
|
-
},
|
|
103
|
-
'test/no-mocks': {
|
|
104
|
-
why: 'A mock asserts that a call was made, not that the outcome is right, so it breaks on every refactoring and passes on wrong behaviour. A fake is a working in-memory implementation held to the same contract suite as the real adapter. Tests assert its state, the published events or the returned value.',
|
|
105
|
-
bad: `const repository = { save: vi.fn() };
|
|
106
|
-
expect(repository.save).toHaveBeenCalledOnce();`,
|
|
107
|
-
good: `const repository = new FakeInvoiceRepository();
|
|
108
|
-
expect(await repository.findById(id)).toBeDefined();`,
|
|
109
|
-
},
|
|
110
|
-
'test/builder-required': {
|
|
111
|
-
why: 'Tests that build aggregates by hand repeat every mandatory field and break together when one is added. A builder has valid defaults and methods in the ubiquitous language, and goes through the public API of the aggregate, so a test states only what matters to the rule it checks and never starts from an invalid state.',
|
|
112
|
-
bad: `domain/aggregates/invoice.aggregate.ts with no test/builders/invoice.builder.ts`,
|
|
113
|
-
good: `// test/builders/invoice.builder.ts
|
|
114
|
-
anInvoice().issued().build();`,
|
|
115
|
-
},
|
|
116
|
-
'test/acceptance-black-box': {
|
|
117
|
-
why: 'An acceptance scenario says what a client of the application observes once a story is built, and it is written before the code of the story: the scenario of a route not built yet fails on its answer, and stays wrapped in `pending(...)` until the rows it names are built. A class of the application imported by the spec would not exist yet, so the spec could not even compile before the code; once it exists, the scenario that calls it tests the class, not what the client gets. The spec drives the routes and asserts the answer, the problem document and the integration events. It may import the builders of a context (test data) and its published language (the contract its clients already read), the support of test/e2e/ and the packages. It is a warning.',
|
|
118
|
-
bad: `// test/acceptance/us5.acceptance.spec.ts
|
|
119
|
-
import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';`,
|
|
120
|
-
good: `// test/acceptance/us5.acceptance.spec.ts
|
|
121
|
-
it('#US5.02 AC1 an accountant issues an invoice', pending(async () => {
|
|
122
|
-
expectStatus(await accountant.post('/invoices', anInvoiceRequest()), 201);
|
|
123
|
-
}));`,
|
|
124
|
-
},
|
|
125
|
-
'test/helper-placed': {
|
|
126
|
-
why: 'test/unit/ and test/integration/ hold specs. A helper written among them (an arrange function several specs import, a factory of test data, an in-memory class) has no name a reader can look for, and the next spec copies it instead of finding it. Each has its place: the arrangement several specs of the context share, the test application or the buses with the fakes of the context, is a world of test/worlds/*.world.ts (generate test-world writes one from the fakes of the context); test data is a builder of test/builders/; an in-memory implementation of a port is a fake of test/fakes/. A file whose name ends with .spec.ts, .test.ts or .d.ts is not reported. It is a warning.',
|
|
127
|
-
bad: `test/unit/scheduling-application.ts // imported by four handler specs`,
|
|
128
|
-
good: `// test/worlds/scheduling.world.ts, written by \`npx ddd-ts-kit generate test-world scheduling\`
|
|
129
|
-
const { application, appointmentRepository } = await aSchedulingWorld({ now: NOW });`,
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=tree-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,k8CAAk8C;QACv8C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;;;kGAKwF;KAC/F;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,g9BAAg9B;QACr9B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,ihCAAihC;QACthC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;;;2FAQiF;KACxF;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,qlCAAqlC;QAC1lC,GAAG,EAAE;gHACuG;QAC5G,IAAI,EAAE;;;;;qHAK2G;KAClH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wiring-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgHzD,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
export const WIRING_DOCS = {
|
|
2
|
-
'composition/only-in-module': {
|
|
3
|
-
why: 'When adapters are created in one place, replacing one (a fake in a test, another provider in production) is a one-line change and tracing can wrap them all. A `new PgRepository()` buried in a handler, or a `bind(Port).toClass(PgRepository)` written outside the composition root, hides a dependency and defeats both. A class carrying @Repository, @Gateway or @Adapter is bound by its declaration, so nothing instantiates it at all. What turns declarations into bindings (contextModule, discoverContext, include on a module builder) is composition too and stays in main.ts, apps/<context>/main.ts, the platform and a module file: <context>.module.ts, or, in a context divided into modules of its model, the <module>/<module>.module.ts it composes.',
|
|
4
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
5
|
-
const repository = new PgInvoiceRepository();
|
|
6
|
-
// infrastructure/external/extend-billing.ts
|
|
7
|
-
builder.include(billingDeclarations);`,
|
|
8
|
-
good: `// billing.module.ts
|
|
9
|
-
const invoiceRepository = new PgInvoiceRepository();
|
|
10
|
-
const issueInvoiceHandler = new IssueInvoiceHandler(invoiceRepository);
|
|
11
|
-
// declared style: infrastructure/persistence/pg-invoice.repository.ts and src/main.ts
|
|
12
|
-
@Repository(InvoiceRepository)
|
|
13
|
-
export class PgInvoiceRepository implements InvoiceRepository {}
|
|
14
|
-
contextModule('billing', billingDeclarations);`,
|
|
15
|
-
},
|
|
16
|
-
'declarations/role-declared': {
|
|
17
|
-
why: 'In the declared style nothing lists the classes of a context: a class is registered because its file has the name of a role and its decorator says which one. A role file whose class declares nothing, or declares another role, is wired nowhere and nobody is told. The names a declaration writes (a consumer, a policy; the name of a job is held by scheduling/job-name) are identities kept in stores and logs, so they are literals; a domain event handler writes none, it is attached under the name its event class declares once, static readonly eventName. The domain declares nothing: a decorator there would make the model depend on its own wiring. Checked in declared-style projects only.',
|
|
18
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
19
|
-
export class IssueInvoiceHandler {}
|
|
20
|
-
// application/policies/only-issuer-voids.policy.ts
|
|
21
|
-
@Policy(billingPermissions['invoice.void'], { name: POLICY_NAME })
|
|
22
|
-
// domain/aggregates/invoice.aggregate.ts
|
|
23
|
-
@Repository(InvoiceRepository)
|
|
24
|
-
export class Invoice {}`,
|
|
25
|
-
good: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
26
|
-
@CommandHandler(IssueInvoiceCommand)
|
|
27
|
-
export class IssueInvoiceHandler {}
|
|
28
|
-
// application/event-handlers/invoice-issued.event-handler.ts
|
|
29
|
-
@DomainEventHandler(InvoiceIssued)
|
|
30
|
-
export class InvoiceIssuedEventHandler {}`,
|
|
31
|
-
},
|
|
32
|
-
'declarations/barrel-current': {
|
|
33
|
-
why: 'With stack.assembly set to barrel, the composition root assembles a context from <context>.declarations.ts and from nothing else. That file only re-exports the generated <layer>.declarations.ts of each layer of the context that holds a role file (application/application.declarations.ts, infrastructure/infrastructure.declarations.ts, presentation/presentation.declarations.ts), in each module of its model. A role file added by hand and missing from the declarations of its layer compiles, passes its unit tests and is never registered. The same file registers what each constructor of its layer is injected, read from its signature: a constructor changed without regenerating would be given the dependencies of the old one. Each file is derived from the tree, one export per role file sorted by path then one injected(Class, [Tokens]) per class that takes something, so it is compared with what the tree says, and the message names the class whose list is stale; the declarations of a layer that holds no role file any more are reported until they are deleted. A context still declared as an earlier version wrote it, the single <context>.declarations.ts of 0.84 or one <folder>.declarations.ts per role folder as 0.85 and 0.86 wrote them (application/commands/commands.declarations.ts), is reported once, at its summary, and ddd-ts-kit docs moves it to the files of its layers. With stack.assembly set to discovery the role files are found at startup, <context>.dependencies.ts holds the lists alone and is compared the same way, and generated declarations left behind are reported.',
|
|
34
|
-
bad: `// application/application.declarations.ts, while IssueInvoiceHandler now also takes a Clock
|
|
35
|
-
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
36
|
-
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
37
|
-
|
|
38
|
-
injected(IssueInvoiceHandler, [InvoiceRepository]);
|
|
39
|
-
|
|
40
|
-
// application/application.declarations.ts, while application/authorization/only-issuer-voids.policy.ts exists
|
|
41
|
-
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';`,
|
|
42
|
-
good: `// application/application.declarations.ts, rewritten by \`ddd-ts-kit generate\`, \`ddd-ts-kit docs\` and \`npm run dev\`
|
|
43
|
-
import { injected } from '@ddd-ts-kit/kernel/declarations';
|
|
44
|
-
import { Clock } from '@ddd-ts-kit/kernel';
|
|
45
|
-
import { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
46
|
-
import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';
|
|
47
|
-
|
|
48
|
-
export * from '@/contexts/billing/application/authorization/only-issuer-voids.policy';
|
|
49
|
-
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
50
|
-
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
51
|
-
|
|
52
|
-
injected(IssueInvoiceHandler, [InvoiceRepository, Clock]);
|
|
53
|
-
|
|
54
|
-
// billing.declarations.ts, the summary the composition root imports
|
|
55
|
-
export * from '@/contexts/billing/application/application.declarations';
|
|
56
|
-
export * from '@/contexts/billing/infrastructure/infrastructure.declarations';`,
|
|
57
|
-
},
|
|
58
|
-
'declarations/constructor-injection': {
|
|
59
|
-
why: 'The constructor signature is the one statement of what a declared class depends on: `ddd-ts-kit docs` reads it and writes the list the composition root injects, so nothing is repeated in the decorator and nothing can disagree with the constructor. That only works when each parameter names exactly one injection token, and a token is a class: an interface, a type alias or a primitive is erased by the compiler, a union names two things, an optional or defaulted parameter says the container might not give a value, which it always does. A constructor inherited from a class of a package cannot be read at all. The compiler is not asked for the types at run time: `emitDecoratorMetadata` exists only with legacy decorators compiled by tsc or swc, not with standard decorators nor under tsx or esbuild. Under "stack.dependencies": "signature" a list left in a decorator is a second statement: it wins at run time, so it is removed when it repeats the constructor (ESLint fixes it) and reported when it differs. A project whose config does not say lists its dependencies in its decorators, as 0.1 did, and may keep doing so.',
|
|
60
|
-
bad: `@CommandHandler(IssueInvoiceCommand)
|
|
61
|
-
export class IssueInvoiceHandler {
|
|
62
|
-
constructor(
|
|
63
|
-
private readonly invoices: InvoiceRepository | undefined,
|
|
64
|
-
private readonly settings: InvoiceSettings, // an interface
|
|
65
|
-
private readonly retries = 3,
|
|
66
|
-
) {}
|
|
67
|
-
}
|
|
68
|
-
// "stack.dependencies": "signature"
|
|
69
|
-
@CommandHandler(IssueInvoiceCommand, [InvoiceRepository, Clock])`,
|
|
70
|
-
good: `@CommandHandler(IssueInvoiceCommand)
|
|
71
|
-
export class IssueInvoiceHandler {
|
|
72
|
-
constructor(
|
|
73
|
-
private readonly invoices: InvoiceRepository,
|
|
74
|
-
private readonly settings: InvoiceSettings, // an abstract class of application/ports, bound to a value in the platform
|
|
75
|
-
private readonly clock: Clock,
|
|
76
|
-
) {}
|
|
77
|
-
}`,
|
|
78
|
-
},
|
|
79
|
-
'declarations/port-adapter-wired': {
|
|
80
|
-
why: 'A port is resolved by its class at start-up, so an adapter that nothing binds compiles, passes the contract suite its spec runs, and is only missed when the application starts without it, or keeps an older adapter bound. declarations/role-declared reads a role file by its suffix; a class of infrastructure/ that implements a port in a file without one, with no declaration and no binding in the composition root, is reported by no other rule. An adapter can be kept unwired on purpose (a provider being replaced, one kept for a fallback): a suppression that names a decision record says so, and tells it from a forgotten declaration. A port no class needs yet is not judged: no file outside the infrastructure and the tests names it but the one that declares it, so nothing misses its adapter at run time; a context wired by hand creates the repository of an aggregate with the first command that needs it, since a constant nothing reads is refused by the lint.',
|
|
81
|
-
bad: `// infrastructure/external/stripe-payment-gateway.ts, imported by no module file and by no file of the platform
|
|
82
|
-
export class StripePaymentGateway implements PaymentGateway {}`,
|
|
83
|
-
good: `// declared style: infrastructure/external/stripe-payment.gateway.ts
|
|
84
|
-
@Gateway(PaymentGateway)
|
|
85
|
-
export class StripePaymentGateway implements PaymentGateway {}
|
|
86
|
-
// explicit style: billing.module.ts
|
|
87
|
-
builder.bind(PaymentGateway).toClass(StripePaymentGateway, [PaymentsSettings]);
|
|
88
|
-
// kept on purpose
|
|
89
|
-
// ddd-ts-kit-disable-next-line declarations/port-adapter-wired -- ADR-0007: kept until the switch back is decided
|
|
90
|
-
export class StripePaymentGateway implements PaymentGateway {}`,
|
|
91
|
-
},
|
|
92
|
-
'config/rule-off-everywhere': {
|
|
93
|
-
why: 'An exception is decided for some files: generated mappers, a legacy module, a migration script. Written as "off" alone, it silences the rule in every file of the project, and the real findings in the others go unseen; the decision record says why the rule is off, not that the exception grew to the whole project. A rule set for some files keeps judging the rest. When the whole project is really meant, "files": ["**"] says it in so many words.',
|
|
94
|
-
bad: `"rules": { "clean/function-size": "off" },
|
|
95
|
-
"deviations": [{ "what": "rules.clean/function-size", "adr": "0004", "reason": "The generated mappers of the legacy ledger are long." }]`,
|
|
96
|
-
good: `"rules": { "clean/function-size": { "severity": "off", "files": ["src/contexts/ledger/infrastructure/legacy/*.mapper.ts"] } },
|
|
97
|
-
"deviations": [{ "what": "rules.clean/function-size", "adr": "0004", "reason": "The generated mappers of the legacy ledger are long." }]`,
|
|
98
|
-
},
|
|
99
|
-
'config/valid': {
|
|
100
|
-
why: 'Every other rule reads the config: a misspelled upstream or rule id silently disables a check. The contexts on disk and in the config have to be the same set, or part of the code is not checked at all. A function limit above the ceiling of 100 lines and an allowance without a file or a reason are read as something else than what is written, so they are reported too.',
|
|
101
|
-
bad: `"rules": { "naming/sufix": "warn" }, "guard": "strict",
|
|
102
|
-
"limits": { "maxFunctionLines": 250 },
|
|
103
|
-
"onePerFile": { "allow": [{ "file": "src/platform/http-server.ts" }] }`,
|
|
104
|
-
good: `"rules": { "naming/suffix": "warn" }, "guard": "advise", // enforce (default), advise or off: how the editor hook reacts
|
|
105
|
-
"limits": { "maxFunctionLines": 40 }, // at most 100
|
|
106
|
-
"onePerFile": { "allow": [{ "file": "src/platform/http-server.ts", "reason": "The server and its two error mappers are one boundary." }] }`,
|
|
107
|
-
},
|
|
108
|
-
'config/suppression-needs-reason': {
|
|
109
|
-
why: 'An exception to an architecture rule is a decision someone will question later. The reason written next to it is what makes it reviewable; a bare suppression is indistinguishable from a shortcut.',
|
|
110
|
-
bad: `// ddd-ts-kit-disable-next-line layer/domain-purity`,
|
|
111
|
-
good: `// ddd-ts-kit-disable-next-line layer/domain-purity -- ADR-0012: decimal.js is our money arithmetic`,
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=wiring-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wiring-docs.js","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2uBAA2uB;QAChvB,GAAG,EAAE;;;sCAG6B;QAClC,IAAI,EAAE;;;;;;+CAMqC;KAC5C;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,irBAAirB;QACtrB,GAAG,EAAE;;;;;;wBAMe;QACpB,IAAI,EAAE;;;;;0CAKgC;KACvC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,mjDAAmjD;QACxjD,GAAG,EAAE;;;;;;;6FAOoF;QACzF,IAAI,EAAE;;;;;;;;;;;;;;+EAcqE;KAC5E;IACD,oCAAoC,EAAE;QACpC,GAAG,EAAE,omCAAomC;QACzmC,GAAG,EAAE;;;;;;;;;iEASwD;QAC7D,IAAI,EAAE;;;;;;;EAOR;KACC;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,o8BAAo8B;QACz8B,GAAG,EAAE;+DACsD;QAC3D,IAAI,EAAE;;;;;;;+DAOqD;KAC5D;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;yIACgI;QACrI,IAAI,EAAE;yIAC+H;KACtI;IACD,cAAc,EAAE;QACd,GAAG,EAAE,kXAAkX;QACvX,GAAG,EAAE;;uEAE8D;QACnE,IAAI,EAAE;;2IAEiI;KACxI;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,qMAAqM;QAC1M,GAAG,EAAE,qDAAqD;QAC1D,IAAI,EAAE,qGAAqG;KAC5G;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Project } from '../model/project.js';
|
|
2
|
-
import type { SourceFile } from '../model/source-file.js';
|
|
3
|
-
/**
|
|
4
|
-
* The source at `file`: the one the project loaded, or, when only one file was loaded
|
|
5
|
-
* (`check-file`), the file an import of it points to, read from disk once.
|
|
6
|
-
*/
|
|
7
|
-
export declare function sourceAt(project: Project, file: string): SourceFile | undefined;
|
|
8
|
-
//# sourceMappingURL=source-at.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-at.d.ts","sourceRoot":"","sources":["../../../src/check/project/source-at.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAgB/E"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { loadSourceFile } from './load-source-file.js';
|
|
4
|
-
const readFromDisk = new WeakMap();
|
|
5
|
-
/**
|
|
6
|
-
* The source at `file`: the one the project loaded, or, when only one file was loaded
|
|
7
|
-
* (`check-file`), the file an import of it points to, read from disk once.
|
|
8
|
-
*/
|
|
9
|
-
export function sourceAt(project, file) {
|
|
10
|
-
const loaded = project.files.find((candidate) => candidate.path === file);
|
|
11
|
-
if (loaded !== undefined) {
|
|
12
|
-
return loaded;
|
|
13
|
-
}
|
|
14
|
-
const cache = readFromDisk.get(project) ?? new Map();
|
|
15
|
-
readFromDisk.set(project, cache);
|
|
16
|
-
if (!cache.has(file)) {
|
|
17
|
-
cache.set(file, readSource(project, file));
|
|
18
|
-
}
|
|
19
|
-
return cache.get(file);
|
|
20
|
-
}
|
|
21
|
-
function readSource(project, file) {
|
|
22
|
-
try {
|
|
23
|
-
return loadSourceFile(project.config, file, fs.readFileSync(path.join(project.root, file), 'utf8'));
|
|
24
|
-
}
|
|
25
|
-
catch {
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=source-at.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-at.js","sourceRoot":"","sources":["../../../src/check/project/source-at.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,YAAY,GAAG,IAAI,OAAO,EAAgD,CAAC;AAEjF;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,IAAY;IACrD,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAE1E,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAkC,CAAC;IAErF,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAEjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACrB,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,UAAU,CAAC,OAAgB,EAAE,IAAY;IAChD,IAAI,CAAC;QACH,OAAO,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACtG,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** What one purity/* rule forbids in domain/ and application/. */
|
|
2
|
-
export interface PurityRule {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly description: string;
|
|
5
|
-
readonly code: readonly {
|
|
6
|
-
readonly pattern: RegExp;
|
|
7
|
-
readonly what: string;
|
|
8
|
-
}[];
|
|
9
|
-
/** Bare packages and Node built-ins (without the `node:` prefix) that give the same access. */
|
|
10
|
-
readonly modules: readonly string[];
|
|
11
|
-
readonly fix: string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=purity-rule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purity-rule.d.ts","sourceRoot":"","sources":["../../../src/check/purity/purity-rule.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9E,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purity-rule.js","sourceRoot":"","sources":["../../../src/check/purity/purity-rule.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FoundStatement } from './found-statement.js';
|
|
2
|
-
import type { StringRecord } from './string-record.js';
|
|
3
|
-
/** The import or export statement a string literal of a blanked source is the module specifier of; nothing for any other string. */
|
|
4
|
-
export declare function statementOf(code: string, literal: StringRecord): FoundStatement | undefined;
|
|
5
|
-
//# sourceMappingURL=statement-of.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statement-of.d.ts","sourceRoot":"","sources":["../../../src/check/scan/statement-of.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAWpD,oIAAoI;AACpI,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAW3F"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { clauseNames } from './clause-names.js';
|
|
2
|
-
const FROM_CLAUSE = /(?<![\w$.])(import|export)\b(\s+type\b)?([\w\s{},*$]*?)\bfrom\s*$/;
|
|
3
|
-
const SIDE_EFFECT = /(?<![\w$.])import\s*$/;
|
|
4
|
-
const DYNAMIC = /(?<![\w$.])import\s*\(\s*$/;
|
|
5
|
-
const REQUIRE = /(?<![\w$.])require\s*\(\s*$/;
|
|
6
|
-
const SPECIFIER_HINT = /(?:from|import|require)\s*\(?\s*$/;
|
|
7
|
-
/** Longest import clause looked at before a specifier; generous for long named lists. */
|
|
8
|
-
const WINDOW = 4000;
|
|
9
|
-
const KEYWORD_LENGTH = 'import'.length;
|
|
10
|
-
/** The import or export statement a string literal of a blanked source is the module specifier of; nothing for any other string. */
|
|
11
|
-
export function statementOf(code, literal) {
|
|
12
|
-
// Cheap filter first: most string literals are not module specifiers.
|
|
13
|
-
if (!SPECIFIER_HINT.test(code.slice(Math.max(0, literal.start - 24), literal.start))) {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
const windowStart = Math.max(0, literal.start - WINDOW);
|
|
17
|
-
const before = code.slice(windowStart, literal.start);
|
|
18
|
-
const found = statementWithClause(before) ?? statementWithoutClause(before);
|
|
19
|
-
return found === undefined ? undefined : { record: found.record, offset: windowStart + found.offset };
|
|
20
|
-
}
|
|
21
|
-
function statementWithClause(before) {
|
|
22
|
-
const from = lastMatch(FROM_CLAUSE, before);
|
|
23
|
-
if (from === undefined) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
const kind = from.groups[1] === 'export' ? 'export' : 'import';
|
|
27
|
-
const typeOnly = from.groups[2] !== undefined;
|
|
28
|
-
const bound = kind === 'import' ? clauseNames(from.groups[3] ?? '') : { names: [], typeNames: [] };
|
|
29
|
-
return {
|
|
30
|
-
record: { kind, typeOnly, names: bound.names, typeNames: typeOnly ? bound.names : bound.typeNames },
|
|
31
|
-
offset: from.index,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const WITHOUT_CLAUSE = [
|
|
35
|
-
[SIDE_EFFECT, 'side-effect'],
|
|
36
|
-
[DYNAMIC, 'dynamic'],
|
|
37
|
-
[REQUIRE, 'require'],
|
|
38
|
-
];
|
|
39
|
-
function statementWithoutClause(before) {
|
|
40
|
-
for (const [pattern, kind] of WITHOUT_CLAUSE) {
|
|
41
|
-
const match = pattern.exec(before);
|
|
42
|
-
if (match !== null) {
|
|
43
|
-
return { record: { kind, typeOnly: false, names: [], typeNames: [] }, offset: match.index };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The clause pattern is anchored at the end, so the regex engine returns the earliest
|
|
50
|
-
* `import` that reaches `from` through clause characters only: that is the statement
|
|
51
|
-
* owning the specifier, because `=`, `(` or a quote of a previous statement break the run.
|
|
52
|
-
* A previous statement made only of clause characters is cut off at its own keyword.
|
|
53
|
-
*/
|
|
54
|
-
function lastMatch(pattern, text) {
|
|
55
|
-
let groups = pattern.exec(text);
|
|
56
|
-
if (groups === null) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
59
|
-
let index = groups.index;
|
|
60
|
-
for (;;) {
|
|
61
|
-
const from = index + KEYWORD_LENGTH;
|
|
62
|
-
const later = pattern.exec(text.slice(from));
|
|
63
|
-
if (later === null) {
|
|
64
|
-
return { groups, index };
|
|
65
|
-
}
|
|
66
|
-
groups = later;
|
|
67
|
-
index = from + later.index;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=statement-of.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statement-of.js","sourceRoot":"","sources":["../../../src/check/scan/statement-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,MAAM,WAAW,GAAG,mEAAmE,CAAC;AACxF,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAC5C,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAC7C,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAC9C,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAC3D,yFAAyF;AACzF,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC;AAEvC,oIAAoI;AACpI,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,OAAqB;IAC7D,sEAAsE;IACtE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACrF,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;IACxD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,mBAAmB,CAAC,MAAM,CAAC,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAE5E,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;AACxG,CAAC;AAED,SAAS,mBAAmB,CAAC,MAAc;IACzC,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAE5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;IAC9C,MAAM,KAAK,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAEnG,OAAO;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE;QACnG,MAAM,EAAE,IAAI,CAAC,KAAK;KACnB,CAAC;AACJ,CAAC;AAED,MAAM,cAAc,GAA+C;IACjE,CAAC,WAAW,EAAE,aAAa,CAAC;IAC5B,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,OAAO,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,SAAS,sBAAsB,CAAC,MAAc;IAC5C,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,cAAc,EAAE,CAAC;QAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEnC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAC9F,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;GAKG;AACH,SAAS,SAAS,CAAC,OAAe,EAAE,IAAY;IAC9C,IAAI,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAEzB,SAAS,CAAC;QACR,MAAM,IAAI,GAAG,KAAK,GAAG,cAAc,CAAC;QACpC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC3B,CAAC;QAED,MAAM,GAAG,KAAK,CAAC;QACf,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Violation } from '../model/violation.js';
|
|
2
|
-
import type { Suppression } from './find-suppressions.js';
|
|
3
|
-
/**
|
|
4
|
-
* A directive covers the line below it. On the first line of a file it also covers
|
|
5
|
-
* line 1, which is where file-level violations (naming, missing spec) are reported.
|
|
6
|
-
*/
|
|
7
|
-
export declare function isSuppressed(violation: Violation, suppressions: readonly Suppression[]): boolean;
|
|
8
|
-
//# sourceMappingURL=is-suppressed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-suppressed.d.ts","sourceRoot":"","sources":["../../../src/check/suppressions/is-suppressed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAOhG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A directive covers the line below it. On the first line of a file it also covers
|
|
3
|
-
* line 1, which is where file-level violations (naming, missing spec) are reported.
|
|
4
|
-
*/
|
|
5
|
-
export function isSuppressed(violation, suppressions) {
|
|
6
|
-
return suppressions.some((suppression) => {
|
|
7
|
-
const sameRule = suppression.file === violation.file && suppression.ruleId === violation.ruleId && suppression.reason !== '';
|
|
8
|
-
return sameRule && (violation.line === suppression.line + 1 || (suppression.line === 1 && violation.line === 1));
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=is-suppressed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-suppressed.js","sourceRoot":"","sources":["../../../src/check/suppressions/is-suppressed.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,SAAoB,EAAE,YAAoC;IACrF,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;QACvC,MAAM,QAAQ,GACZ,WAAW,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,IAAI,WAAW,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,KAAK,EAAE,CAAC;QAE9G,OAAO,QAAQ,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,IAAI,SAAS,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;IACnH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suppression-rule-id.d.ts","sourceRoot":"","sources":["../../../src/check/suppressions/suppression-rule-id.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,oCAAoC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suppression-rule-id.js","sourceRoot":"","sources":["../../../src/check/suppressions/suppression-rule-id.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,iCAAiC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Project } from '../model/project.js';
|
|
2
|
-
import type { Violation } from '../model/violation.js';
|
|
3
|
-
import type { Suppression } from './find-suppressions.js';
|
|
4
|
-
/** The directives that name no rule or give no reason. */
|
|
5
|
-
export declare function suppressionViolations(project: Project, suppressions: readonly Suppression[]): Violation[];
|
|
6
|
-
//# sourceMappingURL=suppression-violations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suppression-violations.d.ts","sourceRoot":"","sources":["../../../src/check/suppressions/suppression-violations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMvD,0DAA0D;AAC1D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,EAAE,CAwBzG"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SUPPRESSION_RULE_ID } from './suppression-rule-id.js';
|
|
2
|
-
const FIX = 'Remove the comment and fix the violation; a deliberate exception is written `// ddd-ts-kit-disable-next-line <rule-id> -- ADR-NNNN: <why>` and recorded in docs/adr/.';
|
|
3
|
-
/** The directives that name no rule or give no reason. */
|
|
4
|
-
export function suppressionViolations(project, suppressions) {
|
|
5
|
-
const severity = project.severity(SUPPRESSION_RULE_ID);
|
|
6
|
-
if (severity === 'off') {
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
return suppressions
|
|
10
|
-
.filter((suppression) => suppression.ruleId === '' || suppression.reason === '')
|
|
11
|
-
.map((suppression) => {
|
|
12
|
-
const message = suppression.ruleId === ''
|
|
13
|
-
? 'A suppression names no rule.'
|
|
14
|
-
: `The suppression of "${suppression.ruleId}" gives no reason.`;
|
|
15
|
-
return {
|
|
16
|
-
ruleId: SUPPRESSION_RULE_ID,
|
|
17
|
-
severity,
|
|
18
|
-
file: suppression.file,
|
|
19
|
-
line: suppression.line,
|
|
20
|
-
message,
|
|
21
|
-
fix: FIX,
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=suppression-violations.js.map
|