claude-git-hooks 2.14.4 → 2.15.5
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/CHANGELOG.md +94 -5
- package/LICENSE +20 -20
- package/bin/claude-hooks +84 -84
- package/lib/commands/analyze-diff.js +0 -1
- package/lib/commands/create-pr.js +1 -1
- package/lib/commands/debug.js +1 -1
- package/lib/commands/helpers.js +11 -6
- package/lib/commands/install.js +7 -8
- package/lib/commands/migrate-config.js +24 -2
- package/lib/commands/setup-github.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/config.js +0 -4
- package/lib/hooks/prepare-commit-msg.js +2 -2
- package/lib/utils/changelog-generator.js +6 -8
- package/lib/utils/claude-client.js +7 -6
- package/lib/utils/claude-diagnostics.js +14 -21
- package/lib/utils/file-operations.js +1 -1
- package/lib/utils/file-utils.js +0 -1
- package/lib/utils/git-operations.js +0 -1
- package/lib/utils/github-api.js +3 -3
- package/lib/utils/github-client.js +2 -2
- package/lib/utils/installation-diagnostics.js +1 -1
- package/lib/utils/prompt-builder.js +4 -6
- package/lib/utils/sanitize.js +13 -14
- package/lib/utils/task-id.js +18 -20
- package/lib/utils/telemetry.js +5 -7
- package/package.json +68 -60
- package/templates/config.advanced.example.json +113 -113
- package/templates/pre-commit +7 -0
- package/templates/presets/ai/config.json +5 -5
- package/templates/presets/backend/config.json +5 -5
- package/templates/presets/backend/preset.json +49 -49
- package/templates/presets/database/config.json +5 -5
- package/templates/presets/database/preset.json +38 -38
- package/templates/presets/default/config.json +5 -5
- package/templates/presets/default/preset.json +53 -53
- package/templates/presets/frontend/config.json +5 -5
- package/templates/presets/frontend/preset.json +50 -50
- package/templates/presets/fullstack/config.json +5 -5
- package/templates/presets/fullstack/preset.json +55 -55
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "frontend",
|
|
3
|
-
"displayName": "Frontend (React + Material-UI)",
|
|
4
|
-
"description": "React frontend with Material-UI, Redux, React Hook Form",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
|
|
7
|
-
"techStack": [
|
|
8
|
-
"React 18+",
|
|
9
|
-
"React Router 6+",
|
|
10
|
-
"Material-UI v5",
|
|
11
|
-
"Semantic UI",
|
|
12
|
-
"Redux",
|
|
13
|
-
"Redux Saga",
|
|
14
|
-
"React Hook Form",
|
|
15
|
-
"Highcharts",
|
|
16
|
-
"Axios",
|
|
17
|
-
"Jest",
|
|
18
|
-
"Testing Library"
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
"fileExtensions": [
|
|
22
|
-
".js",
|
|
23
|
-
".jsx",
|
|
24
|
-
".ts",
|
|
25
|
-
".tsx",
|
|
26
|
-
".css",
|
|
27
|
-
".scss",
|
|
28
|
-
".html"
|
|
29
|
-
],
|
|
30
|
-
|
|
31
|
-
"focusAreas": [
|
|
32
|
-
"Component design and reusability",
|
|
33
|
-
"React hooks best practices",
|
|
34
|
-
"State management patterns",
|
|
35
|
-
"Performance optimization (memoization, lazy loading)",
|
|
36
|
-
"XSS prevention and input sanitization",
|
|
37
|
-
"Accessibility (a11y)",
|
|
38
|
-
"Responsive design",
|
|
39
|
-
"Error boundaries and error handling",
|
|
40
|
-
"Test coverage"
|
|
41
|
-
],
|
|
42
|
-
|
|
43
|
-
"templates": {
|
|
44
|
-
"analysis": "ANALYSIS_PROMPT.md",
|
|
45
|
-
"guidelines": "PRE_COMMIT_GUIDELINES.md",
|
|
46
|
-
"commitMessage": "../shared/COMMIT_MESSAGE.md",
|
|
47
|
-
"analyzeDiff": "../shared/ANALYZE_DIFF.md",
|
|
48
|
-
"resolution": "../shared/RESOLUTION_PROMPT.md"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "frontend",
|
|
3
|
+
"displayName": "Frontend (React + Material-UI)",
|
|
4
|
+
"description": "React frontend with Material-UI, Redux, React Hook Form",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
|
|
7
|
+
"techStack": [
|
|
8
|
+
"React 18+",
|
|
9
|
+
"React Router 6+",
|
|
10
|
+
"Material-UI v5",
|
|
11
|
+
"Semantic UI",
|
|
12
|
+
"Redux",
|
|
13
|
+
"Redux Saga",
|
|
14
|
+
"React Hook Form",
|
|
15
|
+
"Highcharts",
|
|
16
|
+
"Axios",
|
|
17
|
+
"Jest",
|
|
18
|
+
"Testing Library"
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
"fileExtensions": [
|
|
22
|
+
".js",
|
|
23
|
+
".jsx",
|
|
24
|
+
".ts",
|
|
25
|
+
".tsx",
|
|
26
|
+
".css",
|
|
27
|
+
".scss",
|
|
28
|
+
".html"
|
|
29
|
+
],
|
|
30
|
+
|
|
31
|
+
"focusAreas": [
|
|
32
|
+
"Component design and reusability",
|
|
33
|
+
"React hooks best practices",
|
|
34
|
+
"State management patterns",
|
|
35
|
+
"Performance optimization (memoization, lazy loading)",
|
|
36
|
+
"XSS prevention and input sanitization",
|
|
37
|
+
"Accessibility (a11y)",
|
|
38
|
+
"Responsive design",
|
|
39
|
+
"Error boundaries and error handling",
|
|
40
|
+
"Test coverage"
|
|
41
|
+
],
|
|
42
|
+
|
|
43
|
+
"templates": {
|
|
44
|
+
"analysis": "ANALYSIS_PROMPT.md",
|
|
45
|
+
"guidelines": "PRE_COMMIT_GUIDELINES.md",
|
|
46
|
+
"commitMessage": "../shared/COMMIT_MESSAGE.md",
|
|
47
|
+
"analyzeDiff": "../shared/ANALYZE_DIFF.md",
|
|
48
|
+
"resolution": "../shared/RESOLUTION_PROMPT.md"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"subagents": {
|
|
3
|
-
"batchSize": 4
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"subagents": {
|
|
3
|
+
"batchSize": 4
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fullstack",
|
|
3
|
-
"displayName": "Fullstack (Spring Boot + React)",
|
|
4
|
-
"description": "Full-stack application with Spring Boot backend and React frontend",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
|
|
7
|
-
"techStack": [
|
|
8
|
-
"Spring Boot 2.6+",
|
|
9
|
-
"JPA",
|
|
10
|
-
"SQL Server",
|
|
11
|
-
"Spring Security",
|
|
12
|
-
"JWT",
|
|
13
|
-
"React 18+",
|
|
14
|
-
"Material-UI v5",
|
|
15
|
-
"Redux",
|
|
16
|
-
"Maven",
|
|
17
|
-
"Jest",
|
|
18
|
-
"JUnit"
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
"fileExtensions": [
|
|
22
|
-
".java",
|
|
23
|
-
".xml",
|
|
24
|
-
".yml",
|
|
25
|
-
".yaml",
|
|
26
|
-
".js",
|
|
27
|
-
".jsx",
|
|
28
|
-
".ts",
|
|
29
|
-
".tsx",
|
|
30
|
-
".css",
|
|
31
|
-
".scss",
|
|
32
|
-
".html",
|
|
33
|
-
".sql"
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
"focusAreas": [
|
|
37
|
-
"API contract consistency between backend and frontend",
|
|
38
|
-
"Data flow from database through API to UI",
|
|
39
|
-
"Authentication and authorization across layers",
|
|
40
|
-
"Error handling consistency",
|
|
41
|
-
"Security vulnerabilities (OWASP, XSS)",
|
|
42
|
-
"Performance optimization (backend queries, frontend rendering)",
|
|
43
|
-
"Type safety (DTOs match API contracts)",
|
|
44
|
-
"Cross-layer testing"
|
|
45
|
-
],
|
|
46
|
-
|
|
47
|
-
"templates": {
|
|
48
|
-
"analysis": "ANALYSIS_PROMPT.md",
|
|
49
|
-
"guidelines": "PRE_COMMIT_GUIDELINES.md",
|
|
50
|
-
"consistency": "CONSISTENCY_CHECKS.md",
|
|
51
|
-
"commitMessage": "../shared/COMMIT_MESSAGE.md",
|
|
52
|
-
"analyzeDiff": "../shared/ANALYZE_DIFF.md",
|
|
53
|
-
"resolution": "../shared/RESOLUTION_PROMPT.md"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "fullstack",
|
|
3
|
+
"displayName": "Fullstack (Spring Boot + React)",
|
|
4
|
+
"description": "Full-stack application with Spring Boot backend and React frontend",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
|
|
7
|
+
"techStack": [
|
|
8
|
+
"Spring Boot 2.6+",
|
|
9
|
+
"JPA",
|
|
10
|
+
"SQL Server",
|
|
11
|
+
"Spring Security",
|
|
12
|
+
"JWT",
|
|
13
|
+
"React 18+",
|
|
14
|
+
"Material-UI v5",
|
|
15
|
+
"Redux",
|
|
16
|
+
"Maven",
|
|
17
|
+
"Jest",
|
|
18
|
+
"JUnit"
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
"fileExtensions": [
|
|
22
|
+
".java",
|
|
23
|
+
".xml",
|
|
24
|
+
".yml",
|
|
25
|
+
".yaml",
|
|
26
|
+
".js",
|
|
27
|
+
".jsx",
|
|
28
|
+
".ts",
|
|
29
|
+
".tsx",
|
|
30
|
+
".css",
|
|
31
|
+
".scss",
|
|
32
|
+
".html",
|
|
33
|
+
".sql"
|
|
34
|
+
],
|
|
35
|
+
|
|
36
|
+
"focusAreas": [
|
|
37
|
+
"API contract consistency between backend and frontend",
|
|
38
|
+
"Data flow from database through API to UI",
|
|
39
|
+
"Authentication and authorization across layers",
|
|
40
|
+
"Error handling consistency",
|
|
41
|
+
"Security vulnerabilities (OWASP, XSS)",
|
|
42
|
+
"Performance optimization (backend queries, frontend rendering)",
|
|
43
|
+
"Type safety (DTOs match API contracts)",
|
|
44
|
+
"Cross-layer testing"
|
|
45
|
+
],
|
|
46
|
+
|
|
47
|
+
"templates": {
|
|
48
|
+
"analysis": "ANALYSIS_PROMPT.md",
|
|
49
|
+
"guidelines": "PRE_COMMIT_GUIDELINES.md",
|
|
50
|
+
"consistency": "CONSISTENCY_CHECKS.md",
|
|
51
|
+
"commitMessage": "../shared/COMMIT_MESSAGE.md",
|
|
52
|
+
"analyzeDiff": "../shared/ANALYZE_DIFF.md",
|
|
53
|
+
"resolution": "../shared/RESOLUTION_PROMPT.md"
|
|
54
|
+
}
|
|
55
|
+
}
|