@opencode/plugin-browser 2.0.8 → 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.
Files changed (2) hide show
  1. package/dist/rpc.js +6 -1
  2. 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 and focused. Website traffic uses the connected server's network; localhost reaches that server.", { url: optional(short), focus: optional(Schema.Boolean) }, Tab),
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.8",
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.8",
40
- "@opencode/schema": "2.0.8",
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": {