INNER CODE UNIT · TypeScript

match

HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:491

      const match = /\.([a-zA-Z0-9]+)$/.exec(lookupPath);
      if (!match) continue;
      for (const category of routing[match[1]] ?? []) {
        if (!probedCategories.has(category)) {
          probedCategories.set(category, new Set());
        }
        probedCategories.get(category)?.add(`.${match[1]}`);
      }
    }
  }

  const gaps: string[] = [];
  for (const [category, extensions] of probedCategories) {
    if (!loadedCategories.has(category)) {
      gaps.push(
        `Lookup paths with ${[...extensions].join(", ")} route to "${category}", but no ${category} skill body was returned this session.`,
      );
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…