From 42ea09392c3bef82ea9dfd1706d72384615389ca Mon Sep 17 00:00:00 2001 From: shlroland Date: Wed, 4 Jun 2025 09:32:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0@nutstore/sso-js?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=87=B30.0.6=EF=BC=8C=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3OAuth=E5=87=BD=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- webview-ui/package-lock.json | 8 ++++---- webview-ui/package.json | 2 +- webview-ui/src/components/settings/ApiOptions.tsx | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index cccaddaac19..25b6895cc7e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,6 @@ }, // Turn off tsc task auto detection since we have the necessary tasks as npm scripts "typescript.tsc.autoDetect": "off", - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "npm.packageManager": "npm" } diff --git a/webview-ui/package-lock.json b/webview-ui/package-lock.json index fe37713105a..eb8b6201622 100644 --- a/webview-ui/package-lock.json +++ b/webview-ui/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@floating-ui/react": "^0.27.4", "@heroui/react": "^2.8.0-beta.2", - "@nutstore/sso-js": "^0.0.5", + "@nutstore/sso-js": "^0.0.6", "@vscode/webview-ui-toolkit": "^1.4.0", "debounce": "^2.1.1", "dompurify": "^3.2.4", @@ -3367,9 +3367,9 @@ } }, "node_modules/@nutstore/sso-js": { - "version": "0.0.5", - "resolved": "https://npm.pkg.github.com/download/@nutstore/sso-js/0.0.5/1aabc5baebdf69b527cbe9f329b03dc3cb497811", - "integrity": "sha512-UxliZNmCThaLOuaeG57710BgqHEiRsp+tOdTb/1TwwaNHZkAeFv3pma+4g4Ad3ogv4bXJW6KaZ8s2NailnTvjw==" + "version": "0.0.6", + "resolved": "https://npm.pkg.github.com/download/@nutstore/sso-js/0.0.6/2f1fe17944c280ee7e03bca19f4784741dd557e8", + "integrity": "sha512-rDQfkwKivoMPvTFPJrL3j2baxKenLg8qxattDY9dyHa1qOObYGaTdKADz8zkbI0eigfmdmj74/QQt/s5kHEJSg==" }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", diff --git a/webview-ui/package.json b/webview-ui/package.json index b8e3c092aff..c60fe998683 100644 --- a/webview-ui/package.json +++ b/webview-ui/package.json @@ -17,7 +17,7 @@ "dependencies": { "@floating-ui/react": "^0.27.4", "@heroui/react": "^2.8.0-beta.2", - "@nutstore/sso-js": "^0.0.5", + "@nutstore/sso-js": "^0.0.6", "@vscode/webview-ui-toolkit": "^1.4.0", "debounce": "^2.1.1", "dompurify": "^3.2.4", diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 95e9efeb464..8695db3c77c 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -61,7 +61,7 @@ import { vscode } from "@/utils/vscode" import { ModelsServiceClient } from "@/services/grpc-client" import { getAsVar, VSC_DESCRIPTION_FOREGROUND } from "@/utils/vscStyles" import VSCodeButtonLink from "@/components/common/VSCodeButtonLink" -import { createOAuthUrl } from "@nutstore/sso-js" +import { createNutOAuthUrl } from "@nutstore/sso-js" import OpenRouterModelPicker, { ModelDescriptionMarkdown, OPENROUTER_MODEL_PICKER_Z_INDEX } from "./OpenRouterModelPicker" import { ClineAccountInfoCard } from "./ClineAccountInfoCard" import RequestyModelPicker from "./RequestyModelPicker" @@ -163,7 +163,7 @@ const ApiOptions = ({ const [reasoningEffortSelected, setReasoningEffortSelected] = useState(!!apiConfiguration?.reasoningEffort) const [nutstoreAuthUrl, setNutstoreAuthUrl] = useState("") - createOAuthUrl({ + createNutOAuthUrl({ // _dont_use_in_prod_createOAuthUrl({ app: `cline-${uriScheme}`, }).then((url) => {