Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/2ecce019a4d27a4bb35e0cf44aad102dcd9e7954b6fae50ddc9b1b5b1e083ba7.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$_led_tool_http_device_py", "label": "http_device.py", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L1"}, {"id": "$graphify-root$_led_tool_http_device_httpdevice", "label": "HttpDevice", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L19", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_init", "label": ".__init__()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L20", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_open", "label": ".open()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L25", "_py_return_type": "HttpDevice", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_close", "label": ".close()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L28", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_enter", "label": ".__enter__()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L31", "_py_return_type": "HttpDevice", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_exit", "label": ".__exit__()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L34", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "label": ".call_raw()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L37", "_callable": true}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-tool/http_device.py"}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_call", "label": ".call()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L64", "_py_return_type": "Any", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_get", "label": ".get()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L72", "_py_return_type": "Any", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_post", "label": ".post()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L75", "_py_return_type": "Any", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_reboot", "label": ".reboot()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L78", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_httpdevice_follow", "label": ".follow()", "file_type": "code", "source_file": "led-tool/http_device.py", "source_location": "L81", "_callable": true}, {"id": "$graphify-root$_led_tool_http_device_rationale_1", "label": "Wi-Fi connection to the ESP-IDF led-driver. The driver serves the same JSON API\u2026", "file_type": "rationale", "source_file": "led-tool/http_device.py", "source_location": "L1"}, {"id": "$graphify-root$_led_tool_http_device_rationale_39", "label": "Send one request; return (status, parsed body). Does not raise on an error\u2026", "file_type": "rationale", "source_file": "led-tool/http_device.py", "source_location": "L39"}, {"id": "$graphify-root$_led_tool_http_device_rationale_65", "label": "Send one request; return the parsed body. Raises IdfError on status >= 400.", "file_type": "rationale", "source_file": "led-tool/http_device.py", "source_location": "L65"}], "edges": [{"source": "$graphify-root$_led_tool_http_device_py", "target": "http_client", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L11", "weight": 1.0, "_python_import_module": "http.client", "_python_import_bindings": [["http.client", "http"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_tool_http_device_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L12", "weight": 1.0, "_python_import_module": "json", "_python_import_bindings": [["json", "json"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_tool_http_device_py", "target": "socket", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L13", "weight": 1.0, "_python_import_module": "socket", "_python_import_bindings": [["socket", "socket"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_tool_http_device_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L14", "weight": 1.0, "_python_import_module": "typing", "_python_import_bindings": [["Any", "Any"], ["Optional", "Optional"], ["Tuple", "Tuple"]]}, {"source": "$graphify-root$_led_tool_http_device_py", "target": "$graphify-root$_led_tool_idf_device_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L16", "weight": 1.0, "_python_import_module": "idf_device", "_python_import_bindings": [["IdfError", "IdfError"]], "target_file": "$graphify-root$/led-tool/idf_device.py"}, {"source": "$graphify-root$_led_tool_http_device_py", "target": "$graphify-root$_led_tool_http_device_httpdevice", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L19", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L20", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_open", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L25", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_close", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_enter", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_exit", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L34", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "target": "any", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "target": "any", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_call", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_call", "target": "any", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_call", "target": "any", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_get", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L72", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_get", "target": "any", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L72", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_post", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_post", "target": "any", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_post", "target": "any", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_reboot", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L78", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice", "target": "$graphify-root$_led_tool_http_device_httpdevice_follow", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L81", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_call", "target": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L66", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_get", "target": "$graphify-root$_led_tool_http_device_httpdevice_call", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L73", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_httpdevice_post", "target": "$graphify-root$_led_tool_http_device_httpdevice_call", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_rationale_1", "target": "$graphify-root$_led_tool_http_device_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_rationale_39", "target": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L39", "weight": 1.0}, {"source": "$graphify-root$_led_tool_http_device_rationale_65", "target": "$graphify-root$_led_tool_http_device_httpdevice_call", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-tool/http_device.py", "source_location": "L65", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "IdfError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L41", "receiver": null, "_python_call_site": [1210, 1282]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "HTTPConnection", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L42", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1298, 1379]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "encode", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L46", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1469, 1517]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "dumps", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L46", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [1469, 1508]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "request", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L49", "receiver": "conn", "_python_receiver_shadowed": true, "receiver_type": "HTTPConnection", "_python_call_site": [1600, 1654]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "getresponse", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L50", "receiver": "conn", "_python_receiver_shadowed": true, "receiver_type": "HTTPConnection", "_python_call_site": [1671, 1689]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "decode", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L51", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1709, 1744]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "read", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L51", "receiver": "r", "_python_receiver_shadowed": true, "_python_receiver_factory": [1671, 1689], "_python_call_site": [1709, 1717]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "TimeoutError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L53", "receiver": null, "_python_call_site": [1799, 1860]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "TimeoutError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L55", "receiver": null, "_python_call_site": [1915, 1961]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "close", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L57", "receiver": "conn", "_python_receiver_shadowed": true, "receiver_type": "HTTPConnection", "_python_call_site": [1998, 2010]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call_raw", "callee": "loads", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L59", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [2045, 2061]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call", "callee": "get", "is_member_call": true, "source_file": "led-tool/http_device.py", "source_location": "L68", "receiver": "parsed", "_python_receiver_shadowed": true, "_python_call_site": [2438, 2457]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-tool/http_device.py", "source_location": "L68"}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_call", "callee": "IdfError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L69", "receiver": null, "_python_call_site": [2514, 2550]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_reboot", "callee": "IdfError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L79", "receiver": null, "_python_call_site": [2813, 2888]}, {"caller_nid": "$graphify-root$_led_tool_http_device_httpdevice_follow", "callee": "IdfError", "is_member_call": false, "source_file": "led-tool/http_device.py", "source_location": "L82", "receiver": null, "_python_call_site": [2967, 3053]}], "_cached_target_files": ["$graphify-root$/led-tool/idf_device.py"]}