baikangwang/dsh-ide-ui--packages-ide0

dsh-ide-ui

ide-ui host half: the `ide` Remote namespace (filesystem / git / search primitives) for the DeepSeek Harness Web UI. Unofficial community plugin.

包名
dsh-ide-ui
版本
0.1.0-rc.7
最近更新
2026年8月18日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

dsh-ide-ui

ide-ui 的 Host 半(非官方社区插件):ide Remote 命名空间。一个 TypertRemoteService(注册为 ide)把文件 / git / 查找原语暴露给浏览器客户端(dsh-client-ide-uictx.remote.ide.* 调用)。所有能力都来自 Host 服务,绝不手搓 shell:

  • ctx.fs — 目录列举 / 读文本 / 新建文件 / 递归查找
  • ctx.subprocessgitrg(显式 argv,无 shell 拼接)
  • ctx.workspaceRegistry / ctx.sandboxPolicy — 工作区根与列表

方法失败时抛错(Remote 层把 throw 包成 RemoteResult 的 error 分支),软错误返回 { ok: false, stderr }

Service

方法入参出参
roots{ root, workspaces[] }
listDirpath{ path, entries[] }
readTextpath{ path, content, truncated, size }
newFilepath{ ok, path }
mkdir / delete / renameIdeRemoteFace{ ok, stderr, ... }
explore / pasteIdeRemoteFace{ ok, ... }
gitStatuscwd{ branch, changes[], notRepo, error }
gitDiffcwd, path?{ stdout, ok, stderr, path }
gitStage / gitUnstage / gitStageAll / gitUnstageAll / gitDiscard / gitCommitIdeRemoteFace{ ok, ... }
searchcwd, query, caseSensitive{ matches[], files, truncated, error }

完整签名见 src/types.tsIdeRemoteFace(与 @Remote 方法名严格一致;Typert 代码生成据此产出 typert.remote-client.d.ts)。

Model Experience

None, as the ide Remote namespace is a Web-UI backend — it contributes no system-prompt, tool-schema, or other model-visible surface.

KV Cache effect

Independent: this package adds no model-request tokens, so it cannot invalidate a reusable KV-cache prefix.

Known Limitations and Deferred Work

  • Windows-only path handlingexplore / paste / mkdir / delete / rename shell out to pwsh / explorer.exe; non-Windows hosts get a soft { ok: false }.
  • search fallback is naive — the non-rg path is a depth-first scan with a 400-file / 200-match cap and a hand-rolled skip list, not a tokenizer-based index.