import sqlite3
con=sqlite3.connect('/home/hermes/.hermes/kanban/boards/youtube-lm/kanban.db')
con.row_factory=sqlite3.Row
print('completed tasks')
for row in con.execute("select id,title,status,completed_at,result,current_run_id from tasks where status='done' or completed_at is not null limit 10"):
print(dict(row))
print('recent completed events')
for row in con.execute("select * from task_events where kind in ('completed','unblocked','ready','dependency_satisfied') order by id desc limit 20"):
print(dict(row))
con.close()