mirror of
https://github.com/openai/codex.git
synced 2026-05-03 19:06:58 +00:00
31 lines
663 B
TypeScript
31 lines
663 B
TypeScript
export enum SandboxType {
|
|
NONE = "none",
|
|
MACOS_SEATBELT = "macos.seatbelt",
|
|
LINUX_LANDLOCK = "linux.landlock",
|
|
}
|
|
|
|
export type ExecInput = {
|
|
cmd: Array<string>;
|
|
workdir: string | undefined;
|
|
timeoutInMillis: number | undefined;
|
|
};
|
|
|
|
/**
|
|
* Result of executing a command. Caller is responsible for checking `code` to
|
|
* determine whether the command was successful.
|
|
*/
|
|
export type ExecResult = {
|
|
stdout: string;
|
|
stderr: string;
|
|
exitCode: number;
|
|
};
|
|
|
|
/**
|
|
* Value to use with the `metadata` field of a `ResponseItem` whose type is
|
|
* `function_call_output`.
|
|
*/
|
|
export type ExecOutputMetadata = {
|
|
exit_code: number;
|
|
duration_seconds: number;
|
|
};
|