@a16njs/glob-hook 0.2.0 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +5 -21
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @a16njs/glob-hook
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@a16njs/glob-hook.svg)](https://www.npmjs.com/package/@a16njs/glob-hook)
4
+ [![codecov](https://codecov.io/gh/Texarkanine/a16n/graph/badge.svg?flag=glob-hook)](https://codecov.io/gh/Texarkanine/a16n)
5
+
3
6
  CLI tool for glob-based file path matching in Claude Code hooks. Part of the [a16n](https://github.com/texarkanine/a16n) project.
4
7
 
5
8
  ## Why This Package?
@@ -96,29 +99,10 @@ Always outputs `{}` (empty object) and logs errors to stderr. This ensures hook
96
99
 
97
100
  Patterns use [micromatch](https://github.com/micromatch/micromatch) syntax with `dot: true` (matches dotfiles).
98
101
 
99
- ## Integration with a16n
100
-
101
- This package is part of the a16n conversion pipeline. When converting Cursor FileRules to Claude:
102
-
103
- 1. a16n reads Cursor rules with glob patterns
104
- 2. For each rule, a16n generates:
105
- - A context file (`.a16n/rules/<name>.txt`)
106
- - A hook configuration using glob-hook
107
- 3. Claude hooks invoke glob-hook to match file patterns
108
-
109
102
  ## Requirements
110
103
 
111
104
  - Node.js >= 18.0.0
112
105
 
113
- ## Development
106
+ ## Documentation
114
107
 
115
- ```bash
116
- # Install dependencies
117
- pnpm install
118
-
119
- # Run tests
120
- pnpm --filter @a16njs/glob-hook test
121
-
122
- # Build
123
- pnpm --filter @a16njs/glob-hook build
124
- ```
108
+ Full documentation available at <https://texarkanine.github.io/a16n/glob-hook>.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a16njs/glob-hook",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "CLI tool for glob-based file path matching in Claude Code hooks",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "Texarkanine",
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/Texarkanine/a16n.git",
10
10
  "directory": "packages/glob-hook"
11
11
  },
12
- "homepage": "https://github.com/Texarkanine/a16n#readme",
12
+ "homepage": "https://texarkanine.github.io/a16n/glob-hook",
13
13
  "bugs": {
14
14
  "url": "https://github.com/Texarkanine/a16n/issues"
15
15
  },
@@ -53,6 +53,7 @@
53
53
  "clean": "rimraf dist *.tsbuildinfo",
54
54
  "typecheck": "tsc --noEmit",
55
55
  "test": "vitest run",
56
- "test:watch": "vitest"
56
+ "test:watch": "vitest",
57
+ "test:coverage": "vitest run --coverage"
57
58
  }
58
59
  }