mirror of
https://github.com/usestrix/strix.git
synced 2026-08-17 09:29:49 +02:00
create_todo / update_todo / mark_todo_done / mark_todo_pending / delete_todo used to accept either a single-item form (title, todo_id, …) or a bulk form (todos, updates, todo_ids), reject the call if the agent set both, and explain the rule in the docstring. The agent kept tripping the validator. Drop the single-item form everywhere — each tool now takes one list arg. Single calls just pass a one-item list. While the API was being reshaped, line the result schemas up: created_count replaces the lone "count", _mark returns a single "marked" key plus new_status instead of marked_done / marked_pending, and list_todos splits the overloaded total_count into filtered_count (matches) and total_count (grand total) so a filtered call no longer hides the real size. Docstrings now spell out each item's fields with required/optional and the legal status / priority values, plus a worked example.