Skip to content

Add AWS Comprehend PII redaction utility#571

Open
Jorel97 wants to merge 1 commit into
arakoodev:tsfrom
Jorel97:codex/aws-comprehend-redactor-290
Open

Add AWS Comprehend PII redaction utility#571
Jorel97 wants to merge 1 commit into
arakoodev:tsfrom
Jorel97:codex/aws-comprehend-redactor-290

Conversation

@Jorel97
Copy link
Copy Markdown

@Jorel97 Jorel97 commented May 29, 2026

/claim #290

Summary

  • Added AWSComprehendClient with AWS SigV4-signed DetectPiiEntities requests and env/constructor credential support.
  • Added AWSComprehendRedactor helpers for direct text redaction, message/prompt option redaction, chat endpoint wrapping, text mapping, and stream redaction.
  • Exported the new Comprehend API from @arakoodev/edgechains.js/ai.
  • Added mocked Vitest coverage and a runnable Jsonnet example for prompt redaction without needing AWS credentials.

Demo

https://github.com/Jorel97/bounty-demo-assets/raw/main/edgechains/edgechains-290-demo.mp4

Validation

  • npx tsc -b
  • npx vitest run src/ai/src/tests/comprehend/comprehend.test.ts
  • npm run dev from JS/edgechains/examples/aws-comprehend-redaction

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Jorel97
Copy link
Copy Markdown
Author

Jorel97 commented May 29, 2026

I have read the Arakoo CLA Document and I hereby sign the CLA

@Jorel97
Copy link
Copy Markdown
Author

Jorel97 commented May 29, 2026

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant