feat: add headless automation protocol and CLI
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
[
|
||||
{
|
||||
"requestId": "init",
|
||||
"command": "initialize",
|
||||
"params": {
|
||||
"protocolVersion": {
|
||||
"major": 1,
|
||||
"minor": 0
|
||||
},
|
||||
"requiredCapabilities": [
|
||||
"advance",
|
||||
"capture",
|
||||
"cancel"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"requestId": "boot",
|
||||
"command": "boot",
|
||||
"params": {
|
||||
"path": "/cartridge"
|
||||
}
|
||||
},
|
||||
{
|
||||
"requestId": "reset",
|
||||
"command": "reset",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "input",
|
||||
"command": "set_input",
|
||||
"params": {
|
||||
"right": true,
|
||||
"touch": true,
|
||||
"touchX": 123,
|
||||
"touchY": 45
|
||||
}
|
||||
},
|
||||
{
|
||||
"requestId": "clear",
|
||||
"command": "clear_input",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "advance",
|
||||
"command": "advance",
|
||||
"params": {
|
||||
"frames": 60
|
||||
}
|
||||
},
|
||||
{
|
||||
"requestId": "capture",
|
||||
"command": "capture",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "get_state",
|
||||
"command": "get_state",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "get_fault",
|
||||
"command": "get_fault",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "shutdown",
|
||||
"command": "shutdown",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"requestId": "cancel",
|
||||
"command": "cancel",
|
||||
"params": {
|
||||
"targetRequestId": "advance"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user