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:
PsySlayer
2026-03-15 18:34:11 +02:00
parent 905677807e
commit 897db366a4
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -39,6 +39,7 @@ _parser.add_argument("--json", action="store_true",
help="Print only the JSON result, no human-readable output") help="Print only the JSON result, no human-readable output")
_args = _parser.parse_args() _args = _parser.parse_args()
if not _args.json:
print("Rotating Tor circuit...") print("Rotating Tor circuit...")
result = sicry.renew_identity() result = sicry.renew_identity()
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry # Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry
from __future__ import annotations from __future__ import annotations
__version__ = "1.2.2" __version__ = "1.2.3"
""" """
SICRY — Tor/Onion Network Access Layer for AI Agents SICRY — Tor/Onion Network Access Layer for AI Agents
+2 -2
View File
@@ -37,13 +37,12 @@ DEST = os.path.join(os.path.dirname(os.path.abspath(__file__)), "sicry.py")
def main(): def main():
parser = argparse.ArgumentParser(description="Sync bundled sicry.py from upstream SICRY™") 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("--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") parser.add_argument("--dry-run", action="store_true", help="print what would happen without writing")
args = parser.parse_args() args = parser.parse_args()
url = UPSTREAM_RAW.format(ref=args.tag) url = UPSTREAM_RAW.format(ref=args.tag)
print(f"Fetching {url} ...")
try: try:
r = requests.get(url, timeout=15) r = requests.get(url, timeout=15)
@@ -67,6 +66,7 @@ def main():
print(f"Error: HTTP {r.status_code} fetching {url}", file=sys.stderr) print(f"Error: HTTP {r.status_code} fetching {url}", file=sys.stderr)
sys.exit(1) sys.exit(1)
print(f"Fetching {url} ...")
new_content = r.text new_content = r.text
# Extract upstream version # Extract upstream version