@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.
Files changed (77) hide show
  1. package/assets/icon.png +0 -0
  2. package/dist/.setup/{accounts-BBEFMYbY.mjs → accounts-DOiM8-y3.mjs} +1 -4
  3. package/dist/.setup/api-4RgpQmHW.mjs +3 -0
  4. package/dist/.setup/{api-D_06cuHl.mjs → api-w4QdlCCB.mjs} +2 -2
  5. package/dist/.setup/{card-command-710u8FBH.mjs → card-command-DYf4gnmI.mjs} +25 -33
  6. package/dist/.setup/{channel-kc3VRglA.mjs → channel-DN6Za8Vm.mjs} +789 -26
  7. package/dist/.setup/channel.runtime-bd5vGeSo.mjs +4 -0
  8. package/dist/.setup/{monitor-morJPcPd.mjs → monitor-C01hAm3f.mjs} +262 -333
  9. package/dist/.setup/monitor.runtime-DwH2zK48.mjs +2 -0
  10. package/dist/.setup/outbound.runtime-D_Gs99Dm.mjs +3 -0
  11. package/dist/.setup/probe.runtime-Cj08-BZ1.mjs +2 -0
  12. package/dist/.setup/runtime-V7yh9OeC.mjs +8 -0
  13. package/dist/.setup/{send-BmsHY4WC.mjs → send-DOY1WTxv.mjs} +7 -26
  14. package/dist/.setup/{send-retry-DbfiHBPd.mjs → send-retry-DV6I0muq.mjs} +104 -208
  15. package/dist/.setup/{setup-surface-CcfKJKtr.mjs → setup-surface-CbfkmkIS.mjs} +15 -4
  16. package/dist/.setup/{markdown-to-line-CRfEHFs0.mjs → template-messages-CxCnYsWN.mjs} +168 -189
  17. package/dist/api.js +2 -2
  18. package/dist/channel-plugin-api.js +1 -1
  19. package/dist/contract-api.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/runtime-api.js +2 -260
  22. package/dist/setup-api.js +1 -1
  23. package/dist/setup-entry.js +1 -1
  24. package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +1 -1
  25. package/node_modules/@line/bot-sdk/node_modules/@types/node/child_process.d.ts +1 -1
  26. package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
  27. package/node_modules/typebox/build/compile/code.mjs +1 -2
  28. package/node_modules/typebox/build/compile/validator.mjs +5 -1
  29. package/node_modules/typebox/build/format/iri.mjs +16 -9
  30. package/node_modules/typebox/build/guard/emit.mjs +2 -2
  31. package/node_modules/typebox/build/guard/guard.d.mts +7 -5
  32. package/node_modules/typebox/build/guard/guard.mjs +14 -9
  33. package/node_modules/typebox/build/guard/index.mjs +6 -0
  34. package/node_modules/typebox/build/guard/unicode/unicode.d.mts +6 -0
  35. package/node_modules/typebox/build/guard/unicode/unicode.mjs +35 -0
  36. package/node_modules/typebox/build/guard/{string.mjs → unicode/unicode_segment.mjs} +16 -19
  37. package/node_modules/typebox/build/schema/build.mjs +2 -3
  38. package/node_modules/typebox/build/schema/engine/_pathing.d.mts +1 -0
  39. package/node_modules/typebox/build/schema/engine/_pathing.mjs +11 -0
  40. package/node_modules/typebox/build/schema/engine/_refine.mjs +13 -5
  41. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +2 -1
  42. package/node_modules/typebox/build/schema/engine/dependencies.mjs +2 -1
  43. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +2 -1
  44. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +1 -1
  45. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +2 -2
  46. package/node_modules/typebox/build/schema/engine/format.mjs +9 -2
  47. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +3 -2
  48. package/node_modules/typebox/build/schema/engine/properties.mjs +3 -2
  49. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -1
  50. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +1 -1
  51. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +2 -2
  52. package/node_modules/typebox/build/schema/engine/ref.d.mts +1 -1
  53. package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
  54. package/node_modules/typebox/build/schema/engine/schema.mjs +24 -24
  55. package/node_modules/typebox/build/schema/parse.mjs +3 -0
  56. package/node_modules/typebox/build/schema/pointer/pointer.d.mts +1 -6
  57. package/node_modules/typebox/build/schema/pointer/pointer.mjs +47 -64
  58. package/node_modules/typebox/build/system/settings/internal.d.mts +2 -0
  59. package/node_modules/typebox/build/system/settings/internal.mjs +20 -0
  60. package/node_modules/typebox/build/system/settings/settings.d.mts +11 -0
  61. package/node_modules/typebox/build/system/settings/settings.mjs +14 -0
  62. package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
  63. package/node_modules/typebox/build/type/extends/inference.mjs +15 -2
  64. package/node_modules/typebox/build/type/extends/tuple.d.mts +2 -1
  65. package/node_modules/typebox/build/type/extends/tuple.mjs +21 -1
  66. package/node_modules/typebox/build/value/parse/parse.mjs +10 -4
  67. package/node_modules/typebox/package.json +1 -1
  68. package/node_modules/typebox/readme.md +3 -1
  69. package/package.json +5 -5
  70. package/dist/.setup/account-helpers-BSUyZwLm.mjs +0 -12
  71. package/dist/.setup/api-RdEuQgW-.mjs +0 -3
  72. package/dist/.setup/channel.runtime-BtkeDELb.mjs +0 -4
  73. package/dist/.setup/monitor.runtime-BGhxYDKG.mjs +0 -2
  74. package/dist/.setup/outbound.runtime-QGvZy8Em.mjs +0 -3
  75. package/dist/.setup/probe.runtime-CMf8b-jB.mjs +0 -2
  76. package/dist/.setup/rich-messages-d8CmBVJj.mjs +0 -872
  77. /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 { resolveLineAccount as i, normalizeAccountId$1 as n, resolveDefaultLineAccountId as r, listLineAccountIds as t };
101
+ export { resolveDefaultLineAccountId as n, resolveLineAccount as r, listLineAccountIds as t };
@@ -0,0 +1,3 @@
1
+ import { t as linePlugin } from "./channel-DN6Za8Vm.mjs";
2
+ import { t as lineSetupPlugin } from "./api-w4QdlCCB.mjs";
3
+ export { linePlugin, lineSetupPlugin };
@@ -1,5 +1,5 @@
1
- import { n as lineChannelPluginCommon } from "./channel-kc3VRglA.mjs";
2
- import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CcfKJKtr.mjs";
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-DbfiHBPd.mjs";
2
- import { t as createFlexMessage } from "./send-BmsHY4WC.mjs";
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
- const action = actionData.startsWith("http://") || actionData.startsWith("https://") ? {
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
- text: actionData
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, { imageUrl: flags.url || flags.image });
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 actionParts = parseActions(flags.actions || "");
217
- if (actionParts.length === 0) return { text: "Error: Buttons card requires --actions \"Label1|data1,Label2|data2\"" };
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: templateActions
234
+ actions
243
235
  } });
244
236
  }
245
237
  default: return { text: `Unknown card type: "${type}". Available types: info, image, action, list, receipt, confirm, buttons` };