Commit Graph

19 Commits

Author SHA1 Message Date
fegger ccd2c3e0d8 Refactor message handling in chat view and improve API error handling
Simplify message construction and update logic in chat-view.js
Add abort controller support and improve error handling in ollama-client.js
Remove unused sanitizeFilePath function from utils.js
Export LogLevel enum in utils.js
Improve vault indexing to process all batches
2026-05-07 00:06:19 +02:00
fegger 75fa07f148 ```
Remove unused isValidHttpUrl function and related tests

Remove commented-out model validation regex from constants
```
2026-05-07 00:02:32 +02:00
fegger cec8302dbe Update coverage reports and fix Ollama client abort handling 2026-05-06 23:44:29 +02:00
fegger 0920e0959e Refactor message handling and remove result limit in vault indexing 2026-05-06 22:45:03 +02:00
fegger ea792b0034 Update safeParseJson to check for dangerous object keys recursively
Improve detection of prototype pollution patterns in JSON parsing
2026-05-06 22:38:31 +02:00
fegger 579e60f5d5 ```
Increase test coverage across multiple modules (91.2% statements, 82.85% branches, 82.35% functions, 93.1% lines)

Update abort controller handling in OllamaClient to properly clean up previous controllers

Remove unused imports and constants: MODEL_NAME_REGEX, MouseEvent, DEFAULT_SETTINGS, convertMarkdownToHtml

Refactor event handler naming to be more consistent
```
2026-05-06 22:30:29 +02:00
fegger 649061a747 Added new files for Ollama plugin functionality
Added new files for Ollama plugin functionality including chat view, error handling, client integration, tool execution,
vault indexing, and utility functions.
2026-05-06 22:03:52 +02:00
fegger 333328804a Remove deprecated files and update coverage reports 2026-05-06 21:52:58 +02:00
fegger ccb0603d0c Update streaming handling and improve model validation
Add MAX_STREAM_CHUNKS constant and update message handling to mark streaming as complete even without tool results.
Improve model name validation to support colons and add comprehensive test suite. Refactor VaultIndexer to simplify
constructor and remove unused methods. Fix path normalization in tool executor and remove unused safeWriteFile export.
Update error handling to remove redundant console suppressions.
2026-05-06 21:48:27 +02:00
fegger 3f23335ba1 Remove summary functionality from VaultIndexer 2026-05-06 21:24:28 +02:00
fegger caed98d0b6 ```
Update ESLint rules to disable console logging in utils and error-handler

Remove unused function and type in vault-indexer
```

```
Remove unused safeWriteFile function in utils

Remove unused isVaultLike type in vault-indexer
```
2026-05-06 21:13:59 +02:00
fegger 0a0173363b Add MAX_STREAM_CHUNKS constant for streaming control
Improve path validation to detect parent directory traversal
Refactor VaultIndexer to use VaultLike interface
Enhance heading matching to support 1-6 level headings
Improve token stemming with length-based checks
Optimize context building for user messages
2026-05-06 19:58:26 +02:00
fegger d57ade0ba8 Update coverage reports and improve error handling 2026-05-06 19:28:40 +02:00
fegger 2968932d69 Add error handler and improve coverage 2026-05-06 18:24:24 +02:00
fegger aa8e45912a Update chat view tests to use new event handlers 2026-05-06 17:21:12 +02:00
fegger fd49abcdb9 Refactor error handling, client, and tests for Ollama integration 2026-05-06 16:30:16 +02:00
fegger 59df2f6856 Refactor Ollama client and related components
Update error handling and improve streaming capabilities in the Ollama client and related components. Key changes
include:

- Simplify error types and improve error handling
- Refactor streaming logic to use async generators
- Update tool execution and vault indexing
- Improve utility functions and types
- Update test files to reflect changes
2026-05-05 17:09:16 +02:00
fegger cc580889d2 ```
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
```
2026-05-05 00:37:18 +02:00
fegger f638b06a86 initial commit 2026-05-04 22:05:10 +02:00