objectiveai_sdk/cli/command/ok.rs
1/// Success-only response shape. Wire form is the bare string `"Ok"` —
2/// a single-variant enum gives us a typed sentinel that serializes and
3/// deserializes through serde as the static string. Used as `Response`
4/// on every cli leaf whose only success signal is "it worked."
5#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize, schemars::JsonSchema)]
6#[schemars(rename = "cli.command.Ok")]
7pub enum Ok {
8 Ok,
9}
10
11#[cfg(feature = "mcp")]
12impl super::CommandResponse for Ok {
13 fn into_mcp(self) -> super::McpResponseItem {
14 super::McpResponseItem::JSONL(serde_json::to_value(self).unwrap())
15 }
16}