lefthook 2.1.9 → 2.1.10

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 (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +11 -11
  3. package/schema.json +39 -1
package/README.md CHANGED
@@ -22,13 +22,13 @@ A Git hooks manager for Node.js, Ruby, Python and many other types of projects.
22
22
  With **Go** (>= 1.26):
23
23
 
24
24
  ```bash
25
- go install github.com/evilmartians/lefthook/v2@v2.1.9
25
+ go install github.com/evilmartians/lefthook/v2@v2.1.10
26
26
  ```
27
27
 
28
28
  * or as a go tool
29
29
 
30
30
  ```bash
31
- go get -tool github.com/evilmartians/lefthook/v2@v2.1.9
31
+ go get -tool github.com/evilmartians/lefthook/v2@v2.1.10
32
32
  ```
33
33
 
34
34
  With **NPM**:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lefthook",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Simple git hooks manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "homepage": "https://github.com/evilmartians/lefthook#readme",
30
30
  "optionalDependencies": {
31
- "lefthook-darwin-arm64": "2.1.9",
32
- "lefthook-darwin-x64": "2.1.9",
33
- "lefthook-linux-arm64": "2.1.9",
34
- "lefthook-linux-x64": "2.1.9",
35
- "lefthook-freebsd-arm64": "2.1.9",
36
- "lefthook-freebsd-x64": "2.1.9",
37
- "lefthook-openbsd-arm64": "2.1.9",
38
- "lefthook-openbsd-x64": "2.1.9",
39
- "lefthook-windows-arm64": "2.1.9",
40
- "lefthook-windows-x64": "2.1.9"
31
+ "lefthook-darwin-arm64": "2.1.10",
32
+ "lefthook-darwin-x64": "2.1.10",
33
+ "lefthook-linux-arm64": "2.1.10",
34
+ "lefthook-linux-x64": "2.1.10",
35
+ "lefthook-freebsd-arm64": "2.1.10",
36
+ "lefthook-freebsd-x64": "2.1.10",
37
+ "lefthook-openbsd-arm64": "2.1.10",
38
+ "lefthook-openbsd-x64": "2.1.10",
39
+ "lefthook-windows-arm64": "2.1.10",
40
+ "lefthook-windows-x64": "2.1.10"
41
41
  },
42
42
  "scripts": {
43
43
  "postinstall": "node postinstall.js"
package/schema.json CHANGED
@@ -2,6 +2,40 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://json.schemastore.org/lefthook.json",
4
4
  "$defs": {
5
+ "AI": {
6
+ "properties": {
7
+ "claude": {
8
+ "additionalProperties": {
9
+ "type": "string"
10
+ },
11
+ "type": "object",
12
+ "description": "Claude Code hook mappings (event name -\u003e lefthook hook name). Generates .claude/settings.json."
13
+ },
14
+ "codex": {
15
+ "additionalProperties": {
16
+ "type": "string"
17
+ },
18
+ "type": "object",
19
+ "description": "Codex CLI hook mappings (event name -\u003e lefthook hook name). Generates .codex/hooks.json."
20
+ },
21
+ "cursor": {
22
+ "additionalProperties": {
23
+ "type": "string"
24
+ },
25
+ "type": "object",
26
+ "description": "Cursor hook mappings (event name -\u003e lefthook hook name). Generates .cursor/hooks.json."
27
+ },
28
+ "copilot": {
29
+ "additionalProperties": {
30
+ "type": "string"
31
+ },
32
+ "type": "object",
33
+ "description": "Copilot hooks mapping. Generates .github/hooks/lefthook.json."
34
+ }
35
+ },
36
+ "additionalProperties": false,
37
+ "type": "object"
38
+ },
5
39
  "Command": {
6
40
  "properties": {
7
41
  "run": {
@@ -497,7 +531,7 @@
497
531
  "type": "object"
498
532
  }
499
533
  },
500
- "$comment": "Last updated on 2026.05.17.",
534
+ "$comment": "Last updated on 2026.07.03.",
501
535
  "properties": {
502
536
  "min_version": {
503
537
  "type": "string",
@@ -592,6 +626,10 @@
592
626
  "type": "object",
593
627
  "description": "Custom templates for replacements in run commands."
594
628
  },
629
+ "ai": {
630
+ "$ref": "#/$defs/AI",
631
+ "description": "LLM agent hook integration. Generates provider-specific settings files during lefthook install."
632
+ },
595
633
  "$schema": {
596
634
  "type": "string"
597
635
  },