- 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>
1 line
17 KiB
JSON
1 line
17 KiB
JSON
{"nodes": [{"id": "$graphify-root$_led_simulator_rig_seed_py", "label": "rig_seed.py", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_rig_seed_get", "label": "_get()", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L19", "_callable": true}, {"id": "$graphify-root$_led_simulator_rig_seed_post", "label": "_post()", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L24", "_callable": true}, {"id": "$graphify-root$_led_simulator_rig_seed_controller_url", "label": "controller_url()", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L32", "_callable": true}, {"id": "$graphify-root$_led_simulator_rig_seed_seed", "label": "seed()", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L45", "_callable": true}, {"id": "$graphify-root$_led_simulator_rig_seed_seed_soon", "label": "seed_soon()", "file_type": "code", "source_file": "led-simulator/rig_seed.py", "source_location": "L95", "_callable": true}, {"id": "$graphify-root$_led_simulator_rig_seed_rationale_1", "label": "Give led-controller the simulator's rig layout once its strips have registered.\u2026", "file_type": "rationale", "source_file": "led-simulator/rig_seed.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_rig_seed_rationale_33", "label": "The controller's web API: ``controller.url`` in sim.json, else the bridge peer\u2026", "file_type": "rationale", "source_file": "led-simulator/rig_seed.py", "source_location": "L33"}, {"id": "$graphify-root$_led_simulator_rig_seed_rationale_46", "label": "Wait for the strips to register, then send placements for the unplaced ones.\u2026", "file_type": "rationale", "source_file": "led-simulator/rig_seed.py", "source_location": "L46"}], "edges": [{"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L11", "weight": 1.0, "_python_import_module": "json", "_python_import_bindings": [["json", "json"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "threading", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L12", "weight": 1.0, "_python_import_module": "threading", "_python_import_bindings": [["threading", "threading"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L13", "weight": 1.0, "_python_import_module": "time", "_python_import_bindings": [["time", "time"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "urllib_request", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L14", "weight": 1.0, "_python_import_module": "urllib.request", "_python_import_bindings": [["urllib.request", "urllib"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_layout_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L16", "weight": 1.0, "_python_import_module": "layout", "_python_import_bindings": [["rig_placements", "rig_placements"]], "target_file": "$graphify-root$/led-simulator/layout.py"}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_rig_seed_get", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L19", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_rig_seed_post", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_rig_seed_controller_url", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L32", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_rig_seed_seed", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L45", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_py", "target": "$graphify-root$_led_simulator_rig_seed_seed_soon", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L95", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_controller_url", "target": "$graphify-root$_led_simulator_rig_seed_get", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L38", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_seed", "target": "$graphify-root$_led_simulator_rig_seed_controller_url", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_seed", "target": "$graphify-root$_led_simulator_rig_seed_get", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L69", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_seed", "target": "$graphify-root$_led_simulator_rig_seed_post", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L87", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_seed_soon", "target": "$graphify-root$_led_simulator_rig_seed_seed", "relation": "indirect_call", "context": "argument", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "led-simulator/rig_seed.py", "source_location": "L97", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_rationale_1", "target": "$graphify-root$_led_simulator_rig_seed_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_rationale_33", "target": "$graphify-root$_led_simulator_rig_seed_controller_url", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L33", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rig_seed_rationale_46", "target": "$graphify-root$_led_simulator_rig_seed_seed", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rig_seed.py", "source_location": "L46", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_simulator_rig_seed_get", "callee": "urlopen", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L20", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [629, 673]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_get", "callee": "loads", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L21", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [695, 715]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_get", "callee": "read", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L21", "receiver": "r", "_python_receiver_shadowed": true, "_python_call_site": [706, 714]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "Request", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L25", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [782, 916]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "encode", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L26", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [824, 849]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "dumps", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L26", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [824, 840]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "urlopen", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L28", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [926, 970]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "loads", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L29", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [992, 1012]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_post", "callee": "read", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L29", "receiver": "r", "_python_receiver_shadowed": true, "_python_call_site": [1003, 1011]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L34", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1188, 1228]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L34", "receiver": "cfg", "_python_receiver_shadowed": true, "_python_call_site": [1189, 1210]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "rstrip", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L38", "receiver": "base", "_python_receiver_shadowed": true, "_python_call_site": [1374, 1390]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "rstrip", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L39", "receiver": "base", "_python_receiver_shadowed": true, "_python_call_site": [1434, 1450]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "OSError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L40"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_controller_url", "callee": "ValueError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L40"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L50", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1890, 1944]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L50", "receiver": "cfg", "_python_receiver_shadowed": true, "_python_call_site": [1891, 1912]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "room_placements", "is_member_call": false, "source_file": "led-simulator/rig_seed.py", "source_location": "L59", "receiver": null, "_python_call_site": [2269, 2290]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "lower", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L60", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2309, 2335]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "replace", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L60", "receiver": "m", "_python_receiver_shadowed": true, "_python_call_site": [2309, 2327]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "items", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L60", "receiver": "by_mac", "_python_receiver_shadowed": true, "_python_call_site": [2351, 2365]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "rig_placements", "is_member_call": false, "source_file": "led-simulator/rig_seed.py", "source_location": "L62", "receiver": null, "_python_call_site": [2400, 2429]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "lower", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L63", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2448, 2480]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "replace", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L63", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2448, 2472]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "items", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L63", "receiver": "grid", "_python_receiver_shadowed": true, "_python_call_site": [2496, 2508]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L65", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2556, 2572]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L67", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2606, 2622]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "OSError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L70"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "ValueError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L70"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "sleep", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L74", "receiver": "time", "_python_receiver_shadowed": false, "_python_call_site": [2813, 2826]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rig_seed.py", "source_location": "L78"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L78", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [2923, 2947]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rig_seed.py", "source_location": "L84"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rig_seed.py", "source_location": "L84"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L84", "receiver": "d", "_python_receiver_shadowed": true, "_python_call_site": [3146, 3164]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "values", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L84", "receiver": "devs", "_python_receiver_shadowed": true, "_python_call_site": [3181, 3194]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "OSError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L88"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed", "callee": "ValueError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rig_seed.py", "source_location": "L88"}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed_soon", "callee": "start", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L96", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [3668, 3804]}, {"caller_nid": "$graphify-root$_led_simulator_rig_seed_seed_soon", "callee": "Thread", "is_member_call": true, "source_file": "led-simulator/rig_seed.py", "source_location": "L96", "receiver": "threading", "_python_receiver_shadowed": false, "_python_call_site": [3668, 3796]}], "_cached_target_files": ["$graphify-root$/led-simulator/layout.py"]} |