Expand description
Wyvern CLI library — load → validate → run → emit pipeline.
main.rs is a thin binary wrapper around pipeline::run_from_loaded.
Modules§
- extensions
- CLI extension registry, match, preexec, and expand (ADR-0022). CLI extension registry: load, merge, match, expand, and dispatch.
Structs§
- CliArgs
- Parsed CLI invocation: host options + remaining positional/stdin args.
- Extension
Registry - Merged,
extends-resolved extension registry.
Enums§
- Browsers
Error - CLI browsers subcommand failure.
- Builtin
Domain - Built-in CLI family that owns subcommands (
browsers,extensions). - Emit
Error - Failure serializing stdout or structured stderr JSON at the CLI emit boundary.
- Extension
Error - Structured extension-engine failure.
- Extension
Match - Successful argv match against one extension.
- Load
Error - Failure while loading command input from argv or stdin.
- Near
Miss Kind - Why remainder argv did not match an extension (REQ-0136).
- Pipeline
Error - Pipeline failure after load: stage stderr + exit, or emit-boundary serialize failure.
- Preexec
Failure Kind - Why a preexec subprocess failed.
- Usage
Error Kind - Host-flag / env usage failure kind for structured stderr recovery (RBP-F009).
- Viewer
Spawn Error - Failure locating or launching
wyvern-viewer.
Functions§
- apply_
host_ overrides - Apply extension
host.ui_rootover CLI--ui-rootwhen set (contract §7). - browsers_
usage_ message - Usage text for
wyvern browsers --help/-h. - emit_
extension_ error - Serialize an extension-engine error as stderr JSON.
- emit_
fatal_ internal - Emit static internal stderr JSON and exit with code 8 (REQ-0078).
- emit_
host_ error - Serialize a
wyvern_host::HostErroras stderr JSON (REQ-0073). - emit_
io_ error - Serialize an I/O load error as stderr JSON.
- emit_
near_ miss - Serialize a near-miss as the existing
StderrErrorenvelope. - emit_
parse_ error - Serialize a parse load error as stderr JSON.
- emit_
stdout - Serialize a successful
wyvern_schema::CommandResultfor stdout. - emit_
usage_ error - Serialize
LoadError::Usageas stderr JSON with flag-specific recovery. - emit_
usage_ message - Serialize a usage / unknown-subcommand error as stderr JSON (exit 2).
- emit_
validation_ error - Serialize a validation/state error as stderr JSON.
- load_
command_ input - Load a command
Valuefrom positional args or stdin. - parse_
cli_ args - Split argv into host flags and positionals.
- resolve_
viewer_ bin - Resolve
wyvern-viewervia sibling →CARGO_BIN_EXE→WYVERN_VIEWER_BIN→PATH. - run_
browsers_ command - Run a
browserssubcommand; returns stdout text on success. - run_
from_ loaded - Validate
value, run the host, and return stdout JSON on success. - set_
pipeline_ correlation_ id - Bind the session correlation id for pipeline
tracingevents (binary calls after init). - spawn_
embedded_ viewer - Spawn
wyvern-viewerfordialog_urlwith optional size hints. - usage_
message - Canonical usage text for
--help/-h/helpand invalid argv.