opencode/packages/core/test/fixture/machine-v3.json
Sebastian 3b38a77c09
feat(core): copy files and forward ports directly between machines (#66457)
Co-authored-by: kommander <335157+kommander@users.noreply.github.com>
2026-11-26 00:09:40 +01:00

141 lines
2.3 KiB
JSON

{
"to_worker": [
{
"type": "start",
"id": "p1",
"argv": ["cat"],
"cwd": "/",
"env": {},
"stdin": true
},
{
"type": "start",
"id": "p2",
"argv": ["true"],
"cwd": "/",
"env": {},
"stdin": false
},
{
"type": "stdin",
"id": "p1",
"req": 1,
"data": "aGk="
},
{
"type": "stdin",
"id": "p1",
"req": 2,
"data": null
},
{
"type": "attach",
"id": "p1",
"from": 1
},
{
"type": "peer-accept",
"req": 3,
"link": "l1",
"key": "O2onvM62pC1io6jQKm8Nc2UyFXcd4kOmOsBIoYtZ2ik"
},
{
"type": "peer-connect",
"req": 4,
"link": "l1",
"key": "O2onvM62pC1io6jQKm8Nc2UyFXcd4kOmOsBIoYtZ2ik"
},
{
"type": "peer-receive",
"req": 5,
"link": "l1",
"token": "t1",
"path": "/srv/data.bin"
},
{
"type": "peer-send",
"req": 6,
"link": "l1",
"token": "t1",
"path": "/home/worker/data.bin"
},
{
"type": "peer-allow",
"req": 7,
"link": "l1",
"token": "t2",
"port": 8000
},
{
"type": "peer-forward",
"req": 8,
"link": "l1",
"token": "t2",
"port": 3000
},
{
"type": "peer-revoke",
"req": 9,
"token": "t2"
},
{
"type": "peer-close",
"req": 10,
"link": "l1"
}
],
"from_worker": [
{
"type": "output",
"id": "p1",
"offset": 0,
"stream": "stdout",
"data": "aGk="
},
{
"type": "output",
"id": "p1",
"offset": 2,
"stream": "stderr",
"data": "ZXJy"
},
{
"type": "stdin",
"id": "p1",
"req": 1,
"ok": true
},
{
"type": "stdin",
"id": "p1",
"req": 2,
"ok": false,
"message": "Broken pipe"
},
{
"type": "peer",
"req": 3,
"ok": true
},
{
"type": "peer",
"req": 5,
"ok": false,
"message": "revoked"
},
{
"type": "peer-closed",
"link": "l1"
},
{
"type": "hello",
"protocol": 3,
"os": "linux",
"arch": "x64",
"home": "/home/worker",
"instance": "i1",
"processes": [],
"links": ["l1"]
}
]
}