zhxnix/dsh-wx-preview ↗★ 0

dsh-wx-preview

DSH plugin and local runtime for previewing native WeChat Mini Programs 适合需要让 DSH 自动发现、编译并在右侧边栏预览原生微信小程序的开发者。

パッケージ
dsh-wx-preview
互換性
未検証
Harness ピア範囲
^0.1.5-rc.2
バージョン
0.1.1
ライセンス
MIT
最終更新
2026/09/22

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhxnix/dsh-wx-preview

ドキュメント

README 全文を読む ↗

DSH 中使用

在会话中直接告诉 DSH:

发现 /Users/me/projects/example-mini
打开 /Users/me/projects/example-mini

模型会调用工具:

wxpreview_discover({ projectPath })
wxpreview_precompile({ projectPath, force? })
wxpreview_open({ projectPath, route?, port?, force? })
wxpreview_status({ projectPath?, sessionId? })
wxpreview_logs({ projectPath?, sessionId?, limit? })
wxpreview_update_identity({ projectPath, ...fixturePatch })
wxpreview_stop({ projectPath?, sessionId?, all? })

wxpreview_open 返回的 url/openInDshSidebar 是本机回环地址。它会按调用该工具的 DSH 会话保存面板映射;右栏请求 /dsh-wx-preview/config?sessionId=... 时只返回当前会话的预览,避免多个会话串项目。