Skip to content

Commit 5a5b4c5

Browse files
authored
refactor(slack): localize internal declarations (#102044)
1 parent ee6c576 commit 5a5b4c5

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/slack/src/channel-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createSlackWebClient } from "./client.js";
99
import { normalizeAllowListLower } from "./monitor/allow-list.js";
1010
import type { OpenClawConfig } from "./runtime-api.js";
1111

12-
export type SlackConversationInfo = {
12+
type SlackConversationInfo = {
1313
type: "channel" | "group" | "dm" | "unknown";
1414
user?: string;
1515
};

extensions/slack/src/interactive-dispatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from "openclaw/plugin-sdk/plugin-runtime";
1010
import type { ModalInputSummary } from "./monitor/events/modal-input-summary.js";
1111

12-
export type SlackInteractiveHandlerResult = {
12+
type SlackInteractiveHandlerResult = {
1313
handled?: boolean;
1414
systemEvent?: {
1515
summary?: string;

extensions/slack/src/message-sent-hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from "openclaw/plugin-sdk/hook-runtime";
2020
import { getGlobalHookRunner } from "openclaw/plugin-sdk/plugin-runtime";
2121

22-
export type EmitSlackMessageSentHookParams = {
22+
type EmitSlackMessageSentHookParams = {
2323
/** Optional canonical session key. When set, the internal `message:sent` hook fires too. */
2424
sessionKeyForInternalHooks?: string;
2525
/** Slack target (channel ID `C…`, DM channel ID `D…`, group `G…`, or user ID `U…`). */

extensions/slack/src/monitor/message-handler/prepare-thread-context-root.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Slack plugin module implements prepare thread context root behavior.
2-
export type SlackBotAuthorIdentity = {
2+
type SlackBotAuthorIdentity = {
33
botUserId?: string;
44
botId?: string;
55
};
66

7-
export type SlackThreadAuthorTuple = {
7+
type SlackThreadAuthorTuple = {
88
userId?: string;
99
botId?: string;
1010
};
@@ -14,11 +14,11 @@ export type SlackThreadRootCandidate = SlackThreadAuthorTuple & {
1414
ts?: string;
1515
};
1616

17-
export type SlackThreadHistoryFilterPolicy = {
17+
type SlackThreadHistoryFilterPolicy = {
1818
retainCurrentBotRootTs?: string;
1919
};
2020

21-
export type SlackThreadHistoryFilterResult<T> = {
21+
type SlackThreadHistoryFilterResult<T> = {
2222
kept: T[];
2323
omittedCurrentBot: number;
2424
};

0 commit comments

Comments
 (0)