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.

Files changed (605) hide show
  1. {local_operator-0.55.2 → local_operator-0.55.4}/PKG-INFO +1 -1
  2. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/buildwatch.py +50 -0
  3. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/cli.py +61 -5
  4. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/render.py +120 -23
  5. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/attach_client.py +27 -0
  6. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/peer_send.py +114 -21
  7. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/resume.py +13 -1
  8. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attached.py +42 -0
  9. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/catalog.py +49 -5
  10. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/errors.py +54 -0
  11. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/protocol.py +15 -3
  12. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/control.py +34 -27
  13. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/inbox.py +30 -1
  14. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/process.py +627 -46
  15. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/registry.py +104 -19
  16. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/server.py +18 -2
  17. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/serving.py +218 -23
  18. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/types.py +13 -3
  19. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/session.py +195 -5
  20. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/app.py +192 -3
  21. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/info_panel.py +83 -18
  22. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_picker.py +10 -1
  23. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/supervisor.py +32 -8
  24. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/PKG-INFO +1 -1
  25. {local_operator-0.55.2 → local_operator-0.55.4}/pyproject.toml +1 -1
  26. {local_operator-0.55.2 → local_operator-0.55.4}/LICENSE +0 -0
  27. {local_operator-0.55.2 → local_operator-0.55.4}/README.md +0 -0
  28. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/__init__.py +0 -0
  29. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_profiles.py +0 -0
  30. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/architect.md +0 -0
  31. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/coder.md +0 -0
  32. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/designer.md +0 -0
  33. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/manager.md +0 -0
  34. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/reviewer.md +0 -0
  35. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agent_seeds/scout.md +0 -0
  36. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/agents.py +0 -0
  37. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/__init__.py +0 -0
  38. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/backfill.py +0 -0
  39. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/model.py +0 -0
  40. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/recorder.py +0 -0
  41. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/analytics/store.py +0 -0
  42. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ansi.py +0 -0
  43. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/bootstrap.py +0 -0
  44. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/__init__.py +0 -0
  45. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/backend.py +0 -0
  46. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/daemon.py +0 -0
  47. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/gen_ts.py +0 -0
  48. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/install.py +0 -0
  49. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/protocol.py +0 -0
  50. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/resources.py +0 -0
  51. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/browser_bridge/state.py +0 -0
  52. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/callback_page.py +0 -0
  53. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/cli_style.py +0 -0
  54. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/__init__.py +0 -0
  55. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/_http.py +0 -0
  56. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/fal.py +0 -0
  57. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/google_client.py +0 -0
  58. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/ollama.py +0 -0
  59. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/openrouter.py +0 -0
  60. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/radient.py +0 -0
  61. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/serpapi.py +0 -0
  62. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clients/tavily.py +0 -0
  63. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/clipboard.py +0 -0
  64. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/__init__.py +0 -0
  65. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/advisor.py +0 -0
  66. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/api.py +0 -0
  67. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/cutpoint.py +0 -0
  68. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/marker.py +0 -0
  69. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/pass_.py +0 -0
  70. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/png.py +0 -0
  71. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/pruning.py +0 -0
  72. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/snapcompact.py +0 -0
  73. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/thresholds.py +0 -0
  74. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/compaction/tokens.py +0 -0
  75. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/computer_input.py +0 -0
  76. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config.py +0 -0
  77. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config_migrations.py +0 -0
  78. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/config_watch.py +0 -0
  79. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/console.py +0 -0
  80. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/context_files.py +0 -0
  81. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/credentials.py +0 -0
  82. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ecosystem_instructions.py +0 -0
  83. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/env.py +0 -0
  84. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/__init__.py +0 -0
  85. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/action_surface.py +0 -0
  86. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/__init__.py +0 -0
  87. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/api.py +0 -0
  88. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/discovery.py +0 -0
  89. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/rpc.py +0 -0
  90. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/supervisor.py +0 -0
  91. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/adapters/worker.py +0 -0
  92. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/__init__.py +0 -0
  93. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/media.py +0 -0
  94. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/models.py +0 -0
  95. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/store.py +0 -0
  96. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/evidence/verify.py +0 -0
  97. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/lifecycle.py +0 -0
  98. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/protocol.py +0 -0
  99. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/receipts.py +0 -0
  100. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/__init__.py +0 -0
  101. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/durable_root.py +0 -0
  102. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/episode.py +0 -0
  103. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/guards.py +0 -0
  104. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/host_secrets.py +0 -0
  105. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/model.py +0 -0
  106. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/provider_client.py +0 -0
  107. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/public_reply.py +0 -0
  108. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/rescue_sweep.py +0 -0
  109. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/responder.py +0 -0
  110. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/route_ids.py +0 -0
  111. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/evaluation/runner/secrets.py +0 -0
  112. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_mode.py +0 -0
  113. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_session.py +0 -0
  114. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_startup.py +0 -0
  115. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/exec_worker.py +0 -0
  116. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/fork.py +0 -0
  117. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/__init__.py +0 -0
  118. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/agents/GUIDE.md +0 -0
  119. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/browser/GUIDE.md +0 -0
  120. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/configuration/GUIDE.md +0 -0
  121. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/credentials/GUIDE.md +0 -0
  122. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/discovery.py +0 -0
  123. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/extensions/GUIDE.md +0 -0
  124. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/failover/GUIDE.md +0 -0
  125. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/mcp/GUIDE.md +0 -0
  126. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/mobile/GUIDE.md +0 -0
  127. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/peer-messaging/GUIDE.md +0 -0
  128. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/teams/GUIDE.md +0 -0
  129. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/guides/tunnel/GUIDE.md +0 -0
  130. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/__init__.py +0 -0
  131. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/approval.py +0 -0
  132. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/comms.py +0 -0
  133. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/intent.py +0 -0
  134. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/jobs.py +0 -0
  135. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/loop.py +0 -0
  136. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/reply_channel.py +0 -0
  137. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/rows.py +0 -0
  138. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/subagent.py +0 -0
  139. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/types.py +0 -0
  140. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/harness/wake.py +0 -0
  141. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/headless_print.py +0 -0
  142. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/helpers.py +0 -0
  143. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/herdr/__init__.py +0 -0
  144. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/herdr/reporter.py +0 -0
  145. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/imaging.py +0 -0
  146. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/incidents.py +0 -0
  147. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/__init__.py +0 -0
  148. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/collect.py +0 -0
  149. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/info/model.py +0 -0
  150. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/interpreter.py +0 -0
  151. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/jobs.py +0 -0
  152. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/jsonl.py +0 -0
  153. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/keymap.py +0 -0
  154. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/logger.py +0 -0
  155. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/__init__.py +0 -0
  156. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/auth.py +0 -0
  157. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/config.py +0 -0
  158. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/credentials.py +0 -0
  159. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/desktop.py +0 -0
  160. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/grants.py +0 -0
  161. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/manager.py +0 -0
  162. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/redaction.py +0 -0
  163. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/resources.py +0 -0
  164. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/secret_refs.py +0 -0
  165. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/tool_bridge.py +0 -0
  166. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/tool_cache.py +0 -0
  167. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mcp/verbs.py +0 -0
  168. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/media.py +0 -0
  169. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/__init__.py +0 -0
  170. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/auth.py +0 -0
  171. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/child.py +0 -0
  172. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/command_reservation.py +0 -0
  173. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/daemon.py +0 -0
  174. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/durable.py +0 -0
  175. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/install.py +0 -0
  176. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/owned.py +0 -0
  177. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/peer_client.py +0 -0
  178. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/projection.py +0 -0
  179. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/registrant.py +0 -0
  180. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/registry.py +0 -0
  181. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/resources.py +0 -0
  182. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/seen.py +0 -0
  183. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/service.py +0 -0
  184. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/static/mark.png +0 -0
  185. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/tui_handle.py +0 -0
  186. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/types.py +0 -0
  187. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/assets/index-BFQgXCiH.css +0 -0
  188. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/assets/index-BbWWEcJU.js +0 -0
  189. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/index.html +0 -0
  190. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/dist/mark.png +0 -0
  191. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/index.html +0 -0
  192. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/package.json +0 -0
  193. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/pnpm-lock.yaml +0 -0
  194. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/pnpm-workspace.yaml +0 -0
  195. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/public/mark.png +0 -0
  196. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/generate-theme-css.mjs +0 -0
  197. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/inline-mark.mjs +0 -0
  198. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/scripts/palette-source.mjs +0 -0
  199. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/agent-view.interaction.test.tsx +0 -0
  200. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/agent-view.test.ts +0 -0
  201. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/api.ts +0 -0
  202. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/app.tsx +0 -0
  203. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/agents-sheet.tsx +0 -0
  204. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/composer.tsx +0 -0
  205. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/markdown.tsx +0 -0
  206. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/model-sheet.tsx +0 -0
  207. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/pending-card.tsx +0 -0
  208. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/row-boundary.tsx +0 -0
  209. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/spinner.tsx +0 -0
  210. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/subagents-panel.tsx +0 -0
  211. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/todos-panel.tsx +0 -0
  212. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/tool-row.tsx +0 -0
  213. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/transcript.tsx +0 -0
  214. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/button.tsx +0 -0
  215. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/chip.tsx +0 -0
  216. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/disclosure.tsx +0 -0
  217. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/ui/sheet.tsx +0 -0
  218. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/components/working-line.tsx +0 -0
  219. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/composer-resume-label.test.tsx +0 -0
  220. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/continuation-command.test.ts +0 -0
  221. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/continuation-command.ts +0 -0
  222. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/detail-loader.test.ts +0 -0
  223. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/detail-loader.ts +0 -0
  224. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/cn.ts +0 -0
  225. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/column.ts +0 -0
  226. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/format.ts +0 -0
  227. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/mark.ts +0 -0
  228. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/lib/model-filter.ts +0 -0
  229. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/main.tsx +0 -0
  230. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/model-sheet.order.test.tsx +0 -0
  231. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/model-sheet.states.test.tsx +0 -0
  232. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/past-sessions.fork.test.tsx +0 -0
  233. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/private-storage.test.ts +0 -0
  234. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/private-storage.ts +0 -0
  235. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/router.test.ts +0 -0
  236. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/router.ts +0 -0
  237. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/agent-view.tsx +0 -0
  238. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/new-session.tsx +0 -0
  239. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/past-sessions.tsx +0 -0
  240. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/session-list.tsx +0 -0
  241. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/screens/session-view.tsx +0 -0
  242. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-list.unread.test.tsx +0 -0
  243. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-start.navigation.test.tsx +0 -0
  244. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.overflow.test.tsx +0 -0
  245. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.pending.test.tsx +0 -0
  246. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/session-view.seen.test.tsx +0 -0
  247. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.reconnect.test.tsx +0 -0
  248. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.test.ts +0 -0
  249. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.ts +0 -0
  250. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/store.unread.test.ts +0 -0
  251. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/styles/index.css +0 -0
  252. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/styles/themes.generated.css +0 -0
  253. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/test-setup.ts +0 -0
  254. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/theme.ts +0 -0
  255. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/alucard.ts +0 -0
  256. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu-light.ts +0 -0
  257. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu-mirage.ts +0 -0
  258. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/ayu.ts +0 -0
  259. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/catppuccin-frappe.ts +0 -0
  260. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/catppuccin-macchiato.ts +0 -0
  261. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/dracula.ts +0 -0
  262. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/dune.ts +0 -0
  263. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/duskfox.ts +0 -0
  264. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/everforest-light.ts +0 -0
  265. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/everforest.ts +0 -0
  266. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/gruvbox-light.ts +0 -0
  267. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/iceberg.ts +0 -0
  268. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/kanagawa-lotus.ts +0 -0
  269. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/kanagawa-wave.ts +0 -0
  270. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/local-operator.ts +0 -0
  271. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/monokai.ts +0 -0
  272. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/neon.ts +0 -0
  273. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/nightfox.ts +0 -0
  274. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/obsidian.ts +0 -0
  275. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/one-light.ts +0 -0
  276. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/palenight.ts +0 -0
  277. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/palette-contract.ts +0 -0
  278. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/radient.ts +0 -0
  279. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/rose-pine.ts +0 -0
  280. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/sage.ts +0 -0
  281. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/synth.ts +0 -0
  282. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/tokyo-night-day.ts +0 -0
  283. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/themes/tokyo-night.ts +0 -0
  284. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/tool-row.queued.test.tsx +0 -0
  285. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/transcript.divergence.test.tsx +0 -0
  286. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/types.ts +0 -0
  287. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/src/use-completion-view.ts +0 -0
  288. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.app.json +0 -0
  289. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.json +0 -0
  290. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/tsconfig.node.json +0 -0
  291. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/mobile/web/vite.config.ts +0 -0
  292. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/__init__.py +0 -0
  293. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/catalogue.py +0 -0
  294. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/configure.py +0 -0
  295. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/costs.py +0 -0
  296. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/defaults.py +0 -0
  297. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/discovery.py +0 -0
  298. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/effort.py +0 -0
  299. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/effort_classifier.py +0 -0
  300. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/ids.py +0 -0
  301. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/naming.py +0 -0
  302. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/prices.py +0 -0
  303. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/ranking.py +0 -0
  304. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/registry.py +0 -0
  305. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/model/speed.py +0 -0
  306. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/__init__.py +0 -0
  307. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/broadcast.py +0 -0
  308. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/cmux.py +0 -0
  309. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/markers.py +0 -0
  310. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/registry.py +0 -0
  311. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/multiplexer/types.py +0 -0
  312. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/notifications/__init__.py +0 -0
  313. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/notifications/compose.py +0 -0
  314. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/optional.py +0 -0
  315. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/org_chart.py +0 -0
  316. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/paths.py +0 -0
  317. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/proc.py +0 -0
  318. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/procname.py +0 -0
  319. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/procstate.py +0 -0
  320. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_api.py +0 -0
  321. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/__init__.py +0 -0
  322. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/compaction_summary.md +0 -0
  323. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/edit_file_instructions.md +0 -0
  324. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/prompts_md/system.md +0 -0
  325. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/__init__.py +0 -0
  326. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/auth_cli.py +0 -0
  327. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/auth_store.py +0 -0
  328. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/catalogue.py +0 -0
  329. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/clients.py +0 -0
  330. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/context.py +0 -0
  331. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/controller.py +0 -0
  332. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/failover.py +0 -0
  333. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/local.py +0 -0
  334. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/local_discovery.py +0 -0
  335. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/login_defaults.py +0 -0
  336. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/__init__.py +0 -0
  337. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/anthropic.py +0 -0
  338. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/callback_server.py +0 -0
  339. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/device_code.py +0 -0
  340. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/kimi.py +0 -0
  341. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/openai.py +0 -0
  342. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/pkce.py +0 -0
  343. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/qwencloud.py +0 -0
  344. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/radient.py +0 -0
  345. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/xai.py +0 -0
  346. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/oauth/zai.py +0 -0
  347. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/radient_credentials.py +0 -0
  348. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/registry.py +0 -0
  349. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/replay.py +0 -0
  350. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/usage.py +0 -0
  351. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/providers/usage_cache.py +0 -0
  352. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/reexec.py +0 -0
  353. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/scheduler_service.py +0 -0
  354. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/__init__.py +0 -0
  355. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/access.py +0 -0
  356. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/audit.py +0 -0
  357. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/broker.py +0 -0
  358. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/brokerd.py +0 -0
  359. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/cli.py +0 -0
  360. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/client.py +0 -0
  361. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/crypto.py +0 -0
  362. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/errors.py +0 -0
  363. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/handlers.py +0 -0
  364. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/keys.py +0 -0
  365. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/peer.py +0 -0
  366. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/promote.py +0 -0
  367. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/protocol.py +0 -0
  368. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/runtime.py +0 -0
  369. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/session.py +0 -0
  370. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/secrets/store.py +0 -0
  371. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/__init__.py +0 -0
  372. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/app.py +0 -0
  373. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/dependencies.py +0 -0
  374. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/desktop.py +0 -0
  375. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/generate_openapi.py +0 -0
  376. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/__init__.py +0 -0
  377. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/desktop_sessions.py +0 -0
  378. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/models/schemas.py +0 -0
  379. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/openapi.py +0 -0
  380. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/registry.py +0 -0
  381. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/retire.py +0 -0
  382. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/__init__.py +0 -0
  383. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/agents.py +0 -0
  384. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/auth.py +0 -0
  385. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/capabilities.py +0 -0
  386. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/chat.py +0 -0
  387. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/config.py +0 -0
  388. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/credentials.py +0 -0
  389. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_catalogues.py +0 -0
  390. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_claim.py +0 -0
  391. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_lifecycle.py +0 -0
  392. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_profiles.py +0 -0
  393. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_radient.py +0 -0
  394. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/desktop_sessions.py +0 -0
  395. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/health.py +0 -0
  396. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/jobs.py +0 -0
  397. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/models.py +0 -0
  398. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/schedules.py +0 -0
  399. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/settings.py +0 -0
  400. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/speech.py +0 -0
  401. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/sse.py +0 -0
  402. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/static.py +0 -0
  403. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/transcription.py +0 -0
  404. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/routes/websockets.py +0 -0
  405. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/__init__.py +0 -0
  406. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/attachment_utils.py +0 -0
  407. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_auth.py +0 -0
  408. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_commands.py +0 -0
  409. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_profiles.py +0 -0
  410. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_receipts.py +0 -0
  411. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/desktop_sessions.py +0 -0
  412. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/event_broker.py +0 -0
  413. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/job_processor_queue.py +0 -0
  414. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/operator.py +0 -0
  415. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/speech_utils.py +0 -0
  416. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse.py +0 -0
  417. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse_bridge.py +0 -0
  418. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/sse_publisher.py +0 -0
  419. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/server/utils/websocket_manager.py +0 -0
  420. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/__init__.py +0 -0
  421. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attachments.py +0 -0
  422. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/attention.py +0 -0
  423. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/cleanup.py +0 -0
  424. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/cold_model.py +0 -0
  425. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/creation.py +0 -0
  426. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/credential_ops.py +0 -0
  427. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/frontend_state.py +0 -0
  428. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/goal.py +0 -0
  429. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/goal_loop.py +0 -0
  430. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/history_window.py +0 -0
  431. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/mcp_status.py +0 -0
  432. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/model_selection.py +0 -0
  433. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/naming.py +0 -0
  434. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/peer.py +0 -0
  435. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/preview.py +0 -0
  436. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/restored_rows.py +0 -0
  437. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/retention.py +0 -0
  438. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/__init__.py +0 -0
  439. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/exec_control.py +0 -0
  440. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/launch.py +0 -0
  441. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/publication.py +0 -0
  442. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewer_client.py +0 -0
  443. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewer_server.py +0 -0
  444. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/runtime/viewers.py +0 -0
  445. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/saved_preview.py +0 -0
  446. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/search_index.py +0 -0
  447. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/session_search.py +0 -0
  448. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/shell_record.py +0 -0
  449. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/spend.py +0 -0
  450. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/subscriptions.py +0 -0
  451. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/transcript.py +0 -0
  452. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/usage_seed.py +0 -0
  453. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session/variable_ops.py +0 -0
  454. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session_factory.py +0 -0
  455. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/session_lease.py +0 -0
  456. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/settings_io.py +0 -0
  457. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/__init__.py +0 -0
  458. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/api.py +0 -0
  459. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/discovery.py +0 -0
  460. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/embeddings.py +0 -0
  461. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/index.py +0 -0
  462. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/invoke.py +0 -0
  463. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/protocol.py +0 -0
  464. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/skills/vectors.py +0 -0
  465. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/slash_commands.py +0 -0
  466. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/__init__.py +0 -0
  467. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/apple.py +0 -0
  468. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/cmux.py +0 -0
  469. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/fallback.py +0 -0
  470. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/ghostty.py +0 -0
  471. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/kitty.py +0 -0
  472. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/policy.py +0 -0
  473. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/registry.py +0 -0
  474. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/types.py +0 -0
  475. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/spawn/wezterm.py +0 -0
  476. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/stream.py +0 -0
  477. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/teams.py +0 -0
  478. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/terminals.py +0 -0
  479. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/__init__.py +0 -0
  480. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/agent_tool.py +0 -0
  481. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/builtin.py +0 -0
  482. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/eval.py +0 -0
  483. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/eval_worker.py +0 -0
  484. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/group_reaper.py +0 -0
  485. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/lsp.py +0 -0
  486. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/registry.py +0 -0
  487. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/secret_tool.py +0 -0
  488. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/spill.py +0 -0
  489. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tools/team_tool.py +0 -0
  490. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/__init__.py +0 -0
  491. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/animation.py +0 -0
  492. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/attention.py +0 -0
  493. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/autocomplete.py +0 -0
  494. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/bindings.py +0 -0
  495. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/composer_focus.py +0 -0
  496. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/copy_targets.py +0 -0
  497. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/costs.py +0 -0
  498. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/error_text.py +0 -0
  499. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/events.py +0 -0
  500. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/glyphs.py +0 -0
  501. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/images.py +0 -0
  502. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/input_decode.py +0 -0
  503. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/local_operator.tcss +0 -0
  504. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/markdown_theme.py +0 -0
  505. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/move_targets.py +0 -0
  506. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/__init__.py +0 -0
  507. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/icon.icns +0 -0
  508. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notifier_app/notifier.m +0 -0
  509. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/notify.py +0 -0
  510. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/org_layout.py +0 -0
  511. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/org_render.py +0 -0
  512. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/__init__.py +0 -0
  513. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/classics.py +0 -0
  514. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/companions.py +0 -0
  515. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/lights.py +0 -0
  516. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/modern.py +0 -0
  517. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/nature.py +0 -0
  518. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/neon.py +0 -0
  519. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/radient.py +0 -0
  520. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/palettes/rose_pine.py +0 -0
  521. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/resume_click.py +0 -0
  522. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_catalog.py +0 -0
  523. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_drafts.py +0 -0
  524. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_interaction.py +0 -0
  525. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_navigation.py +0 -0
  526. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_presentation.py +0 -0
  527. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/session_workspace.py +0 -0
  528. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/settings.py +0 -0
  529. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/shimmer.py +0 -0
  530. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/terminal_modes.py +0 -0
  531. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/terminal_title.py +0 -0
  532. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/theme.py +0 -0
  533. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/__init__.py +0 -0
  534. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/_copy_markdown.py +0 -0
  535. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/analytics_panel.py +0 -0
  536. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/approval.py +0 -0
  537. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/aside_panel.py +0 -0
  538. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/ask_picker.py +0 -0
  539. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/assistant.py +0 -0
  540. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/command_picker.py +0 -0
  541. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/copy_picker.py +0 -0
  542. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/editor.py +0 -0
  543. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/image_block.py +0 -0
  544. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/key_prompt.py +0 -0
  545. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/model_picker.py +0 -0
  546. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/move_picker.py +0 -0
  547. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/org_chart_view.py +0 -0
  548. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/overlay.py +0 -0
  549. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/report_view.py +0 -0
  550. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_panel.py +0 -0
  551. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/session_sidebar.py +0 -0
  552. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/settings_view.py +0 -0
  553. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/status_line.py +0 -0
  554. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/subagent_panel.py +0 -0
  555. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/subagent_view.py +0 -0
  556. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/toast.py +0 -0
  557. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/todo_panel.py +0 -0
  558. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/tool_card.py +0 -0
  559. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/transcript.py +0 -0
  560. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/usage_panel.py +0 -0
  561. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/wake_panel.py +0 -0
  562. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/widgets/welcome.py +0 -0
  563. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tui/window_focus.py +0 -0
  564. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/__init__.py +0 -0
  565. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/api.py +0 -0
  566. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/arguments.py +0 -0
  567. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/cli.py +0 -0
  568. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/config.py +0 -0
  569. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/gateway.py +0 -0
  570. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/install.py +0 -0
  571. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/tunnels/service.py +0 -0
  572. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/types.py +0 -0
  573. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/__init__.py +0 -0
  574. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/backend.py +0 -0
  575. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/ui_browser/state.py +0 -0
  576. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/update.py +0 -0
  577. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/variables.py +0 -0
  578. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/__init__.py +0 -0
  579. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/deliveries.py +0 -0
  580. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/display.py +0 -0
  581. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/install.py +0 -0
  582. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/wakes/store.py +0 -0
  583. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/__init__.py +0 -0
  584. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/cli.py +0 -0
  585. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/failure.py +0 -0
  586. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/models.py +0 -0
  587. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/render.py +0 -0
  588. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/service.py +0 -0
  589. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_fetch/tool.py +0 -0
  590. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/__init__.py +0 -0
  591. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/cli.py +0 -0
  592. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/cost.py +0 -0
  593. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/io.py +0 -0
  594. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/models.py +0 -0
  595. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/pages.py +0 -0
  596. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/providers.py +0 -0
  597. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/read_tool.py +0 -0
  598. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/service.py +0 -0
  599. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator/web_search/tool.py +0 -0
  600. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/SOURCES.txt +0 -0
  601. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/dependency_links.txt +0 -0
  602. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/entry_points.txt +0 -0
  603. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/requires.txt +0 -0
  604. {local_operator-0.55.2 → local_operator-0.55.4}/local_operator.egg-info/top_level.txt +0 -0
  605. {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.2
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':<7} {'PID':>7} {'KIND':<7} "
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"{row['state']:<7} "
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)}; it holds the session lease, so its wake "
4486
- f"cannot fire. It will not recover on its own — 'lop sessions' shows "
4487
- f"it, 'lop stop --pid {pid}' ends 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} wedged · {sessions.total} total"
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
- memory = format_bytes(line.footprint_bytes or line.rss_bytes)
294
- extra = " · busy" if line.busy else ""
295
- extra += f" · needs {line.pending}" if line.pending else ""
296
- lines.append(
297
- f" {mark} [{line.state}] {name} · {line.kind} · pid {line.pid} · "
298
- f"{format_duration(line.uptime_s)} · {memory}{extra}"
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} 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
- # The totals above deliberately include wedged runtimes — a quiet pid
399
- # can still have children working — so their contribution is as of
400
- # their last heartbeat, and an export that omitted the disclosure would
401
- # present stale counts as current in the one artifact that outlives the
402
- # screen.
403
- one = sessions.wedged == 1
404
- caveats.append(
405
- f"{sessions.wedged} session{'' if one else 's'} "
406
- f"{'is' if one else 'are'} wedged; "
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 ``wedged`` runtime will not service
72
- the socket promptly; ``stale`` is dead) — unless ``include_wedged``,
73
- which the kill switch passes: a wedged session is exactly the one a user
74
- needs to be able to STOP, and the stop ladder's signal rungs are built
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 wedged runtime is a message nobody reads.
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} is {state}, not live")
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} is not responding "
208
- f"(pid {wedged[0].pid}); try again shortly"
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
- return "spooled (will be read when the session next opens)"
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 send_peer_message(record, text=text, mode="mailbox", wake=False, sender=sender)
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 send_peer_message(record, text=text, mode=mode, wake=wake, sender=sender)
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
- #: whose heartbeat went stale), or ``""`` for a cold session.
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