@openclaw/line 2026.10.10-beta.5 → 2026.11.5-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.
Files changed (130) hide show
  1. package/dist/.setup/{accounts-DOiM8-y3.mjs → accounts-Dm_NoU7R.mjs} +1 -2
  2. package/dist/.setup/{api-PmHlEZ7r.mjs → api-ByXjHPMe.mjs} +3 -4
  3. package/dist/.setup/api-DCMpIrda.mjs +3 -0
  4. package/dist/.setup/{card-command-BMLk4YKh.mjs → card-command-utjlRvb-.mjs} +27 -45
  5. package/dist/.setup/{channel-j3EnT95N.mjs → channel-D9i_xlsJ.mjs} +252 -359
  6. package/dist/.setup/channel.runtime-C-E2qsIu.mjs +4 -0
  7. package/dist/.setup/{monitor-DQ-v9pI6.mjs → monitor-BYGe2Y7S.mjs} +256 -358
  8. package/dist/.setup/{outbound.runtime-BJL2119X.mjs → outbound.runtime-AQvUJvJV.mjs} +2 -2
  9. package/dist/.setup/{runtime-V7yh9OeC.mjs → runtime-C9ldw-V4.mjs} +1 -2
  10. package/dist/.setup/{send-g4gFsc9W.mjs → send-H86JOXWw.mjs} +40 -109
  11. package/dist/.setup/{send-retry-Dzbkz5wG.mjs → send-retry-D6J7bThI.mjs} +187 -105
  12. package/dist/.setup/{setup-surface-CYd8oqzt.mjs → setup-surface-DvbBjHFi.mjs} +5 -9
  13. package/dist/.setup/{template-messages-COcdie6C.mjs → template-messages-KG1GwG0h.mjs} +36 -52
  14. package/dist/.setup/{webhook-spool-contract-msjTl60Q.mjs → webhook-spool-contract-COhQK5XQ.mjs} +1 -2
  15. package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +1 -1
  16. package/dist/api.js +2 -2
  17. package/dist/channel-plugin-api.js +1 -1
  18. package/dist/contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +3 -5
  20. package/dist/index.js +2 -3
  21. package/dist/runtime-api.js +1 -1
  22. package/dist/secret-contract-api.js +1 -2
  23. package/dist/setup-api.js +1 -1
  24. package/dist/setup-entry.js +2 -3
  25. package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +1 -1
  26. package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
  27. package/node_modules/@line/bot-sdk/node_modules/@types/node/util.d.ts +7 -4
  28. package/node_modules/typebox/build/format/duration.d.mts +2 -2
  29. package/node_modules/typebox/build/format/duration.mjs +2 -2
  30. package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
  31. package/node_modules/typebox/build/format/idn_email.mjs +1 -0
  32. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
  33. package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
  34. package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
  35. package/node_modules/typebox/build/format/ipv4.mjs +2 -2
  36. package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
  37. package/node_modules/typebox/build/format/ipv6.mjs +1 -1
  38. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  39. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  40. package/node_modules/typebox/build/schema/build.mjs +1 -0
  41. package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
  42. package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
  43. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
  44. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
  45. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
  46. package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
  47. package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
  48. package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
  49. package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
  50. package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
  51. package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
  52. package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
  53. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
  54. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
  55. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  56. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  57. package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
  58. package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
  59. package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
  60. package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
  61. package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
  62. package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
  63. package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
  64. package/node_modules/typebox/build/system/memory/create.mjs +18 -13
  65. package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
  66. package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
  67. package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
  68. package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
  69. package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
  70. package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
  71. package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
  72. package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
  73. package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
  74. package/node_modules/typebox/build/system/memory/update.mjs +43 -16
  75. package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
  76. package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
  77. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
  78. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
  79. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
  80. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
  81. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
  82. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
  83. package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
  84. package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
  85. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
  86. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
  87. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
  88. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
  89. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
  90. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  91. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
  92. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
  93. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
  94. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
  95. package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
  96. package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
  97. package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
  98. package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
  99. package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
  100. package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
  101. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
  102. package/node_modules/typebox/package.json +1 -1
  103. package/node_modules/typebox/readme.md +1 -1
  104. package/node_modules/zod/package.json +1 -1
  105. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  106. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  107. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  108. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  109. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  110. package/node_modules/zod/src/v4/core/util.ts +13 -0
  111. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  112. package/node_modules/zod/v4/core/compile.cjs +8 -0
  113. package/node_modules/zod/v4/core/compile.js +8 -0
  114. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  115. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  116. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  117. package/node_modules/zod/v4/core/schemas.js +30 -0
  118. package/node_modules/zod/v4/core/util.cjs +15 -0
  119. package/node_modules/zod/v4/core/util.d.cts +2 -0
  120. package/node_modules/zod/v4/core/util.d.ts +2 -0
  121. package/node_modules/zod/v4/core/util.js +14 -0
  122. package/node_modules/zod/v4/core/versions.cjs +1 -1
  123. package/node_modules/zod/v4/core/versions.js +1 -1
  124. package/package.json +6 -6
  125. package/dist/.setup/api-Bis3gHmg.mjs +0 -3
  126. package/dist/.setup/channel.runtime-in_KhKi8.mjs +0 -4
  127. package/dist/.setup/monitor.runtime-DtJPzQya.mjs +0 -1
  128. package/dist/.setup/probe.runtime-DaGwztSg.mjs +0 -1
  129. package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
  130. package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
@@ -2,7 +2,7 @@ import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
2
2
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
3
3
  import { resolveAccountEntry, resolveListedDefaultAccountId } from "openclaw/plugin-sdk/account-resolution";
4
4
  import { tryReadSecretFileSync } from "openclaw/plugin-sdk/secret-file-runtime";
5
- //#region extensions/line/src/accounts.ts
5
+ // extensions/line/src/accounts.ts
6
6
  const { resolveAccountConfig: resolveMergedLineAccountConfig } = createAccountListHelpers("line", { omitKeys: ["defaultAccount"] });
7
7
  function resolveLineCredential(params) {
8
8
  const { accountId, baseConfig, accountConfig, credentialKey, fileKey, envKey } = params;
@@ -97,5 +97,4 @@ function resolveDefaultLineAccountId(cfg) {
97
97
  normalizeListedAccountId: normalizeAccountId
98
98
  });
99
99
  }
100
- //#endregion
101
100
  export { resolveDefaultLineAccountId as n, resolveLineAccount as r, listLineAccountIds as t };
@@ -1,11 +1,10 @@
1
- import { l as lineChannelPluginCommon } from "./channel-j3EnT95N.mjs";
2
- import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
3
- //#region extensions/line/src/channel.setup.ts
1
+ import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DvbBjHFi.mjs";
2
+ import { l as lineChannelPluginCommon } from "./channel-D9i_xlsJ.mjs";
3
+ // extensions/line/src/channel.setup.ts
4
4
  const lineSetupPlugin = {
5
5
  id: "line",
6
6
  ...lineChannelPluginCommon,
7
7
  setupWizard: lineSetupWizard,
8
8
  setupContract: lineSetupContract
9
9
  };
10
- //#endregion
11
10
  export { lineSetupPlugin as t };
@@ -0,0 +1,3 @@
1
+ import { t as linePlugin } from "./channel-D9i_xlsJ.mjs";
2
+ import { t as lineSetupPlugin } from "./api-ByXjHPMe.mjs";
3
+ export { linePlugin, lineSetupPlugin };
@@ -1,8 +1,8 @@
1
- import { d as createImageCard, f as createInfoCard, l as createReceiptCard, p as createListCard, u as createActionCard } from "./send-retry-Dzbkz5wG.mjs";
2
- import { t as createFlexMessage } from "./send-g4gFsc9W.mjs";
1
+ import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-D6J7bThI.mjs";
2
+ import { t as createFlexMessage } from "./send-H86JOXWw.mjs";
3
3
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
5
- //#region extensions/line/src/card-command.ts
5
+ // extensions/line/src/card-command.ts
6
6
  const CARD_USAGE = `Usage: /card <type> "title" "body" [options]
7
7
 
8
8
  Types:
@@ -89,55 +89,25 @@ function parseActions(actionsStr) {
89
89
  }
90
90
  return results;
91
91
  }
92
- function parseListItems(itemsStr) {
93
- return splitCardValue(itemsStr, ",").map((part) => {
94
- const [title, subtitle] = splitCardPair(part);
95
- return {
96
- title,
97
- subtitle
98
- };
99
- }).filter((item) => item.title);
100
- }
101
- function parseReceiptItems(itemsStr) {
102
- return splitCardValue(itemsStr, ",").map((part) => {
103
- const segments = splitCardValue(part, ":");
104
- const value = segments.length > 1 ? segments.pop() : void 0;
105
- return {
106
- name: segments.join(":").trim(),
107
- value: value?.trim() ?? ""
108
- };
109
- }).filter((item) => item.name);
110
- }
111
- /**
112
- * Parse quoted arguments from command string
113
- * Supports: /card type "arg1" "arg2" "arg3" --flag value
114
- */
115
- function parseCardArgs(argsStrInput) {
116
- let argsStr = argsStrInput;
117
- const result = {
118
- type: "",
119
- args: [],
120
- flags: {}
121
- };
92
+ async function handleLineCardCommand(argsInput) {
93
+ let argsStr = argsInput?.trim() ?? "";
94
+ if (!argsStr) return { text: CARD_USAGE };
95
+ let type = "";
96
+ const args = [];
97
+ const flags = {};
122
98
  const typeMatch = argsStr.match(/^(\w+)/);
123
99
  if (typeMatch) {
124
- result.type = normalizeLowercaseStringOrEmpty(typeMatch[1]);
100
+ type = normalizeLowercaseStringOrEmpty(typeMatch[1]);
125
101
  argsStr = argsStr.slice(typeMatch[0].length).trim();
126
102
  }
127
103
  const quotedRegex = /"([^"]*?)"/g;
128
104
  let match;
129
- while ((match = quotedRegex.exec(argsStr)) !== null) result.args.push(expectDefined(match[1], "quoted card argument capture") || void 0);
105
+ while ((match = quotedRegex.exec(argsStr)) !== null) args.push(expectDefined(match[1], "quoted card argument capture") || void 0);
130
106
  const flagRegex = /--(\w+)\s+(?:"([^"]*?)"|(\S+))/g;
131
107
  while ((match = flagRegex.exec(argsStr)) !== null) {
132
108
  const key = expectDefined(match[1], "card flag name capture");
133
- result.flags[key] = expectDefined(match[2] ?? match[3], "card flag value capture");
109
+ flags[key] = expectDefined(match[2] ?? match[3], "card flag value capture");
134
110
  }
135
- return result;
136
- }
137
- async function handleLineCardCommand(argsInput) {
138
- const argsStr = argsInput?.trim() ?? "";
139
- if (!argsStr) return { text: CARD_USAGE };
140
- const { type, args, flags } = parseCardArgs(argsStr);
141
111
  if (!type) return { text: CARD_USAGE };
142
112
  try {
143
113
  switch (type) {
@@ -175,14 +145,27 @@ async function handleLineCardCommand(argsInput) {
175
145
  }
176
146
  case "list": {
177
147
  const [title = "List", itemsStr = ""] = args;
178
- const items = parseListItems(itemsStr || flags.items || "");
148
+ const items = splitCardValue(itemsStr || flags.items || "", ",").map((part) => {
149
+ const [itemTitle, subtitle] = splitCardPair(part);
150
+ return {
151
+ title: itemTitle,
152
+ subtitle
153
+ };
154
+ }).filter((item) => item.title);
179
155
  if (items.length === 0) return { text: "Error: List card requires items. Usage: /card list \"Title\" \"Item1|Desc1,Item2|Desc2\"" };
180
156
  const bubble = createListCard(title, items);
181
157
  return buildLineFlexReply(`${title}: ${items.map((item) => item.title).join(", ")}`, bubble);
182
158
  }
183
159
  case "receipt": {
184
160
  const [title = "Receipt", itemsStr = ""] = args;
185
- const items = parseReceiptItems(itemsStr || flags.items || "");
161
+ const items = splitCardValue(itemsStr || flags.items || "", ",").map((part) => {
162
+ const segments = splitCardValue(part, ":");
163
+ const value = segments.length > 1 ? segments.pop() : void 0;
164
+ return {
165
+ name: segments.join(":").trim(),
166
+ value: value?.trim() ?? ""
167
+ };
168
+ }).filter((item) => item.name);
186
169
  const total = flags.total ? {
187
170
  label: "Total",
188
171
  value: flags.total
@@ -231,5 +214,4 @@ async function handleLineCardCommand(argsInput) {
231
214
  return { text: `Error creating card: ${String(err)}` };
232
215
  }
233
216
  }
234
- //#endregion
235
217
  export { handleLineCardCommand };