agentenv-framework-protocol 0.1.627__tar.gz → 0.1.628__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.627 → agentenv_framework_protocol-0.1.628}/PKG-INFO +6 -2
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/README.md +5 -1
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/annotate.py +4 -2
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/driver.py +36 -2
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_recording_annotate.py +60 -1
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/PROFILE.md +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/builder.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/coding.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/computer_use.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/late_result.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/multi_agent.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/odd_parts.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/subagent.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/fixtures/two_turns.json +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/profile.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/atif/validator.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/client.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/card.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/checks.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/operations.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/runtime.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/serve_app.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/settings.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/skill.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/computer/tools.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/types.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/computer_fake.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_builder.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_validator.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_recording.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_driver.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_screenshot_delay.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_control_token.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/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.628
|
|
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
|
|
@@ -853,7 +853,11 @@ class MyDriver(ComputerDriverEnvironment):
|
|
|
853
853
|
of a double or triple), a trail for a drag, an
|
|
854
854
|
arrow for a scroll, a cross for a move, and a chip for a key chord, typed text as it was typed, and
|
|
855
855
|
each of the driver's own or forwarded tools whose annotations don't say it only reads, by name and
|
|
856
|
-
main argument
|
|
856
|
+
main argument, unless the driver draws what the call did itself: a tool named in its
|
|
857
|
+
`marks_own_inputs` hands `mark_inputs` the inputs it made, computer/v1 operations with their arguments
|
|
858
|
+
as `act` takes them at points of the display (`("click", (x, y, button, count, modifiers))`), drawn as
|
|
859
|
+
a `computer_*` input is, in the colour of the role that called it (cua-driver's input tools, as each
|
|
860
|
+
reply says it acted; `draws_inputs()` says whether a recording draws any). Where the frames can't show the pointer themselves, as frames polled from captures that
|
|
857
861
|
leave it out do (cua-driver's), a pointer is drawn for each role and pointer that has acted, where its
|
|
858
862
|
last input left it, along a drag's path as it moves, after a fading line from where it jumped: the one
|
|
859
863
|
that moved last at full strength, the others fainter, each named once there are several. Every `computer_*` input is marked
|
|
@@ -782,7 +782,11 @@ class MyDriver(ComputerDriverEnvironment):
|
|
|
782
782
|
of a double or triple), a trail for a drag, an
|
|
783
783
|
arrow for a scroll, a cross for a move, and a chip for a key chord, typed text as it was typed, and
|
|
784
784
|
each of the driver's own or forwarded tools whose annotations don't say it only reads, by name and
|
|
785
|
-
main argument
|
|
785
|
+
main argument, unless the driver draws what the call did itself: a tool named in its
|
|
786
|
+
`marks_own_inputs` hands `mark_inputs` the inputs it made, computer/v1 operations with their arguments
|
|
787
|
+
as `act` takes them at points of the display (`("click", (x, y, button, count, modifiers))`), drawn as
|
|
788
|
+
a `computer_*` input is, in the colour of the role that called it (cua-driver's input tools, as each
|
|
789
|
+
reply says it acted; `draws_inputs()` says whether a recording draws any). Where the frames can't show the pointer themselves, as frames polled from captures that
|
|
786
790
|
leave it out do (cua-driver's), a pointer is drawn for each role and pointer that has acted, where its
|
|
787
791
|
last input left it, along a drag's path as it moves, after a fading line from where it jumped: the one
|
|
788
792
|
that moved last at full strength, the others fainter, each named once there are several. Every `computer_*` input is marked
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"""What an annotated recording (computer-recording/v1 ``start`` with ``annotate``) draws over its frames: where each
|
|
2
2
|
input landed and what it typed or pressed, in the colour of the role that sent it, on the frames captured while its
|
|
3
3
|
mark shows. ``ComputerRuntime.act`` marks every ``computer_*`` input as it is delivered; a call to one of the
|
|
4
|
-
driver's own or forwarded tools, which acts without it, shows as a chip naming the tool and its main argument
|
|
4
|
+
driver's own or forwarded tools, which acts without it, shows as a chip naming the tool and its main argument, unless
|
|
5
|
+
the driver marks what the call did itself (``ComputerDriverEnvironment.mark_inputs``). Where
|
|
5
6
|
the frames can't show the pointer themselves, as frames from screenshots that leave it out, the agent's pointer is
|
|
6
7
|
drawn where its inputs left it."""
|
|
7
8
|
from __future__ import annotations
|
|
@@ -54,7 +55,8 @@ CHIPS_ABOVE = 0.1
|
|
|
54
55
|
#: A frame's longer edge that marks are sized for; on a larger or smaller frame they scale with it.
|
|
55
56
|
UNIT_EDGE = 1280
|
|
56
57
|
#: Arguments a tool's chip shows, the first one a call has.
|
|
57
|
-
MAIN_ARGUMENTS = ("text", "keys", "key", "url", "query", "label", "name", "element", "title", "code", "script"
|
|
58
|
+
MAIN_ARGUMENTS = ("text", "keys", "key", "url", "query", "label", "name", "element", "title", "code", "script",
|
|
59
|
+
"value")
|
|
58
60
|
#: Key names as chips show them.
|
|
59
61
|
KEY_NAMES = {"Control": "Ctrl", "Escape": "Esc", "ArrowLeft": "Left", "ArrowRight": "Right", "ArrowUp": "Up",
|
|
60
62
|
"ArrowDown": "Down", " ": "Space"}
|
|
@@ -8,6 +8,7 @@ import logging
|
|
|
8
8
|
import os
|
|
9
9
|
from datetime import datetime, timezone
|
|
10
10
|
from pathlib import Path
|
|
11
|
+
from collections.abc import Sequence
|
|
11
12
|
from typing import Any, Callable, ClassVar, Literal, Optional
|
|
12
13
|
|
|
13
14
|
from pydantic import BaseModel, ConfigDict
|
|
@@ -66,7 +67,8 @@ class DriverDeclaration(BaseModel):
|
|
|
66
67
|
class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironment):
|
|
67
68
|
"""Subclass it and mark the methods that capture and send input (see ``operations``); the class is checked when
|
|
68
69
|
it is defined. Features are class attributes, on the card; ``screenshot_delay_ms``, how long an input's screenshot
|
|
69
|
-
waits,
|
|
70
|
+
waits, and ``marks_own_inputs`` are class attributes that aren't. A subclass's ``__init__`` calls
|
|
71
|
+
``super().__init__()``.
|
|
70
72
|
"""
|
|
71
73
|
|
|
72
74
|
buttons: ClassVar[tuple[str, ...]] = ("left",)
|
|
@@ -83,6 +85,10 @@ class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironmen
|
|
|
83
85
|
#: show what an input did, as a smooth scroll or the page a key opens; a deploy's ``screenshot_delay_ms`` setting
|
|
84
86
|
#: replaces it.
|
|
85
87
|
screenshot_delay_ms: ClassVar[int] = 500
|
|
88
|
+
#: The driver's own or forwarded tools, by the names it serves them under, that draw their inputs on the
|
|
89
|
+
#: recordings that draw inputs themselves, through ``mark_inputs``; any other that may act is drawn as a chip
|
|
90
|
+
#: naming it.
|
|
91
|
+
marks_own_inputs: ClassVar[frozenset[str]] = frozenset()
|
|
86
92
|
#: The (width, height) modes computer-display/v1 set takes; with ``@set_display`` only.
|
|
87
93
|
display_modes: ClassVar[tuple] = ()
|
|
88
94
|
layouts: ClassVar[tuple[str, ...]] = ("us",)
|
|
@@ -141,13 +147,41 @@ class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironmen
|
|
|
141
147
|
if self._computer.recordings.annotating():
|
|
142
148
|
try:
|
|
143
149
|
name = self._computer_prefix.own(context.tool)
|
|
144
|
-
if name not in COMPUTER_TOOLS and self.
|
|
150
|
+
if (name not in COMPUTER_TOOLS and name not in self.marks_own_inputs
|
|
151
|
+
and self._computer_tool_acts(name)):
|
|
145
152
|
self._computer.recordings.note([annotate.tool_mark(name, context.arguments, role=context.role,
|
|
146
153
|
at=datetime.now(timezone.utc))])
|
|
147
154
|
except Exception as e: # a mark is best effort: the call goes ahead without one
|
|
148
155
|
_log.warning("couldn't mark %s on an annotated recording: %s: %s", context.tool, type(e).__name__, e)
|
|
149
156
|
return None
|
|
150
157
|
|
|
158
|
+
def draws_inputs(self) -> bool:
|
|
159
|
+
"""Whether a recording now draws inputs: until one does, a tool in ``marks_own_inputs`` has nothing to mark."""
|
|
160
|
+
return self._computer.recordings.annotating()
|
|
161
|
+
|
|
162
|
+
async def mark_inputs(self, inputs: Sequence[tuple[str, tuple]]) -> None:
|
|
163
|
+
"""Draw what a call to a tool in ``marks_own_inputs`` did on the recordings that draw inputs, in the colour of
|
|
164
|
+
the role that made the call: each input a computer/v1 operation and its arguments as ``act`` takes them, at
|
|
165
|
+
points of the display in its units (``("click", (x, y, button, count, modifiers))``, ``("type_text",
|
|
166
|
+
(text,))``), or ``("tool", (name, arguments))``, a chip naming a tool and its main argument. Best effort, as an
|
|
167
|
+
SDK input's marks are: a mark that can't be made is logged."""
|
|
168
|
+
if not inputs or not self.draws_inputs():
|
|
169
|
+
return
|
|
170
|
+
try:
|
|
171
|
+
role, at = ToolContext.current().role, datetime.now(timezone.utc)
|
|
172
|
+
size = (1, 1)
|
|
173
|
+
if any(operation in annotate.POINTED for operation, _args in inputs):
|
|
174
|
+
display = await self._computer.display_now()
|
|
175
|
+
size = (display.width, display.height)
|
|
176
|
+
marks = []
|
|
177
|
+
for operation, args in inputs:
|
|
178
|
+
marks += ([annotate.tool_mark(*args, role=role, at=at)] if operation == "tool" else
|
|
179
|
+
annotate.input_marks(operation, args, role=role, at=at, size=size))
|
|
180
|
+
self._computer.recordings.note(marks)
|
|
181
|
+
except Exception as e:
|
|
182
|
+
_log.warning("couldn't mark %s on an annotated recording: %s: %s", [operation for operation, _args in inputs],
|
|
183
|
+
type(e).__name__, e)
|
|
184
|
+
|
|
151
185
|
def _computer_tool_acts(self, name: str) -> bool:
|
|
152
186
|
"""Whether the driver's own or forwarded tool ``name``, by the name it is mounted under, may act: its
|
|
153
187
|
annotations don't say it only reads."""
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"""computer-recording/v1 ``annotate``: a recording started with it draws each input where it landed, in the colour
|
|
2
2
|
of the role that sent it, on the frames captured after it; a call to the driver's own or forwarded tool that acts
|
|
3
|
-
shows as a chip; a plain recording draws nothing."""
|
|
3
|
+
shows as a chip, unless the driver marks what it did itself; a plain recording draws nothing."""
|
|
4
4
|
from __future__ import annotations
|
|
5
5
|
|
|
6
6
|
import asyncio
|
|
7
7
|
import dataclasses
|
|
8
|
+
import functools
|
|
8
9
|
import os
|
|
9
10
|
from datetime import datetime, timedelta, timezone
|
|
10
11
|
|
|
@@ -116,6 +117,23 @@ class Forwarding(Recorded):
|
|
|
116
117
|
return CallToolResult(content=[TextContent(type="text", text="done")])
|
|
117
118
|
|
|
118
119
|
|
|
120
|
+
class Marking(Recorded):
|
|
121
|
+
"""A driver serving another server's click and type, which draws what each did itself, as that server's reply
|
|
122
|
+
says: the click where it landed, the typing as text, and nothing for a call the server refused."""
|
|
123
|
+
marks_own_inputs = frozenset({"click", "type"})
|
|
124
|
+
|
|
125
|
+
def forwarded_tools(self):
|
|
126
|
+
schema = {"type": "object", "properties": {"text": {"type": "string"}, "refuse": {"type": "boolean"}}}
|
|
127
|
+
return [ForwardedTool(EnvironmentTool(name=name, description=f"{name.title()} somewhere.", inputSchema=schema),
|
|
128
|
+
functools.partial(self.answer, name)) for name in ("click", "type")]
|
|
129
|
+
|
|
130
|
+
async def answer(self, name: str, **arguments):
|
|
131
|
+
if not arguments.get("refuse"):
|
|
132
|
+
await self.mark_inputs([("click", (*CLICK, "left", 1, []))] if name == "click" else
|
|
133
|
+
[("type_text", (arguments["text"],)), ("tool", ("submit", {"label": "Save"}))])
|
|
134
|
+
return CallToolResult(content=[TextContent(type="text", text="done")], isError=bool(arguments.get("refuse")))
|
|
135
|
+
|
|
136
|
+
|
|
119
137
|
async def _clicked(driver, start: dict, meta: dict | None = None) -> tuple[datetime, dict, list]:
|
|
120
138
|
"""A recording started with ``start`` around one click at CLICK: when the click was sent, the manifest, and each
|
|
121
139
|
frame with its capture time."""
|
|
@@ -225,6 +243,47 @@ async def test_a_driver_tool_that_acts_shows_as_a_chip_and_one_that_only_reads_o
|
|
|
225
243
|
assert labels == ['click "Save"']
|
|
226
244
|
|
|
227
245
|
|
|
246
|
+
@pytest.mark.asyncio
|
|
247
|
+
async def test_a_driver_tool_whose_inputs_the_driver_marks_is_drawn_as_it_marks_them_and_not_as_a_chip():
|
|
248
|
+
driver = Marking()
|
|
249
|
+
noted = []
|
|
250
|
+
note = driver._computer.recordings.note
|
|
251
|
+
driver._computer.recordings.note = lambda marks: (noted.extend(marks), note(marks))
|
|
252
|
+
async with http_client(driver) as http, mcp_session(driver) as session:
|
|
253
|
+
started = (await http.post(START, json={"request_id": "r", "fps": 10, "annotate": {}})).json()
|
|
254
|
+
await asyncio.sleep(0.5)
|
|
255
|
+
sent = datetime.now(timezone.utc)
|
|
256
|
+
await session.call_tool("click", {"text": "Save"}, meta={ROLE_META_KEY: "user"})
|
|
257
|
+
await session.call_tool("type", {"text": "Q4"})
|
|
258
|
+
await session.call_tool("click", {"refuse": True})
|
|
259
|
+
marks = [(mark.kind, mark.role, mark.label, mark.points) for mark in noted]
|
|
260
|
+
await asyncio.sleep(0.5)
|
|
261
|
+
manifest = (await http.post(END, json={"recording_id": started["recording_id"]})).json()
|
|
262
|
+
|
|
263
|
+
assert marks == [("click", "user", "", ((CLICK[0] / 1280, CLICK[1] / 800),)),
|
|
264
|
+
("chip", "default", 'type "Q4"', ()), ("chip", "default", 'submit "Save"', ())]
|
|
265
|
+
before, after = _split(_timed_frames(manifest), sent)
|
|
266
|
+
assert not any(_marked(image, CLICK, role_colour("user")) for image in before)
|
|
267
|
+
assert all(_marked(image, CLICK, role_colour("user")) > 20 for image in after)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
@pytest.mark.asyncio
|
|
271
|
+
async def test_marking_a_drivers_own_inputs_is_best_effort_and_needs_a_recording_that_draws_them(caplog):
|
|
272
|
+
driver = Marking()
|
|
273
|
+
async with http_client(driver) as http, mcp_session(driver) as session:
|
|
274
|
+
assert not driver.draws_inputs()
|
|
275
|
+
assert (await session.call_tool("click", {"text": "Save"})).content[0].text == "done"
|
|
276
|
+
started = (await http.post(START, json={"request_id": "r", "fps": 10, "annotate": {}})).json()
|
|
277
|
+
assert driver.draws_inputs()
|
|
278
|
+
recording = driver._computer.recordings.running[started["recording_id"]]
|
|
279
|
+
await driver.mark_inputs([("click", ("nowhere",))])
|
|
280
|
+
kept = recording.annotations.marks
|
|
281
|
+
await http.post(END, json={"recording_id": started["recording_id"]})
|
|
282
|
+
|
|
283
|
+
assert kept == []
|
|
284
|
+
assert "couldn't mark ['click'] on an annotated recording" in caplog.text
|
|
285
|
+
|
|
286
|
+
|
|
228
287
|
@pytest.mark.asyncio
|
|
229
288
|
async def test_start_refuses_an_annotate_that_isnt_an_object_or_names_an_option_it_doesnt_take():
|
|
230
289
|
async with http_client(Recorded()) as http:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/THIRD_PARTY_NOTICES.md
RENAMED
|
File without changes
|
{agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/examples/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.627 → agentenv_framework_protocol-0.1.628}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|