From ed479f96a1ebac10784bb39858aa8c79ed8e148d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 17 Mar 2026 22:57:58 -0700 Subject: [PATCH] Plugins: internalize qwen portal auth SDK imports --- extensions/qwen-portal-auth/index.ts | 4 ++-- extensions/qwen-portal-auth/oauth.ts | 5 +---- extensions/qwen-portal-auth/runtime-api.ts | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 extensions/qwen-portal-auth/runtime-api.ts diff --git a/extensions/qwen-portal-auth/index.ts b/extensions/qwen-portal-auth/index.ts index 377a4a598af..384f58f4845 100644 --- a/extensions/qwen-portal-auth/index.ts +++ b/extensions/qwen-portal-auth/index.ts @@ -3,10 +3,10 @@ import { QWEN_OAUTH_MARKER } from "openclaw/plugin-sdk/agent-runtime"; import { buildOauthProviderAuthResult, definePluginEntry, + refreshQwenPortalCredentials, type ProviderAuthContext, type ProviderCatalogContext, -} from "openclaw/plugin-sdk/qwen-portal-auth"; -import { refreshQwenPortalCredentials } from "openclaw/plugin-sdk/qwen-portal-auth"; +} from "./runtime-api.js"; import { loginQwenPortalOAuth } from "./oauth.js"; import { buildQwenPortalProvider, QWEN_PORTAL_BASE_URL } from "./provider-catalog.js"; diff --git a/extensions/qwen-portal-auth/oauth.ts b/extensions/qwen-portal-auth/oauth.ts index cdb8ab1bc36..d95273420e5 100644 --- a/extensions/qwen-portal-auth/oauth.ts +++ b/extensions/qwen-portal-auth/oauth.ts @@ -1,8 +1,5 @@ import { randomUUID } from "node:crypto"; -import { - generatePkceVerifierChallenge, - toFormUrlEncoded, -} from "openclaw/plugin-sdk/qwen-portal-auth"; +import { generatePkceVerifierChallenge, toFormUrlEncoded } from "./runtime-api.js"; const QWEN_OAUTH_BASE_URL = "https://chat.qwen.ai"; const QWEN_OAUTH_DEVICE_CODE_ENDPOINT = `${QWEN_OAUTH_BASE_URL}/api/v1/oauth2/device/code`; diff --git a/extensions/qwen-portal-auth/runtime-api.ts b/extensions/qwen-portal-auth/runtime-api.ts new file mode 100644 index 00000000000..232a2886110 --- /dev/null +++ b/extensions/qwen-portal-auth/runtime-api.ts @@ -0,0 +1 @@ +export * from "openclaw/plugin-sdk/qwen-portal-auth";