From 2998f27f703282359f6389d1c2d8758fc6a14955 Mon Sep 17 00:00:00 2001 From: Richie Foreman Date: Sun, 17 Aug 2025 12:43:21 -0400 Subject: chore(compiler): Enable strict property access TS compiler flag. (#6255) Co-authored-by: Jacob Richman --- packages/core/src/services/loopDetectionService.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/core/src/services') diff --git a/packages/core/src/services/loopDetectionService.ts b/packages/core/src/services/loopDetectionService.ts index f89e00da..8e94ac69 100644 --- a/packages/core/src/services/loopDetectionService.ts +++ b/packages/core/src/services/loopDetectionService.ts @@ -367,10 +367,10 @@ Please analyze the conversation history to determine the possibility that the co return false; } - if (typeof result.confidence === 'number') { - if (result.confidence > 0.9) { - if (typeof result.reasoning === 'string' && result.reasoning) { - console.warn(result.reasoning); + if (typeof result['confidence'] === 'number') { + if (result['confidence'] > 0.9) { + if (typeof result['reasoning'] === 'string' && result['reasoning']) { + console.warn(result['reasoning']); } logLoopDetected( this.config, @@ -381,7 +381,7 @@ Please analyze the conversation history to determine the possibility that the co this.llmCheckInterval = Math.round( MIN_LLM_CHECK_INTERVAL + (MAX_LLM_CHECK_INTERVAL - MIN_LLM_CHECK_INTERVAL) * - (1 - result.confidence), + (1 - result['confidence']), ); } } -- cgit v1.2.3