UndeadSheep/dsh-file-preview--packages-dsh-file-preview ↗★ 0
@undeadsheep/dsh-file-preview
Workspace file tree listing and text preview/editing backed by a Host Remote for the DeepSeek Harness (distributable bundle: host service + client UI)
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:UndeadSheep/dsh-file-preview#290d61ddb3b20876e9e8223027abc24839ace531&path:packages/dsh-file-preview说明文档
阅读完整 README ↗@undeadsheep/dsh-file-preview
Workspace file-preview host half: a Typert Remote (filePreview) that lists the
workspace tree, reads/writes text files, and resolves the preview theme and config for
the browser half.
The browser UI lives in a separate package:
@undeadsheep/dsh-client-ui-file-preview.
Remote surface
| Method | Request | Result |
|---|---|---|
listTree | { sessionId } | Ok | Rejected |
readFile | { sessionId, path } | Ok | Rejected |
readImage | { sessionId, path } | Ok | Rejected |
writeFile | { sessionId, path, content } | Ok | Rejected |
readTheme | { sessionId } | Ok |
readConfig | { sessionId } | Ok |
Business results use the repo's { ok: true, value } | { ok: false, error: { code, ... } }
convention; the generated ./remote face wraps them in the RemoteResult carrier.
Wire codecs are generated from the @Remote method types by typert codegen — there is
no hand-written schema file.
listTree skips heavy/noise directories (node_modules, .git, .next, …) and caps the
returned tree at 5000 nodes, so large workspaces stay fast.
Config
| Key | Default | Meaning |
|---|---|---|
maxFileBytes | 2097152 |