← Commit history

Publish 1.3.1

Drew Owens ·594425dbc3 ·3mo ago ·parent 9d45d2a
4 files changed +27−4
bin/__pycache__/wiki-notify-gchatcpython-312.pyc
⋯ 1 unchanged line ⋯
bin/wiki-notify-gchat+25−2
@@ -115,6 +115,13 @@ def tzinfo_of(cfg):   def run_cmd(args, stdin_text=None):+    # cron runs with a bare PATH; resolve helper CLIs like adom-google explicitly+    import shutil+    if "/" not in args[0] and not shutil.which(args[0]):+        for d in (Path.home() / ".local" / "bin", Path("/usr/local/bin")):+            if (d / args[0]).exists():+                args = [str(d / args[0])] + list(args[1:])+                break     try:         p = subprocess.run(args, input=stdin_text, capture_output=True, text=True, timeout=120)         return p.returncode, p.stdout, p.stderr@@ -492,7 +499,12 @@ def ingest(cfg, state, query, sweep_mail=True, dry_run=False):         params = {"q": query, "maxResults": 100}         if page_token:             params["pageToken"] = page_token-        listing = gapi(f"{GMAIL}/messages", params=params)+        try:+            listing = gapi(f"{GMAIL}/messages", params=params)+        except Exception as e:+            errors.append(f"list: {e}")+            log_line(f"ERROR list {e}")+            break         for m in listing.get("messages", []) or []:             mid = m["id"]             if mid in state["processed"]:@@ -843,4 +855,15 @@ def main():   if __name__ == "__main__":-    main()+    try:+        main()+    except SystemExit:+        raise+    except KeyboardInterrupt:+        sys.exit(130)+    except Exception as e:+        log_line(f"ERROR unhandled {e}")+        emit(f"ERROR: unhandled: {e}")+        emit("Hint: run `wiki-notify-gchat health`; details logged to "+             f"{LOG_PATH}.")+        sys.exit(1)
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "wiki-notify-gchat",   "title": "Wiki Notify for Google Chat",   "type": "app",-  "version": "1.3.0",+  "version": "1.3.1",   "description": "Turn wiki.adom.inc notification emails into a live Google Chat board. One card, one row per issue - newest first, OPEN/CLOSED status, origination date, actor, and a View link - continuously updated in your own Chat space via your own webhook. Emails are swept out of your inbox (trash, archive, or label). Closed items linger until 6am the next day, then drop off. Delegates all auth to adom-google; the only secret is your webhook URL, kept in your private config.",   "tags": [     "cli",
page.json+1−1
@@ -2,7 +2,7 @@   "slug": "wiki-notify-gchat",   "title": "Wiki Notify for Google Chat",   "type": "app",-  "version": "1.3.0",+  "version": "1.3.1",   "description": "Turn wiki.adom.inc notification emails into a live Google Chat board. One card, one row per issue - newest first, OPEN/CLOSED status, origination date, actor, and a View link - continuously updated in your own Chat space via your own webhook. Emails are swept out of your inbox (trash, archive, or label). Closed items linger until 6am the next day, then drop off. Delegates all auth to adom-google; the only secret is your webhook URL, kept in your private config.",   "tags": [     "cli",