Skip to main content

Module tools

Module tools 

Source
Expand description

tools tier dispatch. Mirrors objectiveai-sdk-rs/src/cli/command/tools/mod.rs. list, run, and install (a filesystem/github sub-tier) stream; get is unary.

Modules§

get
tools get — read one tool’s manifest by (owner, name, version). Returns None if not present.
install
tools install sub-tier. Mirrors objectiveai-sdk-rs/src/cli/command/tools/install/mod.rs. Both leaves (filesystem, github) are unary; this dispatcher returns a one-shot stream wrapping the chosen leaf’s Response.
list
tools list — bare-naked streaming handler stub. Emits one ResponseItem per installed tool.
run
tools run — resolve a tool by (owner, name, version), build its command from the current platform’s exec vector + the caller’s args, run it with the tool’s version folder’s cli/ subdir as the working directory (per resolve_tool), and yield each stdout/stderr line as a ResponseItem as it arrives. A non-zero exit code surfaces as a final Err(Error::ToolExit(code)).

Functions§

execute