@inline-openclaw/inline 0.0.24 → 0.0.25

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/index.js CHANGED
@@ -35170,6 +35170,7 @@ function resolveInlineCompatNativeCommandMenu(commandBody) {
35170
35170
  var CHANNEL_ID = "inline";
35171
35171
  var DEFAULT_DM_HISTORY_LIMIT = 6;
35172
35172
  var HISTORY_LINE_MAX_CHARS = 280;
35173
+ var URL_LIKE_PATTERN = /https?:\/\/\S+/i;
35173
35174
  var BOT_MESSAGE_CACHE_LIMIT = 500;
35174
35175
  var REACTION_TARGET_LOOKUP_LIMIT = 8;
35175
35176
  var REPLY_TARGET_LOOKUP_LIMIT = 8;
@@ -35479,6 +35480,8 @@ function normalizeHistoryText(raw) {
35479
35480
  return "";
35480
35481
  if (compact.length <= HISTORY_LINE_MAX_CHARS)
35481
35482
  return compact;
35483
+ if (URL_LIKE_PATTERN.test(compact))
35484
+ return compact;
35482
35485
  return `${compact.slice(0, HISTORY_LINE_MAX_CHARS - 1)}…`;
35483
35486
  }
35484
35487
  function drainCompleteParagraphs(buffer) {
@@ -40127,5 +40130,5 @@ export {
40127
40130
  src_default as default
40128
40131
  };
40129
40132
 
40130
- //# debugId=608084D1D5C29A8D64756E2164756E21
40133
+ //# debugId=DA562915BABAD00064756E2164756E21
40131
40134
  //# sourceMappingURL=index.js.map