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.
@@ -73,6 +73,7 @@ export declare class FeishuBot {
73
73
  private resolveHumanName;
74
74
  private cleanMentions;
75
75
  private stripLeadingCommandMentions;
76
+ private buildMarkdownCard;
76
77
  private replyMessage;
77
78
  private extractBridgeAttachments;
78
79
  private validateBridgeAttachmentPath;
@@ -758,16 +758,23 @@ export class FeishuBot {
758
758
  }
759
759
  return s;
760
760
  }
761
- async replyMessage(messageId, text) {
762
- // Use interactive card for markdown rendering
763
- const card = {
764
- elements: [
765
- {
766
- tag: "markdown",
767
- content: text,
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" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-lark-multi-agent",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Multi-bot Lark/Feishu bridge for OpenClaw, with per-bot model routing and isolated sessions",
5
5
  "type": "module",
6
6
  "scripts": {