withruntime 0.35.0__tar.gz → 0.44.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. {withruntime-0.35.0/withruntime.egg-info → withruntime-0.44.0}/PKG-INFO +1 -1
  2. {withruntime-0.35.0 → withruntime-0.44.0}/pyproject.toml +1 -1
  3. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_agents.py +91 -5
  4. withruntime-0.44.0/tests/test_browsers.py +117 -0
  5. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_ci.py +2 -2
  6. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_observability.py +23 -2
  7. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_package_typing.py +1 -1
  8. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_secrets.py +54 -3
  9. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_agent_templates.py +7 -1
  10. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_client.py +16 -6
  11. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/__init__.py +2 -0
  12. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/agents.py +189 -5
  13. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/apps.py +1 -1
  14. withruntime-0.44.0/withruntime/_async_products/browsers.py +115 -0
  15. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/ci.py +6 -3
  16. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/observability.py +10 -4
  17. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/secrets.py +60 -11
  18. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_client.py +16 -6
  19. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/__init__.py +2 -0
  20. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/agents.py +189 -5
  21. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/apps.py +1 -1
  22. withruntime-0.44.0/withruntime/_sync_products/browsers.py +116 -0
  23. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/ci.py +6 -3
  24. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/observability.py +10 -4
  25. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/secrets.py +60 -11
  26. withruntime-0.44.0/withruntime/_trace.py +32 -0
  27. withruntime-0.44.0/withruntime/_version.py +1 -0
  28. withruntime-0.44.0/withruntime/_ws.py +403 -0
  29. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/_core.py +1 -1
  30. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/_async_sandbox.py +9 -8
  31. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/_sync_sandbox.py +9 -8
  32. {withruntime-0.35.0 → withruntime-0.44.0/withruntime.egg-info}/PKG-INFO +1 -1
  33. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime.egg-info/SOURCES.txt +4 -0
  34. withruntime-0.35.0/withruntime/_version.py +0 -1
  35. withruntime-0.35.0/withruntime/_ws.py +0 -161
  36. {withruntime-0.35.0 → withruntime-0.44.0}/LICENSE +0 -0
  37. {withruntime-0.35.0 → withruntime-0.44.0}/README.md +0 -0
  38. {withruntime-0.35.0 → withruntime-0.44.0}/setup.cfg +0 -0
  39. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_account_errors.py +0 -0
  40. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_answer_start.py +0 -0
  41. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_apps_builds.py +0 -0
  42. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_async_stream_cleanup.py +0 -0
  43. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_audit.py +0 -0
  44. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_billing.py +0 -0
  45. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_blaxel.py +0 -0
  46. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_blaxel_0_4_17.py +0 -0
  47. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_blaxel_0_4_18.py +0 -0
  48. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_blaxel_create_timeout.py +0 -0
  49. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_blaxel_wait_deadline.py +0 -0
  50. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_browser.py +0 -0
  51. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_capacity_wait.py +0 -0
  52. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_live.py +0 -0
  53. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_modal_deadline_errors.py +0 -0
  54. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_new_providers.py +0 -0
  55. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_prime_contract.py +0 -0
  56. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
  57. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_prime_validation.py +0 -0
  58. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_disk_snapshots.py +0 -0
  59. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_e2b_deadline.py +0 -0
  60. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_e2b_pty.py +0 -0
  61. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_e2b_stream.py +0 -0
  62. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_e2b_watch.py +0 -0
  63. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
  64. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_modal.py +0 -0
  65. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_morph.py +0 -0
  66. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_official.py +0 -0
  67. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_pins.py +0 -0
  68. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_processes.py +0 -0
  69. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_request_scope.py +0 -0
  70. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_runloop.py +0 -0
  71. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_shell.py +0 -0
  72. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_snapshot_capture.py +0 -0
  73. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_python_sprites.py +0 -0
  74. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_compat_router.py +0 -0
  75. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_customer_usage.py +0 -0
  76. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona.py +0 -0
  77. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_0_223_1.py +0 -0
  78. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_0_224_1.py +0 -0
  79. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_0_225_0.py +0 -0
  80. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_create_cleanup.py +0 -0
  81. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_create_options.py +0 -0
  82. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_download_labels.py +0 -0
  83. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_daytona_refusals_lifted.py +0 -0
  84. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_deepagents.py +0 -0
  85. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_2_55.py +0 -0
  86. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_code_interpreter.py +0 -0
  87. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_connection_cap.py +0 -0
  88. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_exports.py +0 -0
  89. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_fork_validation.py +0 -0
  90. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_sandbox.py +0 -0
  91. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_upstream.py +0 -0
  92. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_e2b_watch.py +0 -0
  93. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_embed_and_webhook_watch.py +0 -0
  94. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_eval_sandbox.py +0 -0
  95. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_exec_stream.py +0 -0
  96. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_exec_stream_names.py +0 -0
  97. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_exec_user.py +0 -0
  98. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_file_archives.py +0 -0
  99. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_files_download.py +0 -0
  100. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_files_mode.py +0 -0
  101. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_files_upload_parallel.py +0 -0
  102. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_files_write_lost_body.py +0 -0
  103. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_harbor.py +0 -0
  104. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_http_tls_close.py +0 -0
  105. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_identity_token.py +0 -0
  106. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_image_delete_by_name.py +0 -0
  107. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_images_v2.py +0 -0
  108. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_images_volumes_interpreter.py +0 -0
  109. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_inspect_ai.py +0 -0
  110. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_interface_contract.py +0 -0
  111. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_jobs.py +0 -0
  112. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_late_answer.py +0 -0
  113. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_lifecycle_settings.py +0 -0
  114. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_limits.py +0 -0
  115. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_machine_engine.py +0 -0
  116. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_modal_1_6_2.py +0 -0
  117. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_modal_dropin.py +0 -0
  118. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_modal_examples.py +0 -0
  119. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_modal_jobs.py +0 -0
  120. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_mounts.py +0 -0
  121. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_network_funding.py +0 -0
  122. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_network_products.py +0 -0
  123. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_openai_agents.py +0 -0
  124. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_out_of_memory.py +0 -0
  125. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_plans.py +0 -0
  126. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_previews_network_desktop.py +0 -0
  127. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_prime_0_4_5.py +0 -0
  128. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_prime_0_4_6.py +0 -0
  129. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_prime_0_4_7.py +0 -0
  130. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_private_network.py +0 -0
  131. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_process_deadline.py +0 -0
  132. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_process_input.py +0 -0
  133. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_process_object.py +0 -0
  134. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_process_output.py +0 -0
  135. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_process_write_backpressure.py +0 -0
  136. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_product_aliases.py +0 -0
  137. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_proxy.py +0 -0
  138. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_referrals.py +0 -0
  139. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_replayed_create_message.py +0 -0
  140. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_reservations.py +0 -0
  141. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_runloop_stream_cleanup.py +0 -0
  142. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_runloop_v2.py +0 -0
  143. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_sandbox_origin.py +0 -0
  144. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_sandbox_sessions.py +0 -0
  145. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_sandboxes_delete_all.py +0 -0
  146. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_sandboxes_stop_all.py +0 -0
  147. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_saved_connection.py +0 -0
  148. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_signed_requests.py +0 -0
  149. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_snapshot_after_fork.py +0 -0
  150. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_snapshot_recovery.py +0 -0
  151. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_sso.py +0 -0
  152. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_start_report_kept.py +0 -0
  153. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_stream_cut_short.py +0 -0
  154. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_stream_exit_close.py +0 -0
  155. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_switch_image.py +0 -0
  156. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_switching.py +0 -0
  157. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_tailscale.py +0 -0
  158. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_tools.py +0 -0
  159. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_trace_files.py +0 -0
  160. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_transport_body_recovery.py +0 -0
  161. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_transport_connection_limits.py +0 -0
  162. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_transport_never_sent.py +0 -0
  163. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_unpack.py +0 -0
  164. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_upload_deadline.py +0 -0
  165. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_usage_export.py +0 -0
  166. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_vercel.py +0 -0
  167. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_vercel_create_validation.py +0 -0
  168. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_vercel_disk_snapshot.py +0 -0
  169. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_vercel_refusals_lifted.py +0 -0
  170. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_volume_backups.py +0 -0
  171. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_volume_operations.py +0 -0
  172. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_wake_awake.py +0 -0
  173. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_wallet.py +0 -0
  174. {withruntime-0.35.0 → withruntime-0.44.0}/tests/test_watch.py +0 -0
  175. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/__init__.py +0 -0
  176. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_api_defaults.py +0 -0
  177. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/audit.py +0 -0
  178. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/billing.py +0 -0
  179. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/browser.py +0 -0
  180. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/builds.py +0 -0
  181. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/containers.py +0 -0
  182. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/desktop.py +0 -0
  183. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/images.py +0 -0
  184. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/interpreter.py +0 -0
  185. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/jobs.py +0 -0
  186. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/limits.py +0 -0
  187. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/mcp.py +0 -0
  188. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/mounts.py +0 -0
  189. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/network.py +0 -0
  190. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/network_products.py +0 -0
  191. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/plans.py +0 -0
  192. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/previews.py +0 -0
  193. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/private_network.py +0 -0
  194. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/referrals.py +0 -0
  195. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/reservations.py +0 -0
  196. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/signed_requests.py +0 -0
  197. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/sso.py +0 -0
  198. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/switching.py +0 -0
  199. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/tailscale.py +0 -0
  200. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/volumes.py +0 -0
  201. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_async_products/watch.py +0 -0
  202. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_clock.py +0 -0
  203. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_compat.py +0 -0
  204. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_compat_lease.py +0 -0
  205. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_compat_lifecycle.py +0 -0
  206. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_compat_shell.py +0 -0
  207. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_connection.py +0 -0
  208. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_errors.py +0 -0
  209. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_eval_sandbox.py +0 -0
  210. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_http.py +0 -0
  211. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_proxy.py +0 -0
  212. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_renamed.py +0 -0
  213. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_request_scope.py +0 -0
  214. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/audit.py +0 -0
  215. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/billing.py +0 -0
  216. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/browser.py +0 -0
  217. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/builds.py +0 -0
  218. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/containers.py +0 -0
  219. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/desktop.py +0 -0
  220. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/images.py +0 -0
  221. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/interpreter.py +0 -0
  222. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/jobs.py +0 -0
  223. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/limits.py +0 -0
  224. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/mcp.py +0 -0
  225. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/mounts.py +0 -0
  226. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/network.py +0 -0
  227. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/network_products.py +0 -0
  228. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/plans.py +0 -0
  229. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/previews.py +0 -0
  230. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/private_network.py +0 -0
  231. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/referrals.py +0 -0
  232. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/reservations.py +0 -0
  233. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/signed_requests.py +0 -0
  234. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/sso.py +0 -0
  235. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/switching.py +0 -0
  236. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/tailscale.py +0 -0
  237. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/volumes.py +0 -0
  238. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_sync_products/watch.py +0 -0
  239. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_tunnel.py +0 -0
  240. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/_unpack.py +0 -0
  241. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/__init__.py +0 -0
  242. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/_async_io.py +0 -0
  243. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/_async_sandbox.py +0 -0
  244. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/_core.py +0 -0
  245. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/_sync_io.py +0 -0
  246. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
  247. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/__init__.py +0 -0
  248. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/agents.py +0 -0
  249. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/__init__.py +0 -0
  250. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
  251. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
  252. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
  253. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
  254. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
  255. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
  256. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
  257. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
  258. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/images.py +0 -0
  259. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
  260. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/client.py +0 -0
  261. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
  262. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
  263. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
  264. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/env.py +0 -0
  265. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/function.py +0 -0
  266. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
  267. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
  268. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
  269. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
  270. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
  271. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/pagination.py +0 -0
  272. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/client/types.py +0 -0
  273. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/common.py +0 -0
  274. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/drive.py +0 -0
  275. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/errors.py +0 -0
  276. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/jobs.py +0 -0
  277. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
  278. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
  279. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/core/secret.py +0 -0
  280. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/crewai.py +0 -0
  281. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/googleadk.py +0 -0
  282. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/langgraph.py +0 -0
  283. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/livekit.py +0 -0
  284. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/llamaindex.py +0 -0
  285. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/openai.py +0 -0
  286. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/pydantic.py +0 -0
  287. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/blaxel/telemetry.py +0 -0
  288. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/__init__.py +0 -0
  289. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/_async_daytona.py +0 -0
  290. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/_async_io.py +0 -0
  291. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/_sync_daytona.py +0 -0
  292. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/daytona/_sync_io.py +0 -0
  293. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/deepagents.py +0 -0
  294. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/__init__.py +0 -0
  295. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/_async_io.py +0 -0
  296. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/_core.py +0 -0
  297. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/_sync_io.py +0 -0
  298. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
  299. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
  300. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
  301. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
  302. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
  303. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
  304. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
  305. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/code_interpreter/models.py +0 -0
  306. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/connection_config.py +0 -0
  307. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/exceptions.py +0 -0
  308. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/__init__.py +0 -0
  309. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
  310. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
  311. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
  312. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
  313. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
  314. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
  315. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/network.py +0 -0
  316. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
  317. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox/signature.py +0 -0
  318. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
  319. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
  320. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
  321. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
  322. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
  323. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
  324. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  325. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  326. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/main.py +0 -0
  327. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
  328. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
  329. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
  330. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
  331. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
  332. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
  333. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
  334. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
  335. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  336. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  337. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
  338. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
  339. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
  340. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/secret/__init__.py +0 -0
  341. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/__init__.py +0 -0
  342. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
  343. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/logger.py +0 -0
  344. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/main.py +0 -0
  345. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/readycmd.py +0 -0
  346. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template/types.py +0 -0
  347. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template_async/__init__.py +0 -0
  348. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template_async/main.py +0 -0
  349. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template_sync/__init__.py +0 -0
  350. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/template_sync/main.py +0 -0
  351. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/volume/__init__.py +0 -0
  352. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/volume/connection_config.py +0 -0
  353. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/volume/types.py +0 -0
  354. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/volume/volume_async.py +0 -0
  355. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/e2b/volume/volume_sync.py +0 -0
  356. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/harbor.py +0 -0
  357. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/inspect_ai.py +0 -0
  358. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/__init__.py +0 -0
  359. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/__main__.py +0 -0
  360. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_async.py +0 -0
  361. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_dual.py +0 -0
  362. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_fs_async.py +0 -0
  363. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_fs_common.py +0 -0
  364. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_fs_sync.py +0 -0
  365. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_functions.py +0 -0
  366. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_job_runner.py +0 -0
  367. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_lookup.py +0 -0
  368. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_object.py +0 -0
  369. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_probe.py +0 -0
  370. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_snapshot.py +0 -0
  371. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/_tunnel.py +0 -0
  372. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/app.py +0 -0
  373. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
  374. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/container_process.py +0 -0
  375. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/exception.py +0 -0
  376. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/file_pattern_matcher.py +0 -0
  377. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/image.py +0 -0
  378. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/io_streams.py +0 -0
  379. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/output.py +0 -0
  380. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/proxy.py +0 -0
  381. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/sandbox/__init__.py +0 -0
  382. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/sandbox/sandbox.py +0 -0
  383. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/sandbox_fs.py +0 -0
  384. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/secret.py +0 -0
  385. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/snapshot.py +0 -0
  386. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/stream_type.py +0 -0
  387. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/types.py +0 -0
  388. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/modal/volume.py +0 -0
  389. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/morph/__init__.py +0 -0
  390. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/morph/api.py +0 -0
  391. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/openai_agents.py +0 -0
  392. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/__init__.py +0 -0
  393. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/_async.py +0 -0
  394. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/_sync.py +0 -0
  395. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/core/__init__.py +0 -0
  396. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/core/client.py +0 -0
  397. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/exceptions.py +0 -0
  398. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/models.py +0 -0
  399. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/process.py +0 -0
  400. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/prime/sandbox.py +0 -0
  401. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/py.typed +0 -0
  402. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/__init__.py +0 -0
  403. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/_async.py +0 -0
  404. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/_exceptions.py +0 -0
  405. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/_snapshots.py +0 -0
  406. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/_sync.py +0 -0
  407. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/_v2.py +0 -0
  408. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/lib/__init__.py +0 -0
  409. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/lib/polling.py +0 -0
  410. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/runloop/sdk/__init__.py +0 -0
  411. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/__init__.py +0 -0
  412. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_capture.py +0 -0
  413. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_capture_async.py +0 -0
  414. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_features.py +0 -0
  415. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_metadata.py +0 -0
  416. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_stream.py +0 -0
  417. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_stream_async.py +0 -0
  418. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/_translate.py +0 -0
  419. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/async_client.py +0 -0
  420. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/async_exec.py +0 -0
  421. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/client.py +0 -0
  422. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/control.py +0 -0
  423. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/exceptions.py +0 -0
  424. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/exec.py +0 -0
  425. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/filesystem.py +0 -0
  426. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/sprite.py +0 -0
  427. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/sprites/types.py +0 -0
  428. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/tools.py +0 -0
  429. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/__init__.py +0 -0
  430. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/_async_io.py +0 -0
  431. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/_async_sandbox.py +0 -0
  432. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/_core.py +0 -0
  433. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/_sync_io.py +0 -0
  434. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/_sync_sandbox.py +0 -0
  435. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/api.py +0 -0
  436. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/sandbox/__init__.py +0 -0
  437. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/vercel/sandbox/sync.py +0 -0
  438. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/wallet.py +0 -0
  439. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime/webhooks.py +0 -0
  440. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime.egg-info/dependency_links.txt +0 -0
  441. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime.egg-info/entry_points.txt +0 -0
  442. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime.egg-info/requires.txt +0 -0
  443. {withruntime-0.35.0 → withruntime-0.44.0}/withruntime.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: withruntime
3
- Version: 0.35.0
3
+ Version: 0.44.0
4
4
  Summary: Runtime Cloud: one client (sync and async) for every Runtime product. Sandboxes first.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://withruntime.com
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "withruntime"
7
- version = "0.35.0"
7
+ version = "0.44.0"
8
8
  description = "Runtime Cloud: one client (sync and async) for every Runtime product. Sandboxes first."
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
@@ -80,6 +80,8 @@ class Stub(BaseHTTPRequestHandler):
80
80
  states: list = []
81
81
  # When set, what a read of one session answers.
82
82
  record = None
83
+ # The version a read of the workflow answers; each long poll adds one.
84
+ version = 1
83
85
  # The server of the test now running.
84
86
  live = None
85
87
 
@@ -120,6 +122,16 @@ class Stub(BaseHTTPRequestHandler):
120
122
  if method == "DELETE":
121
123
  return self.answer({"deleted": True})
122
124
  return self.answer({**MEMORY, "content": "tea, no sugar"})
125
+ if path == "/v1/agents/slack/installs":
126
+ return self.answer({"url": "https://withruntime.com/api/account/agents/slack/start?install=s",
127
+ "expiresAt": "2026-10-26T17:15:00.000Z"}, 201)
128
+ if path == "/v1/agents/slack/teams":
129
+ return self.answer({"data": [{"team": "T0ACME", "name": "Acme", "botUser": "U0BOT",
130
+ "installedAt": "2026-10-26T17:00:00.000Z"}]})
131
+ if path.startswith("/v1/agents/slack/teams/"):
132
+ return self.answer({"team": path.rsplit("/", 1)[1], "removed": True})
133
+ if path.startswith("/v1/agents/workflows"):
134
+ return self.workflow_route(method, path, query)
123
135
  if path == "/v1/agents/asks":
124
136
  return self.answer({"data": [ASK], "nextCursor": None})
125
137
  if path.startswith("/v1/agents/asks/"):
@@ -179,9 +191,40 @@ class Stub(BaseHTTPRequestHandler):
179
191
  return self.answer(AGENT, 201 if method == "POST" else 200)
180
192
  self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
181
193
 
194
+ def workflow_route(self, method, path, query):
195
+ base = f"/v1/agents/workflows/{WORKFLOW_ID}"
196
+ if path == "/v1/agents/workflows":
197
+ return self.answer(workflow(1), 201) if method == "POST" else self.answer(
198
+ {"data": [workflow(1)], "nextCursor": None})
199
+ if path == f"{base}/steps":
200
+ return self.answer({"data": [STEP], "nextCursor": None})
201
+ if path == f"{base}/stop":
202
+ return self.answer(workflow(9, "stopped"))
203
+ if "wait" not in query:
204
+ return self.answer(workflow(Stub.version))
205
+ # Each long poll answers the next version; the third has ended.
206
+ Stub.version += 1
207
+ return self.answer(workflow(Stub.version, "done", '["X", "Y"]') if Stub.version >= 3
208
+ else workflow(Stub.version))
209
+
182
210
  do_GET = do_POST = do_PATCH = do_PUT = do_DELETE = handle_any
183
211
 
184
212
 
213
+ WORKFLOW_ID = "55555555-5555-4555-8555-555555555555"
214
+ STEP = {"phase": "fix", "item": 0, "itemText": "a.ts", "state": "done", "reason": "done", "result": "ok",
215
+ "sessionId": CHILD_ID, "createdAt": "2026-10-18T00:00:00Z", "startedAt": None, "endedAt": None}
216
+
217
+
218
+ def workflow(version, state="running", result=None):
219
+ return {"id": WORKFLOW_ID, "name": "triage", "state": state, "reason": None if state == "running" else "done",
220
+ "result": result, "parentSessionId": None, "spec": {}, "maxSessions": 100, "maxConcurrent": 20,
221
+ "maxDollars": 10, "started": 2, "version": version, "labels": {},
222
+ "phases": [{"name": "fix", "agentId": AGENT_ID, "total": 2, "ready": True, "pending": 0,
223
+ "running": 0, "done": 2, "failed": 0}],
224
+ "cost": {"dollars": 0, "vcpuSeconds": 0, "gibSeconds": 0}, "createdAt": "2026-10-18T00:00:00Z",
225
+ "updatedAt": "2026-10-18T00:00:00Z", "endedAt": None}
226
+
227
+
185
228
  ASK = {"id": "ask-1", "step": "bucket-cap", "question": "Raise the cap?", "options": [{"label": "Raise"}],
186
229
  "pick": "Raise", "state": "open", "sessions": [{"sessionId": SESSION_ID, "state": "asking", "seq": 2}]}
187
230
 
@@ -201,6 +244,7 @@ class AgentsTest(unittest.TestCase):
201
244
  Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
202
245
  Stub.auth = []
203
246
  Stub.record = None
247
+ Stub.version = 1
204
248
 
205
249
  def tearDown(self):
206
250
  self.server.shutdown()
@@ -238,6 +282,7 @@ class AgentsTest(unittest.TestCase):
238
282
  self.assertEqual((started.id, started.state, started.joined, started.seq), (SESSION_ID, "queued", False, 1))
239
283
  joined = runtime.agents.start(AGENT_ID, "Hello", key="customer:42")
240
284
  self.assertTrue(joined.joined)
285
+ runtime.agents.start("dev", "Summarize", overrides={"model": "claude-haiku-5-5", "disallowedTools": ["Bash"]})
241
286
  self.assertEqual(started.send("More words", idempotency_key="words-1"), 7)
242
287
  self.assertEqual(started.stop()["state"], "stopped")
243
288
  self.assertTrue(started.ended)
@@ -249,15 +294,18 @@ class AgentsTest(unittest.TestCase):
249
294
  base = f"/v1/agents/sessions/{SESSION_ID}"
250
295
  self.assertEqual(self.routes(), [
251
296
  ("POST", "/v1/agents/dev/sessions"), ("POST", f"/v1/agents/{AGENT_ID}/sessions"),
297
+ ("POST", "/v1/agents/dev/sessions"),
252
298
  ("POST", f"{base}/messages"), ("POST", f"{base}/stop"), ("GET", base),
253
299
  ("GET", "/v1/agents/sessions"), ("GET", "/v1/agents/sessions"), ("DELETE", base)])
254
300
  self.assertEqual(Stub.seen[0][3], {"input": "Fix the test", "labels": {"pr": "7"}})
255
301
  self.assertEqual(Stub.seen[0][4], "start-1")
256
302
  self.assertEqual(Stub.seen[1][3], {"input": "Hello", "key": "customer:42"})
257
- self.assertEqual(Stub.seen[2][3], {"text": "More words"})
258
- self.assertEqual(Stub.seen[2][4], "words-1")
259
- self.assertEqual(Stub.seen[5][2], {"agent": ["dev"], "state": ["running"]})
260
- self.assertEqual(Stub.seen[6][2], {"agent": ["dev"], "state": ["running"], "cursor": ["page-2"]})
303
+ self.assertEqual(Stub.seen[2][3], {"input": "Summarize",
304
+ "overrides": {"model": "claude-haiku-5-5", "disallowedTools": ["Bash"]}})
305
+ self.assertEqual(Stub.seen[3][3], {"text": "More words"})
306
+ self.assertEqual(Stub.seen[3][4], "words-1")
307
+ self.assertEqual(Stub.seen[6][2], {"agent": ["dev"], "state": ["running"]})
308
+ self.assertEqual(Stub.seen[7][2], {"agent": ["dev"], "state": ["running"], "cursor": ["page-2"]})
261
309
  self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
262
310
 
263
311
  def test_children_and_tree_lists_read_by_parent_root_and_deleted(self):
@@ -385,6 +433,25 @@ class AgentsTest(unittest.TestCase):
385
433
  query = Stub.seen[0][2]
386
434
  self.assertEqual((query["state"], query["label"]), (["open", "expired"], ["team:infra"]))
387
435
 
436
+ def test_a_workflow_runs_is_followed_by_version_with_a_long_poll_and_lists_its_steps(self):
437
+ spec = {"agent": "dev", "phases": [{"name": "fix", "input": "Fix {{item}}", "each": ["a.ts", "b.ts"]}]}
438
+ with self.client() as runtime:
439
+ flow = runtime.agents.workflows.run(spec, idempotency_key="wf-1")
440
+ self.assertEqual((flow.id, flow.state), (WORKFLOW_ID, "running"))
441
+ self.assertEqual([w["version"] for w in flow.follow()], [2, 3])
442
+ self.assertEqual((flow.state, flow.workflow["result"]), ("done", '["X", "Y"]'))
443
+ Stub.version = 1
444
+ self.assertEqual(runtime.agents.workflows.get(WORKFLOW_ID).wait()["state"], "done")
445
+ self.assertEqual([x["itemText"] for x in flow.steps(state="done")], ["a.ts"])
446
+ self.assertEqual([w["id"] for w in runtime.agents.workflows.list(state=["running"])], [WORKFLOW_ID])
447
+ self.assertEqual(flow.stop()["state"], "stopped")
448
+ base = f"/v1/agents/workflows/{WORKFLOW_ID}"
449
+ self.assertEqual(Stub.seen[0][3], spec)
450
+ self.assertEqual(Stub.seen[0][4], "wf-1")
451
+ polls = [s[2] for s in Stub.seen if "wait" in s[2]]
452
+ self.assertEqual(polls[:2], [{"after": ["0"], "wait": ["30"]}, {"after": ["2"], "wait": ["30"]}])
453
+ self.assertEqual(self.routes()[-3:], [
454
+ ("GET", f"{base}/steps"), ("GET", "/v1/agents/workflows"), ("POST", f"{base}/stop")])
388
455
  def test_a_held_tool_call_is_approved_or_denied_with_its_message(self):
389
456
  with self.client() as runtime:
390
457
  self.assertEqual(runtime.agents.asks.approve("ask-1")["answer"], {"option": "Allow"})
@@ -416,6 +483,15 @@ class AgentsTest(unittest.TestCase):
416
483
  self.assertEqual(Stub.auth[2], "Bearer rtat_secret_1234567890")
417
484
  self.assertEqual(Stub.auth[1], "Bearer rk_test")
418
485
 
486
+ def test_slack_install_teams_and_remove_call_their_routes(self):
487
+ with self.client() as runtime:
488
+ self.assertIn("/api/account/agents/slack/start", runtime.agents.slack.install()["url"])
489
+ self.assertEqual([w["team"] for w in runtime.agents.slack.teams()], ["T0ACME"])
490
+ self.assertIsNone(runtime.agents.slack.remove("T0ACME"))
491
+ self.assertEqual(self.routes(), [
492
+ ("POST", "/v1/agents/slack/installs"), ("GET", "/v1/agents/slack/teams"),
493
+ ("DELETE", "/v1/agents/slack/teams/T0ACME")])
494
+
419
495
  def test_every_memory_verb_calls_its_route_with_the_scope_in_the_query(self):
420
496
  with self.client() as runtime:
421
497
  page = runtime.agents.memory.list("dev", prefix="notes/", limit=1)
@@ -465,7 +541,7 @@ class AgentsTest(unittest.TestCase):
465
541
  with self.client() as runtime:
466
542
  templates = runtime.agents.templates
467
543
  self.assertEqual(list(templates), ["claude-code", "codex", "gemini-cli", "claude-agent-sdk",
468
- "openai-agents-sdk", "review", "judge"])
544
+ "openai-agents-sdk", "review", "judge", "browser"])
469
545
  # The reviewer's model keys are its pool of Claude accounts.
470
546
  self.assertEqual(templates.definition("review")["pool"], ["ANTHROPIC_API_KEY"])
471
547
  self.assertEqual(templates.definition("review", "team")["vcpu"], 4)
@@ -529,6 +605,16 @@ class AgentsTest(unittest.TestCase):
529
605
  [{"parent": [SESSION_ID]}, {"parent": [SESSION_ID], "cursor": ["page-2"]}])
530
606
  self.assertEqual(Stub.seen[0][3]["definition"]["template"], "team")
531
607
 
608
+ def test_an_async_workflow_follows_and_waits_the_same_way(self):
609
+ async def go():
610
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=2) as runtime:
611
+ flow = await runtime.agents.workflows.run({"agent": "dev", "phases": []})
612
+ versions = [w["version"] async for w in flow.follow()]
613
+ steps = await (await flow.steps()).to_list()
614
+ return versions, (await flow.wait())["result"], steps
615
+ versions, result, steps = asyncio.run(go())
616
+ self.assertEqual((versions, result, steps), ([2, 3], '["X", "Y"]', [STEP]))
617
+
532
618
 
533
619
  if __name__ == "__main__":
534
620
  unittest.main()
@@ -0,0 +1,117 @@
1
+ """runtime.browsers against a stub API, sync and async: a run started in one
2
+ call and followed by long polls on its steps until it ends, every runs route
3
+ with the API's names, and a refused model key returned, not raised."""
4
+ import asyncio
5
+ import json
6
+ import threading
7
+ import unittest
8
+ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
9
+ from urllib.parse import parse_qs, urlsplit
10
+
11
+ from withruntime import AsyncRuntime, Runtime
12
+
13
+ RUN_ID = "66666666-6666-4666-8666-666666666666"
14
+
15
+
16
+ def run(state, **fields):
17
+ return {"id": RUN_ID, "state": state, "task": "Find the title", "model": "claude-sonnet-5-5",
18
+ "startUrl": None, "output": None, "error": None, "steps": 0, "url": None, "sandboxId": None,
19
+ "labels": {}, "createdAt": "2026-10-26T00:00:00Z", "startedAt": None, "endedAt": None, **fields}
20
+
21
+
22
+ class Stub(BaseHTTPRequestHandler):
23
+ seen: list = []
24
+ # Each read of the run answers the next of these; the last repeats.
25
+ states: list = []
26
+
27
+ def log_message(self, *args):
28
+ pass
29
+
30
+ def answer(self, value, status=200):
31
+ body = json.dumps(value).encode()
32
+ self.send_response(status)
33
+ self.send_header("content-type", "application/json")
34
+ self.send_header("content-length", str(len(body)))
35
+ self.end_headers()
36
+ self.wfile.write(body)
37
+
38
+ def handle_any(self):
39
+ url = urlsplit(self.path)
40
+ length = int(self.headers.get("content-length") or 0)
41
+ body = json.loads(self.rfile.read(length)) if length else None
42
+ query = {k: v[0] for k, v in parse_qs(url.query).items()}
43
+ Stub.seen.append((self.command, url.path, body if self.command == "POST" else query))
44
+ if url.path == "/v1/browsers/runs" and self.command == "POST":
45
+ return self.answer(run("queued", task=body["task"]), 201)
46
+ if url.path == "/v1/browsers/runs":
47
+ return self.answer({"data": [run("done")], "nextCursor": None})
48
+ if url.path == f"/v1/browsers/runs/{RUN_ID}/steps":
49
+ if query.get("after", "0") == "0":
50
+ return self.answer({"data": [{"n": 0, "seq": 2, "url": "https://example.com/", "frame": None},
51
+ {"n": 1, "seq": 3, "url": "https://example.com/", "frame": None}],
52
+ "after": 3, "ended": False})
53
+ return self.answer({"data": [], "after": 3, "ended": True})
54
+ if url.path == f"/v1/browsers/runs/{RUN_ID}:stop":
55
+ return self.answer(run("stopped"))
56
+ if url.path == f"/v1/browsers/runs/{RUN_ID}":
57
+ state = Stub.states.pop(0) if len(Stub.states) > 1 else Stub.states[0]
58
+ return self.answer(state)
59
+ return self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
60
+
61
+ do_GET = do_POST = handle_any
62
+
63
+
64
+ class BrowsersTest(unittest.TestCase):
65
+ def setUp(self):
66
+ self.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
67
+ threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
68
+ self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
69
+ Stub.seen = []
70
+ Stub.states = [run("running"), run("done", output="Example Domain", steps=1)]
71
+
72
+ def tearDown(self):
73
+ self.server.shutdown()
74
+ self.server.server_close()
75
+
76
+ def test_run_starts_one_and_follows_its_steps_until_it_ends(self):
77
+ with Runtime(api_key="rk_test", base_url=self.url) as runtime:
78
+ done = runtime.browsers.run("Find the title", start_url="https://example.com", max_steps=5)
79
+ self.assertEqual((done["state"], done["output"]), ("done", "Example Domain"))
80
+ self.assertEqual(Stub.seen, [
81
+ ("POST", "/v1/browsers/runs", {"task": "Find the title", "startUrl": "https://example.com",
82
+ "maxSteps": 5}),
83
+ ("GET", f"/v1/browsers/runs/{RUN_ID}", {}),
84
+ ("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "0", "frames": "false", "wait": "30"}),
85
+ ("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "3", "frames": "false", "wait": "30"}),
86
+ ("GET", f"/v1/browsers/runs/{RUN_ID}", {}),
87
+ ])
88
+
89
+ def test_every_runs_verb_calls_its_route_and_a_failed_run_is_returned(self):
90
+ Stub.states = [run("failed", error="Store your key as the egress secret OPENAI_API_KEY.")]
91
+ with Runtime(api_key="rk_test", base_url=self.url) as runtime:
92
+ runtime.browsers.runs.create("Read the invoice", model="gpt-5", allowed_domains=["example.com"],
93
+ labels={"team": "billing"})
94
+ self.assertEqual(runtime.browsers.runs.list(limit=5).data[0]["state"], "done")
95
+ steps = [s["n"] for s in runtime.browsers.runs.follow(RUN_ID)]
96
+ self.assertEqual(steps, [0, 1])
97
+ self.assertEqual(runtime.browsers.runs.stop(RUN_ID)["state"], "stopped")
98
+ failed = runtime.browsers.runs.wait(RUN_ID)
99
+ self.assertIn("OPENAI_API_KEY", failed["error"])
100
+ self.assertEqual(Stub.seen[0], ("POST", "/v1/browsers/runs", {
101
+ "task": "Read the invoice", "model": "gpt-5", "allowedDomains": ["example.com"],
102
+ "labels": {"team": "billing"}}))
103
+ self.assertEqual(Stub.seen[1], ("GET", "/v1/browsers/runs", {"limit": "5"}))
104
+ self.assertEqual(Stub.seen[2], ("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "0", "wait": "30"}))
105
+ self.assertEqual(Stub.seen[-2], ("POST", f"/v1/browsers/runs/{RUN_ID}:stop", {}))
106
+ # A run that has ended is answered without a wait.
107
+ self.assertEqual(Stub.seen[-1], ("GET", f"/v1/browsers/runs/{RUN_ID}", {}))
108
+
109
+ def test_async_run(self):
110
+ async def go():
111
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url) as runtime:
112
+ return await runtime.browsers.run("Find the title")
113
+ self.assertEqual(asyncio.run(go())["output"], "Example Domain")
114
+
115
+
116
+ if __name__ == "__main__":
117
+ unittest.main()
@@ -122,7 +122,7 @@ class CiTest(unittest.TestCase):
122
122
  state=["connected"], limit=1)
123
123
  disconnected = runtime.ci.repositories.disconnect(REPO_ID)
124
124
  checks = runtime.ci.checks.list(repository_id=REPO_ID, state=["failed", "queued"], branch="main",
125
- commit="a" * 40, pull_request=12, limit=5)
125
+ commit="a" * 40, pull_request=12, event=["merge_group"], limit=5)
126
126
  check = runtime.ci.checks.get(CHECK_ID)
127
127
  job = runtime.ci.jobs.get(JOB_ID)
128
128
  tests = runtime.ci.tests.list(REPO_ID, quarantined=True, limit=10)
@@ -145,7 +145,7 @@ class CiTest(unittest.TestCase):
145
145
  self.assertTrue(Stub.seen[2][4])
146
146
  self.assertEqual(Stub.seen[3][2], {"repositoryId": [REPO_ID], "state": ["failed", "queued"],
147
147
  "branch": ["main"], "commit": ["a" * 40], "pullRequest": ["12"],
148
- "limit": ["5"]})
148
+ "event": ["merge_group"], "limit": ["5"]})
149
149
  self.assertEqual(Stub.seen[6][2], {"repositoryId": [REPO_ID], "quarantined": ["true"], "limit": ["10"]})
150
150
 
151
151
  def test_set_undo_turns_a_repositorys_undo_on_and_off(self):
@@ -7,6 +7,7 @@ import json
7
7
  import threading
8
8
  import types
9
9
  import unittest
10
+ from unittest import mock
10
11
  from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
11
12
 
12
13
  import withruntime.e2b as e2b
@@ -20,13 +21,15 @@ METRICS = {
20
21
  "latest": {"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824},
21
22
  "points": [
22
23
  {"at": "2026-09-23T10:58:00.000Z", "cpuPercent": None, "memoryBytes": 900000000},
23
- {"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824},
24
+ {"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824,
25
+ "diskUsedBytes": 2147483648},
24
26
  ],
25
27
  }
26
28
 
27
29
 
28
30
  class Stub(BaseHTTPRequestHandler):
29
31
  seen: list = []
32
+ headers_seen: list = []
30
33
 
31
34
  def log_message(self, *args):
32
35
  pass
@@ -41,6 +44,7 @@ class Stub(BaseHTTPRequestHandler):
41
44
 
42
45
  def do_GET(self):
43
46
  Stub.seen.append(("GET", self.path, None))
47
+ Stub.headers_seen.append({k.lower(): v for k, v in self.headers.items()})
44
48
  if self.path.startswith(f"/v1/sandboxes/{SANDBOX_ID}/metrics"):
45
49
  return self.answer(METRICS)
46
50
  if self.path.startswith(f"/v1/sandboxes/{SANDBOX_ID}"):
@@ -127,7 +131,24 @@ class ObservabilityTest(unittest.TestCase):
127
131
  end=datetime.datetime(2026, 9, 23, 12, 0, tzinfo=datetime.timezone.utc))
128
132
  self.assertEqual(len(points), 1)
129
133
  self.assertEqual((points[0].cpu_used_pct, points[0].cpu_count, points[0].mem_used, points[0].disk_used,
130
- points[0].disk_total), (25, 2, 1073741824, None, 10737418240))
134
+ points[0].disk_total), (25, 2, 1073741824, 2147483648, 10737418240))
135
+
136
+ def test_calls_carry_the_active_opentelemetry_span(self):
137
+ # A stand-in for opentelemetry.propagate, which injects the W3C headers
138
+ # of the active span (and others, which are not sent).
139
+ from withruntime import _trace
140
+ parent = "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"
141
+ fake = types.SimpleNamespace(inject=lambda carrier: carrier.update(
142
+ {"traceparent": parent, "tracestate": "v=1", "baggage": "user=x"}))
143
+ with mock.patch.object(_trace, "_propagate", fake), mock.patch.object(_trace, "_missing", False):
144
+ with Runtime(api_key="rk_x", base_url=self.url) as runtime:
145
+ runtime.sandboxes.get(SANDBOX_ID).metrics()
146
+ headers = Stub.headers_seen[-1]
147
+ self.assertEqual((headers.get("traceparent"), headers.get("tracestate"), headers.get("baggage")),
148
+ (parent, "v=1", None))
149
+ # Without OpenTelemetry, nothing is sent.
150
+ with mock.patch.object(_trace, "_missing", True):
151
+ self.assertEqual(_trace.trace_headers(), {})
131
152
 
132
153
 
133
154
  if __name__ == "__main__":
@@ -13,7 +13,7 @@ import zipfile
13
13
 
14
14
 
15
15
  ROOT = Path(__file__).resolve().parents[1]
16
- VERSION = "0.35.0"
16
+ VERSION = "0.44.0"
17
17
  MAX_ARTIFACT_BYTES = 16 * 1024 * 1024
18
18
  MAX_FILE_BYTES = 4 * 1024 * 1024
19
19
  MAX_METADATA_BYTES = 256 * 1024
@@ -8,7 +8,7 @@ import unittest
8
8
  from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
9
9
  from typing import Optional
10
10
 
11
- from withruntime import AsyncRuntime, NotFoundError, Runtime
11
+ from withruntime import AsyncRuntime, InvalidRequestError, NotFoundError, Runtime
12
12
 
13
13
  SECRET = {
14
14
  "name": "OPENAI_API_KEY",
@@ -18,6 +18,8 @@ SECRET = {
18
18
  "createdAt": "2026-09-23T10:00:00.000Z",
19
19
  "updatedAt": "2026-09-23T10:00:00.000Z",
20
20
  }
21
+ # A real-value secret: the sandboxes get the value itself, so it has no hosts.
22
+ EXPOSED = {**SECRET, "name": "DB_PASSWORD", "hosts": [], "exposed": True, "version": 2}
21
23
 
22
24
 
23
25
  class Stub(BaseHTTPRequestHandler):
@@ -26,9 +28,9 @@ class Stub(BaseHTTPRequestHandler):
26
28
  def log_message(self, *args):
27
29
  pass
28
30
 
29
- def answer(self, value):
31
+ def answer(self, value, status=200):
30
32
  data = json.dumps(value).encode()
31
- self.send_response(200)
33
+ self.send_response(status)
32
34
  self.send_header("content-type", "application/json")
33
35
  self.send_header("content-length", str(len(data)))
34
36
  self.end_headers()
@@ -40,6 +42,10 @@ class Stub(BaseHTTPRequestHandler):
40
42
 
41
43
  def do_GET(self):
42
44
  Stub.seen.append((self.command, self.path, None))
45
+ if self.path == "/v1/egress-secrets/MISSING":
46
+ return self.answer({"error": {"code": "not_found", "message": "No secret named MISSING."}}, 404)
47
+ if self.path.startswith("/v1/egress-secrets/"):
48
+ return self.answer(EXPOSED)
43
49
  # The jobs copies: none here.
44
50
  self.answer([] if self.path.startswith("/v1/secrets") else {"secrets": [SECRET]})
45
51
 
@@ -183,6 +189,51 @@ class SecretsTest(unittest.TestCase):
183
189
  runtime.secrets.set("K", value="v", hosts=["a.example.com"])
184
190
  self.assertEqual(Stub.seen[0][2], {"value": "v", "hosts": ["a.example.com"]})
185
191
 
192
+ def test_exposed_sends_no_hosts_and_expected_version_is_sent_sync_and_async(self):
193
+ pem = "-----BEGIN FAKE KEY-----\nAAAA\n-----END FAKE KEY-----\n"
194
+ # A real value goes only to the sandboxes and Apps named by id.
195
+ worker = "5d2c8a1e-7b3f-4c6d-9e0a-1f2b3c4d5e6f"
196
+ app = "0b6f3c1e-2d4a-4e5f-9a7b-8c9d0e1f2a3b"
197
+ with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
198
+ runtime.secrets.set("DEPLOY_KEY", value=pem, exposed=True, env="SSH_KEY", only={"sandboxes": [worker]})
199
+ runtime.secrets.set("OPENAI_API_KEY", value="fake-api-key", hosts=["api.openai.com"], expected_version=3)
200
+ with self.assertRaises(InvalidRequestError):
201
+ runtime.secrets.set("NOWHERE", value="fake-db-password")
202
+
203
+ async def go():
204
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
205
+ await runtime.secrets.set("DB_PASSWORD", value="fake-db-password", exposed=True,
206
+ only={"apps": [app]}, expected_version=0)
207
+
208
+ asyncio.run(go())
209
+ self.assertEqual(Stub.seen, [
210
+ ("PUT", "/v1/egress-secrets/DEPLOY_KEY",
211
+ {"value": pem, "only": {"sandboxes": [worker]}, "env": "SSH_KEY", "exposed": True}),
212
+ ("PUT", "/v1/egress-secrets/OPENAI_API_KEY",
213
+ {"value": "fake-api-key", "hosts": ["api.openai.com"], "expectedVersion": 3}),
214
+ ("PUT", "/v1/egress-secrets/DB_PASSWORD",
215
+ {"value": "fake-db-password", "only": {"apps": [app]}, "exposed": True, "expectedVersion": 0}),
216
+ ])
217
+
218
+ def test_get_reads_one_secret_by_name_sync_and_async(self):
219
+ with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
220
+ found = runtime.secrets.get("DB_PASSWORD")
221
+ with self.assertRaises(NotFoundError):
222
+ runtime.secrets.get("MISSING")
223
+
224
+ async def go():
225
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
226
+ return await runtime.secrets.get("A B")
227
+
228
+ self.assertEqual(asyncio.run(go())["sandboxes"], EXPOSED)
229
+ self.assertEqual(found, {"name": "DB_PASSWORD", "sandboxes": EXPOSED, "jobs": None})
230
+ self.assertEqual((found["sandboxes"]["version"], found["sandboxes"]["exposed"]), (2, True))
231
+ self.assertEqual([seen[:2] for seen in Stub.seen], [
232
+ ("GET", "/v1/egress-secrets/DB_PASSWORD"), ("GET", "/v1/secrets?limit=100"),
233
+ ("GET", "/v1/egress-secrets/MISSING"), ("GET", "/v1/secrets?limit=100"),
234
+ ("GET", "/v1/egress-secrets/A%20B"), ("GET", "/v1/secrets?limit=100"),
235
+ ])
236
+
186
237
 
187
238
  class UpstreamProxyStub(BaseHTTPRequestHandler):
188
239
  seen: list = []
@@ -1,4 +1,4 @@
1
- """Agents' templates, as data: seven harnesses and the two uses each can serve.
1
+ """Agents' templates, as data: eight harnesses and the two uses each can serve.
2
2
  The same values are in every Runtime SDK and the guide
3
3
  (packages/cloud-guide/agent-templates.json; tests/test_agents.py holds this
4
4
  file to it).
@@ -21,6 +21,7 @@ from typing import Any
21
21
  _START = "\"$(cat ~/.runtime-agent/start.md)\""
22
22
  _REVIEW = "python3 ~/.runtime-agent/runtime-agent review"
23
23
  _JUDGE = "python3 ~/.runtime-agent/runtime-agent judge"
24
+ _BROWSE = "python3 ~/.runtime-agent/runtime-agent browse"
24
25
 
25
26
 
26
27
  def _template(key: str, title: str, command: str, secret: str, host: str, subscription: Any) -> dict[str, Any]:
@@ -60,6 +61,11 @@ TEMPLATES: dict[str, dict[str, Any]] = {t["key"]: t for t in (
60
61
  "a token per account, as for review: `runtime secrets set CLAUDE_1` scoped to api.anthropic.com for each, then name them all in pool; its instructions are the rules that block"),
61
62
  "definition": {"command": _JUDGE, "pool": ["ANTHROPIC_API_KEY"], "vcpu": 2, "memoryMiB": 2048,
62
63
  "maxSessionSeconds": 1800}},
64
+ # A browser run's harness: browser-use on the sandbox's own Chromium
65
+ # (POST /v1/browsers/runs starts its sessions).
66
+ {**_template("browser", "Browser task", _BROWSE, "ANTHROPIC_API_KEY", "api.anthropic.com", None),
67
+ "definition": {"command": _BROWSE, "secrets": ["ANTHROPIC_API_KEY"],
68
+ "vcpu": 2, "memoryMiB": 4096, "maxSessionSeconds": 1800}},
63
69
  )}
64
70
 
65
71
  USES: dict[str, dict[str, Any]] = {
@@ -36,8 +36,10 @@ from ._http import NoAnswerStarted, Origin, default_base_url, reachable
36
36
  from ._proxy import describe as describe_route
37
37
  from ._renamed import renamed
38
38
  from ._unpack import Unpacker
39
+ from ._ws import AsyncResumableWebSocket
39
40
  from ._ws import AsyncWebSocket as WebSocket
40
41
  from ._tunnel import AsyncPortForward
42
+ from ._trace import trace_headers
41
43
  from ._tunnel import async_open_forward as open_forward
42
44
  from ._version import VERSION
43
45
  from ._async_products.watch import AsyncWatches, AsyncWatchHandle
@@ -270,6 +272,7 @@ class _Transport:
270
272
  headers["Idempotency-Key"] = key
271
273
  if wait:
272
274
  headers["Prefer"] = f"wait={min(120, int(wait))}"
275
+ headers.update(trace_headers())
273
276
  return headers
274
277
 
275
278
  async def send(self, method: str, path: str, *, query: Optional[dict[str, Any]] = None, body: Any = None,
@@ -495,10 +498,14 @@ class _Transport:
495
498
  finally:
496
499
  await hold.lend()
497
500
 
498
- async def websocket(self, path: str, query: dict[str, Any]) -> WebSocket:
499
- socket = WebSocket(self.origin, path + _query(query), {
500
- "Authorization": "Bearer " + self._api_key(), "X-Runtime-Client": f"sdk-python/{VERSION}"})
501
- return await open_ws(socket)
501
+ async def websocket(self, path: str, query: dict[str, Any]) -> AsyncResumableWebSocket:
502
+ """A terminal's or tunnel's WebSocket. It resumes across a restart of
503
+ the API with nothing lost or repeated (_ws.py)."""
504
+ async def connect(resume: Optional[str]) -> WebSocket:
505
+ socket = WebSocket(self.origin, path + _query({"resume": resume} if resume else query), {
506
+ "Authorization": "Bearer " + self._api_key(), "X-Runtime-Client": f"sdk-python/{VERSION}"})
507
+ return await open_ws(socket)
508
+ return await AsyncResumableWebSocket(connect).connect()
502
509
 
503
510
  async def close(self) -> None:
504
511
  await self._http.close()
@@ -510,7 +517,7 @@ class _Transport:
510
517
  #: tests/create-types.test.ts holds this list to the API's own schema.
511
518
  _CREATE_FIELDS = (
512
519
  "name", "labels", "funding", "region", "vcpu", "memory_mib", "disk_mib", "cpu", "cpu_floor_millis",
513
- "timeout_seconds", "pausable", "idle_pause_seconds", "auto_wake", "user", "persistent", "max_total_cost_micros",
520
+ "timeout_seconds", "pausable", "idle_pause_seconds", "auto_wake", "user", "lease_seconds", "persistent", "max_total_cost_micros",
514
521
  "get_or_create", "on_lease_end", "max_cost_micros", "network", "image", "snapshot", "spread_from", "volumes",
515
522
  "env", "tailscale", "secrets",
516
523
  )
@@ -962,7 +969,7 @@ class AsyncProcess:
962
969
  class AsyncTerminal:
963
970
  """An interactive terminal over a WebSocket: write() types, recv() reads."""
964
971
 
965
- def __init__(self, socket: WebSocket, process_id: Optional[str]) -> None:
972
+ def __init__(self, socket: AsyncResumableWebSocket, process_id: Optional[str]) -> None:
966
973
  self._socket, self.process_id = socket, process_id
967
974
  self.exit_code: Optional[int] = None
968
975
 
@@ -1467,6 +1474,9 @@ class AsyncMachine:
1467
1474
  started afterwards get the change), ``auto_wake`` (a request wakes it when paused),
1468
1475
  ``user`` (``"root"`` or ``"sandbox"``: who later commands, processes
1469
1476
  and terminals run as when one names no user),
1477
+ ``lease_seconds`` (with no time limit, how far ahead each renewal funds
1478
+ it, 300 to 43200; None the default again: it keeps running for at
1479
+ least half of it through an outage of Runtime's control plane),
1470
1480
  ``idle_pause_seconds`` (pause after this long with no activity, counted
1471
1481
  from now; 0 never, otherwise 60 to 86400, a shorter time raised to 60;
1472
1482
  a new sandbox has 300),
@@ -19,6 +19,7 @@ from .agents import AsyncAgents
19
19
  from .apps import AsyncApps, AsyncFunctions
20
20
  from .audit import AsyncAudit
21
21
  from .browser import AsyncBrowser
22
+ from .browsers import AsyncBrowsers
22
23
  from .builds import AsyncBuilds
23
24
  from .ci import AsyncCi
24
25
  from .containers import AsyncContainers
@@ -54,6 +55,7 @@ CLIENT["builds"] = AsyncBuilds
54
55
  CLIENT["ci"] = AsyncCi
55
56
  CLIENT["containers"] = AsyncContainers
56
57
  CLIENT["agents"] = AsyncAgents
58
+ CLIENT["browsers"] = AsyncBrowsers
57
59
  CLIENT["referrals"] = AsyncReferrals
58
60
  CLIENT["plans"] = AsyncPlans
59
61
  CLIENT["billing"] = AsyncBilling