@xulongzhe/clawbench-linux-x64 0.57.5 → 0.57.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/clawbench CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xulongzhe/clawbench-linux-x64",
3
- "version": "0.57.5",
3
+ "version": "0.57.7",
4
4
  "description": "ClawBench binary for Linux x64",
5
5
  "os": [
6
6
  "linux"
@@ -1,277 +0,0 @@
1
- # =============================================================================
2
- # ClawBench Configuration Example / 配置示例
3
- # =============================================================================
4
- #
5
- # All settings have sensible defaults — config/config.yaml is entirely optional.
6
- # 所有配置项均有默认值,config/config.yaml 完全可选,无需配置即可启动。
7
- #
8
- # Without a config file:
9
- # 无配置文件启动时:
10
- # - Password: auto-generated UUID, printed to console at startup
11
- # 密码自动生成为 UUID,启动时打印到控制台
12
- # - File access: entire filesystem (Linux/macOS: /, Windows: all drives)
13
- # 文件访问范围:整个文件系统(Linux/macOS: /, Windows: 所有盘符)
14
- # - Port: 20000, Proxy & SSH: enabled
15
- # 端口: 20000,端口转发与 SSH 隧道: 默认启用
16
- #
17
- # Usage / 使用方法:
18
- # Linux/macOS:
19
- # 1. (Optional) Copy this file as config.yaml: cp config/config.example.yaml config/config.yaml
20
- # (可选)复制此文件为 config.yaml:cp config/config.example.yaml config/config.yaml
21
- # 2. Modify values to match your environment
22
- # 根据实际情况修改配置项
23
- # 3. Start the server: ./clawbench
24
- # 启动服务:./clawbench
25
- # Windows:
26
- # 1. (Optional) Copy this file as config.yaml: copy config\config.example.yaml config\config.yaml
27
- # (可选)复制此文件为 config.yaml:copy config\config.example.yaml config\config.yaml
28
- # 2. Modify values to match your environment
29
- # 根据实际情况修改配置项
30
- # 3. Start the server: ./clawbench
31
- # 启动服务:./clawbench
32
- # =============================================================================
33
-
34
- # Server port (default: 20000) / 服务端口(默认: 20000)
35
- # port: 20000
36
-
37
- # Bind address (default: "" = 0.0.0.0, all interfaces; "localhost" = 127.0.0.1 only)
38
- # 绑定地址(默认: 空 = 0.0.0.0 所有接口; "localhost" = 仅 127.0.0.1)
39
- # host: ""
40
-
41
- # Log level: "debug", "info", "warn", "error" (default: "info")
42
- # 日志级别:debug / info / warn / error(默认: info)
43
- # log_level: "info"
44
-
45
- # Access password (default: auto-generated UUID, printed to console at startup).
46
- # 访问密码(默认:自动生成 UUID,启动时打印到控制台)
47
- # It is strongly recommended to set a strong password for public deployments.
48
- # 建议设置强密码保护服务安全。
49
- # Uncomment to set a fixed password / 取消注释以设置固定密码
50
- # password: "your-password-here"
51
- # Password can also be set via Settings UI, which stores it as SHA-256 hash:
52
- # 也可通过设置面板修改密码,将以 SHA-256 哈希存储:
53
- # password: "sha256:<64-char-hex-hash>"
54
-
55
- # Upload limits / 文件上传限制
56
- # upload:
57
- # max_size_mb: 100 # Maximum single file upload size in MB (default: 100) / 单文件上传大小上限(MB,默认: 100)
58
- # max_files: 20 # Maximum number of files per upload (default: 20) / 单次上传文件数上限(默认: 20)
59
-
60
- # TLS (HTTPS) configuration / TLS (HTTPS) 配置
61
- # Strongly recommended for public deployments / 公网部署时强烈建议启用 HTTPS
62
- # tls:
63
- # enabled: false # Enable HTTPS; requires cert_file and key_file when true / 启用后需配置证书路径
64
- # # Linux/macOS example / Linux/macOS 示例:
65
- # cert_file: "/path/to/fullchain.pem" # Certificate file, e.g. Let's Encrypt / 证书文件,如 Let's Encrypt
66
- # key_file: "/path/to/privkey.pem" # Private key file / 私钥文件
67
- # # Windows example / Windows 示例:
68
- # # cert_file: "C:\certs\fullchain.pem"
69
- # # key_file: "C:\certs\privkey.pem"
70
-
71
- # Chat UI settings / 聊天界面设置
72
- # chat:
73
- # initial_messages: 20 # Number of messages loaded initially (default: 20) / 初始加载的消息条数(默认: 20)
74
- # page_size: 20 # Number of messages per lazy-load batch (default: 20) / 每次懒加载追加的消息条数(默认: 20)
75
- # system_prompt_interval: 10 # Re-inject system prompt every N assistant turns for CLI backends without --system-prompt (0=never, default: 10) / 每N轮助手回复重新注入系统提示词(0=不重注入,默认: 10)
76
-
77
- # Session limit / 会话数量限制
78
- # session:
79
- # max_count: 10 # Maximum chat sessions per project (default: 10) / 会话数量上限(默认: 10)
80
-
81
- # Recent projects limit / 最近项目数量限制
82
- # recent_projects:
83
- # max_count: 10 # Maximum recent projects shown in the header dropdown (default: 10) / 标题栏下拉显示的最近项目数量上限(默认: 10)
84
-
85
- # TTS (Text-to-Speech) configuration / 语音合成配置
86
- # Supported engines / 支持的引擎:
87
- # edge — Microsoft Edge TTS, free and unlimited (default) / 微软 Edge TTS,免费无限制(默认)
88
- # piper — Local offline, ultra-fast / 本地离线,极速
89
- # kokoro — Local offline, high-quality Chinese / 本地离线,高质量中文
90
- # moss-nano — Local offline, multilingual, voice cloning / 本地离线,多语言,音色克隆
91
- # Full installation & deployment guide: docs/TTS.md / 完整安装部署指南:docs/TTS.md
92
- tts:
93
- engine: "edge" # TTS engine / TTS引擎: "edge" (default/默认), "piper", "kokoro", "moss-nano"
94
-
95
- # --- Speed & Voice (shared across all engines) ---
96
- # --- 语速与音色(所有引擎共享) ---
97
- speed: 1 # Speed multiplier (1.0 = normal; edge auto-converts to % rate, e.g. 1.2 → +20%)
98
- # 语速倍率(1.0=正常速度;edge 会转为百分比速率如 +0%)
99
- # voice: See engine-specific examples below / 见下方各引擎样例
100
-
101
- # --- Text Processing for TTS ---
102
- # --- TTS 文本处理 ---
103
- # inline_code_max_len: 100 # Max inline code content length (runes) to preserve; longer code is removed (default: 100)
104
- # 行内代码保留的最大字符数(rune);超出则整段删除(默认: 100)
105
- # max_summarize_runes: 10000 # Max runes for summarization input; longer text is truncated to the tail (default: 10000; simple mode: 1000)
106
- # 总结输入的最大字符数;超出则截取尾部(默认: 10000;simple 模式: 1000)
107
- # max_cache_files: 100 # Max cached TTS audio files to keep; oldest auto-deleted (-1=unlimited, default: 100)
108
- # TTS 语音缓存文件最大数量;超出时自动删除最旧的(-1=不限,默认: 100)
109
-
110
- # ============================================================
111
- # TTS Engine + Summarization Backend Combination Examples
112
- # TTS引擎 + 总结后端 组合样例 —— 取消注释对应的一组即可
113
- # For installation instructions, see docs/TTS.md
114
- # 安装部署步骤请参阅 docs/TTS.md
115
- # ============================================================
116
-
117
- # --- Combo 1: Edge TTS + simple summarization (free, no AI summarizer needed) ---
118
- # --- 组合1: Edge TTS + simple总结(免费,无需AI总结) ---
119
- # engine: "edge"
120
- # voice: "zh-CN-XiaoxiaoNeural" # Voice ID / 音色ID
121
- # speed: 1
122
-
123
- # --- Combo 2: Piper (local offline, ultra-fast) ---
124
- # --- 组合2: Piper(本地离线,极速) ---
125
- # engine: "piper"
126
- # voice: "zh_CN-huayan-medium"
127
- # speed: 1
128
- # piper:
129
- # model_path: ""
130
- # noise_scale: 0.667
131
- # length_scale: 1.0
132
- # sentence_silence: 0.2
133
-
134
- # --- Combo 3: Kokoro (local offline, high-quality Chinese) ---
135
- # --- 组合3: Kokoro(本地离线,高质量中文) ---
136
- # engine: "kokoro"
137
- # voice: "zf_001"
138
- # speed: 1
139
- # kokoro:
140
- # model_path: ""
141
- # voices_path: ""
142
- # lang: "cmn"
143
-
144
- # --- Combo 4: MOSS-TTS-Nano (local offline, multilingual) ---
145
- # --- 组合4: MOSS-TTS-Nano(本地离线,多语言) ---
146
- # engine: "moss-nano"
147
- # moss_nano:
148
- # model_dir: ""
149
- # backend: "onnx"
150
-
151
- # Summarization configuration / 总结配置
152
- # Shared by TTS voice summarization and scheduled task summarization.
153
- # TTS 语音总结和定时任务总结共用。
154
- # Backends / 总结后端:
155
- # "simple" — Pure text cleaning only (default) / 纯文本清洗(默认),零延迟
156
- # "api" — Remote AI API (OpenAI/Anthropic format) / 远程AI API(OpenAI/Anthropic格式)
157
- # "" — Disabled, no summarization / 关闭,不生成摘要
158
- # "simple" — Extract final answer (no AI call) / 提取最终回答(无 AI 调用)
159
- # "claude" — Claude CLI / 使用 Claude CLI
160
- # "codebuddy" — CodeBuddy CLI / 使用 CodeBuddy CLI
161
- # "gemini" — Gemini CLI / 使用 Gemini CLI
162
- # "opencode" — OpenCode CLI / 使用 OpenCode CLI
163
- # "codex" — Codex CLI / 使用 Codex CLI
164
- # "qoder" — Qoder CLI (Alibaba) / 使用 Qoder CLI(阿里编码智能体)
165
- # "vecli" — VeCLI (Volcengine Doubao) / 使用 VeCLI(火山引擎 Doubao)
166
- # "deepseek" — CodeWhale (formerly DeepSeek TUI, requires v0.8.33+) / 使用 CodeWhale(原 DeepSeek TUI,需 v0.8.33+)
167
- # "pi" — Pi CLI (minimalist coding agent) / 使用 Pi CLI(极简编程智能体)
168
- summarize:
169
- backend: "simple" # Summarization backend (default: "simple") / 总结后端(默认: simple)
170
- # model: "" # Summarization model (leave empty for backend default) / 总结模型(留空使用后端默认)
171
- # API sub-config (only used when backend is "api") / API子配置(backend为api时使用)
172
- # api:
173
- # base_url: "https://api.openai.com/v1/chat/completions" # Full endpoint URL / 完整端点URL
174
- # key: "sk-xxx" # API key / API密钥
175
- # format: "openai" # "openai" (default) or "anthropic" / "openai"(默认)或 "anthropic"
176
-
177
- # Default agent (optional; leave empty to use the first agent in database)
178
- # 默认智能体(可选,留空则使用数据库中的第一个智能体)
179
- # Available agents depend on your database / 可用智能体取决于数据库
180
- default_agent: "codebuddy"
181
-
182
- # Logging configuration (optional) / 日志配置(可选)
183
- # Default: .clawbench/logs under the binary directory / 默认:二进制同级目录下的 .clawbench/logs/
184
- log_dir: ".clawbench/logs"
185
- log_max_days: 7 # Log retention in days (default/默认: 7) / 日志保留天数,默认 7
186
-
187
- # SSH tunnel configuration for remote port forwarding
188
- # SSH 隧道远程端口转发配置
189
- # When enabled, Android app connects via SSH tunnel to access server local ports transparently.
190
- # The proxy section has been merged into port_forward — proxy.enabled is no longer used.
191
- # 启用后,Android App 通过 SSH 隧道访问服务器本地端口,对应用完全透明。
192
- # 旧版 proxy 配置已合并到 port_forward,proxy.enabled 不再生效。
193
- # Default: enabled / 默认:启用
194
- port_forward:
195
- enabled: true # Enable SSH tunnel server (default: true) / 启用 SSH 隧道服务(默认: true)
196
- port: 0 # SSH port (0 = auto = main_port + 1, e.g. production 20001; or specify like 20020)
197
- # SSH 端口(0 = 自动 = 主端口+1,如生产环境 20001;也可指定如 20020)
198
- host_key: "" # Host key file path (empty = auto-generate ephemeral key; set a path for persistence across restarts)
199
- # Host key 文件路径(空 = 自动生成临时密钥,重启后变更;建议指定路径以持久化)
200
- allowed_ports: "" # Allowed port range for SSH tunnel forwarding (empty = allow all; supports ranges and discrete ports, e.g. "1024-65535", "80,443,8080")
201
- # 允许通过 SSH 隧道转发的端口范围(空 = 允许所有端口;支持范围和离散端口,如 "1024-65535", "80,443,8080")
202
-
203
- # FRP (Fast Reverse Proxy) configuration / FRP 内网穿透配置
204
- # Enables Android phones to connect to ClawBench through a public FRP server,
205
- # even when both are behind NAT. The frp client runs in-process (no external binary needed).
206
- # 启用后,Android 手机可通过公网 FRP 服务器连接 ClawBench,即使双方都在 NAT 后面。
207
- # frp 客户端以 Go 库方式在进程内运行,无需外部二进制。
208
- # Default: disabled / 默认:关闭
209
- # frp:
210
- # enabled: false # Enable FRP tunnel (default: false) / 启用 FRP 穿透(默认: false)
211
- # server_addr: "" # FRP server address, e.g. "120.26.168.245" / FRP 服务器地址
212
- # server_port: 7000 # FRP server port (default: 7000) / FRP 服务器端口(默认: 7000)
213
- # token: "" # FRP authentication token / FRP 认证 token
214
- # remote_port: 0 # Remote TCP forwarding port (0 = frps auto-assign) / 远程转发端口(0 = frps 自动分配)
215
- # ssh_remote_port: 0 # SSH forwarding remote port (0 = auto-assign) / SSH 转发远程端口(0 = 自动分配)
216
-
217
- # RAG history memory configuration / RAG 历史记忆配置
218
- # When enabled, chat messages are automatically indexed into a vector database (DuckDB),
219
- # and AI agents can search historical conversations via the RAG API.
220
- # 启用后,聊天消息自动索引到向量数据库(DuckDB),AI 智能体可通过 RAG API 搜索历史对话。
221
- # RAG history memory — always enabled. Without embedding API, uses FTS-only search.
222
- # When embedding API is available, uses hybrid vector + FTS search with RRF fusion.
223
- # RAG 历史记忆 — 始终启用。无嵌入 API 时使用纯全文检索。
224
- # 嵌入 API 可用时,使用向量 + 全文混合检索(RRF 融合)。
225
- # Compatible with any OpenAI /v1/embeddings endpoint: Ollama, vLLM, LM Studio, LocalAI,
226
- # LiteLLM, OpenAI, Azure OpenAI, etc.
227
- # 兼容任何 OpenAI /v1/embeddings 端点:Ollama、vLLM、LM Studio、LocalAI、LiteLLM、OpenAI、Azure OpenAI 等。
228
- # Prerequisite for vector search: an embedding service must be running with the model loaded
229
- # (e.g., for Ollama: ollama pull bge-m3)
230
- # 向量搜索前提条件:嵌入服务需运行并加载模型(如 Ollama: ollama pull bge-m3)
231
- # rag:
232
- # base_url: "http://localhost:11434" # OpenAI-compatible API base URL / OpenAI 兼容 API 地址
233
- # model: "bge-m3" # Embedding model name / Embedding 模型名
234
- # api_key: "" # API key (optional, for cloud providers like OpenAI) / API 密钥(可选,云服务如 OpenAI 需要)
235
- # chunk_size: 512 # Chunk size in tokens (default: 512) / 分块大小(token,默认: 512)
236
- # chunk_overlap: 64 # Overlap between chunks in tokens (default: 64) / 分块重叠(token,默认: 64)
237
- # poll_interval: "10s" # Indexer poll interval (default: 10s) / 索引轮询间隔(默认: 10s)
238
- # batch_size: 10 # Messages per indexer batch (default: 10) / 每轮索引消息数(默认: 10)
239
- # search_limit: 5 # Default search result limit (default: 5) / 默认搜索结果数量(默认: 5)
240
- # search_pool_size: 20 # RRF candidate pool size per source (default: 20) / RRF 候选池大小(默认: 20)
241
- # retention_days: 90 # Soft-deleted data retention days, 0=keep forever (default: 90) / 软删除数据保留天数,0=永久保留(默认: 90)
242
-
243
- # Terminal configuration / 终端配置
244
- # Interactive web terminal with PTY + WebSocket + xterm.js
245
- # 交互式 Web 终端,基于 PTY + WebSocket + xterm.js
246
- # Default: enabled / 默认:启用
247
- # terminal:
248
- # enabled: true # Enable terminal (default: true) / 启用终端(默认: true)
249
- # idle_timeout: "0" # Close PTY after no WS connections (default: "0" = never, e.g. "10m") / 无连接超时关闭(默认: "0" = 永不超时,如 "10m")
250
- # buffer_lines: 2000 # Replay buffer line count (default: 2000) / 回放缓冲行数(默认: 2000)
251
- # max_line_bytes: 65536 # Per-line byte cap to prevent memory bloat (default: 64KB) / 单行字节上限(默认: 64KB)
252
- # max_buffer_mb: 4 # Total buffer memory cap in MB (default: 4) / 缓冲总内存上限 MB(默认: 4)
253
- # max_sessions: 10 # Max concurrent terminal sessions (default: 10) / 最大并发终端会话数(默认: 10)
254
-
255
- # System events configuration (read-only, for reference) / 系统事件配置(只读参考)
256
- # The EventBus provides real-time state-change notifications via SSE at GET /api/events.
257
- # EventBus 通过 SSE 端点 GET /api/events 提供实时状态变更通知。
258
- # No configuration needed — all values are hardcoded defaults / 无需配置 — 所有值为硬编码默认值:
259
- # - Max SSE subscribers: 20 (HTTP 429 when exceeded) / 最大 SSE 订阅数: 20(超出返回 HTTP 429)
260
- # - Per-subscriber channel buffer: 256 events / 每个订阅者通道缓冲: 256 个事件
261
- # - Heartbeat interval: 15 seconds / 心跳间隔: 15 秒
262
- # - Auth: cookie or ?token= query param (same as other /api/ endpoints) / 认证: cookie 或 ?token= 查询参数
263
- #
264
- # Event types / 事件类型:
265
- # session_start — AI chat session begins / AI 对话会话开始
266
- # session_complete — AI chat session ends (payload: reason: done/user_cancel/disconnect/cancelled/error) / 对话结束(reason 字段)
267
- # message_new — Non-streaming message persisted / 非流式消息已持久化
268
- # task_update — Scheduled task CRUD (create/pause/resume/update/delete) / 定时任务增删改
269
- # task_exec_update — Task execution lifecycle (running/completed/failed/cancelled) / 任务执行生命周期
270
- # tunnel_status — SSH tunnel client connect/disconnect / SSH 隧道客户端连接/断开
271
- #
272
- # Frontend: useSystemEvents composable connects automatically (cookie auth).
273
- # 前端: useSystemEvents composable 自动连接(cookie 认证)。
274
- # Android: PortForwardService native SSE listener uses ?token= auth; shows system notifications when backgrounded.
275
- # 安卓: PortForwardService 原生 SSE 监听器使用 ?token= 认证;后台时弹出系统通知。
276
-
277
-