07c5f9a5c2
- New oracle/ package (11 modules) with unified CLI (python -m oracle) - Source tiers: Tier 1 (arxiv/github/hf), Tier 2 (rss/hn), Tier 3 (reddit) - Composite verdicts: PUBLISH/WATCH/ARCHIVE/DROP based on signal score + age - Content-hash dedup: SHA-256[:16] normalized, atomic at insert time - Multi-variant editions: 4 YAML configs (default/research/devops/brief) - Variant engine: filter → rank → render (HTML + JSON, themed) - Per-adapter timeout (10s) + threading fallback - Consolidated 12 root scripts → thin wrappers + oracle/ package - Archived stale scripts (_engagement, _live_compare, reddit_proof) - Updated .gitignore, README.md, schema.sql
18 lines
536 B
Python
18 lines
536 B
Python
#!/usr/bin/env python3
|
|
"""Thin wrapper — delegates to oracle.cli query subcommand."""
|
|
import sys, os
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
args = sys.argv[1:]
|
|
# Map old query commands to new CLI format
|
|
if args and args[0] in ("top", "search", "recent", "by-tag", "stats", "snapshot"):
|
|
cli_args = ["query"] + args
|
|
elif args and args[0].startswith("-"):
|
|
cli_args = ["query", "top"] + args
|
|
else:
|
|
cli_args = ["query", "top"] + args
|
|
|
|
from oracle.cli import main as cli_main
|
|
sys.argv = ["oracle"] + cli_args
|
|
cli_main()
|