@kodelyth/line 2026.5.39 → 2026.6.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/index.js ADDED
@@ -0,0 +1,45 @@
1
+ import { defineBundledChannelEntry } from "klaw/plugin-sdk/channel-entry-contract";
2
+ //#region extensions/line/index.ts
3
+ let lineCardCommandPromise = null;
4
+ async function loadLineCardCommand(api) {
5
+ lineCardCommandPromise ??= (async () => {
6
+ let registered = null;
7
+ const { registerLineCardCommand } = await import("./card-command-dQBX3fVN.js");
8
+ registerLineCardCommand({
9
+ ...api,
10
+ registerCommand(command) {
11
+ registered = command;
12
+ }
13
+ });
14
+ if (!registered) throw new Error("LINE card command registration unavailable");
15
+ return registered;
16
+ })();
17
+ return await lineCardCommandPromise;
18
+ }
19
+ var line_default = defineBundledChannelEntry({
20
+ id: "line",
21
+ name: "LINE",
22
+ description: "LINE Messaging API channel plugin",
23
+ importMetaUrl: import.meta.url,
24
+ plugin: {
25
+ specifier: "./channel-plugin-api.js",
26
+ exportName: "linePlugin"
27
+ },
28
+ runtime: {
29
+ specifier: "./runtime-api.js",
30
+ exportName: "setLineRuntime"
31
+ },
32
+ registerFull(api) {
33
+ api.registerCommand({
34
+ name: "card",
35
+ description: "Send a rich card message (LINE).",
36
+ acceptsArgs: true,
37
+ requireAuth: false,
38
+ async handler(ctx) {
39
+ return await (await loadLineCardCommand(api)).handler(ctx);
40
+ }
41
+ });
42
+ }
43
+ });
44
+ //#endregion
45
+ export { line_default as default };