mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
feat: add one off commands to app-server v2 (#7452)
This commit is contained in:
13
codex-rs/app-server-protocol/src/protocol/mappers.rs
Normal file
13
codex-rs/app-server-protocol/src/protocol/mappers.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use crate::protocol::v1;
|
||||
use crate::protocol::v2;
|
||||
|
||||
impl From<v1::ExecOneOffCommandParams> for v2::CommandExecParams {
|
||||
fn from(value: v1::ExecOneOffCommandParams) -> Self {
|
||||
Self {
|
||||
command: value.command,
|
||||
timeout_ms: value.timeout_ms,
|
||||
cwd: value.cwd,
|
||||
sandbox_policy: value.sandbox_policy.map(std::convert::Into::into),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user