feat: support simple projects and root Git repositories
Allow registering a single Git repository at the engineering project root with --path . while retaining path safety checks. Document Git-optional projects first and cover plain folders, root repositories, and multiple repositories in process tests and native smoke scenarios. Validated with 23 passing tests and macOS ARM64 native smoke checks for all three layouts.
This commit is contained in:
@@ -63,7 +63,7 @@ public final class ProjectService {
|
||||
}
|
||||
public Path repositoryPath(Path root, ProjectConfig.Repository repository) {
|
||||
Path path = Filespace.resolve(root, repository.path());
|
||||
if (path.equals(root) || path.startsWith(root.resolve(".ai-engineering"))) throw ProtocolException.invalid("Repository must be a source directory beneath project root");
|
||||
if (path.startsWith(root.resolve(".ai-engineering"))) throw ProtocolException.invalid("Repository must be outside .ai-engineering");
|
||||
return path;
|
||||
}
|
||||
public void validate(Path root) {
|
||||
|
||||
Reference in New Issue
Block a user