Expand description
Bare-naked CLI handlers mirroring the SDK’s cli::command tree
1-for-1. Each leaf file here pairs with an SDK leaf at the same
module path; the SDK leaf defines the typed Request / Response /
ResponseItem shapes, this side defines the execute / execute_transform
(and execute_streaming / execute_streaming_transform for chunk-or-id
leaves) that actually do the work.
run.rs parses argv → SDK Command → SDK Request (via the SDK’s
TryFrom impls), then dispatches to execute which fans out
through the tier mod.rs files to the leaves below.
Re-exports§
pub use command::execute;
Modules§
- agents
agentstier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/agents/mod.rs. Mix of unary leaves (get,publish) and streaming sub-trees (list,spawn,message,logs,queue,tags, plus the survivinginstancesaggregate that ownsme/list).- api
apitier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/api/mod.rs— matches on the SDK’s tierRequestvariants and dispatches to local leafexecutes. All api leaves are unary, so every arm wraps a single value in a one-shot stream.- command
- Root-level dispatch. Mirrors
objectiveai-sdk-rs/src/cli/command/command.rs— samematchshape, same fan-out, but each arm calls the local tierexecute(which actually does the work) instead of routing throughCommandExecutor. - daemon
daemontier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/daemon/mod.rs.spawnis streaming (the resident daemon yields readiness then serves);killis unary.- db
db— CLI-side dispatch for database access + lifecycle:query,spawn,kill.- functions
functionstier dispatch.- kill_
all kill-all— terminate every process holding a lock anywhere under the configuredOBJECTIVEAI_DIR.- kill_
helpers - Shared kill-by-lock-owner logic for the
{api,db,mcp,viewer} killcommands. - mcp
mcptier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/mcp/mod.rs— matches on the SDK’s tierRequestvariants and dispatches to local leafexecutes. All mcp leaves are unary, so every arm wraps a single value in a one-shot stream.- plugins
pluginstier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/plugins/mod.rs.install,list, andrunare streaming;getis unary.installis a sub-tier with its own dispatcher underinstall/mod.rs.- python
python— run a Python snippet in the embedded runtime and return its output as JSON.- reexec
- Re-exec envelope hygiene.
- swarms
swarmstier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/swarms/mod.rs.listis a streaming leaf (oneResponseItemper swarm);getandpublishare unary.- tools
toolstier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/tools/mod.rs.list,run, andinstall(afilesystem/githubsub-tier) stream;getis unary.- update
update— bare-naked streaming handler.- viewer
viewertier dispatch. Mirrorsobjectiveai-sdk-rs/src/cli/command/viewer/mod.rs. All viewer leaves are unary, so every arm wraps a single value in a one-shot stream.