Skip to main content

TodoCommand

Enum TodoCommand 

Source
pub enum TodoCommand {
Show 24 variants Add { title: String, description: String, priority: String, tags: String, owner: String, due: Option<String>, ref: String, dir: Option<String>, depends_on: String, blocks: String, parent: Option<String>, one_shot: i32, }, List { status: String, scope: Option<String>, tags: Option<String>, title_search: Option<String>, dir: Option<String>, }, Get { id: String, }, Show { id: Option<String>, id_positional: Option<String>, }, Done { id: Option<String>, id_positional: Option<String>, validated: bool, artifact: Vec<String>, }, Archive { id: Option<String>, id_positional: Option<String>, }, Comment { id: String, comment: String, }, Edit { id: String, title: Option<String>, description: Option<String>, owner: Option<String>, category: Option<String>, }, Claim { id: String, agent: Option<String>, mode: ClaimMode, }, ClaimStatus { id: String, }, Release { id: String, }, Rebuild, Categories, RegisterAgent { agent: Option<String>, categories: Vec<String>, }, Ownerships { category: Option<String>, agent: Option<String>, }, Heartbeat { agent: Option<String>, autoclaim: bool, max_claims: usize, }, Presence { agent: Option<String>, }, WorkerRun { agent: Option<String>, task_id: Option<String>, max_tasks: usize, lesson: bool, autoclose: bool, }, Handoff { id: String, to: String, from: Option<String>, summary: String, }, AddOwner { id: String, agent: String, claim_type: String, }, RemoveOwner { id: String, agent: String, }, ListOwners { id: String, }, RegisterExpertise { agent: Option<String>, category: String, level: String, }, Expertise { agent: Option<String>, category: Option<String>, },
}

Variants§

§

Add

Add a new task.

Fields

§title: String

Task title (positional argument)

§description: String
§priority: String
§owner: String
§depends_on: String
§blocks: String
§one_shot: i32

Mark task as one-shot (1) or recurring (0)

§

List

List tasks.

Fields

§status: String
§title_search: Option<String>
§

Get

Get a task by ID.

Fields

§

Show

Show a task by ID (compat alias for get).

Fields

§id: Option<String>

Task ID (supports --id <ID> or positional <ID>).

§id_positional: Option<String>

Task ID positional fallback.

§

Done

Mark a task done.

Fields

§id: Option<String>

Task ID (supports --id <ID> or positional <ID>).

§id_positional: Option<String>

Task ID positional fallback.

§validated: bool

Capture verification artifacts and proof baseline while marking done.

§artifact: Vec<String>

File path(s) to hash for drift detection. Defaults to AGENTS.md when –validated is set.

§

Archive

Archive a task (keeps audit trail).

Fields

§id: Option<String>

Task ID (supports --id <ID> or positional <ID>).

§id_positional: Option<String>

Task ID positional fallback.

§

Comment

Add a comment to a task (audit-only event).

Fields

§comment: String
§

Edit

Edit a task’s title, description, owner, or category.

Fields

§description: Option<String>
§category: Option<String>
§

Claim

Claim a task for active work (prevents other agents from interfering).

Fields

§agent: Option<String>

Agent identifier (defaults to environment or ‘unknown’).

§mode: ClaimMode

Claim mode: exclusive takes assignment; shared joins as secondary owner.

§

ClaimStatus

Read claim status for a task (cache-first).

Fields

§

Release

Release a claimed task (makes it available for others).

Fields

§

Rebuild

Rebuild the SQLite DB deterministically from the JSONL event log.

§

Categories

List available task categories.

§

RegisterAgent

Register an agent and claim ownership of one or more categories.

Fields

§agent: Option<String>

Agent identifier (defaults to environment or ‘unknown’).

§categories: Vec<String>
§

Ownerships

List current category ownership claims.

Fields

§category: Option<String>

Filter by category.

§agent: Option<String>

Filter by agent id.

§

Heartbeat

Record an agent heartbeat.

Fields

§agent: Option<String>

Agent identifier (defaults to environment or ‘unknown’).

§autoclaim: bool

Automatically claim eligible open tasks for this agent after heartbeat.

§max_claims: usize

Maximum number of tasks to claim when –autoclaim is enabled.

§

Presence

List agent presence records.

Fields

§agent: Option<String>

Filter by agent id.

§

WorkerRun

Run the autonomous worker loop (heartbeat -> claim -> context -> execute -> lesson).

Fields

§agent: Option<String>

Agent identifier (defaults to environment or ‘unknown’).

§task_id: Option<String>

Optional specific task id to execute first.

§max_tasks: usize

Maximum tasks to claim and execute in this run.

§lesson: bool

Persist lesson artifacts to knowledge + federation.

§autoclose: bool

Archive tasks after completion.

§

Handoff

Transfer a task between agents and record handoff artifacts.

Fields

§summary: String
§

AddOwner

Add an additional owner to a task (supports multiple ownership).

Fields

§agent: String
§claim_type: String

Type of ownership claim: primary, secondary, watcher

§

RemoveOwner

Remove an owner from a task.

Fields

§agent: String
§

ListOwners

List all owners of a task.

Fields

§

RegisterExpertise

Register agent expertise level for a category.

Fields

§category: String
§level: String
§

Expertise

List agent expertise claims.

Fields

§category: Option<String>

Trait Implementations§

Source§

impl Debug for TodoCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for TodoCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for TodoCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.