@openclaw/line 2026.7.2-beta.3 → 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.
- package/dist/api.js +4 -3
- package/dist/basic-cards-Rb-Ow7LN.js +307 -0
- package/dist/{card-command-DQ-epsgt.js → card-command-Ch0TwcDW.js} +2 -1
- package/dist/{channel-uT5RTtpi.js → channel-CNcv74n2.js} +11 -7
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.runtime-BBCZvRa_.js +4 -0
- package/dist/{flex-templates-K1lS9i8L.js → flex-templates-KiKaVYgi.js} +1 -318
- package/dist/index.js +1 -1
- package/dist/{markdown-to-line-D1vapcdP.js → markdown-to-line-DWIdzBfy.js} +213 -218
- package/dist/{monitor-Bk-lpoOZ.js → monitor-BinAXvIY.js} +276 -270
- package/dist/monitor.runtime-DKj4FHkA.js +2 -0
- package/dist/outbound.runtime-DRyoVa81.js +2 -0
- package/dist/quick-reply-fallback-D86FwAfr.js +56 -0
- package/dist/{reply-payload-transform-r9sa-TYT.js → reply-payload-transform-d57WYHFm.js} +3 -164
- package/dist/runtime-api.js +7 -5
- package/dist/send-receipt-CY2ey8XH.js +107 -0
- package/dist/setup-api.js +1 -1
- package/dist/{setup-surface-BEt4mazl.js → setup-surface-Bili5gWy.js} +62 -4
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupCreateRoute.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupFailedType.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupJobFailedType.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupJobStatus.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/audienceGroupStatus.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBoxBorderWidth.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBoxCornerRadius.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexBubble.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexIconSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexSpanSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexTextFontSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/numberOfMessagesResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/postbackAction.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/subscriptionPeriodDemographic.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/event.d.ts +2 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/event.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.d.ts +24 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEditedEvent.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.js +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupCreateRoute.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupFailedType.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupJobFailedType.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupJobStatus.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/audienceGroupStatus.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxBorderWidth.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxCornerRadius.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBubble.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexIconSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexSpanSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexTextFontSize.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/numberOfMessagesResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/postbackAction.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/subscriptionPeriodDemographic.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/event.d.ts +2 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/event.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.d.ts +24 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.js +13 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEditedEvent.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/models.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/models.js +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/lib/insight/model/getNumberOfFollowersResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/liff/model/liffScope.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupCreateRoute.ts +1 -4
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupFailedType.ts +1 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupJobFailedType.ts +1 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupJobStatus.ts +1 -4
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/audienceGroupStatus.ts +1 -6
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/botInfoResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBoxBorderWidth.ts +1 -6
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBoxCornerRadius.ts +1 -7
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexBubble.ts +1 -7
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexIconSize.ts +1 -10
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexSpanSize.ts +1 -10
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexTextFontSize.ts +1 -10
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getAggregationUnitNameListResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getFollowersResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getJoinedMembershipUsersResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/issueLinkTokenResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/numberOfMessagesResponse.ts +2 -5
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/postbackAction.ts +1 -4
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/subscriptionPeriodDemographic.ts +1 -5
- package/node_modules/@line/bot-sdk/lib/version.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/webhook/.openapi-generator/FILES +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/event.ts +2 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/messageEditedEvent.ts +32 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/models.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/stickerMessageContent.ts +1 -1
- package/node_modules/@line/bot-sdk/package.json +3 -3
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +16 -5
- package/node_modules/@types/node/package.json +3 -3
- package/npm-shrinkwrap.json +10 -10
- package/openclaw.plugin.json +0 -18
- package/package.json +71 -6
- package/dist/channel.runtime-BqNglqnr.js +0 -4
- package/dist/monitor.runtime-CHlqxGVL.js +0 -2
- package/dist/outbound.runtime-ByZ0Dsvu.js +0 -2
package/dist/api.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-
|
|
2
|
-
import { n as lineSetupAdapter, t as lineSetupWizard } from "./setup-surface-
|
|
1
|
+
import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-CNcv74n2.js";
|
|
2
|
+
import { n as lineSetupAdapter, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-Bili5gWy.js";
|
|
3
3
|
//#region extensions/line/src/channel.setup.ts
|
|
4
4
|
const lineSetupPlugin = {
|
|
5
5
|
id: "line",
|
|
6
6
|
...lineChannelPluginCommon,
|
|
7
7
|
setupWizard: lineSetupWizard,
|
|
8
|
-
setup: lineSetupAdapter
|
|
8
|
+
setup: lineSetupAdapter,
|
|
9
|
+
setupContract: lineSetupContract
|
|
9
10
|
};
|
|
10
11
|
//#endregion
|
|
11
12
|
export { linePlugin, lineSetupPlugin };
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { d as attachFooterText } from "./flex-templates-KiKaVYgi.js";
|
|
2
|
+
//#region extensions/line/src/flex-templates/basic-cards.ts
|
|
3
|
+
/**
|
|
4
|
+
* Create an info card with title, body, and optional footer
|
|
5
|
+
*
|
|
6
|
+
* Editorial design: Clean hierarchy with accent bar, generous spacing,
|
|
7
|
+
* and subtle background zones for visual separation.
|
|
8
|
+
*/
|
|
9
|
+
function createInfoCard(title, body, footer) {
|
|
10
|
+
const bubble = {
|
|
11
|
+
type: "bubble",
|
|
12
|
+
size: "mega",
|
|
13
|
+
body: {
|
|
14
|
+
type: "box",
|
|
15
|
+
layout: "vertical",
|
|
16
|
+
contents: [{
|
|
17
|
+
type: "box",
|
|
18
|
+
layout: "horizontal",
|
|
19
|
+
contents: [{
|
|
20
|
+
type: "box",
|
|
21
|
+
layout: "vertical",
|
|
22
|
+
contents: [],
|
|
23
|
+
width: "4px",
|
|
24
|
+
backgroundColor: "#06C755",
|
|
25
|
+
cornerRadius: "2px"
|
|
26
|
+
}, {
|
|
27
|
+
type: "text",
|
|
28
|
+
text: title,
|
|
29
|
+
weight: "bold",
|
|
30
|
+
size: "xl",
|
|
31
|
+
color: "#111111",
|
|
32
|
+
wrap: true,
|
|
33
|
+
flex: 1,
|
|
34
|
+
margin: "lg"
|
|
35
|
+
}]
|
|
36
|
+
}, {
|
|
37
|
+
type: "box",
|
|
38
|
+
layout: "vertical",
|
|
39
|
+
contents: [{
|
|
40
|
+
type: "text",
|
|
41
|
+
text: body,
|
|
42
|
+
size: "md",
|
|
43
|
+
color: "#444444",
|
|
44
|
+
wrap: true,
|
|
45
|
+
lineSpacing: "6px"
|
|
46
|
+
}],
|
|
47
|
+
margin: "xl",
|
|
48
|
+
paddingAll: "lg",
|
|
49
|
+
backgroundColor: "#F8F9FA",
|
|
50
|
+
cornerRadius: "lg"
|
|
51
|
+
}],
|
|
52
|
+
paddingAll: "xl",
|
|
53
|
+
backgroundColor: "#FFFFFF"
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
if (footer) attachFooterText(bubble, footer);
|
|
57
|
+
return bubble;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a list card with title and multiple items
|
|
61
|
+
*
|
|
62
|
+
* Editorial design: Numbered/bulleted list with clear visual hierarchy,
|
|
63
|
+
* accent dots for each item, and generous spacing.
|
|
64
|
+
*/
|
|
65
|
+
function createListCard(title, items) {
|
|
66
|
+
const itemContents = items.slice(0, 8).map((item, index) => {
|
|
67
|
+
const itemContentsLocal = [{
|
|
68
|
+
type: "text",
|
|
69
|
+
text: item.title,
|
|
70
|
+
size: "md",
|
|
71
|
+
weight: "bold",
|
|
72
|
+
color: "#1a1a1a",
|
|
73
|
+
wrap: true
|
|
74
|
+
}];
|
|
75
|
+
if (item.subtitle) itemContentsLocal.push({
|
|
76
|
+
type: "text",
|
|
77
|
+
text: item.subtitle,
|
|
78
|
+
size: "sm",
|
|
79
|
+
color: "#888888",
|
|
80
|
+
wrap: true,
|
|
81
|
+
margin: "xs"
|
|
82
|
+
});
|
|
83
|
+
const itemBox = {
|
|
84
|
+
type: "box",
|
|
85
|
+
layout: "horizontal",
|
|
86
|
+
contents: [{
|
|
87
|
+
type: "box",
|
|
88
|
+
layout: "vertical",
|
|
89
|
+
contents: [{
|
|
90
|
+
type: "box",
|
|
91
|
+
layout: "vertical",
|
|
92
|
+
contents: [],
|
|
93
|
+
width: "8px",
|
|
94
|
+
height: "8px",
|
|
95
|
+
backgroundColor: index === 0 ? "#06C755" : "#DDDDDD",
|
|
96
|
+
cornerRadius: "4px"
|
|
97
|
+
}],
|
|
98
|
+
width: "20px",
|
|
99
|
+
alignItems: "center",
|
|
100
|
+
paddingTop: "sm"
|
|
101
|
+
}, {
|
|
102
|
+
type: "box",
|
|
103
|
+
layout: "vertical",
|
|
104
|
+
contents: itemContentsLocal,
|
|
105
|
+
flex: 1
|
|
106
|
+
}],
|
|
107
|
+
margin: index > 0 ? "lg" : void 0
|
|
108
|
+
};
|
|
109
|
+
if (item.action) itemBox.action = item.action;
|
|
110
|
+
return itemBox;
|
|
111
|
+
});
|
|
112
|
+
return {
|
|
113
|
+
type: "bubble",
|
|
114
|
+
size: "mega",
|
|
115
|
+
body: {
|
|
116
|
+
type: "box",
|
|
117
|
+
layout: "vertical",
|
|
118
|
+
contents: [
|
|
119
|
+
{
|
|
120
|
+
type: "text",
|
|
121
|
+
text: title,
|
|
122
|
+
weight: "bold",
|
|
123
|
+
size: "xl",
|
|
124
|
+
color: "#111111",
|
|
125
|
+
wrap: true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "separator",
|
|
129
|
+
margin: "lg",
|
|
130
|
+
color: "#EEEEEE"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
type: "box",
|
|
134
|
+
layout: "vertical",
|
|
135
|
+
contents: itemContents,
|
|
136
|
+
margin: "lg"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
paddingAll: "xl",
|
|
140
|
+
backgroundColor: "#FFFFFF"
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Create an image card with image, title, and optional body text
|
|
146
|
+
*/
|
|
147
|
+
function createImageCard(imageUrl, title, body, options) {
|
|
148
|
+
const bubble = {
|
|
149
|
+
type: "bubble",
|
|
150
|
+
hero: {
|
|
151
|
+
type: "image",
|
|
152
|
+
url: imageUrl,
|
|
153
|
+
size: "full",
|
|
154
|
+
aspectRatio: options?.aspectRatio ?? "20:13",
|
|
155
|
+
aspectMode: options?.aspectMode ?? "cover",
|
|
156
|
+
action: options?.action
|
|
157
|
+
},
|
|
158
|
+
body: {
|
|
159
|
+
type: "box",
|
|
160
|
+
layout: "vertical",
|
|
161
|
+
contents: [{
|
|
162
|
+
type: "text",
|
|
163
|
+
text: title,
|
|
164
|
+
weight: "bold",
|
|
165
|
+
size: "xl",
|
|
166
|
+
wrap: true
|
|
167
|
+
}],
|
|
168
|
+
paddingAll: "lg"
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
if (body && bubble.body) bubble.body.contents.push({
|
|
172
|
+
type: "text",
|
|
173
|
+
text: body,
|
|
174
|
+
size: "md",
|
|
175
|
+
wrap: true,
|
|
176
|
+
margin: "md",
|
|
177
|
+
color: "#666666"
|
|
178
|
+
});
|
|
179
|
+
return bubble;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Create an action card with title, body, and action buttons
|
|
183
|
+
*/
|
|
184
|
+
function createActionCard(title, body, actions, options) {
|
|
185
|
+
const bubble = {
|
|
186
|
+
type: "bubble",
|
|
187
|
+
body: {
|
|
188
|
+
type: "box",
|
|
189
|
+
layout: "vertical",
|
|
190
|
+
contents: [{
|
|
191
|
+
type: "text",
|
|
192
|
+
text: title,
|
|
193
|
+
weight: "bold",
|
|
194
|
+
size: "xl",
|
|
195
|
+
wrap: true
|
|
196
|
+
}, {
|
|
197
|
+
type: "text",
|
|
198
|
+
text: body,
|
|
199
|
+
size: "md",
|
|
200
|
+
wrap: true,
|
|
201
|
+
margin: "md",
|
|
202
|
+
color: "#666666"
|
|
203
|
+
}],
|
|
204
|
+
paddingAll: "lg"
|
|
205
|
+
},
|
|
206
|
+
footer: {
|
|
207
|
+
type: "box",
|
|
208
|
+
layout: "vertical",
|
|
209
|
+
contents: actions.slice(0, 4).map((action, index) => ({
|
|
210
|
+
type: "button",
|
|
211
|
+
action: action.action,
|
|
212
|
+
style: index === 0 ? "primary" : "secondary",
|
|
213
|
+
margin: index > 0 ? "sm" : void 0
|
|
214
|
+
})),
|
|
215
|
+
paddingAll: "md"
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
if (options?.imageUrl) bubble.hero = {
|
|
219
|
+
type: "image",
|
|
220
|
+
url: options.imageUrl,
|
|
221
|
+
size: "full",
|
|
222
|
+
aspectRatio: options.aspectRatio ?? "20:13",
|
|
223
|
+
aspectMode: "cover"
|
|
224
|
+
};
|
|
225
|
+
return bubble;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Create a carousel container from multiple bubbles
|
|
229
|
+
* LINE allows max 12 bubbles in a carousel
|
|
230
|
+
*/
|
|
231
|
+
function createCarousel(bubbles) {
|
|
232
|
+
return {
|
|
233
|
+
type: "carousel",
|
|
234
|
+
contents: bubbles.slice(0, 12)
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Create a notification bubble (for alerts, status updates)
|
|
239
|
+
*
|
|
240
|
+
* Editorial design: Bold status indicator with accent color,
|
|
241
|
+
* clear typography, optional icon for context.
|
|
242
|
+
*/
|
|
243
|
+
function createNotificationBubble(text, options) {
|
|
244
|
+
const typeColors = {
|
|
245
|
+
info: {
|
|
246
|
+
accent: "#3B82F6",
|
|
247
|
+
bg: "#EFF6FF"
|
|
248
|
+
},
|
|
249
|
+
success: {
|
|
250
|
+
accent: "#06C755",
|
|
251
|
+
bg: "#F0FDF4"
|
|
252
|
+
},
|
|
253
|
+
warning: {
|
|
254
|
+
accent: "#F59E0B",
|
|
255
|
+
bg: "#FFFBEB"
|
|
256
|
+
},
|
|
257
|
+
error: {
|
|
258
|
+
accent: "#EF4444",
|
|
259
|
+
bg: "#FEF2F2"
|
|
260
|
+
}
|
|
261
|
+
}[options?.type ?? "info"];
|
|
262
|
+
const contents = [];
|
|
263
|
+
contents.push({
|
|
264
|
+
type: "box",
|
|
265
|
+
layout: "vertical",
|
|
266
|
+
contents: [],
|
|
267
|
+
width: "4px",
|
|
268
|
+
backgroundColor: typeColors.accent,
|
|
269
|
+
cornerRadius: "2px"
|
|
270
|
+
});
|
|
271
|
+
const textContents = [];
|
|
272
|
+
if (options?.title) textContents.push({
|
|
273
|
+
type: "text",
|
|
274
|
+
text: options.title,
|
|
275
|
+
size: "md",
|
|
276
|
+
weight: "bold",
|
|
277
|
+
color: "#111111",
|
|
278
|
+
wrap: true
|
|
279
|
+
});
|
|
280
|
+
textContents.push({
|
|
281
|
+
type: "text",
|
|
282
|
+
text,
|
|
283
|
+
size: options?.title ? "sm" : "md",
|
|
284
|
+
color: options?.title ? "#666666" : "#333333",
|
|
285
|
+
wrap: true,
|
|
286
|
+
margin: options?.title ? "sm" : void 0
|
|
287
|
+
});
|
|
288
|
+
contents.push({
|
|
289
|
+
type: "box",
|
|
290
|
+
layout: "vertical",
|
|
291
|
+
contents: textContents,
|
|
292
|
+
flex: 1,
|
|
293
|
+
paddingStart: "lg"
|
|
294
|
+
});
|
|
295
|
+
return {
|
|
296
|
+
type: "bubble",
|
|
297
|
+
body: {
|
|
298
|
+
type: "box",
|
|
299
|
+
layout: "horizontal",
|
|
300
|
+
contents,
|
|
301
|
+
paddingAll: "xl",
|
|
302
|
+
backgroundColor: typeColors.bg
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
export { createListCard as a, createInfoCard as i, createCarousel as n, createNotificationBubble as o, createImageCard as r, createActionCard as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as messageAction, o as postbackAction, s as uriAction, u as createReceiptCard } from "./flex-templates-KiKaVYgi.js";
|
|
2
|
+
import { a as createListCard, i as createInfoCard, r as createImageCard, t as createActionCard } from "./basic-cards-Rb-Ow7LN.js";
|
|
2
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
4
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
4
5
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { i as resolveLineAccount, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-BUBOoW5Q.js";
|
|
2
|
-
import { n as lineSetupAdapter, r as
|
|
3
|
-
import {
|
|
2
|
+
import { i as hasLineCredentials, n as lineSetupAdapter, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-Bili5gWy.js";
|
|
3
|
+
import { i as resolveExactLineGroupConfigKey, n as getLineRuntime, t as buildLineQuickReplyFallbackText } from "./quick-reply-fallback-D86FwAfr.js";
|
|
4
|
+
import { n as parseLineDirectives, r as LineChannelConfigSchema, t as hasLineDirectives } from "./reply-payload-transform-d57WYHFm.js";
|
|
5
|
+
import { i as resolveLineOutboundMedia, n as buildLineMediaMessage, r as hasLineSpecificMediaOptions, t as createLineSendReceipt } from "./send-receipt-CY2ey8XH.js";
|
|
4
6
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
5
7
|
import { buildDmGroupAccountAllowlistAdapter, createFlatAllowlistOverrideResolver } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
6
8
|
import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -116,7 +118,7 @@ const lineChannelPluginCommon = {
|
|
|
116
118
|
//#endregion
|
|
117
119
|
//#region extensions/line/src/gateway.ts
|
|
118
120
|
const loadLineProbeRuntime$1 = createLazyRuntimeModule(() => import("./probe.runtime-CRhVGqwl.js"));
|
|
119
|
-
const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-
|
|
121
|
+
const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-DKj4FHkA.js"));
|
|
120
122
|
const lineGatewayAdapter = {
|
|
121
123
|
startAccount: async (ctx) => {
|
|
122
124
|
const account = ctx.account;
|
|
@@ -231,7 +233,8 @@ function inferLineTargetChatType(target) {
|
|
|
231
233
|
}
|
|
232
234
|
//#endregion
|
|
233
235
|
//#region extensions/line/src/outbound.ts
|
|
234
|
-
const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-
|
|
236
|
+
const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-DRyoVa81.js"));
|
|
237
|
+
const LINE_FLEX_ALT_TEXT_LIMIT = 1500;
|
|
235
238
|
const lineOutboundAdapter = {
|
|
236
239
|
deliveryMode: "direct",
|
|
237
240
|
chunker: (text, limit) => getLineRuntime().channel.text.chunkMarkdownText(text, limit),
|
|
@@ -358,7 +361,7 @@ const lineOutboundAdapter = {
|
|
|
358
361
|
const quickReplyMessages = [];
|
|
359
362
|
if (lineData.flexMessage) quickReplyMessages.push({
|
|
360
363
|
type: "flex",
|
|
361
|
-
altText: truncateUtf16Safe(lineData.flexMessage.altText,
|
|
364
|
+
altText: truncateUtf16Safe(lineData.flexMessage.altText, LINE_FLEX_ALT_TEXT_LIMIT),
|
|
362
365
|
contents: lineData.flexMessage.contents
|
|
363
366
|
});
|
|
364
367
|
if (lineData.templateMessage) {
|
|
@@ -374,7 +377,7 @@ const lineOutboundAdapter = {
|
|
|
374
377
|
});
|
|
375
378
|
for (const flexMsg of processed.flexMessages) quickReplyMessages.push({
|
|
376
379
|
type: "flex",
|
|
377
|
-
altText: truncateUtf16Safe(flexMsg.altText,
|
|
380
|
+
altText: truncateUtf16Safe(flexMsg.altText, LINE_FLEX_ALT_TEXT_LIMIT),
|
|
378
381
|
contents: flexMsg.contents
|
|
379
382
|
});
|
|
380
383
|
for (const url of mediaUrls) {
|
|
@@ -528,7 +531,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
|
|
|
528
531
|
});
|
|
529
532
|
//#endregion
|
|
530
533
|
//#region extensions/line/src/channel.ts
|
|
531
|
-
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
534
|
+
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BBCZvRa_.js"));
|
|
532
535
|
const lineSecurityAdapter = createRestrictSendersChannelSecurity({
|
|
533
536
|
channelKey: "line",
|
|
534
537
|
resolveDmPolicy: (account) => account.config.dmPolicy,
|
|
@@ -610,6 +613,7 @@ const linePlugin = createChatChannelPlugin({
|
|
|
610
613
|
},
|
|
611
614
|
directory: createEmptyChannelDirectoryAdapter(),
|
|
612
615
|
setup: lineSetupAdapter,
|
|
616
|
+
setupContract: lineSetupContract,
|
|
613
617
|
status: lineStatusAdapter,
|
|
614
618
|
gateway: lineGatewayAdapter,
|
|
615
619
|
message: lineMessageAdapter,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as linePlugin } from "./channel-
|
|
1
|
+
import { t as linePlugin } from "./channel-CNcv74n2.js";
|
|
2
2
|
export { linePlugin };
|