# 贡献指南 / Contributing 欢迎 PR、issue、文档纠错。请先读 [`docs/DEVELOPMENT.md`](docs/DEVELOPMENT.md)(架构与踩坑)和 [`SECURITY.md`](SECURITY.md)。 ## 快速开始 / Quick start ```sh git clone https://github.com/muvuula/DeepSeek-Harness-Core.git cd DeepSeek-Harness-Core node --version # 需要 Node >= 20(开发用 26 测过) node --check dsh/index.mjs ``` 本仓库是 **DeepSeek Harness(DSH)插件**,没有独立可执行入口。要看到效果必须装进 DSH profile: ```sh dsh plugin --profile web add github:muvuula/DeepSeek-Harness-Core#master # 或本地目录 # 重启 dsh web 后访问 http://127.0.0.1:3080/api/dhc/panel ``` **运行时副本铁律 / Copy discipline**:DSH 实际加载的是 `~/.dsh/profiles/web/node_modules/mcore/`, 不是你的 git 工作区。改完源码必须同步过去并核对哈希,不然你会以为"改了没生效": ```sh cp dsh/index.mjs ~/.dsh/profiles/web/node_modules/mcore/dsh/index.mjs md5sum dsh/index.mjs ~/.dsh/profiles/web/node_modules/mcore/dsh/index.mjs ``` ## 改动前必读 / Before you change anything 1. **不要**把个人数据写进仓库:`persona-core.json*`、`mcore-backup.json`、`stockdata/`、 任何本机路径(`C:\Users\<你>`、`/home/<你>`)、机器码、账号、token 都在 `.gitignore` 之外的红线内。 `node release-check.mjs` 会拦常见泄漏。 2. **小步验证**:每改一处 → `node --check` → 同步 → 重启 → 调 API 验证。 一次大改曾留下孤立 `}`,让面板 JS 全崩。 3. **面板 HTML 不受 `node --check` 保护**:`dsh/index.mjs` 里的 `panelPageHtml` 模板字符串内含 `