ddd-ts-kit 0.20.0 → 0.21.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 +60 -0
- package/README.fr.md +15 -6
- package/README.md +12 -4
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +2 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/default-severities.d.ts.map +1 -1
- package/dist/check/catalogue/default-severities.js +1 -0
- package/dist/check/catalogue/default-severities.js.map +1 -1
- package/dist/check/commands/rules-command.js +2 -2
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +7 -1
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/engine/run-check.d.ts.map +1 -1
- package/dist/check/engine/run-check.js +17 -1
- package/dist/check/engine/run-check.js.map +1 -1
- package/dist/check/explain/layout-docs.js +1 -1
- package/dist/check/explain/layout-docs.js.map +1 -1
- package/dist/check/explain/persistence-docs.js +1 -1
- package/dist/check/explain/persistence-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.js +2 -2
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/explain/wiring-docs.d.ts.map +1 -1
- package/dist/check/explain/wiring-docs.js +7 -0
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +50 -1
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/governance-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/governance-fixtures.js +12 -3
- package/dist/check/fixtures/governance-fixtures.js.map +1 -1
- package/dist/check/fixtures/layer-fixtures.js +1 -1
- package/dist/check/fixtures/layer-fixtures.js.map +1 -1
- package/dist/check/fixtures/layout-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/layout-fixtures.js +6 -0
- package/dist/check/fixtures/layout-fixtures.js.map +1 -1
- package/dist/check/fixtures/persistence-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/persistence-fixtures.js +16 -0
- package/dist/check/fixtures/persistence-fixtures.js.map +1 -1
- package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/test-fixtures.js +35 -1
- package/dist/check/fixtures/test-fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +1 -1
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/migrations/working-migration-findings.d.ts +8 -0
- package/dist/check/migrations/working-migration-findings.d.ts.map +1 -0
- package/dist/check/migrations/working-migration-findings.js +22 -0
- package/dist/check/migrations/working-migration-findings.js.map +1 -0
- package/dist/check/model/project.d.ts +3 -0
- package/dist/check/model/project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.d.ts +2 -2
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +16 -6
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/rules/clean-file-size.d.ts.map +1 -1
- package/dist/check/rules/clean-file-size.js +6 -1
- package/dist/check/rules/clean-file-size.js.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.js +2 -11
- package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.d.ts +3 -0
- package/dist/check/rules/config-rule-off-everywhere.d.ts.map +1 -0
- package/dist/check/rules/config-rule-off-everywhere.js +21 -0
- package/dist/check/rules/config-rule-off-everywhere.js.map +1 -0
- package/dist/check/rules/governance-recorded-deviation.js +14 -7
- package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
- package/dist/check/rules/persistence-migration-history.d.ts.map +1 -1
- package/dist/check/rules/persistence-migration-history.js +9 -2
- package/dist/check/rules/persistence-migration-history.js.map +1 -1
- package/dist/check/rules/test-spec-required.d.ts.map +1 -1
- package/dist/check/rules/test-spec-required.js +3 -2
- package/dist/check/rules/test-spec-required.js.map +1 -1
- package/dist/check/support/is-abstract-base.d.ts +7 -0
- package/dist/check/support/is-abstract-base.d.ts.map +1 -0
- package/dist/check/support/is-abstract-base.js +11 -0
- package/dist/check/support/is-abstract-base.js.map +1 -0
- package/dist/check/support/is-generated-context-file.d.ts +4 -0
- package/dist/check/support/is-generated-context-file.d.ts.map +1 -0
- package/dist/check/support/is-generated-context-file.js +12 -0
- package/dist/check/support/is-generated-context-file.js.map +1 -0
- package/dist/commands/drizzle-generate.d.ts +4 -0
- package/dist/commands/drizzle-generate.d.ts.map +1 -0
- package/dist/commands/drizzle-generate.js +14 -0
- package/dist/commands/drizzle-generate.js.map +1 -0
- package/dist/commands/generate.js +2 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +17 -2
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/config/config.d.ts +2 -1
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/parse-config.js +2 -1
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/parse-rule-setting.d.ts +3 -0
- package/dist/config/parse-rule-setting.d.ts.map +1 -0
- package/dist/config/parse-rule-setting.js +10 -0
- package/dist/config/parse-rule-setting.js.map +1 -0
- package/dist/config/project-severity.d.ts +4 -0
- package/dist/config/project-severity.d.ts.map +1 -0
- package/dist/config/project-severity.js +5 -0
- package/dist/config/project-severity.js.map +1 -0
- package/dist/config/rule-setting.d.ts +10 -0
- package/dist/config/rule-setting.d.ts.map +1 -0
- package/dist/config/rule-setting.js +2 -0
- package/dist/config/rule-setting.js.map +1 -0
- package/dist/generate/kind.d.ts +2 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.js +8 -4
- package/dist/generate/kinds/adr-kind.js.map +1 -1
- package/dist/generate/kinds/adr-number.d.ts +8 -0
- package/dist/generate/kinds/adr-number.d.ts.map +1 -0
- package/dist/generate/kinds/adr-number.js +25 -0
- package/dist/generate/kinds/adr-number.js.map +1 -0
- package/dist/generate/kinds/write-adr.d.ts +3 -1
- package/dist/generate/kinds/write-adr.d.ts.map +1 -1
- package/dist/generate/kinds/write-adr.js +3 -3
- package/dist/generate/kinds/write-adr.js.map +1 -1
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +8 -2
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +2 -1
- package/dist/help/usage.js.map +1 -1
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +2 -1
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/scripts-for.js +2 -0
- package/dist/init/manifest/scripts-for.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/write-agent-settings.d.ts.map +1 -1
- package/dist/init/write-agent-settings.js +1 -0
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/migration/drizzle-kit-bin.d.ts +3 -0
- package/dist/migration/drizzle-kit-bin.d.ts.map +1 -0
- package/dist/migration/drizzle-kit-bin.js +12 -0
- package/dist/migration/drizzle-kit-bin.js.map +1 -0
- package/dist/migration/drizzle-silent-failures.d.ts +9 -0
- package/dist/migration/drizzle-silent-failures.d.ts.map +1 -0
- package/dist/migration/drizzle-silent-failures.js +14 -0
- package/dist/migration/drizzle-silent-failures.js.map +1 -0
- package/dist/migration/generate-drizzle-migration.d.ts +15 -0
- package/dist/migration/generate-drizzle-migration.d.ts.map +1 -0
- package/dist/migration/generate-drizzle-migration.js +37 -0
- package/dist/migration/generate-drizzle-migration.js.map +1 -0
- package/dist/migration/index.d.ts +2 -0
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/index.js +2 -0
- package/dist/migration/index.js.map +1 -0
- package/dist/presets/preset-decision.js +2 -2
- package/dist/presets/preset-decision.js.map +1 -1
- package/dist/progress/read-slice-rules.d.ts +8 -0
- package/dist/progress/read-slice-rules.d.ts.map +1 -0
- package/dist/progress/read-slice-rules.js +20 -0
- package/dist/progress/read-slice-rules.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/base-of.d.ts +8 -0
- package/dist/worker/base-of.d.ts.map +1 -0
- package/dist/worker/base-of.js +36 -0
- package/dist/worker/base-of.js.map +1 -0
- package/dist/worker/briefed-rows.d.ts +14 -0
- package/dist/worker/briefed-rows.d.ts.map +1 -0
- package/dist/worker/briefed-rows.js +53 -0
- package/dist/worker/briefed-rows.js.map +1 -0
- package/dist/worker/briefed-slice.d.ts +7 -0
- package/dist/worker/briefed-slice.d.ts.map +1 -0
- package/dist/worker/briefed-slice.js +2 -0
- package/dist/worker/briefed-slice.js.map +1 -0
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +7 -5
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/ensure-contains-base.d.ts +6 -0
- package/dist/worker/ensure-contains-base.d.ts.map +1 -0
- package/dist/worker/ensure-contains-base.js +13 -0
- package/dist/worker/ensure-contains-base.js.map +1 -0
- package/dist/worker/open-worker-scope.d.ts +7 -3
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +33 -21
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/worker/worker-place.d.ts +2 -2
- package/dist/worker/worker-place.d.ts.map +1 -1
- package/dist/worker/worker-scope.d.ts +4 -4
- package/dist/worker/worker-scope.d.ts.map +1 -1
- package/package.json +2 -2
- package/templates/init/AGENTS.md.tpl +2 -2
- package/templates/init/README.md.tpl +1 -0
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/vitest.config.ts.tpl +10 -1
- package/dist/generate/kinds/next-adr-number.d.ts +0 -4
- package/dist/generate/kinds/next-adr-number.d.ts.map +0 -1
- package/dist/generate/kinds/next-adr-number.js +0 -7
- package/dist/generate/kinds/next-adr-number.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Workspace } from '../../workspace/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The number of the new decision record of the project, on four digits: the one asked with
|
|
4
|
+
* `--number`, when it is free in `docs/adr/`, otherwise one after the highest. Teams that work in
|
|
5
|
+
* parallel number by block (`0401`, `0701`), so the highest plus one is not theirs to take.
|
|
6
|
+
*/
|
|
7
|
+
export declare function adrNumber(ws: Workspace, asked: string | undefined): string;
|
|
8
|
+
//# sourceMappingURL=adr-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adr-number.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/adr-number.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAwB1E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ADR_DIRECTORY } from '../../check/governance/adr-directory.js';
|
|
2
|
+
import { CliError } from '../../cli-error.js';
|
|
3
|
+
/**
|
|
4
|
+
* The number of the new decision record of the project, on four digits: the one asked with
|
|
5
|
+
* `--number`, when it is free in `docs/adr/`, otherwise one after the highest. Teams that work in
|
|
6
|
+
* parallel number by block (`0401`, `0701`), so the highest plus one is not theirs to take.
|
|
7
|
+
*/
|
|
8
|
+
export function adrNumber(ws, asked) {
|
|
9
|
+
const taken = ws.list(ADR_DIRECTORY).map((file) => Number(/^(\d+)-/.exec(file)?.[1] ?? '0'));
|
|
10
|
+
if (asked === undefined) {
|
|
11
|
+
return padded(Math.max(0, ...taken) + 1);
|
|
12
|
+
}
|
|
13
|
+
const number = Number(asked);
|
|
14
|
+
if (!/^\d+$/.test(asked) || number === 0) {
|
|
15
|
+
throw new CliError(`--number ${asked} is not the number of a decision record.`, 'Pass a positive whole number, for example --number 401: it is written on four digits, 0401.');
|
|
16
|
+
}
|
|
17
|
+
if (taken.includes(number)) {
|
|
18
|
+
throw new CliError(`ADR-${padded(number)} already exists in ${ADR_DIRECTORY}/.`, 'Pass a free number with --number, or leave it out to take the one after the highest.');
|
|
19
|
+
}
|
|
20
|
+
return padded(number);
|
|
21
|
+
}
|
|
22
|
+
function padded(number) {
|
|
23
|
+
return String(number).padStart(4, '0');
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=adr-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adr-number.js","sourceRoot":"","sources":["../../../src/generate/kinds/adr-number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,EAAa,EAAE,KAAyB;IAChE,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;IAE7F,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,QAAQ,CAChB,YAAY,KAAK,0CAA0C,EAC3D,6FAA6F,CAC9F,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,QAAQ,CAChB,OAAO,MAAM,CAAC,MAAM,CAAC,sBAAsB,aAAa,IAAI,EAC5D,sFAAsF,CACvF,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,SAAS,MAAM,CAAC,MAAc;IAC5B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -4,7 +4,9 @@ export interface AdrRequest {
|
|
|
4
4
|
readonly title: string;
|
|
5
5
|
/** What the decision relaxes, as the key the config names it by, and why. */
|
|
6
6
|
readonly deviation?: Pick<Deviation, 'what' | 'reason'>;
|
|
7
|
+
/** The number asked with `--number`; by default, one after the highest in `docs/adr/`. */
|
|
8
|
+
readonly number?: string;
|
|
7
9
|
}
|
|
8
|
-
/** Writes the record under the next free
|
|
10
|
+
/** Writes the record under the number asked, or the next free one, and answers that number. */
|
|
9
11
|
export declare function writeAdr(ws: Workspace, request: AdrRequest): string;
|
|
10
12
|
//# sourceMappingURL=write-adr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-adr.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/write-adr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAI1D,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"write-adr.d.ts","sourceRoot":"","sources":["../../../src/generate/kinds/write-adr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAI1D,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;IACxD,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,+FAA+F;AAC/F,wBAAgB,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM,CAyBnE"}
|
|
@@ -2,14 +2,14 @@ import { CliError } from '../../cli-error.js';
|
|
|
2
2
|
import { toName } from '../../naming/index.js';
|
|
3
3
|
import { renderTemplate } from '../../templating/index.js';
|
|
4
4
|
import { ADR_DIRECTORY } from '../../check/governance/adr-directory.js';
|
|
5
|
-
import {
|
|
6
|
-
/** Writes the record under the next free
|
|
5
|
+
import { adrNumber } from './adr-number.js';
|
|
6
|
+
/** Writes the record under the number asked, or the next free one, and answers that number. */
|
|
7
7
|
export function writeAdr(ws, request) {
|
|
8
8
|
const slug = toName(request.title).kebab;
|
|
9
9
|
if (slug === '') {
|
|
10
10
|
throw new CliError('A decision record needs a title.', 'Pass it as the first argument, for example: ddd-ts-kit generate adr "Read the catalog without a gateway".');
|
|
11
11
|
}
|
|
12
|
-
const number =
|
|
12
|
+
const number = adrNumber(ws, request.number);
|
|
13
13
|
const { deviation } = request;
|
|
14
14
|
const adr = {
|
|
15
15
|
number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-adr.js","sourceRoot":"","sources":["../../../src/generate/kinds/write-adr.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"write-adr.js","sourceRoot":"","sources":["../../../src/generate/kinds/write-adr.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU5C,+FAA+F;AAC/F,MAAM,UAAU,QAAQ,CAAC,EAAa,EAAE,OAAmB;IACzD,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;IAEzC,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;QAChB,MAAM,IAAI,QAAQ,CAChB,kCAAkC,EAClC,2GAA2G,CAC5G,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE9B,MAAM,GAAG,GAAG;QACV,MAAM;QACN,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,IAAI,EAAE,KAAK,EAAE;QACb,SAAS,EAAE,SAAS,KAAK,SAAS;QAClC,IAAI,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE;QAC3B,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,EAAE;KAChC,CAAC;IAEF,EAAE,CAAC,MAAM,CAAC,GAAG,aAAa,IAAI,MAAM,IAAI,IAAI,KAAK,EAAE,cAAc,CAAC,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAE9F,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,KAAK;IACZ,OAAO,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|
package/dist/help/notes.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** What a line of the usage cannot say about a command or a flag. */
|
|
2
|
-
export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n error-factories moves a project from one class per error to static factories on one error class per\n concept: --plan writes error-factories.plan.json, where each class is given its concept;\n --apply follows it (classes, specs, every usage, \"stack.refusals\" in the config)\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, and the TODO(domain), TODO(platform) and it.todo left in each context\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one: run it once the shape of a version is the one to store;\n docs --check fails while a declared version is not recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
|
|
2
|
+
export declare const NOTES = " affected what a pull request has to run: the contexts a change set reaches through the context\n map (a changed context and the contexts downstream of it), as filters for the test\n runner and the linter; everything when a shared path changed or without --base\n build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files\n into relative paths, so that plain node runs the output (tsconfig.build.json by default)\n drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal\n fails and names the fix when drizzle-kit would ask whether a column or table is renamed,\n where drizzle-kit alone writes nothing and exits 0\n error-factories moves a project from one class per error to static factories on one error class per\n concept: --plan writes error-factories.plan.json, where each class is given its concept;\n --apply follows it (classes, specs, every usage, \"stack.refusals\" in the config)\n value-objects moves the value objects of a project from a Result to factories that return the value or\n throw: every create returning Result<T, E> returns T, err(..) is thrown, unwrap(..) of\n them goes, specs assert expectRefusal(() => ..), \"stack.valueObjects\" becomes throwing\n controllers moves the function routes of a project, or of one context, to controller classes: each\n <name>.route.ts becomes <resource>/<name>/<name>.controller.ts behind the route group of\n its resource, its schema files and its spec follow; a context is turned whole or not at all\n describe one context as facts: use cases, routes, events, ports, policies, gateways, dependencies\n status the next step of docs/architecture/plan.md, the slices of docs/architecture/slices.md by\n status and by owner, and the TODO(domain), TODO(platform) and it.todo left in each context\n sdk the typed client of each document of the contract, a workspace package under\n clients/<document> without runtime dependency: typed errors keyed by the error codes,\n credentials per security scheme; records \"sdk\" in the config the first time, wires the\n scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);\n --check writes nothing and exits 1 while a client differs from its contract\n todo those markers as file:line, in the project or in one context\n worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from\n --base <ref> (by default the current branch, refused from a worker's worktree), its\n .ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>\n briefs those rows of slices.md only, with their rules; an existing worktree or branch\n that does not contain the base is refused\n --commit-size the files and lines about to be committed against \"commit\" in the config (20 files and\n 600 lines by default, generated files not counted); --staged reads the index only;\n advisory, --strict exits 1 when over\n --stored-events docs records the shape of each version of the stored events in stored-events.lock.json,\n never rewriting a recorded one: run it once the shape of a version is the one to store;\n docs --check fails while a declared version is not recorded\n --sdk init records \"sdk\" in the config and generates the clients with the project\n --local-only generate refuses, and writes nothing, when the kind would write outside its context;\n \"generate --help --json\" says which kinds do";
|
|
3
3
|
//# sourceMappingURL=notes.d.ts.map
|
package/dist/help/notes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,s8HAuC8C,CAAC"}
|
package/dist/help/notes.js
CHANGED
|
@@ -4,6 +4,9 @@ export const NOTES = ` affected what a pull request has to run: the con
|
|
|
4
4
|
runner and the linter; everything when a shared path changed or without --base
|
|
5
5
|
build-aliases after the compiler: rewrites the import aliases left in the emitted .js and .d.ts files
|
|
6
6
|
into relative paths, so that plain node runs the output (tsconfig.build.json by default)
|
|
7
|
+
drizzle-generate the db:generate of a Drizzle project: drizzle-kit generate --name, which without a terminal
|
|
8
|
+
fails and names the fix when drizzle-kit would ask whether a column or table is renamed,
|
|
9
|
+
where drizzle-kit alone writes nothing and exits 0
|
|
7
10
|
error-factories moves a project from one class per error to static factories on one error class per
|
|
8
11
|
concept: --plan writes error-factories.plan.json, where each class is given its concept;
|
|
9
12
|
--apply follows it (classes, specs, every usage, "stack.refusals" in the config)
|
|
@@ -22,8 +25,11 @@ export const NOTES = ` affected what a pull request has to run: the con
|
|
|
22
25
|
scripts (docs:generate regenerates it, docs:check compares it, ci:build builds it);
|
|
23
26
|
--check writes nothing and exits 1 while a client differs from its contract
|
|
24
27
|
todo those markers as file:line, in the project or in one context
|
|
25
|
-
worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>),
|
|
26
|
-
|
|
28
|
+
worker-scope a git worktree on the branch build/<context> (by default ../<project>-<context>), cut from
|
|
29
|
+
--base <ref> (by default the current branch, refused from a worker's worktree), its
|
|
30
|
+
.ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>
|
|
31
|
+
briefs those rows of slices.md only, with their rules; an existing worktree or branch
|
|
32
|
+
that does not contain the base is refused
|
|
27
33
|
--commit-size the files and lines about to be committed against "commit" in the config (20 files and
|
|
28
34
|
600 lines by default, generated files not counted); --staged reads the index only;
|
|
29
35
|
advisory, --strict exits 1 when over
|
package/dist/help/notes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG
|
|
1
|
+
{"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/help/notes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAuC2C,CAAC"}
|
package/dist/help/usage.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Every command of the CLI and its flags, as `--help` prints them and docs/guides/commands.md shows them. */
|
|
2
|
-
export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status\n ddd-ts-kit todo [<context>]\n ddd-ts-kit worker-scope <context> [--worktree <path>] [--branch <name>] [--dry-run]\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit error-factories --plan | --apply [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
|
|
2
|
+
export declare const USAGE = "Usage\n ddd-ts-kit init [--http express|fastify|hono|nest|none]\n [--validation zod|class-validator|typebox|standard-schema|none]\n [--di tsyringe|nest|manual] [--tests vitest|jest]\n [--orm drizzle|knex|prisma|typeorm|custom|none] [--database postgres|mysql|sqlite|none]\n [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]\n [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]\n [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]\n [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--http-cache none|varnish]\n [--storage local|s3|none]\n [--audit on|off]\n [--errors none|sentry] [--logger stdout|pino|winston] [--style declared|explicit] [--assembly barrel|discovery]\n [--dependencies signature|listed] [--refusals factories|classes]\n [--routes controllers|functions] [--representations negotiated|json] [--forms on|off]\n [--value-objects throwing|result] [--literals named|free] [--values classes|free] [--tenancy none|shared-table] [--queue database|redis|memory]\n [--schemas shared|per-route]\n [--package-manager npm|pnpm] [--allow-no-outbox \"<reason>\"] [--import-alias '$<name>/']\n [--import-extension none|js] [--sdk]\n [--context <name>:<core|supporting|generic>]... [--preset identity]... [--dry-run] [--force]\n ddd-ts-kit generate <kind> ... [--term \"<Term>=<meaning>\"]... [--allow-name] [--local-only] [--dry-run] [--force] (alias: g)\n ddd-ts-kit generate --help --json\n ddd-ts-kit list [--context <name>]\n ddd-ts-kit describe <context>\n ddd-ts-kit status\n ddd-ts-kit todo [<context>]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]\n ddd-ts-kit docs [--check] [--stored-events]\n ddd-ts-kit sdk [--check] [--dry-run]\n ddd-ts-kit depcruise-config [--check|--write]\n ddd-ts-kit build-aliases [--project <tsconfig>]\n ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]\n ddd-ts-kit error-factories --plan | --apply [--dry-run]\n ddd-ts-kit controllers [<context>] [--dry-run]\n ddd-ts-kit value-objects [--dry-run]\n ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]\n ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--self]\n ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]\n ddd-ts-kit check --commit-size [--staged] [--strict]\n ddd-ts-kit check-file <path>\n ddd-ts-kit rules\n ddd-ts-kit explain <rule-id>\n\nEvery command accepts --json (machine-readable output) and --cwd <dir> (project root).";
|
|
3
3
|
//# sourceMappingURL=usage.d.ts.map
|
package/dist/help/usage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,eAAO,MAAM,KAAK,42FA0CqE,CAAC"}
|
package/dist/help/usage.js
CHANGED
|
@@ -24,11 +24,12 @@ export const USAGE = `Usage
|
|
|
24
24
|
ddd-ts-kit describe <context>
|
|
25
25
|
ddd-ts-kit status
|
|
26
26
|
ddd-ts-kit todo [<context>]
|
|
27
|
-
ddd-ts-kit worker-scope <context> [--worktree <path>] [--branch <name>] [--dry-run]
|
|
27
|
+
ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--dry-run]
|
|
28
28
|
ddd-ts-kit docs [--check] [--stored-events]
|
|
29
29
|
ddd-ts-kit sdk [--check] [--dry-run]
|
|
30
30
|
ddd-ts-kit depcruise-config [--check|--write]
|
|
31
31
|
ddd-ts-kit build-aliases [--project <tsconfig>]
|
|
32
|
+
ddd-ts-kit drizzle-generate --name <what-it-does> [--custom]
|
|
32
33
|
ddd-ts-kit error-factories --plan | --apply [--dry-run]
|
|
33
34
|
ddd-ts-kit controllers [<context>] [--dry-run]
|
|
34
35
|
ddd-ts-kit value-objects [--dry-run]
|
package/dist/help/usage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA0CkE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-scripts.d.ts","sourceRoot":"","sources":["../../../src/init/manifest/database-scripts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"database-scripts.d.ts","sourceRoot":"","sources":["../../../src/init/manifest/database-scripts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AA2BpD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAItE"}
|
|
@@ -4,7 +4,8 @@ const DATABASE_SCRIPTS = {
|
|
|
4
4
|
custom: { 'db:migrate': 'echo "Custom persistence: run your own migrations here."' },
|
|
5
5
|
// drizzle-kit loads the TypeScript schema, which re-exports the tables of each context by their alias: it reads the `paths` of tsconfig.json itself.
|
|
6
6
|
// Every `db:generate` takes what the migration does (`npm run db:generate add-invoices`) and refuses to run without it: the tool prefixes it with a timestamp.
|
|
7
|
-
|
|
7
|
+
// Through the CLI: without a terminal drizzle-kit cannot ask whether a column is renamed, writes nothing and exits 0; `drizzle-generate` fails then, with the fix.
|
|
8
|
+
drizzle: { 'db:generate': 'ddd-ts-kit drizzle-generate --name', 'db:migrate': 'drizzle-kit migrate' },
|
|
8
9
|
knex: { 'db:generate': 'knex migrate:make', 'db:migrate': 'npm run build && knex migrate:latest' },
|
|
9
10
|
// The client and the schema of the tests are build products of prisma/schema.prisma: every entry point refreshes them.
|
|
10
11
|
prisma: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-scripts.js","sourceRoot":"","sources":["../../../src/init/manifest/database-scripts.ts"],"names":[],"mappings":"AAEA,+HAA+H;AAC/H,MAAM,gBAAgB,GAAqD;IACzE,IAAI,EAAE,EAAE,YAAY,EAAE,gCAAgC,EAAE;IACxD,MAAM,EAAE,EAAE,YAAY,EAAE,0DAA0D,EAAE;IACpF,qJAAqJ;IACrJ,+JAA+J;IAC/J,OAAO,EAAE,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"database-scripts.js","sourceRoot":"","sources":["../../../src/init/manifest/database-scripts.ts"],"names":[],"mappings":"AAEA,+HAA+H;AAC/H,MAAM,gBAAgB,GAAqD;IACzE,IAAI,EAAE,EAAE,YAAY,EAAE,gCAAgC,EAAE;IACxD,MAAM,EAAE,EAAE,YAAY,EAAE,0DAA0D,EAAE;IACpF,qJAAqJ;IACrJ,+JAA+J;IAC/J,mKAAmK;IACnK,OAAO,EAAE,EAAE,aAAa,EAAE,oCAAoC,EAAE,YAAY,EAAE,qBAAqB,EAAE;IACrG,IAAI,EAAE,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,sCAAsC,EAAE;IAClG,uHAAuH;IACvH,MAAM,EAAE;QACN,WAAW,EACT,uHAAuH;QACzH,aAAa,EAAE,yCAAyC;QACxD,YAAY,EAAE,uBAAuB;QACrC,YAAY,EAAE,mBAAmB;QACjC,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,mBAAmB;QAC5B,aAAa,EAAE,mBAAmB;KACnC;CACF,CAAC;AAEF,4IAA4I;AAC5I,MAAM,WAAW,GAAG,+JAA+J,CAAC;AAEpL,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAEpC,OAAO,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AACrH,CAAC;AAED,uMAAuM;AACvM,SAAS,SAAS,CAAC,MAAc;IAC/B,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,UAAU,GAAG,QAAQ,MAAM,CAAC,WAAW,0BAA0B,CAAC;IAExE,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,gBAAgB,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,OAAO;QACL,aAAa,EAAE,iCAAiC,UAAU,EAAE;QAC5D,YAAY,EAAE,4BAA4B,UAAU,EAAE;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -29,6 +29,8 @@ function scriptsOf(config) {
|
|
|
29
29
|
quality: 'npm run format:check && npm run lint && npm run check:arch && npm run depcruise && npm run deadcode',
|
|
30
30
|
...testScripts(config),
|
|
31
31
|
...documentationScripts(config),
|
|
32
|
+
// Every derived file in one step after a change: the dependency rules from the config, then what `docs:generate` writes.
|
|
33
|
+
regenerate: 'ddd-ts-kit depcruise-config --write && npm run docs:generate',
|
|
32
34
|
...databaseScripts(config),
|
|
33
35
|
'infra:up': 'docker compose up -d --wait',
|
|
34
36
|
'infra:down': 'docker compose down',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-for.js","sourceRoot":"","sources":["../../../src/init/manifest/scripts-for.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,MAAc;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAElD,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AACrH,CAAC;AAED,6FAA6F;AAC7F,MAAM,OAAO,GAAG,yCAAyC,CAAC;AAE1D,SAAS,SAAS,CAAC,MAAc;IAC/B,MAAM,OAAO,GAAG;QACd,GAAG,gBAAgB,EAAE,CAAC,OAAO;QAC7B,G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,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,QAAQ,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACpF,GAAG,EAAE,uCAAuC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,UAAU;KACtI,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/** Ranges written to the generated package.json; bumped together with the kit. */
|
|
2
2
|
export const VERSIONS = {
|
|
3
|
-
'@ddd-ts-kit/kernel': '^0.
|
|
4
|
-
'@ddd-ts-kit/validation': '^0.
|
|
5
|
-
'@ddd-ts-kit/http': '^0.
|
|
6
|
-
'@ddd-ts-kit/tracing': '^0.
|
|
7
|
-
'@ddd-ts-kit/di': '^0.
|
|
8
|
-
'@ddd-ts-kit/events': '^0.
|
|
9
|
-
'@ddd-ts-kit/testing': '^0.
|
|
10
|
-
'@ddd-ts-kit/drizzle': '^0.
|
|
11
|
-
'@ddd-ts-kit/knex': '^0.
|
|
12
|
-
'@ddd-ts-kit/prisma': '^0.
|
|
13
|
-
'@ddd-ts-kit/typeorm': '^0.
|
|
14
|
-
'@ddd-ts-kit/auth': '^0.
|
|
15
|
-
'@ddd-ts-kit/rabbitmq': '^0.
|
|
16
|
-
'@ddd-ts-kit/aspects': '^0.
|
|
17
|
-
'@ddd-ts-kit/audit': '^0.
|
|
18
|
-
'@ddd-ts-kit/redis': '^0.
|
|
19
|
-
'@ddd-ts-kit/kafka': '^0.
|
|
20
|
-
'@ddd-ts-kit/nats': '^0.
|
|
21
|
-
'@ddd-ts-kit/scheduling': '^0.
|
|
22
|
-
'@ddd-ts-kit/sentry': '^0.
|
|
23
|
-
'@ddd-ts-kit/s3': '^0.
|
|
3
|
+
'@ddd-ts-kit/kernel': '^0.21.0',
|
|
4
|
+
'@ddd-ts-kit/validation': '^0.21.0',
|
|
5
|
+
'@ddd-ts-kit/http': '^0.21.0',
|
|
6
|
+
'@ddd-ts-kit/tracing': '^0.21.0',
|
|
7
|
+
'@ddd-ts-kit/di': '^0.21.0',
|
|
8
|
+
'@ddd-ts-kit/events': '^0.21.0',
|
|
9
|
+
'@ddd-ts-kit/testing': '^0.21.0',
|
|
10
|
+
'@ddd-ts-kit/drizzle': '^0.21.0',
|
|
11
|
+
'@ddd-ts-kit/knex': '^0.21.0',
|
|
12
|
+
'@ddd-ts-kit/prisma': '^0.21.0',
|
|
13
|
+
'@ddd-ts-kit/typeorm': '^0.21.0',
|
|
14
|
+
'@ddd-ts-kit/auth': '^0.21.0',
|
|
15
|
+
'@ddd-ts-kit/rabbitmq': '^0.21.0',
|
|
16
|
+
'@ddd-ts-kit/aspects': '^0.21.0',
|
|
17
|
+
'@ddd-ts-kit/audit': '^0.21.0',
|
|
18
|
+
'@ddd-ts-kit/redis': '^0.21.0',
|
|
19
|
+
'@ddd-ts-kit/kafka': '^0.21.0',
|
|
20
|
+
'@ddd-ts-kit/nats': '^0.21.0',
|
|
21
|
+
'@ddd-ts-kit/scheduling': '^0.21.0',
|
|
22
|
+
'@ddd-ts-kit/sentry': '^0.21.0',
|
|
23
|
+
'@ddd-ts-kit/s3': '^0.21.0',
|
|
24
24
|
'@aws-sdk/client-s3': '^3.1150.0',
|
|
25
25
|
'@aws-sdk/lib-storage': '^3.1150.0',
|
|
26
26
|
'@aws-sdk/s3-request-presigner': '^3.1150.0',
|
|
27
27
|
busboy: '^1.6.0',
|
|
28
28
|
'@sentry/node': '^11.6.0',
|
|
29
|
-
'@ddd-ts-kit/pino': '^0.
|
|
29
|
+
'@ddd-ts-kit/pino': '^0.21.0',
|
|
30
30
|
pino: '^10.4.0',
|
|
31
31
|
'pino-pretty': '^13.2.0',
|
|
32
|
-
'@ddd-ts-kit/winston': '^0.
|
|
32
|
+
'@ddd-ts-kit/winston': '^0.21.0',
|
|
33
33
|
winston: '^3.19.0',
|
|
34
34
|
'@confluentinc/kafka-javascript': '^1.11.0',
|
|
35
35
|
'@nats-io/jetstream': '^3.4.0',
|
|
@@ -37,7 +37,7 @@ export const VERSIONS = {
|
|
|
37
37
|
ioredis: '^6.0.0',
|
|
38
38
|
jose: '^6.0.0',
|
|
39
39
|
amqplib: '^2.2.0',
|
|
40
|
-
'ddd-ts-kit': '^0.
|
|
40
|
+
'ddd-ts-kit': '^0.21.0',
|
|
41
41
|
tsx: '^4.23.15',
|
|
42
42
|
vitest: '^5.0.3',
|
|
43
43
|
zod: '^4.6.5',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-agent-settings.d.ts","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"write-agent-settings.d.ts","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AA+DvD,iHAAiH;AACjH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,SAAS,GAAG,IAAI,CAwBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-agent-settings.js","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAI/C;;;GAGG;AACH,MAAM,WAAW,GAAgB;IAC/B,KAAK,EAAE;QACL,8BAA8B;QAC9B,6BAA6B;QAC7B,iCAAiC;QACjC,6BAA6B;QAC7B,gCAAgC;QAChC,4BAA4B;QAC5B,sBAAsB;QACtB,yB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,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC;AAC3D,CAAC"}
|
|
1
|
+
{"version":3,"file":"write-agent-settings.js","sourceRoot":"","sources":["../../src/init/write-agent-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAI/C;;;GAGG;AACH,MAAM,WAAW,GAAgB;IAC/B,KAAK,EAAE;QACL,8BAA8B;QAC9B,6BAA6B;QAC7B,iCAAiC;QACjC,6BAA6B;QAC7B,gCAAgC;QAChC,4BAA4B;QAC5B,sBAAsB;QACtB,yBAAyB;QACzB,sBAAsB;QACtB,kBAAkB;QAClB,0BAA0B;QAC1B,0BAA0B;QAC1B,6BAA6B;QAC7B,0BAA0B;QAC1B,gCAAgC;QAChC,6BAA6B;QAC7B,+BAA+B;QAC/B,4BAA4B;KAC7B;IACD,wFAAwF;IACxF,kFAAkF;IAClF,6EAA6E;IAC7E,IAAI,EAAE;QACJ,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,oBAAoB;QACpB,qCAAqC;QACrC,2CAA2C;KAC5C;IACD,yFAAyF;IACzF,4EAA4E;IAC5E,GAAG,EAAE;QACH,kBAAkB;QAClB,qBAAqB;QACrB,gCAAgC;QAChC,2BAA2B;QAC3B,oBAAoB;QACpB,iCAAiC;QACjC,mBAAmB;QACnB,sBAAsB;QACtB,wBAAwB;QACxB,8BAA8B;QAC9B,+BAA+B;QAC/B,uCAAuC;KACxC;CACF,CAAC;AAEF,iHAAiH;AACjH,MAAM,UAAU,kBAAkB,CAAC,EAAa;I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WAAW,GAA4B,EAAE,GAAG,OAAO,EAAE,CAAC;IAE5D,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QACzD,MAAM,OAAO,GAAc,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7E,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7E,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drizzle-kit-bin.d.ts","sourceRoot":"","sources":["../../src/migration/drizzle-kit-bin.ts"],"names":[],"mappings":"AAIA,qHAAqH;AACrH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { CliError } from '../cli-error.js';
|
|
4
|
+
/** The entry file of the drizzle-kit installed in the project, run by the same node: no shell, on every platform. */
|
|
5
|
+
export function drizzleKitBin(root) {
|
|
6
|
+
const bin = path.join(root, 'node_modules', 'drizzle-kit', 'bin.cjs');
|
|
7
|
+
if (!fs.existsSync(bin)) {
|
|
8
|
+
throw new CliError(`drizzle-kit is not installed in ${root}.`, 'Run `npm install` in the project first.');
|
|
9
|
+
}
|
|
10
|
+
return bin;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=drizzle-kit-bin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drizzle-kit-bin.js","sourceRoot":"","sources":["../../src/migration/drizzle-kit-bin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,qHAAqH;AACrH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;IAEtE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,QAAQ,CAAC,mCAAmC,IAAI,GAAG,EAAE,yCAAyC,CAAC,CAAC;IAC5G,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A failure after which drizzle-kit generate has written nothing and still exits 0, known by what it prints. */
|
|
2
|
+
export interface DrizzleSilentFailure {
|
|
3
|
+
readonly printed: string;
|
|
4
|
+
readonly message: string;
|
|
5
|
+
readonly fix: string;
|
|
6
|
+
}
|
|
7
|
+
/** Measured on drizzle-kit 0.31.11. */
|
|
8
|
+
export declare const DRIZZLE_SILENT_FAILURES: readonly DrizzleSilentFailure[];
|
|
9
|
+
//# sourceMappingURL=drizzle-silent-failures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drizzle-silent-failures.d.ts","sourceRoot":"","sources":["../../src/migration/drizzle-silent-failures.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,uCAAuC;AACvC,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EAalE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Measured on drizzle-kit 0.31.11. */
|
|
2
|
+
export const DRIZZLE_SILENT_FAILURES = [
|
|
3
|
+
{
|
|
4
|
+
printed: 'Interactive prompts require a TTY',
|
|
5
|
+
message: 'drizzle-kit cannot tell whether a column or a table is new or renamed, and asks it on a terminal there is none of: no migration was written.',
|
|
6
|
+
fix: 'Make the change unambiguous (add the new column or table in one migration, drop the old one in a later one), or write the statements yourself in a custom migration (`npm run db:generate -- <name> --custom`), or run `npm run db:generate <name>` in a terminal and answer. Never give it a pseudo-terminal (`script`, `unbuffer`): it then waits for an answer nobody gives.',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
printed: 'which is a collision',
|
|
10
|
+
message: 'Two snapshots of the migrations were generated from the same one, as two branches merged without regenerating: no migration was written.',
|
|
11
|
+
fix: 'Keep the migrations of the main branch, delete the one of your branch (its .sql file, its snapshot under meta/ and its entry of meta/_journal.json), then run `npm run db:generate <name>` again on top of them; `npm run check:arch` names them (persistence/migration-history).',
|
|
12
|
+
},
|
|
13
|
+
];
|
|
14
|
+
//# sourceMappingURL=drizzle-silent-failures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drizzle-silent-failures.js","sourceRoot":"","sources":["../../src/migration/drizzle-silent-failures.ts"],"names":[],"mappings":"AAOA,uCAAuC;AACvC,MAAM,CAAC,MAAM,uBAAuB,GAAoC;IACtE;QACE,OAAO,EAAE,mCAAmC;QAC5C,OAAO,EACL,8IAA8I;QAChJ,GAAG,EAAE,iXAAiX;KACvX;IACD;QACE,OAAO,EAAE,sBAAsB;QAC/B,OAAO,EACL,0IAA0I;QAC5I,GAAG,EAAE,mRAAmR;KACzR;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Io } from '../commands/io.js';
|
|
2
|
+
export interface DrizzleMigration {
|
|
3
|
+
readonly root: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly custom: boolean;
|
|
6
|
+
/** True when a person can answer the questions of drizzle-kit: standard input and output are a terminal. */
|
|
7
|
+
readonly interactive: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Runs `drizzle-kit generate` for one named migration and answers its exit code. In a terminal it
|
|
11
|
+
* is drizzle-kit as is. Without one, a failure after which drizzle-kit writes nothing and exits 0
|
|
12
|
+
* (its question about a rename, a forked snapshot) becomes an error that names the fix.
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateDrizzleMigration(migration: DrizzleMigration, io: Io): number;
|
|
15
|
+
//# sourceMappingURL=generate-drizzle-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-drizzle-migration.d.ts","sourceRoot":"","sources":["../../src/migration/generate-drizzle-migration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAI5C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,4GAA4G;IAC5G,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,gBAAgB,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CAwBpF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { CliError } from '../cli-error.js';
|
|
3
|
+
import { drizzleKitBin } from './drizzle-kit-bin.js';
|
|
4
|
+
import { DRIZZLE_SILENT_FAILURES } from './drizzle-silent-failures.js';
|
|
5
|
+
/**
|
|
6
|
+
* Runs `drizzle-kit generate` for one named migration and answers its exit code. In a terminal it
|
|
7
|
+
* is drizzle-kit as is. Without one, a failure after which drizzle-kit writes nothing and exits 0
|
|
8
|
+
* (its question about a rename, a forked snapshot) becomes an error that names the fix.
|
|
9
|
+
*/
|
|
10
|
+
export function generateDrizzleMigration(migration, io) {
|
|
11
|
+
const { root, name, custom, interactive } = migration;
|
|
12
|
+
const args = [drizzleKitBin(root), 'generate', '--name', name, ...(custom ? ['--custom'] : [])];
|
|
13
|
+
const run = spawnSync(process.execPath, args, {
|
|
14
|
+
cwd: root,
|
|
15
|
+
encoding: 'utf8',
|
|
16
|
+
stdio: interactive ? 'inherit' : ['ignore', 'pipe', 'pipe'],
|
|
17
|
+
});
|
|
18
|
+
if (interactive) {
|
|
19
|
+
return run.status ?? 1;
|
|
20
|
+
}
|
|
21
|
+
printOutput(run.stdout, run.stderr, io);
|
|
22
|
+
const printed = `${run.stdout}${run.stderr}`;
|
|
23
|
+
const failure = DRIZZLE_SILENT_FAILURES.find((known) => printed.includes(known.printed));
|
|
24
|
+
if (failure !== undefined) {
|
|
25
|
+
throw new CliError(failure.message, failure.fix);
|
|
26
|
+
}
|
|
27
|
+
return run.status ?? 1;
|
|
28
|
+
}
|
|
29
|
+
function printOutput(stdout, stderr, io) {
|
|
30
|
+
if (stdout.trim() !== '') {
|
|
31
|
+
io.out(stdout.trimEnd());
|
|
32
|
+
}
|
|
33
|
+
if (stderr.trim() !== '') {
|
|
34
|
+
io.err(stderr.trimEnd());
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=generate-drizzle-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|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CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,WAAW,CAAC,MAAc,EAAE,MAAc,EAAE,EAAM;IACzD,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACzB,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACzB,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ADR_DIRECTORY } from '../check/governance/adr-directory.js';
|
|
2
|
-
import {
|
|
2
|
+
import { adrNumber } from '../generate/kinds/adr-number.js';
|
|
3
3
|
import { vars } from '../generate/vars.js';
|
|
4
4
|
import { renderTemplate } from '../templating/index.js';
|
|
5
5
|
/**
|
|
@@ -11,7 +11,7 @@ export function presetDecision(scope, preset) {
|
|
|
11
11
|
if (scope.config.stack.tenancy === 'none') {
|
|
12
12
|
return '';
|
|
13
13
|
}
|
|
14
|
-
const number =
|
|
14
|
+
const number = adrNumber(scope.ws, undefined);
|
|
15
15
|
const adr = { number, date: new Date().toISOString().slice(0, 10) };
|
|
16
16
|
scope.ws.create(`${ADR_DIRECTORY}/${number}-${scope.context.kebab}-is-the-control-plane-of-the-tenants.md`, renderTemplate(`presets/${preset}/decision.md.tpl`, vars(scope, { adr })));
|
|
17
17
|
return `ADR-${number}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-decision.js","sourceRoot":"","sources":["../../src/presets/preset-decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"preset-decision.js","sourceRoot":"","sources":["../../src/presets/preset-decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,KAAY,EAAE,MAAc;IACzD,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QAC1C,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;IAEpE,KAAK,CAAC,EAAE,CAAC,MAAM,CACb,GAAG,aAAa,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,yCAAyC,EAC1F,cAAc,CAAC,WAAW,MAAM,kBAAkB,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAC1E,CAAC;IAEF,OAAO,OAAO,MAAM,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Workspace } from '../workspace/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The rules written for each row of the slices file, by row id, as the plan-slices skill writes
|
|
4
|
+
* them under the tables. A row with several lines gets them joined with `; `. Ids are text:
|
|
5
|
+
* `4.15` and `D4.01` are kept as written.
|
|
6
|
+
*/
|
|
7
|
+
export declare function readSliceRules(ws: Workspace): ReadonlyMap<string, string>;
|
|
8
|
+
//# sourceMappingURL=read-slice-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-slice-rules.d.ts","sourceRoot":"","sources":["../../src/progress/read-slice-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMvD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAczE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SLICES_FILE } from './read-slices.js';
|
|
2
|
+
/** A rule line of the slices file: `- #<row>: <invariants and failures by name>`, anywhere outside a table. */
|
|
3
|
+
const RULE_LINE = /^\s*[-*]\s+#([^\s:]+)\s*:\s*(.+?)\s*$/;
|
|
4
|
+
/**
|
|
5
|
+
* The rules written for each row of the slices file, by row id, as the plan-slices skill writes
|
|
6
|
+
* them under the tables. A row with several lines gets them joined with `; `. Ids are text:
|
|
7
|
+
* `4.15` and `D4.01` are kept as written.
|
|
8
|
+
*/
|
|
9
|
+
export function readSliceRules(ws) {
|
|
10
|
+
const rules = new Map();
|
|
11
|
+
for (const line of (ws.read(SLICES_FILE) ?? '').split('\n')) {
|
|
12
|
+
const [, id, text] = RULE_LINE.exec(line) ?? [];
|
|
13
|
+
if (id !== undefined && text !== undefined) {
|
|
14
|
+
const present = rules.get(id);
|
|
15
|
+
rules.set(id, present === undefined ? text : `${present}; ${text}`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return rules;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=read-slice-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-slice-rules.js","sourceRoot":"","sources":["../../src/progress/read-slice-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,+GAA+G;AAC/G,MAAM,SAAS,GAAG,uCAAuC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,EAAa;IAC1C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5D,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAEhD,IAAI,EAAE,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YAC3C,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAE9B,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,IAAI,EAAE,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAsD3C,wBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,GAAE,EAAc,GAAG,MAAM,CAkCvE"}
|
package/dist/run.js
CHANGED
|
@@ -6,6 +6,7 @@ import { controllersCommand } from './commands/controllers.js';
|
|
|
6
6
|
import { depcruiseConfigCommand } from './commands/depcruise-config.js';
|
|
7
7
|
import { describeCommand } from './commands/describe.js';
|
|
8
8
|
import { docsCommand } from './commands/docs.js';
|
|
9
|
+
import { drizzleGenerateCommand } from './commands/drizzle-generate.js';
|
|
9
10
|
import { errorFactoriesCommand } from './commands/error-factories.js';
|
|
10
11
|
import { generateCommand } from './commands/generate.js';
|
|
11
12
|
import { initCommand } from './commands/init.js';
|
|
@@ -34,6 +35,7 @@ const COMMANDS = {
|
|
|
34
35
|
sdk: sdkCommand,
|
|
35
36
|
'depcruise-config': depcruiseConfigCommand,
|
|
36
37
|
'build-aliases': buildAliasesCommand,
|
|
38
|
+
'drizzle-generate': drizzleGenerateCommand,
|
|
37
39
|
'error-factories': errorFactoriesCommand,
|
|
38
40
|
'value-objects': valueObjectsCommand,
|
|
39
41
|
controllers: controllersCommand,
|