#!/usr/bin/env python3 import json from pathlib import Path p = Path('queue/saved/1_20250912201250_4a1ed409.json') if not p.exists(): print('Saved file not found') raise SystemExit(1) notif = json.loads(p.read_text()) import sys from pathlib import Path # Ensure project root on sys.path for local imports sys.path.insert(0, str(Path(__file__).resolve().parents[1])) import logging import bsky # Initialize basic module logger used by bsky logging.basicConfig(level=logging.DEBUG) lg = logging.getLogger('bsky_debug') # Inject into module bsky.logger = lg # Per project policy: do not use fake atproto clients for debugging. # This script simply loads the saved notification and pretty-prints it # so the operator can run the real app (./scripts/run-app --test --once) # to reproduce with a real atproto client. import pprint print('\nLoaded notification (preview):') pprint.pprint(notif) print('\nTo reproduce with a real atproto client, run:') print(' ./scripts/run-app --test --once') print('This will connect using credentials from config.yaml and will NOT send posts when --test is used.')