pyro-mcp/tests
Thales Maciel aa886b346e Add seeded task workspace creation
Current persistent tasks started with an empty workspace, which blocked the first useful host-to-task workflow in the task roadmap. This change lets task creation start from a host directory or tar archive without changing the one-shot VM surfaces.

Expose source_path on task create across the CLI, SDK, and MCP, add safe archive upload and extraction support for guest and host-compat backends, persist workspace_seed metadata, and patch the per-task rootfs with the bundled guest agent before boot so seeded guest tasks work without republishing environments. Also switch post--- command reconstruction to shlex.join() so documented sh -lc task examples preserve argument boundaries.

Validation:
- uv lock
- UV_CACHE_DIR=.uv-cache uv run pytest --no-cov tests/test_vm_guest.py tests/test_vm_manager.py tests/test_cli.py tests/test_api.py tests/test_server.py tests/test_public_contract.py
- UV_CACHE_DIR=.uv-cache make check
- UV_CACHE_DIR=.uv-cache make dist-check
- real guest-backed smoke: task create --source-path, task exec -- cat note.txt, task delete
2026-03-11 21:45:38 -03:00
..
test_api.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_cli.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_doctor.py Bundle firecracker runtime and switch ollama demo to live logs 2026-03-05 20:20:36 -03:00
test_langchain_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_ollama_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_openai_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_public_contract.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_python_lifecycle_example.py Harden default environment pull behavior 2026-03-11 19:27:09 -03:00
test_runtime.py Harden default environment pull behavior 2026-03-11 19:27:09 -03:00
test_runtime_boot_check.py Finalize guest boot and exec runtime updates 2026-03-07 17:09:21 -03:00
test_runtime_build.py Switch official environment publishing to Docker Hub 2026-03-09 17:39:18 -03:00
test_runtime_network_check.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_server.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_vm_environments.py Harden default environment pull behavior 2026-03-11 19:27:09 -03:00
test_vm_firecracker.py Finalize guest boot and exec runtime updates 2026-03-07 17:09:21 -03:00
test_vm_guest.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_vm_manager.py Add seeded task workspace creation 2026-03-11 21:45:38 -03:00
test_vm_network.py Add runtime capability scaffolding and align docs 2026-03-05 22:57:09 -03:00