Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/ab58bbb8db93c9554f89d8cfb57373b850639c2e44a6cbed44d87b4268388a4e.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
20 KiB
JSON

{"nodes": [{"id": "$graphify-root$_main_bridge_serial_c", "label": "bridge_serial.c", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L1"}, {"id": "$graphify-root$_main_bridge_serial_get_u32", "label": "get_u32()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L30", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_open_port", "label": "open_port()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L35", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_write_frame_locked", "label": "write_frame_locked()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L57", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/bridge_serial.c"}, {"id": "$graphify-root$_main_bridge_serial_send_frame", "label": "send_frame()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L79", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_handle_frame", "label": "handle_frame()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L87", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_link_task", "label": "link_task()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L119", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_bridge_serial_start", "label": "bridge_serial_start()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L167", "_callable": true}, {"id": "bridge_rx_cb_t", "label": "bridge_rx_cb_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/bridge_serial.c"}, {"id": "$graphify-root$_main_bridge_serial_bridge_serial_send", "label": "bridge_serial_send()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L184", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_bridge_serial_set_channel", "label": "bridge_serial_set_channel()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L199", "_callable": true}, {"id": "$graphify-root$_main_bridge_serial_bridge_serial_status", "label": "bridge_serial_status()", "file_type": "code", "source_file": "main/bridge_serial.c", "source_location": "L207", "_callable": true}], "edges": [{"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L2", "weight": 1.0, "target_file": "$graphify-root$/main/bridge_serial.h"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "errno", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "fcntl", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "termios", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "unistd", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "semphr", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "freertos/semphr.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "bridge_proto", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "bridge_proto.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_get_u32", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_open_port", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L35", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_write_frame_locked", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L57", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_write_frame_locked", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L57", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_send_frame", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L79", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_send_frame", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L79", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_handle_frame", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L87", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_link_task", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L119", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_bridge_serial_start", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L167", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_start", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L167", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_start", "target": "bridge_rx_cb_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L167", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_bridge_serial_send", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L184", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_send", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L184", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_bridge_serial_set_channel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L199", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_set_channel", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L199", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_bridge_serial_c", "target": "$graphify-root$_main_bridge_serial_bridge_serial_status", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L207", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_send_frame", "target": "$graphify-root$_main_bridge_serial_write_frame_locked", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L82", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_handle_frame", "target": "$graphify-root$_main_bridge_serial_get_u32", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L104", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_link_task", "target": "$graphify-root$_main_bridge_serial_open_port", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L128", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_link_task", "target": "$graphify-root$_main_bridge_serial_write_frame_locked", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L132", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_link_task", "target": "$graphify-root$_main_bridge_serial_handle_frame", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L161", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_send", "target": "$graphify-root$_main_bridge_serial_send_frame", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L192", "weight": 1.0}, {"source": "$graphify-root$_main_bridge_serial_bridge_serial_set_channel", "target": "$graphify-root$_main_bridge_serial_send_frame", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/bridge_serial.c", "source_location": "L204", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "tcgetattr", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L42", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "cfmakeraw", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L43", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "cfsetispeed", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L44", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "cfsetospeed", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L45", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "tcsetattr", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L47", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "tcflush", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L49", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "fcntl", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L51", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_open_port", "callee": "fcntl", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L51", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_write_frame_locked", "callee": "bridge_encode", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L63", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_write_frame_locked", "callee": "write", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L66", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_write_frame_locked", "callee": "vTaskDelay", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L68", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_write_frame_locked", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L68", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_send_frame", "callee": "xSemaphoreTake", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L81", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_send_frame", "callee": "xSemaphoreGive", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L83", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_handle_frame", "callee": "s_cb", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L97", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_handle_frame", "callee": "memcpy", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L102", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_handle_frame", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L112", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "memset", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L124", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "xSemaphoreTake", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L127", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "memset", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L131", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L133", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L135", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "xSemaphoreGive", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L138", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "vTaskDelay", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L140", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L140", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "read", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L144", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "vTaskDelay", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L146", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L146", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "xSemaphoreTake", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L150", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "close", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L151", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "xSemaphoreGive", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L154", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L155", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "vTaskDelay", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L156", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L156", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_link_task", "callee": "bridge_decode_feed", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L160", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_start", "callee": "strlen", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L172", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_start", "callee": "snprintf", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L175", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_start", "callee": "xSemaphoreCreateMutex", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L177", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_start", "callee": "xTaskCreate", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L179", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_start", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L180", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_send", "callee": "memcpy", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L190", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_send", "callee": "memcpy", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L191", "receiver": null}, {"caller_nid": "$graphify-root$_main_bridge_serial_bridge_serial_status", "callee": "snprintf", "is_member_call": false, "source_file": "main/bridge_serial.c", "source_location": "L210", "receiver": null}], "_cached_target_files": ["$graphify-root$/main/bridge_serial.h"]}