Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/04f53a1502e424f5cf1dbcc7dfaf5b90fb35be5f856ea27f5f66eb103a9b2f3d.json
T
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
18 KiB
JSON

{"nodes": [{"id": "$graphify-root$_sim_driver_src_sim_glue_c", "label": "sim_glue.c", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L1"}, {"id": "$graphify-root$_sim_driver_src_sim_glue_sim_clock_set_us", "label": "sim_clock_set_us()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L28", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_timer_get_time", "label": "esp_timer_get_time()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L32", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_log_level_set", "label": "esp_log_level_set()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L52", "_callable": true}, {"id": "esp_log_level_t", "label": "esp_log_level_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/sim_glue.c"}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_log_set_vprintf", "label": "esp_log_set_vprintf()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L58", "_callable": true}, {"id": "vprintf_like_t", "label": "vprintf_like_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/sim_glue.c"}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_log_timestamp", "label": "esp_log_timestamp()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L65", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "label": "esp_log_write()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L70", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_err_to_name", "label": "esp_err_to_name()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L82", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/sim_glue.c"}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_random", "label": "esp_random()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L101", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_fill_random", "label": "esp_fill_random()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L108", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_rom_delay_us", "label": "esp_rom_delay_us()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L121", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_sim_set_mac", "label": "sim_set_mac()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L126", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_read_mac", "label": "esp_read_mac()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L131", "_callable": true}, {"id": "esp_mac_type_t", "label": "esp_mac_type_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/sim-driver/src/sim_glue.c"}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_get_free_heap_size", "label": "esp_get_free_heap_size()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L138", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_get_minimum_free_heap_size", "label": "esp_get_minimum_free_heap_size()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L143", "_callable": true}, {"id": "$graphify-root$_sim_driver_src_sim_glue_esp_restart", "label": "esp_restart()", "file_type": "code", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L148", "_callable": true}], "edges": [{"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "stdarg", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "stdlib", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "unistd", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "emscripten", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_mac", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "esp_mac.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_random", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "esp_random.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_rom_sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "esp_rom_sys.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L15", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "esp_timer", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L16", "weight": 1.0, "metadata": {"raw_include": "esp_timer.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "nvs", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L17", "weight": 1.0, "metadata": {"raw_include": "nvs.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L18", "weight": 1.0, "target_file": "$graphify-root$/sim-driver/src/sim.h"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_sim_clock_set_us", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_timer_get_time", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L32", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_timer_get_time", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L38", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_log_level_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_level_set", "target": "esp_log_level_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L52", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_log_set_vprintf", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L58", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_set_vprintf", "target": "vprintf_like_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L58", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_set_vprintf", "target": "vprintf_like_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L58", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_log_timestamp", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L65", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L70", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "target": "esp_log_level_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L70", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_err_to_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L82", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_err_to_name", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L82", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_random", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L101", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_fill_random", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L108", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_rom_delay_us", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L121", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_sim_set_mac", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L126", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_read_mac", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L131", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_read_mac", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L131", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_read_mac", "target": "esp_mac_type_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L131", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_get_free_heap_size", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L138", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_get_minimum_free_heap_size", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L143", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_c", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_restart", "relation": "contains", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L148", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_timestamp", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_timer_get_time", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L67", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_log_timestamp", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L79", "weight": 1.0}, {"source": "$graphify-root$_sim_driver_src_sim_glue_esp_random", "target": "$graphify-root$_sim_driver_src_sim_glue_esp_fill_random", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "sim-driver/src/sim_glue.c", "source_location": "L104", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_timer_get_time", "callee": "clock_gettime", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L41", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "callee": "va_start", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L76", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "callee": "vsnprintf", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L77", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "callee": "va_end", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L78", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_log_write", "callee": "printf", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L79", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_fill_random", "callee": "getentropy", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L113", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_fill_random", "callee": "rand", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L114", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_rom_delay_us", "callee": "usleep", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L123", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_sim_set_mac", "callee": "memcpy", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L128", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_read_mac", "callee": "memcpy", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L133", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_restart", "callee": "MAIN_THREAD_ASYNC_EM_ASM", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L151", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_restart", "callee": "simRestart", "is_member_call": true, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L152", "receiver": null}, {"caller_nid": "$graphify-root$_sim_driver_src_sim_glue_esp_restart", "callee": "usleep", "is_member_call": false, "source_file": "sim-driver/src/sim_glue.c", "source_location": "L155", "receiver": null}], "_cached_target_files": ["$graphify-root$/sim-driver/src/sim.h"]}