Add local repo scan import#7
Open
clyons wants to merge 1 commit into
Open
Conversation
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.
Purpose / Big Picture
A new VibeFocus user often already has a folder full of local git repositories, but the current setup path still expects them to create projects one at a time before the app becomes useful. This PR adds a fast, safe onboarding path from “I have a directory of repos” to “VibeFocus has my portfolio.”
The scan is intentionally lightweight: it creates or updates project records, stores local paths, infers GitHub remotes and basic metadata, and refreshes read-only git stats. It does not import commit logs during first scan, so the initial import stays quick; users can run Analytics sync later when they want heatmaps, velocity, streaks, and health history.
Summary
Adds a local git repository import path for fresh VibeFocus installs:
make import-projectslocal_path,github_url, then nameorigin, local path, tech stack, description, status, priority, and lightweight git statsFixes #1.
Notes
Local repo import works without an Anthropic API key. AI chat and analysis still require a configured Anthropic key when those features are used.
Local planning reference in the fork workspace:
.agent/execplans/2026-05-11-local-repo-scan-onboarding.md.Validation
make fe-buildcd backend && ./venv/bin/python -m py_compile main.py import_local_projects.py services/*.py routers/*.pyGET /api/data/scan-configreports configured temp repo root as readyPOST /api/data/scan:created: 2,updated: 0,skipped: 0POST /api/data/scan:created: 0,updated: 2,skipped: 0scan_root_missingscan_root_required