agentenv-framework-protocol 0.1.682__tar.gz → 0.1.683__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.682 → agentenv_framework_protocol-0.1.683}/PKG-INFO +11 -4
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/README.md +10 -3
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/__init__.py +7 -3
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/annotate.py +4 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/card.py +7 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/checks.py +25 -3
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/driver.py +6 -4
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/operations.py +16 -1
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/skill.py +55 -11
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/tools.py +42 -10
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/computer_fake.py +22 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_driver.py +1 -1
- agentenv_framework_protocol-0.1.683/tests/test_computer_phone.py +146 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/PROFILE.md +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/builder.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/coding.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/computer_use.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/late_result.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/multi_agent.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/odd_parts.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/subagent.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/fixtures/two_turns.json +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/profile.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/atif/validator.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/client.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_adb.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/runtime.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/serve_app.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/settings.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/types.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/fake_adb.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_builder.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_validator.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_recording.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_beside.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_recording_annotate.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_screenshot_delay.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_control_token.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_rpc_keepalive.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_tool_defers.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_usage_models.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/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.683
|
|
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
|
|
@@ -776,6 +776,7 @@ pixels), at the display's size times its scale. Input operations may return an `
|
|
|
776
776
|
| `@pointer_move`, `@pointer_down`, `@pointer_up`, `@pointer_position` | all or none | `computer-pointer/v1` and its five tools; click and scroll at the pointer |
|
|
777
777
|
| `@key_down`, `@key_up` | both or none | `computer-keyboard/v1` and its two tools |
|
|
778
778
|
| `@navigate`, `@history`, `@tabs`, `@dialog`, `@upload`, `@page_state` | all or none, for a screen that is a website browser's page | `computer-page/v1` and its five tools; the `page` of every frame |
|
|
779
|
+
| `@phone_button`, `@phone_open` | both or none, for a phone's touch screen | `computer-phone/v1`, its `phone_buttons`, and `computer_button` and `computer_open` |
|
|
779
780
|
| `@run_in_session` | no; a default on Linux, macOS, Windows and Android | `computer-exec/v1` |
|
|
780
781
|
| `@write_files` | no; a default on Linux, macOS, Windows and Android | `data/add` |
|
|
781
782
|
| `@read_files` | no; a default on Android | what `data/get` reads in place of the driver's own home |
|
|
@@ -819,7 +820,10 @@ reserved, and a class that names it is refused. agent-env's `computer_driver` en
|
|
|
819
820
|
group, `computer_navigate` opens a URL in the active tab, `computer_history` goes `back`, `forward`
|
|
820
821
|
or `reload`s, `computer_tabs` lists, opens, switches and closes tabs by the browser's own ids and
|
|
821
822
|
answers with the tabs after it, `computer_dialog` answers the page's open dialog and
|
|
822
|
-
`computer_upload` gives its open file chooser files in `~/Uploads`.
|
|
823
|
+
`computer_upload` gives its open file chooser files in `~/Uploads`. With the phone group,
|
|
824
|
+
`computer_button` presses one of the device's buttons its card lists (`back`, `home`, `recents`, `power`,
|
|
825
|
+
`volume_up`, `volume_down`; a driver narrows them with `phone_buttons`), and `computer_open` opens an installed
|
|
826
|
+
app, by package name or launcher label, or a URL in the app that handles it.
|
|
823
827
|
- **Frames and spaces.** Points are pixels of a named frame (your latest by default), or a
|
|
824
828
|
0..`norm_scale` grid over it with `space: "norm"`. A point outside the frame or the range is
|
|
825
829
|
refused (`out_of_bounds`), never clamped. The last 64 frames are kept, and a frame goes stale
|
|
@@ -831,8 +835,11 @@ reserved, and a class that names it is refused. agent-env's `computer_driver` en
|
|
|
831
835
|
on the page, input it blocks (all but `computer_tabs`, `computer_dialog` and `computer_upload`) is
|
|
832
836
|
refused `dialog_open`, with `applied: "no"`.
|
|
833
837
|
- **The computer skill.** `computer/v1` declares the seven tools, its params the driver's
|
|
834
|
-
features, among them `screen`: `desktop`,
|
|
835
|
-
browser's active tab, which a computer env pairs with exactly one website browser
|
|
838
|
+
features, among them `screen`: `desktop`, `page` for a driver whose screen is a website
|
|
839
|
+
browser's active tab, which a computer env pairs with exactly one website browser, or `touch` for a phone's,
|
|
840
|
+
whose `keys` are listed and leave out Power and the volume keys, since its buttons are `computer_button`'s, and
|
|
841
|
+
which has no pointer: its `buttons` are `("left",)`, a tap, and it declares no pointer group. Its skill says
|
|
842
|
+
input is touch, and on Android names the phone's ways around. The driver serves its skill through `skill/v1` (an `@agent_skill` handler on the base
|
|
836
843
|
class): a SKILL.md written from the computer as it booted (its platform, session user and home,
|
|
837
844
|
the live screen size, what its input takes, its platform's shortcuts, a distribution's where it
|
|
838
845
|
has its own, as Omarchy does) and ending with the driver class's `notes`, markdown for what its
|
|
@@ -705,6 +705,7 @@ pixels), at the display's size times its scale. Input operations may return an `
|
|
|
705
705
|
| `@pointer_move`, `@pointer_down`, `@pointer_up`, `@pointer_position` | all or none | `computer-pointer/v1` and its five tools; click and scroll at the pointer |
|
|
706
706
|
| `@key_down`, `@key_up` | both or none | `computer-keyboard/v1` and its two tools |
|
|
707
707
|
| `@navigate`, `@history`, `@tabs`, `@dialog`, `@upload`, `@page_state` | all or none, for a screen that is a website browser's page | `computer-page/v1` and its five tools; the `page` of every frame |
|
|
708
|
+
| `@phone_button`, `@phone_open` | both or none, for a phone's touch screen | `computer-phone/v1`, its `phone_buttons`, and `computer_button` and `computer_open` |
|
|
708
709
|
| `@run_in_session` | no; a default on Linux, macOS, Windows and Android | `computer-exec/v1` |
|
|
709
710
|
| `@write_files` | no; a default on Linux, macOS, Windows and Android | `data/add` |
|
|
710
711
|
| `@read_files` | no; a default on Android | what `data/get` reads in place of the driver's own home |
|
|
@@ -748,7 +749,10 @@ reserved, and a class that names it is refused. agent-env's `computer_driver` en
|
|
|
748
749
|
group, `computer_navigate` opens a URL in the active tab, `computer_history` goes `back`, `forward`
|
|
749
750
|
or `reload`s, `computer_tabs` lists, opens, switches and closes tabs by the browser's own ids and
|
|
750
751
|
answers with the tabs after it, `computer_dialog` answers the page's open dialog and
|
|
751
|
-
`computer_upload` gives its open file chooser files in `~/Uploads`.
|
|
752
|
+
`computer_upload` gives its open file chooser files in `~/Uploads`. With the phone group,
|
|
753
|
+
`computer_button` presses one of the device's buttons its card lists (`back`, `home`, `recents`, `power`,
|
|
754
|
+
`volume_up`, `volume_down`; a driver narrows them with `phone_buttons`), and `computer_open` opens an installed
|
|
755
|
+
app, by package name or launcher label, or a URL in the app that handles it.
|
|
752
756
|
- **Frames and spaces.** Points are pixels of a named frame (your latest by default), or a
|
|
753
757
|
0..`norm_scale` grid over it with `space: "norm"`. A point outside the frame or the range is
|
|
754
758
|
refused (`out_of_bounds`), never clamped. The last 64 frames are kept, and a frame goes stale
|
|
@@ -760,8 +764,11 @@ reserved, and a class that names it is refused. agent-env's `computer_driver` en
|
|
|
760
764
|
on the page, input it blocks (all but `computer_tabs`, `computer_dialog` and `computer_upload`) is
|
|
761
765
|
refused `dialog_open`, with `applied: "no"`.
|
|
762
766
|
- **The computer skill.** `computer/v1` declares the seven tools, its params the driver's
|
|
763
|
-
features, among them `screen`: `desktop`,
|
|
764
|
-
browser's active tab, which a computer env pairs with exactly one website browser
|
|
767
|
+
features, among them `screen`: `desktop`, `page` for a driver whose screen is a website
|
|
768
|
+
browser's active tab, which a computer env pairs with exactly one website browser, or `touch` for a phone's,
|
|
769
|
+
whose `keys` are listed and leave out Power and the volume keys, since its buttons are `computer_button`'s, and
|
|
770
|
+
which has no pointer: its `buttons` are `("left",)`, a tap, and it declares no pointer group. Its skill says
|
|
771
|
+
input is touch, and on Android names the phone's ways around. The driver serves its skill through `skill/v1` (an `@agent_skill` handler on the base
|
|
765
772
|
class): a SKILL.md written from the computer as it booted (its platform, session user and home,
|
|
766
773
|
the live screen size, what its input takes, its platform's shortcuts, a distribution's where it
|
|
767
774
|
has its own, as Omarchy does) and ending with the driver class's `notes`, markdown for what its
|
|
@@ -47,6 +47,7 @@ from .errors import (
|
|
|
47
47
|
Unsupported,
|
|
48
48
|
)
|
|
49
49
|
from .operations import (
|
|
50
|
+
PHONE_BUTTONS,
|
|
50
51
|
Display,
|
|
51
52
|
Effect,
|
|
52
53
|
ExecResult,
|
|
@@ -66,6 +67,8 @@ from .operations import (
|
|
|
66
67
|
key_up,
|
|
67
68
|
navigate,
|
|
68
69
|
page_state,
|
|
70
|
+
phone_button,
|
|
71
|
+
phone_open,
|
|
69
72
|
pointer_down,
|
|
70
73
|
pointer_move,
|
|
71
74
|
pointer_position,
|
|
@@ -94,6 +97,7 @@ if TYPE_CHECKING:
|
|
|
94
97
|
COMPUTER_EXEC,
|
|
95
98
|
COMPUTER_KEYBOARD,
|
|
96
99
|
COMPUTER_PAGE,
|
|
100
|
+
COMPUTER_PHONE,
|
|
97
101
|
COMPUTER_POINTER,
|
|
98
102
|
COMPUTER_READY,
|
|
99
103
|
COMPUTER_RECORDING,
|
|
@@ -110,7 +114,7 @@ if TYPE_CHECKING:
|
|
|
110
114
|
_ON_USE = {
|
|
111
115
|
"driver": ("ComputerDriverEnvironment", "computer_driver", "DEFAULT_IDENTITY", "DriverDeclaration"),
|
|
112
116
|
"card": ("COMPUTER", "COMPUTER_READY", "COMPUTER_DISPLAY", "COMPUTER_SPACES", "COMPUTER_POINTER",
|
|
113
|
-
"COMPUTER_KEYBOARD", "COMPUTER_PAGE", "COMPUTER_EXEC", "COMPUTER_RECORDING"),
|
|
117
|
+
"COMPUTER_KEYBOARD", "COMPUTER_PAGE", "COMPUTER_PHONE", "COMPUTER_EXEC", "COMPUTER_RECORDING"),
|
|
114
118
|
"recording": ("Recording", "RecordHints", "RecordedFrame", "RecordedSegment", "frames_in_thread"),
|
|
115
119
|
"_macos": ("MacOSDriver",),
|
|
116
120
|
"_x11": ("X11Driver",),
|
|
@@ -138,7 +142,7 @@ __all__ = [
|
|
|
138
142
|
"PRINTABLE_KEYS",
|
|
139
143
|
"display", "set_display", "capture", "click", "drag", "scroll", "type_text", "press",
|
|
140
144
|
"pointer_move", "pointer_down", "pointer_up", "pointer_position", "key_down", "key_up",
|
|
141
|
-
"navigate", "history", "tabs", "dialog", "upload", "page_state",
|
|
145
|
+
"navigate", "history", "tabs", "dialog", "upload", "page_state", "phone_button", "phone_open", "PHONE_BUTTONS",
|
|
142
146
|
"run_in_session", "write_files", "read_files", "record", "Recording", "RecordHints", "RecordedFrame",
|
|
143
147
|
"RecordedSegment", "frames_in_thread", "RecordingManifest", "ManifestSegment",
|
|
144
148
|
"ComputerError", "InvalidArgument", "OutOfBounds", "StaleFrame", "InputBusy", "PermissionDenied", "Unsupported",
|
|
@@ -146,5 +150,5 @@ __all__ = [
|
|
|
146
150
|
"DeliveryFailed",
|
|
147
151
|
"Internal",
|
|
148
152
|
"COMPUTER", "COMPUTER_READY", "COMPUTER_DISPLAY", "COMPUTER_SPACES", "COMPUTER_POINTER", "COMPUTER_KEYBOARD",
|
|
149
|
-
"COMPUTER_PAGE", "COMPUTER_EXEC", "COMPUTER_RECORDING",
|
|
153
|
+
"COMPUTER_PAGE", "COMPUTER_PHONE", "COMPUTER_EXEC", "COMPUTER_RECORDING",
|
|
150
154
|
]
|
|
@@ -289,6 +289,10 @@ def input_marks(operation: str, args: tuple, *, role: Optional[str], at: datetim
|
|
|
289
289
|
marks.append(chip("dialog OK" if args[0] else "dialog Cancel"))
|
|
290
290
|
elif operation == "upload":
|
|
291
291
|
marks.append(chip(f"upload {_cut(', '.join(args[0]))}"))
|
|
292
|
+
elif operation == "phone_button":
|
|
293
|
+
marks.append(chip(f"button {args[0]}"))
|
|
294
|
+
elif operation == "phone_open":
|
|
295
|
+
marks.append(chip(f"open {_cut(args[0])}"))
|
|
292
296
|
else:
|
|
293
297
|
marks.append(chip(operation))
|
|
294
298
|
if held:
|
|
@@ -19,6 +19,7 @@ COMPUTER_SPACES = "urn:agentenv:computer-spaces/v1"
|
|
|
19
19
|
COMPUTER_POINTER = "urn:agentenv:computer-pointer/v1"
|
|
20
20
|
COMPUTER_KEYBOARD = "urn:agentenv:computer-keyboard/v1"
|
|
21
21
|
COMPUTER_PAGE = "urn:agentenv:computer-page/v1"
|
|
22
|
+
COMPUTER_PHONE = "urn:agentenv:computer-phone/v1"
|
|
22
23
|
COMPUTER_EXEC = "urn:agentenv:computer-exec/v1"
|
|
23
24
|
COMPUTER_RECORDING = "urn:agentenv:computer-recording/v1"
|
|
24
25
|
|
|
@@ -33,6 +34,7 @@ GROUP_TOOLS = {
|
|
|
33
34
|
"computer_pointer_list"),
|
|
34
35
|
"keyboard": ("computer_keyboard_down", "computer_keyboard_up"),
|
|
35
36
|
"page": ("computer_navigate", "computer_history", "computer_tabs", "computer_dialog", "computer_upload"),
|
|
37
|
+
"phone": ("computer_button", "computer_open"),
|
|
36
38
|
}
|
|
37
39
|
#: The tools whose description names the default coordinate space.
|
|
38
40
|
POINT_TOOLS = ("computer_screenshot", "computer_click", "computer_drag", "computer_scroll", "computer_pointer_move",
|
|
@@ -115,6 +117,11 @@ def declared_extensions(driver: ComputerDriverEnvironment) -> list[EnvironmentEx
|
|
|
115
117
|
"computer_navigate, computer_history, computer_tabs, computer_dialog and "
|
|
116
118
|
"computer_upload; each frame names the page it shows.",
|
|
117
119
|
params={"uploads": "~/Uploads"}))
|
|
120
|
+
if driver.has("phone"):
|
|
121
|
+
declared.append(EnvironmentExtension(
|
|
122
|
+
uri=COMPUTER_PHONE, description="The phone tools, for a touch screen with buttons of its own: "
|
|
123
|
+
"computer_button presses one, computer_open opens an app or a link.",
|
|
124
|
+
params={"phone_buttons": list(driver.phone_buttons)}))
|
|
118
125
|
intake = IntakeDeclaration(get=[IntakeFormat(part="file", format="file-tree")])
|
|
119
126
|
if driver.has("write_files"):
|
|
120
127
|
intake.add = [IntakeFormat(part="file", format="file-tree", load="additive")]
|
|
@@ -7,7 +7,7 @@ from pydantic import ValidationError
|
|
|
7
7
|
from ..errors import AgentEnvError
|
|
8
8
|
from .dataplane import RELATIVE_PATHS
|
|
9
9
|
from .keys import canonical
|
|
10
|
-
from .operations import declared
|
|
10
|
+
from .operations import BUTTON_KEYS, GROUPS, PHONE_BUTTONS, declared
|
|
11
11
|
from .recording import check_recording
|
|
12
12
|
from .settings import MAX_SCREENSHOT_DELAY_MS, ComputerSettings
|
|
13
13
|
|
|
@@ -15,6 +15,7 @@ BUTTONS = ("left", "right", "middle", "back", "forward")
|
|
|
15
15
|
#: Where a driver runs, its card's ``placement``: inside its computer, the default, or beside a device it reaches.
|
|
16
16
|
PLACEMENTS = ("inside", "beside")
|
|
17
17
|
DEFAULT_PLACEMENT = "inside"
|
|
18
|
+
SCREEN_KINDS = ("desktop", "page", "touch")
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
def placement_problem(placement: object) -> str | None:
|
|
@@ -24,6 +25,21 @@ def placement_problem(placement: object) -> str | None:
|
|
|
24
25
|
return None if placement in PLACEMENTS else f"placement is inside or beside, got {placement!r}"
|
|
25
26
|
|
|
26
27
|
|
|
28
|
+
def _touch_problems(cls: type) -> list[str]:
|
|
29
|
+
"""What a touch screen's driver gets wrong: a key one of the phone's buttons stands in for, or a mouse, as more
|
|
30
|
+
buttons than a tap or the pointer group, which a finger doesn't have and its skill says it hasn't."""
|
|
31
|
+
problems = []
|
|
32
|
+
button_keys = [key for keys in BUTTON_KEYS.values() for key in keys]
|
|
33
|
+
if cls.keys == "all" or set(cls.keys) & set(button_keys):
|
|
34
|
+
problems.append(f"a touch screen's keys are listed and leave out {', '.join(button_keys)}: "
|
|
35
|
+
"computer_button presses the device's buttons")
|
|
36
|
+
if tuple(cls.buttons) != ("left",):
|
|
37
|
+
problems.append(f"a touch screen's buttons are ('left',), a tap, got {tuple(cls.buttons)!r}")
|
|
38
|
+
if any(operation in declared(cls) for operation in GROUPS["pointer"]):
|
|
39
|
+
problems.append("a touch screen has no pointer: leave out the pointer group")
|
|
40
|
+
return problems
|
|
41
|
+
|
|
42
|
+
|
|
27
43
|
def check_names(cls: type, base: type) -> None:
|
|
28
44
|
"""Refuse a driver member that would replace one of ``base``'s own: its private members and the tools, which
|
|
29
45
|
define the contract. The hooks (``caller_identity``, ``ready_checks``, ...) and the features are the driver's."""
|
|
@@ -56,8 +72,14 @@ def check_features(cls: type) -> None:
|
|
|
56
72
|
problems.append(f"keys: {e.message}")
|
|
57
73
|
if not (isinstance(cls.Settings, type) and issubclass(cls.Settings, ComputerSettings)):
|
|
58
74
|
problems.append(f"Settings is ComputerSettings or a subclass of it, got {cls.Settings!r}")
|
|
59
|
-
if cls.screen_kind not in
|
|
60
|
-
problems.append(f"screen_kind is desktop or
|
|
75
|
+
if cls.screen_kind not in SCREEN_KINDS:
|
|
76
|
+
problems.append(f"screen_kind is desktop, page or touch, got {cls.screen_kind!r}")
|
|
77
|
+
elif cls.screen_kind == "touch":
|
|
78
|
+
problems += _touch_problems(cls)
|
|
79
|
+
buttons = cls.phone_buttons
|
|
80
|
+
if not (isinstance(buttons, tuple) and buttons and set(buttons) <= set(PHONE_BUTTONS)
|
|
81
|
+
and len(set(buttons)) == len(buttons)):
|
|
82
|
+
problems.append(f"phone_buttons is a tuple of distinct buttons from {list(PHONE_BUTTONS)}, got {buttons!r}")
|
|
61
83
|
if problem := placement_problem(cls.placement):
|
|
62
84
|
problems.append(problem)
|
|
63
85
|
try:
|
|
@@ -26,7 +26,7 @@ from .checks import DEFAULT_PLACEMENT, check_features, check_names
|
|
|
26
26
|
from .dataplane import DEFAULT_DATA_PATHS, DataPlane
|
|
27
27
|
from .errors import TargetUnavailable
|
|
28
28
|
from .extensions import Extensions
|
|
29
|
-
from .operations import ReadyCheck, check_class, default_for
|
|
29
|
+
from .operations import PHONE_BUTTONS, ReadyCheck, check_class, default_for
|
|
30
30
|
from .platform import Platform, detect
|
|
31
31
|
from .recording import Recording
|
|
32
32
|
from .runtime import ComputerRuntime
|
|
@@ -105,9 +105,11 @@ class ComputerDriverEnvironment(Tools, Extensions, DataPlane, AgentEnvEnvironmen
|
|
|
105
105
|
recording: ClassVar[Recording | None] = Recording()
|
|
106
106
|
#: What an agent should know about this driver's computer beyond what its card says, as markdown: the end of its skill.
|
|
107
107
|
notes: ClassVar[str] = ""
|
|
108
|
-
#: What the computer's screen shows, its card's ``screen``: a ``desktop``,
|
|
109
|
-
#: active tab.
|
|
110
|
-
screen_kind: ClassVar[Literal["desktop", "page"]] = "desktop"
|
|
108
|
+
#: What the computer's screen shows, its card's ``screen``: a ``desktop``, a website browser's ``page``, its
|
|
109
|
+
#: active tab, or a phone's ``touch`` screen, whose ``keys`` leave out the buttons ``computer_button`` presses.
|
|
110
|
+
screen_kind: ClassVar[Literal["desktop", "page", "touch"]] = "desktop"
|
|
111
|
+
#: The device's buttons ``computer_button`` presses, from ``PHONE_BUTTONS``; with the phone group only.
|
|
112
|
+
phone_buttons: ClassVar[tuple[str, ...]] = PHONE_BUTTONS
|
|
111
113
|
#: Where the driver runs, on its card: ``inside`` its computer as the session user, or ``beside`` a device it
|
|
112
114
|
#: reaches, such as a phone over adb, whose platform it passes to ``__init__``.
|
|
113
115
|
placement: ClassVar[Literal["inside", "beside"]] = DEFAULT_PLACEMENT
|
|
@@ -21,6 +21,11 @@ The page group, for a driver whose screen is a website browser's active tab:
|
|
|
21
21
|
dialog(accept, text) upload(paths), relative to the session user's ~/Uploads
|
|
22
22
|
page_state() -> PageState
|
|
23
23
|
|
|
24
|
+
The phone group, for a driver whose screen is a phone's touch screen:
|
|
25
|
+
|
|
26
|
+
phone_button(button) one of PHONE_BUTTONS, as the device's own button does
|
|
27
|
+
phone_open(target) an installed app, by package or launcher label, or a URL
|
|
28
|
+
|
|
24
29
|
A page driver's ``capture`` may return its ``Image`` with the ``page`` it shows, read with it, which every frame then
|
|
25
30
|
carries rather than one ``page_state`` reads after.
|
|
26
31
|
"""
|
|
@@ -37,10 +42,18 @@ GROUPS = {
|
|
|
37
42
|
"pointer": ("pointer_move", "pointer_down", "pointer_up", "pointer_position"),
|
|
38
43
|
"keyboard": ("key_down", "key_up"),
|
|
39
44
|
"page": ("navigate", "history", "tabs", "dialog", "upload", "page_state"),
|
|
45
|
+
"phone": ("phone_button", "phone_open"),
|
|
40
46
|
}
|
|
47
|
+
#: The phone's own buttons, which are not keys: ``computer_button`` presses them.
|
|
48
|
+
PHONE_BUTTONS = ("back", "home", "recents", "power", "volume_up", "volume_down")
|
|
49
|
+
#: The W3C keys a touch screen's ``keys`` leave out, by the phone button that does their work, so each thing has one
|
|
50
|
+
#: way; mute goes with ``volume_down``, which turns the sound down to nothing.
|
|
51
|
+
BUTTON_KEYS = {"power": ("Power", "PowerOff"), "volume_up": ("AudioVolumeUp",),
|
|
52
|
+
"volume_down": ("AudioVolumeDown", "AudioVolumeMute")}
|
|
41
53
|
OPTIONAL = ("set_display", "run_in_session", "write_files", "read_files", "record")
|
|
42
54
|
INPUT = frozenset({"click", "drag", "scroll", "type_text", "press", "pointer_move", "pointer_down", "pointer_up",
|
|
43
|
-
"key_down", "key_up", "navigate", "history", "tabs", "dialog", "upload"
|
|
55
|
+
"key_down", "key_up", "navigate", "history", "tabs", "dialog", "upload", "phone_button",
|
|
56
|
+
"phone_open"})
|
|
44
57
|
#: The input a page's open dialog blocks, which is refused while one is open there.
|
|
45
58
|
DIALOG_BLOCKS = INPUT - {"tabs", "dialog", "upload"}
|
|
46
59
|
|
|
@@ -172,6 +185,8 @@ tabs = _marker("tabs")
|
|
|
172
185
|
dialog = _marker("dialog")
|
|
173
186
|
upload = _marker("upload")
|
|
174
187
|
page_state = _marker("page_state")
|
|
188
|
+
phone_button = _marker("phone_button")
|
|
189
|
+
phone_open = _marker("phone_open")
|
|
175
190
|
run_in_session = _marker("run_in_session")
|
|
176
191
|
write_files = _marker("write_files")
|
|
177
192
|
read_files = _marker("read_files")
|
|
@@ -21,7 +21,7 @@ _LINUX_APPS = """\
|
|
|
21
21
|
- Copy, cut and paste: `['Control', 'c']`, `['Control', 'x']`, `['Control', 'v']`; in a terminal, with `'Shift'` too.
|
|
22
22
|
- Undo `['Control', 'z']`, save `['Control', 's']`, select all `['Control', 'a']`, find `['Control', 'f']`.
|
|
23
23
|
"""
|
|
24
|
-
#:
|
|
24
|
+
#: How each platform does the everyday actions, its chords as ``computer_key`` takes them, by platform key: a
|
|
25
25
|
#: distribution's replace its OS type's.
|
|
26
26
|
SHORTCUTS = {
|
|
27
27
|
"linux": _LINUX_APPS + """\
|
|
@@ -40,8 +40,16 @@ SHORTCUTS = {
|
|
|
40
40
|
Omarchy's menu; `['Super', 'k']` the list of every shortcut.
|
|
41
41
|
""" + _LINUX_APPS + """\
|
|
42
42
|
- `['Super', 'c']`, `['Super', 'x']` and `['Super', 'v']` copy, cut and paste in any window, a terminal too.
|
|
43
|
+
""",
|
|
44
|
+
"android": """\
|
|
45
|
+
- Swipe down from the top edge, a `computer_drag` from the top row down, for the notifications and quick settings;
|
|
46
|
+
on the home screen, swipe up for every app.
|
|
47
|
+
- A long press is a `computer_drag` whose two points are the same, with `duration_ms` 600 or more.
|
|
43
48
|
""",
|
|
44
49
|
}
|
|
50
|
+
#: What each of the phone's buttons does, for the shortcuts of a driver that presses it.
|
|
51
|
+
_PHONE_BUTTON_USES = {"back": "`back` goes back a screen or closes the keyboard",
|
|
52
|
+
"home": "`home` shows the home screen", "recents": "`recents` the apps open lately"}
|
|
45
53
|
_SESSIONS = {"x11": "an X11 session", "wayland": "a Wayland session"}
|
|
46
54
|
#: Who the agent acts as, and its home, by OS type, where the base class's OS defaults reach the device from beside it
|
|
47
55
|
#: rather than run as the driver's own user: on Android, adb's shell user under shared storage.
|
|
@@ -54,9 +62,14 @@ async def skill(driver: ComputerDriverEnvironment) -> tuple[str, str, dict[str,
|
|
|
54
62
|
platform = driver.platform
|
|
55
63
|
system = " ".join(part for part in ((platform.distribution or platform.os or "").title(), platform.version,
|
|
56
64
|
f"({platform.arch})" if platform.arch else None) if part)
|
|
57
|
-
|
|
58
|
-
if
|
|
59
|
-
session
|
|
65
|
+
touch = driver.screen_kind == "touch"
|
|
66
|
+
if touch:
|
|
67
|
+
session = "a touch screen"
|
|
68
|
+
else:
|
|
69
|
+
session = _SESSIONS.get(platform.display or "", "a desktop session")
|
|
70
|
+
if desktop := os.environ.get("XDG_CURRENT_DESKTOP"):
|
|
71
|
+
session += f" ({desktop})"
|
|
72
|
+
acting = "tap, swipe and type" if touch else "click, type and press keys"
|
|
60
73
|
user, home = _ACCOUNTS.get(platform.os or "") or (getpass.getuser(), Path.home())
|
|
61
74
|
description = (f"How to use this computer through its computer_* tools: {system}, {display.width}x{display.height}, "
|
|
62
75
|
"what its input takes, and its shortcuts.")
|
|
@@ -64,11 +77,11 @@ async def skill(driver: ComputerDriverEnvironment) -> tuple[str, str, dict[str,
|
|
|
64
77
|
opening = ([
|
|
65
78
|
"# Using this computer",
|
|
66
79
|
"You see this computer through `computer_screenshot` and drive it through the other `computer_*` tools, as a "
|
|
67
|
-
"person at its screen would: look, then
|
|
80
|
+
f"person at its screen would: look, then {acting} on what the screen shows.",
|
|
68
81
|
] if bundled is None else [
|
|
69
82
|
"# This computer",
|
|
70
83
|
"Beside the tools above, this computer serves its `computer_*` tools: `computer_screenshot` shows the screen, "
|
|
71
|
-
"and the others
|
|
84
|
+
f"and the others {acting} on what it shows.",
|
|
72
85
|
])
|
|
73
86
|
sections = [
|
|
74
87
|
*opening,
|
|
@@ -78,7 +91,9 @@ async def skill(driver: ComputerDriverEnvironment) -> tuple[str, str, dict[str,
|
|
|
78
91
|
"## Input",
|
|
79
92
|
_input(driver),
|
|
80
93
|
]
|
|
81
|
-
|
|
94
|
+
shortcuts = entry_for(SHORTCUTS, platform_key(platform.os, platform.distribution)) or ""
|
|
95
|
+
shortcuts += _phone_shortcuts(driver)
|
|
96
|
+
if shortcuts:
|
|
82
97
|
sections += ["## Shortcuts", shortcuts.rstrip()]
|
|
83
98
|
if notes := driver.notes.strip():
|
|
84
99
|
sections += ["## Notes", notes]
|
|
@@ -99,14 +114,43 @@ def _input(driver: ComputerDriverEnvironment) -> str:
|
|
|
99
114
|
space, scale = driver.settings.default_space, driver.settings.default_norm_scale
|
|
100
115
|
points = ("pixels of the latest screenshot" if space == "frame" else
|
|
101
116
|
f"0 to {scale} across and down the latest screenshot")
|
|
102
|
-
|
|
103
|
-
|
|
117
|
+
lines = [
|
|
118
|
+
_clicks(driver),
|
|
104
119
|
f"- Keys: {keys}. A chord is pressed in order and released in reverse.",
|
|
105
120
|
f"- Up to {driver.max_text_length} characters in one `computer_type`; `computer_wait` waits up to "
|
|
106
121
|
f"{driver.max_wait_ms} ms.",
|
|
107
122
|
f"- Points are {points}, unless a call names another space.",
|
|
108
|
-
|
|
109
|
-
]
|
|
123
|
+
_delivery(driver),
|
|
124
|
+
]
|
|
125
|
+
if driver.has("phone"):
|
|
126
|
+
lines.append(f"- The phone's buttons, through `computer_button`: {', '.join(driver.phone_buttons)}.")
|
|
127
|
+
return "\n".join(lines)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def _clicks(driver: ComputerDriverEnvironment) -> str:
|
|
131
|
+
"""What one ``computer_click`` takes: taps on a touch screen, else presses of the mouse buttons it has."""
|
|
132
|
+
if driver.screen_kind == "touch":
|
|
133
|
+
taps = "1 tap" if driver.max_click_count == 1 else f"{driver.max_click_count} taps"
|
|
134
|
+
return f"- Up to {taps} in one `computer_click`."
|
|
135
|
+
return f"- Buttons: {', '.join(driver.buttons)}; up to {driver.max_click_count} clicks in one `computer_click`."
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _delivery(driver: ComputerDriverEnvironment) -> str:
|
|
139
|
+
"""How input reaches the screen: as a finger's on a touch screen, else to the focused window with the pointer."""
|
|
140
|
+
if driver.screen_kind == "touch":
|
|
141
|
+
return ("- Input is touch: `computer_click` taps, `computer_drag` swipes and `computer_scroll` scrolls under "
|
|
142
|
+
"its point, as a person's finger would; there is no pointer.")
|
|
143
|
+
return "- Input is foreground: it goes to the focused window and moves the pointer, as a person's would."
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _phone_shortcuts(driver: ComputerDriverEnvironment) -> str:
|
|
147
|
+
"""The ways around a phone through the phone group's tools, naming only the buttons the driver presses."""
|
|
148
|
+
if not driver.has("phone"):
|
|
149
|
+
return ""
|
|
150
|
+
uses = [use for button, use in _PHONE_BUTTON_USES.items() if button in driver.phone_buttons]
|
|
151
|
+
lines = [f"- `computer_button` presses the phone's own buttons: {', '.join(uses)}.\n"] if uses else []
|
|
152
|
+
return "".join(lines) + ("- `computer_open` opens an app by its package name or the label under its icon, or a "
|
|
153
|
+
"link in the app that handles it.\n")
|
|
110
154
|
|
|
111
155
|
|
|
112
156
|
def _keys(keys) -> str:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""The seven computer_* tools and the pointer and
|
|
1
|
+
"""The seven computer_* tools and the pointer, keyboard, page and phone groups' tools: fixed names, parameters and results, built
|
|
2
2
|
from the driver's operations. Every result is structured, with a one-line summary repeated as its text block."""
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
@@ -14,6 +14,7 @@ from ..tool_context import ToolContext
|
|
|
14
14
|
from .errors import InvalidArgument, Unsupported
|
|
15
15
|
from .frames import Frame
|
|
16
16
|
from .keys import chord
|
|
17
|
+
from .operations import PHONE_BUTTONS
|
|
17
18
|
from .results import (
|
|
18
19
|
InputResult,
|
|
19
20
|
Point,
|
|
@@ -63,6 +64,7 @@ class Tools:
|
|
|
63
64
|
max_duration_ms: int
|
|
64
65
|
max_key_repeat: int
|
|
65
66
|
max_scroll_amount: int
|
|
67
|
+
phone_buttons: tuple[str, ...]
|
|
66
68
|
has: Callable[[str], bool]
|
|
67
69
|
caller_identity: Callable[[ToolContext], str]
|
|
68
70
|
|
|
@@ -372,7 +374,7 @@ class Tools:
|
|
|
372
374
|
screenshot: Screenshot = False,
|
|
373
375
|
) -> Annotated[CallToolResult, InputResult]:
|
|
374
376
|
"""Open a URL in the active tab. The screen is the page alone, with no address bar to type it into."""
|
|
375
|
-
return await
|
|
377
|
+
return await _at_latest_frame(self, ctx, "navigate", (url,), screenshot, f"Opened {url}")
|
|
376
378
|
|
|
377
379
|
@tool(annotations=_INPUT)
|
|
378
380
|
async def computer_history(
|
|
@@ -384,7 +386,7 @@ class Tools:
|
|
|
384
386
|
) -> Annotated[CallToolResult, InputResult]:
|
|
385
387
|
"""Go back, go forward or reload in the active tab, as the browser's buttons do."""
|
|
386
388
|
verb = {"back": "Went back", "forward": "Went forward", "reload": "Reloaded the page"}[direction]
|
|
387
|
-
return await
|
|
389
|
+
return await _at_latest_frame(self, ctx, "history", (direction,), screenshot, verb)
|
|
388
390
|
|
|
389
391
|
@tool(annotations=_INPUT)
|
|
390
392
|
async def computer_tabs(
|
|
@@ -412,7 +414,7 @@ class Tools:
|
|
|
412
414
|
return TabsResult(**{**result.model_dump(), "summary": f"{verb}; {len(rows)} open{shown}"
|
|
413
415
|
if rows else f"{verb}; none open"}, tabs=rows)
|
|
414
416
|
|
|
415
|
-
return await
|
|
417
|
+
return await _at_latest_frame(self, ctx, "tabs", (action, tab, url), screenshot, verb, wrap=listed)
|
|
416
418
|
|
|
417
419
|
@tool(annotations=_INPUT)
|
|
418
420
|
async def computer_dialog(
|
|
@@ -424,8 +426,8 @@ class Tools:
|
|
|
424
426
|
) -> Annotated[CallToolResult, InputResult]:
|
|
425
427
|
"""Answer the JavaScript dialog open on the page, which a screenshot names; nothing else reaches the page
|
|
426
428
|
until it's answered."""
|
|
427
|
-
return await
|
|
428
|
-
|
|
429
|
+
return await _at_latest_frame(self, ctx, "dialog", (accept, text), screenshot,
|
|
430
|
+
"Accepted the dialog" if accept else "Dismissed the dialog")
|
|
429
431
|
|
|
430
432
|
@tool(annotations=_INPUT)
|
|
431
433
|
async def computer_upload(
|
|
@@ -438,12 +440,42 @@ class Tools:
|
|
|
438
440
|
does."""
|
|
439
441
|
if not paths:
|
|
440
442
|
raise InvalidArgument("give at least one path")
|
|
441
|
-
return await
|
|
442
|
-
|
|
443
|
+
return await _at_latest_frame(self, ctx, "upload", (list(paths),), screenshot,
|
|
444
|
+
f"Chose {', '.join(paths)} in the file chooser")
|
|
445
|
+
|
|
446
|
+
@tool(annotations=_INPUT)
|
|
447
|
+
async def computer_button(
|
|
448
|
+
self,
|
|
449
|
+
ctx: ToolContext,
|
|
450
|
+
button: Annotated[Literal[PHONE_BUTTONS], Field(
|
|
451
|
+
description=f"The device's button, one of {', '.join(PHONE_BUTTONS)} (recents shows the open apps); only "
|
|
452
|
+
"those its card lists")],
|
|
453
|
+
screenshot: Screenshot = False,
|
|
454
|
+
) -> Annotated[CallToolResult, InputResult]:
|
|
455
|
+
"""Press one of the phone's own buttons, as a person's thumb does."""
|
|
456
|
+
if button not in self.phone_buttons:
|
|
457
|
+
raise Unsupported(f"this phone has no {button} button; it has {', '.join(self.phone_buttons)}")
|
|
458
|
+
return await _at_latest_frame(self, ctx, "phone_button", (button,), screenshot, f"Pressed {button}")
|
|
459
|
+
|
|
460
|
+
@tool(annotations=_INPUT)
|
|
461
|
+
async def computer_open(
|
|
462
|
+
self,
|
|
463
|
+
ctx: ToolContext,
|
|
464
|
+
target: Annotated[str, Field(
|
|
465
|
+
description="An installed app, by its package name (com.android.settings) or the label its launcher icon "
|
|
466
|
+
"shows (Settings), or a URL, which opens in the app that handles it")],
|
|
467
|
+
screenshot: Screenshot = False,
|
|
468
|
+
) -> Annotated[CallToolResult, InputResult]:
|
|
469
|
+
"""Open an app, as tapping its launcher icon does, or a link, in the app that handles it."""
|
|
470
|
+
target = target.strip()
|
|
471
|
+
if not target:
|
|
472
|
+
raise InvalidArgument("give an app's package name or label, or a URL")
|
|
473
|
+
return await _at_latest_frame(self, ctx, "phone_open", (target,), screenshot, f"Opened {target}")
|
|
443
474
|
|
|
444
475
|
|
|
445
|
-
async def
|
|
446
|
-
|
|
476
|
+
async def _at_latest_frame(driver: Tools, ctx: ToolContext, op: str, args: tuple, screenshot: bool, summary: str,
|
|
477
|
+
wrap: Callable | None = None) -> CallToolResult:
|
|
478
|
+
"""An input that names no point, made against the caller's latest frame, as the page and phone tools make."""
|
|
447
479
|
computer = driver._computer
|
|
448
480
|
await computer.ensure_ready()
|
|
449
481
|
return await computer.act(ctx, op, args, frame=computer.frames.latest(driver.caller_identity(ctx)),
|
{agentenv_framework_protocol-0.1.682 → agentenv_framework_protocol-0.1.683}/tests/computer_fake.py
RENAMED
|
@@ -31,6 +31,8 @@ from agentenv_protocol.computer import (
|
|
|
31
31
|
key_up,
|
|
32
32
|
navigate,
|
|
33
33
|
page_state,
|
|
34
|
+
phone_button,
|
|
35
|
+
phone_open,
|
|
34
36
|
pointer_down,
|
|
35
37
|
pointer_move,
|
|
36
38
|
pointer_position,
|
|
@@ -44,6 +46,7 @@ from agentenv_protocol.computer import (
|
|
|
44
46
|
)
|
|
45
47
|
|
|
46
48
|
LINUX = Platform(os="linux", distribution="ubuntu", version="24.04", arch="amd64", display="x11")
|
|
49
|
+
ANDROID = Platform(os="android", version="13", arch="amd64", display="none")
|
|
47
50
|
BACKGROUND = (255, 255, 255)
|
|
48
51
|
COLOURS = {"left": (255, 0, 0), "right": (0, 0, 255), "middle": (0, 255, 0)}
|
|
49
52
|
|
|
@@ -258,6 +261,25 @@ class MinimalDriver(ComputerDriverEnvironment):
|
|
|
258
261
|
self.screen.log.append(("press", tuple(keys)))
|
|
259
262
|
|
|
260
263
|
|
|
264
|
+
class PhoneFake(MinimalDriver):
|
|
265
|
+
"""A phone beside the driver: a portrait touch screen with its own buttons, and a log of the buttons it pressed
|
|
266
|
+
and what it opened."""
|
|
267
|
+
screen_kind = "touch"
|
|
268
|
+
placement = "beside"
|
|
269
|
+
keys = ("Enter", "Backspace", "Tab")
|
|
270
|
+
|
|
271
|
+
def __init__(self) -> None:
|
|
272
|
+
super().__init__(FakeScreen(360, 800), platform=ANDROID)
|
|
273
|
+
|
|
274
|
+
@phone_button
|
|
275
|
+
async def press_button(self, button):
|
|
276
|
+
self.screen.log.append(("button", button))
|
|
277
|
+
|
|
278
|
+
@phone_open
|
|
279
|
+
async def open_target(self, target):
|
|
280
|
+
self.screen.log.append(("open", target))
|
|
281
|
+
|
|
282
|
+
|
|
261
283
|
@contextlib.asynccontextmanager
|
|
262
284
|
async def mcp_session(driver: ComputerDriverEnvironment):
|
|
263
285
|
"""An MCP client session on the driver's app, in memory."""
|
|
@@ -118,7 +118,7 @@ def test_unknown_predicates_are_refused():
|
|
|
118
118
|
({"keys": ("enter",)}, "keys are W3C key values in their W3C case"),
|
|
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
|
-
({"screen_kind": "tablet"}, "screen_kind is desktop or
|
|
121
|
+
({"screen_kind": "tablet"}, "screen_kind is desktop, page or touch, got 'tablet'"),
|
|
122
122
|
({"placement": "provider"}, "placement provider, a driver its device's provider serves, isn't supported yet"),
|
|
123
123
|
({"default_data_paths": "Download"}, "default_data_paths is a tuple of normalized paths relative to the session "
|
|
124
124
|
"user's home, got 'Download'"),
|