@different-ai/opencode-browser 4.5.1 → 4.6.0
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/README.md +32 -2
- package/bin/broker.cjs +1 -1
- package/dist/plugin.js +335 -90
- package/extension/background.js +594 -19
- package/extension/manifest.json +4 -2
- package/package.json +13 -9
- package/.opencode/skill/github-release/SKILL.md +0 -12
package/README.md
CHANGED
|
@@ -58,6 +58,25 @@ Your `opencode.json` or `opencode.jsonc` should contain:
|
|
|
58
58
|
bunx @different-ai/opencode-browser@latest update
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
## Chrome Web Store maintainer flow
|
|
62
|
+
|
|
63
|
+
Build a store-ready extension package:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
bun run build:cws
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Outputs:
|
|
70
|
+
|
|
71
|
+
- `artifacts/chrome-web-store/opencode-browser-cws-v<version>.zip`
|
|
72
|
+
- `artifacts/chrome-web-store/manifest.chrome-web-store.json`
|
|
73
|
+
|
|
74
|
+
Submission checklist and guidance:
|
|
75
|
+
|
|
76
|
+
- `CHROME_WEB_STORE.md`
|
|
77
|
+
- `CHROME_WEB_STORE_REQUEST_TEMPLATE.md`
|
|
78
|
+
- `PRIVACY.md`
|
|
79
|
+
|
|
61
80
|
## How it works
|
|
62
81
|
|
|
63
82
|
```
|
|
@@ -135,6 +154,13 @@ Core primitives:
|
|
|
135
154
|
- `browser_scroll` (optional `timeoutMs`/`pollMs`)
|
|
136
155
|
- `browser_wait`
|
|
137
156
|
|
|
157
|
+
Downloads:
|
|
158
|
+
- `browser_download`
|
|
159
|
+
- `browser_list_downloads`
|
|
160
|
+
|
|
161
|
+
Uploads:
|
|
162
|
+
- `browser_set_file_input` (extension backend supports small files; use agent backend for larger uploads)
|
|
163
|
+
|
|
138
164
|
Selector helpers (usable in `selector`):
|
|
139
165
|
- `label:Mailing Address: City`
|
|
140
166
|
- `aria:Principal Address: City`
|
|
@@ -153,8 +179,8 @@ Diagnostics:
|
|
|
153
179
|
- [ ] Add tab management tools (`browser_set_active_tab`)
|
|
154
180
|
- [ ] Add navigation helpers (`browser_back`, `browser_forward`, `browser_reload`)
|
|
155
181
|
- [ ] Add keyboard input tool (`browser_key`)
|
|
156
|
-
- [
|
|
157
|
-
- [
|
|
182
|
+
- [x] Add download support (`browser_download`, `browser_list_downloads`)
|
|
183
|
+
- [x] Add upload support (`browser_set_file_input`)
|
|
158
184
|
|
|
159
185
|
## Troubleshooting
|
|
160
186
|
|
|
@@ -174,3 +200,7 @@ npx @different-ai/opencode-browser uninstall
|
|
|
174
200
|
```
|
|
175
201
|
|
|
176
202
|
Then remove the unpacked extension in `chrome://extensions` and remove the plugin from `opencode.json` or `opencode.jsonc`.
|
|
203
|
+
|
|
204
|
+
## Privacy
|
|
205
|
+
|
|
206
|
+
- Privacy policy: `PRIVACY.md`
|
package/bin/broker.cjs
CHANGED
|
@@ -53,7 +53,7 @@ function writeJsonLine(socket, msg) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
function wantsTab(toolName) {
|
|
56
|
-
return !["get_tabs", "get_active_tab", "open_tab"].includes(toolName);
|
|
56
|
+
return !["get_tabs", "get_active_tab", "open_tab", "list_downloads"].includes(toolName);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// --- State ---
|