agentenv-framework-protocol 0.1.663__tar.gz → 0.1.665__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/PKG-INFO +1 -1
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/__init__.py +2 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/agent_env_environment.py +13 -6
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/client.py +6 -4
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/card.py +6 -2
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/serve_app.py +3 -2
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/types.py +3 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_driver.py +1 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_control_token.py +35 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/README.md +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/PROFILE.md +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/builder.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/coding.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/computer_use.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/late_result.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/multi_agent.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/odd_parts.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/subagent.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/fixtures/two_turns.json +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/profile.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/atif/validator.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/annotate.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/checks.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/driver.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/operations.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/runtime.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/settings.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/skill.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/computer/tools.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/computer_fake.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_builder.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_validator.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_recording.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_recording_annotate.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_screenshot_delay.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_rpc_keepalive.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_tool_defers.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_usage_models.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/tests/test_website_readiness.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentenv-framework-protocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.665
|
|
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
|
|
@@ -59,6 +59,7 @@ from .manifest import (
|
|
|
59
59
|
from .types import (
|
|
60
60
|
CONTROL_TOKEN_ENV,
|
|
61
61
|
CONTROL_TOKEN_HEADER,
|
|
62
|
+
CONTROL_TOKEN_SHA256_ENV,
|
|
62
63
|
DATA_OBJECTS_EXTENSION_URI,
|
|
63
64
|
INTAKE_EXTENSION_URI,
|
|
64
65
|
MCP_PATH,
|
|
@@ -173,6 +174,7 @@ __all__ = [
|
|
|
173
174
|
"RPC_PATH",
|
|
174
175
|
"CONTROL_TOKEN_ENV",
|
|
175
176
|
"CONTROL_TOKEN_HEADER",
|
|
177
|
+
"CONTROL_TOKEN_SHA256_ENV",
|
|
176
178
|
"WELL_KNOWN_PATH",
|
|
177
179
|
"METHOD_RESET",
|
|
178
180
|
"METHOD_ADD",
|
|
@@ -8,6 +8,7 @@ import datetime
|
|
|
8
8
|
import decimal
|
|
9
9
|
import enum
|
|
10
10
|
import functools
|
|
11
|
+
import hashlib
|
|
11
12
|
import hmac
|
|
12
13
|
import inspect
|
|
13
14
|
import json
|
|
@@ -32,7 +33,7 @@ from .tool_access import DISABLE as TOOL_DISABLE, ENABLE as TOOL_ENABLE, PATHS a
|
|
|
32
33
|
from .tool_access import extensions as tool_access_extensions
|
|
33
34
|
from .tool_context import EMPTY, ToolContext, bound, context_from_http, context_from_mcp
|
|
34
35
|
from .transfers import WriteNamespaceGrant
|
|
35
|
-
from .types import CONTROL_TOKEN_ENV, DATA_OBJECTS_EXTENSION_URI, MCP_TRANSPORT, SKILL_EXTENSION_URI, METHOD_ADD, METHOD_GET, METHOD_RESET, RPC_PATH, WELL_KNOWN_PATH, AddDataRequest, AddDataResponse, EnvironmentCapabilities, EnvironmentCard, EnvironmentExtension, EnvironmentInterface, EnvironmentTool, GetDataResponse, ResetDataResponse, error_body
|
|
36
|
+
from .types import CONTROL_TOKEN_ENV, CONTROL_TOKEN_SHA256_ENV, DATA_OBJECTS_EXTENSION_URI, MCP_TRANSPORT, SKILL_EXTENSION_URI, METHOD_ADD, METHOD_GET, METHOD_RESET, RPC_PATH, WELL_KNOWN_PATH, AddDataRequest, AddDataResponse, EnvironmentCapabilities, EnvironmentCard, EnvironmentExtension, EnvironmentInterface, EnvironmentTool, GetDataResponse, ResetDataResponse, error_body
|
|
36
37
|
|
|
37
38
|
logger = logging.getLogger(__name__)
|
|
38
39
|
|
|
@@ -1675,8 +1676,14 @@ def _error_response(error: AgentEnvError) -> Response:
|
|
|
1675
1676
|
|
|
1676
1677
|
|
|
1677
1678
|
def control_check() -> Callable[[Any], bool]:
|
|
1678
|
-
"""Whether a call's headers carry the env's control token as their bearer
|
|
1679
|
-
|
|
1679
|
+
"""Whether a call's headers carry the env's control token as their bearer: one whose sha256 is
|
|
1680
|
+
``CONTROL_TOKEN_SHA256_ENV`` when that is set, else ``CONTROL_TOKEN_ENV``; with neither set, any do."""
|
|
1681
|
+
if digest := os.environ.get(CONTROL_TOKEN_SHA256_ENV, "").strip().lower():
|
|
1682
|
+
def verified(headers: Any) -> bool:
|
|
1683
|
+
scheme, _, token = headers.get("authorization", "").partition(" ")
|
|
1684
|
+
sent = hashlib.sha256(token.encode()).hexdigest() if scheme == "Bearer" and token else ""
|
|
1685
|
+
return hmac.compare_digest(sent, digest)
|
|
1686
|
+
return verified
|
|
1680
1687
|
token = os.environ.get(CONTROL_TOKEN_ENV)
|
|
1681
1688
|
if not token:
|
|
1682
1689
|
return lambda headers: True
|
|
@@ -1686,9 +1693,9 @@ def control_check() -> Callable[[Any], bool]:
|
|
|
1686
1693
|
|
|
1687
1694
|
def control_guard() -> Callable[[Callable], Callable]:
|
|
1688
1695
|
"""What wraps a framework-only route, everything an env serves but its MCP endpoint and its card: with
|
|
1689
|
-
``CONTROL_TOKEN_ENV`` set, a call that doesn't carry
|
|
1690
|
-
without
|
|
1691
|
-
if not os.environ.get(CONTROL_TOKEN_ENV):
|
|
1696
|
+
``CONTROL_TOKEN_SHA256_ENV`` or ``CONTROL_TOKEN_ENV`` set, a call that doesn't carry the token as its bearer is
|
|
1697
|
+
refused before the route runs (``control_check``); without either, nothing."""
|
|
1698
|
+
if not (os.environ.get(CONTROL_TOKEN_SHA256_ENV) or os.environ.get(CONTROL_TOKEN_ENV)):
|
|
1692
1699
|
return lambda handler: handler
|
|
1693
1700
|
allowed = control_check()
|
|
1694
1701
|
|
|
@@ -78,15 +78,17 @@ def request_headers(url: str, headers: dict[str, str] | None = None) -> dict[str
|
|
|
78
78
|
|
|
79
79
|
def granted_headers(url: str, grants: dict[str | None, dict[str, str]]) -> dict[str, str]:
|
|
80
80
|
"""What ``grants``, env addresses and the headers that carry their control tokens, give a call to ``url``: those of
|
|
81
|
-
the address it resolves to or under, and none anywhere else."""
|
|
81
|
+
the longest address it resolves to or under, as a child's route under its gateway's, and none anywhere else."""
|
|
82
82
|
where = _resolved(url)
|
|
83
83
|
if where is None:
|
|
84
84
|
return {}
|
|
85
|
+
longest, granted = -1, {}
|
|
85
86
|
for base, sent in grants.items():
|
|
86
87
|
address = _resolved(base) if base else None
|
|
87
|
-
if address is not None and where[0] == address[0] and where[1][:len(address[1])] == address[1]
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if address is not None and where[0] == address[0] and where[1][:len(address[1])] == address[1] \
|
|
89
|
+
and len(address[1]) > longest:
|
|
90
|
+
longest, granted = len(address[1]), sent
|
|
91
|
+
return granted
|
|
90
92
|
|
|
91
93
|
|
|
92
94
|
def _resolved(url: str) -> tuple[tuple[str, str, int | None], list[str]] | None:
|
|
@@ -23,6 +23,8 @@ COMPUTER_PAGE = "urn:agentenv:computer-page/v1"
|
|
|
23
23
|
COMPUTER_EXEC = "urn:agentenv:computer-exec/v1"
|
|
24
24
|
COMPUTER_RECORDING = "urn:agentenv:computer-recording/v1"
|
|
25
25
|
|
|
26
|
+
#: What computer/v1's ``control_token`` says of a driver that takes its control token's sha256.
|
|
27
|
+
CONTROL_TOKEN_SHA256 = "sha256"
|
|
26
28
|
MAX_EXEC_TIMEOUT_S = 3600
|
|
27
29
|
KEYBOARD_RANGES = {"tap_hold_ms": (0, 1000), "type_delay_ms": (0, 1000), "max_hold_ms": (0, 600_000)}
|
|
28
30
|
|
|
@@ -86,8 +88,9 @@ def extension_params(driver: ComputerDriverEnvironment, uri: str) -> dict:
|
|
|
86
88
|
|
|
87
89
|
|
|
88
90
|
def computer_features(driver: ComputerDriverEnvironment) -> dict:
|
|
89
|
-
"""computer/v1's params: what the seven tools take, how input is delivered, the platform
|
|
90
|
-
|
|
91
|
+
"""computer/v1's params: what the seven tools take, how input is delivered, the platform, the default data paths,
|
|
92
|
+
and that the driver takes its control token's sha256 (``CONTROL_TOKEN_SHA256_ENV``), so agent-env boots it with
|
|
93
|
+
that and not the token."""
|
|
91
94
|
return {
|
|
92
95
|
"buttons": list(driver.buttons), "max_click_count": driver.max_click_count,
|
|
93
96
|
"keys": driver.keys if driver.keys == "all" else list(driver.keys), "max_text_length": driver.max_text_length,
|
|
@@ -95,6 +98,7 @@ def computer_features(driver: ComputerDriverEnvironment) -> dict:
|
|
|
95
98
|
"max_duration_ms": driver.max_duration_ms, "max_key_repeat": driver.max_key_repeat,
|
|
96
99
|
"max_scroll_amount": driver.max_scroll_amount, "delivery": "foreground", "platform": driver.platform.as_dict(),
|
|
97
100
|
"supports": list(driver.supports), "default_data_paths": list(DEFAULT_DATA_PATHS), "screen": driver.screen_kind,
|
|
101
|
+
"control_token": CONTROL_TOKEN_SHA256,
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
``python -m agentenv_protocol.computer.serve_app <file>:<Class>``, run in the app's folder, serves the class's card and
|
|
3
3
|
``computer-app/v1`` where only the computer reaches it (``served``): on Linux and macOS the Unix socket
|
|
4
4
|
``.agentenv/server.sock`` there, on Windows a loopback port it writes there with a token. It takes no control token
|
|
5
|
-
(``CONTROL_TOKEN_ENV``): the driver checks it in front of the app. Before it serves, it keeps a copy of
|
|
5
|
+
(``CONTROL_TOKEN_ENV``, ``CONTROL_TOKEN_SHA256_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
8
|
``.agentenv/server.failure``, which its computer's driver reports, and exits. It runs on real time, so its own
|
|
@@ -20,7 +20,7 @@ from pathlib import Path
|
|
|
20
20
|
import uvicorn
|
|
21
21
|
|
|
22
22
|
from .. import transfers
|
|
23
|
-
from ..types import CONTROL_TOKEN_ENV
|
|
23
|
+
from ..types import CONTROL_TOKEN_ENV, CONTROL_TOKEN_SHA256_ENV
|
|
24
24
|
from ._load import load_class
|
|
25
25
|
from .app import FAILURE, ComputerAppEnvironment
|
|
26
26
|
from .served import LOOPBACK, SOCKET, bind, guarded
|
|
@@ -45,6 +45,7 @@ def _serve(argv: list[str]) -> None:
|
|
|
45
45
|
raise SystemExit(USAGE)
|
|
46
46
|
file, _, name = argv[0].partition(":")
|
|
47
47
|
os.environ.pop(CONTROL_TOKEN_ENV, None)
|
|
48
|
+
os.environ.pop(CONTROL_TOKEN_SHA256_ENV, None)
|
|
48
49
|
app = load_class(Path(file), name, ComputerAppEnvironment)()
|
|
49
50
|
runtime = app._computer_app_runtime()
|
|
50
51
|
app._computer_app_data_plane().keep_initial()
|
|
@@ -19,6 +19,9 @@ RPC_PATH = "/agentenv"
|
|
|
19
19
|
#: The variable that hands an env the token its framework-only routes take as their bearer, everything it serves but
|
|
20
20
|
#: its MCP endpoint and its card; agent-env sets it when it deploys the env, and without it those routes are open.
|
|
21
21
|
CONTROL_TOKEN_ENV = "AGENTENV_CONTROL_TOKEN"
|
|
22
|
+
#: The variable that hands an env only the hex sha256 of that token, which those routes then take in its place: a
|
|
23
|
+
#: process that can read the env's environment learns nothing it could send. Set, it is checked and the token isn't.
|
|
24
|
+
CONTROL_TOKEN_SHA256_ENV = "AGENTENV_CONTROL_TOKEN_SHA256"
|
|
22
25
|
#: The header a control token travels in where it must not collide with a front door's own ``Authorization``.
|
|
23
26
|
CONTROL_TOKEN_HEADER = "AgentEnv-Control-Token"
|
|
24
27
|
|
|
@@ -192,6 +192,7 @@ async def test_the_card_declares_the_contract_the_driver_implements():
|
|
|
192
192
|
assert computer["buttons"] == ["left", "right", "middle"] and computer["max_click_count"] == 3
|
|
193
193
|
assert computer["keys"] == "all" and computer["platform"] == LINUX.as_dict() and computer["delivery"] == "foreground"
|
|
194
194
|
assert computer["default_data_paths"] == ["Desktop", "Documents", "Downloads"] and computer["screen"] == "desktop"
|
|
195
|
+
assert computer["control_token"] == "sha256" # agent-env boots it with the token's digest, not the token
|
|
195
196
|
assert "methods" not in computer and extensions["urn:agentenv:skill/v1"]["params"]["methods"]["get"]["method"] == "GET"
|
|
196
197
|
assert extensions["urn:agentenv:computer-pointer/v1"]["params"]["buttons"] == ["left", "right", "middle"]
|
|
197
198
|
assert set(extensions["urn:agentenv:computer-keyboard/v1"]["params"]["methods"]) == {"get", "set"}
|
|
@@ -5,6 +5,7 @@ or else the headers a grant gives the address it calls."""
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
7
|
import contextlib
|
|
8
|
+
import hashlib
|
|
8
9
|
|
|
9
10
|
import anyio
|
|
10
11
|
import httpx
|
|
@@ -18,6 +19,7 @@ from mcp.server.fastmcp import FastMCP # noqa: E402
|
|
|
18
19
|
|
|
19
20
|
from agentenv_protocol import ( # noqa: E402
|
|
20
21
|
CONTROL_TOKEN_ENV,
|
|
22
|
+
CONTROL_TOKEN_SHA256_ENV,
|
|
21
23
|
RPC_PATH,
|
|
22
24
|
WELL_KNOWN_PATH,
|
|
23
25
|
AgentEnvEnvironment,
|
|
@@ -96,9 +98,42 @@ async def test_with_a_token_every_framework_only_route_refuses_a_call_without_it
|
|
|
96
98
|
assert card.status_code == 200 and tools == ["read"]
|
|
97
99
|
|
|
98
100
|
|
|
101
|
+
@pytest.mark.asyncio
|
|
102
|
+
@pytest.mark.parametrize("plain", [None, "a-different-token"], ids=["alone", "beside-a-token"])
|
|
103
|
+
async def test_given_only_the_tokens_sha256_every_framework_only_route_takes_the_token_itself(monkeypatch, plain):
|
|
104
|
+
"""An env handed the token's sha256 holds nothing a caller could send: the digest itself is refused, the token
|
|
105
|
+
answers, and a plain token beside the digest is ignored."""
|
|
106
|
+
digest = hashlib.sha256(b"s3cret").hexdigest()
|
|
107
|
+
monkeypatch.setenv(CONTROL_TOKEN_SHA256_ENV, digest)
|
|
108
|
+
if plain is None:
|
|
109
|
+
monkeypatch.delenv(CONTROL_TOKEN_ENV, raising=False)
|
|
110
|
+
else:
|
|
111
|
+
monkeypatch.setenv(CONTROL_TOKEN_ENV, plain)
|
|
112
|
+
|
|
113
|
+
with anyio.fail_after(30):
|
|
114
|
+
async with _served() as (rest, _):
|
|
115
|
+
without = await _calls(rest, {})
|
|
116
|
+
the_digest = await _calls(rest, client.control_headers(digest))
|
|
117
|
+
not_bearer = await _calls(rest, {"Authorization": "s3cret"})
|
|
118
|
+
beside = await _calls(rest, client.control_headers(plain)) if plain else [401, 401, 401]
|
|
119
|
+
right = await _calls(rest, client.control_headers("s3cret"))
|
|
120
|
+
|
|
121
|
+
assert without == the_digest == not_bearer == beside == [401, 401, 401]
|
|
122
|
+
assert right == [200, 200, 200]
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def test_a_grant_for_a_route_under_an_address_wins_over_the_address():
|
|
126
|
+
gateway = "http://gw:18765"
|
|
127
|
+
with client.authorized({gateway: client.control_headers("env"), f"{gateway}/svc/desk": client.control_headers("desk")}):
|
|
128
|
+
sent = [client.request_headers(url) for url in (f"{gateway}/svc/desk/agentenv", f"{gateway}/svc/desk",
|
|
129
|
+
f"{gateway}/svc/desk-2/agentenv", f"{gateway}/state")]
|
|
130
|
+
assert sent == [{"Authorization": "Bearer desk"}] * 2 + [{"Authorization": "Bearer env"}] * 2
|
|
131
|
+
|
|
132
|
+
|
|
99
133
|
@pytest.mark.asyncio
|
|
100
134
|
async def test_without_a_token_every_route_is_open(monkeypatch):
|
|
101
135
|
monkeypatch.delenv(CONTROL_TOKEN_ENV, raising=False)
|
|
136
|
+
monkeypatch.delenv(CONTROL_TOKEN_SHA256_ENV, raising=False)
|
|
102
137
|
|
|
103
138
|
with anyio.fail_after(30):
|
|
104
139
|
async with _served() as (rest, _):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/THIRD_PARTY_NOTICES.md
RENAMED
|
File without changes
|
{agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.663 → agentenv_framework_protocol-0.1.665}/examples/basic_agent.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|