@different-ai/opencode-browser 1.0.1 → 1.0.3

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/bin/cli.js +15 -25
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -102,6 +102,9 @@ ${color("bright", "Usage:")}
102
102
  npx @different-ai/opencode-browser start Run MCP server
103
103
  npx @different-ai/opencode-browser uninstall Remove installation
104
104
 
105
+ ${color("bright", "With bun:")}
106
+ bunx @different-ai/opencode-browser install
107
+
105
108
  ${color("bright", "For scheduled jobs:")}
106
109
  Run 'daemon-install' to enable browser tools in background jobs.
107
110
  `);
@@ -144,41 +147,28 @@ async function install() {
144
147
 
145
148
  success(`Extension files copied to: ${extensionDir}`);
146
149
 
147
- header("Step 3: Load Extension in Chrome");
150
+ header("Step 3: Load Extension in Browser");
148
151
 
149
152
  log(`
153
+ Works with: ${color("cyan", "Chrome")}, ${color("cyan", "Brave")}, ${color("cyan", "Arc")}, ${color("cyan", "Edge")}, and other Chromium browsers.
154
+
150
155
  To load the extension:
151
156
 
152
- 1. Open Chrome and go to: ${color("cyan", "chrome://extensions")}
157
+ 1. Open your browser and go to: ${color("cyan", "chrome://extensions")}
158
+ (or ${color("cyan", "brave://extensions")}, ${color("cyan", "arc://extensions")}, etc.)
159
+
153
160
  2. Enable ${color("bright", "Developer mode")} (toggle in top right)
161
+
154
162
  3. Click ${color("bright", "Load unpacked")}
155
- 4. Select this folder: ${color("cyan", extensionDir)}
163
+
164
+ 4. Select this folder:
165
+ ${color("cyan", extensionDir)}
166
+ ${os === "darwin" ? color("yellow", "Tip: Press Cmd+Shift+G and paste the path above") : ""}
167
+
156
168
  5. Copy the ${color("bright", "Extension ID")} shown under the extension name
157
169
  (looks like: abcdefghijklmnopqrstuvwxyz123456)
158
170
  `);
159
171
 
160
- const openChrome = await confirm("Open Chrome extensions page now?");
161
- if (openChrome) {
162
- try {
163
- if (os === "darwin") {
164
- execSync('open -a "Google Chrome" "chrome://extensions"', { stdio: "ignore" });
165
- } else {
166
- execSync('xdg-open "chrome://extensions"', { stdio: "ignore" });
167
- }
168
- } catch {}
169
- }
170
-
171
- const openFinder = await confirm("Open extension folder in file manager?");
172
- if (openFinder) {
173
- try {
174
- if (os === "darwin") {
175
- execSync(`open "${extensionDir}"`, { stdio: "ignore" });
176
- } else {
177
- execSync(`xdg-open "${extensionDir}"`, { stdio: "ignore" });
178
- }
179
- } catch {}
180
- }
181
-
182
172
  log("");
183
173
  const extensionId = await ask(color("bright", "Enter your Extension ID: "));
184
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@different-ai/opencode-browser",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Browser automation for OpenCode via Chrome extension + Native Messaging. Inspired by Claude in Chrome.",
5
5
  "type": "module",
6
6
  "bin": {