From cc580889d2e6f4c559762879f7a8ed239469102d Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Tue, 5 May 2026 00:37:18 +0200 Subject: [PATCH] ``` Update coverage reports and add new validation utilities Add comprehensive validation utilities for Ollama URL and model name Add new API response types and client configuration interfaces Add Logger utility for consistent logging Add validation function for plugin settings Add unit tests for validation functions Update TypeScript configuration Update coverage reports to reflect new code additions ``` --- coverage/lcov-report/error-handler.ts.html | 48 +- coverage/lcov-report/index.html | 78 +- coverage/lcov-report/tool-executor.ts.html | 30 +- coverage/lcov-report/types.ts.html | 414 ++++++++- coverage/lcov-report/utils.ts.html | 985 ++++++++++++++++++++- coverage/lcov-report/vault-indexer.ts.html | 2 +- coverage/lcov.info | 493 +++++++++++ main.ts | 68 +- src/ollama-client.ts | 254 +++--- src/tool-executor.ts | 4 +- src/types.ts | 122 +++ src/utils.ts | 321 +++++++ tests/utils.test.ts | 197 +++++ tsconfig.json | 4 +- 14 files changed, 2789 insertions(+), 231 deletions(-) create mode 100644 tests/utils.test.ts diff --git a/coverage/lcov-report/error-handler.ts.html b/coverage/lcov-report/error-handler.ts.html index a532ce9..8149830 100644 --- a/coverage/lcov-report/error-handler.ts.html +++ b/coverage/lcov-report/error-handler.ts.html @@ -30,9 +30,9 @@
- 82% + 80% Branches - 41/50 + 40/50
@@ -241,8 +241,8 @@ 176 177 178 -1792x -2x +1791x +1x       @@ -253,18 +253,18 @@       -2x +1x           -5x -5x +4x +4x   -5x -2x -2x +4x +1x +1x 3x 2x 2x @@ -273,24 +273,24 @@ 1x     -5x -5x -  -  -  -5x -  -  -5x +4x 4x       +4x +  +  +4x +3x         -8x +  +  +  +7x   2x 2x @@ -320,8 +320,8 @@       -2x -2x +1x +1x       @@ -457,7 +457,7 @@ export class ErrorHandler {   // Log detailed error for debugging console.error( - `[OllamaPlugin${context ? ' ' + context : ''}] ${error instanceof Error ? error.message : 'Unknown error'}` + `[OllamaPlugin${context ? ' ' + context : ''}] ${error instanceof Error ? error.message : 'Unknown error'}` ); if (error instanceof Error) { console.error('[Stack]', error.stack); @@ -604,7 +604,7 @@ export class ErrorHandler {