@atlashub/smartstack-cli 3.19.0 → 3.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.
Files changed (35) hide show
  1. package/dist/index.js +53 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/mcp-entry.mjs +1 -0
  4. package/dist/mcp-entry.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/templates/agents/gitflow/cleanup.md +5 -1
  7. package/templates/agents/gitflow/finish.md +2 -0
  8. package/templates/agents/gitflow/init-clone.md +13 -0
  9. package/templates/agents/gitflow/init-validate.md +14 -0
  10. package/templates/agents/gitflow/status.md +6 -0
  11. package/templates/project/api.ts.template +8 -29
  12. package/templates/project/appsettings.json.template +1 -0
  13. package/templates/skills/business-analyse/html/ba-interactive.html +562 -150
  14. package/templates/skills/business-analyse/html/src/scripts/01-data-init.js +11 -6
  15. package/templates/skills/business-analyse/html/src/scripts/02-navigation.js +209 -4
  16. package/templates/skills/business-analyse/html/src/scripts/04-render-modules.js +2 -8
  17. package/templates/skills/business-analyse/html/src/scripts/05-render-specs.js +57 -2
  18. package/templates/skills/business-analyse/html/src/scripts/07-render-handoff.js +3 -1
  19. package/templates/skills/business-analyse/html/src/scripts/08-editing.js +112 -22
  20. package/templates/skills/business-analyse/html/src/scripts/11-review-panel.js +7 -0
  21. package/templates/skills/business-analyse/html/src/styles/02-layout.css +1 -1
  22. package/templates/skills/business-analyse/html/src/styles/03-navigation.css +89 -31
  23. package/templates/skills/business-analyse/html/src/styles/05-modules.css +64 -0
  24. package/templates/skills/business-analyse/html/src/template.html +8 -76
  25. package/templates/skills/business-analyse/references/deploy-data-build.md +9 -7
  26. package/templates/skills/business-analyse/references/html-data-mapping.md +20 -28
  27. package/templates/skills/business-analyse/references/validate-incremental-html.md +2 -1
  28. package/templates/skills/business-analyse/steps/step-02-decomposition.md +16 -3
  29. package/templates/skills/business-analyse/steps/step-03c-compile.md +55 -2
  30. package/templates/skills/business-analyse/steps/step-03d-validate.md +82 -15
  31. package/templates/skills/business-analyse/steps/step-05a-handoff.md +77 -3
  32. package/templates/skills/business-analyse/steps/step-05b-deploy.md +27 -0
  33. package/templates/skills/gitflow/_shared.md +65 -17
  34. package/templates/skills/gitflow/phases/status.md +8 -3
  35. package/templates/skills/gitflow/steps/step-start.md +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlashub/smartstack-cli",
3
- "version": "3.19.0",
3
+ "version": "3.21.0",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -51,7 +51,11 @@ fi
51
51
  ## Commandes
52
52
 
53
53
  ```bash
54
- # Lister worktrees
54
+ # Repair cross-platform paths before any operation (WSL ↔ Windows)
55
+ detect_platform
56
+ repair_worktree_paths "$(git rev-parse --git-common-dir 2>/dev/null || echo '.bare')"
57
+
58
+ # Lister worktrees (paths now normalized for current platform)
55
59
  git worktree list --porcelain
56
60
 
57
61
  # Verifier si branche existe
@@ -32,7 +32,9 @@ BRANCH=${1:-$(git rev-parse --abbrev-ref HEAD)}
32
32
  BRANCH_TYPE=$(echo $BRANCH | cut -d'/' -f1)
33
33
 
34
34
  # Worktree detection: if in a worktree, navigate to main repo
35
+ # Normalize path for cross-platform compatibility (WSL ↔ Windows)
35
36
  WORKTREE_PATH=$(git worktree list --porcelain | grep -B2 "branch refs/heads/$BRANCH" | grep "^worktree " | sed 's/^worktree //')
37
+ WORKTREE_PATH=$(normalize_path_for_platform "$WORKTREE_PATH")
36
38
  ```
37
39
 
38
40
  ### 2. Verify PR Merged
@@ -96,6 +96,19 @@ if [ ! -d "$PROJECT_BASE/develop" ]; then
96
96
  fi
97
97
  ```
98
98
 
99
+ ### 5b. Fix Cross-Platform Worktree Paths
100
+
101
+ ```bash
102
+ PROJECT_BASE="{PROJECT_BASE}"
103
+
104
+ # Detect current platform (needed for path normalization)
105
+ detect_platform
106
+
107
+ # Repair any cross-platform paths written by git worktree add
108
+ # (e.g., WSL paths /mnt/d/... when running on Windows, or vice versa)
109
+ repair_worktree_paths "$PROJECT_BASE/.bare"
110
+ ```
111
+
99
112
  ### 6. Create Config Directory
100
113
 
101
114
  ```bash
@@ -134,6 +134,20 @@ for subdir in features releases hotfixes; do
134
134
  done
135
135
  ```
136
136
 
137
+ ### 2b. Worktree Path Integrity (Cross-Platform)
138
+
139
+ Repair worktree metadata files that contain paths from a different platform (e.g., WSL paths `/mnt/d/...` on Windows or Windows paths `D:/...` on WSL).
140
+
141
+ ```bash
142
+ PROJECT_BASE="{PROJECT_BASE}"
143
+
144
+ # Source platform detection and path functions from _shared.md
145
+ detect_platform
146
+
147
+ # Repair cross-platform paths in .bare/worktrees/*/gitdir and worktree/.git files
148
+ repair_worktree_paths "$PROJECT_BASE/.bare"
149
+ ```
150
+
137
151
  ### 3. Config Integrity
138
152
 
139
153
  ```bash
@@ -24,7 +24,13 @@ Expert GitFlow. Display COMPLETE repository state with accessible vocabulary.
24
24
  # 1. BRANCHES
25
25
  git fetch --all --quiet 2>/dev/null
26
26
  git for-each-ref --sort=-committerdate --format='%(refname:short)|%(objectname:short)|%(committerdate:short)|%(subject)' refs/heads refs/remotes/origin
27
+
28
+ # Worktree list (normalize paths for cross-platform WSL/Windows compatibility)
29
+ # Before listing, repair any cross-platform paths in worktree metadata
30
+ detect_platform
31
+ repair_worktree_paths "$(git rev-parse --git-common-dir 2>/dev/null || echo '.bare')"
27
32
  git worktree list
33
+
28
34
  git branch -vv
29
35
 
30
36
  # 2. TAGS
@@ -1,31 +1,10 @@
1
- import axios from 'axios';
1
+ // Re-export SmartStack's shared API client
2
+ // IMPORTANT: Do NOT create a custom axios instance — use the SmartStack-provided client
3
+ // which handles authentication, token refresh, and session management automatically.
4
+ import { apiClient } from '@atlashub/smartstack';
2
5
 
3
- const api = axios.create({
4
- baseURL: '/api',
5
- headers: {
6
- 'Content-Type': 'application/json',
7
- },
8
- });
6
+ export default apiClient;
9
7
 
10
- // Request interceptor for auth token
11
- api.interceptors.request.use((config) => {
12
- const token = localStorage.getItem('token');
13
- if (token) {
14
- config.headers.Authorization = `Bearer ${token}`;
15
- }
16
- return config;
17
- });
18
-
19
- // Response interceptor for error handling
20
- api.interceptors.response.use(
21
- (response) => response,
22
- (error) => {
23
- if (error.response?.status === 401) {
24
- localStorage.removeItem('token');
25
- window.location.href = '/login';
26
- }
27
- return Promise.reject(error);
28
- }
29
- );
30
-
31
- export default api;
8
+ // For module-specific API calls, extend from the shared client:
9
+ // import apiClient from './api';
10
+ // export const getEmployees = () => apiClient.get('/api/business/humanresources/employees');
@@ -10,6 +10,7 @@
10
10
  "UseEntraId": false,
11
11
  "EnableSwagger": true,
12
12
  "CorsOrigins": [
13
+ "http://localhost:3000",
13
14
  "http://localhost:5173",
14
15
  "http://localhost:5174",
15
16
  "http://localhost:5175"