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