4 Commits

Author SHA1 Message Date
george ff4da0cb9e Fix git sync and add repo browser with path selection
- Fix discover_files: rel_path always computed (was stuck at '.' at root),
  include_path_match now uses relative path, 'return' changed to 'continue'
- Fix ingest_git_source: files were cloned but ingested from wrong path
  (docs/repo-id instead of data/repos/repo-id). Now stages filtered files
  into DOCS_PATH/library_id before calling ingest_library.
- Add browse_repo_tree() for interactive repo exploration
- Add POST /api/v1/sources/browse endpoint to backend
- Add /sources/browse proxy route to webui
- Rewrite sources.html: browse repo, expand/collapse tree, check paths to
  include, then save source and sync

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 01:28:10 +01:00
george 1b61af8873 Fix DirEntry sort error in discover_files
Sort os.scandir() results by entry.name instead of comparing DirEntry objects directly, which don't support < operator.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 01:04:14 +01:00
george fc683b2803 Fix Git source sync failures 2026-06-06 00:48:21 +01:00
george 421b6f973a Initial DocsMCP stack 2026-06-05 23:02:55 +01:00