Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
开发与运行时 #deepseek-harness#dsh-plugin

dsh-frontend-inspector

Lovstudio dev click-to-source for DeepSeek Harness web: runtime-only, reads React _debugSource on Shift+Option click and opens the editor. No build-time markers; works in vite dev (jsxDEV __source).

lovstudio @lovstudio ⬇ 1 ★ 0 main

安装

dsh plugin --profile web add github:lovstudio/dsh-frontend-inspector
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

Lovstudio dev click-to-source for DeepSeek Harness web: runtime-only, reads React _debugSource on Shift+Option click and opens the editor. No build-time markers; works in vite dev (jsxDEV __source).

该插件未提供要点说明,请参考仓库 README。

deepseek-harnessdsh-plugin
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/lovstudio/dsh-frontend-inspector
许可证MIT
主要语言main
下载量1
GitHub 星标0
最近推送2026-08-22
收录日期2026-09-19
分类开发与运行时

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-frontend-inspector

Lovstudio's **dev-only** click-to-source for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) web surface. Hold `Shift + Option` and click a rendered element to open the editor at that element's source location.

This is a **Lovstudio** plugin, not a DeepSeek-AI package, distributed under the `@lovstudio` scope.

## What it does

The plugin is completely **runtime** — there are no build-time source transforms and no build-time `data-insp-path` markers.

- **Host half** registers two `webServer` routes:
  - `GET /lovinsp-inject.js` — serves the runtime client script.
  - `POST /lovinsp-open` — receives `{ file, line, col }` and opens the editor (`open ://file/::`).
- **Client** (the served script): on `Shift + Option` click, walks the target element's React fiber (`__reactFiber$`) to the nearest custom component and reads its `_debugSource` (`file:line:column`), then POSTs it to `/lovinsp-open`.

Because it reads React's `_debugSource`, it works where the app is built with the JSX `__source` kept in **development mode** (a real `vite`/dev-server React app). Production builds strip `__source`, so the plugin is a dev-facing debug tool.

The plugin reaches DSH capabilities through the injected Cordis `ctx` only (`webServer`, and the `settings` service for the enabled switch). Its only package dependency is the schemastery schema library.

## Install

Plugins distribute as a **bundle** (`dsh.bundle.patch` → `cordis.patch.yml`). Install into the `web` profile (the one `dsh web` boots):

```sh
# from git (append # to pin a commit)
dsh plugin --profile web add github:lovstudio/dsh-frontend-inspector

# or straight from npm
dsh plugin --profile web add @lovstudio/dsh-frontend-inspector
```

`enabled` defaults to **true**; a `frontend-inspector.enabled` settings namespace can override it. The `webServer` service is provided by the harness launcher / `@deepseek-ai/dsh-base`.

## Use

1. Start a **dev** web UI (one whose JSX keeps `__source`), or a `dsh web` served with `vite` dev-mode source info.
2. Hold `Shift + Option` and click any element.
3. The editor opens at the component's source.

## Notes

- Dev-only: requires React `_debugSource` present in the running bundle.
- IDE open uses the OS `open`/`xdg-open`/`start` command with the configured URL scheme (default `vscode`). Override via the plugin `scheme` config.

## License

[MIT](LICENSE)

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。