agentenv-framework-protocol 0.1.623__tar.gz → 0.1.626__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.
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/PKG-INFO +10 -4
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/README.md +9 -3
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/checks.py +4 -1
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/driver.py +12 -4
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/runtime.py +13 -5
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/settings.py +5 -1
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_recording.py +39 -9
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_driver.py +2 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_recording_annotate.py +9 -3
- agentenv_framework_protocol-0.1.626/tests/test_computer_screenshot_delay.py +129 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/PROFILE.md +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/builder.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/coding.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/computer_use.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/late_result.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/multi_agent.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/odd_parts.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/subagent.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/fixtures/two_turns.json +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/profile.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/atif/validator.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/client.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/annotate.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/card.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/operations.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/serve_app.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/skill.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/computer/tools.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/types.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/computer_fake.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_builder.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_validator.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_control_token.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/tests/test_website_readiness.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentenv-framework-protocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.626
|
|
4
4
|
Summary: Open data-plane protocol and server SDK for agent environments.
|
|
5
5
|
Project-URL: Homepage, https://www.agentenvframework.com
|
|
6
6
|
Project-URL: Documentation, https://www.agentenvframework.com/docs
|
|
@@ -683,6 +683,7 @@ from agentenv_protocol.computer import (
|
|
|
683
683
|
class MyDriver(ComputerDriverEnvironment):
|
|
684
684
|
buttons = ("left", "right") # features, on the card
|
|
685
685
|
max_click_count = 2
|
|
686
|
+
screenshot_delay_ms = 300 # how long after an input its screenshot is taken
|
|
686
687
|
|
|
687
688
|
@display
|
|
688
689
|
async def size(self) -> Display: ... # width, height, scale
|
|
@@ -739,7 +740,11 @@ driver has them, through the `served_tools`, `served_extensions` and `served_ope
|
|
|
739
740
|
`computer_scroll`, `computer_type`, `computer_key` (W3C key names) and `computer_wait`, plus the
|
|
740
741
|
group tools. Every result is structured, with a one-line summary as its text block; input results
|
|
741
742
|
carry `applied`, `delivery` and `others_since_frame`, and `screenshot: true` returns a fresh frame
|
|
742
|
-
after
|
|
743
|
+
taken `screenshot_delay_ms` after the input, so a smooth scroll or the page a key opens, which renders a couple
|
|
744
|
+
of hundred milliseconds after the input returns, shows: the driver class's `screenshot_delay_ms` (500 unless it
|
|
745
|
+
sets its own), or the deploy's setting of that name, 0 capturing at once. A driver's own tools don't wait: they keep
|
|
746
|
+
their own timing. Click and scroll leave out `x` and `y`
|
|
747
|
+
to act at the pointer on a computer with
|
|
743
748
|
`computer-pointer/v1`; elsewhere a call without them is refused `invalid_argument`. With the page
|
|
744
749
|
group, `computer_navigate` opens a URL in the active tab, `computer_history` goes `back`, `forward`
|
|
745
750
|
or `reload`s, `computer_tabs` lists, opens, switches and closes tabs by the browser's own ids and
|
|
@@ -790,8 +795,9 @@ other exception from an input operation is reported `delivery_failed` with `appl
|
|
|
790
795
|
|
|
791
796
|
**Settings** reach the driver as one JSON value in `AGENTENV_COMPUTER_SETTINGS`
|
|
792
797
|
(`ComputerSettings`): `default_space`, `default_norm_scale`, `queue_wait_s`,
|
|
793
|
-
`tap_hold_ms`, `type_delay_ms`, `max_hold_ms`, `layout`, `drag_duration_ms`, `exec_output_bytes
|
|
794
|
-
and `
|
|
798
|
+
`tap_hold_ms`, `type_delay_ms`, `max_hold_ms`, `layout`, `drag_duration_ms`, `exec_output_bytes`,
|
|
799
|
+
`exec_timeout_s` and `screenshot_delay_ms`, which replaces the driver's own. A driver reads them as `self.settings`,
|
|
800
|
+
for example its tap hold in `@press`.
|
|
795
801
|
|
|
796
802
|
Every caller is `default` until agents carry an identity of their own; `caller_identity(context)`
|
|
797
803
|
names the caller whose latest frame and others' input a call uses.
|
|
@@ -612,6 +612,7 @@ from agentenv_protocol.computer import (
|
|
|
612
612
|
class MyDriver(ComputerDriverEnvironment):
|
|
613
613
|
buttons = ("left", "right") # features, on the card
|
|
614
614
|
max_click_count = 2
|
|
615
|
+
screenshot_delay_ms = 300 # how long after an input its screenshot is taken
|
|
615
616
|
|
|
616
617
|
@display
|
|
617
618
|
async def size(self) -> Display: ... # width, height, scale
|
|
@@ -668,7 +669,11 @@ driver has them, through the `served_tools`, `served_extensions` and `served_ope
|
|
|
668
669
|
`computer_scroll`, `computer_type`, `computer_key` (W3C key names) and `computer_wait`, plus the
|
|
669
670
|
group tools. Every result is structured, with a one-line summary as its text block; input results
|
|
670
671
|
carry `applied`, `delivery` and `others_since_frame`, and `screenshot: true` returns a fresh frame
|
|
671
|
-
after
|
|
672
|
+
taken `screenshot_delay_ms` after the input, so a smooth scroll or the page a key opens, which renders a couple
|
|
673
|
+
of hundred milliseconds after the input returns, shows: the driver class's `screenshot_delay_ms` (500 unless it
|
|
674
|
+
sets its own), or the deploy's setting of that name, 0 capturing at once. A driver's own tools don't wait: they keep
|
|
675
|
+
their own timing. Click and scroll leave out `x` and `y`
|
|
676
|
+
to act at the pointer on a computer with
|
|
672
677
|
`computer-pointer/v1`; elsewhere a call without them is refused `invalid_argument`. With the page
|
|
673
678
|
group, `computer_navigate` opens a URL in the active tab, `computer_history` goes `back`, `forward`
|
|
674
679
|
or `reload`s, `computer_tabs` lists, opens, switches and closes tabs by the browser's own ids and
|
|
@@ -719,8 +724,9 @@ other exception from an input operation is reported `delivery_failed` with `appl
|
|
|
719
724
|
|
|
720
725
|
**Settings** reach the driver as one JSON value in `AGENTENV_COMPUTER_SETTINGS`
|
|
721
726
|
(`ComputerSettings`): `default_space`, `default_norm_scale`, `queue_wait_s`,
|
|
722
|
-
`tap_hold_ms`, `type_delay_ms`, `max_hold_ms`, `layout`, `drag_duration_ms`, `exec_output_bytes
|
|
723
|
-
and `
|
|
727
|
+
`tap_hold_ms`, `type_delay_ms`, `max_hold_ms`, `layout`, `drag_duration_ms`, `exec_output_bytes`,
|
|
728
|
+
`exec_timeout_s` and `screenshot_delay_ms`, which replaces the driver's own. A driver reads them as `self.settings`,
|
|
729
|
+
for example its tap hold in `@press`.
|
|
724
730
|
|
|
725
731
|
Every caller is `default` until agents carry an identity of their own; `caller_identity(context)`
|
|
726
732
|
names the caller whose latest frame and others' input a call uses.
|
|
@@ -6,7 +6,7 @@ from ..errors import AgentEnvError
|
|
|
6
6
|
from .keys import canonical
|
|
7
7
|
from .operations import declared
|
|
8
8
|
from .recording import check_recording
|
|
9
|
-
from .settings import ComputerSettings
|
|
9
|
+
from .settings import MAX_SCREENSHOT_DELAY_MS, ComputerSettings
|
|
10
10
|
|
|
11
11
|
BUTTONS = ("left", "right", "middle", "back", "forward")
|
|
12
12
|
|
|
@@ -32,6 +32,9 @@ def check_features(cls: type) -> None:
|
|
|
32
32
|
value = getattr(cls, name)
|
|
33
33
|
if not isinstance(value, int) or value < low:
|
|
34
34
|
problems.append(f"{name} is an integer of at least {low}, got {value!r}")
|
|
35
|
+
delay = cls.screenshot_delay_ms
|
|
36
|
+
if not isinstance(delay, int) or not 0 <= delay <= MAX_SCREENSHOT_DELAY_MS:
|
|
37
|
+
problems.append(f"screenshot_delay_ms is an integer from 0 to {MAX_SCREENSHOT_DELAY_MS}, got {delay!r}")
|
|
35
38
|
if cls.keys != "all":
|
|
36
39
|
try:
|
|
37
40
|
if [canonical(k) for k in cls.keys] != list(cls.keys):
|
|
@@ -65,7 +65,8 @@ class DriverDeclaration(BaseModel):
|
|
|
65
65
|
|
|
66
66
|
class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironment):
|
|
67
67
|
"""Subclass it and mark the methods that capture and send input (see ``operations``); the class is checked when
|
|
68
|
-
it is defined. Features are class attributes, on the card
|
|
68
|
+
it is defined. Features are class attributes, on the card; ``screenshot_delay_ms``, how long an input's screenshot
|
|
69
|
+
waits, is a class attribute that isn't. A subclass's ``__init__`` calls ``super().__init__()``.
|
|
69
70
|
"""
|
|
70
71
|
|
|
71
72
|
buttons: ClassVar[tuple[str, ...]] = ("left",)
|
|
@@ -78,6 +79,10 @@ class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironmen
|
|
|
78
79
|
max_duration_ms: ClassVar[int] = 10_000
|
|
79
80
|
max_key_repeat: ClassVar[int] = 100
|
|
80
81
|
max_scroll_amount: ClassVar[int] = 100
|
|
82
|
+
#: How long after an input ``screenshot: true`` captures, in ms: about the longest this driver's screens take to
|
|
83
|
+
#: show what an input did, as a smooth scroll or the page a key opens; a deploy's ``screenshot_delay_ms`` setting
|
|
84
|
+
#: replaces it.
|
|
85
|
+
screenshot_delay_ms: ClassVar[int] = 500
|
|
81
86
|
#: The (width, height) modes computer-display/v1 set takes; with ``@set_display`` only.
|
|
82
87
|
display_modes: ClassVar[tuple] = ()
|
|
83
88
|
layouts: ClassVar[tuple[str, ...]] = ("us",)
|
|
@@ -170,17 +175,20 @@ class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironmen
|
|
|
170
175
|
|
|
171
176
|
def create_app(self) -> Any:
|
|
172
177
|
self._computer_require_init()
|
|
173
|
-
return self.
|
|
178
|
+
return self._computer_finish_app(super().create_app())
|
|
174
179
|
|
|
175
180
|
def mount(self, app: Any) -> Any:
|
|
176
181
|
self._computer_require_init()
|
|
177
|
-
return self.
|
|
182
|
+
return self._computer_finish_app(super().mount(app))
|
|
178
183
|
|
|
179
184
|
async def children_environments(self) -> list[EnvironmentCard] | None:
|
|
180
185
|
"""The computer's apps, from the folders it composed them into."""
|
|
181
186
|
return await apps.children(self._computer.apps) if self._computer.apps else None
|
|
182
187
|
|
|
183
|
-
def
|
|
188
|
+
def _computer_finish_app(self, app: Any) -> Any:
|
|
189
|
+
"""The app with the computer's apps' routes in front of them; it also logs the screenshot delay, once FastMCP has
|
|
190
|
+
set logging up."""
|
|
191
|
+
_log.info("an input's screenshot is taken %d ms after it", self._computer.effective_screenshot_delay_ms())
|
|
184
192
|
app.custom_route("/svc/{name}/{path:path}", methods=svc.METHODS)(self._computer_forward)
|
|
185
193
|
add_websocket_route(app, "/svc/{name}/{path:path}", self._computer_relay)
|
|
186
194
|
for logger in svc.SERVER_LOGGERS:
|
|
@@ -110,11 +110,12 @@ class ComputerRuntime:
|
|
|
110
110
|
hold: tuple | None = None, move_to: tuple | None = None, then: Callable | None = None,
|
|
111
111
|
wrap: Callable[[InputResult, Any], InputResult] | None = None) -> CallToolResult:
|
|
112
112
|
"""One input call: its turn in the queue, the operation (after a move, repeated or held), then the result
|
|
113
|
-
with others' input since ``frame`` and, when asked, a fresh frame
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
with others' input since ``frame`` and, when asked, a fresh frame, ``effective_screenshot_delay_ms()`` after the
|
|
114
|
+
input so it shows what the input did: a smooth scroll or the page a key opens renders a couple of hundred milliseconds
|
|
115
|
+
after the input returns. Whatever the call's turn can change is read once it has the turn: a point ``mapped``
|
|
116
|
+
from ``frame`` is checked again, since the display may have changed while it waited, and ``at_pointer`` reads
|
|
117
|
+
the pointer and puts it before ``args``; input a page's open dialog blocks is refused. ``then`` runs as soon as
|
|
118
|
+
the input is delivered, and ``wrap`` makes the result from the operation's own."""
|
|
118
119
|
identity = self.driver.caller_identity(ctx)
|
|
119
120
|
sent = False
|
|
120
121
|
async with self.queue.turn(self.driver.settings.queue_wait_s):
|
|
@@ -156,6 +157,7 @@ class ComputerRuntime:
|
|
|
156
157
|
result = wrap(result, effect)
|
|
157
158
|
if not screenshot:
|
|
158
159
|
return send(result)
|
|
160
|
+
await asyncio.sleep(self.effective_screenshot_delay_ms() / 1000)
|
|
159
161
|
try:
|
|
160
162
|
new = await self.capture(identity)
|
|
161
163
|
except AgentEnvError as e:
|
|
@@ -164,6 +166,12 @@ class ComputerRuntime:
|
|
|
164
166
|
result.summary, result.frame = f"{result.summary}, then captured {new.id}{new.note()}", new.result()
|
|
165
167
|
return send(result, new.encode(), new.captured_at)
|
|
166
168
|
|
|
169
|
+
def effective_screenshot_delay_ms(self) -> int:
|
|
170
|
+
"""How long after an input its screenshot is taken: the deploy's ``screenshot_delay_ms`` setting, else the
|
|
171
|
+
driver class's."""
|
|
172
|
+
setting = self.driver.settings.screenshot_delay_ms
|
|
173
|
+
return self.driver.screenshot_delay_ms if setting is None else setting
|
|
174
|
+
|
|
167
175
|
async def _annotate(self, ctx: ToolContext, operation: str, args: tuple, move_to: tuple | None, repeat: int,
|
|
168
176
|
hold: tuple | None, display: Display | None) -> None:
|
|
169
177
|
"""Mark an input on the recordings that draw them, as it is about to be delivered: one with a point on the
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
import json
|
|
5
5
|
import os
|
|
6
6
|
import re
|
|
7
|
-
from typing import Literal
|
|
7
|
+
from typing import Literal, Optional
|
|
8
8
|
|
|
9
9
|
from pydantic import BaseModel, ConfigDict, Field, ValidationError
|
|
10
10
|
|
|
@@ -28,6 +28,8 @@ def tool_prefix_problem(prefix: str) -> str | None:
|
|
|
28
28
|
return None
|
|
29
29
|
|
|
30
30
|
Space = Literal["frame", "norm"]
|
|
31
|
+
#: The longest ``screenshot_delay_ms`` a driver or a deploy may give, in ms.
|
|
32
|
+
MAX_SCREENSHOT_DELAY_MS = 10_000
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
class ComputerSettings(BaseModel):
|
|
@@ -45,6 +47,8 @@ class ComputerSettings(BaseModel):
|
|
|
45
47
|
drag_duration_ms: int = Field(default=500, ge=0)
|
|
46
48
|
exec_output_bytes: int = Field(default=1 << 20, gt=0)
|
|
47
49
|
exec_timeout_s: float = Field(default=60.0, gt=0, le=3600)
|
|
50
|
+
#: How long after an input ``screenshot: true`` captures, in ms; None for the driver's own ``screenshot_delay_ms``.
|
|
51
|
+
screenshot_delay_ms: Optional[int] = Field(default=None, ge=0, le=MAX_SCREENSHOT_DELAY_MS)
|
|
48
52
|
|
|
49
53
|
|
|
50
54
|
def load_settings(environ: dict | None = None, model: type[ComputerSettings] = ComputerSettings) -> ComputerSettings:
|
|
@@ -69,17 +69,45 @@ class Uploads:
|
|
|
69
69
|
return Uploader()
|
|
70
70
|
|
|
71
71
|
def colors(self, folder: str) -> list[str]:
|
|
72
|
-
"""The colour of every frame of the video under ``folder``, in order
|
|
73
|
-
names = {RED: "red", BLUE: "blue", GREEN: "green", YELLOW: "yellow", (255, 255, 255): "white"}
|
|
72
|
+
"""The colour of every frame of the video under ``folder``, in order."""
|
|
74
73
|
found = []
|
|
75
74
|
for path in sorted(p for p in self.by_path if p.startswith(f"{folder}/video/") and p.endswith(".mp4")):
|
|
76
75
|
with av.open(io.BytesIO(self.by_path[path])) as container:
|
|
77
|
-
for frame in container.decode(video=0)
|
|
78
|
-
pixel = frame.to_image().getpixel((frame.width // 2, frame.height // 2))
|
|
79
|
-
found.append(names[min(names, key=lambda c: sum((a - b) ** 2 for a, b in zip(c, pixel)))])
|
|
76
|
+
found += [_color_name(frame.to_image()) for frame in container.decode(video=0)]
|
|
80
77
|
return found
|
|
81
78
|
|
|
82
79
|
|
|
80
|
+
def _color_name(image: Image.Image) -> str:
|
|
81
|
+
"""The named colour nearest the middle of ``image``."""
|
|
82
|
+
names = {RED: "red", BLUE: "blue", GREEN: "green", YELLOW: "yellow", (255, 255, 255): "white"}
|
|
83
|
+
pixel = image.convert("RGB").getpixel((image.width // 2, image.height // 2))
|
|
84
|
+
return names[min(names, key=lambda c: sum((a - b) ** 2 for a, b in zip(c, pixel)))]
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def _taken(recordings: BrowserRecordings) -> list[str]:
|
|
88
|
+
"""The colour of each frame the one recording's video takes from now on, as it takes it."""
|
|
89
|
+
[recording] = recordings.every()
|
|
90
|
+
stream, taken = recording.stream, []
|
|
91
|
+
latest = stream._latest
|
|
92
|
+
|
|
93
|
+
async def noted() -> Image.Image:
|
|
94
|
+
image = await latest()
|
|
95
|
+
taken.append(_color_name(image))
|
|
96
|
+
return image
|
|
97
|
+
stream._latest = noted
|
|
98
|
+
return taken
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
async def _until_taken(taken: list[str], color: str, timeout_s: float = 10) -> None:
|
|
102
|
+
"""Until the video has encoded a frame of ``color``, however slowly a loaded machine records: until it has taken
|
|
103
|
+
the frame after it, which it takes only once it has encoded the one before."""
|
|
104
|
+
loop = asyncio.get_running_loop()
|
|
105
|
+
deadline = loop.time() + timeout_s
|
|
106
|
+
while color not in taken or len(taken) == taken.index(color) + 1:
|
|
107
|
+
assert loop.time() < deadline, f"no {color} frame encoded in {timeout_s} s: {taken}"
|
|
108
|
+
await asyncio.sleep(0.02)
|
|
109
|
+
|
|
110
|
+
|
|
83
111
|
class Browser:
|
|
84
112
|
"""A browser's pipe, as recordings ask it: each tab attached on its own session, which a screencast paints in the
|
|
85
113
|
tab's colour unless it's ``silent``, as a tab behind another is, hidden, and a capture answers in it; every other
|
|
@@ -213,13 +241,15 @@ async def test_the_video_follows_an_agents_tab_a_popup_it_opens_and_goes_back_wh
|
|
|
213
241
|
pipe.open("T3", YELLOW)
|
|
214
242
|
pipe.focused = "T0"
|
|
215
243
|
started = await recordings.start("run:a", _grant(), network=False)
|
|
216
|
-
|
|
244
|
+
taken = _taken(recordings)
|
|
245
|
+
await _until_taken(taken, "green")
|
|
217
246
|
_acted(recordings.log, "T3")
|
|
218
|
-
await
|
|
247
|
+
await _until_taken(taken, "yellow")
|
|
219
248
|
pipe.open("T4", RED, opener="T3")
|
|
220
|
-
await
|
|
249
|
+
await _until_taken(taken, "red")
|
|
221
250
|
pipe.close("T4")
|
|
222
|
-
|
|
251
|
+
taken.clear()
|
|
252
|
+
await _until_taken(taken, "yellow")
|
|
223
253
|
manifest = BrowserRecordingManifest.model_validate(await recordings.end(started["recording_id"]))
|
|
224
254
|
|
|
225
255
|
assert [seen.tab for seen in manifest.video.followed] == ["T0", "T3", "T4", "T3"]
|
|
@@ -119,6 +119,8 @@ def test_unknown_predicates_are_refused():
|
|
|
119
119
|
({"keys": ("Return",)}, "keys: 'Return' is not a W3C key value"),
|
|
120
120
|
({"display_modes": ((10, 10),)}, "display_modes and @set_display come together"),
|
|
121
121
|
({"screen_kind": "tablet"}, "screen_kind is desktop or page, got 'tablet'"),
|
|
122
|
+
({"screenshot_delay_ms": -1}, "screenshot_delay_ms is an integer from 0 to 10000, got -1"),
|
|
123
|
+
({"screenshot_delay_ms": 0.5}, "screenshot_delay_ms is an integer from 0 to 10000, got 0.5"),
|
|
122
124
|
])
|
|
123
125
|
def test_features_are_checked_when_the_class_is_defined(features, error):
|
|
124
126
|
with pytest.raises(TypeError, match=error):
|
|
@@ -28,6 +28,7 @@ from agentenv_protocol.computer import ( # noqa: E402
|
|
|
28
28
|
Recording,
|
|
29
29
|
record,
|
|
30
30
|
)
|
|
31
|
+
from agentenv_protocol.computer import annotate as annotate_module # noqa: E402
|
|
31
32
|
from agentenv_protocol.computer.annotate import ( # noqa: E402
|
|
32
33
|
COLOURS,
|
|
33
34
|
FADE_S,
|
|
@@ -318,14 +319,19 @@ def test_marks_no_frame_draws_are_kept_only_so_long():
|
|
|
318
319
|
|
|
319
320
|
|
|
320
321
|
@pytest.mark.asyncio
|
|
321
|
-
async def test_an_input_goes_ahead_when_its_mark_cant_be_made():
|
|
322
|
-
"""
|
|
322
|
+
async def test_an_input_goes_ahead_when_its_mark_cant_be_made(monkeypatch):
|
|
323
|
+
"""Making a scroll's mark fails: the scroll is still delivered, unmarked. The mark fails, not the display read it
|
|
324
|
+
makes, which the recording's own captures would race for."""
|
|
323
325
|
driver = Recorded()
|
|
326
|
+
|
|
327
|
+
def unmarkable(*args, **kwargs):
|
|
328
|
+
raise DeviceUnavailable("the mark couldn't be made")
|
|
329
|
+
|
|
324
330
|
async with http_client(driver) as http, mcp_session(driver) as session:
|
|
325
331
|
started = (await http.post(START, json={"request_id": "r", "fps": 10, "annotate": {}})).json()
|
|
326
332
|
recording = driver._computer.recordings.running[started["recording_id"]]
|
|
327
333
|
await session.call_tool("computer_screenshot", {})
|
|
328
|
-
|
|
334
|
+
monkeypatch.setattr(annotate_module, "input_marks", unmarkable)
|
|
329
335
|
scrolled = await session.call_tool("computer_scroll", {"direction": "down"})
|
|
330
336
|
marks = list(recording.annotations.marks)
|
|
331
337
|
await http.post(END, json={"recording_id": started["recording_id"]})
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"""An input's screenshot is taken ``screenshot_delay_ms`` after the input, so it shows what the input did: a browser's
|
|
2
|
+
smooth scroll or the page a key opens renders a couple of hundred milliseconds after the input returns."""
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
|
|
7
|
+
pytest.importorskip("mcp.server.fastmcp")
|
|
8
|
+
pytest.importorskip("PIL")
|
|
9
|
+
|
|
10
|
+
import asyncio # noqa: E402
|
|
11
|
+
import base64 # noqa: E402
|
|
12
|
+
import io # noqa: E402
|
|
13
|
+
import logging # noqa: E402
|
|
14
|
+
import time # noqa: E402
|
|
15
|
+
|
|
16
|
+
from computer_fake import BACKGROUND, FakeDriver, mcp_session # noqa: E402
|
|
17
|
+
from PIL import Image as PILImage # noqa: E402
|
|
18
|
+
|
|
19
|
+
from agentenv_protocol.computer import ComputerSettings, scroll # noqa: E402
|
|
20
|
+
|
|
21
|
+
RED = (255, 0, 0)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class LateScreen(FakeDriver):
|
|
25
|
+
"""A fake whose scroll reaches the screen ``lag`` seconds after the scroll returns, filling it red."""
|
|
26
|
+
|
|
27
|
+
def __init__(self, lag: float = 0.1, **kwargs) -> None:
|
|
28
|
+
super().__init__(**kwargs)
|
|
29
|
+
self.lag = lag
|
|
30
|
+
|
|
31
|
+
@scroll
|
|
32
|
+
async def scroll_at(self, x, y, direction, amount, modifiers):
|
|
33
|
+
await super().scroll_at(x, y, direction, amount, modifiers)
|
|
34
|
+
asyncio.get_running_loop().call_later(self.lag, self.fill)
|
|
35
|
+
|
|
36
|
+
def fill(self) -> None:
|
|
37
|
+
self.screen.image = PILImage.new("RGB", self.screen.image.size, RED)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class Instant(LateScreen):
|
|
41
|
+
"""A driver whose screens show an input at once, so it takes the screenshot at once."""
|
|
42
|
+
|
|
43
|
+
screenshot_delay_ms = 0
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def _colour(result) -> tuple:
|
|
47
|
+
[image] = [c for c in result.content if c.type == "image"]
|
|
48
|
+
return PILImage.open(io.BytesIO(base64.b64decode(image.data))).convert("RGB").getpixel((10, 10))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
async def _scroll(session, screenshot: bool = True):
|
|
52
|
+
return await session.call_tool("computer_scroll", {"x": 5, "y": 5, "direction": "down", "screenshot": screenshot})
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@pytest.mark.asyncio
|
|
56
|
+
async def test_the_screenshot_shows_a_change_that_reaches_the_screen_after_the_input():
|
|
57
|
+
driver = LateScreen()
|
|
58
|
+
assert driver.settings.screenshot_delay_ms is None and driver.screenshot_delay_ms == 500
|
|
59
|
+
async with mcp_session(driver) as session:
|
|
60
|
+
await session.call_tool("computer_screenshot", {})
|
|
61
|
+
started = time.monotonic()
|
|
62
|
+
scrolled = await _scroll(session)
|
|
63
|
+
took = time.monotonic() - started
|
|
64
|
+
assert _colour(scrolled) == RED
|
|
65
|
+
assert took >= 0.5
|
|
66
|
+
assert scrolled.structuredContent["frame"]["frame_id"] == "f2"
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@pytest.mark.asyncio
|
|
70
|
+
async def test_with_no_delay_the_screenshot_is_taken_at_once():
|
|
71
|
+
async with mcp_session(LateScreen(lag=2.0, settings=ComputerSettings(screenshot_delay_ms=0))) as session:
|
|
72
|
+
await session.call_tool("computer_screenshot", {})
|
|
73
|
+
scrolled = await _scroll(session)
|
|
74
|
+
assert _colour(scrolled) == BACKGROUND
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@pytest.mark.asyncio
|
|
78
|
+
async def test_the_driver_sets_its_own_delay():
|
|
79
|
+
async with mcp_session(Instant(lag=2.0)) as session:
|
|
80
|
+
await session.call_tool("computer_screenshot", {})
|
|
81
|
+
scrolled = await _scroll(session)
|
|
82
|
+
assert _colour(scrolled) == BACKGROUND
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
@pytest.mark.asyncio
|
|
86
|
+
async def test_a_deploys_setting_replaces_the_drivers_delay():
|
|
87
|
+
async with mcp_session(Instant(settings=ComputerSettings(screenshot_delay_ms=300))) as session:
|
|
88
|
+
await session.call_tool("computer_screenshot", {})
|
|
89
|
+
scrolled = await _scroll(session)
|
|
90
|
+
assert _colour(scrolled) == RED
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pytest.mark.asyncio
|
|
94
|
+
async def test_the_driver_logs_the_delay_it_uses(caplog):
|
|
95
|
+
with caplog.at_level(logging.INFO, logger="agentenv_protocol.computer.driver"):
|
|
96
|
+
async with mcp_session(Instant(settings=ComputerSettings(screenshot_delay_ms=300))):
|
|
97
|
+
pass
|
|
98
|
+
assert "an input's screenshot is taken 300 ms after it" in caplog.messages
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
@pytest.mark.asyncio
|
|
102
|
+
async def test_an_input_without_a_screenshot_doesnt_wait():
|
|
103
|
+
async with mcp_session(LateScreen(settings=ComputerSettings(screenshot_delay_ms=5000))) as session:
|
|
104
|
+
await session.call_tool("computer_screenshot", {})
|
|
105
|
+
started = time.monotonic()
|
|
106
|
+
scrolled = await _scroll(session, screenshot=False)
|
|
107
|
+
took = time.monotonic() - started
|
|
108
|
+
assert not scrolled.isError and "frame" not in scrolled.structuredContent
|
|
109
|
+
assert took < 2.5
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@pytest.mark.asyncio
|
|
113
|
+
async def test_the_wait_before_the_screenshot_doesnt_hold_other_input():
|
|
114
|
+
driver = LateScreen(settings=ComputerSettings(screenshot_delay_ms=1000))
|
|
115
|
+
finished = []
|
|
116
|
+
|
|
117
|
+
async def call(name: str, tool: str, args: dict) -> None:
|
|
118
|
+
await session.call_tool(tool, args)
|
|
119
|
+
finished.append(name)
|
|
120
|
+
|
|
121
|
+
async with mcp_session(driver) as session:
|
|
122
|
+
await session.call_tool("computer_screenshot", {})
|
|
123
|
+
scrolling = asyncio.ensure_future(call("scroll", "computer_scroll",
|
|
124
|
+
{"x": 5, "y": 5, "direction": "down", "screenshot": True}))
|
|
125
|
+
await asyncio.sleep(0.2)
|
|
126
|
+
await call("click", "computer_click", {"x": 7, "y": 7})
|
|
127
|
+
await scrolling
|
|
128
|
+
assert finished == ["click", "scroll"]
|
|
129
|
+
assert [entry[0] for entry in driver.screen.log] == ["scroll", "click"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/THIRD_PARTY_NOTICES.md
RENAMED
|
File without changes
|
{agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.623 → agentenv_framework_protocol-0.1.626}/examples/basic_agent.py
RENAMED
|
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
|