@openclaw/line 2026.6.11-beta.2 → 2026.7.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.
- package/dist/{accounts-B-K3yrdP.js → accounts-DJVOv1JI.js} +4 -2
- package/dist/api.js +2 -2
- package/dist/{card-command-ML0lh9al.js → card-command-BaaE1SfK.js} +4 -18
- package/dist/{channel-DnBQa9Fv.js → channel-DwbohZPO.js} +8 -8
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.runtime-Cs_zbikE.js +4 -0
- package/dist/contract-api.js +1 -1
- package/dist/flex-templates-DPBtqQ8R.js +1127 -0
- package/dist/index.js +1 -1
- package/dist/{markdown-to-line-juqp-iiY.js → markdown-to-line-BBM3V8-S.js} +16 -80
- package/dist/{monitor-CULIHcvR.js → monitor-BEsUjORi.js} +7 -6
- package/dist/monitor.runtime-DX5NxULi.js +2 -0
- package/dist/{outbound.runtime-Cx3rgMAH.js → outbound.runtime-BKmUJlZB.js} +1 -1
- package/dist/probe.runtime-CRhVGqwl.js +2 -0
- package/dist/{reply-payload-transform-DZ8-37Ot.js → reply-payload-transform-BwF-zq0G.js} +2 -401
- package/dist/runtime-api.js +6 -7
- package/dist/setup-api.js +1 -1
- package/dist/{setup-surface-CvTRDCEq.js → setup-surface-Bc36YSS3.js} +1 -1
- package/npm-shrinkwrap.json +3 -3
- package/package.json +4 -4
- package/dist/basic-cards-B1eTkw-f.js +0 -307
- package/dist/channel.runtime-C-kKPoMb.js +0 -4
- package/dist/monitor.runtime-CGCy-kYV.js +0 -2
- package/dist/probe.runtime-DH_jgr7u.js +0 -2
- package/dist/schedule-cards-Bq74H30B.js +0 -359
- package/dist/{probe-CqTNoMdZ.js → probe-BslD77tJ.js} +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.7.1-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/line",
|
|
9
|
-
"version": "2026.
|
|
9
|
+
"version": "2026.7.1-beta.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@line/bot-sdk": "11.0.1",
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.
|
|
15
|
+
"openclaw": ">=2026.7.1-beta.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.7.1-beta.1",
|
|
4
4
|
"description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.
|
|
15
|
+
"openclaw": ">=2026.7.1-beta.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"minHostVersion": ">=2026.4.10"
|
|
43
43
|
},
|
|
44
44
|
"compat": {
|
|
45
|
-
"pluginApi": ">=2026.
|
|
45
|
+
"pluginApi": ">=2026.7.1-beta.1"
|
|
46
46
|
},
|
|
47
47
|
"build": {
|
|
48
|
-
"openclawVersion": "2026.
|
|
48
|
+
"openclawVersion": "2026.7.1-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"release": {
|
|
51
51
|
"publishToClawHub": true,
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import { i as attachFooterText } from "./schedule-cards-Bq74H30B.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 };
|