@a16njs/glob-hook 0.1.0 → 0.3.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 +4 -21
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
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
+
3
5
  CLI tool for glob-based file path matching in Claude Code hooks. Part of the [a16n](https://github.com/texarkanine/a16n) project.
4
6
 
5
7
  ## Why This Package?
@@ -96,29 +98,10 @@ Always outputs `{}` (empty object) and logs errors to stderr. This ensures hook
96
98
 
97
99
  Patterns use [micromatch](https://github.com/micromatch/micromatch) syntax with `dot: true` (matches dotfiles).
98
100
 
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
101
  ## Requirements
110
102
 
111
103
  - Node.js >= 18.0.0
112
104
 
113
- ## Development
105
+ ## Documentation
114
106
 
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
- ```
107
+ 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.1.0",
3
+ "version": "0.3.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",
@@ -41,6 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@types/micromatch": "^4.0.9",
43
43
  "@types/node": "^20.0.0",
44
+ "tsx": "^4.19.0",
44
45
  "typescript": "^5.4.0",
45
46
  "vitest": "^2.0.0"
46
47
  },