CLI: fix check failures
This commit is contained in:
parent
34ee75b174
commit
f8eb23de1c
@ -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";
|
||||
|
||||
@ -1 +1 @@
|
||||
export * from "../../src/plugin-sdk/nextcloud-talk.js";
|
||||
export * from "openclaw/plugin-sdk/nextcloud-talk";
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user