app-server: add streaming command/exec contract and implementation

Define the v2 command/exec contract and wire it through app-server and core in one slice: processId, env overrides, timeout and output-cap controls, streaming notifications, and PTY write/resize/terminate support.

Keep the generated schema, README updates, backend plumbing, and test harness changes together so reviewers can read the API and runtime behavior in the same commit.
This commit is contained in:
Ruslan Nigmatullin
2026-03-05 21:43:17 -08:00
parent 893c5252ce
commit 627a5510a0
41 changed files with 3630 additions and 58 deletions

View File

@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"CommandExecTerminalSize": {
"properties": {
"cols": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"rows": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"cols",
"rows"
],
"type": "object"
}
},
"properties": {
"processId": {
"type": "string"
},
"size": {
"$ref": "#/definitions/CommandExecTerminalSize"
}
},
"required": [
"processId",
"size"
],
"title": "CommandExecResizeParams",
"type": "object"
}