@qingchencloud/openclaw-zh 2026.4.2-zh.1 → 2026.4.2-zh.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/build-info.json +1 -1
- package/dist/cli-startup-metadata.json +1 -1
- package/dist/extensions/zalouser/api.js +1 -1
- package/dist/extensions/zalouser/index.js +1 -1
- package/dist/extensions/zalouser/setup-entry.js +1 -1
- package/dist/{setup-surface-D1vPK2rQ.js → setup-surface-DIoupB5k.js} +36 -36
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"qqbot",
|
|
25
25
|
"twitch"
|
|
26
26
|
],
|
|
27
|
-
"rootHelpText": "\n🦞 OpenClaw 中文版 2026.4.2 (d74a122) —
|
|
27
|
+
"rootHelpText": "\n🦞 OpenClaw 中文版 2026.4.2 (d74a122) — I can't fix your code taste, but I can fix your build and your backlog.\n\nUsage: openclaw [options] [command]\n\nOptions:\n --container <name> Run the CLI inside a running Podman/Docker container\n named <name> (default: env OPENCLAW_CONTAINER)\n --dev 开发配置:在 ~/.openclaw-dev 下隔离状态,默认网关端口 19001,并移动派生端口(浏览器/画布)\n -h, --help Display help for command\n --log-level <level> 全局日志级别覆盖,适用于文件和控制台\n (silent|fatal|error|warn|info|debug|trace)\n --no-color 禁用 ANSI 颜色\n --profile <name> 使用命名配置文件(在 ~/.openclaw-<name> 下隔离状态和配置)\n -V, --version output the version number\n\nCommands:\n Hint: commands suffixed with * have subcommands. Run <command> --help for details.\n acp * Agent Control Protocol 工具\n agent 通过网关运行一次代理\n agents * 管理隔离的代理(工作区、认证、路由)\n approvals * 管理执行审批(网关或节点主机)\n backup * 创建和验证 OpenClaw 状态的本地备份归档\n channels * 管理已连接的聊天渠道(Telegram、Discord 等)\n clawbot * 旧版 clawbot 命令别名\n completion 生成 Shell 补全脚本\n config * 非交互式配置工具(get/set/unset/file/validate)。默认:启动引导式设置。\n configure 交互式配置凭证、渠道、网关和代理默认设置\n cron * 通过网关调度器管理定时任务\n daemon * 网关服务(旧版别名)\n dashboard 使用当前令牌打开控制面板\n devices * 设备配对和令牌管理\n directory * 查询支持的聊天渠道的联系人和群组 ID\n dns * 广域发现的 DNS 工具(Tailscale + CoreDNS)\n docs 搜索 OpenClaw 在线文档\n doctor 网关和渠道的健康检查与快速修复\n gateway * 运行、检查和查询 WebSocket 网关\n health 从运行中的网关获取健康状态\n help Display help for command\n hooks * 管理内部代理 Hook\n logs 通过 RPC 跟踪网关文件日志\n memory Search, inspect, and reindex memory files\n message * 发送、读取和管理消息\n models * 发现、扫描和配置模型\n node * 运行和管理无头节点主机服务\n nodes * 管理网关节点配对和节点命令\n onboard 交互式引导配置网关、工作区和技能\n pairing * 安全私信配对(审批入站请求)\n plugins * 管理 OpenClaw 插件和扩展\n qr 生成 iOS 配对二维码/设置码\n reset 重置本地配置/状态(保留 CLI)\n sandbox * 管理代理隔离的沙箱容器\n secrets * 密钥运行时重载控制\n security * 安全工具和本地配置审计\n sessions * 列出已存储的对话会话\n setup 初始化本地配置和代理工作区\n skills * 列出和查看可用技能\n status 显示渠道健康状态和最近会话接收者\n system * 系统事件、心跳和在线状态\n tasks * Inspect durable background task state\n tui 打开连接到网关的终端 UI\n uninstall 卸载网关服务和本地数据(保留 CLI)\n update * 更新 OpenClaw 并查看更新渠道状态\n webhooks * Webhook 工具和集成\n\n示例:\n openclaw models --help\n 显示 models 命令的详细帮助。\n openclaw channels login --verbose\n 关联个人 WhatsApp Web 并显示二维码和连接日志。\n openclaw message send --target +15555550123 --message \"Hi\" --json\n 通过你的 Web 会话发送并打印 JSON 结果。\n openclaw gateway --port 18789\n 在本地运行 WebSocket 网关。\n openclaw --dev gateway\n 在 ws://127.0.0.1:19001 上运行开发网关(隔离状态/配置)。\n openclaw gateway --force\n 终止占用默认网关端口的进程,然后启动网关。\n openclaw gateway ...\n 通过 WebSocket 控制网关。\n openclaw agent --to +15555550123 --message \"Run summary\" --deliver\n 通过网关直接与 AI 助手对话;可选发送 WhatsApp 回复。\n openclaw message send --channel telegram --target @mychat --message \"Hi\"\n 通过你的 Telegram 机器人发送。\n\n文档: https://docs.openclaw.ai/cli\n汉化版: https://openclaw.qt.cool/\n\n"
|
|
28
28
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as zalouserSetupAdapter, t as zalouserSetupWizard } from "../../setup-surface-
|
|
1
|
+
import { n as zalouserSetupAdapter, t as zalouserSetupWizard } from "../../setup-surface-DIoupB5k.js";
|
|
2
2
|
export { zalouserSetupAdapter, zalouserSetupWizard };
|
|
@@ -15,7 +15,7 @@ import "../../runtime-api-BGth1q3w.js";
|
|
|
15
15
|
import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated, y as startZaloQrLogin } from "../../zalo-js-BxSp_Q1D.js";
|
|
16
16
|
import { i as resolveZalouserAccountSync, n as listZalouserAccountIds, t as getZcaUserInfo } from "../../accounts-C6MWUuek.js";
|
|
17
17
|
import { a as resolveZalouserReactionMessageIds, n as setZalouserRuntime, o as buildZalouserGroupCandidates, s as findZalouserGroupEntry, t as getZalouserRuntime } from "../../runtime-DRC77hn3.js";
|
|
18
|
-
import { n as zalouserSetupAdapter, r as writeQrDataUrlToTempFile, t as zalouserSetupWizard } from "../../setup-surface-
|
|
18
|
+
import { n as zalouserSetupAdapter, r as writeQrDataUrlToTempFile, t as zalouserSetupWizard } from "../../setup-surface-DIoupB5k.js";
|
|
19
19
|
import { a as sendReactionZalouser, i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "../../send-COyFyBi0.js";
|
|
20
20
|
import { i as resolveZalouserOutboundSessionRoute, n as parseZalouserDirectoryGroupId, r as parseZalouserOutboundTarget, t as normalizeZalouserTarget } from "../../session-route-BgzlQTrD.js";
|
|
21
21
|
import { t as createZalouserPluginBase } from "../../shared-jXgYl_bt.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as defineSetupPluginEntry } from "../../core-BFie0ENM.js";
|
|
2
|
-
import { n as zalouserSetupAdapter, t as zalouserSetupWizard } from "../../setup-surface-
|
|
2
|
+
import { n as zalouserSetupAdapter, t as zalouserSetupWizard } from "../../setup-surface-DIoupB5k.js";
|
|
3
3
|
import { t as createZalouserPluginBase } from "../../shared-jXgYl_bt.js";
|
|
4
4
|
//#region extensions/zalouser/src/channel.setup.ts
|
|
5
5
|
const zalouserSetupPlugin = { ...createZalouserPluginBase({
|
|
@@ -28,11 +28,11 @@ const zalouserSetupAdapter = createPatchedAccountSetupAdapter({
|
|
|
28
28
|
//#region extensions/zalouser/src/setup-surface.ts
|
|
29
29
|
const channel = "zalouser";
|
|
30
30
|
const setZalouserDmPolicy = createTopLevelChannelDmPolicySetter({ channel });
|
|
31
|
-
const ZALOUSER_ALLOW_FROM_PLACEHOLDER = "Alice, 123456789,
|
|
32
|
-
const ZALOUSER_GROUPS_PLACEHOLDER = "
|
|
33
|
-
const ZALOUSER_DM_ACCESS_TITLE = "Zalo Personal
|
|
34
|
-
const ZALOUSER_ALLOWLIST_TITLE = "Zalo Personal
|
|
35
|
-
const ZALOUSER_GROUPS_TITLE = "Zalo
|
|
31
|
+
const ZALOUSER_ALLOW_FROM_PLACEHOLDER = "Alice, 123456789, 或留空稍后配置";
|
|
32
|
+
const ZALOUSER_GROUPS_PLACEHOLDER = "家庭, 工作, 123456789, 或暂时留空";
|
|
33
|
+
const ZALOUSER_DM_ACCESS_TITLE = "Zalo Personal 私聊权限";
|
|
34
|
+
const ZALOUSER_ALLOWLIST_TITLE = "Zalo Personal 白名单";
|
|
35
|
+
const ZALOUSER_GROUPS_TITLE = "Zalo 群组";
|
|
36
36
|
function parseZalouserEntries(raw) {
|
|
37
37
|
return raw.split(/[\n,;]+/g).map((entry) => entry.trim()).filter(Boolean);
|
|
38
38
|
}
|
|
@@ -80,12 +80,12 @@ function ensureZalouserPluginEnabled(cfg) {
|
|
|
80
80
|
}
|
|
81
81
|
async function noteZalouserHelp(prompter) {
|
|
82
82
|
await prompter.note([
|
|
83
|
-
"Zalo Personal
|
|
83
|
+
"Zalo Personal 账户通过扫码登录。",
|
|
84
84
|
"",
|
|
85
|
-
"
|
|
85
|
+
"此插件直接使用 zca-js(无需额外 CLI 依赖)。",
|
|
86
86
|
"",
|
|
87
87
|
`Docs: ${formatDocsLink("/channels/zalouser", "zalouser")}`
|
|
88
|
-
].join("\n"), "Zalo Personal
|
|
88
|
+
].join("\n"), "Zalo Personal 设置");
|
|
89
89
|
}
|
|
90
90
|
async function promptZalouserAllowFrom(params) {
|
|
91
91
|
const { cfg, prompter, accountId } = params;
|
|
@@ -96,15 +96,15 @@ async function promptZalouserAllowFrom(params) {
|
|
|
96
96
|
const existingAllowFrom = resolved.config.allowFrom ?? [];
|
|
97
97
|
while (true) {
|
|
98
98
|
const entry = await prompter.text({
|
|
99
|
-
message: "Zalouser
|
|
99
|
+
message: "Zalouser 允许列表(用户名或用户 ID)",
|
|
100
100
|
placeholder: ZALOUSER_ALLOW_FROM_PLACEHOLDER,
|
|
101
101
|
initialValue: existingAllowFrom.length > 0 ? existingAllowFrom.join(", ") : void 0
|
|
102
102
|
});
|
|
103
103
|
const parts = parseZalouserEntries(String(entry));
|
|
104
104
|
if (parts.length === 0) {
|
|
105
105
|
await prompter.note([
|
|
106
|
-
"
|
|
107
|
-
"
|
|
106
|
+
"尚未添加私聊白名单条目。",
|
|
107
|
+
"私聊将保持屏蔽,直到你稍后添加联系人。",
|
|
108
108
|
`Tip: use \`${formatCliCommand("openclaw directory peers list --channel zalouser")}\` to look up people after onboarding.`
|
|
109
109
|
].join("\n"), ZALOUSER_ALLOWLIST_TITLE);
|
|
110
110
|
return setZalouserAccountScopedConfig(cfg, accountId, {
|
|
@@ -154,33 +154,33 @@ async function promptZalouserQuickstartDmPolicy(params) {
|
|
|
154
154
|
const existingAllowFrom = resolved.config.allowFrom ?? [];
|
|
155
155
|
const existingLabel = existingAllowFrom.length > 0 ? existingAllowFrom.join(", ") : "unset";
|
|
156
156
|
await prompter.note([
|
|
157
|
-
"
|
|
158
|
-
"- pairing
|
|
159
|
-
"- allowlist
|
|
160
|
-
"- open
|
|
161
|
-
"- disabled
|
|
157
|
+
"私聊和群聊的权限分开配置。",
|
|
158
|
+
"- pairing(默认):陌生人会收到一个配对码",
|
|
159
|
+
"- allowlist:仅白名单用户可以私聊",
|
|
160
|
+
"- open:任何人都可以私聊",
|
|
161
|
+
"- disabled:忽略私聊消息",
|
|
162
162
|
"",
|
|
163
163
|
`Current: dmPolicy=${existingPolicy}, allowFrom=${existingLabel}`,
|
|
164
|
-
"
|
|
164
|
+
"如果现在选择 allowlist,可以先留空,稍后再添加联系人。"
|
|
165
165
|
].join("\n"), ZALOUSER_DM_ACCESS_TITLE);
|
|
166
166
|
const policy = await prompter.select({
|
|
167
|
-
message: "Zalo Personal
|
|
167
|
+
message: "Zalo Personal 私聊策略",
|
|
168
168
|
options: [
|
|
169
169
|
{
|
|
170
170
|
value: "pairing",
|
|
171
|
-
label: "
|
|
171
|
+
label: "配对码(推荐)"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
value: "allowlist",
|
|
175
|
-
label: "
|
|
175
|
+
label: "白名单(仅指定用户)"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
value: "open",
|
|
179
|
-
label: "
|
|
179
|
+
label: "开放(公开接收私聊)"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
value: "disabled",
|
|
183
|
-
label: "
|
|
183
|
+
label: "禁用(忽略私聊)"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
186
|
initialValue: existingPolicy
|
|
@@ -195,10 +195,10 @@ async function promptZalouserQuickstartDmPolicy(params) {
|
|
|
195
195
|
const zalouserSetupWizard = {
|
|
196
196
|
channel,
|
|
197
197
|
status: {
|
|
198
|
-
configuredLabel: "
|
|
199
|
-
unconfiguredLabel: "
|
|
200
|
-
configuredHint: "
|
|
201
|
-
unconfiguredHint: "
|
|
198
|
+
configuredLabel: "已登录",
|
|
199
|
+
unconfiguredLabel: "需要扫码登录",
|
|
200
|
+
configuredHint: "推荐 · 已登录",
|
|
201
|
+
unconfiguredHint: "推荐 · 扫码登录",
|
|
202
202
|
configuredScore: 1,
|
|
203
203
|
unconfiguredScore: 15,
|
|
204
204
|
resolveConfigured: async ({ cfg }) => {
|
|
@@ -210,7 +210,7 @@ const zalouserSetupWizard = {
|
|
|
210
210
|
return false;
|
|
211
211
|
},
|
|
212
212
|
resolveStatusLines: async ({ cfg, configured }) => {
|
|
213
|
-
return [`Zalo Personal: ${configured ? "
|
|
213
|
+
return [`Zalo Personal: ${configured ? "已登录" : "需要扫码登录"}`];
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
prepare: async ({ cfg, accountId, prompter, options }) => {
|
|
@@ -222,7 +222,7 @@ const zalouserSetupWizard = {
|
|
|
222
222
|
if (!await checkZaloAuthenticated(account.profile)) {
|
|
223
223
|
await noteZalouserHelp(prompter);
|
|
224
224
|
if (await prompter.confirm({
|
|
225
|
-
message: "
|
|
225
|
+
message: "现在通过扫码登录?",
|
|
226
226
|
initialValue: true
|
|
227
227
|
})) {
|
|
228
228
|
const start = await startZaloQrLogin({
|
|
@@ -234,10 +234,10 @@ const zalouserSetupWizard = {
|
|
|
234
234
|
await prompter.note([
|
|
235
235
|
start.message,
|
|
236
236
|
qrPath ? `QR image saved to: ${qrPath}` : "Could not write QR image file; use gateway web login UI instead.",
|
|
237
|
-
"
|
|
238
|
-
].join("\n"), "
|
|
237
|
+
"用手机扫描并确认,然后继续。"
|
|
238
|
+
].join("\n"), "扫码登录");
|
|
239
239
|
if (await prompter.confirm({
|
|
240
|
-
message: "
|
|
240
|
+
message: "你是否已在手机上扫描并确认了二维码?",
|
|
241
241
|
initialValue: true
|
|
242
242
|
})) {
|
|
243
243
|
const waited = await waitForZaloQrLogin({
|
|
@@ -249,7 +249,7 @@ const zalouserSetupWizard = {
|
|
|
249
249
|
} else await prompter.note(start.message, "Login pending");
|
|
250
250
|
}
|
|
251
251
|
} else if (!await prompter.confirm({
|
|
252
|
-
message: "Zalo Personal
|
|
252
|
+
message: "Zalo Personal 已登录。保持当前会话?",
|
|
253
253
|
initialValue: true
|
|
254
254
|
})) {
|
|
255
255
|
await logoutZaloProfile(account.profile);
|
|
@@ -260,7 +260,7 @@ const zalouserSetupWizard = {
|
|
|
260
260
|
});
|
|
261
261
|
if (start.qrDataUrl) {
|
|
262
262
|
const qrPath = await writeQrDataUrlToTempFile(start.qrDataUrl, account.profile);
|
|
263
|
-
await prompter.note([start.message, qrPath ? `QR image saved to: ${qrPath}` : void 0].filter(Boolean).join("\n"), "
|
|
263
|
+
await prompter.note([start.message, qrPath ? `QR image saved to: ${qrPath}` : void 0].filter(Boolean).join("\n"), "扫码登录");
|
|
264
264
|
const waited = await waitForZaloQrLogin({
|
|
265
265
|
profile: account.profile,
|
|
266
266
|
timeoutMs: 12e4
|
|
@@ -299,10 +299,10 @@ const zalouserSetupWizard = {
|
|
|
299
299
|
resolveAllowlist: async ({ cfg, accountId, entries, prompter }) => {
|
|
300
300
|
if (entries.length === 0) {
|
|
301
301
|
await prompter.note([
|
|
302
|
-
"
|
|
303
|
-
"
|
|
302
|
+
"尚未添加群组白名单条目。",
|
|
303
|
+
"群聊将保持屏蔽,直到你稍后添加群组。",
|
|
304
304
|
`Tip: use \`${formatCliCommand("openclaw directory groups list --channel zalouser")}\` after onboarding to find group IDs.`,
|
|
305
|
-
"
|
|
305
|
+
"你稍后允许的群组默认保持 @提及 要求。"
|
|
306
306
|
].join("\n"), ZALOUSER_GROUPS_TITLE);
|
|
307
307
|
return [];
|
|
308
308
|
}
|