Merge PR #48: feat: add Xiaohongshu source + Reddit public fallback

- Xiaohongshu search via local MCP service (opt-in, zero impact if service not running)
- Reddit public JSON fallback (works with zero API keys)
- Reddit priority: ScrapeCreators -> OpenAI -> public fallback
- Updated env.py: Reddit always available via public fallback

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-03-07 16:11:35 -08:00
254 changed files with 18608 additions and 87 deletions
+27
View File
@@ -0,0 +1,27 @@
export type CursorPage<T> = {
success: true;
items: T[];
cursor?: string;
} | {
success: false;
error: string;
};
export type CursorPaginationResult<T> = {
success: true;
items: T[];
nextCursor?: string;
} | {
success: false;
error: string;
items?: T[];
nextCursor?: string;
};
export declare function paginateCursor<T>(opts: {
cursor?: string;
maxPages?: number;
pageDelayMs?: number;
sleep: (ms: number) => Promise<void>;
getKey: (item: T) => string;
fetchPage: (cursor?: string) => Promise<CursorPage<T>>;
}): Promise<CursorPaginationResult<T>>;
//# sourceMappingURL=paginate-cursor.d.ts.map