create-sdd-project 0.4.1 → 0.4.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.
package/lib/generator.js CHANGED
@@ -256,9 +256,10 @@ function removeFrontendFiles(dest, config) {
256
256
  [/\n# Frontend\nNEXT_PUBLIC_API_URL=.*\n/, '\n'],
257
257
  ]);
258
258
 
259
- // Remove frontend from AGENTS.md project structure
259
+ // Remove frontend from AGENTS.md project structure + Standards References
260
260
  replaceInFile(path.join(dest, 'AGENTS.md'), [
261
261
  ['├── frontend/ ← Frontend (has its own package.json)\n', ''],
262
+ [/- \[Frontend Standards\].*\n/, ''],
262
263
  ]);
263
264
 
264
265
  // Product tracker already defaults to backend — no change needed
@@ -278,9 +279,10 @@ function removeBackendFiles(dest, config) {
278
279
  [/# Backend\nNODE_ENV=.*\nPORT=.*\nDATABASE_URL=.*\n\n/, ''],
279
280
  ]);
280
281
 
281
- // Remove backend from AGENTS.md project structure
282
+ // Remove backend from AGENTS.md project structure + Standards References
282
283
  replaceInFile(path.join(dest, 'AGENTS.md'), [
283
284
  ['├── backend/ ← Backend (has its own package.json)\n', ''],
285
+ [/- \[Backend Standards\].*\n/, ''],
284
286
  ]);
285
287
 
286
288
  // Update product tracker default feature type to frontend
@@ -766,6 +766,14 @@ function adaptAgentsMd(template, config, scan) {
766
766
  );
767
767
  }
768
768
 
769
+ if (!scan.backend.detected) {
770
+ // Remove backend-standards reference for frontend-only projects
771
+ content = content.replace(
772
+ /- \[Backend Standards\].*\n/,
773
+ ''
774
+ );
775
+ }
776
+
769
777
  return content;
770
778
  }
771
779
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sdd-project",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Create a new SDD DevFlow project with AI-assisted development workflow",
5
5
  "bin": {
6
6
  "create-sdd-project": "bin/cli.js"