@atlashub/smartstack-cli 1.11.0 → 1.13.1

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 (74) hide show
  1. package/.documentation/agents.html +7 -2
  2. package/.documentation/apex.html +7 -2
  3. package/.documentation/business-analyse.html +7 -2
  4. package/.documentation/cli-commands.html +871 -0
  5. package/.documentation/commands.html +7 -2
  6. package/.documentation/efcore.html +7 -2
  7. package/.documentation/gitflow.html +7 -2
  8. package/.documentation/hooks.html +7 -2
  9. package/.documentation/index.html +7 -2
  10. package/.documentation/init.html +7 -2
  11. package/.documentation/installation.html +7 -2
  12. package/.documentation/ralph-loop.html +7 -2
  13. package/.documentation/test-web.html +7 -2
  14. package/dist/index.js +1932 -336
  15. package/dist/index.js.map +1 -1
  16. package/package.json +8 -2
  17. package/templates/agents/efcore/squash.md +67 -31
  18. package/templates/agents/gitflow/finish.md +68 -56
  19. package/templates/commands/business-analyse/0-orchestrate.md +72 -556
  20. package/templates/commands/business-analyse/1-init.md +23 -193
  21. package/templates/commands/business-analyse/2-discover.md +85 -462
  22. package/templates/commands/business-analyse/3-analyse.md +40 -342
  23. package/templates/commands/business-analyse/4-specify.md +72 -537
  24. package/templates/commands/business-analyse/5-validate.md +43 -237
  25. package/templates/commands/business-analyse/6-handoff.md +93 -682
  26. package/templates/commands/business-analyse/7-doc-html.md +45 -544
  27. package/templates/commands/business-analyse/_shared.md +176 -0
  28. package/templates/commands/business-analyse/bug.md +50 -257
  29. package/templates/commands/business-analyse/change-request.md +59 -283
  30. package/templates/commands/business-analyse/hotfix.md +36 -120
  31. package/templates/commands/business-analyse.md +55 -574
  32. package/templates/commands/efcore/_shared.md +206 -0
  33. package/templates/commands/efcore/conflicts.md +39 -201
  34. package/templates/commands/efcore/db-deploy.md +28 -237
  35. package/templates/commands/efcore/db-reset.md +41 -390
  36. package/templates/commands/efcore/db-seed.md +44 -323
  37. package/templates/commands/efcore/db-status.md +31 -210
  38. package/templates/commands/efcore/migration.md +45 -368
  39. package/templates/commands/efcore/rebase-snapshot.md +38 -241
  40. package/templates/commands/efcore/scan.md +35 -204
  41. package/templates/commands/efcore/squash.md +158 -251
  42. package/templates/commands/efcore.md +49 -177
  43. package/templates/commands/gitflow/1-init.md +94 -1318
  44. package/templates/commands/gitflow/10-start.md +86 -990
  45. package/templates/commands/gitflow/11-finish.md +264 -454
  46. package/templates/commands/gitflow/12-cleanup.md +40 -213
  47. package/templates/commands/gitflow/2-status.md +51 -386
  48. package/templates/commands/gitflow/3-commit.md +108 -801
  49. package/templates/commands/gitflow/4-plan.md +42 -13
  50. package/templates/commands/gitflow/5-exec.md +60 -5
  51. package/templates/commands/gitflow/6-abort.md +54 -277
  52. package/templates/commands/gitflow/7-pull-request.md +74 -717
  53. package/templates/commands/gitflow/8-review.md +51 -178
  54. package/templates/commands/gitflow/9-merge.md +74 -404
  55. package/templates/commands/gitflow/_shared.md +196 -0
  56. package/templates/commands/quickstart.md +154 -0
  57. package/templates/commands/ralph-loop/ralph-loop.md +104 -2
  58. package/templates/hooks/hooks.json +13 -0
  59. package/templates/hooks/ralph-mcp-logger.sh +46 -0
  60. package/templates/hooks/ralph-session-end.sh +69 -0
  61. package/templates/ralph/README.md +91 -0
  62. package/templates/ralph/ralph.config.yaml +113 -0
  63. package/templates/scripts/setup-ralph-loop.sh +173 -0
  64. package/templates/skills/_shared.md +117 -0
  65. package/templates/skills/ai-prompt/SKILL.md +87 -654
  66. package/templates/skills/application/SKILL.md +76 -499
  67. package/templates/skills/controller/SKILL.md +38 -165
  68. package/templates/skills/documentation/SKILL.md +2 -1
  69. package/templates/skills/feature-full/SKILL.md +107 -732
  70. package/templates/skills/notification/SKILL.md +85 -474
  71. package/templates/skills/ui-components/SKILL.md +62 -762
  72. package/templates/skills/workflow/SKILL.md +85 -489
  73. package/templates/commands/gitflow/rescue.md +0 -867
  74. package/templates/skills/business-analyse/SKILL.md +0 -191
@@ -6,29 +6,14 @@ model: haiku
6
6
 
7
7
  # Phase 1: Initialisation Business Analyse
8
8
 
9
- > **Modèle:** Haiku (setup structure, pas de décision complexe)
10
- > **Coût estimé:** ~$0.02
9
+ > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
11
10
 
12
11
  ---
13
12
 
14
- ## PHASE 0: VALIDATION CONTEXTE BUSINESS (BLOQUANT)
13
+ ## Prérequis
15
14
 
16
- ```
17
- ╔══════════════════════════════════════════════════════════════════════════════╗
18
- ║ VALIDATION OBLIGATOIRE AVANT TOUTE ACTION ║
19
- ╠══════════════════════════════════════════════════════════════════════════════╣
20
- ║ ║
21
- ║ 1. VÉRIFIER que le contexte demandé est "business" ║
22
- ║ ║
23
- ║ SI contexte IN ["platform", "personal", "system"]: ║
24
- ║ ❌ ERREUR: "La Business Analyse est réservée au contexte 'business'. ║
25
- ║ Les contextes platform/personal/system sont gérés par le core ║
26
- ║ SmartStack. Contact: support@atlshub.ch" ║
27
- ║ → ABORT ║
28
- ║ ║
29
- ║ 2. VÉRIFIER la hiérarchie: Business > Application > Module > Section ║
30
- ║ ║
31
- ╚══════════════════════════════════════════════════════════════════════════════╝
15
+ ```bash
16
+ validate_business_context "$1" || exit 1
32
17
  ```
33
18
 
34
19
  ---
@@ -60,210 +45,55 @@ AskUserQuestion({
60
45
  })
61
46
  ```
62
47
 
63
- **Si nouvelle application ou module:**
64
- - Demander le nom (kebab-case)
65
- - Demander une description courte
66
-
67
- ---
68
-
69
- ## STEP 2: Scan de la structure existante
70
-
71
- ```bash
72
- # Scanner les applications business existantes
73
- EXISTING_APPS=$(find .business-analyse/applications/business -maxdepth 1 -type d 2>/dev/null | tail -n +2)
74
-
75
- # Scanner les modules existants
76
- if [ -n "$APPLICATION" ]; then
77
- EXISTING_MODULES=$(find .business-analyse/applications/business/$APPLICATION/modules -maxdepth 1 -type d 2>/dev/null | tail -n +2)
78
- fi
79
-
80
- # Scanner le code existant pour patterns
81
- echo "Scanning existing code patterns..."
82
- EXISTING_ENTITIES=$(find src -name "*.cs" -path "*/Entities/*" 2>/dev/null | head -20)
83
- EXISTING_CONTROLLERS=$(find src -name "*Controller.cs" 2>/dev/null | head -20)
84
- ```
85
-
86
48
  ---
87
49
 
88
- ## STEP 3: Génération du Feature ID
50
+ ## STEP 2: Génération Feature ID
89
51
 
90
52
  ```bash
91
- # Lire le dernier ID utilisé
92
- LAST_ID=$(cat .business-analyse/config.json 2>/dev/null | grep -oP '"lastFeatureId":\s*\K\d+' || echo "0")
93
- NEW_ID=$(printf "%03d" $((LAST_ID + 1)))
94
- FEATURE_ID="FEAT-$NEW_ID"
95
-
96
- echo "Feature ID: $FEATURE_ID"
53
+ generate_feature_id
97
54
  ```
98
55
 
99
56
  ---
100
57
 
101
- ## STEP 4: Création de la structure
58
+ ## STEP 3: Création structure
102
59
 
103
60
  ```bash
104
- # Variables
105
61
  APP_DIR=".business-analyse/applications/business/$APPLICATION"
106
62
  MODULE_DIR="$APP_DIR/modules/$MODULE"
107
63
  FEATURE_DIR="$MODULE_DIR/features/$FEATURE_ID-$FEATURE_NAME"
108
64
 
109
- # Créer la structure
110
65
  mkdir -p "$FEATURE_DIR/tracking/changes"
111
66
  mkdir -p "$FEATURE_DIR/tracking/bugs"
112
- mkdir -p ".business-analyse/templates"
113
- mkdir -p ".business-analyse/documentation"
114
67
  ```
115
68
 
116
69
  ### Structure créée
117
70
 
118
71
  ```
119
72
  .business-analyse/
120
- ├── config.json # Configuration globale
121
- ├── glossary.md # Glossaire unifié
122
-
123
- └── applications/
124
- └── business/ # Contexte BUSINESS uniquement
125
- └── {application}/
126
- ├── context.md # Description application
127
- └── modules/
128
- └── {module}/
129
- ├── context.md # Description module
130
- └── features/
131
- └── FEAT-XXX-{name}/
132
- ├── tracking/
133
- │ ├── changes/
134
- │ └── bugs/
135
- └── (documents générés par phases suivantes)
73
+ ├── config.json
74
+ └── applications/business/{app}/modules/{module}/features/FEAT-XXX-{name}/
75
+ └── tracking/ (changes/, bugs/)
136
76
  ```
137
77
 
138
78
  ---
139
79
 
140
- ## STEP 5: Génération des fichiers contexte
80
+ ## STEP 4: Fichiers générés
141
81
 
142
- ### config.json
143
-
144
- ```json
145
- {
146
- "project": "{ProjectName}",
147
- "version": "1.0.0",
148
- "lastFeatureId": {NEW_ID},
149
- "context": "business",
150
- "standards": ["BABOK-v3", "IEEE-830"],
151
- "models": {
152
- "discover": "opus",
153
- "analyse": "sonnet",
154
- "specify": "sonnet",
155
- "validate": "haiku",
156
- "handoff": "opus",
157
- "doc-html": "sonnet"
158
- },
159
- "outputPaths": {
160
- "docs": "web/smartstack-web/src/pages/docs/business",
161
- "i18n": "web/smartstack-web/src/i18n/locales"
162
- },
163
- "contact": "support@atlshub.ch"
164
- }
165
- ```
166
-
167
- ### context.md (Application)
168
-
169
- ```markdown
170
- # Application: {ApplicationName}
171
-
172
- > **Contexte:** business
173
- > **Créé:** {DATE}
174
- > **Permission base:** business.{application}.*
175
-
176
- ## Description
177
-
178
- {Description de l'application}
179
-
180
- ## Modules
181
-
182
- | Module | Description | Status |
183
- |--------|-------------|--------|
184
- | {module} | {description} | Active |
185
-
186
- ## Stakeholders
187
-
188
- | Rôle | Responsabilité |
189
- |------|----------------|
190
- | Product Owner | {à définir} |
191
- | Tech Lead | {à définir} |
192
- ```
193
-
194
- ### context.md (Module)
195
-
196
- ```markdown
197
- # Module: {ModuleName}
198
-
199
- > **Application:** business/{application}
200
- > **Créé:** {DATE}
201
- > **Permission base:** business.{application}.{module}.*
202
-
203
- ## Description
204
-
205
- {Description du module}
206
-
207
- ## Features
208
-
209
- | ID | Nom | Status | Version |
210
- |----|-----|--------|---------|
211
- | FEAT-XXX | {name} | Init | 1.0 |
212
-
213
- ## Dépendances
214
-
215
- | Module/Système | Type | Description |
216
- |----------------|------|-------------|
217
- | {dépendance} | Interne/Externe | {description} |
218
- ```
82
+ | Fichier | Contenu |
83
+ |---------|---------|
84
+ | config.json | Configuration globale, lastFeatureId |
85
+ | context.md (app) | Description application, permission base |
86
+ | context.md (module) | Description module, features |
219
87
 
220
88
  ---
221
89
 
222
- ## STEP 6: Résumé
90
+ ## Résumé
223
91
 
224
92
  ```
225
- ================================================================================
226
- BUSINESS ANALYSE - INITIALISATION COMPLÈTE
227
- ================================================================================
228
-
229
- FEATURE: {FEATURE_ID} - {FEATURE_NAME}
230
- CONTEXTE: business (validé)
231
- APPLICATION: business/{application}
232
- MODULE: business/{application}/{module}
233
- PERMISSION BASE: business.{application}.{module}.*
234
-
235
- STRUCTURE CRÉÉE:
236
- .business-analyse/applications/business/{application}/modules/{module}/features/{FEATURE_ID}-{name}/
237
-
238
- FICHIERS GÉNÉRÉS:
239
- ✓ config.json
240
- ✓ context.md (application)
241
- ✓ context.md (module)
242
-
243
- ================================================================================
244
- PROCHAINE ÉTAPE
245
- ================================================================================
246
-
247
- Lancez la phase de découverte:
248
-
249
- /business-analyse:2-discover {FEATURE_ID}
250
-
251
- Cette phase utilisera le modèle OPUS avec ULTRATHINK pour une élicitation
252
- exhaustive des besoins.
253
-
254
- ================================================================================
255
-
256
- Contact support: support@atlshub.ch
93
+ INIT - {FEATURE_ID}
94
+ ├── Contexte: business (validé)
95
+ ├── Application: business/{app}
96
+ ├── Module: business/{app}/{module}
97
+ ├── Permission: business.{app}.{module}.*
98
+ └── Prochain: /business-analyse:2-discover {FEATURE_ID}
257
99
  ```
258
-
259
- ---
260
-
261
- ## Validation
262
-
263
- | Critère | Status |
264
- |---------|--------|
265
- | Contexte = business | ✅ Validé |
266
- | Structure hiérarchique | ✅ Créée |
267
- | Feature ID unique | ✅ Généré |
268
- | Fichiers contexte | ✅ Créés |
269
- | config.json | ✅ Mis à jour |