@atlashub/smartstack-mcp 1.16.0 → 1.17.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
@@ -4142,11 +4142,11 @@ function generatePermissionsForNavRoute(navRoute, customActions, includeStandard
4142
4142
  }
4143
4143
  async function scanControllersForPermissions(backendRoot) {
4144
4144
  const permissions = [];
4145
- const controllersPath = path11.join(backendRoot, "Api.Core", "Controllers");
4146
- const apiControllersPath = path11.join(backendRoot, "Api", "Controllers");
4147
4145
  const controllerDirs = [
4148
- controllersPath,
4149
- apiControllersPath
4146
+ path11.join(backendRoot, "src", "SmartStack.Api", "Controllers"),
4147
+ path11.join(backendRoot, "SmartStack.Api", "Controllers"),
4148
+ path11.join(backendRoot, "Api", "Controllers"),
4149
+ path11.join(backendRoot, "Api.Core", "Controllers")
4150
4150
  ];
4151
4151
  for (const dir of controllerDirs) {
4152
4152
  try {
@@ -4182,11 +4182,13 @@ async function scanControllersForPermissions(backendRoot) {
4182
4182
  }
4183
4183
  function extractNavRoutesFromController(content) {
4184
4184
  const navRoutes = [];
4185
- const regex = /\[NavRoute\s*\(\s*"([^"]+)"(?:\s*,\s*Suffix\s*=\s*"([^"]+)")?\s*\)\]/g;
4185
+ const regex = /\[NavRoute\s*\(\s*"([^"]+)"([^)]*)\)\]/g;
4186
4186
  let match;
4187
4187
  while ((match = regex.exec(content)) !== null) {
4188
4188
  const navRoute = match[1];
4189
- const suffix = match[2];
4189
+ const params = match[2] || "";
4190
+ const suffixMatch = params.match(/Suffix\s*=\s*"([^"]+)"/);
4191
+ const suffix = suffixMatch ? suffixMatch[1] : null;
4190
4192
  if (suffix) {
4191
4193
  navRoutes.push(`${navRoute}.${suffix}`);
4192
4194
  } else {