cc-safety-net 2.4.2 → 2.4.4
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 +3 -1
- package/dist/amp/cc-safety-net/index.ts +41 -41
- package/dist/api.js +1 -1
- package/dist/bin/hook.js +40 -40
- package/dist/chunks/index-q7q195qc.js +2 -0
- package/dist/chunks/{index-jfmgn339.js → index-sxtcjq8b.js} +4 -4
- package/dist/chunks/index-vas3sm16.js +45 -0
- package/dist/cli.js +113 -113
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -1
- package/dist/openclaw/cc-safety-net/index.js +41 -41
- package/dist/openclaw/cc-safety-net/openclaw.plugin.json +1 -1
- package/dist/openclaw/cc-safety-net/package.json +1 -1
- package/dist/opencode-v2.d.ts +3 -0
- package/dist/pi/index.js +2 -2
- package/package.json +16 -4
- package/dist/chunks/index-409cdnva.js +0 -2
- package/dist/chunks/index-pmd634p1.js +0 -45
package/README.md
CHANGED
|
@@ -87,6 +87,8 @@ npx -y cc-safety-net@latest update
|
|
|
87
87
|
|
|
88
88
|
Keep the `@latest` qualifier. A bare `cc-safety-net` spec can run an older copy from the npx cache. To uninstall, run `npx -y cc-safety-net uninstall`. `npm install -g cc-safety-net` also installs the `ccsn` alias.
|
|
89
89
|
|
|
90
|
+
OpenCode integration supports v1.18.29+ and v2.0.6+. Run `npx -y cc-safety-net@latest install --opencode`; the installer selects the host's plugin commands. See [OpenCode compatibility](docs/opencode-compatibility.md) for v2 shell configuration and host limitations.
|
|
91
|
+
|
|
90
92
|
## Safety presets
|
|
91
93
|
|
|
92
94
|
To set a preset, run `npx cc-safety-net gui` and open Policy.
|
|
@@ -97,7 +99,7 @@ To set a preset, run `npx cc-safety-net gui` and open Policy.
|
|
|
97
99
|
| Strict | Standard, plus blocks dynamic or unparseable commands the analyzer cannot verify safely. Also blocks metadata-only discovery of built-in sensitive paths. Occasional false positives on advanced shell. |
|
|
98
100
|
| Paranoid | Strict, plus blocks `rm -rf` inside your project and interpreter one-liners. Expect friction; for untrusted agents or high-stakes repos. |
|
|
99
101
|
|
|
100
|
-
Linked-worktree mode relaxes only local discard. See [Modes](https://ccsafetynet.com/docs/configuration/modes).
|
|
102
|
+
Linked-worktree mode relaxes only local discard. Git discards inside a temp-root repository unrelated to the workspace are allowed like temp deletes (local discards only when that repository is a linked worktree), as is `git worktree remove --force` of an existing temp-root directory unrelated to the workspace. See [Modes](https://ccsafetynet.com/docs/configuration/modes).
|
|
101
103
|
|
|
102
104
|
## Diagnostics
|
|
103
105
|
|