lovstudio/dsh-frontend-inspector

lovstudio★ 0TypeScript最后同步: 2026-08-22

在 GitHub 打开

README 摘要

dsh-frontend-inspector Lovstudio's dev-only click-to-source for the 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 …

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-plugin

分类