withruntime 0.31.1__tar.gz → 0.32.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {withruntime-0.31.1/withruntime.egg-info → withruntime-0.32.0}/PKG-INFO +5 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/README.md +4 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/pyproject.toml +1 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_agents.py +67 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_apps_builds.py +15 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_sandbox.py +54 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_package_typing.py +1 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_secrets.py +48 -0
- withruntime-0.32.0/tests/test_usage_export.py +97 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_volume_backups.py +13 -2
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_agent_templates.py +16 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_client.py +25 -4
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/agents.py +107 -10
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/apps.py +33 -4
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/ci.py +6 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/network.py +2 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/secrets.py +13 -3
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/volumes.py +19 -5
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_client.py +25 -4
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/agents.py +107 -10
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/apps.py +33 -4
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/ci.py +6 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/network.py +2 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/secrets.py +13 -3
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/volumes.py +19 -5
- withruntime-0.32.0/withruntime/_version.py +1 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/__init__.py +25 -2
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/_async_sandbox.py +27 -9
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/_sync_sandbox.py +27 -9
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/__init__.py +11 -1
- {withruntime-0.31.1 → withruntime-0.32.0/withruntime.egg-info}/PKG-INFO +5 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime.egg-info/SOURCES.txt +1 -0
- withruntime-0.31.1/withruntime/_version.py +0 -1
- {withruntime-0.31.1 → withruntime-0.32.0}/LICENSE +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/setup.cfg +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_account_errors.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_answer_start.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_async_stream_cleanup.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_audit.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_billing.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_blaxel.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_blaxel_0_4_17.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_blaxel_0_4_18.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_blaxel_create_timeout.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_blaxel_wait_deadline.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_browser.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_capacity_wait.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_ci.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_live.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_modal_deadline_errors.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_new_providers.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_prime_contract.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_prime_validation.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_disk_snapshots.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_e2b_deadline.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_e2b_pty.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_e2b_stream.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_e2b_watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_modal.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_morph.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_official.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_pins.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_processes.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_request_scope.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_runloop.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_shell.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_snapshot_capture.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_python_sprites.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_compat_router.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_customer_usage.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_0_223_1.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_0_224_1.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_0_225_0.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_create_cleanup.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_create_options.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_download_labels.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_daytona_refusals_lifted.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_deepagents.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_2_55.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_code_interpreter.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_connection_cap.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_exports.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_fork_validation.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_upstream.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_e2b_watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_embed_and_webhook_watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_eval_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_exec_stream.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_exec_stream_names.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_exec_user.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_file_archives.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_files_download.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_files_mode.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_files_upload_parallel.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_files_write_lost_body.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_harbor.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_http_tls_close.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_identity_token.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_image_delete_by_name.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_images_v2.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_images_volumes_interpreter.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_inspect_ai.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_interface_contract.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_jobs.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_late_answer.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_lifecycle_settings.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_limits.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_machine_engine.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_modal_1_6_2.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_modal_dropin.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_modal_examples.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_mounts.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_network_funding.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_network_products.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_observability.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_openai_agents.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_out_of_memory.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_plans.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_previews_network_desktop.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_prime_0_4_5.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_prime_0_4_6.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_prime_0_4_7.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_private_network.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_process_deadline.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_process_input.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_process_object.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_process_output.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_process_write_backpressure.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_product_aliases.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_proxy.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_referrals.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_replayed_create_message.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_reservations.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_runloop_stream_cleanup.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_runloop_v2.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_sandbox_origin.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_sandbox_sessions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_sandboxes_delete_all.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_sandboxes_stop_all.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_saved_connection.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_signed_requests.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_snapshot_after_fork.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_snapshot_recovery.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_sso.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_start_report_kept.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_stream_cut_short.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_stream_exit_close.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_switch_image.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_switching.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_tailscale.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_tools.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_trace_files.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_transport_body_recovery.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_transport_connection_limits.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_transport_never_sent.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_unpack.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_upload_deadline.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_vercel.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_vercel_create_validation.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_vercel_disk_snapshot.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_vercel_refusals_lifted.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_volume_operations.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_wake_awake.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_wallet.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/tests/test_watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_api_defaults.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/audit.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/billing.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/browser.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/builds.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/containers.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/desktop.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/images.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/interpreter.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/jobs.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/limits.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/mcp.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/mounts.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/network_products.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/observability.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/plans.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/previews.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/private_network.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/referrals.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/reservations.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/signed_requests.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/sso.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/switching.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/tailscale.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_async_products/watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_clock.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_compat.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_compat_lease.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_compat_lifecycle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_compat_shell.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_connection.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_errors.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_eval_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_http.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_proxy.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_renamed.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_request_scope.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/audit.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/billing.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/browser.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/builds.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/containers.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/desktop.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/images.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/interpreter.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/jobs.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/limits.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/mcp.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/mounts.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/network_products.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/observability.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/plans.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/previews.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/private_network.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/referrals.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/reservations.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/signed_requests.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/sso.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/switching.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/tailscale.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_sync_products/watch.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_tunnel.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_unpack.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/_ws.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/_async_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/_async_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/_core.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/_sync_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/agents.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/images.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/client.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/env.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/pagination.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/client/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/common.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/drive.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/errors.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/jobs.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/core/secret.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/crewai.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/googleadk.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/langgraph.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/livekit.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/llamaindex.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/openai.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/pydantic.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/blaxel/telemetry.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/_async_daytona.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/_async_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/_core.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/_sync_daytona.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/daytona/_sync_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/deepagents.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/_async_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/_core.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/_sync_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/code_interpreter/models.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/connection_config.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/exceptions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/network.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox/signature.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/secret/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/logger.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/readycmd.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template_async/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template_async/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template_sync/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/template_sync/main.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/volume/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/volume/connection_config.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/volume/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/volume/volume_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/e2b/volume/volume_sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/harbor.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/inspect_ai.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_dual.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_fs_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_fs_common.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_fs_sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_lookup.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_object.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_probe.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_snapshot.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/_tunnel.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/app.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/container_process.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/exception.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/file_pattern_matcher.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/image.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/io_streams.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/output.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/proxy.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/sandbox/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/sandbox/sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/sandbox_fs.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/secret.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/snapshot.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/stream_type.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/modal/volume.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/morph/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/morph/api.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/openai_agents.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/_sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/core/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/core/client.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/exceptions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/models.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/process.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/prime/sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/py.typed +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/_exceptions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/_snapshots.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/_sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/_v2.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/lib/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/lib/polling.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/runloop/sdk/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_capture.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_capture_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_features.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_metadata.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_stream.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_stream_async.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/_translate.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/async_client.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/async_exec.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/client.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/control.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/exceptions.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/exec.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/filesystem.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/sprite.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/sprites/types.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/tools.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/_async_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/_async_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/_core.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/_sync_io.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/_sync_sandbox.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/api.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/sandbox/__init__.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/vercel/sandbox/sync.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/wallet.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime/webhooks.py +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime.egg-info/dependency_links.txt +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime.egg-info/entry_points.txt +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime.egg-info/requires.txt +0 -0
- {withruntime-0.31.1 → withruntime-0.32.0}/withruntime.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: withruntime
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.32.0
|
|
4
4
|
Summary: Runtime Cloud: one client (sync and async) for every Runtime product. Sandboxes first.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://withruntime.com
|
|
@@ -101,6 +101,10 @@ idempotency key, so retries never do anything twice; errors are typed and carry
|
|
|
101
101
|
errors; the previous `RuntimeError` and `ConnectionError` exports remain aliases.
|
|
102
102
|
`runtime.usage_requests("7d")` reads the account's API call counts and error rates;
|
|
103
103
|
counts are exact decimal strings, and an empty window has `errorPercent: None`.
|
|
104
|
+
`runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
|
|
105
|
+
over a UTC range, with its server CSV; `finalThrough` is the time before which no
|
|
106
|
+
more charges will settle, and each row's `final` is True once its resource is
|
|
107
|
+
deleted and can be charged nothing more.
|
|
104
108
|
|
|
105
109
|
## Behind a proxy
|
|
106
110
|
|
|
@@ -75,6 +75,10 @@ idempotency key, so retries never do anything twice; errors are typed and carry
|
|
|
75
75
|
errors; the previous `RuntimeError` and `ConnectionError` exports remain aliases.
|
|
76
76
|
`runtime.usage_requests("7d")` reads the account's API call counts and error rates;
|
|
77
77
|
counts are exact decimal strings, and an empty window has `errorPercent: None`.
|
|
78
|
+
`runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
|
|
79
|
+
over a UTC range, with its server CSV; `finalThrough` is the time before which no
|
|
80
|
+
more charges will settle, and each row's `final` is True once its resource is
|
|
81
|
+
deleted and can be charged nothing more.
|
|
78
82
|
|
|
79
83
|
## Behind a proxy
|
|
80
84
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "withruntime"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.32.0"
|
|
8
8
|
description = "Runtime Cloud: one client (sync and async) for every Runtime product. Sandboxes first."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
@@ -24,6 +24,9 @@ AGENT = {"id": AGENT_ID, "name": "dev", "version": 1, "definition": {"command":
|
|
|
24
24
|
TRIGGER = {"id": TRIGGER_ID, "agentId": AGENT_ID, "kind": "github",
|
|
25
25
|
"config": {"repository": "acme/web", "installation": 42}, "pausedAt": None, "pausedWhy": None,
|
|
26
26
|
"createdAt": "2026-10-18T00:00:00Z"}
|
|
27
|
+
HELD = {"id": "c1", "triggerId": TRIGGER_ID, "agentId": AGENT_ID, "key": "disk", "text": "disk full",
|
|
28
|
+
"labels": {}, "why": "ended", "state": "held", "sessionId": None, "notify": "email",
|
|
29
|
+
"createdAt": "2026-10-18T00:00:00Z", "resolvedAt": None}
|
|
27
30
|
MEMORY = {"scope": "", "path": "notes/tea.md", "bytes": 21, "updatedAt": "2026-10-18T00:00:00Z",
|
|
28
31
|
"updatedBy": "key_1"}
|
|
29
32
|
USAGE = {"bytes": 42, "files": 2, "limitBytes": 1073741824, "limitFiles": 100000}
|
|
@@ -68,6 +71,8 @@ REFUSALS = {
|
|
|
68
71
|
|
|
69
72
|
class Stub(BaseHTTPRequestHandler):
|
|
70
73
|
seen: list = []
|
|
74
|
+
# Each request's Authorization header, in order.
|
|
75
|
+
auth: list = []
|
|
71
76
|
mode = "ok"
|
|
72
77
|
# Each read of the log answers the next of these pages; each read of the
|
|
73
78
|
# session the next of these states. The last of each repeats.
|
|
@@ -97,6 +102,7 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
97
102
|
url = urlsplit(self.path)
|
|
98
103
|
path, query = url.path, parse_qs(url.query, keep_blank_values=True)
|
|
99
104
|
Stub.seen.append((self.command, path, query, body, self.headers.get("idempotency-key")))
|
|
105
|
+
Stub.auth.append(self.headers.get("authorization"))
|
|
100
106
|
if Stub.mode in REFUSALS:
|
|
101
107
|
status, code, _ = REFUSALS[Stub.mode]
|
|
102
108
|
return self.answer({"error": {"code": code, "message": f"refused: {code}", "hint": "h"}}, status)
|
|
@@ -114,6 +120,10 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
114
120
|
if method == "DELETE":
|
|
115
121
|
return self.answer({"deleted": True})
|
|
116
122
|
return self.answer({**MEMORY, "content": "tea, no sugar"})
|
|
123
|
+
if path == "/v1/agents/asks":
|
|
124
|
+
return self.answer({"data": [ASK], "nextCursor": None})
|
|
125
|
+
if path.startswith("/v1/agents/asks/"):
|
|
126
|
+
return self.answer({**ASK, "state": "answered", "answer": body} if method == "POST" else ASK)
|
|
117
127
|
if path == "/v1/agents" and method == "GET":
|
|
118
128
|
if "cursor" in query:
|
|
119
129
|
return self.answer({"data": [{**AGENT, "id": "second", "warnings": ["subscription_for_customers"]}],
|
|
@@ -142,6 +152,17 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
142
152
|
200 if body.get("key") == "customer:42" else 201)
|
|
143
153
|
if path.endswith("/triggers"):
|
|
144
154
|
return self.answer({"data": [TRIGGER]} if method == "GET" else TRIGGER, 200 if method == "GET" else 201)
|
|
155
|
+
if path.endswith("/calls"):
|
|
156
|
+
return self.answer({"outcome": "joined", "sessionId": SESSION_ID, "seq": 2, "callId": None,
|
|
157
|
+
"why": None, "replayed": False})
|
|
158
|
+
if path.endswith("/held"):
|
|
159
|
+
return self.answer({"data": [HELD], "nextCursor": None})
|
|
160
|
+
if path.endswith("/start") and "/held/" in path:
|
|
161
|
+
return self.answer({"session": session("queued"), "joined": False, "calls": 2})
|
|
162
|
+
if path.endswith("/dismiss"):
|
|
163
|
+
return self.answer({**HELD, "state": "dismissed"})
|
|
164
|
+
if path.startswith("/v1/agents/triggers/") and method == "PATCH":
|
|
165
|
+
return self.answer({**TRIGGER, "rules": body["rules"]})
|
|
145
166
|
if path.startswith("/v1/agents/triggers/"):
|
|
146
167
|
if method == "DELETE":
|
|
147
168
|
return self.answer(None, 204)
|
|
@@ -157,6 +178,10 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
157
178
|
do_GET = do_POST = do_PATCH = do_PUT = do_DELETE = handle_any
|
|
158
179
|
|
|
159
180
|
|
|
181
|
+
ASK = {"id": "ask-1", "step": "bucket-cap", "question": "Raise the cap?", "options": [{"label": "Raise"}],
|
|
182
|
+
"pick": "Raise", "state": "open", "sessions": [{"sessionId": SESSION_ID, "state": "asking", "seq": 2}]}
|
|
183
|
+
|
|
184
|
+
|
|
160
185
|
class AgentsTest(unittest.TestCase):
|
|
161
186
|
# Each test has a stub of its own: a request a test gave up on (a wait past
|
|
162
187
|
# its deadline) that a busy machine handles late reaches its own test's
|
|
@@ -166,6 +191,7 @@ class AgentsTest(unittest.TestCase):
|
|
|
166
191
|
threading.Thread(target=self.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
|
|
167
192
|
self.url = f"http://127.0.0.1:{self.server.server_address[1]}"
|
|
168
193
|
Stub.seen, Stub.mode, Stub.pages, Stub.states = [], "ok", [{"data": [], "ended": True}], []
|
|
194
|
+
Stub.auth = []
|
|
169
195
|
Stub.record = None
|
|
170
196
|
|
|
171
197
|
def tearDown(self):
|
|
@@ -337,6 +363,43 @@ class AgentsTest(unittest.TestCase):
|
|
|
337
363
|
self.assertEqual(Stub.seen[0][3], {"kind": "github", "config": {"repository": "acme/web", "installation": 42}})
|
|
338
364
|
self.assertEqual(Stub.seen[2][3], {"why": "release freeze"})
|
|
339
365
|
|
|
366
|
+
def test_the_inbox_lists_by_state_and_labels_gets_one_and_answers_it(self):
|
|
367
|
+
with self.client() as runtime:
|
|
368
|
+
asks = list(runtime.agents.asks.list(state=["open", "expired"], labels={"team": "infra"}))
|
|
369
|
+
self.assertEqual([a["step"] for a in asks], ["bucket-cap"])
|
|
370
|
+
self.assertEqual(runtime.agents.asks.get("ask-1")["pick"], "Raise")
|
|
371
|
+
answered = runtime.agents.asks.answer("ask-1", "Raise", text="Done.")
|
|
372
|
+
self.assertEqual(answered["answer"], {"option": "Raise", "text": "Done."})
|
|
373
|
+
with self.assertRaises(InvalidRequestError):
|
|
374
|
+
runtime.agents.asks.answer("ask-1")
|
|
375
|
+
self.assertEqual(self.routes(), [
|
|
376
|
+
("GET", "/v1/agents/asks"), ("GET", "/v1/agents/asks/ask-1"), ("POST", "/v1/agents/asks/ask-1/answer")])
|
|
377
|
+
query = Stub.seen[0][2]
|
|
378
|
+
self.assertEqual((query["state"], query["label"]), (["open", "expired"], ["team:infra"]))
|
|
379
|
+
|
|
380
|
+
def test_trigger_rules_calls_and_held_calls_call_their_routes_and_a_call_carries_the_secret(self):
|
|
381
|
+
with self.client() as runtime:
|
|
382
|
+
triggers = runtime.agents.triggers
|
|
383
|
+
triggers.create("dev", "webhook", {}, rules={"key": "{cause}", "onEnded": "ask"})
|
|
384
|
+
self.assertEqual(triggers.set_rules(TRIGGER_ID, {"priority": 10})["rules"], {"priority": 10})
|
|
385
|
+
done = triggers.call(TRIGGER_ID, "rtat_secret_1234567890", "disk full", key="disk",
|
|
386
|
+
labels={"host": "vin-5"}, idempotency_key="alert-7")
|
|
387
|
+
self.assertEqual((done["outcome"], done["seq"]), ("joined", 2))
|
|
388
|
+
self.assertEqual([c["id"] for c in triggers.held(TRIGGER_ID, state=["held"])], ["c1"])
|
|
389
|
+
self.assertEqual(triggers.start_held(TRIGGER_ID, "c1")["calls"], 2)
|
|
390
|
+
self.assertEqual(triggers.dismiss_held(TRIGGER_ID, "c1")["state"], "dismissed")
|
|
391
|
+
base = f"/v1/agents/triggers/{TRIGGER_ID}"
|
|
392
|
+
self.assertEqual(self.routes(), [
|
|
393
|
+
("POST", "/v1/agents/dev/triggers"), ("PATCH", base), ("POST", f"{base}/calls"), ("GET", f"{base}/held"),
|
|
394
|
+
("POST", f"{base}/held/c1/start"), ("POST", f"{base}/held/c1/dismiss")])
|
|
395
|
+
self.assertEqual(Stub.seen[0][3], {"kind": "webhook", "config": {},
|
|
396
|
+
"rules": {"key": "{cause}", "onEnded": "ask"}})
|
|
397
|
+
self.assertEqual(Stub.seen[2][3], {"text": "disk full", "key": "disk", "labels": {"host": "vin-5"}})
|
|
398
|
+
self.assertEqual(Stub.seen[2][4], "alert-7")
|
|
399
|
+
self.assertEqual(Stub.seen[3][2], {"state": ["held"]})
|
|
400
|
+
self.assertEqual(Stub.auth[2], "Bearer rtat_secret_1234567890")
|
|
401
|
+
self.assertEqual(Stub.auth[1], "Bearer rk_test")
|
|
402
|
+
|
|
340
403
|
def test_every_memory_verb_calls_its_route_with_the_scope_in_the_query(self):
|
|
341
404
|
with self.client() as runtime:
|
|
342
405
|
page = runtime.agents.memory.list("dev", prefix="notes/", limit=1)
|
|
@@ -386,7 +449,10 @@ class AgentsTest(unittest.TestCase):
|
|
|
386
449
|
with self.client() as runtime:
|
|
387
450
|
templates = runtime.agents.templates
|
|
388
451
|
self.assertEqual(list(templates), ["claude-code", "codex", "gemini-cli", "claude-agent-sdk",
|
|
389
|
-
"openai-agents-sdk"])
|
|
452
|
+
"openai-agents-sdk", "review", "judge"])
|
|
453
|
+
# The reviewer's model keys are its pool of Claude accounts.
|
|
454
|
+
self.assertEqual(templates.definition("review")["pool"], ["ANTHROPIC_API_KEY"])
|
|
455
|
+
self.assertEqual(templates.definition("review", "team")["vcpu"], 4)
|
|
390
456
|
if GUIDE.exists():
|
|
391
457
|
guide = json.loads(GUIDE.read_text())
|
|
392
458
|
self.assertEqual({"templates": dict(templates), "uses": templates.uses}, guide)
|
|
@@ -217,6 +217,17 @@ class AppsBuildsTest(unittest.TestCase):
|
|
|
217
217
|
self.assertEqual(Stub.seen[2][3], {"stopGraceSeconds": 0, "healthFailSeconds": 30})
|
|
218
218
|
self.assertEqual(Stub.seen[3][3], {"maxCopies": 2, "vcpu": 1, "memoryMiB": 256, "healthFailSeconds": 20})
|
|
219
219
|
|
|
220
|
+
def test_an_app_chooses_staged_releases_and_their_soak_by_the_apis_names(self):
|
|
221
|
+
with self.client() as runtime:
|
|
222
|
+
runtime.apps.create(name="web", max_copies=4, vcpu=1, memory_mib=512,
|
|
223
|
+
release_stages="staged", release_soak_seconds=120)
|
|
224
|
+
runtime.apps.update(APP_ID, release_stages="at_once")
|
|
225
|
+
runtime.apps.update(APP_ID, release_soak_seconds=3600)
|
|
226
|
+
self.assertEqual(Stub.seen[0][3], {"name": "web", "maxCopies": 4, "vcpu": 1, "memoryMiB": 512,
|
|
227
|
+
"releaseStages": "staged", "releaseSoakSeconds": 120})
|
|
228
|
+
self.assertEqual(Stub.seen[1][3], {"releaseStages": "at_once"})
|
|
229
|
+
self.assertEqual(Stub.seen[2][3], {"releaseSoakSeconds": 3600})
|
|
230
|
+
|
|
220
231
|
def test_a_wait_past_its_deadline_says_timeout_and_keeps_the_writes_key(self):
|
|
221
232
|
Stub.deploys = ["warming"]
|
|
222
233
|
with self.client() as runtime:
|
|
@@ -255,6 +266,10 @@ class AppsBuildsTest(unittest.TestCase):
|
|
|
255
266
|
runtime.functions.update(APP_ID, stop_grace_seconds=10)
|
|
256
267
|
with self.assertRaises(InvalidRequestError):
|
|
257
268
|
runtime.functions.update(APP_ID, volume=None)
|
|
269
|
+
with self.assertRaises(InvalidRequestError):
|
|
270
|
+
runtime.functions.create(max_copies=1, vcpu=1, memory_mib=256, release_stages="staged")
|
|
271
|
+
with self.assertRaises(InvalidRequestError):
|
|
272
|
+
runtime.functions.update(APP_ID, release_soak_seconds=60)
|
|
258
273
|
with self.assertRaises(InvalidRequestError):
|
|
259
274
|
runtime.apps.wait(APP_ID, "live", timeout=-1)
|
|
260
275
|
with self.assertRaises(RuntimeAPIError) as caught:
|
|
@@ -743,6 +743,60 @@ class ForksPortsAndGaps(Base):
|
|
|
743
743
|
self.assertIn("withruntime secrets set", str(caught.exception))
|
|
744
744
|
|
|
745
745
|
|
|
746
|
+
class Client(Base):
|
|
747
|
+
"""E2B's client, ``E2B(api_key=...)``: until 24 October 2026 it raised on
|
|
748
|
+
construction, so its Template, Volume and Secret never named Runtime's
|
|
749
|
+
alternative."""
|
|
750
|
+
|
|
751
|
+
def test_template_volume_and_secret_refuse_naming_the_alternative(self):
|
|
752
|
+
from withruntime.e2b.code_interpreter import E2B as InterpreterE2B
|
|
753
|
+
for client in (e2b.E2B(client=self.world.client()), InterpreterE2B(client=self.world.client())):
|
|
754
|
+
for call, alternative in ((client.Template, "withruntime images build"),
|
|
755
|
+
(client.AsyncTemplate, "withruntime images build"),
|
|
756
|
+
(lambda: client.Template.exists("t"), "withruntime images build"),
|
|
757
|
+
(lambda: client.Volume.create("v"), "'volumes'"),
|
|
758
|
+
(lambda: client.AsyncVolume.list(), "'volumes'"),
|
|
759
|
+
(lambda: client.Secret.create("s"), "withruntime secrets set"),
|
|
760
|
+
(lambda: client.AsyncSecret.list(), "withruntime secrets set")):
|
|
761
|
+
with self.assertRaises(NotSupportedException) as caught:
|
|
762
|
+
call()
|
|
763
|
+
self.assertIn(alternative, str(caught.exception))
|
|
764
|
+
|
|
765
|
+
def test_its_sandbox_uses_the_client_unless_a_call_names_its_own(self):
|
|
766
|
+
from withruntime.e2b.code_interpreter import E2B as InterpreterE2B, Sandbox as InterpreterSandbox
|
|
767
|
+
client = e2b.E2B(client=self.world.client(), request_timeout=30)
|
|
768
|
+
sbx = client.Sandbox.create(timeout=90)
|
|
769
|
+
self.assertIsInstance(sbx, Sandbox)
|
|
770
|
+
self.assertEqual(sbx._request_timeout, 30)
|
|
771
|
+
self.assertEqual(self.last_create()["timeout_seconds"], 90)
|
|
772
|
+
self.assertEqual(client.Sandbox.connect(sbx.sandbox_id).sandbox_id, sbx.sandbox_id)
|
|
773
|
+
self.assertEqual([s.sandbox_id for s in client.Sandbox.list().next_items()], [sbx.sandbox_id])
|
|
774
|
+
self.assertTrue(client.Sandbox.kill(sbx.sandbox_id))
|
|
775
|
+
# The top-level Sandbox keeps its own options.
|
|
776
|
+
self.assertEqual(Sandbox._bound, {})
|
|
777
|
+
other = World()
|
|
778
|
+
self.assertIsInstance(client.Sandbox.create(client=other.client()), Sandbox)
|
|
779
|
+
self.assertEqual(len(other.called("sandboxes.create")), 1)
|
|
780
|
+
interpreter = InterpreterE2B(client=self.world.client()).Sandbox.create()
|
|
781
|
+
self.assertIsInstance(interpreter, InterpreterSandbox)
|
|
782
|
+
self.assertTrue(callable(interpreter.run_code))
|
|
783
|
+
|
|
784
|
+
def test_its_async_sandbox_uses_the_async_client(self):
|
|
785
|
+
world = World()
|
|
786
|
+
|
|
787
|
+
async def scenario():
|
|
788
|
+
client = e2b.E2B(async_client=world.async_client())
|
|
789
|
+
sbx = await client.AsyncSandbox.create()
|
|
790
|
+
self.assertIsInstance(sbx, AsyncSandbox)
|
|
791
|
+
self.assertTrue(await client.AsyncSandbox.kill(sbx.sandbox_id))
|
|
792
|
+
asyncio.run(scenario())
|
|
793
|
+
|
|
794
|
+
def test_options_runtime_cannot_honor_are_refused_at_once(self):
|
|
795
|
+
with self.assertRaises(NotSupportedException) as caught:
|
|
796
|
+
e2b.E2B(domain="e2b.app")
|
|
797
|
+
self.assertIn("domain", str(caught.exception))
|
|
798
|
+
|
|
799
|
+
|
|
746
800
|
class Async(unittest.TestCase):
|
|
747
801
|
def test_get_host_answers_at_once_and_the_share_lands_beside_it(self):
|
|
748
802
|
world = World()
|
|
@@ -334,5 +334,53 @@ class ShareTest(unittest.TestCase):
|
|
|
334
334
|
self.assertEqual(ShareStub.seen[-1], ("POST", "/v1/secrets/sec_1:share", {"agents": []}))
|
|
335
335
|
|
|
336
336
|
|
|
337
|
+
class PagedStub(BaseHTTPRequestHandler):
|
|
338
|
+
"""Two secrets, a page of one: the list follows next, or keeps to one page."""
|
|
339
|
+
seen: list = []
|
|
340
|
+
|
|
341
|
+
def log_message(self, *args):
|
|
342
|
+
pass
|
|
343
|
+
|
|
344
|
+
def do_GET(self):
|
|
345
|
+
PagedStub.seen.append(self.path)
|
|
346
|
+
page = (
|
|
347
|
+
{"secrets": [{**SECRET, "name": "B"}], "next": None}
|
|
348
|
+
if "after=A" in self.path
|
|
349
|
+
else {"secrets": [{**SECRET, "name": "A"}], "next": "A"}
|
|
350
|
+
)
|
|
351
|
+
data = json.dumps(page).encode()
|
|
352
|
+
self.send_response(200)
|
|
353
|
+
self.send_header("content-type", "application/json")
|
|
354
|
+
self.send_header("content-length", str(len(data)))
|
|
355
|
+
self.end_headers()
|
|
356
|
+
self.wfile.write(data)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
class SecretsPagingTest(unittest.TestCase):
|
|
360
|
+
def test_list_pages_by_limit_and_after_sync_and_async(self):
|
|
361
|
+
server = ThreadingHTTPServer(("127.0.0.1", 0), PagedStub)
|
|
362
|
+
threading.Thread(target=server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True).start()
|
|
363
|
+
url = f"http://127.0.0.1:{server.server_address[1]}"
|
|
364
|
+
PagedStub.seen = []
|
|
365
|
+
try:
|
|
366
|
+
with Runtime(api_key="rk_test", base_url=url, max_retries=0) as runtime:
|
|
367
|
+
self.assertEqual([s["name"] for s in runtime.secrets.list()], ["A", "B"])
|
|
368
|
+
self.assertEqual([s["name"] for s in runtime.secrets.list(limit=1)], ["A"])
|
|
369
|
+
|
|
370
|
+
async def go():
|
|
371
|
+
async with AsyncRuntime(api_key="rk_test", base_url=url, max_retries=0) as runtime:
|
|
372
|
+
return await runtime.secrets.list(limit=1, after="A")
|
|
373
|
+
|
|
374
|
+
self.assertEqual([s["name"] for s in asyncio.run(go())], ["B"])
|
|
375
|
+
finally:
|
|
376
|
+
server.shutdown()
|
|
377
|
+
self.assertEqual(PagedStub.seen, [
|
|
378
|
+
"/v1/egress-secrets",
|
|
379
|
+
"/v1/egress-secrets?after=A",
|
|
380
|
+
"/v1/egress-secrets?limit=1",
|
|
381
|
+
"/v1/egress-secrets?limit=1&after=A",
|
|
382
|
+
])
|
|
383
|
+
|
|
384
|
+
|
|
337
385
|
if __name__ == "__main__":
|
|
338
386
|
unittest.main()
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""The settled-usage export through real local HTTP: the range, the cursor,
|
|
2
|
+
exact amounts, and what is final."""
|
|
3
|
+
import asyncio
|
|
4
|
+
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
5
|
+
import json
|
|
6
|
+
import threading
|
|
7
|
+
import unittest
|
|
8
|
+
from urllib.parse import parse_qs, urlsplit
|
|
9
|
+
|
|
10
|
+
from withruntime import AsyncRuntime, Runtime
|
|
11
|
+
|
|
12
|
+
SINCE = "2026-09-01T00:00:00Z"
|
|
13
|
+
UNTIL = "2026-10-01T00:00:00Z"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ExportHandler(BaseHTTPRequestHandler):
|
|
17
|
+
protocol_version = "HTTP/1.1"
|
|
18
|
+
disable_nagle_algorithm = True
|
|
19
|
+
|
|
20
|
+
def log_message(self, *_):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
def do_GET(self):
|
|
24
|
+
url = urlsplit(self.path)
|
|
25
|
+
query = {k: v[0] for k, v in parse_qs(url.query).items()}
|
|
26
|
+
self.server.seen.append((url.path, query))
|
|
27
|
+
first = "cursor" not in query
|
|
28
|
+
body = {
|
|
29
|
+
"since": SINCE, "until": UNTIL, "csv": "header\n" if first else "",
|
|
30
|
+
"nextCursor": "page/two+=" if first else None,
|
|
31
|
+
"finalThrough": "2026-09-20T10:00:00.123456Z",
|
|
32
|
+
"data": [{
|
|
33
|
+
"intervalId": "i", "resourceId": "r", "name": None, "kind": "sandbox", "meter": "runtime",
|
|
34
|
+
"fundedBy": "credit", "startsAt": "a", "endsAt": "b", "settledAt": "c",
|
|
35
|
+
"billedMilliseconds": "60000", "chargedMicros": "9007199254740993", "quotedRates": [],
|
|
36
|
+
"measurementsJson": None, "evidence": "measured", "final": not first,
|
|
37
|
+
}],
|
|
38
|
+
}
|
|
39
|
+
encoded = json.dumps(body).encode()
|
|
40
|
+
self.send_response(200)
|
|
41
|
+
self.send_header("Content-Type", "application/json")
|
|
42
|
+
self.send_header("Content-Length", str(len(encoded)))
|
|
43
|
+
self.end_headers()
|
|
44
|
+
self.wfile.write(encoded)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class UsageExport(unittest.TestCase):
|
|
48
|
+
@classmethod
|
|
49
|
+
def setUpClass(cls):
|
|
50
|
+
cls.server = ThreadingHTTPServer(("127.0.0.1", 0), ExportHandler)
|
|
51
|
+
cls.thread = threading.Thread(target=cls.server.serve_forever, kwargs={"poll_interval": 0.01}, daemon=True)
|
|
52
|
+
cls.thread.start()
|
|
53
|
+
cls.url = f"http://127.0.0.1:{cls.server.server_port}"
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def tearDownClass(cls):
|
|
57
|
+
cls.server.shutdown()
|
|
58
|
+
cls.server.server_close()
|
|
59
|
+
cls.thread.join()
|
|
60
|
+
|
|
61
|
+
def setUp(self):
|
|
62
|
+
self.server.seen = []
|
|
63
|
+
|
|
64
|
+
def check(self, pages):
|
|
65
|
+
self.assertEqual(self.server.seen, [
|
|
66
|
+
("/v1/usage/export", {"since": SINCE, "until": UNTIL, "limit": "500"}),
|
|
67
|
+
("/v1/usage/export", {"since": SINCE, "until": UNTIL, "limit": "500", "cursor": "page/two+="}),
|
|
68
|
+
])
|
|
69
|
+
self.assertEqual("".join(page["csv"] for page in pages), "header\n")
|
|
70
|
+
self.assertEqual([page["finalThrough"] for page in pages], ["2026-09-20T10:00:00.123456Z"] * 2)
|
|
71
|
+
self.assertEqual([page["data"][0]["final"] for page in pages], [False, True])
|
|
72
|
+
self.assertEqual(pages[0]["data"][0]["chargedMicros"], "9007199254740993")
|
|
73
|
+
|
|
74
|
+
def test_sync_follows_every_page(self):
|
|
75
|
+
with Runtime(api_key="rk_export_test", base_url=self.url, max_retries=0) as runtime:
|
|
76
|
+
pages, cursor = [], None
|
|
77
|
+
while True:
|
|
78
|
+
pages.append(runtime.usage_export(SINCE, UNTIL, cursor=cursor, limit=500))
|
|
79
|
+
cursor = pages[-1]["nextCursor"]
|
|
80
|
+
if cursor is None:
|
|
81
|
+
break
|
|
82
|
+
self.check(pages)
|
|
83
|
+
|
|
84
|
+
def test_async_follows_every_page(self):
|
|
85
|
+
async def walk():
|
|
86
|
+
async with AsyncRuntime(api_key="rk_export_test", base_url=self.url, max_retries=0) as runtime:
|
|
87
|
+
pages, cursor = [], None
|
|
88
|
+
while True:
|
|
89
|
+
pages.append(await runtime.usage_export(SINCE, UNTIL, cursor=cursor, limit=500))
|
|
90
|
+
cursor = pages[-1]["nextCursor"]
|
|
91
|
+
if cursor is None:
|
|
92
|
+
return pages
|
|
93
|
+
self.check(asyncio.run(walk()))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
if __name__ == "__main__":
|
|
97
|
+
unittest.main()
|
|
@@ -38,8 +38,10 @@ class Stub(BaseHTTPRequestHandler):
|
|
|
38
38
|
if path == f"/v1/volumes/{VOLUME}:backup":
|
|
39
39
|
return self._reply(201, {"id": BACKUP, "kind": "volume-backup", "state": "ready", "volumeId": VOLUME})
|
|
40
40
|
if path == f"/v1/volumes/{VOLUME}:backup-policy":
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
backups = {"daily": body.get("daily", True), "retentionDays": body.get("retentionDays", 7)}
|
|
42
|
+
if "schedule" in body:
|
|
43
|
+
backups.update(schedule=body["schedule"], keep=body.get("keep"))
|
|
44
|
+
return self._reply(200, {"id": VOLUME, "backups": backups})
|
|
43
45
|
if path == "/v1/volume-backups":
|
|
44
46
|
return self._reply(200, {"data": [{"id": BACKUP}], "nextCursor": None})
|
|
45
47
|
if path == f"/v1/volume-backups/{BACKUP}":
|
|
@@ -74,6 +76,15 @@ class VolumeBackups(unittest.TestCase):
|
|
|
74
76
|
self.assertEqual(Stub.seen[-1][1:], (f"/v1/volumes/{VOLUME}:backup", "", {"retentionDays": 3}, "wait=60"))
|
|
75
77
|
policy = runtime.volumes.set_backup_policy(VOLUME, daily=False, retention_days=14)
|
|
76
78
|
self.assertEqual(policy["backups"], {"daily": False, "retentionDays": 14})
|
|
79
|
+
clock = runtime.volumes.set_backup_policy(VOLUME, every_minutes=60, keep={"hourly": 24, "daily": 7})
|
|
80
|
+
self.assertEqual(Stub.seen[-1][3], {"schedule": {"everyMinutes": 60}, "keep": {"hourly": 24, "daily": 7}})
|
|
81
|
+
self.assertEqual(clock["backups"]["schedule"], {"everyMinutes": 60})
|
|
82
|
+
runtime.volumes.set_backup_policy(VOLUME, cron="30 2 * * 1-5")
|
|
83
|
+
self.assertEqual(Stub.seen[-1][3], {"schedule": {"cron": "30 2 * * 1-5"}})
|
|
84
|
+
runtime.volumes.set_backup_policy(VOLUME, no_schedule=True)
|
|
85
|
+
self.assertEqual(Stub.seen[-1][3], {"schedule": None})
|
|
86
|
+
with self.assertRaises(ValueError):
|
|
87
|
+
runtime.volumes.set_backup_policy(VOLUME, every_minutes=60, cron="0 * * * *")
|
|
77
88
|
self.assertEqual([b["id"] for b in runtime.volumes.backups(VOLUME)], [BACKUP])
|
|
78
89
|
self.assertEqual(Stub.seen[-1][2], f"volumeId={VOLUME}")
|
|
79
90
|
self.assertEqual(runtime.volumes.get_backup(BACKUP)["state"], "ready")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Agents' templates, as data:
|
|
1
|
+
"""Agents' templates, as data: seven 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).
|
|
@@ -19,6 +19,8 @@ from __future__ import annotations
|
|
|
19
19
|
from typing import Any
|
|
20
20
|
|
|
21
21
|
_START = "\"$(cat ~/.runtime-agent/start.md)\""
|
|
22
|
+
_REVIEW = "python3 ~/.runtime-agent/runtime-agent review"
|
|
23
|
+
_JUDGE = "python3 ~/.runtime-agent/runtime-agent judge"
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
def _template(key: str, title: str, command: str, secret: str, host: str, subscription: Any) -> dict[str, Any]:
|
|
@@ -45,6 +47,19 @@ TEMPLATES: dict[str, dict[str, Any]] = {t["key"]: t for t in (
|
|
|
45
47
|
"ANTHROPIC_API_KEY", "api.anthropic.com", None),
|
|
46
48
|
_template("openai-agents-sdk", "OpenAI Agents SDK", "python3 ~/agent.py",
|
|
47
49
|
"OPENAI_API_KEY", "api.openai.com", None),
|
|
50
|
+
# A CI/CD agent step's reviewer: asks Claude with no tools, on a pool of
|
|
51
|
+
# accounts, the one with the most usage left first.
|
|
52
|
+
{**_template("review", "Code review", _REVIEW, "ANTHROPIC_API_KEY", "api.anthropic.com",
|
|
53
|
+
"a token per account: run `claude setup-token` on your own computer (Pro/Max) for each, "
|
|
54
|
+
"store each with `runtime secrets set CLAUDE_1` scoped to api.anthropic.com, then name "
|
|
55
|
+
"them all in pool (--pool CLAUDE_1 --pool CLAUDE_2)"),
|
|
56
|
+
"definition": {"command": _REVIEW, "pool": ["ANTHROPIC_API_KEY"], "vcpu": 2, "memoryMiB": 2048,
|
|
57
|
+
"maxSessionSeconds": 1800}},
|
|
58
|
+
# An agent step held to its owners' instructions alone (a docs check).
|
|
59
|
+
{**_template("judge", "Your rules", _JUDGE, "ANTHROPIC_API_KEY", "api.anthropic.com",
|
|
60
|
+
"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
|
+
"definition": {"command": _JUDGE, "pool": ["ANTHROPIC_API_KEY"], "vcpu": 2, "memoryMiB": 2048,
|
|
62
|
+
"maxSessionSeconds": 1800}},
|
|
48
63
|
)}
|
|
49
64
|
|
|
50
65
|
USES: dict[str, dict[str, Any]] = {
|
|
@@ -258,8 +258,11 @@ class _Transport:
|
|
|
258
258
|
raise _missing_key()
|
|
259
259
|
return self._key
|
|
260
260
|
|
|
261
|
-
def _headers(self, accept: str, key: Optional[str], content: Optional[str], wait: Optional[int]
|
|
262
|
-
|
|
261
|
+
def _headers(self, accept: str, key: Optional[str], content: Optional[str], wait: Optional[int],
|
|
262
|
+
bearer: Optional[str] = None) -> dict[str, str]:
|
|
263
|
+
# ``bearer``: sent instead of the API key, as a webhook trigger's
|
|
264
|
+
# secret is, which is all its calls carry.
|
|
265
|
+
headers = {"Authorization": "Bearer " + (bearer or self._api_key()), "Accept": accept,
|
|
263
266
|
"User-Agent": f"runtime-sdk-python/{VERSION}", "X-Runtime-Client": f"sdk-python/{VERSION}"}
|
|
264
267
|
if content:
|
|
265
268
|
headers["Content-Type"] = content
|
|
@@ -275,7 +278,7 @@ class _Transport:
|
|
|
275
278
|
wait_for_capacity: Optional[float] = None, deadline: Optional[float] = None,
|
|
276
279
|
on_capacity_wait: Optional[Callable[[RuntimeError, float], None]] = None,
|
|
277
280
|
read_body: bool = False, unlimited_body: bool = False,
|
|
278
|
-
hold: Optional[_Hold] = None) -> Any:
|
|
281
|
+
hold: Optional[_Hold] = None, bearer: Optional[str] = None) -> Any:
|
|
279
282
|
"""Sends a call and returns the response once it succeeded. Retries
|
|
280
283
|
transport failures, 429, 502, 503 and 504 with backoff, with the same
|
|
281
284
|
Idempotency-Key every time, so a retried write never happens twice.
|
|
@@ -286,7 +289,7 @@ class _Transport:
|
|
|
286
289
|
key = _check_key(idempotency_key) if idempotency_key else (str(uuid.uuid4()) if method != "GET" else None)
|
|
287
290
|
data = raw if raw is not None else (None if body is None else json.dumps(body).encode())
|
|
288
291
|
content = "application/octet-stream" if raw is not None else ("application/json" if body is not None else None)
|
|
289
|
-
headers = self._headers(accept, key, content, wait)
|
|
292
|
+
headers = self._headers(accept, key, content, wait, bearer)
|
|
290
293
|
target = path + _query(query or {})
|
|
291
294
|
from ._request_scope import current
|
|
292
295
|
scope = current()
|
|
@@ -2189,6 +2192,24 @@ class AsyncRuntime:
|
|
|
2189
2192
|
The key needs usage permission. The window ends with the partial hour."""
|
|
2190
2193
|
return await self._t.json("GET", "/v1/usage/requests", query={"range": range})
|
|
2191
2194
|
|
|
2195
|
+
async def usage_export(
|
|
2196
|
+
self, since: str, until: str, *, cursor: str | None = None, limit: int | None = None
|
|
2197
|
+
) -> dict[str, Any]:
|
|
2198
|
+
"""One page of settled usage for every product the key sees: settled at
|
|
2199
|
+
``since`` or later and before ``until`` (UTC, ending in Z). Follow
|
|
2200
|
+
``nextCursor`` with the same range until it is None; concatenate each
|
|
2201
|
+
page's ``csv`` (the header is on the first only). Money and quantities
|
|
2202
|
+
are exact decimal strings. ``finalThrough``: no row settled before it
|
|
2203
|
+
can still appear or change, so the range is final once it reaches
|
|
2204
|
+
``until``. A row's ``final`` is True once its resource is deleted and
|
|
2205
|
+
can be charged nothing more."""
|
|
2206
|
+
query: dict[str, Any] = {"since": since, "until": until}
|
|
2207
|
+
if cursor is not None:
|
|
2208
|
+
query["cursor"] = cursor
|
|
2209
|
+
if limit is not None:
|
|
2210
|
+
query["limit"] = limit
|
|
2211
|
+
return await self._t.json("GET", "/v1/usage/export", query=query)
|
|
2212
|
+
|
|
2192
2213
|
async def request(self, method: str, path: str, **kwargs: Any) -> Any:
|
|
2193
2214
|
"""Any API route, with the client's auth, retries and errors."""
|
|
2194
2215
|
return await self._t.json(method, path, **kwargs)
|