feat: priority system, batch tasks, action feedback, event daemon
- Priority system: GET /api/state/priorities, POST /api/action/priority_global, POST /api/action/priority_type - Batch system: POST /api/action/batch with per-action result tracking - Enhanced action feedback with error codes and AI suggestions: cell_occupied, cell_solid, cell_occupied_by_dupe, material_shortage, etc. - Event stream: GET /api/state/events?since=&limit= for incremental polling - Event daemon: scripts/event_daemon.py continuously polls events, classifies by severity, auto-triggers analysis on critical events - Games state now reports suffocating/starving/stressed counts - Cell data includes isDiggable and isSafeForDupe flags - Added 'events', 'queue', 'batch', 'priority_global', 'priority_type' CLI commands - Added sample batch plan file
This commit is contained in:
40
docs/batch_example.json
Normal file
40
docs/batch_example.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "Build SPOM - Step 1: Dig and Electrolyzer",
|
||||
"actions": [
|
||||
{
|
||||
"type": "dig",
|
||||
"x": 42,
|
||||
"y": 40,
|
||||
"width": 8,
|
||||
"height": 6
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"buildingId": "Electrolyzer",
|
||||
"x": 45,
|
||||
"y": 42
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"buildingId": "GasPump",
|
||||
"x": 43,
|
||||
"y": 42
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"buildingId": "HydrogenGenerator",
|
||||
"x": 45,
|
||||
"y": 40
|
||||
},
|
||||
{
|
||||
"type": "wait",
|
||||
"delayMs": 100
|
||||
},
|
||||
{
|
||||
"type": "priority",
|
||||
"x": 45,
|
||||
"y": 42,
|
||||
"priority": 9
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user