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.
- package/bin/chainproof.js +1 -1
- package/bin/devforge.js +1 -1
- package/package.json +1 -1
- package/src/chainproof-bridge.js +9 -2
- package/src/ci-mode.js +3 -4
- package/src/claude-configurator.js +114 -58
- package/src/composer.js +17 -128
- package/src/doctor-checks-chainproof.js +14 -11
- package/src/doctor-checks.js +3 -19
- package/src/index.js +6 -34
- package/src/init-mode.js +14 -3
- package/src/recommender.js +319 -310
- package/src/uat-generator.js +105 -93
- package/src/update.js +56 -12
- package/src/utils.js +245 -116
- package/templates/auth/jwt-custom/backend/app/api/auth.py.template +39 -45
- package/templates/auth/jwt-custom/backend/app/core/security.py.template +44 -37
- package/templates/backend/express/package.json.template +35 -33
- package/templates/backend/express/src/lib/prisma.ts.template +32 -0
- package/templates/backend/express/src/routes/health.ts.template +35 -27
- package/templates/backend/fastapi/backend/app/main.py.template +67 -60
- package/templates/backend/fastapi/backend/requirements.txt.template +18 -16
- package/templates/backend/hono/package.json.template +33 -31
- package/templates/backend/hono/src/lib/prisma.ts.template +32 -0
- package/templates/backend/hono/src/routes/health.ts.template +38 -27
- package/templates/base/.gitignore.template +32 -29
- package/templates/claude-code/commands/workflows.md +52 -52
- package/templates/database/prisma-postgres/prisma/schema.prisma.template +19 -18
- package/templates/database/sqlalchemy-postgres/backend/alembic/env.py.template +39 -40
- package/templates/database/sqlalchemy-postgres/backend/alembic.ini.template +38 -36
- package/templates/database/sqlalchemy-postgres/backend/app/db/session.py.template +50 -48
- package/templates/frontend/nextjs/package.json.template +45 -43
- package/templates/frontend/remix/package.json.template +41 -39
- package/templates/infra/docker/.dockerignore.template +16 -0
- package/templates/infra/docker-compose/docker-compose.yml.template +22 -19
- package/templates/infra/github-actions/.github/workflows/ci.yml.template +61 -52
- package/templates/infra/k8s/k8s/deployment.yml.template +70 -0
- package/templates/infra/k8s/k8s/hpa.yml.template +24 -0
- package/templates/infra/k8s/k8s/ingress.yml.template +26 -0
- package/templates/infra/k8s/k8s/kustomization.yml.template +13 -0
- package/templates/infra/k8s/k8s/namespace.yml.template +4 -0
- package/templates/infra/k8s/k8s/networkpolicy.yml.template +41 -0
- package/templates/infra/k8s/k8s/secrets.yml.template +10 -0
- package/templates/infra/k8s/k8s/service.yml.template +15 -0
- package/templates/testing/load/k6/README.md.template +48 -0
- 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(' ✓ ') +
|
|
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(' ✓ ') +
|
|
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);
|