@ktpartners/dgs-platform 2.7.4 → 2.8.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/agents/dgs-executor.md +0 -52
  3. package/deliver-great-systems/bin/dgs-tools.cjs +66 -10
  4. package/deliver-great-systems/bin/lib/commands.cjs +1 -8
  5. package/deliver-great-systems/bin/lib/config.cjs +9 -90
  6. package/deliver-great-systems/bin/lib/context.cjs +2 -2
  7. package/deliver-great-systems/bin/lib/context.test.cjs +100 -100
  8. package/deliver-great-systems/bin/lib/core.cjs +17 -57
  9. package/deliver-great-systems/bin/lib/core.test.cjs +166 -170
  10. package/deliver-great-systems/bin/lib/docs.cjs +3 -3
  11. package/deliver-great-systems/bin/lib/docs.test.cjs +14 -7
  12. package/deliver-great-systems/bin/lib/execution.cjs +2 -2
  13. package/deliver-great-systems/bin/lib/execution.test.cjs +65 -67
  14. package/deliver-great-systems/bin/lib/ideas.cjs +4 -4
  15. package/deliver-great-systems/bin/lib/ideas.test.cjs +45 -44
  16. package/deliver-great-systems/bin/lib/init.cjs +9 -4
  17. package/deliver-great-systems/bin/lib/init.test.cjs +242 -175
  18. package/deliver-great-systems/bin/lib/jobs.cjs +1 -1
  19. package/deliver-great-systems/bin/lib/jobs.test.cjs +203 -202
  20. package/deliver-great-systems/bin/lib/migration.cjs +256 -281
  21. package/deliver-great-systems/bin/lib/migration.test.cjs +385 -440
  22. package/deliver-great-systems/bin/lib/milestone.cjs +1 -1
  23. package/deliver-great-systems/bin/lib/overlap.cjs +4 -4
  24. package/deliver-great-systems/bin/lib/overlap.test.cjs +45 -44
  25. package/deliver-great-systems/bin/lib/path-audit.test.cjs +16 -22
  26. package/deliver-great-systems/bin/lib/paths.cjs +60 -59
  27. package/deliver-great-systems/bin/lib/paths.test.cjs +192 -225
  28. package/deliver-great-systems/bin/lib/phase.cjs +5 -4
  29. package/deliver-great-systems/bin/lib/projects.cjs +8 -8
  30. package/deliver-great-systems/bin/lib/projects.test.cjs +75 -74
  31. package/deliver-great-systems/bin/lib/repos.cjs +94 -230
  32. package/deliver-great-systems/bin/lib/repos.test.cjs +84 -75
  33. package/deliver-great-systems/bin/lib/search.cjs +4 -4
  34. package/deliver-great-systems/bin/lib/specs.cjs +2 -2
  35. package/deliver-great-systems/bin/lib/sync.cjs +1 -1
  36. package/deliver-great-systems/bin/lib/template.cjs +3 -3
  37. package/deliver-great-systems/bin/lib/test-helpers.cjs +59 -162
  38. package/deliver-great-systems/bin/lib/verify.cjs +3 -3
  39. package/deliver-great-systems/references/planning-config.md +7 -8
  40. package/deliver-great-systems/workflows/add-tests.md +1 -1
  41. package/deliver-great-systems/workflows/approve-spec.md +1 -11
  42. package/deliver-great-systems/workflows/complete-milestone.md +2 -2
  43. package/deliver-great-systems/workflows/consolidate-ideas.md +1 -1
  44. package/deliver-great-systems/workflows/create-milestone-job.md +2 -2
  45. package/deliver-great-systems/workflows/discuss-phase.md +2 -2
  46. package/deliver-great-systems/workflows/execute-phase.md +63 -4
  47. package/deliver-great-systems/workflows/execute-plan.md +0 -51
  48. package/deliver-great-systems/workflows/find-related-ideas.md +1 -1
  49. package/deliver-great-systems/workflows/help.md +25 -58
  50. package/deliver-great-systems/workflows/init-product.md +14 -451
  51. package/deliver-great-systems/workflows/map-codebase.md +109 -0
  52. package/deliver-great-systems/workflows/new-project.md +0 -1
  53. package/deliver-great-systems/workflows/quick.md +6 -7
  54. package/deliver-great-systems/workflows/run-job.md +56 -0
  55. package/deliver-great-systems/workflows/settings.md +30 -0
  56. package/package.json +5 -1
@@ -22,23 +22,14 @@ Display the complete DGS command reference. Output ONLY the reference content. D
22
22
  3. `/dgs:plan-phase 1` - Plan first phase (repos tracked per task)
23
23
  4. `/dgs:execute-phase 1` - Execute (commits per-repo automatically)
24
24
 
25
- ## Layout Detection
25
+ ## Project Structure
26
26
 
27
- DGS supports two directory layouts:
27
+ Planning artifacts live at the repo root. DGS detects single-project or multi-project mode automatically:
28
28
 
29
- - **`.planning/` layout (default):** Planning artifacts live in a `.planning/` subdirectory. Standard for repos that also contain source code.
30
- - **Root layout:** Planning artifacts live at the repo root. For dedicated planning repos where DGS owns the entire directory.
29
+ - **v1 (single-project):** Standard setup. PROJECT.md, ROADMAP.md, STATE.md, phases/ live at root. All existing commands work as before.
30
+ - **v2 (multi-project):** Detected when `PROJECTS.md` or `REPOS.md` exists. Project artifacts live under `projects/<project-slug>/`. Commands available for repo management and project switching.
31
31
 
32
- Choose your layout during `/dgs:init-product`. DGS detects the active layout from `dgs.config.json` and resolves all paths automatically.
33
-
34
- ### v1 vs v2 Detection
35
-
36
- Within either layout, DGS detects single-project or multi-project mode:
37
-
38
- - **v1 (single-project):** Standard setup. The planning root contains PROJECT.md, ROADMAP.md, STATE.md, phases/ directly. All existing commands work as before.
39
- - **v2 (multi-project):** Detected when `PROJECTS.md` or `REPOS.md` exists in the planning root. Project artifacts live under `<planning-root>/<project-slug>/`. New commands available for repo management and project switching.
40
-
41
- No migration required. v1 installations continue working unchanged. Run `/dgs:init-product` when you want to adopt v2 features.
32
+ Run `/dgs:init-product` to set up multi-project mode.
42
33
 
43
34
  ## Staying Updated
44
35
 
@@ -97,7 +88,7 @@ Creates project artifacts:
97
88
  - `ROADMAP.md` — phases mapped to requirements
98
89
  - `STATE.md` — project memory
99
90
 
100
- **v2 additions:** Prompts for project name (used as folder slug), prompts for which repos this project touches (from REPOS.md), checks for overlap with other active projects. Artifacts are created under `<planning-root>/<project-slug>/`.
91
+ **v2 additions:** Prompts for project name (used as folder slug), prompts for which repos this project touches (from REPOS.md), checks for overlap with other active projects. Artifacts are created under `projects/<project-slug>/`.
101
92
 
102
93
  Usage: `/dgs:new-project`
103
94
 
@@ -143,7 +134,7 @@ Usage: `/dgs:map-codebase --only api-service` (same, explicit flag)
143
134
  Switch active project context. *(Tier 1: lite)*
144
135
 
145
136
  - If no name given, shows picker with all active projects
146
- - Sets `current_project` in `dgs.config.json`
137
+ - Sets `current_project` in `config.json`
147
138
  - All subsequent DGS commands operate on the selected project
148
139
  - Shows brief status of the switched-to project
149
140
 
@@ -698,7 +689,7 @@ Configure workflow toggles and model profile interactively. *(Tier 1: lite)*
698
689
 
699
690
  - Toggle researcher, plan checker, verifier agents
700
691
  - Select model profile (quality/balanced/budget)
701
- - Updates `dgs.config.json`
692
+ - Updates `config.json`
702
693
 
703
694
  Usage: `/dgs:settings`
704
695
 
@@ -759,41 +750,13 @@ Usage: `/dgs:join-discord`
759
750
 
760
751
  ## Files & Structure
761
752
 
762
- DGS supports two directory layouts. Choose during `/dgs:init-product`:
763
-
764
- ### .planning/ Layout (Default)
753
+ ### Directory Layout
765
754
 
766
- Standard layout for repos that also contain source code:
755
+ Planning artifacts live at the repo root:
767
756
 
768
757
  ```
769
758
  my-repo/
770
- ├── .planning/ # Planning root
771
- │ ├── dgs.config.json # Workflow mode & gates
772
- │ ├── PROJECT.md # Project vision
773
- │ ├── ROADMAP.md # Current phase breakdown
774
- │ ├── STATE.md # Project memory & context
775
- │ ├── REQUIREMENTS.md # Scoped requirements
776
- │ ├── todos/ # Captured ideas and tasks
777
- │ ├── debug/ # Active debug sessions
778
- │ ├── milestones/ # Archived milestone snapshots
779
- │ ├── codebase/ # Codebase map (brownfield projects)
780
- │ └── phases/ # Phase directories
781
- │ ├── 01-foundation/
782
- │ │ ├── 01-01-PLAN.md
783
- │ │ └── 01-01-SUMMARY.md
784
- │ └── 02-core-features/
785
- │ ├── 02-01-PLAN.md
786
- │ └── 02-01-SUMMARY.md
787
- └── src/ # Your source code
788
- ```
789
-
790
- ### Root Layout
791
-
792
- For dedicated planning repos where DGS owns the entire directory:
793
-
794
- ```
795
- my-planning-repo/
796
- ├── dgs.config.json # Workflow mode & gates
759
+ ├── config.json # Workflow mode & gates
797
760
  ├── PROJECT.md # Project vision
798
761
  ├── ROADMAP.md # Current phase breakdown
799
762
  ├── STATE.md # Project memory & context
@@ -804,21 +767,25 @@ my-planning-repo/
804
767
  ├── codebase/ # Codebase map (brownfield projects)
805
768
  └── phases/ # Phase directories
806
769
  ├── 01-foundation/
770
+ │ ├── 01-01-PLAN.md
771
+ │ └── 01-01-SUMMARY.md
807
772
  └── 02-core-features/
773
+ ├── 02-01-PLAN.md
774
+ └── 02-01-SUMMARY.md
808
775
  ```
809
776
 
810
777
  ### v2 (Multi-Project, Multi-Repo)
811
778
 
812
- Multi-project mode works with either layout. Planning root contains project subfolders:
779
+ Multi-project mode adds project subfolders and a repo registry:
813
780
 
814
781
  ```
815
782
  my-product/ # Product folder (git repo)
816
- ├── <planning-root>/ # .planning/ or repo root
817
- ├── REPOS.md # Repo registry (names, paths, URLs)
818
- ├── PROJECTS.md # Project index (auto-generated)
819
- ├── dgs.config.json # Product-level config
820
- ├── codebase/ # Shared codebase map
821
- │ │ └── <repo-name>/ # Per-repo codebase maps
783
+ ├── REPOS.md # Repo registry (names, paths, URLs)
784
+ ├── PROJECTS.md # Project index (auto-generated)
785
+ ├── config.json # Product-level config
786
+ ├── codebase/ # Shared codebase map
787
+ └── <repo-name>/ # Per-repo codebase maps
788
+ ├── projects/
822
789
  │ ├── auth-overhaul/ # Project: auth-overhaul
823
790
  │ │ ├── PROJECT.md
824
791
  │ │ ├── REQUIREMENTS.md
@@ -840,7 +807,7 @@ my-product/ # Product folder (git repo)
840
807
 
841
808
  **Key concepts:**
842
809
  - **Product** = top-level container with its own git repo for planning changes
843
- - **Project** = a unit of work (feature, initiative). Lives in `<planning-root>/<project-slug>/`. Multiple can be active.
810
+ - **Project** = a unit of work (feature, initiative). Lives in `projects/<project-slug>/`. Multiple can be active.
844
811
  - **Repo** = a source code repository. Registered in REPOS.md. Projects can touch multiple repos.
845
812
 
846
813
  ## Workflow Modes
@@ -859,11 +826,11 @@ Set during `/dgs:new-project`:
859
826
  - Executes plans without confirmation
860
827
  - Only stops for critical checkpoints
861
828
 
862
- Change anytime by editing `dgs.config.json`
829
+ Change anytime by editing `config.json`
863
830
 
864
831
  ## Planning Configuration
865
832
 
866
- Configure how planning artifacts are managed in `dgs.config.json`:
833
+ Configure how planning artifacts are managed in `config.json`:
867
834
 
868
835
  **`planning.commit_docs`** (default: `true`)
869
836
  - `true`: Planning artifacts committed to git (standard workflow)