@opencode/plugin-browser 2.1.2 → 2.1.4

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.
@@ -15,45 +15,17 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
15
15
  readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
16
16
  readonly type: "check";
17
17
  readonly checked: boolean;
18
- } | {
19
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
20
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
21
- readonly type: "click";
22
- readonly button?: "left" | "middle" | "right" | undefined;
23
- readonly count?: 1 | 2 | undefined;
24
- readonly modifiers?: readonly ("Alt" | "Control" | "Meta" | "Shift")[] | undefined;
25
- } | {
26
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
27
- readonly type: "console";
28
- readonly level?: "debug" | "error" | "info" | "warning" | undefined;
29
- readonly limit?: number | undefined;
30
- } | {
31
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
32
- readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
33
- readonly type: "cpu.analyze";
34
- readonly limit?: number | undefined;
35
18
  } | {
36
19
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
37
20
  readonly type: "cpu.start";
38
21
  } | {
39
22
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
40
23
  readonly type: "cpu.stop";
41
- } | {
42
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
43
- readonly type: "dialog";
44
- readonly action: "accept" | "dismiss" | "get";
45
- readonly promptText?: string | undefined;
46
24
  } | {
47
25
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
48
26
  readonly type: "drag";
49
27
  readonly from: string & import("effect/Brand").Brand<"Browser.Ref">;
50
28
  readonly to: string & import("effect/Brand").Brand<"Browser.Ref">;
51
- } | {
52
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
53
- readonly frameID?: string | undefined;
54
- readonly type: "evaluate";
55
- readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
56
- readonly script: string;
57
29
  } | {
58
30
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
59
31
  readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
@@ -92,17 +64,86 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
92
64
  readonly type: "check";
93
65
  readonly checked: boolean;
94
66
  })[];
95
- } | {
96
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
97
- readonly frameID?: string | undefined;
98
- readonly type: "find";
99
- readonly text: string;
100
67
  } | {
101
68
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
102
69
  readonly type: "forward";
103
70
  } | {
104
71
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
105
72
  readonly type: "frames";
73
+ } | {
74
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
75
+ readonly type: "heap.snapshot";
76
+ } | {
77
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
78
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
79
+ readonly type: "hover";
80
+ } | {
81
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
82
+ readonly type: "lighthouse";
83
+ } | {
84
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
85
+ readonly type: "navigate";
86
+ readonly url: string;
87
+ } | {
88
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
89
+ readonly type: "press";
90
+ readonly key: string;
91
+ } | {
92
+ readonly type: "preview";
93
+ readonly path: string;
94
+ } | {
95
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
96
+ readonly type: "reload";
97
+ } | {
98
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
99
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
100
+ readonly type: "select";
101
+ readonly values: readonly string[];
102
+ } | {
103
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
104
+ readonly type: "stop";
105
+ } | {
106
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
107
+ readonly type: "tabs.close";
108
+ } | {
109
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
110
+ readonly type: "tabs.focus";
111
+ } | {
112
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
113
+ readonly type: "trace.stop";
114
+ } | {
115
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
116
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
117
+ readonly type: "click";
118
+ readonly button?: "left" | "middle" | "right" | undefined;
119
+ readonly count?: 1 | 2 | undefined;
120
+ readonly modifiers?: readonly ("Alt" | "Control" | "Meta" | "Shift")[] | undefined;
121
+ } | {
122
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
123
+ readonly type: "console";
124
+ readonly level?: "debug" | "error" | "info" | "warning" | undefined;
125
+ readonly limit?: number | undefined;
126
+ } | {
127
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
128
+ readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
129
+ readonly type: "cpu.analyze";
130
+ readonly limit?: number | undefined;
131
+ } | {
132
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
133
+ readonly type: "dialog";
134
+ readonly action: "accept" | "dismiss" | "get";
135
+ readonly promptText?: string | undefined;
136
+ } | {
137
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
138
+ readonly frameID?: string | undefined;
139
+ readonly type: "evaluate";
140
+ readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
141
+ readonly script: string;
142
+ } | {
143
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
144
+ readonly frameID?: string | undefined;
145
+ readonly type: "find";
146
+ readonly text: string;
106
147
  } | {
107
148
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
108
149
  readonly type: "heap.compare";
@@ -121,25 +162,11 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
121
162
  readonly type: "heap.query";
122
163
  readonly name?: string | undefined;
123
164
  readonly limit?: number | undefined;
124
- } | {
125
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
126
- readonly type: "heap.snapshot";
127
165
  } | {
128
166
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
129
167
  readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
130
168
  readonly type: "heap.summary";
131
169
  readonly limit?: number | undefined;
132
- } | {
133
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
134
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
135
- readonly type: "hover";
136
- } | {
137
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
138
- readonly type: "lighthouse";
139
- } | {
140
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
141
- readonly type: "navigate";
142
- readonly url: string;
143
170
  } | {
144
171
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
145
172
  readonly type: "network.get";
@@ -152,16 +179,6 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
152
179
  readonly urlContains?: string | undefined;
153
180
  readonly resourceType?: "document" | "eventsource" | "fetch" | "font" | "image" | "manifest" | "media" | "other" | "script" | "stylesheet" | "websocket" | "xhr" | undefined;
154
181
  readonly limit?: number | undefined;
155
- } | {
156
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
157
- readonly type: "press";
158
- readonly key: string;
159
- } | {
160
- readonly type: "preview";
161
- readonly path: string;
162
- } | {
163
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
164
- readonly type: "reload";
165
182
  } | {
166
183
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
167
184
  readonly type: "screenshot";
@@ -175,11 +192,6 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
175
192
  readonly type: "scroll";
176
193
  readonly deltaX?: number | undefined;
177
194
  readonly deltaY: number;
178
- } | {
179
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
180
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
181
- readonly type: "select";
182
- readonly values: readonly string[];
183
195
  } | {
184
196
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
185
197
  readonly frameID?: string | undefined;
@@ -187,15 +199,6 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
187
199
  readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
188
200
  readonly depth?: number | undefined;
189
201
  readonly boxes?: boolean | undefined;
190
- } | {
191
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
192
- readonly type: "stop";
193
- } | {
194
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
195
- readonly type: "tabs.close";
196
- } | {
197
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
198
- readonly type: "tabs.focus";
199
202
  } | {
200
203
  readonly type: "tabs.open";
201
204
  readonly url?: string | undefined;
@@ -209,9 +212,6 @@ export declare const make: (ctx: Pick<Context, "agent" | "event" | "location" |
209
212
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
210
213
  readonly type: "trace.start";
211
214
  readonly durationMs?: number | undefined;
212
- } | {
213
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
214
- readonly type: "trace.stop";
215
215
  } | {
216
216
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
217
217
  readonly frameID?: string | undefined;
package/dist/rpc.d.ts CHANGED
@@ -2117,7 +2117,6 @@ export declare const Definition: {
2117
2117
  readonly input: Schema.Struct<{
2118
2118
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2119
2119
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2120
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2121
2120
  };
2122
2121
  readonly connectionID: Schema.String;
2123
2122
  readonly version: Schema.Literal<4>;
@@ -2131,7 +2130,6 @@ export declare const Definition: {
2131
2130
  readonly input: Schema.Struct<{
2132
2131
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2133
2132
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2134
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2135
2133
  };
2136
2134
  readonly connectionID: Schema.String;
2137
2135
  readonly state: Schema.Struct<{
@@ -2157,7 +2155,6 @@ export declare const Definition: {
2157
2155
  readonly input: Schema.Struct<{
2158
2156
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2159
2157
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2160
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2161
2158
  };
2162
2159
  connectionID: Schema.String;
2163
2160
  requestID: Schema.String;
@@ -2446,7 +2443,6 @@ export declare const Definition: {
2446
2443
  readonly input: Schema.Struct<{
2447
2444
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2448
2445
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2449
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2450
2446
  };
2451
2447
  readonly connectionID: Schema.String;
2452
2448
  readonly requestID: Schema.String;
@@ -2476,7 +2472,6 @@ export declare const Definition: {
2476
2472
  readonly input: Schema.Struct<{
2477
2473
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2478
2474
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2479
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2480
2475
  };
2481
2476
  readonly connectionID: Schema.String;
2482
2477
  readonly target: Schema.Struct<{
@@ -2493,7 +2488,6 @@ export declare const Definition: {
2493
2488
  readonly input: Schema.Struct<{
2494
2489
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2495
2490
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2496
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2497
2491
  };
2498
2492
  connectionID: Schema.String;
2499
2493
  tunnelID: Schema.String;
@@ -2510,7 +2504,6 @@ export declare const Definition: {
2510
2504
  readonly input: Schema.Struct<{
2511
2505
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2512
2506
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2513
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2514
2507
  };
2515
2508
  readonly connectionID: Schema.String;
2516
2509
  readonly tunnelID: Schema.String;
@@ -2526,7 +2519,6 @@ export declare const Definition: {
2526
2519
  readonly input: Schema.Struct<{
2527
2520
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2528
2521
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2529
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2530
2522
  };
2531
2523
  connectionID: Schema.String;
2532
2524
  tunnelID: Schema.String;
package/dist/tools.d.ts CHANGED
@@ -14,45 +14,17 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
14
14
  readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
15
15
  readonly type: "check";
16
16
  readonly checked: boolean;
17
- } | {
18
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
19
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
20
- readonly type: "click";
21
- readonly button?: "left" | "middle" | "right" | undefined;
22
- readonly count?: 1 | 2 | undefined;
23
- readonly modifiers?: readonly ("Alt" | "Control" | "Meta" | "Shift")[] | undefined;
24
- } | {
25
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
26
- readonly type: "console";
27
- readonly level?: "debug" | "error" | "info" | "warning" | undefined;
28
- readonly limit?: number | undefined;
29
- } | {
30
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
31
- readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
32
- readonly type: "cpu.analyze";
33
- readonly limit?: number | undefined;
34
17
  } | {
35
18
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
36
19
  readonly type: "cpu.start";
37
20
  } | {
38
21
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
39
22
  readonly type: "cpu.stop";
40
- } | {
41
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
42
- readonly type: "dialog";
43
- readonly action: "accept" | "dismiss" | "get";
44
- readonly promptText?: string | undefined;
45
23
  } | {
46
24
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
47
25
  readonly type: "drag";
48
26
  readonly from: string & import("effect/Brand").Brand<"Browser.Ref">;
49
27
  readonly to: string & import("effect/Brand").Brand<"Browser.Ref">;
50
- } | {
51
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
52
- readonly frameID?: string | undefined;
53
- readonly type: "evaluate";
54
- readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
55
- readonly script: string;
56
28
  } | {
57
29
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
58
30
  readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
@@ -91,17 +63,86 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
91
63
  readonly type: "check";
92
64
  readonly checked: boolean;
93
65
  })[];
94
- } | {
95
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
96
- readonly frameID?: string | undefined;
97
- readonly type: "find";
98
- readonly text: string;
99
66
  } | {
100
67
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
101
68
  readonly type: "forward";
102
69
  } | {
103
70
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
104
71
  readonly type: "frames";
72
+ } | {
73
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
74
+ readonly type: "heap.snapshot";
75
+ } | {
76
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
77
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
78
+ readonly type: "hover";
79
+ } | {
80
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
81
+ readonly type: "lighthouse";
82
+ } | {
83
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
84
+ readonly type: "navigate";
85
+ readonly url: string;
86
+ } | {
87
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
88
+ readonly type: "press";
89
+ readonly key: string;
90
+ } | {
91
+ readonly type: "preview";
92
+ readonly path: string;
93
+ } | {
94
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
95
+ readonly type: "reload";
96
+ } | {
97
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
98
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
99
+ readonly type: "select";
100
+ readonly values: readonly string[];
101
+ } | {
102
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
103
+ readonly type: "stop";
104
+ } | {
105
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
106
+ readonly type: "tabs.close";
107
+ } | {
108
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
109
+ readonly type: "tabs.focus";
110
+ } | {
111
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
112
+ readonly type: "trace.stop";
113
+ } | {
114
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
115
+ readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
116
+ readonly type: "click";
117
+ readonly button?: "left" | "middle" | "right" | undefined;
118
+ readonly count?: 1 | 2 | undefined;
119
+ readonly modifiers?: readonly ("Alt" | "Control" | "Meta" | "Shift")[] | undefined;
120
+ } | {
121
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
122
+ readonly type: "console";
123
+ readonly level?: "debug" | "error" | "info" | "warning" | undefined;
124
+ readonly limit?: number | undefined;
125
+ } | {
126
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
127
+ readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
128
+ readonly type: "cpu.analyze";
129
+ readonly limit?: number | undefined;
130
+ } | {
131
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
132
+ readonly type: "dialog";
133
+ readonly action: "accept" | "dismiss" | "get";
134
+ readonly promptText?: string | undefined;
135
+ } | {
136
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
137
+ readonly frameID?: string | undefined;
138
+ readonly type: "evaluate";
139
+ readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
140
+ readonly script: string;
141
+ } | {
142
+ readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
143
+ readonly frameID?: string | undefined;
144
+ readonly type: "find";
145
+ readonly text: string;
105
146
  } | {
106
147
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
107
148
  readonly type: "heap.compare";
@@ -120,25 +161,11 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
120
161
  readonly type: "heap.query";
121
162
  readonly name?: string | undefined;
122
163
  readonly limit?: number | undefined;
123
- } | {
124
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
125
- readonly type: "heap.snapshot";
126
164
  } | {
127
165
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
128
166
  readonly fileID: string & import("effect/Brand").Brand<"Browser.FileID">;
129
167
  readonly type: "heap.summary";
130
168
  readonly limit?: number | undefined;
131
- } | {
132
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
133
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
134
- readonly type: "hover";
135
- } | {
136
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
137
- readonly type: "lighthouse";
138
- } | {
139
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
140
- readonly type: "navigate";
141
- readonly url: string;
142
169
  } | {
143
170
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
144
171
  readonly type: "network.get";
@@ -151,16 +178,6 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
151
178
  readonly urlContains?: string | undefined;
152
179
  readonly resourceType?: "document" | "eventsource" | "fetch" | "font" | "image" | "manifest" | "media" | "other" | "script" | "stylesheet" | "websocket" | "xhr" | undefined;
153
180
  readonly limit?: number | undefined;
154
- } | {
155
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
156
- readonly type: "press";
157
- readonly key: string;
158
- } | {
159
- readonly type: "preview";
160
- readonly path: string;
161
- } | {
162
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
163
- readonly type: "reload";
164
181
  } | {
165
182
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
166
183
  readonly type: "screenshot";
@@ -174,11 +191,6 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
174
191
  readonly type: "scroll";
175
192
  readonly deltaX?: number | undefined;
176
193
  readonly deltaY: number;
177
- } | {
178
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
179
- readonly ref: string & import("effect/Brand").Brand<"Browser.Ref">;
180
- readonly type: "select";
181
- readonly values: readonly string[];
182
194
  } | {
183
195
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
184
196
  readonly frameID?: string | undefined;
@@ -186,15 +198,6 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
186
198
  readonly ref?: (string & import("effect/Brand").Brand<"Browser.Ref">) | undefined;
187
199
  readonly depth?: number | undefined;
188
200
  readonly boxes?: boolean | undefined;
189
- } | {
190
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
191
- readonly type: "stop";
192
- } | {
193
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
194
- readonly type: "tabs.close";
195
- } | {
196
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
197
- readonly type: "tabs.focus";
198
201
  } | {
199
202
  readonly type: "tabs.open";
200
203
  readonly url?: string | undefined;
@@ -208,9 +211,6 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
208
211
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
209
212
  readonly type: "trace.start";
210
213
  readonly durationMs?: number | undefined;
211
- } | {
212
- readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
213
- readonly type: "trace.stop";
214
214
  } | {
215
215
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
216
216
  readonly frameID?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/plugin-browser",
4
- "version": "2.1.2",
4
+ "version": "2.1.4",
5
5
  "description": "OpenCode's desktop browser plugin",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -32,18 +32,19 @@
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc -p tsconfig.build.json",
35
- "typecheck": "tsc --noEmit -p tsconfig.test.json",
35
+ "typecheck": "bun check --no-script -p tsconfig.test.json",
36
+ "typecheck:tsc": "tsc --noEmit -p tsconfig.test.json",
36
37
  "test": "bun test"
37
38
  },
38
39
  "dependencies": {
39
- "@opencode/plugin": "2.1.2",
40
- "@opencode/schema": "2.1.2",
40
+ "@opencode/plugin": "2.1.4",
41
+ "@opencode/schema": "2.1.4",
41
42
  "effect": "4.0.1"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@tsconfig/bun": "1.0.9",
45
- "@types/bun": "1.4.0",
46
- "@typescript/native": "npm:typescript@7.0.2",
46
+ "@types/bun": "1.4.3",
47
+ "@typescript/native": "npm:typescript@7.1.0-beta",
47
48
  "typescript": "npm:@typescript/typescript6@6.0.2"
48
49
  }
49
50
  }