Skip to content

v0.2.0 — Opt-in file masking for CSV, JSON and project files

Latest

Choose a tag to compare

@PromptAudit-SaaS PromptAudit-SaaS released this 02 Dec 14:06
Immutable release. Only release title and notes can be modified.

Adds opt-in, read-only file tools and makes the restoration reference visible to text-only clients.

Added

  • mask_file and scan_file: one named UTF-8 file (up to 1 MB) below a single project directory. Off by default; both tools exist only when the server is started with --root <directory>. Links and outside paths are refused; nothing is written.
  • Cell-by-cell masking for CSV/TSV with a table-shape check, value-wise masking for JSON and JSON Lines, plain-text fallback reported as text.
  • scan_json: category counts for JSON string values.

Changed

  • mask_text and mask_json return the same JSON object (masked text, session_id, counts) in the text content and in structuredContent. 0.1.4 returned only the masked text in the text content. Clients that parse the text content need to read the masked field.
  • A masking result above 1 million characters and a restoration above 2 million output characters are refused.
  • Expired sessions are removed by a timer, not only on the next tool call (reference removal, not physical memory erasure).
  • Session references come from node:crypto, so masking works on plain Node 18.
  • scan --staged also selects staged type changes.

Evidence: CI on Node 22 and 24, 197 tests each, zero failures and zero skips, including all 14 real Git fixtures (run 46898533548). Fictional data only.

Boundaries: masking requires explicit tool or CLI calls and does not intercept a client's own file reads; values the patterns do not recognise stay unmasked; restoration returns originals to the caller. PDF, Office documents and images are not supported. Windows, macOS and installed AI clients were not exercised with this version.

This release starts the npm publication workflow. npm artifact verification and the MCP Registry update are separate follow-up checks recorded in RELEASE.md.