Skip to main content

Module transport

Module transport 

Source
Expand description

The seam between the engine and the opencode CLI.

Re-exports§

pub use cli::CliTransport;

Modules§

cli
The real transport: shells out to the opencode CLI.

Structs§

NotFoundTransport
Every call fails OPENCODE_NOT_FOUND (kept for the server tests that need a transport with no CLI).
TransportError

Enums§

Lifecycle
WaitOutcome

Traits§

Transport

Functions§

build_transport
home is the ctl home, user_home the OS home.
home_required
The OS home for route, or the missing-home refusal. Version, Usage and emit-skill need no home.
not_found 🔒
parse_cli_version
opencode v2.0.32 / v2.0.32 / 2.0.32 -> 2.0.32.
service_running
The service status stdout is the URL when running and stopped otherwise.

Type Aliases§

Params