dshbase

插件目录 / Developer / dsh-env-switcher

dsh-env-switcher

已验证 · 实测可装 Oyama-Mahiro-F

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-16最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-env-switcher

English · 简体中文

A DeepSeek Harness plugin that lets you switch between a Windows DSH instance
and a WSL2 (Linux) DSH instance from the web UI — both running at the same
time
(coexistence model).

v1.2.0 — the sidebar switcher moved to the main column (between the
quick entries and the Workspace block) and now hides when the sidebar is
collapsed
.

How it works

Environment URL Port
Windows DSH http://127.0.0.1:3080 3080
WSL DSH http://127.0.0.1:3081 3081
  • Both servers run simultaneously; nothing is ever killed.
  • The web UI gets an 「环境」 tab (above the conversation) and a
    「运行环境」 entry in the sidebar main column (| Windows | WSL |),
    placed above the Workspace block (i.e. between the quick entries and
    Workspace).
  • Collapse-aware: when the sidebar is collapsed, the「运行环境」entry is
    hidden; it reappears when the sidebar is expanded.
  • Clicking a target ensures that environment's server is running, then the
    current tab navigates to its URL.
  • Each environment keeps its own session history.

Host API

  • GET /env/api/state → { env, ownUrl, peerUrl }
  • GET /env/api/switch?target=windows|wsl → ensures the target server is up
    (no kill, no browser opening — the client navigates itself)

Install

dsh plugin --profile web add dsh-env-switcher

For a local checkout:

dsh plugin --profile web add file:/path/to/dsh-env-switcher

Restart the server, then hard-refresh the browser.

Configuration

All values are optional; defaults match a typical Windows + WSL2 machine:

# cordis.patch.yml
- insert:
    - id: dsh-env-switcher
      name: dsh-env-switcher
      config:
        winPort: 3080        # Windows DSH port
        wslPort: 3081        # WSL DSH port
        wslDistro: Ubuntu-24.04
        wslNodeBin: /home/fsc/node-v24.17.0-linux-x64/bin
        wslLog: /home/fsc/dsh-web.log
        winLog: D:\deepseek-harness\logs\dsh-web-win.log
        winWorkingDir: C:\Users\61468

Requirements

  • Windows with WSL2 and a Linux distro (e.g. Ubuntu 24.04)
  • A DSH installation in both environments (Windows + inside WSL)
  • The WSL instance is started with dsh web --port 3081 (the plugin does this
    automatically when needed)

Changelog

See CHANGELOG.md.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-env-switcher」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Oyama-Mahiro-F/dsh-env-switcher

Headless(CLI)profile:

dsh plugin --profile headless add github:Oyama-Mahiro-F/dsh-env-switcher

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →