lightfall 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. lightfall-0.1.1/.gitignore +118 -0
  2. lightfall-0.1.1/LEGAL.md +13 -0
  3. lightfall-0.1.1/LICENSE.md +33 -0
  4. lightfall-0.1.1/PKG-INFO +223 -0
  5. lightfall-0.1.1/README.md +159 -0
  6. lightfall-0.1.1/pyproject.toml +252 -0
  7. lightfall-0.1.1/src/lightfall/__init__.py +8 -0
  8. lightfall-0.1.1/src/lightfall/__main__.py +10 -0
  9. lightfall-0.1.1/src/lightfall/_version.py +24 -0
  10. lightfall-0.1.1/src/lightfall/acquire/__init__.py +74 -0
  11. lightfall-0.1.1/src/lightfall/acquire/buffer.py +363 -0
  12. lightfall-0.1.1/src/lightfall/acquire/device_wrapper.py +416 -0
  13. lightfall-0.1.1/src/lightfall/acquire/engine/__init__.py +155 -0
  14. lightfall-0.1.1/src/lightfall/acquire/engine/base.py +587 -0
  15. lightfall-0.1.1/src/lightfall/acquire/engine/bluesky.py +358 -0
  16. lightfall-0.1.1/src/lightfall/acquire/engine/mock.py +165 -0
  17. lightfall-0.1.1/src/lightfall/acquire/engine/plugins/__init__.py +9 -0
  18. lightfall-0.1.1/src/lightfall/acquire/engine/plugins/bluesky_plugin.py +56 -0
  19. lightfall-0.1.1/src/lightfall/acquire/engine/plugins/mock_plugin.py +55 -0
  20. lightfall-0.1.1/src/lightfall/acquire/engine/protocol.py +145 -0
  21. lightfall-0.1.1/src/lightfall/acquire/engine/registry.py +152 -0
  22. lightfall-0.1.1/src/lightfall/acquire/engine/state.py +32 -0
  23. lightfall-0.1.1/src/lightfall/acquire/engine/waiting_hook.py +225 -0
  24. lightfall-0.1.1/src/lightfall/acquire/nats_bridge.py +62 -0
  25. lightfall-0.1.1/src/lightfall/acquire/plan_ui.py +78 -0
  26. lightfall-0.1.1/src/lightfall/acquire/plans/__init__.py +38 -0
  27. lightfall-0.1.1/src/lightfall/acquire/plans/adaptive.py +288 -0
  28. lightfall-0.1.1/src/lightfall/acquire/plans/example_plans.py +995 -0
  29. lightfall-0.1.1/src/lightfall/acquire/plans/lightfall_plans.py +587 -0
  30. lightfall-0.1.1/src/lightfall/acquire/plans/registry.py +543 -0
  31. lightfall-0.1.1/src/lightfall/acquire/plans/standard_plans.py +186 -0
  32. lightfall-0.1.1/src/lightfall/acquire/plans/user_plans.py +470 -0
  33. lightfall-0.1.1/src/lightfall/acquire/runengine.py +36 -0
  34. lightfall-0.1.1/src/lightfall/acquire/signals.py +452 -0
  35. lightfall-0.1.1/src/lightfall/acquire/triggers/__init__.py +16 -0
  36. lightfall-0.1.1/src/lightfall/acquire/triggers/base.py +25 -0
  37. lightfall-0.1.1/src/lightfall/acquire/triggers/filter.py +37 -0
  38. lightfall-0.1.1/src/lightfall/acquire/triggers/manager.py +73 -0
  39. lightfall-0.1.1/src/lightfall/acquire/triggers/manual.py +36 -0
  40. lightfall-0.1.1/src/lightfall/acquire/triggers/run_end.py +74 -0
  41. lightfall-0.1.1/src/lightfall/acquire/triggers/run_start.py +52 -0
  42. lightfall-0.1.1/src/lightfall/auth/__init__.py +38 -0
  43. lightfall-0.1.1/src/lightfall/auth/policy.py +518 -0
  44. lightfall-0.1.1/src/lightfall/auth/providers/__init__.py +30 -0
  45. lightfall-0.1.1/src/lightfall/auth/providers/base.py +124 -0
  46. lightfall-0.1.1/src/lightfall/auth/providers/keycloak.py +1017 -0
  47. lightfall-0.1.1/src/lightfall/auth/providers/local.py +319 -0
  48. lightfall-0.1.1/src/lightfall/auth/providers/pam.py +250 -0
  49. lightfall-0.1.1/src/lightfall/auth/service_key.py +173 -0
  50. lightfall-0.1.1/src/lightfall/auth/service_key_auth.py +79 -0
  51. lightfall-0.1.1/src/lightfall/auth/session.py +656 -0
  52. lightfall-0.1.1/src/lightfall/claude/__init__.py +52 -0
  53. lightfall-0.1.1/src/lightfall/claude/_internal/__init__.py +1 -0
  54. lightfall-0.1.1/src/lightfall/claude/_internal/serialization.py +195 -0
  55. lightfall-0.1.1/src/lightfall/claude/_internal/threading.py +61 -0
  56. lightfall-0.1.1/src/lightfall/claude/_internal/worker.py +757 -0
  57. lightfall-0.1.1/src/lightfall/claude/_session_assembly.py +124 -0
  58. lightfall-0.1.1/src/lightfall/claude/agent.py +596 -0
  59. lightfall-0.1.1/src/lightfall/claude/lightfall_core_tools.py +410 -0
  60. lightfall-0.1.1/src/lightfall/claude/markdown.py +103 -0
  61. lightfall-0.1.1/src/lightfall/claude/permission_manager.py +588 -0
  62. lightfall-0.1.1/src/lightfall/claude/tools/__init__.py +45 -0
  63. lightfall-0.1.1/src/lightfall/claude/tools/controller.py +143 -0
  64. lightfall-0.1.1/src/lightfall/claude/tools/interaction.py +177 -0
  65. lightfall-0.1.1/src/lightfall/claude/tools/introspection.py +127 -0
  66. lightfall-0.1.1/src/lightfall/claude/tools/logs.py +155 -0
  67. lightfall-0.1.1/src/lightfall/claude/tools/screenshot.py +87 -0
  68. lightfall-0.1.1/src/lightfall/claude/widget.py +851 -0
  69. lightfall-0.1.1/src/lightfall/claude/widgets/__init__.py +5 -0
  70. lightfall-0.1.1/src/lightfall/claude/widgets/permission_request.py +282 -0
  71. lightfall-0.1.1/src/lightfall/claude/widgets/question_request.py +227 -0
  72. lightfall-0.1.1/src/lightfall/claude/widgets/task_card.py +223 -0
  73. lightfall-0.1.1/src/lightfall/config/__init__.py +23 -0
  74. lightfall-0.1.1/src/lightfall/config/layers.py +317 -0
  75. lightfall-0.1.1/src/lightfall/config/manager.py +244 -0
  76. lightfall-0.1.1/src/lightfall/config/schema.py +154 -0
  77. lightfall-0.1.1/src/lightfall/core/__init__.py +23 -0
  78. lightfall-0.1.1/src/lightfall/core/application.py +727 -0
  79. lightfall-0.1.1/src/lightfall/core/services.py +235 -0
  80. lightfall-0.1.1/src/lightfall/devices/__init__.py +53 -0
  81. lightfall-0.1.1/src/lightfall/devices/backends/__init__.py +17 -0
  82. lightfall-0.1.1/src/lightfall/devices/backends/bcs.py +448 -0
  83. lightfall-0.1.1/src/lightfall/devices/backends/happi.py +986 -0
  84. lightfall-0.1.1/src/lightfall/devices/backends/mock.py +646 -0
  85. lightfall-0.1.1/src/lightfall/devices/base.py +338 -0
  86. lightfall-0.1.1/src/lightfall/devices/catalog.py +1039 -0
  87. lightfall-0.1.1/src/lightfall/devices/connection_manager.py +676 -0
  88. lightfall-0.1.1/src/lightfall/devices/model.py +290 -0
  89. lightfall-0.1.1/src/lightfall/devices/monitoring.py +442 -0
  90. lightfall-0.1.1/src/lightfall/devices/sim/__init__.py +26 -0
  91. lightfall-0.1.1/src/lightfall/devices/sim/areadetector.py +436 -0
  92. lightfall-0.1.1/src/lightfall/devices/sim/generators.py +223 -0
  93. lightfall-0.1.1/src/lightfall/devices/sim/plugins.py +116 -0
  94. lightfall-0.1.1/src/lightfall/epics/__init__.py +28 -0
  95. lightfall-0.1.1/src/lightfall/epics/ca/__init__.py +10 -0
  96. lightfall-0.1.1/src/lightfall/epics/ca/context.py +100 -0
  97. lightfall-0.1.1/src/lightfall/epics/ca/pv.py +303 -0
  98. lightfall-0.1.1/src/lightfall/epics/widgets/__init__.py +49 -0
  99. lightfall-0.1.1/src/lightfall/epics/widgets/areadetector/__init__.py +16 -0
  100. lightfall-0.1.1/src/lightfall/epics/widgets/areadetector/areadetector.py +281 -0
  101. lightfall-0.1.1/src/lightfall/epics/widgets/areadetector/controls.py +478 -0
  102. lightfall-0.1.1/src/lightfall/epics/widgets/areadetector/image_view.py +447 -0
  103. lightfall-0.1.1/src/lightfall/epics/widgets/auto.py +319 -0
  104. lightfall-0.1.1/src/lightfall/epics/widgets/base.py +404 -0
  105. lightfall-0.1.1/src/lightfall/epics/widgets/checkbox.py +239 -0
  106. lightfall-0.1.1/src/lightfall/epics/widgets/combobox.py +202 -0
  107. lightfall-0.1.1/src/lightfall/epics/widgets/label.py +176 -0
  108. lightfall-0.1.1/src/lightfall/epics/widgets/lineedit.py +253 -0
  109. lightfall-0.1.1/src/lightfall/epics/widgets/motor.py +694 -0
  110. lightfall-0.1.1/src/lightfall/epics/widgets/ophyd_base.py +469 -0
  111. lightfall-0.1.1/src/lightfall/epics/widgets/ophyd_combobox.py +86 -0
  112. lightfall-0.1.1/src/lightfall/epics/widgets/ophyd_label.py +54 -0
  113. lightfall-0.1.1/src/lightfall/epics/widgets/ophyd_lineedit.py +170 -0
  114. lightfall-0.1.1/src/lightfall/epics/widgets/ophyd_spinbox.py +79 -0
  115. lightfall-0.1.1/src/lightfall/epics/widgets/slider.py +272 -0
  116. lightfall-0.1.1/src/lightfall/epics/widgets/status_indicator.py +98 -0
  117. lightfall-0.1.1/src/lightfall/epics/widgets/style.py +188 -0
  118. lightfall-0.1.1/src/lightfall/exporter/__init__.py +1 -0
  119. lightfall-0.1.1/src/lightfall/exporter/cli.py +67 -0
  120. lightfall-0.1.1/src/lightfall/exporter/converters/__init__.py +26 -0
  121. lightfall-0.1.1/src/lightfall/exporter/converters/base.py +39 -0
  122. lightfall-0.1.1/src/lightfall/exporter/converters/noop.py +39 -0
  123. lightfall-0.1.1/src/lightfall/exporter/converters/nxsas.py +73 -0
  124. lightfall-0.1.1/src/lightfall/exporter/service.py +200 -0
  125. lightfall-0.1.1/src/lightfall/exporter/tiled_utils.py +92 -0
  126. lightfall-0.1.1/src/lightfall/ipc/__init__.py +6 -0
  127. lightfall-0.1.1/src/lightfall/ipc/service.py +701 -0
  128. lightfall-0.1.1/src/lightfall/ipc/trust.py +144 -0
  129. lightfall-0.1.1/src/lightfall/logbook/__init__.py +46 -0
  130. lightfall-0.1.1/src/lightfall/logbook/action_dialog.py +207 -0
  131. lightfall-0.1.1/src/lightfall/logbook/action_logger.py +432 -0
  132. lightfall-0.1.1/src/lightfall/logbook/block_mapper.py +562 -0
  133. lightfall-0.1.1/src/lightfall/logbook/client.py +799 -0
  134. lightfall-0.1.1/src/lightfall/logbook/converter.py +273 -0
  135. lightfall-0.1.1/src/lightfall/logbook/editors/__init__.py +19 -0
  136. lightfall-0.1.1/src/lightfall/logbook/editors/highlighter.py +305 -0
  137. lightfall-0.1.1/src/lightfall/logbook/editors/markdown_editor.py +319 -0
  138. lightfall-0.1.1/src/lightfall/logbook/editors/richtext_editor.py +1397 -0
  139. lightfall-0.1.1/src/lightfall/logbook/entry_widget.py +1065 -0
  140. lightfall-0.1.1/src/lightfall/logbook/event_listener.py +221 -0
  141. lightfall-0.1.1/src/lightfall/logbook/fragment_widgets.py +925 -0
  142. lightfall-0.1.1/src/lightfall/logbook/position_mapper.py +320 -0
  143. lightfall-0.1.1/src/lightfall/logbook/protection.py +402 -0
  144. lightfall-0.1.1/src/lightfall/logbook/style.py +394 -0
  145. lightfall-0.1.1/src/lightfall/logbook/url.py +29 -0
  146. lightfall-0.1.1/src/lightfall/logbook/visual_protection.py +330 -0
  147. lightfall-0.1.1/src/lightfall/logbook/widget.py +680 -0
  148. lightfall-0.1.1/src/lightfall/main.py +1091 -0
  149. lightfall-0.1.1/src/lightfall/pipelines/__init__.py +4 -0
  150. lightfall-0.1.1/src/lightfall/pipelines/client.py +148 -0
  151. lightfall-0.1.1/src/lightfall/plugins/__init__.py +119 -0
  152. lightfall-0.1.1/src/lightfall/plugins/agent_plugin.py +106 -0
  153. lightfall-0.1.1/src/lightfall/plugins/agents/__init__.py +10 -0
  154. lightfall-0.1.1/src/lightfall/plugins/agents/_mcp_helpers.py +52 -0
  155. lightfall-0.1.1/src/lightfall/plugins/agents/alignment.py +94 -0
  156. lightfall-0.1.1/src/lightfall/plugins/agents/autonomous_experiment/__init__.py +12 -0
  157. lightfall-0.1.1/src/lightfall/plugins/agents/autonomous_experiment/nats_tools.py +210 -0
  158. lightfall-0.1.1/src/lightfall/plugins/agents/autonomous_experiment/plugin.py +60 -0
  159. lightfall-0.1.1/src/lightfall/plugins/agents/autonomous_experiment/prompts.py +164 -0
  160. lightfall-0.1.1/src/lightfall/plugins/agents/current_esaf.py +435 -0
  161. lightfall-0.1.1/src/lightfall/plugins/agents/device_tools.py +1043 -0
  162. lightfall-0.1.1/src/lightfall/plugins/agents/engine_tools.py +720 -0
  163. lightfall-0.1.1/src/lightfall/plugins/agents/ipython_tools.py +444 -0
  164. lightfall-0.1.1/src/lightfall/plugins/agents/panel_builder.py +637 -0
  165. lightfall-0.1.1/src/lightfall/plugins/agents/panel_design/references/cross_panel_patterns.md +95 -0
  166. lightfall-0.1.1/src/lightfall/plugins/agents/panel_design/references/panel_design.md +680 -0
  167. lightfall-0.1.1/src/lightfall/plugins/agents/panel_design.py +94 -0
  168. lightfall-0.1.1/src/lightfall/plugins/agents/plan_design/references/plan_design.md +398 -0
  169. lightfall-0.1.1/src/lightfall/plugins/agents/plan_design.py +90 -0
  170. lightfall-0.1.1/src/lightfall/plugins/agents/plan_tools.py +878 -0
  171. lightfall-0.1.1/src/lightfall/plugins/agents/scan_planning.py +101 -0
  172. lightfall-0.1.1/src/lightfall/plugins/builtin_manifest.py +348 -0
  173. lightfall-0.1.1/src/lightfall/plugins/controller_plugin.py +162 -0
  174. lightfall-0.1.1/src/lightfall/plugins/engine_plugin.py +124 -0
  175. lightfall-0.1.1/src/lightfall/plugins/errors.py +104 -0
  176. lightfall-0.1.1/src/lightfall/plugins/info.py +112 -0
  177. lightfall-0.1.1/src/lightfall/plugins/loader.py +878 -0
  178. lightfall-0.1.1/src/lightfall/plugins/manifest.py +150 -0
  179. lightfall-0.1.1/src/lightfall/plugins/panel_plugin.py +119 -0
  180. lightfall-0.1.1/src/lightfall/plugins/plan_plugin.py +163 -0
  181. lightfall-0.1.1/src/lightfall/plugins/registry.py +309 -0
  182. lightfall-0.1.1/src/lightfall/plugins/settings_plugin.py +226 -0
  183. lightfall-0.1.1/src/lightfall/plugins/statusbar_plugin.py +289 -0
  184. lightfall-0.1.1/src/lightfall/plugins/theme_plugin.py +165 -0
  185. lightfall-0.1.1/src/lightfall/plugins/types.py +136 -0
  186. lightfall-0.1.1/src/lightfall/plugins/user_plugins.py +764 -0
  187. lightfall-0.1.1/src/lightfall/project/__init__.py +37 -0
  188. lightfall-0.1.1/src/lightfall/project/model.py +375 -0
  189. lightfall-0.1.1/src/lightfall/project/service.py +427 -0
  190. lightfall-0.1.1/src/lightfall/project/welcome.py +106 -0
  191. lightfall-0.1.1/src/lightfall/resources/__init__.py +126 -0
  192. lightfall-0.1.1/src/lightfall/resources/images/__init__.py +1 -0
  193. lightfall-0.1.1/src/lightfall/resources/images/icon.ico +0 -0
  194. lightfall-0.1.1/src/lightfall/resources/images/icon.png +0 -0
  195. lightfall-0.1.1/src/lightfall/resources/images/logo.png +0 -0
  196. lightfall-0.1.1/src/lightfall/services/__init__.py +33 -0
  197. lightfall-0.1.1/src/lightfall/services/_alshub_client.py +73 -0
  198. lightfall-0.1.1/src/lightfall/services/access_stamper.py +240 -0
  199. lightfall-0.1.1/src/lightfall/services/als_beam_status.py +347 -0
  200. lightfall-0.1.1/src/lightfall/services/ca_tunnel.py +325 -0
  201. lightfall-0.1.1/src/lightfall/services/threaded_tiled_writer.py +174 -0
  202. lightfall-0.1.1/src/lightfall/services/tiled_auth.py +21 -0
  203. lightfall-0.1.1/src/lightfall/services/tiled_service.py +971 -0
  204. lightfall-0.1.1/src/lightfall/services/tiled_writer_patch.py +301 -0
  205. lightfall-0.1.1/src/lightfall/settings/__init__.py +1 -0
  206. lightfall-0.1.1/src/lightfall/settings/image_helpers.py +30 -0
  207. lightfall-0.1.1/src/lightfall/settings/user_settings_client.py +232 -0
  208. lightfall-0.1.1/src/lightfall/ui/__init__.py +28 -0
  209. lightfall-0.1.1/src/lightfall/ui/annotations.py +208 -0
  210. lightfall-0.1.1/src/lightfall/ui/common/__init__.py +7 -0
  211. lightfall-0.1.1/src/lightfall/ui/dialogs/__init__.py +26 -0
  212. lightfall-0.1.1/src/lightfall/ui/dialogs/about_dialog.py +131 -0
  213. lightfall-0.1.1/src/lightfall/ui/dialogs/add_trigger_dialog.py +152 -0
  214. lightfall-0.1.1/src/lightfall/ui/dialogs/base.py +44 -0
  215. lightfall-0.1.1/src/lightfall/ui/dialogs/bug_report_dialog.py +353 -0
  216. lightfall-0.1.1/src/lightfall/ui/dialogs/create_plan_dialog.py +189 -0
  217. lightfall-0.1.1/src/lightfall/ui/dialogs/device_edit_dialog.py +183 -0
  218. lightfall-0.1.1/src/lightfall/ui/dialogs/export_dialog.py +565 -0
  219. lightfall-0.1.1/src/lightfall/ui/dialogs/go_to_position_dialog.py +192 -0
  220. lightfall-0.1.1/src/lightfall/ui/dialogs/login_dialog.py +756 -0
  221. lightfall-0.1.1/src/lightfall/ui/dialogs/oauth_browser_dialog.py +305 -0
  222. lightfall-0.1.1/src/lightfall/ui/dialogs/run_pipeline_dialog.py +131 -0
  223. lightfall-0.1.1/src/lightfall/ui/dialogs/sample_metadata_dialog.py +316 -0
  224. lightfall-0.1.1/src/lightfall/ui/docking/__init__.py +22 -0
  225. lightfall-0.1.1/src/lightfall/ui/docking/icon_sidebar.py +806 -0
  226. lightfall-0.1.1/src/lightfall/ui/docking/manager.py +682 -0
  227. lightfall-0.1.1/src/lightfall/ui/docking/state.py +113 -0
  228. lightfall-0.1.1/src/lightfall/ui/docking/theme.py +399 -0
  229. lightfall-0.1.1/src/lightfall/ui/docking/widget.py +214 -0
  230. lightfall-0.1.1/src/lightfall/ui/events.py +75 -0
  231. lightfall-0.1.1/src/lightfall/ui/mainwindow.py +1006 -0
  232. lightfall-0.1.1/src/lightfall/ui/models/__init__.py +49 -0
  233. lightfall-0.1.1/src/lightfall/ui/models/device_selection.py +389 -0
  234. lightfall-0.1.1/src/lightfall/ui/models/device_tree.py +1095 -0
  235. lightfall-0.1.1/src/lightfall/ui/models/thread_model.py +667 -0
  236. lightfall-0.1.1/src/lightfall/ui/models/tiled_model.py +384 -0
  237. lightfall-0.1.1/src/lightfall/ui/panels/__init__.py +28 -0
  238. lightfall-0.1.1/src/lightfall/ui/panels/base.py +525 -0
  239. lightfall-0.1.1/src/lightfall/ui/panels/bluesky_panel.py +619 -0
  240. lightfall-0.1.1/src/lightfall/ui/panels/claude/__init__.py +9 -0
  241. lightfall-0.1.1/src/lightfall/ui/panels/claude/agent_registry.py +168 -0
  242. lightfall-0.1.1/src/lightfall/ui/panels/claude_panel.py +887 -0
  243. lightfall-0.1.1/src/lightfall/ui/panels/device_panel.py +370 -0
  244. lightfall-0.1.1/src/lightfall/ui/panels/documents_panel.py +166 -0
  245. lightfall-0.1.1/src/lightfall/ui/panels/ipython_panel.py +580 -0
  246. lightfall-0.1.1/src/lightfall/ui/panels/logbook_entries_panel.py +84 -0
  247. lightfall-0.1.1/src/lightfall/ui/panels/logbook_panel.py +627 -0
  248. lightfall-0.1.1/src/lightfall/ui/panels/logging_panel.py +587 -0
  249. lightfall-0.1.1/src/lightfall/ui/panels/pipeline_jobs_panel.py +160 -0
  250. lightfall-0.1.1/src/lightfall/ui/panels/pipeline_triggers_panel.py +170 -0
  251. lightfall-0.1.1/src/lightfall/ui/panels/plugins/__init__.py +34 -0
  252. lightfall-0.1.1/src/lightfall/ui/panels/plugins/bluesky_plugin.py +27 -0
  253. lightfall-0.1.1/src/lightfall/ui/panels/plugins/claude_plugin.py +29 -0
  254. lightfall-0.1.1/src/lightfall/ui/panels/plugins/device_plugin.py +27 -0
  255. lightfall-0.1.1/src/lightfall/ui/panels/plugins/documents_plugin.py +26 -0
  256. lightfall-0.1.1/src/lightfall/ui/panels/plugins/ipython_plugin.py +27 -0
  257. lightfall-0.1.1/src/lightfall/ui/panels/plugins/logbook_entries_plugin.py +23 -0
  258. lightfall-0.1.1/src/lightfall/ui/panels/plugins/logbook_plugin.py +27 -0
  259. lightfall-0.1.1/src/lightfall/ui/panels/plugins/logging_plugin.py +27 -0
  260. lightfall-0.1.1/src/lightfall/ui/panels/plugins/pipeline_jobs_plugin.py +23 -0
  261. lightfall-0.1.1/src/lightfall/ui/panels/plugins/pipeline_triggers_plugin.py +25 -0
  262. lightfall-0.1.1/src/lightfall/ui/panels/plugins/queue_plugin.py +29 -0
  263. lightfall-0.1.1/src/lightfall/ui/panels/plugins/synoptic_plugin.py +38 -0
  264. lightfall-0.1.1/src/lightfall/ui/panels/plugins/threads_plugin.py +27 -0
  265. lightfall-0.1.1/src/lightfall/ui/panels/plugins/tiled_browser_plugin.py +27 -0
  266. lightfall-0.1.1/src/lightfall/ui/panels/plugins/visualization_plugin.py +27 -0
  267. lightfall-0.1.1/src/lightfall/ui/panels/queue.py +754 -0
  268. lightfall-0.1.1/src/lightfall/ui/panels/registry.py +483 -0
  269. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/__init__.py +27 -0
  270. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/editors.py +481 -0
  271. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/items.py +556 -0
  272. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/models.py +336 -0
  273. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/panel.py +889 -0
  274. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/serialization.py +300 -0
  275. lightfall-0.1.1/src/lightfall/ui/panels/synoptic/view.py +504 -0
  276. lightfall-0.1.1/src/lightfall/ui/panels/threads_panel.py +621 -0
  277. lightfall-0.1.1/src/lightfall/ui/panels/tiled_browser_panel.py +854 -0
  278. lightfall-0.1.1/src/lightfall/ui/panels/visualization_panel.py +508 -0
  279. lightfall-0.1.1/src/lightfall/ui/preferences/__init__.py +24 -0
  280. lightfall-0.1.1/src/lightfall/ui/preferences/backend.py +148 -0
  281. lightfall-0.1.1/src/lightfall/ui/preferences/builtin.py +220 -0
  282. lightfall-0.1.1/src/lightfall/ui/preferences/claude_settings.py +762 -0
  283. lightfall-0.1.1/src/lightfall/ui/preferences/device_settings.py +461 -0
  284. lightfall-0.1.1/src/lightfall/ui/preferences/dialog.py +234 -0
  285. lightfall-0.1.1/src/lightfall/ui/preferences/editor_settings.py +227 -0
  286. lightfall-0.1.1/src/lightfall/ui/preferences/ipc_settings.py +226 -0
  287. lightfall-0.1.1/src/lightfall/ui/preferences/logbook_settings.py +232 -0
  288. lightfall-0.1.1/src/lightfall/ui/preferences/login_settings.py +183 -0
  289. lightfall-0.1.1/src/lightfall/ui/preferences/manager.py +562 -0
  290. lightfall-0.1.1/src/lightfall/ui/preferences/plugin_settings.py +392 -0
  291. lightfall-0.1.1/src/lightfall/ui/preferences/proxy_settings.py +561 -0
  292. lightfall-0.1.1/src/lightfall/ui/preferences/skill_settings.py +28 -0
  293. lightfall-0.1.1/src/lightfall/ui/preferences/tiled_settings.py +469 -0
  294. lightfall-0.1.1/src/lightfall/ui/preferences/tool_settings.py +393 -0
  295. lightfall-0.1.1/src/lightfall/ui/preferences/user_portable_backend.py +131 -0
  296. lightfall-0.1.1/src/lightfall/ui/preferences/user_profile_settings.py +316 -0
  297. lightfall-0.1.1/src/lightfall/ui/preferences/visualization_settings.py +159 -0
  298. lightfall-0.1.1/src/lightfall/ui/resources/__init__.py +1 -0
  299. lightfall-0.1.1/src/lightfall/ui/resources/logo.png +0 -0
  300. lightfall-0.1.1/src/lightfall/ui/statusbar/__init__.py +11 -0
  301. lightfall-0.1.1/src/lightfall/ui/statusbar/manager.py +379 -0
  302. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/__init__.py +28 -0
  303. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/als_beam_status.py +218 -0
  304. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/auth_status.py +116 -0
  305. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/connection_status.py +100 -0
  306. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/thread_status.py +556 -0
  307. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/tiled_status.py +179 -0
  308. lightfall-0.1.1/src/lightfall/ui/statusbar/plugins/user_status.py +84 -0
  309. lightfall-0.1.1/src/lightfall/ui/theater/__init__.py +28 -0
  310. lightfall-0.1.1/src/lightfall/ui/theater/manager.py +124 -0
  311. lightfall-0.1.1/src/lightfall/ui/theater/overlay.py +279 -0
  312. lightfall-0.1.1/src/lightfall/ui/theater/proxy.py +111 -0
  313. lightfall-0.1.1/src/lightfall/ui/theme/__init__.py +18 -0
  314. lightfall-0.1.1/src/lightfall/ui/theme/builtin.py +1015 -0
  315. lightfall-0.1.1/src/lightfall/ui/theme/manager.py +875 -0
  316. lightfall-0.1.1/src/lightfall/ui/theme/registry.py +195 -0
  317. lightfall-0.1.1/src/lightfall/ui/toast.py +221 -0
  318. lightfall-0.1.1/src/lightfall/ui/tutorial.py +1100 -0
  319. lightfall-0.1.1/src/lightfall/ui/widgets/__init__.py +110 -0
  320. lightfall-0.1.1/src/lightfall/ui/widgets/base_control.py +259 -0
  321. lightfall-0.1.1/src/lightfall/ui/widgets/camera/__init__.py +36 -0
  322. lightfall-0.1.1/src/lightfall/ui/widgets/camera/base.py +815 -0
  323. lightfall-0.1.1/src/lightfall/ui/widgets/camera/dark_frames.py +213 -0
  324. lightfall-0.1.1/src/lightfall/ui/widgets/camera/image_view.py +649 -0
  325. lightfall-0.1.1/src/lightfall/ui/widgets/camera/panels/__init__.py +14 -0
  326. lightfall-0.1.1/src/lightfall/ui/widgets/camera/panels/cooler.py +320 -0
  327. lightfall-0.1.1/src/lightfall/ui/widgets/camera/panels/temperature.py +192 -0
  328. lightfall-0.1.1/src/lightfall/ui/widgets/camera/plan_based.py +202 -0
  329. lightfall-0.1.1/src/lightfall/ui/widgets/compact_motor.py +522 -0
  330. lightfall-0.1.1/src/lightfall/ui/widgets/controller_matcher.py +278 -0
  331. lightfall-0.1.1/src/lightfall/ui/widgets/controller_registry.py +144 -0
  332. lightfall-0.1.1/src/lightfall/ui/widgets/device_control.py +411 -0
  333. lightfall-0.1.1/src/lightfall/ui/widgets/device_selector.py +438 -0
  334. lightfall-0.1.1/src/lightfall/ui/widgets/device_tree_tab.py +461 -0
  335. lightfall-0.1.1/src/lightfall/ui/widgets/document_stream.py +1028 -0
  336. lightfall-0.1.1/src/lightfall/ui/widgets/favorites_tab.py +191 -0
  337. lightfall-0.1.1/src/lightfall/ui/widgets/motor_control.py +1120 -0
  338. lightfall-0.1.1/src/lightfall/ui/widgets/observers/__init__.py +8 -0
  339. lightfall-0.1.1/src/lightfall/ui/widgets/observers/camera.py +48 -0
  340. lightfall-0.1.1/src/lightfall/ui/widgets/observers/image_view.py +130 -0
  341. lightfall-0.1.1/src/lightfall/ui/widgets/plan_config.py +954 -0
  342. lightfall-0.1.1/src/lightfall/ui/widgets/plan_edit_dialog.py +294 -0
  343. lightfall-0.1.1/src/lightfall/ui/widgets/plan_selector.py +452 -0
  344. lightfall-0.1.1/src/lightfall/ui/widgets/profile_avatar.py +128 -0
  345. lightfall-0.1.1/src/lightfall/ui/widgets/queue_view.py +647 -0
  346. lightfall-0.1.1/src/lightfall/ui/widgets/runengine_control.py +549 -0
  347. lightfall-0.1.1/src/lightfall/ui/widgets/signal_control.py +793 -0
  348. lightfall-0.1.1/src/lightfall/ui/widgets/skill_trigger_button.py +183 -0
  349. lightfall-0.1.1/src/lightfall/ui/widgets/tiled_filter_widget.py +314 -0
  350. lightfall-0.1.1/src/lightfall/ui/widgets/tiled_status.py +149 -0
  351. lightfall-0.1.1/src/lightfall/ui/widgets/warning_banner.py +185 -0
  352. lightfall-0.1.1/src/lightfall/utils/__init__.py +53 -0
  353. lightfall-0.1.1/src/lightfall/utils/crash_diagnostics.py +454 -0
  354. lightfall-0.1.1/src/lightfall/utils/data_migration.py +22 -0
  355. lightfall-0.1.1/src/lightfall/utils/editor_launcher.py +594 -0
  356. lightfall-0.1.1/src/lightfall/utils/error_collector.py +245 -0
  357. lightfall-0.1.1/src/lightfall/utils/git_tracker.py +197 -0
  358. lightfall-0.1.1/src/lightfall/utils/log_buffer.py +233 -0
  359. lightfall-0.1.1/src/lightfall/utils/logging.py +229 -0
  360. lightfall-0.1.1/src/lightfall/utils/module_resolver.py +70 -0
  361. lightfall-0.1.1/src/lightfall/utils/sentry.py +722 -0
  362. lightfall-0.1.1/src/lightfall/utils/threads.py +991 -0
  363. lightfall-0.1.1/src/lightfall/utils/tiled_helpers.py +96 -0
  364. lightfall-0.1.1/src/lightfall/visualization/__init__.py +50 -0
  365. lightfall-0.1.1/src/lightfall/visualization/base.py +5 -0
  366. lightfall-0.1.1/src/lightfall/visualization/base_visualization.py +74 -0
  367. lightfall-0.1.1/src/lightfall/visualization/fitting/__init__.py +24 -0
  368. lightfall-0.1.1/src/lightfall/visualization/fitting/base.py +267 -0
  369. lightfall-0.1.1/src/lightfall/visualization/fitting/fitters.py +325 -0
  370. lightfall-0.1.1/src/lightfall/visualization/fitting/panel.py +265 -0
  371. lightfall-0.1.1/src/lightfall/visualization/memory.py +392 -0
  372. lightfall-0.1.1/src/lightfall/visualization/motor_mixin.py +524 -0
  373. lightfall-0.1.1/src/lightfall/visualization/pg.py +156 -0
  374. lightfall-0.1.1/src/lightfall/visualization/registry.py +144 -0
  375. lightfall-0.1.1/src/lightfall/visualization/spec.py +79 -0
  376. lightfall-0.1.1/src/lightfall/visualization/theme.py +266 -0
  377. lightfall-0.1.1/src/lightfall/visualization/widgets/__init__.py +28 -0
  378. lightfall-0.1.1/src/lightfall/visualization/widgets/adaptive/__init__.py +1 -0
  379. lightfall-0.1.1/src/lightfall/visualization/widgets/adaptive/heatmap.py +655 -0
  380. lightfall-0.1.1/src/lightfall/visualization/widgets/adaptive/plot.py +233 -0
  381. lightfall-0.1.1/src/lightfall/visualization/widgets/heatmap.py +264 -0
  382. lightfall-0.1.1/src/lightfall/visualization/widgets/image_stack.py +316 -0
  383. lightfall-0.1.1/src/lightfall/visualization/widgets/image_view_toolbar.py +227 -0
  384. lightfall-0.1.1/src/lightfall/visualization/widgets/lazy_image_view.py +590 -0
  385. lightfall-0.1.1/src/lightfall/visualization/widgets/plot_1d.py +262 -0
  386. lightfall-0.1.1/src/lightfall/visualization/widgets/scatter.py +247 -0
  387. lightfall-0.1.1/src/lightfall/visualization/widgets/table.py +221 -0
  388. lightfall-0.1.1/src/lightfall/visualization/widgets/time_axis.py +93 -0
@@ -0,0 +1,118 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ *.manifest
29
+ *.spec
30
+
31
+ # Installer logs
32
+ pip-log.txt
33
+ pip-delete-this-directory.txt
34
+
35
+ # Unit test / coverage reports
36
+ htmlcov/
37
+ .tox/
38
+ .nox/
39
+ .coverage
40
+ .coverage.*
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+ *.cover
45
+ *.py,cover
46
+ .hypothesis/
47
+ .pytest_cache/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Sphinx documentation
54
+ docs/_build/
55
+
56
+ # PyBuilder
57
+ target/
58
+
59
+ # Jupyter Notebook
60
+ .ipynb_checkpoints
61
+
62
+ # IPython
63
+ profile_default/
64
+ ipython_config.py
65
+
66
+ # pyenv
67
+ .python-version
68
+
69
+ # Environments
70
+ .env
71
+ .venv
72
+ .venv-*/
73
+ env/
74
+ venv/
75
+ ENV/
76
+ env.bak/
77
+ venv.bak/
78
+
79
+ # Lock files from non-canonical package managers (project uses hatch)
80
+ uv.lock
81
+
82
+ # Stray debug captures
83
+ test_stderr.txt
84
+
85
+ # IDE
86
+ .idea/
87
+ .vscode/
88
+ *.swp
89
+ *.swo
90
+ *~
91
+
92
+ # mypy
93
+ .mypy_cache/
94
+ .dmypy.json
95
+ dmypy.json
96
+
97
+ # ruff
98
+ .ruff_cache/
99
+
100
+ # OS
101
+ .DS_Store
102
+ Thumbs.db
103
+
104
+ # Project specific
105
+ src/lightfall/_version.py
106
+
107
+ # Runtime debug output
108
+ logs/
109
+ src/lightfall/logs/
110
+
111
+ # Git worktrees
112
+ .worktrees/
113
+ .claude/worktrees/
114
+
115
+ # Historical design docs / working artifacts (kept on disk, not in git)
116
+ docs/investigations/
117
+ docs/plans/
118
+ docs/superpowers/
@@ -0,0 +1,13 @@
1
+ Lightfall Copyright (c) 2026,
2
+ The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
3
+
4
+ If you have questions about your rights to use or distribute this software,
5
+ please contact Berkeley Lab's Intellectual Property Office at
6
+ IPO@lbl.gov.
7
+
8
+ NOTICE. This Software was developed under funding from the U.S. Department
9
+ of Energy and the U.S. Government consequently retains certain rights. As
10
+ such, the U.S. Government has been granted for itself and others acting on
11
+ its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
12
+ Software to reproduce, distribute copies to the public, prepare derivative
13
+ works, and perform publicly and display publicly, and to permit others to do so.
@@ -0,0 +1,33 @@
1
+ Lightfall Copyright (c) 2026,
2
+ The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ (1) Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ (2) Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+
14
+ (3) Neither the name of the University of California, Lawrence Berkeley
15
+ National Laboratory, U.S. Dept. of Energy nor the names of its contributors
16
+ may be used to endorse or promote products derived from this software
17
+ without specific prior written permission.
18
+
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
+
24
+ You are under no obligation whatsoever to provide any bug fixes, patches,
25
+ or upgrades to the features, functionality or performance of the source
26
+ code ("Enhancements") to anyone; however, if you choose to make your
27
+ Enhancements available either publicly, or directly to Lawrence Berkeley
28
+ National Laboratory, without imposing a separate written license agreement
29
+ for such Enhancements, then you hereby grant the following license: a
30
+ non-exclusive, royalty-free perpetual license to install, use, modify,
31
+ prepare derivative works, incorporate into other computer software,
32
+ distribute, and sublicense such enhancements or derivative works thereof,
33
+ in binary and source code form.
@@ -0,0 +1,223 @@
1
+ Metadata-Version: 2.4
2
+ Name: lightfall
3
+ Version: 0.1.1
4
+ Summary: Lightfall - control system for the ALS facility
5
+ Project-URL: Homepage, https://github.com/als-controls/lightfall
6
+ Project-URL: Documentation, https://als-controls.github.io/lightfall
7
+ Project-URL: Repository, https://github.com/als-controls/lightfall
8
+ Author: ALS Controls Team
9
+ License-Expression: BSD-3-Clause
10
+ License-File: LEGAL.md
11
+ License-File: LICENSE.md
12
+ Keywords: beamline,control-system,data-acquisition,lightfall,scientific-instruments
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: X11 Applications :: Qt
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: BSD License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: aiohttp-socks>=0.8
24
+ Requires-Dist: aiohttp>=3.8
25
+ Requires-Dist: bluesky-tiled-plugins>=2.0
26
+ Requires-Dist: bluesky>=1.10
27
+ Requires-Dist: caproto>=1.1
28
+ Requires-Dist: claude-agent-sdk>=0.2.82
29
+ Requires-Dist: h5py>=3.0
30
+ Requires-Dist: happi>=2.0
31
+ Requires-Dist: httpx[socks]>=0.27
32
+ Requires-Dist: ipykernel>=6.0
33
+ Requires-Dist: loguru>=0.7
34
+ Requires-Dist: mistune>=3.0
35
+ Requires-Dist: nats-py>=2.0
36
+ Requires-Dist: netifaces>=0.11; sys_platform != 'darwin'
37
+ Requires-Dist: ophyd>=1.7
38
+ Requires-Dist: psutil>=5.9
39
+ Requires-Dist: pydantic>=2.0
40
+ Requires-Dist: pyqtgraph>=0.13
41
+ Requires-Dist: pyqttoast-enhanced>=2.0
42
+ Requires-Dist: pyside6>=6.6
43
+ Requires-Dist: pysocks>=1.7
44
+ Requires-Dist: pyyaml>=6.0
45
+ Requires-Dist: qtawesome>=1.3
46
+ Requires-Dist: qtconsole>=5.5
47
+ Requires-Dist: scipy>=1.11
48
+ Requires-Dist: sentry-sdk[loguru]>=2.0
49
+ Requires-Dist: tiled[client]>=0.2.5
50
+ Provides-Extra: dev
51
+ Requires-Dist: mypy>=1.8; extra == 'dev'
52
+ Requires-Dist: pre-commit>=3.6; extra == 'dev'
53
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
54
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
55
+ Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
56
+ Requires-Dist: pytest-qt>=4.2; extra == 'dev'
57
+ Requires-Dist: pytest>=8.0; extra == 'dev'
58
+ Requires-Dist: ruff>=0.1; extra == 'dev'
59
+ Provides-Extra: docs
60
+ Requires-Dist: myst-parser>=2.0; extra == 'docs'
61
+ Requires-Dist: sphinx-immaterial>=0.12; extra == 'docs'
62
+ Requires-Dist: sphinx<9.0,>=7.0; extra == 'docs'
63
+ Description-Content-Type: text/markdown
64
+
65
+ # Lightfall
66
+
67
+ <!-- badges:start -->
68
+ [![CI](https://github.com/als-controls/lightfall/actions/workflows/ci.yml/badge.svg)](https://github.com/als-controls/lightfall/actions/workflows/ci.yml)
69
+ [![Docs](https://github.com/als-controls/lightfall/actions/workflows/docs.yml/badge.svg)](https://als-controls.github.io/lightfall/)
70
+ [![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue.svg)](https://github.com/als-controls/lightfall/blob/master/pyproject.toml)
71
+ [![License: BSD-3-Clause](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](LICENSE.md)
72
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20545717.svg)](https://doi.org/10.5281/zenodo.20545717)
73
+ <!-- badges:end -->
74
+
75
+ A modern, unified control system for synchrotron lightsource facilities that provides facility-wide consistency with beamline-specific customization.
76
+
77
+ ## Overview
78
+
79
+ Lightfall is designed for the Advanced Light Source (ALS) facility, providing:
80
+
81
+ - **Unified Interface**: Consistent look-and-feel across beamlines with skinnable themes
82
+ - **API-First Architecture**: Modular, extensible design enabling automation and integration
83
+ - **LLM/AI Integration**: Claude-powered chatbot for natural language control and assistance
84
+ - **FAIR-Compliant Data Management**: Integration with Tiled for data cataloging and access
85
+ - **Secure Remote Operations**: Full remote operation capability with fine-grained access control
86
+
87
+ ## Features
88
+
89
+ ### User Interface
90
+ - Progressive disclosure: user panels with expert panels behind authorization
91
+ - Scripting panel with Jupyter-lab style interface
92
+ - LLM panel for controlling panels via natural language
93
+ - GUI Builder for drag-and-drop interface creation
94
+ - Persistent user preferences saved across sessions
95
+
96
+ ### Device Management
97
+ - Centralized device catalog with lifecycle tracking
98
+ - Real-time monitoring via EPICS Channel Access
99
+ - Version-controlled device configurations
100
+ - Rich high-level controls integrated into workflows
101
+
102
+ ### Data Acquisition
103
+ - Bluesky-based acquisition engine
104
+ - Flexible signal/stream selection with real-time visualization
105
+ - Interactive, pausable, restartable acquisition
106
+ - Automatic data persistence to Tiled catalog
107
+
108
+ ### Data Browser
109
+ - Browse and search data stored in Tiled server
110
+ - Filter by date range, plan type, exit status
111
+ - Pagination for large datasets
112
+ - Click/double-click signals for integration with analysis tools
113
+
114
+ ## Installation
115
+
116
+ ```bash
117
+ pip install lightfall
118
+ ```
119
+
120
+ ### BCS backend (ALS-internal)
121
+
122
+ The BCS device backend requires `bcsophyd-zmq`, which is distributed from ALS
123
+ GitLab rather than PyPI:
124
+
125
+ ```bash
126
+ pip install "bcsophyd @ git+https://git.als.lbl.gov/bcs/bluesky/bcsophyd-zmq"
127
+ ```
128
+
129
+ Without it, Lightfall runs normally; only the BCS backend is unavailable.
130
+
131
+ ### Development Installation
132
+
133
+ ```bash
134
+ # Clone the repository
135
+ git clone https://github.com/als-controls/lightfall.git
136
+ cd lightfall
137
+
138
+ # Create and activate virtual environment
139
+ python -m venv .venv
140
+ .venv\Scripts\activate # Windows
141
+ # or
142
+ source .venv/bin/activate # Unix
143
+
144
+ # Install in development mode with dev dependencies
145
+ pip install -e ".[dev]"
146
+ ```
147
+
148
+ ### Running the Application
149
+
150
+ ```bash
151
+ lightfall
152
+ ```
153
+
154
+ ## Configuration
155
+
156
+ Lightfall uses a layered configuration system:
157
+
158
+ 1. **System defaults** - Built-in defaults
159
+ 2. **Site configuration** - Facility-wide settings
160
+ 3. **User preferences** - Personal customizations
161
+
162
+ Configuration files are stored in:
163
+ - Windows: `%APPDATA%\lightfall\`
164
+ - Linux/Mac: `~/.config/lightfall/`
165
+
166
+ ## Architecture
167
+
168
+ Lightfall is built on:
169
+
170
+ - **PySide6** - Qt for Python GUI framework
171
+ - **Bluesky** - Data acquisition framework
172
+ - **Ophyd** - Device abstraction layer
173
+ - **Tiled** - Data catalog and access
174
+ - **EPICS** - Control system communication
175
+
176
+ ### Plugin System
177
+
178
+ Lightfall supports plugins for:
179
+ - **Panels** - Custom UI panels
180
+ - **Settings** - Preference pages
181
+ - **Status Bar** - Status indicators
182
+ - **Engines** - Acquisition backends
183
+ - **Plans** - Scan procedures
184
+
185
+ ## Development
186
+
187
+ ### Running Tests
188
+
189
+ ```bash
190
+ pytest
191
+ ```
192
+
193
+ ### Code Quality
194
+
195
+ ```bash
196
+ # Linting
197
+ ruff check src tests
198
+
199
+ # Type checking
200
+ mypy src
201
+ ```
202
+
203
+ ## Project Structure
204
+
205
+ ```
206
+ ncs/
207
+ ├── src/ncs/
208
+ │ ├── acquire/ # Data acquisition engine
209
+ │ ├── auth/ # Authentication & authorization
210
+ │ ├── config/ # Configuration management
211
+ │ ├── core/ # Core application classes
212
+ │ ├── devices/ # Device catalog & backends
213
+ │ ├── plugins/ # Plugin system
214
+ │ ├── services/ # Application services (Tiled, etc.)
215
+ │ ├── ui/ # User interface
216
+ │ │ ├── panels/ # Panel implementations
217
+ │ │ ├── widgets/ # Reusable widgets
218
+ │ │ ├── preferences/ # Settings UI
219
+ │ │ └── theme/ # Theming system
220
+ │ └── utils/ # Utilities
221
+ └── tests/ # Test suite
222
+ ```
223
+
@@ -0,0 +1,159 @@
1
+ # Lightfall
2
+
3
+ <!-- badges:start -->
4
+ [![CI](https://github.com/als-controls/lightfall/actions/workflows/ci.yml/badge.svg)](https://github.com/als-controls/lightfall/actions/workflows/ci.yml)
5
+ [![Docs](https://github.com/als-controls/lightfall/actions/workflows/docs.yml/badge.svg)](https://als-controls.github.io/lightfall/)
6
+ [![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue.svg)](https://github.com/als-controls/lightfall/blob/master/pyproject.toml)
7
+ [![License: BSD-3-Clause](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](LICENSE.md)
8
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20545717.svg)](https://doi.org/10.5281/zenodo.20545717)
9
+ <!-- badges:end -->
10
+
11
+ A modern, unified control system for synchrotron lightsource facilities that provides facility-wide consistency with beamline-specific customization.
12
+
13
+ ## Overview
14
+
15
+ Lightfall is designed for the Advanced Light Source (ALS) facility, providing:
16
+
17
+ - **Unified Interface**: Consistent look-and-feel across beamlines with skinnable themes
18
+ - **API-First Architecture**: Modular, extensible design enabling automation and integration
19
+ - **LLM/AI Integration**: Claude-powered chatbot for natural language control and assistance
20
+ - **FAIR-Compliant Data Management**: Integration with Tiled for data cataloging and access
21
+ - **Secure Remote Operations**: Full remote operation capability with fine-grained access control
22
+
23
+ ## Features
24
+
25
+ ### User Interface
26
+ - Progressive disclosure: user panels with expert panels behind authorization
27
+ - Scripting panel with Jupyter-lab style interface
28
+ - LLM panel for controlling panels via natural language
29
+ - GUI Builder for drag-and-drop interface creation
30
+ - Persistent user preferences saved across sessions
31
+
32
+ ### Device Management
33
+ - Centralized device catalog with lifecycle tracking
34
+ - Real-time monitoring via EPICS Channel Access
35
+ - Version-controlled device configurations
36
+ - Rich high-level controls integrated into workflows
37
+
38
+ ### Data Acquisition
39
+ - Bluesky-based acquisition engine
40
+ - Flexible signal/stream selection with real-time visualization
41
+ - Interactive, pausable, restartable acquisition
42
+ - Automatic data persistence to Tiled catalog
43
+
44
+ ### Data Browser
45
+ - Browse and search data stored in Tiled server
46
+ - Filter by date range, plan type, exit status
47
+ - Pagination for large datasets
48
+ - Click/double-click signals for integration with analysis tools
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ pip install lightfall
54
+ ```
55
+
56
+ ### BCS backend (ALS-internal)
57
+
58
+ The BCS device backend requires `bcsophyd-zmq`, which is distributed from ALS
59
+ GitLab rather than PyPI:
60
+
61
+ ```bash
62
+ pip install "bcsophyd @ git+https://git.als.lbl.gov/bcs/bluesky/bcsophyd-zmq"
63
+ ```
64
+
65
+ Without it, Lightfall runs normally; only the BCS backend is unavailable.
66
+
67
+ ### Development Installation
68
+
69
+ ```bash
70
+ # Clone the repository
71
+ git clone https://github.com/als-controls/lightfall.git
72
+ cd lightfall
73
+
74
+ # Create and activate virtual environment
75
+ python -m venv .venv
76
+ .venv\Scripts\activate # Windows
77
+ # or
78
+ source .venv/bin/activate # Unix
79
+
80
+ # Install in development mode with dev dependencies
81
+ pip install -e ".[dev]"
82
+ ```
83
+
84
+ ### Running the Application
85
+
86
+ ```bash
87
+ lightfall
88
+ ```
89
+
90
+ ## Configuration
91
+
92
+ Lightfall uses a layered configuration system:
93
+
94
+ 1. **System defaults** - Built-in defaults
95
+ 2. **Site configuration** - Facility-wide settings
96
+ 3. **User preferences** - Personal customizations
97
+
98
+ Configuration files are stored in:
99
+ - Windows: `%APPDATA%\lightfall\`
100
+ - Linux/Mac: `~/.config/lightfall/`
101
+
102
+ ## Architecture
103
+
104
+ Lightfall is built on:
105
+
106
+ - **PySide6** - Qt for Python GUI framework
107
+ - **Bluesky** - Data acquisition framework
108
+ - **Ophyd** - Device abstraction layer
109
+ - **Tiled** - Data catalog and access
110
+ - **EPICS** - Control system communication
111
+
112
+ ### Plugin System
113
+
114
+ Lightfall supports plugins for:
115
+ - **Panels** - Custom UI panels
116
+ - **Settings** - Preference pages
117
+ - **Status Bar** - Status indicators
118
+ - **Engines** - Acquisition backends
119
+ - **Plans** - Scan procedures
120
+
121
+ ## Development
122
+
123
+ ### Running Tests
124
+
125
+ ```bash
126
+ pytest
127
+ ```
128
+
129
+ ### Code Quality
130
+
131
+ ```bash
132
+ # Linting
133
+ ruff check src tests
134
+
135
+ # Type checking
136
+ mypy src
137
+ ```
138
+
139
+ ## Project Structure
140
+
141
+ ```
142
+ ncs/
143
+ ├── src/ncs/
144
+ │ ├── acquire/ # Data acquisition engine
145
+ │ ├── auth/ # Authentication & authorization
146
+ │ ├── config/ # Configuration management
147
+ │ ├── core/ # Core application classes
148
+ │ ├── devices/ # Device catalog & backends
149
+ │ ├── plugins/ # Plugin system
150
+ │ ├── services/ # Application services (Tiled, etc.)
151
+ │ ├── ui/ # User interface
152
+ │ │ ├── panels/ # Panel implementations
153
+ │ │ ├── widgets/ # Reusable widgets
154
+ │ │ ├── preferences/ # Settings UI
155
+ │ │ └── theme/ # Theming system
156
+ │ └── utils/ # Utilities
157
+ └── tests/ # Test suite
158
+ ```
159
+