0.9.0 - Added Trilium ETAPI integration.

Lyra can now: Search trilium notes and create new notes. with proper ETAPI auth.
This commit is contained in:
serversdwn
2025-12-29 01:58:20 -05:00
parent 64429b19e6
commit 794baf2a96
14 changed files with 2063 additions and 39 deletions

View File

@@ -9,6 +9,54 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Se
---
## [0.9.0] - 2025-12-29
### Added - Trilium Notes Integration
**Trilium ETAPI Knowledge Base Integration**
- **Trilium Tool Executor** [cortex/autonomy/tools/executors/trilium.py](cortex/autonomy/tools/executors/trilium.py)
- `search_notes(query, limit)` - Search through Trilium notes via ETAPI
- `create_note(title, content, parent_note_id)` - Create new notes in Trilium knowledge base
- Full ETAPI authentication and error handling
- Automatic parentNoteId defaulting to "root" for root-level notes
- Connection error handling with user-friendly messages
- **Tool Registry Integration** [cortex/autonomy/tools/registry.py](cortex/autonomy/tools/registry.py)
- Added `ENABLE_TRILIUM` feature flag
- Tool definitions with schema validation
- Provider-agnostic tool calling support
- **Setup Documentation** [TRILIUM_SETUP.md](TRILIUM_SETUP.md)
- Step-by-step ETAPI token generation guide
- Environment configuration instructions
- Troubleshooting section for common issues
- Security best practices for token management
- **API Reference Documentation** [docs/TRILIUM_API.md](docs/TRILIUM_API.md)
- Complete ETAPI endpoint reference
- Authentication and request/response examples
- Search syntax and advanced query patterns
**Environment Configuration**
- **New Environment Variables** [.env](.env)
- `ENABLE_TRILIUM=true` - Enable/disable Trilium integration
- `TRILIUM_URL=http://10.0.0.2:4292` - Trilium instance URL
- `TRILIUM_ETAPI_TOKEN` - ETAPI authentication token
**Capabilities Unlocked**
- Personal knowledge base search during conversations
- Automatic note creation from conversation insights
- Cross-reference information between chat and notes
- Context-aware responses using stored knowledge
- Future: Find duplicates, suggest organization, summarize notes
### Changed - Spelling Corrections
**Module Naming**
- Renamed `trillium.py` to `trilium.py` (corrected spelling)
- Updated all imports and references across codebase
- Fixed environment variable names (TRILLIUM → TRILIUM)
- Updated documentation to use correct "Trilium" spelling
---
## [0.8.0] - 2025-12-26
### Added - Tool Calling & "Show Your Work" Transparency Feature
@@ -22,7 +70,7 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Se
- **Available Tools**
- `execute_code` - Sandboxed Python/JavaScript/Bash execution via Docker
- `web_search` - Tavily API integration for real-time web queries
- `trillium_search` - Internal Trillium knowledge base queries
- `trilium_search` - Internal Trilium knowledge base queries
- **Provider Adapters** [cortex/autonomy/tools/adapters/](cortex/autonomy/tools/adapters/)
- `OpenAIAdapter` - Native function calling support
- `OllamaAdapter` - XML-based tool calling for local models