This commit is contained in:
2026-05-12 23:19:12 +09:00
parent b19d9d25f7
commit cde37d516b
21 changed files with 634 additions and 52 deletions

View File

@@ -45,6 +45,10 @@ pub enum StubMsg {
Stderr(Vec<u8>),
Exited { code: Option<i32> },
Pong,
ShellReady { shell_id: u64 },
ShellStdout { shell_id: u64, data: Vec<u8> },
ShellStderr { shell_id: u64, data: Vec<u8> },
ShellExited { shell_id: u64, code: Option<i32> },
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -56,6 +60,10 @@ pub enum BackendStubMsg {
Resize { cols: u16, rows: u16 },
Kill,
Ping,
SpawnShell { shell_id: u64, shell: Option<String>, pty: bool, cols: u16, rows: u16 },
ShellStdin { shell_id: u64, data: Vec<u8> },
ShellResize { shell_id: u64, cols: u16, rows: u16 },
ShellKill { shell_id: u64 },
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -82,6 +90,7 @@ pub enum OpReq {
Attach {
session: String,
connection_id: Option<u64>,
shell_id: Option<u64>,
pty: bool,
cols: u16,
rows: u16,
@@ -93,6 +102,14 @@ pub enum OpReq {
KeysRemove { keys: Vec<String> },
KeysReplace { content: String },
Watch { session: Option<String> },
SpawnShell {
session: String,
connection_id: Option<u64>,
shell: Option<String>,
pty: bool,
cols: u16,
rows: u16,
},
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -108,6 +125,7 @@ pub enum OpResp {
Exited { code: Option<i32> },
Keys(Vec<String>),
WatchStarted,
ShellSpawned { connection_id: u64, shell_id: u64 },
}
#[derive(Debug, Clone, Serialize, Deserialize)]