aai-lark-bridge 0.2.44 → 0.2.45

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/cli.js CHANGED
@@ -4,7 +4,7 @@ import { Command } from "commander";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "aai-lark-bridge",
7
- version: "0.2.44",
7
+ version: "0.2.45",
8
8
  description: "Lark AI Native Bridge - Lark\u57FA\u7840\u8BBE\u65BD\u5C42\u548CCLI\u96C6\u6210",
9
9
  type: "module",
10
10
  main: "./dist/index.js",
@@ -15344,6 +15344,17 @@ function extractText(content) {
15344
15344
  } catch {
15345
15345
  return content;
15346
15346
  }
15347
+ if (tree && typeof tree === "object" && tree.schema === "2.0") {
15348
+ const elements = tree.body?.elements;
15349
+ const parts = [];
15350
+ if (Array.isArray(elements)) {
15351
+ for (const el of elements) {
15352
+ const e = el;
15353
+ if (e?.tag === "markdown" && typeof e.content === "string" && e.text_size !== "notation") parts.push(e.content);
15354
+ }
15355
+ }
15356
+ return parts.join("\n");
15357
+ }
15347
15358
  const out = [];
15348
15359
  const walk = (v, key) => {
15349
15360
  if (typeof v === "string") {
@@ -15389,7 +15400,7 @@ var ReactionConfirmer = class {
15389
15400
  if (this.used.has(evt.messageId)) return reject4("already-used");
15390
15401
  let bot;
15391
15402
  try {
15392
- bot = (await channel.fetchRawMessage(evt.messageId))[0];
15403
+ bot = (await channel.fetchRawMessage(evt.messageId, { cardContentType: "user_card_content" }))[0];
15393
15404
  } catch (err) {
15394
15405
  log.warn("reaction-confirm", "fetch-failed", { messageId: evt.messageId, err: String(err) });
15395
15406
  return void 0;