mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 22:55:24 +00:00
fix(check): repair monitor and message tool types
This commit is contained in:
@@ -586,7 +586,7 @@ function buildMessageToolDescription(options?: {
|
||||
});
|
||||
if (channelActions.length > 0) {
|
||||
// Always include "send" as a base action
|
||||
const allActions = new Set(["send", ...channelActions]);
|
||||
const allActions = new Set<ChannelMessageActionName | "send">(["send", ...channelActions]);
|
||||
const actionList = Array.from(allActions).toSorted().join(", ");
|
||||
let desc = `${baseDescription} Current channel (${currentChannel}) supports: ${actionList}.`;
|
||||
|
||||
@@ -609,7 +609,7 @@ function buildMessageToolDescription(options?: {
|
||||
requesterSenderId: resolvedOptions.requesterSenderId,
|
||||
});
|
||||
if (actions.length > 0) {
|
||||
const all = new Set(["send", ...actions]);
|
||||
const all = new Set<ChannelMessageActionName | "send">(["send", ...actions]);
|
||||
otherChannels.push(`${plugin.id} (${Array.from(all).toSorted().join(", ")})`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user