Compare commits

...
Author SHA1 Message Date
abeatrix 13cfdc7784 feat: Replace 'open' package with 'opn' for external link handling
The 'open' package has been replaced with 'opn' to handle opening external links. This change addresses potential issues with the 'open' package and ensures consistent behavior across different environments. The 'opn' package is a more stable and widely used alternative for this functionality.
2025-11-12 14:13:13 -08:00
3 changed files with 47 additions and 6 deletions
+43 -3
View File
@@ -1,12 +1,12 @@
{
"name": "claude-dev",
"version": "3.36.0",
"version": "3.36.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-dev",
"version": "3.36.0",
"version": "3.36.1",
"license": "Apache-2.0",
"dependencies": {
"@anthropic-ai/sdk": "^0.37.0",
@@ -46,6 +46,7 @@
"@sentry/browser": "^9.12.0",
"@streamparser/json": "^0.0.22",
"@tailwindcss/vite": "^4.1.14",
"@types/opn": "^5.1.0",
"@types/uuid": "^10.0.0",
"@vscode/codicons": "^0.0.36",
"archiver": "^7.0.1",
@@ -76,9 +77,9 @@
"nice-grpc": "^2.1.12",
"node-machine-id": "^1.1.12",
"ollama": "^0.5.13",
"open": "^10.1.2",
"open-graph-scraper": "^6.9.0",
"openai": "^4.83.0",
"opn": "^5.5.0",
"os-name": "^6.0.0",
"p-mutex": "^1.0.0",
"p-timeout": "^6.1.4",
@@ -6494,6 +6495,15 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/opn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/@types/opn/-/opn-5.1.0.tgz",
"integrity": "sha512-TNPrB7Y1xl06zDI0aGyqkgxjhIev3oJ+cdqlZ52MTAHauWpEL/gIUdHebIfRHFZk9IqSBpE2ci1DT48iZH81yg==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/pdf-parse": {
"version": "1.1.4",
"dev": true,
@@ -7841,6 +7851,7 @@
},
"node_modules/bundle-name": {
"version": "4.1.0",
"dev": true,
"license": "MIT",
"dependencies": {
"run-applescript": "^7.0.0"
@@ -8807,6 +8818,7 @@
},
"node_modules/default-browser": {
"version": "5.2.1",
"dev": true,
"license": "MIT",
"dependencies": {
"bundle-name": "^4.1.0",
@@ -8821,6 +8833,7 @@
},
"node_modules/default-browser-id": {
"version": "5.0.0",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18"
@@ -8883,6 +8896,7 @@
},
"node_modules/define-lazy-prop": {
"version": "3.0.0",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12"
@@ -11428,6 +11442,7 @@
},
"node_modules/is-inside-container": {
"version": "1.0.0",
"dev": true,
"license": "MIT",
"dependencies": {
"is-docker": "^3.0.0"
@@ -11444,6 +11459,7 @@
},
"node_modules/is-inside-container/node_modules/is-docker": {
"version": "3.0.0",
"dev": true,
"license": "MIT",
"bin": {
"is-docker": "cli.js"
@@ -14294,6 +14310,7 @@
},
"node_modules/open": {
"version": "10.1.2",
"dev": true,
"license": "MIT",
"dependencies": {
"default-browser": "^5.2.1",
@@ -14332,6 +14349,7 @@
},
"node_modules/open/node_modules/is-wsl": {
"version": "3.1.0",
"dev": true,
"license": "MIT",
"dependencies": {
"is-inside-container": "^1.0.0"
@@ -14378,6 +14396,27 @@
"undici-types": "~5.26.4"
}
},
"node_modules/opn": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz",
"integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==",
"license": "MIT",
"dependencies": {
"is-wsl": "^1.1.0"
},
"engines": {
"node": ">=4"
}
},
"node_modules/opn/node_modules/is-wsl": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz",
"integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==",
"license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/opossum": {
"version": "9.0.0",
"license": "Apache-2.0",
@@ -15842,6 +15881,7 @@
},
"node_modules/run-applescript": {
"version": "7.0.0",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18"
+2 -1
View File
@@ -441,6 +441,7 @@
"@sentry/browser": "^9.12.0",
"@streamparser/json": "^0.0.22",
"@tailwindcss/vite": "^4.1.14",
"@types/opn": "^5.1.0",
"@types/uuid": "^10.0.0",
"@vscode/codicons": "^0.0.36",
"archiver": "^7.0.1",
@@ -471,9 +472,9 @@
"nice-grpc": "^2.1.12",
"node-machine-id": "^1.1.12",
"ollama": "^0.5.13",
"open": "^10.1.2",
"open-graph-scraper": "^6.9.0",
"openai": "^4.83.0",
"opn": "^5.5.0",
"os-name": "^6.0.0",
"p-mutex": "^1.0.0",
"p-timeout": "^6.1.4",
+2 -2
View File
@@ -1,5 +1,5 @@
import { EmptyRequest, StringRequest } from "@shared/proto/cline/common"
import open from "open"
import opn from "opn"
import { HostProvider } from "@/hosts/host-provider"
/**
@@ -40,5 +40,5 @@ export async function readTextFromClipboard(): Promise<string> {
*/
export async function openExternal(url: string): Promise<void> {
console.log("Opening browser:", url)
await open(url)
await opn(url)
}