Adopt upstream multi-line formatting for chat-history.js and
tests/chat-history.mjs. Also brings in upstream .gitignore,
settleExtractionStatusAfterHistoryRecovery null-safety fix,
and getSmartTriggerDecision index-aware extraction filtering.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>