Remove generated artifacts and machine-specific paths

This commit is contained in:
2026-07-18 03:37:11 +08:00
parent 99c0f54998
commit cc3fb97be7
5713 changed files with 97 additions and 11438401 deletions
+1 -3
View File
@@ -9,7 +9,6 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
AGENT4_ROOT = Path(__file__).resolve().parents[2]
WORKSPACE_ROOT = AGENT4_ROOT.parent
class Settings(BaseSettings):
@@ -18,11 +17,10 @@ class Settings(BaseSettings):
port: int = 7200
knowledge_framework_path: Path = AGENT4_ROOT / "data" / "knowledge" / "reducer_three_layer_framework.json"
legacy_knowledge_framework_path: Path = WORKSPACE_ROOT / "mechanical_knowledge_base_final" / "data" / "framework" / "reducer_three_layer_framework.json"
legacy_knowledge_framework_path: Path | None = None
standard_skillflow_dirs: list[Path] = Field(
default_factory=lambda: [
AGENT4_ROOT / "data" / "standards",
WORKSPACE_ROOT / "runtime_tmp",
]
)
+3 -1
View File
@@ -109,7 +109,9 @@ class KnowledgeRepository:
return loaded
def _load_framework_refs(self) -> list[StandardAnswer]:
path = settings.knowledge_framework_path if settings.knowledge_framework_path.exists() else settings.legacy_knowledge_framework_path
path = settings.knowledge_framework_path
if not path.exists() and settings.legacy_knowledge_framework_path:
path = settings.legacy_knowledge_framework_path
if not path.exists():
return []
try: