oneinitAI/dsh-settings-plus2

@oneinitai/dsh-settings-plus

DeepSeek Harness 的高级设置管理插件:提供表单级和文件级的配置编辑,并附带开放的插件注册 SDK。

AI 分析

为 DSH 提供更强大的配置编辑能力,并为插件开发者提供便捷的设置注册 SDK。适合需要精细调整系统参数或进行插件开发的专业用户。

套件
@oneinitai/dsh-settings-plus
版本
0.0.1
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:oneinitAI/dsh-settings-plus

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.