@openclaw/line 2026.7.2-beta.2 → 2026.7.2-beta.4

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 (109) hide show
  1. package/dist/{accounts-DJVOv1JI.js → accounts-BUBOoW5Q.js} +95 -33
  2. package/dist/api.js +4 -3
  3. package/dist/basic-cards-Rb-Ow7LN.js +307 -0
  4. package/dist/{card-command-DQ-epsgt.js → card-command-Ch0TwcDW.js} +2 -1
  5. package/dist/{channel-BHR-GoJ0.js → channel-CNcv74n2.js} +22 -10
  6. package/dist/channel-plugin-api.js +1 -1
  7. package/dist/channel.runtime-BBCZvRa_.js +4 -0
  8. package/dist/contract-api.js +1 -1
  9. package/dist/{flex-templates-K1lS9i8L.js → flex-templates-KiKaVYgi.js} +1 -318
  10. package/dist/index.js +1 -1
  11. package/dist/{markdown-to-line-XceqeKRP.js → markdown-to-line-DWIdzBfy.js} +224 -220
  12. package/dist/{monitor-Db2rZsSX.js → monitor-BinAXvIY.js} +454 -288
  13. package/dist/monitor.runtime-DKj4FHkA.js +2 -0
  14. package/dist/outbound.runtime-DRyoVa81.js +2 -0
  15. package/dist/quick-reply-fallback-D86FwAfr.js +56 -0
  16. package/dist/{reply-payload-transform-r9sa-TYT.js → reply-payload-transform-d57WYHFm.js} +3 -164
  17. package/dist/runtime-api.js +10 -24
  18. package/dist/send-receipt-CY2ey8XH.js +107 -0
  19. package/dist/setup-api.js +1 -1
  20. package/dist/{setup-surface-B7W6pwn3.js → setup-surface-Bili5gWy.js} +64 -5
  21. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupCreateRoute.d.ts.map +1 -1
  22. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupFailedType.d.ts.map +1 -1
  23. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupJobFailedType.d.ts.map +1 -1
  24. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupJobStatus.d.ts.map +1 -1
  25. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupStatus.d.ts.map +1 -1
  26. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBoxBorderWidth.d.ts.map +1 -1
  27. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBoxCornerRadius.d.ts.map +1 -1
  28. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBubble.d.ts.map +1 -1
  29. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexIconSize.d.ts.map +1 -1
  30. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexSpanSize.d.ts.map +1 -1
  31. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexTextFontSize.d.ts.map +1 -1
  32. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/numberOfMessagesResponse.d.ts.map +1 -1
  33. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/postbackAction.d.ts.map +1 -1
  34. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/subscriptionPeriodDemographic.d.ts.map +1 -1
  35. package/node_modules/@line/bot-sdk/dist/cjs/version.d.ts +1 -1
  36. package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
  37. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/event.d.ts +2 -1
  38. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/event.d.ts.map +1 -1
  39. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.d.ts +24 -0
  40. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.d.ts.map +1 -0
  41. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.js +14 -0
  42. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.js.map +1 -0
  43. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.d.ts +1 -0
  44. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.d.ts.map +1 -1
  45. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.js +1 -0
  46. package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.js.map +1 -1
  47. package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupCreateRoute.d.ts.map +1 -1
  48. package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupFailedType.d.ts.map +1 -1
  49. package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupJobFailedType.d.ts.map +1 -1
  50. package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupJobStatus.d.ts.map +1 -1
  51. package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupStatus.d.ts.map +1 -1
  52. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxBorderWidth.d.ts.map +1 -1
  53. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxCornerRadius.d.ts.map +1 -1
  54. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBubble.d.ts.map +1 -1
  55. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexIconSize.d.ts.map +1 -1
  56. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexSpanSize.d.ts.map +1 -1
  57. package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexTextFontSize.d.ts.map +1 -1
  58. package/node_modules/@line/bot-sdk/dist/messaging-api/model/numberOfMessagesResponse.d.ts.map +1 -1
  59. package/node_modules/@line/bot-sdk/dist/messaging-api/model/postbackAction.d.ts.map +1 -1
  60. package/node_modules/@line/bot-sdk/dist/messaging-api/model/subscriptionPeriodDemographic.d.ts.map +1 -1
  61. package/node_modules/@line/bot-sdk/dist/version.d.ts +1 -1
  62. package/node_modules/@line/bot-sdk/dist/version.js +1 -1
  63. package/node_modules/@line/bot-sdk/dist/webhook/model/event.d.ts +2 -1
  64. package/node_modules/@line/bot-sdk/dist/webhook/model/event.d.ts.map +1 -1
  65. package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.d.ts +24 -0
  66. package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.d.ts.map +1 -0
  67. package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.js +13 -0
  68. package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.js.map +1 -0
  69. package/node_modules/@line/bot-sdk/dist/webhook/model/models.d.ts +1 -0
  70. package/node_modules/@line/bot-sdk/dist/webhook/model/models.d.ts.map +1 -1
  71. package/node_modules/@line/bot-sdk/dist/webhook/model/models.js +1 -0
  72. package/node_modules/@line/bot-sdk/dist/webhook/model/models.js.map +1 -1
  73. package/node_modules/@line/bot-sdk/lib/insight/model/getNumberOfFollowersResponse.ts +1 -1
  74. package/node_modules/@line/bot-sdk/lib/liff/model/liffScope.ts +1 -1
  75. package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupCreateRoute.ts +1 -4
  76. package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupFailedType.ts +1 -2
  77. package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupJobFailedType.ts +1 -2
  78. package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupJobStatus.ts +1 -4
  79. package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupStatus.ts +1 -6
  80. package/node_modules/@line/bot-sdk/lib/messaging-api/model/botInfoResponse.ts +1 -1
  81. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBoxBorderWidth.ts +1 -6
  82. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBoxCornerRadius.ts +1 -7
  83. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBubble.ts +1 -7
  84. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexIconSize.ts +1 -10
  85. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexSpanSize.ts +1 -10
  86. package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexTextFontSize.ts +1 -10
  87. package/node_modules/@line/bot-sdk/lib/messaging-api/model/getAggregationUnitNameListResponse.ts +1 -1
  88. package/node_modules/@line/bot-sdk/lib/messaging-api/model/getFollowersResponse.ts +1 -1
  89. package/node_modules/@line/bot-sdk/lib/messaging-api/model/getJoinedMembershipUsersResponse.ts +1 -1
  90. package/node_modules/@line/bot-sdk/lib/messaging-api/model/issueLinkTokenResponse.ts +1 -1
  91. package/node_modules/@line/bot-sdk/lib/messaging-api/model/numberOfMessagesResponse.ts +2 -5
  92. package/node_modules/@line/bot-sdk/lib/messaging-api/model/postbackAction.ts +1 -4
  93. package/node_modules/@line/bot-sdk/lib/messaging-api/model/subscriptionPeriodDemographic.ts +1 -5
  94. package/node_modules/@line/bot-sdk/lib/version.ts +1 -1
  95. package/node_modules/@line/bot-sdk/lib/webhook/.openapi-generator/FILES +1 -0
  96. package/node_modules/@line/bot-sdk/lib/webhook/model/event.ts +2 -0
  97. package/node_modules/@line/bot-sdk/lib/webhook/model/messageEditedEvent.ts +32 -0
  98. package/node_modules/@line/bot-sdk/lib/webhook/model/models.ts +1 -0
  99. package/node_modules/@line/bot-sdk/lib/webhook/model/stickerMessageContent.ts +1 -1
  100. package/node_modules/@line/bot-sdk/package.json +3 -3
  101. package/node_modules/@types/node/README.md +1 -1
  102. package/node_modules/@types/node/fs/promises.d.ts +16 -5
  103. package/node_modules/@types/node/package.json +3 -3
  104. package/npm-shrinkwrap.json +10 -10
  105. package/openclaw.plugin.json +0 -18
  106. package/package.json +71 -6
  107. package/dist/channel.runtime-DFgZ_Xwn.js +0 -4
  108. package/dist/monitor.runtime-CZuQgsEE.js +0 -2
  109. package/dist/outbound.runtime-DnpU0Cms.js +0 -2
@@ -17,311 +17,6 @@ function attachFooterText(bubble, footer) {
17
17
  };
18
18
  }
19
19
  //#endregion
20
- //#region extensions/line/src/flex-templates/basic-cards.ts
21
- /**
22
- * Create an info card with title, body, and optional footer
23
- *
24
- * Editorial design: Clean hierarchy with accent bar, generous spacing,
25
- * and subtle background zones for visual separation.
26
- */
27
- function createInfoCard(title, body, footer) {
28
- const bubble = {
29
- type: "bubble",
30
- size: "mega",
31
- body: {
32
- type: "box",
33
- layout: "vertical",
34
- contents: [{
35
- type: "box",
36
- layout: "horizontal",
37
- contents: [{
38
- type: "box",
39
- layout: "vertical",
40
- contents: [],
41
- width: "4px",
42
- backgroundColor: "#06C755",
43
- cornerRadius: "2px"
44
- }, {
45
- type: "text",
46
- text: title,
47
- weight: "bold",
48
- size: "xl",
49
- color: "#111111",
50
- wrap: true,
51
- flex: 1,
52
- margin: "lg"
53
- }]
54
- }, {
55
- type: "box",
56
- layout: "vertical",
57
- contents: [{
58
- type: "text",
59
- text: body,
60
- size: "md",
61
- color: "#444444",
62
- wrap: true,
63
- lineSpacing: "6px"
64
- }],
65
- margin: "xl",
66
- paddingAll: "lg",
67
- backgroundColor: "#F8F9FA",
68
- cornerRadius: "lg"
69
- }],
70
- paddingAll: "xl",
71
- backgroundColor: "#FFFFFF"
72
- }
73
- };
74
- if (footer) attachFooterText(bubble, footer);
75
- return bubble;
76
- }
77
- /**
78
- * Create a list card with title and multiple items
79
- *
80
- * Editorial design: Numbered/bulleted list with clear visual hierarchy,
81
- * accent dots for each item, and generous spacing.
82
- */
83
- function createListCard(title, items) {
84
- const itemContents = items.slice(0, 8).map((item, index) => {
85
- const itemContentsLocal = [{
86
- type: "text",
87
- text: item.title,
88
- size: "md",
89
- weight: "bold",
90
- color: "#1a1a1a",
91
- wrap: true
92
- }];
93
- if (item.subtitle) itemContentsLocal.push({
94
- type: "text",
95
- text: item.subtitle,
96
- size: "sm",
97
- color: "#888888",
98
- wrap: true,
99
- margin: "xs"
100
- });
101
- const itemBox = {
102
- type: "box",
103
- layout: "horizontal",
104
- contents: [{
105
- type: "box",
106
- layout: "vertical",
107
- contents: [{
108
- type: "box",
109
- layout: "vertical",
110
- contents: [],
111
- width: "8px",
112
- height: "8px",
113
- backgroundColor: index === 0 ? "#06C755" : "#DDDDDD",
114
- cornerRadius: "4px"
115
- }],
116
- width: "20px",
117
- alignItems: "center",
118
- paddingTop: "sm"
119
- }, {
120
- type: "box",
121
- layout: "vertical",
122
- contents: itemContentsLocal,
123
- flex: 1
124
- }],
125
- margin: index > 0 ? "lg" : void 0
126
- };
127
- if (item.action) itemBox.action = item.action;
128
- return itemBox;
129
- });
130
- return {
131
- type: "bubble",
132
- size: "mega",
133
- body: {
134
- type: "box",
135
- layout: "vertical",
136
- contents: [
137
- {
138
- type: "text",
139
- text: title,
140
- weight: "bold",
141
- size: "xl",
142
- color: "#111111",
143
- wrap: true
144
- },
145
- {
146
- type: "separator",
147
- margin: "lg",
148
- color: "#EEEEEE"
149
- },
150
- {
151
- type: "box",
152
- layout: "vertical",
153
- contents: itemContents,
154
- margin: "lg"
155
- }
156
- ],
157
- paddingAll: "xl",
158
- backgroundColor: "#FFFFFF"
159
- }
160
- };
161
- }
162
- /**
163
- * Create an image card with image, title, and optional body text
164
- */
165
- function createImageCard(imageUrl, title, body, options) {
166
- const bubble = {
167
- type: "bubble",
168
- hero: {
169
- type: "image",
170
- url: imageUrl,
171
- size: "full",
172
- aspectRatio: options?.aspectRatio ?? "20:13",
173
- aspectMode: options?.aspectMode ?? "cover",
174
- action: options?.action
175
- },
176
- body: {
177
- type: "box",
178
- layout: "vertical",
179
- contents: [{
180
- type: "text",
181
- text: title,
182
- weight: "bold",
183
- size: "xl",
184
- wrap: true
185
- }],
186
- paddingAll: "lg"
187
- }
188
- };
189
- if (body && bubble.body) bubble.body.contents.push({
190
- type: "text",
191
- text: body,
192
- size: "md",
193
- wrap: true,
194
- margin: "md",
195
- color: "#666666"
196
- });
197
- return bubble;
198
- }
199
- /**
200
- * Create an action card with title, body, and action buttons
201
- */
202
- function createActionCard(title, body, actions, options) {
203
- const bubble = {
204
- type: "bubble",
205
- body: {
206
- type: "box",
207
- layout: "vertical",
208
- contents: [{
209
- type: "text",
210
- text: title,
211
- weight: "bold",
212
- size: "xl",
213
- wrap: true
214
- }, {
215
- type: "text",
216
- text: body,
217
- size: "md",
218
- wrap: true,
219
- margin: "md",
220
- color: "#666666"
221
- }],
222
- paddingAll: "lg"
223
- },
224
- footer: {
225
- type: "box",
226
- layout: "vertical",
227
- contents: actions.slice(0, 4).map((action, index) => ({
228
- type: "button",
229
- action: action.action,
230
- style: index === 0 ? "primary" : "secondary",
231
- margin: index > 0 ? "sm" : void 0
232
- })),
233
- paddingAll: "md"
234
- }
235
- };
236
- if (options?.imageUrl) bubble.hero = {
237
- type: "image",
238
- url: options.imageUrl,
239
- size: "full",
240
- aspectRatio: options.aspectRatio ?? "20:13",
241
- aspectMode: "cover"
242
- };
243
- return bubble;
244
- }
245
- /**
246
- * Create a carousel container from multiple bubbles
247
- * LINE allows max 12 bubbles in a carousel
248
- */
249
- function createCarousel(bubbles) {
250
- return {
251
- type: "carousel",
252
- contents: bubbles.slice(0, 12)
253
- };
254
- }
255
- /**
256
- * Create a notification bubble (for alerts, status updates)
257
- *
258
- * Editorial design: Bold status indicator with accent color,
259
- * clear typography, optional icon for context.
260
- */
261
- function createNotificationBubble(text, options) {
262
- const typeColors = {
263
- info: {
264
- accent: "#3B82F6",
265
- bg: "#EFF6FF"
266
- },
267
- success: {
268
- accent: "#06C755",
269
- bg: "#F0FDF4"
270
- },
271
- warning: {
272
- accent: "#F59E0B",
273
- bg: "#FFFBEB"
274
- },
275
- error: {
276
- accent: "#EF4444",
277
- bg: "#FEF2F2"
278
- }
279
- }[options?.type ?? "info"];
280
- const contents = [];
281
- contents.push({
282
- type: "box",
283
- layout: "vertical",
284
- contents: [],
285
- width: "4px",
286
- backgroundColor: typeColors.accent,
287
- cornerRadius: "2px"
288
- });
289
- const textContents = [];
290
- if (options?.title) textContents.push({
291
- type: "text",
292
- text: options.title,
293
- size: "md",
294
- weight: "bold",
295
- color: "#111111",
296
- wrap: true
297
- });
298
- textContents.push({
299
- type: "text",
300
- text,
301
- size: options?.title ? "sm" : "md",
302
- color: options?.title ? "#666666" : "#333333",
303
- wrap: true,
304
- margin: options?.title ? "sm" : void 0
305
- });
306
- contents.push({
307
- type: "box",
308
- layout: "vertical",
309
- contents: textContents,
310
- flex: 1,
311
- paddingStart: "lg"
312
- });
313
- return {
314
- type: "bubble",
315
- body: {
316
- type: "box",
317
- layout: "horizontal",
318
- contents,
319
- paddingAll: "xl",
320
- backgroundColor: typeColors.bg
321
- }
322
- };
323
- }
324
- //#endregion
325
20
  //#region extensions/line/src/flex-templates/schedule-cards.ts
326
21
  function buildTitleSubtitleHeader(params) {
327
22
  const { title, subtitle } = params;
@@ -1115,16 +810,4 @@ function createDeviceControlCard(params) {
1115
810
  return bubble;
1116
811
  }
1117
812
  //#endregion
1118
- //#region extensions/line/src/flex-templates/message.ts
1119
- /**
1120
- * Wrap a FlexContainer in a FlexMessage
1121
- */
1122
- function toFlexMessage(altText, contents) {
1123
- return {
1124
- type: "flex",
1125
- altText,
1126
- contents
1127
- };
1128
- }
1129
- //#endregion
1130
- export { createNotificationBubble as _, datetimePickerAction as a, uriAction as c, createReceiptCard as d, createActionCard as f, createListCard as g, createInfoCard as h, createMediaPlayerCard as i, createAgendaCard as l, createImageCard as m, createAppleTvRemoteCard as n, messageAction as o, createCarousel as p, createDeviceControlCard as r, postbackAction as s, toFlexMessage as t, createEventCard as u };
813
+ export { messageAction as a, createAgendaCard as c, attachFooterText as d, datetimePickerAction as i, createEventCard as l, createDeviceControlCard as n, postbackAction as o, createMediaPlayerCard as r, uriAction as s, createAppleTvRemoteCard as t, createReceiptCard as u };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  function createLineCardCommandLoader(api) {
5
5
  return createLazyRuntimeModule(async () => {
6
6
  let registered = null;
7
- const { registerLineCardCommand } = await import("./card-command-DQ-epsgt.js");
7
+ const { registerLineCardCommand } = await import("./card-command-Ch0TwcDW.js");
8
8
  registerLineCardCommand({
9
9
  ...api,
10
10
  registerCommand(command) {