All files / src/api prReview.js

100% Statements 580/580
100% Branches 114/114
100% Functions 20/20
100% Lines 580/580

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 58118x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 39x 39x 39x 39x 39x 39x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 39x 39x 39x 39x 39x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 39x 39x 1x 1x 39x 39x 1x 1x 1x 39x 39x 1x 1x 1x 1x 39x 39x 1x 1x 1x 1x 39x 39x 1x 1x 1x 1x 39x 39x 1x 1x 2x 1x 1x 39x 39x 39x 39x 39x 6x 1x 1x 5x 5x 6x 6x 6x 6x 20x 20x 20x 12x 20x 8x 8x 8x 8x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 6x 2x 2x 2x 2x 2x 6x 39x 39x 39x 39x 39x 6x 6x 6x 6x 6x 6x 6x 1x 1x 1x 1x 5x 6x 6x 6x 6x 6x 6x 1x 1x 6x 3x 3x 5x 6x 14x 14x 1x 1x 1x 1x 14x 4x 4x 4x 4x 5x 1x 1x 4x 5x 3x 3x 4x 4x 6x 39x 39x 39x 39x 39x 4x 4x 4x 1x 1x 1x 1x 1x 3x 3x 2x 2x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 4x 1x 1x 1x 1x 1x 4x 39x 39x 39x 39x 39x 5x 5x 5x 5x 1x 1x 1x 1x 1x 4x 4x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2x 5x 1x 1x 3x 5x 2x 2x 2x 5x 1x 1x 3x 3x 3x 5x 1x 1x 1x 5x 39x 39x 39x 39x 39x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2x 2x 2x 2x 2x 2x 3x 3x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 1x 1x 2x 2x 1x 1x 1x 2x 2x 1x 1x 1x 2x 3x 3x 3x 3x 3x 3x 3x 39x 39x 4x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 4x 6x 6x 6x 6x 6x 5x 6x 1x 1x 6x 6x 6x 5x 6x 1x 1x 6x 6x 6x 5x 6x 1x 1x 6x 6x 6x 5x 6x 1x 1x 6x 2x 4x 4x 39x 39x 6x 3x 3x 3x 3x 3x 3x 6x 1x 1x 2x 6x 1x 1x 1x 1x 6x 39x 39x 5x 3x 3x 3x 3x 3x 3x 3x 3x 3x 10x 10x 10x 10x 10x 10x 10x 3x 5x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 39x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 39x 39x 5x 5x 5x 5x 5x 5x 5x 39x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x  
const vscode = require("vscode");
const fs = require("fs").promises;
const path = require("path");
const localReviewMethods = require("./prReview/localReviewMethods");
const coreReviewMethods = require("./prReview/coreReviewMethods");
const analysisParserMethods = require("./prReview/analysisParserMethods");
const orchestrationMethods = require("./prReview/orchestrationMethods");
const promptComposerMethods = require("./prReview/promptComposerMethods");
const followUpContextMethods = require("./prReview/followUpContextMethods");
const copilotGatewayMethods = require("./prReview/copilotGatewayMethods");
const diffPreparationMethods = require("./prReview/diffPreparationMethods");
const standardsIngestionMethods = require("./prReview/standardsIngestionMethods");
 
/**
 * Servicio para revisar Pull Requests usando GitHub Copilot.
 */
class PRReviewService {
  /**
   * @param {Logger} logger - Instancia del logger para registrar mensajes
   * @param {vscode.ExtensionContext} context - Contexto de la extensión de VS Code
   * @param {CodeReviewPanel} [codeReviewPanel] - Panel para mostrar resultados en UI
   */
  constructor(logger, context, codeReviewPanel = null) {
    this.logger = logger;
    this.context = context;
    this.codeReviewPanel = codeReviewPanel;
    this.lastIgnoredFiles = [];
    this.currentModelLimits = null;
    this.skillDefinitions = null;
    this._skillsFallbackWarned = false;
    this._ajv = null;
    this._validateFullAnalysisContract = null;
    this._validateFollowUpContract = null;
 
    this._loadIgnoredFilePatterns();
  }
 
  /**
   * Inicializa el contexto de revisión al arrancar el Sidebar.
   */
  async initializeReviewContext() {
    try {
      await this._loadSkillDefinitions();
      await this.ensureInitialPromptTemplate();
      await this.ensureCopilotInstructions({});
      return true;
    } catch (error) {
      this.logger.warn(
        `   ⚠️ No se pudo inicializar contexto de PR review: ${error.message}`,
      );
      return false;
    }
  }
 
  setCodeReviewPanel(panel) {
    this.codeReviewPanel = panel;
  }
 
  _isDebugEnabled() {
    const config = vscode.workspace.getConfiguration("gbot");
    return config.get("debug", false);
  }
 
  _logSectionHeader(title, emoji = "🔍") {
    this.logger.info(`\n${"═".repeat(60)}`);
    this.logger.info(`${emoji} ${title.toUpperCase()}`);
    this.logger.info(`${"═".repeat(60)}`);
  }
 
  _logSubsectionHeader(title) {
    this.logger.info(`\n${"─".repeat(60)}`);
    this.logger.info(title);
    this.logger.info(`${"─".repeat(60)}`);
  }
 
  _logStep(stepNum, totalSteps, description) {
    this.logger.info(`\n${"─".repeat(60)}`);
    this.logger.info(`PASO ${stepNum}/${totalSteps}: ${description}`);
    this.logger.info(`${"─".repeat(60)}`);
  }
 
  _logDataGroup(title, emoji, data) {
    this.logger.info(`\n${emoji} ${title}:`);
    Object.entries(data).forEach(([key, value]) => {
      this.logger.info(`   ${key}: ${value}`);
    });
  }
 
  /**
   * Carga las definiciones de skills desde resources/skills/*.md.
   */
  async _loadSkillDefinitions() {
    if (this.skillDefinitions) {
      return this.skillDefinitions;
    }
 
    const extensionRoot =
      this.context?.extensionPath || path.join(__dirname, "..", "..");
    const skillsDir = path.join(extensionRoot, "resources", "skills");
 
    const loadOne = async (name) => {
      const filePath = path.join(skillsDir, `${name}.md`);
      try {
        const content = await fs.readFile(filePath, "utf-8");
        return content.trim();
      } catch (error) {
        throw new Error(
          `Skill requerida no encontrada (${name}.md): ${error.message}`,
        );
      }
    };
 
    try {
      const [initialPrompt, issueReview, issueResolution, improvementAdvisor] =
        await Promise.all([
          loadOne("INITIAL_REVIEW_PROMPT"),
          loadOne("ISSUE_REVIEW_EXPERT"),
          loadOne("ISSUE_RESOLUTION_VERIFIER"),
          loadOne("IMPROVEMENT_ADVISOR"),
        ]);
 
      this.skillDefinitions = {
        INITIAL_REVIEW_PROMPT: initialPrompt,
        ISSUE_REVIEW_EXPERT: issueReview,
        ISSUE_RESOLUTION_VERIFIER: issueResolution,
        IMPROVEMENT_ADVISOR: improvementAdvisor,
      };
 
      this.logger.info("   ✅ Skills de PR cargadas desde resources/skills");
 
      return this.skillDefinitions;
    } catch (error) {
      this.logger.error(
        `❌ Error cargando skills de PR review: ${error.message}`,
      );
      throw error;
    }
  }
 
  /**
   * Retorna el contexto de skill según el tipo de revisión.
   */
  _getSkillContext(
    reviewMode = "full",
    includeSuggestions = false,
    includeOutputContract = true,
  ) {
    void includeOutputContract;
 
    if (!this.skillDefinitions) {
      throw new Error(
        "Skills no cargadas. Debes ejecutar _loadSkillDefinitions antes de construir prompts.",
      );
    }
 
    const mode = reviewMode === "follow-up" ? "follow-up" : "full";
    const defs = this.skillDefinitions;
    const blocks = [];
 
    const required = ["INITIAL_REVIEW_PROMPT", "ISSUE_REVIEW_EXPERT"];
    if (mode === "follow-up") {
      required.push("ISSUE_RESOLUTION_VERIFIER");
    }
    if (includeSuggestions) {
      required.push("IMPROVEMENT_ADVISOR");
    }
 
    for (const key of required) {
      const value = defs[key];
      if (typeof value !== "string" || value.trim().length === 0) {
        throw new Error(
          `Skill requerida sin contenido: ${key}. Verifica resources/skills/${key}.md`,
        );
      }
    }
 
    blocks.push(defs.INITIAL_REVIEW_PROMPT);
    blocks.push(defs.ISSUE_REVIEW_EXPERT);
 
    if (mode === "follow-up") {
      blocks.push(defs.ISSUE_RESOLUTION_VERIFIER);
    }
 
    if (includeSuggestions) {
      blocks.push(defs.IMPROVEMENT_ADVISOR);
    }
 
    return blocks.filter(Boolean).join("\n\n");
  }
 
  /**
   * Garantiza que exista un archivo markdown con el prompt base inicial.
   */
  async ensureInitialPromptTemplate() {
    try {
      const globalStoragePath = this.context?.globalStorageUri?.fsPath;
      if (!globalStoragePath) {
        this.logger.warn(
          "No se pudo obtener la ruta de almacenamiento global para prompt inicial",
        );
        return false;
      }
 
      await fs.mkdir(globalStoragePath, { recursive: true });
 
      const extensionRoot =
        this.context?.extensionPath || path.join(__dirname, "..", "..");
      const sourcePath = path.join(
        extensionRoot,
        "resources",
        "skills",
        "INITIAL_REVIEW_PROMPT.md",
      );
      const targetPath = path.join(
        globalStoragePath,
        "pr-review-initial-prompt.md",
      );
 
      let sourceContent = "";
      try {
        sourceContent = await fs.readFile(sourcePath, "utf-8");
      } catch {
        sourceContent =
          "# Initial PR Review Prompt\n\nPrompt base de revisión inicial no encontrado en resources/skills.\n";
      }
 
      await fs.writeFile(targetPath, sourceContent, "utf-8");
      this.logger.info(
        "✓ Prompt base inicial sincronizado en almacenamiento global",
      );
      return true;
    } catch (error) {
      this.logger.warn(
        `No se pudo asegurar prompt base inicial: ${error.message}`,
      );
      return false;
    }
  }
 
  /**
   * Genera o actualiza el archivo de instrucciones para PR reviews.
   */
  async ensureCopilotInstructions(standardsContent = {}) {
    try {
      const globalStoragePath = this.context?.globalStorageUri?.fsPath;
 
      if (!globalStoragePath) {
        this.logger.warn(
          "No se pudo obtener la ruta de almacenamiento global, usando prompt inline",
        );
        return false;
      }
 
      await fs.mkdir(globalStoragePath, { recursive: true });
 
      const instructionsPath = path.join(
        globalStoragePath,
        "pr-review-instructions.md",
      );
 
      let exists = false;
      try {
        await fs.access(instructionsPath);
        exists = true;
      } catch {
        exists = false;
      }
 
      if (exists) {
        this.logger.info(
          "🔄 Regenerando instrucciones de PR review desde skills activas...",
        );
      } else {
        this.logger.info("📝 Creando archivo de instrucciones de PR review...");
      }
 
      await this._createCopilotInstructions(instructionsPath, standardsContent);
      return true;
    } catch (error) {
      this.logger.error(`Error verificando instrucciones: ${error.message}`);
      return false;
    }
  }
 
  /**
   * Crea el archivo de instrucciones para PR reviews.
   */
  async _createCopilotInstructions(instructionsPath, standardsContent = {}) {
    const now = new Date();
    const currentYear = now.getFullYear();
    const currentMonth = now.toLocaleDateString("es-ES", { month: "long" });
    const currentDate = now.toLocaleDateString("es-ES", {
      day: "numeric",
      month: "long",
      year: "numeric",
    });
 
    await this._loadSkillDefinitions();
 
    const safeStandardsContent =
      typeof this._sanitizeStandardsPayload === "function"
        ? this._sanitizeStandardsPayload(standardsContent)
        : standardsContent;
 
    const fullReviewSkillContext = this._getSkillContext("full", true, true);
    const followUpVerifierSkill =
      this.skillDefinitions?.ISSUE_RESOLUTION_VERIFIER || "";
 
    let content = `# Instrucciones de Revisión de Pull Requests - Thunderlight Team
 
## Fuente de Verdad
 
Este archivo se genera automáticamente a partir de las skills activas del proyecto.
Las reglas de revisión NO están definidas aquí de forma manual: se cargan desde resources/skills/*.md.
 
**Contexto temporal:** Hoy es ${currentDate}. El año actual es ${currentYear}.
Cuando revises fechas en documentación, verifica que sean consistentes con el presente (${currentMonth} ${currentYear}).
 
## Skills Activas - Revisión Full
 
${fullReviewSkillContext}
`;
 
    if (followUpVerifierSkill) {
      content += `
## Skill Activa - Revisión de Seguimiento
 
${followUpVerifierSkill}
`;
    }
 
    if (safeStandardsContent && Object.keys(safeStandardsContent).length > 0) {
      content += `\n## 📚 Estándares de Código del Equipo Thunderlight\n\n`;
      content += `**IMPORTANTE:** Revisa el código siguiendo estos estándares solo cuando no contradigan las skills base del proyecto.\n\n`;
 
      if (safeStandardsContent.sql) {
        content += `### 🗄️ Estándares SQL\n\n`;
        content += `${safeStandardsContent.sql}\n\n`;
      }
 
      if (safeStandardsContent.dotnet) {
        content += `### 💻 Estándares .NET\n\n`;
        content += `${safeStandardsContent.dotnet}\n\n`;
      }
 
      if (safeStandardsContent.angular) {
        content += `### 🅰️ Estándares Angular\n\n`;
        content += `${safeStandardsContent.angular}\n\n`;
      }
 
      if (safeStandardsContent.ssis) {
        content += `### 📦 Estándares SSIS\n\n`;
        content += `${safeStandardsContent.ssis}\n\n`;
      }
    }
 
    const githubDir = path.dirname(instructionsPath);
    await fs.mkdir(githubDir, { recursive: true });
 
    await fs.writeFile(instructionsPath, content, "utf-8");
    this.logger.info(`✓ Creado/Actualizado: ${instructionsPath}`);
  }
 
  _detectTechnologies(commits, reviewType) {
    if (reviewType !== "auto") {
      const typeMap = {
        sql: ["SQL", "Database"],
        angular: ["Angular", "TypeScript", "HTML", "CSS"],
        dotnet: [".NET", "C#", "ASP.NET"],
        ssis: ["SSIS", "Integration Services", "ETL"],
        full: ["SQL", "Angular", ".NET", "SSIS"],
      };
      return typeMap[reviewType] || ["General"];
    }
 
    const technologies = new Set();
 
    for (const commit of commits) {
      const message = commit.comment?.toLowerCase() || "";
 
      if (
        message.includes("sql") ||
        message.includes("database") ||
        message.includes("stored procedure")
      ) {
        technologies.add("SQL");
      }
      if (
        message.includes("angular") ||
        message.includes("component") ||
        message.includes("typescript")
      ) {
        technologies.add("Angular");
      }
      if (
        message.includes(".net") ||
        message.includes("c#") ||
        message.includes("controller")
      ) {
        technologies.add(".NET");
      }
      if (
        message.includes("ssis") ||
        message.includes("etl") ||
        message.includes("integration")
      ) {
        technologies.add("SSIS");
      }
    }
 
    return technologies.size > 0 ? Array.from(technologies) : ["General"];
  }
 
  _normalizeTechnologies(technologies) {
    if (Array.isArray(technologies)) {
      const cleaned = technologies
        .filter((t) => typeof t === "string" && t.trim().length > 0)
        .map((t) => t.trim());
      return cleaned.length > 0 ? Array.from(new Set(cleaned)) : ["General"];
    }
 
    if (technologies instanceof Set) {
      return this._normalizeTechnologies(Array.from(technologies));
    }
 
    if (typeof technologies === "string" && technologies.trim().length > 0) {
      return [technologies.trim()];
    }
 
    return ["General"];
  }
 
  _sortIssuesBySeverity(issues) {
    if (!issues || issues.length === 0) return issues;
 
    const severityOrder = {
      CRITICAL: 0,
      HIGH: 1,
      MEDIUM: 2,
      LOW: 3,
    };
 
    return issues.sort((a, b) => {
      const severityA = (a.severity || "MEDIUM").toUpperCase();
      const severityB = (b.severity || "MEDIUM").toUpperCase();
 
      const orderA = severityOrder[severityA] ?? 2;
      const orderB = severityOrder[severityB] ?? 2;
 
      return orderA - orderB;
    });
  }
 
  static MAX_TOTAL_DIFF_CHARS = 300000;
  static MAX_SINGLE_FILE_CHARS = 50000;
 
  static MODEL_LIMITS = {
    "claude-sonnet": {
      maxTotalDiff: 120000,
      maxSingleFile: 30000,
      maxInstructions: 50000,
    },
    "claude-3": {
      maxTotalDiff: 120000,
      maxSingleFile: 30000,
      maxInstructions: 50000,
    },
    "gpt-4o": {
      maxTotalDiff: 300000,
      maxSingleFile: 50000,
      maxInstructions: 100000,
    },
    "gpt-4o-mini": {
      maxTotalDiff: 90000,
      maxSingleFile: 20000,
      maxInstructions: 30000,
    },
    gemini: {
      maxTotalDiff: 150000,
      maxSingleFile: 40000,
      maxInstructions: 60000,
    },
    default: {
      maxTotalDiff: 150000,
      maxSingleFile: 40000,
      maxInstructions: 60000,
    },
  };
 
  static DEFAULT_IGNORED_FILE_PATTERNS = [
    "\\.vs/",
    "\\.vsidx$",
    "\\.wsuo$",
    "\\.sqlite$",
    "\\.slnx\\.sqlite$",
    "DocumentLayout\\.json$",
    "VSWorkspaceState\\.json$",
    "\\.suo$",
    "\\.user$",
    "node_modules/",
    "bin/",
    "obj/",
    "\\.dll$",
    "\\.exe$",
    "\\.pdb$",
    "\\.dacpac$",
    "\\.bacpac$",
    "\\.bak$",
    "\\.publish\\.xml$",
    "\\.md$",
    "\\.txt$",
    "README",
    "CHANGELOG",
    "CONTRIBUTING",
    "LICENSE",
    "docs/",
    "documentation/",
    "\\.rst$",
    "\\.adoc$",
  ];
 
  ignoredFilePatterns = [];
 
  _formatComments(analysis) {
    const comments = [];
 
    comments.push({
      content: `## 🤖 Revisión Automática - GitHub Copilot\n\n${
        analysis.summary
      }\n\n**Estado:** ${this._formatApproval(analysis.approval)}`,
      commentType: 1,
    });
 
    if (analysis.issues && analysis.issues.length > 0) {
      const criticalIssues = analysis.issues.filter(
        (i) => i.severity === "critical" || i.severity === "high",
      );
 
      if (criticalIssues.length > 0) {
        let issuesComment = "## 🚨 Problemas Críticos/Importantes\n\n";
        criticalIssues.forEach((issue, i) => {
          issuesComment += `### ${i + 1}. ${issue.category} - ${
            issue.technology
          }\n`;
          issuesComment += `**Severidad:** ${issue.severity}\n`;
          issuesComment += `**Ubicación:** ${issue.location}\n`;
          issuesComment += `**Problema:** ${issue.description}\n`;
          issuesComment += `**Recomendación:** ${issue.recommendation}\n\n`;
        });
        comments.push({ content: issuesComment, commentType: 1 });
      }
    }
 
    return comments;
  }
 
  _formatApproval(approval) {
    const statusMap = {
      approved: "✅ Aprobado",
      "approved-with-suggestions": "✅ Aprobado con sugerencias",
      "changes-required": "⚠️ Cambios requeridos",
    };
    return statusMap[approval] || approval;
  }
}
 
Object.assign(
  PRReviewService.prototype,
  localReviewMethods,
  coreReviewMethods,
  analysisParserMethods,
  orchestrationMethods,
  promptComposerMethods,
  followUpContextMethods,
  copilotGatewayMethods,
  diffPreparationMethods,
  standardsIngestionMethods,
);
 
module.exports = { PRReviewService };