feat: Add Local Folder Integration (Closes #101) #122
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.
Summary
Implements seamless integration with local folders for Knowledge Base Management, as requested in Issue #101.
Features
Changes
Backend (
src/api/routers/knowledge.py)POST /{kb_name}/link-folder- Link a local folderGET /{kb_name}/linked-folders- List linked foldersDELETE /{kb_name}/linked-folders/{folder_id}- Unlink a folderPOST /{kb_name}/sync-folder/{folder_id}- Sync files from folderGET /{kb_name}/linked-folders/{folder_id}/changes- Check for changesBackend (
src/knowledge/manager.py)link_folder(),get_linked_folders(),unlink_folder()scan_linked_folder(),detect_folder_changes(),update_folder_sync_state()Frontend (
web/app/knowledge/page.tsx)Closes #101