Implement core services for MVP-1 Personal Tracker CLI

Services implemented:
- session_service: Active session management (get/set/clear, validation)
- project_service: Project CRUD and directory structure
- note_service: Note handling and consolidation
- heuristics_service: Rule-based suggestions
- summary_service: Heuristic summary generation
This commit is contained in:
2026-03-23 08:54:09 -03:00
parent 4547c492da
commit b0c65a00a2
13 changed files with 757 additions and 0 deletions

13
tracker/utils/slug.py Normal file
View File

@@ -0,0 +1,13 @@
"""Slug generation utility."""
def generate_slug(name: str) -> str:
"""Generate a URL-safe slug from a name.
Args:
name: The name to convert to a slug.
Returns:
A lowercase slug with spaces replaced by hyphens.
"""
return name.lower().replace(" ", "-")