sdd-pipeline 1.3.1 → 1.3.2
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.
|
@@ -24,10 +24,10 @@ Write-Host "=== SDD Converge Validation ===" -ForegroundColor Cyan
|
|
|
24
24
|
|
|
25
25
|
if ($taskId) {
|
|
26
26
|
Write-Host "Running per-task converge for: $taskId" -ForegroundColor Cyan
|
|
27
|
-
pwsh run-converge.ps1 -TaskId $taskId
|
|
27
|
+
pwsh lib/bundle/run-converge.ps1 -TaskId $taskId
|
|
28
28
|
} else {
|
|
29
29
|
Write-Host "Running full project converge..." -ForegroundColor Cyan
|
|
30
|
-
pwsh run-converge.ps1
|
|
30
|
+
pwsh lib/bundle/run-converge.ps1
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
Write-Host ""
|
|
@@ -87,34 +87,113 @@ switch ($cmd) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
"init" {
|
|
90
|
-
|
|
90
|
+
Write-Host ""
|
|
91
|
+
Write-Host "=== SDD Pipeline Init ===" -ForegroundColor Cyan
|
|
92
|
+
|
|
93
|
+
# Create directories
|
|
94
|
+
$dirs = @(".sdd", "templates", "converge", ".claude/commands", "commands", "extensions", "sdd", "sdd/tasks", "sdd/converge", ".github/workflows")
|
|
95
|
+
foreach ($dir in $dirs) {
|
|
96
|
+
if (-not (Test-Path $dir)) {
|
|
97
|
+
New-Item -ItemType Directory -Path $dir -Force | Out-Null
|
|
98
|
+
Write-Host " [DIR] $dir" -ForegroundColor Gray
|
|
99
|
+
}
|
|
100
|
+
}
|
|
91
101
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
# Copy templates from bundle
|
|
103
|
+
$bundleTemplates = @(
|
|
104
|
+
"templates/CONSTITUTION.template.md",
|
|
105
|
+
"templates/SPEC.template.md",
|
|
106
|
+
"templates/PLAN.template.md",
|
|
107
|
+
"templates/TASKS.template.md",
|
|
108
|
+
"templates/BMAD-brief.template.md",
|
|
109
|
+
"templates/task-master.template.md",
|
|
110
|
+
"templates/task-detail.template.md",
|
|
111
|
+
"templates/README.md"
|
|
112
|
+
)
|
|
113
|
+
Write-Host ""
|
|
114
|
+
Write-Host "Copying templates..." -ForegroundColor White
|
|
115
|
+
foreach ($tpl in $bundleTemplates) {
|
|
116
|
+
$src = "lib/bundle/$tpl"
|
|
117
|
+
$dest = $tpl
|
|
118
|
+
if ((Test-Path $src) -and -not (Test-Path $dest)) {
|
|
119
|
+
Copy-Item $src $dest -Force
|
|
120
|
+
Write-Host " [COPY] $dest" -ForegroundColor Gray
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
# Copy Claude Code commands
|
|
125
|
+
$bundleCmds = @("sdd.md", "sdd-bmad.md", "sdd-spec.md", "sdd-tasks.md", "sdd-cook.md", "sdd-converge.md", "sdd-check.md", "sdd-task-status.md", "sdd-init.md")
|
|
126
|
+
Write-Host ""
|
|
127
|
+
Write-Host "Copying Claude Code commands..." -ForegroundColor White
|
|
128
|
+
foreach ($cmd in $bundleCmds) {
|
|
129
|
+
$src = "lib/bundle/.claude/commands/$cmd"
|
|
130
|
+
$dest = ".claude/commands/$cmd"
|
|
131
|
+
if ((Test-Path $src) -and -not (Test-Path $dest)) {
|
|
132
|
+
Copy-Item $src $dest -Force
|
|
133
|
+
Write-Host " [COPY] $cmd" -ForegroundColor Gray
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
# Copy standalone scripts
|
|
138
|
+
$bundleScripts = @("sdd-status.ps1", "sdd-task-status.ps1", "sdd-tasks.ps1")
|
|
139
|
+
Write-Host ""
|
|
140
|
+
Write-Host "Copying scripts..." -ForegroundColor White
|
|
141
|
+
foreach ($script in $bundleScripts) {
|
|
142
|
+
$src = "lib/bundle/commands/$script"
|
|
143
|
+
$dest = "commands/$script"
|
|
144
|
+
if ((Test-Path $src) -and -not (Test-Path $dest)) {
|
|
145
|
+
Copy-Item $src $dest -Force
|
|
146
|
+
Write-Host " [COPY] $script" -ForegroundColor Gray
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
# Copy converge script
|
|
151
|
+
if ((Test-Path "lib/bundle/run-converge.ps1") -and -not (Test-Path "lib/bundle/run-converge.ps1")) {
|
|
152
|
+
Copy-Item "lib/bundle/run-converge.ps1" "lib/bundle/run-converge.ps1" -Force
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
# Copy GitHub workflow
|
|
156
|
+
if ((Test-Path "lib/bundle/.github/workflows/converge.yml") -and -not (Test-Path ".github/workflows/converge.yml")) {
|
|
157
|
+
Copy-Item "lib/bundle/.github/workflows/converge.yml" ".github/workflows/converge.yml" -Force
|
|
158
|
+
Write-Host " [COPY] converge.yml" -ForegroundColor Gray
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
# Create config (v1.1.0 structure)
|
|
162
|
+
if (-not (Test-Path ".sdd/config.json")) {
|
|
95
163
|
$config = @{
|
|
96
|
-
version = "1.0"
|
|
164
|
+
version = "1.1.0"
|
|
97
165
|
phases = @{
|
|
98
|
-
current =
|
|
99
|
-
phase0 = @{ status = "pending"; brief = "
|
|
100
|
-
phase1 = @{ status = "
|
|
101
|
-
phase2 = @{ status = "pending"; specFile = "SPEC.md" }
|
|
102
|
-
phase3 = @{ status = "pending";
|
|
166
|
+
current = 1
|
|
167
|
+
phase0 = @{ status = "pending"; brief = "sdd/brief.md" }
|
|
168
|
+
phase1 = @{ status = "in-progress" }
|
|
169
|
+
phase2 = @{ status = "pending"; specFile = "sdd/SPEC.md" }
|
|
170
|
+
phase3 = @{ status = "pending"; tasksDir = "sdd/tasks" }
|
|
103
171
|
phase4 = @{ status = "pending" }
|
|
104
|
-
phase5 = @{ status = "pending"; validationFile = "converge/validation.md" }
|
|
172
|
+
phase5 = @{ status = "pending"; validationFile = "sdd/converge/validation.md" }
|
|
173
|
+
}
|
|
174
|
+
output = @{
|
|
175
|
+
baseDir = "sdd"
|
|
176
|
+
brief = "sdd/brief.md"
|
|
177
|
+
spec = "sdd/SPEC.md"
|
|
178
|
+
tasksDir = "sdd/tasks"
|
|
179
|
+
convergeDir = "sdd/converge"
|
|
105
180
|
}
|
|
106
181
|
templateVersions = @{
|
|
107
|
-
constitution = "1.0.0"; bmad = "
|
|
108
|
-
spec = "
|
|
182
|
+
constitution = "1.0.0"; bmad = "2.0.0"
|
|
183
|
+
spec = "3.0.0"; plan = "1.0.0"; tasks = "1.2.0"
|
|
109
184
|
}
|
|
110
185
|
project = @{ name = "TODO"; domain = "general" }
|
|
111
186
|
settings = @{ autoConverge = $false; strictMode = $true; maxTaskHours = 2 }
|
|
112
187
|
}
|
|
113
|
-
$config | ConvertTo-Json | Set-Content ".sdd/config.json" -Encoding UTF8
|
|
188
|
+
$config | ConvertTo-Json -Depth 10 | Set-Content ".sdd/config.json" -Encoding UTF8
|
|
189
|
+
Write-Host ""
|
|
114
190
|
Write-Host "[OK] SDD pipeline initialized." -ForegroundColor Green
|
|
191
|
+
} else {
|
|
192
|
+
Write-Host ""
|
|
193
|
+
Write-Host "[SKIP] SDD pipeline already initialized" -ForegroundColor Yellow
|
|
115
194
|
}
|
|
116
195
|
Write-Host ""
|
|
117
|
-
Write-Host "Next: /sdd bmad <feature description>"
|
|
196
|
+
Write-Host "Next: /sdd bmad <feature description>" -ForegroundColor Cyan
|
|
118
197
|
}
|
|
119
198
|
|
|
120
199
|
"bmad" {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdd-pipeline",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Spec-Driven Development pipeline for Claude Code CLI — transforms raw feature requests into validated, shipped code through a self-correcting converge loop",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|