agentic-browser 2.6.0 → 2.6.1

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 (2) hide show
  1. package/dist/index.d.mts +65 -65
  2. package/package.json +3 -3
package/dist/index.d.mts CHANGED
@@ -104,14 +104,14 @@ interface BrowserController {
104
104
  //#region src/memory/memory-schemas.d.ts
105
105
  declare const InsightFreshnessSchema: z.ZodEnum<{
106
106
  fresh: "fresh";
107
- stale: "stale";
108
107
  suspect: "suspect";
108
+ stale: "stale";
109
109
  }>;
110
110
  declare const TaskStepSchema: z.ZodObject<{
111
111
  type: z.ZodEnum<{
112
- assert: "assert";
113
- interact: "interact";
114
112
  navigate: "navigate";
113
+ interact: "interact";
114
+ assert: "assert";
115
115
  }>;
116
116
  summary: z.ZodString;
117
117
  selector: z.ZodOptional<z.ZodString>;
@@ -129,9 +129,9 @@ declare const TaskInsightSchema: z.ZodObject<{
129
129
  sitePathPattern: z.ZodString;
130
130
  actionRecipe: z.ZodArray<z.ZodObject<{
131
131
  type: z.ZodEnum<{
132
- assert: "assert";
133
- interact: "interact";
134
132
  navigate: "navigate";
133
+ interact: "interact";
134
+ assert: "assert";
135
135
  }>;
136
136
  summary: z.ZodString;
137
137
  selector: z.ZodOptional<z.ZodString>;
@@ -144,8 +144,8 @@ declare const TaskInsightSchema: z.ZodObject<{
144
144
  useCount: z.ZodNumber;
145
145
  freshness: z.ZodEnum<{
146
146
  fresh: "fresh";
147
- stale: "stale";
148
147
  suspect: "suspect";
148
+ stale: "stale";
149
149
  }>;
150
150
  staleStrikeCount: z.ZodNumber;
151
151
  lastVerifiedAt: z.ZodString;
@@ -156,8 +156,8 @@ declare const TaskInsightSchema: z.ZodObject<{
156
156
  evidenceId: z.ZodString;
157
157
  commandId: z.ZodString;
158
158
  result: z.ZodEnum<{
159
- failure: "failure";
160
159
  success: "success";
160
+ failure: "failure";
161
161
  }>;
162
162
  reason: z.ZodOptional<z.ZodString>;
163
163
  selector: z.ZodOptional<z.ZodString>;
@@ -236,25 +236,25 @@ interface MemorySearchResult {
236
236
  //#endregion
237
237
  //#region src/lib/domain-schemas.d.ts
238
238
  declare const SessionStatusSchema: z.ZodEnum<{
239
+ starting: "starting";
240
+ ready: "ready";
239
241
  disconnected: "disconnected";
240
242
  failed: "failed";
241
- ready: "ready";
242
- starting: "starting";
243
243
  terminated: "terminated";
244
244
  }>;
245
245
  declare const CommandTypeSchema: z.ZodEnum<{
246
- interact: "interact";
247
246
  navigate: "navigate";
247
+ interact: "interact";
248
248
  restart: "restart";
249
249
  terminate: "terminate";
250
250
  }>;
251
251
  declare const SessionSchema: z.ZodObject<{
252
252
  sessionId: z.ZodString;
253
253
  status: z.ZodEnum<{
254
+ starting: "starting";
255
+ ready: "ready";
254
256
  disconnected: "disconnected";
255
257
  failed: "failed";
256
- ready: "ready";
257
- starting: "starting";
258
258
  terminated: "terminated";
259
259
  }>;
260
260
  browserType: z.ZodLiteral<"chrome">;
@@ -266,8 +266,8 @@ declare const CommandSchema: z.ZodObject<{
266
266
  commandId: z.ZodString;
267
267
  sessionId: z.ZodString;
268
268
  type: z.ZodEnum<{
269
- interact: "interact";
270
269
  navigate: "navigate";
270
+ interact: "interact";
271
271
  restart: "restart";
272
272
  terminate: "terminate";
273
273
  }>;
@@ -285,9 +285,9 @@ declare const SessionEventSchema: z.ZodObject<{
285
285
  eventId: z.ZodString;
286
286
  sessionId: z.ZodString;
287
287
  category: z.ZodEnum<{
288
- command: "command";
289
288
  lifecycle: "lifecycle";
290
289
  security: "security";
290
+ command: "command";
291
291
  }>;
292
292
  message: z.ZodString;
293
293
  createdAt: z.ZodString;
@@ -496,36 +496,36 @@ declare class SessionManager {
496
496
  siteDomain: string;
497
497
  sitePathPattern: string;
498
498
  actionRecipe: {
499
- type: "assert" | "interact" | "navigate";
499
+ type: "navigate" | "interact" | "assert";
500
500
  summary: string;
501
- selector?: string | undefined;
502
501
  payload: Record<string, unknown>;
502
+ selector?: string | undefined;
503
503
  }[];
504
504
  expectedOutcome: string;
505
505
  confidence: number;
506
506
  successCount: number;
507
507
  failureCount: number;
508
508
  useCount: number;
509
- freshness: "fresh" | "stale" | "suspect";
509
+ freshness: "fresh" | "suspect" | "stale";
510
510
  staleStrikeCount: number;
511
511
  lastVerifiedAt: string;
512
512
  createdAt: string;
513
513
  updatedAt: string;
514
- supersedes?: string | undefined;
515
514
  evidence: {
516
515
  evidenceId: string;
517
516
  commandId: string;
518
- result: "failure" | "success";
517
+ result: "success" | "failure";
518
+ recordedAt: string;
519
519
  reason?: string | undefined;
520
520
  selector?: string | undefined;
521
521
  url?: string | undefined;
522
- recordedAt: string;
523
522
  }[];
524
523
  selectorAliases: {
525
524
  alias: string;
526
525
  selector: string;
527
526
  fallbackSelectors: string[];
528
527
  }[];
528
+ supersedes?: string | undefined;
529
529
  };
530
530
  verifyMemory(insightId: string): {
531
531
  insightId: string;
@@ -533,36 +533,36 @@ declare class SessionManager {
533
533
  siteDomain: string;
534
534
  sitePathPattern: string;
535
535
  actionRecipe: {
536
- type: "assert" | "interact" | "navigate";
536
+ type: "navigate" | "interact" | "assert";
537
537
  summary: string;
538
- selector?: string | undefined;
539
538
  payload: Record<string, unknown>;
539
+ selector?: string | undefined;
540
540
  }[];
541
541
  expectedOutcome: string;
542
542
  confidence: number;
543
543
  successCount: number;
544
544
  failureCount: number;
545
545
  useCount: number;
546
- freshness: "fresh" | "stale" | "suspect";
546
+ freshness: "fresh" | "suspect" | "stale";
547
547
  staleStrikeCount: number;
548
548
  lastVerifiedAt: string;
549
549
  createdAt: string;
550
550
  updatedAt: string;
551
- supersedes?: string | undefined;
552
551
  evidence: {
553
552
  evidenceId: string;
554
553
  commandId: string;
555
- result: "failure" | "success";
554
+ result: "success" | "failure";
555
+ recordedAt: string;
556
556
  reason?: string | undefined;
557
557
  selector?: string | undefined;
558
558
  url?: string | undefined;
559
- recordedAt: string;
560
559
  }[];
561
560
  selectorAliases: {
562
561
  alias: string;
563
562
  selector: string;
564
563
  fallbackSelectors: string[];
565
564
  }[];
565
+ supersedes?: string | undefined;
566
566
  };
567
567
  memoryStats(): {
568
568
  total: number;
@@ -593,19 +593,19 @@ declare class ControlApi {
593
593
  browser: "chrome";
594
594
  }): Promise<{
595
595
  sessionId: string;
596
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
596
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
597
597
  browserType: "chrome";
598
598
  startedAt: string;
599
- endedAt?: string | undefined;
600
599
  authTokenRef: string;
600
+ endedAt?: string | undefined;
601
601
  }>;
602
602
  getSession(sessionId: string): {
603
603
  sessionId: string;
604
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
604
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
605
605
  browserType: "chrome";
606
606
  startedAt: string;
607
- endedAt?: string | undefined;
608
607
  authTokenRef: string;
608
+ endedAt?: string | undefined;
609
609
  };
610
610
  terminateSession(sessionId: string): Promise<void>;
611
611
  executeCommand(sessionId: string, input: {
@@ -615,7 +615,7 @@ declare class ControlApi {
615
615
  }): Promise<{
616
616
  commandId: string;
617
617
  sessionId: string;
618
- type: "interact" | "navigate" | "restart" | "terminate";
618
+ type: "navigate" | "interact" | "restart" | "terminate";
619
619
  payload: Record<string, unknown>;
620
620
  submittedAt: string;
621
621
  completedAt?: string | undefined;
@@ -624,11 +624,11 @@ declare class ControlApi {
624
624
  }>;
625
625
  restartSession(sessionId: string): Promise<{
626
626
  sessionId: string;
627
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
627
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
628
628
  browserType: "chrome";
629
629
  startedAt: string;
630
- endedAt?: string | undefined;
631
630
  authTokenRef: string;
631
+ endedAt?: string | undefined;
632
632
  }>;
633
633
  rotateSessionToken(sessionId: string): string;
634
634
  getContent(sessionId: string, options: {
@@ -644,7 +644,7 @@ declare class ControlApi {
644
644
  events: {
645
645
  eventId: string;
646
646
  sessionId: string;
647
- category: "command" | "lifecycle" | "security";
647
+ category: "lifecycle" | "security" | "command";
648
648
  message: string;
649
649
  createdAt: string;
650
650
  severity: "error" | "info" | "warning";
@@ -663,36 +663,36 @@ declare class ControlApi {
663
663
  siteDomain: string;
664
664
  sitePathPattern: string;
665
665
  actionRecipe: {
666
- type: "assert" | "interact" | "navigate";
666
+ type: "navigate" | "interact" | "assert";
667
667
  summary: string;
668
- selector?: string | undefined;
669
668
  payload: Record<string, unknown>;
669
+ selector?: string | undefined;
670
670
  }[];
671
671
  expectedOutcome: string;
672
672
  confidence: number;
673
673
  successCount: number;
674
674
  failureCount: number;
675
675
  useCount: number;
676
- freshness: "fresh" | "stale" | "suspect";
676
+ freshness: "fresh" | "suspect" | "stale";
677
677
  staleStrikeCount: number;
678
678
  lastVerifiedAt: string;
679
679
  createdAt: string;
680
680
  updatedAt: string;
681
- supersedes?: string | undefined;
682
681
  evidence: {
683
682
  evidenceId: string;
684
683
  commandId: string;
685
- result: "failure" | "success";
684
+ result: "success" | "failure";
685
+ recordedAt: string;
686
686
  reason?: string | undefined;
687
687
  selector?: string | undefined;
688
688
  url?: string | undefined;
689
- recordedAt: string;
690
689
  }[];
691
690
  selectorAliases: {
692
691
  alias: string;
693
692
  selector: string;
694
693
  fallbackSelectors: string[];
695
694
  }[];
695
+ supersedes?: string | undefined;
696
696
  };
697
697
  verifyMemory(insightId: string): {
698
698
  insightId: string;
@@ -700,36 +700,36 @@ declare class ControlApi {
700
700
  siteDomain: string;
701
701
  sitePathPattern: string;
702
702
  actionRecipe: {
703
- type: "assert" | "interact" | "navigate";
703
+ type: "navigate" | "interact" | "assert";
704
704
  summary: string;
705
- selector?: string | undefined;
706
705
  payload: Record<string, unknown>;
706
+ selector?: string | undefined;
707
707
  }[];
708
708
  expectedOutcome: string;
709
709
  confidence: number;
710
710
  successCount: number;
711
711
  failureCount: number;
712
712
  useCount: number;
713
- freshness: "fresh" | "stale" | "suspect";
713
+ freshness: "fresh" | "suspect" | "stale";
714
714
  staleStrikeCount: number;
715
715
  lastVerifiedAt: string;
716
716
  createdAt: string;
717
717
  updatedAt: string;
718
- supersedes?: string | undefined;
719
718
  evidence: {
720
719
  evidenceId: string;
721
720
  commandId: string;
722
- result: "failure" | "success";
721
+ result: "success" | "failure";
722
+ recordedAt: string;
723
723
  reason?: string | undefined;
724
724
  selector?: string | undefined;
725
725
  url?: string | undefined;
726
- recordedAt: string;
727
726
  }[];
728
727
  selectorAliases: {
729
728
  alias: string;
730
729
  selector: string;
731
730
  fallbackSelectors: string[];
732
731
  }[];
732
+ supersedes?: string | undefined;
733
733
  };
734
734
  memoryStats(): {
735
735
  total: number;
@@ -767,24 +767,24 @@ declare class AgenticBrowserCore {
767
767
  browser: "chrome";
768
768
  }): Promise<{
769
769
  sessionId: string;
770
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
770
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
771
771
  browserType: "chrome";
772
772
  startedAt: string;
773
- endedAt?: string | undefined;
774
773
  authTokenRef: string;
774
+ endedAt?: string | undefined;
775
775
  }>;
776
776
  getSession(sessionId: string): {
777
777
  sessionId: string;
778
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
778
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
779
779
  browserType: "chrome";
780
780
  startedAt: string;
781
- endedAt?: string | undefined;
782
781
  authTokenRef: string;
782
+ endedAt?: string | undefined;
783
783
  };
784
784
  runCommand(input: ExecuteCommandInput): Promise<{
785
785
  commandId: string;
786
786
  sessionId: string;
787
- type: "interact" | "navigate" | "restart" | "terminate";
787
+ type: "navigate" | "interact" | "restart" | "terminate";
788
788
  payload: Record<string, unknown>;
789
789
  submittedAt: string;
790
790
  completedAt?: string | undefined;
@@ -809,11 +809,11 @@ declare class AgenticBrowserCore {
809
809
  getCurrentUrl(sessionId: string): Promise<string>;
810
810
  restartSession(sessionId: string): Promise<{
811
811
  sessionId: string;
812
- status: "disconnected" | "failed" | "ready" | "starting" | "terminated";
812
+ status: "starting" | "ready" | "disconnected" | "failed" | "terminated";
813
813
  browserType: "chrome";
814
814
  startedAt: string;
815
- endedAt?: string | undefined;
816
815
  authTokenRef: string;
816
+ endedAt?: string | undefined;
817
817
  }>;
818
818
  stopSession(sessionId: string): Promise<void>;
819
819
  rotateSessionToken(sessionId: string): string;
@@ -830,36 +830,36 @@ declare class AgenticBrowserCore {
830
830
  siteDomain: string;
831
831
  sitePathPattern: string;
832
832
  actionRecipe: {
833
- type: "assert" | "interact" | "navigate";
833
+ type: "navigate" | "interact" | "assert";
834
834
  summary: string;
835
- selector?: string | undefined;
836
835
  payload: Record<string, unknown>;
836
+ selector?: string | undefined;
837
837
  }[];
838
838
  expectedOutcome: string;
839
839
  confidence: number;
840
840
  successCount: number;
841
841
  failureCount: number;
842
842
  useCount: number;
843
- freshness: "fresh" | "stale" | "suspect";
843
+ freshness: "fresh" | "suspect" | "stale";
844
844
  staleStrikeCount: number;
845
845
  lastVerifiedAt: string;
846
846
  createdAt: string;
847
847
  updatedAt: string;
848
- supersedes?: string | undefined;
849
848
  evidence: {
850
849
  evidenceId: string;
851
850
  commandId: string;
852
- result: "failure" | "success";
851
+ result: "success" | "failure";
852
+ recordedAt: string;
853
853
  reason?: string | undefined;
854
854
  selector?: string | undefined;
855
855
  url?: string | undefined;
856
- recordedAt: string;
857
856
  }[];
858
857
  selectorAliases: {
859
858
  alias: string;
860
859
  selector: string;
861
860
  fallbackSelectors: string[];
862
861
  }[];
862
+ supersedes?: string | undefined;
863
863
  };
864
864
  verifyMemory(insightId: string): {
865
865
  insightId: string;
@@ -867,36 +867,36 @@ declare class AgenticBrowserCore {
867
867
  siteDomain: string;
868
868
  sitePathPattern: string;
869
869
  actionRecipe: {
870
- type: "assert" | "interact" | "navigate";
870
+ type: "navigate" | "interact" | "assert";
871
871
  summary: string;
872
- selector?: string | undefined;
873
872
  payload: Record<string, unknown>;
873
+ selector?: string | undefined;
874
874
  }[];
875
875
  expectedOutcome: string;
876
876
  confidence: number;
877
877
  successCount: number;
878
878
  failureCount: number;
879
879
  useCount: number;
880
- freshness: "fresh" | "stale" | "suspect";
880
+ freshness: "fresh" | "suspect" | "stale";
881
881
  staleStrikeCount: number;
882
882
  lastVerifiedAt: string;
883
883
  createdAt: string;
884
884
  updatedAt: string;
885
- supersedes?: string | undefined;
886
885
  evidence: {
887
886
  evidenceId: string;
888
887
  commandId: string;
889
- result: "failure" | "success";
888
+ result: "success" | "failure";
889
+ recordedAt: string;
890
890
  reason?: string | undefined;
891
891
  selector?: string | undefined;
892
892
  url?: string | undefined;
893
- recordedAt: string;
894
893
  }[];
895
894
  selectorAliases: {
896
895
  alias: string;
897
896
  selector: string;
898
897
  fallbackSelectors: string[];
899
898
  }[];
899
+ supersedes?: string | undefined;
900
900
  };
901
901
  memoryStats(): {
902
902
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-browser",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "CLI and MCP server for AI agents to control Chrome via CDP",
5
5
  "keywords": [
6
6
  "agent",
@@ -84,9 +84,9 @@
84
84
  "react-dom": "^19.2.7",
85
85
  "semantic-release": "^25.0.8",
86
86
  "tsdown": "^0.22.12",
87
- "typescript": "^7.0.2",
87
+ "typescript": "^6.0.2",
88
88
  "vitest": "^4.1.10",
89
- "vocs": "2.6.1"
89
+ "vocs": "1.4.1"
90
90
  },
91
91
  "engines": {
92
92
  "node": ">=22"