Summary

  • add AwsComprehendRedactor and AwsComprehendClient to the JS AI package
  • redact PII with Amazon Comprehend before prompts are passed into existing endpoint calls
  • provide a small Observable-compatible prompt stream helper without adding RxJS or AWS SDK runtime dependencies
  • add focused tests with a mock Comprehend client
  • add a runnable example under JS/edgechains/examples/aws-comprehend-redaction

Why this approach

This keeps the SDK surface small and repo-aligned: no new runtime dependencies, no package-lock churn, and tests can run without AWS credentials. Real AWS calls are still supported through a SigV4-signed Comprehend JSON API client using Node built-in crypto/fetch.

Validation

  • npx.cmd vitest run src/ai/src/tests/awsComprehendRedactor.test.ts
  • npx.cmd tsc -b
  • ..\..\arakoodev\node_modules\.bin\tsc.cmd -p tsconfig.json –noEmit from JS/edgechains/examples/aws-comprehend-redaction
  • git diff –check

Note: npm run build currently calls rm -rf dist, which does not run under Windows PowerShell. I validated the underlying TypeScript build step directly with npx.cmd tsc -b.

/claim #290

Claim

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

Contributors

MT

mt211211

@mt211211

100%

Sponsors

AR

Arakoo.ai

@arakoodev

$25
GI

gittare

@gittare

$50