diff --git a/Cyrano/src/engines/workflow/drafting-mode-executor.ts b/Cyrano/src/engines/workflow/drafting-mode-executor.ts index 34032ba..b5b9120 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 56cdc1a..95f68ef 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 ca3723c..fabf6c2 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 a8e6b81..37cf59f 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