fix: 修复 Linux 兼容性,添加原生构建依赖,忽略运行时数据

This commit is contained in:
2026-06-11 14:21:04 +08:00
parent 91a7e22840
commit fd1bac551c
4 changed files with 568 additions and 565 deletions

4
.gitignore vendored
View File

@@ -35,5 +35,9 @@ __pycache__/
.omc/ .omc/
**/.git_embedded_backup/ **/.git_embedded_backup/
# Runtime data (generated at runtime, not to be committed)
backend/data/
mineru_mvp/output/
# Claude Code personal config # Claude Code personal config
settings.json settings.json

View File

@@ -19,8 +19,8 @@ async def health_check():
from dotenv import load_dotenv from dotenv import load_dotenv
load_dotenv(env_path, override=False) load_dotenv(env_path, override=False)
mineru_python = Path(os.getenv("MINERU_PYTHON", "F:/GraphRAGAgent/mineru_mvp/.venv/Scripts/python.exe")) mineru_python = Path(os.getenv("MINERU_PYTHON", str(Path(__file__).parent.parent.parent / "mineru_mvp" / ".venv" / "bin" / "python")))
backend_python = Path(__file__).parent.parent / ".venv" / "Scripts" / "python.exe" backend_python = Path(__file__).parent.parent / ".venv" / "bin" / "python"
deepseek_key = os.getenv("DEEPSEEK_API_KEY", "") deepseek_key = os.getenv("DEEPSEEK_API_KEY", "")
deepseek_url = os.getenv("DEEPSEEK_BASE_URL", "https://api.deepseek.com") deepseek_url = os.getenv("DEEPSEEK_BASE_URL", "https://api.deepseek.com")
@@ -134,7 +134,7 @@ async def get_demo_data():
if not nodes: if not nodes:
# Fallback: load from existing graphrag_pipeline output # Fallback: load from existing graphrag_pipeline output
legacy_nodes_path = Path("F:/GraphRAGAgent/graphrag_pipeline/output/kg_nodes.json") legacy_nodes_path = Path(__file__).parent.parent.parent / "backend" / "output" / "kg_nodes.json"
legacy_edges_path = Path("F:/GraphRAGAgent/graphrag_pipeline/output/kg_edges.json") legacy_edges_path = Path("F:/GraphRAGAgent/graphrag_pipeline/output/kg_edges.json")
if legacy_nodes_path.exists(): if legacy_nodes_path.exists():
import json import json

View File

@@ -88,6 +88,10 @@
} }
}, },
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [
"@tailwindcss/oxide",
"esbuild"
],
"overrides": { "overrides": {
"vite": "6.3.5" "vite": "6.3.5"
} }

1119
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff