openclaw-lark-multi-agent 0.1.7 → 0.1.8
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/dist/feishu-bot.d.ts +1 -0
- package/dist/feishu-bot.js +17 -17
- package/package.json +1 -1
package/dist/feishu-bot.d.ts
CHANGED
package/dist/feishu-bot.js
CHANGED
|
@@ -758,16 +758,23 @@ export class FeishuBot {
|
|
|
758
758
|
}
|
|
759
759
|
return s;
|
|
760
760
|
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
761
|
+
buildMarkdownCard(text) {
|
|
762
|
+
return {
|
|
763
|
+
schema: "2.0",
|
|
764
|
+
config: { wide_screen_mode: true },
|
|
765
|
+
body: {
|
|
766
|
+
elements: [
|
|
767
|
+
{
|
|
768
|
+
tag: "markdown",
|
|
769
|
+
content: text,
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
},
|
|
770
773
|
};
|
|
774
|
+
}
|
|
775
|
+
async replyMessage(messageId, text) {
|
|
776
|
+
// Use Feishu CardKit v2 markdown component for full Markdown rendering.
|
|
777
|
+
const card = this.buildMarkdownCard(text);
|
|
771
778
|
try {
|
|
772
779
|
await this.client.im.message.reply({
|
|
773
780
|
path: { message_id: messageId },
|
|
@@ -923,14 +930,7 @@ ${doc.url}`);
|
|
|
923
930
|
* Send a proactive message to a chat (not a reply).
|
|
924
931
|
*/
|
|
925
932
|
async sendMessage(chatId, text) {
|
|
926
|
-
const card =
|
|
927
|
-
elements: [
|
|
928
|
-
{
|
|
929
|
-
tag: "markdown",
|
|
930
|
-
content: text,
|
|
931
|
-
},
|
|
932
|
-
],
|
|
933
|
-
};
|
|
933
|
+
const card = this.buildMarkdownCard(text);
|
|
934
934
|
try {
|
|
935
935
|
await this.client.im.message.create({
|
|
936
936
|
params: { receive_id_type: "chat_id" },
|