create-mantiq 0.7.1 → 0.7.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mantiq",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Scaffold a new MantiqJS application",
5
5
  "type": "module",
6
6
  "license": "MIT",
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')
package/src/templates.ts CHANGED
@@ -47,6 +47,7 @@ export function getTemplates(ctx: TemplateContext): Record<string, string> {
47
47
  }
48
48
 
49
49
  const baseDevDeps: Record<string, string> = {
50
+ '@mantiq/agent-rules': '^0.7.0',
50
51
  '@mantiq/testing': '^0.7.0',
51
52
  'bun-types': 'latest',
52
53
  'typescript': '^5.7.0',