@openclaw/line 2026.10.10 → 2026.11.5-beta.1

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.
Files changed (121) hide show
  1. package/dist/.setup/{api-Bz8QPCGD.mjs → api-ByXjHPMe.mjs} +1 -1
  2. package/dist/.setup/api-DCMpIrda.mjs +3 -0
  3. package/dist/.setup/{card-command-XYkg1XvG.mjs → card-command-utjlRvb-.mjs} +26 -43
  4. package/dist/.setup/{channel-ezTshIoC.mjs → channel-D9i_xlsJ.mjs} +237 -329
  5. package/dist/.setup/channel.runtime-C-E2qsIu.mjs +4 -0
  6. package/dist/.setup/{monitor-BBEBldZu.mjs → monitor-BYGe2Y7S.mjs} +240 -328
  7. package/dist/.setup/{outbound.runtime-BSuF2lax.mjs → outbound.runtime-AQvUJvJV.mjs} +2 -2
  8. package/dist/.setup/{send-B8TYfTO_.mjs → send-H86JOXWw.mjs} +37 -103
  9. package/dist/.setup/{send-retry-gHsCgBlf.mjs → send-retry-D6J7bThI.mjs} +174 -80
  10. package/dist/.setup/{template-messages-CdpQxqqb.mjs → template-messages-KG1GwG0h.mjs} +32 -44
  11. package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +1 -1
  12. package/dist/api.js +2 -2
  13. package/dist/channel-plugin-api.js +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/setup-entry.js +1 -1
  16. package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +1 -1
  17. package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
  18. package/node_modules/@line/bot-sdk/node_modules/@types/node/util.d.ts +7 -4
  19. package/node_modules/typebox/build/format/duration.d.mts +2 -2
  20. package/node_modules/typebox/build/format/duration.mjs +2 -2
  21. package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
  22. package/node_modules/typebox/build/format/idn_email.mjs +1 -0
  23. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
  24. package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
  25. package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
  26. package/node_modules/typebox/build/format/ipv4.mjs +2 -2
  27. package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
  28. package/node_modules/typebox/build/format/ipv6.mjs +1 -1
  29. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  30. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  31. package/node_modules/typebox/build/schema/build.mjs +1 -0
  32. package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
  33. package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
  34. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
  35. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
  36. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
  37. package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
  38. package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
  39. package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
  40. package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
  41. package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
  42. package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
  43. package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
  44. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
  45. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
  46. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  47. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  48. package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
  49. package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
  50. package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
  51. package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
  52. package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
  53. package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
  54. package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
  55. package/node_modules/typebox/build/system/memory/create.mjs +18 -13
  56. package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
  57. package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
  58. package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
  59. package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
  60. package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
  61. package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
  62. package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
  63. package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
  64. package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
  65. package/node_modules/typebox/build/system/memory/update.mjs +43 -16
  66. package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
  67. package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
  68. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
  69. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
  70. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
  71. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
  72. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
  73. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
  74. package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
  75. package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
  76. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
  77. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
  78. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
  79. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
  80. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
  81. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  82. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
  83. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
  84. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
  85. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
  86. package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
  87. package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
  88. package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
  89. package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
  90. package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
  91. package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
  92. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
  93. package/node_modules/typebox/package.json +1 -1
  94. package/node_modules/typebox/readme.md +1 -1
  95. package/node_modules/zod/package.json +1 -1
  96. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  97. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  98. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  99. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  100. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  101. package/node_modules/zod/src/v4/core/util.ts +13 -0
  102. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  103. package/node_modules/zod/v4/core/compile.cjs +8 -0
  104. package/node_modules/zod/v4/core/compile.js +8 -0
  105. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  106. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  107. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  108. package/node_modules/zod/v4/core/schemas.js +30 -0
  109. package/node_modules/zod/v4/core/util.cjs +15 -0
  110. package/node_modules/zod/v4/core/util.d.cts +2 -0
  111. package/node_modules/zod/v4/core/util.d.ts +2 -0
  112. package/node_modules/zod/v4/core/util.js +14 -0
  113. package/node_modules/zod/v4/core/versions.cjs +1 -1
  114. package/node_modules/zod/v4/core/versions.js +1 -1
  115. package/package.json +6 -6
  116. package/dist/.setup/api-EJnP_1cJ.mjs +0 -3
  117. package/dist/.setup/channel.runtime-4w8EffJb.mjs +0 -4
  118. package/dist/.setup/monitor.runtime-BWIgUqzC.mjs +0 -1
  119. package/dist/.setup/probe.runtime-a-fC57xd.mjs +0 -1
  120. package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
  121. package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
@@ -1,6 +1,6 @@
1
1
  import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-Dm_NoU7R.mjs";
2
2
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
3
- import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
3
+ import { asSafeIntegerInRange, hasNonEmptyString, isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { collectErrorGraphCandidates, extractErrorCode, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
5
  import { getFileExtension, mimeTypeFromFilePath } from "openclaw/plugin-sdk/media-mime";
6
6
  import { resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
@@ -11,6 +11,17 @@ import { HTTPFetchError } from "@line/bot-sdk";
11
11
  import { classifyTransientNetworkErrorCode, createChannelApiRetryRunner } from "openclaw/plugin-sdk/retry-runtime";
12
12
  import { assertOkOrThrowHttpError, createProviderOperationDeadline, createProviderOperationTimeoutResolver, fetchWithTimeout, readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
13
13
  import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/runtime-fetch";
14
+ // \0rolldown/runtime.js
15
+ var __defProp = Object.defineProperty;
16
+ var __exportAll = (all, no_symbols) => {
17
+ let target = {};
18
+ for (var name in all) __defProp(target, name, {
19
+ get: all[name],
20
+ enumerable: true
21
+ });
22
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
23
+ return target;
24
+ };
14
25
  // extensions/line/src/messaging-target.ts
15
26
  function normalizeLineMessagingTarget(target) {
16
27
  const trimmed = target.trim();
@@ -53,7 +64,7 @@ function resolveLineMediaKind(url, opts) {
53
64
  mediaKind: opts.mediaKind,
54
65
  kindSource: "declared"
55
66
  };
56
- if (typeof opts.durationMs === "number") return {
67
+ if (opts.durationMs !== void 0) return {
57
68
  mediaKind: "audio",
58
69
  kindSource: "metadata"
59
70
  };
@@ -101,7 +112,7 @@ async function buildLineMediaMessage(mediaUrl, opts, target) {
101
112
  case "audio": return {
102
113
  type: "audio",
103
114
  originalContentUrl: trimmedUrl,
104
- duration: typeof opts.durationMs === "number" ? opts.durationMs : 6e4
115
+ duration: opts.durationMs ?? 6e4
105
116
  };
106
117
  default: return {
107
118
  type: "image",
@@ -122,7 +133,6 @@ function quoteTokenKey(chatId, messageId) {
122
133
  function readLineQuoteToken(message) {
123
134
  return message.type === "text" || message.type === "image" || message.type === "video" || message.type === "sticker" ? message.quoteToken : void 0;
124
135
  }
125
- /** Remembers the token an inbound message can later be quoted with. */
126
136
  function recordLineQuoteToken(params) {
127
137
  const quoteToken = params.quoteToken;
128
138
  if (!quoteToken) return;
@@ -134,7 +144,6 @@ function recordLineQuoteToken(params) {
134
144
  tokens.set(key, quoteToken);
135
145
  pruneMapToMaxSize(tokens, QUOTE_TOKEN_LIMIT);
136
146
  }
137
- /** Resolves the token that quotes one message in one chat, if it is still known. */
138
147
  function resolveLineQuoteToken(params) {
139
148
  const key = params.messageId ? quoteTokenKey(params.chatId, params.messageId) : void 0;
140
149
  if (!key) return;
@@ -164,7 +173,7 @@ function reportLineQuoteCarrierMissing(chatId) {
164
173
  /** Attaches a quote token to the first message in a request that can carry one. */
165
174
  function applyLineQuoteToken(messages, quoteToken) {
166
175
  const target = quoteToken ? messages.findIndex(canCarryLineQuoteToken) : -1;
167
- return target < 0 ? [...messages] : messages.map((message, index) => index === target ? {
176
+ return target < 0 ? messages : messages.map((message, index) => index === target ? {
168
177
  ...message,
169
178
  quoteToken
170
179
  } : message);
@@ -198,6 +207,19 @@ function toFlexMessage(altText, contents) {
198
207
  }
199
208
  // extensions/line/src/actions.ts
200
209
  const LINE_ACTION_LABEL_LIMIT = 20;
210
+ const LINE_QUICK_REPLY_ITEM_LIMIT = 13;
211
+ const lineActionUriProtocols = /* @__PURE__ */ new Set([
212
+ "http:",
213
+ "https:",
214
+ "line:",
215
+ "tel:"
216
+ ]);
217
+ const linePostbackInputOptions = /* @__PURE__ */ new Set([
218
+ "closeRichMenu",
219
+ "openRichMenu",
220
+ "openKeyboard",
221
+ "openVoice"
222
+ ]);
201
223
  const LINE_ACTION_DATA_LIMIT = 300;
202
224
  const LINE_ACTION_URI_LIMIT = 1e3;
203
225
  const LINE_CLIPBOARD_TEXT_LIMIT = 1e3;
@@ -207,6 +229,28 @@ const LINE_IMAGEMAP_MESSAGE_TEXT_LIMIT = 400;
207
229
  const LINE_IMAGEMAP_EXTERNAL_LINK_LABEL_LIMIT = 30;
208
230
  const LINE_IMAGEMAP_ACTION_LIMIT = 50;
209
231
  const graphemeSegmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
232
+ function isValidLineUri(value, icon = false) {
233
+ if (typeof value !== "string" || value.length > (icon ? 2e3 : LINE_ACTION_URI_LIMIT)) return false;
234
+ try {
235
+ const protocol = new URL(value).protocol;
236
+ return icon ? protocol === "https:" : lineActionUriProtocols.has(protocol);
237
+ } catch {
238
+ return false;
239
+ }
240
+ }
241
+ function invalidLineUriReason(value) {
242
+ return typeof value === "string" && value.length > LINE_ACTION_URI_LIMIT ? "URL exceeds LINE's limit." : "URL scheme is not supported by LINE.";
243
+ }
244
+ function isValidLinePickerValue(value, mode) {
245
+ if (mode === "time") return /^(?:[01]\d|2[0-3]):[0-5]\d$/.test(value);
246
+ const match = /^(\d{4})-(\d{2})-(\d{2})(?:[Tt]((?:[01]\d|2[0-3]):[0-5]\d))?$/.exec(value);
247
+ if (!match || mode === "datetime" !== (match[4] !== void 0)) return false;
248
+ const year = Number(match[1]);
249
+ const month = Number(match[2]);
250
+ const day = Number(match[3]);
251
+ const date = new Date(Date.UTC(year, month - 1, day));
252
+ return year >= 1900 && year <= 2100 && date.getUTCFullYear() === year && date.getUTCMonth() === month - 1 && date.getUTCDate() === day;
253
+ }
210
254
  function truncateLineActionText(text, limit) {
211
255
  let result = "";
212
256
  let count = 0;
@@ -221,9 +265,6 @@ function truncateLineActionText(text, limit) {
221
265
  function truncateLineActionLabel(label, limit = LINE_ACTION_LABEL_LIMIT) {
222
266
  return truncateLineActionText(label, limit) || (label ? "…" : "");
223
267
  }
224
- function truncateLineActionData(data) {
225
- return truncateUtf16Safe(data, LINE_ACTION_DATA_LIMIT);
226
- }
227
268
  const UNDELIVERABLE_IMAGE_WARNING = "Image unavailable: URL must use HTTPS.";
228
269
  function flexWarning(text) {
229
270
  return {
@@ -262,23 +303,51 @@ function isLineAction(value) {
262
303
  function isUnavailableAction(action) {
263
304
  return action[unavailableActionMarker] === true;
264
305
  }
265
- function normalizeNestedContent(value, labelLimit, warnings) {
266
- if (Array.isArray(value)) return value.map((item) => normalizeNestedContent(item, labelLimit, warnings)).filter((item) => item !== void 0);
306
+ function hasRequiredActionFields(action) {
307
+ switch (action.type) {
308
+ case "message": return typeof action.text === "string";
309
+ case "uri": return hasNonEmptyString(action.uri);
310
+ case "postback": return typeof action.data === "string";
311
+ case "datetimepicker": return typeof action.data === "string" && (action.mode === "date" || action.mode === "time" || action.mode === "datetime");
312
+ case "clipboard": return typeof action.clipboardText === "string" && action.clipboardText.length > 0;
313
+ default: return true;
314
+ }
315
+ }
316
+ function normalizeMessageSurfaceAction(value, labelLimit, surface, requireLabel) {
317
+ if (!isLineAction(value)) return unavailableAction("Action", "action type is not supported by LINE.");
318
+ if (requireLabel && !hasNonEmptyString(value.label)) return unavailableAction("Action", "action label is missing.");
319
+ if (value.type === "richmenuswitch") return unavailableAction("Action", "rich menu switching is only available in rich menus.");
320
+ if (surface !== "quick-reply" && (value.type === "camera" || value.type === "cameraRoll" || value.type === "location")) return unavailableAction("Action", "this action is only available in quick replies.");
321
+ if (surface === "quick-reply" && value.type === "postback" && value.text !== void 0) {
322
+ const { text, ...postback } = value;
323
+ return normalizeLineAction({
324
+ ...postback,
325
+ displayText: postback.displayText ?? text
326
+ }, labelLimit);
327
+ }
328
+ return normalizeLineAction(value, labelLimit);
329
+ }
330
+ function normalizeNestedContent(value, labelLimit, warnings, surface = "flex") {
331
+ if (Array.isArray(value)) return value.map((item) => normalizeNestedContent(item, labelLimit, warnings, surface)).filter((item) => item !== void 0);
267
332
  if (!isRecord(value)) return value;
268
333
  if (warnings && (value.type === "image" || value.type === "icon") && !isHttpsUrl(value.url)) {
269
334
  warnings.push(UNDELIVERABLE_IMAGE_WARNING);
270
335
  return;
271
336
  }
272
337
  const normalized = { ...value };
273
- for (const [key, nested] of Object.entries(value)) if ((key === "action" || key === "defaultAction") && isLineAction(nested)) {
274
- const action = normalizeLineAction(nested, labelLimit);
338
+ for (const [key, nested] of Object.entries(value)) if ((key === "action" || key === "defaultAction") && nested !== void 0) {
339
+ const action = normalizeMessageSurfaceAction(nested, labelLimit, surface, surface === "template" || value.type === "button");
340
+ if (key === "defaultAction" && isUnavailableAction(action)) {
341
+ delete normalized[key];
342
+ continue;
343
+ }
275
344
  if (warnings && key === "action" && (value.type === "video" && action.type !== "uri" || value.type !== "button" && isUnavailableAction(action))) {
276
345
  delete normalized[key];
277
346
  warnings.push(isUnavailableAction(action) ? action.text ?? "Action unavailable." : "Action unavailable in this video.");
278
347
  } else normalized[key] = action;
279
- } else if (key === "actions" && Array.isArray(nested)) normalized[key] = nested.map((action) => isLineAction(action) ? normalizeLineAction(action, labelLimit) : action);
348
+ } else if (key === "actions" && Array.isArray(nested)) normalized[key] = nested.map((action) => normalizeMessageSurfaceAction(action, labelLimit, surface, surface === "template"));
280
349
  else {
281
- const content = normalizeNestedContent(nested, labelLimit, warnings);
350
+ const content = normalizeNestedContent(nested, labelLimit, warnings, surface);
282
351
  if (content === void 0) delete normalized[key];
283
352
  else normalized[key] = content;
284
353
  }
@@ -344,22 +413,22 @@ function unavailableImagemapAction(kind, reason, area) {
344
413
  function normalizeImagemapAction(action) {
345
414
  const label = action.label === void 0 ? void 0 : truncateLineActionText(action.label, LINE_IMAGEMAP_ACTION_LABEL_LIMIT);
346
415
  if (action.type === "uri") {
347
- if (truncateUtf16Safe(action.linkUri, LINE_ACTION_URI_LIMIT) !== action.linkUri) return unavailableImagemapAction("Link", "URL exceeds LINE's limit.", action.area);
416
+ if (!isValidLineUri(action.linkUri)) return unavailableImagemapAction("Link", invalidLineUriReason(action.linkUri), action.area);
348
417
  return {
349
418
  ...action,
350
419
  label
351
420
  };
352
421
  }
353
422
  if (action.type === "message") {
354
- const text = truncateUtf16Safe(action.text, LINE_IMAGEMAP_MESSAGE_TEXT_LIMIT);
355
- if (text !== action.text) return unavailableImagemapAction("Action", "message text exceeds LINE's limit.", action.area);
423
+ if (typeof action.text !== "string") return unavailableImagemapAction("Action", "message text is missing.", action.area);
424
+ if (action.text.length > LINE_IMAGEMAP_MESSAGE_TEXT_LIMIT) return unavailableImagemapAction("Action", "message text exceeds LINE's limit.", action.area);
356
425
  return {
357
426
  ...action,
358
- label,
359
- text
427
+ label
360
428
  };
361
429
  }
362
- if (truncateUtf16Safe(action.clipboardText, LINE_CLIPBOARD_TEXT_LIMIT) !== action.clipboardText) return unavailableImagemapAction("Action", "clipboard text exceeds LINE's limit.", action.area);
430
+ if (typeof action.clipboardText !== "string" || action.clipboardText.length === 0) return unavailableImagemapAction("Action", "clipboard text must not be empty.", action.area);
431
+ if (action.clipboardText.length > LINE_CLIPBOARD_TEXT_LIMIT) return unavailableImagemapAction("Action", "clipboard text exceeds LINE's limit.", action.area);
363
432
  return {
364
433
  ...action,
365
434
  label
@@ -367,16 +436,16 @@ function normalizeImagemapAction(action) {
367
436
  }
368
437
  function normalizeImagemapVideo(video) {
369
438
  const externalLink = video.externalLink;
370
- if (!externalLink) return { video };
371
- const label = externalLink.label === void 0 ? void 0 : truncateUtf16Safe(externalLink.label, LINE_IMAGEMAP_EXTERNAL_LINK_LABEL_LIMIT) || (externalLink.label ? "…" : "");
372
- if (externalLink.linkUri !== void 0 && truncateUtf16Safe(externalLink.linkUri, LINE_ACTION_URI_LIMIT) !== externalLink.linkUri) {
439
+ if (externalLink === void 0) return { video };
440
+ if (!isRecord(externalLink) || !isValidLineUri(externalLink.linkUri) || !hasNonEmptyString(externalLink.label)) {
373
441
  const normalizedVideo = { ...video };
374
442
  delete normalizedVideo.externalLink;
375
443
  return {
376
444
  video: normalizedVideo,
377
- fallbackAction: video.area === void 0 ? void 0 : unavailableImagemapAction("Link", "URL exceeds LINE's limit.", video.area)
445
+ fallbackAction: video.area === void 0 ? void 0 : unavailableImagemapAction("Link", "video link URL or label is invalid.", video.area)
378
446
  };
379
447
  }
448
+ const label = truncateUtf16Safe(externalLink.label, LINE_IMAGEMAP_EXTERNAL_LINK_LABEL_LIMIT) || "…";
380
449
  return { video: {
381
450
  ...video,
382
451
  externalLink: {
@@ -393,7 +462,7 @@ function normalizeLineMessage(message) {
393
462
  };
394
463
  else if (message.type === "template") {
395
464
  const labelLimit = message.template.type === "image_carousel" ? 12 : 20;
396
- const template = normalizeNestedContent(message.template, labelLimit);
465
+ const template = normalizeNestedContent(message.template, labelLimit, void 0, message.template.type === "image_carousel" ? "image-carousel" : "template");
397
466
  const columns = template.type === "carousel" ? template.columns : template.type === "buttons" ? [template] : [];
398
467
  if (columns.some((column) => !isHttpsUrl(column.thumbnailImageUrl))) for (const column of columns) delete column.thumbnailImageUrl;
399
468
  normalized = {
@@ -412,50 +481,77 @@ function normalizeLineMessage(message) {
412
481
  video: videoResult?.video
413
482
  };
414
483
  } else normalized = { ...message };
415
- if (message.quickReply) normalized = {
416
- ...normalized,
417
- quickReply: normalizeNestedContent(message.quickReply, 20)
418
- };
484
+ if (message.quickReply) {
485
+ const items = [];
486
+ for (const item of Array.isArray(message.quickReply.items) ? message.quickReply.items : []) {
487
+ if (!isRecord(item) || !isLineAction(item.action) || !hasNonEmptyString(item.action.label) || !hasRequiredActionFields(item.action)) continue;
488
+ const { imageUrl, ...rest } = item;
489
+ items.push({
490
+ ...rest,
491
+ ...isValidLineUri(imageUrl, true) ? { imageUrl } : {},
492
+ type: "action",
493
+ action: normalizeMessageSurfaceAction(item.action, 20, "quick-reply", true)
494
+ });
495
+ if (items.length === LINE_QUICK_REPLY_ITEM_LIMIT) break;
496
+ }
497
+ if (items.length) normalized.quickReply = { items };
498
+ else delete normalized.quickReply;
499
+ }
419
500
  return normalized;
420
501
  }
421
502
  function normalizeLineAction(action, labelLimit = LINE_ACTION_LABEL_LIMIT) {
422
503
  if (isUnavailableAction(action)) return action;
423
504
  const label = action.label === void 0 ? void 0 : truncateLineActionLabel(action.label, labelLimit);
424
505
  if (action.type === "uri") {
425
- const uriTooLong = action.uri !== void 0 && truncateUtf16Safe(action.uri, LINE_ACTION_URI_LIMIT) !== action.uri;
426
- const desktopUri = action.altUri?.desktop;
427
- const desktopUriTooLong = desktopUri !== void 0 && truncateUtf16Safe(desktopUri, LINE_ACTION_URI_LIMIT) !== desktopUri;
428
- if (uriTooLong || desktopUriTooLong) return unavailableAction("Link", "URL exceeds LINE's limit.");
429
- return {
506
+ if (!isValidLineUri(action.uri)) return unavailableAction("Link", invalidLineUriReason(action.uri));
507
+ const normalized = {
430
508
  ...action,
431
509
  label
432
510
  };
511
+ if (action.altUri !== void 0 && (!isRecord(action.altUri) || !isValidLineUri(action.altUri.desktop))) delete normalized.altUri;
512
+ return normalized;
433
513
  }
434
- if (action.type === "postback") {
435
- const data = action.data === void 0 ? void 0 : truncateLineActionData(action.data);
436
- if (data !== action.data) return unavailableAction("Action", "callback data exceeds LINE's limit.");
437
- const text = action.text === void 0 ? void 0 : truncateLineActionText(action.text, LINE_ACTION_DATA_LIMIT);
438
- const fillInText = action.fillInText === void 0 ? void 0 : truncateLineActionText(action.fillInText, LINE_ACTION_DATA_LIMIT);
439
- if (text !== action.text || fillInText !== action.fillInText) return unavailableAction("Action", "message text exceeds LINE's limit.");
440
- return {
441
- ...action,
514
+ if (action.type === "postback" || action.type === "datetimepicker") {
515
+ if (!hasRequiredActionFields(action)) return unavailableAction("Action", "callback data or picker mode is missing.");
516
+ if (action.data !== void 0 && action.data.length > LINE_ACTION_DATA_LIMIT) return unavailableAction("Action", "callback data exceeds LINE's limit.");
517
+ if (action.type === "datetimepicker") {
518
+ const normalized = {
519
+ ...action,
520
+ label
521
+ };
522
+ for (const field of [
523
+ "initial",
524
+ "min",
525
+ "max"
526
+ ]) {
527
+ const value = normalized[field];
528
+ if (value !== void 0 && !isValidLinePickerValue(value, action.mode)) delete normalized[field];
529
+ }
530
+ if (normalized.min !== void 0 && normalized.max !== void 0 && normalized.min.toUpperCase() >= normalized.max.toUpperCase()) {
531
+ delete normalized.min;
532
+ delete normalized.max;
533
+ }
534
+ return normalized;
535
+ }
536
+ const { text: legacyText, ...postback } = action;
537
+ const chosenText = action.displayText === void 0 ? legacyText : void 0;
538
+ const text = chosenText === void 0 ? void 0 : truncateLineActionText(chosenText, LINE_ACTION_DATA_LIMIT);
539
+ const keyboardText = action.inputOption === "openKeyboard" ? action.fillInText : void 0;
540
+ const fillInText = keyboardText === void 0 ? void 0 : truncateLineActionText(keyboardText, LINE_ACTION_DATA_LIMIT);
541
+ if (text !== chosenText || fillInText !== keyboardText) return unavailableAction("Action", "message text exceeds LINE's limit.");
542
+ const normalized = {
543
+ ...postback,
442
544
  label,
443
- data,
444
545
  displayText: action.displayText === void 0 ? void 0 : truncateLineActionText(action.displayText, LINE_ACTION_DATA_LIMIT),
445
546
  text,
446
547
  fillInText
447
548
  };
448
- }
449
- if (action.type === "datetimepicker") {
450
- const data = action.data === void 0 ? void 0 : truncateLineActionData(action.data);
451
- if (data !== action.data) return unavailableAction("Action", "callback data exceeds LINE's limit.");
452
- return {
453
- ...action,
454
- label,
455
- data
456
- };
549
+ if (normalized.inputOption !== void 0 && !linePostbackInputOptions.has(normalized.inputOption)) delete normalized.inputOption;
550
+ if (normalized.inputOption !== "openKeyboard") delete normalized.fillInText;
551
+ return normalized;
457
552
  }
458
553
  if (action.type === "message") {
554
+ if (!hasRequiredActionFields(action)) return unavailableAction("Action", "message text is missing.");
459
555
  const text = action.text === void 0 ? void 0 : truncateLineActionText(action.text, LINE_ACTION_DATA_LIMIT);
460
556
  if (text !== action.text) return unavailableAction("Action", "message text exceeds LINE's limit.");
461
557
  return {
@@ -465,20 +561,20 @@ function normalizeLineAction(action, labelLimit = LINE_ACTION_LABEL_LIMIT) {
465
561
  };
466
562
  }
467
563
  if (action.type === "clipboard") {
468
- if (truncateUtf16Safe(action.clipboardText, LINE_CLIPBOARD_TEXT_LIMIT) !== action.clipboardText) return unavailableAction("Action", "clipboard text exceeds LINE's limit.");
564
+ if (!hasRequiredActionFields(action)) return unavailableAction("Action", "clipboard text must not be empty.");
565
+ if (action.clipboardText.length > LINE_CLIPBOARD_TEXT_LIMIT) return unavailableAction("Action", "clipboard text exceeds LINE's limit.");
469
566
  return {
470
567
  ...action,
471
568
  label
472
569
  };
473
570
  }
474
571
  if (action.type === "richmenuswitch") {
475
- const data = action.data === void 0 ? void 0 : truncateLineActionData(action.data);
476
- const aliasTooLong = action.richMenuAliasId !== void 0 && truncateUtf16Safe(action.richMenuAliasId, LINE_RICH_MENU_ALIAS_LIMIT) !== action.richMenuAliasId;
477
- if (data !== action.data || aliasTooLong) return unavailableAction("Action", "rich menu data exceeds LINE's limit.");
572
+ const dataTooLong = action.data !== void 0 && action.data.length > LINE_ACTION_DATA_LIMIT;
573
+ const aliasTooLong = action.richMenuAliasId !== void 0 && action.richMenuAliasId.length > LINE_RICH_MENU_ALIAS_LIMIT;
574
+ if (dataTooLong || aliasTooLong) return unavailableAction("Action", "rich menu data exceeds LINE's limit.");
478
575
  return {
479
576
  ...action,
480
- label,
481
- data
577
+ label
482
578
  };
483
579
  }
484
580
  return action.label === label ? action : {
@@ -663,17 +759,6 @@ function createActionCard(title, body, actions, options) {
663
759
  return bubble;
664
760
  }
665
761
  // extensions/line/src/flex-templates/schedule-cards.ts
666
- function buildTitleSubtitleHeader(params) {
667
- const { title, subtitle } = params;
668
- const headerContents = [createCardTitle(title)];
669
- if (subtitle) headerContents.push(cardText(subtitle, {
670
- size: "sm",
671
- color: "#888888",
672
- margin: "sm",
673
- wrap: true
674
- }));
675
- return headerContents;
676
- }
677
762
  function buildCardHeaderSections(headerContents) {
678
763
  return [cardBox("vertical", headerContents, { paddingBottom: "lg" }), {
679
764
  type: "separator",
@@ -801,10 +886,13 @@ function createEventCard(params) {
801
886
  }
802
887
  function createAgendaCard(params) {
803
888
  const { title, subtitle, events, footer } = params;
804
- const headerContents = buildTitleSubtitleHeader({
805
- title,
806
- subtitle
807
- });
889
+ const headerContents = [createCardTitle(title)];
890
+ if (subtitle) headerContents.push(cardText(subtitle, {
891
+ size: "sm",
892
+ color: "#888888",
893
+ margin: "sm",
894
+ wrap: true
895
+ }));
808
896
  const eventItems = events.slice(0, 6).map((event, index) => {
809
897
  const isActive = event.isNow || index === 0;
810
898
  const accentColor = isActive ? "#06C755" : "#E5E5E5";
@@ -845,6 +933,10 @@ function resolveLineChannelAccessToken(explicit, params) {
845
933
  return params.channelAccessToken.trim();
846
934
  }
847
935
  // extensions/line/src/probe.ts
936
+ var probe_exports = /* @__PURE__ */ __exportAll({
937
+ probeLineBot: () => probeLineBot,
938
+ readLineAccountMessageQuota: () => readLineAccountMessageQuota
939
+ });
848
940
  const LINE_QUOTA_TIMEOUT_MS = 2e3;
849
941
  const LINE_JSON_MAX_BYTES = 16384;
850
942
  function createLineApiReader(channelAccessToken, timeoutMs) {
@@ -875,13 +967,15 @@ async function readLineMessageQuota(channelAccessToken, budgetMs) {
875
967
  const read = createLineApiReader(channelAccessToken, budgetMs);
876
968
  const quota = await read("message/quota");
877
969
  if (quota.type === "none") return { kind: "unlimited" };
878
- if (quota.type !== "limited" || typeof quota.value !== "number" || !Number.isSafeInteger(quota.value) || quota.value < 0) return;
970
+ const limit = asSafeIntegerInRange(quota.value, { min: 0 });
971
+ if (quota.type !== "limited" || limit === void 0) return;
879
972
  const { totalUsage } = await read("message/quota/consumption");
880
- return typeof totalUsage === "number" && Number.isSafeInteger(totalUsage) && totalUsage >= 0 ? {
973
+ const used = asSafeIntegerInRange(totalUsage, { min: 0 });
974
+ return used === void 0 ? void 0 : {
881
975
  kind: "limited",
882
- limit: quota.value,
883
- used: totalUsage
884
- } : void 0;
976
+ limit,
977
+ used
978
+ };
885
979
  } catch {
886
980
  return;
887
981
  }
@@ -993,4 +1087,4 @@ async function explainLineRefusal(params) {
993
1087
  reason: exhausted ? `LINE refused the push: ${quota.used}/${quota.limit} monthly messages used. Check the account allowance or plan before retrying.` : params.error instanceof Error ? params.error.message : "LINE rejected the message"
994
1088
  };
995
1089
  }
996
- export { resolveLineQuoteToken as A, fitsLineFlexBubble as C, readLineQuoteToken as D, canCarryLineQuoteToken as E, buildLineMediaMessage as M, inferLineTargetChatType as N, recordLineQuoteToken as O, normalizeLineMessagingTarget as P, uriAction as S, applyLineQuoteToken as T, createCardTitle as _, probeLineBot as a, postbackAction as b, createEventCard as c, createImageCard as d, createInfoCard as f, createCardBubble as g, cardText as h, runLinePushWithRetries as i, withoutLineQuoteTokens as j, reportLineQuoteCarrierMissing as k, createReceiptCard as l, cardBox as m, findLineHttpError as n, resolveLineChannelAccessToken as o, createListCard as p, resolveLineNonDispatchRetryable as r, createAgendaCard as s, explainLineRefusal as t, createActionCard as u, messageAction as v, toFlexMessage as w, truncateLineActionLabel as x, normalizeLineMessage as y };
1090
+ export { reportLineQuoteCarrierMissing as A, uriAction as C, canCarryLineQuoteToken as D, applyLineQuoteToken as E, normalizeLineMessagingTarget as F, withoutLineQuoteTokens as M, buildLineMediaMessage as N, readLineQuoteToken as O, inferLineTargetChatType as P, truncateLineActionLabel as S, toFlexMessage as T, createCardBubble as _, probeLineBot as a, normalizeLineMessage as b, createAgendaCard as c, createActionCard as d, createImageCard as f, cardText as g, cardBox as h, runLinePushWithRetries as i, resolveLineQuoteToken as j, recordLineQuoteToken as k, createEventCard as l, createListCard as m, findLineHttpError as n, probe_exports as o, createInfoCard as p, resolveLineNonDispatchRetryable as r, resolveLineChannelAccessToken as s, explainLineRefusal as t, createReceiptCard as u, createCardTitle as v, fitsLineFlexBubble as w, postbackAction as x, messageAction as y };
@@ -1,4 +1,4 @@
1
- import { C as fitsLineFlexBubble, S as uriAction, b as postbackAction, h as cardText, l as createReceiptCard, m as cardBox, v as messageAction, w as toFlexMessage } from "./send-retry-gHsCgBlf.mjs";
1
+ import { C as uriAction, T as toFlexMessage, g as cardText, h as cardBox, u as createReceiptCard, w as fitsLineFlexBubble, x as postbackAction, y as messageAction } from "./send-retry-D6J7bThI.mjs";
2
2
  import { markdownToIRWithMeta, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
3
3
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
4
4
  // extensions/line/src/markdown-to-line.ts
@@ -19,12 +19,6 @@ function parseLineMarkdown(text, tableMode = "block") {
19
19
  tableMode
20
20
  });
21
21
  }
22
- function toCodeBlock(ir, span) {
23
- return {
24
- ...span.language ? { language: span.language } : {},
25
- code: ir.text.slice(span.start, span.end).trimEnd()
26
- };
27
- }
28
22
  function rangesOverlap(left, right) {
29
23
  return left.start < right.end && right.start < left.end;
30
24
  }
@@ -103,18 +97,6 @@ function projectPlainText(ir, omitted = [], additionalInsertions = [], onSegment
103
97
  }
104
98
  return output.trim();
105
99
  }
106
- function formatOversizedTableAsBullets(table) {
107
- const markdownCell = (cell) => projectPlainText(cell).replace(/[\\|`*_[\]~<>&]/gu, "\\$&").replace(/\r?\n/gu, " ");
108
- const markdownRow = (cells) => `| ${cells.map(markdownCell).join(" | ")} |`;
109
- return projectPlainText(parseLineMarkdown([
110
- markdownRow(table.headerCells),
111
- `| ${table.headerCells.map(() => "---").join(" | ")} |`,
112
- ...table.rowCells.map(markdownRow)
113
- ].join("\n"), "bullets").ir);
114
- }
115
- function sameSpanStyle(left, right) {
116
- return left.weight === right.weight && left.style === right.style && left.decoration === right.decoration;
117
- }
118
100
  function renderTableCell(cell) {
119
101
  if (!cell.text.trim()) return {
120
102
  text: "-",
@@ -142,7 +124,7 @@ function renderTableCell(cell) {
142
124
  let hasMarkup = false;
143
125
  const appendSpan = (span) => {
144
126
  const previous = spans.at(-1);
145
- if (previous && sameSpanStyle(previous, span)) previous.text = `${previous.text ?? ""}${span.text ?? ""}`;
127
+ if (previous && previous.weight === span.weight && previous.style === span.style && previous.decoration === span.decoration) previous.text = `${previous.text ?? ""}${span.text ?? ""}`;
146
128
  else spans.push(span);
147
129
  };
148
130
  for (let index = 0; index < sortedBoundaries.length - 1; index += 1) {
@@ -244,26 +226,6 @@ function convertTableToFlexBubble(table) {
244
226
  ], { paddingAll: "lg" })
245
227
  };
246
228
  }
247
- function convertCodeBlockToFlexBubble(block) {
248
- const titleText = block.language ? `Code (${block.language})` : "Code";
249
- return {
250
- type: "bubble",
251
- body: cardBox("vertical", [cardText(titleText, {
252
- weight: "bold",
253
- size: "sm",
254
- color: "#666666"
255
- }), cardBox("vertical", [cardText(block.code, {
256
- size: "xs",
257
- color: "#333333",
258
- wrap: true
259
- })], {
260
- backgroundColor: "#F5F5F5",
261
- paddingAll: "md",
262
- cornerRadius: "md",
263
- margin: "sm"
264
- })], { paddingAll: "lg" })
265
- };
266
- }
267
229
  /** Parse once, route existing block surfaces to Flex, and project the remainder as plain text. */
268
230
  function processLineMessage(text) {
269
231
  const { ir, tables } = parseLineMarkdown(text);
@@ -272,9 +234,16 @@ function processLineMessage(text) {
272
234
  for (const table of tables) {
273
235
  const bubble = convertTableToFlexBubble(table);
274
236
  if (!bubble || !fitsLineFlexBubble(bubble)) {
237
+ const markdownCell = (cell) => projectPlainText(cell).replace(/[\\|`*_[\]~<>&]/gu, "\\$&").replace(/\r?\n/gu, " ");
238
+ const markdownRow = (cells) => `| ${cells.map(markdownCell).join(" | ")} |`;
239
+ const markdown = [
240
+ markdownRow(table.headerCells),
241
+ `| ${table.headerCells.map(() => "---").join(" | ")} |`,
242
+ ...table.rowCells.map(markdownRow)
243
+ ].join("\n");
275
244
  plainTextInsertions.push({
276
245
  position: table.placeholderOffset,
277
- text: `\n\n${formatOversizedTableAsBullets(table)}\n\n`
246
+ text: `\n\n${projectPlainText(parseLineMarkdown(markdown, "bullets").ir)}\n\n`
278
247
  });
279
248
  continue;
280
249
  }
@@ -285,7 +254,10 @@ function processLineMessage(text) {
285
254
  });
286
255
  }
287
256
  for (const span of codeSpans) {
288
- const block = toCodeBlock(ir, span);
257
+ const block = {
258
+ ...span.language ? { language: span.language } : {},
259
+ code: ir.text.slice(span.start, span.end).trimEnd()
260
+ };
289
261
  if (!block.code.trim()) continue;
290
262
  if (block.code.length > LINE_FLEX_CODE_CARD_MAX_CHARS) {
291
263
  plainTextInsertions.push({
@@ -294,9 +266,26 @@ function processLineMessage(text) {
294
266
  });
295
267
  continue;
296
268
  }
269
+ const titleText = block.language ? `Code (${block.language})` : "Code";
297
270
  plainTextInsertions.push({
298
271
  position: span.start,
299
- message: toFlexMessage("Code", convertCodeBlockToFlexBubble(block))
272
+ message: toFlexMessage("Code", {
273
+ type: "bubble",
274
+ body: cardBox("vertical", [cardText(titleText, {
275
+ weight: "bold",
276
+ size: "sm",
277
+ color: "#666666"
278
+ }), cardBox("vertical", [cardText(block.code, {
279
+ size: "xs",
280
+ color: "#333333",
281
+ wrap: true
282
+ })], {
283
+ backgroundColor: "#F5F5F5",
284
+ paddingAll: "md",
285
+ cornerRadius: "md",
286
+ margin: "sm"
287
+ })], { paddingAll: "lg" })
288
+ })
300
289
  });
301
290
  }
302
291
  const segments = [];
@@ -361,7 +350,6 @@ function truncateTemplateText(text, limit) {
361
350
  function resolveTemplateAltText(value, fallback) {
362
351
  return truncateTemplateText(value ?? fallback, TEMPLATE_ALT_TEXT_LIMIT);
363
352
  }
364
- /** Convert portable template payloads at the LINE provider boundary. */
365
353
  function buildTemplateMessageFromPayload(payload) {
366
354
  switch (payload.type) {
367
355
  case "confirm": return {
@@ -1 +1 @@
1
- {"version":3,"entries":[{"output":"api.js","source":"extensions/line/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/line/channel-plugin-api.ts"},{"output":"contract-api.js","source":"extensions/line/contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/line/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/line/index.ts"},{"output":"runtime-api.js","source":"extensions/line/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/line/secret-contract-api.ts"},{"output":"setup-api.js","source":"extensions/line/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/line/setup-entry.ts"}],"chunks":[{"output":".setup/accounts-Dm_NoU7R.mjs","sha256":"fbb3c981ee38eddff00d1f154e26a072649d43bb8648fad0e9318725f3c28b97","facadeSource":null,"sources":["extensions/line/src/accounts.ts"]},{"output":".setup/api-Bz8QPCGD.mjs","sha256":"7ad61a6b9f91f0610b86ce6ef3e304f84e75daf826c855fc84bcd22264051101","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/api-EJnP_1cJ.mjs","sha256":"819f65d462c012a7689f4b516734b5c76b20282be415e3d438ca709f3d8efd84","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/card-command-XYkg1XvG.mjs","sha256":"2a8c27498899c9ebc50a7958b422eb10da3f4877980dc5c43346efd6a97a66f0","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-ezTshIoC.mjs","sha256":"cceaca8a8d3a1b95fb4180b825ca8820f0e0088dbca4d71a785f24923ca61630","facadeSource":null,"sources":["extensions/line/src/bindings.ts","extensions/line/src/channel-shared.ts","extensions/line/src/channel.ts","extensions/line/src/config-adapter.ts","extensions/line/src/config-schema.ts","extensions/line/src/doctor.ts","extensions/line/src/flex-templates/media-control-cards.ts","extensions/line/src/gateway.ts","extensions/line/src/group-keys.ts","extensions/line/src/group-policy.ts","extensions/line/src/outbound.ts","extensions/line/src/question-postback.ts","extensions/line/src/quick-reply-fallback.ts","extensions/line/src/rich-message-schema.ts","extensions/line/src/rich-messages.ts","extensions/line/src/status.ts"]},{"output":".setup/channel.runtime-4w8EffJb.mjs","sha256":"70a51b2c757d30907ad7d69122f9baf24dbde07fdd89754b7b8950cce8e5adfc","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-BBEBldZu.mjs","sha256":"a574c685ca9513184eb5c09f6965bf6b496c4677b78cae565206221ad2eb1918","facadeSource":null,"sources":["extensions/line/src/auto-reply-delivery.ts","extensions/line/src/bot-handlers.ts","extensions/line/src/bot-message-context.ts","extensions/line/src/bot.ts","extensions/line/src/download.ts","extensions/line/src/group-history.ts","extensions/line/src/inbound-image-set.ts","extensions/line/src/mentions.ts","extensions/line/src/monitor-durable.ts","extensions/line/src/monitor.ts","extensions/line/src/signature.ts","extensions/line/src/webhook-node.ts","extensions/line/src/webhook-spool.ts","extensions/line/src/webhook-utils.ts"]},{"output":".setup/monitor.runtime-BWIgUqzC.mjs","sha256":"6cea535525c8c47a4be4b18f8e809a7a9c163d73b5178a124c3fe558aec75777","facadeSource":"extensions/line/src/monitor.runtime.ts","sources":[]},{"output":".setup/outbound.runtime-BSuF2lax.mjs","sha256":"6fea9ad32f374e0eecc97e6ca72d80b5530c24e97a885da52ef56d16956653a3","facadeSource":"extensions/line/src/outbound.runtime.ts","sources":[]},{"output":".setup/probe.runtime-a-fC57xd.mjs","sha256":"c05a3f5d17d6f7e68abc5f5015ad60ae5a254ac460be3d355d2e2635665df1c8","facadeSource":"extensions/line/src/probe.runtime.ts","sources":[]},{"output":".setup/runtime-C9ldw-V4.mjs","sha256":"ac1144683eff8dc37f71e7b26f00dd5f692e4c35b6ac4a14d11ba81603dc0414","facadeSource":null,"sources":["extensions/line/src/runtime.ts"]},{"output":".setup/send-B8TYfTO_.mjs","sha256":"4d48dfc005c90f50dd694a5f67a15fcc9520cf413cda455ed3a2ef63cc91dbb4","facadeSource":null,"sources":["extensions/line/src/outbound-message-log.ts","extensions/line/src/send-receipt.ts","extensions/line/src/send.ts"]},{"output":".setup/send-retry-gHsCgBlf.mjs","sha256":"55869880e8b8124dbb0334ac33482a540680228af3f8e07133768b1e230dcc90","facadeSource":null,"sources":["extensions/line/src/actions.ts","extensions/line/src/channel-access-token.ts","extensions/line/src/flex-templates/basic-cards.ts","extensions/line/src/flex-templates/common.ts","extensions/line/src/flex-templates/message.ts","extensions/line/src/flex-templates/schedule-cards.ts","extensions/line/src/media-url.ts","extensions/line/src/messaging-target.ts","extensions/line/src/outbound-media.ts","extensions/line/src/probe.ts","extensions/line/src/quote-tokens.ts","extensions/line/src/send-retry.ts"]},{"output":".setup/setup-surface-DvbBjHFi.mjs","sha256":"9d8e2bdd72c9e37a53b10784ca83e0257e8ce7da2f40f8fb279132babf872430","facadeSource":null,"sources":["extensions/line/src/account-helpers.ts","extensions/line/src/bot-access.ts","extensions/line/src/setup-core.ts","extensions/line/src/setup-surface.ts"]},{"output":".setup/template-messages-CdpQxqqb.mjs","sha256":"5013ce983e996590d5139e8af0a1d0ab67cb6e05f91e6222a4abdc951270da1a","facadeSource":null,"sources":["extensions/line/src/markdown-to-line.ts","extensions/line/src/template-messages.ts","packages/normalization-core/src/grapheme.ts","packages/normalization-core/src/utf16-slice.ts"]},{"output":".setup/webhook-spool-contract-COhQK5XQ.mjs","sha256":"c5980d6b5431bd7ffab5f3c3351ac3aa3c7d477f1aec4244e1f3d8b01d704743","facadeSource":null,"sources":["extensions/line/src/webhook-spool-contract.ts"]},{"output":"api.js","sha256":"a4dc3180e42747929caf43becba07519803071bb5daa72808f53f5d62e1ec88d","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"22762b9ef623f041c64267484707a3c566e6203c40af8c28f23cc7e33fcf8c0b","facadeSource":"extensions/line/channel-plugin-api.ts","sources":[]},{"output":"contract-api.js","sha256":"88215026ff1655afd96c12893f7d2efdbcfacd9b21c5029e1653de305c208773","facadeSource":"extensions/line/contract-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"b2a81a30a6916fb455359235cda708e562012af8b9bb052414ac7f132f888894","facadeSource":"extensions/line/doctor-contract-api.ts","sources":["extensions/line/doctor-contract-api.ts","extensions/line/src/webhook-spool-migration.ts"]},{"output":"index.js","sha256":"7bde3bfdb3c7961eff5ddfefbb82f35d1f1a84509b37f933022c760b579284c9","facadeSource":"extensions/line/index.ts","sources":["extensions/line/index.ts"]},{"output":"runtime-api.js","sha256":"e37fbce0148c490628ce5edc25492212c1a2d3a7c3f084353a5ee49972159886","facadeSource":"extensions/line/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"4824eb0315431709e20d35bb056c00eae3498212e57bda4dd9cdbb24f3db07c4","facadeSource":"extensions/line/secret-contract-api.ts","sources":["extensions/line/secret-contract-api.ts"]},{"output":"setup-api.js","sha256":"730732424bb98bbceaca6d6e982a03e799f30200b1413fc0bd82aef62865b256","facadeSource":"extensions/line/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"4c6552ee9c8ab50c637103f21110ca61218de9b8150d84666faf25ae08aed076","facadeSource":"extensions/line/setup-entry.ts","sources":["extensions/line/setup-entry.ts"]}],"unrenderedSources":["extensions/line/api.ts","extensions/line/channel-plugin-api.ts","extensions/line/contract-api.ts","extensions/line/runtime-api.ts","extensions/line/setup-api.ts","extensions/line/src/channel.runtime.ts","extensions/line/src/monitor.runtime.ts","extensions/line/src/outbound.runtime.ts","extensions/line/src/probe.runtime.ts","src/plugin-sdk/text-grapheme.ts"]}
1
+ {"version":3,"entries":[{"output":"api.js","source":"extensions/line/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/line/channel-plugin-api.ts"},{"output":"contract-api.js","source":"extensions/line/contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/line/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/line/index.ts"},{"output":"runtime-api.js","source":"extensions/line/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/line/secret-contract-api.ts"},{"output":"setup-api.js","source":"extensions/line/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/line/setup-entry.ts"}],"chunks":[{"output":".setup/accounts-Dm_NoU7R.mjs","sha256":"fbb3c981ee38eddff00d1f154e26a072649d43bb8648fad0e9318725f3c28b97","facadeSource":null,"sources":["extensions/line/src/accounts.ts"]},{"output":".setup/api-ByXjHPMe.mjs","sha256":"790a3b3f6fed83923ac432a9aea0059401b4dde42a180ec66a89f9378df3e092","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/api-DCMpIrda.mjs","sha256":"d8d0c8e2492ac0863a4c7a461bef4b3ec973125c81f781bb9ade3ae92ead49f6","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/card-command-utjlRvb-.mjs","sha256":"40b5197ae02101b7a84a08afe80151a4be79a194efad43d873ad13addeb7eb32","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-D9i_xlsJ.mjs","sha256":"04e4aba4bc7bfc975fb61220f33a48ef03d95a8367849d5bbf690624f800da85","facadeSource":null,"sources":["extensions/line/src/channel-shared.ts","extensions/line/src/channel.ts","extensions/line/src/config-adapter.ts","extensions/line/src/config-schema.ts","extensions/line/src/doctor.ts","extensions/line/src/gateway.ts","extensions/line/src/group-keys.ts","extensions/line/src/outbound.ts","extensions/line/src/question-postback.ts","extensions/line/src/quick-reply-fallback.ts","extensions/line/src/rich-message-schema.ts","extensions/line/src/rich-messages.ts","extensions/line/src/status.ts"]},{"output":".setup/channel.runtime-C-E2qsIu.mjs","sha256":"0e132847d9ce1be88b42570dfb95528003845a7c0c9b9bd9f798101126e1852a","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-BYGe2Y7S.mjs","sha256":"8adcb443999dd9a8f8dddd6011d3278b867b4f8624add7def84850beee61c118","facadeSource":"extensions/line/src/monitor.ts","sources":["extensions/line/src/auto-reply-delivery.ts","extensions/line/src/bot-handlers.ts","extensions/line/src/bot-message-context.ts","extensions/line/src/bot.ts","extensions/line/src/download.ts","extensions/line/src/group-history.ts","extensions/line/src/inbound-image-set.ts","extensions/line/src/mentions.ts","extensions/line/src/monitor.ts","extensions/line/src/signature.ts","extensions/line/src/webhook-node.ts","extensions/line/src/webhook-spool.ts"]},{"output":".setup/outbound.runtime-AQvUJvJV.mjs","sha256":"0a27e7fd7286143aca81f262da76b227c1b5969825db53840fb3e4f6b4c10790","facadeSource":"extensions/line/src/outbound.runtime.ts","sources":[]},{"output":".setup/runtime-C9ldw-V4.mjs","sha256":"ac1144683eff8dc37f71e7b26f00dd5f692e4c35b6ac4a14d11ba81603dc0414","facadeSource":null,"sources":["extensions/line/src/runtime.ts"]},{"output":".setup/send-H86JOXWw.mjs","sha256":"8b1aa80a03ec3549933b072e6568b021e35a3977a8f2cdd0fc890da5a590de19","facadeSource":null,"sources":["extensions/line/src/outbound-message-log.ts","extensions/line/src/send.ts"]},{"output":".setup/send-retry-D6J7bThI.mjs","sha256":"3d84dd3dd373f48163efed5de14d1d3e5d7135fe6a6b74125c932219917cb878","facadeSource":null,"sources":["extensions/line/src/actions.ts","extensions/line/src/channel-access-token.ts","extensions/line/src/flex-templates/basic-cards.ts","extensions/line/src/flex-templates/common.ts","extensions/line/src/flex-templates/message.ts","extensions/line/src/flex-templates/schedule-cards.ts","extensions/line/src/media-url.ts","extensions/line/src/messaging-target.ts","extensions/line/src/outbound-media.ts","extensions/line/src/probe.ts","extensions/line/src/quote-tokens.ts","extensions/line/src/send-retry.ts"]},{"output":".setup/setup-surface-DvbBjHFi.mjs","sha256":"9d8e2bdd72c9e37a53b10784ca83e0257e8ce7da2f40f8fb279132babf872430","facadeSource":null,"sources":["extensions/line/src/account-helpers.ts","extensions/line/src/bot-access.ts","extensions/line/src/setup-core.ts","extensions/line/src/setup-surface.ts"]},{"output":".setup/template-messages-KG1GwG0h.mjs","sha256":"422dd325a59c9d019ec0cd6d29be4ebc124fb3fc71d072d5079ddefc475f21c2","facadeSource":null,"sources":["extensions/line/src/markdown-to-line.ts","extensions/line/src/template-messages.ts","packages/normalization-core/src/grapheme.ts","packages/normalization-core/src/utf16-slice.ts"]},{"output":".setup/webhook-spool-contract-COhQK5XQ.mjs","sha256":"c5980d6b5431bd7ffab5f3c3351ac3aa3c7d477f1aec4244e1f3d8b01d704743","facadeSource":null,"sources":["extensions/line/src/webhook-spool-contract.ts"]},{"output":"api.js","sha256":"a9c47f7d5840d3e67eeeceb30bfe0b01b8d6b873743a064281e169cc28447025","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"a04ff1cf97f5e07bf955a1fb6b55e81c436e6084c0ead8264661609098c56a61","facadeSource":"extensions/line/channel-plugin-api.ts","sources":[]},{"output":"contract-api.js","sha256":"88215026ff1655afd96c12893f7d2efdbcfacd9b21c5029e1653de305c208773","facadeSource":"extensions/line/contract-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"b2a81a30a6916fb455359235cda708e562012af8b9bb052414ac7f132f888894","facadeSource":"extensions/line/doctor-contract-api.ts","sources":["extensions/line/doctor-contract-api.ts","extensions/line/src/webhook-spool-migration.ts"]},{"output":"index.js","sha256":"027e770f77429c8c2381255370eedbb418a769205554402b1f0b9c78509f5ae9","facadeSource":"extensions/line/index.ts","sources":["extensions/line/index.ts"]},{"output":"runtime-api.js","sha256":"e37fbce0148c490628ce5edc25492212c1a2d3a7c3f084353a5ee49972159886","facadeSource":"extensions/line/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"4824eb0315431709e20d35bb056c00eae3498212e57bda4dd9cdbb24f3db07c4","facadeSource":"extensions/line/secret-contract-api.ts","sources":["extensions/line/secret-contract-api.ts"]},{"output":"setup-api.js","sha256":"730732424bb98bbceaca6d6e982a03e799f30200b1413fc0bd82aef62865b256","facadeSource":"extensions/line/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"12d964681e6d7ca793c1d04d8a2496e1adf38518c9ba5b228c1644fbf05fdb6e","facadeSource":"extensions/line/setup-entry.ts","sources":["extensions/line/setup-entry.ts"]}],"unrenderedSources":["extensions/line/api.ts","extensions/line/channel-plugin-api.ts","extensions/line/contract-api.ts","extensions/line/runtime-api.ts","extensions/line/setup-api.ts","extensions/line/src/channel.runtime.ts","extensions/line/src/outbound.runtime.ts","src/plugin-sdk/text-grapheme.ts"]}
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as linePlugin } from "./.setup/channel-ezTshIoC.mjs";
2
- import { t as lineSetupPlugin } from "./.setup/api-Bz8QPCGD.mjs";
1
+ import { t as linePlugin } from "./.setup/channel-D9i_xlsJ.mjs";
2
+ import { t as lineSetupPlugin } from "./.setup/api-ByXjHPMe.mjs";
3
3
  export { linePlugin, lineSetupPlugin };