Files
Victor Moreira 04b4bb946f fix(cli): support state deploy backend (#3790)
Updates the deploy CLI backend handling to match the current Managed
Deep Agents API shape. New scaffolded projects use `state`, and
sandbox-backed projects can use `backend.type: "sandbox"` with
`sandbox_config.scope`, policy IDs, and TTL fields. Existing `default`,
`thread_scoped_sandbox`, `agent_scoped_sandbox`, and `backend.sandbox`
configs continue to normalize for compatibility.

This also updates the CLI README and example deploy project so users see
the canonical `sandbox_config` form.

Tests run:
- `uv run --group test python -m pytest tests/unit_tests/`
- `uv run --group test ruff check deepagents_cli/deploy/project.py
deepagents_cli/deploy/commands.py
tests/unit_tests/deploy/test_project.py
tests/unit_tests/deploy/test_payload.py
tests/unit_tests/deploy/test_init_command.py
tests/unit_tests/deploy/test_deploy_command.py`
- `uv run --group test ty check deepagents_cli/deploy/project.py`

Live validation:
- Created a temporary Managed Deep Agent using `backend.type: "sandbox"`
and `sandbox_config.scope: "thread"`.
- Confirmed the API stored `type: "sandbox"` and `sandbox_config.scope:
"thread"`.
- Updated the same temporary agent with `idle_ttl_seconds` and
`delete_after_stop_seconds`; confirmed both fields persisted.
- Deleted the temporary remote agent and verified it returned 404
afterward.
2026-06-07 17:05:02 -04:00
..