refactor(channels): hide internal channel types · openclaw/openclaw@5370e73
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,8 +13,6 @@ function getChatChannelMetaById(): Record<ChatChannelId, ChatChannelMeta> {
|
13 | 13 | return chatChannelMetaCache; |
14 | 14 | } |
15 | 15 | |
16 | | -export type { ChatChannelMeta }; |
17 | | - |
18 | 16 | /** |
19 | 17 | * Lists built-in chat channel metadata in configured display order. |
20 | 18 | */ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,13 +43,13 @@ export type DurableMessageBatchSendParams = Omit<
|
43 | 43 | previousReceipt?: MessageReceipt; |
44 | 44 | }; |
45 | 45 | |
46 | | -export type DurableMessageSuppressionReason = |
| 46 | +type DurableMessageSuppressionReason = |
47 | 47 | | OutboundPayloadDeliverySuppressionReason |
48 | 48 | | "no_visible_result"; |
49 | 49 | |
50 | | -export type DurableMessageFailureStage = "platform_send" | "queue" | "unknown"; |
| 50 | +type DurableMessageFailureStage = "platform_send" | "queue" | "unknown"; |
51 | 51 | |
52 | | -export type DurableMessagePayloadDeliveryOutcome = |
| 52 | +type DurableMessagePayloadDeliveryOutcome = |
53 | 53 | | { |
54 | 54 | index: number; |
55 | 55 | status: "sent"; |
@@ -104,8 +104,6 @@ export type DurableMessageBatchSendResult =
|
104 | 104 | payloadOutcomes?: DurableMessagePayloadDeliveryOutcome[]; |
105 | 105 | }; |
106 | 106 | |
107 | | -export type DurableMessageDeliveryOutcome = DurableMessageBatchSendResult; |
108 | | - |
109 | 107 | const neverAbortedSignal = new AbortController().signal; |
110 | 108 | |
111 | 109 | function toDurableMessageIntent( |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ type ChannelPackageStateMetadata = {
|
39 | 39 | /** |
40 | 40 | * Metadata keys that can declare a lightweight package-state checker. |
41 | 41 | */ |
42 | | -export type ChannelPackageStateMetadataKey = "configuredState" | "persistedAuthState"; |
| 42 | +type ChannelPackageStateMetadataKey = "configuredState" | "persistedAuthState"; |
43 | 43 | |
44 | 44 | const log = createSubsystemLogger("channels"); |
45 | 45 | const sourcePackageStateLoaderCache: PluginModuleLoaderCache = new Map(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ export type RuntimeChannelStatusPayload = {
|
10 | 10 | channelAccounts?: unknown; |
11 | 11 | }; |
12 | 12 | |
13 | | -export type RuntimeChannelAccount = Record<string, unknown>; |
| 13 | +type RuntimeChannelAccount = Record<string, unknown>; |
14 | 14 | |
15 | 15 | const CREDENTIAL_STATUS_KEYS = [ |
16 | 16 | "tokenStatus", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -46,7 +46,7 @@ export type ThreadBindingSpawnPolicy = {
|
46 | 46 | }; |
47 | 47 | |
48 | 48 | /** Starting transcript mode for a spawned thread-bound session. */ |
49 | | -export type ThreadBindingSpawnContext = "isolated" | "fork"; |
| 49 | +type ThreadBindingSpawnContext = "isolated" | "fork"; |
50 | 50 | |
51 | 51 | function normalizeChannelId(value: string | undefined | null): string { |
52 | 52 | return normalizeLowercaseStringOrEmpty(value); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。