add state history endpoints (flow_run_states, task_run_states)
- GET /api/flow_run_states/{id} - get state by ID
- GET /api/flow_run_states/?flow_run_id=... - list states for flow run
- GET /api/task_run_states/{id} - get state by ID
- GET /api/task_run_states/?task_run_id=... - list states for task run
also:
- add task_run_state table to migrations
- record state history in task_runs.setState (matches flow_runs)
- condense test functions to meet line limit
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>