baikangwang/deepseek-harness-UI--packages-ide ↗★ 0
@deepseek-ai/dsh-ide
VSCode-style unified sidebar for the DeepSeek Harness Web UI: Explorer, Search, Source Control, Sessions.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗@deepseek-ai/dsh-ide
VSCode 风格统一左栏扩展的源码。当前以动态 Cordis 插件形态运行(vside-1),本目录沉淀可复用源码与契约。
文件
| 文件 | 内容 |
|---|---|
host.js | Host 能力层:ide.roots / listDir / readText / git.status / git.diff / search |
client.js | Client 展示层:活动栏 + 资源管理器 / 搜索 / 源码管理 / 会话管理 |
package.json | 未来 @deepseek-ai/dsh-ide 包清单(蓝图,非当前可安装形态) |
以动态插件方式加载
host.js / client.js 各自导出一个 { apply(ctx) } 插件对象。用 cordis_define 加载时,把文件内容作为 Host / Client 函数体传入即可(apply 内部使用的 harness / host / styles / React 由动态运行时注入)。
RPC 契约(Client → Host)
| 方法 | 入参 | 出参 |
|---|---|---|
ide.roots | — | { root, workspaces[] } |
ide.listDir | { path } | { path, entries[] } |
ide.readText | { path, maxBytes? } | { path, content, truncated, size } | { error } |
ide.git.status | { cwd } | { branch, changes[], notRepo, error } |
ide.git.diff | { cwd, path } | { stdout, stderr, ok, path } |
ide.search | { cwd, query, caseSensitive? } | { matches[], files, truncated, error } |
正式化路径(P3)
- 把
host.js的 handler 抽成ctx.ideService(ctx.provide('ide', {...})),Client 用ctx.remote调用替代host.call。 client.js复用 UI primitives(ReadBlock/DiffBlock/SearchBlock)与 shiki 高亮,替换自绘 SVG / 正则高亮。package.json补齐dsh.client.inject(locale / runtime / sidebar / primitives / slots)与peerDependencies,作为正式包发布。