- Accueil
- Plugins
- Améliorations UI
- dsh-settings-tuner
S
dsh-settings-tuner
semidia/dsh-settings-tuner
Interface de réglage des paramètres système : page regroupant délais, parallélisme, politique de nouvelle tentative LLM, paramètres de modèle, recherche Web, permissions et préréglages. Modifie en sécurité la configuration profile par correspondance YAML ligne par ligne et validation après écriture.
Installer
dsh plugin --profile web add github:semidia/dsh-settings-tunerREADME
dsh-settings-tuner
DeepSeek Harness 系统参数调整插件:在设置页提供超时、并行、重试、模型、Web 搜索、权限等参数的调整 UI,全中文界面。
功能
- 设置页「系统参数」,分组调整:
- 代理循环:maxParallelToolCalls(最大并行工具数)
- 命令行:timeoutMs / maxTimeoutMs / maxOutputBytes(命令超时与输出限制)
- DeepSeek 模型:maxTokens / reasoningEffort / thinking / streamIdleTimeoutMs / retryPolicy(重试次数与退避)
- 默认模型:provider / model / reasoningEffort
- Web 搜索:maxTokens / maxUses
- 权限预设:defaultPreset
- 智能体预设:default
- 未暴露参数(写入 profile 配置,需重启):Web 搜索/抓取超时、文件搜索超时、glob/grep 结果数
- UI:中文标签、覆盖标记(●)、立即生效/需重启徽标、搜索过滤、分组折叠、应用/恢复默认按钮、前后端双重校验。
架构
- Host 半区(
lib/index.js):提供 RPCconfig/read/config/write,编辑 profile 的cordis.patch.yml中未暴露到 settings 系统的参数。行级精确匹配 YAML(只匹配缩进 0 的顶层条目,跳过注释/insert 块/嵌套),写入后自动运行dsh --profile web --dump-config验证,失败从备份回滚。路径动态解析:DSH_HOME环境变量定位 profile,process.cwd()(启动器以 harness 根为工作目录)定位部署根,可用DSH_HARNESS_ROOT/DSH_PROFILE_DIR覆盖。 - Client 半区(
lib/client.js):设置页 UI。已暴露参数通过connection.api.settings直接读写(installSettingsSection注册的命名空间改后即时生效);未暴露参数通过 Host RPC 写入配置。
安装
# 1. 建 junction
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-settings-tuner" -Target "本插件源码路径"
# 2. 在 cordis.patch.yml 加 insert 条目
# - insert:
# - id: dsh-settings-tuner
# name: 'dsh-settings-tuner'
# 3. 重启 dsh web
开发
# 语法检查
node --check lib/index.js
node --check lib/client.js
# 行级 YAML 编辑逻辑测试(18 项)
node test-line-yaml.cjs
# 配置写入逻辑测试(9 项)
node test-write-config.cjs
许可
MIT
Plugins associés
Z
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
10.5khierAméliorations UIApache-2.0
Z
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
10.5khierAméliorations UIApache-2.0
C
dsh-TUI
ccch1mneyyy/dsh-tui
7.9kil y a 23 heuresAméliorations UIMIT
Z
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui
6.3kil y a 3 moisAméliorations UIApache-2.0