feat(04-01): generate jobs and admin controllers, reject model imports

Scaffold pact.Job and pact.AdminController stubs with Winter YAML
assets, and fail summer build when models imports a sibling package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-09-18 13:41:13 +02:00
parent d8c56509f2
commit c87bbc37fb
7 changed files with 476 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ func App(ctx context.Context, appDir string, out io.Writer) error {
if err := generate(appDir, m); err != nil {
return err
}
if err := checkModelsLeaf(appDir, m); err != nil {
return err
}
binRel := filepath.Join("bin", m.Binary)
if err := os.MkdirAll(filepath.Join(appDir, "bin"), 0o755); err != nil {