npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@x1a0f3n9/dsh-settings

v0.1.7-rc.2

Published

Abstract user-settings seam (ctx.settings) for the DeepSeek Harness

Downloads

2,320

Readme


description: "通过 Config 派生表单查看和编辑插件的即时配置。" kind: "package-reference"

@x1a0f3n9/dsh-settings

English | 中文

概述

编辑插件通过 .volatile() 声明的字段,并查看其实际值。表单以 profile 条目 id 标识插件、保留秘密值,并拒绝过期写入。更改通过当前 profile 的 Cordis patch 持久化。

目录

使用此包

将此插件与 Loader 和 config-editor 一起挂载。基础组合包提供此组合。

- id: settings
  name: '@x1a0f3n9/dsh-settings'

此插件没有配置字段。表单只展示活动且可唯一定位的 profile 条目中的 volatile 字段。普通配置仍通过 Cordis 配置文件编辑。

Settings 启动后、Loader 完成所有条目的加载时,早期版本留在 harness home 中的 settings.yaml 会被导入一次:每个 section 写入同名条目(ui-developer-tools → ui-settings、ui-onboarding → ui-settings-general、shell → 当前平台的 shell 执行器条目),文件在第一次写入前改名为 settings.yaml.imported,被当前组合拒绝的 section 会记录日志并只保留在改名后的文件中。

重置恢复 profile 覆盖层以下的值,包括 schema 默认值。Home patch 和命令行 overlay 优先级更高;表单写入若会被它们覆盖,则被拒绝。

每个表单报告 autoGenerate(默认开启),供按 schema 生成页面的客户端使用;目前没有已发布的客户端这样做。自带页面的插件在 apply 中于可选的 ctx.inject(['settings'], ...) 子级内以 effect 注册 configure({ auto: false }, ctx.fiber):子级指明策略所属的插件 fiber,迟加载或被替换的 Settings 服务也会采用该策略,业务插件无需 Settings 即可运行。策略不移除配置读写。

理解实现

表单投影 去除运行时引用和普通字段。服务 提供带修订号的描述符,在委托持久化前按完整插件 Config 验证编辑。业务插件直接读取自己的 Config 引用。

秘密角色从实际值、继承值、profile 覆盖值和 schema 默认值中隐藏;客户端接收存在性标记。路径编辑保留客户端未收到的字段。此服务投影 Loader 配置,不维护独立的权威值,因此不发布 invariant companion。

进一步探索

模型体验

通过面向模型的插件读取的配置值间接影响模型。

KV Cache 影响

改变请求前缀的消费者决定缓存影响。

已知限制与延后工作

  • 嵌套 Include 独立拥有配置,不能通过当前 profile 的表单编辑。
  • 字段重置恢复继承值,不能删除下层配置提供的值。取消设置数组索引会移除该元素。

开发备注

无。