withruntime 0.16.0__tar.gz → 0.17.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 (411) hide show
  1. {withruntime-0.16.0 → withruntime-0.17.0}/PKG-INFO +1 -1
  2. {withruntime-0.16.0 → withruntime-0.17.0}/pyproject.toml +1 -1
  3. withruntime-0.17.0/tests/test_apps_builds.py +308 -0
  4. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_prime_contract.py +1 -1
  5. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_prime_validation.py +2 -2
  6. withruntime-0.17.0/tests/test_daytona_0_225_0.py +71 -0
  7. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_identity_token.py +25 -0
  8. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_package_typing.py +1 -1
  9. withruntime-0.17.0/tests/test_prime_0_4_6.py +47 -0
  10. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_wallet.py +6 -1
  11. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/__init__.py +7 -2
  12. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/__init__.py +5 -0
  13. withruntime-0.17.0/withruntime/_async_products/apps.py +289 -0
  14. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/browser.py +4 -2
  15. withruntime-0.17.0/withruntime/_async_products/builds.py +273 -0
  16. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/limits.py +5 -2
  17. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/__init__.py +5 -0
  18. withruntime-0.17.0/withruntime/_sync_products/apps.py +290 -0
  19. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/browser.py +4 -2
  20. withruntime-0.17.0/withruntime/_sync_products/builds.py +274 -0
  21. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/limits.py +5 -2
  22. withruntime-0.17.0/withruntime/_version.py +1 -0
  23. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/__init__.py +5 -3
  24. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/_core.py +42 -2
  25. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/__init__.py +2 -2
  26. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/_async.py +4 -1
  27. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/_sync.py +4 -1
  28. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/models.py +8 -2
  29. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/wallet.py +10 -0
  30. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime.egg-info/PKG-INFO +1 -1
  31. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime.egg-info/SOURCES.txt +7 -0
  32. withruntime-0.16.0/withruntime/_version.py +0 -1
  33. {withruntime-0.16.0 → withruntime-0.17.0}/LICENSE +0 -0
  34. {withruntime-0.16.0 → withruntime-0.17.0}/README.md +0 -0
  35. {withruntime-0.16.0 → withruntime-0.17.0}/setup.cfg +0 -0
  36. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_account_errors.py +0 -0
  37. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_answer_start.py +0 -0
  38. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_async_stream_cleanup.py +0 -0
  39. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_audit.py +0 -0
  40. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_billing.py +0 -0
  41. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_blaxel.py +0 -0
  42. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_blaxel_0_4_17.py +0 -0
  43. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_blaxel_0_4_18.py +0 -0
  44. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_blaxel_create_timeout.py +0 -0
  45. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_blaxel_wait_deadline.py +0 -0
  46. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_browser.py +0 -0
  47. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_capacity_wait.py +0 -0
  48. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_live.py +0 -0
  49. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_modal_deadline_errors.py +0 -0
  50. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_new_providers.py +0 -0
  51. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
  52. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_disk_snapshots.py +0 -0
  53. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_e2b_deadline.py +0 -0
  54. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_e2b_pty.py +0 -0
  55. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_e2b_stream.py +0 -0
  56. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_e2b_watch.py +0 -0
  57. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
  58. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_modal.py +0 -0
  59. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_morph.py +0 -0
  60. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_official.py +0 -0
  61. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_pins.py +0 -0
  62. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_processes.py +0 -0
  63. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_request_scope.py +0 -0
  64. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_runloop.py +0 -0
  65. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_shell.py +0 -0
  66. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_snapshot_capture.py +0 -0
  67. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_python_sprites.py +0 -0
  68. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_compat_router.py +0 -0
  69. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_customer_usage.py +0 -0
  70. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona.py +0 -0
  71. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_0_223_1.py +0 -0
  72. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_0_224_1.py +0 -0
  73. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_create_cleanup.py +0 -0
  74. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_create_options.py +0 -0
  75. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_download_labels.py +0 -0
  76. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_daytona_refusals_lifted.py +0 -0
  77. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_deepagents.py +0 -0
  78. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_2_55.py +0 -0
  79. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_code_interpreter.py +0 -0
  80. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_connection_cap.py +0 -0
  81. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_exports.py +0 -0
  82. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_fork_validation.py +0 -0
  83. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_sandbox.py +0 -0
  84. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_upstream.py +0 -0
  85. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_e2b_watch.py +0 -0
  86. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_embed_and_webhook_watch.py +0 -0
  87. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_eval_sandbox.py +0 -0
  88. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_exec_stream.py +0 -0
  89. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_exec_stream_names.py +0 -0
  90. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_exec_user.py +0 -0
  91. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_file_archives.py +0 -0
  92. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_files_download.py +0 -0
  93. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_files_mode.py +0 -0
  94. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_files_upload_parallel.py +0 -0
  95. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_files_write_lost_body.py +0 -0
  96. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_harbor.py +0 -0
  97. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_http_tls_close.py +0 -0
  98. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_image_delete_by_name.py +0 -0
  99. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_images_v2.py +0 -0
  100. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_images_volumes_interpreter.py +0 -0
  101. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_inspect_ai.py +0 -0
  102. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_interface_contract.py +0 -0
  103. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_jobs.py +0 -0
  104. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_late_answer.py +0 -0
  105. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_lifecycle_settings.py +0 -0
  106. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_limits.py +0 -0
  107. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_machine_engine.py +0 -0
  108. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_modal_1_6_2.py +0 -0
  109. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_modal_dropin.py +0 -0
  110. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_mounts.py +0 -0
  111. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_network_funding.py +0 -0
  112. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_network_products.py +0 -0
  113. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_observability.py +0 -0
  114. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_openai_agents.py +0 -0
  115. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_out_of_memory.py +0 -0
  116. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_previews_network_desktop.py +0 -0
  117. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_prime_0_4_5.py +0 -0
  118. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_private_network.py +0 -0
  119. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_process_deadline.py +0 -0
  120. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_process_input.py +0 -0
  121. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_process_object.py +0 -0
  122. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_process_output.py +0 -0
  123. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_process_write_backpressure.py +0 -0
  124. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_product_aliases.py +0 -0
  125. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_proxy.py +0 -0
  126. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_referrals.py +0 -0
  127. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_replayed_create_message.py +0 -0
  128. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_runloop_stream_cleanup.py +0 -0
  129. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_runloop_v2.py +0 -0
  130. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_sandbox_origin.py +0 -0
  131. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_sandbox_sessions.py +0 -0
  132. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_sandboxes_delete_all.py +0 -0
  133. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_sandboxes_stop_all.py +0 -0
  134. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_saved_connection.py +0 -0
  135. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_secrets.py +0 -0
  136. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_signed_requests.py +0 -0
  137. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_snapshot_after_fork.py +0 -0
  138. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_snapshot_recovery.py +0 -0
  139. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_sso.py +0 -0
  140. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_start_report_kept.py +0 -0
  141. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_stream_cut_short.py +0 -0
  142. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_stream_exit_close.py +0 -0
  143. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_switch_image.py +0 -0
  144. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_switching.py +0 -0
  145. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_tailscale.py +0 -0
  146. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_tools.py +0 -0
  147. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_transport_body_recovery.py +0 -0
  148. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_transport_connection_limits.py +0 -0
  149. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_transport_never_sent.py +0 -0
  150. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_unpack.py +0 -0
  151. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_upload_deadline.py +0 -0
  152. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_vercel.py +0 -0
  153. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_vercel_create_validation.py +0 -0
  154. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_vercel_disk_snapshot.py +0 -0
  155. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_vercel_refusals_lifted.py +0 -0
  156. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_volume_backups.py +0 -0
  157. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_volume_operations.py +0 -0
  158. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_wake_awake.py +0 -0
  159. {withruntime-0.16.0 → withruntime-0.17.0}/tests/test_watch.py +0 -0
  160. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_api_defaults.py +0 -0
  161. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_client.py +0 -0
  162. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/audit.py +0 -0
  163. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/billing.py +0 -0
  164. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/desktop.py +0 -0
  165. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/images.py +0 -0
  166. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/interpreter.py +0 -0
  167. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/jobs.py +0 -0
  168. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/mcp.py +0 -0
  169. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/mounts.py +0 -0
  170. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/network.py +0 -0
  171. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/network_products.py +0 -0
  172. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/observability.py +0 -0
  173. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/previews.py +0 -0
  174. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/private_network.py +0 -0
  175. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/referrals.py +0 -0
  176. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/secrets.py +0 -0
  177. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/signed_requests.py +0 -0
  178. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/sso.py +0 -0
  179. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/switching.py +0 -0
  180. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/tailscale.py +0 -0
  181. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/volumes.py +0 -0
  182. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_async_products/watch.py +0 -0
  183. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_clock.py +0 -0
  184. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_compat.py +0 -0
  185. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_compat_lease.py +0 -0
  186. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_compat_lifecycle.py +0 -0
  187. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_compat_shell.py +0 -0
  188. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_connection.py +0 -0
  189. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_errors.py +0 -0
  190. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_eval_sandbox.py +0 -0
  191. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_http.py +0 -0
  192. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_proxy.py +0 -0
  193. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_renamed.py +0 -0
  194. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_request_scope.py +0 -0
  195. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_client.py +0 -0
  196. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/audit.py +0 -0
  197. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/billing.py +0 -0
  198. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/desktop.py +0 -0
  199. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/images.py +0 -0
  200. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/interpreter.py +0 -0
  201. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/jobs.py +0 -0
  202. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/mcp.py +0 -0
  203. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/mounts.py +0 -0
  204. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/network.py +0 -0
  205. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/network_products.py +0 -0
  206. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/observability.py +0 -0
  207. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/previews.py +0 -0
  208. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/private_network.py +0 -0
  209. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/referrals.py +0 -0
  210. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/secrets.py +0 -0
  211. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/signed_requests.py +0 -0
  212. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/sso.py +0 -0
  213. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/switching.py +0 -0
  214. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/tailscale.py +0 -0
  215. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/volumes.py +0 -0
  216. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_sync_products/watch.py +0 -0
  217. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_tunnel.py +0 -0
  218. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_unpack.py +0 -0
  219. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/_ws.py +0 -0
  220. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/__init__.py +0 -0
  221. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/_async_io.py +0 -0
  222. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/_async_sandbox.py +0 -0
  223. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/_core.py +0 -0
  224. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/_sync_io.py +0 -0
  225. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
  226. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/__init__.py +0 -0
  227. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/agents.py +0 -0
  228. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/__init__.py +0 -0
  229. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
  230. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
  231. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
  232. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
  233. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
  234. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
  235. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
  236. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
  237. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/images.py +0 -0
  238. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
  239. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/client.py +0 -0
  240. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
  241. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
  242. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
  243. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/env.py +0 -0
  244. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/function.py +0 -0
  245. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
  246. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
  247. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
  248. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
  249. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
  250. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/pagination.py +0 -0
  251. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/client/types.py +0 -0
  252. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/common.py +0 -0
  253. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/drive.py +0 -0
  254. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/errors.py +0 -0
  255. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/jobs.py +0 -0
  256. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
  257. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
  258. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/core/secret.py +0 -0
  259. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/crewai.py +0 -0
  260. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/googleadk.py +0 -0
  261. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/langgraph.py +0 -0
  262. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/livekit.py +0 -0
  263. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/llamaindex.py +0 -0
  264. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/openai.py +0 -0
  265. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/pydantic.py +0 -0
  266. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/blaxel/telemetry.py +0 -0
  267. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/_async_daytona.py +0 -0
  268. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/_async_io.py +0 -0
  269. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/_sync_daytona.py +0 -0
  270. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/daytona/_sync_io.py +0 -0
  271. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/deepagents.py +0 -0
  272. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/__init__.py +0 -0
  273. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/_async_io.py +0 -0
  274. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/_async_sandbox.py +0 -0
  275. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/_core.py +0 -0
  276. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/_sync_io.py +0 -0
  277. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/_sync_sandbox.py +0 -0
  278. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
  279. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
  280. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
  281. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
  282. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
  283. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
  284. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
  285. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/code_interpreter/models.py +0 -0
  286. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/connection_config.py +0 -0
  287. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/exceptions.py +0 -0
  288. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/__init__.py +0 -0
  289. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
  290. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
  291. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
  292. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
  293. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
  294. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
  295. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/network.py +0 -0
  296. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
  297. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox/signature.py +0 -0
  298. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
  299. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
  300. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
  301. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
  302. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
  303. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
  304. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  305. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  306. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/main.py +0 -0
  307. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
  308. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
  309. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
  310. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
  311. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
  312. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
  313. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
  314. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
  315. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  316. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  317. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
  318. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
  319. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
  320. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/secret/__init__.py +0 -0
  321. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/__init__.py +0 -0
  322. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
  323. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/logger.py +0 -0
  324. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/main.py +0 -0
  325. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/readycmd.py +0 -0
  326. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template/types.py +0 -0
  327. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template_async/__init__.py +0 -0
  328. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template_async/main.py +0 -0
  329. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template_sync/__init__.py +0 -0
  330. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/template_sync/main.py +0 -0
  331. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/volume/__init__.py +0 -0
  332. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/volume/connection_config.py +0 -0
  333. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/volume/types.py +0 -0
  334. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/volume/volume_async.py +0 -0
  335. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/e2b/volume/volume_sync.py +0 -0
  336. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/harbor.py +0 -0
  337. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/inspect_ai.py +0 -0
  338. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/__init__.py +0 -0
  339. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_async.py +0 -0
  340. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_dual.py +0 -0
  341. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_fs_async.py +0 -0
  342. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_fs_common.py +0 -0
  343. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_fs_sync.py +0 -0
  344. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_lookup.py +0 -0
  345. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_object.py +0 -0
  346. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_probe.py +0 -0
  347. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_snapshot.py +0 -0
  348. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/_tunnel.py +0 -0
  349. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/app.py +0 -0
  350. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
  351. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/exception.py +0 -0
  352. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/file_pattern_matcher.py +0 -0
  353. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/image.py +0 -0
  354. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/proxy.py +0 -0
  355. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/sandbox/__init__.py +0 -0
  356. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/sandbox/sandbox.py +0 -0
  357. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/sandbox_fs.py +0 -0
  358. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/secret.py +0 -0
  359. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/snapshot.py +0 -0
  360. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/types.py +0 -0
  361. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/modal/volume.py +0 -0
  362. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/morph/__init__.py +0 -0
  363. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/morph/api.py +0 -0
  364. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/openai_agents.py +0 -0
  365. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/core/__init__.py +0 -0
  366. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/core/client.py +0 -0
  367. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/exceptions.py +0 -0
  368. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/process.py +0 -0
  369. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/prime/sandbox.py +0 -0
  370. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/py.typed +0 -0
  371. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/__init__.py +0 -0
  372. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/_async.py +0 -0
  373. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/_exceptions.py +0 -0
  374. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/_snapshots.py +0 -0
  375. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/_sync.py +0 -0
  376. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/_v2.py +0 -0
  377. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/lib/__init__.py +0 -0
  378. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/lib/polling.py +0 -0
  379. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/runloop/sdk/__init__.py +0 -0
  380. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/__init__.py +0 -0
  381. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_capture.py +0 -0
  382. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_capture_async.py +0 -0
  383. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_features.py +0 -0
  384. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_metadata.py +0 -0
  385. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_stream.py +0 -0
  386. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_stream_async.py +0 -0
  387. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/_translate.py +0 -0
  388. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/async_client.py +0 -0
  389. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/async_exec.py +0 -0
  390. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/client.py +0 -0
  391. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/control.py +0 -0
  392. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/exceptions.py +0 -0
  393. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/exec.py +0 -0
  394. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/filesystem.py +0 -0
  395. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/sprite.py +0 -0
  396. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/sprites/types.py +0 -0
  397. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/tools.py +0 -0
  398. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/__init__.py +0 -0
  399. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/_async_io.py +0 -0
  400. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/_async_sandbox.py +0 -0
  401. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/_core.py +0 -0
  402. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/_sync_io.py +0 -0
  403. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/_sync_sandbox.py +0 -0
  404. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/api.py +0 -0
  405. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/sandbox/__init__.py +0 -0
  406. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/vercel/sandbox/sync.py +0 -0
  407. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime/webhooks.py +0 -0
  408. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime.egg-info/dependency_links.txt +0 -0
  409. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime.egg-info/entry_points.txt +0 -0
  410. {withruntime-0.16.0 → withruntime-0.17.0}/withruntime.egg-info/requires.txt +0 -0
  411. {withruntime-0.16.0 → withruntime-0.17.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.16.0
3
+ Version: 0.17.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.16.0"
7
+ version = "0.17.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" }
@@ -0,0 +1,308 @@
1
+ """runtime.apps, runtime.functions and runtime.builds against a stub API, sync and
2
+ async. The routes run over Postgres in packages/cloud (apps-product.test.ts,
3
+ builds-product.test.ts); this holds the SDK to their paths, bodies, paging,
4
+ waits and the build log's follow."""
5
+ import asyncio
6
+ import json
7
+ import threading
8
+ import unittest
9
+ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
10
+ from urllib.parse import parse_qs, urlsplit
11
+
12
+ from withruntime import AsyncRuntime, InvalidRequestError, PermissionDeniedError, Runtime
13
+ from withruntime import RuntimeError as RuntimeAPIError
14
+
15
+ APP_ID = "11111111-1111-4111-8111-111111111111"
16
+ DEPLOY_ID = "22222222-2222-4222-8222-222222222222"
17
+ BUILD_ID = "33333333-3333-4333-8333-333333333333"
18
+ REPO_ID = "44444444-4444-4444-8444-444444444444"
19
+ APP = {"id": APP_ID, "name": "web", "state": "waiting", "error": None}
20
+ BUILD = {"id": BUILD_ID, "repositoryId": REPO_ID, "ref": "main", "state": "queued", "error": None}
21
+ REPO = {"id": REPO_ID, "provider": "github", "repository": "acme/web", "state": "connected", "error": None}
22
+
23
+
24
+ def line(cursor, text):
25
+ return {"type": "line", "cursor": cursor, "at": 1, "step": "build", "text": text, "stream": "stdout"}
26
+
27
+
28
+ class Stub(BaseHTTPRequestHandler):
29
+ seen: list = []
30
+ mode = "ok"
31
+ # Each GET of a deploy answers the next of these states; the last repeats.
32
+ deploys: list = []
33
+ # Each follow of a build's log answers the next of these event lists.
34
+ follows: list = []
35
+
36
+ def log_message(self, *args):
37
+ pass
38
+
39
+ def answer(self, value, status=200, kind="application/json"):
40
+ data = ("".join(json.dumps(v) + "\n" for v in value) if kind == "application/x-ndjson"
41
+ else json.dumps(value)).encode()
42
+ self.send_response(status)
43
+ self.send_header("content-type", kind)
44
+ self.send_header("content-length", str(len(data)))
45
+ self.end_headers()
46
+ self.wfile.write(data)
47
+
48
+ def handle_any(self):
49
+ length = int(self.headers.get("content-length") or 0)
50
+ body = json.loads(self.rfile.read(length)) if length else None
51
+ url = urlsplit(self.path)
52
+ path, query = url.path, parse_qs(url.query)
53
+ Stub.seen.append((self.command, path, query, body, self.headers.get("idempotency-key")))
54
+ if Stub.mode == "beta":
55
+ return self.answer({"error": {"code": "product_in_beta", "message": "Apps is in a private beta.",
56
+ "hint": "Ask us to join it."}}, 403)
57
+ if path in ("/v1/apps", "/v1/functions", "/v1/builds", "/v1/repositories") and self.command == "GET":
58
+ record = {"/v1/builds": BUILD, "/v1/repositories": REPO}.get(path, APP)
59
+ # Two pages: the first names the cursor of the second.
60
+ if "cursor" in query:
61
+ return self.answer({"data": [{**record, "id": "second"}], "nextCursor": None})
62
+ return self.answer({"data": [record], "nextCursor": "page-2"})
63
+ if "/deploys/" in path:
64
+ state = Stub.deploys.pop(0) if len(Stub.deploys) > 1 else Stub.deploys[0]
65
+ return self.answer({"id": DEPLOY_ID, "version": 2, "url": "https://x/", "state": state})
66
+ if path.endswith("/deploys") or path.endswith("/rollback"):
67
+ return self.answer({"id": DEPLOY_ID, "version": 2, "url": "https://x/", "state": "building"})
68
+ if path.endswith("/versions"):
69
+ return self.answer([{"version": 1, "live": True, "previous": False, "saved": True,
70
+ "deploy": DEPLOY_ID, "build": None}])
71
+ if path.endswith("/copies"):
72
+ return self.answer([])
73
+ if path.startswith("/v1/apps/") or path.startswith("/v1/functions/"):
74
+ if self.command == "DELETE":
75
+ return self.answer({**APP, "state": "deleting"})
76
+ if Stub.mode == "live":
77
+ return self.answer({**APP, "state": "live"})
78
+ gets = sum(1 for s in Stub.seen if s[0] == "GET" and s[1] == path)
79
+ return self.answer({**APP, "state": "deleted" if gets > 1 else "deleting"}
80
+ if Stub.mode == "deleting" else APP)
81
+ if path.endswith("/logs") and query.get("follow") == ["true"]:
82
+ return self.answer(Stub.follows.pop(0), kind="application/x-ndjson")
83
+ if path.endswith("/logs"):
84
+ return self.answer({"lines": [], "cursor": None, "state": "failed", "reason": "exit 1",
85
+ "failingStep": {"name": "build", "exitCode": 1, "lastLines": ["boom"]},
86
+ "hasMore": False, "nextCursor": None})
87
+ if path == "/v1/repositories/github:install":
88
+ return self.answer({"url": "https://github.com/apps/runtime/installations/new", "expiresAt": "x"})
89
+ if path.startswith("/v1/repositories"):
90
+ return self.answer(REPO)
91
+ if path.startswith("/v1/builds") or path == "/v1/builds":
92
+ return self.answer({**BUILD, "state": "cancelled"} if path.endswith(":cancel") else BUILD)
93
+ if path in ("/v1/apps", "/v1/functions"):
94
+ return self.answer(APP)
95
+ self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
96
+
97
+ do_GET = do_POST = do_PUT = do_DELETE = handle_any
98
+
99
+
100
+ class AppsBuildsTest(unittest.TestCase):
101
+ @classmethod
102
+ def setUpClass(cls):
103
+ cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
104
+ threading.Thread(target=cls.server.serve_forever, daemon=True).start()
105
+ cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
106
+
107
+ @classmethod
108
+ def tearDownClass(cls):
109
+ cls.server.shutdown()
110
+
111
+ def setUp(self):
112
+ Stub.seen, Stub.mode, Stub.deploys, Stub.follows = [], "ok", ["live"], []
113
+
114
+ def client(self):
115
+ return Runtime(api_key="rk_test", base_url=self.url, max_retries=2)
116
+
117
+ def routes(self):
118
+ return [(s[0], s[1]) for s in Stub.seen]
119
+
120
+ def test_every_app_verb_calls_its_route_with_the_apis_names(self):
121
+ with self.client() as runtime:
122
+ runtime.apps.create(name="web", max_copies=4, vcpu=1, memory_mib=1024, min_copies=1,
123
+ health_path="/healthz")
124
+ runtime.apps.get(APP_ID, wait_for="live", timeout_seconds=5)
125
+ self.assertEqual([a["id"] for a in runtime.apps.list(label=["team:web"])], [APP_ID, "second"])
126
+ runtime.apps.update(APP_ID, name=None, max_copies=8)
127
+ runtime.apps.deploy(APP_ID, image="web:latest", env={"A": "1"}, keep_env=True)
128
+ runtime.apps.get_deploy(APP_ID, DEPLOY_ID)
129
+ runtime.apps.rollback(APP_ID)
130
+ self.assertTrue(runtime.apps.versions(APP_ID)[0]["live"])
131
+ self.assertEqual(runtime.apps.copies(APP_ID), [])
132
+ runtime.apps.delete(APP_ID)
133
+ base = f"/v1/apps/{APP_ID}"
134
+ self.assertEqual(self.routes(), [
135
+ ("POST", "/v1/apps"), ("GET", base), ("GET", "/v1/apps"), ("GET", "/v1/apps"),
136
+ ("POST", f"{base}:update"), ("POST", f"{base}/deploys"), ("GET", f"{base}/deploys/{DEPLOY_ID}"),
137
+ ("POST", f"{base}/rollback"), ("GET", f"{base}/versions"), ("GET", f"{base}/copies"),
138
+ ("DELETE", base)])
139
+ self.assertEqual(Stub.seen[0][3], {"name": "web", "maxCopies": 4, "vcpu": 1, "memoryMiB": 1024,
140
+ "minCopies": 1, "healthPath": "/healthz"})
141
+ self.assertEqual(Stub.seen[1][2], {"waitFor": ["live"], "timeoutSeconds": ["5"]})
142
+ self.assertEqual(Stub.seen[2][2], {"label": ["team:web"]})
143
+ self.assertEqual(Stub.seen[3][2], {"label": ["team:web"], "cursor": ["page-2"]})
144
+ # name=None clears the name; a field left out is not sent.
145
+ self.assertEqual(Stub.seen[4][3], {"name": None, "maxCopies": 8})
146
+ self.assertEqual(Stub.seen[5][3], {"image": "web:latest", "env": {"A": "1"}, "keepEnv": True})
147
+ self.assertEqual(Stub.seen[7][3], {})
148
+ # Every write carries a key, so the transport's retries never write twice.
149
+ self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
150
+
151
+ def test_a_deploy_with_wait_follows_its_own_record_under_one_key(self):
152
+ Stub.deploys = ["warming", "switching", "live"]
153
+ with self.client() as runtime:
154
+ deploy = runtime.apps.deploy(APP_ID, build=BUILD_ID, wait=True, poll=0, idempotency_key="deploy-1")
155
+ self.assertEqual(deploy["state"], "live")
156
+ reads = [s for s in Stub.seen if "/deploys/" in s[1]]
157
+ self.assertEqual(len(reads), 3)
158
+ self.assertTrue(all(r[2] == {"waitFor": ["live"], "timeoutSeconds": ["60"]} for r in reads))
159
+ self.assertEqual(Stub.seen[0][3], {"build": BUILD_ID})
160
+ self.assertEqual(Stub.seen[0][4], "deploy-1")
161
+
162
+ def test_a_failed_deploy_is_returned_with_its_reasons_not_raised(self):
163
+ Stub.deploys = ["failed"]
164
+ with self.client() as runtime:
165
+ self.assertEqual(runtime.apps.wait_deploy(APP_ID, DEPLOY_ID, poll=0)["state"], "failed")
166
+ self.assertEqual(runtime.apps.rollback(APP_ID, wait=True, poll=0)["state"], "failed")
167
+
168
+ def test_a_wait_past_its_deadline_says_timeout_and_keeps_the_writes_key(self):
169
+ Stub.deploys = ["warming"]
170
+ with self.client() as runtime:
171
+ with self.assertRaises(RuntimeAPIError) as caught:
172
+ runtime.apps.deploy(APP_ID, image="web", wait=True, timeout=0.3, poll=0.05,
173
+ idempotency_key="deploy-2")
174
+ self.assertEqual(caught.exception.code, "timeout")
175
+ self.assertEqual(caught.exception.idempotency_key, "deploy-2")
176
+
177
+ def test_delete_with_wait_follows_the_app_to_deleted(self):
178
+ Stub.mode = "deleting"
179
+ with self.client() as runtime:
180
+ self.assertEqual(runtime.apps.delete(APP_ID, wait=True, poll=0)["state"], "deleted")
181
+ self.assertEqual(self.routes()[0], ("DELETE", f"/v1/apps/{APP_ID}"))
182
+
183
+ def test_an_app_wait_that_settles_elsewhere_raises_its_error(self):
184
+ Stub.mode = "live"
185
+ with self.client() as runtime:
186
+ with self.assertRaises(RuntimeAPIError) as caught:
187
+ runtime.apps.wait(APP_ID, "deleted", poll=0)
188
+ self.assertEqual(caught.exception.code, "unexpected_state")
189
+ self.assertEqual(caught.exception.details["state"], "live")
190
+
191
+ def test_mistakes_are_refused_before_sending(self):
192
+ with self.client() as runtime:
193
+ with self.assertRaises(InvalidRequestError):
194
+ runtime.apps.deploy(APP_ID, image="web", build=BUILD_ID)
195
+ with self.assertRaises(InvalidRequestError):
196
+ runtime.apps.deploy(APP_ID)
197
+ with self.assertRaises(InvalidRequestError):
198
+ runtime.functions.create(max_copies=1, vcpu=1, memory_mib=256, min_copies=1)
199
+ with self.assertRaises(InvalidRequestError):
200
+ runtime.apps.wait(APP_ID, "live", timeout=-1)
201
+ with self.assertRaises(RuntimeAPIError) as caught:
202
+ list(runtime.builds.logs(BUILD_ID, follow=True, page_cursor="p"))
203
+ self.assertEqual(caught.exception.code, "invalid_log_options")
204
+ self.assertEqual(Stub.seen, [])
205
+
206
+ def test_functions_share_the_shape_at_their_own_path(self):
207
+ with self.client() as runtime:
208
+ runtime.functions.create(max_copies=2, vcpu=1, memory_mib=256)
209
+ runtime.functions.deploy(APP_ID, image="fn")
210
+ self.assertEqual(self.routes(), [("POST", "/v1/functions"), ("POST", f"/v1/functions/{APP_ID}/deploys")])
211
+
212
+ def test_outside_the_beta_the_403_is_the_sdks_permission_error(self):
213
+ Stub.mode = "beta"
214
+ with self.client() as runtime:
215
+ for call in (lambda: runtime.apps.list(), lambda: runtime.builds.get(BUILD_ID),
216
+ lambda: runtime.builds.repositories.install_github()):
217
+ with self.assertRaises(PermissionDeniedError) as caught:
218
+ call()
219
+ self.assertEqual(caught.exception.code, "product_in_beta")
220
+ self.assertEqual(caught.exception.status, 403)
221
+ self.assertEqual(caught.exception.hint, "Ask us to join it.")
222
+ self.assertFalse(caught.exception.retryable)
223
+ # Refused once each: a 403 is never retried.
224
+ self.assertEqual(len(Stub.seen), 3)
225
+
226
+ def test_every_build_and_repository_verb_calls_its_route(self):
227
+ with self.client() as runtime:
228
+ runtime.builds.repositories.connect(provider="github", repository="acme/web", deploy=f"app:{APP_ID}",
229
+ start_command="bun start", build_env={"NODE_ENV": "production"})
230
+ self.assertEqual(len(runtime.builds.repositories.list().to_list()), 2)
231
+ runtime.builds.repositories.update(REPO_ID, build_command=None, production_branch="release")
232
+ runtime.builds.repositories.disconnect(REPO_ID)
233
+ self.assertIn("github.com", runtime.builds.repositories.install_github()["url"])
234
+ runtime.builds.create(REPO_ID, "main", branch="main")
235
+ runtime.builds.get(BUILD_ID)
236
+ self.assertEqual(runtime.builds.list(state=["failed", "cancelled"]).data[0]["id"], BUILD_ID)
237
+ self.assertEqual(runtime.builds.cancel(BUILD_ID)["state"], "cancelled")
238
+ log = runtime.builds.logs(BUILD_ID)
239
+ self.assertEqual(log["failingStep"]["lastLines"], ["boom"])
240
+ self.assertEqual(self.routes(), [
241
+ ("POST", "/v1/repositories"), ("GET", "/v1/repositories"), ("GET", "/v1/repositories"),
242
+ ("POST", f"/v1/repositories/{REPO_ID}:update"), ("DELETE", f"/v1/repositories/{REPO_ID}"),
243
+ ("POST", "/v1/repositories/github:install"), ("POST", "/v1/builds"), ("GET", f"/v1/builds/{BUILD_ID}"),
244
+ ("GET", "/v1/builds"), ("POST", f"/v1/builds/{BUILD_ID}:cancel"), ("GET", f"/v1/builds/{BUILD_ID}/logs")])
245
+ self.assertEqual(Stub.seen[0][3], {"provider": "github", "repository": "acme/web", "deploy": f"app:{APP_ID}",
246
+ "startCommand": "bun start", "buildEnv": {"NODE_ENV": "production"}})
247
+ self.assertEqual(Stub.seen[3][3], {"productionBranch": "release", "buildCommand": None})
248
+ self.assertEqual(Stub.seen[6][3], {"repositoryId": REPO_ID, "ref": "main", "branch": "main"})
249
+ self.assertEqual(Stub.seen[8][2], {"state": ["failed", "cancelled"]})
250
+
251
+ def test_a_follow_reconnects_from_its_cursor_and_gives_each_line_once(self):
252
+ Stub.follows = [
253
+ [line("c1", "one"), line("c2", "two"), {"type": "continue", "cursor": "c2"}],
254
+ [line("c2", "two"), line("c3", "three"),
255
+ {"type": "terminal", "cursor": "c3", "state": "failed", "reason": "exit 1",
256
+ "failingStep": {"name": "build", "exitCode": 1, "lastLines": ["three"]}}],
257
+ ]
258
+ with self.client() as runtime:
259
+ events = list(runtime.builds.logs(BUILD_ID, follow=True))
260
+ self.assertEqual([e.get("text") or e["type"] for e in events], ["one", "two", "three", "terminal"])
261
+ follows = [s[2] for s in Stub.seen]
262
+ self.assertEqual(follows, [{"follow": ["true"]}, {"follow": ["true"], "cursor": ["c2"]}])
263
+
264
+ def test_a_follow_raises_the_services_error_and_refuses_a_malformed_event(self):
265
+ Stub.follows = [[line("c1", "one"), {"type": "error", "cursor": "c1", "code": "build_not_found",
266
+ "hint": "Check the build id."}],
267
+ [{"type": "line", "cursor": "c1", "text": 5}]]
268
+ with self.client() as runtime:
269
+ with self.assertRaises(RuntimeAPIError) as caught:
270
+ list(runtime.builds.logs(BUILD_ID, follow=True))
271
+ self.assertEqual((caught.exception.code, caught.exception.details), ("build_not_found", {"cursor": "c1"}))
272
+ with self.assertRaises(RuntimeAPIError) as caught:
273
+ list(runtime.builds.logs(BUILD_ID, follow=True))
274
+ self.assertEqual(caught.exception.code, "build_log_invalid")
275
+
276
+ def test_a_follow_whose_stream_keeps_ending_says_where_to_resume(self):
277
+ Stub.follows = [[line("c1", "one")], [], [], []]
278
+ with self.client() as runtime:
279
+ with self.assertRaises(RuntimeAPIError) as caught:
280
+ list(runtime.builds.logs(BUILD_ID, follow=True))
281
+ self.assertEqual((caught.exception.code, caught.exception.details), ("build_log_interrupted", {"cursor": "c1"}))
282
+
283
+ def test_async_clients_await_and_iterate_the_same_way(self):
284
+ Stub.deploys = ["warming", "live"]
285
+ Stub.follows = [[line("c1", "one"), {"type": "terminal", "cursor": "c1", "state": "succeeded",
286
+ "reason": "built", "failingStep": None}]]
287
+
288
+ async def go():
289
+ async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=2) as runtime:
290
+ await runtime.apps.create(max_copies=1, vcpu=1, memory_mib=256)
291
+ ids = [a["id"] async for a in await runtime.apps.list()]
292
+ deploy = await runtime.apps.deploy(APP_ID, image="web", wait=True, poll=0)
293
+ build = await runtime.builds.create(REPO_ID, "main")
294
+ log = await runtime.builds.logs(BUILD_ID)
295
+ events = [e async for e in runtime.builds.logs(BUILD_ID, follow=True)]
296
+ repos = await (await runtime.builds.repositories.list()).to_list()
297
+ return ids, deploy, build, log, events, repos
298
+ ids, deploy, build, log, events, repos = asyncio.run(go())
299
+ self.assertEqual(ids, [APP_ID, "second"])
300
+ self.assertEqual(deploy["state"], "live")
301
+ self.assertEqual(build["id"], BUILD_ID)
302
+ self.assertEqual(log["state"], "failed")
303
+ self.assertEqual([e["type"] for e in events], ["line", "terminal"])
304
+ self.assertEqual(len(repos), 2)
305
+
306
+
307
+ if __name__ == "__main__":
308
+ unittest.main()
@@ -1,4 +1,4 @@
1
- """prime-sandboxes 0.4.5's network rules, bulk waits, logs, SSH and the
1
+ """prime-sandboxes 0.4.6's network rules, bulk waits, logs, SSH and the
2
2
  surfaces this adapter refuses, against the native SDK fake."""
3
3
  import asyncio
4
4
  import sys
@@ -160,7 +160,7 @@ class Validation(unittest.TestCase):
160
160
 
161
161
  @unittest.skipUnless(os.environ.get('RUNTIME_COMPAT_OFFICIAL') == '1', 'Pinned official SDK opt-in')
162
162
  def test_pinned_official_user_signatures_and_rpc_validation_match_review(self):
163
- self.assertEqual(importlib.metadata.version('prime-sandboxes'), '0.4.5')
163
+ self.assertEqual(importlib.metadata.version('prime-sandboxes'), '0.4.6')
164
164
  from prime_sandboxes import SandboxClient as OfficialSync, AsyncSandboxClient as OfficialAsync
165
165
  from prime_sandboxes.rpc_command_session import build_command_session_start_request
166
166
  for runtime, official in ((SandboxClient, OfficialSync), (AsyncSandboxClient, OfficialAsync)):
@@ -259,7 +259,7 @@ class Validation(unittest.TestCase):
259
259
 
260
260
  @unittest.skipUnless(os.environ.get('RUNTIME_COMPAT_OFFICIAL') == '1', 'Pinned official SDK opt-in')
261
261
  def test_pinned_official_nested_request_response_and_validation_match(self):
262
- self.assertEqual(importlib.metadata.version('prime-sandboxes'), '0.4.5')
262
+ self.assertEqual(importlib.metadata.version('prime-sandboxes'), '0.4.6')
263
263
  from prime_sandboxes import models as official
264
264
  for provider in (models, official):
265
265
  request = provider.CreateSandboxRequest(name='box', docker_image='python:3.13',
@@ -0,0 +1,71 @@
1
+ """What daytona 0.225.0 changed in the calls withruntime.daytona implements,
2
+ read from its published wheel and sdist, and the npm API clients, on
3
+ 18 October 2026 (DAYTONA.md): no Python source changed; the API client's
4
+ GpuType gains B200. daytona exports GpuType, SandboxClass and the list sort
5
+ enums, which the drop-in did not, so code importing them failed to load. A
6
+ create asking for a GPU type, without a GPU count, now refuses as one with a
7
+ count already did, instead of making a CPU sandbox. Sync and async."""
8
+ import asyncio
9
+ import sys
10
+ import unittest
11
+ from pathlib import Path
12
+
13
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
14
+
15
+ from dropin_fake import DropInWorld # noqa: E402
16
+
17
+ from withruntime.daytona import (AsyncDaytona, CreateSandboxFromImageParams, # noqa: E402
18
+ CreateSandboxFromSnapshotParams, Daytona, GpuType, ListSandboxesQuery,
19
+ NotSupportedError, Resources, SandboxClass, SandboxListSortDirection,
20
+ SandboxListSortField)
21
+
22
+
23
+ class Enums(unittest.TestCase):
24
+ def test_upstreams_values(self):
25
+ self.assertEqual(GpuType.B200.value, "B200")
26
+ self.assertEqual(GpuType.RTX_PRO_6000.value, "RTX-PRO-6000")
27
+ self.assertEqual(SandboxClass.LINUX_VM.value, "linux-vm")
28
+ self.assertEqual(SandboxListSortField.MEMORYGIB.value, "memoryGib")
29
+ self.assertEqual(SandboxListSortDirection.DESC.value, "desc")
30
+
31
+ def test_sort_enums_drive_list(self):
32
+ world = DropInWorld()
33
+ daytona = Daytona(client=world.client())
34
+ for name in ("b", "a"):
35
+ daytona.create(CreateSandboxFromSnapshotParams(name=name))
36
+ listed = daytona.list(ListSandboxesQuery(sort=SandboxListSortField.NAME,
37
+ order=SandboxListSortDirection.ASC))
38
+ self.assertEqual([one.name for one in listed], ["a", "b"])
39
+
40
+
41
+ class GpuTypeOnCreate(unittest.TestCase):
42
+ def test_a_gpu_type_alone_is_refused_before_anything_is_made(self):
43
+ world = DropInWorld()
44
+ daytona = Daytona(client=world.client())
45
+ for gpu_type in (GpuType.B200, [GpuType.H100, GpuType.B200], "B200"):
46
+ with self.subTest(gpu_type=gpu_type), self.assertRaises(NotSupportedError) as raised:
47
+ daytona.create(CreateSandboxFromImageParams(image="python:3.12",
48
+ resources=Resources(gpu_type=gpu_type)))
49
+ self.assertIn("gpu_type", str(raised.exception))
50
+ self.assertEqual(world.called("images.build"), [])
51
+ self.assertEqual(world.called("sandboxes.create"), [])
52
+
53
+ def test_no_gpu_type_still_creates(self):
54
+ world = DropInWorld()
55
+ Daytona(client=world.client()).create(CreateSandboxFromImageParams(
56
+ image="python:3.12", resources=Resources(cpu=2, gpu_type=[])))
57
+ self.assertEqual(len(world.called("sandboxes.create")), 1)
58
+
59
+ def test_async(self):
60
+ world = DropInWorld()
61
+
62
+ async def scenario() -> None:
63
+ daytona = AsyncDaytona(client=world.async_client())
64
+ with self.assertRaises(NotSupportedError):
65
+ await daytona.create(CreateSandboxFromSnapshotParams(resources=Resources(gpu_type=GpuType.B200)))
66
+ asyncio.run(scenario())
67
+ self.assertEqual(world.called("sandboxes.create"), [])
68
+
69
+
70
+ if __name__ == "__main__":
71
+ unittest.main()
@@ -114,6 +114,31 @@ class IdentityTokenTest(unittest.TestCase):
114
114
  ("/v1/identity/token", "Bearer rtid1.statement.sig"),
115
115
  ])
116
116
 
117
+ def test_a_sandbox_whose_programs_lack_the_variables_asks_its_host(self):
118
+ # An older guest: no variables in the process, a file without them.
119
+ import tempfile
120
+ os.environ.pop("RUNTIME_ID_TOKEN_REQUEST_TOKEN", None)
121
+ url = os.environ.pop("RUNTIME_ID_TOKEN_REQUEST_URL")
122
+ with tempfile.NamedTemporaryFile("w", suffix=".json", delete=False) as file:
123
+ json.dump({"SSL_CERT_FILE": "/etc/ssl/certs/ca-certificates.crt"}, file)
124
+ self.addCleanup(os.unlink, file.name)
125
+ withruntime._ENVIRONMENT_FILE = file.name
126
+ Stub.current = {"RUNTIME_ID_TOKEN_REQUEST_URL": url, "RUNTIME_ID_TOKEN_REQUEST_TOKEN": "rtid1.statement.sig"}
127
+ self.assertEqual(Sandbox.identity_token("sts.amazonaws.com"), "header.payload.signature")
128
+ self.assertEqual([(path, auth) for path, _, auth in Stub.seen], [
129
+ ("/v1/environment", None),
130
+ ("/v1/identity/token", "Bearer rtid1.statement.sig"),
131
+ ])
132
+
133
+ def test_outside_a_sandbox_nothing_is_asked_over_the_network(self):
134
+ os.environ.pop("RUNTIME_ID_TOKEN_REQUEST_TOKEN", None)
135
+ Stub.current = {"RUNTIME_ID_TOKEN_REQUEST_URL": os.environ["RUNTIME_ID_TOKEN_REQUEST_URL"],
136
+ "RUNTIME_ID_TOKEN_REQUEST_TOKEN": "rtid1.statement.sig"}
137
+ with self.assertRaises(RuntimeError) as caught:
138
+ Sandbox.identity_token("sts.amazonaws.com")
139
+ self.assertEqual(caught.exception.code, "identity_unavailable")
140
+ self.assertEqual(Stub.seen, [])
141
+
117
142
  def test_outside_a_sandbox_there_is_nothing_to_ask_with(self):
118
143
  os.environ.pop("RUNTIME_ID_TOKEN_REQUEST_TOKEN", None)
119
144
  if os.path.exists("/run/runtime/environment.json"):
@@ -13,7 +13,7 @@ import zipfile
13
13
 
14
14
 
15
15
  ROOT = Path(__file__).resolve().parents[1]
16
- VERSION = "0.16.0"
16
+ VERSION = "0.17.0"
17
17
  MAX_ARTIFACT_BYTES = 16 * 1024 * 1024
18
18
  MAX_FILE_BYTES = 4 * 1024 * 1024
19
19
  MAX_METADATA_BYTES = 256 * 1024
@@ -0,0 +1,47 @@
1
+ """What prime-sandboxes 0.4.6 changed in the calls withruntime.prime
2
+ implements, read from its published wheel and sdist on 18 October 2026,
3
+ nothing installed or run (compatibility-lock.json): CreateSandboxRequest takes
4
+ lan_network_id and lan_tags, and create then joins the sandbox to that LAN
5
+ network once it runs. LAN networks are refused with Runtime's private network
6
+ as the way, so create refuses them before any sandbox is made, rather than
7
+ making one and failing at the join (or dropping it). lan_tags without
8
+ lan_network_id is upstream's ValueError. The rest of the release is an HTTP/2
9
+ pool for upstream's own command transport. Sync and async."""
10
+ import asyncio
11
+ import sys
12
+ import unittest
13
+ from pathlib import Path
14
+
15
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
16
+
17
+ from test_prime_0_4_5 import Async, Runtime # noqa: E402
18
+ from withruntime._compat import CompatibilityError # noqa: E402
19
+ from withruntime.prime import AsyncSandboxClient, CreateSandboxRequest, SandboxClient # noqa: E402
20
+
21
+
22
+ class CreateJoinsLan(unittest.TestCase):
23
+ def test_lan_tags_need_a_network(self):
24
+ with self.assertRaisesRegex(ValueError, "lan_tags requires lan_network_id"):
25
+ CreateSandboxRequest(name="box", docker_image="python:3.12-slim", lan_tags=["web"])
26
+
27
+ def test_create_with_a_lan_refuses_before_anything_is_made(self):
28
+ runtime = Runtime()
29
+ request = CreateSandboxRequest(name="box", docker_image="python:3.12-slim", lan_network_id="net",
30
+ lan_tags=["web"])
31
+ with self.assertRaisesRegex(CompatibilityError, "networks.private"):
32
+ SandboxClient(runtime).create(request)
33
+
34
+ async def run():
35
+ with self.assertRaisesRegex(CompatibilityError, "networks.private"):
36
+ await AsyncSandboxClient(runtime=Async(runtime)).create(request)
37
+ asyncio.run(run())
38
+ self.assertEqual(runtime.calls, [])
39
+
40
+ def test_the_lan_fields_dump_like_upstreams(self):
41
+ request = CreateSandboxRequest(name="box", docker_image="python:3.12-slim")
42
+ self.assertIsNone(request.lan_network_id)
43
+ self.assertNotIn("lan_network_id", request.model_dump(exclude_none=True))
44
+
45
+
46
+ if __name__ == "__main__":
47
+ unittest.main()
@@ -5,7 +5,7 @@ import unittest
5
5
  from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
6
6
 
7
7
  from withruntime import RuntimeError
8
- from withruntime.wallet import claim_wallet_account, open_wallet_account
8
+ from withruntime.wallet import claim_wallet_account, open_wallet_account, rekey_wallet_account
9
9
 
10
10
 
11
11
  class Stub(BaseHTTPRequestHandler):
@@ -50,6 +50,11 @@ class WalletTest(unittest.TestCase):
50
50
  ("/api/wallet/claim", {"claimCode": "rtclaim_nope"}, None),
51
51
  ])
52
52
 
53
+ def test_rekey_posts_the_claim_code(self):
54
+ Stub.seen = []
55
+ rekey_wallet_account("rtclaim_x", auth_url=self.url)
56
+ self.assertEqual(Stub.seen, [("/api/wallet/rekey", {"claimCode": "rtclaim_x"}, None)])
57
+
53
58
 
54
59
  if __name__ == "__main__":
55
60
  unittest.main()
@@ -106,8 +106,13 @@ def _identity_token(audience: str, lifetime_seconds: Optional[int], timeout: flo
106
106
 
107
107
  url = _os.environ.get("RUNTIME_ID_TOKEN_REQUEST_URL")
108
108
  token = _os.environ.get("RUNTIME_ID_TOKEN_REQUEST_TOKEN")
109
- if not url or not token:
110
- url, token = _file_credentials()
109
+ if (not url or not token) and _os.path.exists(_ENVIRONMENT_FILE):
110
+ # A process started without them (a server started before the guest
111
+ # wrote its environment, a sandbox whose guest software predates the
112
+ # variables) asks the host, which answers every running sandbox
113
+ # whatever its image or age, then the guest's file. Only inside a
114
+ # sandbox: elsewhere nothing is asked over the network.
115
+ url, token = _current_credentials(timeout)
111
116
  if not url or not token:
112
117
  raise RuntimeError("Identity tokens are issued only inside a Runtime sandbox (RUNTIME_ID_TOKEN_REQUEST_TOKEN is not set).",
113
118
  code="identity_unavailable")
@@ -15,8 +15,10 @@ auth, retries, idempotency keys and typed errors.
15
15
  """
16
16
  from typing import Any
17
17
 
18
+ from .apps import AsyncApps, AsyncFunctions
18
19
  from .audit import AsyncAudit
19
20
  from .browser import AsyncBrowser
21
+ from .builds import AsyncBuilds
20
22
  from .desktop import AsyncDesktop
21
23
  from .images import AsyncImages
22
24
  from .jobs import AsyncJobs
@@ -41,6 +43,9 @@ SANDBOX: dict[str, Any] = {}
41
43
  CLIENT["images"] = AsyncImages
42
44
  CLIENT["volumes"] = AsyncVolumes
43
45
  CLIENT["jobs"] = AsyncJobs
46
+ CLIENT["apps"] = AsyncApps
47
+ CLIENT["functions"] = AsyncFunctions
48
+ CLIENT["builds"] = AsyncBuilds
44
49
  CLIENT["referrals"] = AsyncReferrals
45
50
  CLIENT["billing"] = AsyncBilling
46
51
  CLIENT["limits"] = AsyncLimits