@openclaw/line 2026.11.10-beta.3 → 2026.12.1-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.
@@ -1,7 +1,10 @@
1
- import { E as applyLineQuoteToken, F as normalizeLineMessagingTarget, M as withoutLineQuoteTokens, N as buildLineMediaMessage, b as normalizeLineMessage, i as runLinePushWithRetries, n as findLineHttpError, s as resolveLineChannelAccessToken, y as messageAction } from "./send-retry-D6J7bThI.mjs";
1
+ import { S as normalizeLineMessagingTarget, a as runLinePushWithRetries, p as applyLineQuoteToken, r as findLineHttpError, s as resolveLineChannelAccessToken, x as buildLineMediaMessage, y as withoutLineQuoteTokens } from "./channel-CP5-K_ID.mjs";
2
2
  import { r as resolveLineAccount } from "./accounts-Dm_NoU7R.mjs";
3
+ import { _ as fitsLineFlexBubble, c as cardBox, l as cardText, p as normalizeLineMessage, r as createReceiptCard, v as toFlexMessage } from "./schedule-cards-D2zI0jRv.mjs";
4
+ import { i as createQuickReplyItems, n as createFlexMessage, r as createLocationMessage } from "./template-messages-CHhFDk8x.mjs";
3
5
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
4
6
  import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
7
+ import { markdownToIRWithMeta, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
5
8
  import { createStaleWhileRevalidateCache } from "openclaw/plugin-sdk/collection-runtime";
6
9
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
7
10
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -15,6 +18,299 @@ import { captureEffectAuthority } from "openclaw/plugin-sdk/fetch-runtime";
15
18
  import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
16
19
  import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
17
20
  import { createDedupeCache } from "openclaw/plugin-sdk/dedupe-runtime";
21
+ // extensions/line/src/markdown-to-line.ts
22
+ const LINE_MARKDOWN_OPTIONS = {
23
+ assistantTranscriptRoleHeaders: true,
24
+ autolink: false,
25
+ blockquotePrefix: "",
26
+ headingStyle: "none",
27
+ horizontalRuleText: "",
28
+ linkify: false,
29
+ preserveSourceBlockSpacing: true
30
+ };
31
+ const TRANSCRIPT_ROLE_PREFIX = "[assistant-authored transcript] ";
32
+ const LINE_FLEX_CODE_CARD_MAX_CHARS = 2e3;
33
+ function parseLineMarkdown(text, tableMode = "block") {
34
+ return markdownToIRWithMeta(text, {
35
+ ...LINE_MARKDOWN_OPTIONS,
36
+ tableMode
37
+ });
38
+ }
39
+ function rangesOverlap(left, right) {
40
+ return left.start < right.end && right.start < left.end;
41
+ }
42
+ /** A link shows its href after the label unless the label already is that address. */
43
+ function linkAddsHref(rawLabel, href) {
44
+ const label = rawLabel.trim();
45
+ return Boolean(href && label && label !== href && `mailto:${label}` !== href);
46
+ }
47
+ function projectPlainText(ir, omitted = [], additionalInsertions = [], onSegment) {
48
+ const insertions = [...additionalInsertions];
49
+ for (const link of ir.links) {
50
+ if (omitted.some((range) => rangesOverlap(range, link))) continue;
51
+ const href = link.href.trim();
52
+ if (linkAddsHref(ir.text.slice(link.start, link.end), href)) insertions.push({
53
+ position: link.end,
54
+ text: ` (${href})`
55
+ });
56
+ }
57
+ for (const annotation of ir.annotations ?? []) if (annotation.type === "assistant_transcript_role" && !omitted.some((range) => rangesOverlap(range, annotation))) insertions.push({
58
+ position: annotation.start,
59
+ text: TRANSCRIPT_ROLE_PREFIX
60
+ });
61
+ const inlineCodeSpans = ir.styles.filter((span) => span.style === "code" && !omitted.some((range) => rangesOverlap(range, span)));
62
+ for (const span of inlineCodeSpans) {
63
+ const code = ir.text.slice(span.start, span.end);
64
+ if (stripMarkdown(code, { assistantTranscriptRoleHeaders: true }).startsWith(TRANSCRIPT_ROLE_PREFIX)) insertions.push({
65
+ position: span.start,
66
+ text: TRANSCRIPT_ROLE_PREFIX
67
+ });
68
+ }
69
+ insertions.sort((left, right) => left.position - right.position);
70
+ const underlineTags = [...ir.text.matchAll(/<\/?u>/gi)].map((match) => ({
71
+ start: match.index,
72
+ end: match.index + match[0].length
73
+ })).filter((tag) => !inlineCodeSpans.some((span) => rangesOverlap(tag, span)) && !omitted.some((span) => rangesOverlap(tag, span)));
74
+ const removed = [...omitted, ...underlineTags].toSorted((left, right) => left.start - right.start);
75
+ let output = "";
76
+ let segmentStart = 0;
77
+ let cursor = 0;
78
+ let insertionIndex = 0;
79
+ const appendRange = (end) => {
80
+ while (insertionIndex < insertions.length) {
81
+ const insertion = insertions[insertionIndex];
82
+ if (!insertion || insertion.position > end) break;
83
+ if (insertion.position >= cursor) {
84
+ output += ir.text.slice(cursor, insertion.position);
85
+ if ("text" in insertion) output += insertion.text;
86
+ else if (onSegment) {
87
+ const precedingText = output.slice(segmentStart).trim();
88
+ if (precedingText) onSegment({
89
+ type: "text",
90
+ text: precedingText
91
+ });
92
+ onSegment({
93
+ type: "flex",
94
+ message: insertion.message
95
+ });
96
+ segmentStart = output.length;
97
+ }
98
+ cursor = insertion.position;
99
+ }
100
+ insertionIndex += 1;
101
+ }
102
+ output += ir.text.slice(cursor, end);
103
+ cursor = end;
104
+ };
105
+ for (const range of removed) {
106
+ appendRange(range.start);
107
+ cursor = Math.max(cursor, range.end);
108
+ while (insertionIndex < insertions.length && (insertions[insertionIndex]?.position ?? cursor) < cursor) insertionIndex += 1;
109
+ }
110
+ appendRange(ir.text.length);
111
+ if (onSegment) {
112
+ const trailingText = output.slice(segmentStart).trim();
113
+ if (trailingText) onSegment({
114
+ type: "text",
115
+ text: trailingText
116
+ });
117
+ }
118
+ return output.trim();
119
+ }
120
+ function renderTableCell(cell) {
121
+ if (!cell.text.trim()) return {
122
+ text: "-",
123
+ hasMarkup: false
124
+ };
125
+ const codeSpans = cell.styles.filter((span) => span.style === "code");
126
+ const tags = [...cell.text.matchAll(/<\/?u>/gi)].map((match) => ({
127
+ start: match.index,
128
+ end: match.index + match[0].length,
129
+ closing: match[0][1] === "/"
130
+ })).filter((tag) => !codeSpans.some((span) => rangesOverlap(tag, span)));
131
+ const boundaries = /* @__PURE__ */ new Set([0, cell.text.length]);
132
+ for (const style of cell.styles) {
133
+ boundaries.add(style.start);
134
+ boundaries.add(style.end);
135
+ }
136
+ for (const link of cell.links) boundaries.add(link.end);
137
+ for (const tag of tags) {
138
+ boundaries.add(tag.start);
139
+ boundaries.add(tag.end);
140
+ }
141
+ const sortedBoundaries = [...boundaries].toSorted((left, right) => left - right);
142
+ const spans = [];
143
+ let underlineDepth = 0;
144
+ let hasMarkup = false;
145
+ const appendSpan = (span) => {
146
+ const previous = spans.at(-1);
147
+ if (previous && previous.weight === span.weight && previous.style === span.style && previous.decoration === span.decoration) previous.text = `${previous.text ?? ""}${span.text ?? ""}`;
148
+ else spans.push(span);
149
+ };
150
+ for (let index = 0; index < sortedBoundaries.length - 1; index += 1) {
151
+ const start = sortedBoundaries[index];
152
+ const end = sortedBoundaries[index + 1];
153
+ if (start === void 0 || end === void 0) continue;
154
+ const tag = tags.find((candidate) => candidate.start === start);
155
+ if (tag) {
156
+ underlineDepth += tag.closing ? -1 : 1;
157
+ hasMarkup = true;
158
+ continue;
159
+ }
160
+ const text = cell.text.slice(start, end);
161
+ if (text) {
162
+ const active = new Set(cell.styles.filter((style) => style.start <= start && style.end >= end).map((style) => style.style));
163
+ const weight = active.has("bold") ? "bold" : void 0;
164
+ const style = active.has("italic") ? "italic" : void 0;
165
+ const decoration = active.has("strikethrough") ? "line-through" : underlineDepth > 0 ? "underline" : void 0;
166
+ hasMarkup ||= weight !== void 0 || style !== void 0 || decoration !== void 0;
167
+ appendSpan({
168
+ type: "span",
169
+ text,
170
+ weight,
171
+ style,
172
+ decoration
173
+ });
174
+ }
175
+ for (const link of cell.links.filter((candidate) => candidate.end === end)) {
176
+ const href = link.href.trim();
177
+ if (linkAddsHref(cell.text.slice(link.start, link.end), href)) {
178
+ appendSpan({
179
+ type: "span",
180
+ text: ` (${href})`
181
+ });
182
+ hasMarkup = true;
183
+ }
184
+ }
185
+ }
186
+ return {
187
+ text: spans.map((span) => span.text ?? "").join("").trim() || "-",
188
+ ...hasMarkup ? { contents: spans } : {},
189
+ hasMarkup
190
+ };
191
+ }
192
+ function convertTableToFlexBubble(table) {
193
+ const requiresPlainCells = table.rowCells.length > 10;
194
+ if (requiresPlainCells && (table.headers.length !== 2 || table.rowCells.length > 12)) return;
195
+ let hasInlineMarkup = false;
196
+ const renderCells = (cells) => {
197
+ const rendered = [];
198
+ for (const cell of cells) {
199
+ const prepared = renderTableCell(cell);
200
+ if (requiresPlainCells && prepared.hasMarkup) return;
201
+ hasInlineMarkup ||= prepared.hasMarkup;
202
+ rendered.push(prepared);
203
+ }
204
+ return rendered;
205
+ };
206
+ const headerCells = renderCells(table.headerCells);
207
+ if (!headerCells) return;
208
+ const rowCells = [];
209
+ for (const row of table.rowCells) {
210
+ const cells = renderCells(row);
211
+ if (!cells) return;
212
+ rowCells.push(cells);
213
+ }
214
+ if (table.headers.length === 2 && !hasInlineMarkup) return createReceiptCard({
215
+ title: headerCells.map((cell) => cell.text).join(" / "),
216
+ items: rowCells.map((row) => ({
217
+ name: row[0]?.text ?? "-",
218
+ value: row[1]?.text ?? "-"
219
+ }))
220
+ });
221
+ const renderRow = (cells, textStyle, rowStyle) => cardBox("horizontal", cells.map((cell) => cardText(cell.text, {
222
+ contents: cell.contents,
223
+ ...textStyle,
224
+ size: "sm",
225
+ flex: 1,
226
+ wrap: true
227
+ })), rowStyle);
228
+ const headerRow = renderRow(headerCells, {
229
+ weight: "bold",
230
+ color: "#333333"
231
+ }, { paddingBottom: "sm" });
232
+ const dataRows = rowCells.map((row, rowIndex) => renderRow(table.headers.map((_, colIndex) => row[colIndex] ?? {
233
+ text: "-",
234
+ hasMarkup: false
235
+ }), { color: "#666666" }, { margin: rowIndex === 0 ? "md" : "sm" }));
236
+ return {
237
+ type: "bubble",
238
+ body: cardBox("vertical", [
239
+ headerRow,
240
+ {
241
+ type: "separator",
242
+ margin: "sm"
243
+ },
244
+ ...dataRows
245
+ ], { paddingAll: "lg" })
246
+ };
247
+ }
248
+ /** Parse once, route existing block surfaces to Flex, and project the remainder as plain text. */
249
+ function processLineMessage(text) {
250
+ const { ir, tables } = parseLineMarkdown(text);
251
+ const codeSpans = ir.styles.filter((span) => span.style === "code_block");
252
+ const plainTextInsertions = [];
253
+ for (const table of tables) {
254
+ const bubble = convertTableToFlexBubble(table);
255
+ if (!bubble || !fitsLineFlexBubble(bubble)) {
256
+ const markdownCell = (cell) => projectPlainText(cell).replace(/[\\|`*_[\]~<>&]/gu, "\\$&").replace(/\r?\n/gu, " ");
257
+ const markdownRow = (cells) => `| ${cells.map(markdownCell).join(" | ")} |`;
258
+ const markdown = [
259
+ markdownRow(table.headerCells),
260
+ `| ${table.headerCells.map(() => "---").join(" | ")} |`,
261
+ ...table.rowCells.map(markdownRow)
262
+ ].join("\n");
263
+ plainTextInsertions.push({
264
+ position: table.placeholderOffset,
265
+ text: `\n\n${projectPlainText(parseLineMarkdown(markdown, "bullets").ir)}\n\n`
266
+ });
267
+ continue;
268
+ }
269
+ const message = toFlexMessage("Table", bubble);
270
+ plainTextInsertions.push({
271
+ position: table.placeholderOffset,
272
+ message
273
+ });
274
+ }
275
+ for (const span of codeSpans) {
276
+ const block = {
277
+ ...span.language ? { language: span.language } : {},
278
+ code: ir.text.slice(span.start, span.end).trimEnd()
279
+ };
280
+ if (!block.code.trim()) continue;
281
+ if (block.code.length > LINE_FLEX_CODE_CARD_MAX_CHARS) {
282
+ plainTextInsertions.push({
283
+ position: span.start,
284
+ text: `\n\n${block.code}\n\n`
285
+ });
286
+ continue;
287
+ }
288
+ const titleText = block.language ? `Code (${block.language})` : "Code";
289
+ plainTextInsertions.push({
290
+ position: span.start,
291
+ message: toFlexMessage("Code", {
292
+ type: "bubble",
293
+ body: cardBox("vertical", [cardText(titleText, {
294
+ weight: "bold",
295
+ size: "sm",
296
+ color: "#666666"
297
+ }), cardBox("vertical", [cardText(block.code, {
298
+ size: "xs",
299
+ color: "#333333",
300
+ wrap: true
301
+ })], {
302
+ backgroundColor: "#F5F5F5",
303
+ paddingAll: "md",
304
+ cornerRadius: "md",
305
+ margin: "sm"
306
+ })], { paddingAll: "lg" })
307
+ })
308
+ });
309
+ }
310
+ const segments = [];
311
+ projectPlainText(ir, codeSpans, plainTextInsertions, (segment) => segments.push(segment));
312
+ return segments;
313
+ }
18
314
  // extensions/line/src/outbound-message-log.ts
19
315
  const RECENT_SENT_LIMIT = 500;
20
316
  const recentSentByAccount = /* @__PURE__ */ new Map();
@@ -47,8 +343,6 @@ const groupNameCache = createStaleWhileRevalidateCache({
47
343
  maxEntries: PROFILE_CACHE_MAX_ENTRIES,
48
344
  ttlMs: PROFILE_CACHE_TTL_MS
49
345
  });
50
- const LINE_FLEX_ALT_TEXT_LIMIT = 1500;
51
- const LINE_LOCATION_LABEL_LIMIT = 100;
52
346
  const LINE_PROVIDER_RESPONSE_MAX_BYTES = 16384;
53
347
  function resolveLineProviderMessageIds(response, operation) {
54
348
  const sentMessages = Array.isArray(response?.sentMessages) ? response.sentMessages : [];
@@ -136,19 +430,6 @@ async function postLineProviderMessages(operation, token, request, retryKey, aut
136
430
  });
137
431
  }
138
432
  }
139
- function createLocationMessage(location) {
140
- if (!location.title.trim() || !location.address.trim()) return {
141
- type: "text",
142
- text: [...[location.title, location.address].map((label) => truncateUtf16Safe(label.trim(), LINE_LOCATION_LABEL_LIMIT)).filter(Boolean), `${location.latitude}, ${location.longitude}`].join("\n")
143
- };
144
- return {
145
- type: "location",
146
- title: truncateUtf16Safe(location.title, LINE_LOCATION_LABEL_LIMIT),
147
- address: truncateUtf16Safe(location.address, LINE_LOCATION_LABEL_LIMIT),
148
- latitude: location.latitude,
149
- longitude: location.longitude
150
- };
151
- }
152
433
  function recordLineOutboundActivity(accountId, delivery) {
153
434
  recordLineSentMessages(accountId, delivery.messageIds);
154
435
  try {
@@ -231,13 +512,6 @@ async function replyMessageLine(replyToken, messages, opts) {
231
512
  async function pushMessagesLine(to, messages, opts) {
232
513
  return pushLineMessages(to, messages, opts);
233
514
  }
234
- function createFlexMessage(altText, contents) {
235
- return {
236
- type: "flex",
237
- altText: truncateUtf16Safe(altText, LINE_FLEX_ALT_TEXT_LIMIT),
238
- contents
239
- };
240
- }
241
515
  async function pushLocationMessage(to, location, opts) {
242
516
  return pushLineMessages(to, [createLocationMessage(location)], opts);
243
517
  }
@@ -254,12 +528,6 @@ async function pushTextMessageWithQuickReplies(to, text, quickReplyLabels, opts)
254
528
  quickReply: createQuickReplyItems(quickReplyLabels)
255
529
  }], opts);
256
530
  }
257
- function createQuickReplyItems(labels) {
258
- return { items: labels.map((label) => label.trim()).filter(Boolean).slice(0, 13).map((label) => ({
259
- type: "action",
260
- action: messageAction(label, label)
261
- })) };
262
- }
263
531
  async function showLoadingAnimation(chatId, opts) {
264
532
  const { token } = resolveLineMessagingAccount(opts);
265
533
  const client = new messagingApi.MessagingApiClient({ channelAccessToken: token });
@@ -332,4 +600,4 @@ async function getLineGroupName(groupId, opts) {
332
600
  return;
333
601
  }
334
602
  }
335
- export { getUserDisplayName as a, pushLocationMessage as c, pushTemplateMessage as d, pushTextMessageWithQuickReplies as f, quotesLineBotMessage as h, getLineGroupName as i, pushMessageLine as l, showLoadingAnimation as m, createLocationMessage as n, getUserProfile as o, replyMessageLine as p, createQuickReplyItems as r, pushFlexMessage as s, createFlexMessage as t, pushMessagesLine as u };
603
+ export { pushLocationMessage as a, pushTemplateMessage as c, showLoadingAnimation as d, quotesLineBotMessage as f, pushFlexMessage as i, pushTextMessageWithQuickReplies as l, getUserDisplayName as n, pushMessageLine as o, processLineMessage as p, getUserProfile as r, pushMessagesLine as s, getLineGroupName as t, replyMessageLine as u };
@@ -0,0 +1,158 @@
1
+ import { f as messageAction, g as uriAction, m as postbackAction } from "./schedule-cards-D2zI0jRv.mjs";
2
+ import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
3
+ // packages/normalization-core/src/utf16-slice.ts
4
+ function isHighSurrogate(codeUnit) {
5
+ return codeUnit >= 55296 && codeUnit <= 56319;
6
+ }
7
+ function isLowSurrogate(codeUnit) {
8
+ return codeUnit >= 56320 && codeUnit <= 57343;
9
+ }
10
+ /** Moves a chunk boundary away from the middle of a UTF-16 surrogate pair. */
11
+ function avoidTrailingHighSurrogateBreak(text, start, end) {
12
+ if (end <= start || end >= text.length || !isHighSurrogate(text.charCodeAt(end - 1)) || !isLowSurrogate(text.charCodeAt(end))) return end;
13
+ const adjusted = end - 1;
14
+ return adjusted > start ? adjusted : end + 1;
15
+ }
16
+ // packages/normalization-core/src/grapheme.ts
17
+ let graphemeSegmenter;
18
+ function getGraphemeSegmenter() {
19
+ graphemeSegmenter ??= new Intl.Segmenter(void 0, { granularity: "grapheme" });
20
+ return graphemeSegmenter;
21
+ }
22
+ /**
23
+ * Chooses a whole-grapheme cut within the hard budget, honoring a usable preference.
24
+ * If no whole grapheme fits, allowPartial permits a surrogate-safe progress cut;
25
+ * a leading surrogate pair can exceed maxEnd by one code unit.
26
+ */
27
+ function findGraphemeChunkEnd(text, start, maxEnd, preferredEnd = maxEnd, allowPartial = true) {
28
+ const hardEnd = Math.min(maxEnd, text.length);
29
+ if (hardEnd <= start) return start;
30
+ const preferred = Number.isInteger(preferredEnd) && preferredEnd > start && preferredEnd <= hardEnd ? preferredEnd : hardEnd;
31
+ if (preferred === text.length) return preferred;
32
+ const before = text.charCodeAt(preferred - 1);
33
+ const after = text.charCodeAt(preferred);
34
+ if (Number.isInteger(preferred) && before <= 127 && after <= 127 && !(before === 13 && after === 10)) return preferred;
35
+ const segments = getGraphemeSegmenter().segment(text);
36
+ let end = segments.containing(preferred)?.index ?? preferred;
37
+ if (end <= start && preferred < hardEnd) end = hardEnd === text.length ? hardEnd : segments.containing(hardEnd)?.index ?? hardEnd;
38
+ return end > start ? end : allowPartial ? avoidTrailingHighSurrogateBreak(text, start, hardEnd) : start;
39
+ }
40
+ // extensions/line/src/template-messages.ts
41
+ const COMPACT_TEMPLATE_TEXT_LIMIT = 60;
42
+ const TEMPLATE_ALT_TEXT_LIMIT = 1500;
43
+ const LINE_FLEX_ALT_TEXT_LIMIT = 1500;
44
+ const LINE_LOCATION_LABEL_LIMIT = 100;
45
+ function buildTemplatePayloadAction(action) {
46
+ if (action.type === "uri" && action.uri) return uriAction(action.label, action.uri);
47
+ if (action.type === "postback" && action.data) return postbackAction(action.label, action.data, action.label);
48
+ return messageAction(action.label, action.data ?? action.label);
49
+ }
50
+ function buildInferredTemplateAction(label, data) {
51
+ return data.startsWith("http") ? uriAction(label, data) : data.includes("=") ? postbackAction(label, data, label) : messageAction(label, data);
52
+ }
53
+ function resolveTemplateTextLimit(title, thumbnailImageUrl, textOnlyLimit) {
54
+ return title !== void 0 || thumbnailImageUrl !== void 0 ? COMPACT_TEMPLATE_TEXT_LIMIT : textOnlyLimit;
55
+ }
56
+ function truncateTemplateText(text, limit) {
57
+ const end = findGraphemeChunkEnd(text, 0, limit, limit, false);
58
+ return end > 0 ? text.slice(0, end) : truncateUtf16Safe(text, limit);
59
+ }
60
+ function resolveTemplateAltText(value, fallback) {
61
+ return truncateTemplateText(value ?? fallback, TEMPLATE_ALT_TEXT_LIMIT);
62
+ }
63
+ function createLocationMessage(location) {
64
+ if (!location.title.trim() || !location.address.trim()) return {
65
+ type: "text",
66
+ text: [...[location.title, location.address].map((label) => truncateUtf16Safe(label.trim(), LINE_LOCATION_LABEL_LIMIT)).filter(Boolean), `${location.latitude}, ${location.longitude}`].join("\n")
67
+ };
68
+ return {
69
+ type: "location",
70
+ title: truncateUtf16Safe(location.title, LINE_LOCATION_LABEL_LIMIT),
71
+ address: truncateUtf16Safe(location.address, LINE_LOCATION_LABEL_LIMIT),
72
+ latitude: location.latitude,
73
+ longitude: location.longitude
74
+ };
75
+ }
76
+ function createFlexMessage(altText, contents) {
77
+ return {
78
+ type: "flex",
79
+ altText: truncateUtf16Safe(altText, LINE_FLEX_ALT_TEXT_LIMIT),
80
+ contents
81
+ };
82
+ }
83
+ function createQuickReplyItems(labels) {
84
+ return { items: labels.map((label) => label.trim()).filter(Boolean).slice(0, 13).map((label) => ({
85
+ type: "action",
86
+ action: messageAction(label, label)
87
+ })) };
88
+ }
89
+ function buildTemplateMessageFromPayload(payload) {
90
+ switch (payload.type) {
91
+ case "confirm": return {
92
+ type: "template",
93
+ altText: resolveTemplateAltText(payload.altText, payload.text),
94
+ template: {
95
+ type: "confirm",
96
+ text: truncateTemplateText(payload.text, 240),
97
+ actions: [buildInferredTemplateAction(payload.confirmLabel, payload.confirmData), buildInferredTemplateAction(payload.cancelLabel, payload.cancelData)]
98
+ }
99
+ };
100
+ case "buttons": {
101
+ const title = payload.title || void 0;
102
+ const textLimit = resolveTemplateTextLimit(title, payload.thumbnailImageUrl, 160);
103
+ return {
104
+ type: "template",
105
+ altText: resolveTemplateAltText(payload.altText, title ? `${title}: ${payload.text}` : payload.text),
106
+ template: {
107
+ type: "buttons",
108
+ ...title ? { title: truncateTemplateText(title, 40) } : {},
109
+ text: truncateTemplateText(payload.text, textLimit),
110
+ actions: payload.actions.slice(0, 4).map(buildTemplatePayloadAction),
111
+ thumbnailImageUrl: payload.thumbnailImageUrl,
112
+ imageAspectRatio: "rectangle",
113
+ imageSize: "cover",
114
+ imageBackgroundColor: void 0,
115
+ defaultAction: void 0
116
+ }
117
+ };
118
+ }
119
+ case "carousel": {
120
+ const visibleColumns = payload.columns.map((column) => {
121
+ const title = column.title || void 0;
122
+ const textLimit = resolveTemplateTextLimit(title, column.thumbnailImageUrl, 120);
123
+ return {
124
+ title: title === void 0 ? void 0 : truncateTemplateText(title, 40),
125
+ text: truncateTemplateText(column.text, textLimit),
126
+ actions: column.actions.map(buildTemplatePayloadAction).filter((action) => action.label !== void 0 && action.label !== "").slice(0, 3),
127
+ thumbnailImageUrl: column.thumbnailImageUrl,
128
+ imageBackgroundColor: void 0,
129
+ defaultAction: void 0
130
+ };
131
+ }).slice(0, 10);
132
+ const first = visibleColumns[0];
133
+ if (!first || visibleColumns.some((column) => column.text === "" || column.actions.length === 0 || column.title === void 0 !== (first.title === void 0) || column.actions.length !== first.actions.length)) {
134
+ const text = [...payload.altText ? [truncateTemplateText(payload.altText, TEMPLATE_ALT_TEXT_LIMIT)] : [], ...visibleColumns.map((column) => {
135
+ const body = column.title ? `${column.title}: ${column.text}` : column.text;
136
+ const labels = column.actions.map((action) => action.label).filter((label) => label !== void 0 && label !== "");
137
+ return labels.length > 0 ? `${body} (${labels.join(" / ")})` : body;
138
+ }).filter((line) => line !== "")].join("\n");
139
+ return text ? {
140
+ type: "text",
141
+ text
142
+ } : null;
143
+ }
144
+ return {
145
+ type: "template",
146
+ altText: resolveTemplateAltText(payload.altText, "View carousel"),
147
+ template: {
148
+ type: "carousel",
149
+ columns: visibleColumns,
150
+ imageAspectRatio: "rectangle",
151
+ imageSize: "cover"
152
+ }
153
+ };
154
+ }
155
+ default: return null;
156
+ }
157
+ }
158
+ export { createQuickReplyItems as i, createFlexMessage as n, createLocationMessage as r, buildTemplateMessageFromPayload as t };
@@ -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-C1rO_8GZ.mjs","sha256":"87f2d93f185c269a40a0346f51a65c5897aa19648531859cc96043086b22e5a1","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/api-CsvNTUeD.mjs","sha256":"15e3dd87f761bd270b54331cdcc83310ab1de1f0c04017849bf647f6b1b9f984","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"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-DKx73los.mjs","sha256":"a2237da773d2de8da4bb89dbae810dced4865296c9132773b3f54a79e7ece59c","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-4IuGUdfn.mjs","sha256":"d13d3cea2ea0e3c19029c72b95316e6cc712cd6aebdeda9933976a90e6ef6698","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-Bo2s83rD.mjs","sha256":"e401e83f142a8f09a63d0a884ed444c1ac8a40e13e0e40b8b3fb2843982d3693","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-BhQfx5xP.mjs","sha256":"3ed6d8b2eee9597cdc9d00939b635cb08bb2efdf0f57328f78c55565d11d90b4","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-BZzuYlsa.mjs","sha256":"a489bfa6c99538142c776504433f81503172bea75ab19c89d5010b28976f40ac","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":"74bf4625e662bcec7e5bd6699c30770be0b385b17cee5a6c9349273fb3d3d210","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"6dc64d6a18629e67e770d1d3c6848c1ca2a8b3b3380fedab25165620db9a5eb1","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":"a516c654e8d5273dd36fd75728a10b044021efb68815296dd0400b1958a49dbe","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":"b487e725843f211e6a50610e7777a6876d0cbacb67fc2a2f90f45c00c0d578df","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"]}
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-B2wI3umU.mjs","sha256":"58a9cf8a6000d9f0450ea071c928c7e9d4c7a55a80b59b2b7f1fed9c93ddb608","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/api-BEzEEC5x.mjs","sha256":"48f4aeae816e94819b4b65987cc11e8f2fbfcc26c1a2f50ad11d6129572b0ed5","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/card-command-CxXAu1W-.mjs","sha256":"4514c40aeef6f47d3f4ee470858a850a53a790cc7fd50b14c6e92638a65710f9","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-CP5-K_ID.mjs","sha256":"ebe1f8e9bed7f5a39a81532800b0b75cc8c3735833f84466f631aa98af2ff08d","facadeSource":null,"sources":["extensions/line/src/channel-access-token.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/gateway.ts","extensions/line/src/group-keys.ts","extensions/line/src/messaging-target.ts","extensions/line/src/outbound-media.ts","extensions/line/src/outbound.ts","extensions/line/src/probe.ts","extensions/line/src/question-postback.ts","extensions/line/src/quick-reply-fallback.ts","extensions/line/src/quote-tokens.ts","extensions/line/src/rich-message-schema.ts","extensions/line/src/rich-messages.ts","extensions/line/src/send-retry.ts","extensions/line/src/status.ts"]},{"output":".setup/channel.runtime-D6OWIDkw.mjs","sha256":"012979c3450c787c31dd777e36a12d2e65ec993bce327626253c3cbbd2260102","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-ClTD6chi.mjs","sha256":"7e34c1a469208387148be06772468b643cab30190211cd47d03a74cfe8a66dcd","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-WmCUvxNB.mjs","sha256":"28b20e630b14b393a60cd06c05658eb603f2c8a31a5685eeb7c0a424aa7e3047","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/schedule-cards-D2zI0jRv.mjs","sha256":"0d015e0923b7eb479ede357ac1497a415c646f480a89bca9a4ff4012f53a2436","facadeSource":null,"sources":["extensions/line/src/actions.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"]},{"output":".setup/send-BESSixO4.mjs","sha256":"42240a005aa9c4862eb5fadb727dc14fca3273d83de2184194a5f9ae654110bd","facadeSource":null,"sources":["extensions/line/src/markdown-to-line.ts","extensions/line/src/outbound-message-log.ts","extensions/line/src/send.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-CHhFDk8x.mjs","sha256":"3b06fd675a9cf33df47ee72208e8034f5ace89eb984a7feaf973848ab37bb32e","facadeSource":null,"sources":["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":"b40a5da3d44f2ee70a0c4f6e04140c592746aa3c0b2b7be2cd441c7979f83ddf","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"3a6ea76ddbc8215317490e0065d69a6cf02b3caae3e7acd7d736edca8f9bf170","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":"a516c654e8d5273dd36fd75728a10b044021efb68815296dd0400b1958a49dbe","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":"ba5c8e7bfc1d5fd153819bccbae9be27aa7d32e5b6ce0109b541835b44a296a6","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":"709fc5dba5d59b4e41aae8833b414984075f2479649c6996efd4f98106e57d2b","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-DKx73los.mjs";
2
- import { t as lineSetupPlugin } from "./.setup/api-CsvNTUeD.mjs";
1
+ import { t as linePlugin } from "./.setup/channel-CP5-K_ID.mjs";
2
+ import { t as lineSetupPlugin } from "./.setup/api-BEzEEC5x.mjs";
3
3
  export { linePlugin, lineSetupPlugin };
@@ -1 +1 @@
1
- export { t as linePlugin } from "./.setup/channel-DKx73los.mjs";
1
+ export { t as linePlugin } from "./.setup/channel-CP5-K_ID.mjs";
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ var line_default = defineBundledChannelEntry({
21
21
  acceptsArgs: true,
22
22
  requireAuth: false,
23
23
  async handler(ctx) {
24
- const { handleLineCardCommand } = await import("./.setup/card-command-utjlRvb-.mjs");
24
+ const { handleLineCardCommand } = await import("./.setup/card-command-CxXAu1W-.mjs");
25
25
  return await handleLineCardCommand(ctx.args);
26
26
  }
27
27
  });
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/api-C1rO_8GZ.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/api-B2wI3umU.mjs", import.meta.url).href),
8
8
  exportName: "lineSetupPlugin"
9
9
  }
10
10
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/line",
3
- "version": "2026.11.10-beta.3",
3
+ "version": "2026.12.1-beta.1",
4
4
  "description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "zod": "4.6.7"
14
14
  },
15
15
  "peerDependencies": {
16
- "openclaw": ">=2026.11.10-beta.3"
16
+ "openclaw": ">=2026.12.1-beta.1"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "openclaw": {
@@ -122,10 +122,10 @@
122
122
  "minHostVersion": ">=2026.4.10"
123
123
  },
124
124
  "compat": {
125
- "pluginApi": ">=2026.11.10-beta.3"
125
+ "pluginApi": ">=2026.12.1-beta.1"
126
126
  },
127
127
  "build": {
128
- "openclawVersion": "2026.11.10-beta.3"
128
+ "openclawVersion": "2026.12.1-beta.1"
129
129
  },
130
130
  "release": {
131
131
  "publishToClawHub": true,
@@ -1,3 +0,0 @@
1
- import { t as linePlugin } from "./channel-DKx73los.mjs";
2
- import { t as lineSetupPlugin } from "./api-CsvNTUeD.mjs";
3
- export { linePlugin, lineSetupPlugin };
@@ -1,4 +0,0 @@
1
- import { a as probeLineBot } from "./send-retry-D6J7bThI.mjs";
2
- import { l as pushMessageLine, m as showLoadingAnimation } from "./send-H86JOXWw.mjs";
3
- import { monitorLineProvider } from "./monitor-Bo2s83rD.mjs";
4
- export { monitorLineProvider, probeLineBot, pushMessageLine, showLoadingAnimation };
@@ -1,3 +0,0 @@
1
- import { c as pushLocationMessage, d as pushTemplateMessage, f as pushTextMessageWithQuickReplies, l as pushMessageLine, n as createLocationMessage, r as createQuickReplyItems, s as pushFlexMessage, t as createFlexMessage, u as pushMessagesLine } from "./send-H86JOXWw.mjs";
2
- import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-BZzuYlsa.mjs";
3
- export { buildTemplateMessageFromPayload, createFlexMessage, createLocationMessage, createQuickReplyItems, processLineMessage, pushFlexMessage, pushLocationMessage, pushMessageLine, pushMessagesLine, pushTemplateMessage, pushTextMessageWithQuickReplies };