lightfall 0.2.1__tar.gz → 0.3.0__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 (456) hide show
  1. {lightfall-0.2.1 → lightfall-0.3.0}/.gitignore +3 -0
  2. {lightfall-0.2.1 → lightfall-0.3.0}/PKG-INFO +10 -1
  3. {lightfall-0.2.1 → lightfall-0.3.0}/README.md +7 -0
  4. {lightfall-0.2.1 → lightfall-0.3.0}/pyproject.toml +7 -2
  5. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/_version.py +2 -2
  6. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plans/__init__.py +13 -0
  7. lightfall-0.3.0/src/lightfall/acquire/plans/stubs.py +72 -0
  8. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/skills_store.py +46 -0
  9. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/keycloak.py +17 -0
  10. lightfall-0.3.0/src/lightfall/config/layers.py +5 -0
  11. lightfall-0.3.0/src/lightfall/config/manager.py +34 -0
  12. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/core/application.py +3 -1
  13. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/backends/happi.py +94 -0
  14. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/backends/mock.py +78 -25
  15. lightfall-0.3.0/src/lightfall/devices/backends/mock_roster.py +398 -0
  16. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/base.py +19 -0
  17. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/catalog.py +36 -0
  18. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/model.py +6 -0
  19. lightfall-0.3.0/src/lightfall/devices/sim/actuators.py +158 -0
  20. lightfall-0.3.0/src/lightfall/epics/ca/context.py +5 -0
  21. lightfall-0.3.0/src/lightfall/epics/ca/pv.py +5 -0
  22. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/ophyd_base.py +18 -4
  23. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/ophyd_combobox.py +77 -0
  24. lightfall-0.3.0/src/lightfall/happi_backend/__init__.py +23 -0
  25. lightfall-0.3.0/src/lightfall/happi_backend/csm.py +491 -0
  26. lightfall-0.3.0/src/lightfall/plugins/agents/autonomous_experiment/plugin.py +101 -0
  27. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/autonomous_experiment/prompts.py +4 -3
  28. lightfall-0.3.0/src/lightfall/plugins/theme_plugin.py +22 -0
  29. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/tool_plugin.py +12 -0
  30. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/autonomous_experiment/SKILL.md +8 -7
  31. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/panel_design/references/panel_design.md +3 -0
  32. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/editors.py +2 -0
  33. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/items.py +105 -13
  34. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/models.py +16 -2
  35. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/panel.py +72 -7
  36. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/serialization.py +73 -0
  37. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/view.py +125 -2
  38. lightfall-0.3.0/src/lightfall/ui/theme/__init__.py +35 -0
  39. lightfall-0.3.0/src/lightfall/ui/theme/builtin.py +44 -0
  40. lightfall-0.3.0/src/lightfall/ui/theme/manager.py +13 -0
  41. lightfall-0.3.0/src/lightfall/ui/theme/registry.py +5 -0
  42. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/base.py +28 -28
  43. lightfall-0.3.0/src/lightfall/ui/widgets/flow_layout.py +148 -0
  44. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/signal_control.py +4 -1
  45. lightfall-0.3.0/src/lightfall/utils/caproto_shutdown.py +9 -0
  46. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/crash_diagnostics.py +7 -80
  47. lightfall-0.3.0/src/lightfall/utils/log_buffer.py +5 -0
  48. lightfall-0.3.0/src/lightfall/utils/logging.py +17 -0
  49. lightfall-0.3.0/src/lightfall/utils/threads.py +31 -0
  50. lightfall-0.2.1/src/lightfall/config/layers.py +0 -317
  51. lightfall-0.2.1/src/lightfall/config/manager.py +0 -244
  52. lightfall-0.2.1/src/lightfall/epics/ca/context.py +0 -100
  53. lightfall-0.2.1/src/lightfall/epics/ca/pv.py +0 -303
  54. lightfall-0.2.1/src/lightfall/plugins/agents/autonomous_experiment/plugin.py +0 -56
  55. lightfall-0.2.1/src/lightfall/plugins/theme_plugin.py +0 -165
  56. lightfall-0.2.1/src/lightfall/ui/theme/__init__.py +0 -26
  57. lightfall-0.2.1/src/lightfall/ui/theme/builtin.py +0 -737
  58. lightfall-0.2.1/src/lightfall/ui/theme/manager.py +0 -998
  59. lightfall-0.2.1/src/lightfall/ui/theme/registry.py +0 -195
  60. lightfall-0.2.1/src/lightfall/utils/caproto_shutdown.py +0 -90
  61. lightfall-0.2.1/src/lightfall/utils/log_buffer.py +0 -233
  62. lightfall-0.2.1/src/lightfall/utils/logging.py +0 -229
  63. lightfall-0.2.1/src/lightfall/utils/threads.py +0 -1057
  64. {lightfall-0.2.1 → lightfall-0.3.0}/LEGAL.md +0 -0
  65. {lightfall-0.2.1 → lightfall-0.3.0}/LICENSE.md +0 -0
  66. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/__init__.py +0 -0
  67. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/__main__.py +0 -0
  68. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/__init__.py +0 -0
  69. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/buffer.py +0 -0
  70. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/__init__.py +0 -0
  71. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/base.py +0 -0
  72. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/bluesky.py +0 -0
  73. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/console_proxy.py +0 -0
  74. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/mock.py +0 -0
  75. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/plugins/__init__.py +0 -0
  76. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/plugins/bluesky_plugin.py +0 -0
  77. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/plugins/mock_plugin.py +0 -0
  78. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/protocol.py +0 -0
  79. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/registry.py +0 -0
  80. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/state.py +0 -0
  81. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/engine/waiting_hook.py +0 -0
  82. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/nats_bridge.py +0 -0
  83. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plan_ui.py +0 -0
  84. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plans/adaptive.py +0 -0
  85. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plans/lightfall_plans.py +0 -0
  86. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plans/registry.py +0 -0
  87. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/plans/user_plans.py +0 -0
  88. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/runengine.py +0 -0
  89. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/signals.py +0 -0
  90. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/__init__.py +0 -0
  91. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/base.py +0 -0
  92. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/filter.py +0 -0
  93. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/manager.py +0 -0
  94. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/manual.py +0 -0
  95. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/run_end.py +0 -0
  96. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/acquire/triggers/run_start.py +0 -0
  97. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/__init__.py +0 -0
  98. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/assembly.py +0 -0
  99. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/builtin/.gitkeep +0 -0
  100. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/builtin/lightfall-dev.md +0 -0
  101. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/builtin/lightfall.md +0 -0
  102. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/builtin/observer.md +0 -0
  103. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/bus.py +0 -0
  104. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/bus_tools.py +0 -0
  105. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/drafts.py +0 -0
  106. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/registry.py +0 -0
  107. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/skill_tools.py +0 -0
  108. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/agents/spec.py +0 -0
  109. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/__init__.py +0 -0
  110. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/policy.py +0 -0
  111. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/provider_registry.py +0 -0
  112. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/__init__.py +0 -0
  113. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/base.py +0 -0
  114. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/builtin_plugins.py +0 -0
  115. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/local.py +0 -0
  116. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/providers/pam.py +0 -0
  117. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/service_key.py +0 -0
  118. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/service_key_auth.py +0 -0
  119. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/auth/session.py +0 -0
  120. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/__init__.py +0 -0
  121. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/_internal/__init__.py +0 -0
  122. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/_internal/serialization.py +0 -0
  123. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/_internal/threading.py +0 -0
  124. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/_internal/worker.py +0 -0
  125. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/_session_assembly.py +0 -0
  126. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/agent.py +0 -0
  127. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/bus_endpoint.py +0 -0
  128. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/cockpit.py +0 -0
  129. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/lightfall_core_tools.py +0 -0
  130. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/markdown.py +0 -0
  131. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/permission_manager.py +0 -0
  132. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/__init__.py +0 -0
  133. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/controller.py +0 -0
  134. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/interaction.py +0 -0
  135. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/introspection.py +0 -0
  136. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/logs.py +0 -0
  137. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/tools/screenshot.py +0 -0
  138. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/transcript.py +0 -0
  139. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/widget.py +0 -0
  140. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/widgets/__init__.py +0 -0
  141. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/widgets/permission_request.py +0 -0
  142. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/widgets/question_request.py +0 -0
  143. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/claude/widgets/task_card.py +0 -0
  144. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/config/__init__.py +0 -0
  145. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/config/schema.py +0 -0
  146. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/core/__init__.py +0 -0
  147. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/core/services.py +0 -0
  148. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/__init__.py +0 -0
  149. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/async_connect.py +0 -0
  150. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/backends/__init__.py +0 -0
  151. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/backends/bcs.py +0 -0
  152. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/connection_manager.py +0 -0
  153. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/sim/__init__.py +0 -0
  154. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/sim/areadetector.py +0 -0
  155. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/sim/generators.py +0 -0
  156. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/devices/sim/plugins.py +0 -0
  157. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/__init__.py +0 -0
  158. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/ca/__init__.py +0 -0
  159. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/__init__.py +0 -0
  160. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/areadetector/__init__.py +0 -0
  161. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/areadetector/areadetector.py +0 -0
  162. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/areadetector/controls.py +0 -0
  163. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/areadetector/image_view.py +0 -0
  164. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/auto.py +0 -0
  165. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/base.py +0 -0
  166. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/checkbox.py +0 -0
  167. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/combobox.py +0 -0
  168. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/label.py +0 -0
  169. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/lineedit.py +0 -0
  170. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/motor.py +0 -0
  171. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/ophyd_label.py +0 -0
  172. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/ophyd_lineedit.py +0 -0
  173. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/ophyd_spinbox.py +0 -0
  174. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/slider.py +0 -0
  175. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/status_indicator.py +0 -0
  176. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/epics/widgets/style.py +0 -0
  177. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/__init__.py +0 -0
  178. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/cli.py +0 -0
  179. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/converters/__init__.py +0 -0
  180. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/converters/base.py +0 -0
  181. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/converters/noop.py +0 -0
  182. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/converters/nxsas.py +0 -0
  183. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/service.py +0 -0
  184. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/exporter/tiled_utils.py +0 -0
  185. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ipc/__init__.py +0 -0
  186. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ipc/local_server.py +0 -0
  187. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ipc/service.py +0 -0
  188. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ipc/trust.py +0 -0
  189. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/__init__.py +0 -0
  190. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/action_logger.py +0 -0
  191. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/client.py +0 -0
  192. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/entry_widget.py +0 -0
  193. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/event_listener.py +0 -0
  194. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/fragment_widgets.py +0 -0
  195. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/live_updates.py +0 -0
  196. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/style.py +0 -0
  197. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/logbook/url.py +0 -0
  198. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/main.py +0 -0
  199. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/__init__.py +0 -0
  200. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/advisor.py +0 -0
  201. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/buffer.py +0 -0
  202. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/context_provider.py +0 -0
  203. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/data_window.py +0 -0
  204. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/feed.py +0 -0
  205. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/feeds/__init__.py +0 -0
  206. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/feeds/acquisition_health.py +0 -0
  207. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/models.py +0 -0
  208. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/monitor_plugin.py +0 -0
  209. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/rate_limiter.py +0 -0
  210. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/registry.py +0 -0
  211. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/scheduler.py +0 -0
  212. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/monitor/service.py +0 -0
  213. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/pipelines/__init__.py +0 -0
  214. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/pipelines/client.py +0 -0
  215. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/__init__.py +0 -0
  216. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/__init__.py +0 -0
  217. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/_mcp_helpers.py +0 -0
  218. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/alignment.py +0 -0
  219. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/autonomous_experiment/__init__.py +0 -0
  220. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/autonomous_experiment/nats_tools.py +0 -0
  221. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/current_esaf.py +0 -0
  222. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/device_tools.py +0 -0
  223. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/engine_tools.py +0 -0
  224. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/ipython_tools.py +0 -0
  225. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/panel_builder.py +0 -0
  226. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/panel_design.py +0 -0
  227. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/plan_design.py +0 -0
  228. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/plan_tools.py +0 -0
  229. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/agents/scan_planning.py +0 -0
  230. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/auth_provider_plugin.py +0 -0
  231. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/builtin_manifest.py +0 -0
  232. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/controller_plugin.py +0 -0
  233. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/device_backend_plugin.py +0 -0
  234. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/engine_plugin.py +0 -0
  235. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/errors.py +0 -0
  236. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/happi_database_plugin.py +0 -0
  237. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/info.py +0 -0
  238. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/loader.py +0 -0
  239. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/manifest.py +0 -0
  240. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/panel_plugin.py +0 -0
  241. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/plan_plugin.py +0 -0
  242. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/registry.py +0 -0
  243. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/settings_plugin.py +0 -0
  244. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/statusbar_plugin.py +0 -0
  245. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/types.py +0 -0
  246. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/user_plugins.py +0 -0
  247. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/plugins/visualization_plugin.py +0 -0
  248. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/remote/__init__.py +0 -0
  249. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/remote/protocol.py +0 -0
  250. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/remote/service.py +0 -0
  251. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/resources/__init__.py +0 -0
  252. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/resources/images/__init__.py +0 -0
  253. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/resources/images/icon.ico +0 -0
  254. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/resources/images/icon.png +0 -0
  255. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/resources/images/logo.png +0 -0
  256. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/__init__.py +0 -0
  257. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/_alshub_client.py +0 -0
  258. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/access_stamper.py +0 -0
  259. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/als_beam_status.py +0 -0
  260. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/ca_tunnel.py +0 -0
  261. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/caproxy_lease_service.py +0 -0
  262. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/shussebora_monitor.py +0 -0
  263. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/threaded_tiled_writer.py +0 -0
  264. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/tiled_auth.py +0 -0
  265. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/tiled_service.py +0 -0
  266. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/services/tiled_writer_patch.py +0 -0
  267. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/settings/__init__.py +0 -0
  268. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/settings/image_helpers.py +0 -0
  269. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/settings/user_settings_client.py +0 -0
  270. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/alignment/SKILL.md +0 -0
  271. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/current_esaf/SKILL.md +0 -0
  272. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/panel_builder/SKILL.md +0 -0
  273. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/panel_design/SKILL.md +0 -0
  274. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/panel_design/references/cross_panel_patterns.md +0 -0
  275. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/plan_design/SKILL.md +0 -0
  276. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/plan_design/references/plan_design.md +0 -0
  277. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/skills/builtin/scan_planning/SKILL.md +0 -0
  278. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/__init__.py +0 -0
  279. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/annotations.py +0 -0
  280. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/common/__init__.py +0 -0
  281. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/__init__.py +0 -0
  282. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/about_dialog.py +0 -0
  283. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/add_trigger_dialog.py +0 -0
  284. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/base.py +0 -0
  285. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/bug_report_dialog.py +0 -0
  286. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/create_plan_dialog.py +0 -0
  287. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/device_edit_dialog.py +0 -0
  288. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/export_dialog.py +0 -0
  289. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/go_to_position_dialog.py +0 -0
  290. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/lease_request_dialog.py +0 -0
  291. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/login_dialog.py +0 -0
  292. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/oauth_browser_dialog.py +0 -0
  293. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/run_pipeline_dialog.py +0 -0
  294. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/dialogs/sample_metadata_dialog.py +0 -0
  295. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/__init__.py +0 -0
  296. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/icon_sidebar.py +0 -0
  297. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/manager.py +0 -0
  298. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/state.py +0 -0
  299. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/theme.py +0 -0
  300. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/docking/widget.py +0 -0
  301. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/events.py +0 -0
  302. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/mainwindow.py +0 -0
  303. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/models/__init__.py +0 -0
  304. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/models/device_selection.py +0 -0
  305. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/models/device_tree.py +0 -0
  306. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/models/thread_model.py +0 -0
  307. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/models/tiled_model.py +0 -0
  308. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/__init__.py +0 -0
  309. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/agent_editor/__init__.py +0 -0
  310. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/agent_editor/models.py +0 -0
  311. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/agent_editor/panel.py +0 -0
  312. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/agent_editor/plugin.py +0 -0
  313. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/base.py +0 -0
  314. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/bluesky_panel.py +0 -0
  315. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/claude/__init__.py +0 -0
  316. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/claude/agent_picker.py +0 -0
  317. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/claude/agent_session_tab.py +0 -0
  318. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/claude/tool_registry.py +0 -0
  319. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/claude_panel.py +0 -0
  320. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/device_panel.py +0 -0
  321. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/documents_panel.py +0 -0
  322. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/ipython_panel.py +0 -0
  323. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/logbook_entries_panel.py +0 -0
  324. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/logbook_panel.py +0 -0
  325. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/logging_panel.py +0 -0
  326. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/monitor_panel.py +0 -0
  327. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/pipeline_jobs_panel.py +0 -0
  328. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/pipeline_triggers_panel.py +0 -0
  329. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/__init__.py +0 -0
  330. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/bluesky_plugin.py +0 -0
  331. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/claude_plugin.py +0 -0
  332. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/device_plugin.py +0 -0
  333. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/documents_plugin.py +0 -0
  334. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/ipython_plugin.py +0 -0
  335. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/logbook_entries_plugin.py +0 -0
  336. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/logbook_plugin.py +0 -0
  337. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/logging_plugin.py +0 -0
  338. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/monitor_panel_plugin.py +0 -0
  339. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/pipeline_jobs_plugin.py +0 -0
  340. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/pipeline_triggers_plugin.py +0 -0
  341. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/queue_plugin.py +0 -0
  342. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/shussebora_plugin.py +0 -0
  343. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/synoptic_plugin.py +0 -0
  344. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/threads_plugin.py +0 -0
  345. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/tiled_browser_plugin.py +0 -0
  346. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/plugins/visualization_plugin.py +0 -0
  347. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/queue.py +0 -0
  348. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/registry.py +0 -0
  349. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/shussebora_panel.py +0 -0
  350. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/synoptic/__init__.py +0 -0
  351. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/threads_panel.py +0 -0
  352. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/tiled_browser_panel.py +0 -0
  353. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/panels/visualization_panel.py +0 -0
  354. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/__init__.py +0 -0
  355. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/backend.py +0 -0
  356. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/builtin.py +0 -0
  357. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/claude_settings.py +0 -0
  358. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/device_settings.py +0 -0
  359. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/dialog.py +0 -0
  360. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/editor_settings.py +0 -0
  361. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/ipc_settings.py +0 -0
  362. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/logbook_settings.py +0 -0
  363. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/login_settings.py +0 -0
  364. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/manager.py +0 -0
  365. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/monitor_settings.py +0 -0
  366. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/plugin_settings.py +0 -0
  367. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/proxy_settings.py +0 -0
  368. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/tiled_settings.py +0 -0
  369. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/tool_settings.py +0 -0
  370. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/user_portable_backend.py +0 -0
  371. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/user_profile_settings.py +0 -0
  372. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/preferences/visualization_settings.py +0 -0
  373. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/resources/__init__.py +0 -0
  374. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/resources/logo.png +0 -0
  375. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/__init__.py +0 -0
  376. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/manager.py +0 -0
  377. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/__init__.py +0 -0
  378. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/als_beam_status.py +0 -0
  379. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/caproxy_lease_status.py +0 -0
  380. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/nats_status.py +0 -0
  381. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/shussebora_status.py +0 -0
  382. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/thread_status.py +0 -0
  383. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/tiled_status.py +0 -0
  384. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/statusbar/plugins/user_status.py +0 -0
  385. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/theater/__init__.py +0 -0
  386. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/theater/manager.py +0 -0
  387. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/theater/overlay.py +0 -0
  388. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/theater/proxy.py +0 -0
  389. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/toast.py +0 -0
  390. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/tutorial.py +0 -0
  391. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/__init__.py +0 -0
  392. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/base_control.py +0 -0
  393. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/__init__.py +0 -0
  394. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/dark_frames.py +0 -0
  395. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/image_view.py +0 -0
  396. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/panels/__init__.py +0 -0
  397. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/panels/cooler.py +0 -0
  398. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/panels/temperature.py +0 -0
  399. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/camera/plan_based.py +0 -0
  400. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/compact_motor.py +0 -0
  401. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/controller_matcher.py +0 -0
  402. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/controller_registry.py +0 -0
  403. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/device_control.py +0 -0
  404. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/device_selector.py +0 -0
  405. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/device_tree_tab.py +0 -0
  406. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/document_stream.py +0 -0
  407. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/favorites_tab.py +0 -0
  408. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/motor_control.py +0 -0
  409. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/observers/__init__.py +0 -0
  410. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/observers/camera.py +0 -0
  411. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/observers/image_view.py +0 -0
  412. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/plan_config.py +0 -0
  413. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/plan_edit_dialog.py +0 -0
  414. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/plan_selector.py +0 -0
  415. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/profile_avatar.py +0 -0
  416. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/queue_view.py +0 -0
  417. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/runengine_control.py +0 -0
  418. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/skill_trigger_button.py +0 -0
  419. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/tiled_filter_widget.py +0 -0
  420. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/ui/widgets/warning_banner.py +0 -0
  421. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/__init__.py +0 -0
  422. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/data_migration.py +0 -0
  423. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/editor_launcher.py +0 -0
  424. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/error_collector.py +0 -0
  425. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/git_tracker.py +0 -0
  426. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/module_resolver.py +0 -0
  427. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/sentry.py +0 -0
  428. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/utils/tiled_helpers.py +0 -0
  429. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/__init__.py +0 -0
  430. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/base.py +0 -0
  431. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/base_visualization.py +0 -0
  432. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/fitting/__init__.py +0 -0
  433. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/fitting/base.py +0 -0
  434. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/fitting/fitters.py +0 -0
  435. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/fitting/panel.py +0 -0
  436. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/pg.py +0 -0
  437. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/reduction_engine.py +0 -0
  438. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/reductions.py +0 -0
  439. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/registry.py +0 -0
  440. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/scan_geometry.py +0 -0
  441. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/spec.py +0 -0
  442. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/stream_bridge.py +0 -0
  443. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/theme.py +0 -0
  444. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/__init__.py +0 -0
  445. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/adaptive/__init__.py +0 -0
  446. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/adaptive/heatmap.py +0 -0
  447. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/adaptive/plot.py +0 -0
  448. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/heatmap.py +0 -0
  449. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/image_stack.py +0 -0
  450. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/image_view_toolbar.py +0 -0
  451. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/lazy_image_view.py +0 -0
  452. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/plot_1d.py +0 -0
  453. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/scan_viewer.py +0 -0
  454. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/scatter.py +0 -0
  455. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/table.py +0 -0
  456. {lightfall-0.2.1 → lightfall-0.3.0}/src/lightfall/visualization/widgets/time_axis.py +0 -0
@@ -116,3 +116,6 @@ src/lightfall/logs/
116
116
  docs/investigations/
117
117
  docs/plans/
118
118
  docs/superpowers/
119
+
120
+ # superpowers skill scratch workspaces
121
+ .superpowers/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lightfall
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: Lightfall - control system for the ALS facility
5
5
  Project-URL: Homepage, https://github.com/als-controls/lightfall
6
6
  Project-URL: Documentation, https://als-controls.github.io/lightfall
@@ -30,10 +30,12 @@ Requires-Dist: h5py>=3.0
30
30
  Requires-Dist: happi>=2.0
31
31
  Requires-Dist: httpx[socks]>=0.27
32
32
  Requires-Dist: ipykernel>=6.0
33
+ Requires-Dist: lightfall-utils>=0.1.0
33
34
  Requires-Dist: loguru>=0.7
34
35
  Requires-Dist: mistune>=3.0
35
36
  Requires-Dist: nats-py>=2.0
36
37
  Requires-Dist: netifaces>=0.11; sys_platform != 'darwin'
38
+ Requires-Dist: ophyd-async>=0.19
37
39
  Requires-Dist: ophyd>=1.7
38
40
  Requires-Dist: psutil>=5.9
39
41
  Requires-Dist: pydantic>=2.0
@@ -137,6 +139,13 @@ source .venv/bin/activate # Unix
137
139
  pip install -e ".[dev]"
138
140
  ```
139
141
 
142
+ Lightfall depends on [`lightfall-utils`](https://github.com/als-controls/lightfall-utils) (installed from PyPI like any other dependency). To co-develop both packages, install a sibling checkout in editable mode on top:
143
+
144
+ ```bash
145
+ git clone https://github.com/als-controls/lightfall-utils.git ../lightfall-utils
146
+ pip install -e ../lightfall-utils
147
+ ```
148
+
140
149
  ### Running the Application
141
150
 
142
151
  ```bash
@@ -70,6 +70,13 @@ source .venv/bin/activate # Unix
70
70
  pip install -e ".[dev]"
71
71
  ```
72
72
 
73
+ Lightfall depends on [`lightfall-utils`](https://github.com/als-controls/lightfall-utils) (installed from PyPI like any other dependency). To co-develop both packages, install a sibling checkout in editable mode on top:
74
+
75
+ ```bash
76
+ git clone https://github.com/als-controls/lightfall-utils.git ../lightfall-utils
77
+ pip install -e ../lightfall-utils
78
+ ```
79
+
73
80
  ### Running the Application
74
81
 
75
82
  ```bash
@@ -53,6 +53,7 @@ dependencies = [
53
53
  # acquire
54
54
  "bluesky>=1.10",
55
55
  "ophyd>=1.7",
56
+ "ophyd-async>=0.19",
56
57
  # tiled
57
58
  "tiled[client]>=0.2.5",
58
59
  "bluesky-tiled-plugins>=2.0",
@@ -72,6 +73,7 @@ dependencies = [
72
73
  "claude-agent-sdk>=0.2.93",
73
74
  "happi>=2.0",
74
75
  "nats-py>=2.0",
76
+ "lightfall-utils>=0.1.0",
75
77
  ]
76
78
 
77
79
  [project.optional-dependencies]
@@ -147,7 +149,7 @@ ignore = [
147
149
  ]
148
150
 
149
151
  [tool.ruff.lint.isort]
150
- known-first-party = ["lightfall"]
152
+ known-first-party = ["lightfall", "lightfall_utils"]
151
153
 
152
154
  [tool.mypy]
153
155
  python_version = "3.11"
@@ -185,7 +187,7 @@ bundle = "gov.lbl.als"
185
187
  # Hand-maintained: briefcase cannot read the hatch-vcs version, so this must be
186
188
  # bumped alongside every release tag. When it drifts, the installers attached to
187
189
  # a release carry the stale number while the wheel carries the tag's.
188
- version = "0.2.1"
190
+ version = "0.3.0"
189
191
  url = "https://als.lbl.gov"
190
192
  author = "ALS Controls Team"
191
193
  author_email = "controls@lbl.gov"
@@ -232,6 +234,7 @@ requires = [
232
234
  # Data acquisition
233
235
  "bluesky>=1.10",
234
236
  "ophyd>=1.7",
237
+ "ophyd-async>=0.19",
235
238
  "happi>=2.0",
236
239
  "h5py>=3.0",
237
240
  "tiled[client]>=0.2.5",
@@ -257,6 +260,7 @@ requires = [
257
260
  "bidict>=0.23",
258
261
 
259
262
  "claude-agent-sdk>=0.2.93",
263
+ "lightfall-utils>=0.1.0",
260
264
  ]
261
265
 
262
266
  [tool.briefcase.app.lightfall.macOS]
@@ -274,3 +278,4 @@ requires = []
274
278
  [tool.briefcase.app.lightfall.linux]
275
279
  requires = []
276
280
  system_requires = []
281
+
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.2.1'
22
- __version_tuple__ = version_tuple = (0, 2, 1)
21
+ __version__ = version = '0.3.0'
22
+ __version_tuple__ = version_tuple = (0, 3, 0)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -19,6 +19,13 @@ from lightfall.acquire.plans.registry import (
19
19
  get_registry,
20
20
  name_to_display_name,
21
21
  )
22
+ from lightfall.acquire.plans.stubs import (
23
+ IMAGE_MODE_CONTINUOUS,
24
+ IMAGE_MODE_MULTIPLE,
25
+ IMAGE_MODE_SINGLE,
26
+ set_image_mode,
27
+ set_multiple_mode,
28
+ )
22
29
  from lightfall.acquire.plans.user_plans import UserPlanService
23
30
 
24
31
  __all__ = [
@@ -33,6 +40,12 @@ __all__ = [
33
40
  # NCS plans
34
41
  "scan_1d",
35
42
  "rel_scan_1d",
43
+ # Shared plan stubs
44
+ "set_image_mode",
45
+ "set_multiple_mode",
46
+ "IMAGE_MODE_SINGLE",
47
+ "IMAGE_MODE_MULTIPLE",
48
+ "IMAGE_MODE_CONTINUOUS",
36
49
  # User plans
37
50
  "UserPlanService",
38
51
  ]
@@ -0,0 +1,72 @@
1
+ """Reusable Bluesky plan stubs shared across built-in and user plans.
2
+
3
+ These helpers exist so plans can assert the hardware state they require at
4
+ their start instead of relying on a device's staged defaults. In particular,
5
+ area-detector image mode is no longer forced at stage time (see the PIMTE3
6
+ device class), so every plan is responsible for selecting the image mode it
7
+ needs:
8
+
9
+ - Step / list / grid scans that read one (or a few) frames per point want
10
+ "Multiple" mode -- call :func:`set_multiple_mode` at the top of the plan.
11
+ - Free-running acquisition (``continuous_acquire``) sets "Continuous" itself.
12
+
13
+ The helpers are intentionally permissive: any detector lacking a
14
+ ``cam.image_mode`` signal (scalars, simulated detectors, non-area-detectors)
15
+ is skipped, so they are safe to call with a heterogeneous detector list.
16
+ """
17
+
18
+ from __future__ import annotations
19
+
20
+ from collections.abc import Generator
21
+ from typing import Any
22
+
23
+ import bluesky.plan_stubs as bps
24
+
25
+ # AreaDetector ImageMode mbbo enum indices: ('Single', 'Multiple', 'Continuous').
26
+ IMAGE_MODE_SINGLE = 0
27
+ IMAGE_MODE_MULTIPLE = 1
28
+ IMAGE_MODE_CONTINUOUS = 2
29
+
30
+
31
+ def _iter_detectors(detectors: Any) -> list[Any]:
32
+ """Normalize a single detector or a list/tuple of them to a list."""
33
+ if detectors is None:
34
+ return []
35
+ if isinstance(detectors, (list, tuple, set)):
36
+ return list(detectors)
37
+ return [detectors]
38
+
39
+
40
+ def set_image_mode(detectors: Any, mode: int) -> Generator[Any, Any, None]:
41
+ """Set ``cam.image_mode`` on every detector that supports it.
42
+
43
+ Args:
44
+ detectors: A single detector or a list/tuple of detectors. Entries
45
+ without a ``cam.image_mode`` signal are silently skipped.
46
+ mode: Target image-mode enum index (see ``IMAGE_MODE_*`` constants).
47
+
48
+ Yields:
49
+ Bluesky plan messages (one ``mv`` per supporting detector).
50
+ """
51
+ targets = [
52
+ image_mode
53
+ for det in _iter_detectors(detectors)
54
+ if (image_mode := getattr(getattr(det, "cam", None), "image_mode", None))
55
+ is not None
56
+ ]
57
+ if targets:
58
+ # Flatten alternating (signal, value) pairs for a single grouped move.
59
+ args: list[Any] = []
60
+ for image_mode in targets:
61
+ args.extend((image_mode, mode))
62
+ yield from bps.mv(*args)
63
+
64
+
65
+ def set_multiple_mode(detectors: Any) -> Generator[Any, Any, None]:
66
+ """Put any area detectors into "Multiple" image mode.
67
+
68
+ Convenience wrapper around :func:`set_image_mode`. Call this at the start
69
+ of a step/list/grid-scan plan so the camera is guaranteed not to be left
70
+ free-running in "Continuous" mode (which hangs ``SingleTrigger``).
71
+ """
72
+ yield from set_image_mode(detectors, IMAGE_MODE_MULTIPLE)
@@ -75,6 +75,41 @@ def plugin_skill_dirs() -> dict[str, Path]:
75
75
  return dirs
76
76
 
77
77
 
78
+ def plugin_extra_skill_dirs() -> dict[str, Path]:
79
+ """Independently-loadable skills contributed by *enabled* ToolPlugins via
80
+ ``get_extra_skill_dirs()``, keyed by skill name.
81
+
82
+ These are skills a plugin sources from its own dependencies (e.g. gpCAM's
83
+ design skills) rather than from a Lightfall skills root. Dirs missing
84
+ SKILL.md are skipped with a warning. Returns {} if the ToolRegistry is
85
+ unavailable (e.g. headless tooling).
86
+ """
87
+ try:
88
+ from lightfall.ui.panels.claude.tool_registry import ToolRegistry
89
+
90
+ plugins = ToolRegistry.get_instance().enabled_plugins()
91
+ except Exception as exc: # noqa: BLE001 - skills must resolve without the registry
92
+ logger.debug("plugin_extra_skill_dirs: ToolRegistry unavailable: {}", exc)
93
+ return {}
94
+
95
+ dirs: dict[str, Path] = {}
96
+ for plugin in plugins:
97
+ try:
98
+ extra = plugin.get_extra_skill_dirs()
99
+ except Exception as exc: # noqa: BLE001 - one bad plugin must not break the rest
100
+ logger.warning("plugin '{}': get_extra_skill_dirs() failed: {}", plugin.name, exc)
101
+ continue
102
+ for skill_name, skill_dir in (extra or {}).items():
103
+ if not (Path(skill_dir) / "SKILL.md").is_file():
104
+ logger.warning(
105
+ "plugin '{}': extra skill '{}' dir {} has no SKILL.md; skipping",
106
+ plugin.name, skill_name, skill_dir,
107
+ )
108
+ continue
109
+ dirs[skill_name] = Path(skill_dir)
110
+ return dirs
111
+
112
+
78
113
  def _iter_skill_dirs(root: Path):
79
114
  if not root.is_dir():
80
115
  return
@@ -172,6 +207,17 @@ def materialize_skills(
172
207
  _resolve_skill_md_template(dest / "SKILL.md", effective_variables)
173
208
  materialized.append(name)
174
209
 
210
+ # Extra skills contributed by enabled plugins from their own dependencies
211
+ # (e.g. gpCAM's design skills). Materialized under their own names so the
212
+ # Skill tool can lazy-load them. Explicit `names` take precedence.
213
+ for skill_name, src in plugin_extra_skill_dirs().items():
214
+ if skill_name in materialized:
215
+ continue
216
+ dest = dest_root / skill_name
217
+ shutil.copytree(src, dest, dirs_exist_ok=True)
218
+ _resolve_skill_md_template(dest / "SKILL.md", effective_variables)
219
+ materialized.append(skill_name)
220
+
175
221
  return materialized
176
222
 
177
223
 
@@ -816,6 +816,23 @@ class KeycloakAuthProvider(AuthProvider):
816
816
  roles.add(Role(base))
817
817
  except ValueError:
818
818
  pass
819
+ # ALS/NCS beamline-scoped roles use a "<role>:<beamline>" convention
820
+ # (e.g. "staff:7.0.1.1"). Map on the base role name, ignoring the
821
+ # beamline scope suffix. An optional org prefix on the scoped name
822
+ # (e.g. "als-staff:7.0.1.1") is stripped too.
823
+ if ":" in claim_lower:
824
+ base = claim_lower.split(":", 1)[0]
825
+ for prefix in ("ncs-", "als-"):
826
+ if base.startswith(prefix):
827
+ base = base[len(prefix) :]
828
+ break
829
+ if base in self._role_mapping:
830
+ roles.add(self._role_mapping[base])
831
+ else:
832
+ try:
833
+ roles.add(Role(base))
834
+ except ValueError:
835
+ pass
819
836
 
820
837
  # Default to USER if authenticated but no specific role
821
838
  if not roles:
@@ -0,0 +1,5 @@
1
+ """Compatibility shim: layered config machinery now lives in lightfall-utils."""
2
+
3
+ from lightfall_utils.config.layers import ConfigLayer, ConfigPriority, LayeredConfig # noqa: F401
4
+
5
+ __all__ = ["ConfigLayer", "ConfigPriority", "LayeredConfig"]
@@ -0,0 +1,34 @@
1
+ """Lightfall's ConfigManager: lightfall-utils machinery bound to the LFConfig schema."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+ from typing import Any
7
+
8
+ from lightfall.config.schema import LFConfig
9
+ from lightfall_utils.config.manager import ConfigManager as _BaseConfigManager
10
+
11
+
12
+ def _lightfall_defaults_path() -> Path | None:
13
+ """Repo-root config/defaults — present in source checkouts, absent in wheels."""
14
+ candidate = Path(__file__).parent.parent.parent.parent / "config" / "defaults"
15
+ return candidate if candidate.is_dir() else None
16
+
17
+
18
+ class ConfigManager(_BaseConfigManager):
19
+ """ConfigManager preconfigured for Lightfall.
20
+
21
+ app_name stays "ncs" so existing user configs (~/.config/ncs,
22
+ %APPDATA%\\ncs, /etc/ncs) keep working.
23
+ """
24
+
25
+ def __init__(self, **kwargs: Any) -> None:
26
+ kwargs.setdefault("model_class", LFConfig)
27
+ kwargs.setdefault("app_name", "ncs")
28
+ kwargs.setdefault("defaults_path", _lightfall_defaults_path())
29
+ super().__init__(**kwargs)
30
+
31
+ @property
32
+ def model(self) -> LFConfig:
33
+ """The validated configuration model, typed as LFConfig."""
34
+ return super().model # type: ignore[return-value]
@@ -203,7 +203,9 @@ class LFApplication(QObject):
203
203
  self._set_state(ApplicationState.INITIALIZING)
204
204
 
205
205
  # Configure logging first
206
- configure_logging(level=log_level, log_file=log_file)
206
+ configure_logging(
207
+ level=log_level, log_file=log_file, mute_debug_modules=("bcsophyd",)
208
+ )
207
209
  logger.info("Initializing Lightfall application")
208
210
 
209
211
  # NOTE: Windows AppUserModelID is set in main.py BEFORE any Qt imports.
@@ -56,6 +56,34 @@ _HAPPI_NATIVE_KEYS = {
56
56
  "prefix", "beamline", "documentation",
57
57
  }
58
58
 
59
+ # Extraneous keys consumed into first-class DeviceInfo fields — everything
60
+ # else in extraneous is user metadata and must surface in metadata top-level.
61
+ _CONSUMED_EXTRANEOUS_KEYS = {
62
+ "prefix", "display_name", "icon_override", "group", "location",
63
+ "beamline", "lightfall_scope", "scope_metadata",
64
+ }
65
+
66
+
67
+ def _lift_extraneous(metadata: dict[str, Any], extraneous: dict[str, Any]) -> None:
68
+ """Surface custom extraneous keys (e.g. 'synoptic') into metadata.
69
+
70
+ Both loader sites store happi's native field values into ``metadata``
71
+ directly, but Lightfall-specific extras written by :meth:`update_device`
72
+ land in ``item.extraneous`` and were previously left there (or nested
73
+ under a hardcoded key set) — meaning a round-tripped ``synoptic`` key
74
+ never reappeared at ``metadata["synoptic"]``. This lifts every
75
+ non-consumed, non-native extraneous key up to the top level so what
76
+ was written is what comes back.
77
+ """
78
+ for key, value in extraneous.items():
79
+ if key.startswith("_") or key in _CONSUMED_EXTRANEOUS_KEYS:
80
+ continue
81
+ if key in _HAPPI_NATIVE_KEYS:
82
+ continue
83
+ metadata.setdefault(key, value)
84
+ metadata.pop("extraneous", None)
85
+
86
+
59
87
  _FUNC_GROUP_CATEGORY_MAP: dict[str, DeviceCategory] = {
60
88
  "motor": DeviceCategory.MOTOR,
61
89
  "positioner": DeviceCategory.MOTOR,
@@ -329,6 +357,12 @@ class HappiBackend(DeviceBackend):
329
357
  """Create DeviceInfo from a happi SearchResult."""
330
358
  item = result.item if hasattr(result, "item") else result
331
359
 
360
+ # Scope pseudo-items (created by update_scope_metadata) carry
361
+ # non-device metadata and must never surface as devices.
362
+ extraneous_probe = getattr(item, "extraneous", {}) or {}
363
+ if "lightfall_scope" in extraneous_probe:
364
+ return
365
+
332
366
  item_name = getattr(item, "name", str(item))
333
367
  device_class = getattr(item, "device_class", "") or ""
334
368
  beamline = getattr(item, "beamline", self._beamline) or self._beamline or ""
@@ -361,6 +395,7 @@ class HappiBackend(DeviceBackend):
361
395
 
362
396
  # Read Lightfall-specific fields from extraneous or metadata
363
397
  extraneous = getattr(item, "extraneous", {}) or {}
398
+ _lift_extraneous(metadata, extraneous)
364
399
  # prefix may be a native happi field OR stored in extraneous (Lightfall write-through)
365
400
  prefix = getattr(item, "prefix", "") or extraneous.get("prefix", "") or ""
366
401
  display_name = extraneous.get("display_name", "") or metadata.get("display_name", "") or ""
@@ -714,6 +749,12 @@ class HappiBackend(DeviceBackend):
714
749
  """
715
750
  item = result.item if hasattr(result, "item") else result
716
751
 
752
+ # Scope pseudo-items (created by update_scope_metadata) carry
753
+ # non-device metadata and must never surface as devices.
754
+ extraneous_probe = getattr(item, "extraneous", {}) or {}
755
+ if "lightfall_scope" in extraneous_probe:
756
+ return None
757
+
717
758
  item_name = getattr(item, "name", str(item))
718
759
  device_class = getattr(item, "device_class", "") or ""
719
760
  beamline = getattr(item, "beamline", self._beamline) or self._beamline or ""
@@ -748,6 +789,7 @@ class HappiBackend(DeviceBackend):
748
789
 
749
790
  # Read Lightfall-specific fields from extraneous or metadata
750
791
  extraneous = getattr(item, "extraneous", {}) or {}
792
+ _lift_extraneous(metadata, extraneous)
751
793
  prefix = getattr(item, "prefix", "") or extraneous.get("prefix", "") or ""
752
794
  display_name = extraneous.get("display_name", "") or metadata.get("display_name", "") or ""
753
795
  icon_override = extraneous.get("icon_override", "") or metadata.get("icon_override", "") or ""
@@ -993,6 +1035,58 @@ class HappiBackend(DeviceBackend):
993
1035
  logger.error("Failed to remove device '{}': {}", device.name, e)
994
1036
  return False
995
1037
 
1038
+ # === Scope Metadata (non-device metadata) ===
1039
+
1040
+ @staticmethod
1041
+ def _scope_item_name(scope: str) -> str:
1042
+ # happi item names must be Python-identifier-like; ':' is not allowed.
1043
+ return "_scope_" + scope.replace(":", "__")
1044
+
1045
+ def get_scope_metadata(self, scope: str) -> dict[str, Any] | None:
1046
+ if self._client is None:
1047
+ return None
1048
+ try:
1049
+ results = self._client.search(name=self._scope_item_name(scope))
1050
+ if not results:
1051
+ return None
1052
+ item = results[0].item
1053
+ extraneous = getattr(item, "extraneous", {}) or {}
1054
+ if extraneous.get("lightfall_scope") != scope:
1055
+ return None
1056
+ return extraneous.get("scope_metadata")
1057
+ except Exception as e:
1058
+ logger.warning("get_scope_metadata('{}') failed: {}", scope, e)
1059
+ return None
1060
+
1061
+ def update_scope_metadata(self, scope: str, metadata: dict[str, Any]) -> bool:
1062
+ if self._client is None or not self.is_editable:
1063
+ return False
1064
+ try:
1065
+ import happi
1066
+
1067
+ name = self._scope_item_name(scope)
1068
+ results = self._client.search(name=name)
1069
+ if results:
1070
+ item = results[0].item
1071
+ item.extraneous["scope_metadata"] = metadata
1072
+ item.extraneous["lightfall_scope"] = scope
1073
+ item.save()
1074
+ else:
1075
+ item = happi.HappiItem(
1076
+ name=name,
1077
+ device_class="lightfall.scope",
1078
+ args=[],
1079
+ kwargs={},
1080
+ active=False,
1081
+ )
1082
+ item.extraneous["lightfall_scope"] = scope
1083
+ item.extraneous["scope_metadata"] = metadata
1084
+ self._client.add_item(item)
1085
+ return True
1086
+ except Exception as e:
1087
+ logger.error("update_scope_metadata('{}') failed: {}", scope, e)
1088
+ return False
1089
+
996
1090
  # === Configuration ===
997
1091
 
998
1092
  def get_device_configurations(self, device_id: UUID) -> list[DeviceConfiguration]: