Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/99d1db264c4dbc8d2a56d59941bb5baf050ecf792355dcafbb76c618740d38de.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_simulator_wasm_src_gallery_main_cpp", "label": "gallery_main.cpp", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_count", "label": "fx_count()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L19", "_callable": true}, {"id": "emscripten_keepalive", "label": "EMSCRIPTEN_KEEPALIVE", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-simulator/wasm/src/gallery_main.cpp"}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_name", "label": "fx_name()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L24", "_callable": true}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "label": "fx_init()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L30", "_callable": true}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "label": "fx_defaults_json()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L50", "_callable": true}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "label": "fx_select_json()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L67", "_callable": true}, {"id": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_step", "label": "fx_step()", "file_type": "code", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L90", "_callable": true}], "edges": [{"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "cstdlib", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "cstring", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "emscripten", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "cjson", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "cJSON.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "patterns", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "patterns.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "presets", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "presets.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "settings", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "settings.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_sim_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L12", "weight": 1.0, "target_file": "$graphify-root$/led-simulator/wasm/src/sim.h"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_count", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L19", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_count", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L19", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_name", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L24", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L30", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L50", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L50", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L67", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L67", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_cpp", "target": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_step", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L90", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_step", "target": "emscripten_keepalive", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L90", "weight": 1.0, "context": "return_type"}], "raw_calls": [{"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_count", "callee": "patterns_count", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L21", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_name", "callee": "patterns_name", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L26", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "callee": "strncpy", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L32", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "callee": "sim_nvs_load", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L39", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "callee": "patterns_start", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L40", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "callee": "presets_init", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L41", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_init", "callee": "patterns_set_hardware", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L44", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "preset_defaults", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L53", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "presets_count", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L54", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "presets_at", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L55", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "presets_at", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L56", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "preset_to_json", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L60", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "cJSON_PrintUnformatted", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L61", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_defaults_json", "callee": "cJSON_Delete", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L62", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_Parse", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L69", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_IsObject", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L70", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_Delete", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L71", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "patterns_get", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L75", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_GetObjectItem", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L76", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_IsString", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L77", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "patterns_index", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L78", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "preset_defaults", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L79", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "preset_from_json", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L81", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "cJSON_Delete", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L82", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "patterns_select", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L84", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_select_json", "callee": "patterns_set", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L85", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_step", "callee": "sim_clock_set_us", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L92", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_simulator_wasm_src_gallery_main_fx_step", "callee": "patterns_frame", "is_member_call": false, "source_file": "led-simulator/wasm/src/gallery_main.cpp", "source_location": "L93", "receiver": null, "lang": "cpp"}], "parse_errors": {"first_error_line": 19, "multiline_error": false}, "_cached_target_files": ["$graphify-root$/led-simulator/wasm/src/sim.h"]}