这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@homanp
Copy link
Collaborator

@homanp homanp commented Oct 1, 2025

Description

This pull request introduces enhancements to the Superagent CLI and SDK to support automated redaction of sensitive data (PII/PHI) for compliance, improves output formatting, and upgrades dependencies. The most important changes are grouped below.

Redaction Feature and CLI Enhancements:

  • Added a --redacted flag to the CLI (guardCommand in cli/src/commands/guard.ts) to enable redaction of sensitive data (PII/PHI) in prompts. When enabled, the CLI uses the new redaction feature in the SDK. [1] [2]
  • CLI output format updated to JSON, matching the SDK response structure, including the new redacted field when redaction is enabled.

SDK Redaction Support:

  • Upgraded the superagent-ai dependency to v0.0.7 in both cli/package.json and cli/package-lock.json, enabling new redaction capabilities. [1] [2] [3]
  • The SDK now supports a redacted option in createGuard() for automatic PII/PHI redaction, and the GuardResult response includes a redacted field containing the sanitized prompt.

Documentation and Versioning:

  • Added a CHANGELOG.md documenting all notable changes, including the new redaction feature, output format improvements, and compliance-focused enhancements for SOC2, HIPAA, and GDPR.
  • Bumped CLI version to 0.0.5 to reflect new features and dependency updates.

Related Issue

Fixes #1045

Checklist

  • I tested my changes
  • I reviewed my own code

@homanp homanp self-assigned this Oct 1, 2025
@homanp homanp changed the title Feat/add redaction support to cli feat: add redaction support to cli Oct 1, 2025
@homanp homanp merged commit 398bd13 into main Oct 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add --redact flag to CLI

2 participants