Skip to main content

Crate objectiveai_cli

Crate objectiveai_cli 

Source

Modules§

command
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.
context
Process-wide state threaded into every bare-naked command::*::execute.
db
Postgres-backed state for the CLI.
error
executor
In-process CommandExecutor implementor backed by the CLI’s own leaf handlers. Lets programmatic consumers drive the SDK’s per-leaf execute<E> entry points against the CLI’s local logic without spawning a subprocess.
filesystem
plugin_path
PluginPath — the (owner, repository, version) coordinate of the plugin a command is running on behalf of.
viewer_client
Synchronous-response HTTP client for the viewer’s HTTP server.

Structs§

Config
ConfigBuilder

Enums§

RunStream
What run yields, mirroring the two SDK root dispatch entry points. The arm is chosen by whether the parsed request carries an output transform (RequestBase::transform):

Functions§

is_informational
Did clap exit with one of the “successful informational output” variants? --help, --version, or a missing-subcommand bail.
load_config
Build the top-level CLI config from the process environment.
run
Run the CLI command tree.