@chimerai/cli 0.2.79 → 0.2.81

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.
@@ -213,12 +213,14 @@ async function createProject(targetDir, projectName, features, sqlite) {
213
213
  // 7. Create seed script
214
214
  spinner.text = 'Creating database seed...';
215
215
  await createSeedScript(targetDir, features, sqlite);
216
- // 8. Create Docker Compose
217
- spinner.text = 'Setting up Docker...';
218
- await createDockerCompose(targetDir);
216
+ // 8. Create Docker Compose (only for PostgreSQL)
217
+ if (!sqlite) {
218
+ spinner.text = 'Setting up Docker...';
219
+ await createDockerCompose(targetDir);
220
+ }
219
221
  // 9. Create install scripts
220
222
  spinner.text = 'Creating install scripts...';
221
- await createInstallScripts(targetDir);
223
+ await createInstallScripts(targetDir, sqlite);
222
224
  // 10. Create README
223
225
  spinner.text = 'Creating documentation...';
224
226
  await createReadme(targetDir, projectName, features);
@@ -358,6 +360,11 @@ async function createPackageJson(targetDir, projectName, features) {
358
360
  },
359
361
  dependencies,
360
362
  devDependencies,
363
+ overrides: {
364
+ // Force postcss >= 8.5.10 to fix GHSA-qx2v-qp2m-jg93 (XSS via unescaped </style>)
365
+ // next bundles its own postcss which may be older than 8.5.10
366
+ postcss: '^8.5.10',
367
+ },
361
368
  prisma: {
362
369
  seed: 'tsx prisma/seed.ts',
363
370
  },
@@ -1417,9 +1424,63 @@ main()
1417
1424
  async function createDockerCompose(targetDir) {
1418
1425
  await fs_extra_1.default.writeFile(path_1.default.join(targetDir, 'docker-compose.yml'), (0, index_js_1.generateDockerComposeDev)());
1419
1426
  }
1420
- async function createInstallScripts(targetDir) {
1427
+ async function createInstallScripts(targetDir, sqlite) {
1421
1428
  // Windows install.bat
1422
- const installBat = `@echo off
1429
+ const installBat = sqlite
1430
+ ? `@echo off
1431
+ REM Installation Script for ChimerAI Project (SQLite)
1432
+ echo.
1433
+ echo ================================================
1434
+ echo ChimerAI Project Setup (SQLite - No Docker needed)
1435
+ echo ================================================
1436
+ echo.
1437
+
1438
+ REM Check Node.js
1439
+ where node >nul 2>nul
1440
+ if %ERRORLEVEL% NEQ 0 (
1441
+ echo [ERROR] Node.js is not installed
1442
+ pause
1443
+ exit /b 1
1444
+ )
1445
+
1446
+ echo [1/3] Installing dependencies...
1447
+ call npm install
1448
+ if %ERRORLEVEL% NEQ 0 (
1449
+ echo [ERROR] Failed to install dependencies
1450
+ pause
1451
+ exit /b 1
1452
+ )
1453
+
1454
+ echo [2/3] Setting up database...
1455
+ call npm run db:push
1456
+ if %ERRORLEVEL% NEQ 0 (
1457
+ echo [ERROR] Failed to setup database
1458
+ pause
1459
+ exit /b 1
1460
+ )
1461
+
1462
+ echo [3/3] Seeding database...
1463
+ call npm run db:seed
1464
+ if %ERRORLEVEL% NEQ 0 (
1465
+ echo [WARNING] Seeding failed, but you can continue
1466
+ )
1467
+
1468
+ echo.
1469
+ echo ================================================
1470
+ echo Setup completed successfully!
1471
+ echo ================================================
1472
+ echo.
1473
+ echo Next steps:
1474
+ echo npm run dev
1475
+ echo Open: http://localhost:3001
1476
+ echo.
1477
+ echo Login with:
1478
+ echo Email: admin@example.com
1479
+ echo Password: admin123
1480
+ echo.
1481
+ pause
1482
+ `
1483
+ : `@echo off
1423
1484
  REM Installation Script for ChimerAI Project
1424
1485
  echo.
1425
1486
  echo ================================================
@@ -1492,7 +1553,46 @@ echo.
1492
1553
  pause
1493
1554
  `;
1494
1555
  // Linux/macOS install.sh
1495
- const installSh = `#!/bin/bash
1556
+ const installSh = sqlite
1557
+ ? `#!/bin/bash
1558
+ set -e
1559
+
1560
+ echo ""
1561
+ echo "================================================"
1562
+ echo " ChimerAI Project Setup (SQLite - No Docker needed)"
1563
+ echo "================================================"
1564
+ echo ""
1565
+
1566
+ # Check Node.js
1567
+ if ! command -v node &> /dev/null; then
1568
+ echo "[ERROR] Node.js is not installed"
1569
+ exit 1
1570
+ fi
1571
+
1572
+ echo "[1/3] Installing dependencies..."
1573
+ npm install
1574
+
1575
+ echo "[2/3] Setting up database..."
1576
+ npm run db:push
1577
+
1578
+ echo "[3/3] Seeding database..."
1579
+ npm run db:seed || echo "[WARNING] Seeding failed, but you can continue"
1580
+
1581
+ echo ""
1582
+ echo "================================================"
1583
+ echo " Setup completed successfully!"
1584
+ echo "================================================"
1585
+ echo ""
1586
+ echo "Next steps:"
1587
+ echo " npm run dev"
1588
+ echo " Open: http://localhost:3001"
1589
+ echo ""
1590
+ echo "Login with:"
1591
+ echo " Email: admin@example.com"
1592
+ echo " Password: admin123"
1593
+ echo ""
1594
+ `
1595
+ : `#!/bin/bash
1496
1596
  set -e
1497
1597
 
1498
1598
  echo ""
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@chimerai/cli",
3
- "version": "0.2.79",
3
+ "version": "0.2.81",
4
4
  "description": "CLI wizard for ChimerAI starter kit — scaffold auth, RBAC, AI chat, billing and more into any Next.js project",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
7
- "chimerai": "./dist/cli.js"
7
+ "chimerai": "dist/cli.js"
8
8
  },
9
9
  "files": [
10
10
  "dist",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/armbur19-collab/chimerai-kickstart.git",
19
+ "url": "git+https://github.com/armbur19-collab/chimerai-kickstart.git",
20
20
  "directory": "packages/cli"
21
21
  },
22
22
  "homepage": "https://chimerai.dev",