mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
fix: add ts number annotations for app-server v2 types (#7492)
These will be more ergonomic to work with in Typescript.
This commit is contained in:
@@ -5,7 +5,9 @@ impl From<v1::ExecOneOffCommandParams> for v2::CommandExecParams {
|
||||
fn from(value: v1::ExecOneOffCommandParams) -> Self {
|
||||
Self {
|
||||
command: value.command,
|
||||
timeout_ms: value.timeout_ms,
|
||||
timeout_ms: value
|
||||
.timeout_ms
|
||||
.map(|timeout| i64::try_from(timeout).unwrap_or(60_000)),
|
||||
cwd: value.cwd,
|
||||
sandbox_policy: value.sandbox_policy.map(std::convert::Into::into),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user