@malcomsonbrothers/claude-code-permission-hook 0.1.0 → 0.1.1

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 +26 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -169,13 +169,20 @@ export OPENAI_BASE_URL=https://openrouter.ai/api/v1
169
169
  ## CLI Commands
170
170
 
171
171
  ```bash
172
- cc-approve permission # Handle PermissionRequest hook (reads stdin)
173
- cc-approve install # Add hook to Claude Code settings
174
- cc-approve uninstall # Remove hook from settings
175
- cc-approve config # Interactive configuration
176
- cc-approve doctor # Diagnose configuration and connectivity
177
- cc-approve clear-cache # Clear all cached decisions
178
- cc-approve status # Show current configuration
172
+ cc-approve permission # Handle PermissionRequest hook (reads stdin)
173
+ cc-approve install # Add hook to Claude Code settings
174
+ cc-approve uninstall # Remove hook from settings
175
+ cc-approve config # Interactive configuration
176
+ cc-approve config --model # Set LLM model without interactive setup
177
+ cc-approve doctor # Diagnose configuration and connectivity
178
+ cc-approve status # Show current configuration
179
+ cc-approve cache # View cached decisions for the current project
180
+ cc-approve cache --all # View cached decisions across all projects
181
+ cc-approve clear-cache # Clear all cached decisions
182
+ cc-approve clear-cache --deny-only # Clear only deny decisions
183
+ cc-approve clear-cache --allow-only # Clear only allow decisions
184
+ cc-approve clear-cache --key <hash> # Clear a specific entry by SHA256 key
185
+ cc-approve clear-cache --grep <str> # Clear entries matching a substring
179
186
  ```
180
187
 
181
188
  ## Caching Behavior
@@ -187,9 +194,20 @@ cc-approve status # Show current configuration
187
194
  - **Instant responses** for repeated operations
188
195
 
189
196
  ```bash
190
- # Clear cache if needed
197
+ # View cached decisions for this project
198
+ cc-approve cache
199
+
200
+ # View all cached decisions (paginated)
201
+ cc-approve cache --all --page 2 --per-page 10
202
+
203
+ # Clear all cached decisions
191
204
  cc-approve clear-cache
192
205
 
206
+ # Selectively clear cache
207
+ cc-approve clear-cache --deny-only
208
+ cc-approve clear-cache --grep "docker"
209
+ cc-approve clear-cache --key <sha256-hash>
210
+
193
211
  # Disable caching in config
194
212
  {
195
213
  "cache": {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@malcomsonbrothers/claude-code-permission-hook",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Intelligent auto-approval hook for Claude Code using PermissionRequest",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "cc-approve": "./bin/cc-approve.js"
9
+ "cc-approve": "bin/cc-approve.js"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc",
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "https://github.com/malcomsonbrothers/claude-code-permission-hook"
31
+ "url": "git+https://github.com/malcomsonbrothers/claude-code-permission-hook.git"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=18.0.0"