agent-browser-stealth 0.17.0-fork.2 → 0.24.0-fork.2

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.
Files changed (122) hide show
  1. package/README.md +1256 -240
  2. package/bin/agent-browser-darwin-arm64 +0 -0
  3. package/bin/agent-browser-darwin-x64 +0 -0
  4. package/bin/agent-browser-linux-arm64 +0 -0
  5. package/bin/agent-browser-linux-x64 +0 -0
  6. package/bin/agent-browser-win32-x64.exe +0 -0
  7. package/bin/agent-browser.js +13 -2
  8. package/extensions/tab-group-cdp/content-script.js +425 -0
  9. package/extensions/tab-group-cdp/icons/icon.svg +7 -0
  10. package/extensions/tab-group-cdp/manifest.json +34 -0
  11. package/extensions/tab-group-cdp/page-bridge.js +133 -0
  12. package/extensions/tab-group-cdp/service-worker.js +2249 -0
  13. package/extensions/tab-group-cdp/sidepanel.css +258 -0
  14. package/extensions/tab-group-cdp/sidepanel.html +28 -0
  15. package/extensions/tab-group-cdp/sidepanel.js +1225 -0
  16. package/package.json +17 -69
  17. package/scripts/build-all-platforms.sh +6 -0
  18. package/scripts/check-version-sync.js +14 -2
  19. package/scripts/copy-native.js +8 -50
  20. package/scripts/postinstall.js +149 -165
  21. package/scripts/windows-debug/provision.sh +220 -0
  22. package/scripts/windows-debug/run.sh +92 -0
  23. package/scripts/windows-debug/start.sh +43 -0
  24. package/scripts/windows-debug/stop.sh +28 -0
  25. package/scripts/windows-debug/sync.sh +27 -0
  26. package/skills/agent-browser/SKILL.md +256 -159
  27. package/skills/agent-browser/references/authentication.md +101 -0
  28. package/skills/agent-browser/references/commands.md +34 -2
  29. package/skills/agent-browser/references/snapshot-refs.md +25 -0
  30. package/skills/agentcore/SKILL.md +115 -0
  31. package/skills/dogfood/SKILL.md +4 -2
  32. package/skills/electron/SKILL.md +26 -2
  33. package/skills/slack/SKILL.md +0 -9
  34. package/skills/slack/references/slack-tasks.md +2 -8
  35. package/skills/vercel-sandbox/SKILL.md +280 -0
  36. package/bin/agent-browser-local +0 -0
  37. package/bin/agent-browser-stealth +0 -0
  38. package/bin/agent-browser-stealth.d +0 -1
  39. package/dist/action-policy.d.ts +0 -14
  40. package/dist/action-policy.d.ts.map +0 -1
  41. package/dist/action-policy.js +0 -253
  42. package/dist/action-policy.js.map +0 -1
  43. package/dist/actions.d.ts +0 -21
  44. package/dist/actions.d.ts.map +0 -1
  45. package/dist/actions.js +0 -2139
  46. package/dist/actions.js.map +0 -1
  47. package/dist/auth-cli.d.ts +0 -2
  48. package/dist/auth-cli.d.ts.map +0 -1
  49. package/dist/auth-cli.js +0 -97
  50. package/dist/auth-cli.js.map +0 -1
  51. package/dist/auth-vault.d.ts +0 -36
  52. package/dist/auth-vault.d.ts.map +0 -1
  53. package/dist/auth-vault.js +0 -125
  54. package/dist/auth-vault.js.map +0 -1
  55. package/dist/browser.d.ts +0 -665
  56. package/dist/browser.d.ts.map +0 -1
  57. package/dist/browser.js +0 -3210
  58. package/dist/browser.js.map +0 -1
  59. package/dist/confirmation.d.ts +0 -8
  60. package/dist/confirmation.d.ts.map +0 -1
  61. package/dist/confirmation.js +0 -30
  62. package/dist/confirmation.js.map +0 -1
  63. package/dist/daemon.d.ts +0 -78
  64. package/dist/daemon.d.ts.map +0 -1
  65. package/dist/daemon.js +0 -744
  66. package/dist/daemon.js.map +0 -1
  67. package/dist/diff.d.ts +0 -18
  68. package/dist/diff.d.ts.map +0 -1
  69. package/dist/diff.js +0 -271
  70. package/dist/diff.js.map +0 -1
  71. package/dist/domain-filter.d.ts +0 -28
  72. package/dist/domain-filter.d.ts.map +0 -1
  73. package/dist/domain-filter.js +0 -149
  74. package/dist/domain-filter.js.map +0 -1
  75. package/dist/encryption.d.ts +0 -73
  76. package/dist/encryption.d.ts.map +0 -1
  77. package/dist/encryption.js +0 -171
  78. package/dist/encryption.js.map +0 -1
  79. package/dist/ios-actions.d.ts +0 -11
  80. package/dist/ios-actions.d.ts.map +0 -1
  81. package/dist/ios-actions.js +0 -228
  82. package/dist/ios-actions.js.map +0 -1
  83. package/dist/ios-manager.d.ts +0 -266
  84. package/dist/ios-manager.d.ts.map +0 -1
  85. package/dist/ios-manager.js +0 -1073
  86. package/dist/ios-manager.js.map +0 -1
  87. package/dist/protocol.d.ts +0 -26
  88. package/dist/protocol.d.ts.map +0 -1
  89. package/dist/protocol.js +0 -990
  90. package/dist/protocol.js.map +0 -1
  91. package/dist/snapshot.d.ts +0 -67
  92. package/dist/snapshot.d.ts.map +0 -1
  93. package/dist/snapshot.js +0 -514
  94. package/dist/snapshot.js.map +0 -1
  95. package/dist/state-utils.d.ts +0 -77
  96. package/dist/state-utils.d.ts.map +0 -1
  97. package/dist/state-utils.js +0 -178
  98. package/dist/state-utils.js.map +0 -1
  99. package/dist/stealth.d.ts +0 -41
  100. package/dist/stealth.d.ts.map +0 -1
  101. package/dist/stealth.js +0 -1743
  102. package/dist/stealth.js.map +0 -1
  103. package/dist/stream-server.d.ts +0 -117
  104. package/dist/stream-server.d.ts.map +0 -1
  105. package/dist/stream-server.js +0 -309
  106. package/dist/stream-server.js.map +0 -1
  107. package/dist/types.d.ts +0 -973
  108. package/dist/types.d.ts.map +0 -1
  109. package/dist/types.js +0 -2
  110. package/dist/types.js.map +0 -1
  111. package/scripts/check-creepjs-headless.js +0 -137
  112. package/scripts/check-daemon-pid-recovery.js +0 -148
  113. package/scripts/check-sannysoft-webdriver.js +0 -112
  114. package/scripts/check-stealth-regression.js +0 -199
  115. package/scripts/check-turnstile-testkey.ts +0 -125
  116. package/scripts/clawhub-sync.sh +0 -27
  117. package/scripts/sync-upstream.sh +0 -142
  118. package/scripts/verify-bundled-binaries.js +0 -71
  119. package/scripts/verify-native-version.js +0 -48
  120. package/scripts/verify-packed-host-binary.js +0 -88
  121. package/scripts/verify-registry-host-binary.js +0 -120
  122. package/skills/agent-browser-stealth/SKILL.md +0 -127
package/dist/browser.d.ts DELETED
@@ -1,665 +0,0 @@
1
- import { devices, type Browser, type BrowserContext, type Page, type Frame, type Locator, type CDPSession } from 'playwright-core';
2
- import type { DoctorData, LaunchCommand } from './types.js';
3
- import { type RefMap, type EnhancedSnapshot } from './snapshot.js';
4
- /**
5
- * Returns the default Playwright timeout in milliseconds for standard operations.
6
- * Can be overridden via the AGENT_BROWSER_DEFAULT_TIMEOUT environment variable.
7
- * Default is 25s, which is below the CLI's 30s IPC read timeout to ensure
8
- * Playwright errors are returned before the CLI gives up with EAGAIN.
9
- * CDP and recording contexts use a shorter fixed timeout (10s) and are not affected.
10
- */
11
- export declare function getDefaultTimeout(): number;
12
- export interface ScreencastFrame {
13
- data: string;
14
- metadata: {
15
- offsetTop: number;
16
- pageScaleFactor: number;
17
- deviceWidth: number;
18
- deviceHeight: number;
19
- scrollOffsetX: number;
20
- scrollOffsetY: number;
21
- timestamp?: number;
22
- };
23
- sessionId: number;
24
- }
25
- export interface ScreencastOptions {
26
- format?: 'jpeg' | 'png';
27
- quality?: number;
28
- maxWidth?: number;
29
- maxHeight?: number;
30
- everyNthFrame?: number;
31
- }
32
- interface TrackedRequest {
33
- url: string;
34
- method: string;
35
- headers: Record<string, string>;
36
- timestamp: number;
37
- resourceType: string;
38
- }
39
- interface ConsoleMessage {
40
- type: string;
41
- text: string;
42
- timestamp: number;
43
- }
44
- interface PageError {
45
- message: string;
46
- timestamp: number;
47
- }
48
- type BrowserType = NonNullable<LaunchCommand['browser']>;
49
- type StealthConnectionKind = 'local' | 'cdp' | 'provider-browserbase' | 'provider-browseruse' | 'provider-kernel';
50
- export interface StealthStatus {
51
- enabled: boolean;
52
- connectionKind: StealthConnectionKind;
53
- capabilities: string[];
54
- providerManaged: boolean;
55
- }
56
- /**
57
- * Manages the Playwright browser lifecycle with multiple tabs/windows
58
- */
59
- export declare class BrowserManager {
60
- private browser;
61
- private cdpEndpoint;
62
- private isPersistentContext;
63
- private browserbaseSessionId;
64
- private browserbaseApiKey;
65
- private browserUseSessionId;
66
- private browserUseApiKey;
67
- private kernelSessionId;
68
- private kernelApiKey;
69
- private contexts;
70
- private pages;
71
- private activePageIndex;
72
- private activeFrame;
73
- private dialogHandler;
74
- private trackedRequests;
75
- private routes;
76
- private consoleMessages;
77
- private pageErrors;
78
- private isRecordingHar;
79
- private refMap;
80
- private lastSnapshot;
81
- private scopedHeaderRoutes;
82
- private colorScheme;
83
- private stealthEnabled;
84
- private stealthConnectionKind;
85
- private contextLocale;
86
- private contextTimezoneId;
87
- private contextHeaders;
88
- private contextUserAgent;
89
- private allowWebGLContextFallback;
90
- private downloadPath;
91
- private allowedDomains;
92
- private tabGroupIntent;
93
- private tabGroupCapabilityBySession;
94
- private tabGroupInFlight;
95
- private isManagedCdpEndpoint;
96
- private ensureManagedCdpBrowser;
97
- /**
98
- * Set the persistent color scheme preference.
99
- * Applied automatically to all new pages and contexts.
100
- */
101
- setColorScheme(scheme: 'light' | 'dark' | 'no-preference' | null): void;
102
- /**
103
- * Centralized stealth policy so launch mode semantics stay consistent.
104
- * Local Chromium gets args + init scripts; CDP/providers get init scripts only.
105
- */
106
- private getStealthPolicy;
107
- private logStealthPolicy;
108
- getStealthStatus(browserType?: BrowserType): StealthStatus;
109
- private normalizeLocaleTag;
110
- private buildAcceptLanguageHeader;
111
- private getHeaderValue;
112
- private static readonly TLD_REGION_MAP;
113
- private targetUrl;
114
- /**
115
- * Set the target URL for region auto-detection.
116
- * Called from navigate/open commands so locale/timezone can adapt.
117
- * Applies CDP overrides to align locale/timezone with the target site's region.
118
- */
119
- setTargetUrl(url: string): Promise<void>;
120
- private getRegionFromUrl;
121
- private resolveStealthLocale;
122
- private resolveStealthTimezoneId;
123
- private buildStealthContextDefaults;
124
- private extractChromiumVersion;
125
- private buildStealthChromiumUserAgent;
126
- private getStealthUserAgentVersionHint;
127
- /**
128
- * Apply context init-script stealth patches when policy allows.
129
- */
130
- private applyStealthIfEnabled;
131
- private probeNativeWebGL;
132
- private configureWebGLFallbackFromPage;
133
- private cdpSession;
134
- private screencastActive;
135
- private screencastSessionId;
136
- private frameCallback;
137
- private screencastFrameHandler;
138
- private recordingContext;
139
- private recordingPage;
140
- private recordingOutputPath;
141
- private recordingTempDir;
142
- private launchWarnings;
143
- /**
144
- * Get and clear launch warnings (e.g., decryption failures)
145
- */
146
- getAndClearWarnings(): string[];
147
- private normalizeTabGroupName;
148
- private normalizeTabGroupPluginId;
149
- private getAgentSessionName;
150
- private buildSessionTabGroupTitle;
151
- private configureTabGroupIntent;
152
- private getTabGroupCapability;
153
- private setTabGroupCapability;
154
- private canInjectTabGroupScript;
155
- private logTabGroupDebug;
156
- private requestTabGroupPlugin;
157
- private scheduleTabGrouping;
158
- private tryApplyTabGrouping;
159
- triggerTabGroupingForActivePage(source?: string): void;
160
- private static readonly MAX_PROFILE_EVENTS;
161
- private profilingActive;
162
- private profileChunks;
163
- private profileEventsDropped;
164
- private profileCompleteResolver;
165
- private profileDataHandler;
166
- private profileCompleteHandler;
167
- /**
168
- * Check if browser is launched
169
- */
170
- isLaunched(): boolean;
171
- /**
172
- * Get enhanced snapshot with refs and cache the ref map
173
- */
174
- getSnapshot(options?: {
175
- interactive?: boolean;
176
- cursor?: boolean;
177
- maxDepth?: number;
178
- compact?: boolean;
179
- selector?: string;
180
- }): Promise<EnhancedSnapshot>;
181
- /**
182
- * Get the last snapshot tree text (empty string if no snapshot has been taken)
183
- */
184
- getLastSnapshot(): string;
185
- /**
186
- * Update the stored snapshot (used by diff to keep the baseline current)
187
- */
188
- setLastSnapshot(snapshot: string): void;
189
- /**
190
- * Get the cached ref map from last snapshot
191
- */
192
- getRefMap(): RefMap;
193
- /**
194
- * Get a locator from a ref (e.g., "e1", "@e1", "ref=e1")
195
- * Returns null if ref doesn't exist or is invalid
196
- */
197
- getLocatorFromRef(refArg: string): Locator | null;
198
- /**
199
- * Check if a selector looks like a ref
200
- */
201
- isRef(selector: string): boolean;
202
- /**
203
- * Install the domain filter on a context if an allowlist is configured.
204
- * Should be called before any pages navigate on the context.
205
- */
206
- private ensureDomainFilter;
207
- /**
208
- * After installing the domain filter, verify existing pages are on allowed
209
- * domains. Pages that pre-date the filter (e.g. CDP/cloud connect) may have
210
- * already navigated to disallowed domains. Navigate them to about:blank.
211
- */
212
- private sanitizeExistingPages;
213
- /**
214
- * Check if a URL is allowed by the domain allowlist.
215
- * Throws if the URL's domain is blocked. No-op if no allowlist is set.
216
- * Blocks non-http(s) schemes and unparseable URLs by default.
217
- */
218
- checkDomainAllowed(url: string): void;
219
- /**
220
- * Get locator - supports both refs and regular selectors
221
- */
222
- getLocator(selectorOrRef: string): Locator;
223
- /**
224
- * Check if the browser has any usable pages
225
- */
226
- hasPages(): boolean;
227
- private getSafePageUrl;
228
- private isIgnoredCDPPageUrl;
229
- private isUsableCDPPage;
230
- private isMeaningfulCDPPage;
231
- private collectUsableCDPPages;
232
- /**
233
- * Ensure at least one page exists. If the browser is launched but all pages
234
- * were closed (stale session), creates a new page on the existing context.
235
- * No-op if pages already exist.
236
- */
237
- ensurePage(): Promise<void>;
238
- /**
239
- * Get the current active page, throws if not launched
240
- */
241
- getPage(): Page;
242
- /**
243
- * Get the current frame (or page's main frame if no frame is selected)
244
- */
245
- getFrame(): Frame;
246
- /**
247
- * Switch to a frame by selector, name, or URL
248
- */
249
- switchToFrame(options: {
250
- selector?: string;
251
- name?: string;
252
- url?: string;
253
- }): Promise<void>;
254
- /**
255
- * Switch back to main frame
256
- */
257
- switchToMainFrame(): void;
258
- /**
259
- * Set up dialog handler
260
- */
261
- setDialogHandler(response: 'accept' | 'dismiss', promptText?: string): void;
262
- /**
263
- * Clear dialog handler
264
- */
265
- clearDialogHandler(): void;
266
- /**
267
- * Start tracking requests
268
- */
269
- startRequestTracking(): void;
270
- /**
271
- * Get tracked requests
272
- */
273
- getRequests(filter?: string): TrackedRequest[];
274
- /**
275
- * Clear tracked requests
276
- */
277
- clearRequests(): void;
278
- /**
279
- * Add a route to intercept requests
280
- */
281
- addRoute(url: string, options: {
282
- response?: {
283
- status?: number;
284
- body?: string;
285
- contentType?: string;
286
- headers?: Record<string, string>;
287
- };
288
- abort?: boolean;
289
- }): Promise<void>;
290
- /**
291
- * Remove a route
292
- */
293
- removeRoute(url?: string): Promise<void>;
294
- /**
295
- * Set geolocation
296
- */
297
- setGeolocation(latitude: number, longitude: number, accuracy?: number): Promise<void>;
298
- /**
299
- * Set permissions
300
- */
301
- setPermissions(permissions: string[], grant: boolean): Promise<void>;
302
- /**
303
- * Set viewport
304
- */
305
- setViewport(width: number, height: number): Promise<void>;
306
- /**
307
- * Set device scale factor (devicePixelRatio) via CDP
308
- * This sets window.devicePixelRatio which affects how the page renders and responds to media queries
309
- *
310
- * Note: When using CDP to set deviceScaleFactor, screenshots will be at logical pixel dimensions
311
- * (viewport size), not physical pixel dimensions (viewport × scale). This is a Playwright limitation
312
- * when using CDP emulation on existing contexts. For true HiDPI screenshots with physical pixels,
313
- * deviceScaleFactor must be set at context creation time.
314
- *
315
- * Must be called after setViewport to work correctly
316
- */
317
- setDeviceScaleFactor(deviceScaleFactor: number, width: number, height: number, mobile?: boolean): Promise<void>;
318
- /**
319
- * Clear device metrics override to restore default devicePixelRatio
320
- */
321
- clearDeviceMetricsOverride(): Promise<void>;
322
- /**
323
- * Get device descriptor
324
- */
325
- getDevice(deviceName: string): (typeof devices)[keyof typeof devices] | undefined;
326
- /**
327
- * List available devices
328
- */
329
- listDevices(): string[];
330
- /**
331
- * Start console message tracking
332
- */
333
- startConsoleTracking(): void;
334
- /**
335
- * Get console messages
336
- */
337
- getConsoleMessages(): ConsoleMessage[];
338
- /**
339
- * Clear console messages
340
- */
341
- clearConsoleMessages(): void;
342
- /**
343
- * Start error tracking
344
- */
345
- startErrorTracking(): void;
346
- /**
347
- * Get page errors
348
- */
349
- getPageErrors(): PageError[];
350
- /**
351
- * Clear page errors
352
- */
353
- clearPageErrors(): void;
354
- /**
355
- * Start HAR recording
356
- */
357
- startHarRecording(): Promise<void>;
358
- /**
359
- * Check if HAR recording
360
- */
361
- isHarRecording(): boolean;
362
- /**
363
- * Set offline mode
364
- */
365
- setOffline(offline: boolean): Promise<void>;
366
- /**
367
- * Set extra HTTP headers (global - all requests)
368
- */
369
- setExtraHeaders(headers: Record<string, string>): Promise<void>;
370
- /**
371
- * Set scoped HTTP headers (only for requests matching the origin)
372
- * Uses route interception to add headers only to matching requests
373
- */
374
- setScopedHeaders(origin: string, headers: Record<string, string>): Promise<void>;
375
- /**
376
- * Clear scoped headers for an origin (or all if no origin specified)
377
- */
378
- clearScopedHeaders(origin?: string): Promise<void>;
379
- /**
380
- * Start tracing
381
- */
382
- startTracing(options: {
383
- screenshots?: boolean;
384
- snapshots?: boolean;
385
- }): Promise<void>;
386
- /**
387
- * Stop tracing and save
388
- */
389
- stopTracing(path?: string): Promise<void>;
390
- /**
391
- * Get the current browser context (first context)
392
- */
393
- getContext(): BrowserContext | null;
394
- /**
395
- * Save storage state (cookies, localStorage, etc.)
396
- */
397
- saveStorageState(path: string): Promise<void>;
398
- /**
399
- * Get all pages
400
- */
401
- getPages(): Page[];
402
- /**
403
- * Get current page index
404
- */
405
- getActiveIndex(): number;
406
- /**
407
- * Get the current browser instance
408
- */
409
- getBrowser(): Browser | null;
410
- /**
411
- * Check if an existing CDP connection is still alive
412
- * by verifying we can access browser contexts and that at least one has pages
413
- */
414
- private isCdpConnectionAlive;
415
- /**
416
- * Check if CDP connection needs to be re-established
417
- */
418
- private needsCdpReconnect;
419
- /**
420
- * Close a Browserbase session via API
421
- */
422
- private closeBrowserbaseSession;
423
- /**
424
- * Close a Browser Use session via API
425
- */
426
- private closeBrowserUseSession;
427
- /**
428
- * Close a Kernel session via API
429
- */
430
- private closeKernelSession;
431
- /**
432
- * Connect to Browserbase remote browser via CDP.
433
- * Requires BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID environment variables.
434
- */
435
- private connectToBrowserbase;
436
- /**
437
- * Find or create a Kernel profile by name.
438
- * Returns the profile object if successful.
439
- */
440
- private findOrCreateKernelProfile;
441
- /**
442
- * Connect to Kernel remote browser via CDP.
443
- * Requires KERNEL_API_KEY environment variable.
444
- */
445
- private connectToKernel;
446
- /**
447
- * Connect to Browser Use remote browser via CDP.
448
- * Requires BROWSER_USE_API_KEY environment variable.
449
- */
450
- private connectToBrowserUse;
451
- /**
452
- * Launch the browser with the specified options
453
- * If already launched, this is a no-op (browser stays open)
454
- */
455
- launch(options: LaunchCommand): Promise<void>;
456
- /**
457
- * Connect to a running browser via CDP (Chrome DevTools Protocol)
458
- * @param cdpEndpoint Either a port number (as string) or a full WebSocket URL (ws:// or wss://)
459
- */
460
- private connectViaCDP;
461
- /**
462
- * Get Chrome's default user data directory paths for the current platform.
463
- * Returns an array of candidate paths to check (stable, then beta/canary).
464
- */
465
- private getChromeUserDataDirs;
466
- /**
467
- * Try to read the DevToolsActivePort file from a Chrome user data directory.
468
- * Returns { port, wsPath } if found, or null if not available.
469
- */
470
- private readDevToolsActivePort;
471
- /**
472
- * Try to discover a Chrome CDP endpoint by querying an HTTP debug port.
473
- * Returns the WebSocket debugger URL if available.
474
- */
475
- private probeDebugPort;
476
- /**
477
- * Auto-discover and connect to a running Chrome/Chromium instance.
478
- *
479
- * Discovery strategy:
480
- * 1. Read DevToolsActivePort from Chrome's default user data directories
481
- * 2. If found, connect using the port and WebSocket path from that file
482
- * 3. If not found, probe common debugging ports (9222, 9229, 9333)
483
- * 4. If a port responds, connect via CDP
484
- */
485
- private autoConnectViaCDP;
486
- private addDoctorCheck;
487
- /**
488
- * Probe whether CDP Runtime.evaluate responses still leak automation-only
489
- * sourceURL labels such as `__playwright_evaluation_script__`.
490
- */
491
- private runDoctorSourceUrlProbe;
492
- private buildDoctorTabGroupIntent;
493
- /**
494
- * Run connection diagnostics for CDP discovery, sourceURL sanitization, and
495
- * tab-group plugin readiness/handshake.
496
- * This is intentionally side-effect-light: it does not navigate or force launch.
497
- */
498
- runDoctor(): Promise<DoctorData>;
499
- /**
500
- * Set up console, error, and close tracking for a page
501
- */
502
- private setupPageTracking;
503
- /**
504
- * Set up tracking for new pages in a context (for CDP connections and popups/new tabs)
505
- * This handles pages created externally (e.g., via target="_blank" links, window.open)
506
- */
507
- private setupContextTracking;
508
- /**
509
- * Create a new tab in the current context
510
- */
511
- newTab(): Promise<{
512
- index: number;
513
- total: number;
514
- }>;
515
- /**
516
- * Create a new window (new context)
517
- */
518
- newWindow(viewport?: {
519
- width: number;
520
- height: number;
521
- } | null): Promise<{
522
- index: number;
523
- total: number;
524
- }>;
525
- /**
526
- * Invalidate the current CDP session (must be called before switching pages)
527
- * This ensures screencast and input injection work correctly after tab switch
528
- */
529
- private invalidateCDPSession;
530
- /**
531
- * Switch to a specific tab/page by index
532
- */
533
- switchTo(index: number): Promise<{
534
- index: number;
535
- url: string;
536
- title: string;
537
- }>;
538
- /**
539
- * Close a specific tab/page
540
- */
541
- closeTab(index?: number): Promise<{
542
- closed: number;
543
- remaining: number;
544
- }>;
545
- /**
546
- * List all tabs with their info
547
- */
548
- listTabs(): Promise<Array<{
549
- index: number;
550
- url: string;
551
- title: string;
552
- active: boolean;
553
- }>>;
554
- /**
555
- * Get or create a CDP session for the current page
556
- * Only works with Chromium-based browsers
557
- */
558
- getCDPSession(): Promise<CDPSession>;
559
- /**
560
- * Check if screencast is currently active
561
- */
562
- isScreencasting(): boolean;
563
- /**
564
- * Start screencast - streams viewport frames via CDP
565
- * @param callback Function called for each frame
566
- * @param options Screencast options
567
- */
568
- startScreencast(callback: (frame: ScreencastFrame) => void, options?: ScreencastOptions): Promise<void>;
569
- /**
570
- * Stop screencast
571
- */
572
- stopScreencast(): Promise<void>;
573
- /**
574
- * Check if profiling is currently active
575
- */
576
- isProfilingActive(): boolean;
577
- /**
578
- * Start CDP profiling (Tracing)
579
- */
580
- startProfiling(options?: {
581
- categories?: string[];
582
- }): Promise<void>;
583
- /**
584
- * Stop CDP profiling and save to file
585
- */
586
- stopProfiling(outputPath: string): Promise<{
587
- path: string;
588
- eventCount: number;
589
- }>;
590
- /**
591
- * Inject a mouse event via CDP
592
- */
593
- injectMouseEvent(params: {
594
- type: 'mousePressed' | 'mouseReleased' | 'mouseMoved' | 'mouseWheel';
595
- x: number;
596
- y: number;
597
- button?: 'left' | 'right' | 'middle' | 'none';
598
- clickCount?: number;
599
- deltaX?: number;
600
- deltaY?: number;
601
- modifiers?: number;
602
- }): Promise<void>;
603
- /**
604
- * Inject a keyboard event via CDP
605
- */
606
- injectKeyboardEvent(params: {
607
- type: 'keyDown' | 'keyUp' | 'char';
608
- key?: string;
609
- code?: string;
610
- text?: string;
611
- modifiers?: number;
612
- }): Promise<void>;
613
- /**
614
- * Inject touch event via CDP (for mobile emulation)
615
- */
616
- injectTouchEvent(params: {
617
- type: 'touchStart' | 'touchEnd' | 'touchMove' | 'touchCancel';
618
- touchPoints: Array<{
619
- x: number;
620
- y: number;
621
- id?: number;
622
- }>;
623
- modifiers?: number;
624
- }): Promise<void>;
625
- /**
626
- * Check if video recording is currently active
627
- */
628
- isRecording(): boolean;
629
- /**
630
- * Start recording to a video file using Playwright's native video recording.
631
- * Creates a fresh browser context with video recording enabled.
632
- * Automatically captures current URL and transfers cookies/storage if no URL provided.
633
- *
634
- * @param outputPath - Path to the output video file (will be .webm)
635
- * @param url - Optional URL to navigate to (defaults to current page URL)
636
- */
637
- startRecording(outputPath: string, url?: string): Promise<void>;
638
- /**
639
- * Stop recording and save the video file
640
- * @returns Recording result with path
641
- */
642
- stopRecording(): Promise<{
643
- path: string;
644
- frames: number;
645
- error?: string;
646
- }>;
647
- /**
648
- * Restart recording - stops current recording (if any) and starts a new one.
649
- * Convenience method that combines stopRecording and startRecording.
650
- *
651
- * @param outputPath - Path to the output video file (must be .webm)
652
- * @param url - Optional URL to navigate to (defaults to current page URL)
653
- * @returns Result from stopping the previous recording (if any)
654
- */
655
- restartRecording(outputPath: string, url?: string): Promise<{
656
- previousPath?: string;
657
- stopped: boolean;
658
- }>;
659
- /**
660
- * Close the browser and clean up
661
- */
662
- close(): Promise<void>;
663
- }
664
- export {};
665
- //# sourceMappingURL=browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.d.ts","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