AR
Add AWS Comprehend redactor utility
arakoodev/EdgeChains#540

Summary

/claim #290

This PR adds a focused AWS Comprehend PII redaction utility for the JS SDK:

  • adds AWSComprehendRedactor with a Comprehend-compatible client interface
  • supports direct text redaction for prompt strings and chat message content
  • provides chainEndpoint() so existing endpoint-style chat() calls can be wrapped after redaction
  • provides an Observable-like mapping helper for pipeline-style usage
  • exports the redactor and related types from the AI package
  • adds mocked Vitest coverage for redaction and endpoint chaining
  • adds a Jsonnet-driven aws-comprehend-redaction example

Validation

  • node node_modules/vitest/vitest.mjs run src/ai/src/tests/aws-comprehend/comprehend-redactor.test.ts
  • node node_modules/typescript/bin/tsc -b

Note: the example uses a mock Comprehend-compatible client so maintainers can run it without AWS credentials; production callers can pass a real AWS Comprehend adapter implementing detectPiiEntities().

Claim

Total prize pool $75
Total paid $0
Status Pending
Submitted May 22, 2026
Last updated May 22, 2026

Contributors

GE

gebibd00-jpg

@gebibd00-jpg

100%

Sponsors

AR

Arakoo.ai

@arakoodev

$25
GI

gittare

@gittare

$50