refactor(minder): resolve a folder's GitLab project in gaig
Description
This MR moves the lookup that finds a folder's GitLab project from its origin remote out of glab minder audit sync and into the shared gaig package. It adds gaig.ProjectForDir, so that other glab minder commands can resolve the project of a folder other than the working directory. The origin remote is now read from git's standard output only, so a warning git prints cannot become part of the URL.
It is stacked on !4466 (merged) and is the first MR of the stack for https://gitlab.com/gitlab-org/gitlab/-/work_items/634679. The PreToolUse policy hook later in the stack uses ProjectForDir to find the project of a hook event's working directory.
How has this been tested?
Unit tests in gaig cover ProjectForRemote, which moved from the sync package, and ProjectForDir, including reading the remote from standard output only and a folder that is not a repository. The existing discovery tests for Codex and Cursor sessions pass against the moved lookup.