Skip to content

Commit 9630f47

Browse files
CopilotMte90
andcommitted
Refactor: Remove unnecessary docs and extract models to separate file
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent ea6f272 commit 9630f47

File tree

5 files changed

+32
-366
lines changed

5 files changed

+32
-366
lines changed

CHANGELOG.md

Lines changed: 0 additions & 178 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ This tool is a way to achieve this!
1818
- Minimal web UI for starting analysis and asking questions (semantic search + coding model)
1919
- Health check and monitoring endpoints for production deployment
2020

21-
## New Features (v0.2.0)
22-
23-
### Per-Project Persistent Storage
24-
- Each opened project gets its own SQLite database
25-
- Isolated storage prevents cross-project data leakage
26-
- Project registry tracks all indexed projects
27-
- Automatic project ID generation based on path
28-
29-
### PyCharm Plugin API
30-
- RESTful API designed for IDE integration
31-
- Create/manage projects via API
32-
- Background indexing with status tracking
33-
- Semantic search and code completion endpoints
34-
- See [PYCHARM_INTEGRATION.md](PYCHARM_INTEGRATION.md) for full API documentation
35-
3621
### PyCharm Plugin
3722

3823
A full-featured PyCharm/IntelliJ IDEA plugin is available in the `plugin/` directory:

SECURITY.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

main.py

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import uvicorn
99
from typing import Optional
1010
from datetime import datetime
11-
from pydantic import BaseModel
1211

1312
from db import init_db, list_analyses, delete_analysis
1413
from analyzer import analyze_local_path_background, search_semantic, call_coding_model
@@ -17,6 +16,10 @@
1716
create_project, get_project, get_project_by_id, list_projects,
1817
update_project_status, delete_project, get_or_create_project
1918
)
19+
from models import (
20+
CreateProjectRequest, IndexProjectRequest,
21+
QueryRequest, CodeCompletionRequest
22+
)
2023

2124
DATABASE = CFG.get("database_path", "codebase.db")
2225
MAX_FILE_SIZE = int(CFG.get("max_file_size", 200000))
@@ -36,27 +39,6 @@ async def lifespan(app: FastAPI):
3639
app.mount("/static", StaticFiles(directory="static"), name="static")
3740

3841

39-
# Pydantic models for request/response
40-
class CreateProjectRequest(BaseModel):
41-
path: str
42-
name: Optional[str] = None
43-
44-
class IndexProjectRequest(BaseModel):
45-
project_id: str
46-
47-
class QueryRequest(BaseModel):
48-
project_id: str
49-
query: str
50-
top_k: Optional[int] = 5
51-
52-
class CodeCompletionRequest(BaseModel):
53-
project_id: str
54-
prompt: str
55-
context: Optional[str] = ""
56-
use_rag: Optional[bool] = True
57-
top_k: Optional[int] = 5
58-
59-
6042
# Project Management API (PyCharm-compatible)
6143
@app.post("/api/projects")
6244
def api_create_project(request: CreateProjectRequest):

0 commit comments

Comments
 (0)