#!/usr/bin/env python3 """vetta — unified cross-platform CLI for the vetta.sh toolkit. One entry point that works identically on Windows, Linux and macOS. It resolves every sub-script relative to THIS file (so you can run it from any directory) and launches them with the same interpreter that runs vetta.py (respects your venv / pyenv / system python). Commands: vetta register [COUNT] [START] Mass autoreg -> accounts.jsonl (free, headless) vetta activate Fetch Stripe trial action_urls for inactive accts vetta trial-url [POOL] [IDX] Fetch one fresh trial action_url vetta check Pool status: ACTIVE ($10 trial) vs DEAD (402) vetta gateway OpenAI-compatible proxy on 127.0.0.1:8700 vetta bin [NET] [COUNT] [opts] Luhn test-card generator (see bin/cc_gen.py) vetta help This help Environment (all optional): VETTA_POOL accounts file (default: ./accounts.jsonl) VETTA_PW farm password (default: VettaFarm2026x) PORT gateway port (default: 8700) GW_KEY gateway access key (default: off) Examples: python vetta.py register 10 python vetta.py bin visa 5 --cvv PORT=9000 python vetta.py gateway """ import os, sys, subprocess REPO = os.path.dirname(os.path.abspath(__file__)) PY = sys.executable or "python3" # command -> (relative script path, passthrough args?) COMMANDS = { "register": ("autoreg.py", True), "activate": ("activate_all.py", True), "trial-url": ("trial_url.py", True), "check": ("check_pool.py", True), "gateway": ("gateway.py", True), "bin": (os.path.join("bin", "cc_gen.py"), True), } def _usage(): print((__doc__ or "vetta CLI").strip()) def main(argv): if not argv or argv[0] in ("-h", "--help", "help"): _usage() return 0 cmd = argv[0] rest = argv[1:] if cmd not in COMMANDS: print(f"unknown command: {cmd}\n", file=sys.stderr) _usage() return 2 script, _ = COMMANDS[cmd] path = os.path.join(REPO, script) if not os.path.exists(path): print(f"missing script: {path}", file=sys.stderr) return 2 # launch with the same interpreter; inherit env + stdio (cross-platform) try: return subprocess.call([PY, path] + rest, cwd=REPO) except KeyboardInterrupt: return 130 if __name__ == "__main__": sys.exit(main(sys.argv[1:]))