Plugins: internalize line SDK imports
This commit is contained in:
parent
dcdfed995a
commit
90a0d50ae9
@ -1,2 +1,3 @@
|
||||
export * from "openclaw/plugin-sdk/line";
|
||||
export * from "./src/setup-core.js";
|
||||
export * from "./src/setup-surface.js";
|
||||
|
||||
@ -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 <type> "title" "body" [options]
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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<PluginRuntime>("LINE runtime not initialized - plugin not registered");
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -121,6 +121,7 @@ const LOCAL_EXTENSION_API_BARREL_GUARDS = [
|
||||
"diagnostics-otel",
|
||||
"diffs",
|
||||
"llm-task",
|
||||
"line",
|
||||
"memory-lancedb",
|
||||
"synology-chat",
|
||||
"talk-voice",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user