feat(hooks): add explicit remote hook routing

This commit is contained in:
starr-openai
2026-05-28 20:52:24 -07:00
parent 42c80385cd
commit d156f53111
37 changed files with 719 additions and 116 deletions
+12 -4
View File
@@ -361,13 +361,15 @@ impl ExecServerClient {
pub async fn write(
&self,
process_id: &ProcessId,
chunk: Vec<u8>,
chunk: Option<Vec<u8>>,
close_stdin: bool,
) -> Result<WriteResponse, ExecServerError> {
self.call(
EXEC_WRITE_METHOD,
&WriteParams {
process_id: process_id.clone(),
chunk: chunk.into(),
chunk: chunk.map(Into::into),
close_stdin,
},
)
.await
@@ -720,8 +722,14 @@ impl Session {
}
}
pub(crate) async fn write(&self, chunk: Vec<u8>) -> Result<WriteResponse, ExecServerError> {
self.client.write(&self.process_id, chunk).await
pub(crate) async fn write(
&self,
chunk: Option<Vec<u8>>,
close_stdin: bool,
) -> Result<WriteResponse, ExecServerError> {
self.client
.write(&self.process_id, chunk, close_stdin)
.await
}
pub(crate) async fn terminate(&self) -> Result<(), ExecServerError> {