@atlashub/smartstack-cli 1.20.0 → 1.21.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlashub/smartstack-cli",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, APEX, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -9,34 +9,27 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
9
9
  </objective>
10
10
 
11
11
  <quick_start>
12
- **Start a feature:**
12
+ **Manual workflow (step-by-step, recommended):**
13
13
  ```bash
14
- /gitflow start feature user-auth
15
- /gitflow -f user-auth # Shorthand
14
+ /gitflow -f user-auth # Start feature → STOPS
15
+ # ... code ...
16
+ /gitflow commit # Commit → STOPS
17
+ /gitflow pr # Create PR → STOPS (wait review)
18
+ /gitflow merge # Merge → STOPS
19
+ /gitflow finish # Cleanup → DONE
16
20
  ```
17
21
 
18
- **Commit with EF Core validation:**
22
+ **Automatic workflow (all-in-one):**
19
23
  ```bash
20
- /gitflow commit # Interactive
21
- /gitflow -a commit "Add login" # Auto mode
22
- ```
23
-
24
- **Create PR and merge:**
25
- ```bash
26
- /gitflow pr # Create PR
27
- /gitflow merge # Merge after approval
28
- ```
29
-
30
- **Complete workflow (feature):**
31
- ```bash
32
- /gitflow -a -f my-feature # Auto + feature mode
24
+ /gitflow -a -f my-feature # Full auto: all steps
25
+ /gitflow -a -r 1.20.0 # Full auto: release
33
26
  ```
34
27
 
35
28
  **Flags:**
36
- - `-a` (auto): Skip confirmations
37
- - `-f` (feature): Feature workflow
38
- - `-r` (release): Release workflow
39
- - `-h` (hotfix): Hotfix workflow
29
+ - `-a` (auto): **Execute ALL steps automatically** (without = one step then stop)
30
+ - `-f` (feature): Feature workflow (target: develop)
31
+ - `-r` (release): Release workflow (target: main)
32
+ - `-h` (hotfix): Hotfix workflow (target: main)
40
33
  - `-s` (status): Show status only
41
34
  </quick_start>
42
35
 
@@ -53,11 +46,13 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
53
46
  **Behavior flags:**
54
47
  | Short | Long | Description |
55
48
  |-------|------|-------------|
56
- | `-a` | `--auto` | Autonomous mode: skip confirmations |
49
+ | `-a` | `--auto` | **Full automatic mode**: execute ALL steps without stopping |
57
50
  | `-s` | `--status` | Status mode: show state only, no actions |
58
51
  | `-v` | `--verbose` | Verbose output |
59
52
  | `--dry-run` | | Preview actions without executing |
60
53
 
54
+ **⚠️ CRITICAL: Without `-a`, each command executes ONLY its own step then STOPS.**
55
+
61
56
  **Disable flags:**
62
57
  | Short | Long | Description |
63
58
  |-------|------|-------------|
@@ -87,48 +82,42 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
87
82
 
88
83
  <examples>
89
84
  ```bash
90
- # Initialize GitFlow
91
- /gitflow init
92
-
93
- # Start feature with worktree
94
- /gitflow start feature payment-integration
95
- /gitflow -f payment-integration # Shorthand
96
-
97
- # Start release
98
- /gitflow start release 2.0.0
99
- /gitflow -r 2.0.0 # Shorthand
100
-
101
- # Start hotfix
102
- /gitflow start hotfix critical-fix
103
- /gitflow -h critical-fix # Shorthand
104
-
105
- # Commit (with EF Core validation)
106
- /gitflow commit
107
- /gitflow -a commit "Fix bug" # Auto mode
108
-
109
- # Sync with remote
110
- /gitflow sync
111
-
112
- # Create PR
113
- /gitflow pr
114
-
115
- # Merge after review
116
- /gitflow merge
117
-
118
- # Finalize branch
119
- /gitflow finish
120
-
121
- # Status check
122
- /gitflow status
123
- /gitflow -s # Shorthand
124
-
125
- # Abort/rollback
126
- /gitflow abort
127
- /gitflow abort --checkpoint # Restore from checkpoint
128
-
129
- # Cleanup worktrees
130
- /gitflow cleanup
131
- /gitflow cleanup --dry-run # Preview only
85
+ # ══════════════════════════════════════════════════════════════
86
+ # STEP-BY-STEP MODE (default - recommended)
87
+ # Each command executes ONE step, then waits for user
88
+ # ══════════════════════════════════════════════════════════════
89
+
90
+ # Feature workflow (manual steps)
91
+ /gitflow -f my-feature # 1. Creates branch → STOPS
92
+ # ... user codes ...
93
+ /gitflow commit # 2. Commits changes → STOPS
94
+ /gitflow pr # 3. Creates PR → STOPS (wait for review)
95
+ /gitflow merge # 4. Merges PR → STOPS
96
+ /gitflow finish # 5. Cleanup → DONE
97
+
98
+ # Release workflow (manual steps)
99
+ /gitflow -r 1.20.0 # 1. Creates branch + bump version → STOPS
100
+ /gitflow pr # 2. Creates PR to main → STOPS (wait for review)
101
+ /gitflow merge # 3. Merges PR → STOPS
102
+ /gitflow finish # 4. Tag + merge-back + cleanup DONE
103
+
104
+ # ══════════════════════════════════════════════════════════════
105
+ # AUTOMATIC MODE (-a flag)
106
+ # Executes ALL steps without stopping
107
+ # ══════════════════════════════════════════════════════════════
108
+
109
+ /gitflow -a -f my-feature # Full auto: branch → commit → pr → merge → finish
110
+ /gitflow -a -r 1.20.0 # Full auto: branch → bump → pr → merge → tag → cleanup
111
+ /gitflow -a -h fix-bug # Full auto: hotfix complete cycle
112
+
113
+ # ══════════════════════════════════════════════════════════════
114
+ # UTILITY COMMANDS
115
+ # ══════════════════════════════════════════════════════════════
116
+
117
+ /gitflow status # Show current state
118
+ /gitflow -s # Shorthand for status
119
+ /gitflow abort # Rollback current operation
120
+ /gitflow cleanup # Audit and remove orphan worktrees
132
121
  ```
133
122
  </examples>
134
123
 
@@ -264,6 +253,24 @@ start ──► commit* ──► sync ──► pr ──► merge ──► fi
264
253
  - **Follow next_step directive** at end of each step
265
254
  - **NEVER skip EF Core validation** - migrations are critical
266
255
  - **Safety > Correctness > Speed**
256
+
257
+ **⚠️ CRITICAL - STEP EXECUTION POLICY:**
258
+
259
+ | Mode | Behavior |
260
+ |------|----------|
261
+ | **Without `-a`** | Execute ONLY the requested step, then **STOP and wait for user** |
262
+ | **With `-a`** | Execute ALL steps automatically (start → commit → pr → merge → finish) |
263
+
264
+ **Examples:**
265
+ ```bash
266
+ /gitflow -r 1.20.0 # Creates branch + bump version → STOPS (user runs /gitflow pr next)
267
+ /gitflow -r -a 1.20.0 # Full automatic: branch → bump → PR → merge → tag → cleanup
268
+ /gitflow -f my-feature # Creates branch → STOPS (user codes, then runs /gitflow commit)
269
+ /gitflow -f -a feature # Full automatic: branch → commit → PR → merge → finish
270
+ ```
271
+
272
+ **NEVER chain steps automatically without `-a` flag. The user decides the pace.**
273
+
267
274
  </execution_rules>
268
275
 
269
276
  <success_criteria>