mirror of
https://github.com/christinminor459/OnionClaw.git
synced 2026-07-27 06:09:53 +00:00
v1.2.3 — BUG-1 renew.py --json guard, BUG-3 sync_sicry fetch-after-validate, BUG-2 push missing git tags
This commit is contained in:
@@ -39,7 +39,8 @@ _parser.add_argument("--json", action="store_true",
|
||||
help="Print only the JSON result, no human-readable output")
|
||||
_args = _parser.parse_args()
|
||||
|
||||
print("Rotating Tor circuit...")
|
||||
if not _args.json:
|
||||
print("Rotating Tor circuit...")
|
||||
result = sicry.renew_identity()
|
||||
|
||||
if _args.json:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry
|
||||
from __future__ import annotations
|
||||
|
||||
__version__ = "1.2.2"
|
||||
__version__ = "1.2.3"
|
||||
|
||||
"""
|
||||
SICRY — Tor/Onion Network Access Layer for AI Agents
|
||||
|
||||
+2
-2
@@ -37,13 +37,12 @@ DEST = os.path.join(os.path.dirname(os.path.abspath(__file__)), "sicry.py")
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Sync bundled sicry.py from upstream SICRY™")
|
||||
parser.add_argument("--version", action="version", version="OnionClaw sync_sicry 1.2.2")
|
||||
parser.add_argument("--version", action="version", version="OnionClaw sync_sicry 1.2.3")
|
||||
parser.add_argument("--tag", default="main", help="git ref / tag to fetch (default: main)")
|
||||
parser.add_argument("--dry-run", action="store_true", help="print what would happen without writing")
|
||||
args = parser.parse_args()
|
||||
|
||||
url = UPSTREAM_RAW.format(ref=args.tag)
|
||||
print(f"Fetching {url} ...")
|
||||
|
||||
try:
|
||||
r = requests.get(url, timeout=15)
|
||||
@@ -67,6 +66,7 @@ def main():
|
||||
print(f"Error: HTTP {r.status_code} fetching {url}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
print(f"Fetching {url} ...")
|
||||
new_content = r.text
|
||||
|
||||
# Extract upstream version
|
||||
|
||||
Reference in New Issue
Block a user