agent-browser 0.18.0 → 0.20.0

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