CLI: fix check failures

This commit is contained in:
Gustavo Madeira Santana 2026-03-19 08:29:57 -04:00
parent 34ee75b174
commit f8eb23de1c
No known key found for this signature in database
4 changed files with 13 additions and 5 deletions

View File

@ -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";

View File

@ -1 +1 @@
export * from "../../src/plugin-sdk/nextcloud-talk.js";
export * from "openclaw/plugin-sdk/nextcloud-talk";

View File

@ -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;
}

View File

@ -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";