Skip to content

Releases: TeamNickHart/receipt2sheet

v0.2.0 — PII Redaction & Hardening

Choose a tag to compare

@nickhart nickhart released this 19 May 06:40

What's New

Automatic PII Redaction

Credit card numbers (Luhn-validated), SSNs, routing numbers, and bank account numbers are automatically stripped from extracted text before sending to the Claude API. Image/PDF vision paths send binary data and cannot be text-redacted — this limitation is documented.

Preview what gets redacted on your own receipts:

npx tsx scripts/preview-redaction.ts inbox/*.pdf

Critical Bug Fixes

  • Edit mode validation — user input now validated with Zod; rejects NaN amounts, invalid dates, bad categories
  • Crash fix — removed non-null assertions on optional receiptPath field
  • JSON.parse safety — malformed API responses and corrupted ledger files now throw actionable error messages
  • Impossible dates rejected — 2026-13-32 no longer passes schema validation

Hardening

  • Atomic ledger writes (temp file + rename) prevent corruption on crash
  • Error messages include phase context ([extracting text], [calling Claude API])
  • --property flag validated against config with warning on unknown values
  • Invalid R2S_MAX_FILE_SIZE_MB warns instead of silently falling back
  • Deduplicated slugify() and MODEL_ALIASES to shared modules
  • Removed dead vendor-cache code

Tests: 130 → 144

New tests for PII redaction (38), date validation, corrupted ledger recovery, invalid API JSON, error phase context, and unknown property warnings.

Full Changelog: v0.1.0...v0.2.0

v0.1.0 — Phase 1 MVP

Choose a tag to compare

@nickhart nickhart released this 18 May 05:25

What's included

Turn rental receipts into Schedule E line items using Claude AI.

Features

  • r2s init — Set up a new rental property folder with config, templates, and directory structure
  • r2s process — Parse receipts from inbox using Claude AI, with interactive confirmation
  • r2s doctor — Check setup, API connection, and project health (with --fix to auto-repair)
  • Schedule E categories — Expense categories match IRS rental property deductions
  • Capital vs Operating — Automatically routes major purchases to Capital Improvements spreadsheet
  • Confirm invoices only — Option to skip $0 entries during confirmation
  • Multi-property support — Track multiple rentals with --property flag
  • PDF + image support — Text extraction for PDFs, native document upload for scanned files, vision API for images

Privacy

  • All spreadsheets stay local
  • No telemetry or analytics
  • Open source (MIT)

See PRIVACY.md and ROADMAP.md for details on data handling and what's next.