@atlashub/smartstack-cli 3.33.0 → 3.35.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 (65) hide show
  1. package/.documentation/agents.html +5 -1
  2. package/.documentation/apex.html +644 -0
  3. package/.documentation/business-analyse.html +81 -1
  4. package/.documentation/cli-commands.html +5 -1
  5. package/.documentation/commands.html +5 -1
  6. package/.documentation/efcore.html +5 -1
  7. package/.documentation/gitflow.html +5 -1
  8. package/.documentation/hooks.html +5 -1
  9. package/.documentation/index.html +60 -2
  10. package/.documentation/init.html +414 -1
  11. package/.documentation/installation.html +5 -1
  12. package/.documentation/ralph-loop.html +365 -216
  13. package/.documentation/test-web.html +5 -1
  14. package/dist/index.js +32 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/mcp-entry.mjs +7 -24
  17. package/dist/mcp-entry.mjs.map +1 -1
  18. package/package.json +1 -2
  19. package/templates/agents/ba-writer.md +142 -15
  20. package/templates/mcp-scaffolding/controller.cs.hbs +5 -1
  21. package/templates/skills/apex/SKILL.md +9 -3
  22. package/templates/skills/apex/_shared.md +49 -4
  23. package/templates/skills/{ralph-loop → apex}/references/core-seed-data.md +20 -11
  24. package/templates/skills/{ralph-loop → apex}/references/error-classification.md +2 -1
  25. package/templates/skills/apex/references/post-checks.md +463 -3
  26. package/templates/skills/apex/references/smartstack-api.md +76 -8
  27. package/templates/skills/apex/references/smartstack-frontend.md +74 -1
  28. package/templates/skills/apex/references/smartstack-layers.md +21 -3
  29. package/templates/skills/apex/steps/step-00-init.md +121 -1
  30. package/templates/skills/apex/steps/step-01-analyze.md +58 -0
  31. package/templates/skills/apex/steps/step-02-plan.md +36 -0
  32. package/templates/skills/apex/steps/step-03-execute.md +114 -7
  33. package/templates/skills/apex/steps/step-04-examine.md +116 -2
  34. package/templates/skills/business-analyse/SKILL.md +31 -20
  35. package/templates/skills/business-analyse/_module-loop.md +68 -9
  36. package/templates/skills/business-analyse/_shared.md +80 -21
  37. package/templates/skills/business-analyse/questionnaire/00-application.md +4 -2
  38. package/templates/skills/business-analyse/questionnaire/00b-project.md +85 -0
  39. package/templates/skills/business-analyse/references/deploy-modes.md +69 -0
  40. package/templates/skills/business-analyse/references/team-orchestration.md +158 -7
  41. package/templates/skills/business-analyse/schemas/application-schema.json +15 -1
  42. package/templates/skills/business-analyse/schemas/project-schema.json +490 -0
  43. package/templates/skills/business-analyse/schemas/sections/metadata-schema.json +2 -1
  44. package/templates/skills/business-analyse/steps/step-00-init.md +220 -38
  45. package/templates/skills/business-analyse/steps/step-01-cadrage.md +184 -5
  46. package/templates/skills/business-analyse/steps/step-01b-applications.md +423 -0
  47. package/templates/skills/business-analyse/steps/step-02-decomposition.md +23 -6
  48. package/templates/skills/business-analyse/steps/step-03c-compile.md +14 -2
  49. package/templates/skills/business-analyse/steps/step-03d-validate.md +32 -7
  50. package/templates/skills/business-analyse/steps/step-04a-collect.md +111 -0
  51. package/templates/skills/business-analyse/steps/step-05a-handoff.md +296 -103
  52. package/templates/skills/business-analyse/steps/step-05b-deploy.md +46 -14
  53. package/templates/skills/documentation/SKILL.md +92 -2
  54. package/templates/skills/ralph-loop/SKILL.md +14 -17
  55. package/templates/skills/ralph-loop/references/category-rules.md +63 -683
  56. package/templates/skills/ralph-loop/references/compact-loop.md +188 -428
  57. package/templates/skills/ralph-loop/references/section-splitting.md +439 -0
  58. package/templates/skills/ralph-loop/references/team-orchestration.md +13 -14
  59. package/templates/skills/ralph-loop/steps/step-01-task.md +27 -0
  60. package/templates/skills/ralph-loop/steps/step-02-execute.md +80 -691
  61. package/templates/skills/ralph-loop/steps/step-03-commit.md +38 -79
  62. package/templates/skills/ralph-loop/steps/step-04-check.md +39 -58
  63. package/templates/skills/ralph-loop/steps/step-05-report.md +31 -123
  64. package/scripts/health-check.sh +0 -168
  65. package/scripts/postinstall.js +0 -18
@@ -12,7 +12,7 @@
12
12
  <header class="global-header">
13
13
  <div class="logo">SS</div>
14
14
  <span class="site-title">SmartStack CLI</span>
15
- <span class="version-badge">v3.0.0</span>
15
+ <span class="version-badge">v3.34.0</span>
16
16
  <div class="header-divider"></div>
17
17
  <span class="page-title">Test Web</span>
18
18
  <nav class="breadcrumb">
@@ -90,6 +90,10 @@
90
90
  <span class="icon">&#128260;</span>
91
91
  <span class="nav-text">Ralph Loop</span>
92
92
  </a>
93
+ <a href="apex.html" class="nav-item">
94
+ <span class="icon">&#9881;</span>
95
+ <span class="nav-text">APEX</span>
96
+ </a>
93
97
  </div>
94
98
 
95
99
  <div class="nav-section">
package/dist/index.js CHANGED
@@ -126947,6 +126947,7 @@ var LAYER_ORDER = [
126947
126947
  { key: "tests", category: "test" }
126948
126948
  ];
126949
126949
  function createTask(ctx, category, description, deps, acceptanceCriteria, filesCreated = [], meta) {
126950
+ const section = resolveSection(ctx.entityToSection, filesCreated, description);
126950
126951
  const task = {
126951
126952
  id: ctx.nextId++,
126952
126953
  description,
@@ -126962,6 +126963,7 @@ function createTask(ctx, category, description, deps, acceptanceCriteria, filesC
126962
126963
  validation: null,
126963
126964
  error: null,
126964
126965
  module: ctx.moduleCode,
126966
+ ...section ? { section } : {},
126965
126967
  ...meta ?? {}
126966
126968
  };
126967
126969
  ctx.lastIdByCategory[category] = task.id;
@@ -127218,10 +127220,12 @@ function generateValidationTask(ctx) {
127218
127220
  }
127219
127221
  function generateTasks(prd) {
127220
127222
  const moduleCode = prd.project.module;
127223
+ const entityToSection = buildEntityToSectionMap(prd.architecture?.sections ?? []);
127221
127224
  const ctx = {
127222
127225
  moduleCode,
127223
127226
  lastIdByCategory: {},
127224
- nextId: 1
127227
+ nextId: 1,
127228
+ entityToSection
127225
127229
  };
127226
127230
  const frontendFiles = [];
127227
127231
  const i18nFiles = [];
@@ -127260,6 +127264,33 @@ function validateTaskIntegrity(tasks) {
127260
127264
  }
127261
127265
  return errors;
127262
127266
  }
127267
+ function buildEntityToSectionMap(sections) {
127268
+ const map8 = /* @__PURE__ */ new Map();
127269
+ for (const section of sections) {
127270
+ for (const resource of section.resources ?? []) {
127271
+ if (resource.entity) {
127272
+ map8.set(resource.entity, section.code);
127273
+ }
127274
+ }
127275
+ }
127276
+ return map8;
127277
+ }
127278
+ function resolveSection(entityToSection, filePaths, description) {
127279
+ if (entityToSection.size === 0) return void 0;
127280
+ for (const filePath of filePaths) {
127281
+ const fileName = filePath.split("/").pop()?.replace(/\.cs$|\.tsx?$/, "") ?? "";
127282
+ const entityName = fileName.replace(/(Controller|Service|Validator|Configuration|Dto|Tests?|Page|Api)$/i, "").replace(/^(Create|Update|Delete|Get|List|Detail|Edit)/, "");
127283
+ if (entityName && entityToSection.has(entityName)) {
127284
+ return entityToSection.get(entityName);
127285
+ }
127286
+ }
127287
+ for (const [entity, section] of entityToSection) {
127288
+ if (description.includes(entity)) {
127289
+ return section;
127290
+ }
127291
+ }
127292
+ return void 0;
127293
+ }
127263
127294
  function capitalize(s) {
127264
127295
  return s.charAt(0).toUpperCase() + s.slice(1);
127265
127296
  }