INNER CODE UNIT · TypeScript

complianceGaps

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

function complianceGaps(ctx: ToolContext): string[] {
  const routing = ctx.index.getRouting();
  const loadedCategories = new Set(
    ctx.tracker.loadedSkills().map((skill) => skill.split("/")[0]),
  );
  const probedCategories = new Map<string, Set<string>>();

  for (const event of ctx.tracker.events_()) {
    if (event.via !== "load_skills_for_files") continue;
    for (const lookupPath of event.input) {
      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]}`);
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…