diff --git a/extensions/line/api.ts b/extensions/line/api.ts index 8f7fe4d268b..c4150b2a242 100644 --- a/extensions/line/api.ts +++ b/extensions/line/api.ts @@ -1,2 +1,3 @@ +export * from "openclaw/plugin-sdk/line"; export * from "./src/setup-core.js"; export * from "./src/setup-surface.js"; diff --git a/extensions/line/src/card-command.ts b/extensions/line/src/card-command.ts index cc5ec78eeab..f63e42576c9 100644 --- a/extensions/line/src/card-command.ts +++ b/extensions/line/src/card-command.ts @@ -1,4 +1,4 @@ -import type { LineChannelData, OpenClawPluginApi, ReplyPayload } from "openclaw/plugin-sdk/line"; +import type { LineChannelData, OpenClawPluginApi, ReplyPayload } from "../api.js"; import { createActionCard, createImageCard, @@ -7,7 +7,7 @@ import { createReceiptCard, type CardAction, type ListItem, -} from "openclaw/plugin-sdk/line"; +} from "../api.js"; const CARD_USAGE = `Usage: /card "title" "body" [options] diff --git a/extensions/line/src/channel.setup.ts b/extensions/line/src/channel.setup.ts index 771107dff58..5df541d6286 100644 --- a/extensions/line/src/channel.setup.ts +++ b/extensions/line/src/channel.setup.ts @@ -4,12 +4,8 @@ import { type ChannelPlugin, type OpenClawConfig, type ResolvedLineAccount, -} from "openclaw/plugin-sdk/line"; -import { - listLineAccountIds, - resolveDefaultLineAccountId, - resolveLineAccount, -} from "openclaw/plugin-sdk/line"; +} from "../api.js"; +import { listLineAccountIds, resolveDefaultLineAccountId, resolveLineAccount } from "../api.js"; import { lineSetupAdapter } from "./setup-core.js"; import { lineSetupWizard } from "./setup-surface.js"; diff --git a/extensions/line/src/channel.ts b/extensions/line/src/channel.ts index ee3c9597eab..f2d4b84f8bc 100644 --- a/extensions/line/src/channel.ts +++ b/extensions/line/src/channel.ts @@ -18,7 +18,7 @@ import { type LineConfig, type LineChannelData, type ResolvedLineAccount, -} from "openclaw/plugin-sdk/line"; +} from "../api.js"; import { getLineRuntime } from "./runtime.js"; import { lineSetupAdapter } from "./setup-core.js"; import { lineSetupWizard } from "./setup-surface.js"; diff --git a/extensions/line/src/runtime.ts b/extensions/line/src/runtime.ts index 65dd4d5394b..3541eed4ed7 100644 --- a/extensions/line/src/runtime.ts +++ b/extensions/line/src/runtime.ts @@ -1,5 +1,5 @@ -import type { PluginRuntime } from "openclaw/plugin-sdk/line"; import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; +import type { PluginRuntime } from "../api.js"; const { setRuntime: setLineRuntime, getRuntime: getLineRuntime } = createPluginRuntimeStore("LINE runtime not initialized - plugin not registered"); diff --git a/extensions/line/src/setup-core.ts b/extensions/line/src/setup-core.ts index 737ba1cc856..3fd00dcdbc3 100644 --- a/extensions/line/src/setup-core.ts +++ b/extensions/line/src/setup-core.ts @@ -1,11 +1,11 @@ +import type { ChannelSetupAdapter, OpenClawConfig } from "openclaw/plugin-sdk/setup"; +import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/setup"; import { listLineAccountIds, normalizeAccountId, resolveLineAccount, type LineConfig, -} from "openclaw/plugin-sdk/line"; -import type { ChannelSetupAdapter, OpenClawConfig } from "openclaw/plugin-sdk/setup"; -import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/setup"; +} from "../api.js"; const channel = "line" as const; diff --git a/extensions/line/src/setup-surface.ts b/extensions/line/src/setup-surface.ts index d548b096434..24afb238b6a 100644 --- a/extensions/line/src/setup-surface.ts +++ b/extensions/line/src/setup-surface.ts @@ -1,4 +1,3 @@ -import { resolveLineAccount } from "openclaw/plugin-sdk/line"; import { DEFAULT_ACCOUNT_ID, formatDocsLink, @@ -8,6 +7,7 @@ import { type ChannelSetupDmPolicy, type ChannelSetupWizard, } from "openclaw/plugin-sdk/setup"; +import { resolveLineAccount } from "../api.js"; import { isLineConfigured, listLineAccountIds, diff --git a/src/plugin-sdk/channel-import-guardrails.test.ts b/src/plugin-sdk/channel-import-guardrails.test.ts index 8b7f099ae8a..cb32b5e8b12 100644 --- a/src/plugin-sdk/channel-import-guardrails.test.ts +++ b/src/plugin-sdk/channel-import-guardrails.test.ts @@ -121,6 +121,7 @@ const LOCAL_EXTENSION_API_BARREL_GUARDS = [ "diagnostics-otel", "diffs", "llm-task", + "line", "memory-lancedb", "synology-chat", "talk-voice",