Files
OmniRoute/open-sse/services/sessionPool/index.ts
oyi77 a365706d65 feat: add pool support to DuckDuckGo Web and LLM7 providers
- duckduckgo-web.ts: Add poolConfig (2-5 sessions, 1s cooldown)
- providerRegistry.ts: Add poolConfig field to RegistryEntry type, configure for llm7
- default.ts: Read poolConfig from registry in constructor

DuckDuckGo Web now uses pool for VQD token rotation.
LLM7.io now uses pool with 2s cooldown for its 1 req/s rate limit.
2026-05-31 07:05:21 -03:00

29 lines
829 B
TypeScript

/**
* Session Pool — Barrel exports
*
* Usage:
* import { SessionPool, Session, FingerprintRotator, SessionFactory, withSessionPool } from "./sessionPool/index.ts";
* import type { PoolConfig, PoolStats, PoolSessionDetail } from "./sessionPool/types.ts";
*/
export { Session } from "./session.ts";
export { SessionPool } from "./sessionPool.ts";
export { SessionFactory } from "./sessionFactory.ts";
export { FingerprintRotator } from "./fingerprintRotator.ts";
export { withSessionPool } from "./webExecutorWrapper.ts";
export { PoolRegistry } from "./poolRegistry.ts";
export type {
Fingerprint,
SessionState,
SessionResult,
PoolConfig,
PoolStats,
PoolSessionDetail,
WebExecutorFn,
WebExecutorRequest,
WebExecutorResponse,
} from "./types.ts";
export { DEFAULT_POOL_CONFIG } from "./types.ts";