@clawos-dev/clawd 0.2.288 → 0.2.290

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.cjs CHANGED
@@ -8458,6 +8458,16 @@ var init_visitor_schemas = __esm({
8458
8458
  }
8459
8459
  });
8460
8460
 
8461
+ // ../protocol/src/lark-bot-format.ts
8462
+ function formatLarkSpeakerReminder(speaker) {
8463
+ return `<system-reminder>\u6B64\u6D88\u606F\u6765\u81EA\u98DE\u4E66\u7FA4\u6210\u5458 ${speaker}</system-reminder>`;
8464
+ }
8465
+ var init_lark_bot_format = __esm({
8466
+ "../protocol/src/lark-bot-format.ts"() {
8467
+ "use strict";
8468
+ }
8469
+ });
8470
+
8461
8471
  // ../protocol/src/runtime.ts
8462
8472
  var init_runtime = __esm({
8463
8473
  "../protocol/src/runtime.ts"() {
@@ -8484,6 +8494,7 @@ var init_runtime = __esm({
8484
8494
  init_visitor_schemas();
8485
8495
  init_shift_internal();
8486
8496
  init_lark_bot_schemas();
8497
+ init_lark_bot_format();
8487
8498
  }
8488
8499
  });
8489
8500
 
@@ -51938,6 +51949,7 @@ function createLarkBotCloudClient(opts) {
51938
51949
  }
51939
51950
 
51940
51951
  // src/lark-bot-connector/chat-router.ts
51952
+ init_protocol();
51941
51953
  var ERROR_REPLY_TEXT = "\u5904\u7406\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5";
51942
51954
  var DEFAULT_TURN_TIMEOUT_MS = 10 * 60 * 1e3;
51943
51955
  function createLarkChatRouter(deps) {
@@ -51951,8 +51963,11 @@ function createLarkChatRouter(deps) {
51951
51963
  deps.logger?.warn(`larkBot chat-router: message envelope missing messageId, drop ${env.eventId}`);
51952
51964
  return;
51953
51965
  }
51954
- const chatLabel = env.chatName ?? env.chatId;
51955
- const text = `[\u98DE\u4E66\u7FA4\xB7${chatLabel}] ${env.senderName ?? env.senderOpenId ?? "\u672A\u77E5\u6210\u5458"}: ${env.text ?? ""}`;
51966
+ const speaker = env.senderName || env.senderOpenId || "\u672A\u77E5\u6210\u5458";
51967
+ const body = env.text?.trim() ? env.text : "[\u975E\u6587\u672C\u6D88\u606F]";
51968
+ const text = `${body}
51969
+
51970
+ ${formatLarkSpeakerReminder(speaker)}`;
51956
51971
  const turn = deps.manager.runLarkChatTurn({
51957
51972
  personaId: env.personaId,
51958
51973
  chatId: env.chatId,
@@ -58774,7 +58789,7 @@ function computeMethodAccess(args) {
58774
58789
  }
58775
58790
 
58776
58791
  // src/version.ts
58777
- var version = "0.2.288".length > 0 ? "0.2.288" : "dev";
58792
+ var version = "0.2.290".length > 0 ? "0.2.290" : "dev";
58778
58793
 
58779
58794
  // src/cli-probe/probe.ts
58780
58795
  var fs55 = __toESM(require("fs"), 1);