withruntime 0.18.0__tar.gz → 0.20.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 (417) hide show
  1. {withruntime-0.18.0/withruntime.egg-info → withruntime-0.20.0}/PKG-INFO +1 -1
  2. {withruntime-0.18.0 → withruntime-0.20.0}/pyproject.toml +1 -1
  3. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_agents.py +70 -3
  4. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_lifecycle_settings.py +45 -1
  5. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_package_typing.py +1 -1
  6. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_client.py +15 -5
  7. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/__init__.py +2 -0
  8. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/agents.py +98 -28
  9. withruntime-0.20.0/withruntime/_async_products/containers.py +125 -0
  10. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_eval_sandbox.py +3 -1
  11. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_client.py +15 -5
  12. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/__init__.py +2 -0
  13. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/agents.py +98 -28
  14. withruntime-0.20.0/withruntime/_sync_products/containers.py +126 -0
  15. withruntime-0.20.0/withruntime/_version.py +1 -0
  16. {withruntime-0.18.0 → withruntime-0.20.0/withruntime.egg-info}/PKG-INFO +1 -1
  17. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime.egg-info/SOURCES.txt +2 -0
  18. withruntime-0.18.0/withruntime/_version.py +0 -1
  19. {withruntime-0.18.0 → withruntime-0.20.0}/LICENSE +0 -0
  20. {withruntime-0.18.0 → withruntime-0.20.0}/README.md +0 -0
  21. {withruntime-0.18.0 → withruntime-0.20.0}/setup.cfg +0 -0
  22. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_account_errors.py +0 -0
  23. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_answer_start.py +0 -0
  24. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_apps_builds.py +0 -0
  25. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_async_stream_cleanup.py +0 -0
  26. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_audit.py +0 -0
  27. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_billing.py +0 -0
  28. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_blaxel.py +0 -0
  29. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_blaxel_0_4_17.py +0 -0
  30. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_blaxel_0_4_18.py +0 -0
  31. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_blaxel_create_timeout.py +0 -0
  32. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_blaxel_wait_deadline.py +0 -0
  33. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_browser.py +0 -0
  34. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_capacity_wait.py +0 -0
  35. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_live.py +0 -0
  36. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_modal_deadline_errors.py +0 -0
  37. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_new_providers.py +0 -0
  38. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_prime_contract.py +0 -0
  39. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
  40. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_prime_validation.py +0 -0
  41. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_disk_snapshots.py +0 -0
  42. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_e2b_deadline.py +0 -0
  43. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_e2b_pty.py +0 -0
  44. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_e2b_stream.py +0 -0
  45. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_e2b_watch.py +0 -0
  46. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
  47. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_modal.py +0 -0
  48. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_morph.py +0 -0
  49. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_official.py +0 -0
  50. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_pins.py +0 -0
  51. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_processes.py +0 -0
  52. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_request_scope.py +0 -0
  53. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_runloop.py +0 -0
  54. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_shell.py +0 -0
  55. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_snapshot_capture.py +0 -0
  56. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_python_sprites.py +0 -0
  57. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_compat_router.py +0 -0
  58. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_customer_usage.py +0 -0
  59. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona.py +0 -0
  60. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_0_223_1.py +0 -0
  61. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_0_224_1.py +0 -0
  62. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_0_225_0.py +0 -0
  63. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_create_cleanup.py +0 -0
  64. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_create_options.py +0 -0
  65. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_download_labels.py +0 -0
  66. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_daytona_refusals_lifted.py +0 -0
  67. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_deepagents.py +0 -0
  68. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_2_55.py +0 -0
  69. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_code_interpreter.py +0 -0
  70. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_connection_cap.py +0 -0
  71. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_exports.py +0 -0
  72. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_fork_validation.py +0 -0
  73. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_sandbox.py +0 -0
  74. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_upstream.py +0 -0
  75. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_e2b_watch.py +0 -0
  76. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_embed_and_webhook_watch.py +0 -0
  77. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_eval_sandbox.py +0 -0
  78. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_exec_stream.py +0 -0
  79. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_exec_stream_names.py +0 -0
  80. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_exec_user.py +0 -0
  81. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_file_archives.py +0 -0
  82. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_files_download.py +0 -0
  83. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_files_mode.py +0 -0
  84. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_files_upload_parallel.py +0 -0
  85. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_files_write_lost_body.py +0 -0
  86. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_harbor.py +0 -0
  87. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_http_tls_close.py +0 -0
  88. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_identity_token.py +0 -0
  89. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_image_delete_by_name.py +0 -0
  90. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_images_v2.py +0 -0
  91. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_images_volumes_interpreter.py +0 -0
  92. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_inspect_ai.py +0 -0
  93. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_interface_contract.py +0 -0
  94. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_jobs.py +0 -0
  95. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_late_answer.py +0 -0
  96. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_limits.py +0 -0
  97. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_machine_engine.py +0 -0
  98. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_modal_1_6_2.py +0 -0
  99. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_modal_dropin.py +0 -0
  100. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_mounts.py +0 -0
  101. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_network_funding.py +0 -0
  102. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_network_products.py +0 -0
  103. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_observability.py +0 -0
  104. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_openai_agents.py +0 -0
  105. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_out_of_memory.py +0 -0
  106. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_previews_network_desktop.py +0 -0
  107. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_prime_0_4_5.py +0 -0
  108. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_prime_0_4_6.py +0 -0
  109. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_private_network.py +0 -0
  110. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_process_deadline.py +0 -0
  111. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_process_input.py +0 -0
  112. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_process_object.py +0 -0
  113. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_process_output.py +0 -0
  114. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_process_write_backpressure.py +0 -0
  115. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_product_aliases.py +0 -0
  116. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_proxy.py +0 -0
  117. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_referrals.py +0 -0
  118. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_replayed_create_message.py +0 -0
  119. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_runloop_stream_cleanup.py +0 -0
  120. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_runloop_v2.py +0 -0
  121. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_sandbox_origin.py +0 -0
  122. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_sandbox_sessions.py +0 -0
  123. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_sandboxes_delete_all.py +0 -0
  124. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_sandboxes_stop_all.py +0 -0
  125. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_saved_connection.py +0 -0
  126. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_secrets.py +0 -0
  127. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_signed_requests.py +0 -0
  128. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_snapshot_after_fork.py +0 -0
  129. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_snapshot_recovery.py +0 -0
  130. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_sso.py +0 -0
  131. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_start_report_kept.py +0 -0
  132. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_stream_cut_short.py +0 -0
  133. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_stream_exit_close.py +0 -0
  134. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_switch_image.py +0 -0
  135. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_switching.py +0 -0
  136. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_tailscale.py +0 -0
  137. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_tools.py +0 -0
  138. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_transport_body_recovery.py +0 -0
  139. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_transport_connection_limits.py +0 -0
  140. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_transport_never_sent.py +0 -0
  141. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_unpack.py +0 -0
  142. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_upload_deadline.py +0 -0
  143. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_vercel.py +0 -0
  144. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_vercel_create_validation.py +0 -0
  145. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_vercel_disk_snapshot.py +0 -0
  146. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_vercel_refusals_lifted.py +0 -0
  147. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_volume_backups.py +0 -0
  148. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_volume_operations.py +0 -0
  149. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_wake_awake.py +0 -0
  150. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_wallet.py +0 -0
  151. {withruntime-0.18.0 → withruntime-0.20.0}/tests/test_watch.py +0 -0
  152. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/__init__.py +0 -0
  153. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_agent_templates.py +0 -0
  154. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_api_defaults.py +0 -0
  155. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/apps.py +0 -0
  156. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/audit.py +0 -0
  157. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/billing.py +0 -0
  158. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/browser.py +0 -0
  159. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/builds.py +0 -0
  160. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/desktop.py +0 -0
  161. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/images.py +0 -0
  162. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/interpreter.py +0 -0
  163. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/jobs.py +0 -0
  164. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/limits.py +0 -0
  165. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/mcp.py +0 -0
  166. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/mounts.py +0 -0
  167. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/network.py +0 -0
  168. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/network_products.py +0 -0
  169. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/observability.py +0 -0
  170. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/previews.py +0 -0
  171. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/private_network.py +0 -0
  172. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/referrals.py +0 -0
  173. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/secrets.py +0 -0
  174. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/signed_requests.py +0 -0
  175. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/sso.py +0 -0
  176. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/switching.py +0 -0
  177. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/tailscale.py +0 -0
  178. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/volumes.py +0 -0
  179. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_async_products/watch.py +0 -0
  180. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_clock.py +0 -0
  181. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_compat.py +0 -0
  182. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_compat_lease.py +0 -0
  183. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_compat_lifecycle.py +0 -0
  184. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_compat_shell.py +0 -0
  185. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_connection.py +0 -0
  186. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_errors.py +0 -0
  187. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_http.py +0 -0
  188. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_proxy.py +0 -0
  189. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_renamed.py +0 -0
  190. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_request_scope.py +0 -0
  191. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/apps.py +0 -0
  192. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/audit.py +0 -0
  193. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/billing.py +0 -0
  194. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/browser.py +0 -0
  195. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/builds.py +0 -0
  196. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/desktop.py +0 -0
  197. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/images.py +0 -0
  198. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/interpreter.py +0 -0
  199. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/jobs.py +0 -0
  200. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/limits.py +0 -0
  201. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/mcp.py +0 -0
  202. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/mounts.py +0 -0
  203. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/network.py +0 -0
  204. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/network_products.py +0 -0
  205. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/observability.py +0 -0
  206. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/previews.py +0 -0
  207. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/private_network.py +0 -0
  208. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/referrals.py +0 -0
  209. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/secrets.py +0 -0
  210. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/signed_requests.py +0 -0
  211. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/sso.py +0 -0
  212. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/switching.py +0 -0
  213. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/tailscale.py +0 -0
  214. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/volumes.py +0 -0
  215. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_sync_products/watch.py +0 -0
  216. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_tunnel.py +0 -0
  217. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_unpack.py +0 -0
  218. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/_ws.py +0 -0
  219. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/__init__.py +0 -0
  220. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/_async_io.py +0 -0
  221. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/_async_sandbox.py +0 -0
  222. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/_core.py +0 -0
  223. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/_sync_io.py +0 -0
  224. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
  225. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/__init__.py +0 -0
  226. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/agents.py +0 -0
  227. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/__init__.py +0 -0
  228. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
  229. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
  230. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
  231. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
  232. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
  233. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
  234. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
  235. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
  236. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/images.py +0 -0
  237. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
  238. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/client.py +0 -0
  239. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
  240. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
  241. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
  242. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/env.py +0 -0
  243. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/function.py +0 -0
  244. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
  245. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
  246. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
  247. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
  248. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
  249. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/pagination.py +0 -0
  250. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/client/types.py +0 -0
  251. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/common.py +0 -0
  252. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/drive.py +0 -0
  253. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/errors.py +0 -0
  254. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/jobs.py +0 -0
  255. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
  256. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
  257. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/core/secret.py +0 -0
  258. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/crewai.py +0 -0
  259. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/googleadk.py +0 -0
  260. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/langgraph.py +0 -0
  261. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/livekit.py +0 -0
  262. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/llamaindex.py +0 -0
  263. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/openai.py +0 -0
  264. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/pydantic.py +0 -0
  265. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/blaxel/telemetry.py +0 -0
  266. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/__init__.py +0 -0
  267. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/_async_daytona.py +0 -0
  268. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/_async_io.py +0 -0
  269. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/_core.py +0 -0
  270. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/_sync_daytona.py +0 -0
  271. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/daytona/_sync_io.py +0 -0
  272. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/deepagents.py +0 -0
  273. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/__init__.py +0 -0
  274. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/_async_io.py +0 -0
  275. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/_async_sandbox.py +0 -0
  276. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/_core.py +0 -0
  277. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/_sync_io.py +0 -0
  278. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/_sync_sandbox.py +0 -0
  279. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
  280. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
  281. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
  282. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
  283. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
  284. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
  285. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
  286. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/code_interpreter/models.py +0 -0
  287. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/connection_config.py +0 -0
  288. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/exceptions.py +0 -0
  289. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/__init__.py +0 -0
  290. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
  291. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
  292. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
  293. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
  294. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
  295. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
  296. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/network.py +0 -0
  297. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
  298. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox/signature.py +0 -0
  299. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
  300. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
  301. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
  302. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
  303. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
  304. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
  305. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  306. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  307. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/main.py +0 -0
  308. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
  309. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
  310. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
  311. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
  312. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
  313. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
  314. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
  315. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
  316. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  317. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  318. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
  319. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
  320. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
  321. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/secret/__init__.py +0 -0
  322. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/__init__.py +0 -0
  323. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
  324. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/logger.py +0 -0
  325. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/main.py +0 -0
  326. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/readycmd.py +0 -0
  327. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template/types.py +0 -0
  328. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template_async/__init__.py +0 -0
  329. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template_async/main.py +0 -0
  330. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template_sync/__init__.py +0 -0
  331. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/template_sync/main.py +0 -0
  332. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/volume/__init__.py +0 -0
  333. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/volume/connection_config.py +0 -0
  334. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/volume/types.py +0 -0
  335. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/volume/volume_async.py +0 -0
  336. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/e2b/volume/volume_sync.py +0 -0
  337. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/harbor.py +0 -0
  338. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/inspect_ai.py +0 -0
  339. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/__init__.py +0 -0
  340. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_async.py +0 -0
  341. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_dual.py +0 -0
  342. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_fs_async.py +0 -0
  343. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_fs_common.py +0 -0
  344. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_fs_sync.py +0 -0
  345. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_lookup.py +0 -0
  346. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_object.py +0 -0
  347. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_probe.py +0 -0
  348. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_snapshot.py +0 -0
  349. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/_tunnel.py +0 -0
  350. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/app.py +0 -0
  351. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
  352. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/exception.py +0 -0
  353. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/file_pattern_matcher.py +0 -0
  354. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/image.py +0 -0
  355. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/proxy.py +0 -0
  356. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/sandbox/__init__.py +0 -0
  357. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/sandbox/sandbox.py +0 -0
  358. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/sandbox_fs.py +0 -0
  359. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/secret.py +0 -0
  360. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/snapshot.py +0 -0
  361. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/types.py +0 -0
  362. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/modal/volume.py +0 -0
  363. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/morph/__init__.py +0 -0
  364. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/morph/api.py +0 -0
  365. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/openai_agents.py +0 -0
  366. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/__init__.py +0 -0
  367. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/_async.py +0 -0
  368. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/_sync.py +0 -0
  369. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/core/__init__.py +0 -0
  370. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/core/client.py +0 -0
  371. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/exceptions.py +0 -0
  372. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/models.py +0 -0
  373. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/process.py +0 -0
  374. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/prime/sandbox.py +0 -0
  375. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/py.typed +0 -0
  376. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/__init__.py +0 -0
  377. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/_async.py +0 -0
  378. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/_exceptions.py +0 -0
  379. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/_snapshots.py +0 -0
  380. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/_sync.py +0 -0
  381. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/_v2.py +0 -0
  382. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/lib/__init__.py +0 -0
  383. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/lib/polling.py +0 -0
  384. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/runloop/sdk/__init__.py +0 -0
  385. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/__init__.py +0 -0
  386. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_capture.py +0 -0
  387. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_capture_async.py +0 -0
  388. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_features.py +0 -0
  389. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_metadata.py +0 -0
  390. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_stream.py +0 -0
  391. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_stream_async.py +0 -0
  392. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/_translate.py +0 -0
  393. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/async_client.py +0 -0
  394. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/async_exec.py +0 -0
  395. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/client.py +0 -0
  396. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/control.py +0 -0
  397. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/exceptions.py +0 -0
  398. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/exec.py +0 -0
  399. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/filesystem.py +0 -0
  400. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/sprite.py +0 -0
  401. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/sprites/types.py +0 -0
  402. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/tools.py +0 -0
  403. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/__init__.py +0 -0
  404. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/_async_io.py +0 -0
  405. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/_async_sandbox.py +0 -0
  406. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/_core.py +0 -0
  407. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/_sync_io.py +0 -0
  408. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/_sync_sandbox.py +0 -0
  409. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/api.py +0 -0
  410. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/sandbox/__init__.py +0 -0
  411. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/vercel/sandbox/sync.py +0 -0
  412. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/wallet.py +0 -0
  413. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime/webhooks.py +0 -0
  414. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime.egg-info/dependency_links.txt +0 -0
  415. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime.egg-info/entry_points.txt +0 -0
  416. {withruntime-0.18.0 → withruntime-0.20.0}/withruntime.egg-info/requires.txt +0 -0
  417. {withruntime-0.18.0 → withruntime-0.20.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.18.0
3
+ Version: 0.20.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.18.0"
7
+ version = "0.20.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" }
@@ -16,6 +16,7 @@ from withruntime import RuntimeError as RuntimeAPIError
16
16
 
17
17
  AGENT_ID = "11111111-1111-4111-8111-111111111111"
18
18
  SESSION_ID = "22222222-2222-4222-8222-222222222222"
19
+ CHILD_ID = "44444444-4444-4444-8444-444444444444"
19
20
  TRIGGER_ID = "33333333-3333-4333-8333-333333333333"
20
21
  AGENT = {"id": AGENT_ID, "name": "dev", "version": 1, "definition": {"command": "run"}, "labels": {},
21
22
  "createdAt": "2026-10-18T00:00:00Z", "updatedAt": "2026-10-18T00:00:00Z"}
@@ -28,7 +29,17 @@ GUIDE = Path(__file__).resolve().parents[3] / "packages" / "cloud-guide" / "agen
28
29
  def session(state="running", last_seq=1):
29
30
  return {"id": SESSION_ID, "agentId": AGENT_ID, "agentVersion": 1, "key": None, "trigger": "api",
30
31
  "state": state, "reason": None, "result": None, "sandboxId": None, "lastSeq": last_seq,
31
- "labels": {}, "createdAt": "2026-10-18T00:00:00Z", "startedAt": None, "endedAt": None}
32
+ "labels": {}, "createdAt": "2026-10-18T00:00:00Z", "startedAt": None, "endedAt": None,
33
+ "parentSessionId": None, "rootSessionId": SESSION_ID, "depth": 0,
34
+ "cost": {"dollars": 0.25, "vcpuSeconds": 120, "gibSeconds": 240},
35
+ "treeCost": {"dollars": 0.75, "vcpuSeconds": 360, "gibSeconds": 720},
36
+ "historyBytes": 2048, "attachmentBytes": 4096, "stopWhy": None, "deletedAt": None}
37
+
38
+
39
+ def child(**fields):
40
+ """A session its parent's harness started, as the API answers it."""
41
+ return {**session("done", 4), "id": CHILD_ID, "trigger": "spawn", "parentSessionId": SESSION_ID, "depth": 1,
42
+ **fields}
32
43
 
33
44
 
34
45
  def event(seq, kind="reply", text="hi"):
@@ -58,6 +69,8 @@ class Stub(BaseHTTPRequestHandler):
58
69
  # session the next of these states. The last of each repeats.
59
70
  pages: list = []
60
71
  states: list = []
72
+ # When set, what a read of one session answers.
73
+ record = None
61
74
 
62
75
  def log_message(self, *args):
63
76
  pass
@@ -98,6 +111,8 @@ class Stub(BaseHTTPRequestHandler):
98
111
  return self.answer(session("stopped"))
99
112
  if path == f"/v1/agents/sessions/{SESSION_ID}" and method == "DELETE":
100
113
  return self.answer(None, 204)
114
+ if path == f"/v1/agents/sessions/{SESSION_ID}" and Stub.record is not None:
115
+ return self.answer(Stub.record)
101
116
  if path == f"/v1/agents/sessions/{SESSION_ID}":
102
117
  state = Stub.states.pop(0) if len(Stub.states) > 1 else (Stub.states or ["running"])[0]
103
118
  return self.answer(session(state, 3))
@@ -134,6 +149,7 @@ class AgentsTest(unittest.TestCase):
134
149
 
135
150
  def setUp(self):
136
151
  Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
152
+ Stub.record = None
137
153
 
138
154
  def client(self):
139
155
  return Runtime(api_key="rk_test", base_url=self.url, max_retries=2)
@@ -189,6 +205,54 @@ class AgentsTest(unittest.TestCase):
189
205
  self.assertEqual(Stub.seen[6][2], {"agent": ["dev"], "state": ["running"], "cursor": ["page-2"]})
190
206
  self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
191
207
 
208
+ def test_children_and_tree_lists_read_by_parent_root_and_deleted(self):
209
+ with self.client() as runtime:
210
+ handle = runtime.agents.sessions.get(SESSION_ID)
211
+ children = handle.children(limit=5)
212
+ self.assertTrue(children.has_more)
213
+ self.assertEqual([s["id"] for s in children], [SESSION_ID, "second"])
214
+ self.assertEqual(len(list(runtime.agents.sessions.list(root=SESSION_ID, deleted=True))), 2)
215
+ runtime.agents.sessions.list(parent=SESSION_ID, state="done", deleted=False)
216
+ reads = [s[2] for s in Stub.seen if s[1] == "/v1/agents/sessions"]
217
+ self.assertEqual(reads, [
218
+ {"parent": [SESSION_ID], "limit": ["5"]}, {"parent": [SESSION_ID], "limit": ["5"], "cursor": ["page-2"]},
219
+ {"root": [SESSION_ID], "deleted": ["true"]}, {"root": [SESSION_ID], "deleted": ["true"], "cursor": ["page-2"]},
220
+ {"parent": [SESSION_ID], "state": ["done"], "deleted": ["false"]}])
221
+ # A spawn is the harness's own call: no SDK method sends one.
222
+ self.assertFalse(any(s[1].endswith("/spawn") for s in Stub.seen))
223
+ self.assertFalse(hasattr(handle, "spawn"))
224
+
225
+ def test_a_sessions_tree_cost_and_storage_read_as_the_api_sends_them(self):
226
+ Stub.record = child(reason="budget", stopWhy="budget")
227
+ with self.client() as runtime:
228
+ found = runtime.agents.sessions.get(SESSION_ID).session
229
+ self.assertEqual((found["trigger"], found["parentSessionId"], found["rootSessionId"], found["depth"]),
230
+ ("spawn", SESSION_ID, SESSION_ID, 1))
231
+ self.assertEqual((found["reason"], found["stopWhy"]), ("budget", "budget"))
232
+ self.assertEqual(found["cost"], {"dollars": 0.25, "vcpuSeconds": 120, "gibSeconds": 240})
233
+ self.assertEqual(found["treeCost"]["dollars"], 0.75)
234
+ self.assertEqual((found["historyBytes"], found["attachmentBytes"]), (2048, 4096))
235
+ self.assertIsNone(found["deletedAt"])
236
+
237
+ def test_a_deleted_session_is_kept_as_a_record_with_an_empty_log(self):
238
+ Stub.record = {**session("done", 4), "reason": "deleted", "key": None, "result": None,
239
+ "deletedAt": "2026-10-19T00:00:00Z"}
240
+ with self.client() as runtime:
241
+ self.assertIsNone(runtime.agents.sessions.delete(SESSION_ID))
242
+ kept = runtime.agents.sessions.get(SESSION_ID)
243
+ self.assertEqual(list(kept.events()), [])
244
+ self.assertEqual((kept.session["reason"], kept.session["deletedAt"]), ("deleted", "2026-10-19T00:00:00Z"))
245
+ self.assertEqual(kept.session["cost"]["dollars"], 0.25)
246
+ base = f"/v1/agents/sessions/{SESSION_ID}"
247
+ self.assertEqual(self.routes(), [("DELETE", base), ("GET", base), ("GET", f"{base}/events")])
248
+
249
+ def test_a_childs_end_reads_in_its_parents_log(self):
250
+ Stub.pages = [{"data": [event(5, "child", "done: https://github.com/acme/web/pull/8")], "ended": True},
251
+ {"data": [], "ended": True}]
252
+ with self.client() as runtime:
253
+ events = list(runtime.agents.sessions.get(SESSION_ID).events(after=4))
254
+ self.assertEqual([(e["seq"], e["kind"]) for e in events], [(5, "child")])
255
+
192
256
  def test_events_long_poll_from_after_and_drain_the_log_once_it_ended(self):
193
257
  Stub.pages = [
194
258
  {"data": [event(1, "input", "Fix it"), event(2, "status", "on it")], "ended": False},
@@ -297,11 +361,14 @@ class AgentsTest(unittest.TestCase):
297
361
  ended = await handle.wait()
298
362
  triggers = await runtime.agents.triggers.list("dev")
299
363
  sessions = await (await runtime.agents.sessions.list()).to_list()
300
- return ids, seq, events, ended, triggers, sessions
364
+ children = await (await handle.children()).to_list()
365
+ return ids, seq, events, ended, triggers, sessions + children
301
366
  ids, seq, events, ended, triggers, sessions = asyncio.run(go())
302
367
  self.assertEqual(ids, [AGENT_ID, "second"])
303
368
  self.assertEqual((seq, events, ended["state"]), (7, [1, 2], "done"))
304
- self.assertEqual((len(triggers), len(sessions)), (1, 2))
369
+ self.assertEqual((len(triggers), len(sessions)), (1, 4))
370
+ self.assertEqual([s[2] for s in Stub.seen if s[1] == "/v1/agents/sessions"][2:],
371
+ [{"parent": [SESSION_ID]}, {"parent": [SESSION_ID], "cursor": ["page-2"]}])
305
372
  self.assertEqual(Stub.seen[0][3]["definition"]["template"], "team")
306
373
 
307
374
 
@@ -23,6 +23,7 @@ def info(**extra):
23
23
 
24
24
  class Stub(BaseHTTPRequestHandler):
25
25
  seen: list = []
26
+ extra: dict = {}
26
27
  state = "running"
27
28
  expires_in = 60
28
29
 
@@ -39,7 +40,7 @@ class Stub(BaseHTTPRequestHandler):
39
40
 
40
41
  def do_GET(self):
41
42
  Stub.seen.append(("GET", self.path, None))
42
- self._answer(info())
43
+ self._answer(info(**Stub.extra))
43
44
 
44
45
  def do_POST(self):
45
46
  length = int(self.headers.get("content-length") or 0)
@@ -49,6 +50,9 @@ class Stub(BaseHTTPRequestHandler):
49
50
  self._answer(info(**body))
50
51
  elif self.path == "/v1/sandboxes":
51
52
  self._answer(info(**({"reused": True} if body.get("getOrCreate") else {})))
53
+ elif self.path.endswith(":fork"):
54
+ self._answer({"sandboxes": [info(id=f"{ID[:-1]}{n}", secrets=body.get("secrets"))
55
+ for n in range(body.get("count") or 1)]})
52
56
  else:
53
57
  self._answer(info())
54
58
 
@@ -66,6 +70,7 @@ class LifecycleSettingsTest(unittest.TestCase):
66
70
 
67
71
  def setUp(self):
68
72
  Stub.seen = []
73
+ Stub.extra = {}
69
74
  Stub.state = "running"
70
75
  Stub.expires_in = 60
71
76
 
@@ -89,6 +94,45 @@ class LifecycleSettingsTest(unittest.TestCase):
89
94
  runtime.sandboxes.create(spread_from=["a", "b"], wait=False)
90
95
  self.assertEqual(self.posts("/v1/sandboxes")[0], {"spreadFrom": ["a", "b"]})
91
96
 
97
+ def test_create_sends_secrets_only_when_given(self):
98
+ with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
99
+ runtime.sandboxes.create(secrets=["ANTHROPIC_API_KEY"], wait=False)
100
+ runtime.sandboxes.create(secrets=[], wait=False)
101
+ runtime.sandboxes.create(wait=False)
102
+ runtime.sandboxes.get_or_create("dev", secrets=["ANTHROPIC_API_KEY"], wait=False)
103
+ runtime.sandboxes.create(snapshot="snap-1", secrets=[], wait=False)
104
+ self.assertEqual(self.posts("/v1/sandboxes"), [
105
+ {"secrets": ["ANTHROPIC_API_KEY"]}, {"secrets": []}, {},
106
+ {"name": "dev", "getOrCreate": True, "secrets": ["ANTHROPIC_API_KEY"]},
107
+ {"snapshot": "snap-1", "secrets": []}])
108
+
109
+ def test_fork_sends_secrets_only_when_given(self):
110
+ with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
111
+ sbx = runtime.sandboxes.get(ID)
112
+ copy = sbx.fork(secrets=["ANTHROPIC_API_KEY"])
113
+ none = sbx.fork(2, secrets=[])
114
+ sbx.fork()
115
+ self.assertEqual(self.posts(":fork"), [{"secrets": ["ANTHROPIC_API_KEY"]}, {"count": 2, "secrets": []}, {}])
116
+ self.assertEqual(copy.info["secrets"], ["ANTHROPIC_API_KEY"])
117
+ self.assertEqual([c.info["secrets"] for c in none], [[], []])
118
+
119
+ def test_async_create_and_fork_send_secrets(self):
120
+ async def go():
121
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
122
+ sbx = await runtime.sandboxes.create(secrets=[], wait=False)
123
+ await sbx.fork(secrets=["ANTHROPIC_API_KEY"])
124
+
125
+ asyncio.run(go())
126
+ self.assertEqual(self.posts("/v1/sandboxes"), [{"secrets": []}])
127
+ self.assertEqual(self.posts(":fork"), [{"secrets": ["ANTHROPIC_API_KEY"]}])
128
+
129
+ def test_a_read_sandbox_carries_its_secrets(self):
130
+ with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
131
+ Stub.extra = {"secrets": ["ANTHROPIC_API_KEY"]}
132
+ self.assertEqual(runtime.sandboxes.get(ID).info["secrets"], ["ANTHROPIC_API_KEY"])
133
+ Stub.extra = {"secrets": None}
134
+ self.assertIsNone(runtime.sandboxes.get(ID).info["secrets"])
135
+
92
136
  def test_update_sends_only_what_changes(self):
93
137
  with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
94
138
  sbx = runtime.sandboxes.get(ID)
@@ -13,7 +13,7 @@ import zipfile
13
13
 
14
14
 
15
15
  ROOT = Path(__file__).resolve().parents[1]
16
- VERSION = "0.18.0"
16
+ VERSION = "0.20.0"
17
17
  MAX_ARTIFACT_BYTES = 16 * 1024 * 1024
18
18
  MAX_FILE_BYTES = 4 * 1024 * 1024
19
19
  MAX_METADATA_BYTES = 256 * 1024
@@ -463,7 +463,7 @@ _CREATE_FIELDS = (
463
463
  "name", "labels", "funding", "region", "vcpu", "memory_mib", "disk_mib", "cpu", "cpu_floor_millis",
464
464
  "timeout_seconds", "pausable", "idle_pause_seconds", "auto_wake", "persistent", "max_total_cost_micros",
465
465
  "get_or_create", "on_lease_end", "max_cost_micros", "network", "image", "snapshot", "spread_from", "volumes",
466
- "env", "tailscale",
466
+ "env", "tailscale", "secrets",
467
467
  )
468
468
 
469
469
 
@@ -1744,13 +1744,18 @@ class AsyncSandbox(AsyncMachine):
1744
1744
 
1745
1745
  async def fork(self, count: Optional[int] = None, *, name: Optional[str] = None,
1746
1746
  labels: Optional[dict[str, str]] = None, keep_snapshot: Optional[bool] = None,
1747
- funding: Optional[str] = None, idempotency_key: Optional[str] = None) -> Any:
1747
+ funding: Optional[str] = None, secrets: Optional[list[str]] = None,
1748
+ idempotency_key: Optional[str] = None) -> Any:
1748
1749
  """Copies of this sandbox as it is now (files, memory, running processes),
1749
1750
  answered once they run. A running sandbox is paused for the moment its
1750
1751
  snapshot takes, then woken. One Sandbox without ``count``; a list with it.
1751
1752
  ``funding`` is accepted and ignored: copies run on free usage first,
1752
- then credit."""
1753
- body = {"count": count, "name": name, "labels": labels, "keepSnapshot": keep_snapshot}
1753
+ then credit. ``secrets`` is the egress secrets the copies may use, by
1754
+ name: only those of your egress secrets that would otherwise reach them.
1755
+ [] is none; leave it out to keep this sandbox's list. Fixed for the
1756
+ copies' life; it may only narrow this sandbox's list."""
1757
+ body = {"count": count, "name": name, "labels": labels, "keepSnapshot": keep_snapshot,
1758
+ "secrets": None if secrets is None else list(secrets)}
1754
1759
  reply = await self._t.json("POST", self._path(":fork"), body={k: v for k, v in body.items() if v is not None},
1755
1760
  wait=60, idempotency_key=idempotency_key)
1756
1761
  sandboxes = [AsyncSandbox(self._t, info) for info in reply["sandboxes"]]
@@ -1781,7 +1786,12 @@ class AsyncMachines(Generic[_M]):
1781
1786
  out for none: it runs while it works and pauses when idle), on_lease_end ("pause", "stop" or "delete"),
1782
1787
  max_cost_micros, network={"internet": True, "deny": [...]}, and
1783
1788
  image, snapshot, spread_from (one to 16 ids of your own sandboxes or snapshots: it
1784
- starts on a server none of them is on, or the create raises ``no_capacity``), volumes and the rest of _CREATE_FIELDS; a misspelled one
1789
+ starts on a server none of them is on, or the create raises ``no_capacity``), volumes,
1790
+ secrets (the egress secrets this sandbox may use, by name: only those of your egress
1791
+ secrets that would otherwise reach it. [] is none; leave it out for every secret that
1792
+ reaches it. Fixed for the sandbox's life; a copy of a snapshot may only narrow its
1793
+ source's list. ``sbx.info.get("secrets")`` reads it back, None for every secret)
1794
+ and the rest of _CREATE_FIELDS; a misspelled one
1785
1795
  raises TypeError, naming the one meant).
1786
1796
  When every slot without credit or the account's quota is taken, it waits for one
1787
1797
  to free, up to ``wait_for_capacity`` seconds (the client's, 120 by
@@ -20,6 +20,7 @@ from .apps import AsyncApps, AsyncFunctions
20
20
  from .audit import AsyncAudit
21
21
  from .browser import AsyncBrowser
22
22
  from .builds import AsyncBuilds
23
+ from .containers import AsyncContainers
23
24
  from .desktop import AsyncDesktop
24
25
  from .images import AsyncImages
25
26
  from .jobs import AsyncJobs
@@ -47,6 +48,7 @@ CLIENT["jobs"] = AsyncJobs
47
48
  CLIENT["apps"] = AsyncApps
48
49
  CLIENT["functions"] = AsyncFunctions
49
50
  CLIENT["builds"] = AsyncBuilds
51
+ CLIENT["containers"] = AsyncContainers
50
52
  CLIENT["agents"] = AsyncAgents
51
53
  CLIENT["referrals"] = AsyncReferrals
52
54
  CLIENT["billing"] = AsyncBilling
@@ -19,7 +19,7 @@ import copy
19
19
  import time
20
20
  from collections.abc import Mapping
21
21
  from collections.abc import Iterator as KeyIterator
22
- from typing import Any, AsyncIterator, Optional, Union
22
+ from typing import Any, AsyncIterator, Optional, TypedDict, Union
23
23
  from urllib.parse import quote
24
24
 
25
25
  from .._agent_templates import TEMPLATES, USES
@@ -40,6 +40,55 @@ def _fields(**values: Any) -> dict[str, Any]:
40
40
  return {name: value for name, value in values.items() if value is not None}
41
41
 
42
42
 
43
+ class AgentCost(TypedDict):
44
+ """What a session, or its tree, has used: ``dollars``, ``vcpuSeconds``
45
+ and ``gibSeconds``."""
46
+ dollars: float
47
+ vcpuSeconds: float
48
+ gibSeconds: float
49
+
50
+
51
+ class AgentSessionRecord(TypedDict):
52
+ """A session as the API answers it. Times are ISO 8601 strings.
53
+
54
+ ``trigger``: api, slack, github, schedule, webhook, or spawn (a child a
55
+ harness started). ``state``: queued, running, waiting, done, failed or
56
+ stopped. ``reason`` (why it ended): among others ``budget`` (its tree
57
+ reached ``maxSessionDollars``), ``parent_ended`` and ``deleted`` (a
58
+ deleted record). ``stopWhy``: why a stop was asked, ``stopped``,
59
+ ``budget`` or ``parent_ended``, or None.
60
+
61
+ Its tree: ``parentSessionId`` (None for a top session), ``rootSessionId``
62
+ (itself for a top session) and ``depth`` (0 to 3, 0 at the top). Its use:
63
+ ``cost`` (this session's so far) and ``treeCost`` (it and every session
64
+ under it). Its storage: ``historyBytes`` (its log) and
65
+ ``attachmentBytes`` (its files and screenshots). ``deletedAt`` is set
66
+ once its history was deleted (``sessions.delete``)."""
67
+ id: str
68
+ agentId: str
69
+ agentVersion: int
70
+ key: Optional[str]
71
+ trigger: str
72
+ state: str
73
+ reason: Optional[str]
74
+ result: Optional[str]
75
+ sandboxId: Optional[str]
76
+ lastSeq: int
77
+ labels: dict[str, str]
78
+ createdAt: str
79
+ startedAt: Optional[str]
80
+ endedAt: Optional[str]
81
+ parentSessionId: Optional[str]
82
+ rootSessionId: str
83
+ depth: int
84
+ cost: AgentCost
85
+ treeCost: AgentCost
86
+ historyBytes: int
87
+ attachmentBytes: int
88
+ stopWhy: Optional[str]
89
+ deletedAt: Optional[str]
90
+
91
+
43
92
  def _agent(record: dict[str, Any]) -> dict[str, Any]:
44
93
  """An agent as the API answers it; ``warnings`` is always a list."""
45
94
  if isinstance(record, dict) and record.get("warnings") is None:
@@ -96,22 +145,20 @@ class AgentTemplates(Mapping):
96
145
 
97
146
 
98
147
  class AsyncAgentSession:
99
- """One session of an agent: its record in ``session``, and whether
148
+ """One session of an agent: its record in ``session`` (an
149
+ AgentSessionRecord: {id, agentId, agentVersion, key, trigger, state,
150
+ reason, result, sandboxId, lastSeq, labels, createdAt, startedAt,
151
+ endedAt}, its tree {parentSessionId, rootSessionId, depth}, its use
152
+ {cost, treeCost}, each {dollars, vcpuSeconds, gibSeconds}, its storage
153
+ {historyBytes, attachmentBytes}, stopWhy and deletedAt), and whether
100
154
  ``start`` ``joined`` the open session with the same key, with the ``seq``
101
- of the words it sent. The record: {id, agentId, agentVersion, key,
102
- trigger, state, reason, result, sandboxId, lastSeq, labels, createdAt,
103
- startedAt, endedAt}, and, once the API sends them, ``parentSessionId`` and
104
- ``rootSessionId`` (a child session's parent and its tree's root),
105
- ``cost`` {dollars, vcpuSeconds, gibSeconds} so far, ``treeCost`` (its
106
- children's summed in), ``historyBytes`` (text history, counted as
107
- storage) and ``attachmentBytes`` (files and screenshots, counted as
108
- storage), each None until then. A session's history is kept until it is
109
- deleted (``sessions.delete``)."""
110
-
111
- def __init__(self, t: Any, session: dict[str, Any], joined: bool = False,
155
+ of the words it sent. A session's history is kept, counted as storage,
156
+ until it is deleted (``sessions.delete``)."""
157
+
158
+ def __init__(self, t: Any, session: AgentSessionRecord, joined: bool = False,
112
159
  seq: Optional[int] = None) -> None:
113
160
  self._t = t
114
- self.session = session
161
+ self.session: AgentSessionRecord = session
115
162
  self.id: str = session["id"]
116
163
  self.joined = joined
117
164
  self.seq: int = seq if seq is not None else int(session.get("lastSeq") or 0)
@@ -131,11 +178,18 @@ class AsyncAgentSession:
131
178
  def _path(self, tail: str = "") -> str:
132
179
  return f"/v1/agents/sessions/{_enc(self.id)}{tail}"
133
180
 
134
- async def refresh(self) -> dict[str, Any]:
181
+ async def refresh(self) -> AgentSessionRecord:
135
182
  """Read the session again."""
136
183
  self.session = await self._t.json("GET", self._path())
137
184
  return self.session
138
185
 
186
+ async def children(self, *, cursor: Optional[str] = None, limit: Optional[int] = None) -> AsyncPage:
187
+ """A page of its direct children, the sessions its harness started
188
+ (``trigger`` spawn), newest first, ``limit`` a page;
189
+ ``async for`` walks every page. ``sessions.list(root=...)`` reads a
190
+ whole tree."""
191
+ return await AsyncAgentSessions(self._t).list(parent=self.id, cursor=cursor, limit=limit)
192
+
139
193
  async def send(self, text: str, *, idempotency_key: Optional[str] = None) -> int:
140
194
  """Words into the session while it runs or waits; returns their seq.
141
195
  A retry with the same ``idempotency_key`` is the same words, never
@@ -147,7 +201,9 @@ class AsyncAgentSession:
147
201
  async def events(self, *, after: int = 0) -> AsyncIterator[dict[str, Any]]:
148
202
  """``async for`` each event of the log after seq ``after`` (0: from the
149
203
  start), in order, as it comes: {seq, kind, actor, body, createdAt},
150
- the words in ``body["text"]``. Each read waits up to 30 seconds on the
204
+ the words in ``body["text"]``. ``kind`` is input, answer, reply, ask,
205
+ status, result, error, note, or child (a child session's end, posted
206
+ into its parent's log). Each read waits up to 30 seconds on the
151
207
  server for a new one; the loop ends once the session has ended and
152
208
  its whole log has been given."""
153
209
  ended = False
@@ -163,13 +219,13 @@ class AsyncAgentSession:
163
219
  return
164
220
  ended = True
165
221
 
166
- async def stop(self) -> dict[str, Any]:
222
+ async def stop(self) -> AgentSessionRecord:
167
223
  """Ask it to stop. A queued session ends at once; a running or waiting
168
224
  one ends once its sandbox is gone (``wait`` follows it there)."""
169
225
  self.session = await self._t.json("POST", self._path("/stop"))
170
226
  return self.session
171
227
 
172
- async def wait(self, *, timeout: float = 0) -> dict[str, Any]:
228
+ async def wait(self, *, timeout: float = 0) -> AgentSessionRecord:
173
229
  """Return the session once it has ended (done, failed or stopped; a
174
230
  failed session is returned, not raised: read ``reason``). Each round
175
231
  waits on the session's log, not a timer. ``timeout`` in seconds, 0 for
@@ -216,20 +272,29 @@ class AsyncAgentSessions:
216
272
  return AsyncAgentSession(self._t, record)
217
273
 
218
274
  async def delete(self, session_id: str) -> None:
219
- """Delete an ended session and its history; until then it is kept,
220
- counted as storage. An open session is refused with ConflictError
275
+ """Delete an ended session's history: its log, and every log under it
276
+ in its tree. Until then the history is kept, counted as storage. The
277
+ session is kept as a deleted record: ``get`` still reads it, with
278
+ ``deletedAt`` set, ``reason`` deleted, ``key`` and ``result`` cleared
279
+ and its cost kept (a delete never frees budget), and its log reads
280
+ empty. An open session or tree is refused with ConflictError
221
281
  ``session_open``: stop it first."""
222
282
  await self._t.json("DELETE", f"/v1/agents/sessions/{_enc(session_id)}")
223
283
 
224
284
  async def list(self, *, agent: Optional[str] = None, state: Optional[Union[str, list[str]]] = None,
285
+ parent: Optional[str] = None, root: Optional[str] = None, deleted: Optional[bool] = None,
225
286
  cursor: Optional[str] = None, limit: Optional[int] = None) -> AsyncPage:
226
287
  """Sessions, newest first, of one ``agent`` (id or name) and in a
227
- ``state`` if given, ``limit`` a page. ``async for`` walks every page."""
288
+ ``state`` if given, ``limit`` a page. ``parent`` (a session's id):
289
+ its direct children. ``root`` (a top session's id): its whole tree,
290
+ the root included. ``deleted=True`` includes deleted records, which
291
+ are hidden otherwise. ``async for`` walks every page."""
228
292
  from .._async_client import AsyncPage
229
293
 
230
294
  async def fetch(at: Optional[str]) -> AsyncPage:
231
295
  body = await self._t.json("GET", "/v1/agents/sessions",
232
- query={"agent": agent, "state": state, "cursor": at, "limit": limit})
296
+ query={"agent": agent, "state": state, "parent": parent, "root": root,
297
+ "deleted": deleted, "cursor": at, "limit": limit})
233
298
  return AsyncPage(body["data"], body.get("nextCursor"), fetch)
234
299
  return await fetch(cursor)
235
300
 
@@ -283,12 +348,17 @@ class AsyncAgents:
283
348
  idempotency_key: Optional[str] = None) -> dict[str, Any]:
284
349
  """Make an agent, version 1. ``definition`` as the API takes it:
285
350
  ``command`` (required), ``from`` ({image} or {snapshot}), ``vcpu`` and
286
- ``memoryMiB`` (4 vCPU and 8 GiB unless set), ``instructions``,
287
- ``env``, ``secrets``, ``mcp``, ``volumes``, ``idlePauseSeconds``,
288
- ``maxSessionSeconds``, ``maxConcurrent``, ``maxSessionDollars`` (5 unless
289
- set: a session at it stops with reason ``budget``), ``maxDayDollars``
290
- (100 unless set: an agent at it starts nothing new, ConflictError
291
- ``budget_reached``, until the next day), ``template``;
351
+ ``memoryMiB`` (4 vCPU and 8 GiB unless set; a definition from a
352
+ snapshot takes neither, InvalidRequestError, since a snapshot keeps
353
+ its own size), ``instructions``, ``env``, ``secrets``, ``mcp``,
354
+ ``volumes``, ``idlePauseSeconds``, ``maxSessionSeconds``,
355
+ ``maxConcurrent``, ``maxSessionDollars`` (more than 0, at most 10000,
356
+ 5 unless set: the session and every session under it, the root's
357
+ covering its tree; a tree at it stops with reason ``budget``),
358
+ ``maxDayDollars`` (more than 0, at most 100000, 100 unless set: the
359
+ agent's sessions started that UTC day; an agent at it starts nothing
360
+ new, ConflictError ``budget_reached``, until the next day),
361
+ ``template``;
292
362
  ``templates.definition`` makes one.
293
363
  A name in use is refused with ConflictError ``name_taken``; the names
294
364
  sessions, triggers, templates and approvals are refused, since they are
@@ -0,0 +1,125 @@
1
+ # ``runtime.containers``: one OCI image's process on its own microVM, billed at
2
+ # the sandbox rates. Private beta: an account outside it is refused with
3
+ # PermissionDeniedError, code ``product_in_beta`` (403), and retrying does not
4
+ # change it.
5
+ #
6
+ # box = await runtime.containers.create(image="nginx:1.27", vcpu=1, memory_mib=512, name="web")
7
+ # box = await runtime.containers.get(box["id"], wait_for="running", timeout_seconds=60)
8
+ # print(box["state"], box["image"], box["port"])
9
+ #
10
+ # A container: id, name, labels, state (waiting, running, sleeping, stopped,
11
+ # failed, deleting, deleted), image (pinned to its digest), entrypoint,
12
+ # command, workingDir, user, port (or None), exposedPorts, onExit, sleep, vcpu,
13
+ # memoryMiB, envNames (the environment's names, never its values), error,
14
+ # createdAt, updatedAt and deletedAt (Unix milliseconds).
15
+ from __future__ import annotations
16
+
17
+ import uuid
18
+ from typing import Any, Optional
19
+
20
+ from .._errors import RuntimeError
21
+ from .apps import _UNSET, _Wait, _enc, _fields, _keep_key
22
+
23
+ # A wait ends at its target or at one of these, with the container's error.
24
+ CONTAINER_SETTLED = ("failed", "deleted")
25
+
26
+
27
+ class AsyncContainers:
28
+ """``runtime.containers`` (private beta), at /v1/containers. Times are Unix
29
+ milliseconds."""
30
+
31
+ _base = "/v1/containers"
32
+
33
+ def __init__(self, t: Any) -> None:
34
+ self._t = t
35
+
36
+ async def create(self, *, image: str, vcpu: int, memory_mib: int, name: Optional[str] = None,
37
+ labels: Optional[dict[str, str]] = None, entrypoint: Optional[list[str]] = None,
38
+ command: Optional[list[str]] = None, env: Optional[dict[str, str]] = None,
39
+ working_dir: Optional[str] = None, user: Optional[str] = None, port: Optional[int] = None,
40
+ on_exit: Optional[str] = None, sleep: Optional[bool] = None,
41
+ idempotency_key: Optional[str] = None) -> dict[str, Any]:
42
+ """Run one copy of ``image`` (an OCI reference; the answer pins its
43
+ digest) with ``vcpu`` (1 to 16) and ``memory_mib`` (128 to 65536).
44
+ ``entrypoint`` replaces the image's Entrypoint and drops its Cmd;
45
+ ``command`` replaces its Cmd. ``env`` is set over the image's own and
46
+ never read back, only its names. ``port`` (1 to 65535) is required when
47
+ the image exposes several TCP ports. ``on_exit`` is ``restart`` or
48
+ ``stop``: by default it restarts when it serves a port, else stops. It
49
+ never sleeps unless ``sleep=True``."""
50
+ body = _fields(image=image, vcpu=vcpu, memory_mib=memory_mib, name=name, labels=labels,
51
+ entrypoint=entrypoint, command=command, env=env, working_dir=working_dir, user=user,
52
+ port=port, on_exit=on_exit, sleep=sleep)
53
+ return await self._t.json("POST", self._base, body=body, idempotency_key=idempotency_key)
54
+
55
+ async def get(self, container_id: str, *, wait_for: Optional[str] = None,
56
+ timeout_seconds: Optional[int] = None) -> dict[str, Any]:
57
+ """One by id. ``wait_for`` (a state) holds the answer on the server up
58
+ to ``timeout_seconds`` (1 to 60, default 30); check the state returned."""
59
+ return await self._t.json("GET", f"{self._base}/{_enc(container_id)}",
60
+ query={"waitFor": wait_for, "timeoutSeconds": timeout_seconds})
61
+
62
+ async def list(self, *, name: Optional[str] = None, label: Optional[list[str]] = None,
63
+ state: Optional[list[str]] = None, limit: Optional[int] = None) -> AsyncPage:
64
+ """Yours, filtered by ``name``, ``label`` (``key:value``, all must match)
65
+ and ``state`` (all but deleting and deleted by default); ``limit`` 1 to
66
+ 100 a page. ``async for`` walks every page."""
67
+ from .._async_client import AsyncPage
68
+ query = {"name": name, "label": label, "state": state, "limit": limit}
69
+
70
+ async def fetch(cursor: Optional[str]) -> AsyncPage:
71
+ body = await self._t.json("GET", self._base, query={**query, "cursor": cursor})
72
+ return AsyncPage(body["data"], body.get("nextCursor"), fetch)
73
+ return await fetch(None)
74
+
75
+ async def update(self, container_id: str, *, name: Optional[str] = _UNSET,
76
+ labels: Optional[dict[str, str]] = None,
77
+ idempotency_key: Optional[str] = None) -> dict[str, Any]:
78
+ """Rename it or replace its labels; nothing else changes. ``name=None``
79
+ clears the name."""
80
+ body = _fields(labels=labels)
81
+ if name is not _UNSET:
82
+ body["name"] = name
83
+ return await self._t.json("POST", f"{self._base}/{_enc(container_id)}:update", body=body,
84
+ idempotency_key=idempotency_key)
85
+
86
+ async def delete(self, container_id: str, *, wait: bool = False, timeout: float = 300, poll: float = 0.25,
87
+ idempotency_key: Optional[str] = None) -> dict[str, Any]:
88
+ """Delete it and stop its process. With ``wait``, return once it is
89
+ deleted, within ``timeout`` seconds (0: no deadline); a timed-out delete
90
+ can be sent again with the same ``idempotency_key``."""
91
+ path = f"{self._base}/{_enc(container_id)}"
92
+ if not wait:
93
+ return await self._t.json("DELETE", path, idempotency_key=idempotency_key)
94
+ waiting = _Wait(timeout, poll, idempotency_key or str(uuid.uuid4()))
95
+ record = await self._t.json("DELETE", path, idempotency_key=waiting.key, **waiting.options())
96
+ return await self._follow(container_id, "deleted", waiting, record)
97
+
98
+ async def wait(self, container_id: str, target: str, *, timeout: float = 300,
99
+ poll: float = 0.25) -> dict[str, Any]:
100
+ """Follow it to ``target`` (``running``, say), within ``timeout``
101
+ seconds. Reaching failed or deleted first raises with its error."""
102
+ return await self._follow(container_id, target, _Wait(timeout, poll, None))
103
+
104
+ async def _follow(self, container_id: str, target: str, waiting: _Wait,
105
+ record: Optional[dict[str, Any]] = None) -> dict[str, Any]:
106
+ path = f"{self._base}/{_enc(container_id)}"
107
+ try:
108
+ if record is None:
109
+ record = await self._t.json("GET", path, **waiting.options())
110
+ while True:
111
+ if record["state"] == target:
112
+ return record
113
+ if record["state"] in CONTAINER_SETTLED:
114
+ error = record.get("error") or {}
115
+ raise RuntimeError(
116
+ error.get("message") or f"Expected {target}, but {container_id} reached {record['state']}.",
117
+ code=error.get("code") or "unexpected_state",
118
+ hint="Read the resource and inspect its error before starting another change.",
119
+ details={"id": container_id, "state": record["state"], "target": target,
120
+ "resource": record},
121
+ idempotency_key=waiting.key)
122
+ await waiting.pause()
123
+ record = await self._t.json("GET", path, **waiting.options())
124
+ except RuntimeError as error:
125
+ raise _keep_key(error, waiting)
@@ -34,7 +34,9 @@ logger = logging.getLogger("withruntime")
34
34
  # a step's HOME is its user's home.
35
35
  # runtime-builder/7 (15 October 2026): a WORKDIR's new directories are the
36
36
  # USER's, and root owns what COPY and ADD write unless --chown, as in Docker.
37
- IMAGE_RECIPE = "runtime-builder/7"
37
+ # runtime-builder/8 (18 October 2026): every image carries the containers'
38
+ # launcher, so one built before it can't start as a container.
39
+ IMAGE_RECIPE = "runtime-builder/8"
38
40
 
39
41
 
40
42
  def image_tag(key: str) -> str: