refactor(test): remove unused proof and channel helpers · openclaw/openclaw@9f5c9b2
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -267,10 +267,6 @@ export function extractRealBehaviorProofSections(body = "") {
|
267 | 267 | return extractMarkdownSections(/^#{2,6}\s+real behavior proof\b[^\n]*$/im, body); |
268 | 268 | } |
269 | 269 | |
270 | | -export function extractRealBehaviorProofSection(body = "") { |
271 | | -return extractRealBehaviorProofSections(body)[0] ?? ""; |
272 | | -} |
273 | | - |
274 | 270 | function extractOutOfScopeFollowUpsSection(body = "") { |
275 | 271 | return extractMarkdownSection(/^#{2,6}\s+out-of-scope follow-ups\b[^\n]*$/im, body); |
276 | 272 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -97,42 +97,6 @@ export const createDirectOutboundTestAdapter = (params: {
|
97 | 97 | sendMedia: async () => ({ channel: params.channel, messageId: params.messageId ?? "msg-test" }), |
98 | 98 | }); |
99 | 99 | |
100 | | -export const createMSTeamsTestPluginBase = (): Pick< |
101 | | -ChannelPlugin, |
102 | | -"id" | "meta" | "capabilities" | "config" |
103 | | -> => { |
104 | | -const base = createChannelTestPluginBase({ |
105 | | -id: "msteams", |
106 | | -label: "Microsoft Teams", |
107 | | -docsPath: "/channels/msteams", |
108 | | -config: { listAccountIds: () => [], resolveAccount: () => ({}) }, |
109 | | -}); |
110 | | -return { |
111 | | - ...base, |
112 | | -meta: { |
113 | | - ...base.meta, |
114 | | -selectionLabel: "Microsoft Teams (Bot Framework)", |
115 | | -blurb: "Teams SDK; enterprise support.", |
116 | | -aliases: ["teams"], |
117 | | -}, |
118 | | -}; |
119 | | -}; |
120 | | - |
121 | | -export const createMSTeamsTestPlugin = (params?: { |
122 | | -aliases?: string[]; |
123 | | -outbound?: ChannelOutboundAdapter; |
124 | | -}): ChannelPlugin => { |
125 | | -const base = createMSTeamsTestPluginBase(); |
126 | | -return { |
127 | | - ...base, |
128 | | -meta: { |
129 | | - ...base.meta, |
130 | | - ...(params?.aliases ? { aliases: params.aliases } : {}), |
131 | | -}, |
132 | | - ...(params?.outbound ? { outbound: params.outbound } : {}), |
133 | | -}; |
134 | | -}; |
135 | | - |
136 | 100 | export const createOutboundTestPlugin = (params: { |
137 | 101 | id: ChannelId; |
138 | 102 | outbound: ChannelOutboundAdapter; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。