mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 21:21:10 +00:00
fix(plugins): route runtime imports through sdk facades
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
import {
|
||||
setThreadBindingIdleTimeoutBySessionKey,
|
||||
setThreadBindingMaxAgeBySessionKey,
|
||||
} from "../../../extensions/discord/runtime-api.js";
|
||||
import { resolveEffectiveMessagesConfig, resolveHumanDelayConfig } from "../../agents/identity.js";
|
||||
import {
|
||||
chunkByNewline,
|
||||
@@ -65,6 +61,10 @@ import {
|
||||
readChannelAllowFromStore,
|
||||
upsertChannelPairingRequest,
|
||||
} from "../../pairing/pairing-store.js";
|
||||
import {
|
||||
setThreadBindingIdleTimeoutBySessionKey,
|
||||
setThreadBindingMaxAgeBySessionKey,
|
||||
} from "../../plugin-sdk/discord-runtime-surface.js";
|
||||
import { buildAgentSessionKey, resolveAgentRoute } from "../../routing/resolve-route.js";
|
||||
import { defineCachedValue } from "./runtime-cache.js";
|
||||
import { createRuntimeDiscord } from "./runtime-discord.js";
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
sendPollDiscord as sendPollDiscordImpl,
|
||||
sendTypingDiscord as sendTypingDiscordImpl,
|
||||
unpinMessageDiscord as unpinMessageDiscordImpl,
|
||||
} from "../../../extensions/discord/runtime-api.js";
|
||||
} from "../../plugin-sdk/discord-runtime-surface.js";
|
||||
import type { PluginRuntimeChannel } from "./types-channel.js";
|
||||
|
||||
type RuntimeDiscordOps = Pick<
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { discordMessageActions } from "../../../extensions/discord/runtime-api.js";
|
||||
import {
|
||||
discordMessageActions,
|
||||
getThreadBindingManager,
|
||||
resolveThreadBindingIdleTimeoutMs,
|
||||
resolveThreadBindingInactivityExpiresAt,
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
setThreadBindingIdleTimeoutBySessionKey,
|
||||
setThreadBindingMaxAgeBySessionKey,
|
||||
unbindThreadBindingsBySessionKey,
|
||||
} from "../../../extensions/discord/runtime-api.js";
|
||||
} from "../../plugin-sdk/discord-runtime-surface.js";
|
||||
import {
|
||||
createLazyRuntimeMethodBinder,
|
||||
createLazyRuntimeSurface,
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
probeSignal,
|
||||
signalMessageActions,
|
||||
sendMessageSignal,
|
||||
} from "../../../extensions/signal/runtime-api.js";
|
||||
} from "../../plugin-sdk/signal-runtime-surface.js";
|
||||
import type { PluginRuntimeChannel } from "./types-channel.js";
|
||||
|
||||
export function createRuntimeSignal(): PluginRuntimeChannel["signal"] {
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
resolveSlackUserAllowlist as resolveSlackUserAllowlistImpl,
|
||||
sendMessageSlack as sendMessageSlackImpl,
|
||||
handleSlackAction as handleSlackActionImpl,
|
||||
} from "../../../extensions/slack/runtime-api.js";
|
||||
} from "../../plugin-sdk/slack-runtime-surface.js";
|
||||
import type { PluginRuntimeChannel } from "./types-channel.js";
|
||||
|
||||
type RuntimeSlackOps = Pick<
|
||||
|
||||
Reference in New Issue
Block a user