vibe coded

This commit is contained in:
root
2025-09-13 03:23:19 +00:00
parent 3d4acbaea0
commit 03e16b9403
8 changed files with 242 additions and 20 deletions

View File

@@ -460,6 +460,8 @@ pub enum EventMsg {
McpToolCallEnd(McpToolCallEndEvent),
UnifiedExecCall(UnifiedExecCallEvent),
WebSearchBegin(WebSearchBeginEvent),
WebSearchEnd(WebSearchEndEvent),
@@ -821,6 +823,22 @@ impl McpToolCallEndEvent {
}
}
#[derive(Debug, Clone, Deserialize, Serialize, TS)]
pub struct UnifiedExecCallEvent {
/// Identifier for the corresponding `FunctionCall` from the model.
pub call_id: String,
/// Session identifier requested by the model when invoking the tool.
pub requested_session_id: Option<String>,
/// Session identifier returned by the tool after handling the request.
pub session_id: Option<String>,
/// Input chunks provided to the tool. For a new session, this represents the command line.
pub input_chunks: Vec<String>,
/// Aggregated output captured from the subprocess or an error message when the tool failed.
pub output: String,
/// Whether the tool invocation succeeded.
pub success: bool,
}
#[derive(Debug, Clone, Deserialize, Serialize, TS)]
pub struct WebSearchBeginEvent {
pub call_id: String,