shroud-privacy 2.0.13 → 2.0.14

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
@@ -174,12 +174,17 @@ Shroud registers tools that the LLM can call during conversations:
174
174
  | `shroud_status` | Quick stats: entity counts, session info, audit status (JSON) |
175
175
  | `shroud_reset` | Clear all mappings and start a fresh privacy session |
176
176
 
177
- You can also run the stats CLI directly:
177
+ You can also run the stats CLI from the terminal:
178
178
 
179
179
  ```bash
180
- shroud-stats # live rule table from running gateway
181
- shroud-stats --json # machine-readable JSON output
182
- shroud-stats --test "Contact john@acme.com" # test detection
180
+ node ~/.openclaw/extensions/shroud-privacy/scripts/shroud-stats.mjs # live rule table
181
+ node ~/.openclaw/extensions/shroud-privacy/scripts/shroud-stats.mjs --json # JSON output
182
+ node ~/.openclaw/extensions/shroud-privacy/scripts/shroud-stats.mjs --test "Contact john@acme.com"
183
+ ```
184
+
185
+ Tip: create an alias for convenience:
186
+ ```bash
187
+ alias shroud-stats="node ~/.openclaw/extensions/shroud-privacy/scripts/shroud-stats.mjs"
183
188
  ```
184
189
 
185
190
  The CLI reads live stats from `/tmp/shroud-stats.json` (override with `SHROUD_STATS_FILE` env var). The stats file is updated by the running gateway on every obfuscation event.
@@ -199,7 +204,7 @@ On subsequent loads, the patch is detected and skipped. To revert: restore the `
199
204
 
200
205
  Shroud tracks per-rule match counts for the lifetime of the process. Counters appear in three places:
201
206
 
202
- - **`shroud-stats` CLI** — run `node scripts/shroud-stats.mjs` to see all rules with status, confidence, and hit counts. Shows live cumulative stats from the running OpenClaw gateway via `/tmp/shroud-stats.json`. Use `--test "text with PII"` to test detection against sample input.
207
+ - **`shroud-stats` CLI** — see [Conversational tools](#conversational-tools) above for usage. Shows all rules with status, confidence, and hit counts from the running gateway.
203
208
  - **Audit log lines** — `byRule=regex:email:3,regex:ipv4:2,...` alongside the existing `byCat` field.
204
209
  - **`getStats()`** — the `ruleHits` object in the stats response, useful for programmatic access.
205
210
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "shroud-privacy",
3
3
  "name": "Shroud",
4
- "version": "2.0.13",
4
+ "version": "2.0.14",
5
5
  "description": "Privacy obfuscation with deterministic fake values and deobfuscation — PII never reaches the LLM, tool calls still work",
6
6
  "configSchema": {
7
7
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shroud-privacy",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "Privacy obfuscation plugin for OpenClaw — detects sensitive data and replaces with deterministic fake values",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",