fix(ci): restore extension runtime seams
parent
9b83e462cf
commit
d2427c19e0
@ -1,2 +1,7 @@
|
||||
export type { ClawdbotConfig, OutboundIdentity, ReplyPayload, RuntimeEnv } from "../runtime-api.js";
|
||||
export { createReplyPrefixContext } from "openclaw/plugin-sdk/feishu";
|
||||
export {
|
||||
createReplyPrefixContext,
|
||||
type ClawdbotConfig,
|
||||
type OutboundIdentity,
|
||||
type ReplyPayload,
|
||||
type RuntimeEnv,
|
||||
} from "../runtime-api.js";
|
||||
|
||||
@ -1,9 +1,20 @@
|
||||
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
|
||||
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
||||
|
||||
type SlackChannelRuntime = {
|
||||
handleSlackAction?: typeof import("./action-runtime.js").handleSlackAction;
|
||||
};
|
||||
|
||||
export type SlackRuntime = PluginRuntime & {
|
||||
channel: PluginRuntime["channel"] & {
|
||||
slack?: SlackChannelRuntime;
|
||||
};
|
||||
};
|
||||
|
||||
const {
|
||||
setRuntime: setSlackRuntime,
|
||||
clearRuntime: clearSlackRuntime,
|
||||
tryGetRuntime: getOptionalSlackRuntime,
|
||||
getRuntime: getSlackRuntime,
|
||||
} = createPluginRuntimeStore<PluginRuntime>("Slack runtime not initialized");
|
||||
export { clearSlackRuntime, getSlackRuntime, setSlackRuntime };
|
||||
} = createPluginRuntimeStore<SlackRuntime>("Slack runtime not initialized");
|
||||
export { clearSlackRuntime, getOptionalSlackRuntime, getSlackRuntime, setSlackRuntime };
|
||||
|
||||
Loading…
Reference in New Issue