Rho.Tools.Todo (rho v0.1.0)

Copy Markdown View Source

Core tool: the session's todo list (omp's todo), kept in todos/<session_id>.json in the app's data dir. Writing the steps of a multi-step job down and ticking them off keeps the agent from stopping halfway, or forgetting a step after a compaction; and the list survives a restart of the app. One item at a time is in progress: the first open one, moved on whenever an item is done or removed.

open_items/2 gives the items not done yet, so the loop can remind the agent when it ends a run with some left.

Summary

Functions

The texts of the session's items not done yet, in order ([] when none).

Functions

open_items(data_dir, session_id)

@spec open_items(String.t(), String.t()) :: [String.t()]

The texts of the session's items not done yet, in order ([] when none).