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

{"nodes": [{"id": "$graphify-root$_led_driver_tools_ota_all_py", "label": "ota_all.py", "file_type": "code", "source_file": "led-driver/tools/ota_all.py", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "label": "local_subnet()", "file_type": "code", "source_file": "led-driver/tools/ota_all.py", "source_location": "L24", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_ota_all_discover", "label": "discover()", "file_type": "code", "source_file": "led-driver/tools/ota_all.py", "source_location": "L35", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_ota_all_main", "label": "main()", "file_type": "code", "source_file": "led-driver/tools/ota_all.py", "source_location": "L47", "_callable": true}, {"id": "$graphify-root$_led_driver_tools_ota_all_rationale_1", "label": "Find every LED driver on a Wi-Fi subnet and update them in parallel. A driver\u2026", "file_type": "rationale", "source_file": "led-driver/tools/ota_all.py", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_tools_ota_all_rationale_25", "label": "First three octets of the address this machine uses to reach the internet.", "file_type": "rationale", "source_file": "led-driver/tools/ota_all.py", "source_location": "L25"}], "edges": [{"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L14", "weight": 1.0, "_python_import_module": "argparse", "_python_import_bindings": [["argparse", "argparse"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "concurrent_futures", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L15", "weight": 1.0, "_python_import_module": "concurrent.futures", "_python_import_bindings": [["concurrent.futures", "cf"]], "_python_import_module_binding": true, "local_alias": "cf"}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L16", "weight": 1.0, "_python_import_module": "os", "_python_import_bindings": [["os", "os"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "socket", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L17", "weight": 1.0, "_python_import_module": "socket", "_python_import_bindings": [["socket", "socket"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L18", "weight": 1.0, "_python_import_module": "sys", "_python_import_bindings": [["sys", "sys"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "$graphify-root$_led_driver_tools_ota_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L21", "weight": 1.0, "_python_import_module": "ota", "_python_import_bindings": [["IMAGE_NAME", "IMAGE_NAME"], ["_default_image", "_default_image"], ["_info", "_info"], ["ota_update", "ota_update"]], "target_file": "$graphify-root$/led-driver/tools/ota.py"}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "$graphify-root$_led_driver_tools_ota_all_discover", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L35", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_py", "target": "$graphify-root$_led_driver_tools_ota_all_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L47", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_main", "target": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L57", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_main", "target": "$graphify-root$_led_driver_tools_ota_all_discover", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L59", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_rationale_1", "target": "$graphify-root$_led_driver_tools_ota_all_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_driver_tools_ota_all_rationale_25", "target": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/tools/ota_all.py", "source_location": "L25", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "socket", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L26", "receiver": "socket", "_python_receiver_shadowed": false, "_python_call_site": [981, 1029]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "connect", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L28", "receiver": "s", "_python_receiver_shadowed": true, "_python_receiver_factory": [981, 1029], "_python_call_site": [1047, 1074]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "getsockname", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L29", "receiver": "s", "_python_receiver_shadowed": true, "_python_receiver_factory": [981, 1029], "_python_call_site": [1127, 1142]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "close", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L31", "receiver": "s", "_python_receiver_shadowed": true, "_python_receiver_factory": [981, 1029], "_python_call_site": [1167, 1176]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "join", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L32", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1188, 1215]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_local_subnet", "callee": "split", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L32", "receiver": "ip", "_python_receiver_shadowed": true, "_python_call_site": [1197, 1210]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "ThreadPoolExecutor", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L38", "receiver": "cf", "_python_receiver_shadowed": false, "_python_call_site": [1389, 1431]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "submit", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L39", "receiver": "pool", "_python_receiver_shadowed": true, "receiver_type": "ThreadPoolExecutor", "_python_call_site": [1460, 1487]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "_info", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L39"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "as_completed", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L40", "receiver": "cf", "_python_receiver_shadowed": false, "_python_call_site": [1526, 1550]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "result", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L41", "receiver": "fut", "_python_receiver_shadowed": true, "_python_call_site": [1571, 1583]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "append", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L43", "receiver": "found", "_python_receiver_shadowed": true, "_python_call_site": [1621, 1655]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "x", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L44"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_discover", "callee": "split", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L44", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1717, 1732]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L48", "receiver": "argparse", "_python_receiver_shadowed": false, "_python_call_site": [1765, 1865]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L49", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [1870, 1973]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L50", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [1978, 2058]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L51", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2063, 2110]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "int", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L51"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L52", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2115, 2202]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "int", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L52"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L53", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2207, 2307]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "int", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L53"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "add_argument", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L54", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2312, 2412]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "parse_args", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L55", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2424, 2439]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L66", "receiver": "info", "_python_receiver_shadowed": true, "_python_call_site": [2816, 2842]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "get", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L66", "receiver": "info", "_python_receiver_shadowed": true, "_python_call_site": [2854, 2876]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "_default_image", "is_member_call": false, "source_file": "led-driver/tools/ota_all.py", "source_location": "L70", "receiver": null, "_python_call_site": [2942, 2958]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "ThreadPoolExecutor", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L77", "receiver": "cf", "_python_receiver_shadowed": false, "_python_call_site": [3224, 3268]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "submit", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L78", "receiver": "pool", "_python_receiver_shadowed": true, "receiver_type": "ThreadPoolExecutor", "_python_call_site": [3297, 3341]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "ota_update", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/tools/ota_all.py", "source_location": "L78"}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "as_completed", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L79", "receiver": "cf", "_python_receiver_shadowed": false, "_python_call_site": [3385, 3409]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "result", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L82", "receiver": "fut", "_python_receiver_shadowed": true, "_python_call_site": [3476, 3488]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "append", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L85", "receiver": "failed", "_python_receiver_shadowed": true, "_python_call_site": [3584, 3603]}, {"caller_nid": "$graphify-root$_led_driver_tools_ota_all_main", "callee": "join", "is_member_call": true, "source_file": "led-driver/tools/ota_all.py", "source_location": "L89", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [3762, 3778]}], "_cached_target_files": ["$graphify-root$/led-driver/tools/ota.py"]}