@atlashub/smartstack-cli 3.20.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.
- package/dist/index.js +53 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-entry.mjs +1 -0
- package/dist/mcp-entry.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/project/api.ts.template +8 -29
- package/templates/project/appsettings.json.template +1 -0
- package/templates/skills/business-analyse/html/ba-interactive.html +562 -150
- package/templates/skills/business-analyse/html/src/scripts/01-data-init.js +11 -6
- package/templates/skills/business-analyse/html/src/scripts/02-navigation.js +209 -4
- package/templates/skills/business-analyse/html/src/scripts/04-render-modules.js +2 -8
- package/templates/skills/business-analyse/html/src/scripts/05-render-specs.js +57 -2
- package/templates/skills/business-analyse/html/src/scripts/07-render-handoff.js +3 -1
- package/templates/skills/business-analyse/html/src/scripts/08-editing.js +112 -22
- package/templates/skills/business-analyse/html/src/scripts/11-review-panel.js +7 -0
- package/templates/skills/business-analyse/html/src/styles/02-layout.css +1 -1
- package/templates/skills/business-analyse/html/src/styles/03-navigation.css +89 -31
- package/templates/skills/business-analyse/html/src/styles/05-modules.css +64 -0
- package/templates/skills/business-analyse/html/src/template.html +8 -76
- package/templates/skills/business-analyse/references/deploy-data-build.md +9 -7
- package/templates/skills/business-analyse/references/html-data-mapping.md +20 -28
- package/templates/skills/business-analyse/references/validate-incremental-html.md +2 -1
- package/templates/skills/business-analyse/steps/step-03c-compile.md +55 -2
- package/templates/skills/business-analyse/steps/step-03d-validate.md +82 -15
- package/templates/skills/business-analyse/steps/step-05a-handoff.md +77 -3
- package/templates/skills/business-analyse/steps/step-05b-deploy.md +27 -0
package/package.json
CHANGED
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
4
|
-
baseURL: '/api',
|
|
5
|
-
headers: {
|
|
6
|
-
'Content-Type': 'application/json',
|
|
7
|
-
},
|
|
8
|
-
});
|
|
6
|
+
export default apiClient;
|
|
9
7
|
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
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');
|