oneinitAI/dsh-settings-plus ↗★ 2
@oneinitai/dsh-settings-plus
DeepSeek Harness 的高级设置管理插件:提供表单级和文件级的配置编辑,并附带开放的插件注册 SDK。
AI 分析
为 DSH 提供更强大的配置编辑能力,并为插件开发者提供便捷的设置注册 SDK。适合需要精细调整系统参数或进行插件开发的专业用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:oneinitAI/dsh-settings-plus说明文档
阅读完整 README ↗SDK usage for plugin authors
One namespace registration inside your plugin's apply, reclaimed with the calling fiber:
import { Context } from 'cordis'
import z from 'schemastery'
import { registerUserSettings } from '@oneinitai/dsh-settings-plus/sdk'
export const name = 'my-plugin'
export const inject = ['settings']
const MySection = z.object({
host: z.string().default('localhost'),
token: z.string().role('secret'),
})
export function apply(ctx: Context) {
ctx.effect(() => registerUserSettings(ctx, 'my-plugin', MySection, { applies: 'live' }))
}
The namespace immediately joins the host settings surface: the crawler's ctx.dshSettingsPlus.listNamespaces() includes it and the configuration UI renders its schema. Full contract (naming, secrets, lifecycle, dedup semantics) in docs/sdk-contract.md.