agentenv-framework-protocol 0.1.524__tar.gz → 0.1.527__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 (181) hide show
  1. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/PKG-INFO +1 -1
  2. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/pyproject.toml +1 -1
  3. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/__init__.py +2 -0
  4. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/agent_env_environment.py +21 -3
  5. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_agent_env_environment.py +10 -0
  6. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_access.py +29 -0
  7. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_annotations.py +14 -0
  8. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/.gitignore +0 -0
  9. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/LICENSE +0 -0
  10. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/NOTICE +0 -0
  11. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/README.md +0 -0
  12. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/THIRD_PARTY_NOTICES.md +0 -0
  13. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/__init__.py +0 -0
  14. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/advanced_agent.py +0 -0
  15. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/basic_agent.py +0 -0
  16. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/custom_extensions_agent.py +0 -0
  17. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/multimodal_agent.py +0 -0
  18. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/reference_model.py +0 -0
  19. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/streaming_agent.py +0 -0
  20. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/.gitignore +0 -0
  21. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/Dockerfile +0 -0
  22. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/Dockerfile.dockerignore +0 -0
  23. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/README.md +0 -0
  24. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/data/seed.json +0 -0
  25. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/env.toml +0 -0
  26. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/site.py +0 -0
  27. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/index.html +0 -0
  28. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/package-lock.json +0 -0
  29. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/package.json +0 -0
  30. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/src/main.js +0 -0
  31. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/src/style.css +0 -0
  32. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/examples/website/notes/web/vite.config.js +0 -0
  33. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
  34. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
  35. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
  36. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
  37. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
  38. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
  39. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
  40. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
  41. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
  42. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
  43. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
  44. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/client.py +0 -0
  45. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/__init__.py +0 -0
  46. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_declare.py +0 -0
  47. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_desktop.py +0 -0
  48. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_job.py +0 -0
  49. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_linux.py +0 -0
  50. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_load.py +0 -0
  51. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_macos.py +0 -0
  52. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_reaping.py +0 -0
  53. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_session_posix.py +0 -0
  54. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_session_windows.py +0 -0
  55. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_windows.py +0 -0
  56. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_with_fds.py +0 -0
  57. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/_x11.py +0 -0
  58. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/app.py +0 -0
  59. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/app_data.py +0 -0
  60. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/app_runtime.py +0 -0
  61. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/apps.py +0 -0
  62. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/card.py +0 -0
  63. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/checks.py +0 -0
  64. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
  65. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
  66. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
  67. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/client.py +0 -0
  68. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
  69. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
  70. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
  71. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
  72. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/report.py +0 -0
  73. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
  74. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/dataplane.py +0 -0
  75. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/driver.py +0 -0
  76. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/errors.py +0 -0
  77. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/extensions.py +0 -0
  78. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/frames.py +0 -0
  79. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/keys.py +0 -0
  80. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/launch.py +0 -0
  81. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/manifest.py +0 -0
  82. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/operations.py +0 -0
  83. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/platform.py +0 -0
  84. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/prefix.py +0 -0
  85. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/queue.py +0 -0
  86. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/recording.py +0 -0
  87. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/results.py +0 -0
  88. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/run_install_step.py +0 -0
  89. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/runtime.py +0 -0
  90. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/seed.py +0 -0
  91. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/serve.py +0 -0
  92. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/serve_app.py +0 -0
  93. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/served.py +0 -0
  94. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/session.py +0 -0
  95. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/settings.py +0 -0
  96. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/skill.py +0 -0
  97. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/spaces.py +0 -0
  98. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/svc.py +0 -0
  99. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/computer/tools.py +0 -0
  100. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/errors.py +0 -0
  101. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/manifest.py +0 -0
  102. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/preflight.py +0 -0
  103. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/tool_access.py +0 -0
  104. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/tool_client.py +0 -0
  105. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/tool_context.py +0 -0
  106. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/transfers.py +0 -0
  107. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/types.py +0 -0
  108. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/__init__.py +0 -0
  109. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/clock.py +0 -0
  110. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/conformance.py +0 -0
  111. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/environment.py +0 -0
  112. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/errors.py +0 -0
  113. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/readiness.py +0 -0
  114. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/routes.py +0 -0
  115. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website/session.py +0 -0
  116. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/__init__.py +0 -0
  117. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/cdp.py +0 -0
  118. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/control.py +0 -0
  119. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/data.py +0 -0
  120. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/devtools.py +0 -0
  121. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/environment.py +0 -0
  122. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/log.py +0 -0
  123. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/src/agentenv_protocol/website_browser/shapes.py +0 -0
  124. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/computer_fake.py +0 -0
  125. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/probe_fake.py +0 -0
  126. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_agent.py +0 -0
  127. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_agent_examples.py +0 -0
  128. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_cdp_config.py +0 -0
  129. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_object_transfers.py +0 -0
  130. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_peer_agents.py +0 -0
  131. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_proxy.py +0 -0
  132. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_staging.py +0 -0
  133. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_a2a_trajectory_log.py +0 -0
  134. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_browser_cdp.py +0 -0
  135. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_browser_data.py +0 -0
  136. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_browser_log.py +0 -0
  137. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_browser_state.py +0 -0
  138. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_client.py +0 -0
  139. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_app_data.py +0 -0
  140. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_app_server.py +0 -0
  141. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_conformance.py +0 -0
  142. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_conformance_checks.py +0 -0
  143. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_conformance_page.py +0 -0
  144. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_conformance_recording.py +0 -0
  145. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_dataplane.py +0 -0
  146. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_declare.py +0 -0
  147. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_driver.py +0 -0
  148. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_driver_keys.py +0 -0
  149. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_extensions.py +0 -0
  150. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_frames.py +0 -0
  151. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_macos.py +0 -0
  152. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_page.py +0 -0
  153. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_queue.py +0 -0
  154. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_recording.py +0 -0
  155. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_seed.py +0 -0
  156. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_serve.py +0 -0
  157. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_served.py +0 -0
  158. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_session_windows.py +0 -0
  159. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_spaces.py +0 -0
  160. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_svc_forward.py +0 -0
  161. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_tool_prefix.py +0 -0
  162. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_computer_windows_driver.py +0 -0
  163. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_control_token.py +0 -0
  164. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_data_objects.py +0 -0
  165. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_errors.py +0 -0
  166. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_extension_methods.py +0 -0
  167. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_intake.py +0 -0
  168. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_manifest.py +0 -0
  169. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_preflight.py +0 -0
  170. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_client.py +0 -0
  171. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_context.py +0 -0
  172. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_context_fastmcp.py +0 -0
  173. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_tool_context_injection.py +0 -0
  174. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_api.py +0 -0
  175. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_browser.py +0 -0
  176. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_conformance.py +0 -0
  177. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_environment.py +0 -0
  178. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_live.py +0 -0
  179. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_mcp.py +0 -0
  180. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/tests/test_website_notes_example.py +0 -0
  181. {agentenv_framework_protocol-0.1.524 → agentenv_framework_protocol-0.1.527}/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.524
3
+ Version: 0.1.527
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agentenv-framework-protocol"
3
- version = "0.1.524"
3
+ version = "0.1.527"
4
4
  description = "Open data-plane protocol and server SDK for agent environments."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -21,6 +21,7 @@ from .agent_env_environment import (
21
21
  extension,
22
22
  get_data,
23
23
  injecting,
24
+ mcp_port,
24
25
  reset_data,
25
26
  tool,
26
27
  )
@@ -94,6 +95,7 @@ __all__ = [
94
95
  "AgentEnvStarletteApplication",
95
96
  "ForwardedTool",
96
97
  "create_fastmcp_app",
98
+ "mcp_port",
97
99
  "environment_card",
98
100
  "reset_data",
99
101
  "add_data",
@@ -245,12 +245,22 @@ def tool(name: str | None = None, *, description: str | None = None, hidden_by_d
245
245
  class ForwardedTool(NamedTuple):
246
246
  """A tool an environment serves on another server's behalf, as that server lists it: its descriptor, its own
247
247
  schema included, its MCP ``annotations`` and its ``output_schema``; ``call`` takes the call's arguments as keywords
248
- and returns the other server's ``CallToolResult``, which reaches the caller as it is."""
248
+ and returns the other server's ``CallToolResult``, which reaches the caller as it is. ``hidden_by_default`` hides it
249
+ as ``@tool(hidden_by_default=True)`` hides a tool of the environment's own."""
249
250
 
250
251
  tool: EnvironmentTool
251
252
  call: Callable[..., Any]
252
253
  annotations: dict | None = None
253
254
  output_schema: dict | None = None
255
+ hidden_by_default: bool = False
256
+
257
+ @classmethod
258
+ def listed(cls, tool: dict, call: Callable[..., Any], *, hidden_by_default: bool = False) -> "ForwardedTool":
259
+ """The tool another server's ``tools/list`` lists as ``tool``, called through ``call``: its name, description,
260
+ input and output schemas and annotations as listed."""
261
+ return cls(EnvironmentTool(name=tool["name"], description=tool.get("description"),
262
+ inputSchema=tool["inputSchema"]),
263
+ call, tool.get("annotations"), tool.get("outputSchema"), hidden_by_default)
254
264
 
255
265
 
256
266
  class _ResourceMarker(NamedTuple):
@@ -450,7 +460,8 @@ class AgentEnvFastMCPApplication(AgentEnvApplication):
450
460
  fn_metadata=FuncMetadata(arg_model=_passed_through(), output_schema=schema,
451
461
  output_model=_as_it_came() if schema is not None else None),
452
462
  is_async=True,
453
- annotations=_mcp_tool_annotations(forwarded.annotations) if forwarded.annotations is not None else None)
463
+ annotations=_mcp_tool_annotations(forwarded.annotations) if forwarded.annotations is not None else None,
464
+ meta={HIDDEN_BY_DEFAULT_META_KEY: True} if forwarded.hidden_by_default else None)
454
465
 
455
466
  def _register_resource(self, app: Any, resource: _ServedResource) -> None:
456
467
  """A resource as it is, its description absent when it has none, or a template through FastMCP's own
@@ -592,6 +603,11 @@ class AgentEnvStarletteApplication(AgentEnvApplication):
592
603
  app.router.routes.append(Route(path, handler, methods=methods))
593
604
 
594
605
 
606
+ def mcp_port() -> int:
607
+ """The port ``create_fastmcp_app`` serves on: ``MCP_PORT``'s, else 18765."""
608
+ return int(os.environ.get("MCP_PORT", "18765"))
609
+
610
+
595
611
  def create_fastmcp_app(handler: Any, *, card: EnvironmentCard, **fastmcp_kwargs: Any) -> Any:
596
612
  """FastMCP app wired for the agent-env deploy contract, with ``handler`` mounted under ``card``; returned un-served."""
597
613
  try:
@@ -600,7 +616,7 @@ def create_fastmcp_app(handler: Any, *, card: EnvironmentCard, **fastmcp_kwargs:
600
616
  raise ImportError("create_fastmcp_app requires the 'mcp' package: pip install 'mcp>=1.25,<2'") from e
601
617
  app = FastMCP(card.name, **{"instructions": _instructions(handler), **fastmcp_kwargs})
602
618
  app.settings.host = os.environ.get("MCP_HOST", "0.0.0.0")
603
- app.settings.port = int(os.environ.get("MCP_PORT", "18765"))
619
+ app.settings.port = mcp_port()
604
620
  app.settings.transport_security.enable_dns_rebinding_protection = False
605
621
  AgentEnvFastMCPApplication(card, handler).add_routes_to_app(app)
606
622
  return app
@@ -1283,6 +1299,8 @@ def _forwarding(forwarded: ForwardedTool) -> Callable:
1283
1299
  return await forwarded.call(**arguments)
1284
1300
 
1285
1301
  setattr(call, _FORWARDED_ATTR, forwarded)
1302
+ if forwarded.hidden_by_default:
1303
+ setattr(call, _HIDDEN_BY_DEFAULT_ATTR, True)
1286
1304
  return call
1287
1305
 
1288
1306
 
@@ -34,6 +34,7 @@ from agentenv_protocol import (
34
34
  agent_skill,
35
35
  create_fastmcp_app,
36
36
  environment_card,
37
+ mcp_port,
37
38
  extension,
38
39
  get_data,
39
40
  reset_data,
@@ -1192,6 +1193,15 @@ def test_environment_card_config_inherited_by_subclass(monkeypatch):
1192
1193
  assert "items_add_item" in app.tools
1193
1194
 
1194
1195
 
1196
+ def test_an_app_serves_on_the_port_mcp_port_names_else_18765(monkeypatch):
1197
+ monkeypatch.delenv("MCP_PORT", raising=False)
1198
+ default = (mcp_port(), create_fastmcp_app(_ToolHandler(), card=EnvironmentCard(name="items")).settings.port)
1199
+ monkeypatch.setenv("MCP_PORT", "40123")
1200
+ named = (mcp_port(), create_fastmcp_app(_ToolHandler(), card=EnvironmentCard(name="items")).settings.port)
1201
+
1202
+ assert default == (18765, 18765) and named == (40123, 40123)
1203
+
1204
+
1195
1205
  def test_create_fastmcp_app_without_mcp_raises_install_hint(monkeypatch):
1196
1206
  monkeypatch.setitem(sys.modules, "mcp.server.fastmcp", None)
1197
1207
  with pytest.raises(ImportError, match="requires the 'mcp' package"):
@@ -17,6 +17,7 @@ from mcp.server.fastmcp import FastMCP # noqa: E402
17
17
  from mcp.types import CallToolResult, TextContent # noqa: E402
18
18
 
19
19
  from agentenv_protocol import ( # noqa: E402
20
+ HIDDEN_BY_DEFAULT_META_KEY,
20
21
  ROLE_HEADER,
21
22
  ROLE_META_KEY,
22
23
  AgentEnvEnvironment,
@@ -140,6 +141,34 @@ async def test_a_forwarded_tool_is_listed_and_refused_by_role_like_any_tool():
140
141
  assert agent_tools == ["read", "write"] and refused.isError
141
142
 
142
143
 
144
+ @pytest.mark.asyncio
145
+ async def test_a_forwarded_tool_hidden_by_default_stays_hidden_through_every_tool_rule_until_a_rule_names_it():
146
+ class Forwarding(_Env):
147
+ def forwarded_tools(self):
148
+ async def evaluate(**arguments):
149
+ return CallToolResult(content=[TextContent(type="text", text="evaluated")])
150
+ return [ForwardedTool(EnvironmentTool(name="evaluate", inputSchema={"type": "object"}), evaluate,
151
+ hidden_by_default=True)]
152
+
153
+ with anyio.fail_after(30):
154
+ async with _served(Forwarding()) as (rest, session):
155
+ async with session("agent") as agent:
156
+ listed, refused = await _names(agent), await agent.call_tool("evaluate", {})
157
+ await rest.post("/tools/enable", json={"role": "agent", "tools": "*"})
158
+ async with session("agent") as agent:
159
+ after_every_tool = await _names(agent)
160
+ await rest.post("/tools/enable", json={"role": "agent", "tools": ["evaluate"]})
161
+ async with session("agent") as agent:
162
+ shown = {t.name: t for t in (await agent.list_tools()).tools}
163
+ called = await agent.call_tool("evaluate", {})
164
+ async with session() as anyone:
165
+ anyone_tools = await _names(anyone)
166
+ assert listed == after_every_tool == anyone_tools == ["read", "write"]
167
+ assert refused.isError and refused.structuredContent["code"] == "permission_denied"
168
+ assert sorted(shown) == ["evaluate", "read", "write"] and not called.isError
169
+ assert shown["evaluate"].meta == {HIDDEN_BY_DEFAULT_META_KEY: True} and called.content[0].text == "evaluated"
170
+
171
+
143
172
  @pytest.mark.asyncio
144
173
  async def test_everything_off_then_one_tool_on_for_one_role():
145
174
  with anyio.fail_after(30):
@@ -268,6 +268,20 @@ async def test_a_forwarded_tool_is_listed_with_its_own_schema_and_called_with_it
268
268
  assert {t.name: t.inputSchema for t in env.mounted_card().capabilities.tools}["click"] == _CLICK
269
269
 
270
270
 
271
+ def test_a_tool_another_server_lists_is_forwarded_as_it_lists_it():
272
+ async def call(**arguments) -> CallToolResult:
273
+ return CallToolResult(content=[])
274
+
275
+ click = ForwardedTool.listed({"name": "click", "title": "Click", "description": "Click an element.",
276
+ "inputSchema": _CLICK, "outputSchema": _FOUND, "annotations": {"readOnlyHint": False}},
277
+ call)
278
+ find = ForwardedTool.listed({"name": "find", "inputSchema": {"type": "object"}}, call, hidden_by_default=True)
279
+
280
+ assert click == ForwardedTool(EnvironmentTool(name="click", description="Click an element.", inputSchema=_CLICK),
281
+ call, {"readOnlyHint": False}, _FOUND)
282
+ assert find == ForwardedTool(EnvironmentTool(name="find", inputSchema={"type": "object"}), call, None, None, True)
283
+
284
+
271
285
  _OTHER_FILES = [
272
286
  {"uri": "skill://other/SKILL.md", "name": "other", "description": "The skill.", "mimeType": "text/markdown"},
273
287
  {"uri": "skill://other/LINUX.md", "name": "LINUX.md", "mimeType": "text/markdown"},