@atlashub/smartstack-cli 3.28.0 → 3.30.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 (44) hide show
  1. package/dist/index.js +6 -7
  2. package/dist/index.js.map +1 -1
  3. package/package.json +2 -3
  4. package/templates/project/api.ts.template +4 -2
  5. package/templates/project/appsettings.json.template +1 -1
  6. package/templates/skills/apex/_shared.md +13 -0
  7. package/templates/skills/apex/references/post-checks.md +228 -6
  8. package/templates/skills/apex/references/smartstack-api.md +67 -17
  9. package/templates/skills/apex/references/smartstack-frontend.md +41 -1
  10. package/templates/skills/apex/references/smartstack-layers.md +40 -10
  11. package/templates/skills/apex/steps/step-02-plan.md +16 -11
  12. package/templates/skills/apex/steps/step-03-execute.md +6 -0
  13. package/templates/skills/apex/steps/step-04-examine.md +4 -2
  14. package/templates/skills/application/references/frontend-verification.md +26 -1
  15. package/templates/skills/application/steps/step-03-roles.md +1 -1
  16. package/templates/skills/application/steps/step-05-frontend.md +24 -8
  17. package/templates/skills/application/templates-frontend.md +41 -22
  18. package/templates/skills/application/templates-seed.md +53 -16
  19. package/templates/skills/business-analyse/SKILL.md +4 -2
  20. package/templates/skills/business-analyse/_shared.md +17 -4
  21. package/templates/skills/business-analyse/react/schema.md +1 -1
  22. package/templates/skills/business-analyse/references/agent-module-prompt.md +40 -11
  23. package/templates/skills/business-analyse/references/consolidation-structural-checks.md +4 -3
  24. package/templates/skills/business-analyse/references/deploy-modes.md +1 -1
  25. package/templates/skills/business-analyse/references/handoff-file-templates.md +4 -4
  26. package/templates/skills/business-analyse/references/robustness-checks.md +12 -9
  27. package/templates/skills/business-analyse/references/spec-auto-inference.md +3 -3
  28. package/templates/skills/business-analyse/references/team-orchestration.md +57 -23
  29. package/templates/skills/business-analyse/references/ui-resource-cards.md +3 -3
  30. package/templates/skills/business-analyse/references/validation-checklist.md +21 -3
  31. package/templates/skills/business-analyse/schemas/sections/specification-schema.json +33 -5
  32. package/templates/skills/business-analyse/steps/step-03a2-analysis.md +12 -0
  33. package/templates/skills/business-analyse/steps/step-03b-ui.md +14 -2
  34. package/templates/skills/business-analyse/steps/step-03c-compile.md +17 -9
  35. package/templates/skills/business-analyse/steps/step-03d-validate.md +42 -2
  36. package/templates/skills/business-analyse/steps/step-04b-analyze.md +5 -3
  37. package/templates/skills/business-analyse/steps/step-05a-handoff.md +23 -15
  38. package/templates/skills/business-analyse/templates/tpl-handoff.md +10 -8
  39. package/templates/skills/business-analyse/templates/tpl-progress.md +7 -6
  40. package/templates/skills/ralph-loop/references/category-rules.md +50 -6
  41. package/templates/skills/ralph-loop/references/compact-loop.md +16 -1
  42. package/templates/skills/ralph-loop/references/core-seed-data.md +158 -38
  43. package/templates/skills/ralph-loop/references/task-transform-legacy.md +3 -3
  44. package/templates/skills/ralph-loop/steps/step-02-execute.md +109 -1
package/dist/index.js CHANGED
@@ -117586,23 +117586,22 @@ async function initializeGit(config, dryRun) {
117586
117586
  const gitDir = (0, import_path7.join)(projectDir, ".git");
117587
117587
  const isGitInitialized = await import_fs_extra6.default.pathExists(gitDir);
117588
117588
  if (isGitInitialized) {
117589
- logger.info("Git repository already initialized, adding SmartStack files...");
117590
- } else {
117591
- logger.info("Initializing Git repository...");
117592
- execCommand("git init", projectDir, dryRun);
117589
+ logger.info("Git repository already initialized, skipping git setup (commit via your git workflow).");
117590
+ return;
117593
117591
  }
117592
+ logger.info("Initializing Git repository...");
117593
+ execCommand("git init -b main", projectDir, dryRun);
117594
117594
  await ensureGitIdentity(projectDir, dryRun);
117595
- const commitMsg = isGitInitialized ? "feat: initialize SmartStack project structure" : "chore: initial SmartStack project setup";
117596
117595
  execCommand("git add .", projectDir, dryRun);
117597
117596
  if (!dryRun) {
117598
117597
  try {
117599
117598
  (0, import_child_process5.execSync)("git diff --cached --quiet", { cwd: projectDir, shell: true });
117600
117599
  logger.info(source_default.gray("No new changes to commit (already committed)"));
117601
117600
  } catch {
117602
- execCommand(`git commit -m "${commitMsg}"`, projectDir, dryRun);
117601
+ execCommand('git commit -m "chore: initial SmartStack project setup"', projectDir, dryRun);
117603
117602
  }
117604
117603
  } else {
117605
- execCommand(`git commit -m "${commitMsg}"`, projectDir, dryRun);
117604
+ execCommand('git commit -m "chore: initial SmartStack project setup"', projectDir, dryRun);
117606
117605
  }
117607
117606
  }
117608
117607
  var initCommand = new Command("init").description("Initialize a new SmartStack project").argument("[name]", "Project name (optional, uses current folder if not provided)").option("--dry-run", "Show what would be created without actually creating").option("-y, --yes", "Skip prompts and use defaults").option("--skip-mcp-check", "Skip MCP servers verification").option("--multi-tenant", "Enable multi-tenant mode").option("--b2b", "Enable B2B (organisation management)").option("--b2c", "Enable B2C (user tenant management)").option("--preview", "Use preview/prerelease versions (NuGet --prerelease + npm @next)").option("--here", "Initialize in current directory (use folder name as project name)").action(async (name, options) => {