32992834ee
- 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>
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
export type RuntimeQueryIdSnapshot = {
|
|
fetchedAt: string;
|
|
ttlMs: number;
|
|
ids: Record<string, string>;
|
|
discovery: {
|
|
pages: string[];
|
|
bundles: string[];
|
|
};
|
|
};
|
|
export type RuntimeQueryIdSnapshotInfo = {
|
|
snapshot: RuntimeQueryIdSnapshot;
|
|
cachePath: string;
|
|
ageMs: number;
|
|
isFresh: boolean;
|
|
};
|
|
export type RuntimeQueryIdsOptions = {
|
|
cachePath?: string;
|
|
ttlMs?: number;
|
|
fetchImpl?: typeof fetch;
|
|
};
|
|
export type RuntimeQueryIdStore = {
|
|
cachePath: string;
|
|
ttlMs: number;
|
|
getSnapshotInfo: () => Promise<RuntimeQueryIdSnapshotInfo | null>;
|
|
getQueryId: (operationName: string) => Promise<string | null>;
|
|
refresh: (operationNames: string[], opts?: {
|
|
force?: boolean;
|
|
}) => Promise<RuntimeQueryIdSnapshotInfo | null>;
|
|
clearMemory: () => void;
|
|
};
|
|
export declare function createRuntimeQueryIdStore(options?: RuntimeQueryIdsOptions): RuntimeQueryIdStore;
|
|
export declare const runtimeQueryIds: RuntimeQueryIdStore;
|
|
//# sourceMappingURL=runtime-query-ids.d.ts.map
|