withruntime 0.20.0__tar.gz → 0.21.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.20.0/withruntime.egg-info → withruntime-0.21.0}/PKG-INFO +1 -1
- {withruntime-0.20.0 → withruntime-0.21.0}/pyproject.toml +1 -1
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_package_typing.py +1 -1
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_secrets.py +78 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/secrets.py +23 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/secrets.py +23 -0
- withruntime-0.21.0/withruntime/_version.py +1 -0
- {withruntime-0.20.0 → withruntime-0.21.0/withruntime.egg-info}/PKG-INFO +1 -1
- withruntime-0.20.0/withruntime/_version.py +0 -1
- {withruntime-0.20.0 → withruntime-0.21.0}/LICENSE +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/README.md +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/setup.cfg +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_account_errors.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_answer_start.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_apps_builds.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_async_stream_cleanup.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_audit.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_billing.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_blaxel.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_blaxel_0_4_17.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_blaxel_0_4_18.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_blaxel_create_timeout.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_blaxel_wait_deadline.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_browser.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_capacity_wait.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_live.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_modal_deadline_errors.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_new_providers.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_prime_contract.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_prime_validation.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_disk_snapshots.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_e2b_deadline.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_e2b_pty.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_e2b_stream.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_e2b_watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_modal.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_morph.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_official.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_pins.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_processes.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_request_scope.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_runloop.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_shell.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_snapshot_capture.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_python_sprites.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_compat_router.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_customer_usage.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_0_223_1.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_0_224_1.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_0_225_0.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_create_cleanup.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_create_options.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_download_labels.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_daytona_refusals_lifted.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_deepagents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_2_55.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_code_interpreter.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_connection_cap.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_exports.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_fork_validation.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_upstream.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_e2b_watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_embed_and_webhook_watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_eval_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_exec_stream.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_exec_stream_names.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_exec_user.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_file_archives.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_files_download.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_files_mode.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_files_upload_parallel.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_files_write_lost_body.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_harbor.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_http_tls_close.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_identity_token.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_image_delete_by_name.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_images_v2.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_images_volumes_interpreter.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_inspect_ai.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_interface_contract.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_jobs.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_late_answer.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_lifecycle_settings.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_limits.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_machine_engine.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_modal_1_6_2.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_modal_dropin.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_mounts.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_network_funding.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_network_products.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_observability.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_openai_agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_out_of_memory.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_previews_network_desktop.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_prime_0_4_5.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_prime_0_4_6.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_private_network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_process_deadline.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_process_input.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_process_object.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_process_output.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_process_write_backpressure.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_product_aliases.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_proxy.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_referrals.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_replayed_create_message.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_runloop_stream_cleanup.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_runloop_v2.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_sandbox_origin.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_sandbox_sessions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_sandboxes_delete_all.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_sandboxes_stop_all.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_saved_connection.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_signed_requests.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_snapshot_after_fork.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_snapshot_recovery.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_sso.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_start_report_kept.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_stream_cut_short.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_stream_exit_close.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_switch_image.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_switching.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_tailscale.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_tools.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_transport_body_recovery.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_transport_connection_limits.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_transport_never_sent.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_unpack.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_upload_deadline.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_vercel.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_vercel_create_validation.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_vercel_disk_snapshot.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_vercel_refusals_lifted.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_volume_backups.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_volume_operations.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_wake_awake.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_wallet.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/tests/test_watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_agent_templates.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_api_defaults.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/apps.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/audit.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/billing.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/browser.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/builds.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/containers.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/desktop.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/images.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/interpreter.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/jobs.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/limits.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/mcp.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/mounts.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/network_products.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/observability.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/previews.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/private_network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/referrals.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/signed_requests.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/sso.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/switching.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/tailscale.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/volumes.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_async_products/watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_clock.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_compat.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_compat_lease.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_compat_lifecycle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_compat_shell.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_connection.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_errors.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_eval_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_http.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_proxy.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_renamed.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_request_scope.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/apps.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/audit.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/billing.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/browser.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/builds.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/containers.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/desktop.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/images.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/interpreter.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/jobs.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/limits.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/mcp.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/mounts.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/network_products.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/observability.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/previews.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/private_network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/referrals.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/signed_requests.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/sso.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/switching.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/tailscale.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/volumes.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_sync_products/watch.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_tunnel.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_unpack.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/_ws.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/_async_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/_async_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/_core.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/_sync_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/images.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/env.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/function.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/pagination.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/client/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/common.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/drive.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/errors.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/jobs.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/core/secret.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/crewai.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/googleadk.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/langgraph.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/livekit.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/llamaindex.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/openai.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/pydantic.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/blaxel/telemetry.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/_async_daytona.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/_async_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/_core.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/_sync_daytona.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/daytona/_sync_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/deepagents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/_async_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/_async_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/_core.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/_sync_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/_sync_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/code_interpreter/models.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/connection_config.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/exceptions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/network.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox/signature.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/secret/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/logger.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/readycmd.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template_async/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template_async/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template_sync/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/template_sync/main.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/volume/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/volume/connection_config.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/volume/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/volume/volume_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/e2b/volume/volume_sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/harbor.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/inspect_ai.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_dual.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_fs_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_fs_common.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_fs_sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_lookup.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_object.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_probe.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_snapshot.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/_tunnel.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/app.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/exception.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/file_pattern_matcher.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/image.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/proxy.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/sandbox/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/sandbox/sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/sandbox_fs.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/secret.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/snapshot.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/modal/volume.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/morph/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/morph/api.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/openai_agents.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/_sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/core/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/core/client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/exceptions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/models.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/process.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/prime/sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/py.typed +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/_exceptions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/_snapshots.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/_sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/_v2.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/lib/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/lib/polling.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/runloop/sdk/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_capture.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_capture_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_features.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_metadata.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_stream.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_stream_async.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/_translate.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/async_client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/async_exec.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/client.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/control.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/exceptions.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/exec.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/filesystem.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/sprite.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/sprites/types.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/tools.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/_async_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/_async_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/_core.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/_sync_io.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/_sync_sandbox.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/api.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/sandbox/__init__.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/vercel/sandbox/sync.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/wallet.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime/webhooks.py +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime.egg-info/SOURCES.txt +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime.egg-info/dependency_links.txt +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime.egg-info/entry_points.txt +0 -0
- {withruntime-0.20.0 → withruntime-0.21.0}/withruntime.egg-info/requires.txt +0 -0
- {withruntime-0.20.0 → withruntime-0.21.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.21.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" }
|
|
@@ -81,6 +81,23 @@ class SecretsTest(unittest.TestCase):
|
|
|
81
81
|
("DELETE", "/v1/egress-secrets/OPENAI_API_KEY", None),
|
|
82
82
|
])
|
|
83
83
|
|
|
84
|
+
def test_narrow_sends_only_given_fields_sync_and_async(self):
|
|
85
|
+
rules = [{"methods": ["GET"], "paths": ["/repos/acme/*"]}]
|
|
86
|
+
with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
87
|
+
runtime.secrets.narrow("GITHUB_TOKEN", hosts=["api.github.com"])
|
|
88
|
+
runtime.secrets.narrow("GITHUB_TOKEN", rules=rules)
|
|
89
|
+
|
|
90
|
+
async def go():
|
|
91
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
92
|
+
await runtime.secrets.narrow("GITHUB_TOKEN", hosts=["api.github.com"], rules=rules)
|
|
93
|
+
|
|
94
|
+
asyncio.run(go())
|
|
95
|
+
self.assertEqual(Stub.seen, [
|
|
96
|
+
("PUT", "/v1/egress-secrets/GITHUB_TOKEN/rules", {"hosts": ["api.github.com"]}),
|
|
97
|
+
("PUT", "/v1/egress-secrets/GITHUB_TOKEN/rules", {"rules": rules}),
|
|
98
|
+
("PUT", "/v1/egress-secrets/GITHUB_TOKEN/rules", {"hosts": ["api.github.com"], "rules": rules}),
|
|
99
|
+
])
|
|
100
|
+
|
|
84
101
|
def test_async_set(self):
|
|
85
102
|
async def go():
|
|
86
103
|
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
@@ -218,5 +235,66 @@ class UpstreamProxyTest(unittest.TestCase):
|
|
|
218
235
|
self.assertEqual(UpstreamProxyStub.seen[0][2], {"url": "https://proxy.example.com:8443"})
|
|
219
236
|
|
|
220
237
|
|
|
238
|
+
COPY = {"id": "sec_1", "name": "HUB_KEY", "ownerId": "p", "createdBy": "agent_a", "usableBy": [], "version": 1,
|
|
239
|
+
"createdAt": 0, "updatedAt": 0, "deletedAt": None}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class ShareStub(BaseHTTPRequestHandler):
|
|
243
|
+
seen: list = []
|
|
244
|
+
|
|
245
|
+
def log_message(self, *args):
|
|
246
|
+
pass
|
|
247
|
+
|
|
248
|
+
def answer(self, value):
|
|
249
|
+
data = json.dumps(value).encode()
|
|
250
|
+
self.send_response(200)
|
|
251
|
+
self.send_header("content-type", "application/json")
|
|
252
|
+
self.send_header("content-length", str(len(data)))
|
|
253
|
+
self.end_headers()
|
|
254
|
+
self.wfile.write(data)
|
|
255
|
+
|
|
256
|
+
def do_GET(self):
|
|
257
|
+
ShareStub.seen.append((self.command, self.path, None))
|
|
258
|
+
self.answer([COPY] if self.path.startswith("/v1/secrets") else {"secrets": []})
|
|
259
|
+
|
|
260
|
+
def do_POST(self):
|
|
261
|
+
body = json.loads(self.rfile.read(int(self.headers.get("content-length") or 0)))
|
|
262
|
+
ShareStub.seen.append((self.command, self.path, body))
|
|
263
|
+
self.answer({**COPY, "usableBy": body["agents"]})
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class ShareTest(unittest.TestCase):
|
|
267
|
+
@classmethod
|
|
268
|
+
def setUpClass(cls):
|
|
269
|
+
cls.server = ThreadingHTTPServer(("127.0.0.1", 0), ShareStub)
|
|
270
|
+
threading.Thread(target=cls.server.serve_forever, daemon=True).start()
|
|
271
|
+
cls.url = f"http://127.0.0.1:{cls.server.server_address[1]}"
|
|
272
|
+
|
|
273
|
+
@classmethod
|
|
274
|
+
def tearDownClass(cls):
|
|
275
|
+
cls.server.shutdown()
|
|
276
|
+
|
|
277
|
+
def setUp(self):
|
|
278
|
+
ShareStub.seen = []
|
|
279
|
+
|
|
280
|
+
def test_sync_share_replaces_who_may_use_the_jobs_copy(self):
|
|
281
|
+
with Runtime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
282
|
+
self.assertEqual(runtime.secrets.share("HUB_KEY", ["agent_b"])["usableBy"], ["agent_b"])
|
|
283
|
+
self.assertEqual(runtime.secrets.share("HUB_KEY", "all")["usableBy"], "all")
|
|
284
|
+
with self.assertRaises(NotFoundError):
|
|
285
|
+
runtime.secrets.share("MISSING", [])
|
|
286
|
+
self.assertEqual([seen[2] for seen in ShareStub.seen if seen[0] == "POST"],
|
|
287
|
+
[{"agents": ["agent_b"]}, {"agents": "all"}])
|
|
288
|
+
self.assertEqual(ShareStub.seen[1][:2], ("POST", "/v1/secrets/sec_1:share"))
|
|
289
|
+
|
|
290
|
+
def test_async_share(self):
|
|
291
|
+
async def go():
|
|
292
|
+
async with AsyncRuntime(api_key="rk_test", base_url=self.url, max_retries=0) as runtime:
|
|
293
|
+
return await runtime.secrets.share("HUB_KEY", [])
|
|
294
|
+
|
|
295
|
+
self.assertEqual(asyncio.run(go())["usableBy"], [])
|
|
296
|
+
self.assertEqual(ShareStub.seen[-1], ("POST", "/v1/secrets/sec_1:share", {"agents": []}))
|
|
297
|
+
|
|
298
|
+
|
|
221
299
|
if __name__ == "__main__":
|
|
222
300
|
unittest.main()
|
|
@@ -180,6 +180,18 @@ class AsyncSecrets:
|
|
|
180
180
|
``only`` and ``enforced``."""
|
|
181
181
|
return await self._t.json("PUT", f"/v1/egress-secrets/{quote(name, safe='')}/sandboxes", body=only)
|
|
182
182
|
|
|
183
|
+
async def narrow(self, name: str, *, hosts: Optional[list[str]] = None,
|
|
184
|
+
rules: Optional[list[SecretRule]] = None) -> dict[str, Any]:
|
|
185
|
+
"""Narrow a secret's ``hosts`` and/or ``rules`` without its value. Only
|
|
186
|
+
strictly narrower ones are accepted; widening needs the value, so call
|
|
187
|
+
``set`` again with it."""
|
|
188
|
+
body: dict[str, Any] = {}
|
|
189
|
+
if hosts is not None:
|
|
190
|
+
body["hosts"] = hosts
|
|
191
|
+
if rules is not None:
|
|
192
|
+
body["rules"] = rules
|
|
193
|
+
return await self._t.json("PUT", f"/v1/egress-secrets/{quote(name, safe='')}/rules", body=body)
|
|
194
|
+
|
|
183
195
|
async def list(self) -> list[dict[str, Any]]:
|
|
184
196
|
"""The sandboxes' secrets: names, hosts, headers and placeholders. Never
|
|
185
197
|
values. ``all()`` includes the jobs copies."""
|
|
@@ -227,6 +239,17 @@ class AsyncSecrets:
|
|
|
227
239
|
body: dict[str, Any] = {} if version is None else {"version": version}
|
|
228
240
|
return await self._store("POST", f"/v1/secrets/{quote(live['id'], safe='')}:reveal", body=body)
|
|
229
241
|
|
|
242
|
+
async def share(self, name: str, agents: "list[str] | str") -> dict[str, Any]:
|
|
243
|
+
"""Choose which of your keys may use the jobs copy besides the one that
|
|
244
|
+
stored it: agent ids (``principal_id`` from ``me()``), ``[]`` for only
|
|
245
|
+
that key, or ``"all"`` for every key of yours. Replaces the list. Only
|
|
246
|
+
your person or the key that stored it may call this."""
|
|
247
|
+
live = await self._live(name)
|
|
248
|
+
if live is None:
|
|
249
|
+
raise NotFoundError(f"{name} has no copy for jobs to share.", code="not_found", status=404,
|
|
250
|
+
hint="Store one with set(name, value=..., jobs=True).")
|
|
251
|
+
return await self._store("POST", f"/v1/secrets/{quote(live['id'], safe='')}:share", body={"agents": agents})
|
|
252
|
+
|
|
230
253
|
async def delete(self, name: str) -> dict[str, Any]:
|
|
231
254
|
"""Delete a secret everywhere it is kept: the sandboxes' value is erased
|
|
232
255
|
and its placeholder stops working, and the jobs copy stops being given
|
|
@@ -181,6 +181,18 @@ class Secrets:
|
|
|
181
181
|
``only`` and ``enforced``."""
|
|
182
182
|
return self._t.json("PUT", f"/v1/egress-secrets/{quote(name, safe='')}/sandboxes", body=only)
|
|
183
183
|
|
|
184
|
+
def narrow(self, name: str, *, hosts: Optional[list[str]] = None,
|
|
185
|
+
rules: Optional[list[SecretRule]] = None) -> dict[str, Any]:
|
|
186
|
+
"""Narrow a secret's ``hosts`` and/or ``rules`` without its value. Only
|
|
187
|
+
strictly narrower ones are accepted; widening needs the value, so call
|
|
188
|
+
``set`` again with it."""
|
|
189
|
+
body: dict[str, Any] = {}
|
|
190
|
+
if hosts is not None:
|
|
191
|
+
body["hosts"] = hosts
|
|
192
|
+
if rules is not None:
|
|
193
|
+
body["rules"] = rules
|
|
194
|
+
return self._t.json("PUT", f"/v1/egress-secrets/{quote(name, safe='')}/rules", body=body)
|
|
195
|
+
|
|
184
196
|
def list(self) -> list[dict[str, Any]]:
|
|
185
197
|
"""The sandboxes' secrets: names, hosts, headers and placeholders. Never
|
|
186
198
|
values. ``all()`` includes the jobs copies."""
|
|
@@ -228,6 +240,17 @@ class Secrets:
|
|
|
228
240
|
body: dict[str, Any] = {} if version is None else {"version": version}
|
|
229
241
|
return self._store("POST", f"/v1/secrets/{quote(live['id'], safe='')}:reveal", body=body)
|
|
230
242
|
|
|
243
|
+
def share(self, name: str, agents: "list[str] | str") -> dict[str, Any]:
|
|
244
|
+
"""Choose which of your keys may use the jobs copy besides the one that
|
|
245
|
+
stored it: agent ids (``principal_id`` from ``me()``), ``[]`` for only
|
|
246
|
+
that key, or ``"all"`` for every key of yours. Replaces the list. Only
|
|
247
|
+
your person or the key that stored it may call this."""
|
|
248
|
+
live = self._live(name)
|
|
249
|
+
if live is None:
|
|
250
|
+
raise NotFoundError(f"{name} has no copy for jobs to share.", code="not_found", status=404,
|
|
251
|
+
hint="Store one with set(name, value=..., jobs=True).")
|
|
252
|
+
return self._store("POST", f"/v1/secrets/{quote(live['id'], safe='')}:share", body={"agents": agents})
|
|
253
|
+
|
|
231
254
|
def delete(self, name: str) -> dict[str, Any]:
|
|
232
255
|
"""Delete a secret everywhere it is kept: the sandboxes' value is erased
|
|
233
256
|
and its placeholder stops working, and the jobs copy stops being given
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "0.21.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "0.20.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|