webbee 0.7.38__tar.gz → 0.7.39__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. {webbee-0.7.38 → webbee-0.7.39}/CHANGELOG.md +5 -0
  2. {webbee-0.7.38 → webbee-0.7.39}/PKG-INFO +1 -1
  3. {webbee-0.7.38 → webbee-0.7.39}/pyproject.toml +1 -1
  4. webbee-0.7.39/src/webbee/__init__.py +1 -0
  5. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/repl.py +7 -3
  6. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/session.py +47 -13
  7. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/stream.py +4 -1
  8. {webbee-0.7.38 → webbee-0.7.39}/tests/test_session.py +98 -3
  9. {webbee-0.7.38 → webbee-0.7.39}/tests/test_stream.py +46 -0
  10. {webbee-0.7.38 → webbee-0.7.39}/uv.lock +7 -7
  11. webbee-0.7.38/src/webbee/__init__.py +0 -1
  12. {webbee-0.7.38 → webbee-0.7.39}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  13. {webbee-0.7.38 → webbee-0.7.39}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  14. {webbee-0.7.38 → webbee-0.7.39}/.github/pull_request_template.md +0 -0
  15. {webbee-0.7.38 → webbee-0.7.39}/.github/workflows/os-check.yml +0 -0
  16. {webbee-0.7.38 → webbee-0.7.39}/.github/workflows/publish.yml +0 -0
  17. {webbee-0.7.38 → webbee-0.7.39}/.gitignore +0 -0
  18. {webbee-0.7.38 → webbee-0.7.39}/LICENSE +0 -0
  19. {webbee-0.7.38 → webbee-0.7.39}/PRIVACY.md +0 -0
  20. {webbee-0.7.38 → webbee-0.7.39}/README.md +0 -0
  21. {webbee-0.7.38 → webbee-0.7.39}/SECURITY.md +0 -0
  22. {webbee-0.7.38 → webbee-0.7.39}/assets/architecture.png +0 -0
  23. {webbee-0.7.38 → webbee-0.7.39}/assets/demo.gif +0 -0
  24. {webbee-0.7.38 → webbee-0.7.39}/assets/hero.png +0 -0
  25. {webbee-0.7.38 → webbee-0.7.39}/assets/social-preview.png +0 -0
  26. {webbee-0.7.38 → webbee-0.7.39}/ci/__init__.py +0 -0
  27. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/__init__.py +0 -0
  28. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/drivers.py +0 -0
  29. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/fixture.py +0 -0
  30. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/fixture_long.py +0 -0
  31. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/fixture_wait.py +0 -0
  32. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/provision_user.py +0 -0
  33. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/registry.py +0 -0
  34. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/replay.py +0 -0
  35. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/run.py +0 -0
  36. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/scenarios_account.py +0 -0
  37. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/scenarios_code.py +0 -0
  38. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/scenarios_contract.py +0 -0
  39. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/scenarios_long.py +0 -0
  40. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/scenarios_wait.py +0 -0
  41. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_drivers.py +0 -0
  42. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_fixture.py +0 -0
  43. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_fixture_long.py +0 -0
  44. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_fixture_wait.py +0 -0
  45. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_registry.py +0 -0
  46. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/test_replay.py +0 -0
  47. {webbee-0.7.38 → webbee-0.7.39}/ci/field_gate/wipe.py +0 -0
  48. {webbee-0.7.38 → webbee-0.7.39}/ci/os_check.py +0 -0
  49. {webbee-0.7.38 → webbee-0.7.39}/dev-webbee +0 -0
  50. {webbee-0.7.38 → webbee-0.7.39}/install.sh +0 -0
  51. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/__main__.py +0 -0
  52. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/_launch.py +0 -0
  53. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/account.py +0 -0
  54. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/active_sessions.py +0 -0
  55. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/autoupdate.py +0 -0
  56. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/banner_art.py +0 -0
  57. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/blocks.py +0 -0
  58. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/boot.py +0 -0
  59. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/browser.py +0 -0
  60. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/checkpoints.py +0 -0
  61. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/cli.py +0 -0
  62. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/clipboard.py +0 -0
  63. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/clipboard_read.py +0 -0
  64. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/clipboard_session.py +0 -0
  65. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/coding_context.py +0 -0
  66. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/commands.py +0 -0
  67. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/config.py +0 -0
  68. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/consent.py +0 -0
  69. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/details.py +0 -0
  70. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/events.py +0 -0
  71. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/expand.py +0 -0
  72. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/frames.py +0 -0
  73. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/home.py +0 -0
  74. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/home_view.py +0 -0
  75. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/http.py +0 -0
  76. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/i18n.py +0 -0
  77. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/instance_lock.py +0 -0
  78. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/__init__.py +0 -0
  79. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/graph.py +0 -0
  80. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/outline.py +0 -0
  81. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/query.py +0 -0
  82. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/service.py +0 -0
  83. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/store.py +0 -0
  84. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/tree.py +0 -0
  85. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/intel/watch.py +0 -0
  86. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/jobs.py +0 -0
  87. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/jobs_panel.py +0 -0
  88. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/jobwatch.py +0 -0
  89. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/loop_errors.py +0 -0
  90. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/media.py +0 -0
  91. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/modals.py +0 -0
  92. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/mode_store.py +0 -0
  93. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/native_files.py +0 -0
  94. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/native_read.py +0 -0
  95. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/newtab_mode.py +0 -0
  96. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/output_pane.py +0 -0
  97. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/prefs.py +0 -0
  98. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/pricing_constants.py +0 -0
  99. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/queue_panel.py +0 -0
  100. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/reflow.py +0 -0
  101. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/remote.py +0 -0
  102. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/render.py +0 -0
  103. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/repo.py +0 -0
  104. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/selection.py +0 -0
  105. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/sessions.py +0 -0
  106. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/sizing.py +0 -0
  107. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/slots.py +0 -0
  108. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/stallwatch.py +0 -0
  109. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/steer.py +0 -0
  110. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tab_store.py +0 -0
  111. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tabs.py +0 -0
  112. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/thread.py +0 -0
  113. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tier_store.py +0 -0
  114. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/todo_panel.py +0 -0
  115. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tokens.py +0 -0
  116. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tools.py +0 -0
  117. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/tui.py +0 -0
  118. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/ui_tokens.py +0 -0
  119. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/update.py +0 -0
  120. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/urlopen.py +0 -0
  121. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/wallet.py +0 -0
  122. {webbee-0.7.38 → webbee-0.7.39}/src/webbee/worktrees.py +0 -0
  123. {webbee-0.7.38 → webbee-0.7.39}/tests/__init__.py +0 -0
  124. {webbee-0.7.38 → webbee-0.7.39}/tests/conftest.py +0 -0
  125. {webbee-0.7.38 → webbee-0.7.39}/tests/test_account.py +0 -0
  126. {webbee-0.7.38 → webbee-0.7.39}/tests/test_active_sessions.py +0 -0
  127. {webbee-0.7.38 → webbee-0.7.39}/tests/test_answer_delta.py +0 -0
  128. {webbee-0.7.38 → webbee-0.7.39}/tests/test_append_file.py +0 -0
  129. {webbee-0.7.38 → webbee-0.7.39}/tests/test_audit_2026_07_25_findings.py +0 -0
  130. {webbee-0.7.38 → webbee-0.7.39}/tests/test_autoupdate.py +0 -0
  131. {webbee-0.7.38 → webbee-0.7.39}/tests/test_blocks.py +0 -0
  132. {webbee-0.7.38 → webbee-0.7.39}/tests/test_checkpoints.py +0 -0
  133. {webbee-0.7.38 → webbee-0.7.39}/tests/test_checkpoints_nested_1030.py +0 -0
  134. {webbee-0.7.38 → webbee-0.7.39}/tests/test_cli.py +0 -0
  135. {webbee-0.7.38 → webbee-0.7.39}/tests/test_clipboard.py +0 -0
  136. {webbee-0.7.38 → webbee-0.7.39}/tests/test_clipboard_read.py +0 -0
  137. {webbee-0.7.38 → webbee-0.7.39}/tests/test_code_map_fresh.py +0 -0
  138. {webbee-0.7.38 → webbee-0.7.39}/tests/test_coding_context.py +0 -0
  139. {webbee-0.7.38 → webbee-0.7.39}/tests/test_commands.py +0 -0
  140. {webbee-0.7.38 → webbee-0.7.39}/tests/test_config.py +0 -0
  141. {webbee-0.7.38 → webbee-0.7.39}/tests/test_cpc_contract_stable.py +0 -0
  142. {webbee-0.7.38 → webbee-0.7.39}/tests/test_cpc_outline.py +0 -0
  143. {webbee-0.7.38 → webbee-0.7.39}/tests/test_cross_loop_token.py +0 -0
  144. {webbee-0.7.38 → webbee-0.7.39}/tests/test_details.py +0 -0
  145. {webbee-0.7.38 → webbee-0.7.39}/tests/test_events.py +0 -0
  146. {webbee-0.7.38 → webbee-0.7.39}/tests/test_expand.py +0 -0
  147. {webbee-0.7.38 → webbee-0.7.39}/tests/test_field_test_1113.py +0 -0
  148. {webbee-0.7.38 → webbee-0.7.39}/tests/test_freeze_fix.py +0 -0
  149. {webbee-0.7.38 → webbee-0.7.39}/tests/test_grid_golden.py +0 -0
  150. {webbee-0.7.38 → webbee-0.7.39}/tests/test_guide_and_semantic_ux.py +0 -0
  151. {webbee-0.7.38 → webbee-0.7.39}/tests/test_home.py +0 -0
  152. {webbee-0.7.38 → webbee-0.7.39}/tests/test_home_view.py +0 -0
  153. {webbee-0.7.38 → webbee-0.7.39}/tests/test_home_view_mouse.py +0 -0
  154. {webbee-0.7.38 → webbee-0.7.39}/tests/test_i18n.py +0 -0
  155. {webbee-0.7.38 → webbee-0.7.39}/tests/test_inspect_page.py +0 -0
  156. {webbee-0.7.38 → webbee-0.7.39}/tests/test_instance_lock.py +0 -0
  157. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_any_folder.py +0 -0
  158. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_cache_and_sync_worker.py +0 -0
  159. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_checksum_tree.py +0 -0
  160. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_chunker.py +0 -0
  161. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_embed.py +0 -0
  162. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_folder_1106.py +0 -0
  163. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_graph.py +0 -0
  164. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_no_numpy.py +0 -0
  165. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_query.py +0 -0
  166. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_service.py +0 -0
  167. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_store.py +0 -0
  168. {webbee-0.7.38 → webbee-0.7.39}/tests/test_intel_watch.py +0 -0
  169. {webbee-0.7.38 → webbee-0.7.39}/tests/test_jobs_1127.py +0 -0
  170. {webbee-0.7.38 → webbee-0.7.39}/tests/test_launch.py +0 -0
  171. {webbee-0.7.38 → webbee-0.7.39}/tests/test_loop_errors.py +0 -0
  172. {webbee-0.7.38 → webbee-0.7.39}/tests/test_marathon.py +0 -0
  173. {webbee-0.7.38 → webbee-0.7.39}/tests/test_modals_e2e.py +0 -0
  174. {webbee-0.7.38 → webbee-0.7.39}/tests/test_mode_and_remote_0_6_8.py +0 -0
  175. {webbee-0.7.38 → webbee-0.7.39}/tests/test_mode_store.py +0 -0
  176. {webbee-0.7.38 → webbee-0.7.39}/tests/test_native_files.py +0 -0
  177. {webbee-0.7.38 → webbee-0.7.39}/tests/test_newtab_mode.py +0 -0
  178. {webbee-0.7.38 → webbee-0.7.39}/tests/test_packaging.py +0 -0
  179. {webbee-0.7.38 → webbee-0.7.39}/tests/test_probe_cost.py +0 -0
  180. {webbee-0.7.38 → webbee-0.7.39}/tests/test_queue_manage_0337.py +0 -0
  181. {webbee-0.7.38 → webbee-0.7.39}/tests/test_read_never_waits_for_the_repo.py +0 -0
  182. {webbee-0.7.38 → webbee-0.7.39}/tests/test_reflow.py +0 -0
  183. {webbee-0.7.38 → webbee-0.7.39}/tests/test_remote_code_reads.py +0 -0
  184. {webbee-0.7.38 → webbee-0.7.39}/tests/test_render.py +0 -0
  185. {webbee-0.7.38 → webbee-0.7.39}/tests/test_repl.py +0 -0
  186. {webbee-0.7.38 → webbee-0.7.39}/tests/test_repo.py +0 -0
  187. {webbee-0.7.38 → webbee-0.7.39}/tests/test_resilient_http.py +0 -0
  188. {webbee-0.7.38 → webbee-0.7.39}/tests/test_result_fits_the_door.py +0 -0
  189. {webbee-0.7.38 → webbee-0.7.39}/tests/test_review_fixes_1030.py +0 -0
  190. {webbee-0.7.38 → webbee-0.7.39}/tests/test_session_review_1030.py +0 -0
  191. {webbee-0.7.38 → webbee-0.7.39}/tests/test_sessions.py +0 -0
  192. {webbee-0.7.38 → webbee-0.7.39}/tests/test_sizing.py +0 -0
  193. {webbee-0.7.38 → webbee-0.7.39}/tests/test_slots.py +0 -0
  194. {webbee-0.7.38 → webbee-0.7.39}/tests/test_ssh_guard.py +0 -0
  195. {webbee-0.7.38 → webbee-0.7.39}/tests/test_stallwatch.py +0 -0
  196. {webbee-0.7.38 → webbee-0.7.39}/tests/test_steer.py +0 -0
  197. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tab_bar_stability.py +0 -0
  198. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tab_restore_0337.py +0 -0
  199. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tabs.py +0 -0
  200. {webbee-0.7.38 → webbee-0.7.39}/tests/test_terminal_ux_0336.py +0 -0
  201. {webbee-0.7.38 → webbee-0.7.39}/tests/test_thread.py +0 -0
  202. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tier_invalidation.py +0 -0
  203. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tier_store.py +0 -0
  204. {webbee-0.7.38 → webbee-0.7.39}/tests/test_todo_panel.py +0 -0
  205. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tokens.py +0 -0
  206. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tool_ack.py +0 -0
  207. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tools.py +0 -0
  208. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tools_eol_cancel_1030.py +0 -0
  209. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tools_vision_websearch.py +0 -0
  210. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tray_1126.py +0 -0
  211. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tui.py +0 -0
  212. {webbee-0.7.38 → webbee-0.7.39}/tests/test_tui_hardening.py +0 -0
  213. {webbee-0.7.38 → webbee-0.7.39}/tests/test_ui_tokens.py +0 -0
  214. {webbee-0.7.38 → webbee-0.7.39}/tests/test_update.py +0 -0
  215. {webbee-0.7.38 → webbee-0.7.39}/tests/test_update_badge_0340.py +0 -0
  216. {webbee-0.7.38 → webbee-0.7.39}/tests/test_urlopen.py +0 -0
  217. {webbee-0.7.38 → webbee-0.7.39}/tests/test_version.py +0 -0
  218. {webbee-0.7.38 → webbee-0.7.39}/tests/test_version_badge_corner.py +0 -0
  219. {webbee-0.7.38 → webbee-0.7.39}/tests/test_voice_outcome.py +0 -0
  220. {webbee-0.7.38 → webbee-0.7.39}/tests/test_wallet.py +0 -0
  221. {webbee-0.7.38 → webbee-0.7.39}/tests/test_worktrees.py +0 -0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.39
4
+
5
+ * Direct turn start: send `"start_now": true` in `POST /v1/agent/sessions` so the gateway starts the workflow immediately instead of waiting for the first SSE connect (backward-compatible with older gateways).
6
+ * Shared keep-alive HTTP client in `AgentSession`: reuse the REPL's shared `httpx.AsyncClient` across `POST /v1/agent/sessions`, SSE streaming (with per-request `read=None` timeout), tool ack/result, mode switch, and stop to eliminate repeated TCP+TLS handshakes.
7
+
3
8
  ## 0.7.38
4
9
 
5
10
  * First-words latency in turn footer: displays time to first visible words (`first X.Xs` / `отклик X.Xс`, compact `X.Xs/Y.Ys` on narrow terminals) alongside total turn duration, triggered by the first inline Guide remark or `answer_delta` chunk.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: webbee
3
- Version: 0.7.38
3
+ Version: 0.7.39
4
4
  Summary: Webbee 🐝 — the Imperal Cloud coding agent in your terminal
5
5
  Project-URL: Homepage, https://imperal.io/webbee-code
6
6
  Project-URL: Documentation, https://docs.imperal.io
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "webbee"
3
- version = "0.7.38"
3
+ version = "0.7.39"
4
4
  description = "Webbee 🐝 — the Imperal Cloud coding agent in your terminal"
5
5
  readme = "README.md"
6
6
  license = "GPL-3.0-or-later"
@@ -0,0 +1 @@
1
+ __version__ = "0.7.39"
@@ -812,7 +812,8 @@ async def _check_update_bg(update_state: dict, *, invalidate=None,
812
812
 
813
813
  async def _finish_slot(cfg, token_provider, workspace, mode, *, resources: WorkspaceResources,
814
814
  agent_factory, intel_factory, shadow_factory, pane, sink, first: bool,
815
- account, slot_id: str = "", label: "str | None" = None) -> "tuple[SessionSlot, int]":
815
+ account, slot_id: str = "", label: "str | None" = None,
816
+ shared_client=None) -> "tuple[SessionSlot, int]":
816
817
  """Shared tail of slot construction -- the dock's `_make_session_slot` AND
817
818
  the headless fallback loop both fall into this once they have their own
818
819
  pane (or None, fallback has no dock) + sink: resolve/boot the per-
@@ -836,6 +837,8 @@ async def _finish_slot(cfg, token_provider, workspace, mode, *, resources: Works
836
837
  bundle = await _resources_bundle(cfg, workspace, resources, intel_factory, shadow_factory)
837
838
  factory = _resolve_agent_factory(agent_factory, bundle)
838
839
  agent = factory(cfg, token_provider, workspace, mode)
840
+ if shared_client is not None and getattr(agent, "_client", None) is None:
841
+ agent._client = shared_client
839
842
  agent.slot_id = slot_id
840
843
  _acct_iid = str(getattr(account, "imperal_id", "") or "")
841
844
  if _acct_iid and not getattr(agent, "_imperal_id", ""):
@@ -1006,7 +1009,8 @@ async def _make_session_slot(cfg, token_provider, workspace, mode, *, resources:
1006
1009
  resources=resources, agent_factory=agent_factory,
1007
1010
  intel_factory=intel_factory, shadow_factory=shadow_factory,
1008
1011
  pane=pane, sink=sink, first=first, account=account,
1009
- slot_id=slot_id, label=label)
1012
+ slot_id=slot_id, label=label,
1013
+ shared_client=shared_client)
1010
1014
  slot.instance_lock = lock
1011
1015
  if lock_note:
1012
1016
  sink.note(lock_note)
@@ -2433,7 +2437,7 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
2433
2437
  cfg, token_provider, workspace, mode, resources=resources,
2434
2438
  agent_factory=agent_factory, intel_factory=intel_factory,
2435
2439
  shadow_factory=shadow_factory, pane=None, sink=sink,
2436
- first=True, account=account)
2440
+ first=True, account=account, shared_client=shared_client)
2437
2441
  slots.add(fallback_slot)
2438
2442
  _spawn_slot_poller(fallback_slot)
2439
2443
  try:
@@ -325,7 +325,8 @@ class AgentSession:
325
325
  so context carries across turns). Persistent signal-based sessions are P3."""
326
326
 
327
327
  def __init__(self, cfg, token_provider, workspace_root: str, mode: str = "default", intel=None,
328
- shadow=None, slot_id: str = "", model_tier: str = "", imperal_id: str = "") -> None:
328
+ shadow=None, slot_id: str = "", model_tier: str = "", imperal_id: str = "",
329
+ client=None) -> None:
329
330
  self.cfg = cfg
330
331
  self.token_provider = token_provider
331
332
  self.workspace_root = workspace_root
@@ -345,6 +346,9 @@ class AgentSession:
345
346
  # Cached imperal_id avoids a redundant GET /v1/auth/me (~0.9s) before every turn;
346
347
  # seeded from Account on first tab and cleared on /logout or /login.
347
348
  self._imperal_id: str = str(imperal_id or "")
349
+ # Optional shared keep-alive httpx.AsyncClient owned by repl.py (0.7.39):
350
+ # reused across turns/doors without closing so TCP+TLS stays warm.
351
+ self._client = client
348
352
  # W4b T5: "" (tab-1 / the fallback loop's only slot) keeps every turn's
349
353
  # POST body byte-identical to before this feature existed -- a later
350
354
  # tab's own short slot_id rides the body as `slot`, and the gateway
@@ -413,9 +417,12 @@ class AgentSession:
413
417
  if not self.session_id or self.cfg is None or self.token_provider is None:
414
418
  return False
415
419
  try:
420
+ import httpx
421
+
416
422
  headers = await self._headers()
417
- async with make_client(self.cfg, timeout=15) as client:
418
- resp = await client.post(f"/v1/agent/sessions/{self.session_id}/{door}", json=body, headers=headers)
423
+ async with self._http_client(timeout=15) as client:
424
+ kw = {"timeout": 15} if isinstance(client, httpx.AsyncClient) else {}
425
+ resp = await client.post(f"/v1/agent/sessions/{self.session_id}/{door}", json=body, headers=headers, **kw)
419
426
  return resp.status_code == 200 and bool((resp.json() or {}).get("ok"))
420
427
  except Exception:
421
428
  return False
@@ -426,9 +433,12 @@ class AgentSession:
426
433
  if not sid or self.cfg is None or self.token_provider is None:
427
434
  return None
428
435
  try:
436
+ import httpx
437
+
429
438
  headers = await self._headers()
430
- async with make_client(self.cfg, timeout=20) as client:
431
- resp = await client.post(f"/v1/agent/sessions/{sid}/jobs/{door}", json=body, headers=headers)
439
+ async with self._http_client(timeout=20) as client:
440
+ kw = {"timeout": 20} if isinstance(client, httpx.AsyncClient) else {}
441
+ resp = await client.post(f"/v1/agent/sessions/{sid}/jobs/{door}", json=body, headers=headers, **kw)
432
442
  got = resp.json() if resp.status_code == 200 else None
433
443
  return got if isinstance(got, dict) else None
434
444
  except Exception:
@@ -564,7 +574,8 @@ class AgentSession:
564
574
  shadow=self._shadow,
565
575
  client_factory=self._file_client_factory())
566
576
 
567
- body = {"user_id": imperal_id, "task": task, "coding_context": coding_context}
577
+ body = {"user_id": imperal_id, "task": task, "coding_context": coding_context,
578
+ "start_now": True}
568
579
  if surface:
569
580
  # Liveness v2 §B: an idle-steer pickup carries the queued item's
570
581
  # origin surface so the kernel adopts it start-path (provenance +
@@ -587,9 +598,10 @@ class AgentSession:
587
598
  body["goal"] = goal
588
599
 
589
600
  headers = await self._headers()
590
- async with make_client(self.cfg, timeout=60) as client: # keepalive: a slept socket dies, never hangs
601
+ async with self._http_client(timeout=60) as client: # keepalive: reuse shared pool or scoped client
602
+ _post_kw = {"timeout": 60.0} if isinstance(client, httpx.AsyncClient) else {}
591
603
  resp = await _transient_retry(lambda: client.post(
592
- "/v1/agent/sessions", json=body, headers=headers))
604
+ "/v1/agent/sessions", json=body, headers=headers, **_post_kw))
593
605
  resp.raise_for_status()
594
606
  _sess = resp.json()
595
607
  session_id = _sess["session_id"]
@@ -629,7 +641,7 @@ class AgentSession:
629
641
  executor = LocalToolExecutor(self.workspace_root, indexer=self._intel,
630
642
  shadow=self._shadow,
631
643
  client_factory=self._file_client_factory())
632
- async with make_client(self.cfg, timeout=60) as client: # keepalive: a slept socket dies, never hangs
644
+ async with self._http_client(timeout=60) as client: # keepalive: reuse shared pool or scoped client
633
645
  return await self._serve_stream(sink, client, session_id, start_id, task_id,
634
646
  executor, marathon=marathon)
635
647
 
@@ -1360,6 +1372,22 @@ class AgentSession:
1360
1372
  except Exception:
1361
1373
  pass
1362
1374
 
1375
+ def _http_client(self, *, timeout: float = 60.0):
1376
+ """Yield the injected keep-alive client without closing it, or open a
1377
+ scoped client for callers/tests that did not supply one."""
1378
+ from contextlib import asynccontextmanager
1379
+
1380
+ @asynccontextmanager
1381
+ async def _scope():
1382
+ shared = getattr(self, "_client", None)
1383
+ if shared is not None:
1384
+ yield shared
1385
+ return
1386
+ async with make_client(self.cfg, timeout=timeout) as client:
1387
+ yield client
1388
+
1389
+ return _scope()
1390
+
1363
1391
  async def stop(self) -> None:
1364
1392
  """P5g: server-side stop for Esc/Ctrl-C. Posts a cancel for the
1365
1393
  in-flight turn so the kernel tears down server-side (not just the
@@ -1372,12 +1400,18 @@ class AgentSession:
1372
1400
  if not self.session_id:
1373
1401
  return
1374
1402
  try:
1375
- import httpx
1376
-
1377
1403
  headers = await self._headers()
1378
- async with httpx.AsyncClient(base_url=self.cfg.api_url, timeout=10) as client:
1379
- await client.post(
1404
+ shared = getattr(self, "_client", None)
1405
+ if shared is not None:
1406
+ await shared.post(
1380
1407
  f"/v1/agent/sessions/{self.session_id}/cancel", headers=headers,
1381
1408
  )
1409
+ else:
1410
+ import httpx
1411
+
1412
+ async with httpx.AsyncClient(base_url=self.cfg.api_url, timeout=10) as client:
1413
+ await client.post(
1414
+ f"/v1/agent/sessions/{self.session_id}/cancel", headers=headers,
1415
+ )
1382
1416
  except Exception:
1383
1417
  pass
@@ -69,9 +69,12 @@ async def stream_frames(client, session_id: str, headers_provider, *,
69
69
  try:
70
70
  headers = await headers_provider() # refresh inside try
71
71
  headers["Last-Event-ID"] = last_id
72
+ sse_kw = {}
73
+ if isinstance(client, httpx.AsyncClient) and getattr(client.timeout, "read", None) is not None:
74
+ sse_kw["timeout"] = httpx.Timeout(connect=10.0, read=None, write=10.0, pool=10.0)
72
75
  async with aconnect_sse(
73
76
  client, "GET", f"/v1/agent/sessions/{session_id}/stream",
74
- headers=headers,
77
+ headers=headers, **sse_kw,
75
78
  ) as event_source:
76
79
  resp = getattr(event_source, "response", None)
77
80
  status = getattr(resp, "status_code", 0) if resp is not None else 0
@@ -1018,10 +1018,12 @@ def test_run_omits_slot_key_when_slot_id_empty(monkeypatch):
1018
1018
 
1019
1019
 
1020
1020
  def test_run_body_keys_identical_to_legacy_when_slot_id_empty(monkeypatch):
1021
- # Byte-identical pin (plan T5 item 2): with slot_id="" the body has
1022
- # EXACTLY the keys a 0.3.21 client's plain typed turn produced.
1021
+ # Byte-identical pin (plan T5 item 2) + 0.7.39 direct-start opt-in:
1022
+ # with slot_id="" the body has no "slot" key and explicitly carries
1023
+ # "start_now": True so the gateway starts the workflow in POST.
1023
1024
  body = _run_turn_capture_body(monkeypatch)
1024
- assert set(body.keys()) == {"task", "user_id", "coding_context", "steer_iid"}
1025
+ assert set(body.keys()) == {"task", "user_id", "coding_context", "steer_iid", "start_now"}
1026
+ assert body["start_now"] is True
1025
1027
 
1026
1028
 
1027
1029
  def test_run_threads_slot_into_session_post_body(monkeypatch):
@@ -1956,3 +1958,96 @@ def test_agent_session_caches_imperal_id_and_clears_on_reset(monkeypatch):
1956
1958
  sess.clear_identity()
1957
1959
  assert asyncio.run(sess._resolve_imperal_id()) == "imp_u_2"
1958
1960
  assert len(calls) == 2
1961
+
1962
+
1963
+ def test_agent_session_reuses_shared_keepalive_client_without_closing(monkeypatch):
1964
+ import httpx
1965
+ import imperal_mcp.client as ic
1966
+ import webbee.session as S
1967
+ import webbee.stream as ST
1968
+
1969
+ monkeypatch.setattr(S, "build_coding_context", lambda root, intel=None: {
1970
+ "cwd": root, "git": "", "tree": "", "repo_key": "x", "repo_root": root,
1971
+ })
1972
+
1973
+ class _FakeImperalClient:
1974
+ def __init__(self, cfg, token_provider):
1975
+ pass
1976
+
1977
+ async def whoami(self):
1978
+ return "user-1"
1979
+
1980
+ monkeypatch.setattr(ic, "ImperalClient", _FakeImperalClient)
1981
+
1982
+ def _forbidden_make_client(*a, **kw):
1983
+ raise AssertionError("make_client should not be called when shared client is provided")
1984
+
1985
+ monkeypatch.setattr(S, "make_client", _forbidden_make_client)
1986
+
1987
+ posts = []
1988
+ stream_clients = []
1989
+
1990
+ class _Resp:
1991
+ status_code = 200
1992
+ def raise_for_status(self):
1993
+ return None
1994
+ def json(self):
1995
+ return {"session_id": "s-shared", "last_id": "0-0"}
1996
+
1997
+ class _SharedClient:
1998
+ def __init__(self):
1999
+ self.closed = False
2000
+ self.exited = False
2001
+
2002
+ async def __aenter__(self):
2003
+ return self
2004
+
2005
+ async def __aexit__(self, *a):
2006
+ self.exited = True
2007
+
2008
+ async def aclose(self):
2009
+ self.closed = True
2010
+
2011
+ async def post(self, url, **kw):
2012
+ posts.append((url, kw))
2013
+ return _Resp()
2014
+
2015
+ async def _fake_stream(client, sid, headers, start_id="0-0", **_kw):
2016
+ stream_clients.append(client)
2017
+ yield {"type": "final", "text": "done"}
2018
+
2019
+ monkeypatch.setattr(ST, "stream_frames", _fake_stream)
2020
+
2021
+ class _Sink:
2022
+ def __getattr__(self, _name):
2023
+ return lambda *a, **kw: None
2024
+
2025
+ async def _tok():
2026
+ return "tok"
2027
+
2028
+ class _Cfg:
2029
+ api_url = "https://api.example"
2030
+
2031
+ shared = _SharedClient()
2032
+ sess = S.AgentSession(_Cfg(), _tok, ".", imperal_id="user-1", client=shared)
2033
+ asyncio.run(sess.run("hi", _Sink()))
2034
+ asyncio.run(sess.stop())
2035
+
2036
+ assert not shared.closed
2037
+ assert not shared.exited
2038
+ assert stream_clients == [shared]
2039
+ post_urls = [u for u, _ in posts]
2040
+ assert "/v1/agent/sessions" in post_urls
2041
+ assert "/v1/agent/sessions/s-shared/cancel" in post_urls
2042
+ start_body = dict(posts[0][1]["json"])
2043
+ assert start_body["start_now"] is True
2044
+
2045
+ # Real httpx.AsyncClient also stays open across _http_client scopes
2046
+ async def _check_real_httpx():
2047
+ async with httpx.AsyncClient(base_url="https://api.example", timeout=10.0) as real_client:
2048
+ s2 = S.AgentSession(_Cfg(), _tok, ".", imperal_id="user-1", client=real_client)
2049
+ async with s2._http_client(timeout=60.0) as c:
2050
+ assert c is real_client
2051
+ assert not real_client.is_closed
2052
+
2053
+ asyncio.run(_check_real_httpx())
@@ -387,3 +387,49 @@ def test_401_budget_rearms_for_a_later_independent_outage(fake_sse_server):
387
387
  assert [f["type"] for f in frames] == ["progress", "final"]
388
388
  assert calls == [1, 1] # TWO successful refreshes, not one-then-verdict
389
389
  assert server.connects == 4
390
+
391
+
392
+ def test_stream_frames_passes_read_none_timeout_for_shared_httpx_client(monkeypatch):
393
+ """0.7.39: reusing a shared httpx.AsyncClient (default 10s read timeout)
394
+ for SSE must pass an explicit per-request httpx.Timeout(read=None) so
395
+ quiet turns >10s do not trigger ReadTimeout."""
396
+ import webbee.stream as S
397
+
398
+ seen_kwargs = []
399
+
400
+ class _ES:
401
+ async def aiter_sse(self):
402
+ yield _FakeSSE("1-0", '{"type": "final", "text": "ok"}')
403
+
404
+ class _Ctx:
405
+ async def __aenter__(self):
406
+ return _ES()
407
+
408
+ async def __aexit__(self, *a):
409
+ return False
410
+
411
+ def _capture_connect(client, method, url, headers=None, **kw):
412
+ seen_kwargs.append(kw)
413
+ return _Ctx()
414
+
415
+ monkeypatch.setattr(S, "aconnect_sse", _capture_connect)
416
+
417
+ async def headers():
418
+ return {"Authorization": "Bearer t"}
419
+
420
+ async def _run():
421
+ async with httpx.AsyncClient(base_url="https://api.example", timeout=10.0) as client:
422
+ got = []
423
+ async for frame in stream_frames(client, "s1", headers, start_id="0-0"):
424
+ got.append(frame)
425
+ if frame.get("type") == "final":
426
+ break
427
+ return got
428
+
429
+ got = asyncio.run(_run())
430
+ assert [f["type"] for f in got] == ["final"]
431
+ assert len(seen_kwargs) == 1
432
+ timeout = seen_kwargs[0].get("timeout")
433
+ assert isinstance(timeout, httpx.Timeout)
434
+ assert timeout.read is None
435
+
@@ -326,21 +326,21 @@ wheels = [
326
326
 
327
327
  [[package]]
328
328
  name = "imperal-mcp"
329
- version = "0.9.24"
329
+ version = "0.9.25"
330
330
  source = { registry = "https://pypi.org/simple" }
331
331
  dependencies = [
332
332
  { name = "httpx" },
333
333
  { name = "imperal-sdk" },
334
334
  { name = "mcp" },
335
335
  ]
336
- sdist = { url = "https://files.pythonhosted.org/packages/9f/76/fd3f5232a078ce6a82920b6a8bb796f1b41e8f98364cbd2cb06e843d0d43/imperal_mcp-0.9.24.tar.gz", hash = "sha256:77e89935a40c807dd1167837adbfb466353c982c73ce063fb7875c6691576f31", size = 229245, upload-time = "2026-11-27T15:20:05.224Z" }
336
+ sdist = { url = "https://files.pythonhosted.org/packages/38/99/76a65a46f98cea2699b45ed4cd1145b6f7fd51f51ed497d6bdf57b4105cd/imperal_mcp-0.9.25.tar.gz", hash = "sha256:3b10541614f53dcdb9c659b5b9b3e12414496d347d7c7f38998133e60a2e65e4", size = 230078, upload-time = "2026-11-30T05:20:48.523Z" }
337
337
  wheels = [
338
- { url = "https://files.pythonhosted.org/packages/fb/71/a0e9e7cccac1ffb8498b52a545cc58595eb1d93aec63ab903ee67d69f131/imperal_mcp-0.9.24-py3-none-any.whl", hash = "sha256:e488dbb6afc56e21dacba72dd5ec7deb65f1c154610e53ee887be0d66ab0595d", size = 131658, upload-time = "2026-11-27T15:20:04.206Z" },
338
+ { url = "https://files.pythonhosted.org/packages/4e/cd/45b33ea1991077c95e1e979faa45f0e9af46159b72bdc44d09d34bbb4f2f/imperal_mcp-0.9.25-py3-none-any.whl", hash = "sha256:19bc869ce9bb0fec60c31c8fec9e4bcda7f515dfea5d7d0a818a55f1b48bd933", size = 131807, upload-time = "2026-11-30T05:20:47.203Z" },
339
339
  ]
340
340
 
341
341
  [[package]]
342
342
  name = "imperal-sdk"
343
- version = "6.14.0"
343
+ version = "6.16.0"
344
344
  source = { registry = "https://pypi.org/simple" }
345
345
  dependencies = [
346
346
  { name = "click" },
@@ -348,9 +348,9 @@ dependencies = [
348
348
  { name = "pydantic" },
349
349
  { name = "pyjwt", extra = ["crypto"] },
350
350
  ]
351
- sdist = { url = "https://files.pythonhosted.org/packages/a6/6a/def6b16df635b9e98ed2d4f86c3c8428bfc777a0f93b3e86a32613b23553/imperal_sdk-6.14.0.tar.gz", hash = "sha256:08b22dcfe5adcde577ee7a9adb60b07779ce58185d85225ec2abd5159834582b", size = 1039917, upload-time = "2026-11-27T21:39:17.24Z" }
351
+ sdist = { url = "https://files.pythonhosted.org/packages/fa/a4/fed01c5b93a1ee1d057e59e5f1fe666c870af67ac67e96b18f91489f0e43/imperal_sdk-6.16.0.tar.gz", hash = "sha256:89a8b3462a93606865a5ce1cc6a292ff51aabf71090cdf4ccd79a2fdb3f4ba18", size = 1040629, upload-time = "2026-11-30T04:14:07.364Z" }
352
352
  wheels = [
353
- { url = "https://files.pythonhosted.org/packages/4f/63/a6234ea46e88a80b600dd749566cc4d61f9a3012810b76c5c1bf7d459ba9/imperal_sdk-6.14.0-py3-none-any.whl", hash = "sha256:e0e2786e44d05827120c4b921e0be36e9b00203ae5fac582bf27324e9f37299e", size = 523446, upload-time = "2026-11-27T21:39:15.562Z" },
353
+ { url = "https://files.pythonhosted.org/packages/02/41/b89b3db669313b86023270a2131b431d3dcdd1a545f598ca9ab658471eef/imperal_sdk-6.16.0-py3-none-any.whl", hash = "sha256:72418064768c27f7ddb54f97018e7c93ae90b98a62a39ef30812bc1e1e01ea11", size = 523635, upload-time = "2026-11-30T04:14:05.775Z" },
354
354
  ]
355
355
 
356
356
  [package.optional-dependencies]
@@ -1700,7 +1700,7 @@ wheels = [
1700
1700
 
1701
1701
  [[package]]
1702
1702
  name = "webbee"
1703
- version = "0.7.38"
1703
+ version = "0.7.39"
1704
1704
  source = { editable = "." }
1705
1705
  dependencies = [
1706
1706
  { name = "asyncssh", marker = "python_full_version >= '3.10'" },
@@ -1 +0,0 @@
1
- __version__ = "0.7.38"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes