File tree Expand file tree Collapse file tree
extensions/slack/src/monitor/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { SlackActionMiddlewareArgs } from "@slack/bolt" ;
22import type { Block , KnownBlock } from "@slack/web-api" ;
3+ import { enqueueSystemEvent } from "openclaw/plugin-sdk/channel-runtime" ;
34import {
45 buildPluginBindingResolvedText ,
56 parsePluginBindingApprovalCustomId ,
67 resolvePluginConversationBindingApproval ,
78} from "openclaw/plugin-sdk/conversation-runtime" ;
8- import { enqueueSystemEvent } from "openclaw/plugin-sdk/infra-runtime" ;
99import { dispatchPluginInteractiveHandler } from "openclaw/plugin-sdk/plugin-runtime" ;
1010import { SLACK_REPLY_BUTTON_ACTION_ID , SLACK_REPLY_SELECT_ACTION_ID } from "../../blocks-render.js" ;
1111import { authorizeSlackSystemEventSender } from "../auth.js" ;
Original file line number Diff line number Diff line change 1- import { enqueueSystemEvent } from "openclaw/plugin-sdk/infra -runtime" ;
1+ import { enqueueSystemEvent } from "openclaw/plugin-sdk/channel -runtime" ;
22import { parseSlackModalPrivateMetadata } from "../../modal-metadata.js" ;
33import { authorizeSlackSystemEventSender } from "../auth.js" ;
44import type { SlackMonitorContext } from "../context.js" ;
Original file line number Diff line number Diff line change @@ -167,15 +167,15 @@ function createContext(overrides?: {
167167describe ( "registerSlackInteractionEvents" , ( ) => {
168168 beforeAll ( async ( ) => {
169169 vi . resetModules ( ) ;
170- const infraRuntime = await import ( "openclaw/plugin-sdk/infra -runtime" ) ;
170+ const channelRuntime = await import ( "openclaw/plugin-sdk/channel -runtime" ) ;
171171 const pluginRuntime = await import ( "openclaw/plugin-sdk/plugin-runtime" ) ;
172172 const conversationBinding = await import ( "../../../../../src/plugins/conversation-binding.js" ) ;
173173 enqueueSystemEventSpy = vi
174- . spyOn ( infraRuntime , "enqueueSystemEvent" )
175- . mockImplementation ( ( ( ...args : Parameters < typeof infraRuntime . enqueueSystemEvent > ) =>
174+ . spyOn ( channelRuntime , "enqueueSystemEvent" )
175+ . mockImplementation ( ( ( ...args : Parameters < typeof channelRuntime . enqueueSystemEvent > ) =>
176176 ( enqueueSystemEventMock as ( ...innerArgs : unknown [ ] ) => boolean ) (
177177 ...args ,
178- ) ) as typeof infraRuntime . enqueueSystemEvent ) ;
178+ ) ) as typeof channelRuntime . enqueueSystemEvent ) ;
179179 dispatchPluginInteractiveHandlerSpy = vi
180180 . spyOn ( pluginRuntime , "dispatchPluginInteractiveHandler" )
181181 . mockImplementation ( ( (
You can’t perform that action at this time.
0 commit comments