wefio
dsh-engineering-services
LSP+DAP+TASK,但是只支持JS/TS、Python
- Stars
- 1
- Language
- TypeScript
- Created
- Aug 14, 2026
- Updated
- Aug 14, 2026
Introduction
dsh-engineering-services
IDE engineering services for DeepSeek Harness (dsh) — a host plugin porting the
pi-engineering-services suite: LSP / DAP / Task three pillars + an IDE-tooling usage skill.
| Pillar | What it provides | Entry |
|---|---|---|
| LSP | 12 tools: diagnostics, navigation, rename, workspace symbol | src/lsp/dsh-lsp.ts |
| DAP | debug tool, ~28 actions (debugpy + js-debug) | src/dap/dap.ts |
| Task | build/test/lint discovery & run (npm / make / just) | src/task/task.ts |
| Skill | usage policy & how-to for the three tool sets | skills/ide-three-pillars/SKILL.md |
| Runbook | install / activate / smoke / troubleshoot | skills/ide-runbook/SKILL.md |
Verified scope (kept from the pi edition)
- LSP: pyright (Python) + typescript-language-server (TS/JS). Others are configurable but experimental.
- DAP: debugpy (Python) + js-debug (JS/TS, vendored). Others are configured but experimental.
- Task: npm scripts / Makefile / justfile.
Language servers and debug adapters beyond this are present in the config but not tested.
Install
# from a local checkout (dev iteration)
cd dsh-engineering-services-dsh
npm i -D typescript # dev typecheck/build tooling (typescript)
npm run build # scripts/build.mjs → tsc emits lib/ + copies vendored dap assets
dsh plugin --profile web add link:$PWD
# restart dsh web + hard refresh, then in a new session:
# lsp_diagnostics on a .ts/.js/.py file
# task list / task run name=...
# debug launch program=... (needs debugpy / js-debug runtimes, see below)
Build tooling note: this package uses a plain Node ESM build (
scripts/build.mjs→tsc+ copy vendoreddap/js-debug/dap/debugpyintolib/). There is no tsdown/bundler. For tsserver to work, the workspace must resolve atypescript@5withlib/tsserver.js; see the runbook skill (section tsserver 的标准修法).
The plugin's node half registers the tools through the tools registry and the IDE-tooling
guidance section through the system-prompt registry (both probed at runtime, mirroring dsh-genui).
Configuration (pi-lsp.json)
Language servers are configured with the same schema as the pi edition:
- Project-local:
<workspace>/.dsh/pi-lsp.json - User/global:
~/.dsh/pi-lsp.json
{
"timeout": 20000,
"servers": {
"pyright": { "command": ["pyright-langserver", "--stdio"], "extensions": [".py", ".pyi"] },
"typescript-language-server": { "command": ["typescript-language-server", "--stdio"], "extensions": [".ts", ".tsx", ".js", ".jsx"] }
}
}
Without a config the plugin ships built-in defaults that now include pyright and typescript-language-server out of the box; the broader list (biome, ruff, etc.) is experimental — uninstalled default servers are auto-skipped by the tools.
Runtime notes / differences from the pi edition
- cwd: tools default to the calling session's workspace (
exec.agent.session.header.cwd), not a per-process cwd. Pass an explicitcwd/rootto override. - debugpy: not vendored (pip-installable). Set
DSH_DEBUGPY_PYTHONto any interpreter that has debugpy installed (test withpython -c "import debugpy"). The default${env:DSH_DEBUGPY_PYTHON|python3.13}is a guess — on many machines it'spython3.13that lacks debugpy while the systempythonhas it. There is no hard 3.13 requirement; pick whichever interpreter passes the import check. - js-debug: vendored under
src/dap/js-debug/(its own{"type":"commonjs"}package.jsonisolates the CJSdapDebugServer.jsfrom the ESM package root). - No
/lspslash command: the pi edition's/lspcommand is replaced by thelsp_toggletool. There is no per-conversation active-tool-set toggle in DSH's host plugin surface. - No pi
ctx.ui.setStatus: the LSP runner's status banner is a no-op in DSH; results carry the diagnostics/fix/navigation text directly.
Verify (typecheck)
pnpm run check # tsc --noEmit -p tsconfig.json
For offline typechecking, node_modules/@deepseek-ai/* are junctions into an installed
@deepseek-ai/dsh profile's packages (dev-only; not committed). A real installed profile
provides the same packages at runtime.
Docs
- DETAILED.md — migration map: how each pi file maps to this port.
- THIRD-PARTY-NOTICES — upstream sources & licenses.
skills/ide-runbook/SKILL.md— operations runbook: install into a dsh profile, restart, three-pillar smoke, and the tsserver/debugpy/Windows pitfalls (incl. self-bootstrap verification).
MIT