@qingchencloud/openclaw-zh 2026.4.9-zh.1 → 2026.4.9-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/{command-registry-ebG_dXnO.js → command-registry-BKb0Z6c6.js} +6 -6
- package/dist/{command-registry-DgUlq1oS.js → command-registry-W_luKphd.js} +1 -1
- package/dist/{completion-cli-bjeyuv5f.js → completion-cli-C4M8KX4W.js} +2 -2
- package/dist/{completion-cli-SWd5_ztj.js → completion-cli-Cl_rEL7V.js} +1 -1
- package/dist/{config-cli-DCBxvwaG.js → config-cli-B5COIKc2.js} +1 -1
- package/dist/{configure-DBcoMl_C.js → configure-CbGcH5Z6.js} +2 -2
- package/dist/{configure-MKHSCyNu.js → configure-taxpsjnM.js} +1 -1
- package/dist/control-ui/assets/{agents-kc34l3x2.js → agents-BuNZcRq4.js} +2 -2
- package/dist/control-ui/assets/{channels-B457eC5x.js → channels-P_oAp-xr.js} +2 -2
- package/dist/control-ui/assets/{cron-BRFMdv3E.js → cron-O50Pygc8.js} +2 -2
- package/dist/control-ui/assets/{debug-BLdvhioJ.js → debug-B9HNlxNM.js} +2 -2
- package/dist/control-ui/assets/{index-D7Mg77ix.js → index-DE-6kUDC.js} +14 -14
- package/dist/control-ui/assets/{instances-B2sXDH1b.js → instances-CxjWpqgf.js} +2 -2
- package/dist/control-ui/assets/{sessions-CMc5AtyT.js → sessions-CGLUll_c.js} +2 -2
- package/dist/control-ui/assets/{skills-C0286Zdy.js → skills-CH_cvm8V.js} +2 -2
- package/dist/control-ui/index.html +1 -1
- package/dist/{doctor-completion-wFkyQPDl.js → doctor-completion-CLKOJHd8.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensions/amazon-bedrock-mantle/node_modules/@aws-sdk/client-cognito-identity/package.json +2 -2
- package/dist/extensions/amazon-bedrock-mantle/node_modules/@aws-sdk/credential-providers/package.json +2 -2
- package/dist/{gateway-cli-DGr2R_bz.js → gateway-cli-1Dn_Y586.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{onboard-vTo-2CZ2.js → onboard-DGunuYzK.js} +1 -1
- package/dist/{program-D5SpMVHr.js → program-Bdc4lBHm.js} +1 -1
- package/dist/{prompt-select-styled-BTDxz9r_.js → prompt-select-styled-ovPyQkIx.js} +1 -1
- package/dist/{register.configure-DBPeuV9h.js → register.configure-CeN7DS_F.js} +1 -1
- package/dist/{register.maintenance-De9R4UAE.js → register.maintenance-CxokxyNI.js} +1 -1
- package/dist/{register.onboard-DMmkAWFt.js → register.onboard-CMUiexf5.js} +1 -1
- package/dist/{register.setup-CjWZL-w8.js → register.setup-Bfnnxr9a.js} +1 -1
- package/dist/{register.subclis-txI7J-O_.js → register.subclis-Ba8m3e4C.js} +3 -3
- package/dist/{register.subclis-D4L4ENYY.js → register.subclis-C-BnxAWL.js} +1 -1
- package/dist/{run-main-B2Un1qvW.js → run-main-BR37jJte.js} +5 -5
- package/dist/{server-CcR8j4Z0.js → server-3ZtD4HCo.js} +1 -1
- package/dist/{server.impl-cLFdIsY3.js → server.impl-WrZWpz7H.js} +1 -1
- package/dist/{setup-BObBWktQ.js → setup-DPD5b_eG.js} +2 -2
- package/dist/{setup.finalize-b-EoiFfY.js → setup.finalize-DkDX2R4F.js} +2 -2
- package/dist/{setup.plugin-config-C4mpqdXg.js → setup.plugin-config-dQGYeuQu.js} +14 -14
- package/dist/{update-cli-BT9uh6OF.js → update-cli-DloOTJjJ.js} +3 -3
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
],
|
|
28
28
|
"channelCatalogSignature": "eb4125c248c02e7bf2a1adf31e84eec508342220",
|
|
29
29
|
"rootHelpBundleSignature": "54fe559e3eeb94249143edd01982c73fcb31137c",
|
|
30
|
-
"rootHelpText": "\n🦞 OpenClaw 中文版 2026.4.9 (0512059) —
|
|
30
|
+
"rootHelpText": "\n🦞 OpenClaw 中文版 2026.4.9 (0512059) — I don't sleep, I just enter low-power mode and dream of clean diffs.\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 capability * Run provider-backed inference commands (fallback alias:\n infer)\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 * 管理内部代理 Hooks\n infer * Run provider-backed inference commands\n logs 通过 RPC 查看网关日志\n mcp * Manage OpenClaw MCP config and channel bridge\n memory Search, inspect, and reindex memory files\n message * 发送、读取和管理消息\n models * 发现、扫描和配置模型\n node * 运行和管理无头节点主机服务\n nodes * 管理网关节点配对和节点命令\n onboard 交互式引导配置网关、工作区和技能\n pairing * 安全私信配对(审批入站请求)\n plugins * 管理 OpenClaw 插件和扩展\n qa * 运行 QA 场景并启动私有 QA 调试器 UI\n qr 生成移动端配对二维码/设置码\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 打开连接到网关的终端界面\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"
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as resolveCliArgvInvocation } from "./argv-invocation-BeolA8Ck.js";
|
|
2
2
|
import { n as shouldRegisterPrimaryCommandOnly } from "./command-registration-policy-DpLuu5Vf.js";
|
|
3
|
-
import { a as defineImportedCommandGroupSpec, i as buildCommandGroupEntries, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands } from "./register.subclis-
|
|
3
|
+
import { a as defineImportedCommandGroupSpec, i as buildCommandGroupEntries, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands } from "./register.subclis-Ba8m3e4C.js";
|
|
4
4
|
import { i as registerCommandGroups, r as registerCommandGroupByName } from "./register-command-groups-f4Wgo-Ph.js";
|
|
5
5
|
import { n as getCoreCliCommandNames$1, t as getCoreCliCommandDescriptors } from "./core-command-descriptors-B7So0nJ2.js";
|
|
6
6
|
//#region src/cli/program/command-registry.ts
|
|
@@ -16,22 +16,22 @@ const coreEntrySpecs = [
|
|
|
16
16
|
...withProgramOnlySpecs(defineImportedProgramCommandGroupSpecs([
|
|
17
17
|
{
|
|
18
18
|
commandNames: ["setup"],
|
|
19
|
-
loadModule: () => import("./register.setup-
|
|
19
|
+
loadModule: () => import("./register.setup-Bfnnxr9a.js"),
|
|
20
20
|
exportName: "registerSetupCommand"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
commandNames: ["onboard"],
|
|
24
|
-
loadModule: () => import("./register.onboard-
|
|
24
|
+
loadModule: () => import("./register.onboard-CMUiexf5.js"),
|
|
25
25
|
exportName: "registerOnboardCommand"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
commandNames: ["configure"],
|
|
29
|
-
loadModule: () => import("./register.configure-
|
|
29
|
+
loadModule: () => import("./register.configure-CeN7DS_F.js"),
|
|
30
30
|
exportName: "registerConfigureCommand"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
commandNames: ["config"],
|
|
34
|
-
loadModule: () => import("./config-cli-
|
|
34
|
+
loadModule: () => import("./config-cli-B5COIKc2.js"),
|
|
35
35
|
exportName: "registerConfigCli"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -46,7 +46,7 @@ const coreEntrySpecs = [
|
|
|
46
46
|
"reset",
|
|
47
47
|
"uninstall"
|
|
48
48
|
],
|
|
49
|
-
loadModule: () => import("./register.maintenance-
|
|
49
|
+
loadModule: () => import("./register.maintenance-CxokxyNI.js"),
|
|
50
50
|
exportName: "registerMaintenanceCommands"
|
|
51
51
|
}
|
|
52
52
|
])),
|
|
@@ -4,8 +4,8 @@ import { c as routeLogsToStderr } from "./subsystem-jkSS3Pvu.js";
|
|
|
4
4
|
import { t as formatDocsLink } from "./links-_W1ZnMwp.js";
|
|
5
5
|
import { r as theme } from "./theme-DZuqFJmv.js";
|
|
6
6
|
import { _ as resolveStateDir } from "./paths-nQmEmngS.js";
|
|
7
|
-
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-
|
|
8
|
-
import { n as registerCoreCliByName, t as getCoreCliCommandNames } from "./command-registry-
|
|
7
|
+
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-Ba8m3e4C.js";
|
|
8
|
+
import { n as registerCoreCliByName, t as getCoreCliCommandNames } from "./command-registry-BKb0Z6c6.js";
|
|
9
9
|
import { t as getProgramContext } from "./program-context-BKb8SNod.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import os from "node:os";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as registerCompletionCli, c as usesSlowDynamicCompletion, i as isCompletionInstalled, n as getCompletionScript, o as resolveCompletionCachePath, r as installCompletion, s as resolveShellFromEnv, t as completionCacheExists } from "./completion-cli-
|
|
1
|
+
import { a as registerCompletionCli, c as usesSlowDynamicCompletion, i as isCompletionInstalled, n as getCompletionScript, o as resolveCompletionCachePath, r as installCompletion, s as resolveShellFromEnv, t as completionCacheExists } from "./completion-cli-C4M8KX4W.js";
|
|
2
2
|
export { completionCacheExists, getCompletionScript, installCompletion, isCompletionInstalled, registerCompletionCli, resolveCompletionCachePath, resolveShellFromEnv, usesSlowDynamicCompletion };
|
|
@@ -913,7 +913,7 @@ async function runConfigValidate(opts = {}) {
|
|
|
913
913
|
}
|
|
914
914
|
function registerConfigCli(program) {
|
|
915
915
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset/file/schema/validate). Run without subcommand for guided setup.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.openclaw.ai/cli/config")}\n`).option("--section <section>", "Configuration sections for guided setup (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
916
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
916
|
+
const { configureCommandFromSectionsArg } = await import("./configure-taxpsjnM.js");
|
|
917
917
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
918
918
|
});
|
|
919
919
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -989,7 +989,7 @@ async function runConfigureWizard(opts, runtime = defaultRuntime) {
|
|
|
989
989
|
}
|
|
990
990
|
if (selected.includes("channels")) await configureChannelsSection();
|
|
991
991
|
if (selected.includes("plugins")) {
|
|
992
|
-
const { configurePluginConfig } = await import("./setup.plugin-config-
|
|
992
|
+
const { configurePluginConfig } = await import("./setup.plugin-config-dQGYeuQu.js");
|
|
993
993
|
nextConfig = await configurePluginConfig({
|
|
994
994
|
config: nextConfig,
|
|
995
995
|
prompter,
|
|
@@ -1044,7 +1044,7 @@ async function runConfigureWizard(opts, runtime = defaultRuntime) {
|
|
|
1044
1044
|
await persistConfig();
|
|
1045
1045
|
}
|
|
1046
1046
|
if (choice === "plugins") {
|
|
1047
|
-
const { configurePluginConfig } = await import("./setup.plugin-config-
|
|
1047
|
+
const { configurePluginConfig } = await import("./setup.plugin-config-dQGYeuQu.js");
|
|
1048
1048
|
nextConfig = await configurePluginConfig({
|
|
1049
1049
|
config: nextConfig,
|
|
1050
1050
|
prompter,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as configureCommandFromSectionsArg } from "./configure-
|
|
1
|
+
import { n as configureCommandFromSectionsArg } from "./configure-CbGcH5Z6.js";
|
|
2
2
|
export { configureCommandFromSectionsArg };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,o as t,r as n,u as r}from"./i18n-D96Y4o9G.js";import{u as i}from"./format-Cmx6MyUf.js";import{t as a}from"./string-coerce-BcFtIWA_.js";import{A as o,C as s,D as c,O as l,S as u,T as d,_ as f,a as p,b as m,d as h,f as g,g as _,h as v,k as y,m as b,n as x,p as S,r as C,t as w,u as T,v as E,w as D,x as O,y as k}from"./index-
|
|
1
|
+
import{f as e,o as t,r as n,u as r}from"./i18n-D96Y4o9G.js";import{u as i}from"./format-Cmx6MyUf.js";import{t as a}from"./string-coerce-BcFtIWA_.js";import{A as o,C as s,D as c,O as l,S as u,T as d,_ as f,a as p,b as m,d as h,f as g,g as _,h as v,k as y,m as b,n as x,p as S,r as C,t as w,u as T,v as E,w as D,x as O,y as k}from"./index-DE-6kUDC.js";import{r as A}from"./channel-config-extras-Dsnxnz3o.js";import{i as j,n as M,r as N,t as P}from"./skills-shared-CbPxVEZw.js";function F(t){let{agent:i,configForm:a,agentFilesList:o,configLoading:s,configSaving:c,configDirty:l,onConfigReload:u,onConfigSave:d,onModelChange:p,onModelFallbacksChange:h,onSelectPanel:v}=t,y=E(a,i.id),b=i.model,x=(o&&o.agentId===i.id?o.workspace:null)||y.entry?.workspace||y.defaults?.workspace||i.workspace||`default`,S=y.entry?.model?m(y.entry?.model):y.defaults?.model?m(y.defaults?.model):m(b),C=m(y.defaults?.model??b),w=O(y.entry?.model),T=O(y.defaults?.model)||(C===`-`?null:_(C))||(a?null:O(b)),D=w??T??null,A=k(y.entry?.model)??k(y.defaults?.model)??(a?null:k(b))??[],j=Array.isArray(y.entry?.skills)?y.entry?.skills:null,M=j?.length??null,N=!!(t.defaultId&&i.id===t.defaultId),P=!a||s||c,F=e=>{let t=A.filter((t,n)=>n!==e);h(i.id,t)};return e`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="card-title">概览</div>
|
|
4
4
|
<div class="card-sub">工作区路径和身份元数据。</div>
|
|
@@ -810,4 +810,4 @@ ${e}
|
|
|
810
810
|
`)}
|
|
811
811
|
</div>
|
|
812
812
|
`}export{xe as renderAgents};
|
|
813
|
-
//# sourceMappingURL=agents-
|
|
813
|
+
//# sourceMappingURL=agents-BuNZcRq4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{f as r,u as i}from"./format-Cmx6MyUf.js";import{N as a,P as o,c as s,l as c}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{f as r,u as i}from"./format-Cmx6MyUf.js";import{N as a,P as o,c as s,l as c}from"./index-DE-6kUDC.js";import{n as l,t as u}from"./channel-config-extras-Dsnxnz3o.js";function d(e,t){let n=e;for(let e of t){if(!n)return null;let t=o(n);if(t===`object`){let t=n.properties??{};if(typeof e==`string`&&t[e]){n=t[e];continue}let r=n.additionalProperties;if(typeof e==`string`&&r&&typeof r==`object`){n=r;continue}return null}if(t===`array`){if(typeof e!=`number`)return null;n=(Array.isArray(n.items)?n.items[0]:n.items)??null;continue}return null}return n}function f(e,t){return l(e,t)??{}}var p=[`groupPolicy`,`streamMode`,`dmPolicy`];function m(t){let n=p.flatMap(e=>e in t?[[e,t[e]]]:[]);return n.length===0?null:e`
|
|
2
2
|
<div class="status-list" style="margin-top: 12px;">
|
|
3
3
|
${n.map(([t,n])=>e`
|
|
4
4
|
<div>
|
|
@@ -350,4 +350,4 @@ ${r.snapshot?JSON.stringify(r.snapshot,null,2):t(`channels.health.noSnapshotYet`
|
|
|
350
350
|
</div>
|
|
351
351
|
</div>
|
|
352
352
|
`}export{F as renderChannels};
|
|
353
|
-
//# sourceMappingURL=channels-
|
|
353
|
+
//# sourceMappingURL=channels-P_oAp-xr.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{i as r,u as i}from"./format-Cmx6MyUf.js";import{M as a,a as o,n as s}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{i as r,u as i}from"./format-Cmx6MyUf.js";import{M as a,a as o,n as s}from"./index-DE-6kUDC.js";var c=e=>e??n;function l(){return[{value:`ok`,label:t(`cron.runs.runStatusOk`)},{value:`error`,label:t(`cron.runs.runStatusError`)},{value:`skipped`,label:t(`cron.runs.runStatusSkipped`)}]}function u(){return[{value:`delivered`,label:t(`cron.runs.deliveryDelivered`)},{value:`not-delivered`,label:t(`cron.runs.deliveryNotDelivered`)},{value:`unknown`,label:t(`cron.runs.deliveryUnknown`)},{value:`not-requested`,label:t(`cron.runs.deliveryNotRequested`)}]}function d(e,t,n){let r=new Set(e);return n?r.add(t):r.delete(t),Array.from(r)}function f(e,t){return e.length===0?t:e.length<=2?e.join(`, `):`${e[0]} +${e.length-1}`}function p(e){let t=[`last`,...e.channels.filter(Boolean)],n=e.form.deliveryChannel?.trim();n&&!t.includes(n)&&t.push(n);let r=new Set;return t.filter(e=>r.has(e)?!1:(r.add(e),!0))}function m(e,t){if(t===`last`)return`last`;let n=e.channelMeta?.find(e=>e.id===t);return n?.label?n.label:e.channelLabels?.[t]??t}function h(n){return e`
|
|
2
2
|
<div class="field cron-filter-dropdown" data-filter=${n.id}>
|
|
3
3
|
<span>${n.title}</span>
|
|
4
4
|
<details class="cron-filter-dropdown__details">
|
|
@@ -929,4 +929,4 @@ import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{i as r,u as i}from".
|
|
|
929
929
|
</div>
|
|
930
930
|
</div>
|
|
931
931
|
`}export{C as renderCron};
|
|
932
|
-
//# sourceMappingURL=cron-
|
|
932
|
+
//# sourceMappingURL=cron-O50Pygc8.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{i as r}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{i as r}from"./index-DE-6kUDC.js";function i(i){let a=(i.status&&typeof i.status==`object`?i.status.securityAudit:null)?.summary??null,o=a?.critical??0,s=a?.warn??0,c=a?.info??0,l=o>0?`danger`:s>0?`warn`:`success`,u=o>0?`${o} critical`:s>0?`${s} warnings`:`No critical issues`;return e`
|
|
2
2
|
<section class="grid">
|
|
3
3
|
<div class="card">
|
|
4
4
|
<div class="row" style="justify-content: space-between;">
|
|
@@ -91,4 +91,4 @@ ${r(t.payload)}</pre
|
|
|
91
91
|
`}
|
|
92
92
|
</section>
|
|
93
93
|
`}export{i as renderDebug};
|
|
94
|
-
//# sourceMappingURL=debug-
|
|
94
|
+
//# sourceMappingURL=debug-B9HNlxNM.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./agents-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./agents-BuNZcRq4.js","./i18n-D96Y4o9G.js","./format-Cmx6MyUf.js","./string-coerce-BcFtIWA_.js","./channel-config-extras-Dsnxnz3o.js","./skills-shared-CbPxVEZw.js","./channels-P_oAp-xr.js","./cron-O50Pygc8.js","./debug-B9HNlxNM.js","./instances-CxjWpqgf.js","./logs-DIQQlrf3.js","./nodes-DBnqZpzh.js","./sessions-CGLUll_c.js","./skills-CH_cvm8V.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./i18n-D96Y4o9G.js";import{a as _,c as v,d as y,f as b,h as x,i as S,l as C,m as ee,n as w,o as te,p as T,s as ne,u as E}from"./format-Cmx6MyUf.js";import{n as D,r as O,t as k}from"./string-coerce-BcFtIWA_.js";import{n as A,r as j,t as re}from"./directive-Dk4hInuL.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var M={attribute:!0,type:String,converter:a,reflect:!1,hasChanged:o},N=(e=M,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function ie(e){return(t,n)=>typeof n==`object`?N(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function P(e){return ie({...e,state:!0,attribute:!1})}var F={AUTH_REQUIRED:`AUTH_REQUIRED`,AUTH_UNAUTHORIZED:`AUTH_UNAUTHORIZED`,AUTH_TOKEN_MISSING:`AUTH_TOKEN_MISSING`,AUTH_TOKEN_MISMATCH:`AUTH_TOKEN_MISMATCH`,AUTH_TOKEN_NOT_CONFIGURED:`AUTH_TOKEN_NOT_CONFIGURED`,AUTH_PASSWORD_MISSING:`AUTH_PASSWORD_MISSING`,AUTH_PASSWORD_MISMATCH:`AUTH_PASSWORD_MISMATCH`,AUTH_PASSWORD_NOT_CONFIGURED:`AUTH_PASSWORD_NOT_CONFIGURED`,AUTH_BOOTSTRAP_TOKEN_INVALID:`AUTH_BOOTSTRAP_TOKEN_INVALID`,AUTH_DEVICE_TOKEN_MISMATCH:`AUTH_DEVICE_TOKEN_MISMATCH`,AUTH_RATE_LIMITED:`AUTH_RATE_LIMITED`,AUTH_TAILSCALE_IDENTITY_MISSING:`AUTH_TAILSCALE_IDENTITY_MISSING`,AUTH_TAILSCALE_PROXY_MISSING:`AUTH_TAILSCALE_PROXY_MISSING`,AUTH_TAILSCALE_WHOIS_FAILED:`AUTH_TAILSCALE_WHOIS_FAILED`,AUTH_TAILSCALE_IDENTITY_MISMATCH:`AUTH_TAILSCALE_IDENTITY_MISMATCH`,CONTROL_UI_ORIGIN_NOT_ALLOWED:`CONTROL_UI_ORIGIN_NOT_ALLOWED`,CONTROL_UI_DEVICE_IDENTITY_REQUIRED:`CONTROL_UI_DEVICE_IDENTITY_REQUIRED`,DEVICE_IDENTITY_REQUIRED:`DEVICE_IDENTITY_REQUIRED`,DEVICE_AUTH_INVALID:`DEVICE_AUTH_INVALID`,DEVICE_AUTH_DEVICE_ID_MISMATCH:`DEVICE_AUTH_DEVICE_ID_MISMATCH`,DEVICE_AUTH_SIGNATURE_EXPIRED:`DEVICE_AUTH_SIGNATURE_EXPIRED`,DEVICE_AUTH_NONCE_REQUIRED:`DEVICE_AUTH_NONCE_REQUIRED`,DEVICE_AUTH_NONCE_MISMATCH:`DEVICE_AUTH_NONCE_MISMATCH`,DEVICE_AUTH_SIGNATURE_INVALID:`DEVICE_AUTH_SIGNATURE_INVALID`,DEVICE_AUTH_PUBLIC_KEY_INVALID:`DEVICE_AUTH_PUBLIC_KEY_INVALID`,PAIRING_REQUIRED:`PAIRING_REQUIRED`},I=new Set([`retry_with_device_token`,`update_auth_configuration`,`update_auth_credentials`,`wait_then_retry`,`review_auth_configuration`]);function ae(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e.code;return typeof t==`string`&&t.trim().length>0?t:null}function oe(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t=e,n=typeof t.canRetryWithDeviceToken==`boolean`?t.canRetryWithDeviceToken:void 0,r=x(t.recommendedNextStep)??``;return{canRetryWithDeviceToken:n,recommendedNextStep:I.has(r)?r:void 0}}function se(e){let t=e.scopes.join(`,`),n=e.token??``;return[`v2`,e.deviceId,e.clientId,e.clientMode,e.role,t,String(e.signedAtMs),n,e.nonce].join(`|`)}var ce={WEBCHAT_UI:`webchat-ui`,CONTROL_UI:`openclaw-control-ui`,TUI:`openclaw-tui`,WEBCHAT:`webchat`,CLI:`cli`,GATEWAY_CLIENT:`gateway-client`,MACOS_APP:`openclaw-macos`,IOS_APP:`openclaw-ios`,ANDROID_APP:`openclaw-android`,NODE_HOST:`node-host`,TEST:`test`,FINGERPRINT:`fingerprint`,PROBE:`openclaw-probe`},le=ce,ue={WEBCHAT:`webchat`,CLI:`cli`,UI:`ui`,BACKEND:`backend`,NODE:`node`,PROBE:`probe`,TEST:`test`};new Set(Object.values(ce)),new Set(Object.values(ue));function de(e){return e.trim()}function fe(e){if(!Array.isArray(e))return[];let t=new Set;for(let n of e){let e=n.trim();e&&t.add(e)}return t.has(`operator.admin`)?(t.add(`operator.read`),t.add(`operator.write`)):t.has(`operator.write`)&&t.add(`operator.read`),[...t].toSorted()}function pe(e){let t=e.adapter.readStore();if(!t||t.deviceId!==e.deviceId)return null;let n=de(e.role),r=t.tokens[n];return!r||typeof r.token!=`string`?null:r}function me(e){let t=de(e.role),n=e.adapter.readStore(),r={version:1,deviceId:e.deviceId,tokens:n&&n.deviceId===e.deviceId&&n.tokens?{...n.tokens}:{}},i={token:e.token,role:t,scopes:fe(e.scopes),updatedAtMs:Date.now()};return r.tokens[t]=i,e.adapter.writeStore(r),i}function he(e){let t=e.adapter.readStore();if(!t||t.deviceId!==e.deviceId)return;let n=de(e.role);if(!t.tokens[n])return;let r={version:1,deviceId:t.deviceId,tokens:{...t.tokens}};delete r.tokens[n],e.adapter.writeStore(r)}var ge=`openclaw.device.auth.v1`;function _e(){try{let e=m()?.getItem(ge);if(!e)return null;let t=JSON.parse(e);return!t||t.version!==1||!t.deviceId||typeof t.deviceId!=`string`||!t.tokens||typeof t.tokens!=`object`?null:t}catch{return null}}function ve(e){try{m()?.setItem(ge,JSON.stringify(e))}catch{}}function ye(e){return pe({adapter:{readStore:_e,writeStore:ve},deviceId:e.deviceId,role:e.role})}function be(e){return me({adapter:{readStore:_e,writeStore:ve},deviceId:e.deviceId,role:e.role,token:e.token,scopes:e.scopes})}function xe(e){he({adapter:{readStore:_e,writeStore:ve},deviceId:e.deviceId,role:e.role})}var Se={p:57896044618658097711785492504343953926634992332820282019728792003956564819949n,n:7237005577332262213973186563042994240857116359379907606001950938285454250989n,h:8n,a:57896044618658097711785492504343953926634992332820282019728792003956564819948n,d:37095705934669439343138083508754565189542113879843219016388785533085940283555n,Gx:15112221349535400772501151409588531511454012693041857206046113283949847762202n,Gy:46316835694926478169428394003475163141307993866256225615783033603165251855960n},{p:Ce,n:we,Gx:Te,Gy:Ee,a:De,d:Oe,h:ke}=Se,Ae=32,je=(...e)=>{`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(...e)},Me=(e=``)=>{let t=Error(e);throw je(t,Me),t},Ne=e=>typeof e==`bigint`,Pe=e=>typeof e==`string`,Fe=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`,Ie=(e,t,n=``)=>{let r=Fe(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`;Me(o+`expected Uint8Array`+s+`, got `+c)}return e},Le=e=>new Uint8Array(e),Re=e=>Uint8Array.from(e),ze=(e,t)=>e.toString(16).padStart(t,`0`),Be=e=>Array.from(Ie(e)).map(e=>ze(e,2)).join(``),Ve={_0:48,_9:57,A:65,F:70,a:97,f:102},He=e=>{if(e>=Ve._0&&e<=Ve._9)return e-Ve._0;if(e>=Ve.A&&e<=Ve.F)return e-(Ve.A-10);if(e>=Ve.a&&e<=Ve.f)return e-(Ve.a-10)},Ue=e=>{let t=`hex invalid`;if(!Pe(e))return Me(t);let n=e.length,r=n/2;if(n%2)return Me(t);let i=Le(r);for(let n=0,a=0;n<r;n++,a+=2){let r=He(e.charCodeAt(a)),o=He(e.charCodeAt(a+1));if(r===void 0||o===void 0)return Me(t);i[n]=r*16+o}return i},We=()=>globalThis?.crypto,Ge=()=>We()?.subtle??Me(`crypto.subtle must be defined, consider polyfill`),Ke=(...e)=>{let t=Le(e.reduce((e,t)=>e+Ie(t).length,0)),n=0;return e.forEach(e=>{t.set(e,n),n+=e.length}),t},qe=(e=Ae)=>We().getRandomValues(Le(e)),Je=BigInt,Ye=(e,t,n,r=`bad number: out of range`)=>Ne(e)&&t<=e&&e<n?e:Me(r),L=(e,t=Ce)=>{let n=e%t;return n>=0n?n:t+n},Xe=(1n<<255n)-1n,R=e=>{e<0n&&Me(`negative coordinate`);let t=(e>>255n)*19n+(e&Xe);return t=(t>>255n)*19n+(t&Xe),t%Ce},Ze=e=>L(e,we),Qe=(e,t)=>{(e===0n||t<=0n)&&Me(`no inverse n=`+e+` mod=`+t);let n=L(e,t),r=t,i=0n,a=1n,o=1n,s=0n;for(;n!==0n;){let e=r/n,t=r%n,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}return r===1n?L(i,t):Me(`no inverse`)},$e=e=>{let t=xt[e];return typeof t!=`function`&&Me(`hashes.`+e+` not set`),t},et=e=>e instanceof nt?e:Me(`Point expected`),tt=2n**256n,nt=class e{static BASE;static ZERO;X;Y;Z;T;constructor(e,t,n,r){let i=tt;this.X=Ye(e,0n,i),this.Y=Ye(t,0n,i),this.Z=Ye(n,1n,i),this.T=Ye(r,0n,i),Object.freeze(this)}static CURVE(){return Se}static fromAffine(t){return new e(t.x,t.y,1n,R(t.x*t.y))}static fromBytes(t,n=!1){let r=Oe,i=Re(Ie(t,Ae)),a=t[31];i[31]=a&-129;let o=ot(i);Ye(o,0n,n?tt:Ce);let s=R(o*o),{isValid:c,value:l}=ut(L(s-1n),R(r*s+1n));c||Me(`bad point: y not sqrt`);let u=(l&1n)==1n,d=(a&128)!=0;return!n&&l===0n&&d&&Me(`bad point: x==0, isLastByteOdd`),d!==u&&(l=L(-l)),new e(l,o,1n,R(l*o))}static fromHex(t,n){return e.fromBytes(Ue(t),n)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}assertValidity(){let e=De,t=Oe,n=this;if(n.is0())return Me(`bad point: ZERO`);let{X:r,Y:i,Z:a,T:o}=n,s=R(r*r),c=R(i*i),l=R(a*a),u=R(l*l);return R(l*(R(s*e)+c))===L(u+R(t*R(s*c)))?R(r*i)===R(a*o)?this:Me(`bad point: equation left != right (2)`):Me(`bad point: equation left != right (1)`)}equals(e){let{X:t,Y:n,Z:r}=this,{X:i,Y:a,Z:o}=et(e),s=R(t*o),c=R(i*r),l=R(n*o),u=R(a*r);return s===c&&l===u}is0(){return this.equals(it)}negate(){return new e(L(-this.X),this.Y,this.Z,L(-this.T))}double(){let{X:t,Y:n,Z:r}=this,i=De,a=R(t*t),o=R(n*n),s=R(2n*r*r),c=R(i*a),l=L(t+n),u=L(R(l*l)-a-o),d=L(c+o),f=L(d-s),p=L(c-o),m=R(u*f),h=R(d*p),g=R(u*p);return new e(m,h,R(f*d),g)}add(t){let{X:n,Y:r,Z:i,T:a}=this,{X:o,Y:s,Z:c,T:l}=et(t),u=De,d=Oe,f=R(n*o),p=R(r*s),m=R(R(a*d)*l),h=R(i*c),g=L(R(L(n+r)*L(o+s))-f-p),_=L(h-m),v=L(h+m),y=L(p-R(u*f)),b=R(g*_),x=R(v*y),S=R(g*y);return new e(b,x,R(_*v),S)}subtract(e){return this.add(et(e).negate())}multiply(e,t=!0){if(!t&&(e===0n||this.is0()))return it;if(Ye(e,1n,we),e===1n)return this;if(this.equals(rt))return kt(e).p;let n=it,r=rt;for(let i=this;e>0n;i=i.double(),e>>=1n)e&1n?n=n.add(i):t&&(r=r.add(i));return n}multiplyUnsafe(e){return this.multiply(e,!1)}toAffine(){let{X:e,Y:t,Z:n}=this;if(this.equals(it))return{x:0n,y:1n};let r=Qe(n,Ce);return R(n*r)!==1n&&Me(`invalid inverse`),{x:R(e*r),y:R(t*r)}}toBytes(){let{x:e,y:t}=this.toAffine(),n=at(t);return n[31]|=e&1n?128:0,n}toHex(){return Be(this.toBytes())}clearCofactor(){return this.multiply(Je(ke),!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){let e=this.multiply(we/2n,!1).double();return we%2n&&(e=e.add(this)),e.is0()}},rt=new nt(Te,Ee,1n,L(Te*Ee)),it=new nt(0n,1n,1n,0n);nt.BASE=rt,nt.ZERO=it;var at=e=>Ue(ze(Ye(e,0n,tt),64)).reverse(),ot=e=>Je(`0x`+Be(Re(Ie(e)).reverse())),st=(e,t)=>{let n=e;for(;t-- >0n;)n=R(n*n);return n},ct=e=>{let t=R(R(e*e)*e),n=R(st(R(st(t,2n)*t),1n)*e),r=R(st(n,5n)*n),i=R(st(r,10n)*r),a=R(st(i,20n)*i),o=R(st(a,40n)*a);return{pow_p_5_8:R(st(R(st(R(st(R(st(o,80n)*o),80n)*o),10n)*r),2n)*e),b2:t}},lt=19681161376707505956807079304988542015446066515923890162744021073123829784752n,ut=(e,t)=>{let n=R(t*R(t*t)),r=ct(R(e*R(R(n*n)*t))).pow_p_5_8,i=R(e*R(n*r)),a=R(t*R(i*i)),o=i,s=R(i*lt),c=a===e,l=a===L(-e),u=a===L(-e*lt);return c&&(i=o),(l||u)&&(i=s),(L(i)&1n)==1n&&(i=L(-i)),{isValid:c||l,value:i}},dt=e=>Ze(ot(e)),ft=(...e)=>xt.sha512Async(Ke(...e)),pt=(...e)=>$e(`sha512`)(Ke(...e)),mt=e=>{let t=e.slice(0,32);t[0]&=248,t[31]&=127,t[31]|=64;let n=e.slice(32,64),r=dt(t),i=rt.multiply(r);return{head:t,prefix:n,scalar:r,point:i,pointBytes:i.toBytes()}},ht=e=>ft(Ie(e,Ae)).then(mt),gt=e=>mt(pt(Ie(e,Ae))),_t=e=>ht(e).then(e=>e.pointBytes),vt=e=>ft(e.hashable).then(e.finish),yt=(e,t,n)=>{let{pointBytes:r,scalar:i}=e,a=dt(t),o=rt.multiply(a).toBytes();return{hashable:Ke(o,r,n),finish:e=>Ie(Ke(o,at(Ze(a+dt(e)*i))),64)}},bt=async(e,t)=>{let n=Ie(e),r=await ht(t);return vt(yt(r,await ft(r.prefix,n),n))},xt={sha512Async:async e=>{let t=Ge(),n=Ke(e);return Le(await t.digest(`SHA-512`,n.buffer))},sha512:void 0},St={getExtendedPublicKeyAsync:ht,getExtendedPublicKey:gt,randomSecretKey:(e=qe(Ae))=>e},Ct=8,wt=Math.ceil(256/Ct)+1,Tt=2**(Ct-1),Et=()=>{let e=[],t=rt,n=t;for(let r=0;r<wt;r++){n=t,e.push(n);for(let r=1;r<Tt;r++)n=n.add(t),e.push(n);t=n.double()}return e},Dt=void 0,Ot=(e,t)=>{let n=t.negate();return e?n:t},kt=e=>{let t=Dt||=Et(),n=it,r=rt,i=2**Ct,a=i,o=Je(i-1),s=Je(Ct);for(let i=0;i<wt;i++){let c=Number(e&o);e>>=s,c>Tt&&(c-=a,e+=1n);let l=i*Tt,u=l,d=l+Math.abs(c)-1,f=i%2!=0,p=c<0;c===0?r=r.add(Ot(f,t[u])):n=n.add(Ot(p,t[d]))}return e!==0n&&Me(`invalid wnaf`),{p:n,f:r}},At=`openclaw-device-identity-v1`;function jt(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/g,``)}function Mt(e){let t=e.replaceAll(`-`,`+`).replaceAll(`_`,`/`),n=t+`=`.repeat((4-t.length%4)%4),r=atob(n),i=new Uint8Array(r.length);for(let e=0;e<r.length;e+=1)i[e]=r.charCodeAt(e);return i}function Nt(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}async function Pt(e){let t=await crypto.subtle.digest(`SHA-256`,e.slice().buffer);return Nt(new Uint8Array(t))}async function Ft(){let e=St.randomSecretKey(),t=await _t(e);return{deviceId:await Pt(t),publicKey:jt(t),privateKey:jt(e)}}async function It(){let e=m();try{let t=e?.getItem(At);if(t){let n=JSON.parse(t);if(n?.version===1&&typeof n.deviceId==`string`&&typeof n.publicKey==`string`&&typeof n.privateKey==`string`){let t=await Pt(Mt(n.publicKey));if(t!==n.deviceId){let r={...n,deviceId:t};return e?.setItem(At,JSON.stringify(r)),{deviceId:t,publicKey:n.publicKey,privateKey:n.privateKey}}return{deviceId:n.deviceId,publicKey:n.publicKey,privateKey:n.privateKey}}}}catch{}let t=await Ft(),n={version:1,deviceId:t.deviceId,publicKey:t.publicKey,privateKey:t.privateKey,createdAtMs:Date.now()};return e?.setItem(At,JSON.stringify(n)),t}async function Lt(e,t){let n=Mt(e);return jt(await bt(new TextEncoder().encode(t),n))}var Rt=!1;function zt(e){e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=``;for(let n=0;n<e.length;n++)t+=e[n].toString(16).padStart(2,`0`);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function Bt(){Rt||(Rt=!0,console.warn(`[uuid] crypto API missing; refusing insecure UUID generation`))}function Vt(e=globalThis.crypto){if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=new Uint8Array(16);return e.getRandomValues(t),zt(t)}throw Bt(),Error(`Web Crypto is required for UUID generation`)}var Ht=class extends Error{constructor(e){super(e.message),this.name=`GatewayRequestError`,this.gatewayCode=e.code,this.details=e.details}};function Ut(e){return ae(e?.details)}function Wt(e){if(!e)return!1;let t=Ut(e);return t===F.AUTH_TOKEN_MISSING||t===F.AUTH_BOOTSTRAP_TOKEN_INVALID||t===F.AUTH_PASSWORD_MISSING||t===F.AUTH_PASSWORD_MISMATCH||t===F.AUTH_RATE_LIMITED||t===F.PAIRING_REQUIRED||t===F.CONTROL_UI_DEVICE_IDENTITY_REQUIRED||t===F.DEVICE_IDENTITY_REQUIRED}function Gt(e){try{let t=new URL(e,window.location.href),n=k(t.hostname),r=n===`localhost`||n===`::1`||n===`[::1]`||n===`127.0.0.1`,i=n.startsWith(`127.`);if(r||i)return!0;let a=new URL(window.location.href);return t.host===a.host}catch{return!1}}var Kt=`operator`,qt=[`operator.admin`,`operator.read`,`operator.write`,`operator.approvals`,`operator.pairing`],Jt=4008;function Yt(e){let t=e.authToken;if(t||e.authPassword)return{token:t,deviceToken:e.authDeviceToken??e.resolvedDeviceToken,password:e.authPassword}}async function Xt(e){let{deviceIdentity:t}=e;if(!t)return;let n=Date.now(),r=e.connectNonce??``,i=se({deviceId:t.deviceId,clientId:e.client.id,clientMode:e.client.mode,role:e.role,scopes:e.scopes,signedAtMs:n,token:e.authToken??null,nonce:r}),a=await Lt(t.privateKey,i);return{id:t.deviceId,publicKey:t.publicKey,signature:a,signedAt:n,nonce:r}}function Zt(e){return!e.deviceTokenRetryBudgetUsed&&!e.authDeviceToken&&!!e.explicitGatewayToken&&!!e.deviceIdentity&&!!e.storedToken&&e.canRetryWithDeviceTokenHint&&Gt(e.url)}var Qt=class{constructor(e){this.opts=e,this.ws=null,this.pending=new Map,this.closed=!1,this.lastSeq=null,this.connectNonce=null,this.connectSent=!1,this.connectTimer=null,this.backoffMs=800,this.pendingDeviceTokenRetry=!1,this.deviceTokenRetryBudgetUsed=!1}start(){this.closed=!1,this.connect()}stop(){this.closed=!0,this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null),this.ws?.close(),this.ws=null,this.pendingConnectError=void 0,this.pendingDeviceTokenRetry=!1,this.deviceTokenRetryBudgetUsed=!1,this.flushPending(Error(`gateway client stopped`))}get connected(){return this.ws?.readyState===WebSocket.OPEN}connect(){this.closed||(this.ws=new WebSocket(this.opts.url),this.ws.addEventListener(`open`,()=>this.queueConnect()),this.ws.addEventListener(`message`,e=>this.handleMessage(String(e.data??``))),this.ws.addEventListener(`close`,e=>{let t=String(e.reason??``),n=this.pendingConnectError;this.pendingConnectError=void 0,this.ws=null,this.flushPending(Error(`gateway closed (${e.code}): ${t}`)),this.opts.onClose?.({code:e.code,reason:t,error:n}),!(Ut(n)===F.AUTH_TOKEN_MISMATCH&&this.deviceTokenRetryBudgetUsed&&!this.pendingDeviceTokenRetry)&&(Wt(n)||this.scheduleReconnect())}),this.ws.addEventListener(`error`,()=>{}))}scheduleReconnect(){if(this.closed)return;let e=this.backoffMs;this.backoffMs=Math.min(this.backoffMs*1.7,15e3),window.setTimeout(()=>this.connect(),e)}flushPending(e){for(let[,t]of this.pending)t.reject(e);this.pending.clear()}buildConnectClient(){return{id:this.opts.clientName??le.CONTROL_UI,version:this.opts.clientVersion??`control-ui`,platform:this.opts.platform??navigator.platform??`web`,mode:this.opts.mode??ue.WEBCHAT,instanceId:this.opts.instanceId}}buildConnectParams(e){return{minProtocol:3,maxProtocol:3,client:e.client,role:e.role,scopes:e.scopes,device:e.device,caps:[`tool-events`],auth:e.auth,userAgent:navigator.userAgent,locale:navigator.language}}async buildConnectPlan(){let e=Kt,t=[...qt],n=this.buildConnectClient(),r=O(this.opts.token),i=O(this.opts.password),a=typeof crypto<`u`&&!!crypto.subtle,o=null,s={authToken:r,authPassword:i,canFallbackToShared:!1};return a&&(o=await It(),s=this.selectConnectAuth({role:e,deviceId:o.deviceId}),this.pendingDeviceTokenRetry&&s.authDeviceToken&&(this.pendingDeviceTokenRetry=!1)),{role:e,scopes:t,client:n,explicitGatewayToken:r,selectedAuth:s,auth:Yt(s),deviceIdentity:o,device:await Xt({deviceIdentity:o,client:n,role:e,scopes:t,authToken:s.authToken,connectNonce:this.connectNonce})}}handleConnectHello(e,t){this.pendingDeviceTokenRetry=!1,this.deviceTokenRetryBudgetUsed=!1,e?.auth?.deviceToken&&t.deviceIdentity&&be({deviceId:t.deviceIdentity.deviceId,role:e.auth.role??t.role,token:e.auth.deviceToken,scopes:e.auth.scopes??[]}),this.backoffMs=800,this.opts.onHello?.(e)}handleConnectFailure(e,t){let n=e instanceof Ht?Ut(e):null,r=e instanceof Ht?oe(e.details):{},i=r.recommendedNextStep===`retry_with_device_token`,a=r.canRetryWithDeviceToken===!0||i||n===F.AUTH_TOKEN_MISMATCH;Zt({deviceTokenRetryBudgetUsed:this.deviceTokenRetryBudgetUsed,authDeviceToken:t.selectedAuth.authDeviceToken,explicitGatewayToken:t.explicitGatewayToken,deviceIdentity:t.deviceIdentity,storedToken:t.selectedAuth.storedToken,canRetryWithDeviceTokenHint:a,url:this.opts.url})&&(this.pendingDeviceTokenRetry=!0,this.deviceTokenRetryBudgetUsed=!0),e instanceof Ht?this.pendingConnectError={code:e.gatewayCode,message:e.message,details:e.details}:this.pendingConnectError=void 0,t.selectedAuth.canFallbackToShared&&t.deviceIdentity&&n===F.AUTH_DEVICE_TOKEN_MISMATCH&&xe({deviceId:t.deviceIdentity.deviceId,role:t.role}),this.ws?.close(Jt,`connect failed`)}async sendConnect(){if(this.connectSent)return;this.connectSent=!0,this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null);let e=await this.buildConnectPlan();this.request(`connect`,this.buildConnectParams(e)).then(t=>this.handleConnectHello(t,e)).catch(t=>this.handleConnectFailure(t,e))}handleMessage(e){let t;try{t=JSON.parse(e)}catch{return}let n=t;if(n.type===`event`){let e=t;if(e.event===`connect.challenge`){let t=e.payload,n=t&&typeof t.nonce==`string`?t.nonce:null;n&&(this.connectNonce=n,this.sendConnect());return}let n=typeof e.seq==`number`?e.seq:null;n!==null&&(this.lastSeq!==null&&n>this.lastSeq+1&&this.opts.onGap?.({expected:this.lastSeq+1,received:n}),this.lastSeq=n);try{this.opts.onEvent?.(e)}catch(e){console.error(`[gateway] event handler error:`,e)}return}if(n.type===`res`){let e=t,n=this.pending.get(e.id);if(!n)return;this.pending.delete(e.id),e.ok?n.resolve(e.payload):n.reject(new Ht({code:e.error?.code??`UNAVAILABLE`,message:e.error?.message??`request failed`,details:e.error?.details}));return}}selectConnectAuth(e){let t=O(this.opts.token),n=O(this.opts.password),r=ye({deviceId:e.deviceId,role:e.role}),i=r?.scopes??[],a=e.role!==`operator`||i.includes(`operator.read`)||i.includes(`operator.write`)||i.includes(`operator.admin`)?r?.token:void 0,o=this.pendingDeviceTokenRetry&&!!t&&!!a&&Gt(this.opts.url),s=t||n?void 0:a??void 0;return{authToken:t??s,authDeviceToken:o?a??void 0:void 0,authPassword:n,resolvedDeviceToken:s,storedToken:a??void 0,canFallbackToShared:!!(a&&t)}}request(e,t){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return Promise.reject(Error(`gateway not connected`));let n=Vt(),r={type:`req`,id:n,method:e,params:t},i=new Promise((e,t)=>{this.pending.set(n,{resolve:t=>e(t),reject:t})});return this.ws.send(JSON.stringify(r)),i}queueConnect(){this.connectNonce=null,this.connectSent=!1,this.connectTimer!==null&&window.clearTimeout(this.connectTimer),this.connectTimer=window.setTimeout(()=>{this.sendConnect()},750)}};function $t(e){return e instanceof Ht?Ut(e)===F.AUTH_UNAUTHORIZED?!0:e.message.includes(`missing scope: operator.read`):!1}function en(e){return`This connection is missing operator.read, so ${e} cannot be loaded yet.`}async function tn(e,t){if(!(!e.client||!e.connected)&&!e.channelsLoading){e.channelsLoading=!0,e.channelsError=null;try{e.channelsSnapshot=await e.client.request(`channels.status`,{probe:t,timeoutMs:8e3}),e.channelsLastSuccess=Date.now()}catch(t){$t(t)?(e.channelsSnapshot=null,e.channelsError=en(`channel status`)):e.channelsError=String(t)}finally{e.channelsLoading=!1}}}async function nn(e,t){if(!(!e.client||!e.connected||e.whatsappBusy)){e.whatsappBusy=!0;try{let n=await e.client.request(`web.login.start`,{force:t,timeoutMs:3e4});e.whatsappLoginMessage=n.message??null,e.whatsappLoginQrDataUrl=n.qrDataUrl??null,e.whatsappLoginConnected=null}catch(t){e.whatsappLoginMessage=String(t),e.whatsappLoginQrDataUrl=null,e.whatsappLoginConnected=null}finally{e.whatsappBusy=!1}}}async function rn(e){if(!(!e.client||!e.connected||e.whatsappBusy)){e.whatsappBusy=!0;try{let t=await e.client.request(`web.login.wait`,{timeoutMs:12e4});e.whatsappLoginMessage=t.message??null,e.whatsappLoginConnected=t.connected??null,t.connected&&(e.whatsappLoginQrDataUrl=null)}catch(t){e.whatsappLoginMessage=String(t),e.whatsappLoginConnected=null}finally{e.whatsappBusy=!1}}}async function an(e){if(!(!e.client||!e.connected||e.whatsappBusy)){e.whatsappBusy=!0;try{await e.client.request(`channels.logout`,{channel:`whatsapp`}),e.whatsappLoginMessage=`Logged out.`,e.whatsappLoginQrDataUrl=null,e.whatsappLoginConnected=null}catch(t){e.whatsappLoginMessage=String(t)}finally{e.whatsappBusy=!1}}}function on(e){if(e)return Array.isArray(e.type)?e.type.filter(e=>e!==`null`)[0]??e.type[0]:e.type}function sn(e){if(!e)return``;if(e.default!==void 0)return e.default;switch(on(e)){case`object`:return{};case`array`:return[];case`boolean`:return!1;case`number`:case`integer`:return 0;case`string`:return``;default:return``}}function cn(e){return e.filter(e=>typeof e==`string`).join(`.`)}function ln(e,t){let n=cn(e),r=t[n];if(r)return r;let i=n.split(`.`);for(let[e,n]of Object.entries(t)){if(!e.includes(`*`))continue;let t=e.split(`.`);if(t.length!==i.length)continue;let r=!0;for(let e=0;e<i.length;e+=1)if(t[e]!==`*`&&t[e]!==i[e]){r=!1;break}if(r)return n}}var un={Enabled:`已启用`,Mode:`模式`,Path:`路径`,Port:`端口`,"Timeout Ms":`超时 (毫秒)`,"Timeout Seconds":`超时 (秒)`,"Max Bytes":`最大字节数`,"Max Chars":`最大字符数`,"Max Redirects":`最大重定向次数`,"Max Pages":`最大页数`,"Max Pixels":`最大像素`,"Max Tokens":`最大令牌数`,"Max Concurrent":`最大并发数`,"Max Attempts":`最大尝试次数`,"Max Body Bytes":`最大请求体字节数`,"Max Text Length":`最大文本长度`,"Max Attachments":`最大附件数`,"Min Chars":`最小字符数`,"Min Text Chars":`最小文本字符数`,"Debounce Ms":`防抖 (毫秒)`,"Base Url":`基础 URL`,"Api Key":`API 密钥`,Token:`令牌`,Model:`模型`,"Model Id":`模型 ID`,Provider:`提供商`,Language:`语言`,"Language Code":`语言代码`,Lang:`语言`,Bind:`绑定`,Default:`默认值`,Level:`级别`,Label:`标签`,Strategy:`策略`,Scope:`范围`,Store:`存储`,Seed:`种子`,Prompt:`提示词`,Color:`颜色`,Rate:`速率`,Speed:`速度`,Pitch:`音调`,Volume:`音量`,Voice:`语音`,"Voice Id":`语音 ID`,Region:`区域`,Domain:`域名`,User:`用户`,Proxy:`代理`,Root:`根目录`,File:`文件`,Factor:`因子`,Start:`开始`,End:`结束`,Cap:`上限`,Ttl:`存活时间`,Jitter:`抖动`,Image:`图像`,Topic:`主题`,Target:`目标`,Account:`账户`,Transport:`传输`,Driver:`驱动`,Network:`网络`,Memory:`内存`,"Memory Swap":`内存交换`,Workdir:`工作目录`,Cpus:`CPU 数量`,Placeholder:`占位符`,Subscription:`订阅`,To:`目标`,Every:`间隔`,Thinking:`思考`,"Thinking Default":`默认思考`,Style:`样式`,Prefer:`偏好`,Drop:`丢弃`,Auto:`自动`,Wait:`等待`,Session:`会话`,Diagnostics:`诊断`,Approvals:`审批`,Media:`媒体`,NodeHost:`节点主机`,"Node Host":`节点主机`,Browser:`浏览器`,Tools:`工具`,Web:`网页`,Auth:`认证`,Http:`HTTP`,HTTP:`HTTP`,Endpoints:`端点`,Responses:`响应`,Files:`文件`,Images:`图像`,Pdf:`PDF`,PDF:`PDF`,"Chat Completions":`聊天补全`,"Control Ui":`控制台 UI`,Reload:`重载`,Nodes:`节点`,"Browser Proxy":`浏览器代理`,"Cache Trace":`缓存追踪`,Otel:`OpenTelemetry`,OpenTelemetry:`OpenTelemetry`,Headers:`请求头`,Remote:`远程`,Defaults:`默认配置`,Exec:`执行`,"Apply Patch":`应用补丁`,Docker:`Docker`,Sandbox:`沙箱`,Elevated:`提权`,Message:`消息`,"Cross Context":`跨上下文`,Marker:`标记`,Broadcast:`广播`,Links:`链接`,Audio:`音频`,Video:`视频`,Search:`搜索`,Perplexity:`Perplexity`,Fetch:`获取`,Cooldowns:`冷却时间`,Profiles:`配置`,"Model Overrides":`模型覆盖`,"Human Delay":`人性化延迟`,"Image Model":`图像模型`,"Memory Search":`记忆搜索`,Local:`本地`,Batch:`批处理`,Query:`查询`,Hybrid:`混合`,Cache:`缓存`,Chunking:`分块`,Sync:`同步`,Sessions:`会话`,Vector:`向量`,Compaction:`压缩`,"Hard Clear":`硬清除`,"Soft Trim":`软裁剪`,"Context Pruning":`上下文修剪`,Prune:`修剪`,Subagents:`子代理`,Inbound:`入站`,Outbound:`出站`,Tts:`语音合成`,TTS:`语音合成`,Edge:`Edge`,Openai:`OpenAI`,OpenAI:`OpenAI`,Elevenlabs:`ElevenLabs`,ElevenLabs:`ElevenLabs`,Deepgram:`Deepgram`,"Voice Settings":`语音设置`,"Voice Aliases":`语音别名`,"Provider Options":`提供商选项`,Streaming:`流式传输`,"Block Streaming Chunk":`块流分块`,"Block Streaming Coalesce":`块流合并`,Stt:`语音转文本`,STT:`语音转文本`,Transcription:`转录`,Dm:`私信`,DM:`私信`,Reconnect:`重连`,Thread:`线程`,"Group Chat":`群聊`,Group:`群组`,Tls:`TLS`,TLS:`TLS`,Tailscale:`Tailscale`,Serve:`服务`,Tunnel:`隧道`,Twilio:`Twilio`,Telnyx:`Telnyx`,Plivo:`Plivo`,"Identity Links":`身份链接`,"Agent To Agent":`代理间`,Reset:`重置`,"Reset By Channel":`按渠道重置`,"Reset By Type":`按类型重置`,Queue:`队列`,"Shell Env":`Shell 环境`,Env:`环境变量`,Vars:`变量`,Heartbeat:`心跳`,Mdns:`mDNS`,mDNS:`mDNS`,"Wide Area":`广域`,Load:`加载`,Entries:`条目`,Installs:`安装`,Install:`安装`,"Active Hours":`活跃时段`,"Allow From":`允许来源`,"Send Policy":`发送策略`,"By Channel":`按渠道`,"Debounce Ms By Channel":`按渠道防抖`,Assistant:`助手`,"Memory Flush":`内存刷新`,Embedding:`嵌入`,Experimental:`实验性`,Internal:`内部`,"LLM Task":`LLM 任务`,"LLM Task Config":`LLM 任务配置`,Lobster:`Lobster`,"Lobster Config":`Lobster 配置`,OpenProse:`OpenProse`,"OpenProse Config":`OpenProse 配置`,"Memory (Core)":`记忆 (核心)`,"Memory (Core) Config":`记忆 (核心) 配置`,"Bedrock Discovery":`Bedrock 发现`,Providers:`提供商`,Gmail:`Gmail`,Webchat:`网页聊天`,"Allow Tailscale":`允许 Tailscale`,"Allow Host Control":`允许主机控制`,"Allow Model Id":`允许模型 ID`,"Allow Normalization":`允许规范化`,"Allow Provider":`允许提供商`,"Allow Seed":`允许种子`,"Allow Text":`允许文本`,"Allow Unsafe External Content":`允许不安全的外部内容`,"Allow Url":`允许 URL`,"Allow Voice":`允许语音`,"Allow Voice Settings":`允许语音设置`,"Attach Only":`仅附加`,"Auto Generate":`自动生成`,"Auto Start":`自动启动`,"Auto-Capture":`自动捕获`,"Auto-Recall":`自动回忆`,"Detect Language":`检测语言`,"Enable Streaming":`启用流式传输`,"Enable LLM Task":`启用 LLM 任务`,"Enable Lobster":`启用 Lobster`,"Enable Memory (Core)":`启用记忆 (核心)`,"Enable No Vnc":`启用 NoVNC`,"Enable OpenProse":`启用 OpenProse`,"Enable qwen-portal-auth":`启用 qwen-portal-auth`,"Skip Signature Verification":`跳过签名验证`,Headless:`无头模式`,"Include Body":`包含请求体`,"Include Reasoning":`包含推理`,"Interrupt On Speech":`语音中断`,"Live Reload":`实时重载`,"No Sandbox":`无沙箱`,"Per Session":`每会话`,"Prefer Brew":`优先 Brew`,"Preserve Filenames":`保留文件名`,Punctuate:`标点`,"Read Only Root":`只读根目录`,"Remove Ack After Reply":`回复后移除确认`,"Reset On Exit":`退出时重置`,"Save Subtitles":`保存字幕`,"Skip Bootstrap":`跳过引导`,"Smart Format":`智能格式`,"Use Speaker Boost":`使用扬声器增强`,"Agent Filter":`代理过滤器`,Allow:`允许列表`,"Allow Bundled":`允许捆绑`,"Allowed Mimes":`允许的 MIME 类型`,"Allowed Models":`允许的模型`,"Also Allow":`同时允许`,Binds:`绑定`,"Cap Drop":`丢弃权限`,Command:`命令`,Deny:`拒绝列表`,Dns:`DNS`,DNS:`DNS`,"Extra Dirs":`额外目录`,"Extra Hosts":`额外主机`,Handlers:`处理器`,"Inbound Allowlist":`入站白名单`,Mappings:`映射`,"Mention Patterns":`提及模式`,Presets:`预设`,"Provider Filter":`提供商过滤器`,"Redact Patterns":`脱敏模式`,"Reset Triggers":`重置触发器`,Rules:`规则`,"Session Filter":`会话过滤器`,Targets:`目标`,Tmpfs:`临时文件系统`,"Trusted Proxies":`可信代理`,"Last Run At":`上次运行时间`,"Last Run Command":`上次运行命令`,"Last Run Commit":`上次运行提交`,"Last Run Mode":`上次运行模式`,"Last Run Version":`上次运行版本`,"Console Level":`控制台级别`,"Console Style":`控制台样式`,"Database Path":`数据库路径`,"Context Tokens":`上下文令牌数`,"Default Auth Profile Id":`默认认证配置 ID`,"Default Call Mode":`默认呼叫模式`,"Default Context Window":`默认上下文窗口`,"Default Max Tokens":`默认最大令牌数`,"Default Model":`默认模型`,"Default Profile":`默认配置`,"Default Provider":`默认提供商`,"Default To Number":`默认目标号码`,"Embedding Model":`嵌入模型`,"Executable Path":`可执行路径`,"From Number":`来源号码`,"Head Chars":`头部字符数`,"Heartbeat Seconds":`心跳间隔 (秒)`,"History Limit":`历史限制`,"Hook Url":`钩子 URL`,"Idle Hours":`空闲小时数`,"Idle Minutes":`空闲分钟数`,"Idle Ms":`空闲 (毫秒)`,"Initial Ms":`初始 (毫秒)`,"Interval Minutes":`间隔分钟数`,"Keep Last Assistants":`保留最后助手数`,"Key Path":`密钥路径`,"Main Key":`主密钥`,"Max Age Days":`最大天数`,"Max Concurrent Calls":`最大并发呼叫数`,"Max Concurrent Runs":`最大并发运行数`,"Max Duration Seconds":`最大持续时间 (秒)`,"Max History Share":`最大历史共享`,"Max Ms":`最大 (毫秒)`,"Message Prefix":`消息前缀`,"Min Prunable Tool Chars":`最小可修剪工具字符数`,"Notify Hangup Delay (sec)":`挂断通知延迟 (秒)`,"Output Format":`输出格式`,"Pids Limit":`进程数限制`,"Poll Interval Ms":`轮询间隔 (毫秒)`,"Prefs Path":`偏好路径`,"Redact Sensitive":`脱敏敏感信息`,"Refresh Interval":`刷新间隔`,"Renew Every Minutes":`续订间隔 (分钟)`,"Reserve Tokens Floor":`保留令牌下限`,"Response Model":`响应模型`,"Response Prefix":`响应前缀`,"Response System Prompt":`响应系统提示词`,"Response Timeout (ms)":`响应超时 (毫秒)`,"Ring Timeout Ms":`响铃超时 (毫秒)`,"Session Tools Visibility":`会话工具可见性`,"Setup Command":`设置命令`,"Silence Duration Ms":`静音持续 (毫秒)`,"Silence Timeout Ms":`静音超时 (毫秒)`,"Similarity Boost":`相似度增强`,"Soft Threshold Tokens":`软阈值令牌数`,"Soft Trim Ratio":`软裁剪比例`,Stability:`稳定性`,"Summary Model":`摘要模型`,"System Prompt":`系统提示词`,"Tail Chars":`尾部字符数`,"Time Format":`时间格式`,"Timeout Minutes":`超时 (分钟)`,"Timeout Sec":`超时 (秒)`,Timezone:`时区`,"Transcript Timeout Ms":`转录超时 (毫秒)`,"Transforms Dir":`转换目录`,"Typing Interval Seconds":`输入间隔 (秒)`,"Typing Mode":`输入模式`,"User Timezone":`用户时区`,"Vad Threshold":`语音活动检测阈值`,"Verbose Default":`默认详细模式`,"Workspace Access":`工作空间访问`,"Workspace Root":`工作空间根目录`,"Ack Max Chars":`确认最大字符数`,"Apply Text Normalization":`应用文本规范化`,"Archive After Minutes":`归档间隔 (分钟)`,"At Hour":`在小时`,"Auth Id":`认证 ID`,"Auth Token":`认证令牌`,"Auto Start Timeout Ms":`自动启动超时 (毫秒)`,"Background Ms":`后台 (毫秒)`,"Block Streaming Break":`块流中断`,"Block Streaming Default":`块流默认`,"Break Preference":`断行偏好`,"Ca Path":`CA 路径`,"Call Log Store Path":`呼叫日志存储路径`,"Cdp Port":`CDP 端口`,"Cdp Url":`CDP URL`,"CDP URL":`CDP URL`,"Cert Path":`证书路径`,"Cleanup Ms":`清理 (毫秒)`,"Container Prefix":`容器前缀`,Discord:`Discord`,"Elevated Default":`提权默认值`,"Hard Clear Ratio":`硬清除比例`,Imessage:`iMessage`,iMessage:`iMessage`,"Inbound Greeting":`入站问候语`,"Inbound Policy":`入站策略`,Mattermost:`Mattermost`,"Media Max Mb":`媒体最大 MB`,"Media Stream Path":`媒体流路径`,"Model Cache Dir":`模型缓存目录`,Msteams:`MS Teams`,"MS Teams":`MS Teams`,"Node Manager":`节点管理器`,"No Vnc Port":`NoVNC 端口`,"Public Webhook URL":`公共 Webhook URL`,"Push Token":`推送令牌`,"Realtime STT Model":`实时语音转文本模型`,"Seccomp Profile":`Seccomp 配置`,"Apparmor Profile":`AppArmor 配置`,Signal:`Signal`,Slack:`Slack`,"Stt Provider":`语音转文本提供商`,"Tailscale Mode":`Tailscale 模式`,"Tailscale Path":`Tailscale 路径`,Telegram:`Telegram`,"TTS Provider Override":`语音合成提供商覆盖`,"Tunnel Provider":`隧道提供商`,"Vnc Port":`VNC 端口`,"Webhook Bind":`Webhook 绑定`,"Webhook Path":`Webhook 路径`,"Webhook Port":`Webhook 端口`,Whatsapp:`WhatsApp`,WhatsApp:`WhatsApp`,"ElevenLabs API Key":`ElevenLabs API 密钥`,"ElevenLabs Base URL":`ElevenLabs 基础 URL`,"ElevenLabs Model ID":`ElevenLabs 模型 ID`,"ElevenLabs Voice ID":`ElevenLabs 语音 ID`,"OpenAI API Key":`OpenAI API 密钥`,"OpenAI Realtime API Key":`OpenAI 实时 API 密钥`,"OpenAI TTS Model":`OpenAI 语音合成模型`,"OpenAI TTS Voice":`OpenAI 语音合成声音`,"Telnyx API Key":`Telnyx API 密钥`,"Telnyx Connection ID":`Telnyx 连接 ID`,"Telnyx Public Key":`Telnyx 公钥`,"Twilio Account SID":`Twilio 账户 SID`,"Twilio Auth Token":`Twilio 认证令牌`,"ngrok Auth Token":`ngrok 认证令牌`,"ngrok Domain":`ngrok 域名`,"Allow ngrok Free Tier (Loopback Bypass)":`允许 ngrok 免费版 (回环绕过)`,"@openclaw/bluebubbles":`@openclaw/bluebubbles`,"@openclaw/bluebubbles Config":`@openclaw/bluebubbles 配置`,"@openclaw/copilot-proxy":`@openclaw/copilot-proxy`,"@openclaw/copilot-proxy Config":`@openclaw/copilot-proxy 配置`,"@openclaw/diagnostics-otel":`@openclaw/diagnostics-otel`,"@openclaw/diagnostics-otel Config":`@openclaw/diagnostics-otel 配置`,"@openclaw/discord":`@openclaw/discord`,"@openclaw/discord Config":`@openclaw/discord 配置`,"@openclaw/google-antigravity-auth":`@openclaw/google-antigravity-auth`,"@openclaw/google-antigravity-auth Config":`@openclaw/google-antigravity-auth 配置`,"@openclaw/google-gemini-cli-auth":`@openclaw/google-gemini-cli-auth`,"@openclaw/google-gemini-cli-auth Config":`@openclaw/google-gemini-cli-auth 配置`,"@openclaw/googlechat":`@openclaw/googlechat`,"@openclaw/googlechat Config":`@openclaw/googlechat 配置`,"@openclaw/imessage":`@openclaw/imessage`,"@openclaw/imessage Config":`@openclaw/imessage 配置`,"@openclaw/line":`@openclaw/line`,"@openclaw/line Config":`@openclaw/line 配置`,"@openclaw/matrix":`@openclaw/matrix`,"@openclaw/matrix Config":`@openclaw/matrix 配置`,"@openclaw/mattermost":`@openclaw/mattermost`,"@openclaw/mattermost Config":`@openclaw/mattermost 配置`,"@openclaw/memory-lancedb":`@openclaw/memory-lancedb`,"@openclaw/memory-lancedb Config":`@openclaw/memory-lancedb 配置`,"@openclaw/msteams":`@openclaw/msteams`,"@openclaw/msteams Config":`@openclaw/msteams 配置`,"@openclaw/nextcloud-talk":`@openclaw/nextcloud-talk`,"@openclaw/nextcloud-talk Config":`@openclaw/nextcloud-talk 配置`,"@openclaw/nostr":`@openclaw/nostr`,"@openclaw/nostr Config":`@openclaw/nostr 配置`,"@openclaw/signal":`@openclaw/signal`,"@openclaw/signal Config":`@openclaw/signal 配置`,"@openclaw/slack":`@openclaw/slack`,"@openclaw/slack Config":`@openclaw/slack 配置`,"@openclaw/telegram":`@openclaw/telegram`,"@openclaw/telegram Config":`@openclaw/telegram 配置`,"@openclaw/tlon":`@openclaw/tlon`,"@openclaw/tlon Config":`@openclaw/tlon 配置`,"@openclaw/twitch":`@openclaw/twitch`,"@openclaw/twitch Config":`@openclaw/twitch 配置`,"@openclaw/voice-call":`@openclaw/voice-call`,"@openclaw/voice-call Config":`@openclaw/voice-call 配置`,"@openclaw/whatsapp":`@openclaw/whatsapp`,"@openclaw/whatsapp Config":`@openclaw/whatsapp 配置`,"@openclaw/zalo":`@openclaw/zalo`,"@openclaw/zalo Config":`@openclaw/zalo 配置`,"@openclaw/zalouser":`@openclaw/zalouser`,"@openclaw/zalouser Config":`@openclaw/zalouser 配置`,"qwen-portal-auth Config":`qwen-portal-auth 配置`,"Enable @openclaw/bluebubbles":`启用 @openclaw/bluebubbles`,"Enable @openclaw/copilot-proxy":`启用 @openclaw/copilot-proxy`,"Enable @openclaw/diagnostics-otel":`启用 @openclaw/diagnostics-otel`,"Enable @openclaw/discord":`启用 @openclaw/discord`,"Enable @openclaw/google-antigravity-auth":`启用 @openclaw/google-antigravity-auth`,"Enable @openclaw/google-gemini-cli-auth":`启用 @openclaw/google-gemini-cli-auth`,"Enable @openclaw/googlechat":`启用 @openclaw/googlechat`,"Enable @openclaw/imessage":`启用 @openclaw/imessage`,"Enable @openclaw/line":`启用 @openclaw/line`,"Enable @openclaw/matrix":`启用 @openclaw/matrix`,"Enable @openclaw/mattermost":`启用 @openclaw/mattermost`,"Enable @openclaw/memory-lancedb":`启用 @openclaw/memory-lancedb`,"Enable @openclaw/msteams":`启用 @openclaw/msteams`,"Enable @openclaw/nextcloud-talk":`启用 @openclaw/nextcloud-talk`,"Enable @openclaw/nostr":`启用 @openclaw/nostr`,"Enable @openclaw/signal":`启用 @openclaw/signal`,"Enable @openclaw/slack":`启用 @openclaw/slack`,"Enable @openclaw/telegram":`启用 @openclaw/telegram`,"Enable @openclaw/tlon":`启用 @openclaw/tlon`,"Enable @openclaw/twitch":`启用 @openclaw/twitch`,"Enable @openclaw/voice-call":`启用 @openclaw/voice-call`,"Enable @openclaw/whatsapp":`启用 @openclaw/whatsapp`,"Enable @openclaw/zalo":`启用 @openclaw/zalo`,"Enable @openclaw/zalouser":`启用 @openclaw/zalouser`};function dn(e){let t=e.replace(/_/g,` `).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).replace(/^./,e=>e.toUpperCase());return un[t]||t}var fn=[`maxtokens`,`maxoutputtokens`,`maxinputtokens`,`maxcompletiontokens`,`contexttokens`,`totaltokens`,`tokencount`,`tokenlimit`,`tokenbudget`,`passwordfile`],pn=[/token$/i,/password/i,/secret/i,/api.?key/i,/serviceaccount(?:ref)?$/i],mn=/^\$\{[^}]*\}$/,hn=`[redacted - click reveal to view]`;function gn(e){return mn.test(e.trim())}function _n(e){let t=k(e);return!fn.some(e=>t.endsWith(e))&&pn.some(t=>t.test(e))}function vn(e){return typeof e==`string`?e.trim().length>0&&!gn(e):e!=null}function yn(e){return e?.sensitive??!1}function bn(e,t,n){let r=cn(t);return(yn(ln(t,n))||_n(r))&&vn(e)?!0:Array.isArray(e)?e.some((e,r)=>bn(e,[...t,r],n)):e&&typeof e==`object`?Object.entries(e).some(([e,r])=>bn(r,[...t,e],n)):!1}function xn(e,t,n){if(e==null)return 0;let r=cn(t);return(yn(ln(t,n))||_n(r))&&vn(e)?1:Array.isArray(e)?e.reduce((e,r,i)=>e+xn(r,[...t,i],n),0):e&&typeof e==`object`?Object.entries(e).reduce((e,[r,i])=>e+xn(i,[...t,r],n),0):0}function Sn(e,t){let n=e.trim();if(n===``)return;let r=Number(n);return!Number.isFinite(r)||t&&!Number.isInteger(r)?e:r}function Cn(e){let t=e.trim();return t===`true`?!0:t===`false`?!1:e}function wn(e,t){if(e==null)return e;if(t.allOf&&t.allOf.length>0){let n=e;for(let e of t.allOf)n=wn(n,e);return n}let n=on(t);if(t.anyOf||t.oneOf){let n=(t.anyOf??t.oneOf??[]).filter(e=>!(e.type===`null`||Array.isArray(e.type)&&e.type.includes(`null`)));if(n.length===1)return wn(e,n[0]);if(typeof e==`string`)for(let t of n){let n=on(t);if(n===`number`||n===`integer`){let t=Sn(e,n===`integer`);if(t===void 0||typeof t==`number`)return t}if(n===`boolean`){let t=Cn(e);if(typeof t==`boolean`)return t}}for(let t of n){let n=on(t);if(n===`object`&&typeof e==`object`&&!Array.isArray(e)||n===`array`&&Array.isArray(e))return wn(e,t)}return e}if(n===`number`||n===`integer`){if(typeof e==`string`){let t=Sn(e,n===`integer`);if(t===void 0||typeof t==`number`)return t}return e}if(n===`boolean`){if(typeof e==`string`){let t=Cn(e);if(typeof t==`boolean`)return t}return e}if(n===`object`){if(typeof e!=`object`||Array.isArray(e))return e;let n=e,r=t.properties??{},i=t.additionalProperties&&typeof t.additionalProperties==`object`?t.additionalProperties:null,a={};for(let[e,t]of Object.entries(n)){let n=r[e]??i,o=n?wn(t,n):t;o!==void 0&&(a[e]=o)}return a}if(n===`array`){if(!Array.isArray(e))return e;if(Array.isArray(t.items)){let n=t.items;return e.map((e,t)=>{let r=t<n.length?n[t]:void 0;return r?wn(e,r):e})}let n=t.items;return n?e.map(e=>wn(e,n)).filter(e=>e!==void 0):e}return e}function Tn(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function En(e){return`${JSON.stringify(e,null,2).trimEnd()}\n`}var Dn=new Set([`__proto__`,`prototype`,`constructor`]);function On(e){return typeof e==`string`&&Dn.has(e)}function kn(e,t,n){if(t.length===0||t.some(On))return null;let r=e;for(let e=0;e<t.length-1;e+=1){let i=t[e],a=t[e+1];if(typeof i==`number`){if(!Array.isArray(r))return null;if(r[i]==null){if(!n)return null;r[i]=typeof a==`number`?[]:{}}r=r[i];continue}if(typeof r!=`object`||!r)return null;let o=r;if(o[i]==null){if(!n)return null;o[i]=typeof a==`number`?[]:{}}r=o[i]}return{current:r,lastKey:t[t.length-1]}}function An(e,t,n){let r=kn(e,t,!0);if(r){if(typeof r.lastKey==`number`){Array.isArray(r.current)&&(r.current[r.lastKey]=n);return}typeof r.current==`object`&&r.current!=null&&(r.current[r.lastKey]=n)}}function jn(e,t){let n=kn(e,t,!1);if(n){if(typeof n.lastKey==`number`){Array.isArray(n.current)&&n.current.splice(n.lastKey,1);return}typeof n.current==`object`&&n.current!=null&&delete n.current[n.lastKey]}}async function Mn(e){if(!(!e.client||!e.connected)){e.configLoading=!0,e.lastError=null;try{Fn(e,await e.client.request(`config.get`,{}))}catch(t){e.lastError=String(t)}finally{e.configLoading=!1}}}async function Nn(e){if(!(!e.client||!e.connected)&&!e.configSchemaLoading){e.configSchemaLoading=!0;try{Pn(e,await e.client.request(`config.schema`,{}))}catch(t){e.lastError=String(t)}finally{e.configSchemaLoading=!1}}}function Pn(e,t){e.configSchema=t.schema??null,e.configUiHints=t.uiHints??{},e.configSchemaVersion=t.version??null}function Fn(e,t){e.configSnapshot=t,typeof t.raw!=`string`&&e.configFormMode===`raw`&&(e.configFormMode=`form`);let n=typeof t.raw==`string`?t.raw:t.config&&typeof t.config==`object`?En(t.config):e.configRaw;!e.configFormDirty||e.configFormMode===`raw`?e.configRaw=n:e.configForm?e.configRaw=En(e.configForm):e.configRaw=n,e.configValid=typeof t.valid==`boolean`?t.valid:null,e.configIssues=Array.isArray(t.issues)?t.issues:[],e.configFormDirty||(e.configForm=Tn(t.config??{}),e.configFormOriginal=Tn(t.config??{}),e.configRawOriginal=n)}function In(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function Ln(e){if(e.configFormMode===`raw`&&typeof e.configSnapshot?.raw!=`string`)throw Error(`Raw config editing is unavailable for this snapshot. Switch to Form mode.`);if(e.configFormMode!==`form`||!e.configForm)return e.configRaw;let t=In(e.configSchema);return En(t?wn(e.configForm,t):e.configForm)}async function Rn(e){if(!(!e.client||!e.connected)){e.configSaving=!0,e.lastError=null;try{let t=Ln(e),n=e.configSnapshot?.hash;if(!n){e.lastError=`Config hash missing; reload and retry.`;return}await e.client.request(`config.set`,{raw:t,baseHash:n}),e.configFormDirty=!1,await Mn(e)}catch(t){e.lastError=String(t)}finally{e.configSaving=!1}}}async function zn(e){if(!(!e.client||!e.connected)){e.configApplying=!0,e.lastError=null;try{let t=Ln(e),n=e.configSnapshot?.hash;if(!n){e.lastError=`Config hash missing; reload and retry.`;return}await e.client.request(`config.apply`,{raw:t,baseHash:n,sessionKey:e.applySessionKey}),e.configFormDirty=!1,await Mn(e)}catch(t){e.lastError=String(t)}finally{e.configApplying=!1}}}async function Bn(e){if(!(!e.client||!e.connected)){e.updateRunning=!0,e.lastError=null;try{let t=await e.client.request(`update.run`,{sessionKey:e.applySessionKey});t&&t.ok===!1&&(e.lastError=`Update ${t.result?.status??`error`}: ${t.result?.reason??`Update failed.`}`)}catch(t){e.lastError=String(t)}finally{e.updateRunning=!1}}}function Vn(e,t,n){let r=Tn(e.configForm??e.configSnapshot?.config??{});An(r,t,n),e.configForm=r,e.configFormDirty=!0,e.configFormMode===`form`&&(e.configRaw=En(r))}function Hn(e,t){let n=Tn(e.configForm??e.configSnapshot?.config??{});jn(n,t),e.configForm=n,e.configFormDirty=!0,e.configFormMode===`form`&&(e.configRaw=En(n))}function Un(e,t){let n=t.trim();if(!n)return-1;let r=e?.agents?.list;return Array.isArray(r)?r.findIndex(e=>e&&typeof e==`object`&&`id`in e&&e.id===n):-1}function Wn(e,t){let n=t.trim();if(!n)return-1;let r=e.configForm??e.configSnapshot?.config,i=Un(r,n);if(i>=0)return i;let a=r?.agents?.list,o=Array.isArray(a)?a.length:0;return Vn(e,[`agents`,`list`,o,`id`],n),o}async function Gn(e){if(!(!e.client||!e.connected))try{await e.client.request(`config.openFile`,{})}catch{let t=e.configSnapshot?.path;if(t)try{await navigator.clipboard.writeText(t)}catch{}}}function Kn(e){let{values:t,original:n}=e;return t.name!==n.name||t.displayName!==n.displayName||t.about!==n.about||t.picture!==n.picture||t.banner!==n.banner||t.website!==n.website||t.nip05!==n.nip05||t.lud16!==n.lud16}function qn(e){let{state:t,callbacks:n,accountId:r}=e,a=Kn(t),o=(e,r,a={})=>{let{type:o=`text`,placeholder:s,maxLength:c,help:l}=a,u=t.values[e]??``,d=t.fieldErrors[e],f=`nostr-profile-${e}`;return o===`textarea`?i`
|
|
3
3
|
<div class="form-field" style="margin-bottom: 12px;">
|
|
4
4
|
<label for="${f}" style="display: block; margin-bottom: 4px; font-weight: 500;">
|
|
@@ -4058,7 +4058,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4058
4058
|
`),n=``,r=[];for(let e of t){let t=e.trim();if(!n&&t.startsWith(`*`)&&t.endsWith(`*`)&&t.length>2){n=t.slice(1,-1);continue}t.startsWith(`#`)||t.startsWith(`<!--`)||t.length>0&&r.push(t)}r.length>0&&i.push({date:n,body:r.join(`
|
|
4059
4059
|
`)})}return i}function KD(e){let t=Date.parse(e);return Number.isFinite(t)?t:null}function qD(e){let t=KD(e);if(t===null)return e;let n=new Date(t);return`${n.getMonth()+1}/${n.getDate()}`}function JD(e){let t=KD(e);return t===null?e:new Date(t).toLocaleDateString([],{month:`short`})}function YD(e){return e.replace(/^(?:\d+\.\s+|-\s+(?:\[[^\]]+\]\s+)?(?:[a-z_]+:\s+)?|\[[^\]]+\]\s+)/i,``).replace(/^(?:likely_durable|likely_situational|unclear):\s+/i,``).trim()}function XD(e){let t=e.split(`
|
|
4060
4060
|
`).map(e=>e.trim()).filter(Boolean);if(t.length===0)return null;let n={whatHappened:[],reflections:[],candidates:[],lastingUpdates:[]},r=null;for(let e of t){if(e===`What Happened`){r=`whatHappened`;continue}if(e===`Reflections`){r=`reflections`;continue}if(e===`Candidates`){r=`candidates`;continue}if(e===`Possible Lasting Updates`){r=`lastingUpdates`;continue}r&&n[r].push(YD(e))}return n.whatHappened.length===0&&n.reflections.length===0&&n.candidates.length===0&&n.lastingUpdates.length===0?null:n}function ZD(e){return e?Math.max(1,e.whatHappened.length+e.reflections.length+e.candidates.length*2+e.lastingUpdates.length*3):1}function QD(e){return[...e].toReversed().map((e,t)=>({...e,page:t,timestamp:KD(e.date),signalWeight:ZD(XD(e.body))}))}var $D=7;function eO(e,t,n){if(t===n||t===0||t%$D===0)return!0;let r=e[t-1];return JD(r?.date??``)!==JD(e[t]?.date??``)}function tO(e,t,n){return i`
|
|
4061
|
-
<div class="dreams-diary__timeline" aria-label="
|
|
4061
|
+
<div class="dreams-diary__timeline" aria-label="日记日期浏览器">
|
|
4062
4062
|
<div class="dreams-diary__timeline-months">
|
|
4063
4063
|
${e.map((t,n)=>{let r=e[n-1],a=n===0||JD(r?.date??``)!==JD(t.date);return i`
|
|
4064
4064
|
<span
|
|
@@ -4079,7 +4079,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4079
4079
|
</button>
|
|
4080
4080
|
`)}
|
|
4081
4081
|
</div>
|
|
4082
|
-
<div class="dreams-diary__heatmap" aria-label="
|
|
4082
|
+
<div class="dreams-diary__heatmap" aria-label="日记活动热力图">
|
|
4083
4083
|
${e.map(e=>{let r=Math.min(4,Math.max(1,e.signalWeight));return i`
|
|
4084
4084
|
<button
|
|
4085
4085
|
class="dreams-diary__heatmap-cell ${e.page===t?`dreams-diary__heatmap-cell--active`:``}"
|
|
@@ -4253,10 +4253,10 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4253
4253
|
</div>
|
|
4254
4254
|
|
|
4255
4255
|
<div class="dreams__trace">
|
|
4256
|
-
${vO(`shortTerm`,e.shortTermEntries,{count:e.shortTermCount,emptyKey:`dreaming.trace.emptyShortTerm`,meta:e=>[e.recallCount>0?`${e.recallCount}
|
|
4257
|
-
${vO(`grounded`,r,{count:r.length,emptyKey:`dreaming.trace.emptyGrounded`,meta:e=>[`${e.groundedCount}
|
|
4258
|
-
${vO(`signals`,e.signalEntries,{count:e.totalSignalCount,emptyKey:`dreaming.trace.emptySignals`,meta:e=>[`${e.totalSignalCount} signal${e.totalSignalCount===1?``:`s`}`,e.phaseHitCount>0?`${e.phaseHitCount}
|
|
4259
|
-
${vO(`promoted`,e.promotedEntries,{count:e.promotedCount,emptyKey:`dreaming.trace.emptyPromoted`,meta:e=>[e.promotedAt?gO(e.promotedAt):null,e.groundedCount>0?`${e.groundedCount}
|
|
4256
|
+
${vO(`shortTerm`,e.shortTermEntries,{count:e.shortTermCount,emptyKey:`dreaming.trace.emptyShortTerm`,meta:e=>[e.recallCount>0?`${e.recallCount} 次召回`:null,e.dailyCount>0?`${e.dailyCount} 次每日`:null,e.groundedCount>0?`${e.groundedCount} 次落地`:null,e.phaseHitCount>0?`${e.phaseHitCount} 次阶段命中`:null].filter(Boolean).join(` · `)})}
|
|
4257
|
+
${vO(`grounded`,r,{count:r.length,emptyKey:`dreaming.trace.emptyGrounded`,meta:e=>[`${e.groundedCount} 次落地`,e.recallCount>0?`${e.recallCount} 次召回`:null,e.dailyCount>0?`${e.dailyCount} 次每日`:null,_O(e)?p(`dreaming.trace.groundedLed`):null].filter(Boolean).join(` · `)})}
|
|
4258
|
+
${vO(`signals`,e.signalEntries,{count:e.totalSignalCount,emptyKey:`dreaming.trace.emptySignals`,meta:e=>[`${e.totalSignalCount} signal${e.totalSignalCount===1?``:`s`}`,e.phaseHitCount>0?`${e.phaseHitCount} 次阶段命中`:null].filter(Boolean).join(` · `)})}
|
|
4259
|
+
${vO(`promoted`,e.promotedEntries,{count:e.promotedCount,emptyKey:`dreaming.trace.emptyPromoted`,meta:e=>[e.promotedAt?gO(e.promotedAt):null,e.groundedCount>0?`${e.groundedCount} 次落地`:null,_O(e)?p(`dreaming.trace.groundedLed`):null,e.totalSignalCount>0?`${e.totalSignalCount} 个信号(提升前)`:null].filter(Boolean).join(` · `)})}
|
|
4260
4260
|
</div>
|
|
4261
4261
|
|
|
4262
4262
|
${e.statusError?i`<div class="dreams__controls-error">${e.statusError}</div>`:g}
|
|
@@ -4363,7 +4363,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4363
4363
|
${c?i`
|
|
4364
4364
|
<div class="dreams-diary__grid">
|
|
4365
4365
|
<section class="dreams-diary__panel">
|
|
4366
|
-
<h3 class="dreams-diary__panel-title"
|
|
4366
|
+
<h3 class="dreams-diary__panel-title">发生了什么</h3>
|
|
4367
4367
|
<div class="dreams-diary__panel-list dreams-diary__panel-list--points">
|
|
4368
4368
|
${c.whatHappened.map((e,t)=>i`
|
|
4369
4369
|
<div
|
|
@@ -4377,7 +4377,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4377
4377
|
</div>
|
|
4378
4378
|
</section>
|
|
4379
4379
|
<section class="dreams-diary__panel">
|
|
4380
|
-
<h3 class="dreams-diary__panel-title"
|
|
4380
|
+
<h3 class="dreams-diary__panel-title">反思</h3>
|
|
4381
4381
|
<div class="dreams-diary__panel-list dreams-diary__panel-list--points">
|
|
4382
4382
|
${c.reflections.map((e,t)=>i`
|
|
4383
4383
|
<div
|
|
@@ -4391,9 +4391,9 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4391
4391
|
</div>
|
|
4392
4392
|
</section>
|
|
4393
4393
|
<section class="dreams-diary__panel">
|
|
4394
|
-
<h3 class="dreams-diary__panel-title"
|
|
4394
|
+
<h3 class="dreams-diary__panel-title">候选项 + 可能的持久更新</h3>
|
|
4395
4395
|
${c.candidates.length>0?i`
|
|
4396
|
-
<div class="dreams-diary__panel-subtitle"
|
|
4396
|
+
<div class="dreams-diary__panel-subtitle">候选项</div>
|
|
4397
4397
|
<div class="dreams-diary__panel-list dreams-diary__panel-list--points">
|
|
4398
4398
|
${c.candidates.map((e,t)=>i`
|
|
4399
4399
|
<div
|
|
@@ -4407,7 +4407,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
4407
4407
|
</div>
|
|
4408
4408
|
`:g}
|
|
4409
4409
|
${c.lastingUpdates.length>0?i`
|
|
4410
|
-
<div class="dreams-diary__panel-subtitle"
|
|
4410
|
+
<div class="dreams-diary__panel-subtitle">可能的持久更新</div>
|
|
4411
4411
|
<div class="dreams-diary__panel-list dreams-diary__panel-list--points">
|
|
4412
4412
|
${c.lastingUpdates.map((e,t)=>i`
|
|
4413
4413
|
<div
|
|
@@ -4965,7 +4965,7 @@ ${e.pluginDescription}</pre
|
|
|
4965
4965
|
${WO({events:e.eventLog})}
|
|
4966
4966
|
${QO({lines:e.overviewLogLines,onRefreshLogs:e.onRefreshLogs})}
|
|
4967
4967
|
</div>
|
|
4968
|
-
`}var ek;function tk(e){let t={mod:null,promise:null};return()=>t.mod?t.mod:(t.promise||=e().then(e=>(t.mod=e,ek?.(),e)),null)}var nk=tk(()=>d(()=>import(`./agents-
|
|
4968
|
+
`}var ek;function tk(e){let t={mod:null,promise:null};return()=>t.mod?t.mod:(t.promise||=e().then(e=>(t.mod=e,ek?.(),e)),null)}var nk=tk(()=>d(()=>import(`./agents-BuNZcRq4.js`),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),rk=tk(()=>d(()=>import(`./channels-P_oAp-xr.js`),__vite__mapDeps([6,1,2,4]),import.meta.url)),ik=tk(()=>d(()=>import(`./cron-O50Pygc8.js`),__vite__mapDeps([7,1,2]),import.meta.url)),ak=tk(()=>d(()=>import(`./debug-B9HNlxNM.js`),__vite__mapDeps([8,1]),import.meta.url)),ok=tk(()=>d(()=>import(`./instances-CxjWpqgf.js`),__vite__mapDeps([9,1]),import.meta.url)),sk=tk(()=>d(()=>import(`./logs-DIQQlrf3.js`),__vite__mapDeps([10,1,3]),import.meta.url)),ck=tk(()=>d(()=>import(`./nodes-DBnqZpzh.js`),__vite__mapDeps([11,1,2,3]),import.meta.url)),lk=tk(()=>d(()=>import(`./sessions-CGLUll_c.js`),__vite__mapDeps([12,1,2,3]),import.meta.url)),uk=tk(()=>d(()=>import(`./skills-CH_cvm8V.js`),__vite__mapDeps([13,1,2,3,5]),import.meta.url));function dk(e){return typeof e!=`number`||!Number.isFinite(e)?null:new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function fk(e){if(!e)return null;let t=Object.values(e.phases).filter(e=>e.enabled&&typeof e.nextRunAtMs==`number`).map(e=>e.nextRunAtMs).toSorted((e,t)=>e-t)[0];return dk(t)}var pk=null;function mk(e,t){let n=e();return n?t(n):g}var hk=`openclaw:control-ui:update-banner-dismissed:v1`,gk=[`off`,`minimal`,`low`,`medium`,`high`],_k=[`UTC`,`America/Los_Angeles`,`America/Denver`,`America/Chicago`,`America/New_York`,`Europe/London`,`Europe/Berlin`,`Asia/Tokyo`];function vk(e){return/^https?:\/\//i.test(e.trim())}function yk(e){return typeof e==`string`?e.trim():``}function bk(e){let t=new Set,n=[];for(let r of e){let e=r.trim();if(!e)continue;let i=e.toLowerCase();t.has(i)||(t.add(i),n.push(e))}return n}function xk(){try{let e=m()?.getItem(hk);if(!e)return null;let t=JSON.parse(e);return!t||typeof t.latestVersion!=`string`?null:{latestVersion:t.latestVersion,channel:typeof t.channel==`string`?t.channel:null,dismissedAtMs:typeof t.dismissedAtMs==`number`?t.dismissedAtMs:Date.now()}}catch{return null}}function Sk(e){let t=xk();if(!t)return!1;let n=e,r=n&&typeof n.latestVersion==`string`?n.latestVersion:null,i=n&&typeof n.channel==`string`?n.channel:null;return!!(r&&t.latestVersion===r&&t.channel===i)}function Ck(e){let t=e,n=t&&typeof t.latestVersion==`string`?t.latestVersion:null;if(!n)return;let r={latestVersion:n,channel:t&&typeof t.channel==`string`?t.channel:null,dismissedAtMs:Date.now()};try{m()?.setItem(hk,JSON.stringify(r))}catch{}}var wk=/^data:/i,Tk=/^https?:\/\//i,Ek=[`channels`,`messages`,`broadcast`,`talk`,`audio`],Dk=[`__appearance__`,`ui`,`wizard`],Ok=[`commands`,`hooks`,`bindings`,`cron`,`approvals`,`plugins`],kk=[`gateway`,`web`,`browser`,`nodeHost`,`canvasHost`,`discovery`,`media`,`acp`,`mcp`],Ak=[`agents`,`models`,`skills`,`tools`,`memory`,`session`];function jk(e){let t=e.agentsList?.agents??[],n=di(e.sessionKey)?.agentId??e.agentsList?.defaultId??`main`,r=t.find(e=>e.id===n)?.identity,i=r?.avatarUrl??r?.avatar;if(i)return wk.test(i)||Tk.test(i)?i:r?.avatarUrl}function Mk(e){let t=e,n=typeof t.requestUpdate==`function`?()=>t.requestUpdate?.():void 0;if(ek=n,!e.connected)return i` ${OO(e)} ${TO(e)} `;let r=e.presenceEntries.length,a=e.sessionsResult?.count??null,o=e.cronStatus?.nextWakeAtMs??null,s=e.connected?null:p(`chat.disconnected`),c=e.tab===`chat`,l=c&&(e.settings.chatFocusMode||e.onboarding),u=!!(e.navDrawerOpen&&!l&&!e.onboarding),d=!!(e.settings.navCollapsed&&!u),f=e.onboarding?!1:e.settings.chatShowThinking,m=e.onboarding?!0:e.settings.chatShowToolCalls,h=jk(e),_=e.chatAvatarUrl??h??null,v=e.configForm??e.configSnapshot?.config,y=ba(v),b=e.dreamingStatus?.enabled??y.enabled,x=fk(e.dreamingStatus),S=e.dreamingStatusLoading||e.dreamingModeSaving,C=e.dreamingStatusLoading||e.dreamDiaryLoading,ee=()=>{Promise.all([wa(e),Ta(e)])},w=t=>{e.dreamingModeSaving||b===t||(async()=>{await Pa(e,t)&&(await Mn(e),await wa(e))})()},te=Lo(e.basePath??``),T=e.agentsSelectedId??e.agentsList?.defaultId??e.agentsList?.agents?.[0]?.id??null,ne=hi(e.sessionKey),E=!!(T&&ne&&T===ne),D=()=>e.configForm??e.configSnapshot?.config,O=e=>Un(D(),e),k=t=>Wn(e,t),A=v_(new Set([...e.agentsList?.agents?.map(e=>e.id.trim())??[],...e.cronJobs.map(e=>typeof e.agentId==`string`?e.agentId.trim():``).filter(Boolean)].filter(Boolean))),j=v_(new Set([...e.cronModelSuggestions,...y_(v),...e.cronJobs.map(e=>e.payload.kind!==`agentTurn`||typeof e.payload.model!=`string`?``:e.payload.model.trim()).filter(Boolean)].filter(Boolean))),re=Ri(e),M=e.cronForm.deliveryChannel&&e.cronForm.deliveryChannel.trim()?e.cronForm.deliveryChannel.trim():`last`,N=e.cronJobs.map(e=>yk(e.delivery?.to)).filter(Boolean),ie=(M===`last`?Object.values(e.channelsSnapshot?.channelAccounts??{}).flat():e.channelsSnapshot?.channelAccounts?.[M]??[]).flatMap(e=>[yk(e.accountId),yk(e.name)]).filter(Boolean),P=bk([...N,...ie]),F=bk(ie),I=e.cronForm.deliveryMode===`webhook`?P.filter(e=>vk(e)):P;return i`
|
|
4969
4969
|
${RE({open:e.paletteOpen,query:e.paletteQuery,activeIndex:e.paletteActiveIndex,onToggle:()=>{e.paletteOpen=!e.paletteOpen},onQueryChange:t=>{e.paletteQuery=t},onActiveIndexChange:t=>{e.paletteActiveIndex=t},onNavigate:t=>{e.setTab(t)},onSlashCommand:t=>{e.setTab(`chat`),e.chatMessage=t.endsWith(` `)?t:`${t} `}})}
|
|
4970
4970
|
<div
|
|
4971
4971
|
class="shell ${c?`shell--chat`:``} ${l?`shell--chat-focus`:``} ${d?`shell--nav-collapsed`:``} ${u?`shell--nav-drawer-open`:``} ${e.onboarding?`shell--onboarding`:``}"
|
|
@@ -5172,7 +5172,7 @@ ${e.pluginDescription}</pre
|
|
|
5172
5172
|
`}var Nk=KC({});function Pk(){if(!window.location.search)return!1;let e=new URLSearchParams(window.location.search).get(`onboarding`);if(!e)return!1;let t=e.trim().toLowerCase();return t===`1`||t===`true`||t===`yes`||t===`on`}var $=class extends c{constructor(){super(),this.i18nController=new h(this),this.clientInstanceId=Vt(),this.connectGeneration=0,this.settings=hs(),this.password=``,this.loginShowGatewayToken=!1,this.loginShowGatewayPassword=!1,this.tab=`chat`,this.onboarding=Pk(),this.connected=!1,this.theme=this.settings.theme??`claw`,this.themeMode=this.settings.themeMode??`system`,this.themeResolved=`dark`,this.themeOrder=this.buildThemeOrder(this.theme),this.hello=null,this.lastError=null,this.lastErrorCode=null,this.eventLog=[],this.eventLogBuffer=[],this.toolStreamSyncTimer=null,this.sidebarCloseTimer=null,this.assistantName=Nk.name,this.assistantAvatar=Nk.avatar,this.assistantAgentId=Nk.agentId??null,this.serverVersion=null,this.sessionKey=this.settings.sessionKey,this.chatLoading=!1,this.chatSending=!1,this.chatMessage=``,this.chatMessages=[],this.chatToolMessages=[],this.chatStreamSegments=[],this.chatStream=null,this.chatStreamStartedAt=null,this.chatRunId=null,this.compactionStatus=null,this.fallbackStatus=null,this.chatAvatarUrl=null,this.chatThinkingLevel=null,this.chatModelOverrides={},this.chatModelsLoading=!1,this.chatModelCatalog=[],this.chatQueue=[],this.chatAttachments=[],this.chatManualRefreshInFlight=!1,this.navDrawerOpen=!1,this.sidebarOpen=!1,this.sidebarContent=null,this.sidebarError=null,this.splitRatio=this.settings.splitRatio,this.nodesLoading=!1,this.nodes=[],this.devicesLoading=!1,this.devicesError=null,this.devicesList=null,this.execApprovalsLoading=!1,this.execApprovalsSaving=!1,this.execApprovalsDirty=!1,this.execApprovalsSnapshot=null,this.execApprovalsForm=null,this.execApprovalsSelectedAgent=null,this.execApprovalsTarget=`gateway`,this.execApprovalsTargetNodeId=null,this.execApprovalQueue=[],this.execApprovalBusy=!1,this.execApprovalError=null,this.pendingGatewayUrl=null,this.pendingGatewayToken=null,this.configLoading=!1,this.configRaw=`{
|
|
5173
5173
|
}
|
|
5174
5174
|
`,this.configRawOriginal=``,this.configValid=null,this.configIssues=[],this.configSaving=!1,this.configApplying=!1,this.updateRunning=!1,this.applySessionKey=this.settings.lastActiveSessionKey,this.configSnapshot=null,this.configSchema=null,this.configSchemaVersion=null,this.configSchemaLoading=!1,this.configUiHints={},this.configForm=null,this.configFormOriginal=null,this.dreamingStatusLoading=!1,this.dreamingStatusError=null,this.dreamingStatus=null,this.dreamingModeSaving=!1,this.dreamDiaryLoading=!1,this.dreamDiaryActionLoading=!1,this.dreamDiaryError=null,this.dreamDiaryPath=null,this.dreamDiaryContent=null,this.configFormDirty=!1,this.configFormMode=`form`,this.configSearchQuery=``,this.configActiveSection=null,this.configActiveSubsection=null,this.communicationsFormMode=`form`,this.communicationsSearchQuery=``,this.communicationsActiveSection=null,this.communicationsActiveSubsection=null,this.appearanceFormMode=`form`,this.appearanceSearchQuery=``,this.appearanceActiveSection=null,this.appearanceActiveSubsection=null,this.automationFormMode=`form`,this.automationSearchQuery=``,this.automationActiveSection=null,this.automationActiveSubsection=null,this.infrastructureFormMode=`form`,this.infrastructureSearchQuery=``,this.infrastructureActiveSection=null,this.infrastructureActiveSubsection=null,this.aiAgentsFormMode=`form`,this.aiAgentsSearchQuery=``,this.aiAgentsActiveSection=null,this.aiAgentsActiveSubsection=null,this.channelsLoading=!1,this.channelsSnapshot=null,this.channelsError=null,this.channelsLastSuccess=null,this.whatsappLoginMessage=null,this.whatsappLoginQrDataUrl=null,this.whatsappLoginConnected=null,this.whatsappBusy=!1,this.nostrProfileFormState=null,this.nostrProfileAccountId=null,this.presenceLoading=!1,this.presenceEntries=[],this.presenceError=null,this.presenceStatus=null,this.agentsLoading=!1,this.agentsList=null,this.agentsError=null,this.agentsSelectedId=null,this.toolsCatalogLoading=!1,this.toolsCatalogError=null,this.toolsCatalogResult=null,this.toolsEffectiveLoading=!1,this.toolsEffectiveLoadingKey=null,this.toolsEffectiveResultKey=null,this.toolsEffectiveError=null,this.toolsEffectiveResult=null,this.agentsPanel=`files`,this.agentFilesLoading=!1,this.agentFilesError=null,this.agentFilesList=null,this.agentFileContents={},this.agentFileDrafts={},this.agentFileActive=null,this.agentFileSaving=!1,this.agentIdentityLoading=!1,this.agentIdentityError=null,this.agentIdentityById={},this.agentSkillsLoading=!1,this.agentSkillsError=null,this.agentSkillsReport=null,this.agentSkillsAgentId=null,this.sessionsLoading=!1,this.sessionsResult=null,this.sessionsError=null,this.sessionsFilterActive=``,this.sessionsFilterLimit=`120`,this.sessionsIncludeGlobal=!0,this.sessionsIncludeUnknown=!1,this.sessionsHideCron=!0,this.sessionsSearchQuery=``,this.sessionsSortColumn=`updated`,this.sessionsSortDir=`desc`,this.sessionsPage=0,this.sessionsPageSize=25,this.sessionsSelectedKeys=new Set,this.sessionsExpandedCheckpointKey=null,this.sessionsCheckpointItemsByKey={},this.sessionsCheckpointLoadingKey=null,this.sessionsCheckpointBusyKey=null,this.sessionsCheckpointErrorByKey={},this.usageLoading=!1,this.usageResult=null,this.usageCostSummary=null,this.usageError=null,this.usageStartDate=(()=>{let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`})(),this.usageEndDate=(()=>{let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`})(),this.usageSelectedSessions=[],this.usageSelectedDays=[],this.usageSelectedHours=[],this.usageChartMode=`tokens`,this.usageDailyChartMode=`by-type`,this.usageTimeSeriesMode=`per-turn`,this.usageTimeSeriesBreakdownMode=`by-type`,this.usageTimeSeries=null,this.usageTimeSeriesLoading=!1,this.usageTimeSeriesCursorStart=null,this.usageTimeSeriesCursorEnd=null,this.usageSessionLogs=null,this.usageSessionLogsLoading=!1,this.usageSessionLogsExpanded=!1,this.usageQuery=``,this.usageQueryDraft=``,this.usageSessionSort=`recent`,this.usageSessionSortDir=`desc`,this.usageRecentSessions=[],this.usageTimeZone=`local`,this.usageContextExpanded=!1,this.usageHeaderPinned=!1,this.usageSessionsTab=`all`,this.usageVisibleColumns=[`channel`,`agent`,`provider`,`model`,`messages`,`tools`,`errors`,`duration`],this.usageLogFilterRoles=[],this.usageLogFilterTools=[],this.usageLogFilterHasTools=!1,this.usageLogFilterQuery=``,this.usageQueryDebounceTimer=null,this.cronLoading=!1,this.cronJobsLoadingMore=!1,this.cronJobs=[],this.cronJobsTotal=0,this.cronJobsHasMore=!1,this.cronJobsNextOffset=null,this.cronJobsLimit=50,this.cronJobsQuery=``,this.cronJobsEnabledFilter=`all`,this.cronJobsScheduleKindFilter=`all`,this.cronJobsLastStatusFilter=`all`,this.cronJobsSortBy=`nextRunAtMs`,this.cronJobsSortDir=`asc`,this.cronStatus=null,this.cronError=null,this.cronForm={...Ti},this.cronFieldErrors={},this.cronEditingJobId=null,this.cronRunsJobId=null,this.cronRunsLoadingMore=!1,this.cronRuns=[],this.cronRunsTotal=0,this.cronRunsHasMore=!1,this.cronRunsNextOffset=null,this.cronRunsLimit=50,this.cronRunsScope=`all`,this.cronRunsStatuses=[],this.cronRunsDeliveryStatuses=[],this.cronRunsStatusFilter=`all`,this.cronRunsQuery=``,this.cronRunsSortDir=`desc`,this.cronModelSuggestions=[],this.cronBusy=!1,this.updateAvailable=null,this.attentionItems=[],this.paletteOpen=!1,this.paletteQuery=``,this.paletteActiveIndex=0,this.overviewShowGatewayToken=!1,this.overviewShowGatewayPassword=!1,this.overviewLogLines=[],this.overviewLogCursor=0,this.skillsLoading=!1,this.skillsReport=null,this.skillsError=null,this.skillsFilter=``,this.skillsStatusFilter=`all`,this.skillEdits={},this.skillsBusyKey=null,this.skillMessages={},this.skillsDetailKey=null,this.clawhubSearchQuery=``,this.clawhubSearchResults=null,this.clawhubSearchLoading=!1,this.clawhubSearchError=null,this.clawhubDetail=null,this.clawhubDetailSlug=null,this.clawhubDetailLoading=!1,this.clawhubDetailError=null,this.clawhubInstallSlug=null,this.clawhubInstallMessage=null,this.healthLoading=!1,this.healthResult=null,this.healthError=null,this.debugLoading=!1,this.debugStatus=null,this.debugHealth=null,this.debugModels=[],this.debugHeartbeat=null,this.debugCallMethod=``,this.debugCallParams=`{}`,this.debugCallResult=null,this.debugCallError=null,this.logsLoading=!1,this.logsError=null,this.logsFile=null,this.logsEntries=[],this.logsFilterText=``,this.logsLevelFilters={...wi},this.logsAutoFollow=!0,this.logsTruncated=!1,this.logsCursor=null,this.logsLastFetchAt=null,this.logsLimit=500,this.logsMaxBytes=25e4,this.logsAtBottom=!0,this.client=null,this.chatScrollFrame=null,this.chatScrollTimeout=null,this.chatHasAutoScrolled=!1,this.chatUserNearBottom=!0,this.chatNewMessagesBelow=!1,this.nodesPollInterval=null,this.logsPollInterval=null,this.debugPollInterval=null,this.logsScrollFrame=null,this.toolStreamById=new Map,this.toolStreamOrder=[],this.refreshSessionsAfterChat=new Set,this.basePath=``,this.popStateHandler=()=>Ax(this),this.topbarObserver=null,this.globalKeydownHandler=e=>{(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.key===`k`&&(e.preventDefault(),this.paletteOpen=!this.paletteOpen,this.paletteOpen&&(this.paletteQuery=``,this.paletteActiveIndex=0))},t(this.settings.locale)&&u.setLocale(this.settings.locale)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.onSlashAction=e=>{switch(e){case`toggle-focus`:this.applySettings({...this.settings,chatFocusMode:!this.settings.chatFocusMode});break;case`export`:Fp(this.chatMessages,this.assistantName);break;case`refresh-tools-effective`:xi(this);break}},document.addEventListener(`keydown`,this.globalKeydownHandler),gw(this)}firstUpdated(){_w(this)}disconnectedCallback(){document.removeEventListener(`keydown`,this.globalKeydownHandler),vw(this),super.disconnectedCallback()}updated(e){if(yw(this,e),!e.has(`sessionKey`)||this.agentsPanel!==`tools`)return;let t=hi(this.sessionKey);if(this.agentsSelectedId&&this.agentsSelectedId===t){yi(this,{agentId:this.agentsSelectedId,sessionKey:this.sessionKey});return}this.toolsEffectiveResult=null,this.toolsEffectiveResultKey=null,this.toolsEffectiveError=null,this.toolsEffectiveLoading=!1,this.toolsEffectiveLoadingKey=null}connect(){cw(this)}handleChatScroll(e){hr(this,e)}handleLogsScroll(e){gr(this,e)}exportLogs(e,t){vr(e,t)}resetToolStream(){nS(this)}resetChatScroll(){_r(this)}scrollToBottom(e){_r(this),pr(this,!0,!!e?.smooth)}async loadAssistantIdentity(){await qC(this)}applySettings(e){px(this,e)}setTab(e){_x(this,e),this.navDrawerOpen=!1}setTheme(e,t){vx(this,e,t),this.themeOrder=this.buildThemeOrder(e)}setThemeMode(e,t){yx(this,e,t)}setBorderRadius(e){px(this,{...this.settings,borderRadius:e}),this.requestUpdate()}buildThemeOrder(e){return[e,...[...Go].filter(t=>t!==e)]}async loadOverview(){await Fx(this)}async loadCron(){await Vx(this)}async handleAbortChat(){await xC(this)}removeQueuedMessage(e){EC(this,e)}async handleSendChat(e,t){await OC(this,e,t)}async handleWhatsAppStart(e){await Yn(this,e)}async handleWhatsAppWait(){await Xn(this)}async handleWhatsAppLogout(){await Zn(this)}async handleChannelConfigSave(){await Qn(this)}async handleChannelConfigReload(){await $n(this)}handleNostrProfileEdit(e,t){ar(this,e,t)}handleNostrProfileCancel(){or(this)}handleNostrProfileFieldChange(e,t){sr(this,e,t)}async handleNostrProfileSave(){await lr(this)}async handleNostrProfileImport(){await ur(this)}handleNostrProfileToggleAdvanced(){cr(this)}async handleExecApprovalDecision(e){let t=this.execApprovalQueue[0];if(!(!t||!this.client||this.execApprovalBusy)){this.execApprovalBusy=!0,this.execApprovalError=null;try{let n=t.kind===`plugin`?`plugin.approval.resolve`:`exec.approval.resolve`;await this.client.request(n,{id:t.id,decision:e}),this.execApprovalQueue=this.execApprovalQueue.filter(e=>e.id!==t.id)}catch(e){this.execApprovalError=`Approval failed: ${String(e)}`}finally{this.execApprovalBusy=!1}}}handleGatewayUrlConfirm(){let e=this.pendingGatewayUrl;if(!e)return;let t=this.pendingGatewayToken?.trim()||``;this.pendingGatewayUrl=null,this.pendingGatewayToken=null,px(this,{...this.settings,gatewayUrl:e,token:t}),this.connect()}handleGatewayUrlCancel(){this.pendingGatewayUrl=null,this.pendingGatewayToken=null}handleOpenSidebar(e){this.sidebarCloseTimer!=null&&(window.clearTimeout(this.sidebarCloseTimer),this.sidebarCloseTimer=null),this.sidebarContent=e,this.sidebarError=null,this.sidebarOpen=!0}handleCloseSidebar(){this.sidebarOpen=!1,this.sidebarCloseTimer!=null&&window.clearTimeout(this.sidebarCloseTimer),this.sidebarCloseTimer=window.setTimeout(()=>{this.sidebarOpen||(this.sidebarContent=null,this.sidebarError=null,this.sidebarCloseTimer=null)},200)}handleSplitRatioChange(e){let t=Math.max(.4,Math.min(.7,e));this.splitRatio=t,this.applySettings({...this.settings,splitRatio:t})}render(){return Mk(this)}};Y([P()],$.prototype,`settings`,void 0),Y([P()],$.prototype,`password`,void 0),Y([P()],$.prototype,`loginShowGatewayToken`,void 0),Y([P()],$.prototype,`loginShowGatewayPassword`,void 0),Y([P()],$.prototype,`tab`,void 0),Y([P()],$.prototype,`onboarding`,void 0),Y([P()],$.prototype,`connected`,void 0),Y([P()],$.prototype,`theme`,void 0),Y([P()],$.prototype,`themeMode`,void 0),Y([P()],$.prototype,`themeResolved`,void 0),Y([P()],$.prototype,`themeOrder`,void 0),Y([P()],$.prototype,`hello`,void 0),Y([P()],$.prototype,`lastError`,void 0),Y([P()],$.prototype,`lastErrorCode`,void 0),Y([P()],$.prototype,`eventLog`,void 0),Y([P()],$.prototype,`assistantName`,void 0),Y([P()],$.prototype,`assistantAvatar`,void 0),Y([P()],$.prototype,`assistantAgentId`,void 0),Y([P()],$.prototype,`serverVersion`,void 0),Y([P()],$.prototype,`sessionKey`,void 0),Y([P()],$.prototype,`chatLoading`,void 0),Y([P()],$.prototype,`chatSending`,void 0),Y([P()],$.prototype,`chatMessage`,void 0),Y([P()],$.prototype,`chatMessages`,void 0),Y([P()],$.prototype,`chatToolMessages`,void 0),Y([P()],$.prototype,`chatStreamSegments`,void 0),Y([P()],$.prototype,`chatStream`,void 0),Y([P()],$.prototype,`chatStreamStartedAt`,void 0),Y([P()],$.prototype,`chatRunId`,void 0),Y([P()],$.prototype,`compactionStatus`,void 0),Y([P()],$.prototype,`fallbackStatus`,void 0),Y([P()],$.prototype,`chatAvatarUrl`,void 0),Y([P()],$.prototype,`chatThinkingLevel`,void 0),Y([P()],$.prototype,`chatModelOverrides`,void 0),Y([P()],$.prototype,`chatModelsLoading`,void 0),Y([P()],$.prototype,`chatModelCatalog`,void 0),Y([P()],$.prototype,`chatQueue`,void 0),Y([P()],$.prototype,`chatAttachments`,void 0),Y([P()],$.prototype,`chatManualRefreshInFlight`,void 0),Y([P()],$.prototype,`navDrawerOpen`,void 0),Y([P()],$.prototype,`sidebarOpen`,void 0),Y([P()],$.prototype,`sidebarContent`,void 0),Y([P()],$.prototype,`sidebarError`,void 0),Y([P()],$.prototype,`splitRatio`,void 0),Y([P()],$.prototype,`nodesLoading`,void 0),Y([P()],$.prototype,`nodes`,void 0),Y([P()],$.prototype,`devicesLoading`,void 0),Y([P()],$.prototype,`devicesError`,void 0),Y([P()],$.prototype,`devicesList`,void 0),Y([P()],$.prototype,`execApprovalsLoading`,void 0),Y([P()],$.prototype,`execApprovalsSaving`,void 0),Y([P()],$.prototype,`execApprovalsDirty`,void 0),Y([P()],$.prototype,`execApprovalsSnapshot`,void 0),Y([P()],$.prototype,`execApprovalsForm`,void 0),Y([P()],$.prototype,`execApprovalsSelectedAgent`,void 0),Y([P()],$.prototype,`execApprovalsTarget`,void 0),Y([P()],$.prototype,`execApprovalsTargetNodeId`,void 0),Y([P()],$.prototype,`execApprovalQueue`,void 0),Y([P()],$.prototype,`execApprovalBusy`,void 0),Y([P()],$.prototype,`execApprovalError`,void 0),Y([P()],$.prototype,`pendingGatewayUrl`,void 0),Y([P()],$.prototype,`configLoading`,void 0),Y([P()],$.prototype,`configRaw`,void 0),Y([P()],$.prototype,`configRawOriginal`,void 0),Y([P()],$.prototype,`configValid`,void 0),Y([P()],$.prototype,`configIssues`,void 0),Y([P()],$.prototype,`configSaving`,void 0),Y([P()],$.prototype,`configApplying`,void 0),Y([P()],$.prototype,`updateRunning`,void 0),Y([P()],$.prototype,`applySessionKey`,void 0),Y([P()],$.prototype,`configSnapshot`,void 0),Y([P()],$.prototype,`configSchema`,void 0),Y([P()],$.prototype,`configSchemaVersion`,void 0),Y([P()],$.prototype,`configSchemaLoading`,void 0),Y([P()],$.prototype,`configUiHints`,void 0),Y([P()],$.prototype,`configForm`,void 0),Y([P()],$.prototype,`configFormOriginal`,void 0),Y([P()],$.prototype,`dreamingStatusLoading`,void 0),Y([P()],$.prototype,`dreamingStatusError`,void 0),Y([P()],$.prototype,`dreamingStatus`,void 0),Y([P()],$.prototype,`dreamingModeSaving`,void 0),Y([P()],$.prototype,`dreamDiaryLoading`,void 0),Y([P()],$.prototype,`dreamDiaryActionLoading`,void 0),Y([P()],$.prototype,`dreamDiaryError`,void 0),Y([P()],$.prototype,`dreamDiaryPath`,void 0),Y([P()],$.prototype,`dreamDiaryContent`,void 0),Y([P()],$.prototype,`configFormDirty`,void 0),Y([P()],$.prototype,`configFormMode`,void 0),Y([P()],$.prototype,`configSearchQuery`,void 0),Y([P()],$.prototype,`configActiveSection`,void 0),Y([P()],$.prototype,`configActiveSubsection`,void 0),Y([P()],$.prototype,`communicationsFormMode`,void 0),Y([P()],$.prototype,`communicationsSearchQuery`,void 0),Y([P()],$.prototype,`communicationsActiveSection`,void 0),Y([P()],$.prototype,`communicationsActiveSubsection`,void 0),Y([P()],$.prototype,`appearanceFormMode`,void 0),Y([P()],$.prototype,`appearanceSearchQuery`,void 0),Y([P()],$.prototype,`appearanceActiveSection`,void 0),Y([P()],$.prototype,`appearanceActiveSubsection`,void 0),Y([P()],$.prototype,`automationFormMode`,void 0),Y([P()],$.prototype,`automationSearchQuery`,void 0),Y([P()],$.prototype,`automationActiveSection`,void 0),Y([P()],$.prototype,`automationActiveSubsection`,void 0),Y([P()],$.prototype,`infrastructureFormMode`,void 0),Y([P()],$.prototype,`infrastructureSearchQuery`,void 0),Y([P()],$.prototype,`infrastructureActiveSection`,void 0),Y([P()],$.prototype,`infrastructureActiveSubsection`,void 0),Y([P()],$.prototype,`aiAgentsFormMode`,void 0),Y([P()],$.prototype,`aiAgentsSearchQuery`,void 0),Y([P()],$.prototype,`aiAgentsActiveSection`,void 0),Y([P()],$.prototype,`aiAgentsActiveSubsection`,void 0),Y([P()],$.prototype,`channelsLoading`,void 0),Y([P()],$.prototype,`channelsSnapshot`,void 0),Y([P()],$.prototype,`channelsError`,void 0),Y([P()],$.prototype,`channelsLastSuccess`,void 0),Y([P()],$.prototype,`whatsappLoginMessage`,void 0),Y([P()],$.prototype,`whatsappLoginQrDataUrl`,void 0),Y([P()],$.prototype,`whatsappLoginConnected`,void 0),Y([P()],$.prototype,`whatsappBusy`,void 0),Y([P()],$.prototype,`nostrProfileFormState`,void 0),Y([P()],$.prototype,`nostrProfileAccountId`,void 0),Y([P()],$.prototype,`presenceLoading`,void 0),Y([P()],$.prototype,`presenceEntries`,void 0),Y([P()],$.prototype,`presenceError`,void 0),Y([P()],$.prototype,`presenceStatus`,void 0),Y([P()],$.prototype,`agentsLoading`,void 0),Y([P()],$.prototype,`agentsList`,void 0),Y([P()],$.prototype,`agentsError`,void 0),Y([P()],$.prototype,`agentsSelectedId`,void 0),Y([P()],$.prototype,`toolsCatalogLoading`,void 0),Y([P()],$.prototype,`toolsCatalogError`,void 0),Y([P()],$.prototype,`toolsCatalogResult`,void 0),Y([P()],$.prototype,`toolsEffectiveLoading`,void 0),Y([P()],$.prototype,`toolsEffectiveLoadingKey`,void 0),Y([P()],$.prototype,`toolsEffectiveResultKey`,void 0),Y([P()],$.prototype,`toolsEffectiveError`,void 0),Y([P()],$.prototype,`toolsEffectiveResult`,void 0),Y([P()],$.prototype,`agentsPanel`,void 0),Y([P()],$.prototype,`agentFilesLoading`,void 0),Y([P()],$.prototype,`agentFilesError`,void 0),Y([P()],$.prototype,`agentFilesList`,void 0),Y([P()],$.prototype,`agentFileContents`,void 0),Y([P()],$.prototype,`agentFileDrafts`,void 0),Y([P()],$.prototype,`agentFileActive`,void 0),Y([P()],$.prototype,`agentFileSaving`,void 0),Y([P()],$.prototype,`agentIdentityLoading`,void 0),Y([P()],$.prototype,`agentIdentityError`,void 0),Y([P()],$.prototype,`agentIdentityById`,void 0),Y([P()],$.prototype,`agentSkillsLoading`,void 0),Y([P()],$.prototype,`agentSkillsError`,void 0),Y([P()],$.prototype,`agentSkillsReport`,void 0),Y([P()],$.prototype,`agentSkillsAgentId`,void 0),Y([P()],$.prototype,`sessionsLoading`,void 0),Y([P()],$.prototype,`sessionsResult`,void 0),Y([P()],$.prototype,`sessionsError`,void 0),Y([P()],$.prototype,`sessionsFilterActive`,void 0),Y([P()],$.prototype,`sessionsFilterLimit`,void 0),Y([P()],$.prototype,`sessionsIncludeGlobal`,void 0),Y([P()],$.prototype,`sessionsIncludeUnknown`,void 0),Y([P()],$.prototype,`sessionsHideCron`,void 0),Y([P()],$.prototype,`sessionsSearchQuery`,void 0),Y([P()],$.prototype,`sessionsSortColumn`,void 0),Y([P()],$.prototype,`sessionsSortDir`,void 0),Y([P()],$.prototype,`sessionsPage`,void 0),Y([P()],$.prototype,`sessionsPageSize`,void 0),Y([P()],$.prototype,`sessionsSelectedKeys`,void 0),Y([P()],$.prototype,`sessionsExpandedCheckpointKey`,void 0),Y([P()],$.prototype,`sessionsCheckpointItemsByKey`,void 0),Y([P()],$.prototype,`sessionsCheckpointLoadingKey`,void 0),Y([P()],$.prototype,`sessionsCheckpointBusyKey`,void 0),Y([P()],$.prototype,`sessionsCheckpointErrorByKey`,void 0),Y([P()],$.prototype,`usageLoading`,void 0),Y([P()],$.prototype,`usageResult`,void 0),Y([P()],$.prototype,`usageCostSummary`,void 0),Y([P()],$.prototype,`usageError`,void 0),Y([P()],$.prototype,`usageStartDate`,void 0),Y([P()],$.prototype,`usageEndDate`,void 0),Y([P()],$.prototype,`usageSelectedSessions`,void 0),Y([P()],$.prototype,`usageSelectedDays`,void 0),Y([P()],$.prototype,`usageSelectedHours`,void 0),Y([P()],$.prototype,`usageChartMode`,void 0),Y([P()],$.prototype,`usageDailyChartMode`,void 0),Y([P()],$.prototype,`usageTimeSeriesMode`,void 0),Y([P()],$.prototype,`usageTimeSeriesBreakdownMode`,void 0),Y([P()],$.prototype,`usageTimeSeries`,void 0),Y([P()],$.prototype,`usageTimeSeriesLoading`,void 0),Y([P()],$.prototype,`usageTimeSeriesCursorStart`,void 0),Y([P()],$.prototype,`usageTimeSeriesCursorEnd`,void 0),Y([P()],$.prototype,`usageSessionLogs`,void 0),Y([P()],$.prototype,`usageSessionLogsLoading`,void 0),Y([P()],$.prototype,`usageSessionLogsExpanded`,void 0),Y([P()],$.prototype,`usageQuery`,void 0),Y([P()],$.prototype,`usageQueryDraft`,void 0),Y([P()],$.prototype,`usageSessionSort`,void 0),Y([P()],$.prototype,`usageSessionSortDir`,void 0),Y([P()],$.prototype,`usageRecentSessions`,void 0),Y([P()],$.prototype,`usageTimeZone`,void 0),Y([P()],$.prototype,`usageContextExpanded`,void 0),Y([P()],$.prototype,`usageHeaderPinned`,void 0),Y([P()],$.prototype,`usageSessionsTab`,void 0),Y([P()],$.prototype,`usageVisibleColumns`,void 0),Y([P()],$.prototype,`usageLogFilterRoles`,void 0),Y([P()],$.prototype,`usageLogFilterTools`,void 0),Y([P()],$.prototype,`usageLogFilterHasTools`,void 0),Y([P()],$.prototype,`usageLogFilterQuery`,void 0),Y([P()],$.prototype,`cronLoading`,void 0),Y([P()],$.prototype,`cronJobsLoadingMore`,void 0),Y([P()],$.prototype,`cronJobs`,void 0),Y([P()],$.prototype,`cronJobsTotal`,void 0),Y([P()],$.prototype,`cronJobsHasMore`,void 0),Y([P()],$.prototype,`cronJobsNextOffset`,void 0),Y([P()],$.prototype,`cronJobsLimit`,void 0),Y([P()],$.prototype,`cronJobsQuery`,void 0),Y([P()],$.prototype,`cronJobsEnabledFilter`,void 0),Y([P()],$.prototype,`cronJobsScheduleKindFilter`,void 0),Y([P()],$.prototype,`cronJobsLastStatusFilter`,void 0),Y([P()],$.prototype,`cronJobsSortBy`,void 0),Y([P()],$.prototype,`cronJobsSortDir`,void 0),Y([P()],$.prototype,`cronStatus`,void 0),Y([P()],$.prototype,`cronError`,void 0),Y([P()],$.prototype,`cronForm`,void 0),Y([P()],$.prototype,`cronFieldErrors`,void 0),Y([P()],$.prototype,`cronEditingJobId`,void 0),Y([P()],$.prototype,`cronRunsJobId`,void 0),Y([P()],$.prototype,`cronRunsLoadingMore`,void 0),Y([P()],$.prototype,`cronRuns`,void 0),Y([P()],$.prototype,`cronRunsTotal`,void 0),Y([P()],$.prototype,`cronRunsHasMore`,void 0),Y([P()],$.prototype,`cronRunsNextOffset`,void 0),Y([P()],$.prototype,`cronRunsLimit`,void 0),Y([P()],$.prototype,`cronRunsScope`,void 0),Y([P()],$.prototype,`cronRunsStatuses`,void 0),Y([P()],$.prototype,`cronRunsDeliveryStatuses`,void 0),Y([P()],$.prototype,`cronRunsStatusFilter`,void 0),Y([P()],$.prototype,`cronRunsQuery`,void 0),Y([P()],$.prototype,`cronRunsSortDir`,void 0),Y([P()],$.prototype,`cronModelSuggestions`,void 0),Y([P()],$.prototype,`cronBusy`,void 0),Y([P()],$.prototype,`updateAvailable`,void 0),Y([P()],$.prototype,`attentionItems`,void 0),Y([P()],$.prototype,`paletteOpen`,void 0),Y([P()],$.prototype,`paletteQuery`,void 0),Y([P()],$.prototype,`paletteActiveIndex`,void 0),Y([P()],$.prototype,`overviewShowGatewayToken`,void 0),Y([P()],$.prototype,`overviewShowGatewayPassword`,void 0),Y([P()],$.prototype,`overviewLogLines`,void 0),Y([P()],$.prototype,`overviewLogCursor`,void 0),Y([P()],$.prototype,`skillsLoading`,void 0),Y([P()],$.prototype,`skillsReport`,void 0),Y([P()],$.prototype,`skillsError`,void 0),Y([P()],$.prototype,`skillsFilter`,void 0),Y([P()],$.prototype,`skillsStatusFilter`,void 0),Y([P()],$.prototype,`skillEdits`,void 0),Y([P()],$.prototype,`skillsBusyKey`,void 0),Y([P()],$.prototype,`skillMessages`,void 0),Y([P()],$.prototype,`skillsDetailKey`,void 0),Y([P()],$.prototype,`clawhubSearchQuery`,void 0),Y([P()],$.prototype,`clawhubSearchResults`,void 0),Y([P()],$.prototype,`clawhubSearchLoading`,void 0),Y([P()],$.prototype,`clawhubSearchError`,void 0),Y([P()],$.prototype,`clawhubDetail`,void 0),Y([P()],$.prototype,`clawhubDetailSlug`,void 0),Y([P()],$.prototype,`clawhubDetailLoading`,void 0),Y([P()],$.prototype,`clawhubDetailError`,void 0),Y([P()],$.prototype,`clawhubInstallSlug`,void 0),Y([P()],$.prototype,`clawhubInstallMessage`,void 0),Y([P()],$.prototype,`healthLoading`,void 0),Y([P()],$.prototype,`healthResult`,void 0),Y([P()],$.prototype,`healthError`,void 0),Y([P()],$.prototype,`debugLoading`,void 0),Y([P()],$.prototype,`debugStatus`,void 0),Y([P()],$.prototype,`debugHealth`,void 0),Y([P()],$.prototype,`debugModels`,void 0),Y([P()],$.prototype,`debugHeartbeat`,void 0),Y([P()],$.prototype,`debugCallMethod`,void 0),Y([P()],$.prototype,`debugCallParams`,void 0),Y([P()],$.prototype,`debugCallResult`,void 0),Y([P()],$.prototype,`debugCallError`,void 0),Y([P()],$.prototype,`logsLoading`,void 0),Y([P()],$.prototype,`logsError`,void 0),Y([P()],$.prototype,`logsFile`,void 0),Y([P()],$.prototype,`logsEntries`,void 0),Y([P()],$.prototype,`logsFilterText`,void 0),Y([P()],$.prototype,`logsLevelFilters`,void 0),Y([P()],$.prototype,`logsAutoFollow`,void 0),Y([P()],$.prototype,`logsTruncated`,void 0),Y([P()],$.prototype,`logsCursor`,void 0),Y([P()],$.prototype,`logsLastFetchAt`,void 0),Y([P()],$.prototype,`logsLimit`,void 0),Y([P()],$.prototype,`logsMaxBytes`,void 0),Y([P()],$.prototype,`logsAtBottom`,void 0),Y([P()],$.prototype,`chatNewMessagesBelow`,void 0),customElements.get(`openclaw-app`)||customElements.define(`openclaw-app`,$);export{Rp as A,r_ as C,q as D,Rg as E,zo as M,qn as N,Vm as O,on as P,O_ as S,Xg as T,b_ as _,NO as a,d_ as b,yD as c,u_ as d,S_ as f,f_ as g,i_ as h,FO as i,Rs as j,W as k,rD as l,D_ as m,LO as n,MO as o,E_ as p,IO as r,PO as s,RO as t,c_ as u,l_ as v,n_ as w,p_ as x,m_ as y};
|
|
5175
|
-
//# sourceMappingURL=index-
|
|
5175
|
+
//# sourceMappingURL=index-DE-6kUDC.js.map
|
|
5176
5176
|
|
|
5177
5177
|
/* === OpenClaw 功能面板 === */
|
|
5178
5178
|
/* ============================================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{k as r,o as i}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{k as r,o as i}from"./index-DE-6kUDC.js";var a=!1;function o(i){let o=!a;return e`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between;">
|
|
4
4
|
<div>
|
|
@@ -54,4 +54,4 @@ import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{k as r,o as i}from".
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
`}export{o as renderInstances};
|
|
57
|
-
//# sourceMappingURL=instances-
|
|
57
|
+
//# sourceMappingURL=instances-CxjWpqgf.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{u as r}from"./format-Cmx6MyUf.js";import{r as i,t as a}from"./string-coerce-BcFtIWA_.js";import{M as o,k as s,s as c}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{u as r}from"./format-Cmx6MyUf.js";import{r as i,t as a}from"./string-coerce-BcFtIWA_.js";import{M as o,k as s,s as c}from"./index-DE-6kUDC.js";var l=[``,`off`,`minimal`,`low`,`medium`,`high`,`xhigh`],u=[``,`off`,`on`],d=[{value:``,label:`继承`},{value:`off`,label:`关闭(显式)`},{value:`on`,label:`开启`},{value:`full`,label:`full`}],f=[{value:``,label:`继承`},{value:`on`,label:`开启`},{value:`off`,label:`off`}],p=[``,`off`,`on`,`stream`],m=[10,25,50,100];function h(e){if(!e)return``;let t=a(e);return t===`z.ai`||t===`z-ai`?`zai`:t}function g(e){return h(e)===`zai`}function _(e){return g(e)?u:l}function v(e,t){return!t||e.includes(t)?[...e]:[...e,t]}function y(e,t){return!t||e.some(e=>e.value===t)?[...e]:[...e,{value:t,label:`${t} (custom)`}]}function b(e,t){return!t||!e||e===`off`?e:`on`}function x(e,t){return e?t&&e===`on`?`low`:e:null}function S(e,t){let n=a(t);return n?e.filter(e=>{let t=a(e.key),r=a(e.label),i=a(e.kind),o=a(e.displayName);return t.includes(n)||r.includes(n)||i.includes(n)||o.includes(n)}):e}function C(e,t,n){let r=n===`asc`?1:-1;return[...e].toSorted((e,n)=>{let i=0;switch(t){case`key`:i=(e.key??``).localeCompare(n.key??``);break;case`kind`:i=(e.kind??``).localeCompare(n.kind??``);break;case`updated`:i=(e.updatedAt??0)-(n.updatedAt??0);break;case`tokens`:i=(e.totalTokens??e.inputTokens??e.outputTokens??0)-(n.totalTokens??n.inputTokens??n.outputTokens??0);break}return i*r})}function w(e,t,n){let r=t*n;return e.slice(r,r+n)}function T(e){switch(e){case`manual`:return`manual`;case`auto-threshold`:return`auto-threshold`;case`overflow-retry`:return`overflow retry`;case`timeout-retry`:return`timeout retry`;default:return e}}function E(e){return typeof e.tokensBefore==`number`&&typeof e.tokensAfter==`number`&&Number.isFinite(e.tokensBefore)&&Number.isFinite(e.tokensAfter)?`${e.tokensBefore.toLocaleString()} → ${e.tokensAfter.toLocaleString()} tokens`:typeof e.tokensBefore==`number`&&Number.isFinite(e.tokensBefore)?`${e.tokensBefore.toLocaleString()} tokens before`:`token delta unavailable`}function D(r){let i=C(S(r.result?.sessions??[],r.searchQuery),r.sortColumn,r.sortDir),a=i.length,o=Math.max(1,Math.ceil(a/r.pageSize)),c=Math.min(r.page,o-1),l=w(i,c,r.pageSize),u=(t,n,i=``)=>{let a=r.sortColumn===t,o=a&&r.sortDir===`asc`?`desc`:`asc`;return e`
|
|
2
2
|
<th
|
|
3
3
|
class=${i}
|
|
4
4
|
data-sortable
|
|
@@ -303,4 +303,4 @@ import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{u as r}from"./format
|
|
|
303
303
|
</div>
|
|
304
304
|
</td>
|
|
305
305
|
</tr>`]:[]]}export{D as renderSessions};
|
|
306
|
-
//# sourceMappingURL=sessions-
|
|
306
|
+
//# sourceMappingURL=sessions-CGLUll_c.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{t as r}from"./format-Cmx6MyUf.js";import{t as i}from"./string-coerce-BcFtIWA_.js";import{E as a,j as o}from"./index-
|
|
1
|
+
import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{t as r}from"./format-Cmx6MyUf.js";import{t as i}from"./string-coerce-BcFtIWA_.js";import{E as a,j as o}from"./index-DE-6kUDC.js";import{i as s,n as c,r as l,t as u}from"./skills-shared-CbPxVEZw.js";function d(e){return e?a(e,window.location.href):null}var f=[{id:`all`,label:`全部`},{id:`ready`,label:`就绪`},{id:`needs-setup`,label:`需要配置`},{id:`disabled`,label:`已禁用`}];function p(e,t){switch(t){case`all`:return!0;case`ready`:return!e.disabled&&e.eligible;case`needs-setup`:return!e.disabled&&!e.eligible;case`disabled`:return e.disabled}}function m(e){return e.disabled?`muted`:e.eligible?`ok`:`warn`}function h(r){let a=r.report?.skills??[],o={all:a.length,ready:0,"needs-setup":0,disabled:0};for(let e of a)e.disabled?o.disabled++:e.eligible?o.ready++:o[`needs-setup`]++;let c=r.statusFilter===`all`?a:a.filter(e=>p(e,r.statusFilter)),l=i(r.filter),u=l?c.filter(e=>i([e.name,e.description,e.source].join(` `)).includes(l)):c,d=s(u),m=r.detailKey?a.find(e=>e.skillKey===r.detailKey)??null:null;return e`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between;">
|
|
4
4
|
<div>
|
|
@@ -311,4 +311,4 @@ import{f as e,r as t,u as n}from"./i18n-D96Y4o9G.js";import{t as r}from"./format
|
|
|
311
311
|
</div>
|
|
312
312
|
</dialog>
|
|
313
313
|
`}export{h as renderSkills};
|
|
314
|
-
//# sourceMappingURL=skills-
|
|
314
|
+
//# sourceMappingURL=skills-CH_cvm8V.js.map
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
} catch (e) {}
|
|
62
62
|
})();
|
|
63
63
|
</script>
|
|
64
|
-
<script type="module" crossorigin src="./assets/index-
|
|
64
|
+
<script type="module" crossorigin src="./assets/index-DE-6kUDC.js"></script>
|
|
65
65
|
<link rel="modulepreload" crossorigin href="./assets/i18n-D96Y4o9G.js">
|
|
66
66
|
<link rel="modulepreload" crossorigin href="./assets/directive-Dk4hInuL.js">
|
|
67
67
|
<link rel="modulepreload" crossorigin href="./assets/format-Cmx6MyUf.js">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as resolveOpenClawPackageRoot } from "./openclaw-root-OCsK6nUq.js";
|
|
2
2
|
import { n as resolveCliName } from "./cli-name-C3YKCm0e.js";
|
|
3
3
|
import { t as note } from "./note--Kd3X8eg.js";
|
|
4
|
-
import { c as usesSlowDynamicCompletion, i as isCompletionInstalled, o as resolveCompletionCachePath, r as installCompletion, s as resolveShellFromEnv, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { c as usesSlowDynamicCompletion, i as isCompletionInstalled, o as resolveCompletionCachePath, r as installCompletion, s as resolveShellFromEnv, t as completionCacheExists } from "./completion-cli-C4M8KX4W.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
//#region src/commands/doctor-completion.ts
|
package/dist/entry.js
CHANGED
|
@@ -203,7 +203,7 @@ function tryHandleRootHelpFastPath(argv, deps = {}) {
|
|
|
203
203
|
}
|
|
204
204
|
function runMainOrRootHelp(argv) {
|
|
205
205
|
if (tryHandleRootHelpFastPath(argv)) return;
|
|
206
|
-
import("./run-main-
|
|
206
|
+
import("./run-main-BR37jJte.js").then(({ runCli }) => runCli(argv)).catch((error) => {
|
|
207
207
|
console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
208
208
|
process$1.exitCode = 1;
|
|
209
209
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1029.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"tslib": "^2.6.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@aws-sdk/client-iam": "3.
|
|
69
|
+
"@aws-sdk/client-iam": "3.1029.0",
|
|
70
70
|
"@smithy/snapshot-testing": "^2.0.5",
|
|
71
71
|
"@tsconfig/node20": "20.1.8",
|
|
72
72
|
"@types/chai": "^4.2.11",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1029.0",
|
|
4
4
|
"description": "A collection of credential providers, without requiring service clients like STS, Cognito",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/client-cognito-identity": "3.
|
|
34
|
+
"@aws-sdk/client-cognito-identity": "3.1029.0",
|
|
35
35
|
"@aws-sdk/core": "^3.973.27",
|
|
36
36
|
"@aws-sdk/credential-provider-cognito-identity": "^3.972.22",
|
|
37
37
|
"@aws-sdk/credential-provider-env": "^3.972.25",
|
|
@@ -1165,7 +1165,7 @@ async function runGatewayCommand$1(opts) {
|
|
|
1165
1165
|
const { startGatewayServer } = await withProgress({
|
|
1166
1166
|
label: "Loading gateway modules…",
|
|
1167
1167
|
indeterminate: true
|
|
1168
|
-
}, async () => import("./server-
|
|
1168
|
+
}, async () => import("./server-3ZtD4HCo.js"));
|
|
1169
1169
|
setConsoleTimestampPrefix(true);
|
|
1170
1170
|
if (devMode) await ensureDevGatewayConfig({ reset: Boolean(opts.reset) });
|
|
1171
1171
|
gatewayLog.info("loading configuration…");
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ let runExec;
|
|
|
26
26
|
let saveSessionStore;
|
|
27
27
|
let waitForever;
|
|
28
28
|
async function loadLegacyCliDeps() {
|
|
29
|
-
const [{ installGaxiosFetchCompat }, { runCli }] = await Promise.all([import("./gaxios-fetch-compat-C6QYzuFG.js"), import("./run-main-
|
|
29
|
+
const [{ installGaxiosFetchCompat }, { runCli }] = await Promise.all([import("./gaxios-fetch-compat-C6QYzuFG.js"), import("./run-main-BR37jJte.js")]);
|
|
30
30
|
return {
|
|
31
31
|
installGaxiosFetchCompat,
|
|
32
32
|
runCli
|
|
@@ -15,7 +15,7 @@ import { t as WizardCancelledError } from "./prompts-4IH_gy1z.js";
|
|
|
15
15
|
import { n as logConfigUpdated } from "./logging-CyWF1nkK.js";
|
|
16
16
|
import { t as createClackPrompter } from "./clack-prompter-T4E1ByPY.js";
|
|
17
17
|
import { c as resolveManifestProviderOnboardAuthFlags, i as resolveDeprecatedAuthChoiceReplacement, n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice, t as formatDeprecatedNonInteractiveAuthChoiceError } from "./auth-choice-legacy-Yqy82isJ.js";
|
|
18
|
-
import { t as runSetupWizard } from "./setup-
|
|
18
|
+
import { t as runSetupWizard } from "./setup-DPD5b_eG.js";
|
|
19
19
|
import { r as applyLocalSetupWorkspaceConfig } from "./onboard-config-B_36TeUV.js";
|
|
20
20
|
//#region src/commands/onboard-core-auth-flags.ts
|
|
21
21
|
const CORE_ONBOARD_AUTH_FLAGS = [];
|
|
@@ -5,7 +5,7 @@ import { n as VERSION } from "./version-BnlvIG4z.js";
|
|
|
5
5
|
import "./globals-B2UyK3pD.js";
|
|
6
6
|
import { n as resolveCliName } from "./cli-name-C3YKCm0e.js";
|
|
7
7
|
import { n as resolveCliChannelOptions } from "./channel-options-D_0Eadqw.js";
|
|
8
|
-
import { i as registerProgramCommands } from "./command-registry-
|
|
8
|
+
import { i as registerProgramCommands } from "./command-registry-BKb0Z6c6.js";
|
|
9
9
|
import { n as setProgramContext } from "./program-context-BKb8SNod.js";
|
|
10
10
|
import { t as isCommandJsonOutputMode } from "./json-mode-24_yfCoj.js";
|
|
11
11
|
import { t as forceFreePort } from "./ports-CPvyHVjY.js";
|
|
@@ -108,7 +108,7 @@ import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-CTRhkU
|
|
|
108
108
|
import { t as formatHealthCheckFailure } from "./health-format-BQuSabUf.js";
|
|
109
109
|
import { a as stripUnknownConfigKeys, i as resolveConfigPathTarget, n as formatConfigPath, r as noteOpencodeProviderOverrides, t as runDoctorConfigPreflight } from "./doctor-config-preflight-DA90JXj8.js";
|
|
110
110
|
import { a as runChannelPluginStartupMaintenance, i as normalizeCronJobIdentityFields, o as runGatewayUpdate, t as coerceFiniteScheduleNumber } from "./schedule-BtETCvy8.js";
|
|
111
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
111
|
+
import { n as doctorShellCompletion } from "./doctor-completion-CLKOJHd8.js";
|
|
112
112
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-DUfRAjGL.js";
|
|
113
113
|
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-CVSo1op-.js";
|
|
114
114
|
import { a as runLegacyStateMigrations, n as detectLegacyStateMigrations } from "./state-migrations-iOPLu-5E.js";
|
|
@@ -2,7 +2,7 @@ import { n as defaultRuntime } from "./runtime-BXaxArxm.js";
|
|
|
2
2
|
import { t as formatDocsLink } from "./links-_W1ZnMwp.js";
|
|
3
3
|
import { r as theme } from "./theme-DZuqFJmv.js";
|
|
4
4
|
import { n as runCommandWithRuntime } from "./cli-utils-8I4_zU0Y.js";
|
|
5
|
-
import { n as configureCommandFromSectionsArg, o as CONFIGURE_WIZARD_SECTIONS } from "./configure-
|
|
5
|
+
import { n as configureCommandFromSectionsArg, o as CONFIGURE_WIZARD_SECTIONS } from "./configure-CbGcH5Z6.js";
|
|
6
6
|
//#region src/cli/program/register.configure.ts
|
|
7
7
|
function registerConfigureCommand(program) {
|
|
8
8
|
program.command("configure").description("Interactive configuration for credentials, channels, gateway, and agent defaults").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/configure", "docs.openclaw.ai/cli/configure")}\n`).option("--section <section>", `Configuration sections (repeatable). Options: ${CONFIGURE_WIZARD_SECTIONS.join(", ")}`, (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
@@ -14,7 +14,7 @@ import { i as formatControlUiSshHint } from "./onboard-helpers-UZEfx-CR.js";
|
|
|
14
14
|
import { r as resolveGatewayService } from "./service-D4LakIYH.js";
|
|
15
15
|
import { n as runCommandWithRuntime } from "./cli-utils-8I4_zU0Y.js";
|
|
16
16
|
import { a as removePath, i as listAgentSessionDirs, o as removeStateAndLinkedPaths, r as buildCleanupPlan, s as removeWorkspaceDirs } from "./backup-create-DFag8ncA.js";
|
|
17
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
17
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-ovPyQkIx.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
20
20
|
//#region src/infra/clipboard.ts
|
|
@@ -4,7 +4,7 @@ import { r as theme } from "./theme-DZuqFJmv.js";
|
|
|
4
4
|
import { n as runCommandWithRuntime } from "./cli-utils-8I4_zU0Y.js";
|
|
5
5
|
import { c as resolveManifestProviderOnboardAuthFlags } from "./auth-choice-legacy-Yqy82isJ.js";
|
|
6
6
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-BQhfvFSK.js";
|
|
7
|
-
import { n as CORE_ONBOARD_AUTH_FLAGS, t as setupWizardCommand } from "./onboard-
|
|
7
|
+
import { n as CORE_ONBOARD_AUTH_FLAGS, t as setupWizardCommand } from "./onboard-DGunuYzK.js";
|
|
8
8
|
//#region src/cli/program/register.onboard.ts
|
|
9
9
|
function resolveInstallDaemonFlag(command, opts) {
|
|
10
10
|
if (!command || typeof command !== "object") return;
|
|
@@ -10,7 +10,7 @@ import { s as resolveSessionTranscriptsDir } from "./paths-zYrymkDo.js";
|
|
|
10
10
|
import { n as safeParseWithSchema } from "./zod-parse-DrvB8WE0.js";
|
|
11
11
|
import { n as runCommandWithRuntime } from "./cli-utils-8I4_zU0Y.js";
|
|
12
12
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CyWF1nkK.js";
|
|
13
|
-
import { t as setupWizardCommand } from "./onboard-
|
|
13
|
+
import { t as setupWizardCommand } from "./onboard-DGunuYzK.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import JSON5 from "json5";
|
|
16
16
|
import { z } from "zod";
|
|
@@ -58,7 +58,7 @@ const entrySpecs = [
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
commandNames: ["gateway"],
|
|
61
|
-
loadModule: () => import("./gateway-cli-
|
|
61
|
+
loadModule: () => import("./gateway-cli-1Dn_Y586.js"),
|
|
62
62
|
exportName: "registerGatewayCli"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -201,12 +201,12 @@ const entrySpecs = [
|
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
commandNames: ["update"],
|
|
204
|
-
loadModule: () => import("./update-cli-
|
|
204
|
+
loadModule: () => import("./update-cli-DloOTJjJ.js"),
|
|
205
205
|
exportName: "registerUpdateCli"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
commandNames: ["completion"],
|
|
209
|
-
loadModule: () => import("./completion-cli-
|
|
209
|
+
loadModule: () => import("./completion-cli-Cl_rEL7V.js"),
|
|
210
210
|
exportName: "registerCompletionCli"
|
|
211
211
|
}
|
|
212
212
|
])
|
|
@@ -231,14 +231,14 @@ const routedCommandDefinitions = {
|
|
|
231
231
|
"config-get": defineRoutedCommand({
|
|
232
232
|
parseArgs: parseConfigGetRouteArgs,
|
|
233
233
|
runParsedArgs: async (args) => {
|
|
234
|
-
const { runConfigGet } = await import("./config-cli-
|
|
234
|
+
const { runConfigGet } = await import("./config-cli-B5COIKc2.js");
|
|
235
235
|
await runConfigGet(args);
|
|
236
236
|
}
|
|
237
237
|
}),
|
|
238
238
|
"config-unset": defineRoutedCommand({
|
|
239
239
|
parseArgs: parseConfigUnsetRouteArgs,
|
|
240
240
|
runParsedArgs: async (args) => {
|
|
241
|
-
const { runConfigUnset } = await import("./config-cli-
|
|
241
|
+
const { runConfigUnset } = await import("./config-cli-B5COIKc2.js");
|
|
242
242
|
await runConfigUnset(args);
|
|
243
243
|
}
|
|
244
244
|
}),
|
|
@@ -395,7 +395,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
395
395
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
396
396
|
enableConsoleCapture();
|
|
397
397
|
const [{ buildProgram }, { installUnhandledRejectionHandler }, { restoreTerminalState }] = await Promise.all([
|
|
398
|
-
import("./program-
|
|
398
|
+
import("./program-Bdc4lBHm.js"),
|
|
399
399
|
import("./unhandled-rejections-ujRfWFpR.js"),
|
|
400
400
|
import("./restore-ADlpnb-M.js")
|
|
401
401
|
]);
|
|
@@ -412,10 +412,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
412
412
|
const { getProgramContext } = await import("./program-context-BnIQMMY3.js");
|
|
413
413
|
const ctx = getProgramContext(program);
|
|
414
414
|
if (ctx) {
|
|
415
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
415
|
+
const { registerCoreCliByName } = await import("./command-registry-W_luKphd.js");
|
|
416
416
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
417
417
|
}
|
|
418
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
418
|
+
const { registerSubCliByName } = await import("./register.subclis-C-BnxAWL.js");
|
|
419
419
|
await registerSubCliByName(program, primary);
|
|
420
420
|
}
|
|
421
421
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as truncateCloseReason } from "./close-reason-zAOyk2hH.js";
|
|
2
2
|
//#region src/gateway/server.ts
|
|
3
3
|
async function loadServerImpl() {
|
|
4
|
-
return await import("./server.impl-
|
|
4
|
+
return await import("./server.impl-WrZWpz7H.js");
|
|
5
5
|
}
|
|
6
6
|
async function startGatewayServer(...args) {
|
|
7
7
|
return await (await loadServerImpl()).startGatewayServer(...args);
|
|
@@ -227,7 +227,7 @@ import { i as loadAgentIdentity, o as pruneAgentConfig, r as findAgentEntryIndex
|
|
|
227
227
|
import { t as installSkill } from "./skills-install-BKxNmNY7.js";
|
|
228
228
|
import { a as runChannelPluginStartupMaintenance, i as normalizeCronJobIdentityFields, n as computeNextRunAtMs, o as runGatewayUpdate, r as computePreviousRunAtMs, t as coerceFiniteScheduleNumber } from "./schedule-BtETCvy8.js";
|
|
229
229
|
import { i as migrateOrphanedSessionKeys } from "./state-migrations-iOPLu-5E.js";
|
|
230
|
-
import { t as runSetupWizard } from "./setup-
|
|
230
|
+
import { t as runSetupWizard } from "./setup-DPD5b_eG.js";
|
|
231
231
|
import "./status-CC5Bwt7u.js";
|
|
232
232
|
import { t as getStatusSummary } from "./status.summary-jrRcaTX_.js";
|
|
233
233
|
import { _ as clearCronJobActive, i as getInspectableTaskRegistrySummary, m as stopTaskRegistryMaintenance, p as startTaskRegistryMaintenance, v as markCronJobActive } from "./task-registry.audit-CKVzk0Xv.js";
|
|
@@ -405,7 +405,7 @@ async function runSetupWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
405
405
|
nextConfig = await setupSkills(nextConfig, workspaceDir, runtime, prompter);
|
|
406
406
|
}
|
|
407
407
|
if (flow !== "quickstart") {
|
|
408
|
-
const { setupPluginConfig } = await import("./setup.plugin-config-
|
|
408
|
+
const { setupPluginConfig } = await import("./setup.plugin-config-dQGYeuQu.js");
|
|
409
409
|
nextConfig = await setupPluginConfig({
|
|
410
410
|
config: nextConfig,
|
|
411
411
|
prompter,
|
|
@@ -419,7 +419,7 @@ async function runSetupWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
419
419
|
mode
|
|
420
420
|
});
|
|
421
421
|
await writeConfigFile(nextConfig);
|
|
422
|
-
const { finalizeSetupWizard } = await import("./setup.finalize-
|
|
422
|
+
const { finalizeSetupWizard } = await import("./setup.finalize-DkDX2R4F.js");
|
|
423
423
|
const { launchedTui } = await finalizeSetupWizard({
|
|
424
424
|
flow,
|
|
425
425
|
opts,
|
|
@@ -12,12 +12,12 @@ import { h as waitForGatewayReachable, i as formatControlUiSshHint, u as probeGa
|
|
|
12
12
|
import { i as isSystemdUserServiceAvailable } from "./systemd-DJlhIfNC.js";
|
|
13
13
|
import { r as resolveGatewayService, t as describeGatewayServiceRestart } from "./service-D4LakIYH.js";
|
|
14
14
|
import { n as listConfiguredWebSearchProviders } from "./runtime-CGLhxu-h.js";
|
|
15
|
-
import { r as installCompletion } from "./completion-cli-
|
|
15
|
+
import { r as installCompletion } from "./completion-cli-C4M8KX4W.js";
|
|
16
16
|
import { r as healthCommand } from "./health-BhdBCFf4.js";
|
|
17
17
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-DTMB30d4.js";
|
|
18
18
|
import { t as resolveSetupSecretInputString } from "./setup.secret-input-DU5eqxj9.js";
|
|
19
19
|
import { t as formatHealthCheckFailure } from "./health-format-BQuSabUf.js";
|
|
20
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
20
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CLKOJHd8.js";
|
|
21
21
|
import { t as runTui } from "./tui-Co1DmBjK.js";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import os from "node:os";
|
|
@@ -75,7 +75,7 @@ async function promptPluginFields(params) {
|
|
|
75
75
|
const label = hint.label ?? key;
|
|
76
76
|
const helpSuffix = hint.help ? ` — ${hint.help}` : "";
|
|
77
77
|
if (hint.sensitive) {
|
|
78
|
-
await prompter.note(`"${label}"
|
|
78
|
+
await prompter.note(`"${label}" 是敏感字段。请通过以下方式设置:\n openclaw config set plugins.entries.${plugin.id}.config.${key} <value>\n或使用 Web UI 设置页面。`, "敏感字段");
|
|
79
79
|
continue;
|
|
80
80
|
}
|
|
81
81
|
if (schemaProp?.enum && Array.isArray(schemaProp.enum)) {
|
|
@@ -85,7 +85,7 @@ async function promptPluginFields(params) {
|
|
|
85
85
|
}));
|
|
86
86
|
if (hasValue) options.unshift({
|
|
87
87
|
value: "__keep__",
|
|
88
|
-
label:
|
|
88
|
+
label: `保持当前值 (${formatCurrentValue(currentValue)})`
|
|
89
89
|
});
|
|
90
90
|
const selected = await prompter.select({
|
|
91
91
|
message: `${label}${helpSuffix}`,
|
|
@@ -112,9 +112,9 @@ async function promptPluginFields(params) {
|
|
|
112
112
|
if (schemaProp?.type === "array") {
|
|
113
113
|
const currentStr = Array.isArray(currentValue) ? currentValue.join(", ") : "";
|
|
114
114
|
const trimmed = (await prompter.text({
|
|
115
|
-
message: `${label} (
|
|
115
|
+
message: `${label} (逗号分隔,留空清除)${helpSuffix}`,
|
|
116
116
|
initialValue: currentStr,
|
|
117
|
-
placeholder: hint.placeholder ?? "
|
|
117
|
+
placeholder: hint.placeholder ?? "值1, 值2"
|
|
118
118
|
})).trim();
|
|
119
119
|
if (trimmed !== currentStr) {
|
|
120
120
|
if (trimmed) setPathCreateStrict(updatedConfig, pathSegments, trimmed.split(",").map((v) => v.trim()).filter(Boolean));
|
|
@@ -177,22 +177,22 @@ async function setupPluginConfig(params) {
|
|
|
177
177
|
});
|
|
178
178
|
if (unconfigured.length === 0) return params.config;
|
|
179
179
|
const selected = await params.prompter.multiselect({
|
|
180
|
-
message: "
|
|
180
|
+
message: "配置插件 (选择要立即设置的,或跳过)",
|
|
181
181
|
options: [{
|
|
182
182
|
value: "__skip__",
|
|
183
|
-
label: "
|
|
184
|
-
hint: "
|
|
183
|
+
label: "暂时跳过",
|
|
184
|
+
hint: "不配置插件,继续"
|
|
185
185
|
}, ...unconfigured.map((p) => ({
|
|
186
186
|
value: p.id,
|
|
187
187
|
label: p.name,
|
|
188
|
-
hint: `${Object.keys(p.uiHints).length}
|
|
188
|
+
hint: `${Object.keys(p.uiHints).length} 个字段`
|
|
189
189
|
}))]
|
|
190
190
|
});
|
|
191
191
|
let config = params.config;
|
|
192
192
|
for (const pluginId of selected.filter((value) => value !== "__skip__")) {
|
|
193
193
|
const plugin = unconfigured.find((p) => p.id === pluginId);
|
|
194
194
|
if (!plugin) continue;
|
|
195
|
-
await params.prompter.note(
|
|
195
|
+
await params.prompter.note(`配置 ${plugin.name}`, "插件设置");
|
|
196
196
|
config = await promptPluginFields({
|
|
197
197
|
plugin,
|
|
198
198
|
config,
|
|
@@ -215,11 +215,11 @@ async function configurePluginConfig(params) {
|
|
|
215
215
|
return p.enabledByDefault || entry?.enabled === true;
|
|
216
216
|
}) });
|
|
217
217
|
if (configurable.length === 0) {
|
|
218
|
-
await params.prompter.note("
|
|
218
|
+
await params.prompter.note("未找到具有可配置字段的插件。", "插件");
|
|
219
219
|
return params.config;
|
|
220
220
|
}
|
|
221
221
|
const selected = await params.prompter.select({
|
|
222
|
-
message: "
|
|
222
|
+
message: "选择要配置的插件",
|
|
223
223
|
options: [...configurable.map((p) => {
|
|
224
224
|
const existing = getExistingPluginConfig(params.config, p.id);
|
|
225
225
|
const configuredCount = Object.keys(p.uiHints).filter((k) => {
|
|
@@ -230,12 +230,12 @@ async function configurePluginConfig(params) {
|
|
|
230
230
|
return {
|
|
231
231
|
value: p.id,
|
|
232
232
|
label: p.name,
|
|
233
|
-
hint: `${configuredCount}/${totalCount}
|
|
233
|
+
hint: `${configuredCount}/${totalCount} 已配置`
|
|
234
234
|
};
|
|
235
235
|
}), {
|
|
236
236
|
value: "__skip__",
|
|
237
|
-
label: "
|
|
238
|
-
hint: "
|
|
237
|
+
label: "返回",
|
|
238
|
+
hint: "返回分区菜单"
|
|
239
239
|
}]
|
|
240
240
|
});
|
|
241
241
|
if (selected === "__skip__") return params.config;
|
|
@@ -24,11 +24,11 @@ import { t as formatHelpExamples } from "./help-format-wJNYco7E.js";
|
|
|
24
24
|
import { n as renderTable, t as getTerminalTableWidth } from "./table-HzNK_tG8.js";
|
|
25
25
|
import { d as formatUpdateChannelLabel, g as resolveUpdateChannelDisplay, h as resolveEffectiveUpdateChannel, i as fetchNpmTagVersion, m as normalizeUpdateChannel, n as compareSemverStrings, o as resolveNpmChannelTag, r as fetchNpmPackageTargetStatus, t as checkUpdateStatus, u as channelToNpmTag } from "./update-check-B7E9tW37.js";
|
|
26
26
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-DFZw2UAF.js";
|
|
27
|
-
import { r as installCompletion } from "./completion-cli-
|
|
27
|
+
import { r as installCompletion } from "./completion-cli-C4M8KX4W.js";
|
|
28
28
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-DHFtD-Fy.js";
|
|
29
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
29
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-ovPyQkIx.js";
|
|
30
30
|
import { _ as normalizePackageTagInput, c as cleanupGlobalRenameDirs, d as detectGlobalInstallManagerByPresence, f as detectGlobalInstallManagerForRoot, g as resolveGlobalInstallTarget, h as resolveGlobalInstallSpec, l as collectInstalledGlobalPackageErrors, m as resolveExpectedInstalledVersionFromSpec, o as runGatewayUpdate, p as globalInstallArgs, s as canResolveRegistryVersionForPackageTarget, u as createGlobalInstallEnv, v as readPackageName, y as readPackageVersion } from "./schedule-BtETCvy8.js";
|
|
31
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
31
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CLKOJHd8.js";
|
|
32
32
|
import path from "node:path";
|
|
33
33
|
import { spawn, spawnSync } from "node:child_process";
|
|
34
34
|
import os from "node:os";
|