@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.
- package/.documentation/agents.html +7 -2
- package/.documentation/apex.html +7 -2
- package/.documentation/business-analyse.html +7 -2
- package/.documentation/cli-commands.html +871 -0
- package/.documentation/commands.html +7 -2
- package/.documentation/efcore.html +7 -2
- package/.documentation/gitflow.html +7 -2
- package/.documentation/hooks.html +7 -2
- package/.documentation/index.html +7 -2
- package/.documentation/init.html +7 -2
- package/.documentation/installation.html +7 -2
- package/.documentation/ralph-loop.html +7 -2
- package/.documentation/test-web.html +7 -2
- package/dist/index.js +1932 -336
- package/dist/index.js.map +1 -1
- package/package.json +8 -2
- package/templates/agents/efcore/squash.md +67 -31
- package/templates/agents/gitflow/finish.md +68 -56
- package/templates/commands/business-analyse/0-orchestrate.md +72 -556
- package/templates/commands/business-analyse/1-init.md +23 -193
- package/templates/commands/business-analyse/2-discover.md +85 -462
- package/templates/commands/business-analyse/3-analyse.md +40 -342
- package/templates/commands/business-analyse/4-specify.md +72 -537
- package/templates/commands/business-analyse/5-validate.md +43 -237
- package/templates/commands/business-analyse/6-handoff.md +93 -682
- package/templates/commands/business-analyse/7-doc-html.md +45 -544
- package/templates/commands/business-analyse/_shared.md +176 -0
- package/templates/commands/business-analyse/bug.md +50 -257
- package/templates/commands/business-analyse/change-request.md +59 -283
- package/templates/commands/business-analyse/hotfix.md +36 -120
- package/templates/commands/business-analyse.md +55 -574
- package/templates/commands/efcore/_shared.md +206 -0
- package/templates/commands/efcore/conflicts.md +39 -201
- package/templates/commands/efcore/db-deploy.md +28 -237
- package/templates/commands/efcore/db-reset.md +41 -390
- package/templates/commands/efcore/db-seed.md +44 -323
- package/templates/commands/efcore/db-status.md +31 -210
- package/templates/commands/efcore/migration.md +45 -368
- package/templates/commands/efcore/rebase-snapshot.md +38 -241
- package/templates/commands/efcore/scan.md +35 -204
- package/templates/commands/efcore/squash.md +158 -251
- package/templates/commands/efcore.md +49 -177
- package/templates/commands/gitflow/1-init.md +94 -1318
- package/templates/commands/gitflow/10-start.md +86 -990
- package/templates/commands/gitflow/11-finish.md +264 -454
- package/templates/commands/gitflow/12-cleanup.md +40 -213
- package/templates/commands/gitflow/2-status.md +51 -386
- package/templates/commands/gitflow/3-commit.md +108 -801
- package/templates/commands/gitflow/4-plan.md +42 -13
- package/templates/commands/gitflow/5-exec.md +60 -5
- package/templates/commands/gitflow/6-abort.md +54 -277
- package/templates/commands/gitflow/7-pull-request.md +74 -717
- package/templates/commands/gitflow/8-review.md +51 -178
- package/templates/commands/gitflow/9-merge.md +74 -404
- package/templates/commands/gitflow/_shared.md +196 -0
- package/templates/commands/quickstart.md +154 -0
- package/templates/commands/ralph-loop/ralph-loop.md +104 -2
- package/templates/hooks/hooks.json +13 -0
- package/templates/hooks/ralph-mcp-logger.sh +46 -0
- package/templates/hooks/ralph-session-end.sh +69 -0
- package/templates/ralph/README.md +91 -0
- package/templates/ralph/ralph.config.yaml +113 -0
- package/templates/scripts/setup-ralph-loop.sh +173 -0
- package/templates/skills/_shared.md +117 -0
- package/templates/skills/ai-prompt/SKILL.md +87 -654
- package/templates/skills/application/SKILL.md +76 -499
- package/templates/skills/controller/SKILL.md +38 -165
- package/templates/skills/documentation/SKILL.md +2 -1
- package/templates/skills/feature-full/SKILL.md +107 -732
- package/templates/skills/notification/SKILL.md +85 -474
- package/templates/skills/ui-components/SKILL.md +62 -762
- package/templates/skills/workflow/SKILL.md +85 -489
- package/templates/commands/gitflow/rescue.md +0 -867
- package/templates/skills/business-analyse/SKILL.md +0 -191
|
@@ -6,235 +6,71 @@ model: haiku
|
|
|
6
6
|
|
|
7
7
|
# EF Core Database Status
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**
|
|
12
|
-
|
|
13
|
-
**INTEGRATION:** Uses `mcp__smartstack__check_migrations` for migration analysis.
|
|
9
|
+
> **Ref:** [_shared.md](_shared.md)
|
|
10
|
+
> **MCP:** `mcp__smartstack__check_migrations`
|
|
11
|
+
> **Type:** Read-only, aucune modification
|
|
14
12
|
|
|
15
13
|
---
|
|
16
14
|
|
|
17
|
-
## STEP 1:
|
|
15
|
+
## STEP 1: Détecter Configuration
|
|
18
16
|
|
|
19
17
|
```bash
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
CONFIG_DEV="appsettings.Development.json"
|
|
23
|
-
CONFIG_DEFAULT="appsettings.json"
|
|
24
|
-
|
|
25
|
-
if [ -f "$CONFIG_LOCAL" ]; then
|
|
26
|
-
CONFIG_USED="$CONFIG_LOCAL"
|
|
27
|
-
elif [ -f "$CONFIG_DEV" ]; then
|
|
28
|
-
CONFIG_USED="$CONFIG_DEV"
|
|
29
|
-
else
|
|
30
|
-
CONFIG_USED="$CONFIG_DEFAULT"
|
|
31
|
-
fi
|
|
32
|
-
|
|
33
|
-
# Detect EF Core project
|
|
34
|
-
CSPROJ=$(find . -name "*.csproj" -exec grep -l "Microsoft.EntityFrameworkCore" {} \; | head -1)
|
|
35
|
-
PROJECT_DIR=$(dirname "$CSPROJ")
|
|
36
|
-
PROJECT_NAME=$(basename "$CSPROJ" .csproj)
|
|
18
|
+
detect_efcore_project
|
|
19
|
+
detect_environment
|
|
37
20
|
```
|
|
38
21
|
|
|
39
22
|
---
|
|
40
23
|
|
|
41
|
-
## STEP 2:
|
|
42
|
-
|
|
43
|
-
> **MCP INTEGRATION:** Get structured migration info from SmartStack MCP.
|
|
24
|
+
## STEP 2: Invoquer MCP
|
|
44
25
|
|
|
45
26
|
```json
|
|
46
27
|
{
|
|
47
28
|
"tool": "mcp__smartstack__check_migrations",
|
|
48
|
-
"parameters": {
|
|
49
|
-
"branch": "<current_branch>"
|
|
50
|
-
}
|
|
29
|
+
"parameters": { "branch": "<current_branch>" }
|
|
51
30
|
}
|
|
52
31
|
```
|
|
53
32
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
CALL mcp__smartstack__check_migrations WITH:
|
|
58
|
-
- branch: {current_branch}
|
|
59
|
-
|
|
60
|
-
EXTRACT from response:
|
|
61
|
-
- migrations[] -> list of all migrations
|
|
62
|
-
- conflicts[] -> any naming/ordering issues
|
|
63
|
-
```
|
|
33
|
+
Extraire: `migrations[]`, `conflicts[]`
|
|
64
34
|
|
|
65
35
|
---
|
|
66
36
|
|
|
67
|
-
## STEP 3:
|
|
37
|
+
## STEP 3: Tester Connexion
|
|
68
38
|
|
|
69
39
|
```bash
|
|
70
|
-
cd "$PROJECT_DIR"
|
|
71
|
-
|
|
72
|
-
# Test connection with EF Core
|
|
73
40
|
CONNECTION_OK=$(dotnet ef database list 2>&1)
|
|
74
|
-
if echo "$CONNECTION_OK" | grep -q "error\|Error\|failed"; then
|
|
75
|
-
CONNECTION_STATUS="FAILED"
|
|
76
|
-
CONNECTION_ERROR="$CONNECTION_OK"
|
|
77
|
-
else
|
|
78
|
-
CONNECTION_STATUS="OK"
|
|
79
|
-
fi
|
|
80
41
|
```
|
|
81
42
|
|
|
82
43
|
---
|
|
83
44
|
|
|
84
|
-
## STEP 4:
|
|
45
|
+
## STEP 4: Compter Migrations
|
|
85
46
|
|
|
86
47
|
```bash
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
APPLIED=$(dotnet ef migrations list 2>/dev/null | grep -v "(Pending)" | grep -v "^Build" | wc -l)
|
|
90
|
-
PENDING=$(dotnet ef migrations list 2>/dev/null | grep "(Pending)" | wc -l)
|
|
48
|
+
APPLIED=$(dotnet ef migrations list | grep -v "(Pending)" | wc -l)
|
|
49
|
+
PENDING=$(dotnet ef migrations list | grep "(Pending)" | wc -l)
|
|
91
50
|
```
|
|
92
51
|
|
|
93
52
|
---
|
|
94
53
|
|
|
95
|
-
##
|
|
96
|
-
|
|
97
|
-
**Afficher le resume du statut:**
|
|
54
|
+
## Résumé
|
|
98
55
|
|
|
99
56
|
```
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
• DbContext: ApplicationDbContext
|
|
109
|
-
|
|
110
|
-
CONNEXION
|
|
111
|
-
-------------------------------------------------------------------------------
|
|
112
|
-
• Statut: {CONNECTION_STATUS === "OK" ? "✓ Connecté" : "✗ Erreur"}
|
|
113
|
-
• Serveur: {SERVER}
|
|
114
|
-
• Base: {DATABASE}
|
|
115
|
-
|
|
116
|
-
MIGRATIONS
|
|
117
|
-
-------------------------------------------------------------------------------
|
|
118
|
-
• Total: {migrations.length}
|
|
119
|
-
• Appliquées: {APPLIED}
|
|
120
|
-
• En attente: {PENDING}
|
|
121
|
-
|
|
122
|
-
CONFORMITÉ NOMMAGE
|
|
123
|
-
-------------------------------------------------------------------------------
|
|
124
|
-
• Format: {context}_v{version}_{sequence}_{Description}
|
|
125
|
-
• Statut: {compliance === "OK" ? "✓ Conforme" : "⚠ Avertissements"}
|
|
126
|
-
|
|
127
|
-
===============================================================================
|
|
128
|
-
PROCHAINES ÉTAPES
|
|
129
|
-
===============================================================================
|
|
57
|
+
STATUS EF CORE
|
|
58
|
+
├── Projet: {PROJECT_NAME}
|
|
59
|
+
├── Config: {CONFIG_USED}
|
|
60
|
+
├── Connexion: {✓ OK / ✗ Erreur}
|
|
61
|
+
├── Base: {DATABASE_NAME}
|
|
62
|
+
├── Migrations: {TOTAL} (appliquées: {APPLIED}, en attente: {PENDING})
|
|
63
|
+
├── Conformité nommage: {✓ Conforme / ⚠ Avertissements}
|
|
64
|
+
└── Règle 1 migration/feature: {✓ OK / ⚠ {N} migrations sur cette branche}
|
|
130
65
|
```
|
|
131
66
|
|
|
132
|
-
**Si
|
|
133
|
-
|
|
67
|
+
**Si erreur connexion:**
|
|
134
68
|
```
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
/efcore:db-deploy
|
|
141
|
-
|
|
142
|
-
===============================================================================
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**Si tout est à jour:**
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
ACTIONS DISPONIBLES
|
|
149
|
-
-------------------------------------------------------------------------------
|
|
150
|
-
✓ Base de données synchronisée
|
|
151
|
-
|
|
152
|
-
1. Créer une nouvelle migration:
|
|
153
|
-
/efcore:migration
|
|
154
|
-
|
|
155
|
-
2. Scanner les conflits potentiels:
|
|
156
|
-
/efcore:scan
|
|
157
|
-
|
|
158
|
-
===============================================================================
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## STEP 5.1: Display Migration List (from MCP)
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
MIGRATIONS LIST
|
|
167
|
-
--------------------------------------------------------------------------------
|
|
168
|
-
# | Name | Context | Version | Sequence
|
|
169
|
-
--------------------------------------------------------------------------------
|
|
170
|
-
{for each migration in migrations}
|
|
171
|
-
{i} | {migration.name} | {migration.context} | {migration.version} | {migration.sequence}
|
|
172
|
-
{end for}
|
|
173
|
-
--------------------------------------------------------------------------------
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
## STEP 5.2: Check "1 Migration per Feature" Rule
|
|
179
|
-
|
|
180
|
-
```bash
|
|
181
|
-
CURRENT_BRANCH=$(git branch --show-current)
|
|
182
|
-
|
|
183
|
-
# Extract branch type
|
|
184
|
-
if [[ "$CURRENT_BRANCH" == feature/* ]]; then
|
|
185
|
-
BRANCH_TYPE="Feature"
|
|
186
|
-
elif [[ "$CURRENT_BRANCH" == hotfix/* ]]; then
|
|
187
|
-
BRANCH_TYPE="Hotfix"
|
|
188
|
-
fi
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
**Display:**
|
|
192
|
-
|
|
193
|
-
```
|
|
194
|
-
"1 MIGRATION PER FEATURE" RULE
|
|
195
|
-
--------------------------------------------------------------------------------
|
|
196
|
-
Branch: {CURRENT_BRANCH}
|
|
197
|
-
Migrations: {count for this branch}
|
|
198
|
-
Status: {OK if count <= 1, else WARNING}
|
|
199
|
-
--------------------------------------------------------------------------------
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
---
|
|
203
|
-
|
|
204
|
-
## STEP 6: Show Warnings from MCP
|
|
205
|
-
|
|
206
|
-
If MCP returned conflicts or warnings:
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
WARNINGS (from MCP analysis)
|
|
210
|
-
--------------------------------------------------------------------------------
|
|
211
|
-
{for each conflict in conflicts}
|
|
212
|
-
[{conflict.type}] {conflict.description}
|
|
213
|
-
Resolution: {conflict.resolution}
|
|
214
|
-
{end for}
|
|
215
|
-
--------------------------------------------------------------------------------
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
## STEP 7: Connection Error Handling
|
|
221
|
-
|
|
222
|
-
**If connection error:**
|
|
223
|
-
|
|
224
|
-
```
|
|
225
|
-
CONNECTION PROBLEM
|
|
226
|
-
--------------------------------------------------------------------------------
|
|
227
|
-
{CONNECTION_ERROR}
|
|
228
|
-
--------------------------------------------------------------------------------
|
|
229
|
-
|
|
230
|
-
TROUBLESHOOTING:
|
|
231
|
-
1. Is SQL Server running?
|
|
232
|
-
2. Is appsettings.Local.json configured?
|
|
233
|
-
3. Does the database exist?
|
|
234
|
-
|
|
235
|
-
COMMANDS:
|
|
236
|
-
/efcore:db-reset -> Create/recreate database
|
|
237
|
-
/gitflow:10-start -> Configure appsettings.Local.json
|
|
69
|
+
TROUBLESHOOTING
|
|
70
|
+
├── SQL Server démarré?
|
|
71
|
+
├── appsettings.Local.json configuré?
|
|
72
|
+
├── Base de données existe?
|
|
73
|
+
└── Commandes: /efcore:db-reset, /gitflow:10-start
|
|
238
74
|
```
|
|
239
75
|
|
|
240
76
|
---
|
|
@@ -243,21 +79,6 @@ COMMANDS:
|
|
|
243
79
|
|
|
244
80
|
| Option | Description |
|
|
245
81
|
|--------|-------------|
|
|
246
|
-
| `--verbose` |
|
|
247
|
-
| `--json` | JSON
|
|
248
|
-
| `--context {name}` |
|
|
249
|
-
|
|
250
|
-
---
|
|
251
|
-
|
|
252
|
-
## MCP Tool Reference
|
|
253
|
-
|
|
254
|
-
**Tool:** `mcp__smartstack__check_migrations`
|
|
255
|
-
|
|
256
|
-
**Used for:**
|
|
257
|
-
- Getting structured list of migrations (name, context, version, sequence)
|
|
258
|
-
- Detecting naming convention violations
|
|
259
|
-
- Checking migration order
|
|
260
|
-
|
|
261
|
-
**Response fields used:**
|
|
262
|
-
- `migrations[]` - List of all migrations with parsed metadata
|
|
263
|
-
- `conflicts[]` - Any issues detected (naming, order)
|
|
82
|
+
| `--verbose` | Afficher toutes migrations |
|
|
83
|
+
| `--json` | Output JSON |
|
|
84
|
+
| `--context {name}` | Spécifier DbContext |
|