@different-ai/opencode-browser 1.0.1 → 1.0.2

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 +12 -25
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -144,41 +144,28 @@ async function install() {
144
144
 
145
145
  success(`Extension files copied to: ${extensionDir}`);
146
146
 
147
- header("Step 3: Load Extension in Chrome");
147
+ header("Step 3: Load Extension in Browser");
148
148
 
149
149
  log(`
150
+ Works with: ${color("cyan", "Chrome")}, ${color("cyan", "Brave")}, ${color("cyan", "Arc")}, ${color("cyan", "Edge")}, and other Chromium browsers.
151
+
150
152
  To load the extension:
151
153
 
152
- 1. Open Chrome and go to: ${color("cyan", "chrome://extensions")}
154
+ 1. Open your browser and go to: ${color("cyan", "chrome://extensions")}
155
+ (or ${color("cyan", "brave://extensions")}, ${color("cyan", "arc://extensions")}, etc.)
156
+
153
157
  2. Enable ${color("bright", "Developer mode")} (toggle in top right)
158
+
154
159
  3. Click ${color("bright", "Load unpacked")}
155
- 4. Select this folder: ${color("cyan", extensionDir)}
160
+
161
+ 4. Select this folder:
162
+ ${color("cyan", extensionDir)}
163
+ ${os === "darwin" ? color("yellow", "Tip: Press Cmd+Shift+G and paste the path above") : ""}
164
+
156
165
  5. Copy the ${color("bright", "Extension ID")} shown under the extension name
157
166
  (looks like: abcdefghijklmnopqrstuvwxyz123456)
158
167
  `);
159
168
 
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
169
  log("");
183
170
  const extensionId = await ask(color("bright", "Enter your Extension ID: "));
184
171
 
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.2",
4
4
  "description": "Browser automation for OpenCode via Chrome extension + Native Messaging. Inspired by Claude in Chrome.",
5
5
  "type": "module",
6
6
  "bin": {