@kodelyth/line 2026.5.39
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/api.js +7 -0
- package/channel-plugin-api.js +7 -0
- package/contract-api.js +7 -0
- package/index.js +7 -0
- package/klaw.plugin.json +342 -0
- package/package.json +59 -0
- package/runtime-api.js +7 -0
- package/secret-contract-api.js +7 -0
- package/setup-api.js +7 -0
- package/setup-entry.js +7 -0
package/api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/channel-plugin-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/channel-plugin-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/contract-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/contract-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/contract-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/index.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/line/index.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/klaw.plugin.json
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "line",
|
|
3
|
+
"activation": {
|
|
4
|
+
"onStartup": false
|
|
5
|
+
},
|
|
6
|
+
"channels": [
|
|
7
|
+
"line"
|
|
8
|
+
],
|
|
9
|
+
"channelEnvVars": {
|
|
10
|
+
"line": [
|
|
11
|
+
"LINE_CHANNEL_ACCESS_TOKEN",
|
|
12
|
+
"LINE_CHANNEL_SECRET"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"configSchema": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"properties": {}
|
|
19
|
+
},
|
|
20
|
+
"channelConfigs": {
|
|
21
|
+
"line": {
|
|
22
|
+
"schema": {
|
|
23
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"enabled": {
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"channelAccessToken": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"channelSecret": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"tokenFile": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"secretFile": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"name": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"allowFrom": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"anyOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "number"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"groupAllowFrom": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"anyOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "number"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"dmPolicy": {
|
|
71
|
+
"default": "pairing",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"open",
|
|
75
|
+
"allowlist",
|
|
76
|
+
"pairing",
|
|
77
|
+
"disabled"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"groupPolicy": {
|
|
81
|
+
"default": "allowlist",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": [
|
|
84
|
+
"open",
|
|
85
|
+
"allowlist",
|
|
86
|
+
"disabled"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"responsePrefix": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"mediaMaxMb": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
"webhookPath": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"threadBindings": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"enabled": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"idleHours": {
|
|
105
|
+
"type": "number"
|
|
106
|
+
},
|
|
107
|
+
"maxAgeHours": {
|
|
108
|
+
"type": "number"
|
|
109
|
+
},
|
|
110
|
+
"spawnSessions": {
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
"defaultSpawnContext": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"enum": [
|
|
116
|
+
"isolated",
|
|
117
|
+
"fork"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"spawnSubagentSessions": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"spawnAcpSessions": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
},
|
|
129
|
+
"accounts": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"propertyNames": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"additionalProperties": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"enabled": {
|
|
138
|
+
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"channelAccessToken": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"channelSecret": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"tokenFile": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"secretFile": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"name": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"allowFrom": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"anyOf": [
|
|
159
|
+
{
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "number"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"groupAllowFrom": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"items": {
|
|
171
|
+
"anyOf": [
|
|
172
|
+
{
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "number"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"dmPolicy": {
|
|
182
|
+
"default": "pairing",
|
|
183
|
+
"type": "string",
|
|
184
|
+
"enum": [
|
|
185
|
+
"open",
|
|
186
|
+
"allowlist",
|
|
187
|
+
"pairing",
|
|
188
|
+
"disabled"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"groupPolicy": {
|
|
192
|
+
"default": "allowlist",
|
|
193
|
+
"type": "string",
|
|
194
|
+
"enum": [
|
|
195
|
+
"open",
|
|
196
|
+
"allowlist",
|
|
197
|
+
"disabled"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"responsePrefix": {
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
"mediaMaxMb": {
|
|
204
|
+
"type": "number"
|
|
205
|
+
},
|
|
206
|
+
"webhookPath": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"threadBindings": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"enabled": {
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
},
|
|
215
|
+
"idleHours": {
|
|
216
|
+
"type": "number"
|
|
217
|
+
},
|
|
218
|
+
"maxAgeHours": {
|
|
219
|
+
"type": "number"
|
|
220
|
+
},
|
|
221
|
+
"spawnSessions": {
|
|
222
|
+
"type": "boolean"
|
|
223
|
+
},
|
|
224
|
+
"defaultSpawnContext": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"enum": [
|
|
227
|
+
"isolated",
|
|
228
|
+
"fork"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"spawnSubagentSessions": {
|
|
232
|
+
"type": "boolean"
|
|
233
|
+
},
|
|
234
|
+
"spawnAcpSessions": {
|
|
235
|
+
"type": "boolean"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"additionalProperties": false
|
|
239
|
+
},
|
|
240
|
+
"groups": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"propertyNames": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"additionalProperties": {
|
|
246
|
+
"type": "object",
|
|
247
|
+
"properties": {
|
|
248
|
+
"enabled": {
|
|
249
|
+
"type": "boolean"
|
|
250
|
+
},
|
|
251
|
+
"allowFrom": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"items": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "number"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"requireMention": {
|
|
265
|
+
"type": "boolean"
|
|
266
|
+
},
|
|
267
|
+
"systemPrompt": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"skills": {
|
|
271
|
+
"type": "array",
|
|
272
|
+
"items": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"additionalProperties": false
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"dmPolicy",
|
|
283
|
+
"groupPolicy"
|
|
284
|
+
],
|
|
285
|
+
"additionalProperties": false
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"defaultAccount": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"groups": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"propertyNames": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"additionalProperties": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"properties": {
|
|
299
|
+
"enabled": {
|
|
300
|
+
"type": "boolean"
|
|
301
|
+
},
|
|
302
|
+
"allowFrom": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"items": {
|
|
305
|
+
"anyOf": [
|
|
306
|
+
{
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "number"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"requireMention": {
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
"systemPrompt": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"skills": {
|
|
322
|
+
"type": "array",
|
|
323
|
+
"items": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"additionalProperties": false
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"dmPolicy",
|
|
334
|
+
"groupPolicy"
|
|
335
|
+
],
|
|
336
|
+
"additionalProperties": false
|
|
337
|
+
},
|
|
338
|
+
"label": "LINE",
|
|
339
|
+
"description": "LINE Messaging API webhook bot."
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kodelyth/line",
|
|
3
|
+
"version": "2026.5.39",
|
|
4
|
+
"description": "Klaw LINE channel plugin",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kodelyth/klaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@line/bot-sdk": "11.0.0",
|
|
12
|
+
"zod": "4.4.3"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@kodelyth/plugin-sdk": "1.0.1",
|
|
16
|
+
"@kodelyth/klaw": "2026.5.41"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@kodelyth/klaw": ">=2026.5.19"
|
|
20
|
+
},
|
|
21
|
+
"peerDependenciesMeta": {
|
|
22
|
+
"@kodelyth/klaw": {
|
|
23
|
+
"optional": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"klaw": {
|
|
27
|
+
"extensions": [
|
|
28
|
+
"./index.js"
|
|
29
|
+
],
|
|
30
|
+
"setupEntry": "./setup-entry.js",
|
|
31
|
+
"channel": {
|
|
32
|
+
"id": "line",
|
|
33
|
+
"label": "LINE",
|
|
34
|
+
"selectionLabel": "LINE (Messaging API)",
|
|
35
|
+
"detailLabel": "LINE Bot",
|
|
36
|
+
"docsPath": "/channels/line",
|
|
37
|
+
"docsLabel": "line",
|
|
38
|
+
"blurb": "LINE Messaging API webhook bot.",
|
|
39
|
+
"systemImage": "message",
|
|
40
|
+
"order": 75,
|
|
41
|
+
"quickstartAllowFrom": true
|
|
42
|
+
},
|
|
43
|
+
"install": {
|
|
44
|
+
"npmSpec": "@kodelyth/line",
|
|
45
|
+
"defaultChoice": "npm",
|
|
46
|
+
"minHostVersion": ">=2026.4.10"
|
|
47
|
+
},
|
|
48
|
+
"compat": {
|
|
49
|
+
"pluginApi": ">=2026.5.39"
|
|
50
|
+
},
|
|
51
|
+
"build": {
|
|
52
|
+
"klawVersion": "2026.5.39"
|
|
53
|
+
},
|
|
54
|
+
"release": {
|
|
55
|
+
"publishToClawHub": true,
|
|
56
|
+
"publishToNpm": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/runtime-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/runtime-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/runtime-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/secret-contract-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/secret-contract-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/setup-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/setup-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/line/setup-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/setup-entry.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/line/setup-entry.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/line/setup-entry.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|