@omnicrawl/cli-linux-arm-musl 0.2.8 → 0.4.0
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/omnicrawl +0 -0
- package/host/omnicrawl +0 -0
- package/host/omnicrawl-api +0 -0
- package/host/omnicrawl-decision +0 -0
- package/host/omnicrawl-host +0 -0
- package/host/omnicrawl-mcp-server +0 -0
- package/host/omnicrawl-tui +0 -0
- package/host/rust/assets/config-templates/config.example.toml +88 -26
- package/host/rust/assets/config-templates/decision_models.example.toml +62 -7
- package/host/rust/assets/config-templates/embedding_models.example.toml +31 -0
- package/host/rust/assets/config-templates/subagents.example.toml +37 -38
- package/host/rust/assets/extensions/node_runner.mjs +402 -402
- package/host/rust/assets/extensions/onejev_worker.py +293 -0
- package/host/rust/assets/templates/speaking-style.md +13 -0
- package/host/rust/assets/templates/subagents/computer-use.md +75 -0
- package/host/rust/assets/templates/system_prompt.md +5 -1
- package/package.json +1 -1
- package/version.json +3 -3
- package/host/rust/assets/templates/model_reply_compaction_system.md +0 -28
package/bin/omnicrawl
CHANGED
|
Binary file
|
package/host/omnicrawl
CHANGED
|
Binary file
|
package/host/omnicrawl-api
CHANGED
|
Binary file
|
package/host/omnicrawl-decision
CHANGED
|
Binary file
|
package/host/omnicrawl-host
CHANGED
|
Binary file
|
|
Binary file
|
package/host/omnicrawl-tui
CHANGED
|
Binary file
|
|
@@ -49,6 +49,28 @@ default_context_window_tokens = 1000000
|
|
|
49
49
|
[llm.profiles.gemini-main.discovery]
|
|
50
50
|
enabled = true
|
|
51
51
|
|
|
52
|
+
# 联网搜索(web_search 工具):默认引擎在 TUI /settings → 工具设置 → 联网搜索 中切换,
|
|
53
|
+
# 也可在此手改。duckduckgo / arxiv / huggingface
|
|
54
|
+
# 抓各自站点的公开搜索页,无需凭据,统一走浏览器指纹环境;
|
|
55
|
+
# github 配了 github_token 时走 REST 检索接口,未配时仍抓公开搜索页;
|
|
56
|
+
# tavily / exa / firecrawl / tinyfish 走各自的检索接口,需要配置对应的 API Key(写入本地 config.toml,不提交仓库);
|
|
57
|
+
# anysearch 走统一检索接口,anysearch_api_key 可选——留空即按 IP 走匿名免费额度;
|
|
58
|
+
# tinyfish 走 GET 检索接口(每天 12,000 次以内免费),tinyfish_api_key 必填;
|
|
59
|
+
# 走哪个引擎只看这里的设置:工具调用里的 engine 参数无效,agent 不能按单次任务改搜索通路。
|
|
60
|
+
# mixed 是综合搜索:并发查询上述渠道并去重合并,接口型渠道只在配了凭据时参与(anysearch 始终参与)。
|
|
61
|
+
[web_search]
|
|
62
|
+
engine = "duckduckgo"
|
|
63
|
+
tavily_api_key = ""
|
|
64
|
+
exa_api_key = ""
|
|
65
|
+
firecrawl_api_key = ""
|
|
66
|
+
# AnySearch API Key(可选):留空走匿名额度,填了则按该 Key 的付费额度计费。
|
|
67
|
+
anysearch_api_key = ""
|
|
68
|
+
# TinyFish API Key(必填才可用):留空时调用该引擎会如实报缺凭据。
|
|
69
|
+
tinyfish_api_key = ""
|
|
70
|
+
# GitHub Token 可选:配置后 GitHub 引擎改走 REST 检索接口(30 次/分钟),
|
|
71
|
+
# 留空则抓公开搜索页(10 次/分钟)。token 只影响额度,无需勾选任何仓库权限。
|
|
72
|
+
github_token = ""
|
|
73
|
+
|
|
52
74
|
# 视觉模型代理:模型引用复用 llm.profiles / models.toml,不在这里存 API Key。
|
|
53
75
|
# models 按顺序作为故障转移链;主模型不支持视觉且此项开启时,图片会先交给这些模型分析。
|
|
54
76
|
# 模型原生视觉在设置页「视觉」按当前模型/渠道开关(models.toml 或 [llm.profiles.<id>] 的 native_vision)。
|
|
@@ -56,49 +78,70 @@ enabled = true
|
|
|
56
78
|
enabled = false
|
|
57
79
|
models = []
|
|
58
80
|
|
|
59
|
-
#
|
|
60
|
-
# TUI /settings → 图像生成 中配置;
|
|
61
|
-
#
|
|
81
|
+
# 图像生成:两条通道按 provider 二选一——OpenAI 兼容 Image API 与 Gemini 的
|
|
82
|
+
# generateContent。接口地址、Key、模型与默认参数在 TUI /settings → 图像生成 中配置;
|
|
83
|
+
# api_key 写入本地 config.toml(不提交仓库)。size/quality 是 OpenAI 通道的口径,
|
|
84
|
+
# aspect_ratio/image_size 是 Gemini 通道的口径,切换服务商不会丢掉另一家的取值。
|
|
62
85
|
[image_gen]
|
|
63
86
|
enabled = false
|
|
87
|
+
# 服务商:openai / gemini。
|
|
88
|
+
provider = "openai"
|
|
89
|
+
# OpenAI 通道:https://api.openai.com/v1;Gemini 通道:
|
|
90
|
+
# https://generativelanguage.googleapis.com/v1beta。
|
|
64
91
|
base_url = "https://api.openai.com/v1"
|
|
65
92
|
api_key = ""
|
|
66
93
|
api_key_env = "OPENAI_API_KEY"
|
|
94
|
+
# OpenAI 通道默认 gpt-image-2;Gemini 通道默认 gemini-2.5-flash-image。
|
|
67
95
|
model = "gpt-image-2"
|
|
96
|
+
# 仅 OpenAI 通道使用:auto 或 宽x高。
|
|
68
97
|
size = "auto"
|
|
98
|
+
# 仅 OpenAI 通道使用:auto / low / medium / high。
|
|
69
99
|
quality = "auto"
|
|
100
|
+
# 仅 OpenAI 通道使用:png / jpeg / webp(Gemini 恒为 png)。
|
|
70
101
|
output_format = "png"
|
|
102
|
+
# 仅 Gemini 通道使用:画面比例,14 种之一(留空由模型取默认)。
|
|
103
|
+
aspect_ratio = ""
|
|
104
|
+
# 仅 Gemini 通道使用:分辨率档位 1K / 2K / 4K(留空由模型取默认)。
|
|
105
|
+
image_size = ""
|
|
71
106
|
n = 1
|
|
72
107
|
timeout_seconds = 120
|
|
73
108
|
|
|
74
|
-
# TTS
|
|
75
|
-
#
|
|
76
|
-
# 2) 本地推理(可选,需构建时带 omnicrawl-tts/onnx feature):MOSS-TTS-Nano ONNX,
|
|
77
|
-
# 首次启用时在 TUI /settings → TTS 中下载模型(约 763MB)并选择音色。
|
|
109
|
+
# TTS 语音合成(云服务):两条通道按 tts_cloud.provider 二选一,本机不需要模型文件
|
|
110
|
+
# 或 espeak-ng 一类原生依赖,只要 HTTP 与密钥。在 TUI /settings → TTS 中配置。
|
|
78
111
|
[tts]
|
|
79
112
|
enabled = false
|
|
80
|
-
model_dir = ""
|
|
81
|
-
voice = "Junhao"
|
|
82
113
|
auto_play = true
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
device = "auto"
|
|
86
|
-
# codec 流式解码(低首字节延迟;默认开启,显存占用低,避免全量解码 OOM)。
|
|
87
|
-
streaming = true
|
|
114
|
+
# 回合结束后朗读助手回复(直接在宿主里合成播放,不经 tts_synthesize 工具、也不走审批)。
|
|
115
|
+
speak_replies = false
|
|
88
116
|
output_dir = ".omnicrawl/.agent_tmp/tts"
|
|
89
117
|
|
|
90
|
-
#
|
|
118
|
+
# 服务商路由:openai / gemini。
|
|
119
|
+
[tts_cloud]
|
|
120
|
+
provider = "openai"
|
|
121
|
+
|
|
122
|
+
# OpenAI 通道(provider = "openai" 时生效):POST {base_url}/audio/speech。
|
|
123
|
+
# api_key 写入本地 config.toml(不提交仓库),也可在设置面板直接填写。
|
|
91
124
|
[tts_api]
|
|
92
|
-
enabled = true
|
|
93
125
|
base_url = "https://api.openai.com/v1"
|
|
94
126
|
api_key = ""
|
|
95
|
-
api_key_env = "OPENAI_API_KEY"
|
|
96
127
|
model = "gpt-4o-mini-tts"
|
|
128
|
+
# 音色:alloy/ash/ballad/coral/echo/fable/nova/onyx/sage/shimmer/verse/marin/cedar。
|
|
97
129
|
voice = "alloy"
|
|
98
|
-
#
|
|
99
|
-
|
|
100
|
-
#
|
|
101
|
-
speed = 1
|
|
130
|
+
# 语气指令;只对 gpt-4o-mini-tts 一类模型生效,留空则不下发。
|
|
131
|
+
instructions = ""
|
|
132
|
+
# 语速(0.25~4.0);1 时不下发该字段。
|
|
133
|
+
speed = 1
|
|
134
|
+
timeout_seconds = 120
|
|
135
|
+
|
|
136
|
+
# Gemini 通道(provider = "gemini" 时生效):POST {base_url}/models/{model}:generateContent。
|
|
137
|
+
[tts_gemini]
|
|
138
|
+
base_url = "https://generativelanguage.googleapis.com/v1beta"
|
|
139
|
+
api_key = ""
|
|
140
|
+
model = "gemini-2.5-flash-preview-tts"
|
|
141
|
+
# 预置音色名(如 Kore、Puck、Zephyr)。
|
|
142
|
+
voice = "Kore"
|
|
143
|
+
# 语气指令:Gemini 没有独立的指令字段,这段文本作为正文前缀下发。
|
|
144
|
+
instructions = ""
|
|
102
145
|
timeout_seconds = 120
|
|
103
146
|
|
|
104
147
|
[approval]
|
|
@@ -116,6 +159,11 @@ show_thinking = true
|
|
|
116
159
|
[memory]
|
|
117
160
|
enabled = true
|
|
118
161
|
|
|
162
|
+
# Skill 额外路径:目录或 .md 文件,相对路径按工作区解析。
|
|
163
|
+
# 与内置作用域一起参与发现,扫描顺序排在最后;同名 Skill 由先扫描到的作用域胜出。
|
|
164
|
+
# [skills]
|
|
165
|
+
# extra_paths = ["./my-skills", "~/.omnicrawl/shared-skills"]
|
|
166
|
+
|
|
119
167
|
# 内置工具开关:默认除 powershell 关闭外,其余全部启用。
|
|
120
168
|
# 只在需要禁用某个工具时取消注释并设为 false。
|
|
121
169
|
# [tools]
|
|
@@ -147,6 +195,21 @@ auto_retry_errors = ["SERVICE_UNAVAILABLE"]
|
|
|
147
195
|
enabled = true
|
|
148
196
|
max_auto_followups = 3
|
|
149
197
|
|
|
198
|
+
# 桌面操作(Computer Use):让模型通过截图观察窗口,并用鼠标键盘完成 GUI 任务。
|
|
199
|
+
# 由专职子代理执行,与 [subagents] 总开关互相独立;每次任务占用整个桌面,因此并发恒为 1。
|
|
200
|
+
# 本功能按时间收敛(不限制步数),无人工审核:破坏性动作由子代理先回报确认。
|
|
201
|
+
[computer_use]
|
|
202
|
+
enabled = false
|
|
203
|
+
# 专用子代理使用的模型;留空或 inherit 表示继承主模型。
|
|
204
|
+
model = ""
|
|
205
|
+
# 单次 computer_use 调用的时间预算(秒),超时会把已完成进度返回给模型。
|
|
206
|
+
timeout_seconds = 600
|
|
207
|
+
# 截图长边上限:同时决定坐标换算比例,越小越省 Token。
|
|
208
|
+
screenshot_max_dimension = 1024
|
|
209
|
+
# 专用子代理的思考强度:low / medium / high / xhigh / max。
|
|
210
|
+
# 桌面任务靠看画面、点控件收敛,深推理换不回转得动的操作,默认 low。
|
|
211
|
+
thinking_effort = "low"
|
|
212
|
+
|
|
150
213
|
[context_compaction]
|
|
151
214
|
# 上下文压缩是 Agent 的基础能力。触发阈值(Token)也可在运行设置面板按当前
|
|
152
215
|
# 模型上下文窗口的百分比设置(5% 步进):trigger_context_tokens = 上下文窗口 × 百分比。
|
|
@@ -243,16 +306,15 @@ enabled = false
|
|
|
243
306
|
# [subagents]
|
|
244
307
|
# enabled = false
|
|
245
308
|
# max_depth = 1
|
|
246
|
-
#
|
|
247
|
-
# max_tasks_per_batch = 4
|
|
309
|
+
# 保留以兼容既有配置;子代理已改为回合内同步串行执行,本项不再生效。
|
|
248
310
|
# default_timeout_seconds = 3600
|
|
249
311
|
# model_request_concurrency = 2
|
|
250
312
|
# allow_background = false
|
|
251
313
|
# allow_fork = false
|
|
252
|
-
# allow_worktree =
|
|
253
|
-
# allow_standard_agent =
|
|
314
|
+
# allow_worktree = true
|
|
315
|
+
# allow_standard_agent = true
|
|
254
316
|
# allow_shared_workspace_writes = false
|
|
255
|
-
# enable_verify_agent =
|
|
317
|
+
# enable_verify_agent = true
|
|
256
318
|
# verify_command_timeout_seconds = 120
|
|
257
319
|
# task_retention_minutes = 60
|
|
258
320
|
# result_summary_chars = 6000
|
|
@@ -16,7 +16,7 @@ name = "Jev 主渠道"
|
|
|
16
16
|
# 请求方式:
|
|
17
17
|
# jev —— Jev 原生接口,POST {base_url}/v1/decide,state + questions 直接进请求体。
|
|
18
18
|
# chat_completions —— OpenAI 兼容接口,POST {base_url}/chat/completions,
|
|
19
|
-
# base_url 与 [image_gen]
|
|
19
|
+
# base_url 与 [image_gen] 同口径(填到 /v1);
|
|
20
20
|
# 同一份 state + questions 作为 user 消息发出,从返回内容里解析 answers。
|
|
21
21
|
# onejev —— 本机自部署的 OneJev 服务,POST {base_url}/v1/systemone,
|
|
22
22
|
# 请求与响应形状与 jev 相同;base_url 指向本地服务(见下方 [local])。
|
|
@@ -29,6 +29,10 @@ api_key = ""
|
|
|
29
29
|
api_key_env = "JEV_API_KEY"
|
|
30
30
|
# 决策模型:jev-latest 跟随最新版本;生产环境建议钉死版本(如 jev-1.13.0)。
|
|
31
31
|
model = "jev-latest"
|
|
32
|
+
# 请求失败后的重试次数(不含首次请求):连接失败、超时与上游 5xx 按 0.2s→0.4s→0.8s(封顶 2s)
|
|
33
|
+
# 退避重试这么多次;4xx 不重试(那是请求本身的问题),读不到可用答案也不重试(不猜、不编)。
|
|
34
|
+
# 一次决策在回合路径上同步等待,因此次数要有界(上限 10);0 表示不重试。
|
|
35
|
+
retry_count = 3
|
|
32
36
|
enabled = true
|
|
33
37
|
|
|
34
38
|
# 决策模型的功能开关。开关关闭时相关功能走原路径(当前即对话模型审查与本地排序检索)。
|
|
@@ -47,10 +51,32 @@ memory_search_rerank = false
|
|
|
47
51
|
# 知识库检索使用决策模型排序:对 kb_search 同理,候选描述用标题、路径与摘要。
|
|
48
52
|
kb_search_rerank = false
|
|
49
53
|
|
|
54
|
+
# Skill 检索使用决策模型排序:开启后 skill_search 带关键词检索时先取更宽的候选池(最多 20 条),
|
|
55
|
+
# 再让决策模型按相关程度排序,按各候选项的置信度降序返回,条数仍按调用方给的 max_results。
|
|
56
|
+
# 不带关键词(按作用域列出全部)时没有「相关度」可判,不送审。决策服务不可用时回退本地排序,
|
|
57
|
+
# 检索工具不会因此失败。
|
|
58
|
+
skill_search_rerank = false
|
|
59
|
+
|
|
60
|
+
# 联网搜索使用决策模型排序:开启后 web_search 对每一路渠道结果单独送审——本地先按关键词
|
|
61
|
+
# 覆盖度圈出该路前 10 条,交决策模型按相关度排序后每路保留前 5 条。engine=mixed 时每路各自
|
|
62
|
+
# 排序、各自最多 5 条,因此返回总量随渠道数增长(N 路 × 5 条),没有固定总量上限;只有调用方
|
|
63
|
+
# 显式给了 max_results 才收窄总数。决策服务不可用时回退本地顺序,搜索不会因此失败。
|
|
64
|
+
web_search_rerank = false
|
|
65
|
+
|
|
66
|
+
# 联网搜索使用向量模型排序:与上一项并行,各自读自己的开关。它是唯一画在「向量模型」
|
|
67
|
+
# 设置页顶部的开关(其余开关都在「结构化决策模型」页),配置仍在本段。开启后用「向量模型」设置里
|
|
68
|
+
# 配置的渠道把查询与每条候选都算成向量,按余弦相似度给该路结果排序,每路仍保留前 5 条;
|
|
69
|
+
# 判定条数上限的口径与 web_search_rerank 一致。两项都开启时**向量优先**:向量不可用
|
|
70
|
+
# (未配渠道、无凭据、请求失败)才回退决策模型排序;决策模型也不可用时回退本地关键词排序,
|
|
71
|
+
# 搜索不会因此失败。向量通路不依赖决策模型服务,因此不必先配决策渠道。
|
|
72
|
+
web_search_embedding_rerank = false
|
|
73
|
+
|
|
50
74
|
# 提问由决策模型自动作答:开启后模型调用 ask_user 且带选项时,不再弹面板等你作答,
|
|
51
75
|
# 而是把提问正文、你本回合的请求与本回合已有的顾问答复交给决策模型,让它选最符合
|
|
52
|
-
#
|
|
53
|
-
#
|
|
76
|
+
# 你意图的一项。候选项末尾固定带一项「我有自己的想法...」:需要你自己填写答案时决策
|
|
77
|
+
# 模型会选它,提问就退回面板(由你选或输入自己的回答)。没有选项的提问(自由问答)
|
|
78
|
+
# 照旧交给你。决策服务不可用时回退到人工提问,不会替你瞎猜;自动作答会在会话流里
|
|
79
|
+
# 留一条提示。
|
|
54
80
|
ask_user_custody = false
|
|
55
81
|
|
|
56
82
|
# 旧一轮工具调用按需淘汰(先标注-后压缩):只裁决「刚变老」的那一批(Agent 又推进了一批
|
|
@@ -72,6 +98,34 @@ ask_user_custody = false
|
|
|
72
98
|
# 重启后按同一份投影重建同一份上下文。
|
|
73
99
|
tool_call_prune = false
|
|
74
100
|
|
|
101
|
+
# 新提问自动建议工具:开启后,你每发一条新提问,宿主先把**这一条提问的正文**(不带历史)
|
|
102
|
+
# 与一份「已启用工具」的清单交给决策模型,问它「本次该用哪些工具」。每个工具一个是否题,
|
|
103
|
+
# 概率 ≥0.5 进建议名单、<0.5 排除;另有最后一个兜底判定——本条属于普通对话、寒暄或无从
|
|
104
|
+
# 判断的异常任务时,整份建议作废(不插入任何内容)。名单非空时在提问尾部追加一行
|
|
105
|
+
# 「当前请求建议调用tool:a、b。」再发给模型。
|
|
106
|
+
#
|
|
107
|
+
# 清单就是本机工具表里全部已启用的工具(每项为工具名 + 描述首句,截断到 24 字),不做人工
|
|
108
|
+
# 取舍:关掉的工具与当前没有运行期的工具(语音合成、顾问、Windows 组)本来就不在表里。
|
|
109
|
+
# 该用专用工具还是顺手用泛化工具,由决策模型按选择要求判断——子代理、生图、语音、桌面
|
|
110
|
+
# 操作这类专用工具贴合任务特殊性;读文件、搜代码、执行命令、记待办这类通用工具几乎每轮
|
|
111
|
+
# 都能顺手用一下,除非本次任务明确围绕它展开,否则判为用不到。决策服务不可用(缺渠道/凭据、
|
|
112
|
+
# 超时、响应不可解析)时按「本次无建议」处理,提问原文照发,不会挡住你的输入。
|
|
113
|
+
tool_suggestion = false
|
|
114
|
+
|
|
115
|
+
# 新提问自动建议子代理:与上面的 `tool_suggestion` 形状相同、互相独立,可单开也可同时开。
|
|
116
|
+
# 区别在候选清单:这里送审的是**本机可调度的子代理角色**(每项为角色名 + 角色描述首句,
|
|
117
|
+
# 截断到 24 字),与 `subagent` 工具的参数枚举同源,内核不能调度的角色不会进审。
|
|
118
|
+
# 判定同样是每个角色一个是否题 + 一个兜底判定(本条是否属于无需任何子代理的普通对话),
|
|
119
|
+
# 概率阈值都是 0.5。名单非空时在提问尾部追加一行「当前请求建议使用子代理:explore、plan。」。
|
|
120
|
+
#
|
|
121
|
+
# 子代理个个都是一次带独立上下文的子回合,开销明显高于主模型自己动手,因此判定要求特别
|
|
122
|
+
# 强调:只有能拆成相互独立、可并行推进的子任务,或需要隔离视角核查与隔离改动时才算用得到;
|
|
123
|
+
# 单步问答、小改动、串行依赖的活一律判为用不到。
|
|
124
|
+
#
|
|
125
|
+
# 两类同时开启时,两条请求**并发发起**,总耗时取两者的较大者而不是相加;任一失败只少一行。
|
|
126
|
+
# 决策服务不可用时同样按「本次无建议」处理,提问原文照发。
|
|
127
|
+
subagent_suggestion = false
|
|
128
|
+
|
|
75
129
|
# 决策 REST 接口:把决策能力暴露给本机其它程序(CLI 工具、Skill、外部脚本),
|
|
76
130
|
# 它们不必经主模型就能拿到决策结果。大脑(主模型)负责规划,小脑(决策模型)负责
|
|
77
131
|
# 快速判定,两者通过这个接口协同。
|
|
@@ -91,14 +145,15 @@ tool_call_prune = false
|
|
|
91
145
|
[api]
|
|
92
146
|
enabled = false
|
|
93
147
|
host = "127.0.0.1"
|
|
94
|
-
# 端口:与本地 API(8765
|
|
148
|
+
# 端口:与本地 API(8765)错开。
|
|
95
149
|
port = 8767
|
|
96
150
|
|
|
97
151
|
# 自部署(OneJev):在本机跑一份决策模型,不依赖云端服务。
|
|
98
152
|
#
|
|
99
153
|
# 官方发布 0.8B / 4B / 9B / 27B / 27B-FP8 五档(Hugging Face 的 OmniJev/OneJev-*),
|
|
100
|
-
#
|
|
101
|
-
#
|
|
154
|
+
# 由本机的判定 worker 直接驱动引擎,经命名管道(Windows)/ Unix socket 提供同一套判定——
|
|
155
|
+
# 不经 TCP 与 HTTP。设置面板的「结构化决策模型」页可以一键下载某一档、准备运行环境、
|
|
156
|
+
# 启停本地服务,并把决策渠道切到自部署。
|
|
102
157
|
# 权重与虚拟环境都在 model_dir 下(默认 ~/.omnicrawl/onejev),不进工作区。
|
|
103
158
|
[local]
|
|
104
159
|
# 当前部署的尺寸:0.8B / 4B / 9B / 27B-FP8 / 27B。
|
|
@@ -113,5 +168,5 @@ model_dir = ""
|
|
|
113
168
|
# 本机已有服务在跑(本机所有实例共用一份)就直接复用,不会重复启动;服务常驻,
|
|
114
169
|
# 不随实例退出被回收,要停就在设置页点「停止服务」。
|
|
115
170
|
auto_start = true
|
|
116
|
-
#
|
|
171
|
+
# 启动后等待服务就绪的上限(秒):首次加载权重并捕获 CUDA 图,大尺寸会久一些。
|
|
117
172
|
health_timeout_seconds = 600
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# OmniCrawl 向量模型配置(在设置面板「向量模型」页新建渠道后自动生成 embedding_models.toml)
|
|
2
|
+
#
|
|
3
|
+
# 向量模型把一段文本映射成一个定长浮点向量,记忆检索用它做语义召回:先把查询与
|
|
4
|
+
# 候选记忆都换成向量,按余弦相似度排序,再与关键词规则分做倒数排名融合。
|
|
5
|
+
#
|
|
6
|
+
# 全部走云端 OpenAI 兼容接口(POST {base_url}/embeddings),不使用本地模型:
|
|
7
|
+
# 本地推理要多一份模型文件与推理运行时,代价远高于收益。
|
|
8
|
+
#
|
|
9
|
+
# 未配置、未启用或缺凭据时,记忆检索直接退回纯关键词规则排序——这是刻意的兜底,
|
|
10
|
+
# 不是错误:向量召回是纯加速项,不可用不该让检索失败。
|
|
11
|
+
#
|
|
12
|
+
# 密钥请用环境变量(api_key_env);也可以直接写 api_key,但不要提交到版本库。
|
|
13
|
+
version = 1
|
|
14
|
+
|
|
15
|
+
# 默认使用的向量渠道 key;留空或指向不存在的渠道时取第一条启用的渠道。
|
|
16
|
+
default_key = "openai-embedding"
|
|
17
|
+
|
|
18
|
+
[channels.openai-embedding]
|
|
19
|
+
name = "OpenAI 向量"
|
|
20
|
+
# base_url 按 OpenAI 兼容口径填到 /v1,这里只追加 /embeddings。
|
|
21
|
+
base_url = "https://api.openai.com/v1"
|
|
22
|
+
api_key = ""
|
|
23
|
+
api_key_env = "OPENAI_API_KEY"
|
|
24
|
+
model = "text-embedding-3-small"
|
|
25
|
+
# 期望维度;0 表示由服务端决定(不下发 dimensions 字段)。
|
|
26
|
+
# 换模型或改维度后旧向量会自然失效(缓存键带渠道指纹)。
|
|
27
|
+
dimensions = 0
|
|
28
|
+
# 单次请求最多携带的文本条数;候选多时按此分批串行发送。
|
|
29
|
+
batch_size = 64
|
|
30
|
+
timeout_seconds = 30
|
|
31
|
+
enabled = true
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
# OmniCrawl 子代理设置模板(首次启动自动复制为 subagents.toml)
|
|
2
|
-
# 子代理设置已从 config.toml 完全迁移到本文件;程序只读取 subagents.toml,
|
|
3
|
-
# 不再回退读取 config.toml 的 [subagents] 段。
|
|
4
|
-
version = 1
|
|
5
|
-
|
|
6
|
-
# SubAgent
|
|
7
|
-
[subagents]
|
|
8
|
-
enabled = false
|
|
9
|
-
max_depth = 1
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# model = "default-chat"
|
|
1
|
+
# OmniCrawl 子代理设置模板(首次启动自动复制为 subagents.toml)
|
|
2
|
+
# 子代理设置已从 config.toml 完全迁移到本文件;程序只读取 subagents.toml,
|
|
3
|
+
# 不再回退读取 config.toml 的 [subagents] 段。
|
|
4
|
+
version = 1
|
|
5
|
+
|
|
6
|
+
# SubAgent 全局边界:默认关闭;开启后三种角色的能力开关默认放开(verify / standard / worktree)。
|
|
7
|
+
[subagents]
|
|
8
|
+
enabled = false
|
|
9
|
+
max_depth = 1
|
|
10
|
+
default_timeout_seconds = 3600
|
|
11
|
+
model_request_concurrency = 2
|
|
12
|
+
# 保留以兼容既有配置;子代理已改为回合内同步串行执行,本项不再生效。
|
|
13
|
+
allow_background = false
|
|
14
|
+
# 仅开放已脱敏父公开上下文的 read_only/verify Fork;默认关闭。
|
|
15
|
+
allow_fork = false
|
|
16
|
+
allow_shared_workspace_writes = false
|
|
17
|
+
allow_worktree = true
|
|
18
|
+
allow_standard_agent = true
|
|
19
|
+
enable_verify_agent = true
|
|
20
|
+
verify_command_timeout_seconds = 120
|
|
21
|
+
task_retention_minutes = 60
|
|
22
|
+
result_summary_chars = 6000
|
|
23
|
+
|
|
24
|
+
# 单独设置每个子代理使用的模型;key 必须与 Agent 定义名一致(如 explore/plan/verify)。
|
|
25
|
+
# model 支持:models.toml key/alias、profile/model_id 或裸 model_id;
|
|
26
|
+
# 缺省或写 inherit 表示沿用父模型(与任务级 model=inherit 语义一致)。
|
|
27
|
+
[subagents.models.explore]
|
|
28
|
+
# model = "default-chat"
|
|
29
|
+
|
|
30
|
+
[subagents.models.plan]
|
|
31
|
+
# model = "default-chat"
|
|
32
|
+
|
|
33
|
+
[subagents.models.verify]
|
|
34
|
+
# model = "default-chat"
|
|
35
|
+
|
|
36
|
+
[subagents.models.general-purpose]
|
|
37
|
+
# model = "default-chat"
|