thachvd-kit 1.0.13 → 1.0.14

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.
Files changed (2) hide show
  1. package/bin/cli.js +22 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1014,7 +1014,28 @@ function generateAgentsMd(data) {
1014
1014
  else if (isPython) { installCmd = 'pip install -r requirements.txt'; devCmd = 'python manage.py runserver'; buildCmd = '# no build step'; testCmd = 'pytest'; lintCmd = 'ruff check .'; }
1015
1015
  else if (isGo) { installCmd = 'go mod download'; devCmd = 'go run .'; buildCmd = 'go build ./...'; testCmd = 'go test ./...'; lintCmd = 'golangci-lint run'; }
1016
1016
  else if (isRust) { installCmd = 'cargo build'; devCmd = 'cargo run'; buildCmd = 'cargo build --release'; testCmd = 'cargo test'; lintCmd = 'cargo clippy'; }
1017
- else if (isPhp) { installCmd = 'composer install'; devCmd = 'php artisan serve'; buildCmd = '# no build step'; testCmd = testFramework === 'pest' ? './vendor/bin/pest' : './vendor/bin/phpunit'; lintCmd = 'php artisan pint'; }
1017
+ else if (isPhp) {
1018
+ installCmd = 'composer install';
1019
+ buildCmd = '# no build step';
1020
+ testCmd = testFramework === 'pest' ? './vendor/bin/pest' : './vendor/bin/phpunit';
1021
+ const isCakePHP = frameworks.some(f => f.toLowerCase().includes('cakephp'));
1022
+ const isSymfony = frameworks.some(f => f.toLowerCase().includes('symfony'));
1023
+ const isCodeIgniter = frameworks.some(f => f.toLowerCase().includes('codeigniter'));
1024
+ if (isCakePHP) {
1025
+ devCmd = 'bin/cake server';
1026
+ lintCmd = './vendor/bin/phpcs';
1027
+ } else if (isSymfony) {
1028
+ devCmd = 'bin/console server:run';
1029
+ lintCmd = './vendor/bin/phpcs';
1030
+ } else if (isCodeIgniter) {
1031
+ devCmd = 'php spark serve';
1032
+ lintCmd = './vendor/bin/phpcs';
1033
+ } else {
1034
+ // Default: Laravel
1035
+ devCmd = 'php artisan serve';
1036
+ lintCmd = 'php artisan pint';
1037
+ }
1038
+ }
1018
1039
 
1019
1040
  if (testFramework === 'vitest') testCmd = `${pkgManager === 'pnpm' ? 'pnpm' : pkgManager === 'yarn' ? 'yarn' : pkgManager === 'bun' ? 'bun run' : 'npx'} vitest`;
1020
1041
  else if (testFramework === 'jest') testCmd = `${pkgManager === 'pnpm' ? 'pnpm' : pkgManager === 'yarn' ? 'yarn' : 'npx'} jest`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thachvd-kit",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Project context bootstrap kit for Antigravity, Claude Code, and Codex",
5
5
  "bin": {
6
6
  "thachvd-kit": "./bin/cli.js"