forgedev 1.3.0 → 1.4.1

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 (46) hide show
  1. package/bin/chainproof.js +1 -1
  2. package/bin/devforge.js +1 -1
  3. package/package.json +1 -1
  4. package/src/chainproof-bridge.js +9 -2
  5. package/src/ci-mode.js +3 -4
  6. package/src/claude-configurator.js +114 -58
  7. package/src/composer.js +17 -128
  8. package/src/doctor-checks-chainproof.js +14 -11
  9. package/src/doctor-checks.js +3 -19
  10. package/src/index.js +6 -34
  11. package/src/init-mode.js +14 -3
  12. package/src/recommender.js +319 -310
  13. package/src/uat-generator.js +105 -93
  14. package/src/update.js +56 -12
  15. package/src/utils.js +245 -116
  16. package/templates/auth/jwt-custom/backend/app/api/auth.py.template +39 -45
  17. package/templates/auth/jwt-custom/backend/app/core/security.py.template +44 -37
  18. package/templates/backend/express/package.json.template +35 -33
  19. package/templates/backend/express/src/lib/prisma.ts.template +32 -0
  20. package/templates/backend/express/src/routes/health.ts.template +35 -27
  21. package/templates/backend/fastapi/backend/app/main.py.template +67 -60
  22. package/templates/backend/fastapi/backend/requirements.txt.template +18 -16
  23. package/templates/backend/hono/package.json.template +33 -31
  24. package/templates/backend/hono/src/lib/prisma.ts.template +32 -0
  25. package/templates/backend/hono/src/routes/health.ts.template +38 -27
  26. package/templates/base/.gitignore.template +32 -29
  27. package/templates/claude-code/commands/workflows.md +52 -52
  28. package/templates/database/prisma-postgres/prisma/schema.prisma.template +19 -18
  29. package/templates/database/sqlalchemy-postgres/backend/alembic/env.py.template +39 -40
  30. package/templates/database/sqlalchemy-postgres/backend/alembic.ini.template +38 -36
  31. package/templates/database/sqlalchemy-postgres/backend/app/db/session.py.template +50 -48
  32. package/templates/frontend/nextjs/package.json.template +45 -43
  33. package/templates/frontend/remix/package.json.template +41 -39
  34. package/templates/infra/docker/.dockerignore.template +16 -0
  35. package/templates/infra/docker-compose/docker-compose.yml.template +22 -19
  36. package/templates/infra/github-actions/.github/workflows/ci.yml.template +61 -52
  37. package/templates/infra/k8s/k8s/deployment.yml.template +70 -0
  38. package/templates/infra/k8s/k8s/hpa.yml.template +24 -0
  39. package/templates/infra/k8s/k8s/ingress.yml.template +26 -0
  40. package/templates/infra/k8s/k8s/kustomization.yml.template +13 -0
  41. package/templates/infra/k8s/k8s/namespace.yml.template +4 -0
  42. package/templates/infra/k8s/k8s/networkpolicy.yml.template +41 -0
  43. package/templates/infra/k8s/k8s/secrets.yml.template +10 -0
  44. package/templates/infra/k8s/k8s/service.yml.template +15 -0
  45. package/templates/testing/load/k6/README.md.template +48 -0
  46. package/templates/testing/load/k6/load-test.js.template +57 -0
package/src/init-mode.js CHANGED
@@ -53,7 +53,7 @@ export async function runInit(projectDir) {
53
53
  // Generate Claude Code infrastructure (skips CLAUDE.md if it exists, merges settings.json if it exists)
54
54
  const skipClaudeMd = scan.infrastructure.hasClaudeMd;
55
55
  const mergeSettings = scan.infrastructure.hasHooks;
56
- await generateClaudeConfig(projectDir, stackConfig, { skipClaudeMd, mergeSettings });
56
+ const { agents, commands } = await generateClaudeConfig(projectDir, stackConfig, { skipClaudeMd, mergeSettings });
57
57
 
58
58
  if (!skipClaudeMd) {
59
59
  console.log(chalk.green(' ✓ ') + 'CLAUDE.md (project context + rules)');
@@ -68,15 +68,26 @@ export async function runInit(projectDir) {
68
68
  }
69
69
 
70
70
  if (!scan.infrastructure.hasAgents) {
71
- console.log(chalk.green(' ✓ ') + '.claude/agents/ (code quality, security, spec validator)');
71
+ console.log(chalk.green(' ✓ ') + `.claude/agents/ (${agents.count} agents installed)`);
72
+ } else {
73
+ console.log(chalk.green(' ✓ ') + `.claude/agents/ (${agents.count} agents synced)`);
72
74
  }
73
75
  if (!scan.infrastructure.hasCommands) {
74
- console.log(chalk.green(' ✓ ') + '.claude/commands/ (help, status, next, done, audit, pre-pr)');
76
+ console.log(chalk.green(' ✓ ') + `.claude/commands/ (${commands.count} commands installed)`);
77
+ } else {
78
+ console.log(chalk.green(' ✓ ') + `.claude/commands/ (${commands.count} commands synced)`);
75
79
  }
76
80
  if (!scan.infrastructure.hasSkills) {
77
81
  console.log(chalk.green(' ✓ ') + '.claude/skills/ (framework-specific knowledge)');
78
82
  }
79
83
 
84
+ // Report orphan cleanup
85
+ const removedFiles = [...agents.removed, ...commands.removed];
86
+ if (removedFiles.length > 0) {
87
+ const removedNames = removedFiles.map(f => f.replace('.md', ''));
88
+ console.log(chalk.dim(' - ') + `Cleaned up ${removedFiles.length} outdated file${removedFiles.length > 1 ? 's' : ''}: ${removedNames.join(', ')}`);
89
+ }
90
+
80
91
  // Generate UAT templates
81
92
  if (!scan.infrastructure.hasUAT) {
82
93
  await generateUAT(projectDir, stackConfig);