rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ChriFang/dsh-code-editor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness Web GUI 增加一个会话内代码编辑器:
node_modules、.git、dist、build 等目录,可勾选包含。Ctrl+S 保存;保存带版本校验,外部修改后不会静默覆盖。要求 DSH >= 0.2.2-rc.1(Web UI)。
dsh plugin --profile <profile> add dsh-code-editor
或在 Harness 的 Plugins → Add plugin 中输入 dsh-code-editor。安装后刷新页面,打开任意会话,点顶部的 </> tab。
在 Harness 中启用实验性的 Custom plugin market,然后打开 Plugins → Discover → Add index source,添加公开索引地址,例如:
https://chrifang.github.io/dsh-code-editor-market/index.json
以你实际部署的 Pages 地址为准。索引格式和发布方式见 site/README.md。
见 安装说明.md。
打开任意会话后,顶部标题下方的 View tab 行会出现 </> tab,位于「对话」和「轨迹」之后。点击它进入代码编辑器:
Ctrl+S 或点「保存」。index.js(Host):注册四个经 Connection 鉴权的 /api/code-editor/* 路由:list:列目录;read:读取文本文件;search:文件名/内容搜索;write:带版本校验的保存。
所有路径都在当前会话工作目录内,并通过 ctx.fs 与 ctx.sandboxPolicy 执行。client.js(Client):通过 conversation.view 注册 </> View(order 20,排在 chat 和 trajectory 之后),读取 inputActions 把选中文本插入会话输入框;View 根节点声明 data-conversation-composer-overlay,让编辑器占满主区域并在底部为输入框留出空间。@deepseek-ai/dsh-client-ui-primitives 的 useCodeHighlighter(lang) 提供逐行 token,languageForPath(path) 负责扩展名到 grammar id 的映射。高亮层用 transform 跟随 textarea 滚动;中文输入法组合输入期间临时隐藏高亮层,避免组合文字透明看不见。--dsw-alias-*)和 Shiki 主题变量(--shiki-token-*),不导入 Harness Client 包。node test/host-routes.test.mjs
node test/client-render.test.mjs
host-routes 用临时目录和假的 Host Context 覆盖列目录、读取、文件名/内容搜索、保存、版本冲突、越界路径、二进制文件和只读模式。client-render 用假的 React 和假的 Shiki hook 静态渲染编辑器,覆盖高亮层/纯文本回退、未知后缀、grammar 未加载、末尾空行、大文件延迟高亮和只读大文件。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。