feat: add project_info tool (#19)

Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
Paul Hernandez
2025-03-05 23:44:28 -06:00
committed by GitHub
parent 90d5754180
commit d2bd75a949
20 changed files with 956 additions and 45 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ from basic_memory.config import ProjectConfig
from basic_memory.services.file_service import FileService
from basic_memory.sync.sync_service import SyncService
WATCH_STATUS_JSON = "watch-status.json"
class WatchEvent(BaseModel):
timestamp: datetime
@@ -74,7 +76,7 @@ class WatchService:
self.file_service = file_service
self.config = config
self.state = WatchServiceState()
self.status_path = config.home / ".basic-memory" / "watch-status.json"
self.status_path = config.home / ".basic-memory" / WATCH_STATUS_JSON
self.status_path.parent.mkdir(parents=True, exist_ok=True)
self.console = Console()