跳转到内容

开发

本文覆盖需要 clone 仓库的本地 flake 用法。远程 flake 用法见 README

终端窗口
git clone https://github.com/moraxyc/deepseek-harness.nix.git
cd deepseek-harness.nix

以下命令都需要在本仓库目录内执行:

终端窗口
nix build .#dsh
nix build .#presets.tui
nix build .#bundles.tui
nix run .#default -- --version
nix run .#dsh-desktop

packages 提供 dshdsh-desktopdsh-kerneldsh-workspacebundles.*presets.* 通过 legacyPackages 暴露,因此 nix build .#bundles.tuinix run .#presets.tui 这类引用同样可用。完整 目录见 Bundles 和预设

终端窗口
nix develop

默认开发 shell 包含 jqnix-updatenixfmtpre-commityq-go。pre-commit 和 flake checks 会在提交/推送前运行。

终端窗口
nix fmt
nix flake check
nix build .#docs-site
cd docs-site
npm ci
npm run build

更新锁文件:

终端窗口
nix flake update
nix flake update --flake ./modules/flake-parts/dev

所有用户可见文档保持中英双语,分别位于 docs-site/src/content/docs/docs-site/src/content/docs/zh/