dflow-sdd-ddd 0.13.0 → 0.14.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 +65 -1
- package/CONTRIBUTING.md +6 -9
- package/README.en.md +36 -25
- package/README.md +10 -8
- package/TEMPLATE-COVERAGE.md +2 -2
- package/bin/dflow.js +22 -1
- package/docs/npm-publish-checklist.md +3 -1
- package/docs/release-versioning-policy.md +3 -2
- package/docs/using-with-claude-code.en.md +12 -6
- package/docs/using-with-claude-code.md +7 -3
- package/docs/using-with-codex.en.md +5 -2
- package/docs/using-with-codex.md +3 -1
- package/docs/using-with-github-copilot.en.md +12 -6
- package/docs/using-with-github-copilot.md +8 -4
- package/lib/doctor-checks.js +178 -0
- package/lib/init.js +802 -29
- package/package.json +2 -2
- package/templates/brownfield/references/init-project-flow.md +3 -1
- package/templates/brownfield/scaffolding/AI-AGENT-GUIDE.md +8 -1
- package/templates/greenfield/references/init-project-flow.md +5 -5
- package/templates/greenfield/scaffolding/AI-AGENT-GUIDE.md +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dflow-sdd-ddd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Spec-first SDD/DDD workflow kit for AI-assisted development",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/weilung/dflow-sdd-ddd#readme",
|
|
41
41
|
"scripts": {
|
|
42
|
-
"test": "node test/smoke.mjs && node test/skill-default.mjs && node test/registry-parity.mjs && node test/agent-inject.mjs && node test/bundle-guards.mjs && node test/render.mjs"
|
|
42
|
+
"test": "node test/smoke.mjs && node test/skill-default.mjs && node test/registry-parity.mjs && node test/agent-inject.mjs && node test/upgrade-drift.mjs && node test/bundle-guards.mjs && node test/render.mjs"
|
|
43
43
|
},
|
|
44
44
|
"license": "AGPL-3.0-or-later",
|
|
45
45
|
"publishConfig": {
|
|
@@ -104,7 +104,9 @@ Used to substitute `{Framework}` / `{Framework version}` / `{Language}` /
|
|
|
104
104
|
If yes → `_overview.md` "Target Architecture Strategy" section is emphasised and
|
|
105
105
|
`migration/tech-debt.md` is prioritised. If no → the scaffolding still
|
|
106
106
|
mentions the principles (Migration Awareness / Domain Extraction /
|
|
107
|
-
Dual-Track Parallel / Pragmatic First) but framed as forward-option.
|
|
107
|
+
Dual-Track Parallel / Pragmatic First) but framed as forward-option. Either
|
|
108
|
+
way the answer is recorded in the `Migration / legacy context` row of the AI
|
|
109
|
+
agent guide's `## Project Context` table.
|
|
108
110
|
|
|
109
111
|
### Q4. Project prose language
|
|
110
112
|
|
|
@@ -13,6 +13,11 @@ This project uses Dflow for spec-first AI-assisted development.
|
|
|
13
13
|
| Migration / legacy context | {migration-context} |
|
|
14
14
|
| Prose language | {prose-language} |
|
|
15
15
|
|
|
16
|
+
<!-- dflow-generated: guide-canonical START -->
|
|
17
|
+
<!-- Everything between these markers is Dflow-managed canonical guide content.
|
|
18
|
+
`dflow configure-agents` refreshes it in place on upgrade. Put project-specific
|
|
19
|
+
notes in "## Project Context" above (or outside the markers), not in here. -->
|
|
20
|
+
|
|
16
21
|
## Why This Matters
|
|
17
22
|
|
|
18
23
|
This project has business logic embedded in delivery/entrypoint code
|
|
@@ -300,7 +305,7 @@ needed). The criteria below apply when `/dflow:modify-existing` or
|
|
|
300
305
|
| Tier | Scenario | Output | Command / Trigger |
|
|
301
306
|
|---|---|---|---|
|
|
302
307
|
| **T1 Heavy** | New feature, new phase, architectural change, new BR | Independent `phase-spec-YYYY-MM-DD-{slug}.md` placed in the feature directory + `_index.md` Phase Specs row + refresh BR Snapshot | `/dflow:new-feature` / `/dflow:new-phase` |
|
|
303
|
-
| **T2 Light** | Bug fix, UI input validation tweak, flow branch change — has BR Delta | Independent `lightweight-
|
|
308
|
+
| **T2 Light** | Bug fix, UI input validation tweak, flow branch change — has BR Delta | Independent `lightweight-YYYY-MM-DD-{slug}.md` (or `BUG-{NUMBER}-{slug}.md`) inside the feature directory + `_index.md` Lightweight Changes row (outbound link) + refresh BR Snapshot | `/dflow:bug-fix` or `/dflow:modify-existing` (lightweight branch) |
|
|
304
309
|
| **T3 Trivial** | Button colour, copy/text fix, typo, formatting, pure comments — **no BR change, no Domain concept change, no data structure change** | **Inline row in `_index.md` Lightweight Changes only** (no independent spec file) | `/dflow:modify-existing` (`_index-only` branch) |
|
|
305
310
|
|
|
306
311
|
**T3 criteria** (the AI must satisfy **all four** before classifying T3):
|
|
@@ -426,3 +431,5 @@ should stay thin and point back here.
|
|
|
426
431
|
If a tool does not support Dflow slash commands, treat the command names as
|
|
427
432
|
plain workflow names and follow the matching flow file from the workflow bundle
|
|
428
433
|
at `dflow/specs/shared/dflow-workflows/`.
|
|
434
|
+
|
|
435
|
+
<!-- dflow-generated: guide-canonical END -->
|
|
@@ -110,12 +110,12 @@ Used to substitute `{Framework version}` / `{ORM version}` /
|
|
|
110
110
|
|
|
111
111
|
> "Was this project ported / migrated from a prior stack (e.g. legacy
|
|
112
112
|
> presentation framework, monolith), or is it new-build on the chosen
|
|
113
|
-
> framework? If migrated, is there any legacy concern you'd like
|
|
114
|
-
> overview to flag?"
|
|
113
|
+
> framework? If migrated, is there any legacy concern you'd like noted?"
|
|
115
114
|
|
|
116
|
-
If migrated →
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
If migrated → the answer is recorded in the `Migration / legacy context` row
|
|
116
|
+
of the AI agent guide's `## Project Context` table. If not migrated, skip —
|
|
117
|
+
the row records `none`. In the Greenfield track, migration is not the
|
|
118
|
+
first-class concern, but noting origin is still useful.
|
|
119
119
|
|
|
120
120
|
### Q4. Project prose language
|
|
121
121
|
|
|
@@ -13,6 +13,11 @@ This project uses Dflow for spec-first AI-assisted development.
|
|
|
13
13
|
| Migration / legacy context | {migration-context} |
|
|
14
14
|
| Prose language | {prose-language} |
|
|
15
15
|
|
|
16
|
+
<!-- dflow-generated: guide-canonical START -->
|
|
17
|
+
<!-- Everything between these markers is Dflow-managed canonical guide content.
|
|
18
|
+
`dflow configure-agents` refreshes it in place on upgrade. Put project-specific
|
|
19
|
+
notes in "## Project Context" above (or outside the markers), not in here. -->
|
|
20
|
+
|
|
16
21
|
## Before Editing Code
|
|
17
22
|
|
|
18
23
|
Do not jump from a request directly to code. First identify the matching
|
|
@@ -258,7 +263,7 @@ judgement needed). The criteria below apply when `/dflow:modify-existing` or
|
|
|
258
263
|
| Tier | Scenario | Output | Command / Trigger |
|
|
259
264
|
|---|---|---|---|
|
|
260
265
|
| **T1 Heavy** | New feature, new phase, new Aggregate / BC, architectural change, new BR | Independent `phase-spec-YYYY-MM-DD-{slug}.md` placed in the feature directory + `_index.md` Phase Specs row + refresh BR Snapshot. For a new Aggregate / BC also create an `aggregate-design.md` from `templates/aggregate-design.md` **in the feature directory** (working worksheet; the durable summary stays in `models.md`) + update `context-map.md` + `events.md`. | `/dflow:new-feature` / `/dflow:new-phase` |
|
|
261
|
-
| **T2 Light** | Bug fix (logic error), UI input validation tweak, flow branch change — has BR Delta | Independent `lightweight-
|
|
266
|
+
| **T2 Light** | Bug fix (logic error), UI input validation tweak, flow branch change — has BR Delta | Independent `lightweight-YYYY-MM-DD-{slug}.md` (or `BUG-{NUMBER}-{slug}.md`) inside the feature directory + `_index.md` Lightweight Changes row (outbound link) + refresh BR Snapshot. Confirm the fix lands in the correct architectural layer. | `/dflow:bug-fix` or `/dflow:modify-existing` (lightweight branch) |
|
|
262
267
|
| **T3 Trivial** | Button colour, copy/text fix, typo, formatting, pure comments — **no BR change, no Domain concept change, no data structure change** | **Inline row in `_index.md` Lightweight Changes only** (no independent spec file) | `/dflow:modify-existing` (`_index-only` branch) |
|
|
263
268
|
|
|
264
269
|
**T3 criteria** (the AI must satisfy **all four** before classifying T3):
|
|
@@ -389,3 +394,5 @@ should stay thin and point back here.
|
|
|
389
394
|
If a tool does not support Dflow slash commands, treat the command names as
|
|
390
395
|
plain workflow names and follow the matching flow file from the workflow bundle
|
|
391
396
|
at `dflow/specs/shared/dflow-workflows/`.
|
|
397
|
+
|
|
398
|
+
<!-- dflow-generated: guide-canonical END -->
|