lev.task_tree

lev

task_tree() -> tasks

Get structured task list

Returns a sorted array of task info tables, each with fields: id, name, status, detached, parent_id, co_status. Sorted by id for stable output. Returns nil outside lev.run().