Cameron's void repo torn apart for local testing
1#!/usr/bin/env python3
2import json
3from pathlib import Path
4
5p = Path('queue/saved/1_20250912201250_4a1ed409.json')
6if not p.exists():
7 print('Saved file not found')
8 raise SystemExit(1)
9
10notif = json.loads(p.read_text())
11
12import sys
13from pathlib import Path
14
15# Ensure project root on sys.path for local imports
16sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
17import logging
18
19import bsky
20
21# Initialize basic module logger used by bsky
22logging.basicConfig(level=logging.DEBUG)
23lg = logging.getLogger('bsky_debug')
24# Inject into module
25bsky.logger = lg
26
27# Per project policy: do not use fake atproto clients for debugging.
28# This script simply loads the saved notification and pretty-prints it
29# so the operator can run the real app (./scripts/run-app --test --once)
30# to reproduce with a real atproto client.
31
32import pprint
33
34print('\nLoaded notification (preview):')
35pprint.pprint(notif)
36print('\nTo reproduce with a real atproto client, run:')
37print(' ./scripts/run-app --test --once')
38print('This will connect using credentials from config.yaml and will NOT send posts when --test is used.')
39