@atlashub/smartstack-cli 4.10.0 → 4.12.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": "4.10.0",
3
+ "version": "4.12.0",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -52,6 +52,16 @@ const applicationRoutes: ApplicationRouteExtensions = {
52
52
 
53
53
  Routes are automatically injected into BOTH standard (`/{application}/...`) and tenant-prefixed (`/t/:slug/{application}/...`) route trees by `mergeRoutes()`. No manual duplication needed.
54
54
 
55
+ #### Custom Applications (Pattern A)
56
+
57
+ Custom application keys (any key **not** in the built-in list: `administration`, `support`, `user`, `api`) are fully supported in `applicationRoutes`. `mergeRoutes()` automatically:
58
+
59
+ 1. Creates a new route entry wrapped in `<AppLayout />`
60
+ 2. Injects it into **both** standard (`/{app-key}/...`) and tenant-prefixed (`/t/:slug/{app-key}/...`) trees, inside `TenantRouteWrapper > RouteGuard > LicenseGuard`
61
+ 3. Generates automatic parent redirect routes (e.g., `employees` → `employees/management`)
62
+
63
+ No need to use Pattern B for custom applications — Pattern A handles everything automatically.
64
+
55
65
  ### Pattern B: JSX Routes
56
66
 
57
67
  **If App.tsx contains:** `<Route path="/{application}" element={<{Layout} />}>`
@@ -48,6 +48,16 @@ const applicationRoutes: ApplicationRouteExtensions = {
48
48
 
49
49
  Routes are automatically injected into BOTH standard (`/{application}/...`) and tenant-prefixed (`/t/:slug/{application}/...`) route trees by `mergeRoutes()`. No manual duplication needed.
50
50
 
51
+ #### Custom Applications (Pattern A)
52
+
53
+ Custom application keys (any key **not** in the built-in list: `administration`, `support`, `user`, `api`) are fully supported in `applicationRoutes`. `mergeRoutes()` automatically:
54
+
55
+ 1. Creates a new route entry wrapped in `<AppLayout />`
56
+ 2. Injects it into **both** standard (`/{app-key}/...`) and tenant-prefixed (`/t/:slug/{app-key}/...`) trees, inside `TenantRouteWrapper > RouteGuard > LicenseGuard`
57
+ 3. Generates automatic parent redirect routes (e.g., `employees` → `employees/management`)
58
+
59
+ No need to use Pattern B for custom applications — Pattern A handles everything automatically.
60
+
51
61
  ### Pattern B: JSX Routes
52
62
 
53
63
  **If App.tsx contains:** `<Route path="/{application}" element={<{Layout} />}>`
@@ -527,7 +527,7 @@ import { Create$MODULE_PASCALPage } from '@/pages/$APPLICATION/$MODULE/Create$MO
527
527
 
528
528
  // Add routes to applicationRoutes.{application}[] with RELATIVE paths (no leading /)
529
529
  const applicationRoutes: ApplicationRouteExtensions = {
530
- $APPLICATION: [
530
+ '$APPLICATION_KEBAB': [
531
531
  // ... existing routes ...
532
532
  { path: '$MODULE_KEBAB', element: <$MODULE_PASCALPage /> },
533
533
  { path: '$MODULE_KEBAB/new', element: <Create$MODULE_PASCALPage /> },