Skip to main content

OinoCommand

Enum OinoCommand 

Source
pub enum OinoCommand {
Show 37 variants Hello { client: ClientInfo, ui: Option<JsonValue>, protocol: u32, }, UiSnapshot, UiVisible { entry_id: String, visible: bool, frontend: Option<String>, }, UiResync { scope: Option<String>, rev: u64, }, NavigateTree { target_id: String, options: NavigateTreeOptions, }, SetLabel { entry_id: String, label: Option<String>, }, ImportJsonl { path: String, }, ExportJsonl { output_path: Option<String>, }, GetContextUsage, GetCompletions { text: String, cursor: usize, }, UiAction { panel_id: String, action_id: String, value: Option<JsonValue>, values: Option<JsonValue>, path: Option<JsonValue>, source: Option<String>, }, EditorEvent(EditorEvent), InvokeShortcut { shortcut_id: String, }, GetShortcuts, GetSettingsSchema, GetExtensionSettings { namespace: String, scope: SettingsLayer, }, SetExtensionSetting { namespace: String, key: String, value: Option<JsonValue>, scope: SettingsScope, }, UnsetExtensionSetting { namespace: String, key: String, scope: SettingsScope, }, GetSettings { key: Option<String>, }, SetSetting { key: String, value: Option<JsonValue>, scope: SettingsScope, }, ServiceCall { target: Option<String>, name: String, payload: JsonValue, }, AuthProviders, Login { provider: String, }, Logout { provider: String, }, SetApiKey { provider: String, key: String, }, Topics { subscribe: Vec<String>, unsubscribe: Vec<String>, }, BusGet { topic: String, }, Agents { follow: Option<bool>, }, AgentMessages { agent_id: String, }, AgentAbort { agent_id: String, }, QueueEdit(QueueEdit), Checkpoints, Rewind { entry_id: String, files: bool, conversation: bool, }, RunningBash, Extensions, Render { target: String, key: String, entry_id: Option<String>, turn_entry_id: Option<String>, turn_index: Option<u64>, running: bool, density: Option<String>, expanded: bool, width: Option<String>, data: JsonValue, }, SetExtensionEnabled { id: String, enabled: bool, },
}
Expand description

Oino RPC extensions (modes.md §4) implemented by this server.

Variants§

§

Hello

Opt into Oino events and UI methods.

Fields

§client: ClientInfo

Client identity.

§ui: Option<JsonValue>

UI capabilities (ui-protocol §10).

§protocol: u32

Protocol version (1).

§

UiSnapshot

The v2 registry snapshot (UiSnapshot, §9.2) plus the v1 replay list while the TUI renderer (WP-U4) and oino-view (WP-U5) still read requests.

§

UiVisible

_oino/ui_visible (§6.5): a frontend reports an entry visible or hidden; core aggregates over frontends and sends $show/$hide to the owner.

Fields

§entry_id: String

Entry id.

§visible: bool

Visible in this frontend?

§frontend: Option<String>

Frontend identity used for the aggregation (defaults to the RPC client).

§

UiResync

_oino/ui_resync (§9.2/§9.3): the frontend saw a rev gap (or failed an op) and wants a fresh snapshot.

Fields

§scope: Option<String>

Registry scope (session when absent).

§rev: u64

The last revision the frontend applied.

§

NavigateTree

Navigates the entry tree.

Fields

§target_id: String

Target entry.

§options: NavigateTreeOptions

Options.

§

SetLabel

Set or clear an entry label.

Fields

§entry_id: String

Entry id.

§label: Option<String>

Label (absent clears).

§

ImportJsonl

Import a JSONL session and switch to it.

Fields

§path: String

File to import.

§

ExportJsonl

Export the branch as JSONL.

Fields

§output_path: Option<String>

Output file.

§

GetContextUsage

Context window usage.

§

GetCompletions

Merged completions at the cursor (ui-protocol §7.3) → {groups}.

Fields

§text: String

Composer text.

§cursor: usize

Cursor (character offset into text).

§

UiAction

Panel button / list / input action (ui-protocol §4.6) for the entry’s owner.

Fields

§panel_id: String

Entry id (field name kept from v1).

§action_id: String

Action id.

§value: Option<JsonValue>

Item id, input text, bool or selected value.

§values: Option<JsonValue>

Current values of every keyed Input/Toggle/Select (§4.6).

§path: Option<JsonValue>

Path of the node that fired the action (§4.6).

§source: Option<String>

tui | app | rpc (§4.6).

§

EditorEvent(EditorEvent)

Composer intent (ui-protocol §7.2) → {consumed}.

§

InvokeShortcut

Run an extension shortcut (ui-protocol §8). The field is shortcutId because id is the RPC correlation id.

Fields

§shortcut_id: String

Shortcut action id.

§

GetShortcuts

Extension shortcuts → {shortcuts: [{id, defaultKeys, description, extensionId}]}.

§

GetSettingsSchema

Extension settings schemas → {namespaces} (ui-protocol §6.6).

§

GetExtensionSettings

One namespace’s values (secrets masked) → {values}.

Fields

§namespace: String

Namespace.

§scope: SettingsLayer

effective (default) | global | project.

§

SetExtensionSetting

Write one extension setting.

Fields

§namespace: String

Namespace.

§key: String

Dot-path key.

§value: Option<JsonValue>

Value (absent or null deletes).

§scope: SettingsScope

Target file.

§

UnsetExtensionSetting

Delete one extension setting (“use default”).

Fields

§namespace: String

Namespace.

§key: String

Dot-path key.

§scope: SettingsScope

Target file.

§

GetSettings

Core settings (merged; key = dot path) → {settings} or {value}.

Fields

§key: Option<String>

Dot path of one value.

§

SetSetting

Write one core setting (frontend keys included).

Fields

§key: String

Dot path.

§value: Option<JsonValue>

Value (absent or null deletes).

§scope: SettingsScope

Target file.

§

ServiceCall

Call an extension service as the frontend → the service’s result.

Fields

§target: Option<String>

Serving extension (first server of name when absent).

§name: String

Service name.

§payload: JsonValue

Request payload.

§

AuthProviders

Providers with sign-in support and credential state → {providers}.

§

Login

Run a provider’s OAuth sign-in (dialogs through the extension UI protocol).

Fields

§provider: String

Provider id.

§

Logout

Remove a provider’s stored credential.

Fields

§provider: String

Provider id.

§

SetApiKey

Store an API key in auth.json.

Fields

§provider: String

Provider id.

§key: String

Key.

§

Topics

Sticky topic feed: changes the subscription → {topics: [TopicValue], patterns}; matching publishes then arrive as topic events.

Fields

§subscribe: Vec<String>

Patterns to add (exact, prefix*, *).

§unsubscribe: Vec<String>

Patterns to remove.

§

BusGet

Last sticky value of one topic → {data | null, publisher?}.

Fields

§topic: String

Topic.

§

Agents

Nested agents of the session tree → {agents: [AgentInfo], follow}; follow turns live agent_event forwarding on or off.

Fields

§follow: Option<bool>

Forward child events.

§

AgentMessages

Transcript of one nested agent → {messages}.

Fields

§agent_id: String

Agent id.

§

AgentAbort

Aborts the current run of one nested agent.

Fields

§agent_id: String

Agent id.

§

QueueEdit(QueueEdit)

One single-item queue edit ({op: remove|edit|move|sendNow, queue, …}).

§

Checkpoints

File checkpoints → {checkpoints: [Checkpoint]}.

§

Rewind

Rewind to before a user message: restore files and/or fork the conversation → RewindResult.

Fields

§entry_id: String

User message entry.

§files: bool

Restore the files changed since (default true).

§conversation: bool

Fork the conversation before the message (default true).

§

RunningBash

Running foreground bash calls → {calls: [RunningBash]}.

§

Extensions

Extensions → {extensions: [ExtensionInfo]}.

§

Render

Transcript row render (ui-protocol §6.4) → {node | null} from the owner of the render spec for target/key (guest.render; built-in tool rows too).

Fields

§target: String

customMessage | customEntry | tool | turnFooter (§6.7).

§key: String

Custom type, tool name or turn-footer renderer key.

§entry_id: Option<String>

Entry or tool-call id.

§turn_entry_id: Option<String>

Turn id of a turnFooter request (the user message entry, §6.7).

§turn_index: Option<u64>

Zero-based turn index.

§running: bool

Whether the turn is still running (§6.7).

§density: Option<String>

simple | regular | advanced.

§expanded: bool

Expanded row.

§width: Option<String>

narrow | normal | wide.

§data: JsonValue

Row payload.

§

SetExtensionEnabled

Enable or disable an extension (disabledExtensions; applies to new sessions).

Fields

§id: String

Extension id.

§enabled: bool

Enabled.

Implementations§

Source§

impl OinoCommand

Source

pub const fn kind(&self) -> &'static str

The wire type.

Trait Implementations§

Source§

impl Clone for OinoCommand

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OinoCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OinoCommand

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<OinoCommand> for RpcCommand

Source§

fn from(command: OinoCommand) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for OinoCommand

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for OinoCommand

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OinoCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more