Skip to content

v2.1.0 — standalone CLI on npm

Choose a tag to compare

@gregmos gregmos released this 27 May 12:05
· 3 commits to main since this release

What's new

Standalone CLI on npm

`pii-shield` is now installable as a global npm package:

```bash
npm install -g pii-shield
pii-shield doctor
pii-shield install-model # one-off ~634 MB GLiNER download
pii-shield anonymize contract.pdf
```

Same engine, same `~/.pii_shield/` data layout, same session format as the MCP server — anonymize on the CLI, deanonymize from Claude Desktop, or vice versa. Requires Node 22+.

Full CLI manual: `cli/USAGE.md`.

Engine swap — @adeu/core for tracked-changes redline

Swapped `@ansonlai/docx-redline-js` for `@adeu/core` as the .docx tracked-changes writer. Cleaner revision marks in `deanonymize_docx` output.

Review-store cache invalidation across processes

CLI `pii-shield review` and the MCP `start_review` panel share the same session store under `~/.pii_shield/mappings/`. The in-memory review cache now detects when another process has rewritten the session file and reloads — so opening the same session from both sides no longer shows stale state.

Install (Claude Desktop / Claude Code)

Platform Asset
Windows / Linux `pii-shield-v2.1.0-windows-linux.mcpb`
macOS (arm64 + x64) `pii-shield-v2.1.0-macos.mcpb`
Skill (any OS) `pii-contract-analyze.skill`

Drop the `.mcpb` into Settings → Extensions → Advanced Settings → Install extension, then upload the `.skill` via Customize → Skills → Upload.

Full setup guide: repo README.