@atlashub/smartstack-cli 4.6.0 → 4.7.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/mcp-entry.mjs +24 -0
- package/dist/mcp-entry.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/skills/apex/references/frontend-route-wiring-app-tsx.md +139 -0
- package/templates/skills/cli-app-sync/SKILL.md +272 -0
- package/templates/skills/cli-app-sync/references/comparison-map.md +228 -0
- package/templates/skills/gitflow/SKILL.md +5 -0
- package/templates/skills/gitflow/steps/step-init.md +19 -0
package/dist/mcp-entry.mjs
CHANGED
|
@@ -58483,6 +58483,30 @@ function generateClientRoutesConfig(routes, pageFiles, includeGuards) {
|
|
|
58483
58483
|
}
|
|
58484
58484
|
}
|
|
58485
58485
|
}
|
|
58486
|
+
lines.push("");
|
|
58487
|
+
lines.push(" // --- Parent redirect routes ---");
|
|
58488
|
+
let appFirstPath;
|
|
58489
|
+
const moduleRedirects = /* @__PURE__ */ new Map();
|
|
58490
|
+
for (const [moduleName, modRoutes] of Object.entries(modules)) {
|
|
58491
|
+
if (modRoutes.length > 0) {
|
|
58492
|
+
const firstRoute = modRoutes[0];
|
|
58493
|
+
const segments = firstRoute.navRoute.split(".").slice(1).map(toKebabCase);
|
|
58494
|
+
const firstFullPath = segments.join("/");
|
|
58495
|
+
const moduleKebab = toKebabCase(moduleName);
|
|
58496
|
+
if (!appFirstPath) {
|
|
58497
|
+
appFirstPath = firstFullPath;
|
|
58498
|
+
}
|
|
58499
|
+
if (segments.length > 1 && !moduleRedirects.has(moduleKebab)) {
|
|
58500
|
+
moduleRedirects.set(moduleKebab, firstFullPath);
|
|
58501
|
+
}
|
|
58502
|
+
}
|
|
58503
|
+
}
|
|
58504
|
+
for (const [modulePath, targetPath] of moduleRedirects) {
|
|
58505
|
+
lines.push(` { path: '${modulePath}', element: <Navigate to="${targetPath}" replace /> },`);
|
|
58506
|
+
}
|
|
58507
|
+
if (appFirstPath) {
|
|
58508
|
+
lines.push(` { path: '', element: <Navigate to="${appFirstPath}" replace /> },`);
|
|
58509
|
+
}
|
|
58486
58510
|
lines.push("];");
|
|
58487
58511
|
lines.push("");
|
|
58488
58512
|
}
|