fix(slack): break modal routing import cycle · openclaw/openclaw@b4f6cb2
steipete
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import {
|
6 | 6 | type PluginConversationBindingRequestResult, |
7 | 7 | type PluginInteractiveRegistration, |
8 | 8 | } from "openclaw/plugin-sdk/plugin-runtime"; |
9 | | -import type { ModalInputSummary } from "./monitor/events/interactions.modal.js"; |
| 9 | +import type { ModalInputSummary } from "./monitor/events/modal-input-summary.js"; |
10 | 10 | |
11 | 11 | export type SlackInteractiveHandlerResult = { |
12 | 12 | handled?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,28 +3,7 @@ import { dispatchSlackPluginInteractiveHandler } from "../../interactive-dispatc
|
3 | 3 | import { parseSlackModalPrivateMetadata } from "../../modal-metadata.js"; |
4 | 4 | import { authorizeSlackSystemEventSender } from "../auth.js"; |
5 | 5 | import type { SlackMonitorContext } from "../context.js"; |
6 | | - |
7 | | -export type ModalInputSummary = { |
8 | | -blockId: string; |
9 | | -actionId: string; |
10 | | -actionType?: string; |
11 | | -inputKind?: "text" | "number" | "email" | "url" | "rich_text"; |
12 | | -value?: string; |
13 | | -selectedValues?: string[]; |
14 | | -selectedUsers?: string[]; |
15 | | -selectedChannels?: string[]; |
16 | | -selectedConversations?: string[]; |
17 | | -selectedLabels?: string[]; |
18 | | -selectedDate?: string; |
19 | | -selectedTime?: string; |
20 | | -selectedDateTime?: number; |
21 | | -inputValue?: string; |
22 | | -inputNumber?: number; |
23 | | -inputEmail?: string; |
24 | | -inputUrl?: string; |
25 | | -richTextValue?: unknown; |
26 | | -richTextPreview?: string; |
27 | | -}; |
| 6 | +import type { ModalInputSummary } from "./modal-input-summary.js"; |
28 | 7 | |
29 | 8 | type SlackModalBody = { |
30 | 9 | user?: { id?: string }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,9 +3,9 @@ import type { SlackMonitorContext } from "../context.js";
|
3 | 3 | import { registerSlackBlockActionHandler, summarizeAction } from "./interactions.block-actions.js"; |
4 | 4 | import { |
5 | 5 | registerModalLifecycleHandler, |
6 | | -type ModalInputSummary, |
7 | 6 | type RegisterSlackModalHandler, |
8 | 7 | } from "./interactions.modal.js"; |
| 8 | +import type { ModalInputSummary } from "./modal-input-summary.js"; |
9 | 9 | |
10 | 10 | const SLACK_INTERACTION_EVENT_PREFIX = "Slack interaction: "; |
11 | 11 | const REDACTED_INTERACTION_VALUE = "[redacted]"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export type ModalInputSummary = { |
| 2 | +blockId: string; |
| 3 | +actionId: string; |
| 4 | +actionType?: string; |
| 5 | +inputKind?: "text" | "number" | "email" | "url" | "rich_text"; |
| 6 | +value?: string; |
| 7 | +selectedValues?: string[]; |
| 8 | +selectedUsers?: string[]; |
| 9 | +selectedChannels?: string[]; |
| 10 | +selectedConversations?: string[]; |
| 11 | +selectedLabels?: string[]; |
| 12 | +selectedDate?: string; |
| 13 | +selectedTime?: string; |
| 14 | +selectedDateTime?: number; |
| 15 | +inputValue?: string; |
| 16 | +inputNumber?: number; |
| 17 | +inputEmail?: string; |
| 18 | +inputUrl?: string; |
| 19 | +richTextValue?: unknown; |
| 20 | +richTextPreview?: string; |
| 21 | +}; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。