Skip to content

v1.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Jul 22:11
· 145 commits to main since this release

prompt-scrub v1.0.2

What's changed

Patch release — dev-dependency and CI maintenance only. No public-API or runtime changes.

  • @biomejs/biome^2.5.1^2.5.2 (devDependency, via dependabot). Resolves the CLI/schema version warning at lint time (CLI 2.5.3 was reporting that the configured 2.5.1 schema was stale).
  • ava^5.3.1^8.0.1 (devDependency, via dependabot). Bumps the test-runner major; no test-suite changes were needed.
  • knip^6.23.0^6.25.0 (devDependency, via dependabot). No findings change.
  • GitHub Actions — bumps via dependabot:
    • actions/checkout 47
    • pnpm/action-setup 46
    • actions/setup-node 46
    • actions/github-script 79

Installation

npm install -g @nanocollective/prompt-scrub

CLI usage

# Inspect a prompt before sending (recommended first step)
echo "My email is alice@example.com" | prompt-scrub inspect

# Scrub a prompt
echo "My email is alice@example.com" | prompt-scrub scrub

# Rehydrate a response
echo "Contact Email_1 for details." | prompt-scrub rehydrate --session-id <id>

Library usage

import { scrub, rehydrate } from "@nanocollective/prompt-scrub";

const { scrubbedContent, sessionId } = scrub({ content: prompt });
// send scrubbedContent to LLM...
const { content } = rehydrate({ content: response, sessionId });

Full changelog