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:
@@ -132,6 +132,31 @@ JAVA_HOME=/nonexistent GRAALVM_HOME=/nonexistent PATH=/usr/bin:/bin:/usr/sbin:/s
|
||||
bash scripts/native-smoke.sh "$PWD/build/native/nativeCompile/ai-engineering"
|
||||
```
|
||||
|
||||
## H5 — Simple projects and a single root repository
|
||||
|
||||
A simple project can initialize `.ai-engineering` directly beside its existing source
|
||||
files. Repository registration is optional; a project with no registered repositories
|
||||
has a complete Work/discussion/decision/artifact workflow and no Git revision snapshots.
|
||||
The separate-process test runs those commands with no Git on PATH, reconstructs the
|
||||
same context, validates the project and confirms no `.git` or source changes appear.
|
||||
|
||||
For projects already using one Git repository, `repo add app --path .` now registers
|
||||
the root repository. A test-first run reproduced the earlier root-path rejection;
|
||||
removing that restriction preserves traversal, symlink and `.ai-engineering` exclusions.
|
||||
Regression tests confirm read-only defaults, nested discovery, deterministic context,
|
||||
duplicate-path rejection and unchanged Git configuration/source content. Existing
|
||||
multi-repository and real-submodule fixtures still pass.
|
||||
|
||||
Result: **23 tests, 0 failures, 0 errors, 0 skipped** on the SDKMAN GraalVM CE toolchain.
|
||||
The native smoke script now exercises all three layouts: no Git, a single root Git
|
||||
repository, and multiple child Git repositories. The README starts with the simple
|
||||
project workflow. These changes do not require a new configuration schema or project
|
||||
mode.
|
||||
|
||||
Native compilation succeeded on macOS ARM64. With `JAVA_HOME` and `GRAALVM_HOME`
|
||||
pointing to nonexistent paths, the expanded smoke passed both the simple-project
|
||||
scenarios (including no Git on PATH) and the multi-repository scenario.
|
||||
|
||||
## Limits and next experiment
|
||||
|
||||
CI workflows are provided but have not been executed from this local workspace.
|
||||
|
||||
Reference in New Issue
Block a user