@opencode/plugin-browser 2.0.7 → 2.0.9
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/rpc.js +6 -1
- package/package.json +3 -3
package/dist/rpc.js
CHANGED
|
@@ -132,7 +132,12 @@ function operation(name, description, fields, output) {
|
|
|
132
132
|
}
|
|
133
133
|
export const Operations = [
|
|
134
134
|
operation("tabs.list", "List this session's browser tabs and the focused tab. Use returned IDs for all page operations.", {}, State),
|
|
135
|
-
operation("tabs.open", "Open a browser tab. Defaults to about:blank
|
|
135
|
+
operation("tabs.open", "Open a browser tab, show it in the Review pane, and select it. Defaults to about:blank. Website traffic uses the connected server's network; localhost reaches that server.", {
|
|
136
|
+
url: optional(short),
|
|
137
|
+
focus: optional(Schema.Boolean).annotate({
|
|
138
|
+
description: "Default true: open the Review pane and select the new tab so the user sees it. Pass false only when the user asked for the tab to stay in the background.",
|
|
139
|
+
}),
|
|
140
|
+
}, Tab),
|
|
136
141
|
operation("tabs.focus", "Select a browser tab in the Review pane. Other tools still require an explicit tabID.", tab, Tab),
|
|
137
142
|
operation("tabs.close", "Close only this browser tab, abort its work, and release its browser resources.", tab, State),
|
|
138
143
|
operation("navigate", "Navigate this tab to HTTP/HTTPS or about:blank; wait for the document load. Element refs expire.", { ...tab, url: short }, Tab),
|
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.9",
|
|
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.9",
|
|
40
|
+
"@opencode/schema": "2.0.9",
|
|
41
41
|
"effect": "4.0.0-rc.112"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|