@openclaw/line 2026.7.2-beta.5 → 2026.7.2-beta.7
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/{accounts-CSH5sk8U.js → accounts-BqEVsDoB.js} +24 -88
- package/dist/api.js +2 -2
- package/dist/{card-command-BEMIm8D8.js → card-command-ty11OJNt.js} +1 -1
- package/dist/{channel-CTaWrzfl.js → channel-D4i_K4fQ.js} +6 -6
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.runtime-BdhK8Xw7.js +4 -0
- package/dist/contract-api.js +1 -1
- package/dist/{flex-templates-DVy_wog4.js → flex-templates-iKJsyCq-.js} +1 -3
- package/dist/index.js +1 -1
- package/dist/{markdown-to-line-Dn00k1bq.js → markdown-to-line-DMDQTMhx.js} +2 -2
- package/dist/{monitor-DzFU5UPV.js → monitor-DXEodYFJ.js} +23 -54
- package/dist/monitor.runtime-CZquR7jI.js +2 -0
- package/dist/{outbound.runtime-eHl7NNHu.js → outbound.runtime-BS0IhU_M.js} +1 -1
- package/dist/{reply-payload-transform-BRM2fRvK.js → reply-payload-transform-D5-dHB8b.js} +1 -1
- package/dist/runtime-api.js +7 -6
- package/dist/setup-api.js +1 -1
- package/dist/{setup-surface-BHQOSD8R.js → setup-surface-DRQ7n0En.js} +49 -67
- package/package.json +4 -4
- package/dist/channel.runtime-D4Paci2y.js +0 -4
- package/dist/monitor.runtime-B8xjVqev.js +0 -2
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/LICENSE +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/README.md +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/assert/strict.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/assert.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/async_hooks.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/buffer.buffer.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/buffer.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/child_process.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/cluster.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/compatibility/iterators.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/console.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/constants.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/crypto.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/dgram.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/diagnostics_channel.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/dns/promises.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/dns.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/domain.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/events.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/fs/promises.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/fs.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/globals.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/http.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/http2.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/https.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/index.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/inspector.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/inspector.generated.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/module.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/net.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/os.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/package.json +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/path.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/perf_hooks.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/process.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/punycode.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/querystring.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/readline/promises.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/readline.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/repl.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/sea.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/sqlite.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream/consumers.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream/promises.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream/web.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/string_decoder.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/test.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/timers/promises.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/timers.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/tls.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/trace_events.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.6/buffer.buffer.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.6/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.6/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.6/index.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.7/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.7/index.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/tty.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/url.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/util.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/v8.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/vm.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/wasi.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/abortcontroller.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/crypto.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/domexception.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/events.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/fetch.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/navigator.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/storage.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/streams.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/worker_threads.d.ts +0 -0
- /package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/zlib.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/LICENSE +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/api.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/balanced-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/cache-interceptor.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/client-stats.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/client.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/diagnostics-channel.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/env-http-proxy-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/errors.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/eventsource.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/fetch.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/formdata.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/h2c-client.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/handlers.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/header.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/index.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/interceptors.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-call-history.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-interceptor.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/package.json +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/patch.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/pool-stats.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/pool.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/proxy-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/readable.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/retry-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/retry-handler.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/round-robin-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/snapshot-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/util.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/utility.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/webidl.d.ts +0 -0
- /package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/websocket.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveLineAccount, n as normalizeAccountId, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-
|
|
1
|
+
import { i as resolveLineAccount, n as normalizeAccountId, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-BqEVsDoB.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID, createAllowFromSection, createPromptParsedAllowFromForAccount, createSetupInputPresenceValidator, createSetupTranslator, createStandardChannelSetupStatus, defineTokenCredential, formatDocsLink, parseSetupEntriesWithParser, patchScopedAccountConfig, setSetupChannelEnabled, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
@@ -61,26 +61,18 @@ const lineSetupAdapter = {
|
|
|
61
61
|
const typedInput = input;
|
|
62
62
|
const accessToken = typedInput.channelAccessToken ?? typedInput.token;
|
|
63
63
|
const normalizedAccountId = normalizeAccountId(accountId);
|
|
64
|
-
|
|
64
|
+
const useEnv = normalizedAccountId === DEFAULT_ACCOUNT_ID && Boolean(typedInput.useEnv);
|
|
65
|
+
return patchLineAccountConfig({
|
|
65
66
|
cfg,
|
|
66
67
|
accountId: normalizedAccountId,
|
|
67
68
|
enabled: true,
|
|
68
|
-
clearFields:
|
|
69
|
+
clearFields: useEnv ? [
|
|
69
70
|
"channelAccessToken",
|
|
70
71
|
"channelSecret",
|
|
71
72
|
"tokenFile",
|
|
72
73
|
"secretFile"
|
|
73
74
|
] : void 0,
|
|
74
|
-
patch:
|
|
75
|
-
...typedInput.tokenFile ? { tokenFile: typedInput.tokenFile } : accessToken ? { channelAccessToken: accessToken } : {},
|
|
76
|
-
...typedInput.secretFile ? { secretFile: typedInput.secretFile } : typedInput.channelSecret ? { channelSecret: typedInput.channelSecret } : {}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return patchLineAccountConfig({
|
|
80
|
-
cfg,
|
|
81
|
-
accountId: normalizedAccountId,
|
|
82
|
-
enabled: true,
|
|
83
|
-
patch: {
|
|
75
|
+
patch: useEnv ? {} : {
|
|
84
76
|
...typedInput.tokenFile ? { tokenFile: typedInput.tokenFile } : accessToken ? { channelAccessToken: accessToken } : {},
|
|
85
77
|
...typedInput.secretFile ? { secretFile: typedInput.secretFile } : typedInput.channelSecret ? { channelSecret: typedInput.channelSecret } : {}
|
|
86
78
|
}
|
|
@@ -195,6 +187,42 @@ const lineDmPolicy = createChannelDmPolicy({
|
|
|
195
187
|
})
|
|
196
188
|
})
|
|
197
189
|
});
|
|
190
|
+
function createLineTokenCredential(params) {
|
|
191
|
+
return defineTokenCredential({
|
|
192
|
+
inputKey: params.inputKey,
|
|
193
|
+
configKey: params.configKey,
|
|
194
|
+
configuredFields: [params.configKey, params.fileKey],
|
|
195
|
+
providerHint: params.providerHint,
|
|
196
|
+
credentialLabel: params.credentialLabel,
|
|
197
|
+
preferredEnvVar: params.envVar,
|
|
198
|
+
helpTitle: t("wizard.line.messagingApiTitle"),
|
|
199
|
+
helpLines: LINE_SETUP_HELP_LINES,
|
|
200
|
+
envPrompt: params.envPrompt,
|
|
201
|
+
keepPrompt: params.keepPrompt,
|
|
202
|
+
inputPrompt: params.inputPrompt,
|
|
203
|
+
allowEnv: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID,
|
|
204
|
+
resolveAccount: ({ cfg, accountId }) => resolveLineAccount({
|
|
205
|
+
cfg,
|
|
206
|
+
accountId
|
|
207
|
+
}),
|
|
208
|
+
accountConfigured: (account) => Boolean(normalizeOptionalString(account.channelAccessToken) && normalizeOptionalString(account.channelSecret)),
|
|
209
|
+
hasConfiguredValue: (account) => Boolean(normalizeOptionalString(account.config[params.configKey]) ?? normalizeOptionalString(account.config[params.fileKey])),
|
|
210
|
+
resolvedValue: (account) => normalizeOptionalString(account[params.configKey]),
|
|
211
|
+
envValue: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID ? normalizeOptionalString(process.env[params.envVar]) : void 0,
|
|
212
|
+
patchAccount: ({ cfg, accountId, patch, clearFields }) => patchLineAccountConfig({
|
|
213
|
+
cfg,
|
|
214
|
+
accountId,
|
|
215
|
+
enabled: true,
|
|
216
|
+
clearFields,
|
|
217
|
+
patch
|
|
218
|
+
}),
|
|
219
|
+
useEnv: { clearFields: [params.configKey, params.fileKey] },
|
|
220
|
+
set: {
|
|
221
|
+
clearFields: [params.fileKey],
|
|
222
|
+
value: "resolved"
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
198
226
|
const lineSetupWizard = {
|
|
199
227
|
channel,
|
|
200
228
|
status: createStandardChannelSetupStatus({
|
|
@@ -214,72 +242,26 @@ const lineSetupWizard = {
|
|
|
214
242
|
lines: LINE_SETUP_HELP_LINES,
|
|
215
243
|
shouldShow: ({ cfg, accountId }) => !isLineConfigured(cfg, accountId ?? resolveDefaultLineAccountId(cfg))
|
|
216
244
|
},
|
|
217
|
-
credentials: [
|
|
245
|
+
credentials: [createLineTokenCredential({
|
|
218
246
|
inputKey: "token",
|
|
219
247
|
configKey: "channelAccessToken",
|
|
220
|
-
|
|
248
|
+
fileKey: "tokenFile",
|
|
221
249
|
providerHint: channel,
|
|
222
250
|
credentialLabel: t("wizard.line.channelAccessToken"),
|
|
223
|
-
|
|
224
|
-
helpTitle: t("wizard.line.messagingApiTitle"),
|
|
225
|
-
helpLines: LINE_SETUP_HELP_LINES,
|
|
251
|
+
envVar: "LINE_CHANNEL_ACCESS_TOKEN",
|
|
226
252
|
envPrompt: t("wizard.line.tokenEnvPrompt"),
|
|
227
253
|
keepPrompt: t("wizard.line.tokenKeepPrompt"),
|
|
228
|
-
inputPrompt: t("wizard.line.tokenInputPrompt")
|
|
229
|
-
|
|
230
|
-
resolveAccount: ({ cfg, accountId }) => resolveLineAccount({
|
|
231
|
-
cfg,
|
|
232
|
-
accountId
|
|
233
|
-
}),
|
|
234
|
-
accountConfigured: (account) => Boolean(normalizeOptionalString(account.channelAccessToken) && normalizeOptionalString(account.channelSecret)),
|
|
235
|
-
hasConfiguredValue: (account) => Boolean(normalizeOptionalString(account.config.channelAccessToken) ?? normalizeOptionalString(account.config.tokenFile)),
|
|
236
|
-
resolvedValue: (account) => normalizeOptionalString(account.channelAccessToken),
|
|
237
|
-
envValue: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID ? normalizeOptionalString(process.env.LINE_CHANNEL_ACCESS_TOKEN) : void 0,
|
|
238
|
-
patchAccount: ({ cfg, accountId, patch, clearFields }) => patchLineAccountConfig({
|
|
239
|
-
cfg,
|
|
240
|
-
accountId,
|
|
241
|
-
enabled: true,
|
|
242
|
-
clearFields,
|
|
243
|
-
patch
|
|
244
|
-
}),
|
|
245
|
-
useEnv: { clearFields: ["channelAccessToken", "tokenFile"] },
|
|
246
|
-
set: {
|
|
247
|
-
clearFields: ["tokenFile"],
|
|
248
|
-
value: "resolved"
|
|
249
|
-
}
|
|
250
|
-
}), defineTokenCredential({
|
|
254
|
+
inputPrompt: t("wizard.line.tokenInputPrompt")
|
|
255
|
+
}), createLineTokenCredential({
|
|
251
256
|
inputKey: "password",
|
|
252
257
|
configKey: "channelSecret",
|
|
253
|
-
|
|
258
|
+
fileKey: "secretFile",
|
|
254
259
|
providerHint: "line-secret",
|
|
255
260
|
credentialLabel: t("wizard.line.channelSecret"),
|
|
256
|
-
|
|
257
|
-
helpTitle: t("wizard.line.messagingApiTitle"),
|
|
258
|
-
helpLines: LINE_SETUP_HELP_LINES,
|
|
261
|
+
envVar: "LINE_CHANNEL_SECRET",
|
|
259
262
|
envPrompt: t("wizard.line.secretEnvPrompt"),
|
|
260
263
|
keepPrompt: t("wizard.line.secretKeepPrompt"),
|
|
261
|
-
inputPrompt: t("wizard.line.secretInputPrompt")
|
|
262
|
-
allowEnv: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID,
|
|
263
|
-
resolveAccount: ({ cfg, accountId }) => resolveLineAccount({
|
|
264
|
-
cfg,
|
|
265
|
-
accountId
|
|
266
|
-
}),
|
|
267
|
-
accountConfigured: (account) => Boolean(normalizeOptionalString(account.channelAccessToken) && normalizeOptionalString(account.channelSecret)),
|
|
268
|
-
hasConfiguredValue: (account) => Boolean(normalizeOptionalString(account.config.channelSecret) ?? normalizeOptionalString(account.config.secretFile)),
|
|
269
|
-
resolvedValue: (account) => normalizeOptionalString(account.channelSecret),
|
|
270
|
-
envValue: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID ? normalizeOptionalString(process.env.LINE_CHANNEL_SECRET) : void 0,
|
|
271
|
-
patchAccount: ({ cfg, accountId, patch, clearFields }) => patchLineAccountConfig({
|
|
272
|
-
cfg,
|
|
273
|
-
accountId,
|
|
274
|
-
enabled: true,
|
|
275
|
-
clearFields,
|
|
276
|
-
patch
|
|
277
|
-
}),
|
|
278
|
-
useEnv: { clearFields: ["channelSecret", "secretFile"] },
|
|
279
|
-
set: {
|
|
280
|
-
clearFields: ["secretFile"],
|
|
281
|
-
value: "resolved"
|
|
282
|
-
}
|
|
264
|
+
inputPrompt: t("wizard.line.secretInputPrompt")
|
|
283
265
|
})],
|
|
284
266
|
allowFrom: createAllowFromSection({
|
|
285
267
|
helpTitle: t("wizard.line.allowlistTitle"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.7",
|
|
4
4
|
"description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.7.2-beta.
|
|
15
|
+
"openclaw": ">=2026.7.2-beta.7"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
"minHostVersion": ">=2026.4.10"
|
|
108
108
|
},
|
|
109
109
|
"compat": {
|
|
110
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
110
|
+
"pluginApi": ">=2026.7.2-beta.7"
|
|
111
111
|
},
|
|
112
112
|
"build": {
|
|
113
|
-
"openclawVersion": "2026.7.2-beta.
|
|
113
|
+
"openclawVersion": "2026.7.2-beta.7"
|
|
114
114
|
},
|
|
115
115
|
"release": {
|
|
116
116
|
"publishToClawHub": true,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/compatibility/iterators.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/diagnostics_channel.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/globals.typedarray.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/inspector.generated.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/readline/promises.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream/consumers.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/stream/promises.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/timers/promises.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/ts5.6/buffer.buffer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/crypto.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/events.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/fetch.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/navigator.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/storage.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@types → @line/bot-sdk/node_modules/@types}/node/web-globals/streams.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/balanced-pool.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/client-stats.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/connector.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/content-type.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/dispatcher.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/eventsource.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/formdata.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/global-origin.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/h2c-client.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/handlers.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/interceptors.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-agent.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-client.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-errors.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-interceptor.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/mock-pool.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/pool-stats.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/proxy-agent.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/readable.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/retry-agent.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/retry-handler.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/round-robin-pool.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/snapshot-agent.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @line/bot-sdk/node_modules/undici-types}/websocket.d.ts
RENAMED
|
File without changes
|