merlyn/server/endpoints
Timothy Carambat 0fb33736da
Workspace Chat with documents overhaul (#4261)
* Create parse endpoint in collector (#4212)

* create parse endpoint in collector

* revert cleanup temp util call

* lint

* remove unused cleanupTempDocuments function

* revert slug change
minor change for destinations

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>

* Add parsed files table and parse server endpoints (#4222)

* add workspace_parsed_files table + parse endpoints/models

* remove dev api parse endpoint

* remove unneeded imports

* iterate over all files + remove unneeded update function + update telemetry debounce

* Upload UI/UX context window check + frontend alert (#4230)

* prompt user to embed if exceeds prompt window + handle embed + handle cancel

* add tokenCountEstimate to workspace_parsed_files + optimizations

* use util for path locations + use safeJsonParse

* add modal for user decision on overflow of context window

* lint

* dynamic fetching of provider/model combo + inject parsed documents

* remove unneeded comments

* popup ui for attaching/removing files + warning to embed + wip fetching states on update

* remove prop drilling, fetch files/limits directly in attach files popup

* rework ux of FE + BE optimizations

* fix ux of FE + BE optimizations

* Implement bidirectional sync for parsed file states
linting
small changes and comments

* move parse support to another endpoint file
simplify calls and loading of records

* button borders

* enable default users to upload parsed files but NOT embed

* delete cascade on user/workspace/thread deletion to remove parsedFileRecord

* enable bgworker with "always" jobs and optional document sync jobs
orphan document job: Will find any broken reference files to prevent overpollution of the storage folder. This will run 10s after boot and every 12hr after

* change run timeout for orphan job to 1m to allow settling before spawning a worker

* linting and cleanup pr

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>

* dev build

* fix tooltip hiding during embedding overflow files

* prevent crash log from ERRNO on parse files

* unused import

* update docs link

* Migrate parsed-files to GET endpoint
patch logic for grabbing models names from utils
better handling for undetermined context windows (null instead of Pos_INIFI)
UI placeholder for null context windows

* patch URL

---------

Co-authored-by: Sean Hatfield <seanhatfield5@gmail.com>
2025-08-11 09:26:19 -07:00
..
api fix: API export-chats endpoint function import error (#4220) 2025-07-30 12:19:27 -07:00
embed Fix prompt, model, and temperature overrides in embed chat widget (#4036) 2025-06-24 14:23:02 -07:00
experimental Remove fine-tuning flow (#2872) 2024-12-18 10:24:02 -08:00
extensions Obsidian data connector (#3798) 2025-05-12 13:45:27 -07:00
mobile Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00
admin.js Flag to disable login UI and endpoints for credentialed auth (#3984) 2025-06-11 12:46:40 -07:00
agentFlows.js Implement importing of agent flows from community hub (#3867) 2025-06-05 15:08:58 -07:00
agentWebsocket.js Add LMStudio agent support (generic) support (#1246) 2024-05-07 16:35:47 -07:00
browserExtension.js AnythingLLM Chrome Extension (#2066) 2024-08-27 14:58:47 -07:00
chat.js Prune telemetry events 2025-04-29 13:54:00 -07:00
communityHub.js Publish system prompts to hub (#3976) 2025-06-16 09:59:38 -07:00
document.js Patch path traversal in move-files that can be used by administrator level attacker only 2024-08-27 16:19:12 -07:00
embedManagement.js Enable the ability to disable the chat history UI (#2501) 2024-10-21 13:19:19 -07:00
invite.js Flag to disable login UI and endpoints for credentialed auth (#3984) 2025-06-11 12:46:40 -07:00
mcpServers.js ModelContextProtocol (MCP) Full Compatibility (#3547) 2025-03-31 16:15:19 -05:00
system.js Add custom JWT TTL (#4234) 2025-08-01 10:39:38 -07:00
utils.js Fix app version metrics endpoint (#4209) 2025-07-28 15:37:06 -07:00
workspaces.js Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
workspacesParsedFiles.js Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
workspaceThreads.js Prune telemetry events 2025-04-29 13:54:00 -07:00