byob-protocol 0.3.3

Client <-> engine messages shared by the desktop UI, web UI and server. Must compile to wasm32 (L1)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
{"type": "card", "key": "root", "title": "Weather plugin", "children": [
  {"type": "markdown", "text": "Fetches forecasts from **open-meteo**. Changes apply on the next turn."},
  {"type": "row", "children": [{"type": "text", "text": "City"}, {"type": "input", "name": "city", "value": "Lisbon", "placeholder": "City name", "submit": "save"}]},
  {"type": "row", "children": [{"type": "text", "text": "Units"}, {"type": "select", "name": "units", "options": ["metric", "imperial"], "value": "metric"}]},
  {"type": "toggle", "name": "alerts", "label": "Show severe-weather alerts", "value": true},
  {"type": "separator"},
  {"type": "image", "media": "plots/forecast.png", "alt": "Forecast plot", "width": 240, "height": 80},
  {"type": "row", "children": [
    {"type": "button", "label": "Save", "action": "save", "primary": true},
    {"type": "chip", "key": "saved", "text": "saved", "tone": "success"},
    {"type": "chip", "text": "beta", "tone": "warning"},
    {"type": "chip", "text": "v1.2", "tone": "dim"}]}]}