From 87bf3debcc099faa0463826c21a86398398234ff Mon Sep 17 00:00:00 2001 From: Dave Morin Date: Wed, 29 Apr 2026 23:44:33 -0700 Subject: [PATCH 1/2] fix(planner): register xquik in SOURCE_CAPABILITIES (#319) Without this entry, the planner's _default_sources_for_intent() drops xquik from the candidate pool for how_to / comparison / news intents because SOURCE_CAPABILITIES.get("xquik", set()) returns the empty set. Users with XQUIK_API_KEY set get zero Xquik results even though the engine recognizes the key. Mirrors the capabilities for "x" since both are X/Twitter-shaped discussion + social sources. Fixes #319 --- skills/last30days/scripts/lib/planner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skills/last30days/scripts/lib/planner.py b/skills/last30days/scripts/lib/planner.py index 56fa4c4..287e867 100644 --- a/skills/last30days/scripts/lib/planner.py +++ b/skills/last30days/scripts/lib/planner.py @@ -60,6 +60,7 @@ INTENT_SOURCE_EXCLUSIONS: dict[str, set[str]] = { SOURCE_CAPABILITIES = { "reddit": {"discussion", "social"}, "x": {"discussion", "social"}, + "xquik": {"discussion", "social"}, "youtube": {"video", "video_longform", "discussion"}, "tiktok": {"video", "video_shortform", "social"}, "instagram": {"video", "video_shortform", "social"}, From 0ab7051bc5d1750187d2ce30e17ff619dccb7854 Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Sun, 17 May 2026 00:22:04 -0700 Subject: [PATCH 2/2] fix(planner): also register xquik in QUICK_SOURCE_PRIORITY --- skills/last30days/scripts/lib/planner.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/skills/last30days/scripts/lib/planner.py b/skills/last30days/scripts/lib/planner.py index 287e867..207d5c4 100644 --- a/skills/last30days/scripts/lib/planner.py +++ b/skills/last30days/scripts/lib/planner.py @@ -19,14 +19,14 @@ ALLOWED_INTENTS = { } ALLOWED_CLUSTER_MODES = {"none", "story", "workflow", "market", "debate"} QUICK_SOURCE_PRIORITY = { - "factual": ["hackernews", "reddit", "x", "youtube"], - "product": ["youtube", "reddit", "x", "tiktok"], - "concept": ["hackernews", "reddit", "x", "youtube"], - "opinion": ["reddit", "x", "youtube", "hackernews"], - "how_to": ["youtube", "reddit", "x", "hackernews"], - "comparison": ["reddit", "x", "hackernews", "youtube"], - "breaking_news": ["x", "reddit", "hackernews", "youtube", "polymarket"], - "prediction": ["polymarket", "x", "hackernews", "reddit", "youtube"], + "factual": ["hackernews", "reddit", "x", "xquik", "youtube"], + "product": ["youtube", "reddit", "x", "xquik", "tiktok"], + "concept": ["hackernews", "reddit", "x", "xquik", "youtube"], + "opinion": ["reddit", "x", "xquik", "youtube", "hackernews"], + "how_to": ["youtube", "reddit", "x", "xquik", "hackernews"], + "comparison": ["reddit", "x", "xquik", "hackernews", "youtube"], + "breaking_news": ["x", "xquik", "reddit", "hackernews", "youtube", "polymarket"], + "prediction": ["polymarket", "x", "xquik", "hackernews", "reddit", "youtube"], } SOURCE_PRIORITY = { "factual": ["hackernews", "reddit", "x", "youtube"],