Files
patterm/internal/harness/scenarios/spawn_process_via_palette.json

27 lines
747 B
JSON

{
"name": "spawn_process_via_palette",
"presets": {
"processes": [
{
"name": "ready",
"argv": ["ready-script"]
}
]
},
"scripts": [
{
"name": "ready-script",
"body": "#!/bin/sh\necho READY\nsleep 5\n"
}
],
"steps": [
{ "type": "wait_stable", "timeout_ms": 3000 },
{ "type": "send_chord", "chord": "ctrl-k" },
{ "type": "send_text", "text": "ready" },
{ "type": "send_chord", "chord": "enter" },
{ "type": "wait_text", "contains": "READY", "timeout_ms": 5000 },
{ "type": "assert_mcp", "method": "list_processes", "path": "0.name", "equals": "ready" },
{ "type": "assert_mcp", "method": "list_processes", "path": "0.status", "equals": "running" }
]
}