Fix local link: peer packages invisible outside profile tree.

Path installs junction the checkout outside ~/.dsh/profiles/*/node_modules, so Node cannot see DSH peers; add link-dsh-peers scripts and document the one-time setup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-04 22:25:30 +08:00
parent fd1a86ec2f
commit 13db99484f
5 changed files with 101 additions and 6 deletions

View file

@ -60,12 +60,16 @@ Open `dsh web`, new session → preset **Netx Ops**.
See [TOOL_MAP.md](TOOL_MAP.md).
## Local debug (DeepSeekHarness checkout)
## Local `link:` / path install
See [examples/local-debug/README.md](../examples/local-debug/README.md).
Rebuild the Plugins card after editing `src/client/`:
When you `dsh plugin add D:\path\to\netxops`, pnpm junctions the checkout **outside** the profile tree. Node then resolves imports from that checkout, so DSH peer packages (`@deepseek-ai/schemastery`, …) are invisible unless you link them once:
```powershell
bun run bundle
powershell -File .\scripts\link-dsh-peers.ps1
```
Unix: `./scripts/link-dsh-peers.sh`
(Requires a prior `dsh web` / profile boot so `~/.dsh/profiles/node_modules` exists.)
npm / GitHub installs place the package under the profile `node_modules` and do **not** need this step.