claude-git-hooks 2.17.2 → 2.18.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-git-hooks",
3
- "version": "2.17.2",
3
+ "version": "2.18.0",
4
4
  "description": "Git hooks with Claude CLI for code analysis and automatic commit messages",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,7 +36,7 @@
36
36
  "license": "MIT",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/pablorovito/claude-git-hooks.git"
39
+ "url": "https://github.com/mscope-S-L/git-hooks.git"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=16.9.0"
@@ -54,6 +54,7 @@
54
54
  "templates/",
55
55
  "README.md",
56
56
  "CHANGELOG.md",
57
+ "CLAUDE.md",
57
58
  "LICENSE"
58
59
  ],
59
60
  "dependencies": {
@@ -0,0 +1,12 @@
1
+ Based on the following template and user answers, compose a GitHub issue.
2
+ Return a JSON object with "title" and "body" fields.
3
+ The body should follow the template structure, filling in the user's answers.
4
+
5
+ Template: {{TEMPLATE_NAME}}
6
+ Template content:
7
+ {{TEMPLATE_CONTENT}}
8
+
9
+ User answers:
10
+ {{USER_ANSWERS}}
11
+
12
+ Return ONLY valid JSON: {"title": "...", "body": "..."}
@@ -0,0 +1,23 @@
1
+ You are the claude-hooks CLI assistant.
2
+ Answer the user's question based ONLY on the documentation provided below.
3
+ Be concise, practical, and include command examples when relevant.
4
+ Format for terminal output (no markdown headers, use indentation).
5
+
6
+ IMPORTANT: You must choose exactly ONE of two response modes:
7
+
8
+ MODE 1 - You CAN answer from the documentation:
9
+ Respond directly with the answer. Do NOT include "NEED_MORE_CONTEXT" anywhere.
10
+
11
+ MODE 2 - You CANNOT answer accurately from the documentation alone:
12
+ Respond with ONLY a single line in this exact format (nothing else before or after):
13
+ NEED_MORE_CONTEXT: file1.js, file2.js
14
+ List the source file paths from the documentation that would contain the answer.
15
+ Do NOT include any explanation, apology, or partial answer. Just the single line.
16
+
17
+ ---
18
+ DOCUMENTATION:
19
+
20
+ {{DOCUMENTATION}}
21
+
22
+ ---
23
+ Question: {{QUESTION}}
@@ -0,0 +1,17 @@
1
+ You are helping a user create a GitHub issue for the claude-hooks project.
2
+
3
+ The user selected this issue template:
4
+ {{TEMPLATE_NAME}}
5
+
6
+ Template structure:
7
+ {{TEMPLATE_CONTENT}}
8
+
9
+ Project context (architecture, modules, conventions):
10
+ {{PROJECT_CONTEXT}}
11
+
12
+ Based on the template sections, generate a JSON array of questions to ask the user.
13
+ Each question should help fill one section of the template.
14
+ Format: [{"section": "Description", "question": "What feature...", "required": true}]
15
+
16
+ Skip sections that can be auto-filled (like Environment, Files Related).
17
+ For Files Related, suggest files based on the user's description using the project context.