Package not found. Please check the package name and try again.

@atlashub/smartstack-mcp 1.15.0 → 1.16.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 CHANGED
@@ -7837,6 +7837,47 @@ function generateNavRouteRegistry(routes) {
7837
7837
  lines.push(" return Object.values(ROUTES).filter(r => r.navRoute.startsWith(`${context}.`));");
7838
7838
  lines.push("}");
7839
7839
  lines.push("");
7840
+ lines.push("/**");
7841
+ lines.push(" * Get web route with optional tenant slug prefix");
7842
+ lines.push(" *");
7843
+ lines.push(" * @param navRoute - NavRoute path (e.g., 'platform.administration.users')");
7844
+ lines.push(" * @param options - Configuration for URL building");
7845
+ lines.push(" * @returns Web route path, optionally prefixed with /t/{slug}");
7846
+ lines.push(" *");
7847
+ lines.push(" * @example");
7848
+ lines.push(" * // Single-tenant mode or no tenant");
7849
+ lines.push(" * getWebRoute('platform.administration.users', { isSingleTenant: true })");
7850
+ lines.push(" * // Returns: '/platform/administration/users'");
7851
+ lines.push(" *");
7852
+ lines.push(" * @example");
7853
+ lines.push(" * // Multi-tenant mode with slug");
7854
+ lines.push(" * getWebRoute('platform.administration.users', { slug: 'acme', isSingleTenant: false })");
7855
+ lines.push(" * // Returns: '/t/acme/platform/administration/users'");
7856
+ lines.push(" */");
7857
+ lines.push("export function getWebRoute(");
7858
+ lines.push(" navRoute: string,");
7859
+ lines.push(" options: {");
7860
+ lines.push(" slug?: string | null;");
7861
+ lines.push(" isSingleTenant: boolean;");
7862
+ lines.push(" isAdminMode?: boolean;");
7863
+ lines.push(" } = { isSingleTenant: true }");
7864
+ lines.push("): string {");
7865
+ lines.push(" const route = ROUTES[navRoute];");
7866
+ lines.push(" if (!route) {");
7867
+ lines.push(" throw new Error(`Route not found: ${navRoute}`);");
7868
+ lines.push(" }");
7869
+ lines.push("");
7870
+ lines.push(" const webPath = route.web;");
7871
+ lines.push("");
7872
+ lines.push(" // No prefix needed in single-tenant mode, admin mode, or without slug");
7873
+ lines.push(" if (options.isSingleTenant || options.isAdminMode || !options.slug) {");
7874
+ lines.push(" return webPath;");
7875
+ lines.push(" }");
7876
+ lines.push("");
7877
+ lines.push(" // Add tenant slug prefix");
7878
+ lines.push(" return `/t/${options.slug}${webPath}`;");
7879
+ lines.push("}");
7880
+ lines.push("");
7840
7881
  return lines.join("\n");
7841
7882
  }
7842
7883
  function generateRouterConfig(routes, includeGuards) {