@opencode/browse 0.0.18-dev.201 → 0.0.18-dev.202
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/cli.mjs +12 -3
- package/package.json +8 -8
package/dist/cli.mjs
CHANGED
|
@@ -47,9 +47,18 @@ if (!file) {
|
|
|
47
47
|
process.exit(1)
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// The binary updates this
|
|
51
|
-
// launcher, which tells it where the install lives,
|
|
52
|
-
|
|
50
|
+
// The binary updates this install with the package manager that installed it (crates/browse/src/method.rs): it needs
|
|
51
|
+
// this package's launcher, which tells it where the install lives, the node (whose npm, or corepack's pnpm or yarn,
|
|
52
|
+
// it uses) or bun running it, and the package manager that ran it, if one did.
|
|
53
|
+
const bun = process.versions.bun !== undefined
|
|
54
|
+
const env = {
|
|
55
|
+
...process.env,
|
|
56
|
+
OPENCODE_BROWSER_NPM_LAUNCHER: fileURLToPath(import.meta.url),
|
|
57
|
+
OPENCODE_BROWSER_NPM_NODE: bun ? "" : process.execPath,
|
|
58
|
+
OPENCODE_BROWSER_NPM_BUN: bun ? process.execPath : "",
|
|
59
|
+
OPENCODE_BROWSER_NPM_USER_AGENT: process.env.npm_config_user_agent ?? "",
|
|
60
|
+
OPENCODE_BROWSER_NPM_EXECPATH: process.env.npm_execpath ?? "",
|
|
61
|
+
}
|
|
53
62
|
const child = spawn(file, process.argv.slice(2), { stdio: "inherit", windowsHide: true, env })
|
|
54
63
|
for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) {
|
|
55
64
|
process.on(signal, () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/browse",
|
|
3
|
-
"version": "0.0.18-dev.
|
|
3
|
+
"version": "0.0.18-dev.202",
|
|
4
4
|
"description": "browse: connect the browse extension to OpenCode and drive your browser from your agent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@opencode/browse-linux-x64": "0.0.18-dev.
|
|
28
|
-
"@opencode/browse-linux-arm64": "0.0.18-dev.
|
|
29
|
-
"@opencode/browse-linux-x64-musl": "0.0.18-dev.
|
|
30
|
-
"@opencode/browse-linux-arm64-musl": "0.0.18-dev.
|
|
31
|
-
"@opencode/browse-darwin-arm64": "0.0.18-dev.
|
|
32
|
-
"@opencode/browse-darwin-x64": "0.0.18-dev.
|
|
33
|
-
"@opencode/browse-windows-x64": "0.0.18-dev.
|
|
27
|
+
"@opencode/browse-linux-x64": "0.0.18-dev.202",
|
|
28
|
+
"@opencode/browse-linux-arm64": "0.0.18-dev.202",
|
|
29
|
+
"@opencode/browse-linux-x64-musl": "0.0.18-dev.202",
|
|
30
|
+
"@opencode/browse-linux-arm64-musl": "0.0.18-dev.202",
|
|
31
|
+
"@opencode/browse-darwin-arm64": "0.0.18-dev.202",
|
|
32
|
+
"@opencode/browse-darwin-x64": "0.0.18-dev.202",
|
|
33
|
+
"@opencode/browse-windows-x64": "0.0.18-dev.202"
|
|
34
34
|
}
|
|
35
35
|
}
|