From 3574aedd68bb37d9e09e4873a52a4bbe681a44ad Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 8 Apr 2026 09:06:37 +0100 Subject: [PATCH] test(plugins): refresh telegram runtime api guardrail --- .../plugin-sdk-runtime-api-guardrails.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts b/src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts index bab542ba886..a7ff8cb6d7f 100644 --- a/src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts +++ b/src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts @@ -125,13 +125,15 @@ const RUNTIME_API_EXPORT_GUARDS: Record = { 'export { setSlackRuntime } from "./src/runtime.js";', ], [bundledPluginFile("telegram", "runtime-api.ts")]: [ - 'export type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk/core";', + 'export type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";', 'export type { ChannelMessageActionAdapter } from "openclaw/plugin-sdk/channel-contract";', 'export type { TelegramApiOverride } from "./src/send.js";', - 'export type { OpenClawPluginService, OpenClawPluginServiceContext, PluginLogger } from "openclaw/plugin-sdk/core";', + 'export type { OpenClawPluginService, OpenClawPluginServiceContext, PluginLogger } from "openclaw/plugin-sdk/plugin-entry";', + 'export type { PluginRuntime } from "openclaw/plugin-sdk/runtime-store";', 'export type { AcpRuntime, AcpRuntimeCapabilities, AcpRuntimeDoctorReport, AcpRuntimeEnsureInput, AcpRuntimeEvent, AcpRuntimeHandle, AcpRuntimeStatus, AcpRuntimeTurnInput, AcpRuntimeErrorCode, AcpSessionUpdateTag } from "openclaw/plugin-sdk/acp-runtime";', 'export { AcpRuntimeError } from "openclaw/plugin-sdk/acp-runtime";', - 'export { clearAccountEntryFields, emptyPluginConfigSchema, formatPairingApproveHint, getChatChannelMeta } from "openclaw/plugin-sdk/core";', + 'export { emptyPluginConfigSchema, formatPairingApproveHint, getChatChannelMeta } from "openclaw/plugin-sdk/channel-plugin-common";', + 'export { clearAccountEntryFields } from "openclaw/plugin-sdk/channel-core";', 'export { buildChannelConfigSchema, TelegramConfigSchema } from "./config-api.js";', 'export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";', 'export { PAIRING_APPROVED_MESSAGE, buildTokenChannelStatusSummary, projectCredentialSnapshotFields, resolveConfiguredFromCredentialStatuses } from "openclaw/plugin-sdk/channel-status";', @@ -149,7 +151,7 @@ const RUNTIME_API_EXPORT_GUARDS: Record = { 'export { createTelegramThreadBindingManager, getTelegramThreadBindingManager, resetTelegramThreadBindingsForTests, setTelegramThreadBindingIdleTimeoutBySessionKey, setTelegramThreadBindingMaxAgeBySessionKey } from "./src/thread-bindings.js";', 'export { resolveTelegramToken } from "./src/token.js";', 'export { setTelegramRuntime } from "./src/runtime.js";', - 'export type { ChannelPlugin } from "openclaw/plugin-sdk/core";', + 'export type { ChannelPlugin } from "openclaw/plugin-sdk/channel-core";', 'export type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";', 'export type TelegramAccountConfig = NonNullable< NonNullable["telegram"] >;', 'export type TelegramActionConfig = NonNullable;',