create-mantiq 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +18 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -446,6 +446,24 @@ if (kit) {
|
|
|
446
446
|
buildSpin.stop('Frontend built')
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
+
// ── Generate AI agent rules ──────────────────────────────────────────────────
|
|
450
|
+
const agentSpin = term.spinner('Generating AI agent rules')
|
|
451
|
+
try {
|
|
452
|
+
const agentGen = Bun.spawn(['bun', 'run', 'mantiq', 'agent:generate'], {
|
|
453
|
+
cwd: projectDir,
|
|
454
|
+
stdout: 'pipe',
|
|
455
|
+
stderr: 'pipe',
|
|
456
|
+
})
|
|
457
|
+
const agentExit = await agentGen.exited
|
|
458
|
+
if (agentExit === 0) {
|
|
459
|
+
agentSpin.stop('AI agent rules generated')
|
|
460
|
+
} else {
|
|
461
|
+
agentSpin.stop('AI agent rules skipped')
|
|
462
|
+
}
|
|
463
|
+
} catch {
|
|
464
|
+
agentSpin.stop('AI agent rules skipped')
|
|
465
|
+
}
|
|
466
|
+
|
|
449
467
|
// ── Git init ─────────────────────────────────────────────────────────────────
|
|
450
468
|
if (!noGit) {
|
|
451
469
|
const gitSpin = term.spinner('Initializing git')
|