mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 09:42:53 +00:00
Keep the daemon dependent only on the public runtime contract and helper, while optional runtime implementations remain external command registrations. Workspace setup continues asynchronously through the bound runtime without coupling production packages to an implementation.
101 lines
4.5 KiB
JSON
101 lines
4.5 KiB
JSON
{
|
|
"describeResponse": {
|
|
"protocolVersion": 1,
|
|
"modes": ["pipes", "pty"],
|
|
"reconcile": true
|
|
},
|
|
"lifecycleRequest": {
|
|
"protocolVersion": 1,
|
|
"runtimeInstanceId": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
"input": {
|
|
"workspaceId": "workspace-01",
|
|
"project": {
|
|
"projectId": "project-01",
|
|
"source": {
|
|
"kind": "git",
|
|
"url": "https://example.test/acme/project.git",
|
|
"revision": "main",
|
|
"subdirectory": "packages/app"
|
|
}
|
|
},
|
|
"placement": { "kind": "existing" },
|
|
"purpose": "discovery"
|
|
},
|
|
"options": {}
|
|
},
|
|
"lifecycleResponse": {
|
|
"protocolVersion": 1,
|
|
"type": "state",
|
|
"state": {
|
|
"workspaceId": "workspace-01",
|
|
"lifecycle": "ready"
|
|
},
|
|
"placement": { "cwd": "/workspace" },
|
|
"materializedFreshContent": true
|
|
},
|
|
"pipeSpawnControl": {
|
|
"type": "spawn",
|
|
"protocolVersion": 1,
|
|
"runtimeInstanceId": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
"argv": ["/bin/sh", "-c", "printf hello"],
|
|
"cwd": "packages/app",
|
|
"env": { "PATH": "/usr/bin:/bin" },
|
|
"purpose": { "kind": "workspace-script" },
|
|
"options": {},
|
|
"execId": "exec-pipe-01",
|
|
"stdio": { "kind": "pipes" }
|
|
},
|
|
"ptySpawnControl": {
|
|
"type": "spawn",
|
|
"protocolVersion": 1,
|
|
"runtimeInstanceId": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
"argv": ["/bin/sh", "-c", "printf hello"],
|
|
"cwd": "packages/app",
|
|
"env": { "PATH": "/usr/bin:/bin" },
|
|
"purpose": { "kind": "workspace-script" },
|
|
"options": {},
|
|
"execId": "exec-pty-01",
|
|
"stdio": { "kind": "pty", "rows": 24, "cols": 80, "term": "xterm-256color" }
|
|
},
|
|
"resizeControl": {
|
|
"type": "resize",
|
|
"protocolVersion": 1,
|
|
"id": 1,
|
|
"rows": 40,
|
|
"cols": 120
|
|
},
|
|
"signalControl": {
|
|
"type": "signal",
|
|
"protocolVersion": 1,
|
|
"signal": "SIGTERM"
|
|
},
|
|
"startedEvent": { "type": "started", "protocolVersion": 1 },
|
|
"eofEvent": { "type": "eof", "protocolVersion": 1 },
|
|
"resizedEvent": { "type": "resized", "protocolVersion": 1, "id": 1 },
|
|
"exitEvent": {
|
|
"type": "exit",
|
|
"protocolVersion": 1,
|
|
"code": 0,
|
|
"signal": null
|
|
},
|
|
"errorEvent": {
|
|
"type": "error",
|
|
"protocolVersion": 1,
|
|
"message": "runtime control failed"
|
|
},
|
|
"bytes": {
|
|
"describeResponse": "{\"protocolVersion\":1,\"modes\":[\"pipes\",\"pty\"],\"reconcile\":true}\n",
|
|
"lifecycleRequest": "{\"protocolVersion\":1,\"runtimeInstanceId\":\"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"input\":{\"workspaceId\":\"workspace-01\",\"project\":{\"projectId\":\"project-01\",\"source\":{\"kind\":\"git\",\"url\":\"https://example.test/acme/project.git\",\"revision\":\"main\",\"subdirectory\":\"packages/app\"}},\"placement\":{\"kind\":\"existing\"},\"purpose\":\"discovery\"},\"options\":{}}\n",
|
|
"lifecycleResponse": "{\"type\":\"state\",\"protocolVersion\":1,\"state\":{\"workspaceId\":\"workspace-01\",\"lifecycle\":\"ready\"},\"placement\":{\"cwd\":\"/workspace\"},\"materializedFreshContent\":true}\n",
|
|
"pipeSpawnControl": "{\"type\":\"spawn\",\"protocolVersion\":1,\"runtimeInstanceId\":\"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"argv\":[\"/bin/sh\",\"-c\",\"printf hello\"],\"cwd\":\"packages/app\",\"env\":{\"PATH\":\"/usr/bin:/bin\"},\"purpose\":{\"kind\":\"workspace-script\"},\"options\":{},\"execId\":\"exec-pipe-01\",\"stdio\":{\"kind\":\"pipes\"}}\n",
|
|
"ptySpawnControl": "{\"type\":\"spawn\",\"protocolVersion\":1,\"runtimeInstanceId\":\"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"argv\":[\"/bin/sh\",\"-c\",\"printf hello\"],\"cwd\":\"packages/app\",\"env\":{\"PATH\":\"/usr/bin:/bin\"},\"purpose\":{\"kind\":\"workspace-script\"},\"options\":{},\"execId\":\"exec-pty-01\",\"stdio\":{\"kind\":\"pty\",\"rows\":24,\"cols\":80,\"term\":\"xterm-256color\"}}\n",
|
|
"resizeControl": "{\"type\":\"resize\",\"protocolVersion\":1,\"id\":1,\"rows\":40,\"cols\":120}\n",
|
|
"signalControl": "{\"type\":\"signal\",\"protocolVersion\":1,\"signal\":\"SIGTERM\"}\n",
|
|
"startedEvent": "{\"type\":\"started\",\"protocolVersion\":1}\n",
|
|
"eofEvent": "{\"type\":\"eof\",\"protocolVersion\":1}\n",
|
|
"resizedEvent": "{\"type\":\"resized\",\"protocolVersion\":1,\"id\":1}\n",
|
|
"exitEvent": "{\"type\":\"exit\",\"protocolVersion\":1,\"code\":0,\"signal\":null}\n",
|
|
"errorEvent": "{\"type\":\"error\",\"protocolVersion\":1,\"message\":\"runtime control failed\"}\n"
|
|
}
|
|
}
|