@openclaw/msteams 2026.2.1 → 2026.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -493,6 +493,7 @@ export function createMSTeamsMessageHandler(deps: MSTeamsMessageHandlerDeps) {
|
|
|
493
493
|
const { dispatcher, replyOptions, markDispatchIdle } = createMSTeamsReplyDispatcher({
|
|
494
494
|
cfg,
|
|
495
495
|
agentId: route.agentId,
|
|
496
|
+
accountId: route.accountId,
|
|
496
497
|
runtime,
|
|
497
498
|
log,
|
|
498
499
|
adapter,
|
package/src/reply-dispatcher.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
createReplyPrefixOptions,
|
|
3
3
|
createTypingCallbacks,
|
|
4
4
|
logTypingFailure,
|
|
5
5
|
resolveChannelMediaMaxBytes,
|
|
@@ -26,6 +26,7 @@ import { getMSTeamsRuntime } from "./runtime.js";
|
|
|
26
26
|
export function createMSTeamsReplyDispatcher(params: {
|
|
27
27
|
cfg: OpenClawConfig;
|
|
28
28
|
agentId: string;
|
|
29
|
+
accountId?: string;
|
|
29
30
|
runtime: RuntimeEnv;
|
|
30
31
|
log: MSTeamsMonitorLogger;
|
|
31
32
|
adapter: MSTeamsAdapter;
|
|
@@ -55,16 +56,17 @@ export function createMSTeamsReplyDispatcher(params: {
|
|
|
55
56
|
});
|
|
56
57
|
},
|
|
57
58
|
});
|
|
58
|
-
const
|
|
59
|
+
const { onModelSelected, ...prefixOptions } = createReplyPrefixOptions({
|
|
59
60
|
cfg: params.cfg,
|
|
60
61
|
agentId: params.agentId,
|
|
62
|
+
channel: "msteams",
|
|
63
|
+
accountId: params.accountId,
|
|
61
64
|
});
|
|
62
65
|
const chunkMode = core.channel.text.resolveChunkMode(params.cfg, "msteams");
|
|
63
66
|
|
|
64
67
|
const { dispatcher, replyOptions, markDispatchIdle } =
|
|
65
68
|
core.channel.reply.createReplyDispatcherWithTyping({
|
|
66
|
-
|
|
67
|
-
responsePrefixContextProvider: prefixContext.responsePrefixContextProvider,
|
|
69
|
+
...prefixOptions,
|
|
68
70
|
humanDelay: core.channel.reply.resolveHumanDelayConfig(params.cfg, params.agentId),
|
|
69
71
|
deliver: async (payload) => {
|
|
70
72
|
const tableMode = core.channel.text.resolveMarkdownTableMode({
|
|
@@ -124,7 +126,7 @@ export function createMSTeamsReplyDispatcher(params: {
|
|
|
124
126
|
|
|
125
127
|
return {
|
|
126
128
|
dispatcher,
|
|
127
|
-
replyOptions: { ...replyOptions, onModelSelected
|
|
129
|
+
replyOptions: { ...replyOptions, onModelSelected },
|
|
128
130
|
markDispatchIdle,
|
|
129
131
|
};
|
|
130
132
|
}
|