Files
headquarter/apps/api/.pi-map.index.md
T
Developer 6e33e8e4e9 fix: remove explicit repo mount from pi-agent manifest and derive workspace name from remote URL
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
2026-06-15 09:10:05 +00:00

1.3 KiB

apps/api (index)

dir: apps/api

role

FastAPI-based backend API that manages projects, git repositories, and development tools through Docker-orchestrated instances with PostgreSQL persistence.

parent

index: apps/.pi-map.index.md map: apps/.pi-map.md

children

  • apps/api/.mypy_cache index: apps/api/.mypy_cache/.pi-map.index.md map: apps/api/.mypy_cache/.pi-map.md
  • apps/api/.pi-lens index: apps/api/.pi-lens/.pi-map.index.md map: apps/api/.pi-lens/.pi-map.md
  • apps/api/.pytest_cache index: apps/api/.pytest_cache/.pi-map.index.md map: apps/api/.pytest_cache/.pi-map.md
  • apps/api/.ruff_cache index: apps/api/.ruff_cache/.pi-map.index.md map: apps/api/.ruff_cache/.pi-map.md
  • apps/api/.venv-test index: apps/api/.venv-test/.pi-map.index.md map: apps/api/.venv-test/.pi-map.md
  • apps/api/alembic index: apps/api/alembic/.pi-map.index.md map: apps/api/alembic/.pi-map.md
  • apps/api/src index: apps/api/src/.pi-map.index.md map: apps/api/src/.pi-map.md
  • apps/api/tests index: apps/api/tests/.pi-map.index.md map: apps/api/tests/.pi-map.md
  • apps/api/uploads index: apps/api/uploads/.pi-map.index.md map: apps/api/uploads/.pi-map.md

files

  • .dockerignore
  • Dockerfile
  • README.md
  • alembic.ini
  • pyproject.toml
  • uv.lock
  • wait-for-db.sh

index: apps/api/.pi-map.index.md map: apps/api/.pi-map.md

workflows

dirty