src/dazzle_ui/runtime/hot_reload.py¶
Generated: 2026-03-30T04:38:49.039348+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_ui
Purpose¶
Hot reload support for DNR development server.
Watches DSL files and source files for changes and triggers browser refresh via SSE.
Two watch modes: 1. DSL files (.dsl, dazzle.toml) - regenerates specs on change 2. Source files (.py, .css, .js) - clears caches and triggers reload
Key Exports¶
FileWatcherHotReloadManagercreate_reload_callbackstartstopstartstopregister_sse_clientunregister_sse_clientget_specsset_specsreload_specs
Dependencies¶
Imports¶
__future__.annotationsthreadingtimecollections.abc.Callablepathlib.Pathtyping.TYPE_CHECKINGdazzle.core.ir.AppSpecdazzle_ui.specs.UISpecimportlibsysdazzle_uidazzle_ui.runtime.template_renderer.get_jinja_envdazzle.core.fileset.discover_dsl_filesdazzle.core.linker.build_appspecdazzle.core.lint.lint_appspecdazzle.core.manifest.load_manifestdazzle.core.parser.parse_modulesdazzle_ui.converters.convert_appspec_to_ui
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.