cc-safety-net 0.7.1 → 0.8.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.
package/README.md CHANGED
@@ -164,11 +164,9 @@ Running both together provides defense-in-depth. Sandboxing handles unknown thre
164
164
  ```bash
165
165
  /plugin marketplace add kenryu42/cc-marketplace
166
166
  /plugin install safety-net@cc-marketplace
167
+ /reload-plugins
167
168
  ```
168
169
 
169
- > [!NOTE]
170
- > After installing the plugin, you need to restart your Claude Code for it to take effect.
171
-
172
170
  ### Claude Code Auto-Update
173
171
 
174
172
  1. Run `/plugin` → Select `Marketplaces` → Choose `cc-marketplace` → Enable auto-update
@@ -203,47 +201,18 @@ Install the cc-safety-net plugin in `~/.config/opencode/opencode.json` (or `.jso
203
201
  gemini extensions install https://github.com/kenryu42/gemini-safety-net
204
202
  ```
205
203
 
206
- > [!IMPORTANT]
207
- > You need to set the following settings in `.gemini/settings.json` to enable hooks:
208
- > ```json
209
- > {
210
- > "tools": {
211
- > "enableHooks": true
212
- > }
213
- > }
214
- > ```
215
-
216
204
  ---
217
205
 
218
206
  ### GitHub Copilot CLI Installation
219
207
 
220
- Safety Net supports GitHub Copilot CLI via its [hooks system](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-hooks).
221
-
222
- 1. **Create the hooks directory** in your repository:
223
-
224
- ```bash
225
- mkdir -p .github/hooks
226
- ```
227
-
228
- 2. **Create `.github/hooks/safety-net.json`**:
208
+ ```bash
209
+ /plugin install kenryu42/copilot-safety-net
210
+ ```
229
211
 
230
- ```json
231
- {
232
- "version": 1,
233
- "hooks": {
234
- "preToolUse": [
235
- {
236
- "type": "command",
237
- "bash": "npx -y cc-safety-net --copilot-cli",
238
- "cwd": ".",
239
- "timeoutSec": 15
240
- }
241
- ]
242
- }
243
- }
244
- ```
212
+ > [!NOTE]
213
+ > After installing the plugin, you need to restart your Copilot CLI for it to take effect.
245
214
 
246
- The hook will intercept bash commands and block destructive operations before they execute.
215
+ ---
247
216
 
248
217
  ## Status Line Integration
249
218
 
@@ -395,6 +364,7 @@ npx cc-safety-net explain --cwd /tmp "git status"
395
364
  |-----------------|-------------------|
396
365
  | git checkout -- files | Discards uncommitted changes permanently |
397
366
  | git checkout \<ref\> -- \<path\> | Overwrites working tree with ref version |
367
+ | git checkout \<ref\> \<path\> | May overwrite working tree when Git disambiguates ref vs pathspec |
398
368
  | git restore files | Discards uncommitted changes |
399
369
  | git restore --worktree | Explicitly discards working tree changes |
400
370
  | git reset --hard | Destroys all uncommitted changes |