feat: add DSH IDE open-file references

This commit is contained in:
2026-08-17 11:52:48 +08:00
commit d96c11ae3d
42 changed files with 6991 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# DSH Cordis plugin
This package is both a normal dual-face Cordis plugin and a DSH profile bundle.
- Host: reads and validates companion snapshots, then serves `GET /coop-with-vs/open-files` to loopback clients.
- Client: registers the `ide-file` source in the existing `@` input-trigger pipeline.
- Pick result: a native composer reference chip whose model projection is `<ide-open-file>{"path":"..."}</ide-open-file>`.
No source content crosses the companion protocol or candidate endpoint.
## Build and test
```powershell
pnpm install
pnpm test
pnpm build
```
`lib/client.js` is wrapped in the `window.__ModuleLoader__.load` format expected by DSH Client Modules.
## Install
```powershell
dsh plugin --profile web add F:\dsh-plugin-coop-with-vs\dsh-plugin
```
The profile manager recognizes `dsh.bundle.patch` and appends this package to the Web profile's bundle list. `cordis.patch.yml` inserts one shared `coop-with-vs` row. Restart DSH after first installation.