ddd-ts-kit 0.26.0 → 0.27.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 +96 -0
- package/README.fr.md +4 -3
- package/README.md +3 -2
- package/dist/acceptance/acceptance-file-of.d.ts +5 -0
- package/dist/acceptance/acceptance-file-of.d.ts.map +1 -0
- package/dist/acceptance/acceptance-file-of.js +7 -0
- package/dist/acceptance/acceptance-file-of.js.map +1 -0
- package/dist/acceptance/acceptance-gate.d.ts +8 -0
- package/dist/acceptance/acceptance-gate.d.ts.map +1 -0
- package/dist/acceptance/acceptance-gate.js +2 -0
- package/dist/acceptance/acceptance-gate.js.map +1 -0
- package/dist/acceptance/acceptance-lock.d.ts +32 -0
- package/dist/acceptance/acceptance-lock.d.ts.map +1 -0
- package/dist/acceptance/acceptance-lock.js +2 -0
- package/dist/acceptance/acceptance-lock.js.map +1 -0
- package/dist/acceptance/acceptance-problem.d.ts +15 -0
- package/dist/acceptance/acceptance-problem.d.ts.map +1 -0
- package/dist/acceptance/acceptance-problem.js +2 -0
- package/dist/acceptance/acceptance-problem.js.map +1 -0
- package/dist/acceptance/commentless.d.ts +4 -0
- package/dist/acceptance/commentless.d.ts.map +1 -0
- package/dist/acceptance/commentless.js +31 -0
- package/dist/acceptance/commentless.js.map +1 -0
- package/dist/acceptance/counts-for.d.ts +5 -0
- package/dist/acceptance/counts-for.d.ts.map +1 -0
- package/dist/acceptance/counts-for.js +8 -0
- package/dist/acceptance/counts-for.js.map +1 -0
- package/dist/acceptance/criteria-in.d.ts +14 -0
- package/dist/acceptance/criteria-in.d.ts.map +1 -0
- package/dist/acceptance/criteria-in.js +34 -0
- package/dist/acceptance/criteria-in.js.map +1 -0
- package/dist/acceptance/drift.d.ts +30 -0
- package/dist/acceptance/drift.d.ts.map +1 -0
- package/dist/acceptance/drift.js +44 -0
- package/dist/acceptance/drift.js.map +1 -0
- package/dist/acceptance/format-acceptance.d.ts +5 -0
- package/dist/acceptance/format-acceptance.d.ts.map +1 -0
- package/dist/acceptance/format-acceptance.js +40 -0
- package/dist/acceptance/format-acceptance.js.map +1 -0
- package/dist/acceptance/lock-acceptance.d.ts +24 -0
- package/dist/acceptance/lock-acceptance.d.ts.map +1 -0
- package/dist/acceptance/lock-acceptance.js +58 -0
- package/dist/acceptance/lock-acceptance.js.map +1 -0
- package/dist/acceptance/lock-file-of.d.ts +3 -0
- package/dist/acceptance/lock-file-of.d.ts.map +1 -0
- package/dist/acceptance/lock-file-of.js +6 -0
- package/dist/acceptance/lock-file-of.js.map +1 -0
- package/dist/acceptance/lock-problems.d.ts +21 -0
- package/dist/acceptance/lock-problems.d.ts.map +1 -0
- package/dist/acceptance/lock-problems.js +58 -0
- package/dist/acceptance/lock-problems.js.map +1 -0
- package/dist/acceptance/read-acceptance.d.ts +9 -0
- package/dist/acceptance/read-acceptance.d.ts.map +1 -0
- package/dist/acceptance/read-acceptance.js +76 -0
- package/dist/acceptance/read-acceptance.js.map +1 -0
- package/dist/acceptance/read-lock.d.ts +5 -0
- package/dist/acceptance/read-lock.d.ts.map +1 -0
- package/dist/acceptance/read-lock.js +45 -0
- package/dist/acceptance/read-lock.js.map +1 -0
- package/dist/acceptance/read-verdicts.d.ts +9 -0
- package/dist/acceptance/read-verdicts.d.ts.map +1 -0
- package/dist/acceptance/read-verdicts.js +35 -0
- package/dist/acceptance/read-verdicts.js.map +1 -0
- package/dist/acceptance/scenario-problems.d.ts +12 -0
- package/dist/acceptance/scenario-problems.d.ts.map +1 -0
- package/dist/acceptance/scenario-problems.js +74 -0
- package/dist/acceptance/scenario-problems.js.map +1 -0
- package/dist/acceptance/scenario.d.ts +23 -0
- package/dist/acceptance/scenario.d.ts.map +1 -0
- package/dist/acceptance/scenario.js +2 -0
- package/dist/acceptance/scenario.js.map +1 -0
- package/dist/acceptance/scenarios-in.d.ts +4 -0
- package/dist/acceptance/scenarios-in.d.ts.map +1 -0
- package/dist/acceptance/scenarios-in.js +68 -0
- package/dist/acceptance/scenarios-in.js.map +1 -0
- package/dist/acceptance/story-acceptance.d.ts +29 -0
- package/dist/acceptance/story-acceptance.d.ts.map +1 -0
- package/dist/acceptance/story-acceptance.js +2 -0
- package/dist/acceptance/story-acceptance.js.map +1 -0
- package/dist/acceptance/story-file-of.d.ts +4 -0
- package/dist/acceptance/story-file-of.d.ts.map +1 -0
- package/dist/acceptance/story-file-of.js +8 -0
- package/dist/acceptance/story-file-of.js.map +1 -0
- package/dist/acceptance/story-of-file.d.ts +3 -0
- package/dist/acceptance/story-of-file.d.ts.map +1 -0
- package/dist/acceptance/story-of-file.js +6 -0
- package/dist/acceptance/story-of-file.js.map +1 -0
- package/dist/acceptance/story-of-row.d.ts +3 -0
- package/dist/acceptance/story-of-row.d.ts.map +1 -0
- package/dist/acceptance/story-of-row.js +6 -0
- package/dist/acceptance/story-of-row.js.map +1 -0
- package/dist/acceptance/story-problems.d.ts +16 -0
- package/dist/acceptance/story-problems.d.ts.map +1 -0
- package/dist/acceptance/story-problems.js +48 -0
- package/dist/acceptance/story-problems.js.map +1 -0
- package/dist/acceptance/verdict-on.d.ts +8 -0
- package/dist/acceptance/verdict-on.d.ts.map +1 -0
- package/dist/acceptance/verdict-on.js +9 -0
- package/dist/acceptance/verdict-on.js.map +1 -0
- package/dist/acceptance/verdict.d.ts +14 -0
- package/dist/acceptance/verdict.d.ts.map +1 -0
- package/dist/acceptance/verdict.js +2 -0
- package/dist/acceptance/verdict.js.map +1 -0
- package/dist/acceptance/verdicts-dir.d.ts +3 -0
- package/dist/acceptance/verdicts-dir.d.ts.map +1 -0
- package/dist/acceptance/verdicts-dir.js +3 -0
- package/dist/acceptance/verdicts-dir.js.map +1 -0
- 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/configuration/config-inspection.d.ts +1 -0
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +9 -1
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/explain/tree-docs.d.ts.map +1 -1
- package/dist/check/explain/tree-docs.js +9 -0
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/test-fixtures.js +35 -0
- package/dist/check/fixtures/test-fixtures.js.map +1 -1
- package/dist/check/project/walk-directory.js +1 -1
- package/dist/check/project/walk-directory.js.map +1 -1
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +1 -0
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.d.ts +3 -0
- package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -0
- package/dist/check/rules/test-acceptance-black-box.js +38 -0
- package/dist/check/rules/test-acceptance-black-box.js.map +1 -0
- package/dist/commands/acceptance.d.ts +11 -0
- package/dist/commands/acceptance.d.ts.map +1 -0
- package/dist/commands/acceptance.js +63 -0
- package/dist/commands/acceptance.js.map +1 -0
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +1 -2
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/stories.d.ts +9 -0
- package/dist/commands/stories.d.ts.map +1 -0
- package/dist/commands/stories.js +16 -0
- package/dist/commands/stories.js.map +1 -0
- package/dist/commands/story-scope.d.ts +4 -0
- package/dist/commands/story-scope.d.ts.map +1 -0
- package/dist/commands/story-scope.js +34 -0
- package/dist/commands/story-scope.js.map +1 -0
- package/dist/commands/story.d.ts +9 -0
- package/dist/commands/story.d.ts.map +1 -0
- package/dist/commands/story.js +45 -0
- package/dist/commands/story.js.map +1 -0
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +2 -0
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts +7 -0
- package/dist/commands/worktree.d.ts.map +1 -0
- package/dist/commands/worktree.js +34 -0
- package/dist/commands/worktree.js.map +1 -0
- package/dist/config/config.d.ts +7 -0
- 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.js +1 -0
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/serialize-config.js +1 -0
- package/dist/config/serialize-config.js.map +1 -1
- package/dist/config/worktree-modes.d.ts +3 -0
- package/dist/config/worktree-modes.d.ts.map +1 -0
- package/dist/config/worktree-modes.js +3 -0
- package/dist/config/worktree-modes.js.map +1 -0
- package/dist/generate/kinds/acceptance-kind.d.ts +3 -0
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -0
- package/dist/generate/kinds/acceptance-kind.js +69 -0
- package/dist/generate/kinds/acceptance-kind.js.map +1 -0
- package/dist/generate/kinds.d.ts.map +1 -1
- package/dist/generate/kinds.js +2 -0
- package/dist/generate/kinds.js.map +1 -1
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +3 -0
- package/dist/generate/shared-writes.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 +50 -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 +6 -0
- package/dist/help/usage.js.map +1 -1
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +9 -1
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/ignore-worktrees.d.ts +7 -0
- package/dist/init/ignore-worktrees.d.ts.map +1 -0
- package/dist/init/ignore-worktrees.js +15 -0
- package/dist/init/ignore-worktrees.js.map +1 -0
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +9 -3
- package/dist/init/run-init.js.map +1 -1
- package/dist/plan/batched-waves.d.ts +0 -2
- package/dist/plan/batched-waves.d.ts.map +1 -1
- package/dist/plan/batched-waves.js +4 -4
- package/dist/plan/batched-waves.js.map +1 -1
- package/dist/plan/plan-waves.d.ts +0 -2
- package/dist/plan/plan-waves.d.ts.map +1 -1
- package/dist/plan/plan-waves.js +2 -2
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +10 -0
- package/dist/run.js.map +1 -1
- package/dist/slice/plan-staging.d.ts +1 -1
- package/dist/slice/plan-staging.d.ts.map +1 -1
- package/dist/slice/plan-staging.js +5 -2
- package/dist/slice/plan-staging.js.map +1 -1
- package/dist/stories/forecast-merge.d.ts +14 -0
- package/dist/stories/forecast-merge.d.ts.map +1 -0
- package/dist/stories/forecast-merge.js +44 -0
- package/dist/stories/forecast-merge.js.map +1 -0
- package/dist/stories/format-stories.d.ts +4 -0
- package/dist/stories/format-stories.d.ts.map +1 -0
- package/dist/stories/format-stories.js +66 -0
- package/dist/stories/format-stories.js.map +1 -0
- package/dist/stories/format-story-phases.d.ts +5 -0
- package/dist/stories/format-story-phases.d.ts.map +1 -0
- package/dist/stories/format-story-phases.js +14 -0
- package/dist/stories/format-story-phases.js.map +1 -0
- package/dist/stories/merge-forecast.d.ts +18 -0
- package/dist/stories/merge-forecast.d.ts.map +1 -0
- package/dist/stories/merge-forecast.js +2 -0
- package/dist/stories/merge-forecast.js.map +1 -0
- package/dist/stories/open-stories.d.ts +8 -0
- package/dist/stories/open-stories.d.ts.map +1 -0
- package/dist/stories/open-stories.js +31 -0
- package/dist/stories/open-stories.js.map +1 -0
- package/dist/stories/open-story-scope.d.ts +23 -0
- package/dist/stories/open-story-scope.d.ts.map +1 -0
- package/dist/stories/open-story-scope.js +86 -0
- package/dist/stories/open-story-scope.js.map +1 -0
- package/dist/stories/open-story.d.ts +11 -0
- package/dist/stories/open-story.d.ts.map +1 -0
- package/dist/stories/open-story.js +2 -0
- package/dist/stories/open-story.js.map +1 -0
- package/dist/stories/read-stories.d.ts +9 -0
- package/dist/stories/read-stories.d.ts.map +1 -0
- package/dist/stories/read-stories.js +60 -0
- package/dist/stories/read-stories.js.map +1 -0
- package/dist/stories/read-story-phases.d.ts +10 -0
- package/dist/stories/read-story-phases.d.ts.map +1 -0
- package/dist/stories/read-story-phases.js +144 -0
- package/dist/stories/read-story-phases.js.map +1 -0
- package/dist/stories/read-story-place.d.ts +4 -0
- package/dist/stories/read-story-place.d.ts.map +1 -0
- package/dist/stories/read-story-place.js +23 -0
- package/dist/stories/read-story-place.js.map +1 -0
- package/dist/stories/review-file-of.d.ts +4 -0
- package/dist/stories/review-file-of.d.ts.map +1 -0
- package/dist/stories/review-file-of.js +7 -0
- package/dist/stories/review-file-of.js.map +1 -0
- package/dist/stories/section-of.d.ts +3 -0
- package/dist/stories/section-of.d.ts.map +1 -0
- package/dist/stories/section-of.js +11 -0
- package/dist/stories/section-of.js.map +1 -0
- package/dist/stories/stories-view.d.ts +13 -0
- package/dist/stories/stories-view.d.ts.map +1 -0
- package/dist/stories/stories-view.js +2 -0
- package/dist/stories/stories-view.js.map +1 -0
- package/dist/stories/story-crossing.d.ts +16 -0
- package/dist/stories/story-crossing.d.ts.map +1 -0
- package/dist/stories/story-crossing.js +2 -0
- package/dist/stories/story-crossing.js.map +1 -0
- package/dist/stories/story-gate.d.ts +4 -0
- package/dist/stories/story-gate.d.ts.map +1 -0
- package/dist/stories/story-gate.js +2 -0
- package/dist/stories/story-gate.js.map +1 -0
- package/dist/stories/story-phase.d.ts +13 -0
- package/dist/stories/story-phase.d.ts.map +1 -0
- package/dist/stories/story-phase.js +2 -0
- package/dist/stories/story-phase.js.map +1 -0
- package/dist/stories/story-place.d.ts +14 -0
- package/dist/stories/story-place.d.ts.map +1 -0
- package/dist/stories/story-place.js +2 -0
- package/dist/stories/story-place.js.map +1 -0
- package/dist/stories/story-scope-file.d.ts +3 -0
- package/dist/stories/story-scope-file.d.ts.map +1 -0
- package/dist/stories/story-scope-file.js +3 -0
- package/dist/stories/story-scope-file.js.map +1 -0
- package/dist/stories/story-scope.d.ts +17 -0
- package/dist/stories/story-scope.d.ts.map +1 -0
- package/dist/stories/story-scope.js +2 -0
- package/dist/stories/story-scope.js.map +1 -0
- package/dist/stories/story-state.d.ts +13 -0
- package/dist/stories/story-state.d.ts.map +1 -0
- package/dist/stories/story-state.js +2 -0
- package/dist/stories/story-state.js.map +1 -0
- package/dist/stories/trunk-phase.d.ts +8 -0
- package/dist/stories/trunk-phase.d.ts.map +1 -0
- package/dist/stories/trunk-phase.js +27 -0
- package/dist/stories/trunk-phase.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/add-worktree.d.ts +7 -0
- package/dist/worker/add-worktree.d.ts.map +1 -0
- package/dist/worker/add-worktree.js +13 -0
- package/dist/worker/add-worktree.js.map +1 -0
- package/dist/worker/branch-exists.d.ts +3 -0
- package/dist/worker/branch-exists.d.ts.map +1 -0
- package/dist/worker/branch-exists.js +6 -0
- package/dist/worker/branch-exists.js.map +1 -0
- package/dist/worker/briefed-rows.js +1 -1
- package/dist/worker/briefed-rows.js.map +1 -1
- package/dist/worker/ensure-ignored.d.ts +7 -0
- package/dist/worker/ensure-ignored.d.ts.map +1 -0
- package/dist/worker/ensure-ignored.js +17 -0
- package/dist/worker/ensure-ignored.js.map +1 -0
- package/dist/worker/install-notes.d.ts +9 -0
- package/dist/worker/install-notes.d.ts.map +1 -0
- package/dist/worker/install-notes.js +25 -0
- package/dist/worker/install-notes.js.map +1 -0
- package/dist/worker/is-worktree.d.ts +3 -0
- package/dist/worker/is-worktree.d.ts.map +1 -0
- package/dist/worker/is-worktree.js +15 -0
- package/dist/worker/is-worktree.js.map +1 -0
- package/dist/worker/open-worker-scope.d.ts +6 -1
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +29 -36
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/worker/repository-prefix.d.ts +3 -0
- package/dist/worker/repository-prefix.d.ts.map +1 -0
- package/dist/worker/repository-prefix.js +14 -0
- package/dist/worker/repository-prefix.js.map +1 -0
- package/dist/worker/upstream-of.d.ts +8 -0
- package/dist/worker/upstream-of.d.ts.map +1 -0
- package/dist/worker/upstream-of.js +18 -0
- package/dist/worker/upstream-of.js.map +1 -0
- package/dist/worker/worktree-home.d.ts +9 -0
- package/dist/worker/worktree-home.d.ts.map +1 -0
- package/dist/worker/worktree-home.js +17 -0
- package/dist/worker/worktree-home.js.map +1 -0
- package/dist/worker/worktree-of.d.ts +13 -0
- package/dist/worker/worktree-of.d.ts.map +1 -0
- package/dist/worker/worktree-of.js +30 -0
- package/dist/worker/worktree-of.js.map +1 -0
- package/dist/worktree/open-worktree.d.ts +20 -0
- package/dist/worktree/open-worktree.d.ts.map +1 -0
- package/dist/worktree/open-worktree.js +57 -0
- package/dist/worktree/open-worktree.js.map +1 -0
- package/dist/worktree/worktree-scope.d.ts +15 -0
- package/dist/worktree/worktree-scope.d.ts.map +1 -0
- package/dist/worktree/worktree-scope.js +2 -0
- package/dist/worktree/worktree-scope.js.map +1 -0
- package/package.json +2 -2
- package/templates/acceptance/acceptance.spec.ts.tpl +35 -0
- package/templates/init/docker/dockerignore.tpl +1 -0
- package/templates/init/e2e/jest.e2e.config.js.tpl +1 -1
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +1 -1
- package/templates/init/gitignore.tpl +1 -0
- package/templates/pipeline/biome.json.tpl +1 -0
- package/templates/pipeline/package-scripts.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { acceptanceFileOf } from '../../acceptance/acceptance-file-of.js';
|
|
2
|
+
import { criteriaIn } from '../../acceptance/criteria-in.js';
|
|
3
|
+
import { storyFileOf } from '../../acceptance/story-file-of.js';
|
|
4
|
+
import { storyOfRow } from '../../acceptance/story-of-row.js';
|
|
5
|
+
import { CliError } from '../../cli-error.js';
|
|
6
|
+
import { readSlices, SLICES_FILE } from '../../progress/read-slices.js';
|
|
7
|
+
import { stackVars } from '../../stack/stack-vars.js';
|
|
8
|
+
import { renderTemplate } from '../../templating/index.js';
|
|
9
|
+
const STORY = /^[A-Za-z0-9][A-Za-z0-9-]*$/;
|
|
10
|
+
export const acceptanceKind = {
|
|
11
|
+
name: 'acceptance',
|
|
12
|
+
aliases: [],
|
|
13
|
+
usage: 'acceptance <story> ["<title>"]',
|
|
14
|
+
summary: 'The acceptance spec of a story, in test/acceptance/, written before its code: an it.todo per acceptance criterion of docs/architecture/stories/<story>.md, or per slice row of the story in docs/architecture/slices.md when it states none.',
|
|
15
|
+
positionals: ['story'],
|
|
16
|
+
optionalPositionals: ['title'],
|
|
17
|
+
writesShared: true,
|
|
18
|
+
run: ({ ws, config, args }) => {
|
|
19
|
+
const story = storyNamed(args[0] ?? '');
|
|
20
|
+
requireHttp(config);
|
|
21
|
+
const rows = slicesOf(readSlices(ws) ?? [], story);
|
|
22
|
+
ws.create(acceptanceFileOf(story), renderTemplate('acceptance/acceptance.spec.ts.tpl', {
|
|
23
|
+
...stackVars(config),
|
|
24
|
+
story: {
|
|
25
|
+
id: story,
|
|
26
|
+
title: quoted(args[1]?.trim() || story),
|
|
27
|
+
example: `${story}.01`,
|
|
28
|
+
rows: rows.map((row) => `#${row.id} ${row.slice}`).join(', '),
|
|
29
|
+
todos: todosOf(ws, story, rows).join('\n'),
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
if (!ws.exists('test/e2e/support/start-application.ts')) {
|
|
33
|
+
ws.note('test/e2e/support/start-application.ts is missing: `ddd-ts-kit init` creates it (existing files are kept).');
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
function storyNamed(story) {
|
|
38
|
+
if (!STORY.test(story)) {
|
|
39
|
+
throw new CliError(`"${story}" is not the code of a story.`, 'Pass the code its rows start with in docs/architecture/slices.md: `US5` for the rows `US5.01`, `US5.02`.');
|
|
40
|
+
}
|
|
41
|
+
return story;
|
|
42
|
+
}
|
|
43
|
+
function requireHttp(config) {
|
|
44
|
+
if (config.stack.http === 'none') {
|
|
45
|
+
throw new CliError('The project has no HTTP stack: an acceptance scenario drives the application through its API.', 'Write the acceptance of the story as specs of its handlers in each context (skill ddd-ts-kit:testing).');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** An it.todo per acceptance criterion the specification of the story states, else per slice row. */
|
|
49
|
+
function todosOf(ws, story, rows) {
|
|
50
|
+
const specification = storyFileOf(ws, story);
|
|
51
|
+
const criteria = specification === undefined ? [] : criteriaIn(ws.read(specification) ?? '');
|
|
52
|
+
return criteria.length > 0
|
|
53
|
+
? criteria.map((criterion) => ` it.todo('${criterion.id} ${quoted(criterion.text)}');`)
|
|
54
|
+
: rows.map((row) => ` it.todo('#${row.id} ${quoted(row.slice)}');`);
|
|
55
|
+
}
|
|
56
|
+
/** The slice rows of the story, which a client can observe; contracts and skeletons are proved through them. */
|
|
57
|
+
function slicesOf(slices, story) {
|
|
58
|
+
const own = slices.filter((row) => storyOfRow(row.id).toLowerCase() === story.toLowerCase());
|
|
59
|
+
if (own.length === 0) {
|
|
60
|
+
throw new CliError(`No row of ${SLICES_FILE} belongs to ${story}.`, `Plan the story first (skill ddd-ts-kit:plan-slices), its rows numbered ${story}.01, ${story}.02: each scenario names the row that makes it pass.`);
|
|
61
|
+
}
|
|
62
|
+
const slicesOnly = own.filter((row) => row.kind === 'slice');
|
|
63
|
+
return slicesOnly.length > 0 ? slicesOnly : own;
|
|
64
|
+
}
|
|
65
|
+
/** A text safe between the single quotes of a test title. */
|
|
66
|
+
function quoted(text) {
|
|
67
|
+
return text.replaceAll('\\', '\\\\').replaceAll("'", "\\'");
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=acceptance-kind.js.map
|
|
@@ -0,0 +1 @@
|
|
|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C9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAyCtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAyChC,CAAC"}
|
package/dist/generate/kinds.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { acceptanceKind } from './kinds/acceptance-kind.js';
|
|
1
2
|
import { aclKind } from './kinds/acl-kind.js';
|
|
2
3
|
import { adapterKind } from './kinds/adapter-kind.js';
|
|
3
4
|
import { adrKind } from './kinds/adr-kind.js';
|
|
@@ -71,6 +72,7 @@ export const KINDS = [
|
|
|
71
72
|
processKind,
|
|
72
73
|
aclKind,
|
|
73
74
|
e2eKind,
|
|
75
|
+
acceptanceKind,
|
|
74
76
|
policyKind,
|
|
75
77
|
gatewayKind,
|
|
76
78
|
adapterKind,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC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C;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAoB;IACpC,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,UAAU;IACV,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,SAAS;IACT,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,WAAW;IACX,SAAS;IACT,QAAQ;IACR,SAAS;IACT,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,sBAAsB;IACtB,gBAAgB;IAChB,cAAc;IACd,OAAO;IACP,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,OAAO;IACP,cAAc;IACd,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,UAAU;IACV,OAAO;CACR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-writes.d.ts","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD,uJAAuJ;AACvJ,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"shared-writes.d.ts","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD,uJAAuJ;AACvJ,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CA6E/D,CAAC"}
|
|
@@ -75,6 +75,9 @@ export const SHARED_WRITES = {
|
|
|
75
75
|
files: ['docs/adr/', 'ddd-ts-kit.config.json (with --deviation)'],
|
|
76
76
|
worker: 'without --deviation: a decision of its slices',
|
|
77
77
|
},
|
|
78
|
+
acceptance: {
|
|
79
|
+
files: ['test/acceptance/<story>.acceptance.spec.ts, the acceptance of a story, written before its code'],
|
|
80
|
+
},
|
|
78
81
|
schema: {
|
|
79
82
|
files: ['<sharedKernelDir>/presentation/<name>.schema.ts'],
|
|
80
83
|
when: 'the first argument is shared-kernel: a schema several contexts answer with',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-writes.js","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,GAAG,CAAC,qEAAqE,E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xG,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,sEAAsE,CAAC;QAC/E,IAAI,EAAE,yBAAyB;KAChC;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,2EAA2E;YAC3E,+EAA+E;SAChF;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,qCAAqC;YACrC,cAAc;YACd,WAAW;YACX,wBAAwB;YACxB,oBAAoB;YACpB,qBAAqB;SACtB;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,kCAAkC;YAClC,cAAc;YACd,wBAAwB;YACxB,oBAAoB;YACpB,qCAAqC;SACtC;KACF;IACD,GAAG,EAAE;QACH,KAAK,EAAE,CAAC,WAAW,EAAE,2CAA2C,CAAC;QACjE,MAAM,EAAE,+CAA+C;KACxD;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,iDAAiD,CAAC;QAC1D,IAAI,EAAE,4EAA4E;QAClF,MAAM,EAAE,sDAAsD;KAC/D;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"shared-writes.js","sourceRoot":"","sources":["../../src/generate/shared-writes.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,GAAG,CAAC,qEAAqE,EAAE,sBAAsB,CAAC,CAAC;AAEhH,MAAM,MAAM,GAAG;IACb,yDAAyD;IACzD,kEAAkE;CACnE,CAAC;AAEF,MAAM,OAAO,GAAG,4EAA4E,CAAC;AAE7F,MAAM,MAAM,GACV,6LAA6L,CAAC;AAEhM,uJAAuJ;AACvJ,MAAM,CAAC,MAAM,aAAa,GAA0C;IAClE,OAAO,EAAE;QACP,KAAK,EAAE;YACL,wBAAwB;YACxB,6DAA6D;YAC7D,uCAAuC;YACvC,8DAA8D;YAC9D,iCAAiC;YACjC,qBAAqB;YACrB,yBAAyB;YACzB,+BAA+B;SAChC;KACF;IACD,UAAU,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,OAAO,EAAE;QACP,KAAK,E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KACxD;IACD,UAAU,EAAE;QACV,KAAK,EAAE,CAAC,gGAAgG,CAAC;KAC1G;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,iDAAiD,CAAC;QAC1D,IAAI,EAAE,4EAA4E;QAClF,MAAM,EAAE,sDAAsD;KAC/D;CACF,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 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; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: deletes\n the migrations of the branch that --base <ref> (origin/main by default) does not have,\n with their snapshots and journal entries, then generates each again on top, in order,\n under its name (working- dropped outside a worker's worktree, a custom one keeping\n its SQL); refused while the journal holds conflict markers or when two of them change\n the schema\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 doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; --strict\n exits 1 while something is missing, never for a hook this clone has not installed\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, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\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 plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n alone, and exits 1\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. Reads only: exits 0 when it can close, 1\n listing what keeps it open, 2 on a code no row carries or without slices.md\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, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an\n end-to-end spec, a working migration, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n would not compute\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; then formats the snapshot and the\n journal it wrote with the Biome or Prettier of the format script, and warns when the\n SQL changes a primary key in an order that fails on PostgreSQL (exit code unchanged);\n --replay, after merging the trunk into a branch when both added migrations: deletes\n the migrations of the branch that --base <ref> (origin/main by default) does not have,\n with their snapshots and journal entries, then generates each again on top, in order,\n under its name (working- dropped outside a worker's worktree, a custom one keeping\n its SQL); refused while the journal holds conflict markers or when two of them change\n the schema\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 doctor what an upgrade left to do: the scripts, the packages of the kit (at the ranges of this\n version) and the agent permissions this version writes that the project lacks or writes\n otherwise, and the git hooks (the lefthook: line of lefthook.yml, the pre-commit hook of\n lefthook in this clone); init adds what is missing, hooks:install the hook; --strict\n exits 1 while something is missing, never for a hook this clone has not installed\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, each row not done ready on the trunk (its dependencies done), ready\n on a branch (the others briefed to a worker with commits ahead of its base) or waiting\n (with the ids it waits for), a row that landed with a worker's branch but is not marked done,\n and the TODO(domain), TODO(platform), it.todo and TODO(review) left in each context, and\n each story or milestone whose rows are all done while markers of its own keep it open (see\n story-check, whose git blame it runs on those markers only); --workers shows instead each\n worktree holding .ddd-ts-kit/worker.json (branch, context, rows, base, commits ahead and\n files changed counted from where its branch landed on the base when it was squash-merged\n there (else from the merge base), commits behind, the commit it landed as, what merge-trunk\n would leave conflicted now, dependencies not installed, its report), a state line (rows\n committed, the row under way, files uncommitted, markers, last verify-slice, and the\n worker-scope --resume command of a stopped one), then the contexts and the files more than\n one worker holds\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 plan-waves the rows of slices.md not done, of the project or of one context, in waves (wave 1: every\n dependency done; wave n: the others in earlier waves), each wave cut into batches of one\n owner, one or two rows on one aggregate, with the worker-scope command that briefs each,\n the batches of a wave likely to touch the same files (same aggregate in Start with, or\n unknown when it names none), the merge order and what runs before each merge (merge-trunk\n --to-land); a cycle, a dependency on an unknown id or a row without owner is reported\n alone, and exits 1\n story-check whether a story or a milestone can close, <code> being the start of the ids of its rows\n (M1 for M1.01, M1.02: the id without its last .<number>): every row of it done in\n slices.md (the others listed with their status), and no marker of its own left\n (TODO(domain), TODO(platform), it.todo, TODO(review)). A marker is attributed to\n rows: those its text names (#M1.03 or M1.03, word-bounded), else those of the commit\n that wrote its line (git blame, once per file; its Slice: trailer, else the row ids\n its message names), else, not committed, those of .ddd-ts-kit/worker.json in a\n worker's worktree. It is the story's own when it belongs to one of its rows,\n wherever it is; a marker of a context of its rows that belongs to no row is its own\n when no other open story has a row in that context, and is listed without blocking\n otherwise (settle it or name its row in it); a marker of other stories' rows does not\n block. --strict: every marker of its contexts blocks. Each blocker comes with why it\n is its own, its file:line and its fix: handle it, or dismiss it by a decision record\n (generate adr), then delete the marker. Reads only: exits 0 when it can close, 1\n listing what keeps it open, 2 on a code no row carries or without slices.md\n acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against\n its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and\n criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write\n (it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is\n built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,\n a pending one whose rows are done, a locked one changed while its criteria were not);\n --gate written: every slice row and criterion has a written scenario, none is left to\n write, the acceptance is locked (before the code of the story); --gate passing: none is\n pending either (before the story closes); exits 1 while a gate is not met, or, without\n one, on an inconsistency. Never runs a test. --lock writes\n test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of\n each scenario (pending(...), layout and comments aside), refused while a scenario is\n left to write, or while a criterion changed, or a locked scenario changed while its\n criteria did not, without a verdict \"amend\" of the acceptance-judge agent on that very\n version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,\n Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,\n listed for the owner to validate\n worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),\n cut from --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, the documents of their design and\n the names that design cites the base does not have (see cited), and by default the first\n batch plan-waves cuts for the context (one or two rows on one aggregate), a note naming the\n next; a worktree it creates gets the clean install of the package manager (npm ci), its\n time in the notes, unless --no-install; an existing worktree or branch that does not\n contain the base is refused, with the merge-trunk that brings it in\n --here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the\n next agent in place, its base the base of the story, and prints its briefing; no\n worktree, branch or install of its own; the agents of a story run one after the other\n story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default\n origin/main from the trunk, else the current branch, refused from the worktree of a\n story), its .ddd-ts-kit/story.json and\n its clean install; an existing one is kept and the story resumes there; refused when the\n story is open in another worktree; names the other open stories and the contexts their\n rows change\n worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base\n (by default origin/main from the trunk, else the current branch), and its clean install\n unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,\n whichever worktree it runs from, ignored by git and by the tools of the project; while\n the .gitignore of a project started before does not hold it (init adds it), a worktree\n opens next to the project, ../<project>-<name>; in a project whose config says\n \"worktrees\": \"required\" (what init writes), the guard of the plugin refuses the code of\n a context in the main checkout of the trunk, and in a worktree of .worktrees/ without\n its own node_modules\n story where a story stands, phase by phase: its specification and criteria\n (docs/architecture/stories/<story>.md), its rows in slices.md, a design review section\n per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written\n and locked, its rows done, its acceptance passing, its trunk merged in, its ## Report; and\n the next step; in the worktree of a story, the story is its own; --gate build exits 1\n until the first four are met (the code may start: the guard of the plugin opens the\n contexts), --gate close until all are\n stories the stories open in the worktrees of the repository and where two of them meet: the\n contexts the rows of both name, the files both worktrees change (committed or not), what\n merging the branch of one into the other leaves to a person and what merge-trunk settles\n (git merge-tree, nothing written); how far each is behind its base; from the worktree of a\n story, the stories it meets; the guard of the plugin says it at session start and on a\n write to a file another story changes\n --resume worker-scope reads where the stopped worker of the context stands (its rows by their\n Slice: trailer, the files of the row under way, the markers, its last verify-slice, its\n report, its agent as the guard recorded it) and prints the message that resumes its agent\n (SendMessage) or the briefing of a new one; creates and rewrites nothing; --fresh asks for\n a new agent whatever the last one did; several worktrees of the context need --worktree\n verify-slice closes a slice before its commit, in one run: the regenerate script, check on the files\n changed since --since (new ones included), the test script for the context; then the\n changed files past 300 of the 350 lines, the paths of the slice to stage (its context, an\n end-to-end spec, a working migration, the derived files git tracks) and every other\n changed path, left out and never to stage with it; the merges since --since, as\n verify-merge checks them, reported without failing the slice in this version (a later\n minor version fails it); exits 1 while a step fails; then the names the slice removes\n that the design of a row not done still cites (never a failure); in the worktree of a\n worker, the commit command with the trailer Slice: <row>, and\n .ddd-ts-kit/verification.json for the conductor\n cited the names the design of rows not done cites as code (paths, classes, Class.member) that\n the code does not have: those the history of --base removed (with the commit and the\n successor), the places the canonical tree refuses, and a name never there whose close\n name of the same part arrived after the line was written; planned names stay silent.\n The design of a row: its cells and rule lines in slices.md, a section of a document of\n docs/architecture whose heading names it, a document that names it or that its rule\n line links to. Default: every row not done, of the context when given, at the current\n branch. --removed-since <ref>: the names a change removes, from the merge base to the\n working tree, that such a design cites. Reads only, exits 0\n verify-merge what the merges of a branch lost, read from git only: every merge commit since --since\n (by default the base of .ddd-ts-kit/worker.json, then origin/HEAD, then origin/main) and\n the merge in progress (its result: the index and the working tree), or one <commit>; a\n squash commit takes --theirs <head of the branch it took in>. Errors: a line one side\n added or both kept missing from the result (whitespace, a line laid out again, a move\n to another file and imports merged into one statement aside), a file neither side\n deleted gone from the result, a row of slices.md done on one side and no longer done or\n gone, a test title or a spec file of one side gone, a migration of one side whose\n description (name without number and working-) the result lacks, a conflict marker;\n warnings: a line one side removed brought back, a line one side wrote where the other\n changed the same lines or deleted the file (the merge chose), a line the merge replaced\n by lines of its own. Derived files, files a tool says it wrote, migrations, lockfiles\n and slices.md are left out of the lines. The base is --base, else the Merge-Base:\n trailer of the merge, else git merge-base; entries of a Lost-Accepted: <file:line>,...\n trailer are listed and never fail, nor what a later commit restored; silent and exit 0\n without a merge, exit 1 on an error; --warn prints the same and exits 0, as the\n pre-push hook of init runs it in this version (a later minor version blocks the push)\n merge-trunk brings the trunk (--trunk, by default origin/HEAD then origin/main, never fetched) into the\n branch as one merge commit computed from the branch's own diff: from the newest commit of\n the branch the trunk holds (--since; else the commit whose patch, derived files,\n migrations, slices.md, plan.md and lockfiles left out, is one commit of the trunk, on this\n branch or a branch it shares commits with; else the base recorded for the worker when its\n lines are on the trunk; else git merge-base). Settles derived files and drizzle-kit meta\n (trunk side), generated regions of CONTEXT.md and the context map (trunk side), conflicts\n inside generated registries (lines of both sides), slices.md row by row (the furthest\n status), the stored-events lock by key, the lockfile (trunk side, installed again when\n the branch changed package.json); the rest is left in a merge in progress git\n understands, with what each side did (exit 1). Then, or on --continue: the drizzle\n migrations of both sides replayed, on --to-land the working migrations renamed (knex,\n Prisma, TypeORM; stop when both sides change one table), decision records renumbered,\n regenerate, verify-merge on the uncommitted result (an error stops; --accept-lost records\n a Lost-Accepted: trailer), and the commit of the merge's paths only, with the trailers\n Merge-Base:, Trunk: and Landed:; any other changed path blocks it. --dry-run previews,\n --abort undoes; refused (exit 2) on a dirty tree, another operation in progress, no\n committer known to git, an unknown trunk, or a git older than 2.40 with a base git\n would not compute\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,mznBAsM8C,CAAC"}
|
package/dist/help/notes.js
CHANGED
|
@@ -72,8 +72,25 @@ export const NOTES = ` affected what a pull request has to run: the con
|
|
|
72
72
|
is its own, its file:line and its fix: handle it, or dismiss it by a decision record
|
|
73
73
|
(generate adr), then delete the marker. Reads only: exits 0 when it can close, 1
|
|
74
74
|
listing what keeps it open, 2 on a code no row carries or without slices.md
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
acceptance the acceptance scenarios of each story (test/acceptance/<story>.acceptance.spec.ts) against
|
|
76
|
+
its rows in slices.md and the criteria of docs/architecture/stories/<story>.md: the rows and
|
|
77
|
+
criteria each scenario names (#US5.02 AC1 in its title), the scenarios left to write
|
|
78
|
+
(it.todo), those wrapped in pending(...) of @ddd-ts-kit/testing/e2e until their code is
|
|
79
|
+
built, and what is inconsistent (no row, an unknown row or criterion, a scenario skipped,
|
|
80
|
+
a pending one whose rows are done, a locked one changed while its criteria were not);
|
|
81
|
+
--gate written: every slice row and criterion has a written scenario, none is left to
|
|
82
|
+
write, the acceptance is locked (before the code of the story); --gate passing: none is
|
|
83
|
+
pending either (before the story closes); exits 1 while a gate is not met, or, without
|
|
84
|
+
one, on an inconsistency. Never runs a test. --lock writes
|
|
85
|
+
test/acceptance/<story>.acceptance.lock.json, the fingerprint of each criterion and of
|
|
86
|
+
each scenario (pending(...), layout and comments aside), refused while a scenario is
|
|
87
|
+
left to write, or while a criterion changed, or a locked scenario changed while its
|
|
88
|
+
criteria did not, without a verdict "amend" of the acceptance-judge agent on that very
|
|
89
|
+
version (test/acceptance/verdicts/*.md, lines Story:, Subject:, Fingerprint:,
|
|
90
|
+
Verdict:, Reason:); a refusal wins; the verdicts become amendments of the lock,
|
|
91
|
+
listed for the owner to validate
|
|
92
|
+
worker-scope a git worktree on the branch build/<context> (by default .worktrees/<context>, see worktree),
|
|
93
|
+
cut from --base <ref> (by default the current branch, refused from a worker's worktree), its
|
|
77
94
|
.ddd-ts-kit/worker.json, and the briefing of the worker of that context; --rows <id,...>
|
|
78
95
|
briefs those rows of slices.md only, with their rules, the documents of their design and
|
|
79
96
|
the names that design cites the base does not have (see cited), and by default the first
|
|
@@ -81,6 +98,37 @@ export const NOTES = ` affected what a pull request has to run: the con
|
|
|
81
98
|
next; a worktree it creates gets the clean install of the package manager (npm ci), its
|
|
82
99
|
time in the notes, unless --no-install; an existing worktree or branch that does not
|
|
83
100
|
contain the base is refused, with the merge-trunk that brings it in
|
|
101
|
+
--here worker-scope in the worktree of a story (.ddd-ts-kit/story.json): writes the scope of the
|
|
102
|
+
next agent in place, its base the base of the story, and prints its briefing; no
|
|
103
|
+
worktree, branch or install of its own; the agents of a story run one after the other
|
|
104
|
+
story-scope the worktree of one story, .worktrees/<story> on story/<story> cut from --base (by default
|
|
105
|
+
origin/main from the trunk, else the current branch, refused from the worktree of a
|
|
106
|
+
story), its .ddd-ts-kit/story.json and
|
|
107
|
+
its clean install; an existing one is kept and the story resumes there; refused when the
|
|
108
|
+
story is open in another worktree; names the other open stories and the contexts their
|
|
109
|
+
rows change
|
|
110
|
+
worktree the worktree of any other piece of work, .worktrees/<name> on work/<name> cut from --base
|
|
111
|
+
(by default origin/main from the trunk, else the current branch), and its clean install
|
|
112
|
+
unless --no-install; an existing one is kept; .worktrees/ lies in the main checkout,
|
|
113
|
+
whichever worktree it runs from, ignored by git and by the tools of the project; while
|
|
114
|
+
the .gitignore of a project started before does not hold it (init adds it), a worktree
|
|
115
|
+
opens next to the project, ../<project>-<name>; in a project whose config says
|
|
116
|
+
"worktrees": "required" (what init writes), the guard of the plugin refuses the code of
|
|
117
|
+
a context in the main checkout of the trunk, and in a worktree of .worktrees/ without
|
|
118
|
+
its own node_modules
|
|
119
|
+
story where a story stands, phase by phase: its specification and criteria
|
|
120
|
+
(docs/architecture/stories/<story>.md), its rows in slices.md, a design review section
|
|
121
|
+
per row not done (docs/architecture/reviews/<story>.md, ## #<id>), its acceptance written
|
|
122
|
+
and locked, its rows done, its acceptance passing, its trunk merged in, its ## Report; and
|
|
123
|
+
the next step; in the worktree of a story, the story is its own; --gate build exits 1
|
|
124
|
+
until the first four are met (the code may start: the guard of the plugin opens the
|
|
125
|
+
contexts), --gate close until all are
|
|
126
|
+
stories the stories open in the worktrees of the repository and where two of them meet: the
|
|
127
|
+
contexts the rows of both name, the files both worktrees change (committed or not), what
|
|
128
|
+
merging the branch of one into the other leaves to a person and what merge-trunk settles
|
|
129
|
+
(git merge-tree, nothing written); how far each is behind its base; from the worktree of a
|
|
130
|
+
story, the stories it meets; the guard of the plugin says it at session start and on a
|
|
131
|
+
write to a file another story changes
|
|
84
132
|
--resume worker-scope reads where the stopped worker of the context stands (its rows by their
|
|
85
133
|
Slice: trailer, the files of the row under way, the markers, its last verify-slice, its
|
|
86
134
|
report, its agent as the guard recorded it) and prints the message that resumes its agent
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAsM2C,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 [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\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 drizzle-generate --replay [--base <git-ref>]\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 [--workers]\n ddd-ts-kit doctor [--strict]\n ddd-ts-kit todo [<context>]\n ddd-ts-kit plan-waves [<context>]\n ddd-ts-kit story-check <code> [--strict]\n ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]\n ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]\n ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]\n ddd-ts-kit story-scope <story> [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit story [<story>] [--gate build|close]\n ddd-ts-kit stories\n ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]\n ddd-ts-kit verify-slice <context> --since <git-ref>\n ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]\n ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]\n ddd-ts-kit merge-trunk [--trunk <git-ref>] [--since <commit>] [--to-land] [--dry-run]\n ddd-ts-kit merge-trunk --continue [--accept-lost] | --abort\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 drizzle-generate --replay [--base <git-ref>]\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,s9HA0DqE,CAAC"}
|
package/dist/help/usage.js
CHANGED
|
@@ -27,8 +27,14 @@ export const USAGE = `Usage
|
|
|
27
27
|
ddd-ts-kit todo [<context>]
|
|
28
28
|
ddd-ts-kit plan-waves [<context>]
|
|
29
29
|
ddd-ts-kit story-check <code> [--strict]
|
|
30
|
+
ddd-ts-kit acceptance [<story>] [--gate written|passing] [--lock]
|
|
30
31
|
ddd-ts-kit worker-scope <context> [--base <ref>] [--rows <id,...>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]
|
|
31
32
|
ddd-ts-kit worker-scope <context> --resume [--worktree <path> | --branch <name>] [--fresh]
|
|
33
|
+
ddd-ts-kit worker-scope <context> --here [--rows <id,...>] [--base <ref>] [--dry-run]
|
|
34
|
+
ddd-ts-kit story-scope <story> [--base <ref>] [--worktree <path>] [--branch <name>] [--no-install] [--dry-run]
|
|
35
|
+
ddd-ts-kit story [<story>] [--gate build|close]
|
|
36
|
+
ddd-ts-kit stories
|
|
37
|
+
ddd-ts-kit worktree <name> [--base <ref>] [--branch <name>] [--no-install] [--dry-run]
|
|
32
38
|
ddd-ts-kit verify-slice <context> --since <git-ref>
|
|
33
39
|
ddd-ts-kit cited [<context>] [--rows <id,...>] [--base <ref>] [--removed-since <ref>]
|
|
34
40
|
ddd-ts-kit verify-merge [<commit>] [--since <git-ref>] [--theirs <git-ref>] [--base <commit>] [--warn]
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA0DkE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-permissions.d.ts","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"agent-permissions.d.ts","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBA+D/B,CAAC"}
|
|
@@ -7,6 +7,12 @@ export const AGENT_PERMISSIONS = {
|
|
|
7
7
|
'Bash(npx ddd-ts-kit check *)',
|
|
8
8
|
'Bash(npx ddd-ts-kit verify-slice *)',
|
|
9
9
|
'Bash(npx ddd-ts-kit cited *)',
|
|
10
|
+
'Bash(npx ddd-ts-kit acceptance *)',
|
|
11
|
+
'Bash(npx ddd-ts-kit story *)',
|
|
12
|
+
'Bash(npx ddd-ts-kit story-scope *)',
|
|
13
|
+
'Bash(npx ddd-ts-kit stories)',
|
|
14
|
+
'Bash(npx ddd-ts-kit stories *)',
|
|
15
|
+
'Bash(npx ddd-ts-kit worktree *)',
|
|
10
16
|
'Bash(npx ddd-ts-kit verify-merge)',
|
|
11
17
|
'Bash(npx ddd-ts-kit verify-merge *)',
|
|
12
18
|
'Bash(npx ddd-ts-kit story-check *)',
|
|
@@ -30,7 +36,8 @@ export const AGENT_PERMISSIONS = {
|
|
|
30
36
|
'Bash(npm run events:generate)',
|
|
31
37
|
'Bash(npm run events:check)',
|
|
32
38
|
],
|
|
33
|
-
// Secrets, then the generated contracts: those are regenerated, never edited
|
|
39
|
+
// Secrets, then the generated contracts: those are regenerated, never edited, and the lock of
|
|
40
|
+
// an acceptance, which `ddd-ts-kit acceptance <story> --lock` alone writes. In a deny
|
|
34
41
|
// list, a pattern starting with `!` carves its matches out of the rules before it
|
|
35
42
|
// (gitignore negation), which keeps `.env.example`, documentation, readable.
|
|
36
43
|
deny: [
|
|
@@ -40,6 +47,7 @@ export const AGENT_PERMISSIONS = {
|
|
|
40
47
|
'Edit(./openapi/**)',
|
|
41
48
|
'Edit(./docs/integration/asyncapi.*)',
|
|
42
49
|
'Edit(./docs/integration/event-catalog.md)',
|
|
50
|
+
'Edit(./test/acceptance/*.acceptance.lock.json)',
|
|
43
51
|
],
|
|
44
52
|
// Then the files that hold the rules and the pipeline: changing one is a decision of the
|
|
45
53
|
// project owner, the same list as the editor hook of the plugin asks about.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IACjD,KAAK,EAAE;QACL,8BAA8B;QAC9B,qCAAqC;QACrC,8BAA8B;QAC9B,mCAAmC;QACnC,qCAAqC;QACrC,oCAAoC;QACpC,kCAAkC;QAClC,oCAAoC;QACpC,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,
|
|
1
|
+
{"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/init/agent-permissions.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IACjD,KAAK,EAAE;QACL,8BAA8B;QAC9B,qCAAqC;QACrC,8BAA8B;QAC9B,mCAAmC;QACnC,8BAA8B;QAC9B,oCAAoC;QACpC,8BAA8B;QAC9B,gCAAgC;QAChC,iCAAiC;QACjC,mCAAmC;QACnC,qCAAqC;QACrC,oCAAoC;QACpC,kCAAkC;QAClC,oCAAoC;QACpC,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,8FAA8F;IAC9F,sFAAsF;IACtF,kFAAkF;IAClF,6EAA6E;IAC7E,IAAI,EAAE;QACJ,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,oBAAoB;QACpB,qCAAqC;QACrC,2CAA2C;QAC3C,gDAAgD;KACjD;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Workspace } from '../workspace/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Adds `.worktrees/` to the .gitignore of a project initialised before the worktrees moved there:
|
|
4
|
+
* a worktree under it would otherwise be committed as an embedded repository.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ignoreWorktrees(ws: Workspace): void;
|
|
7
|
+
//# sourceMappingURL=ignore-worktrees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-worktrees.d.ts","sourceRoot":"","sources":["../../src/init/ignore-worktrees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,GAAG,IAAI,CAYnD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WORKTREES_DIR } from '../worker/worktree-home.js';
|
|
2
|
+
const GITIGNORE = '.gitignore';
|
|
3
|
+
/**
|
|
4
|
+
* Adds `.worktrees/` to the .gitignore of a project initialised before the worktrees moved there:
|
|
5
|
+
* a worktree under it would otherwise be committed as an embedded repository.
|
|
6
|
+
*/
|
|
7
|
+
export function ignoreWorktrees(ws) {
|
|
8
|
+
const text = ws.read(GITIGNORE);
|
|
9
|
+
if (text === undefined || text.split('\n').some((line) => /^\/?\.worktrees\/?$/.test(line.trim()))) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
ws.update(GITIGNORE, `${text}${text.endsWith('\n') || text === '' ? '' : '\n'}${WORKTREES_DIR}/\n`);
|
|
13
|
+
ws.note(`${GITIGNORE} now ignores ${WORKTREES_DIR}/, where the worktrees of the agents live: commit it on the trunk.`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ignore-worktrees.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-worktrees.js","sourceRoot":"","sources":["../../src/init/ignore-worktrees.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,EAAa;IAC3C,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEhC,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;QACnG,OAAO;IACT,CAAC;IAED,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,aAAa,KAAK,CAAC,CAAC;IAEpG,EAAE,CAAC,IAAI,CACL,GAAG,SAAS,gBAAgB,aAAa,oEAAoE,CAC9G,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.27.0',
|
|
4
|
+
'@ddd-ts-kit/validation': '^0.27.0',
|
|
5
|
+
'@ddd-ts-kit/http': '^0.27.0',
|
|
6
|
+
'@ddd-ts-kit/tracing': '^0.27.0',
|
|
7
|
+
'@ddd-ts-kit/di': '^0.27.0',
|
|
8
|
+
'@ddd-ts-kit/events': '^0.27.0',
|
|
9
|
+
'@ddd-ts-kit/testing': '^0.27.0',
|
|
10
|
+
'@ddd-ts-kit/drizzle': '^0.27.0',
|
|
11
|
+
'@ddd-ts-kit/knex': '^0.27.0',
|
|
12
|
+
'@ddd-ts-kit/prisma': '^0.27.0',
|
|
13
|
+
'@ddd-ts-kit/typeorm': '^0.27.0',
|
|
14
|
+
'@ddd-ts-kit/auth': '^0.27.0',
|
|
15
|
+
'@ddd-ts-kit/rabbitmq': '^0.27.0',
|
|
16
|
+
'@ddd-ts-kit/aspects': '^0.27.0',
|
|
17
|
+
'@ddd-ts-kit/audit': '^0.27.0',
|
|
18
|
+
'@ddd-ts-kit/redis': '^0.27.0',
|
|
19
|
+
'@ddd-ts-kit/kafka': '^0.27.0',
|
|
20
|
+
'@ddd-ts-kit/nats': '^0.27.0',
|
|
21
|
+
'@ddd-ts-kit/scheduling': '^0.27.0',
|
|
22
|
+
'@ddd-ts-kit/sentry': '^0.27.0',
|
|
23
|
+
'@ddd-ts-kit/s3': '^0.27.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.27.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.27.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.27.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":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAYA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAYA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AASxE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc3E,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,2HAA2H;IAC3H,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,eAAe,CAmC3E"}
|
package/dist/init/run-init.js
CHANGED
|
@@ -16,6 +16,7 @@ import { presetNamed } from '../presets/preset-named.js';
|
|
|
16
16
|
import { addContext } from './add-context.js';
|
|
17
17
|
import { existingName } from './existing-name.js';
|
|
18
18
|
import { initFiles } from './files/init-files.js';
|
|
19
|
+
import { ignoreWorktrees } from './ignore-worktrees.js';
|
|
19
20
|
import { writeManifest } from './manifest/write-manifest.js';
|
|
20
21
|
import { recordNoOutbox } from './record-no-outbox.js';
|
|
21
22
|
import { resolveStack } from './stack/resolve-stack.js';
|
|
@@ -36,6 +37,7 @@ export function runInit(root, options) {
|
|
|
36
37
|
writeManifest(ws, { config, projectName, force: options.force });
|
|
37
38
|
writeTypeScriptConfigs(ws, config);
|
|
38
39
|
writeFiles(ws, config, projectName);
|
|
40
|
+
ignoreWorktrees(ws);
|
|
39
41
|
writeCopilotInstructions(ws);
|
|
40
42
|
ws.create(DEPCRUISE_FILE, renderCruiseFile(config));
|
|
41
43
|
writeAgentSettings(ws);
|
|
@@ -56,14 +58,18 @@ export function runInit(root, options) {
|
|
|
56
58
|
}
|
|
57
59
|
return report;
|
|
58
60
|
}
|
|
59
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* A new project gets its config whole, its code written in worktrees only; one that is
|
|
63
|
+
* initialised again with --force keeps what its team wrote around the stack.
|
|
64
|
+
*/
|
|
60
65
|
function configText(ws, config) {
|
|
61
66
|
const recorded = ws.read(CONFIG_FILE);
|
|
67
|
+
const fresh = serializeConfig({ ...config, worktrees: 'required' });
|
|
62
68
|
try {
|
|
63
|
-
return recorded === undefined ?
|
|
69
|
+
return recorded === undefined ? fresh : restackConfigText(recorded, config);
|
|
64
70
|
}
|
|
65
71
|
catch {
|
|
66
|
-
return
|
|
72
|
+
return fresh;
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-init.js","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAe,MAAM,oBAAoB,CAAC;AAClG,OAAO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CAAC,EAAa,EAAE,MAAc,EAAE,WAAmB;IACpE,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAElD,KAAK,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;QAChE,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEvG,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;AACH,CAAC;AAED,kIAAkI;AAClI,SAAS,OAAO,CAAC,IAAY;IAC3B,MAAM,KAAK,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -6,8 +6,6 @@ export interface WaveRows {
|
|
|
6
6
|
readonly rows: readonly Slice[];
|
|
7
7
|
/** The wave of every planned row, by id: a dependency it does not hold is done. */
|
|
8
8
|
readonly numbers: ReadonlyMap<string, number>;
|
|
9
|
-
/** The name of the project directory, which `worker-scope` names the worktrees after. */
|
|
10
|
-
readonly project: string;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
13
11
|
* The rows in their waves, each wave cut into batches: one owner and one context per batch, two
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batched-waves.d.ts","sourceRoot":"","sources":["../../src/plan/batched-waves.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAS,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKlD,gCAAgC;AAChC,MAAM,WAAW,QAAQ;IACvB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,SAAS,KAAK,EAAE,CAAC;IAChC,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"batched-waves.d.ts","sourceRoot":"","sources":["../../src/plan/batched-waves.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAS,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKlD,gCAAgC;AAChC,MAAM,WAAW,QAAQ;IACvB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,SAAS,KAAK,EAAE,CAAC;IAChC,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAUD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAE,CAQpD"}
|