local-operator 0.55.2__tar.gz → 0.55.4__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.
Potentially problematic release.
This version of local-operator might be problematic. Click here for more details.
- {local_operator-0.55.2 → local_operator-0.55.4}/PKG-INFO +1 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/buildwatch.py +50 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/cli.py +61 -5
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/render.py +120 -23
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/attach_client.py +27 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/peer_send.py +114 -21
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/resume.py +13 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attached.py +42 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/catalog.py +49 -5
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/errors.py +54 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/protocol.py +15 -3
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/control.py +34 -27
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/inbox.py +30 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/process.py +627 -46
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/registry.py +104 -19
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/server.py +18 -2
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/serving.py +218 -23
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/types.py +13 -3
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/session.py +195 -5
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/app.py +192 -3
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/info_panel.py +83 -18
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_picker.py +10 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/supervisor.py +32 -8
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/PKG-INFO +1 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/pyproject.toml +1 -1
- {local_operator-0.55.2 → local_operator-0.55.4}/LICENSE +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/README.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_profiles.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/architect.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/coder.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/designer.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/manager.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/reviewer.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/scout.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agents.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/backfill.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/model.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/recorder.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/store.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ansi.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/bootstrap.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/backend.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/daemon.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/gen_ts.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/install.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/protocol.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/resources.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/state.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/callback_page.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/cli_style.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/_http.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/fal.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/google_client.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/ollama.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/openrouter.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/radient.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/serpapi.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/tavily.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clipboard.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/advisor.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/api.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/cutpoint.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/marker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/pass_.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/png.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/pruning.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/snapcompact.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/thresholds.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/tokens.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/computer_input.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config_migrations.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config_watch.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/console.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/context_files.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/credentials.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ecosystem_instructions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/env.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/action_surface.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/api.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/discovery.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/rpc.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/supervisor.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/worker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/media.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/models.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/store.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/verify.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/lifecycle.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/protocol.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/receipts.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/durable_root.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/episode.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/guards.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/host_secrets.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/model.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/provider_client.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/public_reply.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/rescue_sweep.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/responder.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/route_ids.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/secrets.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_mode.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_session.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_startup.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_worker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/fork.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/agents/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/browser/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/configuration/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/credentials/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/discovery.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/extensions/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/failover/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/mcp/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/mobile/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/peer-messaging/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/teams/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/tunnel/GUIDE.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/approval.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/comms.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/intent.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/jobs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/loop.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/reply_channel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/rows.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/subagent.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/types.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/wake.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/headless_print.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/helpers.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/herdr/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/herdr/reporter.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/imaging.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/incidents.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/collect.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/model.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/interpreter.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/jobs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/jsonl.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/keymap.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/logger.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/auth.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/config.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/credentials.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/desktop.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/grants.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/manager.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/redaction.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/resources.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/secret_refs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/tool_bridge.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/tool_cache.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/verbs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/media.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/auth.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/child.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/command_reservation.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/daemon.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/durable.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/install.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/owned.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/peer_client.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/projection.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/registrant.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/resources.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/seen.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/service.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/static/mark.png +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/tui_handle.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/types.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/assets/index-BFQgXCiH.css +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/assets/index-BbWWEcJU.js +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/index.html +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/mark.png +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/index.html +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/package.json +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/pnpm-lock.yaml +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/pnpm-workspace.yaml +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/public/mark.png +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/generate-theme-css.mjs +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/inline-mark.mjs +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/palette-source.mjs +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/agent-view.interaction.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/agent-view.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/api.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/app.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/agents-sheet.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/composer.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/markdown.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/model-sheet.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/pending-card.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/row-boundary.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/spinner.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/subagents-panel.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/todos-panel.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/tool-row.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/transcript.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/button.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/chip.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/disclosure.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/sheet.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/working-line.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/composer-resume-label.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/continuation-command.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/continuation-command.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/detail-loader.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/detail-loader.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/cn.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/column.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/format.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/mark.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/model-filter.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/main.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/model-sheet.order.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/model-sheet.states.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/past-sessions.fork.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/private-storage.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/private-storage.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/router.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/router.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/agent-view.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/new-session.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/past-sessions.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/session-list.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/session-view.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-list.unread.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-start.navigation.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.overflow.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.pending.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.seen.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.reconnect.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.unread.test.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/styles/index.css +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/styles/themes.generated.css +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/test-setup.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/theme.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/alucard.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu-light.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu-mirage.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/catppuccin-frappe.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/catppuccin-macchiato.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/dracula.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/dune.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/duskfox.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/everforest-light.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/everforest.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/gruvbox-light.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/iceberg.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/kanagawa-lotus.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/kanagawa-wave.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/local-operator.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/monokai.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/neon.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/nightfox.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/obsidian.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/one-light.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/palenight.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/palette-contract.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/radient.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/rose-pine.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/sage.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/synth.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/tokyo-night-day.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/tokyo-night.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/tool-row.queued.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/transcript.divergence.test.tsx +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/types.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/use-completion-view.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.app.json +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.json +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.node.json +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/vite.config.ts +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/catalogue.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/configure.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/costs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/defaults.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/discovery.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/effort.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/effort_classifier.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/ids.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/naming.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/prices.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/ranking.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/speed.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/broadcast.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/cmux.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/markers.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/types.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/notifications/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/notifications/compose.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/optional.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/org_chart.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/paths.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/proc.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/procname.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/procstate.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_api.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/compaction_summary.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/edit_file_instructions.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/system.md +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/auth_cli.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/auth_store.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/catalogue.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/clients.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/context.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/controller.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/failover.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/local.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/local_discovery.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/login_defaults.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/anthropic.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/callback_server.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/device_code.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/kimi.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/openai.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/pkce.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/qwencloud.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/radient.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/xai.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/zai.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/radient_credentials.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/replay.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/usage.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/usage_cache.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/reexec.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/scheduler_service.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/access.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/audit.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/broker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/brokerd.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/cli.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/client.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/crypto.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/errors.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/handlers.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/keys.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/peer.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/promote.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/protocol.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/runtime.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/session.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/store.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/app.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/dependencies.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/desktop.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/generate_openapi.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/desktop_sessions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/schemas.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/openapi.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/retire.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/agents.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/auth.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/capabilities.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/chat.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/config.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/credentials.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_catalogues.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_claim.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_lifecycle.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_profiles.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_radient.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_sessions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/health.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/jobs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/models.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/schedules.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/settings.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/speech.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/sse.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/static.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/transcription.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/websockets.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/attachment_utils.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_auth.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_commands.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_profiles.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_receipts.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_sessions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/event_broker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/job_processor_queue.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/operator.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/speech_utils.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse_bridge.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse_publisher.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/websocket_manager.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attachments.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attention.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/cleanup.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/cold_model.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/creation.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/credential_ops.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/frontend_state.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/goal.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/goal_loop.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/history_window.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/mcp_status.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/model_selection.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/naming.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/peer.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/preview.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/restored_rows.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/retention.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/exec_control.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/launch.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/publication.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewer_client.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewer_server.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewers.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/saved_preview.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/search_index.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/session_search.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/shell_record.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/spend.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/subscriptions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/transcript.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/usage_seed.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/variable_ops.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session_factory.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session_lease.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/settings_io.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/api.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/discovery.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/embeddings.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/index.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/invoke.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/protocol.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/vectors.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/slash_commands.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/apple.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/cmux.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/fallback.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/ghostty.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/kitty.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/policy.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/types.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/wezterm.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/stream.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/teams.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/terminals.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/agent_tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/builtin.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/eval.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/eval_worker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/group_reaper.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/lsp.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/registry.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/secret_tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/spill.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/team_tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/animation.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/attention.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/autocomplete.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/bindings.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/composer_focus.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/copy_targets.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/costs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/error_text.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/events.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/glyphs.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/images.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/input_decode.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/local_operator.tcss +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/markdown_theme.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/move_targets.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/icon.icns +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/notifier.m +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notify.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/org_layout.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/org_render.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/classics.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/companions.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/lights.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/modern.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/nature.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/neon.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/radient.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/rose_pine.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/resume_click.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_catalog.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_drafts.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_interaction.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_navigation.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_presentation.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_workspace.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/settings.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/shimmer.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/terminal_modes.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/terminal_title.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/theme.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/_copy_markdown.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/analytics_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/approval.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/aside_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/ask_picker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/assistant.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/command_picker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/copy_picker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/editor.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/image_block.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/key_prompt.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/model_picker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/move_picker.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/org_chart_view.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/overlay.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/report_view.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_sidebar.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/settings_view.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/status_line.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/subagent_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/subagent_view.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/toast.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/todo_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/tool_card.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/transcript.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/usage_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/wake_panel.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/welcome.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/window_focus.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/api.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/arguments.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/cli.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/config.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/gateway.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/install.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/service.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/types.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/backend.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/state.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/update.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/variables.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/deliveries.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/display.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/install.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/store.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/cli.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/failure.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/models.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/render.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/service.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/__init__.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/cli.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/cost.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/io.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/models.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/pages.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/providers.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/read_tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/service.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/tool.py +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/SOURCES.txt +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/dependency_links.txt +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/entry_points.txt +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/requires.txt +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/top_level.txt +0 -0
- {local_operator-0.55.2 → local_operator-0.55.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: local-operator
|
|
3
|
-
Version: 0.55.
|
|
3
|
+
Version: 0.55.4
|
|
4
4
|
Summary: A team of proactive AI assistants that can work together behind the scenes to help you get mundane tasks done so you can focus on the fun stuff.
|
|
5
5
|
Author-email: Damian Tran <damian@gominerva.com>
|
|
6
6
|
License: MIT License
|
|
@@ -26,6 +26,18 @@ would be paid by processes that may never watch a build at all. It is also why
|
|
|
26
26
|
this is NOT a section of :mod:`local_operator.update`: that module is the heavy
|
|
27
27
|
one, and neither of these callers may pay for it.
|
|
28
28
|
|
|
29
|
+
It also carries the WARM-WINDOW term of the residency predicate — the "a wake is
|
|
30
|
+
about to fire" reason a runtime stays resident, :data:`WARM_WINDOW_S` and
|
|
31
|
+
:func:`wake_within_window` — and that one is here for a sharper version of the
|
|
32
|
+
same reason. The handle that asks it (``ServingSessionHandle.may_refresh``)
|
|
33
|
+
cannot import the runtime module to reach the helper: an import of a module with
|
|
34
|
+
no ``sys.modules`` entry is answered from DISK, and the state that matters is
|
|
35
|
+
exactly the one where the runtime's own files have been replaced — so the
|
|
36
|
+
function-local import raised ``ImportError``, the reaper read a failing
|
|
37
|
+
predicate as "not idle", and a draining runtime could never reach its exit
|
|
38
|
+
(QA round 1, Q-1). A stdlib-only module that BOTH sides already import is the
|
|
39
|
+
only home that is still importable at that moment.
|
|
40
|
+
|
|
29
41
|
The constants are re-exported by ``session/runtime/process.py`` under the names
|
|
30
42
|
that module has always published (``BUILD_CHECK_S``, ``_build_changed``, …) so
|
|
31
43
|
nothing outside this module had to change when the definition moved here.
|
|
@@ -35,6 +47,7 @@ from __future__ import annotations
|
|
|
35
47
|
|
|
36
48
|
import logging
|
|
37
49
|
import os
|
|
50
|
+
import time
|
|
38
51
|
from typing import TYPE_CHECKING
|
|
39
52
|
|
|
40
53
|
if TYPE_CHECKING:
|
|
@@ -99,6 +112,43 @@ def build_stagger_seconds() -> float:
|
|
|
99
112
|
return positive_seconds(os.environ.get("LOP_BUILD_STAGGER_S", ""), BUILD_STAGGER_S)
|
|
100
113
|
|
|
101
114
|
|
|
115
|
+
#: A runtime whose own scheduler will fire a wake within this window stays
|
|
116
|
+
#: resident instead of exiting and paying a ~1.2 s cold start (plus the
|
|
117
|
+
#: supervisor's tick latency) to come back for it. Chosen to exceed
|
|
118
|
+
#: ``MIN_WAKE_INTERVAL_MS`` (60 s, harness.wake) by a margin: a session with
|
|
119
|
+
#: the tightest allowed recurrence then never thrashes exit → spawn → exit
|
|
120
|
+
#: once a minute, because the next fire is always inside the window. Anything
|
|
121
|
+
#: due further out is cheaper to leave to a cold spawn than to hold ~283 MB
|
|
122
|
+
#: for. Not env-tunable on purpose — it pairs with a constant in the wake
|
|
123
|
+
#: layer, and a knob would let the two drift apart.
|
|
124
|
+
WARM_WINDOW_S = 90.0
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def wake_within_window(handle: object, *, now_ms: int | None = None) -> bool:
|
|
128
|
+
"""Term 2 of the residency predicate: does this runtime's OWN scheduler
|
|
129
|
+
have a wake due within ``WARM_WINDOW_S``? Read through the handle (an
|
|
130
|
+
optional capability, probed) so reduced test handles and older handle
|
|
131
|
+
implementations that never grew the accessor behave as "no wakes" rather
|
|
132
|
+
than crash the reaper.
|
|
133
|
+
|
|
134
|
+
Failing open is the policy on purpose: a broken accessor must not pin the
|
|
135
|
+
runtime it was asked about. See this module's docstring for why the
|
|
136
|
+
function lives here rather than in the module that used to define it.
|
|
137
|
+
"""
|
|
138
|
+
accessor = getattr(handle, "next_wake_due_at", None)
|
|
139
|
+
if not callable(accessor):
|
|
140
|
+
return False
|
|
141
|
+
try:
|
|
142
|
+
due_at = accessor()
|
|
143
|
+
except Exception: # noqa: BLE001 — a broken accessor must not pin the runtime
|
|
144
|
+
logger.debug("next_wake_due_at failed; treating as no wake", exc_info=True)
|
|
145
|
+
return False
|
|
146
|
+
if not isinstance(due_at, int) or isinstance(due_at, bool):
|
|
147
|
+
return False # None, or a shape this reaper does not understand
|
|
148
|
+
now = int(time.time() * 1000) if now_ms is None else now_ms
|
|
149
|
+
return due_at - now <= WARM_WINDOW_S * 1000
|
|
150
|
+
|
|
151
|
+
|
|
102
152
|
def build_prefix() -> str | None:
|
|
103
153
|
"""Where to read the install stamp from: ``sys.prefix`` in production.
|
|
104
154
|
|
|
@@ -2894,6 +2894,15 @@ def send_command(args: argparse.Namespace) -> int:
|
|
|
2894
2894
|
sender=sender,
|
|
2895
2895
|
)
|
|
2896
2896
|
)
|
|
2897
|
+
except TimeoutError as exc:
|
|
2898
|
+
# NOT "could not deliver": a read deadline expiring means no
|
|
2899
|
+
# ACKNOWLEDGED result, not an undelivered message — the mutation op is
|
|
2900
|
+
# already in the owner's socket buffer, and the receiver commits before
|
|
2901
|
+
# it acks (``peer_send._unanswered_dial_detail``). Saying it failed
|
|
2902
|
+
# invites a duplicate steer or wake. Same split, and the same words, as
|
|
2903
|
+
# the send TOOL's arm below it.
|
|
2904
|
+
_peer_red(f"no delivery confirmation: {exc}")
|
|
2905
|
+
return 1
|
|
2897
2906
|
except (RuntimeError, ConnectionError, OSError, ValueError) as exc:
|
|
2898
2907
|
# ValueError covers a read fault the frame reader could still surface
|
|
2899
2908
|
# (e.g. an oversized non-welcome line): it must become the same soft,
|
|
@@ -3205,7 +3214,7 @@ def sessions_command(args: argparse.Namespace) -> int:
|
|
|
3205
3214
|
}
|
|
3206
3215
|
show_why = any(why.values())
|
|
3207
3216
|
header = (
|
|
3208
|
-
f"{'STATE':<
|
|
3217
|
+
f"{'STATE':<{STATE_COLUMN_WIDTH}} {'PID':>7} {'KIND':<7} "
|
|
3209
3218
|
f"{'NEEDS':<{NEEDS_COLUMN_WIDTH}} {'CONVERSATION':<{CONVERSATION_COLUMN_WIDTH}} "
|
|
3210
3219
|
f"{'MODEL':<{MODEL_COLUMN_WIDTH}} {'RSS':>8} {'FOOTPRINT':>9} {'UPTIME':>8} "
|
|
3211
3220
|
f"{'HB_AGE':>7}"
|
|
@@ -3231,8 +3240,9 @@ def sessions_command(args: argparse.Namespace) -> int:
|
|
|
3231
3240
|
model = _fit_cell(row["model_label"] or "", MODEL_COLUMN_WIDTH)
|
|
3232
3241
|
needs = _fit_cell(row.get("pending") or "", NEEDS_COLUMN_WIDTH)
|
|
3233
3242
|
stored = row["state"] == "stored"
|
|
3243
|
+
state = _state_cell(row["state"])
|
|
3234
3244
|
line = (
|
|
3235
|
-
f"{
|
|
3245
|
+
f"{state:<{STATE_COLUMN_WIDTH}} "
|
|
3236
3246
|
f"{('—' if stored else str(row['pid'])):>7} "
|
|
3237
3247
|
f"{(row['kind'] or '—'):<7} {_pad_cell(needs, NEEDS_COLUMN_WIDTH)} "
|
|
3238
3248
|
f"{_pad_cell(name, CONVERSATION_COLUMN_WIDTH)} "
|
|
@@ -4479,12 +4489,28 @@ def wake_command(args: argparse.Namespace) -> int:
|
|
|
4479
4489
|
# every other non-running state (round 2, D14): the surface points at
|
|
4480
4490
|
# `lop wake install` elsewhere, and here no wake-subsystem action can
|
|
4481
4491
|
# help at all, so it names the two commands that can.
|
|
4492
|
+
#
|
|
4493
|
+
# The remedy names the ladder's FIRST rung, with the forced rung's cost
|
|
4494
|
+
# beside it (design round 2, D3). A lapsed beat — which is what this
|
|
4495
|
+
# line describes — is exactly what `_identity_by_start_time` admits, so
|
|
4496
|
+
# `lop stop --pid N` is the rung that acts on this state; `--force`
|
|
4497
|
+
# re-reads the record only while the beat is still inside
|
|
4498
|
+
# `HEARTBEAT_TIMEOUT_S` (`control._identity_by_record`), so here it cannot
|
|
4499
|
+
# convert a refusal into a stop. It stays named for the shape it IS for —
|
|
4500
|
+
# an owner that is still beating but silent — with what running it
|
|
4501
|
+
# does. "It will not recover on its own" stays gone with it: a stale
|
|
4502
|
+
# beat is evidence the owner stopped reporting, not a forecast about a
|
|
4503
|
+
# long turn that may simply finish (``registry.classify``).
|
|
4482
4504
|
print(
|
|
4483
4505
|
_wrap_status(
|
|
4484
4506
|
f"{session_id} (pid {pid}) has not sent a heartbeat in "
|
|
4485
|
-
f"{_format_duration(age)}
|
|
4486
|
-
f"
|
|
4487
|
-
f"it
|
|
4507
|
+
f"{_format_duration(age)} and is not answering its socket; it holds "
|
|
4508
|
+
f"the session lease, so its wake cannot fire while it does not "
|
|
4509
|
+
f"answer. Nothing here can recover it — 'lop sessions' shows it; "
|
|
4510
|
+
f"'lop stop --pid {pid}' asks it to stop and signals it if it will "
|
|
4511
|
+
f"not answer, while 'lop stop --pid {pid} --force' signal-stops the "
|
|
4512
|
+
f"process, discarding its in-flight turn, for an owner that is "
|
|
4513
|
+
f"still beating but silent",
|
|
4488
4514
|
"wedged:",
|
|
4489
4515
|
)
|
|
4490
4516
|
)
|
|
@@ -4507,6 +4533,36 @@ def _elide_id(session_id: str, width: int) -> str:
|
|
|
4507
4533
|
return session_id[: max(width - 1, 1)] + "…"
|
|
4508
4534
|
|
|
4509
4535
|
|
|
4536
|
+
#: Width of `lop sessions`' leading STATE column, in display CELLS.
|
|
4537
|
+
#:
|
|
4538
|
+
#: Sized for the one human PHRASE it can carry rather than for the tokens
|
|
4539
|
+
#: around it (``wedged`` is 6 cells, ``not answering`` 13). The column used to
|
|
4540
|
+
#: be 7 and printed the raw token, which is fine for a script and not for the
|
|
4541
|
+
#: one person-facing place the wake surfaces send a reader to (design round 2,
|
|
4542
|
+
#: D5; QA Q1). ``--json``'s ``state`` key is untouched: it is the wire value.
|
|
4543
|
+
STATE_COLUMN_WIDTH = 13
|
|
4544
|
+
|
|
4545
|
+
|
|
4546
|
+
def _state_cell(state: str) -> str:
|
|
4547
|
+
"""The STATE cell for a person, from the state token a machine reads.
|
|
4548
|
+
|
|
4549
|
+
``wedged`` is the one value in this column that is a verdict rather than a
|
|
4550
|
+
word: ``lop wake status`` ends its wedge line with "'lop sessions' shows
|
|
4551
|
+
it", so this table is where an operator arrives, and it was the only
|
|
4552
|
+
person-facing surface where the token stood with no sentence to qualify it.
|
|
4553
|
+
It reads as ``not answering`` — the phrase every other surface uses, and the
|
|
4554
|
+
one the adjacent ``HB_AGE`` column measures — while ``--json`` keeps
|
|
4555
|
+
``wedged`` for the ~15 call sites and the desktop catalogue's
|
|
4556
|
+
``status.code`` that branch on it.
|
|
4557
|
+
|
|
4558
|
+
``stale`` deliberately keeps its token: it means the record's pid is GONE,
|
|
4559
|
+
which is a different fact from this one rather than a longer way of saying
|
|
4560
|
+
the same thing, and the state whose wording this change is about is the one
|
|
4561
|
+
where the process is still there.
|
|
4562
|
+
"""
|
|
4563
|
+
return "not answering" if state == "wedged" else state
|
|
4564
|
+
|
|
4565
|
+
|
|
4510
4566
|
#: Width of `lop sessions`' trailing WHY column, in display CELLS.
|
|
4511
4567
|
#:
|
|
4512
4568
|
#: Bounded because a reason is a SENTENCE — ``the runtime disappeared without
|
|
@@ -39,6 +39,7 @@ from pathlib import Path
|
|
|
39
39
|
from local_operator.info.model import (
|
|
40
40
|
UNKNOWN,
|
|
41
41
|
InfoSnapshot,
|
|
42
|
+
SessionsInfo,
|
|
42
43
|
SubagentLine,
|
|
43
44
|
format_bytes,
|
|
44
45
|
format_duration,
|
|
@@ -194,6 +195,85 @@ def plural(count: int, noun: str) -> str:
|
|
|
194
195
|
return f"{count} {_IRREGULAR_PLURALS.get(noun, noun + 's')}"
|
|
195
196
|
|
|
196
197
|
|
|
198
|
+
#: How many pids the not-answering sentence names before it stops listing
|
|
199
|
+
#: them. A host with ten such sessions has one problem, so the sentence stays a
|
|
200
|
+
#: sentence: the count leads and the remainder is summarised.
|
|
201
|
+
_NOT_ANSWERING_PIDS = 3
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def not_answering_clause(sessions: SessionsInfo | None) -> str:
|
|
205
|
+
"""The sentence for a runtime that has stopped reporting. ``""`` if none.
|
|
206
|
+
|
|
207
|
+
ONE sentence, shared by the export and the panel, for the reason
|
|
208
|
+
:func:`plural` is shared: this text lands in bug reports pasted off the
|
|
209
|
+
screen, and two copies would drift into admitting different amounts.
|
|
210
|
+
|
|
211
|
+
It says what was MEASURED and never what it means. ``registry.classify`` is
|
|
212
|
+
explicit that a stale heartbeat is degraded-responsiveness evidence — the
|
|
213
|
+
beat is authored by the runtime's own event loop, so a long turn produces
|
|
214
|
+
the same reading as a frozen process — and the sentence therefore names the
|
|
215
|
+
age, keeps the pid (which is the evidence that the process is still there),
|
|
216
|
+
and stops short of any diagnosis.
|
|
217
|
+
|
|
218
|
+
The remedy names the ladder's FIRST rung, and that is a correction rather
|
|
219
|
+
than a preference (design round 2, D3). Which rung reaches which shape is
|
|
220
|
+
readable from the ladder itself: ``control._identity_by_record`` re-reads
|
|
221
|
+
the record's own fields only while the beat is INSIDE
|
|
222
|
+
``HEARTBEAT_TIMEOUT_S``, so on a record :func:`registry.classify` has
|
|
223
|
+
already called ``wedged`` the forced rung cannot convert a refusal into a
|
|
224
|
+
stop — the rung that acts here is the plain one, whose start-time proof
|
|
225
|
+
``_identity_by_start_time`` admits precisely BECAUSE the beat has lapsed.
|
|
226
|
+
Naming only the forced stop handed the reader a heavier command that cannot
|
|
227
|
+
do more on this state, and it said nothing about what running it costs.
|
|
228
|
+
"""
|
|
229
|
+
if sessions is None or not sessions.available or not sessions.wedged:
|
|
230
|
+
return ""
|
|
231
|
+
# The COUNT is the header's, not the row list's: the two can disagree in a
|
|
232
|
+
# hand-built ``SessionsInfo``, and the sentence sits under a header that
|
|
233
|
+
# states this number — a lead that contradicts the line above it reads as
|
|
234
|
+
# two different problems (review round 2, N2). The ROWS still supply the
|
|
235
|
+
# age and the pids, because those are the parts no header carries.
|
|
236
|
+
count = sessions.wedged
|
|
237
|
+
one = count == 1
|
|
238
|
+
rows = [line for line in sessions.lines if line.state == "wedged"]
|
|
239
|
+
if not rows:
|
|
240
|
+
# A hand-built ``SessionsInfo`` (a test, a partial snapshot) whose count
|
|
241
|
+
# and rows disagree. The DISCLOSURE still holds — a count that includes
|
|
242
|
+
# these runtimes is as of a heartbeat that stopped — but the age, the
|
|
243
|
+
# pid and the remedy are the parts that need a row, and inventing a pid
|
|
244
|
+
# would be worse than the vaguer sentence.
|
|
245
|
+
return (
|
|
246
|
+
f"{plural(count, 'session')} {'is' if one else 'are'} not "
|
|
247
|
+
f"answering; {'its' if one else 'their'} counts are as of "
|
|
248
|
+
f"{'its' if one else 'their'} last heartbeat"
|
|
249
|
+
)
|
|
250
|
+
worst = max(rows, key=lambda line: line.heartbeat_age_s)
|
|
251
|
+
listed = min(len(rows), _NOT_ANSWERING_PIDS)
|
|
252
|
+
pids = ", ".join(str(line.pid) for line in rows[:listed])
|
|
253
|
+
if count > listed:
|
|
254
|
+
pids += f" and {count - listed} more"
|
|
255
|
+
# The remedy names ONE pid on the single-row sentence and a PATTERN when the
|
|
256
|
+
# row list is longer: the old form listed up to three pids and then handed
|
|
257
|
+
# the reader a command for an arbitrary one of them (review round 2, N2).
|
|
258
|
+
remedy = (
|
|
259
|
+
f"'lop stop --pid {worst.pid}' asks it to stop and signals it if it will "
|
|
260
|
+
f"not answer, '/stop {worst.pid}' from this screen does the same, and "
|
|
261
|
+
f"'lop stop --pid {worst.pid} --force' signal-stops the process, discarding "
|
|
262
|
+
f"its in-flight turn, for an owner that is still beating but silent"
|
|
263
|
+
if one
|
|
264
|
+
else "'lop stop --pid N', once per pid above, asks each to stop and signals "
|
|
265
|
+
"it if it will not answer, '/stop N' from this screen does the same, and "
|
|
266
|
+
"'lop stop --pid N --force' signal-stops the process, discarding its "
|
|
267
|
+
"in-flight turn, for an owner that is still beating but silent"
|
|
268
|
+
)
|
|
269
|
+
return (
|
|
270
|
+
f"{plural(count, 'session')} {'is' if one else 'are'} not answering — "
|
|
271
|
+
f"last runtime heartbeat {format_duration(worst.heartbeat_age_s)} ago "
|
|
272
|
+
f"(pid {pids}); {'its counts are' if one else 'their counts are'} as of "
|
|
273
|
+
f"{'that heartbeat' if one else 'those heartbeats'}. {remedy}"
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
|
|
197
277
|
def _tree_lines(tree: tuple[SubagentLine, ...], deeper: int) -> list[str]:
|
|
198
278
|
out: list[str] = []
|
|
199
279
|
for node in tree:
|
|
@@ -283,20 +363,40 @@ def build_export(snapshot: InfoSnapshot) -> str:
|
|
|
283
363
|
elif not sessions.lines:
|
|
284
364
|
lines.append(" none")
|
|
285
365
|
else:
|
|
366
|
+
# The prose says what the evidence supports; the bracketed token per row
|
|
367
|
+
# below stays the STATE WORD, printed verbatim so a reader can grep it
|
|
368
|
+
# against ``--json`` and against the record's own field. That split is
|
|
369
|
+
# deliberate: the vocabulary is a wire contract with ~15 call sites and
|
|
370
|
+
# the desktop catalogue's ``status.code``, and renaming it would change a
|
|
371
|
+
# value to restate a sentence. Every SENTENCE is honest.
|
|
286
372
|
lines.append(
|
|
287
|
-
f" {sessions.live} live · {sessions.wedged}
|
|
288
|
-
+ (" · BUILD SKEW" if sessions.build_skew else "")
|
|
373
|
+
f" {sessions.live} live · {sessions.wedged} not answering · "
|
|
374
|
+
f"{sessions.total} total" + (" · BUILD SKEW" if sessions.build_skew else "")
|
|
289
375
|
)
|
|
290
376
|
for line in sessions.lines:
|
|
291
377
|
mark = "*" if line.is_self else "-"
|
|
292
378
|
name = line.conversation_name or line.session_id or str(line.pid)
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
379
|
+
# A wedged row sheds two fields rather than merely ordering them
|
|
380
|
+
# last (design round 2, D4): usage is sampled for LIVE pids only, so
|
|
381
|
+
# the "—" this field would print is a measurement that was never
|
|
382
|
+
# taken for this one, and "busy" is the record's PRE-silence flag —
|
|
383
|
+
# the row exists to remove unqualified progress, so it must not end
|
|
384
|
+
# by asserting activity. It ends on the facts it exists for.
|
|
385
|
+
fields = [f"{mark} [{line.state}] {name}", line.kind, f"pid {line.pid}"]
|
|
386
|
+
fields.append(format_duration(line.uptime_s))
|
|
387
|
+
if line.state == "wedged":
|
|
388
|
+
# The measured half of "not answering", beside the state token
|
|
389
|
+
# rather than only in the caveat below: a pasted export is read
|
|
390
|
+
# on its own, and `[wedged]` with no age beside it is exactly
|
|
391
|
+
# the bare verdict the wording on every other surface avoids.
|
|
392
|
+
fields.append(f"last heartbeat {format_duration(line.heartbeat_age_s)} ago")
|
|
393
|
+
else:
|
|
394
|
+
fields.append(format_bytes(line.footprint_bytes or line.rss_bytes))
|
|
395
|
+
if line.busy:
|
|
396
|
+
fields.append("busy")
|
|
397
|
+
if line.pending:
|
|
398
|
+
fields.append(f"needs {line.pending}")
|
|
399
|
+
lines.append(" " + " · ".join(fields))
|
|
300
400
|
lines.append(f" {relativise_home(line.cwd)} · {line.model_label or '—'}")
|
|
301
401
|
|
|
302
402
|
lines += ["", "## Agents and subagents"]
|
|
@@ -307,7 +407,7 @@ def build_export(snapshot: InfoSnapshot) -> str:
|
|
|
307
407
|
# sum below, so the denominator printed here has to match it.
|
|
308
408
|
lines.append(
|
|
309
409
|
f" runtimes {sessions.live + sessions.wedged} total — "
|
|
310
|
-
f"{sessions.live} live · {sessions.wedged}
|
|
410
|
+
f"{sessions.live} live · {sessions.wedged} not answering"
|
|
311
411
|
)
|
|
312
412
|
# Same rule as the screen: the sum runs over runtimes that REPORTED, so
|
|
313
413
|
# when some did not the total is a floor, and when none did there is no
|
|
@@ -394,19 +494,16 @@ def build_export(snapshot: InfoSnapshot) -> str:
|
|
|
394
494
|
f"{'does' if one else 'do'} not report subagents — lower bound"
|
|
395
495
|
)
|
|
396
496
|
if sessions.available and sessions.wedged:
|
|
397
|
-
# PARITY with the panel, which has said this since the counts landed
|
|
398
|
-
#
|
|
399
|
-
# can still have children working — so their
|
|
400
|
-
# their last heartbeat, and an export that omitted
|
|
401
|
-
# present stale counts as current in the one
|
|
402
|
-
# screen.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
f"{'its' if one else 'their'} counts are as of "
|
|
408
|
-
f"{'its' if one else 'their'} last heartbeat"
|
|
409
|
-
)
|
|
497
|
+
# PARITY with the panel, which has said this since the counts landed,
|
|
498
|
+
# now through ONE shared sentence: the totals above deliberately include
|
|
499
|
+
# these runtimes — a quiet pid can still have children working — so their
|
|
500
|
+
# contribution is as of their last heartbeat, and an export that omitted
|
|
501
|
+
# the disclosure would present stale counts as current in the one
|
|
502
|
+
# artifact that outlives the screen. The sentence also carries the
|
|
503
|
+
# REMEDY, which is the part a reader of a pasted export has no other way
|
|
504
|
+
# to get: the row above names the state and the measured age, and the
|
|
505
|
+
# forced stop is the rung that acts on it.
|
|
506
|
+
caveats.append(not_answering_clause(sessions))
|
|
410
507
|
if caveats:
|
|
411
508
|
# ``·`` and not ``;``: the wedged clause already contains a semicolon
|
|
412
509
|
# of its own, so a semicolon joiner produced two different grammatical
|
|
@@ -799,6 +799,7 @@ class AttachClient:
|
|
|
799
799
|
slash_consumers: Sequence[str] | None = None,
|
|
800
800
|
on_frontend_sync: Callable[[dict[str, Any]], None] | None = None,
|
|
801
801
|
on_frontend_update: Callable[[dict[str, Any]], None] | None = None,
|
|
802
|
+
on_retiring: Callable[[dict[str, Any]], None] | None = None,
|
|
802
803
|
surface: str = "terminal",
|
|
803
804
|
) -> None:
|
|
804
805
|
self._surface = surface
|
|
@@ -828,6 +829,17 @@ class AttachClient:
|
|
|
828
829
|
self._slash_consumers = list(slash_consumers) if slash_consumers is not None else None
|
|
829
830
|
self._on_frontend_sync = on_frontend_sync
|
|
830
831
|
self._on_frontend_update = on_frontend_update
|
|
832
|
+
#: Fired the moment a ``retiring`` frame ARRIVES, with the frame itself.
|
|
833
|
+
#: The op also sets the disconnect reason below, and that was the whole
|
|
834
|
+
#: of its original job — but the reason is only read when the socket
|
|
835
|
+
#: CLOSES, and on the drain rung the socket stays open until the
|
|
836
|
+
#: in-flight work is done (measured 26 s). A host that wants to say
|
|
837
|
+
#: anything to the operator before then has to hear it here; the frame's
|
|
838
|
+
#: ``draining`` field is the runtime's own verdict on whether refusals
|
|
839
|
+
#: are in force, and is the only honest source for that (QA round 3,
|
|
840
|
+
#: Q-1). Deliberately separate from ``on_disconnected`` for the same
|
|
841
|
+
#: reason: they are the start and the end of a handover, not one event.
|
|
842
|
+
self._on_retiring = on_retiring
|
|
831
843
|
self._frontend_epoch: str | None = None
|
|
832
844
|
self._frontend_sequence: int | None = None
|
|
833
845
|
self._reader: asyncio.StreamReader | None = None
|
|
@@ -1107,6 +1119,17 @@ class AttachClient:
|
|
|
1107
1119
|
# already reads that string. The host goes cold at once
|
|
1108
1120
|
# and re-engages rather than chasing a record for 8 s.
|
|
1109
1121
|
reason = RETIRING_REASON
|
|
1122
|
+
# AND the frame is an event in its own right, straight away:
|
|
1123
|
+
# on the drain rung the EOF is NOT moments away (the runtime
|
|
1124
|
+
# stays until its work is done), and a host that only heard
|
|
1125
|
+
# the reason at the close learned of the handover after it
|
|
1126
|
+
# was over. A callback failure must not kill the pump, same
|
|
1127
|
+
# contract as the event relay above.
|
|
1128
|
+
if self._on_retiring is not None:
|
|
1129
|
+
try:
|
|
1130
|
+
self._on_retiring(frame)
|
|
1131
|
+
except Exception: # noqa: BLE001
|
|
1132
|
+
continue
|
|
1110
1133
|
elif op in ("ack", "error", "result"):
|
|
1111
1134
|
req = frame.get("req")
|
|
1112
1135
|
future = self._pending.pop(req, None)
|
|
@@ -1630,6 +1653,10 @@ class AttachClient:
|
|
|
1630
1653
|
``AttachedSession`` is that case.
|
|
1631
1654
|
"""
|
|
1632
1655
|
self._on_disconnected = lambda _reason: None
|
|
1656
|
+
# The frame hook is dropped with it: an abandoned connection's frames
|
|
1657
|
+
# are not this host's to hear, and a late ``retiring`` from the socket
|
|
1658
|
+
# it refused to keep would paint a handover it is no longer part of.
|
|
1659
|
+
self._on_retiring = None
|
|
1633
1660
|
self.close()
|
|
1634
1661
|
|
|
1635
1662
|
def close(self) -> None:
|
|
@@ -26,6 +26,7 @@ import time
|
|
|
26
26
|
from pathlib import Path
|
|
27
27
|
from typing import Any, NamedTuple
|
|
28
28
|
|
|
29
|
+
from local_operator.info.model import format_duration
|
|
29
30
|
from local_operator.paths import config_dir
|
|
30
31
|
from local_operator.session.runtime import registry
|
|
31
32
|
|
|
@@ -68,12 +69,21 @@ def resolve_peer_target(
|
|
|
68
69
|
record has that pid does the digit string fall through to the substring
|
|
69
70
|
match, so a session id or name that happens to be numeric still works.
|
|
70
71
|
|
|
71
|
-
Only ``live`` records are eligible (a
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
Only ``live`` records are eligible (a record whose owner has stopped
|
|
73
|
+
reporting for ``HEARTBEAT_TIMEOUT_S`` is not one a plain send should assume
|
|
74
|
+
can be reached; ``stale`` is dead) — unless ``include_wedged``, which the
|
|
75
|
+
kill switch passes: a session that is not answering is exactly the one a
|
|
76
|
+
user needs to be able to STOP, and the stop ladder's signal rungs are built
|
|
75
77
|
for a runtime that will not answer. A send never wants that; a message to
|
|
76
|
-
a
|
|
78
|
+
such a runtime is a message that may sit unread.
|
|
79
|
+
|
|
80
|
+
Note what that refusal is and is not. It is a rule about which target to
|
|
81
|
+
DIAL, not a claim that the owner is broken: the beat is authored by the
|
|
82
|
+
runtime's own event loop, so a busy session can read ``wedged`` too
|
|
83
|
+
(``registry.classify``). The cost of being wrong that way is bounded and
|
|
84
|
+
visible — a sender who addresses the session anyway gets the
|
|
85
|
+
unconfirmed-delivery sentence (:func:`_unanswered_dial_detail`) rather than
|
|
86
|
+
a silent loss.
|
|
77
87
|
|
|
78
88
|
A selector (``pid``/``session``) alongside a ``target`` substring is REFUSED
|
|
79
89
|
rather than resolved. The two name different sessions, and the precedence
|
|
@@ -120,14 +130,7 @@ def resolve_peer_target(
|
|
|
120
130
|
for rec, state in scanned:
|
|
121
131
|
if rec.pid == pid:
|
|
122
132
|
if state not in eligible:
|
|
123
|
-
return (
|
|
124
|
-
None,
|
|
125
|
-
[],
|
|
126
|
-
(
|
|
127
|
-
f"target pid {pid} is {state}, not live "
|
|
128
|
-
"(its owner is not responding); try again shortly"
|
|
129
|
-
),
|
|
130
|
-
)
|
|
133
|
+
return None, [], _not_dialable(f"target pid {pid}", rec, state)
|
|
131
134
|
return rec, [], ""
|
|
132
135
|
return None, [], f"no session found with pid {pid}"
|
|
133
136
|
|
|
@@ -135,7 +138,7 @@ def resolve_peer_target(
|
|
|
135
138
|
for rec, state in scanned:
|
|
136
139
|
if rec.session_id == session:
|
|
137
140
|
if state not in eligible:
|
|
138
|
-
return None, [], (f"target session {session}
|
|
141
|
+
return None, [], _not_dialable(f"target session {session}", rec, state)
|
|
139
142
|
return rec, [], ""
|
|
140
143
|
return None, [], f"no session found with session id {session!r}"
|
|
141
144
|
|
|
@@ -203,9 +206,10 @@ def resolve_peer_target(
|
|
|
203
206
|
return (
|
|
204
207
|
None,
|
|
205
208
|
[],
|
|
206
|
-
(
|
|
207
|
-
f"the only match for {needle_source!r}
|
|
208
|
-
|
|
209
|
+
_not_dialable(
|
|
210
|
+
f"the only match for {needle_source!r} (pid {wedged[0].pid})",
|
|
211
|
+
wedged[0],
|
|
212
|
+
"wedged",
|
|
209
213
|
),
|
|
210
214
|
)
|
|
211
215
|
return None, [], f"no live session matches {needle_source!r}"
|
|
@@ -214,6 +218,29 @@ def resolve_peer_target(
|
|
|
214
218
|
return matches[0], [], ""
|
|
215
219
|
|
|
216
220
|
|
|
221
|
+
def _not_dialable(label: str, record: "Any", state: str) -> str:
|
|
222
|
+
"""Why a plain send will not dial this record. Never over-claims.
|
|
223
|
+
|
|
224
|
+
``wedged`` is the record that stopped REPORTING, so the sentence gives the
|
|
225
|
+
measured age — ``registry.classify`` owns that number and the clamp around
|
|
226
|
+
it — and names neither a cause nor a schedule. The wording it replaces
|
|
227
|
+
said "its owner is not responding; try again shortly", which invented a
|
|
228
|
+
timetable: the owner may report again the moment a long turn finishes, and
|
|
229
|
+
it may never, and nothing outside the process can tell the two apart.
|
|
230
|
+
|
|
231
|
+
``stale`` is the pid being gone, and then there is no measurement to quote.
|
|
232
|
+
Shared by all three refusal paths (exact pid, exact session id, substring)
|
|
233
|
+
so one condition reads the same way wherever a user meets it.
|
|
234
|
+
"""
|
|
235
|
+
if state == "stale":
|
|
236
|
+
return f"{label} is stale (its pid no longer exists), so nothing can read it"
|
|
237
|
+
age_s = registry.classify(record, check_zombie=False).heartbeat_age_s
|
|
238
|
+
return (
|
|
239
|
+
f"{label} has not reported for {format_duration(age_s)}, so a plain send will "
|
|
240
|
+
f"not dial it; it may report again on its own"
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
|
|
217
244
|
def resolve_cold_session(session: str) -> "str | None":
|
|
218
245
|
"""A stored session id addressable even though nothing is running for it.
|
|
219
246
|
|
|
@@ -391,7 +418,12 @@ async def _spool_quiet_note(
|
|
|
391
418
|
)
|
|
392
419
|
if not written:
|
|
393
420
|
raise RuntimeError("could not spool the message for that session")
|
|
394
|
-
|
|
421
|
+
# The SAME two receipts the draining runtime answers with, imported rather
|
|
422
|
+
# than restated: a sender deciding whether to re-issue must read one
|
|
423
|
+
# vocabulary whether the target was cold or draining (design round 1, D4).
|
|
424
|
+
from local_operator.session.runtime.inbox import SPOOL_RECEIPT_NOTE
|
|
425
|
+
|
|
426
|
+
return SPOOL_RECEIPT_NOTE
|
|
395
427
|
|
|
396
428
|
|
|
397
429
|
async def deliver_peer_message(
|
|
@@ -425,8 +457,11 @@ async def deliver_peer_message(
|
|
|
425
457
|
- **No runtime, but the sender wants attention** (``wake=True``, or a
|
|
426
458
|
steer) — engage a runtime and deliver over its socket. The sender is
|
|
427
459
|
explicitly asking the peer to act, which cannot happen without a process.
|
|
460
|
+
|
|
461
|
+
A dial that runs out its deadline gets a sentence rather than a bare
|
|
462
|
+
timeout — see :func:`_dial_or_explain`, whose whole user-visible outcome
|
|
463
|
+
for a failed steer is that the delivery is reported as UNCONFIRMED.
|
|
428
464
|
"""
|
|
429
|
-
from local_operator.mobile.peer_client import send_peer_message
|
|
430
465
|
|
|
431
466
|
if record is not None:
|
|
432
467
|
if not getattr(record, "started", True):
|
|
@@ -445,9 +480,9 @@ async def deliver_peer_message(
|
|
|
445
480
|
# through ``from_json``, which reads the absent key as ``True`` —
|
|
446
481
|
# old peer behaviour preserved — so an old working session is
|
|
447
482
|
# dialled normally, never degraded.
|
|
448
|
-
await
|
|
483
|
+
await _dial_or_explain(record, text=text, mode="mailbox", wake=False, sender=sender)
|
|
449
484
|
return "delivered to the mailbox (session not started yet; no turn driven)"
|
|
450
|
-
return await
|
|
485
|
+
return await _dial_or_explain(record, text=text, mode=mode, wake=wake, sender=sender)
|
|
451
486
|
|
|
452
487
|
if not wake and mode == "mailbox":
|
|
453
488
|
return await _spool_quiet_note(session_id, text=text, mode=mode, sender=sender)
|
|
@@ -463,6 +498,64 @@ async def deliver_peer_message(
|
|
|
463
498
|
return outcome.detail
|
|
464
499
|
|
|
465
500
|
|
|
501
|
+
async def _dial_or_explain(
|
|
502
|
+
record: "Any",
|
|
503
|
+
*,
|
|
504
|
+
text: str,
|
|
505
|
+
mode: str,
|
|
506
|
+
wake: bool,
|
|
507
|
+
sender: "dict[str, Any]",
|
|
508
|
+
) -> str:
|
|
509
|
+
"""Dial ``record``, turning a deadline expiry into a sentence.
|
|
510
|
+
|
|
511
|
+
The bare timeout this replaces was literally ``could not deliver: `` —
|
|
512
|
+
``TimeoutError`` carries no message and the CLI prints its ``str`` — which
|
|
513
|
+
told a sender nothing about whether the peer was gone, refused, or simply
|
|
514
|
+
busy, on the one outcome a failed steer has (the message never landed, so
|
|
515
|
+
there is nothing else on screen to read).
|
|
516
|
+
|
|
517
|
+
Only ``TimeoutError`` is translated, and it is re-raised as the SAME class.
|
|
518
|
+
That is load-bearing rather than tidy: both surviving callers branch on the
|
|
519
|
+
exception TYPE to decide whether they may say the message did not arrive.
|
|
520
|
+
``RuntimeError`` means the peer ANSWERED no (an older registrant, a handle
|
|
521
|
+
that cannot receive) and is rendered as "could not deliver"; the
|
|
522
|
+
``OSError`` family means "no acknowledged result" and is rendered as "no
|
|
523
|
+
delivery confirmation ... may or may not have arrived" (``tools.builtin``
|
|
524
|
+
and ``cli.send_command``, both pinned by tests). Wrapping a timeout into a
|
|
525
|
+
``RuntimeError`` — which an earlier draft of this function did — moves a
|
|
526
|
+
possibly-delivered steer onto the confident arm and invites the duplicate
|
|
527
|
+
it is the whole point of this sentence to prevent.
|
|
528
|
+
"""
|
|
529
|
+
from local_operator.mobile.peer_client import send_peer_message
|
|
530
|
+
|
|
531
|
+
try:
|
|
532
|
+
return await send_peer_message(record, text=text, mode=mode, wake=wake, sender=sender)
|
|
533
|
+
except TimeoutError as exc:
|
|
534
|
+
raise TimeoutError(_unanswered_dial_detail()) from exc
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
def _unanswered_dial_detail() -> str:
|
|
538
|
+
"""What to tell a sender whose target did not answer its socket.
|
|
539
|
+
|
|
540
|
+
DELIVERY IS UNCONFIRMED, and that is the whole point of the wording. A read
|
|
541
|
+
deadline expiring means no acknowledged result, NOT an undelivered message:
|
|
542
|
+
the op is already in the owner's socket buffer, and a loop that turns inside
|
|
543
|
+
the next second consumes it — reproduced against a real child server, where
|
|
544
|
+
a 0.2 s read deadline expired and the receiver recorded the delivered steer
|
|
545
|
+
once its loop came back. Telling the sender to retry therefore invites a
|
|
546
|
+
DUPLICATE steer or wake, which is why this says the opposite of what an
|
|
547
|
+
earlier draft of the sentence did, and why nothing here retries on its own.
|
|
548
|
+
|
|
549
|
+
It also refuses to name a cause, for the reason ``registry.classify``
|
|
550
|
+
gives: a stale heartbeat does not establish that the owner is hung.
|
|
551
|
+
"""
|
|
552
|
+
return (
|
|
553
|
+
"the target did not answer its socket in 5s — delivery is UNCONFIRMED: "
|
|
554
|
+
"it may still arrive once its owner's loop turns, so do not send it "
|
|
555
|
+
"again unless you know it did not land"
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
|
|
466
559
|
def candidate_lines(
|
|
467
560
|
candidates: "list[Any]", *, indent: str = "", prefix: str = "pid"
|
|
468
561
|
) -> "list[str]":
|
|
@@ -1726,8 +1726,20 @@ class SessionRow(NamedTuple):
|
|
|
1726
1726
|
|
|
1727
1727
|
#: ``"busy"`` (a turn is running), ``"idle"`` (resident, warm),
|
|
1728
1728
|
#: ``"attached"`` (another terminal is watching), ``"wedged"`` (a live pid
|
|
1729
|
-
#:
|
|
1729
|
+
#: that has stopped reporting — see below), or ``""`` for a cold session.
|
|
1730
1730
|
live_state: str = ""
|
|
1731
|
+
#: How long ago the owning process last wrote its discovery heartbeat, or
|
|
1732
|
+
#: ``None`` for a cold row with no record.
|
|
1733
|
+
#:
|
|
1734
|
+
#: A QUALIFIER, not a state: it is what turns ``live_state == "wedged"`` into
|
|
1735
|
+
#: the honest sentence a reader needs. The beat is authored by the runtime's
|
|
1736
|
+
#: own event loop, so the same reading covers a frozen process and a
|
|
1737
|
+
#: perfectly healthy one starved by a long turn, and the only defensible
|
|
1738
|
+
#: thing to say about it is that the owner has not reported for this long
|
|
1739
|
+
#: (``registry.classify`` owns the rule; this is its number). Defaulted
|
|
1740
|
+
#: exactly like the live-state fields above, so every construction site but
|
|
1741
|
+
#: the live-decorating one renders as before.
|
|
1742
|
+
heartbeat_age_s: float | None = None
|
|
1731
1743
|
#: ``"approval"`` / ``"ask"`` when the session is waiting for a PERSON.
|
|
1732
1744
|
#: The needs-you marker, and the reason a row sorts first.
|
|
1733
1745
|
pending: str | None = None
|