withruntime 0.35.0__tar.gz → 0.43.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.35.0/withruntime.egg-info → withruntime-0.43.0}/PKG-INFO +1 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/pyproject.toml +1 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_agents.py +91 -5
- withruntime-0.43.0/tests/test_browsers.py +117 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_ci.py +2 -2
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_observability.py +23 -2
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_package_typing.py +1 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_secrets.py +54 -3
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_agent_templates.py +7 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_client.py +6 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/__init__.py +2 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/agents.py +189 -5
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/apps.py +1 -1
- withruntime-0.43.0/withruntime/_async_products/browsers.py +115 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/ci.py +6 -3
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/observability.py +10 -4
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/secrets.py +60 -11
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_client.py +6 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/__init__.py +2 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/agents.py +189 -5
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/apps.py +1 -1
- withruntime-0.43.0/withruntime/_sync_products/browsers.py +116 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/ci.py +6 -3
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/observability.py +10 -4
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/secrets.py +60 -11
- withruntime-0.43.0/withruntime/_trace.py +32 -0
- withruntime-0.43.0/withruntime/_version.py +1 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/_core.py +1 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/_async_sandbox.py +9 -8
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/_sync_sandbox.py +9 -8
- {withruntime-0.35.0 → withruntime-0.43.0/withruntime.egg-info}/PKG-INFO +1 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime.egg-info/SOURCES.txt +4 -0
- withruntime-0.35.0/withruntime/_version.py +0 -1
- {withruntime-0.35.0 → withruntime-0.43.0}/LICENSE +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/README.md +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/setup.cfg +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_account_errors.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_answer_start.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_apps_builds.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_async_stream_cleanup.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_audit.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_billing.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_blaxel.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_blaxel_0_4_17.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_blaxel_0_4_18.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_blaxel_create_timeout.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_blaxel_wait_deadline.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_browser.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_capacity_wait.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_live.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_modal_deadline_errors.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_new_providers.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_prime_contract.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_prime_validation.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_disk_snapshots.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_e2b_deadline.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_e2b_pty.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_e2b_stream.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_e2b_watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_modal.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_morph.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_official.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_pins.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_processes.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_request_scope.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_runloop.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_shell.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_snapshot_capture.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_python_sprites.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_compat_router.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_customer_usage.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_0_223_1.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_0_224_1.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_0_225_0.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_create_cleanup.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_create_options.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_download_labels.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_daytona_refusals_lifted.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_deepagents.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_2_55.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_code_interpreter.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_connection_cap.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_exports.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_fork_validation.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_upstream.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_e2b_watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_embed_and_webhook_watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_eval_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_exec_stream.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_exec_stream_names.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_exec_user.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_file_archives.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_files_download.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_files_mode.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_files_upload_parallel.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_files_write_lost_body.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_harbor.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_http_tls_close.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_identity_token.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_image_delete_by_name.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_images_v2.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_images_volumes_interpreter.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_inspect_ai.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_interface_contract.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_jobs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_late_answer.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_lifecycle_settings.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_limits.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_machine_engine.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_modal_1_6_2.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_modal_dropin.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_modal_examples.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_modal_jobs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_mounts.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_network_funding.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_network_products.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_openai_agents.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_out_of_memory.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_plans.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_previews_network_desktop.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_prime_0_4_5.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_prime_0_4_6.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_prime_0_4_7.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_private_network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_process_deadline.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_process_input.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_process_object.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_process_output.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_process_write_backpressure.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_product_aliases.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_proxy.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_referrals.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_replayed_create_message.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_reservations.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_runloop_stream_cleanup.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_runloop_v2.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_sandbox_origin.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_sandbox_sessions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_sandboxes_delete_all.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_sandboxes_stop_all.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_saved_connection.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_signed_requests.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_snapshot_after_fork.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_snapshot_recovery.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_sso.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_start_report_kept.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_stream_cut_short.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_stream_exit_close.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_switch_image.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_switching.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_tailscale.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_tools.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_trace_files.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_transport_body_recovery.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_transport_connection_limits.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_transport_never_sent.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_unpack.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_upload_deadline.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_usage_export.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_vercel.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_vercel_create_validation.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_vercel_disk_snapshot.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_vercel_refusals_lifted.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_volume_backups.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_volume_operations.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_wake_awake.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_wallet.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/tests/test_watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_api_defaults.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/audit.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/billing.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/browser.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/builds.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/containers.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/desktop.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/images.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/interpreter.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/jobs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/limits.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/mcp.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/mounts.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/network_products.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/plans.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/previews.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/private_network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/referrals.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/reservations.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/signed_requests.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/sso.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/switching.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/tailscale.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/volumes.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_async_products/watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_clock.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_compat.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_compat_lease.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_compat_lifecycle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_compat_shell.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_connection.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_errors.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_eval_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_http.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_proxy.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_renamed.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_request_scope.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/audit.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/billing.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/browser.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/builds.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/containers.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/desktop.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/images.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/interpreter.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/jobs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/limits.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/mcp.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/mounts.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/network_products.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/plans.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/previews.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/private_network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/referrals.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/reservations.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/signed_requests.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/sso.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/switching.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/tailscale.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/volumes.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_sync_products/watch.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_tunnel.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_unpack.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/_ws.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/_async_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/_async_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/_core.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/_sync_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/agents.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/images.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/client.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/env.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/function.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/pagination.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/client/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/common.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/drive.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/errors.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/jobs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/core/secret.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/crewai.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/googleadk.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/langgraph.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/livekit.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/llamaindex.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/openai.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/pydantic.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/blaxel/telemetry.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/_async_daytona.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/_async_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/_sync_daytona.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/daytona/_sync_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/deepagents.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/_async_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/_core.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/_sync_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/code_interpreter/models.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/connection_config.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/exceptions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/network.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox/signature.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/secret/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/logger.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/readycmd.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template_async/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template_async/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template_sync/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/template_sync/main.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/volume/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/volume/connection_config.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/volume/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/volume/volume_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/e2b/volume/volume_sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/harbor.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/inspect_ai.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/__main__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_dual.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_fs_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_fs_common.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_fs_sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_functions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_job_runner.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_lookup.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_object.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_probe.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_snapshot.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/_tunnel.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/app.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/container_process.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/exception.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/file_pattern_matcher.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/image.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/io_streams.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/output.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/proxy.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/sandbox/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/sandbox/sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/sandbox_fs.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/secret.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/snapshot.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/stream_type.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/modal/volume.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/morph/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/morph/api.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/openai_agents.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/_sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/core/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/core/client.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/exceptions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/models.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/process.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/prime/sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/py.typed +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/_exceptions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/_snapshots.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/_sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/_v2.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/lib/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/lib/polling.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/runloop/sdk/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_capture.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_capture_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_features.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_metadata.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_stream.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_stream_async.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/_translate.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/async_client.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/async_exec.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/client.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/control.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/exceptions.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/exec.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/filesystem.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/sprite.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/sprites/types.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/tools.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/_async_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/_async_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/_core.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/_sync_io.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/_sync_sandbox.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/api.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/sandbox/__init__.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/vercel/sandbox/sync.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/wallet.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime/webhooks.py +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime.egg-info/dependency_links.txt +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime.egg-info/entry_points.txt +0 -0
- {withruntime-0.35.0 → withruntime-0.43.0}/withruntime.egg-info/requires.txt +0 -0
- {withruntime-0.35.0 → withruntime-0.43.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.43.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" }
|
|
@@ -80,6 +80,8 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
80
80
|
states: list = []
|
|
81
81
|
# When set, what a read of one session answers.
|
|
82
82
|
record = None
|
|
83
|
+
# The version a read of the workflow answers; each long poll adds one.
|
|
84
|
+
version = 1
|
|
83
85
|
# The server of the test now running.
|
|
84
86
|
live = None
|
|
85
87
|
|
|
@@ -120,6 +122,16 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
120
122
|
if method == "DELETE":
|
|
121
123
|
return self.answer({"deleted": True})
|
|
122
124
|
return self.answer({**MEMORY, "content": "tea, no sugar"})
|
|
125
|
+
if path == "/v1/agents/slack/installs":
|
|
126
|
+
return self.answer({"url": "https://withruntime.com/api/account/agents/slack/start?install=s",
|
|
127
|
+
"expiresAt": "2026-10-26T17:15:00.000Z"}, 201)
|
|
128
|
+
if path == "/v1/agents/slack/teams":
|
|
129
|
+
return self.answer({"data": [{"team": "T0ACME", "name": "Acme", "botUser": "U0BOT",
|
|
130
|
+
"installedAt": "2026-10-26T17:00:00.000Z"}]})
|
|
131
|
+
if path.startswith("/v1/agents/slack/teams/"):
|
|
132
|
+
return self.answer({"team": path.rsplit("/", 1)[1], "removed": True})
|
|
133
|
+
if path.startswith("/v1/agents/workflows"):
|
|
134
|
+
return self.workflow_route(method, path, query)
|
|
123
135
|
if path == "/v1/agents/asks":
|
|
124
136
|
return self.answer({"data": [ASK], "nextCursor": None})
|
|
125
137
|
if path.startswith("/v1/agents/asks/"):
|
|
@@ -179,9 +191,40 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
179
191
|
return self.answer(AGENT, 201 if method == "POST" else 200)
|
|
180
192
|
self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
|
|
181
193
|
|
|
194
|
+
def workflow_route(self, method, path, query):
|
|
195
|
+
base = f"/v1/agents/workflows/{WORKFLOW_ID}"
|
|
196
|
+
if path == "/v1/agents/workflows":
|
|
197
|
+
return self.answer(workflow(1), 201) if method == "POST" else self.answer(
|
|
198
|
+
{"data": [workflow(1)], "nextCursor": None})
|
|
199
|
+
if path == f"{base}/steps":
|
|
200
|
+
return self.answer({"data": [STEP], "nextCursor": None})
|
|
201
|
+
if path == f"{base}/stop":
|
|
202
|
+
return self.answer(workflow(9, "stopped"))
|
|
203
|
+
if "wait" not in query:
|
|
204
|
+
return self.answer(workflow(Stub.version))
|
|
205
|
+
# Each long poll answers the next version; the third has ended.
|
|
206
|
+
Stub.version += 1
|
|
207
|
+
return self.answer(workflow(Stub.version, "done", '["X", "Y"]') if Stub.version >= 3
|
|
208
|
+
else workflow(Stub.version))
|
|
209
|
+
|
|
182
210
|
do_GET = do_POST = do_PATCH = do_PUT = do_DELETE = handle_any
|
|
183
211
|
|
|
184
212
|
|
|
213
|
+
WORKFLOW_ID = "55555555-5555-4555-8555-555555555555"
|
|
214
|
+
STEP = {"phase": "fix", "item": 0, "itemText": "a.ts", "state": "done", "reason": "done", "result": "ok",
|
|
215
|
+
"sessionId": CHILD_ID, "createdAt": "2026-10-18T00:00:00Z", "startedAt": None, "endedAt": None}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def workflow(version, state="running", result=None):
|
|
219
|
+
return {"id": WORKFLOW_ID, "name": "triage", "state": state, "reason": None if state == "running" else "done",
|
|
220
|
+
"result": result, "parentSessionId": None, "spec": {}, "maxSessions": 100, "maxConcurrent": 20,
|
|
221
|
+
"maxDollars": 10, "started": 2, "version": version, "labels": {},
|
|
222
|
+
"phases": [{"name": "fix", "agentId": AGENT_ID, "total": 2, "ready": True, "pending": 0,
|
|
223
|
+
"running": 0, "done": 2, "failed": 0}],
|
|
224
|
+
"cost": {"dollars": 0, "vcpuSeconds": 0, "gibSeconds": 0}, "createdAt": "2026-10-18T00:00:00Z",
|
|
225
|
+
"updatedAt": "2026-10-18T00:00:00Z", "endedAt": None}
|
|
226
|
+
|
|
227
|
+
|
|
185
228
|
ASK = {"id": "ask-1", "step": "bucket-cap", "question": "Raise the cap?", "options": [{"label": "Raise"}],
|
|
186
229
|
"pick": "Raise", "state": "open", "sessions": [{"sessionId": SESSION_ID, "state": "asking", "seq": 2}]}
|
|
187
230
|
|
|
@@ -201,6 +244,7 @@ class AgentsTest(unittest.TestCase):
|
|
|
201
244
|
Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
|
|
202
245
|
Stub.auth = []
|
|
203
246
|
Stub.record = None
|
|
247
|
+
Stub.version = 1
|
|
204
248
|
|
|
205
249
|
def tearDown(self):
|
|
206
250
|
self.server.shutdown()
|
|
@@ -238,6 +282,7 @@ class AgentsTest(unittest.TestCase):
|
|
|
238
282
|
self.assertEqual((started.id, started.state, started.joined, started.seq), (SESSION_ID, "queued", False, 1))
|
|
239
283
|
joined = runtime.agents.start(AGENT_ID, "Hello", key="customer:42")
|
|
240
284
|
self.assertTrue(joined.joined)
|
|
285
|
+
runtime.agents.start("dev", "Summarize", overrides={"model": "claude-haiku-5-5", "disallowedTools": ["Bash"]})
|
|
241
286
|
self.assertEqual(started.send("More words", idempotency_key="words-1"), 7)
|
|
242
287
|
self.assertEqual(started.stop()["state"], "stopped")
|
|
243
288
|
self.assertTrue(started.ended)
|
|
@@ -249,15 +294,18 @@ class AgentsTest(unittest.TestCase):
|
|
|
249
294
|
base = f"/v1/agents/sessions/{SESSION_ID}"
|
|
250
295
|
self.assertEqual(self.routes(), [
|
|
251
296
|
("POST", "/v1/agents/dev/sessions"), ("POST", f"/v1/agents/{AGENT_ID}/sessions"),
|
|
297
|
+
("POST", "/v1/agents/dev/sessions"),
|
|
252
298
|
("POST", f"{base}/messages"), ("POST", f"{base}/stop"), ("GET", base),
|
|
253
299
|
("GET", "/v1/agents/sessions"), ("GET", "/v1/agents/sessions"), ("DELETE", base)])
|
|
254
300
|
self.assertEqual(Stub.seen[0][3], {"input": "Fix the test", "labels": {"pr": "7"}})
|
|
255
301
|
self.assertEqual(Stub.seen[0][4], "start-1")
|
|
256
302
|
self.assertEqual(Stub.seen[1][3], {"input": "Hello", "key": "customer:42"})
|
|
257
|
-
self.assertEqual(Stub.seen[2][3], {"
|
|
258
|
-
|
|
259
|
-
self.assertEqual(Stub.seen[
|
|
260
|
-
self.assertEqual(Stub.seen[
|
|
303
|
+
self.assertEqual(Stub.seen[2][3], {"input": "Summarize",
|
|
304
|
+
"overrides": {"model": "claude-haiku-5-5", "disallowedTools": ["Bash"]}})
|
|
305
|
+
self.assertEqual(Stub.seen[3][3], {"text": "More words"})
|
|
306
|
+
self.assertEqual(Stub.seen[3][4], "words-1")
|
|
307
|
+
self.assertEqual(Stub.seen[6][2], {"agent": ["dev"], "state": ["running"]})
|
|
308
|
+
self.assertEqual(Stub.seen[7][2], {"agent": ["dev"], "state": ["running"], "cursor": ["page-2"]})
|
|
261
309
|
self.assertTrue(all(s[4] for s in Stub.seen if s[0] != "GET"))
|
|
262
310
|
|
|
263
311
|
def test_children_and_tree_lists_read_by_parent_root_and_deleted(self):
|
|
@@ -385,6 +433,25 @@ class AgentsTest(unittest.TestCase):
|
|
|
385
433
|
query = Stub.seen[0][2]
|
|
386
434
|
self.assertEqual((query["state"], query["label"]), (["open", "expired"], ["team:infra"]))
|
|
387
435
|
|
|
436
|
+
def test_a_workflow_runs_is_followed_by_version_with_a_long_poll_and_lists_its_steps(self):
|
|
437
|
+
spec = {"agent": "dev", "phases": [{"name": "fix", "input": "Fix {{item}}", "each": ["a.ts", "b.ts"]}]}
|
|
438
|
+
with self.client() as runtime:
|
|
439
|
+
flow = runtime.agents.workflows.run(spec, idempotency_key="wf-1")
|
|
440
|
+
self.assertEqual((flow.id, flow.state), (WORKFLOW_ID, "running"))
|
|
441
|
+
self.assertEqual([w["version"] for w in flow.follow()], [2, 3])
|
|
442
|
+
self.assertEqual((flow.state, flow.workflow["result"]), ("done", '["X", "Y"]'))
|
|
443
|
+
Stub.version = 1
|
|
444
|
+
self.assertEqual(runtime.agents.workflows.get(WORKFLOW_ID).wait()["state"], "done")
|
|
445
|
+
self.assertEqual([x["itemText"] for x in flow.steps(state="done")], ["a.ts"])
|
|
446
|
+
self.assertEqual([w["id"] for w in runtime.agents.workflows.list(state=["running"])], [WORKFLOW_ID])
|
|
447
|
+
self.assertEqual(flow.stop()["state"], "stopped")
|
|
448
|
+
base = f"/v1/agents/workflows/{WORKFLOW_ID}"
|
|
449
|
+
self.assertEqual(Stub.seen[0][3], spec)
|
|
450
|
+
self.assertEqual(Stub.seen[0][4], "wf-1")
|
|
451
|
+
polls = [s[2] for s in Stub.seen if "wait" in s[2]]
|
|
452
|
+
self.assertEqual(polls[:2], [{"after": ["0"], "wait": ["30"]}, {"after": ["2"], "wait": ["30"]}])
|
|
453
|
+
self.assertEqual(self.routes()[-3:], [
|
|
454
|
+
("GET", f"{base}/steps"), ("GET", "/v1/agents/workflows"), ("POST", f"{base}/stop")])
|
|
388
455
|
def test_a_held_tool_call_is_approved_or_denied_with_its_message(self):
|
|
389
456
|
with self.client() as runtime:
|
|
390
457
|
self.assertEqual(runtime.agents.asks.approve("ask-1")["answer"], {"option": "Allow"})
|
|
@@ -416,6 +483,15 @@ class AgentsTest(unittest.TestCase):
|
|
|
416
483
|
self.assertEqual(Stub.auth[2], "Bearer rtat_secret_1234567890")
|
|
417
484
|
self.assertEqual(Stub.auth[1], "Bearer rk_test")
|
|
418
485
|
|
|
486
|
+
def test_slack_install_teams_and_remove_call_their_routes(self):
|
|
487
|
+
with self.client() as runtime:
|
|
488
|
+
self.assertIn("/api/account/agents/slack/start", runtime.agents.slack.install()["url"])
|
|
489
|
+
self.assertEqual([w["team"] for w in runtime.agents.slack.teams()], ["T0ACME"])
|
|
490
|
+
self.assertIsNone(runtime.agents.slack.remove("T0ACME"))
|
|
491
|
+
self.assertEqual(self.routes(), [
|
|
492
|
+
("POST", "/v1/agents/slack/installs"), ("GET", "/v1/agents/slack/teams"),
|
|
493
|
+
("DELETE", "/v1/agents/slack/teams/T0ACME")])
|
|
494
|
+
|
|
419
495
|
def test_every_memory_verb_calls_its_route_with_the_scope_in_the_query(self):
|
|
420
496
|
with self.client() as runtime:
|
|
421
497
|
page = runtime.agents.memory.list("dev", prefix="notes/", limit=1)
|
|
@@ -465,7 +541,7 @@ class AgentsTest(unittest.TestCase):
|
|
|
465
541
|
with self.client() as runtime:
|
|
466
542
|
templates = runtime.agents.templates
|
|
467
543
|
self.assertEqual(list(templates), ["claude-code", "codex", "gemini-cli", "claude-agent-sdk",
|
|
468
|
-
"openai-agents-sdk", "review", "judge"])
|
|
544
|
+
"openai-agents-sdk", "review", "judge", "browser"])
|
|
469
545
|
# The reviewer's model keys are its pool of Claude accounts.
|
|
470
546
|
self.assertEqual(templates.definition("review")["pool"], ["ANTHROPIC_API_KEY"])
|
|
471
547
|
self.assertEqual(templates.definition("review", "team")["vcpu"], 4)
|
|
@@ -529,6 +605,16 @@ class AgentsTest(unittest.TestCase):
|
|
|
529
605
|
[{"parent": [SESSION_ID]}, {"parent": [SESSION_ID], "cursor": ["page-2"]}])
|
|
530
606
|
self.assertEqual(Stub.seen[0][3]["definition"]["template"], "team")
|
|
531
607
|
|
|
608
|
+
def test_an_async_workflow_follows_and_waits_the_same_way(self):
|
|
609
|
+
async def go():
|
|
610
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=2) as runtime:
|
|
611
|
+
flow = await runtime.agents.workflows.run({"agent": "dev", "phases": []})
|
|
612
|
+
versions = [w["version"] async for w in flow.follow()]
|
|
613
|
+
steps = await (await flow.steps()).to_list()
|
|
614
|
+
return versions, (await flow.wait())["result"], steps
|
|
615
|
+
versions, result, steps = asyncio.run(go())
|
|
616
|
+
self.assertEqual((versions, result, steps), ([2, 3], '["X", "Y"]', [STEP]))
|
|
617
|
+
|
|
532
618
|
|
|
533
619
|
if __name__ == "__main__":
|
|
534
620
|
unittest.main()
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"""runtime.browsers against a stub API, sync and async: a run started in one
|
|
2
|
+
call and followed by long polls on its steps until it ends, every runs route
|
|
3
|
+
with the API's names, and a refused model key returned, not raised."""
|
|
4
|
+
import asyncio
|
|
5
|
+
import json
|
|
6
|
+
import threading
|
|
7
|
+
import unittest
|
|
8
|
+
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
9
|
+
from urllib.parse import parse_qs, urlsplit
|
|
10
|
+
|
|
11
|
+
from withruntime import AsyncRuntime, Runtime
|
|
12
|
+
|
|
13
|
+
RUN_ID = "66666666-6666-4666-8666-666666666666"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def run(state, **fields):
|
|
17
|
+
return {"id": RUN_ID, "state": state, "task": "Find the title", "model": "claude-sonnet-5-5",
|
|
18
|
+
"startUrl": None, "output": None, "error": None, "steps": 0, "url": None, "sandboxId": None,
|
|
19
|
+
"labels": {}, "createdAt": "2026-10-26T00:00:00Z", "startedAt": None, "endedAt": None, **fields}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Stub(BaseHTTPRequestHandler):
|
|
23
|
+
seen: list = []
|
|
24
|
+
# Each read of the run answers the next of these; the last repeats.
|
|
25
|
+
states: list = []
|
|
26
|
+
|
|
27
|
+
def log_message(self, *args):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
def answer(self, value, status=200):
|
|
31
|
+
body = json.dumps(value).encode()
|
|
32
|
+
self.send_response(status)
|
|
33
|
+
self.send_header("content-type", "application/json")
|
|
34
|
+
self.send_header("content-length", str(len(body)))
|
|
35
|
+
self.end_headers()
|
|
36
|
+
self.wfile.write(body)
|
|
37
|
+
|
|
38
|
+
def handle_any(self):
|
|
39
|
+
url = urlsplit(self.path)
|
|
40
|
+
length = int(self.headers.get("content-length") or 0)
|
|
41
|
+
body = json.loads(self.rfile.read(length)) if length else None
|
|
42
|
+
query = {k: v[0] for k, v in parse_qs(url.query).items()}
|
|
43
|
+
Stub.seen.append((self.command, url.path, body if self.command == "POST" else query))
|
|
44
|
+
if url.path == "/v1/browsers/runs" and self.command == "POST":
|
|
45
|
+
return self.answer(run("queued", task=body["task"]), 201)
|
|
46
|
+
if url.path == "/v1/browsers/runs":
|
|
47
|
+
return self.answer({"data": [run("done")], "nextCursor": None})
|
|
48
|
+
if url.path == f"/v1/browsers/runs/{RUN_ID}/steps":
|
|
49
|
+
if query.get("after", "0") == "0":
|
|
50
|
+
return self.answer({"data": [{"n": 0, "seq": 2, "url": "https://example.com/", "frame": None},
|
|
51
|
+
{"n": 1, "seq": 3, "url": "https://example.com/", "frame": None}],
|
|
52
|
+
"after": 3, "ended": False})
|
|
53
|
+
return self.answer({"data": [], "after": 3, "ended": True})
|
|
54
|
+
if url.path == f"/v1/browsers/runs/{RUN_ID}:stop":
|
|
55
|
+
return self.answer(run("stopped"))
|
|
56
|
+
if url.path == f"/v1/browsers/runs/{RUN_ID}":
|
|
57
|
+
state = Stub.states.pop(0) if len(Stub.states) > 1 else Stub.states[0]
|
|
58
|
+
return self.answer(state)
|
|
59
|
+
return self.answer({"error": {"code": "not_found", "message": "no"}}, 404)
|
|
60
|
+
|
|
61
|
+
do_GET = do_POST = handle_any
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class BrowsersTest(unittest.TestCase):
|
|
65
|
+
def setUp(self):
|
|
66
|
+
self.server = ThreadingHTTPServer(("127.0.0.1", 0), Stub)
|
|
67
|
+
threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
|
|
68
|
+
self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
|
|
69
|
+
Stub.seen = []
|
|
70
|
+
Stub.states = [run("running"), run("done", output="Example Domain", steps=1)]
|
|
71
|
+
|
|
72
|
+
def tearDown(self):
|
|
73
|
+
self.server.shutdown()
|
|
74
|
+
self.server.server_close()
|
|
75
|
+
|
|
76
|
+
def test_run_starts_one_and_follows_its_steps_until_it_ends(self):
|
|
77
|
+
with Runtime(api_key="rk_test", base_url=self.url) as runtime:
|
|
78
|
+
done = runtime.browsers.run("Find the title", start_url="https://example.com", max_steps=5)
|
|
79
|
+
self.assertEqual((done["state"], done["output"]), ("done", "Example Domain"))
|
|
80
|
+
self.assertEqual(Stub.seen, [
|
|
81
|
+
("POST", "/v1/browsers/runs", {"task": "Find the title", "startUrl": "https://example.com",
|
|
82
|
+
"maxSteps": 5}),
|
|
83
|
+
("GET", f"/v1/browsers/runs/{RUN_ID}", {}),
|
|
84
|
+
("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "0", "frames": "false", "wait": "30"}),
|
|
85
|
+
("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "3", "frames": "false", "wait": "30"}),
|
|
86
|
+
("GET", f"/v1/browsers/runs/{RUN_ID}", {}),
|
|
87
|
+
])
|
|
88
|
+
|
|
89
|
+
def test_every_runs_verb_calls_its_route_and_a_failed_run_is_returned(self):
|
|
90
|
+
Stub.states = [run("failed", error="Store your key as the egress secret OPENAI_API_KEY.")]
|
|
91
|
+
with Runtime(api_key="rk_test", base_url=self.url) as runtime:
|
|
92
|
+
runtime.browsers.runs.create("Read the invoice", model="gpt-5", allowed_domains=["example.com"],
|
|
93
|
+
labels={"team": "billing"})
|
|
94
|
+
self.assertEqual(runtime.browsers.runs.list(limit=5).data[0]["state"], "done")
|
|
95
|
+
steps = [s["n"] for s in runtime.browsers.runs.follow(RUN_ID)]
|
|
96
|
+
self.assertEqual(steps, [0, 1])
|
|
97
|
+
self.assertEqual(runtime.browsers.runs.stop(RUN_ID)["state"], "stopped")
|
|
98
|
+
failed = runtime.browsers.runs.wait(RUN_ID)
|
|
99
|
+
self.assertIn("OPENAI_API_KEY", failed["error"])
|
|
100
|
+
self.assertEqual(Stub.seen[0], ("POST", "/v1/browsers/runs", {
|
|
101
|
+
"task": "Read the invoice", "model": "gpt-5", "allowedDomains": ["example.com"],
|
|
102
|
+
"labels": {"team": "billing"}}))
|
|
103
|
+
self.assertEqual(Stub.seen[1], ("GET", "/v1/browsers/runs", {"limit": "5"}))
|
|
104
|
+
self.assertEqual(Stub.seen[2], ("GET", f"/v1/browsers/runs/{RUN_ID}/steps", {"after": "0", "wait": "30"}))
|
|
105
|
+
self.assertEqual(Stub.seen[-2], ("POST", f"/v1/browsers/runs/{RUN_ID}:stop", {}))
|
|
106
|
+
# A run that has ended is answered without a wait.
|
|
107
|
+
self.assertEqual(Stub.seen[-1], ("GET", f"/v1/browsers/runs/{RUN_ID}", {}))
|
|
108
|
+
|
|
109
|
+
def test_async_run(self):
|
|
110
|
+
async def go():
|
|
111
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url) as runtime:
|
|
112
|
+
return await runtime.browsers.run("Find the title")
|
|
113
|
+
self.assertEqual(asyncio.run(go())["output"], "Example Domain")
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
if __name__ == "__main__":
|
|
117
|
+
unittest.main()
|
|
@@ -122,7 +122,7 @@ class CiTest(unittest.TestCase):
|
|
|
122
122
|
state=["connected"], limit=1)
|
|
123
123
|
disconnected = runtime.ci.repositories.disconnect(REPO_ID)
|
|
124
124
|
checks = runtime.ci.checks.list(repository_id=REPO_ID, state=["failed", "queued"], branch="main",
|
|
125
|
-
commit="a" * 40, pull_request=12, limit=5)
|
|
125
|
+
commit="a" * 40, pull_request=12, event=["merge_group"], limit=5)
|
|
126
126
|
check = runtime.ci.checks.get(CHECK_ID)
|
|
127
127
|
job = runtime.ci.jobs.get(JOB_ID)
|
|
128
128
|
tests = runtime.ci.tests.list(REPO_ID, quarantined=True, limit=10)
|
|
@@ -145,7 +145,7 @@ class CiTest(unittest.TestCase):
|
|
|
145
145
|
self.assertTrue(Stub.seen[2][4])
|
|
146
146
|
self.assertEqual(Stub.seen[3][2], {"repositoryId": [REPO_ID], "state": ["failed", "queued"],
|
|
147
147
|
"branch": ["main"], "commit": ["a" * 40], "pullRequest": ["12"],
|
|
148
|
-
"limit": ["5"]})
|
|
148
|
+
"event": ["merge_group"], "limit": ["5"]})
|
|
149
149
|
self.assertEqual(Stub.seen[6][2], {"repositoryId": [REPO_ID], "quarantined": ["true"], "limit": ["10"]})
|
|
150
150
|
|
|
151
151
|
def test_set_undo_turns_a_repositorys_undo_on_and_off(self):
|
|
@@ -7,6 +7,7 @@ import json
|
|
|
7
7
|
import threading
|
|
8
8
|
import types
|
|
9
9
|
import unittest
|
|
10
|
+
from unittest import mock
|
|
10
11
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
11
12
|
|
|
12
13
|
import withruntime.e2b as e2b
|
|
@@ -20,13 +21,15 @@ METRICS = {
|
|
|
20
21
|
"latest": {"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824},
|
|
21
22
|
"points": [
|
|
22
23
|
{"at": "2026-09-23T10:58:00.000Z", "cpuPercent": None, "memoryBytes": 900000000},
|
|
23
|
-
{"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824
|
|
24
|
+
{"at": "2026-09-23T10:59:00.000Z", "cpuPercent": 25, "memoryBytes": 1073741824,
|
|
25
|
+
"diskUsedBytes": 2147483648},
|
|
24
26
|
],
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
class Stub(BaseHTTPRequestHandler):
|
|
29
31
|
seen: list = []
|
|
32
|
+
headers_seen: list = []
|
|
30
33
|
|
|
31
34
|
def log_message(self, *args):
|
|
32
35
|
pass
|
|
@@ -41,6 +44,7 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
41
44
|
|
|
42
45
|
def do_GET(self):
|
|
43
46
|
Stub.seen.append(("GET", self.path, None))
|
|
47
|
+
Stub.headers_seen.append({k.lower(): v for k, v in self.headers.items()})
|
|
44
48
|
if self.path.startswith(f"/v1/sandboxes/{SANDBOX_ID}/metrics"):
|
|
45
49
|
return self.answer(METRICS)
|
|
46
50
|
if self.path.startswith(f"/v1/sandboxes/{SANDBOX_ID}"):
|
|
@@ -127,7 +131,24 @@ class ObservabilityTest(unittest.TestCase):
|
|
|
127
131
|
end=datetime.datetime(2026, 9, 23, 12, 0, tzinfo=datetime.timezone.utc))
|
|
128
132
|
self.assertEqual(len(points), 1)
|
|
129
133
|
self.assertEqual((points[0].cpu_used_pct, points[0].cpu_count, points[0].mem_used, points[0].disk_used,
|
|
130
|
-
points[0].disk_total), (25, 2, 1073741824,
|
|
134
|
+
points[0].disk_total), (25, 2, 1073741824, 2147483648, 10737418240))
|
|
135
|
+
|
|
136
|
+
def test_calls_carry_the_active_opentelemetry_span(self):
|
|
137
|
+
# A stand-in for opentelemetry.propagate, which injects the W3C headers
|
|
138
|
+
# of the active span (and others, which are not sent).
|
|
139
|
+
from withruntime import _trace
|
|
140
|
+
parent = "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"
|
|
141
|
+
fake = types.SimpleNamespace(inject=lambda carrier: carrier.update(
|
|
142
|
+
{"traceparent": parent, "tracestate": "v=1", "baggage": "user=x"}))
|
|
143
|
+
with mock.patch.object(_trace, "_propagate", fake), mock.patch.object(_trace, "_missing", False):
|
|
144
|
+
with Runtime(api_key="rk_x", base_url=self.url) as runtime:
|
|
145
|
+
runtime.sandboxes.get(SANDBOX_ID).metrics()
|
|
146
|
+
headers = Stub.headers_seen[-1]
|
|
147
|
+
self.assertEqual((headers.get("traceparent"), headers.get("tracestate"), headers.get("baggage")),
|
|
148
|
+
(parent, "v=1", None))
|
|
149
|
+
# Without OpenTelemetry, nothing is sent.
|
|
150
|
+
with mock.patch.object(_trace, "_missing", True):
|
|
151
|
+
self.assertEqual(_trace.trace_headers(), {})
|
|
131
152
|
|
|
132
153
|
|
|
133
154
|
if __name__ == "__main__":
|
|
@@ -8,7 +8,7 @@ import unittest
|
|
|
8
8
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
9
9
|
from typing import Optional
|
|
10
10
|
|
|
11
|
-
from withruntime import AsyncRuntime, NotFoundError, Runtime
|
|
11
|
+
from withruntime import AsyncRuntime, InvalidRequestError, NotFoundError, Runtime
|
|
12
12
|
|
|
13
13
|
SECRET = {
|
|
14
14
|
"name": "OPENAI_API_KEY",
|
|
@@ -18,6 +18,8 @@ SECRET = {
|
|
|
18
18
|
"createdAt": "2026-09-23T10:00:00.000Z",
|
|
19
19
|
"updatedAt": "2026-09-23T10:00:00.000Z",
|
|
20
20
|
}
|
|
21
|
+
# A real-value secret: the sandboxes get the value itself, so it has no hosts.
|
|
22
|
+
EXPOSED = {**SECRET, "name": "DB_PASSWORD", "hosts": [], "exposed": True, "version": 2}
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
class Stub(BaseHTTPRequestHandler):
|
|
@@ -26,9 +28,9 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
26
28
|
def log_message(self, *args):
|
|
27
29
|
pass
|
|
28
30
|
|
|
29
|
-
def answer(self, value):
|
|
31
|
+
def answer(self, value, status=200):
|
|
30
32
|
data = json.dumps(value).encode()
|
|
31
|
-
self.send_response(
|
|
33
|
+
self.send_response(status)
|
|
32
34
|
self.send_header("content-type", "application/json")
|
|
33
35
|
self.send_header("content-length", str(len(data)))
|
|
34
36
|
self.end_headers()
|
|
@@ -40,6 +42,10 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
40
42
|
|
|
41
43
|
def do_GET(self):
|
|
42
44
|
Stub.seen.append((self.command, self.path, None))
|
|
45
|
+
if self.path == "/v1/egress-secrets/MISSING":
|
|
46
|
+
return self.answer({"error": {"code": "not_found", "message": "No secret named MISSING."}}, 404)
|
|
47
|
+
if self.path.startswith("/v1/egress-secrets/"):
|
|
48
|
+
return self.answer(EXPOSED)
|
|
43
49
|
# The jobs copies: none here.
|
|
44
50
|
self.answer([] if self.path.startswith("/v1/secrets") else {"secrets": [SECRET]})
|
|
45
51
|
|
|
@@ -183,6 +189,51 @@ class SecretsTest(unittest.TestCase):
|
|
|
183
189
|
runtime.secrets.set("K", value="v", hosts=["a.example.com"])
|
|
184
190
|
self.assertEqual(Stub.seen[0][2], {"value": "v", "hosts": ["a.example.com"]})
|
|
185
191
|
|
|
192
|
+
def test_exposed_sends_no_hosts_and_expected_version_is_sent_sync_and_async(self):
|
|
193
|
+
pem = "-----BEGIN FAKE KEY-----\nAAAA\n-----END FAKE KEY-----\n"
|
|
194
|
+
# A real value goes only to the sandboxes and Apps named by id.
|
|
195
|
+
worker = "5d2c8a1e-7b3f-4c6d-9e0a-1f2b3c4d5e6f"
|
|
196
|
+
app = "0b6f3c1e-2d4a-4e5f-9a7b-8c9d0e1f2a3b"
|
|
197
|
+
with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
198
|
+
runtime.secrets.set("DEPLOY_KEY", value=pem, exposed=True, env="SSH_KEY", only={"sandboxes": [worker]})
|
|
199
|
+
runtime.secrets.set("OPENAI_API_KEY", value="fake-api-key", hosts=["api.openai.com"], expected_version=3)
|
|
200
|
+
with self.assertRaises(InvalidRequestError):
|
|
201
|
+
runtime.secrets.set("NOWHERE", value="fake-db-password")
|
|
202
|
+
|
|
203
|
+
async def go():
|
|
204
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
205
|
+
await runtime.secrets.set("DB_PASSWORD", value="fake-db-password", exposed=True,
|
|
206
|
+
only={"apps": [app]}, expected_version=0)
|
|
207
|
+
|
|
208
|
+
asyncio.run(go())
|
|
209
|
+
self.assertEqual(Stub.seen, [
|
|
210
|
+
("PUT", "/v1/egress-secrets/DEPLOY_KEY",
|
|
211
|
+
{"value": pem, "only": {"sandboxes": [worker]}, "env": "SSH_KEY", "exposed": True}),
|
|
212
|
+
("PUT", "/v1/egress-secrets/OPENAI_API_KEY",
|
|
213
|
+
{"value": "fake-api-key", "hosts": ["api.openai.com"], "expectedVersion": 3}),
|
|
214
|
+
("PUT", "/v1/egress-secrets/DB_PASSWORD",
|
|
215
|
+
{"value": "fake-db-password", "only": {"apps": [app]}, "exposed": True, "expectedVersion": 0}),
|
|
216
|
+
])
|
|
217
|
+
|
|
218
|
+
def test_get_reads_one_secret_by_name_sync_and_async(self):
|
|
219
|
+
with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
220
|
+
found = runtime.secrets.get("DB_PASSWORD")
|
|
221
|
+
with self.assertRaises(NotFoundError):
|
|
222
|
+
runtime.secrets.get("MISSING")
|
|
223
|
+
|
|
224
|
+
async def go():
|
|
225
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
226
|
+
return await runtime.secrets.get("A B")
|
|
227
|
+
|
|
228
|
+
self.assertEqual(asyncio.run(go())["sandboxes"], EXPOSED)
|
|
229
|
+
self.assertEqual(found, {"name": "DB_PASSWORD", "sandboxes": EXPOSED, "jobs": None})
|
|
230
|
+
self.assertEqual((found["sandboxes"]["version"], found["sandboxes"]["exposed"]), (2, True))
|
|
231
|
+
self.assertEqual([seen[:2] for seen in Stub.seen], [
|
|
232
|
+
("GET", "/v1/egress-secrets/DB_PASSWORD"), ("GET", "/v1/secrets?limit=100"),
|
|
233
|
+
("GET", "/v1/egress-secrets/MISSING"), ("GET", "/v1/secrets?limit=100"),
|
|
234
|
+
("GET", "/v1/egress-secrets/A%20B"), ("GET", "/v1/secrets?limit=100"),
|
|
235
|
+
])
|
|
236
|
+
|
|
186
237
|
|
|
187
238
|
class UpstreamProxyStub(BaseHTTPRequestHandler):
|
|
188
239
|
seen: list = []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Agents' templates, as data:
|
|
1
|
+
"""Agents' templates, as data: eight harnesses and the two uses each can serve.
|
|
2
2
|
The same values are in every Runtime SDK and the guide
|
|
3
3
|
(packages/cloud-guide/agent-templates.json; tests/test_agents.py holds this
|
|
4
4
|
file to it).
|
|
@@ -21,6 +21,7 @@ from typing import Any
|
|
|
21
21
|
_START = "\"$(cat ~/.runtime-agent/start.md)\""
|
|
22
22
|
_REVIEW = "python3 ~/.runtime-agent/runtime-agent review"
|
|
23
23
|
_JUDGE = "python3 ~/.runtime-agent/runtime-agent judge"
|
|
24
|
+
_BROWSE = "python3 ~/.runtime-agent/runtime-agent browse"
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
def _template(key: str, title: str, command: str, secret: str, host: str, subscription: Any) -> dict[str, Any]:
|
|
@@ -60,6 +61,11 @@ TEMPLATES: dict[str, dict[str, Any]] = {t["key"]: t for t in (
|
|
|
60
61
|
"a token per account, as for review: `runtime secrets set CLAUDE_1` scoped to api.anthropic.com for each, then name them all in pool; its instructions are the rules that block"),
|
|
61
62
|
"definition": {"command": _JUDGE, "pool": ["ANTHROPIC_API_KEY"], "vcpu": 2, "memoryMiB": 2048,
|
|
62
63
|
"maxSessionSeconds": 1800}},
|
|
64
|
+
# A browser run's harness: browser-use on the sandbox's own Chromium
|
|
65
|
+
# (POST /v1/browsers/runs starts its sessions).
|
|
66
|
+
{**_template("browser", "Browser task", _BROWSE, "ANTHROPIC_API_KEY", "api.anthropic.com", None),
|
|
67
|
+
"definition": {"command": _BROWSE, "secrets": ["ANTHROPIC_API_KEY"],
|
|
68
|
+
"vcpu": 2, "memoryMiB": 4096, "maxSessionSeconds": 1800}},
|
|
63
69
|
)}
|
|
64
70
|
|
|
65
71
|
USES: dict[str, dict[str, Any]] = {
|
|
@@ -38,6 +38,7 @@ from ._renamed import renamed
|
|
|
38
38
|
from ._unpack import Unpacker
|
|
39
39
|
from ._ws import AsyncWebSocket as WebSocket
|
|
40
40
|
from ._tunnel import AsyncPortForward
|
|
41
|
+
from ._trace import trace_headers
|
|
41
42
|
from ._tunnel import async_open_forward as open_forward
|
|
42
43
|
from ._version import VERSION
|
|
43
44
|
from ._async_products.watch import AsyncWatches, AsyncWatchHandle
|
|
@@ -270,6 +271,7 @@ class _Transport:
|
|
|
270
271
|
headers["Idempotency-Key"] = key
|
|
271
272
|
if wait:
|
|
272
273
|
headers["Prefer"] = f"wait={min(120, int(wait))}"
|
|
274
|
+
headers.update(trace_headers())
|
|
273
275
|
return headers
|
|
274
276
|
|
|
275
277
|
async def send(self, method: str, path: str, *, query: Optional[dict[str, Any]] = None, body: Any = None,
|
|
@@ -510,7 +512,7 @@ class _Transport:
|
|
|
510
512
|
#: tests/create-types.test.ts holds this list to the API's own schema.
|
|
511
513
|
_CREATE_FIELDS = (
|
|
512
514
|
"name", "labels", "funding", "region", "vcpu", "memory_mib", "disk_mib", "cpu", "cpu_floor_millis",
|
|
513
|
-
"timeout_seconds", "pausable", "idle_pause_seconds", "auto_wake", "user", "persistent", "max_total_cost_micros",
|
|
515
|
+
"timeout_seconds", "pausable", "idle_pause_seconds", "auto_wake", "user", "lease_seconds", "persistent", "max_total_cost_micros",
|
|
514
516
|
"get_or_create", "on_lease_end", "max_cost_micros", "network", "image", "snapshot", "spread_from", "volumes",
|
|
515
517
|
"env", "tailscale", "secrets",
|
|
516
518
|
)
|
|
@@ -1467,6 +1469,9 @@ class AsyncMachine:
|
|
|
1467
1469
|
started afterwards get the change), ``auto_wake`` (a request wakes it when paused),
|
|
1468
1470
|
``user`` (``"root"`` or ``"sandbox"``: who later commands, processes
|
|
1469
1471
|
and terminals run as when one names no user),
|
|
1472
|
+
``lease_seconds`` (with no time limit, how far ahead each renewal funds
|
|
1473
|
+
it, 300 to 43200; None the default again: it keeps running for at
|
|
1474
|
+
least half of it through an outage of Runtime's control plane),
|
|
1470
1475
|
``idle_pause_seconds`` (pause after this long with no activity, counted
|
|
1471
1476
|
from now; 0 never, otherwise 60 to 86400, a shorter time raised to 60;
|
|
1472
1477
|
a new sandbox has 300),
|
|
@@ -19,6 +19,7 @@ from .agents import AsyncAgents
|
|
|
19
19
|
from .apps import AsyncApps, AsyncFunctions
|
|
20
20
|
from .audit import AsyncAudit
|
|
21
21
|
from .browser import AsyncBrowser
|
|
22
|
+
from .browsers import AsyncBrowsers
|
|
22
23
|
from .builds import AsyncBuilds
|
|
23
24
|
from .ci import AsyncCi
|
|
24
25
|
from .containers import AsyncContainers
|
|
@@ -54,6 +55,7 @@ CLIENT["builds"] = AsyncBuilds
|
|
|
54
55
|
CLIENT["ci"] = AsyncCi
|
|
55
56
|
CLIENT["containers"] = AsyncContainers
|
|
56
57
|
CLIENT["agents"] = AsyncAgents
|
|
58
|
+
CLIENT["browsers"] = AsyncBrowsers
|
|
57
59
|
CLIENT["referrals"] = AsyncReferrals
|
|
58
60
|
CLIENT["plans"] = AsyncPlans
|
|
59
61
|
CLIENT["billing"] = AsyncBilling
|