agentenv-framework-protocol 0.1.542__tar.gz → 0.1.547__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 (194) hide show
  1. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/PKG-INFO +48 -1
  2. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/README.md +47 -0
  3. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/Dockerfile +0 -1
  4. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/README.md +1 -1
  5. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/pyproject.toml +1 -1
  6. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/dataplane.py +3 -2
  7. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/serve.py +4 -1
  8. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/serve_app.py +5 -1
  9. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/svc.py +1 -13
  10. agentenv_framework_protocol-0.1.547/src/agentenv_protocol/passthrough.py +19 -0
  11. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/transfers.py +25 -3
  12. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/__init__.py +11 -5
  13. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/conformance.py +43 -18
  14. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/environment.py +52 -19
  15. agentenv_framework_protocol-0.1.547/src/agentenv_protocol/website/forwarding.py +185 -0
  16. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/readiness.py +16 -0
  17. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/environment.py +2 -9
  18. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_object_transfers.py +57 -0
  19. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_queue.py +3 -2
  20. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_conformance.py +19 -2
  21. agentenv_framework_protocol-0.1.547/tests/test_website_forwarding.py +394 -0
  22. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/.gitignore +0 -0
  23. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/LICENSE +0 -0
  24. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/NOTICE +0 -0
  25. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/THIRD_PARTY_NOTICES.md +0 -0
  26. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/__init__.py +0 -0
  27. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/advanced_agent.py +0 -0
  28. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/basic_agent.py +0 -0
  29. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/custom_extensions_agent.py +0 -0
  30. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/multimodal_agent.py +0 -0
  31. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/reference_model.py +0 -0
  32. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/streaming_agent.py +0 -0
  33. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/.gitignore +0 -0
  34. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/Dockerfile.dockerignore +0 -0
  35. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/data/seed.json +0 -0
  36. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/env.toml +0 -0
  37. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/site.py +0 -0
  38. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/index.html +0 -0
  39. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/package-lock.json +0 -0
  40. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/package.json +0 -0
  41. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/src/main.js +0 -0
  42. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/src/style.css +0 -0
  43. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/examples/website/notes/web/vite.config.js +0 -0
  44. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/__init__.py +0 -0
  45. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
  46. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
  47. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
  48. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
  49. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
  50. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
  51. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
  52. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
  53. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
  54. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
  55. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
  56. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/agent_env_environment.py +0 -0
  57. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/client.py +0 -0
  58. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/__init__.py +0 -0
  59. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_declare.py +0 -0
  60. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_desktop.py +0 -0
  61. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_job.py +0 -0
  62. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_linux.py +0 -0
  63. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_load.py +0 -0
  64. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_macos.py +0 -0
  65. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_reaping.py +0 -0
  66. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_session_posix.py +0 -0
  67. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_session_windows.py +0 -0
  68. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_windows.py +0 -0
  69. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_with_fds.py +0 -0
  70. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/_x11.py +0 -0
  71. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/app.py +0 -0
  72. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/app_data.py +0 -0
  73. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/app_runtime.py +0 -0
  74. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/apps.py +0 -0
  75. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/card.py +0 -0
  76. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/checks.py +0 -0
  77. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/clock.py +0 -0
  78. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
  79. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
  80. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
  81. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/client.py +0 -0
  82. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
  83. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
  84. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
  85. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
  86. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/report.py +0 -0
  87. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
  88. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/driver.py +0 -0
  89. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/errors.py +0 -0
  90. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/extensions.py +0 -0
  91. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/frames.py +0 -0
  92. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/keys.py +0 -0
  93. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/launch.py +0 -0
  94. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/manifest.py +0 -0
  95. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/operations.py +0 -0
  96. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/platform.py +0 -0
  97. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/prefix.py +0 -0
  98. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/queue.py +0 -0
  99. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/recording.py +0 -0
  100. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/results.py +0 -0
  101. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/run_install_step.py +0 -0
  102. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/runtime.py +0 -0
  103. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/seed.py +0 -0
  104. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/served.py +0 -0
  105. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/session.py +0 -0
  106. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/settings.py +0 -0
  107. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/skill.py +0 -0
  108. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/spaces.py +0 -0
  109. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/computer/tools.py +0 -0
  110. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/errors.py +0 -0
  111. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/manifest.py +0 -0
  112. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/preflight.py +0 -0
  113. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/tool_access.py +0 -0
  114. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/tool_client.py +0 -0
  115. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/tool_context.py +0 -0
  116. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/types.py +0 -0
  117. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/clock.py +0 -0
  118. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/errors.py +0 -0
  119. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/routes.py +0 -0
  120. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website/session.py +0 -0
  121. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/__init__.py +0 -0
  122. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/cdp.py +0 -0
  123. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/contexts.py +0 -0
  124. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/control.py +0 -0
  125. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/data.py +0 -0
  126. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/devtools.py +0 -0
  127. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/log.py +0 -0
  128. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/network.py +0 -0
  129. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/recording.py +0 -0
  130. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/scope.py +0 -0
  131. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/src/agentenv_protocol/website_browser/shapes.py +0 -0
  132. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/computer_fake.py +0 -0
  133. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/probe_fake.py +0 -0
  134. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_agent.py +0 -0
  135. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_agent_examples.py +0 -0
  136. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_cdp_config.py +0 -0
  137. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_peer_agents.py +0 -0
  138. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_proxy.py +0 -0
  139. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_staging.py +0 -0
  140. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_a2a_trajectory_log.py +0 -0
  141. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_agent_env_environment.py +0 -0
  142. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_cdp.py +0 -0
  143. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_contexts.py +0 -0
  144. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_data.py +0 -0
  145. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_log.py +0 -0
  146. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_network.py +0 -0
  147. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_recording.py +0 -0
  148. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_browser_state.py +0 -0
  149. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_client.py +0 -0
  150. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_app_data.py +0 -0
  151. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_app_server.py +0 -0
  152. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_clock.py +0 -0
  153. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_conformance.py +0 -0
  154. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_conformance_checks.py +0 -0
  155. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_conformance_page.py +0 -0
  156. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_conformance_recording.py +0 -0
  157. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_dataplane.py +0 -0
  158. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_declare.py +0 -0
  159. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_driver.py +0 -0
  160. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_driver_keys.py +0 -0
  161. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_extensions.py +0 -0
  162. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_frames.py +0 -0
  163. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_macos.py +0 -0
  164. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_page.py +0 -0
  165. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_recording.py +0 -0
  166. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_seed.py +0 -0
  167. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_serve.py +0 -0
  168. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_served.py +0 -0
  169. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_session_windows.py +0 -0
  170. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_spaces.py +0 -0
  171. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_svc_forward.py +0 -0
  172. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_tool_prefix.py +0 -0
  173. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_computer_windows_driver.py +0 -0
  174. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_control_token.py +0 -0
  175. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_data_objects.py +0 -0
  176. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_devtools_pipe.py +0 -0
  177. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_errors.py +0 -0
  178. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_extension_methods.py +0 -0
  179. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_intake.py +0 -0
  180. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_manifest.py +0 -0
  181. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_preflight.py +0 -0
  182. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_access.py +0 -0
  183. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_annotations.py +0 -0
  184. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_client.py +0 -0
  185. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_context.py +0 -0
  186. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_context_fastmcp.py +0 -0
  187. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_tool_context_injection.py +0 -0
  188. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_api.py +0 -0
  189. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_browser.py +0 -0
  190. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_environment.py +0 -0
  191. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_live.py +0 -0
  192. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_mcp.py +0 -0
  193. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/tests/test_website_notes_example.py +0 -0
  194. {agentenv_framework_protocol-0.1.542 → agentenv_framework_protocol-0.1.547}/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.542
3
+ Version: 0.1.547
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
@@ -615,6 +615,53 @@ class GitHub(WebsiteEnvironment):
615
615
  - **The run:** a run that deploys a live site is marked live. The deploy record says `live`, and the run's metadata lists
616
616
  its live sites with `reproducible: false`, because the real site may change between runs.
617
617
 
618
+ A third-party site is an app someone else wrote, such as a web store, that serves its own pages, wrapped so agentenv
619
+ deploys it like any site. `ForwardingSite` runs in the app's container beside it: it answers the card, the data plane
620
+ and `website/v1` itself, and forwards every other request to the app.
621
+
622
+ ```python
623
+ from agentenv_protocol.website import ForwardingSite, session_state, website
624
+
625
+
626
+ @website(domains=["store.localhost"], builtin_routes=False, clock="real", ready_timeout_s=600)
627
+ class Store(ForwardingSite):
628
+ upstream = "http://127.0.0.1:80" # the app, in the same container
629
+ ready_path = "/admin" # ready once the app answers this below 500
630
+ sign_in_headers = ("X-Auto-Login",) # only the site's own calls send these; logged with values removed
631
+
632
+ @session_state
633
+ async def signed_in(self, user: str | None) -> dict:
634
+ answer = await self.ask_app("/admin", headers={"X-Auto-Login": "..."})
635
+ ... # return the cookies the app answered with
636
+ ```
637
+
638
+ - **Forwarding:** a request goes to the app as it came: its method, the site's own path with its encoding intact (an
639
+ escaped `/` stays escaped, and a forwarded prefix is taken off), its query, the `Host` the browser named and its
640
+ body, streamed, with no header or cookie of the forwarder's own. The hop-by-hop headers and `sign_in_headers` stay
641
+ behind. The answer comes back as the app gave it, streamed and still encoded, a redirect unfollowed, but a cookie
642
+ the app ties to one of the site's names (`Domain`) comes back the host's alone, as agentenv sets a sign-in's
643
+ cookies, so a sign-in replaces the app's session cookie rather than setting a second one beside it. An app not
644
+ answering is a 502 (`upstream_unavailable`). It forwards HTTP alone, and refuses a WebSocket with close code 1011.
645
+ - **`builtin_routes=False`** serves none of agentenv's own site routes, so `/api/session` reaches the app too, and the
646
+ card names no `session_path` or `session_cookie`. Any `WebsiteEnvironment` may set it.
647
+ - **`clock="real"`** declares a site that keeps real time, as an app that reads the system clock does: its card serves
648
+ no `clock/v1`, its `website/v1` params say `clock: "real"` (`WEBSITE_CLOCK_PARAM`), its answers carry no
649
+ `X-Universe-Now`, and `sync_env_clock` passes it over. The conformance check skips its two clock checks.
650
+ `@website` refuses `clock_patch` with it, since there's no universe time to put in a page.
651
+ - **Its data plane:** the app keeps its own data, so the site serves `data/get` alone, which exports nothing. It takes
652
+ no load and can't reset: agentenv's reset passes over a card serving no `data/reset`, and the conformance check
653
+ passes a card serving `data/get` alone once `data/get` answers.
654
+ - **Its session:** `@session_state` signs the browser in with whatever cookies the app sets, for example from one
655
+ server-side request carrying a sign-in header, which `sign_in_headers` then keeps the browser from sending. The
656
+ card names them too (`WEBSITE_SIGN_IN_HEADERS_PARAM`), so should a browser's request carry one, the browser's
657
+ network log, and so `network.har`, keeps it with its value taken out.
658
+ - **Its own calls:** `ask_app(path, method=..., headers=..., content=...)` asks the app as the site does, under its
659
+ first name as `Host`, through the forwarder's client, which keeps no cookie and follows no redirect. Its session
660
+ and ready checks use it, as `ForwardingSite`'s own ready check does.
661
+ - **Its names:** an app with a fixed base URL answers any other `Host` with a redirect to its own name. A browser
662
+ reaches it by that name alone, the site proxy naming it, and the conformance check's `any_host` passes `/` redirecting
663
+ to one of the card's `domains` as it does `/` serving HTML.
664
+
618
665
  ## Computer drivers
619
666
 
620
667
  A computer driver is what runs inside a computer an agent uses through screenshots and input. Write
@@ -544,6 +544,53 @@ class GitHub(WebsiteEnvironment):
544
544
  - **The run:** a run that deploys a live site is marked live. The deploy record says `live`, and the run's metadata lists
545
545
  its live sites with `reproducible: false`, because the real site may change between runs.
546
546
 
547
+ A third-party site is an app someone else wrote, such as a web store, that serves its own pages, wrapped so agentenv
548
+ deploys it like any site. `ForwardingSite` runs in the app's container beside it: it answers the card, the data plane
549
+ and `website/v1` itself, and forwards every other request to the app.
550
+
551
+ ```python
552
+ from agentenv_protocol.website import ForwardingSite, session_state, website
553
+
554
+
555
+ @website(domains=["store.localhost"], builtin_routes=False, clock="real", ready_timeout_s=600)
556
+ class Store(ForwardingSite):
557
+ upstream = "http://127.0.0.1:80" # the app, in the same container
558
+ ready_path = "/admin" # ready once the app answers this below 500
559
+ sign_in_headers = ("X-Auto-Login",) # only the site's own calls send these; logged with values removed
560
+
561
+ @session_state
562
+ async def signed_in(self, user: str | None) -> dict:
563
+ answer = await self.ask_app("/admin", headers={"X-Auto-Login": "..."})
564
+ ... # return the cookies the app answered with
565
+ ```
566
+
567
+ - **Forwarding:** a request goes to the app as it came: its method, the site's own path with its encoding intact (an
568
+ escaped `/` stays escaped, and a forwarded prefix is taken off), its query, the `Host` the browser named and its
569
+ body, streamed, with no header or cookie of the forwarder's own. The hop-by-hop headers and `sign_in_headers` stay
570
+ behind. The answer comes back as the app gave it, streamed and still encoded, a redirect unfollowed, but a cookie
571
+ the app ties to one of the site's names (`Domain`) comes back the host's alone, as agentenv sets a sign-in's
572
+ cookies, so a sign-in replaces the app's session cookie rather than setting a second one beside it. An app not
573
+ answering is a 502 (`upstream_unavailable`). It forwards HTTP alone, and refuses a WebSocket with close code 1011.
574
+ - **`builtin_routes=False`** serves none of agentenv's own site routes, so `/api/session` reaches the app too, and the
575
+ card names no `session_path` or `session_cookie`. Any `WebsiteEnvironment` may set it.
576
+ - **`clock="real"`** declares a site that keeps real time, as an app that reads the system clock does: its card serves
577
+ no `clock/v1`, its `website/v1` params say `clock: "real"` (`WEBSITE_CLOCK_PARAM`), its answers carry no
578
+ `X-Universe-Now`, and `sync_env_clock` passes it over. The conformance check skips its two clock checks.
579
+ `@website` refuses `clock_patch` with it, since there's no universe time to put in a page.
580
+ - **Its data plane:** the app keeps its own data, so the site serves `data/get` alone, which exports nothing. It takes
581
+ no load and can't reset: agentenv's reset passes over a card serving no `data/reset`, and the conformance check
582
+ passes a card serving `data/get` alone once `data/get` answers.
583
+ - **Its session:** `@session_state` signs the browser in with whatever cookies the app sets, for example from one
584
+ server-side request carrying a sign-in header, which `sign_in_headers` then keeps the browser from sending. The
585
+ card names them too (`WEBSITE_SIGN_IN_HEADERS_PARAM`), so should a browser's request carry one, the browser's
586
+ network log, and so `network.har`, keeps it with its value taken out.
587
+ - **Its own calls:** `ask_app(path, method=..., headers=..., content=...)` asks the app as the site does, under its
588
+ first name as `Host`, through the forwarder's client, which keeps no cookie and follows no redirect. Its session
589
+ and ready checks use it, as `ForwardingSite`'s own ready check does.
590
+ - **Its names:** an app with a fixed base URL answers any other `Host` with a redirect to its own name. A browser
591
+ reaches it by that name alone, the site proxy naming it, and the conformance check's `any_host` passes `/` redirecting
592
+ to one of the card's `domains` as it does `/` serving HTML.
593
+
547
594
  ## Computer drivers
548
595
 
549
596
  A computer driver is what runs inside a computer an agent uses through screenshots and input. Write
@@ -7,7 +7,6 @@ RUN npm run build
7
7
 
8
8
  FROM mirror.gcr.io/library/python:3.12-slim@sha256:423ed6ab25b1921a477529254bfeeabf5855151dc2c3141699a1bfc852199fbf
9
9
  WORKDIR /app
10
- RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
11
10
  RUN pip install --no-cache-dir "agentenv-framework-protocol>=0.1.466" "uvicorn>=0.30"
12
11
  COPY site.py /app/site.py
13
12
  COPY data /app/data
@@ -9,7 +9,7 @@ them. The page shows the universe's time.
9
9
  | `site.py` | The server: the `Notes` WebsiteEnvironment, its `@api` routes, and `serve()` on `PORT` (8000). |
10
10
  | `data/seed.json` | The seed data: two users (`ann`, `ben`), their notes, and `current_user`, the acting user. |
11
11
  | `web/` | A minimal Vite app (`index.html`, `src/main.js`, `src/style.css`). Its assets (`base: "./"`) and API calls are relative to the page, so it works at `/` and under the gateway's `/website/notes/` alike; opened at a path without its final slash, such as `/website/notes` or `/website/notes/index.html`, the page first reloads itself at its folder's address. |
12
- | `Dockerfile` | The server image, built with this folder as its context: Node builds `web/`, then Python installs the released protocol (`agentenv-framework-protocol`) with uvicorn. It installs `curl`, which the gateway's compose health check runs against the card. |
12
+ | `Dockerfile` | The server image, built with this folder as its context: Node builds `web/`, then Python installs the released protocol (`agentenv-framework-protocol`) with uvicorn. |
13
13
  | `env.toml` | The website env as a bundle entry. |
14
14
 
15
15
  ## What it exercises
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agentenv-framework-protocol"
3
- version = "0.1.542"
3
+ version = "0.1.547"
4
4
  description = "Open data-plane protocol and server SDK for agent environments."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -15,7 +15,8 @@ import httpx
15
15
  from pydantic import TypeAdapter, ValidationError
16
16
 
17
17
  from ..agent_env_environment import add_data, get_data
18
- from ..transfers import NamespaceUploader, ReadObject, RelativePath, TransferError, WriteNamespaceGrant, download
18
+ from ..transfers import (NamespaceUploader, ReadObject, RelativePath, TransferError, WriteNamespaceGrant, client_options,
19
+ download)
19
20
  from ..types import DATA_OBJECTS_EXTENSION_URI, FilePart, FileWithBytes, FileWithUri, uploaded_file_part, uploaded_object_path
20
21
 
21
22
  if TYPE_CHECKING:
@@ -115,7 +116,7 @@ async def _get_url(file: FileWithUri) -> bytes:
115
116
  if not file.uri.startswith("https://"):
116
117
  raise ValueError("a file part's uri is an https URL")
117
118
  data = bytearray()
118
- async with httpx.AsyncClient(follow_redirects=True, timeout=60) as client:
119
+ async with httpx.AsyncClient(follow_redirects=True, timeout=60, **client_options()) as client:
119
120
  async with client.stream("GET", file.uri) as response:
120
121
  response.raise_for_status()
121
122
  async for chunk in response.aiter_bytes():
@@ -1,11 +1,13 @@
1
1
  """Serve a computer driver from its file, as a composed computer's program starts it:
2
2
  ``python -m agentenv_protocol.computer.serve <file>:<Class>``, run in the driver's folder, serves the class on
3
- ``MCP_PORT``. The file's folder is importable, so it may import its own modules."""
3
+ ``MCP_PORT``. The file's folder is importable, so it may import its own modules. The driver runs on real time, so its
4
+ own transfers reach the object store directly, not through the computer's egress proxy (``transfers.direct``)."""
4
5
  from __future__ import annotations
5
6
 
6
7
  import sys
7
8
  from pathlib import Path
8
9
 
10
+ from .. import transfers
9
11
  from ._load import load_class
10
12
  from .driver import ComputerDriverEnvironment
11
13
 
@@ -16,6 +18,7 @@ def main(argv: list[str]) -> None:
16
18
  if len(argv) != 1 or ":" not in argv[0]:
17
19
  raise SystemExit(USAGE)
18
20
  file, _, name = argv[0].partition(":")
21
+ transfers.direct()
19
22
  driver_class(Path(file), name)().serve()
20
23
 
21
24
 
@@ -5,7 +5,9 @@
5
5
  (``CONTROL_TOKEN_ENV``): the driver checks it in front of the app. Before it serves, it keeps a copy of
6
6
  the app's data paths as installed, which a reset puts back; once it serves, it adds the app's launcher and launches a
7
7
  boot app (``AppRuntime.start``). A server that can't start, or whose start fails once it serves, writes why to
8
- ``.agentenv/server.failure``, which its computer's driver reports, and exits. Needs the ``app`` extra."""
8
+ ``.agentenv/server.failure``, which its computer's driver reports, and exits. It runs on real time, so its own
9
+ transfers reach the object store directly, not through the computer's egress proxy (``transfers.direct``). Needs the
10
+ ``app`` extra."""
9
11
  from __future__ import annotations
10
12
 
11
13
  import asyncio
@@ -17,6 +19,7 @@ from pathlib import Path
17
19
 
18
20
  import uvicorn
19
21
 
22
+ from .. import transfers
20
23
  from ..types import CONTROL_TOKEN_ENV
21
24
  from ._load import load_class
22
25
  from .app import FAILURE, ComputerAppEnvironment
@@ -27,6 +30,7 @@ USAGE = "usage: python -m agentenv_protocol.computer.serve_app <file>:<Class>"
27
30
 
28
31
  def main(argv: list[str]) -> None:
29
32
  FAILURE.unlink(missing_ok=True)
33
+ transfers.direct()
30
34
  try:
31
35
  _serve(argv)
32
36
  except (Exception, SystemExit) as e:
@@ -21,14 +21,12 @@ from starlette.websockets import WebSocket, WebSocketDisconnect
21
21
  from websockets.asyncio.client import ClientConnection
22
22
 
23
23
  from ..agent_env_environment import _error_response
24
+ from ..passthrough import passed_on
24
25
  from .errors import DeliveryFailed
25
26
  from .served import TOKEN_HEADER, served
26
27
 
27
28
  #: The methods the route forwards.
28
29
  METHODS = ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]
29
- #: The headers that belong to one connection, which a proxy doesn't pass on.
30
- HOP_HEADERS = frozenset({"connection", "keep-alive", "proxy-authenticate", "proxy-authorization", "proxy-connection",
31
- "te", "trailer", "transfer-encoding", "upgrade"})
32
30
  #: The address a request reached the driver at, which the driver sets for the app in place of any the caller sent.
33
31
  FORWARDED = ("x-forwarded-host", "x-forwarded-proto", "x-forwarded-prefix")
34
32
  #: A WebSocket close code that means the connection ended without one, which a close can't send on.
@@ -45,16 +43,6 @@ REDACTED = "<redacted>"
45
43
  FORWARDER_LOGGER = "httpx"
46
44
 
47
45
 
48
- def passed_on(headers: Iterable[tuple[str, str]], *dropped: str) -> list[tuple[str, str]]:
49
- """``headers`` as a proxy passes them on: without the hop-by-hop ones, those a ``Connection`` header names, and
50
- ``dropped``."""
51
- headers = list(headers)
52
- named = {token.strip().lower() for name, value in headers if name.lower() == "connection"
53
- for token in value.split(",")}
54
- skipped = HOP_HEADERS | named | set(dropped)
55
- return [(name, value) for name, value in headers if name.lower() not in skipped]
56
-
57
-
58
46
  def to_app(headers: Iterable[tuple[str, str]], host: str, scheme: str, prefix: str) -> list[tuple[str, str]]:
59
47
  """A caller's headers as the app gets them: passed on without the control token's ``Authorization`` or any address
60
48
  the caller forwarded, nor any app token, which the driver sets itself where the app takes one, and with the
@@ -0,0 +1,19 @@
1
+ """What a proxy passes on of the headers it relays, shared by the driver's ``/svc/<name>/`` route and a website that
2
+ forwards to an app beside it."""
3
+ from __future__ import annotations
4
+
5
+ from collections.abc import Iterable
6
+
7
+ #: The headers that belong to one connection, which a proxy doesn't pass on.
8
+ HOP_HEADERS = frozenset({"connection", "keep-alive", "proxy-authenticate", "proxy-authorization", "proxy-connection",
9
+ "te", "trailer", "transfer-encoding", "upgrade"})
10
+
11
+
12
+ def passed_on(headers: Iterable[tuple[str, str]], *dropped: str) -> list[tuple[str, str]]:
13
+ """``headers`` as a proxy passes them on: without the hop-by-hop ones, those a ``Connection`` header names, and
14
+ ``dropped``, each matched without regard to case."""
15
+ headers = list(headers)
16
+ named = {token.strip().lower() for name, value in headers if name.lower() == "connection"
17
+ for token in value.split(",")}
18
+ skipped = HOP_HEADERS | named | {name.lower() for name in dropped}
19
+ return [(name, value) for name, value in headers if name.lower() not in skipped]
@@ -46,6 +46,28 @@ _TRANSFER_TIMEOUT = httpx.Timeout(
46
46
  write=TRANSFER_IDLE_TIMEOUT_SECONDS,
47
47
  pool=_CONNECT_TIMEOUT_SECONDS,
48
48
  )
49
+ #: Whether this process's transfers take a proxy from the environment's settings. A computer's own servers turn it
50
+ #: off (``direct``): they run on real time and reach the object store directly, while the programs they start keep
51
+ #: the settings that send them through the computer's egress proxy.
52
+ _proxy_from_environment = True
53
+
54
+
55
+ def direct() -> None:
56
+ """Have this process's transfers reach their objects directly, whatever proxy the environment names; the
57
+ environment, and so every process this one starts, keeps it."""
58
+ global _proxy_from_environment
59
+ _proxy_from_environment = False
60
+
61
+
62
+ def client_options() -> dict:
63
+ """The options a transfer's HTTP client takes: none, or for a ``direct`` process, no proxy from the environment
64
+ but still its certificates (``SSL_CERT_FILE``, ``SSL_CERT_DIR``), since httpx takes both from it or neither and a
65
+ local store's CA is trusted through them."""
66
+ if _proxy_from_environment:
67
+ return {}
68
+ return {"trust_env": False, "verify": httpx.create_ssl_context(trust_env=True)}
69
+
70
+
49
71
  # The longest the helpers take to give up on a transfer whose every connection stalls.
50
72
  TRANSFER_STALL_BUDGET_SECONDS = TRANSFER_ATTEMPTS * (
51
73
  _CONNECT_TIMEOUT_SECONDS + TRANSFER_IDLE_TIMEOUT_SECONDS
@@ -483,7 +505,7 @@ async def upload(target: WriteObject, source: Path | bytes) -> Uploaded:
483
505
  async def put() -> Uploaded:
484
506
  with _transfer_request(target.write.expires_at):
485
507
  async with httpx.AsyncClient(
486
- follow_redirects=False, timeout=_TRANSFER_TIMEOUT
508
+ follow_redirects=False, timeout=_TRANSFER_TIMEOUT, **client_options()
487
509
  ) as client:
488
510
 
489
511
  async def to(url: str) -> Uploaded:
@@ -519,7 +541,7 @@ async def download(source: ReadObject, destination: Path) -> None:
519
541
  digest = hashlib.sha256()
520
542
  with _transfer_request(source.read.expires_at):
521
543
  async with httpx.AsyncClient(
522
- follow_redirects=False, timeout=_TRANSFER_TIMEOUT
544
+ follow_redirects=False, timeout=_TRANSFER_TIMEOUT, **client_options()
523
545
  ) as client:
524
546
  response = await _send_to_first_listening(
525
547
  urls,
@@ -571,7 +593,7 @@ def _post_to_namespace(
571
593
  fields.setdefault("Content-Type", "application/octet-stream")
572
594
  with (
573
595
  _transfer_request(target.expires_at),
574
- httpx.Client(follow_redirects=False, timeout=_TRANSFER_TIMEOUT) as client,
596
+ httpx.Client(follow_redirects=False, timeout=_TRANSFER_TIMEOUT, **client_options()) as client,
575
597
  ):
576
598
 
577
599
  def to(url: str) -> Uploaded:
@@ -1,8 +1,8 @@
1
1
  """The website SDK: a site's server, meeting ``urn:agentenv:website/v1``. Subclass WebsiteEnvironment, declare the
2
2
  site with ``@website(domains=[...], static="dist/")``, mark its API with ``@api.get/post/put/patch/delete(path)``, and
3
- ``serve()`` it; it needs only the plain package, and uvicorn to serve. The class is optional: a server in any language
4
- that meets the contract works, which ``python -m agentenv_protocol.website.conformance <url>`` checks. Whether a site
5
- is ready is its ``WebsiteReadiness`` answer to ``ready``, which ``website_readiness`` reads of one site and
3
+ ``serve()`` it, or wrap an app that serves its own pages with ``ForwardingSite``; it needs only the plain package, and
4
+ uvicorn to serve. The class is optional: a server in any language that meets the contract works, which ``python -m
5
+ agentenv_protocol.website.conformance <url>`` checks. Whether a site is ready is its ``WebsiteReadiness`` answer to ``ready``, which ``website_readiness`` reads of one site and
6
6
  ``env_readiness`` of every site of an env. What a task left a site with is its data plane's ``data/get``."""
7
7
 
8
8
  from __future__ import annotations
@@ -19,15 +19,20 @@ from .environment import (
19
19
  website,
20
20
  )
21
21
  from .errors import ApiError, BadRequest, Conflict, Forbidden, NotFound, Unauthorized
22
+ from .forwarding import ForwardingSite
22
23
  from .readiness import (
23
24
  DEFAULT_HEALTH_PATH,
24
25
  READY_TIMEOUT_S,
26
+ REAL_CLOCK,
25
27
  SITE_READY_TIMEOUT_S,
28
+ UNIVERSE_CLOCK,
26
29
  WEBSITE_ALLOW_HOSTS_PARAM,
27
30
  WEBSITE_BROWSE_URL_PARAM,
31
+ WEBSITE_CLOCK_PARAM,
28
32
  WEBSITE_EXTENSION_URI,
29
33
  WEBSITE_LIVE_PARAM,
30
34
  WEBSITE_READY_OP,
35
+ WEBSITE_SIGN_IN_HEADERS_PARAM,
31
36
  WebsiteReadiness,
32
37
  env_readiness,
33
38
  website_readiness,
@@ -38,9 +43,10 @@ from .session import SESSION_COOKIE, SESSION_SECRET_ENV, SessionSigner
38
43
  __all__ = [
39
44
  "WebsiteEnvironment", "WebsiteDeclaration", "website", "api", "ApiContext", "ApiRoute", "ready_check", "session_state", "host_problem",
40
45
  "ApiError", "BadRequest", "Unauthorized", "Forbidden", "NotFound", "Conflict",
41
- "UniverseClock", "ClockUnavailable", "SessionSigner", "reserved_path",
46
+ "UniverseClock", "ClockUnavailable", "SessionSigner", "reserved_path", "ForwardingSite",
42
47
  "WEBSITE_EXTENSION_URI", "CLOCK_EXTENSION_URI", "UNIVERSE_NOW_HEADER", "DEFAULT_HEALTH_PATH", "SESSION_PATH",
43
48
  "SESSION_COOKIE", "SESSION_SECRET_ENV", "ROLE_KEY_ENV", "ROLE_KEY_HEADER",
44
- "WEBSITE_READY_OP", "WEBSITE_BROWSE_URL_PARAM", "WEBSITE_LIVE_PARAM", "WEBSITE_ALLOW_HOSTS_PARAM", "WEBSITE_SETTINGS_ENV", "READY_TIMEOUT_S", "SITE_READY_TIMEOUT_S", "WebsiteReadiness",
49
+ "WEBSITE_READY_OP", "WEBSITE_BROWSE_URL_PARAM", "WEBSITE_LIVE_PARAM", "WEBSITE_ALLOW_HOSTS_PARAM", "WEBSITE_CLOCK_PARAM",
50
+ "WEBSITE_SIGN_IN_HEADERS_PARAM", "UNIVERSE_CLOCK", "REAL_CLOCK", "WEBSITE_SETTINGS_ENV", "READY_TIMEOUT_S", "SITE_READY_TIMEOUT_S", "WebsiteReadiness",
45
51
  "website_readiness", "env_readiness",
46
52
  ]
@@ -3,16 +3,19 @@ agentenv_protocol.website.conformance <url>`` prints each check and exits 1 when
3
3
  ``--strict``, when a recommended one warned), 2 when the server couldn't be reached. Everything goes over HTTP.
4
4
 
5
5
  The required checks are the contract, what agentenv, the gateway and a browser rely on of a website env's server: a
6
- card declaring the site's domains, readiness and routes; ``/`` serving HTML under a made-up host; the site ready, by
7
- the card's ``website/v1`` ``ready``, whose answer must be a ``WebsiteReadiness`` (by the declared health path,
8
- deprecated, for a card without it); the data plane's and card's paths not the site's pages; and the data plane the
9
- card advertises, whose round trip at the card's ``url`` (data/get, data/reset, data/get, which no longer returns the
10
- exported data, data/add of what the first data/get returned, data/get again) returns what it was given; and, for a
11
- card declaring an ``mcp`` interface, a site that is an MCP server too, that endpoint answering ``initialize`` and
12
- listing, every page of ``tools/list`` read, no tool its card doesn't (streamable HTTP, ``MCP_PROTOCOL_VERSION``); a
13
- card's tool it doesn't list is warned, since a hidden-by-default tool is listed to no caller until one enables it.
14
- A failed one is ``failed``. The recommended checks are what an SDK site does and the gateway uses when a server offers it:
15
- ``X-Universe-Now`` on every answer the other checks got, ``clock/v1``'s ``sync_time`` against a clock the checker serves, the forwarded headers
6
+ card declaring the site's domains, readiness and routes; ``/`` serving HTML under a made-up host, or redirecting to
7
+ one of the site's own names; the site ready, by the card's ``website/v1`` ``ready``, whose answer must be a
8
+ ``WebsiteReadiness`` (by the declared health path, deprecated, for a card without it); the data plane's and card's
9
+ paths not the site's pages; and the data plane the card advertises, whose round trip at the card's ``url`` (data/get,
10
+ data/reset, data/get, which no longer returns the exported data, data/add of what the first data/get returned,
11
+ data/get again) returns what it was given, or, for a card serving ``data/get`` alone, a site whose app keeps its own
12
+ data and so takes no load and can't reset, which answers it; and, for a card declaring an ``mcp`` interface, a site
13
+ that is an MCP server too, that endpoint answering ``initialize`` and listing, every page of ``tools/list`` read, no
14
+ tool its card doesn't (streamable HTTP, ``MCP_PROTOCOL_VERSION``); a card's tool it doesn't list is warned, since a
15
+ hidden-by-default tool is listed to no caller until one enables it. A failed one is ``failed``. The recommended checks
16
+ are what an SDK site does and the gateway uses when a server offers it: ``X-Universe-Now`` on every answer the other
17
+ checks got, ``clock/v1``'s ``sync_time`` against a clock the checker serves (both skipped for a site whose
18
+ ``website/v1`` params declare ``clock: "real"``, a third-party app that keeps real time), the forwarded headers
16
19
  wherever an answer shows them (on ``/`` and on a GET route with its trailing slash toggled, which a server may
17
20
  redirect), and the cookies those answers set: none tied to a domain, the session path's the one the card names, and
18
21
  none whose lifetime is an absolute ``Expires`` with no ``Max-Age``. A failed one is ``warned``.
@@ -36,6 +39,7 @@ import time
36
39
  import uuid
37
40
  from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
38
41
  from typing import Callable, Iterator, Literal
42
+ from urllib.parse import urlsplit
39
43
 
40
44
  import httpx
41
45
  from pydantic import ValidationError
@@ -43,9 +47,12 @@ from pydantic import ValidationError
43
47
  from ..client import find_extension, find_extension_method
44
48
  from ..types import MCP_TRANSPORT, METHOD_ADD, METHOD_GET, METHOD_RESET, RPC_PATH, WELL_KNOWN_PATH
45
49
  from .clock import CLOCK_EXTENSION_URI, UNIVERSE_NOW_HEADER, iso, parse_time
46
- from .readiness import DEFAULT_HEALTH_PATH, WEBSITE_EXTENSION_URI, WEBSITE_READY_OP, WebsiteReadiness
50
+ from .readiness import (DEFAULT_HEALTH_PATH, REAL_CLOCK, WEBSITE_CLOCK_PARAM, WEBSITE_EXTENSION_URI, WEBSITE_READY_OP,
51
+ WebsiteReadiness, names_host)
47
52
 
48
53
  Status = Literal["passed", "failed", "skipped", "warned"]
54
+ #: The checks of a site's clock, which a card declaring a real clock skips.
55
+ CLOCK_CHECKS = ("universe_now", "clock")
49
56
  CLOCK_START = datetime.datetime(2031, 5, 6, 7, 8, 9, tzinfo=datetime.timezone.utc)
50
57
  CLOCK_SLACK_S = 120
51
58
  MCP_PROTOCOL_VERSION = "2025-06-18"
@@ -114,14 +121,21 @@ class _Checker:
114
121
  site = (find_extension(card, WEBSITE_EXTENSION_URI) or {}).get("params") or {}
115
122
  health = site.get("health") if isinstance(site.get("health"), str) else DEFAULT_HEALTH_PATH
116
123
  # (name, required, check): a recommended check's failure is warned.
117
- steps = (("card", True, lambda: self._card(response, card, site)), ("any_host", True, self._any_host),
124
+ steps = (("card", True, lambda: self._card(response, card, site)), ("any_host", True, lambda: self._any_host(site)),
118
125
  ("health", True, lambda: self._health(card, health)), ("universe_now", False, self._universe_now),
119
126
  ("reserved_paths", True, self._reserved_paths), ("data_plane", True, lambda: self._data_plane(card)),
120
127
  ("mcp", True, lambda: self._mcp(card)),
121
128
  ("clock", False, lambda: self._clock(card)), ("forwarded", False, lambda: self._forwarded(site)),
122
129
  ("cookies", False, lambda: self._cookies(site)))
123
- outcomes = {name: _outcome(step) for name, _required, step in steps if name != "universe_now"}
124
- outcomes["universe_now"] = _outcome(self._universe_now)
130
+ real_clock = site.get(WEBSITE_CLOCK_PARAM) == REAL_CLOCK
131
+
132
+ def outcome(name: str, step: Callable[[], tuple[Status, str]]) -> tuple[Status, str]:
133
+ if real_clock and name in CLOCK_CHECKS:
134
+ return "skipped", "the card declares a real clock, which nothing moves"
135
+ return _outcome(step)
136
+
137
+ outcomes = {name: outcome(name, step) for name, _required, step in steps if name != "universe_now"}
138
+ outcomes["universe_now"] = outcome("universe_now", self._universe_now)
125
139
  results = []
126
140
  for name, required, _step in steps:
127
141
  status, detail = outcomes[name]
@@ -145,13 +159,20 @@ class _Checker:
145
159
  problems.append("its params' routes aren't a list of {method, path, name}")
146
160
  return ("failed" if problems else "passed"), "; ".join(problems)
147
161
 
148
- def _any_host(self) -> tuple[Status, str]:
162
+ def _any_host(self, site: dict) -> tuple[Status, str]:
163
+ """``/`` under a made-up Host serves HTML, or redirects to one of the site's own names: an app with a fixed
164
+ base URL, which a browser reaches only by its name."""
149
165
  host = f"conformance-{uuid.uuid4().hex[:8]}.invalid"
150
- response = self.get("/", headers={"Host": host})
166
+ response = self.get("/", headers={"Host": host}, follow_redirects=False)
151
167
  kind = response.headers.get("content-type", "")
152
168
  if response.status_code == 200 and kind.startswith("text/html"):
153
169
  return "passed", f"/ served HTML for Host {host}"
154
- return "failed", f"/ for Host {host} answered {response.status_code} {kind or 'without a content type'}"
170
+ to = (urlsplit(response.headers.get("location", "")).hostname or "") if response.is_redirect else ""
171
+ domains = site.get("domains") if isinstance(site.get("domains"), list) else []
172
+ if to and any(isinstance(domain, str) and names_host(domain.lower(), to) for domain in domains):
173
+ return "passed", f"/ for Host {host} redirected to the site's own name {to}"
174
+ return "failed", (f"/ for Host {host} answered {response.status_code} {kind or 'without a content type'}"
175
+ + (f", redirecting to {to}, not one of the site's names" if to else ""))
155
176
 
156
177
  def _health(self, card: dict, health: str) -> tuple[Status, str]:
157
178
  ready = find_extension_method(card, WEBSITE_EXTENSION_URI, WEBSITE_READY_OP)
@@ -208,11 +229,15 @@ class _Checker:
208
229
  operations = (card.get("capabilities") or {}).get("operations")
209
230
  operations = operations if isinstance(operations, list) else []
210
231
  missing = [m for m in (METHOD_GET, METHOD_RESET, METHOD_ADD) if m not in operations]
211
- if missing:
232
+ get_alone = set(missing) == {METHOD_RESET, METHOD_ADD}
233
+ if missing and not get_alone:
212
234
  return "failed", f"the card's operations lack {', '.join(missing)}"
213
235
  url = card.get("url")
214
236
  self.rpc_url = self._url(url if isinstance(url, str) and url else RPC_PATH)
215
237
  exported = self._rpc(METHOD_GET).get("parts") or []
238
+ if get_alone:
239
+ return "passed", (f"the card serves {METHOD_GET} alone, which answered with {len(exported)} part(s): a site "
240
+ "whose app keeps its own data, which takes no load and can't reset")
216
241
  self._rpc(METHOD_RESET)
217
242
  added_back = False
218
243
  try: