smriti/backend
Himanshu Dongre 2bbb7d27bc Fix smriti current crash on list-valued blocked_by
External-machine validation found GET /api/v5/current 500s on a real
project: a structured task can carry `blocked_by` as a list of dependency
labels, but CurrentTask.blocked_by is typed Optional[str], so constructing
the model raised a Pydantic ValidationError.

Add a field validator that normalizes `blocked_by` — string, list, or null —
to a single display string. The API contract is unchanged (blocked_by stays
a string), so the CLI and the Project Current State UI panel, which both
read this endpoint, need no change. Adds a regression test.
2026-05-17 16:20:32 +05:30
..
alembic Add optional local-first SQLite mode (Phase A core) 2026-05-16 22:26:05 +05:30
app Fix smriti current crash on list-valued blocked_by 2026-05-17 16:20:32 +05:30
config Initial public release 2026-03-22 13:48:50 +05:30
tests Fix smriti current crash on list-valued blocked_by 2026-05-17 16:20:32 +05:30
alembic.ini Initial public release 2026-03-22 13:48:50 +05:30
Dockerfile Initial public release 2026-03-22 13:48:50 +05:30
pyproject.toml Load .env via python-dotenv so extractor gets API keys reliably 2026-04-12 13:11:57 +05:30