@openclaw/line 2026.11.3 → 2026.11.5-beta.2
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/.setup/api-4BpGVN1-.mjs +3 -0
- package/dist/.setup/{api-WIupE7U1.mjs → api-BRnngy5R.mjs} +1 -1
- package/dist/.setup/{card-command-Dnkl21vg.mjs → card-command-2y-RSLPg.mjs} +26 -43
- package/dist/.setup/{channel-DIEVJ4PQ.mjs → channel-DJcpjKpx.mjs} +237 -332
- package/dist/.setup/channel.runtime-CdfKsNz4.mjs +4 -0
- package/dist/.setup/{monitor-JlOPDECF.mjs → monitor-BkuPFFxZ.mjs} +240 -329
- package/dist/.setup/{outbound.runtime-pciQUWJd.mjs → outbound.runtime-BPo_111h.mjs} +2 -2
- package/dist/.setup/{send-kjjjemFi.mjs → send-C1JZOFMA.mjs} +32 -81
- package/dist/.setup/{send-retry-Dzbkz5wG.mjs → send-retry-Bf2Xr6ZN.mjs} +175 -80
- package/dist/.setup/{template-messages-COcdie6C.mjs → template-messages-C1Kkr0-e.mjs} +32 -44
- package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +1 -0
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -2
- package/dist/contract-api.js +1 -2
- package/dist/index.js +1 -1
- package/dist/runtime-api.js +1 -2
- package/dist/setup-api.js +1 -2
- 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/package.json +2 -2
- package/node_modules/@line/bot-sdk/node_modules/@types/node/util.d.ts +7 -4
- package/node_modules/typebox/build/format/duration.d.mts +2 -2
- package/node_modules/typebox/build/format/duration.mjs +2 -2
- package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
- package/node_modules/typebox/build/format/idn_email.mjs +1 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
- package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
- package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
- package/node_modules/typebox/build/format/ipv4.mjs +2 -2
- package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
- package/node_modules/typebox/build/format/ipv6.mjs +1 -1
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/schema/build.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
- package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
- package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
- package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
- package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
- package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
- package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
- package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
- package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
- package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
- package/node_modules/typebox/build/system/memory/create.mjs +18 -13
- package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
- package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
- package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
- package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
- package/node_modules/typebox/build/system/memory/update.mjs +43 -16
- package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
- package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
- package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
- package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +1 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/package.json +6 -6
- package/dist/.setup/api-BMSLc5Fi.mjs +0 -3
- package/dist/.setup/channel.runtime-CDy9DQUW.mjs +0 -4
- package/dist/.setup/monitor.runtime-DsIFiXEZ.mjs +0 -2
- package/dist/.setup/probe.runtime-D2MUF_B_.mjs +0 -2
- package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as lineChannelPluginCommon } from "./channel-DIEVJ4PQ.mjs";
|
|
2
1
|
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
|
|
2
|
+
import { l as lineChannelPluginCommon } from "./channel-DJcpjKpx.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
|
|
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-Bf2Xr6ZN.mjs";
|
|
2
|
+
import { t as createFlexMessage } from "./send-C1JZOFMA.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
|
|
@@ -89,55 +89,25 @@ function parseActions(actionsStr) {
|
|
|
89
89
|
}
|
|
90
90
|
return results;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
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)
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|