{
"title": "cli.plugins.PluginOutput",
"description": "One line of plugin output.\n\nIdentical in shape to [`crate::cli::output::Output`] except:\n\n- [`PluginOutput::Notification`] is a plain `serde_json::Value`\n (no generic `T`, no nesting wrapper). The plugin is responsible\n for not including `\"type\"` as a top-level key in the value,\n which would collide with the discriminator.\n- No `Begin`/`End` markers — plugins don't bracket their stream.\n- Adds [`PluginOutput::Command`] — a request the host should act\n on, identified by a `command` string.",
"anyOf": [
{
"title": "Error",
"type": "object",
"$ref": "cli.output.Error",
"properties": {
"type": {
"type": "string",
"enum": [
"error"
]
}
}
},
{
"title": "Notification",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"notification"
]
}
}
},
{
"title": "Command",
"type": "object",
"properties": {
"command": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"command"
]
}
}
}
]
}