6e33e8e4e9
The pi-agent manifest still declared an explicit repo mount with
{{WORKSPACE_NAME}}, making the mount target dependent on tool config. The
instance service now synthesizes the repo mount, so the manifest no longer
needs the explicit mount.
- Add Alembic migration 2026_06_15_090500 to remove the source_type: repo
mount from the built-in pi-agent manifest
- Add _get_repository_mount_name() helper to derive the workspace directory
name from the repository remote URL (matching git clone behavior) and
fall back to the user-provided repository name
- Use the helper for WORKSPACE_NAME/REPO_NAME in manifest, legacy dockerfile,
and legacy compose template paths
- Update unit tests for the new migration and helper
Quality gates:
- pytest tests/unit: 218 passed
- ruff: clean on changed files
- mypy: clean on changed files
- alembic heads: single head
661 B
661 B
Tasks: fix pi container repo mount and npm update permissions
- Investigate root cause (manifest target, missing variables, npm prefix)
- Create Alembic data migration to update pi-agent manifest
- Update manifest_compiler.py: {{WORKSPACE_NAME}} substitution, env var, entrypoint runtime var, npm prefix
- Update instance_service.py to pass REPO_NAME/WORKSPACE_NAME
- Remove explicit repo mount from pi-agent manifest; synthesize mount in compile_compose
- Add _get_repository_mount_name() helper to derive workspace name from remote URL
- Update unit tests
- Run quality gates (pytest unit, ruff, mypy)
- Commit and push