withruntime 0.16.1__tar.gz → 0.18.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.16.1 → withruntime-0.18.0}/PKG-INFO +1 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/pyproject.toml +1 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_account_errors.py +26 -0
- withruntime-0.18.0/tests/test_agents.py +309 -0
- withruntime-0.18.0/tests/test_apps_builds.py +308 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_request_scope.py +3 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_identity_token.py +25 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_package_typing.py +1 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_secrets.py +26 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/__init__.py +7 -2
- withruntime-0.18.0/withruntime/_agent_templates.py +57 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_client.py +16 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/__init__.py +7 -0
- withruntime-0.18.0/withruntime/_async_products/agents.py +336 -0
- withruntime-0.18.0/withruntime/_async_products/apps.py +289 -0
- withruntime-0.18.0/withruntime/_async_products/builds.py +273 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/secrets.py +25 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_client.py +16 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/__init__.py +7 -0
- withruntime-0.18.0/withruntime/_sync_products/agents.py +337 -0
- withruntime-0.18.0/withruntime/_sync_products/apps.py +290 -0
- withruntime-0.18.0/withruntime/_sync_products/builds.py +274 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/secrets.py +25 -1
- withruntime-0.18.0/withruntime/_version.py +1 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/PKG-INFO +1 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/SOURCES.txt +9 -0
- withruntime-0.16.1/withruntime/_version.py +0 -1
- {withruntime-0.16.1 → withruntime-0.18.0}/LICENSE +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/README.md +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/setup.cfg +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_answer_start.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_async_stream_cleanup.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_audit.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_billing.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_blaxel.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_blaxel_0_4_17.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_blaxel_0_4_18.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_blaxel_create_timeout.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_blaxel_wait_deadline.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_browser.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_capacity_wait.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_live.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_modal_deadline_errors.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_new_providers.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_prime_contract.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_prime_validation.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_disk_snapshots.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_e2b_deadline.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_e2b_pty.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_e2b_stream.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_e2b_watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_modal.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_morph.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_official.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_pins.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_processes.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_runloop.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_shell.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_snapshot_capture.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_python_sprites.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_compat_router.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_customer_usage.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_0_223_1.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_0_224_1.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_0_225_0.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_create_cleanup.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_create_options.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_download_labels.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_daytona_refusals_lifted.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_deepagents.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_2_55.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_code_interpreter.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_connection_cap.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_exports.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_fork_validation.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_upstream.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_e2b_watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_embed_and_webhook_watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_eval_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_exec_stream.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_exec_stream_names.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_exec_user.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_file_archives.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_files_download.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_files_mode.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_files_upload_parallel.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_files_write_lost_body.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_harbor.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_http_tls_close.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_image_delete_by_name.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_images_v2.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_images_volumes_interpreter.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_inspect_ai.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_interface_contract.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_jobs.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_late_answer.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_lifecycle_settings.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_limits.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_machine_engine.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_modal_1_6_2.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_modal_dropin.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_mounts.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_network_funding.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_network_products.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_observability.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_openai_agents.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_out_of_memory.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_previews_network_desktop.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_prime_0_4_5.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_prime_0_4_6.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_private_network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_process_deadline.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_process_input.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_process_object.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_process_output.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_process_write_backpressure.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_product_aliases.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_proxy.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_referrals.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_replayed_create_message.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_runloop_stream_cleanup.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_runloop_v2.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_sandbox_origin.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_sandbox_sessions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_sandboxes_delete_all.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_sandboxes_stop_all.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_saved_connection.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_signed_requests.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_snapshot_after_fork.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_snapshot_recovery.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_sso.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_start_report_kept.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_stream_cut_short.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_stream_exit_close.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_switch_image.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_switching.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_tailscale.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_tools.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_transport_body_recovery.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_transport_connection_limits.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_transport_never_sent.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_unpack.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_upload_deadline.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_vercel.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_vercel_create_validation.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_vercel_disk_snapshot.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_vercel_refusals_lifted.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_volume_backups.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_volume_operations.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_wake_awake.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_wallet.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/tests/test_watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_api_defaults.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/audit.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/billing.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/browser.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/desktop.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/images.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/interpreter.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/jobs.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/limits.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/mcp.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/mounts.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/network_products.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/observability.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/previews.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/private_network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/referrals.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/signed_requests.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/sso.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/switching.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/tailscale.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/volumes.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_async_products/watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_clock.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_compat.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_compat_lease.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_compat_lifecycle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_compat_shell.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_connection.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_errors.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_eval_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_http.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_proxy.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_renamed.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_request_scope.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/audit.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/billing.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/browser.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/desktop.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/images.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/interpreter.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/jobs.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/limits.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/mcp.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/mounts.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/network_products.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/observability.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/previews.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/private_network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/referrals.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/signed_requests.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/sso.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/switching.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/tailscale.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/volumes.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_sync_products/watch.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_tunnel.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_unpack.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/_ws.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/_async_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/_async_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/_core.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/_sync_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/agents.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/images.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/client.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/env.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/function.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/pagination.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/client/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/common.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/drive.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/errors.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/jobs.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/core/secret.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/crewai.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/googleadk.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/langgraph.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/livekit.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/llamaindex.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/openai.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/pydantic.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/blaxel/telemetry.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/_async_daytona.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/_async_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/_core.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/_sync_daytona.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/daytona/_sync_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/deepagents.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/_async_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/_async_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/_core.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/_sync_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/_sync_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/code_interpreter/models.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/connection_config.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/exceptions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/network.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox/signature.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/secret/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/logger.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/readycmd.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template_async/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template_async/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template_sync/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/template_sync/main.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/volume/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/volume/connection_config.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/volume/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/volume/volume_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/e2b/volume/volume_sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/harbor.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/inspect_ai.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_dual.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_fs_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_fs_common.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_fs_sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_lookup.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_object.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_probe.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_snapshot.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/_tunnel.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/app.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/exception.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/file_pattern_matcher.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/image.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/proxy.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/sandbox/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/sandbox/sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/sandbox_fs.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/secret.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/snapshot.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/modal/volume.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/morph/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/morph/api.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/openai_agents.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/_sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/core/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/core/client.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/exceptions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/models.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/process.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/prime/sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/py.typed +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/_exceptions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/_snapshots.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/_sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/_v2.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/lib/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/lib/polling.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/runloop/sdk/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_capture.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_capture_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_features.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_metadata.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_stream.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_stream_async.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/_translate.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/async_client.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/async_exec.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/client.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/control.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/exceptions.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/exec.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/filesystem.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/sprite.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/sprites/types.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/tools.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/_async_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/_async_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/_core.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/_sync_io.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/_sync_sandbox.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/api.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/sandbox/__init__.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/vercel/sandbox/sync.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/wallet.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime/webhooks.py +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/dependency_links.txt +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/entry_points.txt +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/requires.txt +0 -0
- {withruntime-0.16.1 → withruntime-0.18.0}/withruntime.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "withruntime"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.18.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" }
|
|
@@ -42,5 +42,31 @@ class AccountCloseTest(unittest.TestCase):
|
|
|
42
42
|
self.assertTrue(hasattr(withruntime.Runtime(api_key="rk_x"), "account"))
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
class AccountEmailsTest(unittest.TestCase):
|
|
46
|
+
"""runtime.account.emails (0921): read the key's person's optional emails,
|
|
47
|
+
or turn one on or off."""
|
|
48
|
+
|
|
49
|
+
def test_reads_and_changes_one(self) -> None:
|
|
50
|
+
from withruntime._sync_client import Account
|
|
51
|
+
|
|
52
|
+
calls: list[tuple[Any, ...]] = []
|
|
53
|
+
settings = [{"category": "own-deletions", "enabled": False, "updatedAt": None}]
|
|
54
|
+
|
|
55
|
+
class Transport:
|
|
56
|
+
def json(self, method: str, path: str, **kwargs: Any) -> dict[str, Any]:
|
|
57
|
+
calls.append((method, path, kwargs))
|
|
58
|
+
return {"settings": settings}
|
|
59
|
+
|
|
60
|
+
account = Account(Transport()) # type: ignore[arg-type]
|
|
61
|
+
self.assertEqual(account.emails(), settings)
|
|
62
|
+
self.assertEqual(account.emails("own-deletions", False), settings)
|
|
63
|
+
self.assertEqual(calls, [
|
|
64
|
+
("GET", "/v1/account/emails", {}),
|
|
65
|
+
("POST", "/v1/account/emails:update", {"body": {"category": "own-deletions", "enabled": False}}),
|
|
66
|
+
])
|
|
67
|
+
with self.assertRaises(ValueError):
|
|
68
|
+
account.emails("billing")
|
|
69
|
+
|
|
70
|
+
|
|
45
71
|
if __name__ == "__main__":
|
|
46
72
|
unittest.main()
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"""runtime.agents against a stub API, sync and async: every route with the
|
|
2
|
+
API's names, paging by ``nextCursor``, the log followed by long polls until the
|
|
3
|
+
session ends, wait(), the refusals as the SDK's own errors, and the templates
|
|
4
|
+
held to the guide's copy (packages/cloud-guide/agent-templates.json)."""
|
|
5
|
+
import asyncio
|
|
6
|
+
import json
|
|
7
|
+
import threading
|
|
8
|
+
import unittest
|
|
9
|
+
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
from urllib.parse import parse_qs, urlsplit
|
|
12
|
+
|
|
13
|
+
from withruntime import (AsyncRuntime, AuthenticationError, ConflictError, InvalidRequestError, NotFoundError,
|
|
14
|
+
PermissionDeniedError, RateLimitError, Runtime)
|
|
15
|
+
from withruntime import RuntimeError as RuntimeAPIError
|
|
16
|
+
|
|
17
|
+
AGENT_ID = "11111111-1111-4111-8111-111111111111"
|
|
18
|
+
SESSION_ID = "22222222-2222-4222-8222-222222222222"
|
|
19
|
+
TRIGGER_ID = "33333333-3333-4333-8333-333333333333"
|
|
20
|
+
AGENT = {"id": AGENT_ID, "name": "dev", "version": 1, "definition": {"command": "run"}, "labels": {},
|
|
21
|
+
"createdAt": "2026-10-18T00:00:00Z", "updatedAt": "2026-10-18T00:00:00Z"}
|
|
22
|
+
TRIGGER = {"id": TRIGGER_ID, "agentId": AGENT_ID, "kind": "github",
|
|
23
|
+
"config": {"repository": "acme/web", "installation": 42}, "pausedAt": None, "pausedWhy": None,
|
|
24
|
+
"createdAt": "2026-10-18T00:00:00Z"}
|
|
25
|
+
GUIDE = Path(__file__).resolve().parents[3] / "packages" / "cloud-guide" / "agent-templates.json"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def session(state="running", last_seq=1):
|
|
29
|
+
return {"id": SESSION_ID, "agentId": AGENT_ID, "agentVersion": 1, "key": None, "trigger": "api",
|
|
30
|
+
"state": state, "reason": None, "result": None, "sandboxId": None, "lastSeq": last_seq,
|
|
31
|
+
"labels": {}, "createdAt": "2026-10-18T00:00:00Z", "startedAt": None, "endedAt": None}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def event(seq, kind="reply", text="hi"):
|
|
35
|
+
return {"seq": seq, "kind": kind, "actor": "agent", "body": {"text": text}, "createdAt": "2026-10-18T00:00:00Z"}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
REFUSALS = {
|
|
39
|
+
"beta": (403, "product_in_beta", PermissionDeniedError),
|
|
40
|
+
"denied": (403, "permission_denied", PermissionDeniedError),
|
|
41
|
+
"missing": (404, "not_found", NotFoundError),
|
|
42
|
+
"ended": (409, "session_ended", ConflictError),
|
|
43
|
+
"taken": (409, "name_taken", ConflictError),
|
|
44
|
+
"paused": (409, "trigger_paused", ConflictError),
|
|
45
|
+
"uninstalled": (409, "not_installed", ConflictError),
|
|
46
|
+
"budget": (409, "budget_reached", ConflictError),
|
|
47
|
+
"open": (409, "session_open", ConflictError),
|
|
48
|
+
"quota": (429, "quota_exceeded", RateLimitError),
|
|
49
|
+
"invalid": (400, "invalid_request", InvalidRequestError),
|
|
50
|
+
"refused": (401, "unauthorized", AuthenticationError),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class Stub(BaseHTTPRequestHandler):
|
|
55
|
+
seen: list = []
|
|
56
|
+
mode = "ok"
|
|
57
|
+
# Each read of the log answers the next of these pages; each read of the
|
|
58
|
+
# session the next of these states. The last of each repeats.
|
|
59
|
+
pages: list = []
|
|
60
|
+
states: list = []
|
|
61
|
+
|
|
62
|
+
def log_message(self, *args):
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
def answer(self, value, status=200):
|
|
66
|
+
data = b"" if value is None else json.dumps(value).encode()
|
|
67
|
+
self.send_response(status)
|
|
68
|
+
self.send_header("content-type", "application/json")
|
|
69
|
+
self.send_header("content-length", str(len(data)))
|
|
70
|
+
self.end_headers()
|
|
71
|
+
self.wfile.write(data)
|
|
72
|
+
|
|
73
|
+
def handle_any(self):
|
|
74
|
+
length = int(self.headers.get("content-length") or 0)
|
|
75
|
+
body = json.loads(self.rfile.read(length)) if length else None
|
|
76
|
+
url = urlsplit(self.path)
|
|
77
|
+
path, query = url.path, parse_qs(url.query)
|
|
78
|
+
Stub.seen.append((self.command, path, query, body, self.headers.get("idempotency-key")))
|
|
79
|
+
if Stub.mode in REFUSALS:
|
|
80
|
+
status, code, _ = REFUSALS[Stub.mode]
|
|
81
|
+
return self.answer({"error": {"code": code, "message": f"refused: {code}", "hint": "h"}}, status)
|
|
82
|
+
method = self.command
|
|
83
|
+
if path == "/v1/agents" and method == "GET":
|
|
84
|
+
if "cursor" in query:
|
|
85
|
+
return self.answer({"data": [{**AGENT, "id": "second", "warnings": ["subscription_for_customers"]}],
|
|
86
|
+
"nextCursor": None})
|
|
87
|
+
return self.answer({"data": [AGENT], "nextCursor": "page-2"})
|
|
88
|
+
if path == "/v1/agents/sessions" and method == "GET":
|
|
89
|
+
if "cursor" in query:
|
|
90
|
+
return self.answer({"data": [{**session(), "id": "second"}], "nextCursor": None})
|
|
91
|
+
return self.answer({"data": [session()], "nextCursor": "page-2"})
|
|
92
|
+
if path.endswith("/events"):
|
|
93
|
+
page = Stub.pages.pop(0) if len(Stub.pages) > 1 else Stub.pages[0]
|
|
94
|
+
return self.answer(page)
|
|
95
|
+
if path.endswith("/messages"):
|
|
96
|
+
return self.answer({"seq": 7})
|
|
97
|
+
if path.endswith("/stop"):
|
|
98
|
+
return self.answer(session("stopped"))
|
|
99
|
+
if path == f"/v1/agents/sessions/{SESSION_ID}" and method == "DELETE":
|
|
100
|
+
return self.answer(None, 204)
|
|
101
|
+
if path == f"/v1/agents/sessions/{SESSION_ID}":
|
|
102
|
+
state = Stub.states.pop(0) if len(Stub.states) > 1 else (Stub.states or ["running"])[0]
|
|
103
|
+
return self.answer(session(state, 3))
|
|
104
|
+
if path.endswith("/sessions") and method == "POST":
|
|
105
|
+
return self.answer({"session": session("queued"), "joined": body.get("key") == "customer:42", "seq": 1},
|
|
106
|
+
200 if body.get("key") == "customer:42" else 201)
|
|
107
|
+
if path.endswith("/triggers"):
|
|
108
|
+
return self.answer({"data": [TRIGGER]} if method == "GET" else TRIGGER, 200 if method == "GET" else 201)
|
|
109
|
+
if path.startswith("/v1/agents/triggers/"):
|
|
110
|
+
if method == "DELETE":
|
|
111
|
+
return self.answer(None, 204)
|
|
112
|
+
paused = path.endswith("/pause")
|
|
113
|
+
return self.answer({**TRIGGER, "pausedAt": "x" if paused else None,
|
|
114
|
+
"pausedWhy": body["why"] if paused else None})
|
|
115
|
+
if path.startswith("/v1/agents"):
|
|
116
|
+
if method == "DELETE":
|
|
117
|
+
return self.answer(None, 204)
|
|
118
|
+
return self.answer(AGENT, 201 if method == "POST" else 200)
|
|
119
|
+
self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
|
|
120
|
+
|
|
121
|
+
do_GET = do_POST = do_PATCH = do_DELETE = handle_any
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class AgentsTest(unittest.TestCase):
|
|
125
|
+
@classmethod
|
|
126
|
+
def setUpClass(cls):
|
|
127
|
+
cls.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
|
|
128
|
+
threading.Thread(target=cls.server.serve_forever, daemon=True).start()
|
|
129
|
+
cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
|
|
130
|
+
|
|
131
|
+
@classmethod
|
|
132
|
+
def tearDownClass(cls):
|
|
133
|
+
cls.server.shutdown()
|
|
134
|
+
|
|
135
|
+
def setUp(self):
|
|
136
|
+
Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
|
|
137
|
+
|
|
138
|
+
def client(self):
|
|
139
|
+
return Runtime(api_key="rk_test", base_url=self.url, max_retries=2)
|
|
140
|
+
|
|
141
|
+
def routes(self):
|
|
142
|
+
return [(s[0], s[1]) for s in Stub.seen]
|
|
143
|
+
|
|
144
|
+
def test_every_agent_verb_calls_its_route_with_the_apis_names(self):
|
|
145
|
+
with self.client() as runtime:
|
|
146
|
+
agent = runtime.agents.create("dev", {"command": "run"}, labels={"team": "web"})
|
|
147
|
+
self.assertEqual(agent["warnings"], [])
|
|
148
|
+
runtime.agents.get("dev bot")
|
|
149
|
+
agents = list(runtime.agents.list(limit=1))
|
|
150
|
+
self.assertEqual([a["id"] for a in agents], [AGENT_ID, "second"])
|
|
151
|
+
self.assertEqual(agents[1]["warnings"], ["subscription_for_customers"])
|
|
152
|
+
self.assertEqual(runtime.agents.update(AGENT_ID, {"command": "run2"})["version"], 1)
|
|
153
|
+
self.assertIsNone(runtime.agents.delete(AGENT_ID))
|
|
154
|
+
self.assertEqual(self.routes(), [
|
|
155
|
+
("POST", "/v1/agents"), ("GET", "/v1/agents/dev%20bot"), ("GET", "/v1/agents"), ("GET", "/v1/agents"),
|
|
156
|
+
("PATCH", f"/v1/agents/{AGENT_ID}"), ("DELETE", f"/v1/agents/{AGENT_ID}")])
|
|
157
|
+
self.assertEqual(Stub.seen[0][3], {"name": "dev", "definition": {"command": "run"}, "labels": {"team": "web"}})
|
|
158
|
+
self.assertEqual(Stub.seen[2][2], {"limit": ["1"]})
|
|
159
|
+
self.assertEqual(Stub.seen[3][2], {"cursor": ["page-2"], "limit": ["1"]})
|
|
160
|
+
self.assertEqual(Stub.seen[4][3], {"definition": {"command": "run2"}})
|
|
161
|
+
# Every write carries a key, so the transport's retries never write twice.
|
|
162
|
+
self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
|
|
163
|
+
|
|
164
|
+
def test_start_send_stop_and_the_sessions_reads(self):
|
|
165
|
+
with self.client() as runtime:
|
|
166
|
+
started = runtime.agents.start("dev", "Fix the test", labels={"pr": "7"}, idempotency_key="start-1")
|
|
167
|
+
self.assertEqual((started.id, started.state, started.joined, started.seq), (SESSION_ID, "queued", False, 1))
|
|
168
|
+
joined = runtime.agents.start(AGENT_ID, "Hello", key="customer:42")
|
|
169
|
+
self.assertTrue(joined.joined)
|
|
170
|
+
self.assertEqual(started.send("More words", idempotency_key="words-1"), 7)
|
|
171
|
+
self.assertEqual(started.stop()["state"], "stopped")
|
|
172
|
+
self.assertTrue(started.ended)
|
|
173
|
+
again = runtime.agents.sessions.get(SESSION_ID)
|
|
174
|
+
self.assertEqual((again.id, again.joined, again.seq), (SESSION_ID, False, 3))
|
|
175
|
+
listed = runtime.agents.sessions.list(agent="dev", state="running")
|
|
176
|
+
self.assertEqual([s["id"] for s in listed], [SESSION_ID, "second"])
|
|
177
|
+
self.assertIsNone(runtime.agents.sessions.delete(SESSION_ID))
|
|
178
|
+
base = f"/v1/agents/sessions/{SESSION_ID}"
|
|
179
|
+
self.assertEqual(self.routes(), [
|
|
180
|
+
("POST", "/v1/agents/dev/sessions"), ("POST", f"/v1/agents/{AGENT_ID}/sessions"),
|
|
181
|
+
("POST", f"{base}/messages"), ("POST", f"{base}/stop"), ("GET", base),
|
|
182
|
+
("GET", "/v1/agents/sessions"), ("GET", "/v1/agents/sessions"), ("DELETE", base)])
|
|
183
|
+
self.assertEqual(Stub.seen[0][3], {"input": "Fix the test", "labels": {"pr": "7"}})
|
|
184
|
+
self.assertEqual(Stub.seen[0][4], "start-1")
|
|
185
|
+
self.assertEqual(Stub.seen[1][3], {"input": "Hello", "key": "customer:42"})
|
|
186
|
+
self.assertEqual(Stub.seen[2][3], {"text": "More words"})
|
|
187
|
+
self.assertEqual(Stub.seen[2][4], "words-1")
|
|
188
|
+
self.assertEqual(Stub.seen[5][2], {"agent": ["dev"], "state": ["running"]})
|
|
189
|
+
self.assertEqual(Stub.seen[6][2], {"agent": ["dev"], "state": ["running"], "cursor": ["page-2"]})
|
|
190
|
+
self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
|
|
191
|
+
|
|
192
|
+
def test_events_long_poll_from_after_and_drain_the_log_once_it_ended(self):
|
|
193
|
+
Stub.pages = [
|
|
194
|
+
{"data": [event(1, "input", "Fix it"), event(2, "status", "on it")], "ended": False},
|
|
195
|
+
{"data": [], "ended": False},
|
|
196
|
+
{"data": [event(3, "result", "https://github.com/acme/web/pull/7")], "ended": True},
|
|
197
|
+
{"data": [event(4, "note", "sandbox deleted")], "ended": True},
|
|
198
|
+
{"data": [], "ended": True},
|
|
199
|
+
]
|
|
200
|
+
with self.client() as runtime:
|
|
201
|
+
handle = runtime.agents.sessions.get(SESSION_ID)
|
|
202
|
+
events = list(handle.events())
|
|
203
|
+
self.assertEqual([e["seq"] for e in events], [1, 2, 3, 4])
|
|
204
|
+
self.assertEqual(events[2]["body"]["text"], "https://github.com/acme/web/pull/7")
|
|
205
|
+
reads = [s[2] for s in Stub.seen if s[1].endswith("/events")]
|
|
206
|
+
self.assertEqual(reads, [
|
|
207
|
+
{"after": ["0"], "wait": ["30"]}, {"after": ["2"], "wait": ["30"]}, {"after": ["2"], "wait": ["30"]},
|
|
208
|
+
{"after": ["3"], "wait": ["0"]}, {"after": ["4"], "wait": ["0"]}])
|
|
209
|
+
|
|
210
|
+
def test_events_start_after_a_given_seq(self):
|
|
211
|
+
with self.client() as runtime:
|
|
212
|
+
self.assertEqual(list(runtime.agents.sessions.get(SESSION_ID).events(after=9)), [])
|
|
213
|
+
self.assertEqual([s[2] for s in Stub.seen if s[1].endswith("/events")], [{"after": ["9"], "wait": ["30"]}])
|
|
214
|
+
|
|
215
|
+
def test_wait_follows_the_log_until_the_session_ended_and_returns_it(self):
|
|
216
|
+
Stub.states = ["running", "running", "waiting", "failed"]
|
|
217
|
+
Stub.pages = [{"data": [event(4)], "ended": False}, {"data": [], "ended": True}]
|
|
218
|
+
with self.client() as runtime:
|
|
219
|
+
handle = runtime.agents.sessions.get(SESSION_ID)
|
|
220
|
+
ended = handle.wait()
|
|
221
|
+
# A failed session is returned, not raised.
|
|
222
|
+
self.assertEqual(ended["state"], "failed")
|
|
223
|
+
self.assertEqual(handle.state, "failed")
|
|
224
|
+
base = f"/v1/agents/sessions/{SESSION_ID}"
|
|
225
|
+
self.assertEqual(self.routes(), [("GET", base), ("GET", base), ("GET", f"{base}/events"), ("GET", base),
|
|
226
|
+
("GET", f"{base}/events"), ("GET", base)])
|
|
227
|
+
self.assertTrue(all(s[2] == {"after": ["3"], "wait": ["30"]} for s in Stub.seen if s[1].endswith("/events")))
|
|
228
|
+
|
|
229
|
+
def test_a_wait_past_its_deadline_says_timeout(self):
|
|
230
|
+
Stub.states = ["running"]
|
|
231
|
+
Stub.pages = [{"data": [], "ended": False}]
|
|
232
|
+
with self.client() as runtime:
|
|
233
|
+
handle = runtime.agents.sessions.get(SESSION_ID)
|
|
234
|
+
with self.assertRaises(RuntimeAPIError) as caught:
|
|
235
|
+
handle.wait(timeout=0.3)
|
|
236
|
+
self.assertEqual(caught.exception.code, "timeout")
|
|
237
|
+
with self.assertRaises(InvalidRequestError):
|
|
238
|
+
handle.wait(timeout=-1)
|
|
239
|
+
|
|
240
|
+
def test_every_trigger_verb_calls_its_route(self):
|
|
241
|
+
with self.client() as runtime:
|
|
242
|
+
created = runtime.agents.triggers.create("dev", "github", {"repository": "acme/web", "installation": 42})
|
|
243
|
+
self.assertEqual(created["config"]["installation"], 42)
|
|
244
|
+
self.assertEqual(runtime.agents.triggers.list("dev")[0]["id"], TRIGGER_ID)
|
|
245
|
+
self.assertEqual(runtime.agents.triggers.pause(TRIGGER_ID, "release freeze")["pausedWhy"], "release freeze")
|
|
246
|
+
self.assertIsNone(runtime.agents.triggers.resume(TRIGGER_ID)["pausedAt"])
|
|
247
|
+
self.assertIsNone(runtime.agents.triggers.delete(TRIGGER_ID))
|
|
248
|
+
base = f"/v1/agents/triggers/{TRIGGER_ID}"
|
|
249
|
+
self.assertEqual(self.routes(), [
|
|
250
|
+
("POST", "/v1/agents/dev/triggers"), ("GET", "/v1/agents/dev/triggers"), ("POST", f"{base}/pause"),
|
|
251
|
+
("POST", f"{base}/resume"), ("DELETE", base)])
|
|
252
|
+
self.assertEqual(Stub.seen[0][3], {"kind": "github", "config": {"repository": "acme/web", "installation": 42}})
|
|
253
|
+
self.assertEqual(Stub.seen[2][3], {"why": "release freeze"})
|
|
254
|
+
|
|
255
|
+
def test_refusals_are_the_sdks_own_errors(self):
|
|
256
|
+
for mode, (status, code, kind) in REFUSALS.items():
|
|
257
|
+
Stub.seen, Stub.mode = [], mode
|
|
258
|
+
with self.client() as runtime:
|
|
259
|
+
with self.assertRaises(kind) as caught:
|
|
260
|
+
runtime.agents.start("dev", "hi")
|
|
261
|
+
self.assertEqual((caught.exception.code, caught.exception.status), (code, status))
|
|
262
|
+
# A 429 is retried as every product's is (with the same key); the rest are refused once.
|
|
263
|
+
self.assertEqual(len(Stub.seen), 3 if status == 429 else 1, mode)
|
|
264
|
+
|
|
265
|
+
def test_templates_are_the_guides_and_merge_a_use_over_a_harness(self):
|
|
266
|
+
with self.client() as runtime:
|
|
267
|
+
templates = runtime.agents.templates
|
|
268
|
+
self.assertEqual(list(templates), ["claude-code", "codex", "gemini-cli", "claude-agent-sdk",
|
|
269
|
+
"openai-agents-sdk"])
|
|
270
|
+
if GUIDE.exists():
|
|
271
|
+
guide = json.loads(GUIDE.read_text())
|
|
272
|
+
self.assertEqual({"templates": dict(templates), "uses": templates.uses}, guide)
|
|
273
|
+
definition = templates.definition("claude-code", use="support")
|
|
274
|
+
self.assertEqual(definition, {**templates["claude-code"]["definition"], "template": "support", "vcpu": 1,
|
|
275
|
+
"memoryMiB": 1024, "idlePauseSeconds": 10, "maxConcurrent": 1000})
|
|
276
|
+
definition["vcpu"] = 16
|
|
277
|
+
self.assertEqual(templates.definition("codex"), {"command": templates["codex"]["command"],
|
|
278
|
+
"secrets": ["OPENAI_API_KEY"]})
|
|
279
|
+
self.assertEqual(templates.definition("claude-code", "support")["vcpu"], 1)
|
|
280
|
+
self.assertEqual(templates.definition("gemini-cli", "team")["memoryMiB"], 8192)
|
|
281
|
+
for template, use in (("nope", None), ("codex", "nope")):
|
|
282
|
+
with self.assertRaises(InvalidRequestError):
|
|
283
|
+
templates.definition(template, use)
|
|
284
|
+
self.assertEqual(Stub.seen, [])
|
|
285
|
+
|
|
286
|
+
def test_async_clients_await_and_iterate_the_same_way(self):
|
|
287
|
+
Stub.pages = [{"data": [event(1), event(2)], "ended": True}, {"data": [], "ended": True}]
|
|
288
|
+
Stub.states = ["done"]
|
|
289
|
+
|
|
290
|
+
async def go():
|
|
291
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=2) as runtime:
|
|
292
|
+
await runtime.agents.create("dev", runtime.agents.templates.definition("codex", "team"))
|
|
293
|
+
ids = [a["id"] async for a in await runtime.agents.list()]
|
|
294
|
+
handle = await runtime.agents.start("dev", "go")
|
|
295
|
+
seq = await handle.send("more")
|
|
296
|
+
events = [e["seq"] async for e in handle.events()]
|
|
297
|
+
ended = await handle.wait()
|
|
298
|
+
triggers = await runtime.agents.triggers.list("dev")
|
|
299
|
+
sessions = await (await runtime.agents.sessions.list()).to_list()
|
|
300
|
+
return ids, seq, events, ended, triggers, sessions
|
|
301
|
+
ids, seq, events, ended, triggers, sessions = asyncio.run(go())
|
|
302
|
+
self.assertEqual(ids, [AGENT_ID, "second"])
|
|
303
|
+
self.assertEqual((seq, events, ended["state"]), (7, [1, 2], "done"))
|
|
304
|
+
self.assertEqual((len(triggers), len(sessions)), (1, 2))
|
|
305
|
+
self.assertEqual(Stub.seen[0][3]["definition"]["template"], "team")
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
if __name__ == "__main__":
|
|
309
|
+
unittest.main()
|