mirror of
https://github.com/openai/codex.git
synced 2026-04-23 22:24:57 +00:00
* Add an ability to stream stdin, stdout, and stderr * Streaming of stdout and stderr has a configurable cap for total amount of transmitted bytes (with an ability to disable it) * Add support for overriding environment variables * Add an ability to terminate running applications (using `command/exec/terminate`) * Add TTY/PTY support, with an ability to resize the terminal (using `command/exec/resize`)
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"CommandExecOutputStream": {
|
|
"description": "Stream label for `command/exec/outputDelta` notifications.",
|
|
"oneOf": [
|
|
{
|
|
"description": "stdout stream. PTY mode multiplexes terminal output here.",
|
|
"enum": [
|
|
"stdout"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "stderr stream.",
|
|
"enum": [
|
|
"stderr"
|
|
],
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"description": "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.",
|
|
"properties": {
|
|
"capReached": {
|
|
"description": "`true` on the final streamed chunk for a stream when `outputBytesCap` truncated later output on that stream.",
|
|
"type": "boolean"
|
|
},
|
|
"deltaBase64": {
|
|
"description": "Base64-encoded output bytes.",
|
|
"type": "string"
|
|
},
|
|
"processId": {
|
|
"description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.",
|
|
"type": "string"
|
|
},
|
|
"stream": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/CommandExecOutputStream"
|
|
}
|
|
],
|
|
"description": "Output stream for this chunk."
|
|
}
|
|
},
|
|
"required": [
|
|
"capReached",
|
|
"deltaBase64",
|
|
"processId",
|
|
"stream"
|
|
],
|
|
"title": "CommandExecOutputDeltaNotification",
|
|
"type": "object"
|
|
} |