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