mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-24 00:45:57 +00:00
fix(persistence): address new Copilot review comments
- feedback.py: validate thread_id/run_id before deleting feedback - jsonl.py: add path traversal protection with ID validation - run_repo.py: parse `before` to datetime for PostgreSQL compat - thread_meta_repo.py: fix pagination when metadata filter is active - database_config.py: use resolve_path for sqlite_dir consistency Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -65,12 +65,18 @@ class DatabaseConfig(BaseModel):
|
||||
@property
|
||||
def checkpointer_sqlite_path(self) -> str:
|
||||
"""SQLite file path for the LangGraph checkpointer."""
|
||||
return os.path.join(self.sqlite_dir, "checkpoints.db")
|
||||
from deerflow.config.paths import resolve_path
|
||||
|
||||
resolved_dir = str(resolve_path(self.sqlite_dir))
|
||||
return os.path.join(resolved_dir, "checkpoints.db")
|
||||
|
||||
@property
|
||||
def app_sqlite_path(self) -> str:
|
||||
"""SQLite file path for application ORM data."""
|
||||
return os.path.join(self.sqlite_dir, "app.db")
|
||||
from deerflow.config.paths import resolve_path
|
||||
|
||||
resolved_dir = str(resolve_path(self.sqlite_dir))
|
||||
return os.path.join(resolved_dir, "app.db")
|
||||
|
||||
@property
|
||||
def app_sqlalchemy_url(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user