@openclaw/line 2026.9.6 → 2026.9.8
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/assets/icon.png +0 -0
- package/dist/.setup/{accounts-BBEFMYbY.mjs → accounts-DOiM8-y3.mjs} +1 -4
- package/dist/.setup/api-4RgpQmHW.mjs +3 -0
- package/dist/.setup/{api-D_06cuHl.mjs → api-w4QdlCCB.mjs} +2 -2
- package/dist/.setup/{card-command-710u8FBH.mjs → card-command-DYf4gnmI.mjs} +25 -33
- package/dist/.setup/{channel-kc3VRglA.mjs → channel-DN6Za8Vm.mjs} +789 -26
- package/dist/.setup/channel.runtime-bd5vGeSo.mjs +4 -0
- package/dist/.setup/{monitor-morJPcPd.mjs → monitor-C01hAm3f.mjs} +262 -333
- package/dist/.setup/monitor.runtime-DwH2zK48.mjs +2 -0
- package/dist/.setup/outbound.runtime-D_Gs99Dm.mjs +3 -0
- package/dist/.setup/probe.runtime-Cj08-BZ1.mjs +2 -0
- package/dist/.setup/runtime-V7yh9OeC.mjs +8 -0
- package/dist/.setup/{send-BmsHY4WC.mjs → send-DOY1WTxv.mjs} +7 -26
- package/dist/.setup/{send-retry-DbfiHBPd.mjs → send-retry-DV6I0muq.mjs} +104 -208
- package/dist/.setup/{setup-surface-CcfKJKtr.mjs → setup-surface-CbfkmkIS.mjs} +15 -4
- package/dist/.setup/{markdown-to-line-CRfEHFs0.mjs → template-messages-CxCnYsWN.mjs} +168 -189
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/runtime-api.js +2 -260
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +1 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
- package/node_modules/typebox/build/compile/code.mjs +1 -2
- package/node_modules/typebox/build/compile/validator.mjs +5 -1
- package/node_modules/typebox/build/format/iri.mjs +16 -9
- package/node_modules/typebox/build/guard/emit.mjs +2 -2
- package/node_modules/typebox/build/guard/guard.d.mts +7 -5
- package/node_modules/typebox/build/guard/guard.mjs +14 -9
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.d.mts +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.mjs +35 -0
- package/node_modules/typebox/build/guard/{string.mjs → unicode/unicode_segment.mjs} +16 -19
- package/node_modules/typebox/build/schema/build.mjs +2 -3
- package/node_modules/typebox/build/schema/engine/_pathing.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/_pathing.mjs +11 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +13 -5
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/format.mjs +9 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/properties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/ref.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/schema.mjs +24 -24
- package/node_modules/typebox/build/schema/parse.mjs +3 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +1 -6
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +47 -64
- package/node_modules/typebox/build/system/settings/internal.d.mts +2 -0
- package/node_modules/typebox/build/system/settings/internal.mjs +20 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +11 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +14 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
- package/node_modules/typebox/build/type/extends/inference.mjs +15 -2
- package/node_modules/typebox/build/type/extends/tuple.d.mts +2 -1
- package/node_modules/typebox/build/type/extends/tuple.mjs +21 -1
- package/node_modules/typebox/build/value/parse/parse.mjs +10 -4
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +3 -1
- package/package.json +5 -5
- package/dist/.setup/account-helpers-BSUyZwLm.mjs +0 -12
- package/dist/.setup/api-RdEuQgW-.mjs +0 -3
- package/dist/.setup/channel.runtime-BtkeDELb.mjs +0 -4
- package/dist/.setup/monitor.runtime-BGhxYDKG.mjs +0 -2
- package/dist/.setup/outbound.runtime-QGvZy8Em.mjs +0 -3
- package/dist/.setup/probe.runtime-CMf8b-jB.mjs +0 -2
- package/dist/.setup/rich-messages-d8CmBVJj.mjs +0 -872
- /package/node_modules/typebox/build/guard/{string.d.mts → unicode/unicode_segment.d.mts} +0 -0
package/assets/icon.png
CHANGED
|
Binary file
|
|
@@ -97,8 +97,5 @@ function resolveDefaultLineAccountId(cfg) {
|
|
|
97
97
|
normalizeListedAccountId: normalizeAccountId
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
function normalizeAccountId$1(accountId) {
|
|
101
|
-
return normalizeAccountId(accountId);
|
|
102
|
-
}
|
|
103
100
|
//#endregion
|
|
104
|
-
export {
|
|
101
|
+
export { resolveDefaultLineAccountId as n, resolveLineAccount as r, listLineAccountIds as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-
|
|
1
|
+
import { l as lineChannelPluginCommon } from "./channel-DN6Za8Vm.mjs";
|
|
2
|
+
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CbfkmkIS.mjs";
|
|
3
3
|
//#region extensions/line/src/channel.setup.ts
|
|
4
4
|
const lineSetupPlugin = {
|
|
5
5
|
id: "line",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-
|
|
2
|
-
import { t as createFlexMessage } from "./send-
|
|
1
|
+
import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-DV6I0muq.mjs";
|
|
2
|
+
import { t as createFlexMessage } from "./send-DOY1WTxv.mjs";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
5
5
|
//#region extensions/line/src/card-command.ts
|
|
@@ -73,23 +73,18 @@ function parseActions(actionsStr) {
|
|
|
73
73
|
const [label, data] = splitCardPair(part);
|
|
74
74
|
if (!label) continue;
|
|
75
75
|
const actionData = data || label;
|
|
76
|
-
|
|
76
|
+
results.push(actionData.startsWith("http://") || actionData.startsWith("https://") ? {
|
|
77
77
|
type: "uri",
|
|
78
78
|
label,
|
|
79
79
|
uri: actionData
|
|
80
80
|
} : actionData.includes("=") ? {
|
|
81
81
|
type: "postback",
|
|
82
82
|
label,
|
|
83
|
-
data: actionData
|
|
84
|
-
displayText: label
|
|
83
|
+
data: actionData
|
|
85
84
|
} : {
|
|
86
85
|
type: "message",
|
|
87
86
|
label,
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
-
results.push({
|
|
91
|
-
label,
|
|
92
|
-
action
|
|
87
|
+
data: actionData
|
|
93
88
|
});
|
|
94
89
|
}
|
|
95
90
|
return results;
|
|
@@ -168,7 +163,23 @@ async function handleLineCardCommand(argsInput) {
|
|
|
168
163
|
const [title = "Actions", body = ""] = args;
|
|
169
164
|
const actions = parseActions(flags.actions);
|
|
170
165
|
if (actions.length === 0) return { text: "Error: Action card requires --actions \"Label1|data1,Label2|data2\"" };
|
|
171
|
-
const bubble = createActionCard(title, body, actions
|
|
166
|
+
const bubble = createActionCard(title, body, actions.map((action) => ({
|
|
167
|
+
label: action.label,
|
|
168
|
+
action: action.type === "uri" ? {
|
|
169
|
+
type: "uri",
|
|
170
|
+
label: action.label,
|
|
171
|
+
uri: action.uri
|
|
172
|
+
} : action.type === "postback" ? {
|
|
173
|
+
type: "postback",
|
|
174
|
+
label: action.label,
|
|
175
|
+
data: action.data,
|
|
176
|
+
displayText: action.label
|
|
177
|
+
} : {
|
|
178
|
+
type: "message",
|
|
179
|
+
label: action.label,
|
|
180
|
+
text: action.data
|
|
181
|
+
}
|
|
182
|
+
})), { imageUrl: flags.url || flags.image });
|
|
172
183
|
return buildLineFlexReply(body ? `${title}: ${body}` : title, bubble);
|
|
173
184
|
}
|
|
174
185
|
case "list": {
|
|
@@ -213,33 +224,14 @@ async function handleLineCardCommand(argsInput) {
|
|
|
213
224
|
}
|
|
214
225
|
case "buttons": {
|
|
215
226
|
const [title = "Menu", text = "Choose an option"] = args;
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
218
|
-
const templateActions = actionParts.map((a) => {
|
|
219
|
-
const action = a.action;
|
|
220
|
-
const label = action.label ?? a.label;
|
|
221
|
-
if (action.type === "uri") return {
|
|
222
|
-
type: "uri",
|
|
223
|
-
label,
|
|
224
|
-
uri: action.uri
|
|
225
|
-
};
|
|
226
|
-
if (action.type === "postback") return {
|
|
227
|
-
type: "postback",
|
|
228
|
-
label,
|
|
229
|
-
data: action.data
|
|
230
|
-
};
|
|
231
|
-
return {
|
|
232
|
-
type: "message",
|
|
233
|
-
label,
|
|
234
|
-
data: action.text
|
|
235
|
-
};
|
|
236
|
-
});
|
|
227
|
+
const actions = parseActions(flags.actions);
|
|
228
|
+
if (actions.length === 0) return { text: "Error: Buttons card requires --actions \"Label1|data1,Label2|data2\"" };
|
|
237
229
|
return buildLineReply({ templateMessage: {
|
|
238
230
|
type: "buttons",
|
|
239
231
|
title,
|
|
240
232
|
text,
|
|
241
233
|
thumbnailImageUrl: flags.url || flags.image,
|
|
242
|
-
actions
|
|
234
|
+
actions
|
|
243
235
|
} });
|
|
244
236
|
}
|
|
245
237
|
default: return { text: `Unknown card type: "${type}". Available types: info, image, action, list, receipt, confirm, buttons` };
|