@opencode/plugin-browser 2.0.10 → 2.0.11
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/connection.d.ts +3 -2
- package/dist/rpc.d.ts +47 -0
- package/dist/rpc.js +1 -0
- package/dist/tools.d.ts +3 -2
- package/package.json +3 -3
package/dist/connection.d.ts
CHANGED
|
@@ -218,12 +218,13 @@ export declare const make: (ctx: Pick<Context, "location" | "rpc" | "event" | "s
|
|
|
218
218
|
}) => Effect.Effect<{
|
|
219
219
|
tab: {
|
|
220
220
|
readonly id: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
221
|
-
readonly url: string;
|
|
222
221
|
readonly title: string;
|
|
222
|
+
readonly url: string;
|
|
223
|
+
readonly generation: number;
|
|
223
224
|
readonly loading: boolean;
|
|
224
225
|
readonly canGoBack: boolean;
|
|
225
226
|
readonly canGoForward: boolean;
|
|
226
|
-
readonly
|
|
227
|
+
readonly loadError?: string | undefined;
|
|
227
228
|
} | undefined;
|
|
228
229
|
inspect: () => Effect.Effect<{
|
|
229
230
|
readonly resources: readonly string[];
|
package/dist/rpc.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const Tab: Schema.Struct<{
|
|
|
16
16
|
readonly url: Schema.String;
|
|
17
17
|
readonly title: Schema.String;
|
|
18
18
|
readonly loading: Schema.Boolean;
|
|
19
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
19
20
|
readonly canGoBack: Schema.Boolean;
|
|
20
21
|
readonly canGoForward: Schema.Boolean;
|
|
21
22
|
readonly generation: Schema.Int;
|
|
@@ -28,6 +29,7 @@ export declare const State: Schema.Struct<{
|
|
|
28
29
|
readonly url: Schema.String;
|
|
29
30
|
readonly title: Schema.String;
|
|
30
31
|
readonly loading: Schema.Boolean;
|
|
32
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
31
33
|
readonly canGoBack: Schema.Boolean;
|
|
32
34
|
readonly canGoForward: Schema.Boolean;
|
|
33
35
|
readonly generation: Schema.Int;
|
|
@@ -121,6 +123,7 @@ export declare const Operations: readonly [{
|
|
|
121
123
|
readonly url: Schema.String;
|
|
122
124
|
readonly title: Schema.String;
|
|
123
125
|
readonly loading: Schema.Boolean;
|
|
126
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
124
127
|
readonly canGoBack: Schema.Boolean;
|
|
125
128
|
readonly canGoForward: Schema.Boolean;
|
|
126
129
|
readonly generation: Schema.Int;
|
|
@@ -142,6 +145,7 @@ export declare const Operations: readonly [{
|
|
|
142
145
|
readonly url: Schema.String;
|
|
143
146
|
readonly title: Schema.String;
|
|
144
147
|
readonly loading: Schema.Boolean;
|
|
148
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
145
149
|
readonly canGoBack: Schema.Boolean;
|
|
146
150
|
readonly canGoForward: Schema.Boolean;
|
|
147
151
|
readonly generation: Schema.Int;
|
|
@@ -163,6 +167,7 @@ export declare const Operations: readonly [{
|
|
|
163
167
|
readonly url: Schema.String;
|
|
164
168
|
readonly title: Schema.String;
|
|
165
169
|
readonly loading: Schema.Boolean;
|
|
170
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
166
171
|
readonly canGoBack: Schema.Boolean;
|
|
167
172
|
readonly canGoForward: Schema.Boolean;
|
|
168
173
|
readonly generation: Schema.Int;
|
|
@@ -184,6 +189,7 @@ export declare const Operations: readonly [{
|
|
|
184
189
|
readonly url: Schema.String;
|
|
185
190
|
readonly title: Schema.String;
|
|
186
191
|
readonly loading: Schema.Boolean;
|
|
192
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
187
193
|
readonly canGoBack: Schema.Boolean;
|
|
188
194
|
readonly canGoForward: Schema.Boolean;
|
|
189
195
|
readonly generation: Schema.Int;
|
|
@@ -207,6 +213,7 @@ export declare const Operations: readonly [{
|
|
|
207
213
|
readonly url: Schema.String;
|
|
208
214
|
readonly title: Schema.String;
|
|
209
215
|
readonly loading: Schema.Boolean;
|
|
216
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
210
217
|
readonly canGoBack: Schema.Boolean;
|
|
211
218
|
readonly canGoForward: Schema.Boolean;
|
|
212
219
|
readonly generation: Schema.Int;
|
|
@@ -228,6 +235,7 @@ export declare const Operations: readonly [{
|
|
|
228
235
|
readonly url: Schema.String;
|
|
229
236
|
readonly title: Schema.String;
|
|
230
237
|
readonly loading: Schema.Boolean;
|
|
238
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
231
239
|
readonly canGoBack: Schema.Boolean;
|
|
232
240
|
readonly canGoForward: Schema.Boolean;
|
|
233
241
|
readonly generation: Schema.Int;
|
|
@@ -248,6 +256,7 @@ export declare const Operations: readonly [{
|
|
|
248
256
|
readonly url: Schema.String;
|
|
249
257
|
readonly title: Schema.String;
|
|
250
258
|
readonly loading: Schema.Boolean;
|
|
259
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
251
260
|
readonly canGoBack: Schema.Boolean;
|
|
252
261
|
readonly canGoForward: Schema.Boolean;
|
|
253
262
|
readonly generation: Schema.Int;
|
|
@@ -268,6 +277,7 @@ export declare const Operations: readonly [{
|
|
|
268
277
|
readonly url: Schema.String;
|
|
269
278
|
readonly title: Schema.String;
|
|
270
279
|
readonly loading: Schema.Boolean;
|
|
280
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
271
281
|
readonly canGoBack: Schema.Boolean;
|
|
272
282
|
readonly canGoForward: Schema.Boolean;
|
|
273
283
|
readonly generation: Schema.Int;
|
|
@@ -288,6 +298,7 @@ export declare const Operations: readonly [{
|
|
|
288
298
|
readonly url: Schema.String;
|
|
289
299
|
readonly title: Schema.String;
|
|
290
300
|
readonly loading: Schema.Boolean;
|
|
301
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
291
302
|
readonly canGoBack: Schema.Boolean;
|
|
292
303
|
readonly canGoForward: Schema.Boolean;
|
|
293
304
|
readonly generation: Schema.Int;
|
|
@@ -315,6 +326,7 @@ export declare const Operations: readonly [{
|
|
|
315
326
|
readonly url: Schema.String;
|
|
316
327
|
readonly title: Schema.String;
|
|
317
328
|
readonly loading: Schema.Boolean;
|
|
329
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
318
330
|
readonly canGoBack: Schema.Boolean;
|
|
319
331
|
readonly canGoForward: Schema.Boolean;
|
|
320
332
|
readonly generation: Schema.Int;
|
|
@@ -343,6 +355,7 @@ export declare const Operations: readonly [{
|
|
|
343
355
|
readonly url: Schema.String;
|
|
344
356
|
readonly title: Schema.String;
|
|
345
357
|
readonly loading: Schema.Boolean;
|
|
358
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
346
359
|
readonly canGoBack: Schema.Boolean;
|
|
347
360
|
readonly canGoForward: Schema.Boolean;
|
|
348
361
|
readonly generation: Schema.Int;
|
|
@@ -373,6 +386,7 @@ export declare const Operations: readonly [{
|
|
|
373
386
|
readonly url: Schema.String;
|
|
374
387
|
readonly title: Schema.String;
|
|
375
388
|
readonly loading: Schema.Boolean;
|
|
389
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
376
390
|
readonly canGoBack: Schema.Boolean;
|
|
377
391
|
readonly canGoForward: Schema.Boolean;
|
|
378
392
|
readonly generation: Schema.Int;
|
|
@@ -400,6 +414,7 @@ export declare const Operations: readonly [{
|
|
|
400
414
|
readonly url: Schema.String;
|
|
401
415
|
readonly title: Schema.String;
|
|
402
416
|
readonly loading: Schema.Boolean;
|
|
417
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
403
418
|
readonly canGoBack: Schema.Boolean;
|
|
404
419
|
readonly canGoForward: Schema.Boolean;
|
|
405
420
|
readonly generation: Schema.Int;
|
|
@@ -427,6 +442,7 @@ export declare const Operations: readonly [{
|
|
|
427
442
|
readonly url: Schema.String;
|
|
428
443
|
readonly title: Schema.String;
|
|
429
444
|
readonly loading: Schema.Boolean;
|
|
445
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
430
446
|
readonly canGoBack: Schema.Boolean;
|
|
431
447
|
readonly canGoForward: Schema.Boolean;
|
|
432
448
|
readonly generation: Schema.Int;
|
|
@@ -452,6 +468,7 @@ export declare const Operations: readonly [{
|
|
|
452
468
|
readonly url: Schema.String;
|
|
453
469
|
readonly title: Schema.String;
|
|
454
470
|
readonly loading: Schema.Boolean;
|
|
471
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
455
472
|
readonly canGoBack: Schema.Boolean;
|
|
456
473
|
readonly canGoForward: Schema.Boolean;
|
|
457
474
|
readonly generation: Schema.Int;
|
|
@@ -475,6 +492,7 @@ export declare const Operations: readonly [{
|
|
|
475
492
|
readonly url: Schema.String;
|
|
476
493
|
readonly title: Schema.String;
|
|
477
494
|
readonly loading: Schema.Boolean;
|
|
495
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
478
496
|
readonly canGoBack: Schema.Boolean;
|
|
479
497
|
readonly canGoForward: Schema.Boolean;
|
|
480
498
|
readonly generation: Schema.Int;
|
|
@@ -499,6 +517,7 @@ export declare const Operations: readonly [{
|
|
|
499
517
|
readonly url: Schema.String;
|
|
500
518
|
readonly title: Schema.String;
|
|
501
519
|
readonly loading: Schema.Boolean;
|
|
520
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
502
521
|
readonly canGoBack: Schema.Boolean;
|
|
503
522
|
readonly canGoForward: Schema.Boolean;
|
|
504
523
|
readonly generation: Schema.Int;
|
|
@@ -534,6 +553,7 @@ export declare const Operations: readonly [{
|
|
|
534
553
|
readonly url: Schema.String;
|
|
535
554
|
readonly title: Schema.String;
|
|
536
555
|
readonly loading: Schema.Boolean;
|
|
556
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
537
557
|
readonly canGoBack: Schema.Boolean;
|
|
538
558
|
readonly canGoForward: Schema.Boolean;
|
|
539
559
|
readonly generation: Schema.Int;
|
|
@@ -569,6 +589,7 @@ export declare const Operations: readonly [{
|
|
|
569
589
|
readonly url: Schema.String;
|
|
570
590
|
readonly title: Schema.String;
|
|
571
591
|
readonly loading: Schema.Boolean;
|
|
592
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
572
593
|
readonly canGoBack: Schema.Boolean;
|
|
573
594
|
readonly canGoForward: Schema.Boolean;
|
|
574
595
|
readonly generation: Schema.Int;
|
|
@@ -593,6 +614,7 @@ export declare const Operations: readonly [{
|
|
|
593
614
|
readonly url: Schema.String;
|
|
594
615
|
readonly title: Schema.String;
|
|
595
616
|
readonly loading: Schema.Boolean;
|
|
617
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
596
618
|
readonly canGoBack: Schema.Boolean;
|
|
597
619
|
readonly canGoForward: Schema.Boolean;
|
|
598
620
|
readonly generation: Schema.Int;
|
|
@@ -616,6 +638,7 @@ export declare const Operations: readonly [{
|
|
|
616
638
|
readonly url: Schema.String;
|
|
617
639
|
readonly title: Schema.String;
|
|
618
640
|
readonly loading: Schema.Boolean;
|
|
641
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
619
642
|
readonly canGoBack: Schema.Boolean;
|
|
620
643
|
readonly canGoForward: Schema.Boolean;
|
|
621
644
|
readonly generation: Schema.Int;
|
|
@@ -639,6 +662,7 @@ export declare const Operations: readonly [{
|
|
|
639
662
|
readonly url: Schema.String;
|
|
640
663
|
readonly title: Schema.String;
|
|
641
664
|
readonly loading: Schema.Boolean;
|
|
665
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
642
666
|
readonly canGoBack: Schema.Boolean;
|
|
643
667
|
readonly canGoForward: Schema.Boolean;
|
|
644
668
|
readonly generation: Schema.Int;
|
|
@@ -665,6 +689,7 @@ export declare const Operations: readonly [{
|
|
|
665
689
|
readonly url: Schema.String;
|
|
666
690
|
readonly title: Schema.String;
|
|
667
691
|
readonly loading: Schema.Boolean;
|
|
692
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
668
693
|
readonly canGoBack: Schema.Boolean;
|
|
669
694
|
readonly canGoForward: Schema.Boolean;
|
|
670
695
|
readonly generation: Schema.Int;
|
|
@@ -702,6 +727,7 @@ export declare const Operations: readonly [{
|
|
|
702
727
|
readonly url: Schema.String;
|
|
703
728
|
readonly title: Schema.String;
|
|
704
729
|
readonly loading: Schema.Boolean;
|
|
730
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
705
731
|
readonly canGoBack: Schema.Boolean;
|
|
706
732
|
readonly canGoForward: Schema.Boolean;
|
|
707
733
|
readonly generation: Schema.Int;
|
|
@@ -736,6 +762,7 @@ export declare const Operations: readonly [{
|
|
|
736
762
|
readonly url: Schema.String;
|
|
737
763
|
readonly title: Schema.String;
|
|
738
764
|
readonly loading: Schema.Boolean;
|
|
765
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
739
766
|
readonly canGoBack: Schema.Boolean;
|
|
740
767
|
readonly canGoForward: Schema.Boolean;
|
|
741
768
|
readonly generation: Schema.Int;
|
|
@@ -761,6 +788,7 @@ export declare const Operations: readonly [{
|
|
|
761
788
|
readonly url: Schema.String;
|
|
762
789
|
readonly title: Schema.String;
|
|
763
790
|
readonly loading: Schema.Boolean;
|
|
791
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
764
792
|
readonly canGoBack: Schema.Boolean;
|
|
765
793
|
readonly canGoForward: Schema.Boolean;
|
|
766
794
|
readonly generation: Schema.Int;
|
|
@@ -785,6 +813,7 @@ export declare const Operations: readonly [{
|
|
|
785
813
|
readonly url: Schema.String;
|
|
786
814
|
readonly title: Schema.String;
|
|
787
815
|
readonly loading: Schema.Boolean;
|
|
816
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
788
817
|
readonly canGoBack: Schema.Boolean;
|
|
789
818
|
readonly canGoForward: Schema.Boolean;
|
|
790
819
|
readonly generation: Schema.Int;
|
|
@@ -815,6 +844,7 @@ export declare const Operations: readonly [{
|
|
|
815
844
|
readonly url: Schema.String;
|
|
816
845
|
readonly title: Schema.String;
|
|
817
846
|
readonly loading: Schema.Boolean;
|
|
847
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
818
848
|
readonly canGoBack: Schema.Boolean;
|
|
819
849
|
readonly canGoForward: Schema.Boolean;
|
|
820
850
|
readonly generation: Schema.Int;
|
|
@@ -845,6 +875,7 @@ export declare const Operations: readonly [{
|
|
|
845
875
|
readonly url: Schema.String;
|
|
846
876
|
readonly title: Schema.String;
|
|
847
877
|
readonly loading: Schema.Boolean;
|
|
878
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
848
879
|
readonly canGoBack: Schema.Boolean;
|
|
849
880
|
readonly canGoForward: Schema.Boolean;
|
|
850
881
|
readonly generation: Schema.Int;
|
|
@@ -888,6 +919,7 @@ export declare const Operations: readonly [{
|
|
|
888
919
|
readonly url: Schema.String;
|
|
889
920
|
readonly title: Schema.String;
|
|
890
921
|
readonly loading: Schema.Boolean;
|
|
922
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
891
923
|
readonly canGoBack: Schema.Boolean;
|
|
892
924
|
readonly canGoForward: Schema.Boolean;
|
|
893
925
|
readonly generation: Schema.Int;
|
|
@@ -945,6 +977,7 @@ export declare const Operations: readonly [{
|
|
|
945
977
|
readonly url: Schema.String;
|
|
946
978
|
readonly title: Schema.String;
|
|
947
979
|
readonly loading: Schema.Boolean;
|
|
980
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
948
981
|
readonly canGoBack: Schema.Boolean;
|
|
949
982
|
readonly canGoForward: Schema.Boolean;
|
|
950
983
|
readonly generation: Schema.Int;
|
|
@@ -1030,6 +1063,7 @@ export declare const Operations: readonly [{
|
|
|
1030
1063
|
readonly url: Schema.String;
|
|
1031
1064
|
readonly title: Schema.String;
|
|
1032
1065
|
readonly loading: Schema.Boolean;
|
|
1066
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1033
1067
|
readonly canGoBack: Schema.Boolean;
|
|
1034
1068
|
readonly canGoForward: Schema.Boolean;
|
|
1035
1069
|
readonly generation: Schema.Int;
|
|
@@ -1057,6 +1091,7 @@ export declare const Operations: readonly [{
|
|
|
1057
1091
|
readonly url: Schema.String;
|
|
1058
1092
|
readonly title: Schema.String;
|
|
1059
1093
|
readonly loading: Schema.Boolean;
|
|
1094
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1060
1095
|
readonly canGoBack: Schema.Boolean;
|
|
1061
1096
|
readonly canGoForward: Schema.Boolean;
|
|
1062
1097
|
readonly generation: Schema.Int;
|
|
@@ -1089,6 +1124,7 @@ export declare const Operations: readonly [{
|
|
|
1089
1124
|
readonly url: Schema.String;
|
|
1090
1125
|
readonly title: Schema.String;
|
|
1091
1126
|
readonly loading: Schema.Boolean;
|
|
1127
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1092
1128
|
readonly canGoBack: Schema.Boolean;
|
|
1093
1129
|
readonly canGoForward: Schema.Boolean;
|
|
1094
1130
|
readonly generation: Schema.Int;
|
|
@@ -1125,6 +1161,7 @@ export declare const Operations: readonly [{
|
|
|
1125
1161
|
readonly url: Schema.String;
|
|
1126
1162
|
readonly title: Schema.String;
|
|
1127
1163
|
readonly loading: Schema.Boolean;
|
|
1164
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1128
1165
|
readonly canGoBack: Schema.Boolean;
|
|
1129
1166
|
readonly canGoForward: Schema.Boolean;
|
|
1130
1167
|
readonly generation: Schema.Int;
|
|
@@ -1150,6 +1187,7 @@ export declare const Operations: readonly [{
|
|
|
1150
1187
|
readonly url: Schema.String;
|
|
1151
1188
|
readonly title: Schema.String;
|
|
1152
1189
|
readonly loading: Schema.Boolean;
|
|
1190
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1153
1191
|
readonly canGoBack: Schema.Boolean;
|
|
1154
1192
|
readonly canGoForward: Schema.Boolean;
|
|
1155
1193
|
readonly generation: Schema.Int;
|
|
@@ -1180,6 +1218,7 @@ export declare const Operations: readonly [{
|
|
|
1180
1218
|
readonly url: Schema.String;
|
|
1181
1219
|
readonly title: Schema.String;
|
|
1182
1220
|
readonly loading: Schema.Boolean;
|
|
1221
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1183
1222
|
readonly canGoBack: Schema.Boolean;
|
|
1184
1223
|
readonly canGoForward: Schema.Boolean;
|
|
1185
1224
|
readonly generation: Schema.Int;
|
|
@@ -1211,6 +1250,7 @@ export declare const Operations: readonly [{
|
|
|
1211
1250
|
readonly url: Schema.String;
|
|
1212
1251
|
readonly title: Schema.String;
|
|
1213
1252
|
readonly loading: Schema.Boolean;
|
|
1253
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1214
1254
|
readonly canGoBack: Schema.Boolean;
|
|
1215
1255
|
readonly canGoForward: Schema.Boolean;
|
|
1216
1256
|
readonly generation: Schema.Int;
|
|
@@ -1242,6 +1282,7 @@ export declare const Operations: readonly [{
|
|
|
1242
1282
|
readonly url: Schema.String;
|
|
1243
1283
|
readonly title: Schema.String;
|
|
1244
1284
|
readonly loading: Schema.Boolean;
|
|
1285
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1245
1286
|
readonly canGoBack: Schema.Boolean;
|
|
1246
1287
|
readonly canGoForward: Schema.Boolean;
|
|
1247
1288
|
readonly generation: Schema.Int;
|
|
@@ -1274,6 +1315,7 @@ export declare const Operations: readonly [{
|
|
|
1274
1315
|
readonly url: Schema.String;
|
|
1275
1316
|
readonly title: Schema.String;
|
|
1276
1317
|
readonly loading: Schema.Boolean;
|
|
1318
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1277
1319
|
readonly canGoBack: Schema.Boolean;
|
|
1278
1320
|
readonly canGoForward: Schema.Boolean;
|
|
1279
1321
|
readonly generation: Schema.Int;
|
|
@@ -1309,6 +1351,7 @@ export declare const Operations: readonly [{
|
|
|
1309
1351
|
readonly url: Schema.String;
|
|
1310
1352
|
readonly title: Schema.String;
|
|
1311
1353
|
readonly loading: Schema.Boolean;
|
|
1354
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1312
1355
|
readonly canGoBack: Schema.Boolean;
|
|
1313
1356
|
readonly canGoForward: Schema.Boolean;
|
|
1314
1357
|
readonly generation: Schema.Int;
|
|
@@ -1365,6 +1408,7 @@ export declare const Operations: readonly [{
|
|
|
1365
1408
|
readonly url: Schema.String;
|
|
1366
1409
|
readonly title: Schema.String;
|
|
1367
1410
|
readonly loading: Schema.Boolean;
|
|
1411
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1368
1412
|
readonly canGoBack: Schema.Boolean;
|
|
1369
1413
|
readonly canGoForward: Schema.Boolean;
|
|
1370
1414
|
readonly generation: Schema.Int;
|
|
@@ -1398,6 +1442,7 @@ export declare const Operations: readonly [{
|
|
|
1398
1442
|
readonly url: Schema.String;
|
|
1399
1443
|
readonly title: Schema.String;
|
|
1400
1444
|
readonly loading: Schema.Boolean;
|
|
1445
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1401
1446
|
readonly canGoBack: Schema.Boolean;
|
|
1402
1447
|
readonly canGoForward: Schema.Boolean;
|
|
1403
1448
|
readonly generation: Schema.Int;
|
|
@@ -1440,6 +1485,7 @@ export declare const Operations: readonly [{
|
|
|
1440
1485
|
readonly url: Schema.String;
|
|
1441
1486
|
readonly title: Schema.String;
|
|
1442
1487
|
readonly loading: Schema.Boolean;
|
|
1488
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1443
1489
|
readonly canGoBack: Schema.Boolean;
|
|
1444
1490
|
readonly canGoForward: Schema.Boolean;
|
|
1445
1491
|
readonly generation: Schema.Int;
|
|
@@ -2063,6 +2109,7 @@ export declare const Definition: {
|
|
|
2063
2109
|
readonly url: Schema.String;
|
|
2064
2110
|
readonly title: Schema.String;
|
|
2065
2111
|
readonly loading: Schema.Boolean;
|
|
2112
|
+
readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2066
2113
|
readonly canGoBack: Schema.Boolean;
|
|
2067
2114
|
readonly canGoForward: Schema.Boolean;
|
|
2068
2115
|
readonly generation: Schema.Int;
|
package/dist/rpc.js
CHANGED
package/dist/tools.d.ts
CHANGED
|
@@ -217,12 +217,13 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
|
|
|
217
217
|
}) => Effect.Effect<{
|
|
218
218
|
tab: {
|
|
219
219
|
readonly id: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
220
|
-
readonly url: string;
|
|
221
220
|
readonly title: string;
|
|
221
|
+
readonly url: string;
|
|
222
|
+
readonly generation: number;
|
|
222
223
|
readonly loading: boolean;
|
|
223
224
|
readonly canGoBack: boolean;
|
|
224
225
|
readonly canGoForward: boolean;
|
|
225
|
-
readonly
|
|
226
|
+
readonly loadError?: string | undefined;
|
|
226
227
|
} | undefined;
|
|
227
228
|
inspect: () => Effect.Effect<{
|
|
228
229
|
readonly resources: readonly string[];
|
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.0.
|
|
4
|
+
"version": "2.0.11",
|
|
5
5
|
"description": "OpenCode's desktop browser plugin",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"test": "bun test"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@opencode/plugin": "2.0.
|
|
40
|
-
"@opencode/schema": "2.0.
|
|
39
|
+
"@opencode/plugin": "2.0.11",
|
|
40
|
+
"@opencode/schema": "2.0.11",
|
|
41
41
|
"effect": "4.0.0-rc.112"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|