From adb1ff745afbb9394fd4724240cf856a6b78ae1f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 Jan 2026 01:15:43 +0000 Subject: [PATCH 1/2] Initial plan From b849f63764314a2c9ad011c1cba1b82c2665d163 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 Jan 2026 01:24:32 +0000 Subject: [PATCH 2/2] Fix all 20 syntax errors in 9 files Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com> --- Cyrano/src/engines/workflow/drafting-mode-executor.ts | 6 +++--- Cyrano/src/integrations/potemkin-clio.ts | 3 +-- Cyrano/src/services/legal-research-service.ts | 3 +++ Cyrano/src/tools/compliance-checker.ts | 2 +- Cyrano/src/tools/document-drafter.ts | 4 ++-- Cyrano/src/tools/fact-checker.ts | 2 +- Cyrano/src/tools/legal-email-drafter.ts | 8 ++++---- Cyrano/src/tools/legal-reviewer.ts | 2 +- .../tools/verification/citations/michigan-citations.ts | 1 + 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Cyrano/src/engines/workflow/drafting-mode-executor.ts b/Cyrano/src/engines/workflow/drafting-mode-executor.ts index 34032ba4..b5b91204 100644 --- a/Cyrano/src/engines/workflow/drafting-mode-executor.ts +++ b/Cyrano/src/engines/workflow/drafting-mode-executor.ts @@ -167,7 +167,7 @@ export async function executeModeA(context: DraftingContext): Promise this.calculateSourceConfidence(claim, source)); return supportScores.reduce((sum, score) => sum + score, 0) / supportScores.length; } -(); +})(); diff --git a/Cyrano/src/tools/legal-email-drafter.ts b/Cyrano/src/tools/legal-email-drafter.ts index 56cdc1a4..95f68ef2 100644 --- a/Cyrano/src/tools/legal-email-drafter.ts +++ b/Cyrano/src/tools/legal-email-drafter.ts @@ -472,7 +472,7 @@ Ensure the email is clear, concise, and professionally appropriate for a ${reque return recommendations[recipientType] || []; } -(); +})(); /** * Refine Email Tone Tool @@ -593,6 +593,7 @@ Provide only the refined email without additional commentary.`; } catch (error) { throw new Error(`AI call failed: ${error instanceof Error ? error.message : String(error)}`); } + } /** * Get tone guidelines (shared with main tool) @@ -626,7 +627,8 @@ Provide only the refined email without additional commentary.`; return guidelines[tone] || guidelines.professional; } -(); +})(); + /** * Validate Legal Language Tool * Validates that legal language in the email is accurate and avoids unnecessary jargon @@ -723,5 +725,3 @@ export const validateLegalLanguage = new (class extends BaseTool { }; } })(); -} -} diff --git a/Cyrano/src/tools/legal-reviewer.ts b/Cyrano/src/tools/legal-reviewer.ts index ca3723c4..fabf6c23 100644 --- a/Cyrano/src/tools/legal-reviewer.ts +++ b/Cyrano/src/tools/legal-reviewer.ts @@ -923,4 +923,4 @@ export const legalReviewer = new (class extends BaseTool { document.toLowerCase().includes('osha') || document.toLowerCase().includes('workplace'); } -}(); +})(); diff --git a/Cyrano/src/tools/verification/citations/michigan-citations.ts b/Cyrano/src/tools/verification/citations/michigan-citations.ts index a8e6b81a..37cf59f6 100644 --- a/Cyrano/src/tools/verification/citations/michigan-citations.ts +++ b/Cyrano/src/tools/verification/citations/michigan-citations.ts @@ -313,6 +313,7 @@ export class MichiganCitationValidator { errors, warnings, }; + } /** * Parse public domain citation