docs: remove bundled channel examples from core types · openclaw/openclaw@8b2ef40
steipete
·
2026-04-22
·
via Recent Commits to openclaw:main
7 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,10 +56,11 @@ export type AgentCommandOpts = {
|
56 | 56 | replyAccountId?: string; |
57 | 57 | /** Override delivery thread/topic id (separate from session routing). */ |
58 | 58 | threadId?: string | number; |
59 | | -/** Message channel context (webchat|voicewake|whatsapp|...). */ |
| 59 | +/** Message channel context. */ |
60 | 60 | messageChannel?: string; |
61 | | -channel?: string; // delivery channel (whatsapp|telegram|...) |
62 | | -/** Account ID for multi-account channel routing (e.g., WhatsApp account). */ |
| 61 | +/** Delivery channel. */ |
| 62 | +channel?: string; |
| 63 | +/** Account ID for multi-account channel routing. */ |
63 | 64 | accountId?: string; |
64 | 65 | /** Context for embedded run routing (channel/account/thread). */ |
65 | 66 | runContext?: AgentRunContext; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ export type RunEmbeddedPiAgentParams = {
|
30 | 30 | trigger?: EmbeddedRunTrigger; |
31 | 31 | /** Relative workspace path that memory-triggered writes are allowed to append to. */ |
32 | 32 | memoryFlushWritePath?: string; |
33 | | -/** Delivery target (e.g. telegram:group:123:topic:456) for topic/thread routing. */ |
| 33 | +/** Delivery target for topic/thread routing. */ |
34 | 34 | messageTo?: string; |
35 | 35 | /** Thread/topic identifier for routing replies to the originating thread. */ |
36 | 36 | messageThreadId?: string | number; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,8 +140,8 @@ export type EmbeddedPiRunResult = {
|
140 | 140 | audioAsVoice?: boolean; |
141 | 141 | }>; |
142 | 142 | meta: EmbeddedPiRunMeta; |
143 | | -// True if a messaging tool (telegram, whatsapp, discord, slack, sessions_send) |
144 | | -// successfully sent a message. Used to suppress agent's confirmation text. |
| 143 | +// True if a messaging tool successfully sent a message. |
| 144 | +// Used to suppress agent's confirmation text. |
145 | 145 | didSendViaMessagingTool?: boolean; |
146 | 146 | // Texts successfully sent via messaging tools during the run. |
147 | 147 | messagingToolSentTexts?: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,7 @@ function loadDeliverRuntime() {
|
40 | 40 | export type RouteReplyParams = { |
41 | 41 | /** The reply payload to send. */ |
42 | 42 | payload: ReplyPayload; |
43 | | -/** The originating channel type (telegram, slack, etc). */ |
| 43 | +/** The originating channel type. */ |
44 | 44 | channel: OriginatingChannelType; |
45 | 45 | /** The destination chat/channel/user ID. */ |
46 | 46 | to: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -142,9 +142,9 @@ export type MsgContext = {
|
142 | 142 | SenderTag?: string; |
143 | 143 | SenderE164?: string; |
144 | 144 | Timestamp?: number; |
145 | | -/** Provider label (e.g. whatsapp, telegram). */ |
| 145 | +/** Provider label. */ |
146 | 146 | Provider?: string; |
147 | | -/** Provider surface label (e.g. discord, slack). Prefer this over `Provider` when available. */ |
| 147 | +/** Provider surface label. Prefer this over `Provider` when available. */ |
148 | 148 | Surface?: string; |
149 | 149 | /** Platform bot username when command mentions should be normalized. */ |
150 | 150 | BotUsername?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -298,7 +298,7 @@ export type ChannelGatewayContext<ResolvedAccount = unknown> = {
|
298 | 298 | * ## Backward Compatibility |
299 | 299 | * |
300 | 300 | * - This field is **optional** - channels that don't need it can ignore it |
301 | | - * - Built-in channels (slack, discord, etc.) typically don't use this field |
| 301 | + * - Bundled channels typically don't use this field |
302 | 302 | * because they can directly import internal modules |
303 | 303 | * - External plugins should check for undefined before using |
304 | 304 | * - When provided, this must be a full `createPluginRuntime().channel` surface; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -129,8 +129,8 @@ type ChannelManagerOptions = {
|
129 | 129 | * plugins to access advanced Plugin SDK features (AI dispatch, routing, |
130 | 130 | * text processing, etc.). |
131 | 131 | * |
132 | | - * Built-in channels (slack, discord, telegram) typically don't use this |
133 | | - * because they can directly import internal modules from the monorepo. |
| 132 | + * Bundled channels typically don't use this because they can directly |
| 133 | + * import internal modules from the monorepo. |
134 | 134 | * |
135 | 135 | * This field is optional - omitting it maintains backward compatibility |
136 | 136 | * with existing channels. When provided, it must be a real |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。