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,72 @@
|
|
|
1
|
+
import type { Session } from "./types.js";
|
|
2
|
+
import type { Page } from "playwright-core";
|
|
3
|
+
export interface RecordingParam {
|
|
4
|
+
default: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
sensitive?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface RecordingStep {
|
|
9
|
+
tool: string;
|
|
10
|
+
args: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export interface Recording {
|
|
13
|
+
version: 1;
|
|
14
|
+
name: string;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
sourceUrl: string;
|
|
17
|
+
params: Record<string, RecordingParam>;
|
|
18
|
+
steps: RecordingStep[];
|
|
19
|
+
}
|
|
20
|
+
export interface ReplayStepResult {
|
|
21
|
+
step: number;
|
|
22
|
+
tool: string;
|
|
23
|
+
status: "ok" | "error";
|
|
24
|
+
error?: string;
|
|
25
|
+
duration: number;
|
|
26
|
+
}
|
|
27
|
+
export interface ReplayResult {
|
|
28
|
+
status: "ok" | "error";
|
|
29
|
+
stepsCompleted: number;
|
|
30
|
+
stepsTotal: number;
|
|
31
|
+
totalDuration: number;
|
|
32
|
+
results: ReplayStepResult[];
|
|
33
|
+
}
|
|
34
|
+
export interface ExportOptions {
|
|
35
|
+
name?: string;
|
|
36
|
+
/** When true, keep extract steps in the recording */
|
|
37
|
+
keepExtracts?: boolean;
|
|
38
|
+
/** Output format: json (default) or playwright */
|
|
39
|
+
format?: "json" | "playwright";
|
|
40
|
+
}
|
|
41
|
+
export interface ReplayOptions {
|
|
42
|
+
onError?: "stop" | "skip";
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Export session action history as a replayable Recording.
|
|
46
|
+
*
|
|
47
|
+
* 1. Gets action history from HarnessIntelligence
|
|
48
|
+
* 2. Filters to mutating actions only
|
|
49
|
+
* 3. Resolves @eN refs to stable selectors via session.refMap
|
|
50
|
+
* 4. Auto-detects parameters for emails, URLs, passwords
|
|
51
|
+
* 5. Returns Recording JSON
|
|
52
|
+
*/
|
|
53
|
+
export declare function exportSession(sessionId: string, session: Session, options?: ExportOptions): Recording | string;
|
|
54
|
+
/**
|
|
55
|
+
* Convert a Recording to a Playwright-compatible JS function body.
|
|
56
|
+
* Output is suitable for the `execute` tool.
|
|
57
|
+
*/
|
|
58
|
+
export declare function toPlaywrightScript(recording: Recording): string;
|
|
59
|
+
/**
|
|
60
|
+
* Replay a Recording against a live browser session.
|
|
61
|
+
*
|
|
62
|
+
* Each step is dispatched directly to Playwright page methods — no MCP
|
|
63
|
+
* round-trip. The overall replay is recorded as a single summary entry
|
|
64
|
+
* in harness intelligence (individual steps are NOT recorded).
|
|
65
|
+
*/
|
|
66
|
+
export declare function replayRecording(recording: Recording, session: Session, page: Page, params?: Record<string, string>, options?: ReplayOptions): Promise<ReplayResult>;
|
|
67
|
+
declare const _default: {
|
|
68
|
+
exportSession: typeof exportSession;
|
|
69
|
+
replayRecording: typeof replayRecording;
|
|
70
|
+
toPlaywrightScript: typeof toPlaywrightScript;
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|