Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/a2c1cf8a461a7fe4b5f2682ea69bab0c54787614fbd3f0176b7ec912c0f96af5.json
jimmyandClaude Opus 5.5 581b751904 feat: browser simulator served by the controller, desktop build, browser bridge
- led-simulator: the rig runs the C++ led-driver as WebAssembly (sim-driver/),
  one single-threaded worker per bar, no cross-origin isolation needed. Rooms
  (one JSON per room) with an on-page editor, and a pattern gallery. The
  Python server, Pyodide boot and ring buffer are removed.
- sim-controller sim_rig.c: serves /sim/ from an embedded pack, the page's
  WebSocket and the rooms/flash API. The desktop build embeds it too.
- bridge.c: a "browser" bridge kind that carries ESP-NOW frames to the page;
  devices announced through it are marked sim.
- UI: Simulator in the Menu, split view with resize and pop-out, swipe
  between controller and rig on phones; SIM/REAL badges in Devices.
- Fades: preset pushes and Wi-Fi driver bodies always carry fade and
  beat_time, so "off" no longer inherits an earlier fade.
- Also the sequences-v2 work in progress: desktop port, bridge firmware,
  serial bridge, Wi-Fi drivers, sequence timeline, audio and API changes.
- led-driver: ESP-NOW link, beat sync, control messages, sim hooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:32:46 +13:00

1 line
12 KiB
JSON

{"nodes": [{"id": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "label": "espnow_sim.cpp", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L1"}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_init", "label": "esp_now_init()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L18", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/espnow_sim.cpp"}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_deinit", "label": "esp_now_deinit()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L24", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_register_recv_cb", "label": "esp_now_register_recv_cb()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L31", "_callable": true}, {"id": "esp_now_recv_cb_t", "label": "esp_now_recv_cb_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/espnow_sim.cpp"}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_add_peer", "label": "esp_now_add_peer()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L37", "_callable": true}, {"id": "esp_now_peer_info_t", "label": "esp_now_peer_info_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/espnow_sim.cpp"}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_is_peer_exist", "label": "esp_now_is_peer_exist()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L43", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "label": "esp_now_send()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L49", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_esp_wifi_get_channel", "label": "esp_wifi_get_channel()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L64", "_callable": true}, {"id": "wifi_second_chan_t", "label": "wifi_second_chan_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/espnow_sim.cpp"}, {"id": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "label": "sim_rx()", "file_type": "code", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L74", "_callable": true}, {"id": "emscripten_keepalive", "label": "EMSCRIPTEN_KEEPALIVE", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/espnow_sim.cpp"}], "edges": [{"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "cstdlib", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "cstring", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "emscripten", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "esp_mac", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_mac.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "esp_now", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_now.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "esp_wifi", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_wifi.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "settings", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "settings.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_init", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L18", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_init", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L18", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_deinit", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_deinit", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L24", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_register_recv_cb", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_register_recv_cb", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L31", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_register_recv_cb", "target": "esp_now_recv_cb_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L31", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_add_peer", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_add_peer", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L37", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_add_peer", "target": "esp_now_peer_info_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L37", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_is_peer_exist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L43", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L49", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L49", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_esp_wifi_get_channel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_wifi_get_channel", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L64", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_esp_wifi_get_channel", "target": "wifi_second_chan_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L64", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_cpp", "target": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L74", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L74", "weight": 1.0, "context": "return_type"}], "raw_calls": [{"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "malloc", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L53", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "memcpy", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L55", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "memcpy", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L56", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "MAIN_THREAD_ASYNC_EM_ASM", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L57", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "simTx", "is_member_call": true, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L58", "receiver": "Module", "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "slice", "is_member_call": true, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L58", "receiver": "HEAPU8", "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_now_send", "callee": "_free", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L59", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_esp_wifi_get_channel", "callee": "settings_load_net", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L67", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "callee": "memcpy", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L78", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "callee": "esp_read_mac", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L79", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_sim_driver_src_espnow_sim_sim_rx", "callee": "s_cb", "is_member_call": false, "source_file": "sim-driver/src/espnow_sim.cpp", "source_location": "L81", "receiver": null, "lang": "cpp"}], "parse_errors": {"first_error_line": 74, "multiline_error": false}}