precompact-hook-as-transcript-capture-safety-net

Registering transcript capture on both the Stop hook and PreCompact hook ensures intelligence is not lost in long sessions that get compacted before ending. PreCompact fires before context window compaction, capturing session knowledge that would be discarded. Both hooks share the same flush script with deduplication logic to handle double-fire scenarios in rapid stop+compact sequences.