agent-sandbox-client 0.3.1a1__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.
- agent_sandbox_client-0.3.1a1/.gitignore +74 -0
- agent_sandbox_client-0.3.1a1/LICENSE +200 -0
- agent_sandbox_client-0.3.1a1/NOTICE +18 -0
- agent_sandbox_client-0.3.1a1/PKG-INFO +151 -0
- agent_sandbox_client-0.3.1a1/README.md +81 -0
- agent_sandbox_client-0.3.1a1/pyproject.toml +140 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/__init__.py +508 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_provider_schema.py +57 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/LICENSE +9 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/PATCHES.md +23 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/SOURCES.json +960 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/__init__.py +260 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/__init__.py +287 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/__init__.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +161 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_sandboxes.py +176 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_sandboxes_metrics.py +173 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +163 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +199 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +212 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_v2_sandboxes.py +230 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +254 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +193 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +187 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +181 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +189 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +195 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +193 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +199 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/snapshots/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/snapshots/get_snapshots.py +212 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/tags/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/tags/delete_templates_tags.py +174 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/tags/get_templates_template_id_tags.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/tags/post_templates_tags.py +176 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/delete_templates_template_id.py +158 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates_aliases_alias.py +167 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates_template_id.py +195 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +272 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +232 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/get_templates_template_id_files_hash.py +180 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/patch_templates_template_id.py +183 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/patch_v_2_templates_template_id.py +185 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_templates.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_templates_template_id.py +181 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_templates_template_id_builds_build_id.py +170 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_v2_templates.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_v3_templates.py +176 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +192 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/volumes/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/volumes/delete_volumes_volume_id.py +161 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/volumes/get_volumes.py +140 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/volumes/get_volumes_volume_id.py +163 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/api/volumes/post_volumes.py +172 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/client.py +286 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/errors.py +16 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/__init__.py +185 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/admin_build_cancel_result.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/admin_sandbox_kill_result.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/assign_template_tags_request.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/assigned_template_tags.py +68 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/aws_registry.py +85 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/aws_registry_type.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/build_log_entry.py +89 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/build_status_reason.py +95 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/connect_sandbox.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/created_access_token.py +100 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/created_team_api_key.py +166 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/delete_template_tags_request.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/disk_metrics.py +91 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/error.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/gcp_registry.py +69 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/gcp_registry_type.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/general_registry.py +77 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/general_registry_type.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/identifier_masking_details.py +83 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/listed_sandbox.py +179 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/log_level.py +11 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/logs_direction.py +9 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/logs_source.py +9 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/machine_info.py +83 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/max_team_metric.py +78 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/mcp_type_0.py +44 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/new_access_token.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/new_sandbox.py +224 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/new_team_api_key.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/new_volume.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/node.py +160 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/node_detail.py +160 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/node_metrics.py +122 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/node_status.py +12 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/node_status_change.py +82 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/post_sandboxes_sandbox_id_refreshes_body.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/post_sandboxes_sandbox_id_snapshots_body.py +60 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/post_sandboxes_sandbox_id_timeout_body.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/resumed_sandbox.py +68 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox.py +145 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_auto_resume_config.py +60 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_detail.py +267 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_lifecycle.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_log.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_log_entry.py +93 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_log_entry_fields.py +44 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_logs.py +91 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_logs_v2_response.py +73 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_metric.py +126 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_config.py +118 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_config_rules.py +72 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_rule.py +74 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_transform.py +79 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_transform_headers.py +47 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_update_config.py +114 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_network_update_config_rules.py +71 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_on_timeout.py +9 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_pause_request.py +62 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_state.py +11 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandbox_volume_mount.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/sandboxes_with_metrics.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/snapshot_info.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/team.py +83 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/team_api_key.py +158 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/team_metric.py +86 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/team_user.py +75 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template.py +225 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_alias_response.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build.py +139 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_file_upload.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_info.py +126 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_logs_response.py +73 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_request.py +115 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_request_v2.py +88 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_request_v3.py +107 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_start_v2.py +184 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_build_status.py +11 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_legacy.py +207 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_request_response_v3.py +99 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_step.py +91 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_tag.py +78 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_update_request.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_update_response.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/template_with_builds.py +156 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/update_team_api_key.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/volume.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/volume_and_token.py +75 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/models/volume_token.py +59 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/py.typed +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client/types.py +54 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client_async/__init__.py +74 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/client_sync/__init__.py +73 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/api/metadata.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/connect/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/connect/client.py +534 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/connection_config.py +317 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/api.py +170 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/filesystem/filesystem_connect.py +193 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/filesystem/filesystem_pb2.py +80 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/process/process_connect.py +174 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/process/process_pb2.py +96 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/rpc.py +139 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/envd/versions.py +11 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/exceptions.py +133 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/io_utils.py +57 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/paginator.py +52 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/py.typed +0 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/__init__.py +85 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/args.py +363 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/auth.py +132 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/config.py +32 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/parse.py +222 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/_git/types.py +149 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/commands/command_handle.py +69 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/commands/main.py +39 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/filesystem/filesystem.py +337 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/filesystem/watch_handle.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/main.py +227 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/mcp.py +1949 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/network.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/sandbox_api.py +626 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/signature.py +47 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox/utils.py +34 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/commands/command.py +396 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/commands/command_handle.py +298 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/commands/pty.py +257 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/filesystem/filesystem.py +720 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/filesystem/watch_handle.py +97 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/git.py +1100 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/main.py +993 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/paginator.py +141 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/sandbox_api.py +504 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_async/utils.py +7 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_domains.py +5 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/commands/command.py +420 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/commands/command_handle.py +239 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/commands/pty.py +279 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/filesystem/filesystem.py +710 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/filesystem/watch_handle.py +102 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/git.py +1077 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/main.py +981 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/paginator.py +141 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/sandbox_sync/sandbox_api.py +491 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/consts.py +45 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/dockerfile_parser.py +286 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/logger.py +232 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/main.py +1368 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/readycmd.py +144 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/types.py +194 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template/utils.py +426 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template_async/build_api.py +419 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template_async/main.py +528 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template_sync/build_api.py +409 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/template_sync/main.py +529 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/__init__.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +174 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +204 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/get_volumecontent_volume_id_file.py +179 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/get_volumecontent_volume_id_path.py +176 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +203 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +239 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/api/volumes/put_volumecontent_volume_id_file.py +259 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/client.py +286 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/errors.py +16 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/models/__init__.py +13 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/models/error.py +67 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/models/patch_volumecontent_volume_id_path_body.py +77 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/models/volume_entry_stat.py +145 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/models/volume_entry_stat_type.py +11 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/py.typed +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client/types.py +54 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client_async/__init__.py +88 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/client_sync/__init__.py +80 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/connection_config.py +145 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/types.py +62 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/utils.py +52 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/volume_async.py +639 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_standard/volume/volume_sync.py +639 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/_version.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/__init__.py +5 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/binary_files.py +114 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/mcp.py +746 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/mcp_http.py +568 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/task_runtime.py +276 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/tasks.py +191 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/agent/tools.py +787 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/__init__.py +33 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/capability.py +88 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/code.py +126 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/commands.py +367 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/files.py +247 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/network.py +69 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/sandbox.py +1350 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/server_capabilities.py +185 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/server_client.py +1537 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/session_manager.py +161 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/api/workflow.py +349 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/LICENSE +9 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/__init__.py +14 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/charts.py +230 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/code_interpreter_async.py +389 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/code_interpreter_sync.py +383 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/constants.py +3 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/exceptions.py +20 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/code_interpreter/models.py +516 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/declarative/__init__.py +12 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/declarative/config.py +65 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/declarative/decorator.py +653 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/declarative/serializer.py +39 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/exceptions.py +3 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/__init__.py +126 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/errors.py +700 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/filesystem.py +43 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/process.py +70 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/sandbox.py +160 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/server.py +429 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/session.py +42 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/models/template.py +231 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/protocol/__init__.py +20 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/protocol/contracts.py +213 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/protocol/port.py +5 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/protocol/port_contract.py +47 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/__init__.py +64 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/__main__.py +272 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/alicloud_express/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/alicloud_express/auth.py +69 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/alicloud_express/config_metadata.py +25 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/alicloud_express/metadata.py +7 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/alicloud_express/provider.py +187 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/base.py +473 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/bundled_config.py +13 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/catalog.py +166 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/commands.py +150 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/config_distribution.py +14 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/contract.py +19 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/doctor.py +115 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/engine_client.py +333 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/engine_provider.py +645 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/epp.py +535 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/exec_provider.py +757 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/feature_gate.py +160 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/installer.py +838 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/manifest.py +667 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/registry.py +249 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/rest_provider.py +165 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/settings.py +89 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/auth.py +97 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/code_interpreter.py +43 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/filesystem.py +426 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/ports.py +40 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/process.py +367 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/sandbox.py +234 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/session.py +35 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/terminal.py +120 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/shared/e2b/url.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/store.py +325 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/providers/testing.py +396 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/py.typed +0 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/session/__init__.py +6 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/session/local.py +93 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/__init__.py +27 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/auth_contract.py +71 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/codec.py +242 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/config.py +430 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/http.py +682 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/streaming.py +89 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/transport/ws.py +156 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/__init__.py +8 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/async_bridge.py +115 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/coerce.py +169 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/config_keys.py +562 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/github_token.py +97 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/keychain.py +131 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/logging.py +58 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/registry.py +395 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/retry.py +84 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/template_index.py +549 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/utils/toml_write.py +42 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/__init__.py +5 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/identity.py +43 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/planner.py +228 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/receipt.schema.json +150 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/vectors.json +3726 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/verification-profiles.json +95 -0
- agent_sandbox_client-0.3.1a1/src/agent_sandbox/workflows/workflow-v1.json +426 -0
- agent_sandbox_client-0.3.1a1/tests/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/conftest.py +66 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/config-keys.json +488 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/config-resolution-vectors.json +4486 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/epp-error-mapping.json +302 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/epp-methods.json +609 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/generate.py +685 -0
- agent_sandbox_client-0.3.1a1/tests/fixtures/tree-digest-vectors.json +119 -0
- agent_sandbox_client-0.3.1a1/tests/integration/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/integration/test_client_run_command_e2e.py +212 -0
- agent_sandbox_client-0.3.1a1/tests/integration/test_declarative_register_e2e.py +264 -0
- agent_sandbox_client-0.3.1a1/tests/integration/test_e2e.py +562 -0
- agent_sandbox_client-0.3.1a1/tests/integration/test_server_e2e.py +461 -0
- agent_sandbox_client-0.3.1a1/tests/integration/test_workflow_e2e.py +211 -0
- agent_sandbox_client-0.3.1a1/tests/iso.py +64 -0
- agent_sandbox_client-0.3.1a1/tests/network_support.py +17 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp.py +506 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp_binary_files.py +504 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp_http.py +679 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp_lifecycle.py +418 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp_stdio.py +208 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_mcp_tasks.py +454 -0
- agent_sandbox_client-0.3.1a1/tests/test_agent/test_tools.py +288 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/conftest.py +309 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/_live.py +84 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/conftest.py +63 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_live_ports.py +49 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_sandbox_server_helpers.py +272 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_server_client_e2e.py +404 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_server_client_matrix.py +67 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_server_client_models.py +377 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/server_e2e/test_server_client_policy.py +279 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_application_binding.py +169 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_capability.py +94 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_code.py +141 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_commands.py +479 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_files.py +283 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_lifecycle_without_connect.py +143 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_native_data_plane.py +110 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_network.py +102 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_sandbox.py +1030 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_standard_contract.py +264 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_volume_mounts.py +129 -0
- agent_sandbox_client-0.3.1a1/tests/test_api/test_workflow_launch.py +236 -0
- agent_sandbox_client-0.3.1a1/tests/test_compat/__init__.py +1 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/test_config.py +144 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/test_decorator.py +333 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/test_register.py +607 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/test_serializer.py +73 -0
- agent_sandbox_client-0.3.1a1/tests/test_declarative/test_server_missing.py +61 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/helpers.py +59 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki001_per_call_env.py +68 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki002_file_entries.py +123 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki003_command_timeout.py +95 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki004_process_control.py +139 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki005_not_found_errors.py +147 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki006_authentication_error.py +81 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki007_list_missing_directory.py +63 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki008_transfer_timeout_report.py +40 -0
- agent_sandbox_client-0.3.1a1/tests/test_known_issues/test_ki010_async_decorator.py +106 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_errors.py +321 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_filesystem.py +81 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_process.py +109 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_sandbox.py +171 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_session.py +63 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_template.py +139 -0
- agent_sandbox_client-0.3.1a1/tests/test_models/test_template_server_block.py +118 -0
- agent_sandbox_client-0.3.1a1/tests/test_packaging.py +171 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_code_interpreter.py +42 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_filesystem.py +450 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_port.py +61 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_process.py +338 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_sandbox.py +345 -0
- agent_sandbox_client-0.3.1a1/tests/test_protocol/test_terminal.py +145 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/conftest.py +14 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/helpers.py +122 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_catalog_update.py +98 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_commands.py +328 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_commands_engine.py +183 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_complete_isolation.py +195 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_conformance.py +141 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_contract_kit.py +126 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_e2e_report_contract.py +110 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_alicloud_container.py +336 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_cube.py +204 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_doctor.py +59 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_e2b.py +224 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_provider.py +203 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_engine_replay.py +158 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_epp.py +425 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_host_adapters.py +460 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_installer.py +767 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_manifest.py +291 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_node_doctor.py +64 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_provider_hardening.py +244 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_registry_scoping.py +353 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_runtime_reliability.py +20 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_sandbox_provider.py +254 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_terminal_feature_contract.py +13 -0
- agent_sandbox_client-0.3.1a1/tests/test_providers/test_workflow_operations.py +191 -0
- agent_sandbox_client-0.3.1a1/tests/test_release_validation.py +45 -0
- agent_sandbox_client-0.3.1a1/tests/test_session/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_session/test_local_store.py +129 -0
- agent_sandbox_client-0.3.1a1/tests/test_session/test_session_manager.py +208 -0
- agent_sandbox_client-0.3.1a1/tests/test_templates/__init__.py +11 -0
- agent_sandbox_client-0.3.1a1/tests/test_templates/conftest.py +76 -0
- agent_sandbox_client-0.3.1a1/tests/test_templates/test_template_catalog.py +244 -0
- agent_sandbox_client-0.3.1a1/tests/test_templates/test_template_e2e.py +263 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/conftest.py +66 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_auth.py +145 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_codec.py +272 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_config.py +326 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_config_names.py +201 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_http.py +1224 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_streaming.py +117 -0
- agent_sandbox_client-0.3.1a1/tests/test_transport/test_ws.py +47 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/__init__.py +0 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_async_bridge.py +64 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_coerce.py +190 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_config_keys.py +271 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_github_token.py +76 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_keychain.py +78 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_logging.py +74 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_registry.py +909 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_retry.py +110 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_string_array.py +65 -0
- agent_sandbox_client-0.3.1a1/tests/test_utils/test_template_index.py +439 -0
- agent_sandbox_client-0.3.1a1/tests/test_version_lockstep.py +45 -0
- agent_sandbox_client-0.3.1a1/tests/test_workflows/test_contract.py +52 -0
- agent_sandbox_client-0.3.1a1/tests/workflow_fixtures.py +39 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.egg-info/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
*.egg
|
|
9
|
+
.eggs/
|
|
10
|
+
|
|
11
|
+
# Virtual environments
|
|
12
|
+
.venv/
|
|
13
|
+
venv/
|
|
14
|
+
env/
|
|
15
|
+
|
|
16
|
+
# IDE
|
|
17
|
+
.idea/
|
|
18
|
+
.vscode/
|
|
19
|
+
*.swp
|
|
20
|
+
*.swo
|
|
21
|
+
|
|
22
|
+
# Testing
|
|
23
|
+
.pytest_cache/
|
|
24
|
+
.coverage
|
|
25
|
+
coverage.json
|
|
26
|
+
htmlcov/
|
|
27
|
+
.tox/
|
|
28
|
+
|
|
29
|
+
# Linting / Type-checking caches
|
|
30
|
+
.mypy_cache/
|
|
31
|
+
.ruff_cache/
|
|
32
|
+
|
|
33
|
+
# Environment
|
|
34
|
+
.env
|
|
35
|
+
.env.*
|
|
36
|
+
!.env.example
|
|
37
|
+
|
|
38
|
+
# Secrets
|
|
39
|
+
*.pem
|
|
40
|
+
*.key
|
|
41
|
+
secrets.json
|
|
42
|
+
# NOTE: .secrets.baseline is intentionally tracked — it is referenced by the
|
|
43
|
+
# detect-secrets hook in .pre-commit-config.yaml and must ship with the repo.
|
|
44
|
+
# Do not add it back to .gitignore.
|
|
45
|
+
|
|
46
|
+
# OS
|
|
47
|
+
.DS_Store
|
|
48
|
+
Thumbs.db
|
|
49
|
+
|
|
50
|
+
# Build
|
|
51
|
+
*.so
|
|
52
|
+
*.dylib
|
|
53
|
+
*.whl
|
|
54
|
+
|
|
55
|
+
# Temporary diff/patch files
|
|
56
|
+
*.diff
|
|
57
|
+
current_diff.patch
|
|
58
|
+
diff-code.txt
|
|
59
|
+
|
|
60
|
+
# Local scratch/verification workspaces
|
|
61
|
+
.scratch-*/
|
|
62
|
+
|
|
63
|
+
# Sandbox config (may contain API keys)
|
|
64
|
+
~/.sbox/
|
|
65
|
+
|
|
66
|
+
# Benchmarks output
|
|
67
|
+
client-sdk/benchmarks/*.log
|
|
68
|
+
|
|
69
|
+
# NOTE: .agents/ (notes, evidence, research) is fully tracked; do not ignore any part of it.
|
|
70
|
+
|
|
71
|
+
# awesome-templates sub-repo (has its own git)
|
|
72
|
+
awesome-templates/
|
|
73
|
+
|
|
74
|
+
scripts/local-paths.private
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. Please also get an overview of
|
|
186
|
+
how to use the license at http://www.apache.org/foundation/license-faq.html.
|
|
187
|
+
|
|
188
|
+
Copyright 2026 Anycodes
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Agent Sandbox
|
|
2
|
+
Copyright 2026 Anycodes
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
Includes MIT-licensed E2B 2.31.0 and Code Interpreter 2.8.1 protocol/client sources,
|
|
17
|
+
ported into the Agent Sandbox namespace. Copyright FoundryLabs, Inc. and E2B authors.
|
|
18
|
+
See agent_sandbox/_standard/LICENSE, code_interpreter/LICENSE and _standard/SOURCES.json.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agent-sandbox-client
|
|
3
|
+
Version: 0.3.1a1
|
|
4
|
+
Summary: Agent Sandbox SDK — Create, manage, and interact with cloud sandboxes for AI agents
|
|
5
|
+
Project-URL: Homepage, https://github.com/alibaba-agent-sandbox/python-sdk
|
|
6
|
+
Project-URL: Documentation, https://github.com/alibaba-agent-sandbox/python-sdk/tree/main/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/alibaba-agent-sandbox/python-sdk
|
|
8
|
+
Project-URL: Issues, https://github.com/alibaba-agent-sandbox/python-sdk/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/alibaba-agent-sandbox/python-sdk/blob/main/CHANGELOG.md
|
|
10
|
+
Author: Anycodes
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: agent,ai,alibaba-cloud,cloud,sandbox
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Requires-Dist: agent-sandbox-server==0.3.1a1
|
|
26
|
+
Requires-Dist: attrs>=23.2
|
|
27
|
+
Requires-Dist: dockerfile-parse<3,>=2.0.1
|
|
28
|
+
Requires-Dist: h2<5,>=4
|
|
29
|
+
Requires-Dist: httpcore<2,>=1.0.5
|
|
30
|
+
Requires-Dist: httpx[http2]<1,>=0.27
|
|
31
|
+
Requires-Dist: packaging>=24.1
|
|
32
|
+
Requires-Dist: protobuf>=5
|
|
33
|
+
Requires-Dist: pydantic>=2.14.0
|
|
34
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
35
|
+
Requires-Dist: python-dotenv>=1.0
|
|
36
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
37
|
+
Requires-Dist: rich>=14
|
|
38
|
+
Requires-Dist: tomli>=2.0; python_version < '3.11'
|
|
39
|
+
Requires-Dist: typing-extensions>=4.1
|
|
40
|
+
Requires-Dist: wcmatch<11,>=10.1
|
|
41
|
+
Requires-Dist: websockets>=16.1.1
|
|
42
|
+
Provides-Extra: all
|
|
43
|
+
Requires-Dist: filelock>=3.12; extra == 'all'
|
|
44
|
+
Requires-Dist: mcp>=1.0.0; extra == 'all'
|
|
45
|
+
Requires-Dist: orjson>=3.13.0; extra == 'all'
|
|
46
|
+
Requires-Dist: starlette>=1.7.0; extra == 'all'
|
|
47
|
+
Requires-Dist: uvicorn>=0.54.0; extra == 'all'
|
|
48
|
+
Provides-Extra: dev
|
|
49
|
+
Requires-Dist: filelock>=3.12; extra == 'dev'
|
|
50
|
+
Requires-Dist: mcp>=1.0.0; extra == 'dev'
|
|
51
|
+
Requires-Dist: mypy>=2.4.0; extra == 'dev'
|
|
52
|
+
Requires-Dist: orjson>=3.13.0; extra == 'dev'
|
|
53
|
+
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
|
|
54
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
|
|
55
|
+
Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
|
|
56
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
57
|
+
Requires-Dist: ruff>=0.17.0; extra == 'dev'
|
|
58
|
+
Requires-Dist: starlette>=1.7.0; extra == 'dev'
|
|
59
|
+
Requires-Dist: types-pyyaml>=6.0.12.20260906; extra == 'dev'
|
|
60
|
+
Requires-Dist: uvicorn>=0.54.0; extra == 'dev'
|
|
61
|
+
Provides-Extra: fast
|
|
62
|
+
Requires-Dist: orjson>=3.13.0; extra == 'fast'
|
|
63
|
+
Provides-Extra: mcp
|
|
64
|
+
Requires-Dist: mcp>=1.0.0; extra == 'mcp'
|
|
65
|
+
Requires-Dist: starlette>=1.7.0; extra == 'mcp'
|
|
66
|
+
Requires-Dist: uvicorn>=0.54.0; extra == 'mcp'
|
|
67
|
+
Provides-Extra: session
|
|
68
|
+
Requires-Dist: filelock>=3.12; extra == 'session'
|
|
69
|
+
Description-Content-Type: text/markdown
|
|
70
|
+
|
|
71
|
+
# agent-sandbox-client
|
|
72
|
+
|
|
73
|
+
Provider extensions use [explicit template workflows](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/template-workflows.md) ([中文](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/template-workflows.md)); application HTTP, stateless execution and context operations are independent.
|
|
74
|
+
|
|
75
|
+
This package is the opt-in **0.3.1a1 alpha** candidate. Use its exact PyPI version after verified publication; before that, use the [tested paired source recipe](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/install-python.md). Alpha publication does not establish every provider or template as production-ready.
|
|
76
|
+
|
|
77
|
+
**Client SDK.** The product is Agent Sandbox. The import path is `agent_sandbox`. This package runs on your machine: create a sandbox, use it, and kill it. The HTTP service inside the image is [`agent-sandbox-server`](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/server-sdk/README.md). Guide: [Client SDK](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/client-sdk.md).
|
|
78
|
+
|
|
79
|
+
Template build and deploy are done by the CLI (`abx template build|deploy`).
|
|
80
|
+
The standard root Sandbox/AsyncSandbox and code_interpreter APIs follow Alibaba-supported E2B behavior: [migration guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/migrate-from-e2b.md) ([中文](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/migrate-from-e2b.md)). Provider/server/declarative extensions use the explicit ProviderSandbox entry.
|
|
81
|
+
|
|
82
|
+
This package is the `agent_sandbox` import namespace *except* `agent_sandbox.server`, which is
|
|
83
|
+
the container-side runtime shipped separately as
|
|
84
|
+
[`agent-sandbox-server`](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/server-sdk/README.md) (a hard dependency pinned to the same version,
|
|
85
|
+
so installing the published client also installs the matching server).
|
|
86
|
+
|
|
87
|
+
The command-line tool (`abx`) is a separate Node.js project that lives in the [`cli`](https://github.com/alibaba-agent-sandbox/agent-sandbox) repository.
|
|
88
|
+
|
|
89
|
+
## Install
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
python -m pip install 'agent-sandbox-client==0.3.1a1'
|
|
93
|
+
# Optional extras:
|
|
94
|
+
python -m pip install 'agent-sandbox-client[all]==0.3.1a1'
|
|
95
|
+
python -m pip check
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Do not run `pip install agent-sandbox`. That name on PyPI is an unrelated project.
|
|
99
|
+
|
|
100
|
+
## Quick start
|
|
101
|
+
|
|
102
|
+
Configure the Express API key before this example. It uses standard command and file APIs; provider-specific interpreters and registered server commands have separate requirements.
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
import asyncio
|
|
106
|
+
from agent_sandbox import AsyncSandbox
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def main():
|
|
110
|
+
sandbox = await AsyncSandbox.create(template="base")
|
|
111
|
+
try:
|
|
112
|
+
result = await sandbox.commands.run("echo hello")
|
|
113
|
+
print(result.stdout)
|
|
114
|
+
await sandbox.files.write("/tmp/data.txt", "content")
|
|
115
|
+
print(await sandbox.files.read("/tmp/data.txt"))
|
|
116
|
+
finally:
|
|
117
|
+
await sandbox.kill()
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
asyncio.run(main())
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Provider management operations use `agent_sandbox.providers.commands`; see the
|
|
124
|
+
[English guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/provider-commands.md) and
|
|
125
|
+
[中文指南](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/provider-commands.md). Writes require explicit confirmation,
|
|
126
|
+
and command POST requests are never automatically replayed.
|
|
127
|
+
|
|
128
|
+
## Layout
|
|
129
|
+
|
|
130
|
+
| Package | Layer |
|
|
131
|
+
|---------|-------|
|
|
132
|
+
| `agent_sandbox.transport` | L1 — HTTP/2, WebSocket, API key / AK-SK auth, config loading |
|
|
133
|
+
| `agent_sandbox.protocol` | L2 — envd protocol (sandbox, process, filesystem, terminal, port) |
|
|
134
|
+
| `agent_sandbox.api` | L3 — `Sandbox`, files, commands, code, named commands, server client |
|
|
135
|
+
| `agent_sandbox.declarative` | L4 — `@sandbox` decorator, `sandbox.yaml` |
|
|
136
|
+
| `agent_sandbox.agent` | L5 — tool schemas, MCP stdio/HTTP servers |
|
|
137
|
+
|
|
138
|
+
Run the MCP stdio server directly with `python -m agent_sandbox.agent.mcp`
|
|
139
|
+
(reads `ABX_SANDBOX_API_KEY`, `ABX_SANDBOX_BASE_URL`, `ABX_SANDBOX_DOMAIN` and `ABX_DEFAULT_TEMPLATE`).
|
|
140
|
+
|
|
141
|
+
Named-command string-array arguments (`list[str]`) preserve native JSON values. See the [server API guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/template-server-api.md#string-array-command-arguments).
|
|
142
|
+
|
|
143
|
+
## Develop
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# from python-sdk/
|
|
147
|
+
pip install -e ./server-sdk -e "./client-sdk[dev]"
|
|
148
|
+
cd client-sdk && pytest -m "not integration" && ruff check src tests && mypy src/agent_sandbox
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Licensed under Apache-2.0.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# agent-sandbox-client
|
|
2
|
+
|
|
3
|
+
Provider extensions use [explicit template workflows](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/template-workflows.md) ([中文](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/template-workflows.md)); application HTTP, stateless execution and context operations are independent.
|
|
4
|
+
|
|
5
|
+
This package is the opt-in **0.3.1a1 alpha** candidate. Use its exact PyPI version after verified publication; before that, use the [tested paired source recipe](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/install-python.md). Alpha publication does not establish every provider or template as production-ready.
|
|
6
|
+
|
|
7
|
+
**Client SDK.** The product is Agent Sandbox. The import path is `agent_sandbox`. This package runs on your machine: create a sandbox, use it, and kill it. The HTTP service inside the image is [`agent-sandbox-server`](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/server-sdk/README.md). Guide: [Client SDK](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/client-sdk.md).
|
|
8
|
+
|
|
9
|
+
Template build and deploy are done by the CLI (`abx template build|deploy`).
|
|
10
|
+
The standard root Sandbox/AsyncSandbox and code_interpreter APIs follow Alibaba-supported E2B behavior: [migration guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/migrate-from-e2b.md) ([中文](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/migrate-from-e2b.md)). Provider/server/declarative extensions use the explicit ProviderSandbox entry.
|
|
11
|
+
|
|
12
|
+
This package is the `agent_sandbox` import namespace *except* `agent_sandbox.server`, which is
|
|
13
|
+
the container-side runtime shipped separately as
|
|
14
|
+
[`agent-sandbox-server`](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/server-sdk/README.md) (a hard dependency pinned to the same version,
|
|
15
|
+
so installing the published client also installs the matching server).
|
|
16
|
+
|
|
17
|
+
The command-line tool (`abx`) is a separate Node.js project that lives in the [`cli`](https://github.com/alibaba-agent-sandbox/agent-sandbox) repository.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
python -m pip install 'agent-sandbox-client==0.3.1a1'
|
|
23
|
+
# Optional extras:
|
|
24
|
+
python -m pip install 'agent-sandbox-client[all]==0.3.1a1'
|
|
25
|
+
python -m pip check
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Do not run `pip install agent-sandbox`. That name on PyPI is an unrelated project.
|
|
29
|
+
|
|
30
|
+
## Quick start
|
|
31
|
+
|
|
32
|
+
Configure the Express API key before this example. It uses standard command and file APIs; provider-specific interpreters and registered server commands have separate requirements.
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
import asyncio
|
|
36
|
+
from agent_sandbox import AsyncSandbox
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
async def main():
|
|
40
|
+
sandbox = await AsyncSandbox.create(template="base")
|
|
41
|
+
try:
|
|
42
|
+
result = await sandbox.commands.run("echo hello")
|
|
43
|
+
print(result.stdout)
|
|
44
|
+
await sandbox.files.write("/tmp/data.txt", "content")
|
|
45
|
+
print(await sandbox.files.read("/tmp/data.txt"))
|
|
46
|
+
finally:
|
|
47
|
+
await sandbox.kill()
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
asyncio.run(main())
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Provider management operations use `agent_sandbox.providers.commands`; see the
|
|
54
|
+
[English guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/provider-commands.md) and
|
|
55
|
+
[中文指南](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/zh/guide/provider-commands.md). Writes require explicit confirmation,
|
|
56
|
+
and command POST requests are never automatically replayed.
|
|
57
|
+
|
|
58
|
+
## Layout
|
|
59
|
+
|
|
60
|
+
| Package | Layer |
|
|
61
|
+
|---------|-------|
|
|
62
|
+
| `agent_sandbox.transport` | L1 — HTTP/2, WebSocket, API key / AK-SK auth, config loading |
|
|
63
|
+
| `agent_sandbox.protocol` | L2 — envd protocol (sandbox, process, filesystem, terminal, port) |
|
|
64
|
+
| `agent_sandbox.api` | L3 — `Sandbox`, files, commands, code, named commands, server client |
|
|
65
|
+
| `agent_sandbox.declarative` | L4 — `@sandbox` decorator, `sandbox.yaml` |
|
|
66
|
+
| `agent_sandbox.agent` | L5 — tool schemas, MCP stdio/HTTP servers |
|
|
67
|
+
|
|
68
|
+
Run the MCP stdio server directly with `python -m agent_sandbox.agent.mcp`
|
|
69
|
+
(reads `ABX_SANDBOX_API_KEY`, `ABX_SANDBOX_BASE_URL`, `ABX_SANDBOX_DOMAIN` and `ABX_DEFAULT_TEMPLATE`).
|
|
70
|
+
|
|
71
|
+
Named-command string-array arguments (`list[str]`) preserve native JSON values. See the [server API guide](https://github.com/Alibaba-Agent-Sandbox/python-sdk/blob/main/docs/en/guide/template-server-api.md#string-array-command-arguments).
|
|
72
|
+
|
|
73
|
+
## Develop
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# from python-sdk/
|
|
77
|
+
pip install -e ./server-sdk -e "./client-sdk[dev]"
|
|
78
|
+
cd client-sdk && pytest -m "not integration" && ruff check src tests && mypy src/agent_sandbox
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Licensed under Apache-2.0.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agent-sandbox-client"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Agent Sandbox SDK — Create, manage, and interact with cloud sandboxes for AI agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Anycodes" },
|
|
14
|
+
]
|
|
15
|
+
keywords = ["sandbox", "ai", "agent", "cloud", "alibaba-cloud"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: Apache Software License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
dependencies = [
|
|
29
|
+
"httpx[http2]>=0.27,<1",
|
|
30
|
+
"httpcore>=1.0.5,<2",
|
|
31
|
+
"h2>=4,<5",
|
|
32
|
+
"python-dateutil>=2.8.2",
|
|
33
|
+
"attrs>=23.2",
|
|
34
|
+
"packaging>=24.1",
|
|
35
|
+
"typing-extensions>=4.1",
|
|
36
|
+
"wcmatch>=10.1,<11",
|
|
37
|
+
"dockerfile-parse>=2.0.1,<3",
|
|
38
|
+
"rich>=14",
|
|
39
|
+
"websockets>=16.1.1",
|
|
40
|
+
"pydantic>=2.14.0",
|
|
41
|
+
"python-dotenv>=1.0",
|
|
42
|
+
"pyyaml>=6.0.3",
|
|
43
|
+
"protobuf>=5",
|
|
44
|
+
"tomli>=2.0; python_version < '3.11'",
|
|
45
|
+
# The client uses the matching local server runtime for its server/declarative helpers.
|
|
46
|
+
# Keep the required distribution version equal to ``_version.py``.
|
|
47
|
+
"agent-sandbox-server==0.3.1a1",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[project.optional-dependencies]
|
|
51
|
+
mcp = [
|
|
52
|
+
"mcp>=1.0.0",
|
|
53
|
+
"starlette>=1.7.0",
|
|
54
|
+
"uvicorn>=0.54.0",
|
|
55
|
+
]
|
|
56
|
+
fast = [
|
|
57
|
+
"orjson>=3.13.0",
|
|
58
|
+
]
|
|
59
|
+
session = [
|
|
60
|
+
"filelock>=3.12",
|
|
61
|
+
]
|
|
62
|
+
all = [
|
|
63
|
+
"agent-sandbox-client[fast,session,mcp]",
|
|
64
|
+
]
|
|
65
|
+
dev = [
|
|
66
|
+
"agent-sandbox-client[all]",
|
|
67
|
+
"pytest>=7.0",
|
|
68
|
+
"pytest-asyncio>=0.21",
|
|
69
|
+
"pytest-httpx>=0.30",
|
|
70
|
+
"pytest-cov>=7.1.0",
|
|
71
|
+
"ruff>=0.17.0",
|
|
72
|
+
"mypy>=2.4.0",
|
|
73
|
+
"types-PyYAML>=6.0.12.20260906",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[project.urls]
|
|
77
|
+
Homepage = "https://github.com/alibaba-agent-sandbox/python-sdk"
|
|
78
|
+
Documentation = "https://github.com/alibaba-agent-sandbox/python-sdk/tree/main/docs"
|
|
79
|
+
Repository = "https://github.com/alibaba-agent-sandbox/python-sdk"
|
|
80
|
+
Issues = "https://github.com/alibaba-agent-sandbox/python-sdk/issues"
|
|
81
|
+
Changelog = "https://github.com/alibaba-agent-sandbox/python-sdk/blob/main/CHANGELOG.md"
|
|
82
|
+
|
|
83
|
+
[tool.hatch.version]
|
|
84
|
+
path = "src/agent_sandbox/_version.py"
|
|
85
|
+
|
|
86
|
+
[tool.hatch.build.targets.wheel]
|
|
87
|
+
packages = ["src/agent_sandbox"]
|
|
88
|
+
artifacts = ["py.typed"]
|
|
89
|
+
|
|
90
|
+
[tool.hatch.build.targets.sdist]
|
|
91
|
+
include = [
|
|
92
|
+
"src/agent_sandbox/",
|
|
93
|
+
"tests/",
|
|
94
|
+
"README.md",
|
|
95
|
+
"LICENSE",
|
|
96
|
+
"NOTICE",
|
|
97
|
+
"pyproject.toml",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[tool.pytest.ini_options]
|
|
101
|
+
testpaths = ["tests"]
|
|
102
|
+
asyncio_mode = "auto"
|
|
103
|
+
markers = [
|
|
104
|
+
"integration: marks tests requiring real API keys (deselect with '-m \"not integration\"')",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[tool.ruff]
|
|
108
|
+
target-version = "py310"
|
|
109
|
+
line-length = 100
|
|
110
|
+
src = ["src", "tests"]
|
|
111
|
+
extend-exclude = ["*_pb2.py", "*_pb2_grpc.py", "src/agent_sandbox/_standard", "src/agent_sandbox/code_interpreter"]
|
|
112
|
+
|
|
113
|
+
[tool.ruff.lint]
|
|
114
|
+
select = ["E", "F", "I", "N", "W", "UP", "B", "SIM", "TCH"]
|
|
115
|
+
|
|
116
|
+
[tool.bandit]
|
|
117
|
+
exclude_dirs = ["tests"]
|
|
118
|
+
skips = ["B101"] # assert 语句在测试中是正常的
|
|
119
|
+
|
|
120
|
+
[tool.mypy]
|
|
121
|
+
python_version = "3.10"
|
|
122
|
+
strict = true
|
|
123
|
+
warn_return_any = true
|
|
124
|
+
warn_unused_configs = true
|
|
125
|
+
exclude = ["src/agent_sandbox/_standard/", "src/agent_sandbox/code_interpreter/"]
|
|
126
|
+
|
|
127
|
+
# ``tomli`` is only present as a fallback on older interpreters (the stdlib ``tomllib`` is
|
|
128
|
+
# unavailable before Python 3.11).
|
|
129
|
+
[[tool.mypy.overrides]]
|
|
130
|
+
module = [
|
|
131
|
+
"tomli",
|
|
132
|
+
]
|
|
133
|
+
ignore_missing_imports = true
|
|
134
|
+
follow_imports = "skip"
|
|
135
|
+
|
|
136
|
+
# The pinned protocol port retains upstream generated schemas and typing style.
|
|
137
|
+
[[tool.mypy.overrides]]
|
|
138
|
+
module = ["agent_sandbox._standard.*", "agent_sandbox.code_interpreter.*"]
|
|
139
|
+
follow_imports = "skip"
|
|
140
|
+
ignore_errors = true
|