dsh-lockstep
开发工具 活跃维护

dsh-lockstep

da-beda/dsh-lockstep

支持感知固定版本规则的锁步更新工具,面向DeepSeek Harness生态,可自动检查锁文件漂移,按需规划固定版本提升,不会自动跳转至最新版本,保障依赖版本全程可控。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
10 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:da-beda/dsh-lockstep
git clone https://github.com/da-beda/dsh-lockstep.git
git clone git@github.com:da-beda/dsh-lockstep.git
README.md main

dsh-lockstep

Pin-aware updater for DeepSeek Harness.

The stock command dsh plugin --profile web update is pnpm update. It floats.
The community updaters (dsh-update-checker, dsh-safe-updater, dsh-market, …) also
float a live profile to whatever is newer.

lockstep does not float. It compares a reviewed lockfile to npm and GitHub,
proposes pin bumps, and stops. You commit the lockfile. Every machine re-runs
the installer.

check  →  plan  →  review  →  apply --write  →  commit  →  install.sh on each host

Install

CLI, no dsh required:

npx -y github:da-beda/dsh-lockstep#v0.1.1 check --lock plugins.lock.json

As a dsh plugin (registers lockstep_check / lockstep_plan tools):

dsh plugin --profile tui add github:da-beda/dsh-lockstep#v0.1.1
dsh plugin --profile web add github:da-beda/dsh-lockstep#v0.1.1

Lockfile

Same shape as da-beda/dsh-fleet (private kit):

{
  "runtime": { "package": "@deepseek-ai/dsh", "version": "0.1.1-rc.2", "spec": "@deepseek-ai/dsh@0.1.1-rc.2" },
  "plugins": [
    { "id": "modlens", "spec": "@liustack/modlens@3.24.1" },
    { "id": "open-in-vscode", "spec": "github:omdsh-dev/dsh-open-in-vscode#<sha>" }
  ]
}

github:owner/repo with no #ref is unpinned. plan proposes a HEAD SHA.
A tag (#v0.1.1) stays a tag. A SHA pin is current until HEAD moves.

Commands

dsh-lockstep check [--lock plugins.lock.json] [--json]
dsh-lockstep plan  [--lock plugins.lock.json]
dsh-lockstep apply [--lock plugins.lock.json] --write

apply refuses to write without --write. It never runs dsh plugin update.

Exit codes: 0 all current, 2 drift (behind or unpinned) or missing --write.

Set GITHUB_TOKEN (or GH_TOKEN) if you hit GitHub API rate limits.

Why this exists

People already built updaters. They solve a different problem: “make this
machine latest.” That is the wrong default while @deepseek-ai/dsh is an RC
and plugins run with process privileges.

lockstep solves: “keep N machines on the same reviewed pins, and notice when
the world moved.”

Security

See SECURITY.md. Short version: this tool talks to the npm registry and
GitHub. It does not execute package install scripts. Writing a lockfile is
not installing code.