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

dsh-zcf

v0.5.3

Published

dsh-zcf: zero-config DeepSeek Harness setup wizard — install dsh, store provider credentials, and pick a runnable profile

Readme

npm version License DeepSeek Harness

dsh-zcf

English | 中文

dsh-zcf(DeepSeek Zero-Config Flow)是 DeepSeek Harness 的一键配置向导。它把一台机器从零带到可运行的 dsh 部署:缺 dsh 时装好它,把 DeepSeek API Key(以及可选的自定义端点)写入 harness 数据目录的凭据文档,并验证所选 profile 可以组装。

特性

  • 一条命令,零配置——把一台裸机带到可验证的 dsh 部署,只需一次 npx
  • 步骤可回退——交互流程中任意问题按 Esc 返回上一步,已答内容保留为默认值(直接回车即可前进);第一个问题按 Esc 取消。
  • 构造即安全——Key 在输入时掩码,写入仅属主可读的受管凭据文档,跨进程写锁内原子提交;绝不回显,摘要里始终掩码(sk-***4321)。
  • 可验证而非假设——向导用 dsh --dump-default-config 证明所选 profile 能组装,在调用任何模型前闭环已 keyless。
  • 自包含 tarball——复用的私有 @deepseek-ai 工具在构建期即打入 bin,npx 只解析公共 npm 包,绝不触碰私有 scope。
  • 可脚本化——完整的非交互模式(--key--mode--yes--dry-run),适配 CI 与自动化配置。
  • 双语界面——--lang zh-CN|en(默认 zh-CN)。
  • 可扩展——按需接入 Exa/Perplexity 搜索、SQLite 历史、持久终端、LSP 符号导航、Codex/Claude 委派或 MCP 服务器。

快速开始

curl -fsSL https://raw.githubusercontent.com/AdamPlatin123/dsh-zcf/master/install.sh | bash
npx dsh-zcf            # interactive menu: init / plugin market / manage / update / advanced / credentials (after each flow: return to menu or exit)
npx dsh-zcf i          # full init (same as the bare command)
npx dsh-zcf n          # recommended-plugin market
dsh-zcf --help          # grammar (after a global install)

需要 Node.js >= 22.12(node -v 查看)。旧版本运行时不会打印堆栈,而是输出双语升级指引。

非交互(CI、脚本):

dsh-zcf i --key sk-… --mode tui --yes
dsh-zcf i --key sk-… --mode web --base-url https://relay.example.com --yes
dsh-zcf n --plugin dsh-lens,dsh-spend           # install two picks (default dzcf profile)
dsh-zcf l --plugin dsh-lens                     # remove from the dzcf profile
dsh-zcf i --key sk-… --mode web --dry-run    # report the plan, write nothing

它做什么

  1. 检测 dshdsh -V)。不存在?向导先预告体量(@deepseek-ai/dsh 是完整发行版:60+ 个子包、数百个依赖,官方源约 5–15 分钟、镜像源约 1–2 分钟),交互模式实测官方源与阿里云镜像的往返延迟并把快的一方排在首位供选择;--registry <url> 显式指定安装源(跳过探测),非交互模式默认包管理器自己的源、绝不静默切换。安装过程逐行实时转发输出并报告耗时;--yes 跳过询问,没有可用包管理器则报错退出。
  2. 收集输入——DeepSeek API Key(掩码输入)、可选的 DEEPSEEK_BASE_URL 覆盖,以及运行形态:tui 终端 UI(Claude Code 风格)、web 浏览器 UI、或 app DSH Desktop 桌面客户端(anywhere-labs 的 Electron 应用:向导按平台自动下载安装包到 ~/Downloads 并引导安装;仅 macOS Universal 与 Windows x64 有安装包,其它平台自动落回 web 组合)。交互模式逐项询问;非交互模式必须有 --key--mode,缺失即报错退出。
  3. 写入凭据$DSH_HOME/.credentials.yaml——dsh-credentials-local 读取的受管文档,仅属主可读写(0700 目录下的 0600 文件)。未涉及的既有条目原样保留;写入在跨进程写锁内先重读再原子提交。Key 绝不回显:摘要里始终是掩码(sk-***4321)。
  4. 验证 profile:执行 dsh --profile <mode> --dump-default-config——内置的 web/headless profile 首次启动会自动初始化,所以一次成功的 dump 就能证明零配置闭环,无需任何模型调用。失败时输出 dsh 的 stderr;已写入的凭据保留。
  5. 下载与引导(app 形态)——解析 DSH Desktop 安装包(默认 dshdesktop.cn 源,--desktop-source github 可切换;GitHub 源带 sha256 校验),带进度下载到 ~/Downloads--desktop-platform mac|win 可为其它机器代下。无安装包的平台(Linux、Windows on ARM)说明后继续,onboarding 指向 dsh web
  6. 打印下一步——dsh web,或 dsh --profile dzcf(tui 形态;profile 默认名 dzcf,可用 --profile 改);app 形态打印安装包位置与 DSH Desktop 首启指引(凭据与 profile 同一 DSH 主目录,装好即用)。

除此之外不碰任何东西:不重写 profile 文件、不生成 cordis.yml,向导自身也从不调用模型 API。

参数

| 参数 | 含义 | |---|---| | i | 完整初始化(与裸命令等价)。 | | n | 推荐插件市场:多选安装 22 个精选插件(默认 dzcf profile)。 | | l | 管理已装插件:列出并按选择移除(默认 dzcf profile);交互模式移除前有一道摘要确认(--yes 跳过)。 | | u | 更新已装插件:多选刷新到 npm 最新版;非交互且不给 --plugin 时更新全部。 | | tui / dsh-tui | 直接启动默认 profile 的终端 UI(全局安装后 dsh-tui 命令可用),启动前显示配置来源。 | | c | 高级集成;需要 --profile--with。 | | k | 凭据管理菜单:更新 Key(先列出已存凭据(掩码)供选择,也可新输)、更新 Base URL、从上游 GET /models 列表选模型,或全部重配(端点、Key、模型)。 | | -k, --key <key> | API Key;跳过掩码输入。 | | --base-url <url> | 端点覆盖;必须是 http(s) 地址,否则退出码 1。 | | --model <id> | 将该模型 id 固定进 profile 的模型目录(交互流程还会列出上游 GET /models 结果供选择)。 | | -m, --mode <mode> | tuiwebapp;跳过列表选择。 | | --desktop-source <source> | DSH Desktop 安装包来源:cn(dshdesktop.cn,默认)或 github。 | | --desktop-platform <platform> | DSH Desktop 安装包平台:macwin;默认跟随本机,也可为其它机器代下。 | | -l, --lang <lang> | 界面语言:zh-CN(默认)或 en。 | | -y, --yes | 对安装与写入确认一律视为同意。 | | -p, --profile <name> | 集成选项所用的自定义 profile 名称。 | | --with <list> | 集成 id,逗号分隔(exa,terminal,lsp)。 | | --mcp-command <cmd> | MCP 服务器启动命令(非交互 --with mcp)。 | | --registry <url> | dsh 安装使用的 npm 源;必须是 http(s) 地址,否则退出码 1。 | | --plugin <list> | 推荐插件的 npm 包名,逗号分隔(dsh-lens,dsh-spend);init 时直装、manage 时直卸。 | | --dry-run | 打印计划中的写入与验证命令,不落盘。 | | -V, --version | 打印版本后退出。 |

推荐插件(22 个精选)

n 市场与 init 流程的多选清单,全部取自社区雷达 awesome-dsh-plugins 的运行级验证通过条目;更多插件见 awesome-dsh-plugin

| 方向 | 插件 | 效果 | |---|---|---| | 编码开发 | dsh-lens | 文件写入即时反馈:LSP、linter、formatter、ast-grep、符号搜索。 | | 编码开发 | dsh-ci-doctor | 后台盯 CI 失败并按日志签名诊断,去重台账。 | | 编码开发 | dsh-file-review | 以 diff 视图审查 agent 的文件修改。 | | Agent 能力 | dsh-subagent-tools | 按调用覆写子代理的模型/提供商/人设与工具过滤。 | | Agent 能力 | dsh-mcp-adapter | 按需搜索/描述/调用 MCP,schema 不进上下文。 | | Agent 能力 | billion-context-dsh | 模型驱动的上下文压缩与检索。 | | Web UI | dsh-office | 悬浮工作台/会话仪表盘,含 token 与子代理视图。 | | Web UI | dsh-spend | token 用量与估算成本悬浮窗。 | | Web UI | dsh-turn-index | 逐轮问题索引侧栏,点击跳转。 | | Web UI | dsh-outline | 从问题与 Markdown 标题实时生成大纲。 | | Web UI | dsh-genui | 内联 GenUI:图表、表单、测验、3D 场景。 | | 记忆 | dsh-mnemon | 本地三层记忆(运行时/项目/长期)配 Web UI。 | | 记忆 | dsh-memento | 有界、审批门控的跨会话记忆。 | | 消息通讯 | dsh-lark-bot | 飞书/Lark 桥:流式卡片、worktree 隔离。 | | 消息通讯 | dsh-dingtalk | 钉钉群机器人签名 webhook 通知。 | | 文件与安全 | dsh-artifact | 会话产物的组织与浏览。 | | 文件与安全 | dsh-security-scan | 扫描密钥与危险模式并脱敏。 | | 基建守护 | dsh-plugin-guard | 插件装卸前后快照/回滚安全网。 | | 基建守护 | dsh-plugin-audit | 插件静态权限画像 + 运行时哨兵。 | | 联网 | dsh-web-access | 多提供商联网搜索/抓取/源校验,带 Web 面板。 |

高级集成(官方接缝选项)

向导可以在内置 web/headless 形态之外扩展部署。选择任一选项会创建自定义 profile(--profile <name>,默认 dzcf),通过启动器自身的 dsh plugin add 安装能力,写入其 patch 行并验证组合:

| 选项 | 效果 | |---|---| | exa | 接入 Exa 搜索提供商(EXA_API_KEY$DSH_HOME/.env)。 | | perplexity | 接入 Perplexity 搜索提供商(PERPLEXITY_API_KEY$DSH_HOME/.env)。 | | sqlite | 用 SQLite 持久化会话历史(替换默认 JSONL)。 | | terminal | 添加持久 PTY 终端工具。 | | lsp | 添加语言服务器符号导航(service + stdio 后端 + 工具)。 | | codex | 把子任务委派给本机 Codex CLI(需已安装 codex)。 | | claude | 把子任务委派给本机 Claude Code(需已安装 claude)。 | | mcp | 接入一个 MCP 服务器(输入其启动命令)。 |

交互模式用多选提问;非交互用 --with exa,terminal,lsp--profile <name>。提供商 Key 仅在交互模式提示。

开发

向导是普通 Node CLI,依赖三个可注入接缝——RunFn(子进程)、PromptFn(@clack/prompts 端口)与 harness 数据目录——因此整个流程无需 TTY 即可测试。发布的 tarball 完全自包含:它复用的两个 @deepseek-ai 工具(dsh-home-pathsdsh-atomic-write)在构建期即被打入 bin(noExternal),因此 npx 运行只解析公共 npm 包,绝不触碰私有 @deepseek-ai scope。源码启动:仓库根目录执行 pnpm dzcf <args...>(tsx ESM 钩子,无需构建)。单元测试覆盖命令语法、凭据文档契约、能力目录、profile patch 写入与向导流程;keyless 快照通过 PATH 上的 fixture dsh 端到端重放真实入口。

已知限制

  • Base URL 输入只校验 http(s) 格式,不检查可达性与 Key 有效性——首次真实请求才会暴露这类失败。
  • 凭据写入是原子的但非崩溃持久(继承自 dsh-atomic-write);文档每次启动都会重读。
  • Windows 下跳过 0600/0700 权限校验,与 dsh-credentials-local 一致。

许可证

BSD-3-Clause 许可证发布,属于 DeepSeek Harness 的一部分。