2026-04-16 05:11:23 +00:00
|
|
|
#!/usr/bin/env python3
|
2026-04-22 11:23:43 -04:00
|
|
|
"""Compatibility wrapper for the token budget tracker CLI.
|
2026-04-16 05:11:23 +00:00
|
|
|
|
2026-04-22 11:23:43 -04:00
|
|
|
Issue #622 asked for a `token-tracker.py` entrypoint. The maintained
|
|
|
|
|
implementation lives in `scripts/token_tracker.py`. Keep this thin shim so
|
|
|
|
|
operator docs and older calls continue to work.
|
|
|
|
|
"""
|
2026-04-16 05:11:23 +00:00
|
|
|
|
2026-04-22 11:23:43 -04:00
|
|
|
from pathlib import Path
|
|
|
|
|
import sys
|
2026-04-16 05:11:23 +00:00
|
|
|
|
2026-04-22 11:23:43 -04:00
|
|
|
SCRIPT_DIR = Path(__file__).resolve().parent
|
|
|
|
|
if str(SCRIPT_DIR) not in sys.path:
|
|
|
|
|
sys.path.insert(0, str(SCRIPT_DIR))
|
2026-04-16 05:11:23 +00:00
|
|
|
|
2026-04-22 11:23:43 -04:00
|
|
|
from token_tracker import main
|
2026-04-16 05:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
main()
|