@atlashub/smartstack-cli 3.40.0 → 3.41.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": "3.40.0",
3
+ "version": "3.41.0",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -11,6 +11,17 @@ mcp: mcp__smartstack__check_migrations
11
11
 
12
12
  Analyzes migration conflicts between branches using **SmartStack MCP**. **BLOCKING** if conflict detected.
13
13
 
14
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
15
+
16
+ ```bash
17
+ # Repair worktree .git file if Windows path detected under WSL
18
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
19
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
20
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
21
+ echo "Worktree .git path repaired for WSL"
22
+ fi
23
+ ```
24
+
14
25
  ## Mission
15
26
 
16
27
  1. **Invoke MCP** `check_migrations` for structured analysis
@@ -15,6 +15,17 @@ Applies pending migrations to the local database.
15
15
 
16
16
  **Progressive Steps:** Load `steps/db/step-deploy.md` for detailed instructions.
17
17
 
18
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
19
+
20
+ ```bash
21
+ # Repair worktree .git file if Windows path detected under WSL
22
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
23
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
24
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
25
+ echo "Worktree .git path repaired for WSL"
26
+ fi
27
+ ```
28
+
18
29
  ## Workflow
19
30
 
20
31
  1. **Verify** appsettings.Local.json exists
@@ -15,6 +15,17 @@ steps:
15
15
 
16
16
  **Progressive Steps:** Load `steps/db/step-reset.md` for detailed instructions.
17
17
 
18
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
19
+
20
+ ```bash
21
+ # Repair worktree .git file if Windows path detected under WSL
22
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
23
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
24
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
25
+ echo "Worktree .git path repaired for WSL"
26
+ fi
27
+ ```
28
+
18
29
  > **CLAUDE INSTRUCTION:** The `AskUserQuestion({...})` blocks are instructions to use the `AskUserQuestion` tool **interactively**. You MUST execute the tool with these parameters to get the user's response BEFORE continuing.
19
30
 
20
31
  ## Workflow
@@ -15,6 +15,17 @@ Populates the database with test data.
15
15
 
16
16
  **Progressive Steps:** Load `steps/db/step-seed.md` for detailed instructions.
17
17
 
18
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
19
+
20
+ ```bash
21
+ # Repair worktree .git file if Windows path detected under WSL
22
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
23
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
24
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
25
+ echo "Worktree .git path repaired for WSL"
26
+ fi
27
+ ```
28
+
18
29
  ## Workflow
19
30
 
20
31
  1. **Detect** available seeding method:
@@ -16,6 +16,17 @@ Fast check of EF Core migration state using **SmartStack MCP**.
16
16
 
17
17
  **Progressive Steps:** Load `steps/db/step-status.md` for detailed instructions.
18
18
 
19
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
20
+
21
+ ```bash
22
+ # Repair worktree .git file if Windows path detected under WSL
23
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
24
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
25
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
26
+ echo "Worktree .git path repaired for WSL"
27
+ fi
28
+ ```
29
+
19
30
  ## Workflow
20
31
 
21
32
  1. **Invoke MCP** for migration list and naming validation
@@ -18,6 +18,17 @@ Orchestrates migration creation with the "1 migration per feature" rule.
18
18
 
19
19
  **Progressive Steps:** Load `steps/migration/` for detailed instructions.
20
20
 
21
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
22
+
23
+ ```bash
24
+ # Repair worktree .git file if Windows path detected under WSL
25
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
26
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
27
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
28
+ echo "Worktree .git path repaired for WSL"
29
+ fi
30
+ ```
31
+
21
32
  > **IMPORTANT:** This agent **ORCHESTRATES** only. Naming is **DELEGATED TO MCP**.
22
33
 
23
34
  > **CLAUDE INSTRUCTION:** The `AskUserQuestion({...})` blocks are instructions to use the `AskUserQuestion` tool **interactively**. You MUST execute the tool with these parameters to get the user's response BEFORE continuing.
@@ -19,6 +19,17 @@ Rebases ModelSnapshot on develop to resolve conflicts.
19
19
 
20
20
  **Progressive Steps:** Load `steps/rebase-snapshot/` for detailed instructions.
21
21
 
22
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
23
+
24
+ ```bash
25
+ # Repair worktree .git file if Windows path detected under WSL
26
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
27
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
28
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
29
+ echo "Worktree .git path repaired for WSL"
30
+ fi
31
+ ```
32
+
22
33
  ## Workflow
23
34
 
24
35
  1. **Backup** all migrations
@@ -11,6 +11,17 @@ mcp: mcp__smartstack__check_migrations
11
11
 
12
12
  Cross-branch scanner using **SmartStack MCP** to detect migrations across all active branches.
13
13
 
14
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
15
+
16
+ ```bash
17
+ # Repair worktree .git file if Windows path detected under WSL
18
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
19
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
20
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
21
+ echo "Worktree .git path repaired for WSL"
22
+ fi
23
+ ```
24
+
14
25
  ## Mission
15
26
 
16
27
  1. **List** all active worktrees
@@ -19,6 +19,17 @@ Consolidates multiple migrations into a single one, retrieving both the ModelSna
19
19
 
20
20
  **Progressive Steps:** Load `steps/squash/` for detailed instructions.
21
21
 
22
+ ## WSL Preflight (MANDATORY - run BEFORE any git command)
23
+
24
+ ```bash
25
+ # Repair worktree .git file if Windows path detected under WSL
26
+ if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then
27
+ p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"
28
+ printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git
29
+ echo "Worktree .git path repaired for WSL"
30
+ fi
31
+ ```
32
+
22
33
  ## Core Principle
23
34
 
24
35
  ```
@@ -6,7 +6,8 @@ disable-model-invocation: true
6
6
  ---
7
7
 
8
8
  ## Current state (auto-injected)
9
- - Branch: !`git branch --show-current`
9
+ - Preflight: !`if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"; printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git && echo "repaired"; else echo "ok"; fi`
10
+ - Branch: !`git branch --show-current 2>/dev/null || echo "UNAVAILABLE"`
10
11
  - Recent migrations: _(detected in step-00-init)_
11
12
 
12
13
  <objective>
@@ -5,6 +5,7 @@ model: sonnet
5
5
  ---
6
6
 
7
7
  ## Files to review (auto-injected)
8
+ - Preflight: !`if [ -f .git ] && grep -q '^gitdir: [A-Za-z]:' .git 2>/dev/null && grep -qi microsoft /proc/version 2>/dev/null; then p=$(sed 's/^gitdir: //' .git | tr -d '\r\n'); d=$(echo "${p:0:1}" | tr A-Z a-z); r="${p:2}"; r="${r//\\//}"; printf 'gitdir: %s\n' "$(realpath -m --relative-to="$(pwd)" "/mnt/$d$r")" > .git && echo "repaired"; else echo "ok"; fi`
8
9
  - Changed files: !`git diff --name-only HEAD~1 2>/dev/null || git diff --name-only --staged 2>/dev/null || echo "no changes detected"`
9
10
  - Diff stats: !`git diff --stat HEAD~1 2>/dev/null || git diff --stat --staged 2>/dev/null || echo "no stats"`
10
11
  - SmartStack detected: !`test -f "*.sln" && grep -l "SmartStack" *.sln 2>/dev/null && echo "YES" || echo "NO"`