leapfrog-mcp 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adaptive-wait.d.ts +72 -0
- package/dist/adaptive-wait.js +695 -0
- package/dist/api-intelligence.d.ts +82 -0
- package/dist/api-intelligence.js +575 -0
- package/dist/captcha-solver.d.ts +26 -0
- package/dist/captcha-solver.js +547 -0
- package/dist/cdp-connector.d.ts +33 -0
- package/dist/cdp-connector.js +176 -0
- package/dist/consent-dismiss.d.ts +33 -0
- package/dist/consent-dismiss.js +358 -0
- package/dist/crash-recovery.d.ts +74 -0
- package/dist/crash-recovery.js +242 -0
- package/dist/domain-knowledge.d.ts +149 -0
- package/dist/domain-knowledge.js +449 -0
- package/dist/harness-intelligence.d.ts +65 -0
- package/dist/harness-intelligence.js +432 -0
- package/dist/humanize-fingerprint.d.ts +42 -0
- package/dist/humanize-fingerprint.js +161 -0
- package/dist/humanize-mouse.d.ts +95 -0
- package/dist/humanize-mouse.js +275 -0
- package/dist/humanize-pause.d.ts +48 -0
- package/dist/humanize-pause.js +111 -0
- package/dist/humanize-scroll.d.ts +67 -0
- package/dist/humanize-scroll.js +185 -0
- package/dist/humanize-typing.d.ts +60 -0
- package/dist/humanize-typing.js +258 -0
- package/dist/humanize-utils.d.ts +62 -0
- package/dist/humanize-utils.js +100 -0
- package/dist/intervention.d.ts +65 -0
- package/dist/intervention.js +591 -0
- package/dist/logger.d.ts +13 -0
- package/dist/logger.js +47 -0
- package/dist/network-intelligence.d.ts +70 -0
- package/dist/network-intelligence.js +424 -0
- package/dist/page-classifier.d.ts +33 -0
- package/dist/page-classifier.js +1000 -0
- package/dist/paginate.d.ts +42 -0
- package/dist/paginate.js +693 -0
- package/dist/recording.d.ts +72 -0
- package/dist/recording.js +934 -0
- package/dist/script-executor.d.ts +31 -0
- package/dist/script-executor.js +249 -0
- package/dist/session-hud.d.ts +20 -0
- package/dist/session-hud.js +134 -0
- package/dist/snapshot-differ.d.ts +26 -0
- package/dist/snapshot-differ.js +225 -0
- package/dist/ssrf.d.ts +28 -0
- package/dist/ssrf.js +290 -0
- package/dist/stealth-audit.d.ts +27 -0
- package/dist/stealth-audit.js +719 -0
- package/dist/stealth.d.ts +195 -0
- package/dist/stealth.js +1157 -0
- package/dist/tab-manager.d.ts +14 -0
- package/dist/tab-manager.js +306 -0
- package/dist/tiles-coordinator.d.ts +106 -0
- package/dist/tiles-coordinator.js +358 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Page } from "playwright-core";
|
|
2
|
+
import type { Session } from "./types.js";
|
|
3
|
+
export interface PaginateOptions {
|
|
4
|
+
extractType: "text" | "html" | "js";
|
|
5
|
+
extractTarget?: string;
|
|
6
|
+
extractJs?: string;
|
|
7
|
+
nextSelector: string;
|
|
8
|
+
paginationType: "click" | "scroll" | "url";
|
|
9
|
+
urlPattern?: string;
|
|
10
|
+
maxPages: number;
|
|
11
|
+
delayMs: number;
|
|
12
|
+
maxCharsPerPage: number;
|
|
13
|
+
stopWhen: "no_next" | "empty" | "duplicate" | "auto";
|
|
14
|
+
}
|
|
15
|
+
export interface PaginatePageResult {
|
|
16
|
+
pageNum: number;
|
|
17
|
+
url: string;
|
|
18
|
+
data: string;
|
|
19
|
+
tokens: number;
|
|
20
|
+
}
|
|
21
|
+
export interface PaginateMetadata {
|
|
22
|
+
totalPages: number;
|
|
23
|
+
stoppedBecause: "no_next" | "empty" | "duplicate" | "max_pages" | "error" | "blocked";
|
|
24
|
+
totalChars: number;
|
|
25
|
+
urls: string[];
|
|
26
|
+
duration: number;
|
|
27
|
+
}
|
|
28
|
+
export interface PaginateResult {
|
|
29
|
+
pages: PaginatePageResult[];
|
|
30
|
+
metadata: PaginateMetadata;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Execute a full pagination loop in a single call.
|
|
34
|
+
*
|
|
35
|
+
* Supports three pagination strategies:
|
|
36
|
+
* - **click**: Finds and clicks a "next" button each iteration
|
|
37
|
+
* - **scroll**: Infinite-scroll with height-change detection
|
|
38
|
+
* - **url**: Iterates through URL patterns with {page} placeholder
|
|
39
|
+
*
|
|
40
|
+
* Returns extracted content from each page plus metadata about the run.
|
|
41
|
+
*/
|
|
42
|
+
export declare function paginate(page: Page, session: Session, opts: PaginateOptions): Promise<PaginateResult>;
|