Skip to main content

Module viewer

Module viewer 

Source
Expand description

viewer tier dispatch. Mirrors objectiveai-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.

Modules§

config
config viewer sub-tier.
generate_secret_signature_pair
viewer generate-secret-signature-pair — emit a fresh random (secret, signature) pair for viewer authentication. Pure local computation; no IO.
kill
viewer kill --global|--state — terminate viewer server(s) by killing the owner(s) of their per-state lock at <dir>/state/<state>/locks key viewer. --state hits the current state; --global fans out across every state concurrently. Idempotent: a count of zero is not an error.
send
viewer send <path> <body> — POST a JSON body to the viewer’s HTTP server and return its (status, body). Bypasses the SDK’s fire-and-forget viewer client because callers want to see the response synchronously.
spawn
viewer spawn — start the objectiveai-viewer Tauri shell in the background.

Functions§

execute