agentic-browser 2.6.1 → 2.6.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.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
 
2
- import WebSocket from "ws";
2
+ import "ws";
3
3
  import { z } from "zod";
4
- //#region src/session/browser-controller.d.ts
5
4
  type InteractAction = "click" | "type" | "press" | "waitFor" | "evaluate" | "scroll" | "hover" | "select" | "toggle" | "goBack" | "goForward" | "refresh" | "dialog";
6
5
  interface InteractPayload {
7
6
  action: InteractAction;
@@ -100,18 +99,16 @@ interface BrowserController {
100
99
  closeConnection?(targetWsUrl: string): void;
101
100
  dispose?(): void;
102
101
  }
103
- //#endregion
104
- //#region src/memory/memory-schemas.d.ts
105
102
  declare const InsightFreshnessSchema: z.ZodEnum<{
106
103
  fresh: "fresh";
107
- suspect: "suspect";
108
104
  stale: "stale";
105
+ suspect: "suspect";
109
106
  }>;
110
107
  declare const TaskStepSchema: z.ZodObject<{
111
108
  type: z.ZodEnum<{
112
- navigate: "navigate";
113
- interact: "interact";
114
109
  assert: "assert";
110
+ interact: "interact";
111
+ navigate: "navigate";
115
112
  }>;
116
113
  summary: z.ZodString;
117
114
  selector: z.ZodOptional<z.ZodString>;
@@ -129,9 +126,9 @@ declare const TaskInsightSchema: z.ZodObject<{
129
126
  sitePathPattern: z.ZodString;
130
127
  actionRecipe: z.ZodArray<z.ZodObject<{
131
128
  type: z.ZodEnum<{
132
- navigate: "navigate";
133
- interact: "interact";
134
129
  assert: "assert";
130
+ interact: "interact";
131
+ navigate: "navigate";
135
132
  }>;
136
133
  summary: z.ZodString;
137
134
  selector: z.ZodOptional<z.ZodString>;
@@ -144,8 +141,8 @@ declare const TaskInsightSchema: z.ZodObject<{
144
141
  useCount: z.ZodNumber;
145
142
  freshness: z.ZodEnum<{
146
143
  fresh: "fresh";
147
- suspect: "suspect";
148
144
  stale: "stale";
145
+ suspect: "suspect";
149
146
  }>;
150
147
  staleStrikeCount: z.ZodNumber;
151
148
  lastVerifiedAt: z.ZodString;
@@ -156,8 +153,8 @@ declare const TaskInsightSchema: z.ZodObject<{
156
153
  evidenceId: z.ZodString;
157
154
  commandId: z.ZodString;
158
155
  result: z.ZodEnum<{
159
- success: "success";
160
156
  failure: "failure";
157
+ success: "success";
161
158
  }>;
162
159
  reason: z.ZodOptional<z.ZodString>;
163
160
  selector: z.ZodOptional<z.ZodString>;
@@ -233,28 +230,26 @@ interface MemorySearchResult {
233
230
  score: number;
234
231
  siteProfile?: SiteProfileSummary;
235
232
  }
236
- //#endregion
237
- //#region src/lib/domain-schemas.d.ts
238
233
  declare const SessionStatusSchema: z.ZodEnum<{
239
- starting: "starting";
240
- ready: "ready";
241
234
  disconnected: "disconnected";
242
235
  failed: "failed";
236
+ ready: "ready";
237
+ starting: "starting";
243
238
  terminated: "terminated";
244
239
  }>;
245
240
  declare const CommandTypeSchema: z.ZodEnum<{
246
- navigate: "navigate";
247
241
  interact: "interact";
242
+ navigate: "navigate";
248
243
  restart: "restart";
249
244
  terminate: "terminate";
250
245
  }>;
251
246
  declare const SessionSchema: z.ZodObject<{
252
247
  sessionId: z.ZodString;
253
248
  status: z.ZodEnum<{
254
- starting: "starting";
255
- ready: "ready";
256
249
  disconnected: "disconnected";
257
250
  failed: "failed";
251
+ ready: "ready";
252
+ starting: "starting";
258
253
  terminated: "terminated";
259
254
  }>;
260
255
  browserType: z.ZodLiteral<"chrome">;
@@ -266,8 +261,8 @@ declare const CommandSchema: z.ZodObject<{
266
261
  commandId: z.ZodString;
267
262
  sessionId: z.ZodString;
268
263
  type: z.ZodEnum<{
269
- navigate: "navigate";
270
264
  interact: "interact";
265
+ navigate: "navigate";
271
266
  restart: "restart";
272
267
  terminate: "terminate";
273
268
  }>;
@@ -285,9 +280,9 @@ declare const SessionEventSchema: z.ZodObject<{
285
280
  eventId: z.ZodString;
286
281
  sessionId: z.ZodString;
287
282
  category: z.ZodEnum<{
283
+ command: "command";
288
284
  lifecycle: "lifecycle";
289
285
  security: "security";
290
- command: "command";
291
286
  }>;
292
287
  message: z.ZodString;
293
288
  createdAt: z.ZodString;
@@ -302,8 +297,6 @@ type CommandType = z.infer<typeof CommandTypeSchema>;
302
297
  type Session = z.infer<typeof SessionSchema>;
303
298
  type Command = z.infer<typeof CommandSchema>;
304
299
  type SessionEvent = z.infer<typeof SessionEventSchema>;
305
- //#endregion
306
- //#region src/lib/config.d.ts
307
300
  interface AppConfig {
308
301
  dataDir: string;
309
302
  browserExecutablePath?: string;
@@ -311,10 +304,9 @@ interface AppConfig {
311
304
  userProfileDir?: string;
312
305
  headless?: boolean;
313
306
  userAgent?: string;
307
+ allowFileUrls: boolean;
314
308
  }
315
309
  declare function loadConfig(env?: NodeJS.ProcessEnv): AppConfig;
316
- //#endregion
317
- //#region src/observability/logger.d.ts
318
310
  interface LogContext {
319
311
  [key: string]: unknown;
320
312
  }
@@ -326,8 +318,6 @@ declare class Logger {
326
318
  warning(message: string, context?: LogContext): void;
327
319
  error(message: string, context?: LogContext): void;
328
320
  }
329
- //#endregion
330
- //#region src/observability/event-store.d.ts
331
321
  declare class EventStore {
332
322
  private readonly events;
333
323
  private readonly filePath;
@@ -349,8 +339,6 @@ declare class EventStore {
349
339
  private flushAsync;
350
340
  private readonly flushSync;
351
341
  }
352
- //#endregion
353
- //#region src/auth/session-token.d.ts
354
342
  declare class SessionTokenService {
355
343
  private readonly tokens;
356
344
  issue(sessionId: string): string;
@@ -359,8 +347,6 @@ declare class SessionTokenService {
359
347
  get(sessionId: string): string | undefined;
360
348
  seed(sessionId: string, token: string): void;
361
349
  }
362
- //#endregion
363
- //#region src/memory/memory-service.d.ts
364
350
  interface MemorySearchInput {
365
351
  taskIntent: string;
366
352
  siteDomain?: string;
@@ -385,6 +371,8 @@ declare class MemoryService {
385
371
  constructor(baseDir: string);
386
372
  /** Force an immediate synchronous flush of pending writes. */
387
373
  flushSync(): void;
374
+ /** Flush pending writes and release the stores' process exit hooks. */
375
+ dispose(): void;
388
376
  search(input: MemorySearchInput): MemorySearchResult[];
389
377
  /** Invalidate search cache when data changes. */
390
378
  private invalidateSearchCache;
@@ -400,8 +388,8 @@ declare class MemoryService {
400
388
  }>;
401
389
  };
402
390
  verify(insightId: string): TaskInsight;
403
- recordSuccess(input: RecordExecutionInput): TaskInsight;
404
- recordFailure(input: RecordExecutionInput, errorMessage: string): TaskInsight | undefined;
391
+ recordSuccess(rawInput: RecordExecutionInput): TaskInsight;
392
+ recordFailure(rawInput: RecordExecutionInput, errorMessage: string): TaskInsight | undefined;
405
393
  /** Update site profile from page content (call after getContent with mode="summary"). */
406
394
  updateProfileFromContent(domain: string, pathPattern: string, structuredContent: {
407
395
  headings?: string[];
@@ -421,13 +409,13 @@ declare class MemoryService {
421
409
  private findBestExactMatch;
422
410
  private scoreExactMatch;
423
411
  private sameFirstPathSegment;
412
+ /** Strip query strings and fragments from every URL-bearing field before it is persisted. */
413
+ private sanitizeInput;
424
414
  private createEvidence;
425
415
  private maybeGenerateAliases;
426
416
  private deriveAliasName;
427
417
  private mergeRecipe;
428
418
  }
429
- //#endregion
430
- //#region src/cli/app.d.ts
431
419
  interface AppContext {
432
420
  config: ReturnType<typeof loadConfig>;
433
421
  logger: Logger;
@@ -435,8 +423,6 @@ interface AppContext {
435
423
  tokenService: SessionTokenService;
436
424
  memoryService: MemoryService;
437
425
  }
438
- //#endregion
439
- //#region src/session/session-store.d.ts
440
426
  interface StoredSessionRecord {
441
427
  session: Session;
442
428
  cdpUrl: string;
@@ -444,8 +430,6 @@ interface StoredSessionRecord {
444
430
  pid: number;
445
431
  lastUrl?: string;
446
432
  }
447
- //#endregion
448
- //#region src/session/session-manager.d.ts
449
433
  interface CreateSessionInput {
450
434
  browser: "chrome";
451
435
  }
@@ -496,36 +480,36 @@ declare class SessionManager {
496
480
  siteDomain: string;
497
481
  sitePathPattern: string;
498
482
  actionRecipe: {
499
- type: "navigate" | "interact" | "assert";
483
+ type: "assert" | "interact" | "navigate";
500
484
  summary: string;
501
- payload: Record<string, unknown>;
502
485
  selector?: string | undefined;
486
+ payload: Record<string, unknown>;
503
487
  }[];
504
488
  expectedOutcome: string;
505
489
  confidence: number;
506
490
  successCount: number;
507
491
  failureCount: number;
508
492
  useCount: number;
509
- freshness: "fresh" | "suspect" | "stale";
493
+ freshness: "fresh" | "stale" | "suspect";
510
494
  staleStrikeCount: number;
511
495
  lastVerifiedAt: string;
512
496
  createdAt: string;
513
497
  updatedAt: string;
498
+ supersedes?: string | undefined;
514
499
  evidence: {
515
500
  evidenceId: string;
516
501
  commandId: string;
517
- result: "success" | "failure";
518
- recordedAt: string;
502
+ result: "failure" | "success";
519
503
  reason?: string | undefined;
520
504
  selector?: string | undefined;
521
505
  url?: string | undefined;
506
+ recordedAt: string;
522
507
  }[];
523
508
  selectorAliases: {
524
509
  alias: string;
525
510
  selector: string;
526
511
  fallbackSelectors: string[];
527
512
  }[];
528
- supersedes?: string | undefined;
529
513
  };
530
514
  verifyMemory(insightId: string): {
531
515
  insightId: string;
@@ -533,36 +517,36 @@ declare class SessionManager {
533
517
  siteDomain: string;
534
518
  sitePathPattern: string;
535
519
  actionRecipe: {
536
- type: "navigate" | "interact" | "assert";
520
+ type: "assert" | "interact" | "navigate";
537
521
  summary: string;
538
- payload: Record<string, unknown>;
539
522
  selector?: string | undefined;
523
+ payload: Record<string, unknown>;
540
524
  }[];
541
525
  expectedOutcome: string;
542
526
  confidence: number;
543
527
  successCount: number;
544
528
  failureCount: number;
545
529
  useCount: number;
546
- freshness: "fresh" | "suspect" | "stale";
530
+ freshness: "fresh" | "stale" | "suspect";
547
531
  staleStrikeCount: number;
548
532
  lastVerifiedAt: string;
549
533
  createdAt: string;
550
534
  updatedAt: string;
535
+ supersedes?: string | undefined;
551
536
  evidence: {
552
537
  evidenceId: string;
553
538
  commandId: string;
554
- result: "success" | "failure";
555
- recordedAt: string;
539
+ result: "failure" | "success";
556
540
  reason?: string | undefined;
557
541
  selector?: string | undefined;
558
542
  url?: string | undefined;
543
+ recordedAt: string;
559
544
  }[];
560
545
  selectorAliases: {
561
546
  alias: string;
562
547
  selector: string;
563
548
  fallbackSelectors: string[];
564
549
  }[];
565
- supersedes?: string | undefined;
566
550
  };
567
551
  memoryStats(): {
568
552
  total: number;
@@ -584,8 +568,6 @@ declare class SessionManager {
584
568
  private buildMemoryContext;
585
569
  private parseUrl;
586
570
  }
587
- //#endregion
588
- //#region src/transport/control-api.d.ts
589
571
  declare class ControlApi {
590
572
  private readonly sessions;
591
573
  constructor(sessions: SessionManager);
@@ -593,19 +575,19 @@ declare class ControlApi {
593
575
  browser: "chrome";
594
576
  }): Promise<{
595
577
  sessionId: string;
596
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
578
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
597
579
  browserType: "chrome";
598
580
  startedAt: string;
599
- authTokenRef: string;
600
581
  endedAt?: string | undefined;
582
+ authTokenRef: string;
601
583
  }>;
602
584
  getSession(sessionId: string): {
603
585
  sessionId: string;
604
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
586
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
605
587
  browserType: "chrome";
606
588
  startedAt: string;
607
- authTokenRef: string;
608
589
  endedAt?: string | undefined;
590
+ authTokenRef: string;
609
591
  };
610
592
  terminateSession(sessionId: string): Promise<void>;
611
593
  executeCommand(sessionId: string, input: {
@@ -615,7 +597,7 @@ declare class ControlApi {
615
597
  }): Promise<{
616
598
  commandId: string;
617
599
  sessionId: string;
618
- type: "navigate" | "interact" | "restart" | "terminate";
600
+ type: "interact" | "navigate" | "restart" | "terminate";
619
601
  payload: Record<string, unknown>;
620
602
  submittedAt: string;
621
603
  completedAt?: string | undefined;
@@ -624,11 +606,11 @@ declare class ControlApi {
624
606
  }>;
625
607
  restartSession(sessionId: string): Promise<{
626
608
  sessionId: string;
627
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
609
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
628
610
  browserType: "chrome";
629
611
  startedAt: string;
630
- authTokenRef: string;
631
612
  endedAt?: string | undefined;
613
+ authTokenRef: string;
632
614
  }>;
633
615
  rotateSessionToken(sessionId: string): string;
634
616
  getContent(sessionId: string, options: {
@@ -644,7 +626,7 @@ declare class ControlApi {
644
626
  events: {
645
627
  eventId: string;
646
628
  sessionId: string;
647
- category: "lifecycle" | "security" | "command";
629
+ category: "command" | "lifecycle" | "security";
648
630
  message: string;
649
631
  createdAt: string;
650
632
  severity: "error" | "info" | "warning";
@@ -663,36 +645,36 @@ declare class ControlApi {
663
645
  siteDomain: string;
664
646
  sitePathPattern: string;
665
647
  actionRecipe: {
666
- type: "navigate" | "interact" | "assert";
648
+ type: "assert" | "interact" | "navigate";
667
649
  summary: string;
668
- payload: Record<string, unknown>;
669
650
  selector?: string | undefined;
651
+ payload: Record<string, unknown>;
670
652
  }[];
671
653
  expectedOutcome: string;
672
654
  confidence: number;
673
655
  successCount: number;
674
656
  failureCount: number;
675
657
  useCount: number;
676
- freshness: "fresh" | "suspect" | "stale";
658
+ freshness: "fresh" | "stale" | "suspect";
677
659
  staleStrikeCount: number;
678
660
  lastVerifiedAt: string;
679
661
  createdAt: string;
680
662
  updatedAt: string;
663
+ supersedes?: string | undefined;
681
664
  evidence: {
682
665
  evidenceId: string;
683
666
  commandId: string;
684
- result: "success" | "failure";
685
- recordedAt: string;
667
+ result: "failure" | "success";
686
668
  reason?: string | undefined;
687
669
  selector?: string | undefined;
688
670
  url?: string | undefined;
671
+ recordedAt: string;
689
672
  }[];
690
673
  selectorAliases: {
691
674
  alias: string;
692
675
  selector: string;
693
676
  fallbackSelectors: string[];
694
677
  }[];
695
- supersedes?: string | undefined;
696
678
  };
697
679
  verifyMemory(insightId: string): {
698
680
  insightId: string;
@@ -700,36 +682,36 @@ declare class ControlApi {
700
682
  siteDomain: string;
701
683
  sitePathPattern: string;
702
684
  actionRecipe: {
703
- type: "navigate" | "interact" | "assert";
685
+ type: "assert" | "interact" | "navigate";
704
686
  summary: string;
705
- payload: Record<string, unknown>;
706
687
  selector?: string | undefined;
688
+ payload: Record<string, unknown>;
707
689
  }[];
708
690
  expectedOutcome: string;
709
691
  confidence: number;
710
692
  successCount: number;
711
693
  failureCount: number;
712
694
  useCount: number;
713
- freshness: "fresh" | "suspect" | "stale";
695
+ freshness: "fresh" | "stale" | "suspect";
714
696
  staleStrikeCount: number;
715
697
  lastVerifiedAt: string;
716
698
  createdAt: string;
717
699
  updatedAt: string;
700
+ supersedes?: string | undefined;
718
701
  evidence: {
719
702
  evidenceId: string;
720
703
  commandId: string;
721
- result: "success" | "failure";
722
- recordedAt: string;
704
+ result: "failure" | "success";
723
705
  reason?: string | undefined;
724
706
  selector?: string | undefined;
725
707
  url?: string | undefined;
708
+ recordedAt: string;
726
709
  }[];
727
710
  selectorAliases: {
728
711
  alias: string;
729
712
  selector: string;
730
713
  fallbackSelectors: string[];
731
714
  }[];
732
- supersedes?: string | undefined;
733
715
  };
734
716
  memoryStats(): {
735
717
  total: number;
@@ -746,8 +728,6 @@ declare class ControlApi {
746
728
  dryRun?: boolean;
747
729
  }): CleanupResult;
748
730
  }
749
- //#endregion
750
- //#region src/cli/runtime.d.ts
751
731
  interface AgenticBrowserCoreOptions {
752
732
  env?: NodeJS.ProcessEnv;
753
733
  browserController?: BrowserController;
@@ -758,33 +738,41 @@ interface ExecuteCommandInput {
758
738
  type: CommandType;
759
739
  payload: Record<string, unknown>;
760
740
  }
761
- declare class AgenticBrowserCore {
741
+ export declare class AgenticBrowserCore {
762
742
  readonly context: AppContext;
763
743
  readonly sessions: SessionManager;
764
744
  readonly api: ControlApi;
745
+ private readonly browserController;
746
+ private disposed;
765
747
  constructor(context: AppContext, browserController: BrowserController);
748
+ /**
749
+ * Release process-level resources (event store and memory store exit handlers,
750
+ * controller timers). Flushes pending memory writes.
751
+ * Does not terminate browser sessions. Idempotent.
752
+ */
753
+ dispose(): Promise<void>;
766
754
  startSession(input?: {
767
755
  browser: "chrome";
768
756
  }): Promise<{
769
757
  sessionId: string;
770
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
758
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
771
759
  browserType: "chrome";
772
760
  startedAt: string;
773
- authTokenRef: string;
774
761
  endedAt?: string | undefined;
762
+ authTokenRef: string;
775
763
  }>;
776
764
  getSession(sessionId: string): {
777
765
  sessionId: string;
778
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
766
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
779
767
  browserType: "chrome";
780
768
  startedAt: string;
781
- authTokenRef: string;
782
769
  endedAt?: string | undefined;
770
+ authTokenRef: string;
783
771
  };
784
772
  runCommand(input: ExecuteCommandInput): Promise<{
785
773
  commandId: string;
786
774
  sessionId: string;
787
- type: "navigate" | "interact" | "restart" | "terminate";
775
+ type: "interact" | "navigate" | "restart" | "terminate";
788
776
  payload: Record<string, unknown>;
789
777
  submittedAt: string;
790
778
  completedAt?: string | undefined;
@@ -809,11 +797,11 @@ declare class AgenticBrowserCore {
809
797
  getCurrentUrl(sessionId: string): Promise<string>;
810
798
  restartSession(sessionId: string): Promise<{
811
799
  sessionId: string;
812
- status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
800
+ status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
813
801
  browserType: "chrome";
814
802
  startedAt: string;
815
- authTokenRef: string;
816
803
  endedAt?: string | undefined;
804
+ authTokenRef: string;
817
805
  }>;
818
806
  stopSession(sessionId: string): Promise<void>;
819
807
  rotateSessionToken(sessionId: string): string;
@@ -830,36 +818,36 @@ declare class AgenticBrowserCore {
830
818
  siteDomain: string;
831
819
  sitePathPattern: string;
832
820
  actionRecipe: {
833
- type: "navigate" | "interact" | "assert";
821
+ type: "assert" | "interact" | "navigate";
834
822
  summary: string;
835
- payload: Record<string, unknown>;
836
823
  selector?: string | undefined;
824
+ payload: Record<string, unknown>;
837
825
  }[];
838
826
  expectedOutcome: string;
839
827
  confidence: number;
840
828
  successCount: number;
841
829
  failureCount: number;
842
830
  useCount: number;
843
- freshness: "fresh" | "suspect" | "stale";
831
+ freshness: "fresh" | "stale" | "suspect";
844
832
  staleStrikeCount: number;
845
833
  lastVerifiedAt: string;
846
834
  createdAt: string;
847
835
  updatedAt: string;
836
+ supersedes?: string | undefined;
848
837
  evidence: {
849
838
  evidenceId: string;
850
839
  commandId: string;
851
- result: "success" | "failure";
852
- recordedAt: string;
840
+ result: "failure" | "success";
853
841
  reason?: string | undefined;
854
842
  selector?: string | undefined;
855
843
  url?: string | undefined;
844
+ recordedAt: string;
856
845
  }[];
857
846
  selectorAliases: {
858
847
  alias: string;
859
848
  selector: string;
860
849
  fallbackSelectors: string[];
861
850
  }[];
862
- supersedes?: string | undefined;
863
851
  };
864
852
  verifyMemory(insightId: string): {
865
853
  insightId: string;
@@ -867,36 +855,36 @@ declare class AgenticBrowserCore {
867
855
  siteDomain: string;
868
856
  sitePathPattern: string;
869
857
  actionRecipe: {
870
- type: "navigate" | "interact" | "assert";
858
+ type: "assert" | "interact" | "navigate";
871
859
  summary: string;
872
- payload: Record<string, unknown>;
873
860
  selector?: string | undefined;
861
+ payload: Record<string, unknown>;
874
862
  }[];
875
863
  expectedOutcome: string;
876
864
  confidence: number;
877
865
  successCount: number;
878
866
  failureCount: number;
879
867
  useCount: number;
880
- freshness: "fresh" | "suspect" | "stale";
868
+ freshness: "fresh" | "stale" | "suspect";
881
869
  staleStrikeCount: number;
882
870
  lastVerifiedAt: string;
883
871
  createdAt: string;
884
872
  updatedAt: string;
873
+ supersedes?: string | undefined;
885
874
  evidence: {
886
875
  evidenceId: string;
887
876
  commandId: string;
888
- result: "success" | "failure";
889
- recordedAt: string;
877
+ result: "failure" | "success";
890
878
  reason?: string | undefined;
891
879
  selector?: string | undefined;
892
880
  url?: string | undefined;
881
+ recordedAt: string;
893
882
  }[];
894
883
  selectorAliases: {
895
884
  alias: string;
896
885
  selector: string;
897
886
  fallbackSelectors: string[];
898
887
  }[];
899
- supersedes?: string | undefined;
900
888
  };
901
889
  memoryStats(): {
902
890
  total: number;
@@ -909,7 +897,6 @@ declare class AgenticBrowserCore {
909
897
  }>;
910
898
  };
911
899
  }
912
- declare function createAgenticBrowserCore(options?: AgenticBrowserCoreOptions): AgenticBrowserCore;
913
- declare function createMockAgenticBrowserCore(env: NodeJS.ProcessEnv): AgenticBrowserCore;
914
- //#endregion
915
- export { AgenticBrowserCore, type AgenticBrowserCoreOptions, type DismissCookieBannerResult, type ElementAction, type ErrorCode, type ExecuteCommandInput, type InteractiveElement, type InteractiveElementRole, type InteractiveElementsOptions, type InteractiveElementsResult, type LaunchOptions, type ScreenshotOptions, type ScreenshotResult, createAgenticBrowserCore, createMockAgenticBrowserCore };
900
+ export declare function createAgenticBrowserCore(options?: AgenticBrowserCoreOptions): AgenticBrowserCore;
901
+ export declare function createMockAgenticBrowserCore(env: NodeJS.ProcessEnv): AgenticBrowserCore;
902
+ export type { AgenticBrowserCoreOptions, DismissCookieBannerResult, ElementAction, ErrorCode, ExecuteCommandInput, InteractiveElement, InteractiveElementRole, InteractiveElementsOptions, InteractiveElementsResult, LaunchOptions, ScreenshotOptions, ScreenshotResult };
package/dist/index.mjs CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import { i as createMockAgenticBrowserCore, n as createAgenticBrowserCore, t as AgenticBrowserCore } from "./runtime-BzdbtFF4.mjs";
3
- export { AgenticBrowserCore, createAgenticBrowserCore, createMockAgenticBrowserCore };
2
+ export { t as AgenticBrowserCore, n as createAgenticBrowserCore, i as createMockAgenticBrowserCore } from "./runtime-Bo7FmRYk.mjs";
@@ -1,5 +1,2 @@
1
1
 
2
- //#region src/mcp/index.d.ts
3
- declare function main(): Promise<void>;
4
- //#endregion
5
- export { main };
2
+ export declare function main(): Promise<void>;