@a16njs/glob-hook 0.2.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.
- package/README.md +4 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @a16njs/glob-hook
|
|
2
2
|
|
|
3
|
+
[](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
|
-
##
|
|
105
|
+
## Documentation
|
|
114
106
|
|
|
115
|
-
|
|
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>.
|