steer_grpc/client_api/
command.rs1use super::types::{MessageId, RequestId};
2
3#[derive(Debug, Clone)]
4pub enum ClientCommand {
5 SendMessage {
6 content: String,
7 },
8 EditMessage {
9 message_id: MessageId,
10 new_content: String,
11 },
12 ExecuteBashCommand {
13 command: String,
14 },
15 ApproveToolCall {
16 request_id: RequestId,
17 decision: ApprovalDecision,
18 },
19 Cancel,
20 RequestWorkspaceFiles,
21 Shutdown,
22}
23
24#[derive(Debug, Clone, PartialEq, Eq)]
25pub enum ApprovalDecision {
26 Deny,
27 Once,
28 AlwaysTool,
29 AlwaysBashPattern(String),
30}