AR

Summary:

  • Adds ComprehendRedactor to the JS SDK AI package using @aws-sdk/client-comprehend.
  • Supports direct PII detection/redaction, wrapChat() for existing LLM endpoints, and Observable-style subscribe() / pipe() helpers for chainable redaction flows.
  • Exports the helper and related option/result/observable types from @arakoodev/edgechains.js/ai.
  • Adds mocked Vitest coverage under src/ai/src/testcases/comprehend, including direct redaction, endpoint wrapping, and Observable-style chaining.
  • Adds an aws-comprehend-redaction example with AWS environment setup notes.

Verification:

  • node node_modules\vitest\vitest.mjs run src/ai/src/testcases/comprehend/comprehendRedactor.test.ts — 7 tests passed
  • node node_modules\typescript\bin\tsc --noEmit --target ES2022 --module NodeNext --moduleResolution NodeNext --esModuleInterop --strict --skipLibCheck --types node src/ai/src/lib/comprehend/comprehendRedactor.ts src/ai/src/testcases/comprehend/comprehendRedactor.test.ts
  • node node_modules\prettier\bin\prettier.cjs --check src/ai/src/lib/comprehend/comprehendRedactor.ts src/ai/src/testcases/comprehend/comprehendRedactor.test.ts src/ai/src/index.ts README.md ../examples/aws-comprehend-redaction/src/index.ts ../examples/aws-comprehend-redaction/README.md ../examples/aws-comprehend-redaction/package.json ../examples/aws-comprehend-redaction/tsconfig.json
  • git diff --check

Note:

  • Full project typecheck currently hits pre-existing repo issues unrelated to this change, including src/document-loader/src/lib/pdf-loader/pdfLoader.ts missing pdf-parse/lib/pdf-parse.js types and existing implicit-any errors in older AI modules.

/claim #290

Claim

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

Contributors

MU

MulaNele

@MulaNele

100%

Sponsors

AR

Arakoo.ai

@arakoodev

$25
GI

gittare

@gittare

$50