lightfall 0.3.0__tar.gz → 0.4.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.
- {lightfall-0.3.0 → lightfall-0.4.0}/PKG-INFO +19 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/pyproject.toml +59 -17
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/_version.py +2 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/buffer.py +8 -3
- lightfall-0.4.0/src/lightfall/acquire/checkpoints.py +292 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/base.py +31 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/bluesky.py +172 -10
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/console_proxy.py +11 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/mock.py +4 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/waiting_hook.py +15 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plans/__init__.py +2 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plans/lightfall_plans.py +19 -4
- lightfall-0.4.0/src/lightfall/acquire/plans/preview.py +319 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plans/registry.py +48 -0
- lightfall-0.4.0/src/lightfall/acquire/plans/stubs.py +134 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plans/user_plans.py +144 -29
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/assembly.py +102 -45
- lightfall-0.4.0/src/lightfall/agents/backend.py +266 -0
- lightfall-0.4.0/src/lightfall/agents/backends/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/__init__.py +29 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/ask_tool.py +94 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/backend.py +469 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/discover.py +122 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/events.py +209 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/home.py +513 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/hook_client.py +46 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/hook_policy.py +123 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/host.py +255 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/process.py +339 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/sessions.py +137 -0
- lightfall-0.4.0/src/lightfall/agents/backends/agy/tool_directory.py +70 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/__init__.py +9 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/backend.py +424 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/no_window.py +60 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/oneshot.py +59 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/options.py +132 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/permissions.py +190 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/sessions.py +52 -0
- lightfall-0.4.0/src/lightfall/agents/backends/claude_code/tools.py +26 -0
- lightfall-0.4.0/src/lightfall/agents/backends/info.py +377 -0
- lightfall-0.4.0/src/lightfall/agents/backends/select.py +33 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/builtin/lightfall-dev.md +2 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/builtin/lightfall.md +13 -5
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/builtin/observer.md +1 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/bus.py +27 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/bus_tools.py +50 -10
- lightfall-0.4.0/src/lightfall/agents/content_tools.py +408 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/drafts.py +7 -0
- lightfall-0.4.0/src/lightfall/agents/github_tools.py +236 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/registry.py +72 -34
- lightfall-0.4.0/src/lightfall/agents/skill_approvals.py +96 -0
- lightfall-0.4.0/src/lightfall/agents/skill_tools.py +424 -0
- lightfall-0.4.0/src/lightfall/agents/skills_store.py +489 -0
- lightfall-0.4.0/src/lightfall/agents/telemetry.py +300 -0
- lightfall-0.4.0/src/lightfall/agents/telemetry_otlp.py +130 -0
- lightfall-0.4.0/src/lightfall/agents/tooling.py +175 -0
- lightfall-0.4.0/src/lightfall/agents/worker.py +592 -0
- lightfall-0.4.0/src/lightfall/auth/engine_guard.py +94 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/builtin_plugins.py +19 -48
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/keycloak.py +186 -15
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/local.py +16 -4
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/service_key_auth.py +61 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/session.py +29 -3
- lightfall-0.4.0/src/lightfall/auth/sso_stash.py +151 -0
- lightfall-0.4.0/src/lightfall/claude/_internal/worker.py +29 -0
- lightfall-0.4.0/src/lightfall/claude/_session_assembly.py +116 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/agent.py +388 -153
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/bus_endpoint.py +80 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/cockpit.py +8 -7
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/lightfall_core_tools.py +1 -5
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/markdown.py +3 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/permission_manager.py +65 -205
- lightfall-0.4.0/src/lightfall/claude/tools/__init__.py +38 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/tools/controller.py +5 -17
- lightfall-0.4.0/src/lightfall/claude/tools/diagnostics.py +200 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/tools/interaction.py +1 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/tools/introspection.py +1 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/tools/logs.py +1 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/tools/screenshot.py +1 -1
- lightfall-0.4.0/src/lightfall/claude/voice_queue.py +256 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/widget.py +508 -62
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/widgets/permission_request.py +5 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/widgets/question_request.py +170 -15
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/widgets/task_card.py +9 -0
- lightfall-0.4.0/src/lightfall/config/facilities.yaml +10 -0
- lightfall-0.4.0/src/lightfall/config/manager.py +135 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/config/schema.py +33 -1
- lightfall-0.4.0/src/lightfall/content/__init__.py +2 -0
- lightfall-0.4.0/src/lightfall/content/actions.py +302 -0
- lightfall-0.4.0/src/lightfall/content/clashes.py +79 -0
- lightfall-0.4.0/src/lightfall/content/copy.py +160 -0
- lightfall-0.4.0/src/lightfall/content/extract.py +71 -0
- lightfall-0.4.0/src/lightfall/content/labels.py +23 -0
- lightfall-0.4.0/src/lightfall/content/publish.py +239 -0
- lightfall-0.4.0/src/lightfall/content/service.py +198 -0
- lightfall-0.4.0/src/lightfall/content/sources.py +87 -0
- lightfall-0.4.0/src/lightfall/content/store.py +207 -0
- lightfall-0.4.0/src/lightfall/content/sync.py +127 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/core/application.py +63 -21
- lightfall-0.4.0/src/lightfall/devices/backend_types/__init__.py +7 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/base.py +93 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/bcs.py +74 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/csm.py +424 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/happi.py +71 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/mock.py +41 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/registry.py +87 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/rows.py +330 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/session.py +132 -0
- lightfall-0.4.0/src/lightfall/devices/backend_types/startup.py +222 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/backends/__init__.py +3 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/backends/bcs.py +4 -1
- lightfall-0.4.0/src/lightfall/devices/backends/csm.py +240 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/backends/happi.py +56 -29
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/backends/mock.py +10 -7
- lightfall-0.4.0/src/lightfall/devices/backends/mock_roster.py +225 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/base.py +9 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/catalog.py +328 -66
- lightfall-0.4.0/src/lightfall/devices/sim/cosmic_model.py +265 -0
- lightfall-0.4.0/src/lightfall/devices/sim/cosmic_roster.py +211 -0
- lightfall-0.4.0/src/lightfall/eval/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/eval/__main__.py +84 -0
- lightfall-0.4.0/src/lightfall/eval/agents.py +247 -0
- lightfall-0.4.0/src/lightfall/eval/environment.py +204 -0
- lightfall-0.4.0/src/lightfall/eval/runner.py +72 -0
- lightfall-0.4.0/src/lightfall/eval/scenarios.py +156 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/service.py +2 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/tiled_utils.py +8 -27
- lightfall-0.4.0/src/lightfall/github/__init__.py +3 -0
- lightfall-0.4.0/src/lightfall/github/auth.py +231 -0
- lightfall-0.4.0/src/lightfall/github/push.py +322 -0
- lightfall-0.4.0/src/lightfall/github/session.py +134 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/happi_backend/__init__.py +4 -4
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/happi_backend/csm.py +233 -55
- lightfall-0.4.0/src/lightfall/ipc/defaults.py +9 -0
- lightfall-0.4.0/src/lightfall/ipc/local_server.py +25 -0
- lightfall-0.4.0/src/lightfall/ipc/service.py +21 -0
- lightfall-0.4.0/src/lightfall/ipc/trust.py +5 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/client.py +11 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/entry_widget.py +130 -36
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/event_listener.py +17 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/fragment_widgets.py +105 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/url.py +1 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/main.py +325 -261
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/advisor.py +54 -46
- lightfall-0.4.0/src/lightfall/monitor/feeds/beam_status.py +128 -0
- lightfall-0.4.0/src/lightfall/monitor/registry.py +228 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/scheduler.py +4 -9
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/service.py +3 -6
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/autonomous_experiment/nats_tools.py +1 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/autonomous_experiment/plugin.py +12 -10
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/autonomous_experiment/prompts.py +2 -1
- lightfall-0.4.0/src/lightfall/plugins/agents/checkpoint_tools.py +189 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/current_esaf.py +1 -7
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/device_tools.py +24 -17
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/engine_tools.py +69 -16
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/ipython_tools.py +1 -5
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/panel_builder.py +57 -17
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/plan_tools.py +204 -99
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/auth_provider_plugin.py +10 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/builtin_manifest.py +54 -0
- lightfall-0.4.0/src/lightfall/plugins/enablement.py +176 -0
- lightfall-0.4.0/src/lightfall/plugins/live_reload.py +343 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/loader.py +134 -34
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/plan_plugin.py +56 -3
- lightfall-0.4.0/src/lightfall/plugins/service_plugin.py +59 -0
- lightfall-0.4.0/src/lightfall/plugins/settings_plugin.py +242 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/statusbar_plugin.py +195 -14
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/types.py +24 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/user_plugins.py +514 -31
- lightfall-0.4.0/src/lightfall/remote/protocol.py +6 -0
- lightfall-0.4.0/src/lightfall/scopes/__init__.py +15 -0
- lightfall-0.4.0/src/lightfall/scopes/approval_queue.py +68 -0
- lightfall-0.4.0/src/lightfall/scopes/cache.py +97 -0
- lightfall-0.4.0/src/lightfall/scopes/client.py +535 -0
- lightfall-0.4.0/src/lightfall/scopes/enablement.py +23 -0
- lightfall-0.4.0/src/lightfall/scopes/identity.py +34 -0
- lightfall-0.4.0/src/lightfall/scopes/journal.py +72 -0
- lightfall-0.4.0/src/lightfall/scopes/keys.py +254 -0
- lightfall-0.4.0/src/lightfall/scopes/local_files.py +87 -0
- lightfall-0.4.0/src/lightfall/scopes/ops.py +99 -0
- lightfall-0.4.0/src/lightfall/scopes/site.py +60 -0
- lightfall-0.4.0/src/lightfall/scopes/state.py +105 -0
- lightfall-0.4.0/src/lightfall/scopes/store.py +100 -0
- lightfall-0.4.0/src/lightfall/scopes/view.py +148 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/caproxy_lease_service.py +3 -1
- lightfall-0.4.0/src/lightfall/services/manager.py +619 -0
- lightfall-0.4.0/src/lightfall/services/shussebora_files.py +209 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/shussebora_monitor.py +74 -11
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/threaded_tiled_writer.py +58 -5
- lightfall-0.4.0/src/lightfall/services/tiled_proxy.py +92 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/tiled_service.py +121 -97
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/tiled_writer_patch.py +65 -5
- lightfall-0.4.0/src/lightfall/setup/__init__.py +5 -0
- lightfall-0.4.0/src/lightfall/setup/bootstrap.py +421 -0
- lightfall-0.4.0/src/lightfall/setup/context.py +62 -0
- lightfall-0.4.0/src/lightfall/setup/facilities.py +95 -0
- lightfall-0.4.0/src/lightfall/setup/page.py +197 -0
- lightfall-0.4.0/src/lightfall/setup/pages/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/setup/pages/assistant.py +71 -0
- lightfall-0.4.0/src/lightfall/setup/pages/facility.py +88 -0
- lightfall-0.4.0/src/lightfall/setup/pages/network.py +246 -0
- lightfall-0.4.0/src/lightfall/setup/pages/shortcut.py +64 -0
- lightfall-0.4.0/src/lightfall/setup/pages/signin.py +91 -0
- lightfall-0.4.0/src/lightfall/setup/progress.py +55 -0
- lightfall-0.4.0/src/lightfall/setup/registry.py +44 -0
- lightfall-0.4.0/src/lightfall/setup/services.py +214 -0
- lightfall-0.4.0/src/lightfall/setup/shortcuts.py +215 -0
- lightfall-0.4.0/src/lightfall/setup/step.py +53 -0
- lightfall-0.4.0/src/lightfall/setup/steps/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/setup/steps/assistant.py +52 -0
- lightfall-0.4.0/src/lightfall/setup/steps/facility.py +57 -0
- lightfall-0.4.0/src/lightfall/setup/steps/network.py +90 -0
- lightfall-0.4.0/src/lightfall/setup/steps/shortcut.py +77 -0
- lightfall-0.4.0/src/lightfall/setup/steps/signin.py +97 -0
- lightfall-0.4.0/src/lightfall/setup/wizard.py +706 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/autonomous_experiment/SKILL.md +1 -0
- lightfall-0.4.0/src/lightfall/skills/builtin/bcs_labview_to_happi/SKILL.md +157 -0
- lightfall-0.4.0/src/lightfall/skills/builtin/epics_windows_mingw_build/SKILL.md +201 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/panel_builder/SKILL.md +1 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/panel_design/references/panel_design.md +4 -1
- lightfall-0.4.0/src/lightfall/skills/builtin/plan_review/SKILL.md +74 -0
- lightfall-0.4.0/src/lightfall/ui/content_clashes.py +105 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/bug_report_dialog.py +31 -0
- lightfall-0.4.0/src/lightfall/ui/dialogs/content_history_dialog.py +210 -0
- lightfall-0.4.0/src/lightfall/ui/dialogs/content_publish_dialog.py +288 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/export_dialog.py +2 -0
- lightfall-0.4.0/src/lightfall/ui/dialogs/git_state_dialog.py +275 -0
- lightfall-0.4.0/src/lightfall/ui/dialogs/github_sign_in.py +299 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/login_dialog.py +54 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/oauth_browser_dialog.py +205 -32
- lightfall-0.4.0/src/lightfall/ui/dialogs/update_dialog.py +332 -0
- lightfall-0.4.0/src/lightfall/ui/docking/__init__.py +48 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/docking/manager.py +77 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/mainwindow.py +125 -4
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/models/device_tree.py +79 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/models/thread_model.py +252 -75
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/agent_editor/models.py +88 -23
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/agent_editor/panel.py +31 -20
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/base.py +25 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/bluesky_panel.py +2 -1
- lightfall-0.4.0/src/lightfall/ui/panels/checkpoints_panel.py +184 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/claude/agent_session_tab.py +244 -29
- lightfall-0.4.0/src/lightfall/ui/panels/claude/tool_registry.py +246 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/claude_panel.py +475 -72
- lightfall-0.4.0/src/lightfall/ui/panels/content_panel.py +526 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/device_panel.py +3 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/documents_panel.py +3 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/ipython_panel.py +5 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/logbook_entries_panel.py +2 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/logbook_panel.py +98 -13
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/logging_panel.py +3 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/monitor_panel.py +3 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/pipeline_jobs_panel.py +3 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/pipeline_triggers_panel.py +5 -3
- lightfall-0.4.0/src/lightfall/ui/panels/plugins/checkpoints_plugin.py +20 -0
- lightfall-0.4.0/src/lightfall/ui/panels/plugins/content_panel_plugin.py +21 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/queue.py +2 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/registry.py +19 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/shussebora_panel.py +2 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/panel.py +2 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/threads_panel.py +37 -11
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/tiled_browser_panel.py +2 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/visualization_panel.py +84 -21
- lightfall-0.4.0/src/lightfall/ui/preferences/agent_backend_section.py +400 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/assistant_editors.py +267 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/preferences/backend.py +21 -1
- lightfall-0.4.0/src/lightfall/ui/preferences/builtin.py +213 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/claude_settings.py +786 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/device_rows.py +514 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/device_settings.py +249 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/dialog.py +668 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/editor_settings.py +134 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/binding.py +48 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/catalog.py +431 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/editors.py +648 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/header.py +110 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/items.py +133 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/model.py +220 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/row.py +355 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/schema.py +249 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/form/view.py +359 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/github_settings.py +133 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/ipc_settings.py +263 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/local_scopes_backend.py +109 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/logbook_settings.py +151 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/login_settings.py +127 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/preferences/manager.py +360 -19
- lightfall-0.4.0/src/lightfall/ui/preferences/monitor_settings.py +203 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/plugin_settings.py +98 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/proxy_settings.py +409 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/scope_api.py +169 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/scoped_backend.py +849 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/scopes_settings.py +462 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/setting_keys_settings.py +368 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/tiled_settings.py +292 -0
- lightfall-0.4.0/src/lightfall/ui/preferences/tool_settings.py +115 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/preferences/user_profile_settings.py +24 -13
- lightfall-0.4.0/src/lightfall/ui/preferences/visualization_settings.py +88 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/manager.py +2 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/als_beam_status.py +7 -34
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/caproxy_lease_status.py +5 -32
- lightfall-0.4.0/src/lightfall/ui/statusbar/plugins/git_state_status.py +85 -0
- lightfall-0.4.0/src/lightfall/ui/statusbar/plugins/memory_status.py +113 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/nats_status.py +50 -40
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/shussebora_status.py +21 -47
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/thread_status.py +12 -18
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/tiled_status.py +11 -35
- lightfall-0.4.0/src/lightfall/ui/statusbar/plugins/updates_status.py +95 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/user_status.py +2 -24
- lightfall-0.4.0/src/lightfall/ui/style/__init__.py +1 -0
- lightfall-0.4.0/src/lightfall/ui/style/modern.py +199 -0
- lightfall-0.4.0/src/lightfall/ui/style/windows_frame.py +37 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/toast.py +39 -6
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/tutorial.py +10 -10
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/plan_based.py +2 -2
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/device_tree_tab.py +19 -8
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/plan_config.py +4 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/plan_selector.py +10 -4
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/profile_avatar.py +4 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/skill_trigger_button.py +4 -4
- lightfall-0.4.0/src/lightfall/updates/__init__.py +7 -0
- lightfall-0.4.0/src/lightfall/updates/_install_helper.py +202 -0
- lightfall-0.4.0/src/lightfall/updates/apply.py +203 -0
- lightfall-0.4.0/src/lightfall/updates/checker.py +197 -0
- lightfall-0.4.0/src/lightfall/updates/deferred.py +130 -0
- lightfall-0.4.0/src/lightfall/updates/discovery.py +112 -0
- lightfall-0.4.0/src/lightfall/updates/git.py +221 -0
- lightfall-0.4.0/src/lightfall/updates/model.py +61 -0
- lightfall-0.4.0/src/lightfall/updates/pypi.py +75 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/crash_diagnostics.py +76 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/git_tracker.py +64 -10
- lightfall-0.4.0/src/lightfall/utils/qt_import_hook.py +54 -0
- lightfall-0.4.0/src/lightfall/utils/restart.py +109 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/sentry.py +44 -0
- lightfall-0.4.0/src/lightfall/utils/startup_timeline.py +351 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/tiled_helpers.py +89 -3
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/base_visualization.py +64 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/stream_bridge.py +9 -1
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/adaptive/heatmap.py +2 -13
- lightfall-0.4.0/src/lightfall/visualization/widgets/adaptive/plot.py +248 -0
- lightfall-0.4.0/src/lightfall/visualization/widgets/adaptive/schema.py +60 -0
- lightfall-0.4.0/src/lightfall/visualization/widgets/plot_1d.py +426 -0
- lightfall-0.3.0/src/lightfall/acquire/plans/stubs.py +0 -72
- lightfall-0.3.0/src/lightfall/agents/skill_tools.py +0 -148
- lightfall-0.3.0/src/lightfall/agents/skills_store.py +0 -247
- lightfall-0.3.0/src/lightfall/claude/_internal/worker.py +0 -580
- lightfall-0.3.0/src/lightfall/claude/_session_assembly.py +0 -89
- lightfall-0.3.0/src/lightfall/claude/tools/__init__.py +0 -45
- lightfall-0.3.0/src/lightfall/config/manager.py +0 -34
- lightfall-0.3.0/src/lightfall/devices/backends/mock_roster.py +0 -398
- lightfall-0.3.0/src/lightfall/ipc/local_server.py +0 -175
- lightfall-0.3.0/src/lightfall/ipc/service.py +0 -932
- lightfall-0.3.0/src/lightfall/ipc/trust.py +0 -144
- lightfall-0.3.0/src/lightfall/monitor/registry.py +0 -82
- lightfall-0.3.0/src/lightfall/plugins/settings_plugin.py +0 -226
- lightfall-0.3.0/src/lightfall/remote/protocol.py +0 -42
- lightfall-0.3.0/src/lightfall/ui/docking/__init__.py +0 -22
- lightfall-0.3.0/src/lightfall/ui/panels/claude/tool_registry.py +0 -168
- lightfall-0.3.0/src/lightfall/ui/preferences/builtin.py +0 -300
- lightfall-0.3.0/src/lightfall/ui/preferences/claude_settings.py +0 -934
- lightfall-0.3.0/src/lightfall/ui/preferences/device_settings.py +0 -461
- lightfall-0.3.0/src/lightfall/ui/preferences/dialog.py +0 -251
- lightfall-0.3.0/src/lightfall/ui/preferences/editor_settings.py +0 -227
- lightfall-0.3.0/src/lightfall/ui/preferences/ipc_settings.py +0 -300
- lightfall-0.3.0/src/lightfall/ui/preferences/logbook_settings.py +0 -232
- lightfall-0.3.0/src/lightfall/ui/preferences/login_settings.py +0 -184
- lightfall-0.3.0/src/lightfall/ui/preferences/monitor_settings.py +0 -520
- lightfall-0.3.0/src/lightfall/ui/preferences/plugin_settings.py +0 -392
- lightfall-0.3.0/src/lightfall/ui/preferences/proxy_settings.py +0 -562
- lightfall-0.3.0/src/lightfall/ui/preferences/tiled_settings.py +0 -501
- lightfall-0.3.0/src/lightfall/ui/preferences/tool_settings.py +0 -393
- lightfall-0.3.0/src/lightfall/ui/preferences/visualization_settings.py +0 -159
- lightfall-0.3.0/src/lightfall/visualization/widgets/adaptive/plot.py +0 -233
- lightfall-0.3.0/src/lightfall/visualization/widgets/plot_1d.py +0 -263
- {lightfall-0.3.0 → lightfall-0.4.0}/.gitignore +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/LEGAL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/LICENSE.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/README.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/__main__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/plugins/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/plugins/bluesky_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/plugins/mock_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/protocol.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/engine/state.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/nats_bridge.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plan_ui.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/plans/adaptive.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/runengine.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/signals.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/filter.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/manager.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/manual.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/run_end.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/acquire/triggers/run_start.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/builtin/.gitkeep +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/agents/spec.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/policy.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/provider_registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/providers/pam.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/auth/service_key.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/_internal/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/_internal/serialization.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/_internal/threading.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/transcript.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/claude/widgets/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/config/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/config/layers.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/core/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/core/services.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/async_connect.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/connection_manager.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/model.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/sim/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/sim/actuators.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/sim/areadetector.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/sim/generators.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/devices/sim/plugins.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/ca/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/ca/context.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/ca/pv.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/areadetector/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/areadetector/areadetector.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/areadetector/controls.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/areadetector/image_view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/auto.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/checkbox.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/combobox.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/label.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/lineedit.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/motor.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/ophyd_base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/ophyd_combobox.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/ophyd_label.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/ophyd_lineedit.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/ophyd_spinbox.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/slider.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/status_indicator.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/epics/widgets/style.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/cli.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/converters/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/converters/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/converters/noop.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/exporter/converters/nxsas.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ipc/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/action_logger.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/live_updates.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/logbook/style.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/buffer.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/context_provider.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/data_window.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/feed.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/feeds/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/feeds/acquisition_health.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/models.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/monitor_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/monitor/rate_limiter.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/pipelines/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/pipelines/client.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/_mcp_helpers.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/alignment.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/autonomous_experiment/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/panel_design.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/plan_design.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/agents/scan_planning.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/controller_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/device_backend_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/engine_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/errors.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/happi_database_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/info.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/manifest.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/panel_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/theme_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/tool_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/plugins/visualization_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/remote/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/remote/service.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/resources/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/resources/images/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/resources/images/icon.ico +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/resources/images/icon.png +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/resources/images/logo.png +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/_alshub_client.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/access_stamper.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/als_beam_status.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/ca_tunnel.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/services/tiled_auth.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/settings/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/settings/image_helpers.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/settings/user_settings_client.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/alignment/SKILL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/current_esaf/SKILL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/panel_design/SKILL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/panel_design/references/cross_panel_patterns.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/plan_design/SKILL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/plan_design/references/plan_design.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/skills/builtin/scan_planning/SKILL.md +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/annotations.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/common/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/about_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/add_trigger_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/create_plan_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/device_edit_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/go_to_position_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/lease_request_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/run_pipeline_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/dialogs/sample_metadata_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/docking/icon_sidebar.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/docking/state.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/docking/theme.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/docking/widget.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/events.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/models/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/models/device_selection.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/models/tiled_model.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/agent_editor/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/agent_editor/plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/claude/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/claude/agent_picker.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/bluesky_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/claude_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/device_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/documents_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/ipython_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/logbook_entries_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/logbook_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/logging_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/monitor_panel_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/pipeline_jobs_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/pipeline_triggers_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/queue_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/shussebora_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/synoptic_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/threads_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/tiled_browser_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/plugins/visualization_plugin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/editors.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/items.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/models.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/serialization.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/panels/synoptic/view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/preferences/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/preferences/user_portable_backend.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/resources/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/resources/logo.png +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/statusbar/plugins/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theater/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theater/manager.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theater/overlay.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theater/proxy.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theme/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theme/builtin.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theme/manager.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/theme/registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/base_control.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/dark_frames.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/image_view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/panels/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/panels/cooler.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/camera/panels/temperature.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/compact_motor.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/controller_matcher.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/controller_registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/device_control.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/device_selector.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/document_stream.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/favorites_tab.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/flow_layout.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/motor_control.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/observers/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/observers/camera.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/observers/image_view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/plan_edit_dialog.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/queue_view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/runengine_control.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/signal_control.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/tiled_filter_widget.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/ui/widgets/warning_banner.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/caproto_shutdown.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/data_migration.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/editor_launcher.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/error_collector.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/log_buffer.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/logging.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/module_resolver.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/utils/threads.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/fitting/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/fitting/base.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/fitting/fitters.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/fitting/panel.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/pg.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/reduction_engine.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/reductions.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/registry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/scan_geometry.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/spec.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/theme.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/adaptive/__init__.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/heatmap.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/image_stack.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/image_view_toolbar.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/lazy_image_view.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/scan_viewer.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/scatter.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/table.py +0 -0
- {lightfall-0.3.0 → lightfall-0.4.0}/src/lightfall/visualization/widgets/time_axis.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lightfall
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.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
|
|
@@ -25,23 +25,27 @@ Requires-Dist: aiohttp>=3.8
|
|
|
25
25
|
Requires-Dist: bluesky-tiled-plugins>=2.0
|
|
26
26
|
Requires-Dist: bluesky>=1.10
|
|
27
27
|
Requires-Dist: caproto>=1.1
|
|
28
|
-
Requires-Dist: claude-agent-sdk>=0.2.
|
|
28
|
+
Requires-Dist: claude-agent-sdk>=0.2.158
|
|
29
|
+
Requires-Dist: filelock>=3.12
|
|
29
30
|
Requires-Dist: h5py>=3.0
|
|
30
31
|
Requires-Dist: happi>=2.0
|
|
31
32
|
Requires-Dist: httpx[socks]>=0.27
|
|
32
33
|
Requires-Dist: ipykernel>=6.0
|
|
33
|
-
Requires-Dist: lightfall-
|
|
34
|
+
Requires-Dist: lightfall-settings<0.2,>=0.1.4
|
|
35
|
+
Requires-Dist: lightfall-utils>=0.3.0
|
|
34
36
|
Requires-Dist: loguru>=0.7
|
|
37
|
+
Requires-Dist: mcp<3,>=2.3
|
|
35
38
|
Requires-Dist: mistune>=3.0
|
|
36
|
-
Requires-Dist: nats-py
|
|
37
|
-
Requires-Dist: netifaces>=0.
|
|
39
|
+
Requires-Dist: nats-py<2.17,>=2.1
|
|
40
|
+
Requires-Dist: netifaces-plus>=0.12.5
|
|
38
41
|
Requires-Dist: ophyd-async>=0.19
|
|
39
42
|
Requires-Dist: ophyd>=1.7
|
|
40
43
|
Requires-Dist: psutil>=5.9
|
|
41
44
|
Requires-Dist: pydantic>=2.0
|
|
42
45
|
Requires-Dist: pyqtgraph>=0.13
|
|
43
46
|
Requires-Dist: pyqttoast-enhanced>=2.0
|
|
44
|
-
Requires-Dist: pyside6
|
|
47
|
+
Requires-Dist: pyside6<6.12,>=6.6; python_version < '3.12'
|
|
48
|
+
Requires-Dist: pyside6>=6.6; python_version >= '3.12'
|
|
45
49
|
Requires-Dist: pysocks>=1.7
|
|
46
50
|
Requires-Dist: pyyaml>=6.0
|
|
47
51
|
Requires-Dist: qtawesome>=1.3
|
|
@@ -52,6 +56,7 @@ Requires-Dist: sqlalchemy>=2.0
|
|
|
52
56
|
Requires-Dist: tiled[client]>=0.2.5
|
|
53
57
|
Provides-Extra: dev
|
|
54
58
|
Requires-Dist: mypy>=1.8; extra == 'dev'
|
|
59
|
+
Requires-Dist: nats-server-bin>=2.14; extra == 'dev'
|
|
55
60
|
Requires-Dist: pre-commit>=3.6; extra == 'dev'
|
|
56
61
|
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
57
62
|
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
@@ -59,12 +64,18 @@ Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
|
|
|
59
64
|
Requires-Dist: pytest-qt>=4.2; extra == 'dev'
|
|
60
65
|
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
61
66
|
Requires-Dist: ruff>=0.1; extra == 'dev'
|
|
67
|
+
Requires-Dist: starlette>=1.10; extra == 'dev'
|
|
68
|
+
Requires-Dist: tiled[server]>=0.2.5; extra == 'dev'
|
|
62
69
|
Provides-Extra: docs
|
|
63
|
-
Requires-Dist:
|
|
70
|
+
Requires-Dist: markdown-it-py<5,>=4.2; extra == 'docs'
|
|
71
|
+
Requires-Dist: myst-parser>=5.1; extra == 'docs'
|
|
64
72
|
Requires-Dist: sphinx-immaterial>=0.12; extra == 'docs'
|
|
65
|
-
Requires-Dist: sphinx<9.0,>=
|
|
73
|
+
Requires-Dist: sphinx<9.0,>=8.0; extra == 'docs'
|
|
66
74
|
Provides-Extra: local-nats
|
|
67
75
|
Requires-Dist: nats-server-bin>=2.14; extra == 'local-nats'
|
|
76
|
+
Provides-Extra: telemetry
|
|
77
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.27; extra == 'telemetry'
|
|
78
|
+
Requires-Dist: opentelemetry-sdk>=1.27; extra == 'telemetry'
|
|
68
79
|
Description-Content-Type: text/markdown
|
|
69
80
|
|
|
70
81
|
# Lightfall
|
|
@@ -32,13 +32,18 @@ classifiers = [
|
|
|
32
32
|
"Topic :: Scientific/Engineering",
|
|
33
33
|
]
|
|
34
34
|
dependencies = [
|
|
35
|
-
|
|
35
|
+
# PySide6 6.12.0 drops a reference to None on every void-returning call. Python 3.12+
|
|
36
|
+
# has an immortal None, so it is harmless there; on 3.11 None is freed after a few
|
|
37
|
+
# thousand calls and Python aborts ("none_dealloc"). Keep 3.11 below 6.12.
|
|
38
|
+
"PySide6>=6.6,<6.12; python_version < '3.12'",
|
|
39
|
+
"PySide6>=6.6; python_version >= '3.12'",
|
|
36
40
|
"pydantic>=2.0",
|
|
37
41
|
"pyyaml>=6.0",
|
|
38
42
|
"loguru>=0.7",
|
|
39
43
|
"sentry-sdk[loguru]>=2.0",
|
|
40
44
|
"mistune>=3.0",
|
|
41
45
|
"psutil>=5.9",
|
|
46
|
+
"filelock>=3.12",
|
|
42
47
|
"pyqttoast-enhanced>=2.0",
|
|
43
48
|
"pyqtgraph>=0.13",
|
|
44
49
|
"qtawesome>=1.3",
|
|
@@ -46,10 +51,11 @@ dependencies = [
|
|
|
46
51
|
"h5py>=3.0",
|
|
47
52
|
# epics
|
|
48
53
|
"caproto>=1.1",
|
|
49
|
-
# required for caproto to enumerate all interfaces on multi-homed hosts
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
|
|
54
|
+
# required for caproto to enumerate all interfaces on multi-homed hosts
|
|
55
|
+
# (caproto degrades gracefully without it). netifaces-plus is a maintained
|
|
56
|
+
# drop-in fork that installs the same `netifaces` module and ships wheels
|
|
57
|
+
# for Windows and macOS arm64; upstream netifaces is sdist-only past cp39
|
|
58
|
+
"netifaces-plus>=0.12.5",
|
|
53
59
|
# acquire
|
|
54
60
|
"bluesky>=1.10",
|
|
55
61
|
"ophyd>=1.7",
|
|
@@ -70,10 +76,18 @@ dependencies = [
|
|
|
70
76
|
# ipython
|
|
71
77
|
"qtconsole>=5.5",
|
|
72
78
|
"ipykernel>=6.0",
|
|
73
|
-
"claude-agent-sdk>=0.2.
|
|
79
|
+
"claude-agent-sdk>=0.2.158",
|
|
80
|
+
# agy host uses the mcp 2 low-level Server (on_* handlers); its test uses httpx2,
|
|
81
|
+
# which mcp 2 depends on.
|
|
82
|
+
"mcp>=2.3,<3",
|
|
74
83
|
"happi>=2.0",
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
# <2.17: nats-py 2.17 (nats.py#1118) treats any tls= context as "TLS required",
|
|
85
|
+
# and lightfall-utils 0.3.0 IPCService always passes one, so it can no longer
|
|
86
|
+
# connect to the plaintext local nats-server. Drop the cap once lightfall-utils
|
|
87
|
+
# only passes tls= for non-local brokers.
|
|
88
|
+
"nats-py>=2.1,<2.17",
|
|
89
|
+
"lightfall-utils>=0.3.0",
|
|
90
|
+
"lightfall-settings>=0.1.4,<0.2",
|
|
77
91
|
]
|
|
78
92
|
|
|
79
93
|
[project.optional-dependencies]
|
|
@@ -83,6 +97,12 @@ dependencies = [
|
|
|
83
97
|
local-nats = [
|
|
84
98
|
"nats-server-bin>=2.14",
|
|
85
99
|
]
|
|
100
|
+
# OTLP export of agent usage telemetry to the facility LGTM stack (optional;
|
|
101
|
+
# the local usage log works without it). See lightfall.agents.telemetry_otlp.
|
|
102
|
+
telemetry = [
|
|
103
|
+
"opentelemetry-sdk>=1.27",
|
|
104
|
+
"opentelemetry-exporter-otlp-proto-http>=1.27",
|
|
105
|
+
]
|
|
86
106
|
dev = [
|
|
87
107
|
"pytest>=8.0",
|
|
88
108
|
"pytest-cov>=4.0",
|
|
@@ -92,10 +112,23 @@ dev = [
|
|
|
92
112
|
"ruff>=0.1",
|
|
93
113
|
"mypy>=1.8",
|
|
94
114
|
"pre-commit>=3.6",
|
|
115
|
+
# tests/services start a real local broker (same as lightfall-utils' dev extra).
|
|
116
|
+
"nats-server-bin>=2.14",
|
|
117
|
+
# tests/services/test_tiled_writer_row_order.py round-trips through an
|
|
118
|
+
# in-process Tiled server (tiled.server.app.build_app, tiled.catalog), which
|
|
119
|
+
# needs fastapi & co. from tiled's [server] extra; [client] alone lacks them.
|
|
120
|
+
"tiled[server]>=0.2.5",
|
|
121
|
+
# tiled>=0.2.21 is built on httpx2 and Context.from_app wraps Starlette's
|
|
122
|
+
# TestClient, which only speaks httpx2 from starlette 1.10 on. With an older
|
|
123
|
+
# starlette the in-process server test fails: "Expected str or httpx.URL,
|
|
124
|
+
# got httpx2.URL".
|
|
125
|
+
"starlette>=1.10",
|
|
95
126
|
]
|
|
96
127
|
docs = [
|
|
97
|
-
"sphinx>=
|
|
98
|
-
|
|
128
|
+
"sphinx>=8.0,<9.0",
|
|
129
|
+
# myst-parser 5.1 needs markdown-it-py~=4.2; an env left at 4.0.0 fails the -W build.
|
|
130
|
+
"myst-parser>=5.1",
|
|
131
|
+
"markdown-it-py>=4.2,<5",
|
|
99
132
|
"sphinx-immaterial>=0.12",
|
|
100
133
|
]
|
|
101
134
|
|
|
@@ -187,7 +220,7 @@ bundle = "gov.lbl.als"
|
|
|
187
220
|
# Hand-maintained: briefcase cannot read the hatch-vcs version, so this must be
|
|
188
221
|
# bumped alongside every release tag. When it drifts, the installers attached to
|
|
189
222
|
# a release carry the stale number while the wheel carries the tag's.
|
|
190
|
-
version = "0.
|
|
223
|
+
version = "0.4.0"
|
|
191
224
|
url = "https://als.lbl.gov"
|
|
192
225
|
author = "ALS Controls Team"
|
|
193
226
|
author_email = "controls@lbl.gov"
|
|
@@ -201,7 +234,11 @@ icon = "resources/lightfall"
|
|
|
201
234
|
sources = ["src/lightfall"]
|
|
202
235
|
requires = [
|
|
203
236
|
# Core UI
|
|
204
|
-
|
|
237
|
+
# PySide6 6.12.0 drops a reference to None on every void-returning call. Python 3.12+
|
|
238
|
+
# has an immortal None, so it is harmless there; on 3.11 None is freed after a few
|
|
239
|
+
# thousand calls and Python aborts ("none_dealloc"). Keep 3.11 below 6.12.
|
|
240
|
+
"PySide6>=6.6,<6.12; python_version < '3.12'",
|
|
241
|
+
"PySide6>=6.6; python_version >= '3.12'",
|
|
205
242
|
"pyqtgraph>=0.13",
|
|
206
243
|
"qtawesome>=1.3",
|
|
207
244
|
"pyqttoast-enhanced>=2.0",
|
|
@@ -210,6 +247,7 @@ requires = [
|
|
|
210
247
|
"pydantic>=2.0",
|
|
211
248
|
"pydantic-settings>=2.0",
|
|
212
249
|
"pyyaml>=6.0",
|
|
250
|
+
"filelock>=3.12",
|
|
213
251
|
|
|
214
252
|
# Logging & Monitoring
|
|
215
253
|
"loguru>=0.7",
|
|
@@ -224,12 +262,12 @@ requires = [
|
|
|
224
262
|
"aiohttp-socks>=0.8",
|
|
225
263
|
"httpx[socks]>=0.27",
|
|
226
264
|
"PySocks>=1.7",
|
|
227
|
-
"nats-py>=2.
|
|
265
|
+
"nats-py>=2.1,<2.17",
|
|
228
266
|
|
|
229
267
|
# EPICS
|
|
230
268
|
"caproto>=1.1",
|
|
231
|
-
# see [project].dependencies for why netifaces
|
|
232
|
-
"netifaces>=0.
|
|
269
|
+
# see [project].dependencies for why netifaces-plus, not netifaces
|
|
270
|
+
"netifaces-plus>=0.12.5",
|
|
233
271
|
|
|
234
272
|
# Data acquisition
|
|
235
273
|
"bluesky>=1.10",
|
|
@@ -259,8 +297,12 @@ requires = [
|
|
|
259
297
|
"cryptography>=41.0",
|
|
260
298
|
"bidict>=0.23",
|
|
261
299
|
|
|
262
|
-
"claude-agent-sdk>=0.2.
|
|
263
|
-
|
|
300
|
+
"claude-agent-sdk>=0.2.158",
|
|
301
|
+
# agy host uses the mcp 2 low-level Server (on_* handlers); its test uses httpx2,
|
|
302
|
+
# which mcp 2 depends on.
|
|
303
|
+
"mcp>=2.3,<3",
|
|
304
|
+
"lightfall-utils>=0.3.0",
|
|
305
|
+
"lightfall-settings>=0.1.4,<0.2",
|
|
264
306
|
]
|
|
265
307
|
|
|
266
308
|
[tool.briefcase.app.lightfall.macOS]
|
|
@@ -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.
|
|
22
|
-
__version_tuple__ = version_tuple = (0,
|
|
21
|
+
__version__ = version = '0.4.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 4, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -121,8 +121,10 @@ class LiveDataBuffer(QObject):
|
|
|
121
121
|
self._timestamps: deque[float] = deque(maxlen=max_points)
|
|
122
122
|
self._seq_nums: deque[int] = deque(maxlen=max_points)
|
|
123
123
|
|
|
124
|
-
# Current run state
|
|
124
|
+
# Current run state. _current_run keeps the last run's info after it
|
|
125
|
+
# ends; _running tracks start/stop so is_running goes false again.
|
|
125
126
|
self._current_run: RunInfo | None = None
|
|
127
|
+
self._running = False
|
|
126
128
|
self._descriptors: dict[str, dict[str, Any]] = {} # stream_name -> descriptor
|
|
127
129
|
self._data_keys: dict[str, dict[str, Any]] = {} # field -> data_key info
|
|
128
130
|
|
|
@@ -158,6 +160,7 @@ class LiveDataBuffer(QObject):
|
|
|
158
160
|
"""
|
|
159
161
|
self.clear()
|
|
160
162
|
self._current_run = RunInfo.from_start_doc(doc)
|
|
163
|
+
self._running = True
|
|
161
164
|
self.scan_started.emit(doc)
|
|
162
165
|
logger.info(f"Scan started: {self._current_run.uid[:8]}")
|
|
163
166
|
|
|
@@ -222,6 +225,7 @@ class LiveDataBuffer(QObject):
|
|
|
222
225
|
"""
|
|
223
226
|
exit_status = doc.get("exit_status", "unknown")
|
|
224
227
|
num_events = doc.get("num_events", {})
|
|
228
|
+
self._running = False
|
|
225
229
|
self.scan_completed.emit(doc)
|
|
226
230
|
logger.info(f"Scan completed: {exit_status}, events: {num_events}")
|
|
227
231
|
|
|
@@ -234,8 +238,8 @@ class LiveDataBuffer(QObject):
|
|
|
234
238
|
|
|
235
239
|
@property
|
|
236
240
|
def is_running(self) -> bool:
|
|
237
|
-
"""Check if a run is in progress."""
|
|
238
|
-
return self.
|
|
241
|
+
"""Check if a run is in progress (start seen, stop not yet)."""
|
|
242
|
+
return self._running
|
|
239
243
|
|
|
240
244
|
@property
|
|
241
245
|
def field_names(self) -> list[str]:
|
|
@@ -313,6 +317,7 @@ class LiveDataBuffer(QObject):
|
|
|
313
317
|
self._descriptors.clear()
|
|
314
318
|
self._data_keys.clear()
|
|
315
319
|
self._current_run = None
|
|
320
|
+
self._running = False
|
|
316
321
|
|
|
317
322
|
def set_max_points(self, max_points: int) -> None:
|
|
318
323
|
"""Set the maximum number of points to buffer.
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"""Position checkpoints: a log of where every positioner was, and a way back.
|
|
2
|
+
|
|
3
|
+
A checkpoint is a snapshot of the readback of every positioner in the device
|
|
4
|
+
catalog (top-level devices and their sub-devices, e.g. ``stage.x``). One is
|
|
5
|
+
taken automatically when an agent-submitted plan starts, and users or agents
|
|
6
|
+
can take one by hand. Checkpoints are appended to
|
|
7
|
+
``~/lightfall/checkpoints/checkpoints.jsonl``.
|
|
8
|
+
|
|
9
|
+
Restoring never moves anything directly: :func:`restore_plan` builds an
|
|
10
|
+
ordinary ``bps.mv`` plan that the caller submits to the RunEngine queue, so
|
|
11
|
+
a restore is queued, logged, pausable and visible like any other plan.
|
|
12
|
+
|
|
13
|
+
This partly restores the save/restore-positions feature of the BCS LabVIEW
|
|
14
|
+
tools.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
19
|
+
import json
|
|
20
|
+
import math
|
|
21
|
+
import threading
|
|
22
|
+
import time
|
|
23
|
+
import uuid
|
|
24
|
+
from collections.abc import Iterator
|
|
25
|
+
from dataclasses import asdict, dataclass, field
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
from typing import Any
|
|
28
|
+
|
|
29
|
+
from PySide6.QtCore import QObject, Signal
|
|
30
|
+
|
|
31
|
+
from lightfall.utils.logging import logger
|
|
32
|
+
|
|
33
|
+
#: Positions closer than this (relative to max(1, |value|)) count as unchanged.
|
|
34
|
+
DEFAULT_TOLERANCE = 1e-4
|
|
35
|
+
|
|
36
|
+
_MAX_IN_MEMORY = 500
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dataclass(frozen=True)
|
|
40
|
+
class Checkpoint:
|
|
41
|
+
id: str
|
|
42
|
+
ts: float
|
|
43
|
+
label: str
|
|
44
|
+
source: str # "agent" | "user" | "plan"
|
|
45
|
+
positions: dict[str, float]
|
|
46
|
+
reason: str = ""
|
|
47
|
+
plan_name: str = ""
|
|
48
|
+
skipped: tuple[str, ...] = field(default=())
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def display_time(self) -> str:
|
|
52
|
+
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(self.ts))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
d = asdict(self)
|
|
56
|
+
d["skipped"] = list(self.skipped)
|
|
57
|
+
return json.dumps(d)
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_dict(cls, d: dict[str, Any]) -> Checkpoint:
|
|
61
|
+
return cls(
|
|
62
|
+
id=str(d["id"]),
|
|
63
|
+
ts=float(d["ts"]),
|
|
64
|
+
label=str(d.get("label", "")),
|
|
65
|
+
source=str(d.get("source", "user")),
|
|
66
|
+
positions={str(k): float(v) for k, v in (d.get("positions") or {}).items()},
|
|
67
|
+
reason=str(d.get("reason", "")),
|
|
68
|
+
plan_name=str(d.get("plan_name", "")),
|
|
69
|
+
skipped=tuple(d.get("skipped") or ()),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _is_positioner(obj: Any) -> bool:
|
|
74
|
+
return callable(getattr(obj, "set", None)) and hasattr(type(obj), "position")
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def iter_positioners(devices: dict[str, Any]) -> Iterator[tuple[str, Any]]:
|
|
78
|
+
"""Yield ``(dotted_name, positioner)`` for every positioner in ``devices``,
|
|
79
|
+
including positioner sub-devices of composite devices (``stage.x``)."""
|
|
80
|
+
for name, dev in devices.items():
|
|
81
|
+
yield from _walk(name, dev, depth=0)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def _walk(name: str, obj: Any, depth: int) -> Iterator[tuple[str, Any]]:
|
|
85
|
+
if _is_positioner(obj):
|
|
86
|
+
yield name, obj
|
|
87
|
+
if depth >= 4:
|
|
88
|
+
return
|
|
89
|
+
for attr in getattr(obj, "component_names", ()) or ():
|
|
90
|
+
cpt = getattr(type(obj), attr, None)
|
|
91
|
+
if getattr(cpt, "lazy", False):
|
|
92
|
+
continue # don't instantiate lazy components just to look at them
|
|
93
|
+
try:
|
|
94
|
+
child = getattr(obj, attr)
|
|
95
|
+
except Exception as e: # noqa: BLE001
|
|
96
|
+
logger.debug("checkpoints: cannot read {}.{}: {}", name, attr, e)
|
|
97
|
+
continue
|
|
98
|
+
yield from _walk(f"{name}.{attr}", child, depth + 1)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def resolve(devices: dict[str, Any], dotted: str) -> Any | None:
|
|
102
|
+
"""Find ``stage.x`` in ``devices`` by attribute path."""
|
|
103
|
+
head, _, rest = dotted.partition(".")
|
|
104
|
+
obj = devices.get(head)
|
|
105
|
+
for part in rest.split(".") if rest else ():
|
|
106
|
+
if obj is None:
|
|
107
|
+
return None
|
|
108
|
+
obj = getattr(obj, part, None)
|
|
109
|
+
return obj
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def snapshot_positions(devices: dict[str, Any]) -> tuple[dict[str, float], list[str]]:
|
|
113
|
+
"""Current readback of every positioner; also the names that could not be read."""
|
|
114
|
+
positions: dict[str, float] = {}
|
|
115
|
+
skipped: list[str] = []
|
|
116
|
+
for name, dev in iter_positioners(devices):
|
|
117
|
+
try:
|
|
118
|
+
value = dev.position
|
|
119
|
+
except Exception: # noqa: BLE001 - disconnected devices are skipped
|
|
120
|
+
skipped.append(name)
|
|
121
|
+
continue
|
|
122
|
+
if isinstance(value, (int, float)) and not isinstance(value, bool) and math.isfinite(value):
|
|
123
|
+
positions[name] = float(value)
|
|
124
|
+
else:
|
|
125
|
+
skipped.append(name)
|
|
126
|
+
return positions, skipped
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def differs(a: float | None, b: float | None, tol: float = DEFAULT_TOLERANCE) -> bool:
|
|
130
|
+
if a is None or b is None:
|
|
131
|
+
return a is not b
|
|
132
|
+
return abs(a - b) > tol * max(1.0, abs(b))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def restore_plan(devices: dict[str, Any], targets: dict[str, float]):
|
|
136
|
+
"""A plan moving each named positioner back to its checkpoint value.
|
|
137
|
+
|
|
138
|
+
All moves are issued together and waited on as a group (``bps.mv``).
|
|
139
|
+
Names are resolved now, not when the plan runs: raises KeyError for a
|
|
140
|
+
name that no longer resolves to a positioner."""
|
|
141
|
+
import bluesky.plan_stubs as bps
|
|
142
|
+
|
|
143
|
+
args: list[Any] = []
|
|
144
|
+
for name, value in targets.items():
|
|
145
|
+
obj = resolve(devices, name)
|
|
146
|
+
if obj is None or not _is_positioner(obj):
|
|
147
|
+
raise KeyError(f"'{name}' is not a positioner in the device catalog")
|
|
148
|
+
args.extend([obj, value])
|
|
149
|
+
|
|
150
|
+
def _plan():
|
|
151
|
+
if args:
|
|
152
|
+
yield from bps.mv(*args)
|
|
153
|
+
|
|
154
|
+
return _plan()
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def _catalog_devices() -> dict[str, Any]:
|
|
158
|
+
from lightfall.devices.catalog import DeviceCatalog
|
|
159
|
+
|
|
160
|
+
return DeviceCatalog.get_instance().get_all_ophyd_devices()
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
class CheckpointStore(QObject):
|
|
164
|
+
"""Process-wide checkpoint log (JSONL on disk, recent ones in memory)."""
|
|
165
|
+
|
|
166
|
+
added = Signal(object) # Checkpoint
|
|
167
|
+
|
|
168
|
+
_instance: CheckpointStore | None = None
|
|
169
|
+
_lock = threading.Lock()
|
|
170
|
+
|
|
171
|
+
def __init__(self, path: Path | None = None) -> None:
|
|
172
|
+
super().__init__()
|
|
173
|
+
self._path = path or (Path.home() / "lightfall" / "checkpoints" / "checkpoints.jsonl")
|
|
174
|
+
self._items: list[Checkpoint] = []
|
|
175
|
+
self._write_lock = threading.Lock()
|
|
176
|
+
self._load()
|
|
177
|
+
|
|
178
|
+
@classmethod
|
|
179
|
+
def get_instance(cls) -> CheckpointStore:
|
|
180
|
+
if cls._instance is None:
|
|
181
|
+
with cls._lock:
|
|
182
|
+
if cls._instance is None:
|
|
183
|
+
cls._instance = cls()
|
|
184
|
+
return cls._instance
|
|
185
|
+
|
|
186
|
+
@classmethod
|
|
187
|
+
def reset_instance(cls) -> None:
|
|
188
|
+
with cls._lock:
|
|
189
|
+
cls._instance = None
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def path(self) -> Path:
|
|
193
|
+
return self._path
|
|
194
|
+
|
|
195
|
+
def _load(self) -> None:
|
|
196
|
+
if not self._path.exists():
|
|
197
|
+
return
|
|
198
|
+
try:
|
|
199
|
+
lines = self._path.read_text(encoding="utf-8").splitlines()
|
|
200
|
+
except OSError as e:
|
|
201
|
+
logger.warning("checkpoints: cannot read {}: {}", self._path, e)
|
|
202
|
+
return
|
|
203
|
+
for line in lines[-_MAX_IN_MEMORY:]:
|
|
204
|
+
if not line.strip():
|
|
205
|
+
continue
|
|
206
|
+
try:
|
|
207
|
+
self._items.append(Checkpoint.from_dict(json.loads(line)))
|
|
208
|
+
except (ValueError, KeyError, TypeError) as e:
|
|
209
|
+
logger.debug("checkpoints: bad line skipped: {}", e)
|
|
210
|
+
|
|
211
|
+
def list(self) -> list[Checkpoint]:
|
|
212
|
+
"""Checkpoints, newest first."""
|
|
213
|
+
return list(reversed(self._items))
|
|
214
|
+
|
|
215
|
+
def get(self, checkpoint_id: str) -> Checkpoint | None:
|
|
216
|
+
return next((c for c in self._items if c.id == checkpoint_id), None)
|
|
217
|
+
|
|
218
|
+
def capture(
|
|
219
|
+
self,
|
|
220
|
+
label: str,
|
|
221
|
+
*,
|
|
222
|
+
source: str = "user",
|
|
223
|
+
reason: str = "",
|
|
224
|
+
plan_name: str = "",
|
|
225
|
+
devices: dict[str, Any] | None = None,
|
|
226
|
+
) -> Checkpoint:
|
|
227
|
+
"""Snapshot all positioners now, append to the log, and emit ``added``."""
|
|
228
|
+
positions, skipped = snapshot_positions(devices if devices is not None else _catalog_devices())
|
|
229
|
+
return self._append(label, source, reason, plan_name, positions, skipped)
|
|
230
|
+
|
|
231
|
+
def capture_if_changed(
|
|
232
|
+
self,
|
|
233
|
+
label: str,
|
|
234
|
+
*,
|
|
235
|
+
source: str = "user",
|
|
236
|
+
reason: str = "",
|
|
237
|
+
plan_name: str = "",
|
|
238
|
+
devices: dict[str, Any] | None = None,
|
|
239
|
+
) -> Checkpoint | None:
|
|
240
|
+
"""Like :meth:`capture`, but skip it (return None) when every
|
|
241
|
+
positioner is where the newest checkpoint already has it. This is
|
|
242
|
+
what the RunEngine calls before each plan, so repeated counts or
|
|
243
|
+
acquisitions at one position don't flood the log."""
|
|
244
|
+
positions, skipped = snapshot_positions(devices if devices is not None else _catalog_devices())
|
|
245
|
+
last = self._items[-1] if self._items else None
|
|
246
|
+
if last is not None and set(last.positions) == set(positions) and not any(
|
|
247
|
+
differs(positions[n], last.positions[n]) for n in positions
|
|
248
|
+
):
|
|
249
|
+
return None
|
|
250
|
+
return self._append(label, source, reason, plan_name, positions, skipped)
|
|
251
|
+
|
|
252
|
+
def _append(
|
|
253
|
+
self,
|
|
254
|
+
label: str,
|
|
255
|
+
source: str,
|
|
256
|
+
reason: str,
|
|
257
|
+
plan_name: str,
|
|
258
|
+
positions: dict[str, float],
|
|
259
|
+
skipped: list[str],
|
|
260
|
+
) -> Checkpoint:
|
|
261
|
+
cp = Checkpoint(
|
|
262
|
+
id=uuid.uuid4().hex[:12],
|
|
263
|
+
ts=time.time(),
|
|
264
|
+
label=label,
|
|
265
|
+
source=source,
|
|
266
|
+
positions=positions,
|
|
267
|
+
reason=reason,
|
|
268
|
+
plan_name=plan_name,
|
|
269
|
+
skipped=tuple(skipped),
|
|
270
|
+
)
|
|
271
|
+
with self._write_lock:
|
|
272
|
+
self._items.append(cp)
|
|
273
|
+
del self._items[:-_MAX_IN_MEMORY]
|
|
274
|
+
try:
|
|
275
|
+
self._path.parent.mkdir(parents=True, exist_ok=True)
|
|
276
|
+
with self._path.open("a", encoding="utf-8") as fh:
|
|
277
|
+
fh.write(cp.to_json() + "\n")
|
|
278
|
+
except OSError as e:
|
|
279
|
+
logger.warning("checkpoints: cannot write {}: {}", self._path, e)
|
|
280
|
+
logger.info("Checkpoint {} '{}' ({} positioners)", cp.id, label, len(positions))
|
|
281
|
+
self.added.emit(cp)
|
|
282
|
+
return cp
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def compare(cp: Checkpoint, devices: dict[str, Any] | None = None) -> list[dict[str, Any]]:
|
|
286
|
+
"""Rows of ``{name, saved, current, changed}`` for a checkpoint vs. now."""
|
|
287
|
+
current, _ = snapshot_positions(devices if devices is not None else _catalog_devices())
|
|
288
|
+
rows = []
|
|
289
|
+
for name, saved in sorted(cp.positions.items()):
|
|
290
|
+
now = current.get(name)
|
|
291
|
+
rows.append({"name": name, "saved": saved, "current": now, "changed": differs(now, saved)})
|
|
292
|
+
return rows
|
|
@@ -110,6 +110,10 @@ class BaseEngine(QObject):
|
|
|
110
110
|
# membership under the lock.
|
|
111
111
|
self._queue_lock = threading.RLock()
|
|
112
112
|
self._current_procedure: PrioritizedProcedure | None = None # Currently running
|
|
113
|
+
# Authorization for submit(): returns a denial reason, or None to
|
|
114
|
+
# allow. Installed by lightfall.auth.engine_guard; None = no check
|
|
115
|
+
# (bare engines in tests and scripts).
|
|
116
|
+
self._authorizer: Callable[[str, dict[str, Any]], str | None] | None = None
|
|
113
117
|
self._subscribers: dict[int, Callable[[str, dict], Any]] = {}
|
|
114
118
|
self._next_token = 0
|
|
115
119
|
self._pre_submit_callables: list[Callable[[str, dict[str, Any]], dict[str, Any] | None]] = []
|
|
@@ -206,6 +210,10 @@ class BaseEngine(QObject):
|
|
|
206
210
|
if not name:
|
|
207
211
|
name = self._get_procedure_name(procedure)
|
|
208
212
|
|
|
213
|
+
# Authorization is not a pre-submit hook: skip_pre_submit must not
|
|
214
|
+
# bypass it, so every caller (GUI, agent tools, IPC) is checked here.
|
|
215
|
+
self.authorize(name, kwargs)
|
|
216
|
+
|
|
209
217
|
# Run pre-submit callables
|
|
210
218
|
if not skip_pre_submit:
|
|
211
219
|
if self._run_pre_submit_hooks(name, kwargs) is None:
|
|
@@ -499,6 +507,25 @@ class BaseEngine(QObject):
|
|
|
499
507
|
return None
|
|
500
508
|
return kwargs
|
|
501
509
|
|
|
510
|
+
def set_authorizer(
|
|
511
|
+
self, authorizer: Callable[[str, dict[str, Any]], str | None] | None
|
|
512
|
+
) -> None:
|
|
513
|
+
"""Install the submit-time authorization check (see
|
|
514
|
+
:mod:`lightfall.auth.engine_guard`). ``authorizer(name, kwargs)``
|
|
515
|
+
returns a denial reason, or None to allow."""
|
|
516
|
+
self._authorizer = authorizer
|
|
517
|
+
|
|
518
|
+
def authorize(self, name: str, kwargs: dict[str, Any]) -> None:
|
|
519
|
+
"""Raise PermissionError if the installed authorizer denies running
|
|
520
|
+
``name``. Called by submit(); engines that override submit() call it
|
|
521
|
+
themselves."""
|
|
522
|
+
if self._authorizer is None:
|
|
523
|
+
return
|
|
524
|
+
reason = self._authorizer(name, kwargs)
|
|
525
|
+
if reason:
|
|
526
|
+
logger.warning(f"[{self._name}] Refused to queue '{name}': {reason}")
|
|
527
|
+
raise PermissionError(reason)
|
|
528
|
+
|
|
502
529
|
def register_pre_submit(
|
|
503
530
|
self, callable_: Callable[[str, dict[str, Any]], dict[str, Any] | None]
|
|
504
531
|
) -> None:
|
|
@@ -538,8 +565,10 @@ class BaseEngine(QObject):
|
|
|
538
565
|
# Emit Qt signal
|
|
539
566
|
self.sigOutput.emit(name, doc)
|
|
540
567
|
|
|
541
|
-
# Call direct subscribers
|
|
542
|
-
|
|
568
|
+
# Call direct subscribers. Snapshot first: this runs on the engine
|
|
569
|
+
# thread while subscribe()/unsubscribe() may run on the GUI thread (or
|
|
570
|
+
# inside a callback), and iterating a dict that changes size raises.
|
|
571
|
+
for callback in list(self._subscribers.values()):
|
|
543
572
|
try:
|
|
544
573
|
callback(name, doc)
|
|
545
574
|
except Exception as ex:
|