@opencode/plugin-browser 2.0.14 → 2.0.16
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 +2 -2
- package/dist/connection.js +1 -1
- package/dist/tools.d.ts +2 -2
- package/package.json +3 -3
package/dist/connection.d.ts
CHANGED
|
@@ -117,8 +117,8 @@ export declare const make: (ctx: Pick<Context, "location" | "rpc" | "event" | "s
|
|
|
117
117
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
118
118
|
readonly condition: "text" | "load" | "textGone";
|
|
119
119
|
readonly text?: string | undefined;
|
|
120
|
-
readonly frameID?: string | undefined;
|
|
121
120
|
readonly timeoutMs?: number | undefined;
|
|
121
|
+
readonly frameID?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
readonly type: "screenshot";
|
|
124
124
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
@@ -158,7 +158,7 @@ export declare const make: (ctx: Pick<Context, "location" | "rpc" | "event" | "s
|
|
|
158
158
|
readonly type: "network.list";
|
|
159
159
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
160
160
|
readonly limit?: number | undefined;
|
|
161
|
-
readonly resourceType?: "websocket" | "image" | "media" | "document" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" |
|
|
161
|
+
readonly resourceType?: "websocket" | "image" | "media" | "document" | "other" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | undefined;
|
|
162
162
|
readonly urlContains?: string | undefined;
|
|
163
163
|
} | {
|
|
164
164
|
readonly id: string;
|
package/dist/connection.js
CHANGED
|
@@ -87,7 +87,7 @@ export const make = Effect.fn("BrowserConnection.make")(function* (ctx) {
|
|
|
87
87
|
const browser = browsers.get(sessionID);
|
|
88
88
|
if (!browser)
|
|
89
89
|
return yield* new Tool.Error({
|
|
90
|
-
message: "[browser.disconnected] No desktop browser is connected to this session. Open this session in the desktop app
|
|
90
|
+
message: "[browser.disconnected] No desktop browser is connected to this session. Open this session in the desktop app and wait for it to connect. Then call browser.tabs.list({}). Repeating browser actions while disconnected will not help.",
|
|
91
91
|
});
|
|
92
92
|
const tab = "tabID" in action ? browser.state.tabs.find((tab) => tab.id === action.tabID) : undefined;
|
|
93
93
|
if ("tabID" in action && !tab)
|
package/dist/tools.d.ts
CHANGED
|
@@ -116,8 +116,8 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
|
|
|
116
116
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
117
117
|
readonly condition: "text" | "load" | "textGone";
|
|
118
118
|
readonly text?: string | undefined;
|
|
119
|
-
readonly frameID?: string | undefined;
|
|
120
119
|
readonly timeoutMs?: number | undefined;
|
|
120
|
+
readonly frameID?: string | undefined;
|
|
121
121
|
} | {
|
|
122
122
|
readonly type: "screenshot";
|
|
123
123
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
@@ -157,7 +157,7 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
|
|
|
157
157
|
readonly type: "network.list";
|
|
158
158
|
readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
|
|
159
159
|
readonly limit?: number | undefined;
|
|
160
|
-
readonly resourceType?: "websocket" | "image" | "media" | "document" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" |
|
|
160
|
+
readonly resourceType?: "websocket" | "image" | "media" | "document" | "other" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | undefined;
|
|
161
161
|
readonly urlContains?: string | undefined;
|
|
162
162
|
} | {
|
|
163
163
|
readonly id: 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.16",
|
|
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.16",
|
|
40
|
+
"@opencode/schema": "2.0.16",
|
|
41
41
|
"effect": "4.0.0-rc.112"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|