Repository navigation
AI integration using freellmapi - #3084
Open
abdelrahmanelnabawy wants to merge 5 commits into
Open
abdelrahmanelnabawy wants to merge 5 commits into
abdelrahmanelnabawy wants to merge 5 commits into
Conversation
…ies, secure storage, and tests
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(desktop): Add Local AI Notes Assistant (FreeLLM API)
Summary
Introduces a Desktop-only Local AI Notes Assistant (
packages/web/src/freellmapi) that connects to any locally hosted, OpenAI-compatible Responses API (POST <baseURL>/responses), including FreeLLM API, Ollama, and LM Studio.The assistant enables users to interact with their decrypted notes through natural language, including browsing, searching, reading, editing, creating, and recovering notes — all locally.
Key Features
1. Multi-Step AI Agent for Note Browsing & Editing
list_notessearch_notesread_noteopen_noteedit_notecreate_noteNoteType.Super(throughHeadlessSuperConverter)RichTextMarkdownPlainCodeTaskSpreadsheet2. Lost Information Detection & Recovery
Introduces dedicated tools and a built-in Recovery interface to help users locate and restore missing information.
find_lost_info— Performs multi-keyword fuzzy searches across:.json,.md,.txt)get_note_history— Inspects AI snapshots, local session history, and remote revision history.audit_missing_info— Identifies:TODO,TBD,FIXME,???,[ ])restore_note— Supports note restoration through the built-in Recovery drawer.The Recovery drawer includes:
3. GUI Configuration & Preferences
Adds a Desktop-only configuration experience through:
Available configuration options:
Also includes a live Test Connection feature with latency reporting.
Changes Overview
New Module —
packages/web/src/freellmapi/Introduces 12 new files:
Desktop Integration
Updates 13 existing files, with +45 / -11 lines, covering:
isDesktopDevice):Types.tsWebDependencies.tsWebApplication.tsApplicationView.tsxFooter.tsxPreferenceId.tsStatusService.tsPreferencesSessionController.tsPaneSelector.tsxtsconfig.jsonweb.webpack.config.jstailwind.config.jspackages/web/package.jsonDocumentation
Updated
README.mdwith:Security & Privacy
The implementation includes several security and privacy safeguards:
freeLlmApiControllerisundefinedoutside the Desktop environment.apiKeydefaults to an empty string ('') and must be configured through the GUI.NoteType.Authentication) notes are always excluded from read and write operations.deinit()Verification & Testing
All checks completed successfully:
yarn workspace @standardnotes/web lint— ESLint and TypeScript checks passed (0 errors).yarn workspace @standardnotes/services lint— Passed (0 errors).yarn workspace @standardnotes/web test src/freellmapi/freellmapi.spec.ts— 10/10 tests passing.yarn build:desktop— Full@standardnotes/weband@standardnotes/desktopproduction build completed successfully (exit code 0).Related Commits
b3fcc16303d3bd162422c4d44b0Result: A fully integrated, Desktop-only local AI notes assistant with multi-step agentic capabilities, safe note editing, lost-information recovery, and configurable local LLM connectivity.