@atlashub/smartstack-cli 1.6.1 → 1.8.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.
@@ -216,14 +216,40 @@ git push origin --delete feature/{name} 2>/dev/null || true
216
216
  ```
217
217
 
218
218
  **Resume:**
219
+
219
220
  ```
220
- FEATURE FINALISEE
221
- ────────────────────────────────
222
- Branche: feature/{name}
223
- Mergee: develop
224
- PR: #{number}
225
- Cleanup: ✓ Branche supprimee
226
- ────────────────────────────────
221
+ ═══════════════════════════════════════════════════════════════════════════════
222
+ FEATURE FINALISÉE
223
+ ═══════════════════════════════════════════════════════════════════════════════
224
+
225
+ FINISH DETAILS
226
+ ───────────────────────────────────────────────────────────────────────────────
227
+ • Type: feature
228
+ • Branche: feature/{name}
229
+ • Mergée: develop
230
+ • PR: #{number}
231
+
232
+ WORKFLOW STATUT
233
+ ───────────────────────────────────────────────────────────────────────────────
234
+ ✓ PR #{number} mergée avec succès
235
+ ✓ Branche feature/{name} supprimée (local)
236
+ ✓ Branche feature/{name} supprimée (remote)
237
+ ✓ Worktree nettoyé
238
+
239
+ ═══════════════════════════════════════════════════════════════════════════════
240
+ PROCHAINES ÉTAPES
241
+ ═══════════════════════════════════════════════════════════════════════════════
242
+
243
+ 1. Créer une nouvelle feature:
244
+ /gitflow:10-start feature {name}
245
+
246
+ 2. Créer une release (si prêt pour production):
247
+ /gitflow:10-start release
248
+
249
+ 3. Voir le statut du repo:
250
+ /gitflow:2-status
251
+
252
+ ═══════════════════════════════════════════════════════════════════════════════
227
253
  ```
228
254
 
229
255
  ---
@@ -251,9 +277,29 @@ git push origin "v$VERSION"
251
277
  git checkout develop
252
278
  git pull origin develop
253
279
  git merge main --no-ff -m "chore: merge release v$VERSION back to develop"
280
+
281
+ # 4. AUTO-INCREMENT MINOR VERSION sur develop (prepare next release)
282
+ # Ceci evite que les futures features utilisent la meme version que la release
283
+ CURRENT_VERSION=$(cat package.json | jq -r '.version')
284
+
285
+ # Calculer la prochaine version MINOR (ex: 1.2.0 -> 1.3.0)
286
+ NEXT_VERSION=$(node -e "
287
+ const [major, minor, patch] = '$CURRENT_VERSION'.split('.').map(Number);
288
+ console.log([major, minor + 1, 0].join('.'));
289
+ ")
290
+
291
+ # Mettre a jour package.json avec la nouvelle version
292
+ npm version $NEXT_VERSION --no-git-tag-version
293
+
294
+ # Committer le bump de version
295
+ git add package.json package-lock.json
296
+ git commit -m "chore: bump develop to v$NEXT_VERSION for next release"
297
+
254
298
  git push origin develop
255
299
 
256
- # 4. Cleanup worktree + branche
300
+ echo "OK Version develop incrementee: $CURRENT_VERSION -> $NEXT_VERSION"
301
+
302
+ # 5. Cleanup worktree + branche
257
303
  WORKTREE_PATH="../worktrees/releases/v$VERSION"
258
304
  if [ -d "$WORKTREE_PATH" ]; then
259
305
  git worktree remove "$WORKTREE_PATH" --force 2>/dev/null || true
@@ -263,20 +309,50 @@ git push origin --delete release/v$VERSION 2>/dev/null || true
263
309
  ```
264
310
 
265
311
  **Resume:**
312
+
266
313
  ```
267
- RELEASE FINALISEE
268
- ════════════════════════════════════════
269
- Version: v{version}
270
- Tag: v{version} ✓
271
- Main: ✓ Mergee
272
- Develop: ✓ Merge back complete
273
-
274
- Actions effectuees:
275
- Tag v{version} cree et pousse
276
- Main mis a jour
277
- ✓ Develop synchronise avec main
278
- ✓ Branche release supprimee
279
- ════════════════════════════════════════
314
+ ═══════════════════════════════════════════════════════════════════════════════
315
+ RELEASE FINALISÉE
316
+ ═══════════════════════════════════════════════════════════════════════════════
317
+
318
+ RELEASE DETAILS
319
+ ───────────────────────────────────────────────────────────────────────────────
320
+ • Type: release
321
+ Branche: release/v{version}
322
+ Version: v{version}
323
+ Tag: v{version}
324
+
325
+ VERSIONING
326
+ ───────────────────────────────────────────────────────────────────────────────
327
+ • Release: v{version} → Déployée sur main
328
+ • Develop: {version} → {NEXT_VERSION} (auto-incrémenté)
329
+
330
+ WORKFLOW STATUT
331
+ ───────────────────────────────────────────────────────────────────────────────
332
+ ✓ PR mergée sur main
333
+ ✓ Tag v{version} créé et poussé
334
+ ✓ Main mis à jour
335
+ ✓ Merge back vers develop effectué
336
+ ✓ Version develop incrémentée ({version} → {NEXT_VERSION})
337
+ ✓ Branche release/{version} supprimée
338
+ ✓ Worktree nettoyé
339
+
340
+ ═══════════════════════════════════════════════════════════════════════════════
341
+ PROCHAINES ÉTAPES
342
+ ═══════════════════════════════════════════════════════════════════════════════
343
+
344
+ ✅ Release v{version} déployée avec succès!
345
+
346
+ 1. Créer une nouvelle feature:
347
+ /gitflow:10-start feature {name}
348
+
349
+ 2. Créer un hotfix (si besoin):
350
+ /gitflow:10-start hotfix {name}
351
+
352
+ 3. Voir le statut du repo:
353
+ /gitflow:2-status
354
+
355
+ ═══════════════════════════════════════════════════════════════════════════════
280
356
  ```
281
357
 
282
358
  ---
@@ -324,7 +400,7 @@ git pull origin develop
324
400
  git merge main --no-ff -m "chore: merge hotfix v$NEW_VERSION back to develop"
325
401
  git push origin develop
326
402
 
327
- # 5. Cleanup worktree + branche
403
+ # 6. Cleanup worktree + branche
328
404
  WORKTREE_PATH="../worktrees/hotfixes/{name}"
329
405
  if [ -d "$WORKTREE_PATH" ]; then
330
406
  git worktree remove "$WORKTREE_PATH" --force 2>/dev/null || true
@@ -336,21 +412,50 @@ git push origin --delete hotfix/{name} 2>/dev/null || true
336
412
  **⚠️ IMPORTANT:** Le bump de version PATCH est automatique. Pas besoin de le faire manuellement avant le finish.
337
413
 
338
414
  **Resume:**
415
+
339
416
  ```
340
- HOTFIX FINALISE
341
- ════════════════════════════════════════
342
- Hotfix: {name}
343
- Version: v{CURRENT_VERSION} → v{NEW_VERSION}
344
- Tag: v{NEW_VERSION}
345
-
346
- Actions effectuees:
347
- Version incrementee (PATCH): {CURRENT_VERSION} → {NEW_VERSION}
348
- package.json mis a jour
349
- ✓ Tag v{NEW_VERSION} cree et pousse
350
- ✓ Main mis a jour
351
- ✓ Develop synchronise (merge back)
352
- Branche hotfix supprimee
353
- ════════════════════════════════════════
417
+ ═══════════════════════════════════════════════════════════════════════════════
418
+ HOTFIX FINALISÉ
419
+ ═══════════════════════════════════════════════════════════════════════════════
420
+
421
+ HOTFIX DETAILS
422
+ ───────────────────────────────────────────────────────────────────────────────
423
+ Type: hotfix
424
+ Branche: hotfix/{name}
425
+ Correction: {description}
426
+
427
+ VERSIONING
428
+ ───────────────────────────────────────────────────────────────────────────────
429
+ Avant: v{CURRENT_VERSION}
430
+ • Après: v{NEW_VERSION} (PATCH auto-incrémenté)
431
+ • Tag: v{NEW_VERSION} ✓
432
+
433
+ WORKFLOW STATUT
434
+ ───────────────────────────────────────────────────────────────────────────────
435
+ ✓ Version incrémentée (PATCH): {CURRENT_VERSION} → {NEW_VERSION}
436
+ ✓ package.json mis à jour
437
+ ✓ Tag v{NEW_VERSION} créé et poussé
438
+ ✓ Main mis à jour
439
+ ✓ Merge back vers develop effectué
440
+ ✓ Branche hotfix/{name} supprimée
441
+ ✓ Worktree nettoyé
442
+
443
+ ═══════════════════════════════════════════════════════════════════════════════
444
+ PROCHAINES ÉTAPES
445
+ ═══════════════════════════════════════════════════════════════════════════════
446
+
447
+ ✅ Hotfix v{NEW_VERSION} déployé avec succès!
448
+
449
+ 1. Créer une nouvelle feature:
450
+ /gitflow:10-start feature {name}
451
+
452
+ 2. Créer une release:
453
+ /gitflow:10-start release
454
+
455
+ 3. Voir le statut du repo:
456
+ /gitflow:2-status
457
+
458
+ ═══════════════════════════════════════════════════════════════════════════════
354
459
  ```
355
460
 
356
461
  ---
@@ -424,29 +529,6 @@ cleanup_worktree_for_branch "$BRANCH"
424
529
 
425
530
  ---
426
531
 
427
- ## Resume final
428
-
429
- ```
430
- GITFLOW FINISH COMPLETE
431
- ════════════════════════════════════════
432
- Type: {feature|release|hotfix}
433
- Branche: {branch_name}
434
- Status: FINALISEE
435
-
436
- Resultats:
437
- PR: #{number} (mergee)
438
- Tag: {tag|N/A}
439
- Main: {updated|N/A}
440
- Develop: {updated|unchanged}
441
- Cleanup: ✓ Branche supprimee
442
- Worktree: ✓ Nettoye
443
-
444
- ════════════════════════════════════════
445
- Workflow GitFlow complete!
446
- ```
447
-
448
- ---
449
-
450
532
  ## Modes
451
533
 
452
534
  | Commande | Action |
@@ -334,6 +334,99 @@ git push origin $(git branch --show-current)
334
334
  | Conflict detected | Rebase first |
335
335
  | **Destructive operation** | Confirm or modify migration |
336
336
 
337
+ ---
338
+
339
+ ## Resume
340
+
341
+ **Afficher un resume apres le commit:**
342
+
343
+ ```
344
+ ═══════════════════════════════════════════════════════════════════════════════
345
+ COMMIT CRÉÉ
346
+ ═══════════════════════════════════════════════════════════════════════════════
347
+
348
+ COMMIT DETAILS
349
+ ───────────────────────────────────────────────────────────────────────────────
350
+ • Branche: {branch_name}
351
+ • Hash: {commit_hash_short}
352
+ • Message: {commit_message}
353
+ • Fichiers: {N} fichiers modifiés
354
+
355
+ FICHIERS INCLUS
356
+ ───────────────────────────────────────────────────────────────────────────────
357
+ {type_icon} {file_1}
358
+ {type_icon} {file_2}
359
+ {type_icon} {file_3}
360
+ ... ({N} fichiers au total)
361
+
362
+ WORKFLOW STATUT
363
+ ───────────────────────────────────────────────────────────────────────────────
364
+ ✓ Fichiers stagés
365
+ ✓ Validations EF Core passées (si applicable)
366
+ ✓ Commit créé localement
367
+ ✓ Push vers origin/{branch} (si auto-push activé)
368
+
369
+ ═══════════════════════════════════════════════════════════════════════════════
370
+ PROCHAINES ÉTAPES
371
+ ═══════════════════════════════════════════════════════════════════════════════
372
+
373
+ 1. Continuer à développer et committer:
374
+ /gitflow:3-commit
375
+
376
+ 2. Quand prêt, créer une Pull Request:
377
+ /gitflow:7-pull-request {branch_name}
378
+
379
+ ═══════════════════════════════════════════════════════════════════════════════
380
+ ```
381
+
382
+ **Si des migrations EF Core sont incluses:**
383
+
384
+ ```
385
+ ═══════════════════════════════════════════════════════════════════════════════
386
+ COMMIT AVEC MIGRATIONS
387
+ ═══════════════════════════════════════════════════════════════════════════════
388
+
389
+ COMMIT DETAILS
390
+ ───────────────────────────────────────────────────────────────────────────────
391
+ • Branche: {branch_name}
392
+ • Hash: {commit_hash_short}
393
+ • Message: {commit_message}
394
+ • Fichiers: {N} fichiers modifiés
395
+
396
+ MIGRATIONS EF CORE INCLUSES
397
+ ───────────────────────────────────────────────────────────────────────────────
398
+ ✓ {timestamp}_{MigrationName}.cs
399
+ ✓ {timestamp}_{MigrationName}.Designer.cs
400
+ ✓ {Context}ModelSnapshot.cs (updated)
401
+
402
+ VALIDATIONS
403
+ ───────────────────────────────────────────────────────────────────────────────
404
+ ✓ Les 3 fichiers de migration sont présents
405
+ ✓ Build vérifié
406
+ ✓ Pas d'opérations destructives détectées
407
+
408
+ WORKFLOW STATUT
409
+ ───────────────────────────────────────────────────────────────────────────────
410
+ ✓ Fichiers stagés
411
+ ✓ Validations EF Core passées
412
+ ✓ Commit créé localement
413
+ ✓ Push vers origin/{branch}
414
+
415
+ ═══════════════════════════════════════════════════════════════════════════════
416
+ PROCHAINES ÉTAPES
417
+ ═══════════════════════════════════════════════════════════════════════════════
418
+
419
+ 1. Appliquer la migration en local:
420
+ /efcore:db-deploy
421
+
422
+ 2. Continuer à développer ou créer une PR:
423
+ /gitflow:7-pull-request {branch_name}
424
+
425
+ ═══════════════════════════════════════════════════════════════════════════════
426
+ ```
427
+
428
+ ---
429
+
337
430
  ## Modes
338
431
 
339
432
  | Command | Action |
@@ -392,23 +392,140 @@ fi
392
392
 
393
393
  ## Resume
394
394
 
395
+ **Afficher un resume adapte au TYPE de branche et au PROVIDER:**
396
+
397
+ ### Si FEATURE:
398
+
399
+ ```
400
+ ═══════════════════════════════════════════════════════════════════════════════
401
+ PULL REQUEST CRÉÉE
402
+ ═══════════════════════════════════════════════════════════════════════════════
403
+
404
+ PR DETAILS
405
+ ───────────────────────────────────────────────────────────────────────────────
406
+ • PR: #{number} - Statut: ACTIVE
407
+ • Branche: feature/{name} → develop
408
+ • Build: ✓ Passes (TypeScript types verified)
409
+ • Commits: {N} commits ({description})
410
+
411
+ URL DIRECT:
412
+ {url}
413
+
414
+ WORKFLOW STATUT
415
+ ───────────────────────────────────────────────────────────────────────────────
416
+ ✓ Branche synchronisée avec develop
417
+ ✓ Build vérifié
418
+ ✓ Tests passés
419
+ ✓ PR créée sur {GitHub|Azure DevOps}
420
+ ✓ Branche poussée à origin
421
+
422
+ ═══════════════════════════════════════════════════════════════════════════════
423
+ PROCHAINES ÉTAPES
424
+ ═══════════════════════════════════════════════════════════════════════════════
425
+
426
+ 1. Attendre la review et l'approbation de la PR
427
+
428
+ 2. Merger la PR:
429
+ /gitflow:9-merge {pr_number}
430
+
431
+ 3. Finaliser et nettoyer:
432
+ /gitflow:11-finish feature/{name}
433
+ Cela va:
434
+ ✓ Supprimer la branche feature/{name}
435
+ ✓ Nettoyer le worktree
436
+
437
+ ═══════════════════════════════════════════════════════════════════════════════
438
+ ```
439
+
440
+ ### Si RELEASE:
441
+
442
+ ```
443
+ ═══════════════════════════════════════════════════════════════════════════════
444
+ PULL REQUEST CRÉÉE
445
+ ═══════════════════════════════════════════════════════════════════════════════
446
+
447
+ PR DETAILS
448
+ ───────────────────────────────────────────────────────────────────────────────
449
+ • PR: #{number} - Statut: ACTIVE
450
+ • Branche: release/v{version} → main
451
+ • Build: ✓ Passes (TypeScript types verified)
452
+ • Commits: {N} commits (version bump + changes)
453
+
454
+ URL DIRECT:
455
+ {url}
456
+
457
+ WORKFLOW STATUT
458
+ ───────────────────────────────────────────────────────────────────────────────
459
+ ✓ Branche synchronisée avec main
460
+ ✓ Build vérifié
461
+ ✓ Tests passés
462
+ ✓ PR créée sur {GitHub|Azure DevOps}
463
+ ✓ Branche poussée à origin
464
+
465
+ ═══════════════════════════════════════════════════════════════════════════════
466
+ PROCHAINES ÉTAPES
467
+ ═══════════════════════════════════════════════════════════════════════════════
468
+
469
+ 1. Attendre la review et l'approbation de la PR
470
+
471
+ 2. Merger la PR:
472
+ /gitflow:9-merge {pr_number}
473
+
474
+ 3. Finaliser la release:
475
+ /gitflow:11-finish release/v{version}
476
+ Cela va:
477
+ ✓ Créer le tag v{version}
478
+ ✓ Merger main → develop (merge back)
479
+ ✓ Incrémenter la version sur develop ({version} → {next_minor})
480
+ ✓ Nettoyer le worktree
481
+
482
+ ═══════════════════════════════════════════════════════════════════════════════
483
+ ```
484
+
485
+ ### Si HOTFIX:
486
+
395
487
  ```
396
- PULL REQUEST CREEE
397
- ────────────────────────────────
398
- PR: #{number}
399
- Titre: {titre}
400
- Base: {target} ← {current}
401
- URL: {url}
402
-
403
- Checks:
404
- Build: ✓/✗
405
- Tests: ✓/✗
406
- EF Core: ✓/✗/N/A
407
- Conflicts: ✓/✗
408
-
409
- Labels: {labels}
410
- ────────────────────────────────
411
- Prochain: /gitflow:8-review #{number}
488
+ ═══════════════════════════════════════════════════════════════════════════════
489
+ PULL REQUEST CRÉÉE
490
+ ═══════════════════════════════════════════════════════════════════════════════
491
+
492
+ PR DETAILS
493
+ ───────────────────────────────────────────────────────────────────────────────
494
+ • PR: #{number} - Statut: ACTIVE
495
+ • Branche: hotfix/{name} → main
496
+ Build: ✓ Passes (TypeScript types verified)
497
+ • Commits: {N} commits (bug fixes)
498
+
499
+ URL DIRECT:
500
+ {url}
501
+
502
+ WORKFLOW STATUT
503
+ ───────────────────────────────────────────────────────────────────────────────
504
+ ✓ Branche synchronisée avec main
505
+ ✓ Build vérifié
506
+ ✓ Tests passés
507
+ ✓ PR créée sur {GitHub|Azure DevOps}
508
+ ✓ Branche poussée à origin
509
+
510
+ ═══════════════════════════════════════════════════════════════════════════════
511
+ PROCHAINES ÉTAPES
512
+ ═══════════════════════════════════════════════════════════════════════════════
513
+
514
+ 1. Attendre la review et l'approbation de la PR
515
+ ⚠️ HOTFIX: Priorité élevée - review urgente recommandée
516
+
517
+ 2. Merger la PR:
518
+ /gitflow:9-merge {pr_number}
519
+
520
+ 3. Finaliser le hotfix:
521
+ /gitflow:11-finish hotfix/{name}
522
+ Cela va:
523
+ ✓ Incrémenter la version PATCH ({current} → {current+patch})
524
+ ✓ Créer le tag v{new_version}
525
+ ✓ Merger main → develop (merge back)
526
+ ✓ Nettoyer le worktree
527
+
528
+ ═══════════════════════════════════════════════════════════════════════════════
412
529
  ```
413
530
 
414
531
  ---