diff --git a/extensions/googlechat/runtime-api.ts b/extensions/googlechat/runtime-api.ts index 324abaf11c4..9eecea28139 100644 --- a/extensions/googlechat/runtime-api.ts +++ b/extensions/googlechat/runtime-api.ts @@ -1,4 +1,4 @@ // Private runtime barrel for the bundled Google Chat extension. // Keep this barrel thin and aligned with the curated plugin-sdk/googlechat surface. -export * from "../../src/plugin-sdk/googlechat.js"; +export * from "openclaw/plugin-sdk/googlechat"; diff --git a/extensions/nextcloud-talk/runtime-api.ts b/extensions/nextcloud-talk/runtime-api.ts index ba31a546cdf..fc9283930bd 100644 --- a/extensions/nextcloud-talk/runtime-api.ts +++ b/extensions/nextcloud-talk/runtime-api.ts @@ -1 +1 @@ -export * from "../../src/plugin-sdk/nextcloud-talk.js"; +export * from "openclaw/plugin-sdk/nextcloud-talk"; diff --git a/src/commands/channels/remove.ts b/src/commands/channels/remove.ts index f48a85f8521..127dee5a3f9 100644 --- a/src/commands/channels/remove.ts +++ b/src/commands/channels/remove.ts @@ -106,10 +106,16 @@ export async function channelsRemoveCommand( if (resolvedPluginState?.configChanged) { cfg = resolvedPluginState.cfg; } - channel = resolvedPluginState?.channelId ?? channel; - const plugin = resolvedPluginState?.plugin ?? (channel ? getChannelPlugin(channel) : undefined); + const resolvedChannel = resolvedPluginState?.channelId ?? channel; + if (!resolvedChannel) { + runtime.error(`Unknown channel: ${rawChannel}`); + runtime.exit(1); + return; + } + channel = resolvedChannel; + const plugin = resolvedPluginState?.plugin ?? getChannelPlugin(resolvedChannel); if (!plugin) { - runtime.error(`Unknown channel: ${channel}`); + runtime.error(`Unknown channel: ${resolvedChannel}`); runtime.exit(1); return; } diff --git a/src/plugin-sdk/core.ts b/src/plugin-sdk/core.ts index c80e681350b..e5605756e90 100644 --- a/src/plugin-sdk/core.ts +++ b/src/plugin-sdk/core.ts @@ -14,6 +14,7 @@ import type { OpenClawPluginConfigSchema, OpenClawPluginDefinition, PluginInteractiveTelegramHandlerContext, + PluginCommandContext, } from "../plugins/types.js"; export type { @@ -52,6 +53,7 @@ export type { ProviderAuthResult, OpenClawPluginCommandDefinition, OpenClawPluginDefinition, + PluginCommandContext, PluginLogger, PluginInteractiveTelegramHandlerContext, } from "../plugins/types.js";