You are right, and I (and claude) addressed these issues.
authormkroemer <redacted>
Sat, 10 Jan 2026 08:21:33 +0000 (09:21 +0100)
committermkroemer <redacted>
Sat, 10 Jan 2026 10:20:42 +0000 (11:20 +0100)
commit2145da8b20117c632779768ef5fef12fe3352732
treee95894521ed2b5fcd464b81a046ea43d630fe2d5
parent1b8cd6b6714241effcc0368c4780d95ab6a1b7ae
You are right, and I (and claude) addressed these issues.

1. Secrets redaction (proxy.ts):
   - Add per-part offset tracking to prevent partial secret leaks
   - Filter and adjust redaction positions for each text part
   - Fixes issue where 'sk-proj-' prefix could remain visible

2. PII masking (masking.ts):
   - Actually mask array content instead of returning original
   - Add per-part offset tracking for accurate entity positions
   - Properly handle multimodal arrays with text and images

3. Tests:
   - Add content.test.ts for text extraction utilities
   - Add multimodal.test.ts with integration tests
src/routes/proxy.ts
src/secrets/multimodal.test.ts [new file with mode: 0644]
src/services/masking.ts
src/utils/content.test.ts [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT