AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
fix(ui): suppress [TikTok] and [Apify] log lines in non-TTY mode
Matt Van Hornd7b354b2cf55
diff --git a/scripts/lib/apify_client_wrapper.py b/scripts/lib/apify_client_wrapper.pyindex ccce7e1c..b48f75e7 100644--- a/scripts/lib/apify_client_wrapper.py+++ b/scripts/lib/apify_client_wrapper.py@@ -59,8 +59,6 @@ def run_actor_sync(Returns:List of result dicts from the actor's default dataset"""- _log(f"Running actor {actor_id} (timeout={timeout_secs}s)")-run = client.actor(actor_id).call(run_input=run_input,timeout_secs=timeout_secs,@@ -72,12 +70,11 @@ def run_actor_sync(if max_items and len(items) > max_items:items = items[:max_items]-- _log(f"Actor {actor_id} returned {len(items)} items")return itemsdef _log(msg: str):- """Log to stderr."""- sys.stderr.write(f"[Apify] {msg}\n")- sys.stderr.flush()+ """Log to stderr (only in interactive terminals; spinner handles non-TTY)."""+ if sys.stderr.isatty():+ sys.stderr.write(f"[Apify] {msg}\n")+ sys.stderr.flush()diff --git a/scripts/lib/tiktok.py b/scripts/lib/tiktok.pyindex e479d197..8592ebd0 100644--- a/scripts/lib/tiktok.py+++ b/scripts/lib/tiktok.py@@ -128,9 +128,10 @@ def _extract_core_subject(topic: str) -> str:def _log(msg: str):- """Log to stderr."""- sys.stderr.write(f"[TikTok] {msg}\n")- sys.stderr.flush()+ """Log to stderr (only in interactive terminals; spinner handles non-TTY)."""+ if sys.stderr.isatty():+ sys.stderr.write(f"[TikTok] {msg}\n")+ sys.stderr.flush()def _parse_date(item: Dict[str, Any]) -> Optional[str]: