withruntime 0.31.0__tar.gz → 0.32.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 (434) hide show
  1. {withruntime-0.31.0/withruntime.egg-info → withruntime-0.32.0}/PKG-INFO +6 -1
  2. {withruntime-0.31.0 → withruntime-0.32.0}/README.md +4 -0
  3. {withruntime-0.31.0 → withruntime-0.32.0}/pyproject.toml +3 -2
  4. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_agents.py +73 -4
  5. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_answer_start.py +8 -2
  6. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_apps_builds.py +24 -4
  7. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_async_stream_cleanup.py +1 -1
  8. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_audit.py +1 -1
  9. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_billing.py +1 -1
  10. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_blaxel.py +8 -5
  11. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_ci.py +21 -1
  12. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_e2b_deadline.py +21 -12
  13. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_interpreter_deadline.py +1 -1
  14. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_customer_usage.py +4 -1
  15. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_download_labels.py +4 -1
  16. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_connection_cap.py +26 -12
  17. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_sandbox.py +54 -0
  18. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_exec_stream.py +12 -7
  19. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_files_download.py +13 -1
  20. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_files_write_lost_body.py +4 -1
  21. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_http_tls_close.py +1 -1
  22. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_identity_token.py +1 -1
  23. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_images_v2.py +1 -1
  24. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_images_volumes_interpreter.py +1 -1
  25. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_interface_contract.py +1 -1
  26. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_jobs.py +1 -1
  27. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_lifecycle_settings.py +1 -1
  28. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_limits.py +1 -1
  29. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_modal_dropin.py +0 -9
  30. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_modal_examples.py +16 -3
  31. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_mounts.py +1 -1
  32. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_network_products.py +1 -1
  33. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_observability.py +1 -1
  34. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_package_typing.py +14 -1
  35. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_plans.py +1 -1
  36. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_previews_network_desktop.py +1 -1
  37. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_private_network.py +1 -1
  38. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_process_deadline.py +8 -4
  39. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_product_aliases.py +2 -1
  40. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_proxy.py +1 -1
  41. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_referrals.py +1 -1
  42. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_reservations.py +1 -1
  43. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_sandbox_sessions.py +1 -1
  44. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_secrets.py +51 -3
  45. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_signed_requests.py +1 -1
  46. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_snapshot_after_fork.py +1 -1
  47. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_switch_image.py +1 -1
  48. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_switching.py +1 -1
  49. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_tailscale.py +1 -1
  50. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_transport_body_recovery.py +34 -9
  51. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_transport_never_sent.py +1 -1
  52. withruntime-0.32.0/tests/test_usage_export.py +97 -0
  53. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_volume_backups.py +14 -3
  54. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_wallet.py +1 -1
  55. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_watch.py +1 -1
  56. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_agent_templates.py +16 -1
  57. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_client.py +25 -4
  58. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/agents.py +107 -10
  59. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/apps.py +33 -4
  60. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/ci.py +45 -0
  61. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/network.py +2 -1
  62. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/secrets.py +13 -3
  63. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/volumes.py +19 -5
  64. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_http.py +16 -3
  65. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_client.py +25 -4
  66. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/agents.py +107 -10
  67. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/apps.py +33 -4
  68. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/ci.py +45 -0
  69. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/network.py +2 -1
  70. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/secrets.py +13 -3
  71. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/volumes.py +19 -5
  72. withruntime-0.32.0/withruntime/_version.py +1 -0
  73. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/__init__.py +25 -2
  74. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/_async_sandbox.py +27 -9
  75. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/_sync_sandbox.py +27 -9
  76. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/__init__.py +11 -1
  77. {withruntime-0.31.0 → withruntime-0.32.0/withruntime.egg-info}/PKG-INFO +6 -1
  78. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime.egg-info/SOURCES.txt +1 -0
  79. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime.egg-info/requires.txt +3 -0
  80. withruntime-0.31.0/withruntime/_version.py +0 -1
  81. {withruntime-0.31.0 → withruntime-0.32.0}/LICENSE +0 -0
  82. {withruntime-0.31.0 → withruntime-0.32.0}/setup.cfg +0 -0
  83. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_account_errors.py +0 -0
  84. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_blaxel_0_4_17.py +0 -0
  85. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_blaxel_0_4_18.py +0 -0
  86. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_blaxel_create_timeout.py +0 -0
  87. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_blaxel_wait_deadline.py +0 -0
  88. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_browser.py +0 -0
  89. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_capacity_wait.py +0 -0
  90. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_live.py +0 -0
  91. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_modal_deadline_errors.py +0 -0
  92. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_new_providers.py +0 -0
  93. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_prime_contract.py +0 -0
  94. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
  95. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_prime_validation.py +0 -0
  96. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_disk_snapshots.py +0 -0
  97. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_e2b_pty.py +0 -0
  98. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_e2b_stream.py +0 -0
  99. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_e2b_watch.py +0 -0
  100. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_modal.py +0 -0
  101. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_morph.py +0 -0
  102. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_official.py +0 -0
  103. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_pins.py +0 -0
  104. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_processes.py +0 -0
  105. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_request_scope.py +0 -0
  106. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_runloop.py +0 -0
  107. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_shell.py +0 -0
  108. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_snapshot_capture.py +0 -0
  109. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_python_sprites.py +0 -0
  110. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_compat_router.py +0 -0
  111. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona.py +0 -0
  112. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_0_223_1.py +0 -0
  113. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_0_224_1.py +0 -0
  114. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_0_225_0.py +0 -0
  115. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_create_cleanup.py +0 -0
  116. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_create_options.py +0 -0
  117. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_daytona_refusals_lifted.py +0 -0
  118. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_deepagents.py +0 -0
  119. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_2_55.py +0 -0
  120. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_code_interpreter.py +0 -0
  121. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_exports.py +0 -0
  122. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_fork_validation.py +0 -0
  123. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_upstream.py +0 -0
  124. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_e2b_watch.py +0 -0
  125. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_embed_and_webhook_watch.py +0 -0
  126. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_eval_sandbox.py +0 -0
  127. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_exec_stream_names.py +0 -0
  128. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_exec_user.py +0 -0
  129. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_file_archives.py +0 -0
  130. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_files_mode.py +0 -0
  131. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_files_upload_parallel.py +0 -0
  132. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_harbor.py +0 -0
  133. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_image_delete_by_name.py +0 -0
  134. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_inspect_ai.py +0 -0
  135. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_late_answer.py +0 -0
  136. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_machine_engine.py +0 -0
  137. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_modal_1_6_2.py +0 -0
  138. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_network_funding.py +0 -0
  139. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_openai_agents.py +0 -0
  140. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_out_of_memory.py +0 -0
  141. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_prime_0_4_5.py +0 -0
  142. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_prime_0_4_6.py +0 -0
  143. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_prime_0_4_7.py +0 -0
  144. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_process_input.py +0 -0
  145. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_process_object.py +0 -0
  146. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_process_output.py +0 -0
  147. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_process_write_backpressure.py +0 -0
  148. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_replayed_create_message.py +0 -0
  149. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_runloop_stream_cleanup.py +0 -0
  150. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_runloop_v2.py +0 -0
  151. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_sandbox_origin.py +0 -0
  152. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_sandboxes_delete_all.py +0 -0
  153. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_sandboxes_stop_all.py +0 -0
  154. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_saved_connection.py +0 -0
  155. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_snapshot_recovery.py +0 -0
  156. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_sso.py +0 -0
  157. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_start_report_kept.py +0 -0
  158. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_stream_cut_short.py +0 -0
  159. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_stream_exit_close.py +0 -0
  160. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_tools.py +0 -0
  161. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_trace_files.py +0 -0
  162. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_transport_connection_limits.py +0 -0
  163. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_unpack.py +0 -0
  164. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_upload_deadline.py +0 -0
  165. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_vercel.py +0 -0
  166. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_vercel_create_validation.py +0 -0
  167. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_vercel_disk_snapshot.py +0 -0
  168. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_vercel_refusals_lifted.py +0 -0
  169. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_volume_operations.py +0 -0
  170. {withruntime-0.31.0 → withruntime-0.32.0}/tests/test_wake_awake.py +0 -0
  171. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/__init__.py +0 -0
  172. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_api_defaults.py +0 -0
  173. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/__init__.py +0 -0
  174. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/audit.py +0 -0
  175. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/billing.py +0 -0
  176. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/browser.py +0 -0
  177. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/builds.py +0 -0
  178. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/containers.py +0 -0
  179. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/desktop.py +0 -0
  180. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/images.py +0 -0
  181. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/interpreter.py +0 -0
  182. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/jobs.py +0 -0
  183. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/limits.py +0 -0
  184. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/mcp.py +0 -0
  185. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/mounts.py +0 -0
  186. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/network_products.py +0 -0
  187. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/observability.py +0 -0
  188. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/plans.py +0 -0
  189. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/previews.py +0 -0
  190. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/private_network.py +0 -0
  191. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/referrals.py +0 -0
  192. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/reservations.py +0 -0
  193. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/signed_requests.py +0 -0
  194. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/sso.py +0 -0
  195. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/switching.py +0 -0
  196. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/tailscale.py +0 -0
  197. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_async_products/watch.py +0 -0
  198. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_clock.py +0 -0
  199. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_compat.py +0 -0
  200. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_compat_lease.py +0 -0
  201. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_compat_lifecycle.py +0 -0
  202. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_compat_shell.py +0 -0
  203. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_connection.py +0 -0
  204. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_errors.py +0 -0
  205. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_eval_sandbox.py +0 -0
  206. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_proxy.py +0 -0
  207. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_renamed.py +0 -0
  208. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_request_scope.py +0 -0
  209. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/__init__.py +0 -0
  210. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/audit.py +0 -0
  211. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/billing.py +0 -0
  212. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/browser.py +0 -0
  213. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/builds.py +0 -0
  214. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/containers.py +0 -0
  215. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/desktop.py +0 -0
  216. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/images.py +0 -0
  217. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/interpreter.py +0 -0
  218. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/jobs.py +0 -0
  219. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/limits.py +0 -0
  220. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/mcp.py +0 -0
  221. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/mounts.py +0 -0
  222. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/network_products.py +0 -0
  223. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/observability.py +0 -0
  224. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/plans.py +0 -0
  225. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/previews.py +0 -0
  226. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/private_network.py +0 -0
  227. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/referrals.py +0 -0
  228. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/reservations.py +0 -0
  229. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/signed_requests.py +0 -0
  230. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/sso.py +0 -0
  231. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/switching.py +0 -0
  232. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/tailscale.py +0 -0
  233. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_sync_products/watch.py +0 -0
  234. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_tunnel.py +0 -0
  235. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_unpack.py +0 -0
  236. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/_ws.py +0 -0
  237. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/__init__.py +0 -0
  238. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/_async_io.py +0 -0
  239. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/_async_sandbox.py +0 -0
  240. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/_core.py +0 -0
  241. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/_sync_io.py +0 -0
  242. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
  243. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/__init__.py +0 -0
  244. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/agents.py +0 -0
  245. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/__init__.py +0 -0
  246. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
  247. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
  248. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
  249. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
  250. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
  251. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
  252. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
  253. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
  254. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/images.py +0 -0
  255. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
  256. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/client.py +0 -0
  257. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
  258. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
  259. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
  260. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/env.py +0 -0
  261. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function.py +0 -0
  262. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
  263. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
  264. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
  265. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
  266. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
  267. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/pagination.py +0 -0
  268. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/client/types.py +0 -0
  269. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/common.py +0 -0
  270. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/drive.py +0 -0
  271. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/errors.py +0 -0
  272. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/jobs.py +0 -0
  273. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
  274. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
  275. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/core/secret.py +0 -0
  276. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/crewai.py +0 -0
  277. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/googleadk.py +0 -0
  278. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/langgraph.py +0 -0
  279. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/livekit.py +0 -0
  280. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/llamaindex.py +0 -0
  281. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/openai.py +0 -0
  282. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/pydantic.py +0 -0
  283. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/blaxel/telemetry.py +0 -0
  284. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/__init__.py +0 -0
  285. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/_async_daytona.py +0 -0
  286. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/_async_io.py +0 -0
  287. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/_core.py +0 -0
  288. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/_sync_daytona.py +0 -0
  289. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/daytona/_sync_io.py +0 -0
  290. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/deepagents.py +0 -0
  291. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/_async_io.py +0 -0
  292. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/_core.py +0 -0
  293. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/_sync_io.py +0 -0
  294. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
  295. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
  296. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
  297. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
  298. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
  299. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
  300. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/models.py +0 -0
  301. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/connection_config.py +0 -0
  302. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/exceptions.py +0 -0
  303. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/__init__.py +0 -0
  304. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
  305. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
  306. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
  307. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
  308. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
  309. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
  310. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/network.py +0 -0
  311. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
  312. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox/signature.py +0 -0
  313. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
  314. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
  315. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
  316. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
  317. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
  318. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
  319. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  320. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  321. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/main.py +0 -0
  322. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
  323. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
  324. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
  325. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
  326. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
  327. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
  328. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
  329. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
  330. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  331. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  332. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
  333. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
  334. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
  335. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/secret/__init__.py +0 -0
  336. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/__init__.py +0 -0
  337. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
  338. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/logger.py +0 -0
  339. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/main.py +0 -0
  340. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/readycmd.py +0 -0
  341. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template/types.py +0 -0
  342. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template_async/__init__.py +0 -0
  343. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template_async/main.py +0 -0
  344. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template_sync/__init__.py +0 -0
  345. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/template_sync/main.py +0 -0
  346. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/volume/__init__.py +0 -0
  347. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/volume/connection_config.py +0 -0
  348. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/volume/types.py +0 -0
  349. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/volume/volume_async.py +0 -0
  350. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/e2b/volume/volume_sync.py +0 -0
  351. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/harbor.py +0 -0
  352. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/inspect_ai.py +0 -0
  353. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/__init__.py +0 -0
  354. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_async.py +0 -0
  355. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_dual.py +0 -0
  356. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_fs_async.py +0 -0
  357. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_fs_common.py +0 -0
  358. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_fs_sync.py +0 -0
  359. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_lookup.py +0 -0
  360. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_object.py +0 -0
  361. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_probe.py +0 -0
  362. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_snapshot.py +0 -0
  363. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/_tunnel.py +0 -0
  364. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/app.py +0 -0
  365. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
  366. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/container_process.py +0 -0
  367. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/exception.py +0 -0
  368. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/file_pattern_matcher.py +0 -0
  369. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/image.py +0 -0
  370. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/io_streams.py +0 -0
  371. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/output.py +0 -0
  372. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/proxy.py +0 -0
  373. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/sandbox/__init__.py +0 -0
  374. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/sandbox/sandbox.py +0 -0
  375. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/sandbox_fs.py +0 -0
  376. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/secret.py +0 -0
  377. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/snapshot.py +0 -0
  378. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/stream_type.py +0 -0
  379. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/types.py +0 -0
  380. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/modal/volume.py +0 -0
  381. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/morph/__init__.py +0 -0
  382. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/morph/api.py +0 -0
  383. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/openai_agents.py +0 -0
  384. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/__init__.py +0 -0
  385. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/_async.py +0 -0
  386. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/_sync.py +0 -0
  387. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/core/__init__.py +0 -0
  388. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/core/client.py +0 -0
  389. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/exceptions.py +0 -0
  390. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/models.py +0 -0
  391. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/process.py +0 -0
  392. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/prime/sandbox.py +0 -0
  393. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/py.typed +0 -0
  394. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/__init__.py +0 -0
  395. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/_async.py +0 -0
  396. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/_exceptions.py +0 -0
  397. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/_snapshots.py +0 -0
  398. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/_sync.py +0 -0
  399. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/_v2.py +0 -0
  400. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/lib/__init__.py +0 -0
  401. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/lib/polling.py +0 -0
  402. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/runloop/sdk/__init__.py +0 -0
  403. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/__init__.py +0 -0
  404. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_capture.py +0 -0
  405. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_capture_async.py +0 -0
  406. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_features.py +0 -0
  407. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_metadata.py +0 -0
  408. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_stream.py +0 -0
  409. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_stream_async.py +0 -0
  410. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/_translate.py +0 -0
  411. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/async_client.py +0 -0
  412. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/async_exec.py +0 -0
  413. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/client.py +0 -0
  414. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/control.py +0 -0
  415. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/exceptions.py +0 -0
  416. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/exec.py +0 -0
  417. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/filesystem.py +0 -0
  418. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/sprite.py +0 -0
  419. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/sprites/types.py +0 -0
  420. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/tools.py +0 -0
  421. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/__init__.py +0 -0
  422. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/_async_io.py +0 -0
  423. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/_async_sandbox.py +0 -0
  424. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/_core.py +0 -0
  425. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/_sync_io.py +0 -0
  426. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/_sync_sandbox.py +0 -0
  427. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/api.py +0 -0
  428. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/sandbox/__init__.py +0 -0
  429. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/vercel/sandbox/sync.py +0 -0
  430. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/wallet.py +0 -0
  431. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime/webhooks.py +0 -0
  432. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime.egg-info/dependency_links.txt +0 -0
  433. {withruntime-0.31.0 → withruntime-0.32.0}/withruntime.egg-info/entry_points.txt +0 -0
  434. {withruntime-0.31.0 → withruntime-0.32.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.31.0
3
+ Version: 0.32.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
@@ -11,6 +11,7 @@ Keywords: sandbox,ai-agents,agents,microvm,firecracker,code-execution,code-inter
11
11
  Requires-Python: >=3.9
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Requires-Dist: tomli>=1.1.0; python_version < "3.11"
14
15
  Provides-Extra: e2b
15
16
  Requires-Dist: httpx<1.0.0,>=0.27.0; extra == "e2b"
16
17
  Provides-Extra: openai-agents
@@ -100,6 +101,10 @@ idempotency key, so retries never do anything twice; errors are typed and carry
100
101
  errors; the previous `RuntimeError` and `ConnectionError` exports remain aliases.
101
102
  `runtime.usage_requests("7d")` reads the account's API call counts and error rates;
102
103
  counts are exact decimal strings, and an empty window has `errorPercent: None`.
104
+ `runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
105
+ over a UTC range, with its server CSV; `finalThrough` is the time before which no
106
+ more charges will settle, and each row's `final` is True once its resource is
107
+ deleted and can be charged nothing more.
103
108
 
104
109
  ## Behind a proxy
105
110
 
@@ -75,6 +75,10 @@ idempotency key, so retries never do anything twice; errors are typed and carry
75
75
  errors; the previous `RuntimeError` and `ConnectionError` exports remain aliases.
76
76
  `runtime.usage_requests("7d")` reads the account's API call counts and error rates;
77
77
  counts are exact decimal strings, and an empty window has `errorPercent: None`.
78
+ `runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
79
+ over a UTC range, with its server CSV; `finalThrough` is the time before which no
80
+ more charges will settle, and each row's `final` is True once its resource is
81
+ deleted and can be charged nothing more.
78
82
 
79
83
  ## Behind a proxy
80
84
 
@@ -4,12 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "withruntime"
7
- version = "0.31.0"
7
+ version = "0.32.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" }
11
11
  requires-python = ">=3.9"
12
- dependencies = []
12
+ # withruntime.modal's Image.uv_sync and poetry_install read pyproject.toml; tomllib is 3.11+.
13
+ dependencies = ['tomli>=1.1.0; python_version < "3.11"']
13
14
  keywords = ["sandbox", "ai-agents", "agents", "microvm", "firecracker", "code-execution", "code-interpreter", "mcp", "llm"]
14
15
 
15
16
  [project.urls]
@@ -13,6 +13,7 @@ from urllib.parse import parse_qs, urlsplit
13
13
  from withruntime import (AsyncRuntime, AuthenticationError, ConflictError, InvalidRequestError, NotFoundError,
14
14
  PermissionDeniedError, RateLimitError, Runtime)
15
15
  from withruntime import RuntimeError as RuntimeAPIError
16
+ from tests.instant_sleeps import instant_sleeps
16
17
 
17
18
  AGENT_ID = "11111111-1111-4111-8111-111111111111"
18
19
  SESSION_ID = "22222222-2222-4222-8222-222222222222"
@@ -23,6 +24,9 @@ AGENT = {"id": AGENT_ID, "name": "dev", "version": 1, "definition": {"command":
23
24
  TRIGGER = {"id": TRIGGER_ID, "agentId": AGENT_ID, "kind": "github",
24
25
  "config": {"repository": "acme/web", "installation": 42}, "pausedAt": None, "pausedWhy": None,
25
26
  "createdAt": "2026-10-18T00:00:00Z"}
27
+ HELD = {"id": "c1", "triggerId": TRIGGER_ID, "agentId": AGENT_ID, "key": "disk", "text": "disk full",
28
+ "labels": {}, "why": "ended", "state": "held", "sessionId": None, "notify": "email",
29
+ "createdAt": "2026-10-18T00:00:00Z", "resolvedAt": None}
26
30
  MEMORY = {"scope": "", "path": "notes/tea.md", "bytes": 21, "updatedAt": "2026-10-18T00:00:00Z",
27
31
  "updatedBy": "key_1"}
28
32
  USAGE = {"bytes": 42, "files": 2, "limitBytes": 1073741824, "limitFiles": 100000}
@@ -67,6 +71,8 @@ REFUSALS = {
67
71
 
68
72
  class Stub(BaseHTTPRequestHandler):
69
73
  seen: list = []
74
+ # Each request's Authorization header, in order.
75
+ auth: list = []
70
76
  mode = "ok"
71
77
  # Each read of the log answers the next of these pages; each read of the
72
78
  # session the next of these states. The last of each repeats.
@@ -96,6 +102,7 @@ class Stub(BaseHTTPRequestHandler):
96
102
  url = urlsplit(self.path)
97
103
  path, query = url.path, parse_qs(url.query, keep_blank_values=True)
98
104
  Stub.seen.append((self.command, path, query, body, self.headers.get("idempotency-key")))
105
+ Stub.auth.append(self.headers.get("authorization"))
99
106
  if Stub.mode in REFUSALS:
100
107
  status, code, _ = REFUSALS[Stub.mode]
101
108
  return self.answer({"error": {"code": code, "message": f"refused: {code}", "hint": "h"}}, status)
@@ -113,6 +120,10 @@ class Stub(BaseHTTPRequestHandler):
113
120
  if method == "DELETE":
114
121
  return self.answer({"deleted": True})
115
122
  return self.answer({**MEMORY, "content": "tea, no sugar"})
123
+ if path == "/v1/agents/asks":
124
+ return self.answer({"data": [ASK], "nextCursor": None})
125
+ if path.startswith("/v1/agents/asks/"):
126
+ return self.answer({**ASK, "state": "answered", "answer": body} if method == "POST" else ASK)
116
127
  if path == "/v1/agents" and method == "GET":
117
128
  if "cursor" in query:
118
129
  return self.answer({"data": [{**AGENT, "id": "second", "warnings": ["subscription_for_customers"]}],
@@ -141,6 +152,17 @@ class Stub(BaseHTTPRequestHandler):
141
152
  200 if body.get("key") == "customer:42" else 201)
142
153
  if path.endswith("/triggers"):
143
154
  return self.answer({"data": [TRIGGER]} if method == "GET" else TRIGGER, 200 if method == "GET" else 201)
155
+ if path.endswith("/calls"):
156
+ return self.answer({"outcome": "joined", "sessionId": SESSION_ID, "seq": 2, "callId": None,
157
+ "why": None, "replayed": False})
158
+ if path.endswith("/held"):
159
+ return self.answer({"data": [HELD], "nextCursor": None})
160
+ if path.endswith("/start") and "/held/" in path:
161
+ return self.answer({"session": session("queued"), "joined": False, "calls": 2})
162
+ if path.endswith("/dismiss"):
163
+ return self.answer({**HELD, "state": "dismissed"})
164
+ if path.startswith("/v1/agents/triggers/") and method == "PATCH":
165
+ return self.answer({**TRIGGER, "rules": body["rules"]})
144
166
  if path.startswith("/v1/agents/triggers/"):
145
167
  if method == "DELETE":
146
168
  return self.answer(None, 204)
@@ -156,6 +178,10 @@ class Stub(BaseHTTPRequestHandler):
156
178
  do_GET = do_POST = do_PATCH = do_PUT = do_DELETE = handle_any
157
179
 
158
180
 
181
+ ASK = {"id": "ask-1", "step": "bucket-cap", "question": "Raise the cap?", "options": [{"label": "Raise"}],
182
+ "pick": "Raise", "state": "open", "sessions": [{"sessionId": SESSION_ID, "state": "asking", "seq": 2}]}
183
+
184
+
159
185
  class AgentsTest(unittest.TestCase):
160
186
  # Each test has a stub of its own: a request a test gave up on (a wait past
161
187
  # its deadline) that a busy machine handles late reaches its own test's
@@ -165,6 +191,7 @@ class AgentsTest(unittest.TestCase):
165
191
  threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
166
192
  self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
167
193
  Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
194
+ Stub.auth = []
168
195
  Stub.record = None
169
196
 
170
197
  def tearDown(self):
@@ -316,7 +343,7 @@ class AgentsTest(unittest.TestCase):
316
343
  with self.client() as runtime:
317
344
  handle = runtime.agents.sessions.get(SESSION_ID)
318
345
  with self.assertRaises(RuntimeAPIError) as caught:
319
- handle.wait(timeout=0.3)
346
+ handle.wait(timeout=0.05)
320
347
  self.assertEqual(caught.exception.code, "timeout")
321
348
  with self.assertRaises(InvalidRequestError):
322
349
  handle.wait(timeout=-1)
@@ -336,6 +363,43 @@ class AgentsTest(unittest.TestCase):
336
363
  self.assertEqual(Stub.seen[0][3], {"kind": "github", "config": {"repository": "acme/web", "installation": 42}})
337
364
  self.assertEqual(Stub.seen[2][3], {"why": "release freeze"})
338
365
 
366
+ def test_the_inbox_lists_by_state_and_labels_gets_one_and_answers_it(self):
367
+ with self.client() as runtime:
368
+ asks = list(runtime.agents.asks.list(state=["open", "expired"], labels={"team": "infra"}))
369
+ self.assertEqual([a["step"] for a in asks], ["bucket-cap"])
370
+ self.assertEqual(runtime.agents.asks.get("ask-1")["pick"], "Raise")
371
+ answered = runtime.agents.asks.answer("ask-1", "Raise", text="Done.")
372
+ self.assertEqual(answered["answer"], {"option": "Raise", "text": "Done."})
373
+ with self.assertRaises(InvalidRequestError):
374
+ runtime.agents.asks.answer("ask-1")
375
+ self.assertEqual(self.routes(), [
376
+ ("GET", "/v1/agents/asks"), ("GET", "/v1/agents/asks/ask-1"), ("POST", "/v1/agents/asks/ask-1/answer")])
377
+ query = Stub.seen[0][2]
378
+ self.assertEqual((query["state"], query["label"]), (["open", "expired"], ["team:infra"]))
379
+
380
+ def test_trigger_rules_calls_and_held_calls_call_their_routes_and_a_call_carries_the_secret(self):
381
+ with self.client() as runtime:
382
+ triggers = runtime.agents.triggers
383
+ triggers.create("dev", "webhook", {}, rules={"key": "{cause}", "onEnded": "ask"})
384
+ self.assertEqual(triggers.set_rules(TRIGGER_ID, {"priority": 10})["rules"], {"priority": 10})
385
+ done = triggers.call(TRIGGER_ID, "rtat_secret_1234567890", "disk full", key="disk",
386
+ labels={"host": "vin-5"}, idempotency_key="alert-7")
387
+ self.assertEqual((done["outcome"], done["seq"]), ("joined", 2))
388
+ self.assertEqual([c["id"] for c in triggers.held(TRIGGER_ID, state=["held"])], ["c1"])
389
+ self.assertEqual(triggers.start_held(TRIGGER_ID, "c1")["calls"], 2)
390
+ self.assertEqual(triggers.dismiss_held(TRIGGER_ID, "c1")["state"], "dismissed")
391
+ base = f"/v1/agents/triggers/{TRIGGER_ID}"
392
+ self.assertEqual(self.routes(), [
393
+ ("POST", "/v1/agents/dev/triggers"), ("PATCH", base), ("POST", f"{base}/calls"), ("GET", f"{base}/held"),
394
+ ("POST", f"{base}/held/c1/start"), ("POST", f"{base}/held/c1/dismiss")])
395
+ self.assertEqual(Stub.seen[0][3], {"kind": "webhook", "config": {},
396
+ "rules": {"key": "{cause}", "onEnded": "ask"}})
397
+ self.assertEqual(Stub.seen[2][3], {"text": "disk full", "key": "disk", "labels": {"host": "vin-5"}})
398
+ self.assertEqual(Stub.seen[2][4], "alert-7")
399
+ self.assertEqual(Stub.seen[3][2], {"state": ["held"]})
400
+ self.assertEqual(Stub.auth[2], "Bearer rtat_secret_1234567890")
401
+ self.assertEqual(Stub.auth[1], "Bearer rk_test")
402
+
339
403
  def test_every_memory_verb_calls_its_route_with_the_scope_in_the_query(self):
340
404
  with self.client() as runtime:
341
405
  page = runtime.agents.memory.list("dev", prefix="notes/", limit=1)
@@ -372,18 +436,23 @@ class AgentsTest(unittest.TestCase):
372
436
  def test_refusals_are_the_sdks_own_errors(self):
373
437
  for mode, (status, code, kind) in REFUSALS.items():
374
438
  Stub.seen, Stub.mode = [], mode
375
- with self.client() as runtime:
439
+ with self.client() as runtime, instant_sleeps() as slept:
376
440
  with self.assertRaises(kind) as caught:
377
441
  runtime.agents.start("dev", "hi")
378
442
  self.assertEqual((caught.exception.code, caught.exception.status), (code, status))
379
- # A 429 is retried as every product's is (with the same key); the rest are refused once.
443
+ # A 429 is retried as every product's is (with the same key), after
444
+ # its back-offs; the rest are refused once.
380
445
  self.assertEqual(len(Stub.seen), 3 if status == 429 else 1, mode)
446
+ self.assertEqual(len(slept), 2 if status == 429 else 0, mode)
381
447
 
382
448
  def test_templates_are_the_guides_and_merge_a_use_over_a_harness(self):
383
449
  with self.client() as runtime:
384
450
  templates = runtime.agents.templates
385
451
  self.assertEqual(list(templates), ["claude-code", "codex", "gemini-cli", "claude-agent-sdk",
386
- "openai-agents-sdk"])
452
+ "openai-agents-sdk", "review", "judge"])
453
+ # The reviewer's model keys are its pool of Claude accounts.
454
+ self.assertEqual(templates.definition("review")["pool"], ["ANTHROPIC_API_KEY"])
455
+ self.assertEqual(templates.definition("review", "team")["vcpu"], 4)
387
456
  if GUIDE.exists():
388
457
  guide = json.loads(GUIDE.read_text())
389
458
  self.assertEqual({"templates": dict(templates), "uses": templates.uses}, guide)
@@ -10,6 +10,7 @@ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
10
10
  from unittest import mock
11
11
 
12
12
  from withruntime import AsyncRuntime, Runtime
13
+ from tests.instant_sleeps import instant_sleeps
13
14
 
14
15
 
15
16
  class SilentFirst:
@@ -21,6 +22,9 @@ class SilentFirst:
21
22
 
22
23
  class Handler(BaseHTTPRequestHandler):
23
24
  protocol_version = "HTTP/1.1"
25
+ # A header and its body, written apart, each go at once: with Nagle a
26
+ # kept-alive answer waited 40 ms on the client's delayed ACK.
27
+ disable_nagle_algorithm = True
24
28
 
25
29
  def log_message(self, *_):
26
30
  pass
@@ -39,7 +43,7 @@ class SilentFirst:
39
43
  self.wfile.write(body)
40
44
 
41
45
  self.server = ThreadingHTTPServer(("127.0.0.1", 0), Handler)
42
- self.thread = threading.Thread(target=self.server.serve_forever, daemon=True)
46
+ self.thread = threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True)
43
47
  self.thread.start()
44
48
  self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
45
49
 
@@ -57,7 +61,8 @@ class AnswerStart(unittest.TestCase):
57
61
  world = SilentFirst()
58
62
  try:
59
63
  started = time.monotonic()
60
- with mock.patch("withruntime._http.ANSWER_START_SECONDS", 0.3, create=True):
64
+ with mock.patch("withruntime._http.ANSWER_START_SECONDS", 0.1, create=True), \
65
+ instant_sleeps() as slept:
61
66
  if asynchronous:
62
67
  async def run():
63
68
  async with AsyncRuntime(api_key="rk_test", base_url=world.url) as rt:
@@ -70,6 +75,7 @@ class AnswerStart(unittest.TestCase):
70
75
  self.assertEqual(len(world.keys), 2)
71
76
  self.assertTrue(world.keys[0])
72
77
  self.assertEqual(world.keys[0], world.keys[1])
78
+ self.assertEqual(len(slept), 1)
73
79
  self.assertLess(time.monotonic() - started, 5)
74
80
  finally:
75
81
  world.close()
@@ -11,6 +11,7 @@ from urllib.parse import parse_qs, urlsplit
11
11
 
12
12
  from withruntime import AsyncRuntime, InvalidRequestError, PermissionDeniedError, Runtime
13
13
  from withruntime import RuntimeError as RuntimeAPIError
14
+ from tests.instant_sleeps import instant_sleeps
14
15
 
15
16
  APP_ID = "11111111-1111-4111-8111-111111111111"
16
17
  DEPLOY_ID = "22222222-2222-4222-8222-222222222222"
@@ -115,7 +116,7 @@ class AppsBuildsTest(unittest.TestCase):
115
116
  @classmethod
116
117
  def setUpClass(cls):
117
118
  cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
118
- threading.Thread(target=cls.server.serve_forever, daemon=True).start()
119
+ threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
119
120
  cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
120
121
 
121
122
  @classmethod
@@ -216,11 +217,22 @@ class AppsBuildsTest(unittest.TestCase):
216
217
  self.assertEqual(Stub.seen[2][3], {"stopGraceSeconds": 0, "healthFailSeconds": 30})
217
218
  self.assertEqual(Stub.seen[3][3], {"maxCopies": 2, "vcpu": 1, "memoryMiB": 256, "healthFailSeconds": 20})
218
219
 
220
+ def test_an_app_chooses_staged_releases_and_their_soak_by_the_apis_names(self):
221
+ with self.client() as runtime:
222
+ runtime.apps.create(name="web", max_copies=4, vcpu=1, memory_mib=512,
223
+ release_stages="staged", release_soak_seconds=120)
224
+ runtime.apps.update(APP_ID, release_stages="at_once")
225
+ runtime.apps.update(APP_ID, release_soak_seconds=3600)
226
+ self.assertEqual(Stub.seen[0][3], {"name": "web", "maxCopies": 4, "vcpu": 1, "memoryMiB": 512,
227
+ "releaseStages": "staged", "releaseSoakSeconds": 120})
228
+ self.assertEqual(Stub.seen[1][3], {"releaseStages": "at_once"})
229
+ self.assertEqual(Stub.seen[2][3], {"releaseSoakSeconds": 3600})
230
+
219
231
  def test_a_wait_past_its_deadline_says_timeout_and_keeps_the_writes_key(self):
220
232
  Stub.deploys = ["warming"]
221
233
  with self.client() as runtime:
222
234
  with self.assertRaises(RuntimeAPIError) as caught:
223
- runtime.apps.deploy(APP_ID, image="web", wait=True, timeout=0.3, poll=0.05,
235
+ runtime.apps.deploy(APP_ID, image="web", wait=True, timeout=0.1, poll=0.02,
224
236
  idempotency_key="deploy-2")
225
237
  self.assertEqual(caught.exception.code, "timeout")
226
238
  self.assertEqual(caught.exception.idempotency_key, "deploy-2")
@@ -254,6 +266,10 @@ class AppsBuildsTest(unittest.TestCase):
254
266
  runtime.functions.update(APP_ID, stop_grace_seconds=10)
255
267
  with self.assertRaises(InvalidRequestError):
256
268
  runtime.functions.update(APP_ID, volume=None)
269
+ with self.assertRaises(InvalidRequestError):
270
+ runtime.functions.create(max_copies=1, vcpu=1, memory_mib=256, release_stages="staged")
271
+ with self.assertRaises(InvalidRequestError):
272
+ runtime.functions.update(APP_ID, release_soak_seconds=60)
257
273
  with self.assertRaises(InvalidRequestError):
258
274
  runtime.apps.wait(APP_ID, "live", timeout=-1)
259
275
  with self.assertRaises(RuntimeAPIError) as caught:
@@ -338,9 +354,11 @@ class AppsBuildsTest(unittest.TestCase):
338
354
 
339
355
  def test_a_follow_whose_stream_keeps_ending_says_where_to_resume(self):
340
356
  Stub.follows = [[line("c1", "one")], [], [], []]
341
- with self.client() as runtime:
357
+ with self.client() as runtime, instant_sleeps() as slept:
342
358
  with self.assertRaises(RuntimeAPIError) as caught:
343
359
  list(runtime.builds.logs(BUILD_ID, follow=True))
360
+ # Each try again after its pause, recorded, not slept.
361
+ self.assertEqual(len(slept), 3)
344
362
  self.assertEqual((caught.exception.code, caught.exception.details), ("build_log_interrupted", {"cursor": "c1"}))
345
363
 
346
364
  def test_an_app_log_follow_resumes_on_continue_with_its_filters_and_gives_each_line_once(self):
@@ -366,9 +384,11 @@ class AppsBuildsTest(unittest.TestCase):
366
384
 
367
385
  def test_an_app_log_follow_retries_a_dropped_stream_three_times_then_says_where_to_resume(self):
368
386
  Stub.follows = [[app_line("c1", "one")], [], [], []]
369
- with self.client() as runtime:
387
+ with self.client() as runtime, instant_sleeps() as slept:
370
388
  with self.assertRaises(RuntimeAPIError) as caught:
371
389
  list(runtime.functions.logs(APP_ID, follow=True))
390
+ # Each try again after its pause, recorded, not slept.
391
+ self.assertEqual(len(slept), 3)
372
392
  self.assertEqual((caught.exception.code, caught.exception.details), ("app_log_interrupted", {"cursor": "c1"}))
373
393
  self.assertEqual([s[2] for s in Stub.seen],
374
394
  [{"follow": ["true"]}] + [{"follow": ["true"], "cursor": ["c1"]}] * 3)
@@ -231,7 +231,7 @@ class SyncStreamCleanupTest(unittest.TestCase):
231
231
  eof.set()
232
232
 
233
233
  self.server = ThreadingHTTPServer(('127.0.0.1', 0), Handler)
234
- self.thread = threading.Thread(target=self.server.serve_forever)
234
+ self.thread = threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01})
235
235
  self.thread.start()
236
236
  self.transport = SyncTransport('fixture', f'http://127.0.0.1:{self.server.server_port}', 5, 0)
237
237
 
@@ -41,7 +41,7 @@ class AuditTest(unittest.TestCase):
41
41
  @classmethod
42
42
  def setUpClass(cls):
43
43
  cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
44
- threading.Thread(target=cls.server.serve_forever, daemon=True).start()
44
+ threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
45
45
  cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
46
46
 
47
47
  @classmethod
@@ -46,7 +46,7 @@ class BillingTest(unittest.TestCase):
46
46
  @classmethod
47
47
  def setUpClass(cls):
48
48
  cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
49
- threading.Thread(target=cls.server.serve_forever, daemon=True).start()
49
+ threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
50
50
  cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
51
51
 
52
52
  @classmethod
@@ -8,6 +8,7 @@ import sys
8
8
  import tempfile
9
9
  import time
10
10
  import unittest
11
+ from unittest.mock import patch
11
12
  from datetime import datetime, timedelta, timezone
12
13
  from pathlib import Path
13
14
 
@@ -437,12 +438,12 @@ class ProcessLines(unittest.TestCase):
437
438
  table = Path(directory, "tcp")
438
439
  table.write_text(head + row + "\n")
439
440
  missing = str(Path(directory, "tcp6")) # a guest without IPv6
440
- result = subprocess.run(["bash", "-c", core.port_wait_script([3000], 1, (str(table), missing))[-1]],
441
+ result = subprocess.run(["bash", "-c", core.port_wait_script([3000], 0, (str(table), missing))[-1]],
441
442
  capture_output=True, timeout=10)
442
443
  self.assertEqual(result.returncode == 0, ready, row)
443
444
  with tempfile.TemporaryDirectory() as directory:
444
445
  both = (str(Path(directory, "tcp")), str(Path(directory, "tcp6")))
445
- result = subprocess.run(["bash", "-c", core.port_wait_script([3000], 1, both)[-1]], capture_output=True,
446
+ result = subprocess.run(["bash", "-c", core.port_wait_script([3000], 0, both)[-1]], capture_output=True,
446
447
  timeout=10)
447
448
  self.assertEqual(result.returncode, 1)
448
449
 
@@ -515,10 +516,12 @@ class Processes(Base):
515
516
  def test_a_wait_past_timeout_raises_and_leaves_it_running(self):
516
517
  self.keep_running()
517
518
  box = self.create()
518
- started = time.monotonic()
519
- with self.assertRaises(ResponseError) as caught:
519
+ # The deadline on the world's clock, which an output read moves by the
520
+ # wait it asks the server for: the second passes in one read, unslept.
521
+ with patch("withruntime.blaxel._sync_sandbox.now", lambda: self.world.waited), \
522
+ self.assertRaises(ResponseError) as caught:
520
523
  box.process.exec({"command": "sleep 99", "name": "slow", "wait_for_completion": True, "timeout": 1})
521
- self.assertLess(time.monotonic() - started, 5)
524
+ self.assertEqual(self.world.waited, 1)
522
525
  self.assertEqual(caught.exception.status_code, 422)
523
526
  self.assertEqual(str(caught.exception), "Sandbox request failed with status 422: process timed out after 1 seconds")
524
527
  self.assertEqual(self.world.called("request")[-1][0], "GET")
@@ -54,6 +54,10 @@ class Stub(BaseHTTPRequestHandler):
54
54
  if path == "/v1/ci/flakes" and self.command == "GET":
55
55
  return self.answer({"data": [{"id": "f1", "file": "t/a.test.ts", "state": "quarantined"}],
56
56
  "nextCursor": None})
57
+ if path == "/v1/ci/releases" and self.command == "GET":
58
+ return self.answer({"data": [{"id": 7, "commit": "a6049bf5a", "source": "hostd", "host": "web-4",
59
+ "line": "web-4: 562211980 -> a6049bf5a", "at": 1}],
60
+ "nextCursor": None})
57
61
  if path == "/v1/ci/flakes/f1":
58
62
  return self.answer({"id": "f1", "runs": [], "failures": []})
59
63
  if path == "/v1/ci/flakes/f1:update":
@@ -73,7 +77,7 @@ class CiTest(unittest.TestCase):
73
77
  @classmethod
74
78
  def setUpClass(cls):
75
79
  cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
76
- threading.Thread(target=cls.server.serve_forever, daemon=True).start()
80
+ threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
77
81
  cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
78
82
 
79
83
  @classmethod
@@ -102,6 +106,13 @@ class CiTest(unittest.TestCase):
102
106
  self.assertEqual(Stub.seen[2][3], {"owner": "acme/testers", "prove": True})
103
107
  self.assertEqual(Stub.seen[3][3], {"deleteReason": "it timed a timer"})
104
108
 
109
+ def test_a_releases_steps_are_read_by_its_commit(self):
110
+ with self.client() as runtime:
111
+ steps = runtime.ci.releases.list(repository_id=REPO_ID, commit="a6049bf5a")
112
+ self.assertEqual(steps.data[0]["host"], "web-4")
113
+ self.assertEqual(Stub.seen[0][:3], ("GET", "/v1/ci/releases",
114
+ {"repositoryId": [REPO_ID], "commit": ["a6049bf5a"]}))
115
+
105
116
  def test_every_verb_calls_its_route_with_the_apis_names(self):
106
117
  with self.client() as runtime:
107
118
  connected = runtime.ci.repositories.connect(
@@ -137,6 +148,15 @@ class CiTest(unittest.TestCase):
137
148
  "limit": ["5"]})
138
149
  self.assertEqual(Stub.seen[6][2], {"repositoryId": [REPO_ID], "quarantined": ["true"], "limit": ["10"]})
139
150
 
151
+ def test_set_undo_turns_a_repositorys_undo_on_and_off(self):
152
+ with self.client() as runtime:
153
+ runtime.ci.repositories.set_undo(REPO_ID, True, idempotency_key="undo-1")
154
+ runtime.ci.repositories.set_undo(REPO_ID, False)
155
+ self.assertEqual([(s[0], s[1], s[3]) for s in Stub.seen], [
156
+ ("POST", f"/v1/ci/repositories/{REPO_ID}:update", {"undoCulprits": True}),
157
+ ("POST", f"/v1/ci/repositories/{REPO_ID}:update", {"undoCulprits": False})])
158
+ self.assertEqual(Stub.seen[0][4], "undo-1")
159
+
140
160
  def test_a_connect_with_only_a_repository_sends_only_it(self):
141
161
  with self.client() as runtime:
142
162
  runtime.ci.repositories.connect("acme/web")
@@ -3,12 +3,13 @@
3
3
  The local peer retains process output independently of a subscription. A client
4
4
  timeout may close the socket, but must never send a process signal.
5
5
 
6
- The client's deadline is half a second and the child runs for a second and a
7
- half, so the request reaches the peer and the deadline ends while the child
8
- runs, even on a loaded machine.
9
- With 30 ms against 0.4 s, a full check on 3 October 2026 (load 24) timed out
10
- before the peer's thread had started the child, and the test read a child that
11
- did not exist yet.
6
+ The child runs until the test releases it (closes its stdin), so the deadline
7
+ ends while it runs by construction, not by a race between two sleeps: a child
8
+ of a second and a half cost each test that much (23 October 2026). The
9
+ client's deadline is a quarter second, room for the request to reach the peer
10
+ and the peer to start the child on a loaded machine: with 30 ms, a full check
11
+ on 3 October 2026 (load 24) timed out before the peer's thread had started the
12
+ child, and the test read a child that did not exist yet.
12
13
  """
13
14
  import asyncio
14
15
  import json
@@ -20,9 +21,8 @@ import time
20
21
  from types import SimpleNamespace
21
22
  import unittest
22
23
 
23
- # The client's deadline, and how long the child runs: far apart on purpose.
24
- DEADLINE_S = 0.5
25
- CHILD_S = 1.5
24
+ # The client's deadline; the child outlives it until released.
25
+ DEADLINE_S = 0.25
26
26
 
27
27
  from withruntime._sync_client import _Transport, Process, Sandbox
28
28
  from withruntime._async_client import _Transport as AsyncTransport, AsyncProcess, AsyncSandbox
@@ -95,6 +95,7 @@ class Deadline(unittest.TestCase):
95
95
 
96
96
  def tearDown(self):
97
97
  if self.job is not None:
98
+ self.release_child()
98
99
  if not self.completed.wait(5):
99
100
  self.job.kill()
100
101
  self.collector.join(5)
@@ -103,16 +104,21 @@ class Deadline(unittest.TestCase):
103
104
  self.server_thread.join(3)
104
105
 
105
106
  def start_child(self):
106
- self.job = subprocess.Popen([sys.executable, "-c", f"import time;time.sleep({CHILD_S});print('finished')"],
107
- stdout=subprocess.PIPE, stderr=subprocess.PIPE)
107
+ self.job = subprocess.Popen([sys.executable, "-c", "import sys;sys.stdin.read();print('finished')"],
108
+ stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
108
109
  self.started.set()
109
110
  def collect():
110
- self.payload, _ = self.job.communicate()
111
+ self.payload = self.job.stdout.read()
112
+ self.job.wait()
111
113
  self.completed.set()
112
114
  self.collector = threading.Thread(target=collect)
113
115
  self.collector.start()
114
116
  return {"id": "local-process", "state": "running", "stdinOpen": False, "outputBytes": 0}
115
117
 
118
+ def release_child(self):
119
+ if not self.job.stdin.closed:
120
+ self.job.stdin.close()
121
+
116
122
  def commands(self, asynchronous=False):
117
123
  transport = (AsyncTransport if asynchronous else _Transport)("local-test", self.origin, 2, 0)
118
124
  owner = self
@@ -154,6 +160,7 @@ class Deadline(unittest.TestCase):
154
160
  with self.assertRaises(TimeoutException):
155
161
  commands.run("local child", timeout=DEADLINE_S)
156
162
  self.assert_not_killed()
163
+ self.release_child()
157
164
  result = commands.connect(pid_of("local-process"), timeout=0).wait()
158
165
  self.assertEqual((result.stdout, result.exit_code), ("finished\n", 0))
159
166
  self.assert_not_killed() if self.job.poll() is None else None
@@ -168,6 +175,7 @@ class Deadline(unittest.TestCase):
168
175
  with self.assertRaises(TimeoutException):
169
176
  handle.wait()
170
177
  self.assert_not_killed()
178
+ self.release_child()
171
179
  result = commands.connect(handle.pid, timeout=None).wait()
172
180
  self.assertEqual(result.stdout, "finished\n")
173
181
  finally:
@@ -187,6 +195,7 @@ class Deadline(unittest.TestCase):
187
195
  with self.assertRaises(asyncio.CancelledError):
188
196
  await waiter
189
197
  self.assert_not_killed()
198
+ self.release_child()
190
199
  final = await commands.connect(handle.pid, timeout=0)
191
200
  self.assertEqual((await final.wait()).stdout, "finished\n")
192
201
  finally:
@@ -16,7 +16,7 @@ from withruntime._errors import RuntimeError
16
16
  from withruntime._request_scope import request_scope, current
17
17
 
18
18
 
19
- BODY_DELAY, BUDGET = .3, .1
19
+ BODY_DELAY, BUDGET = .2, .065
20
20
 
21
21
 
22
22
  class InterpreterDeadline(unittest.TestCase):
@@ -12,6 +12,9 @@ from withruntime import AsyncRuntime, InvalidRequestError, PermissionDeniedError
12
12
 
13
13
  class UsageHandler(BaseHTTPRequestHandler):
14
14
  protocol_version = "HTTP/1.1"
15
+ # A header and its body, written apart, each go at once: with Nagle a
16
+ # kept-alive answer waited 40 ms on the client's delayed ACK.
17
+ disable_nagle_algorithm = True
15
18
 
16
19
  def log_message(self, *_):
17
20
  pass
@@ -46,7 +49,7 @@ class CustomerUsage(unittest.TestCase):
46
49
  @classmethod
47
50
  def setUpClass(cls):
48
51
  cls.server = ThreadingHTTPServer(("127.0.0.1", 0), UsageHandler)
49
- cls.thread = threading.Thread(target=cls.server.serve_forever, daemon=True)
52
+ cls.thread = threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True)
50
53
  cls.thread.start()
51
54
  cls.url = f"http://127.0.0.1:{cls.server.server_port}"
52
55
 
@@ -25,6 +25,9 @@ class World:
25
25
 
26
26
  class Handler(BaseHTTPRequestHandler):
27
27
  protocol_version = "HTTP/1.1"
28
+ # A header and its body, written apart, each go at once: with Nagle a
29
+ # kept-alive answer waited 40 ms on the client's delayed ACK.
30
+ disable_nagle_algorithm = True
28
31
 
29
32
  def log_message(self, *_):
30
33
  pass
@@ -58,7 +61,7 @@ class World:
58
61
  self.wfile.write(data)
59
62
 
60
63
  self.server = ThreadingHTTPServer(("127.0.0.1", 0), Handler)
61
- self.thread = threading.Thread(target=self.server.serve_forever, daemon=True)
64
+ self.thread = threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True)
62
65
  self.thread.start()
63
66
  self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
64
67