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

{"nodes": [{"id": "$graphify-root$_tools_sim_demo_py", "label": "sim_demo.py", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L1"}, {"id": "$graphify-root$_tools_sim_demo_api", "label": "Api", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L26", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_tools_sim_demo_api_init", "label": ".__init__()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L27", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_api_call", "label": ".__call__()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L31", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_new_id", "label": "new_id()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L38", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_rig_bars", "label": "rig_bars()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L44", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_main", "label": "main()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L50", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_main_group", "label": "group()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L73", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_main_preset", "label": "preset()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L82", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_main_sequence", "label": "sequence()", "file_type": "code", "source_file": "tools/sim_demo.py", "source_location": "L110", "_callable": true}, {"id": "$graphify-root$_tools_sim_demo_rationale_2", "label": "Load demo sequences for the simulated bridge rig (or any 2-column rig) into\u2026", "file_type": "rationale", "source_file": "tools/sim_demo.py", "source_location": "L2"}, {"id": "$graphify-root$_tools_sim_demo_rationale_45", "label": "[(mac, row, col)] from the simulator's strips.", "file_type": "rationale", "source_file": "tools/sim_demo.py", "source_location": "L45"}], "edges": [{"source": "$graphify-root$_tools_sim_demo_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L18", "weight": 1.0, "_python_import_module": "argparse", "_python_import_bindings": [["argparse", "argparse"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L19", "weight": 1.0, "_python_import_module": "sys", "_python_import_bindings": [["sys", "sys"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "requests", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L21", "weight": 1.0, "_python_import_module": "requests", "_python_import_bindings": [["requests", "requests"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "$graphify-root$_tools_sim_demo_api", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L26", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_api", "target": "$graphify-root$_tools_sim_demo_api_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L27", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_api", "target": "$graphify-root$_tools_sim_demo_api_call", "relation": "method", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "$graphify-root$_tools_sim_demo_new_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L38", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "$graphify-root$_tools_sim_demo_rig_bars", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L44", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_py", "target": "$graphify-root$_tools_sim_demo_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L50", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_group", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L73", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_preset", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L82", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_sequence", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L110", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_api", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L55", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_rig_bars", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L56", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_new_id", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L67", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_group", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_preset", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L89", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main", "target": "$graphify-root$_tools_sim_demo_main_sequence", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main_group", "target": "$graphify-root$_tools_sim_demo_new_id", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L74", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main_preset", "target": "$graphify-root$_tools_sim_demo_new_id", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L86", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_main_sequence", "target": "$graphify-root$_tools_sim_demo_new_id", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L112", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_rationale_2", "target": "$graphify-root$_tools_sim_demo_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_tools_sim_demo_rationale_45", "target": "$graphify-root$_tools_sim_demo_rig_bars", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/sim_demo.py", "source_location": "L45", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_tools_sim_demo_api_init", "callee": "rstrip", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L28", "receiver": "base", "_python_receiver_shadowed": true, "_python_call_site": [1053, 1069]}, {"caller_nid": "$graphify-root$_tools_sim_demo_api_init", "callee": "Session", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L29", "receiver": "requests", "_python_receiver_shadowed": false, "_python_call_site": [1087, 1105]}, {"caller_nid": "$graphify-root$_tools_sim_demo_api_call", "callee": "request", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L32", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1183, 1246]}, {"caller_nid": "$graphify-root$_tools_sim_demo_api_call", "callee": "exit", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L34", "receiver": "sys", "_python_receiver_shadowed": false, "_python_call_site": [1295, 1355]}, {"caller_nid": "$graphify-root$_tools_sim_demo_api_call", "callee": "json", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L35", "receiver": "r", "_python_receiver_shadowed": true, "_python_receiver_factory": [1183, 1246], "_python_call_site": [1371, 1379]}, {"caller_nid": "$graphify-root$_tools_sim_demo_new_id", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/sim_demo.py", "source_location": "L39"}, {"caller_nid": "$graphify-root$_tools_sim_demo_new_id", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/sim_demo.py", "source_location": "L39"}, {"caller_nid": "$graphify-root$_tools_sim_demo_rig_bars", "callee": "json", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L46", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1666, 1733]}, {"caller_nid": "$graphify-root$_tools_sim_demo_rig_bars", "callee": "get", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L46", "receiver": "requests", "_python_receiver_shadowed": false, "_python_call_site": [1666, 1726]}, {"caller_nid": "$graphify-root$_tools_sim_demo_rig_bars", "callee": "rstrip", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L46", "receiver": "sim_url", "_python_receiver_shadowed": true, "_python_call_site": [1679, 1698]}, {"caller_nid": "$graphify-root$_tools_sim_demo_rig_bars", "callee": "replace", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L47", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1747, 1772]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L51", "receiver": "argparse", "_python_receiver_shadowed": false, "_python_call_site": [1852, 1912]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "splitlines", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L51", "receiver": "__doc__", "_python_receiver_shadowed": true, "_python_call_site": [1888, 1908]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "add_argument", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L52", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [1917, 2020]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "add_argument", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L53", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2025, 2136]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "parse_args", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L54", "receiver": "ap", "_python_receiver_shadowed": true, "receiver_type": "ArgumentParser", "_python_call_site": [2145, 2160]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "startswith", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L55", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2185, 2210]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "items", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L61", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2426, 2472]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "get", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L61", "receiver": "profiles", "_python_receiver_shadowed": true, "_python_call_site": [2427, 2451]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/sim_demo.py", "source_location": "L62"}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "get", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L62", "receiver": "p", "_python_receiver_shadowed": true, "_python_call_site": [2509, 2522]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "items", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L63", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2561, 2590]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/sim_demo.py", "source_location": "L64"}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "get", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L64", "receiver": "g", "_python_receiver_shadowed": true, "_python_call_site": [2635, 2654]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "PROFILE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/sim_demo.py", "source_location": "L67"}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "get", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L70", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2982, 3024]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "values", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L158", "receiver": "seqs", "_python_receiver_shadowed": true, "_python_call_site": [8124, 8137]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "values", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L158", "receiver": "oneshots", "_python_receiver_shadowed": true, "_python_call_site": [8146, 8163]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "join", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L163", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [8421, 8436]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main", "callee": "join", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L163", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [8468, 8487]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main_group", "callee": "api", "is_member_call": false, "source_file": "tools/sim_demo.py", "source_location": "L74", "receiver": null, "_python_call_site": [3115, 3194]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main_preset", "callee": "update", "is_member_call": true, "source_file": "tools/sim_demo.py", "source_location": "L85", "receiver": "body", "_python_receiver_shadowed": true, "_python_call_site": [3701, 3716]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main_preset", "callee": "api", "is_member_call": false, "source_file": "tools/sim_demo.py", "source_location": "L86", "receiver": null, "_python_call_site": [3739, 3768]}, {"caller_nid": "$graphify-root$_tools_sim_demo_main_sequence", "callee": "api", "is_member_call": false, "source_file": "tools/sim_demo.py", "source_location": "L112", "receiver": null, "_python_call_site": [5566, 5597]}]}