woyeshishen / dsh-restart-backend

목록에 있음

为 DeepSeek Harness Web 页面左下角添加“重启后端”按钮,一键重启 dsh 后端进程。

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:woyeshishen/dsh-restart-backend

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 a9bbff8동기화 2026. 8. 18.

dsh-restart-backend

npm version license

中文 | English

Adds a Restart Backend button to the bottom-left of the DeepSeek Harness (DSH) Web sidebar. Click it to restart the dsh web backend process in one step.

When the button is clicked, the Host side spawns a detached watchdog that waits for the current dsh web process to exit and release its port, then starts a fresh dsh web process with the same startup arguments. The old process exits gracefully through ctx.appExit.

Features

🔄 One-click restartRestart the backend from the Web UI without opening a terminal
🧱 Watchdog restartDetached process survives the old backend exiting, then relaunches with the same args
🔒 Loopback-safe by defaultOnly 127.0.0.1 / localhost can trigger a restart unless remote restart is enabled
📦 Install once, keep workingAuto-loads at DSH startup, survives restarts

Install

Windows (PowerShell)

irm https://raw.githubusercontent.com/woyeshishen/dsh-restart-backend/main/scripts/install.ps1 | iex

macOS / Linux

bash <(curl -fsSL https://raw.githubusercontent.com/woyeshishen/dsh-restart-backend/main/scripts/install.sh)

dsh plugin command

From npm

dsh plugin --profile web add @woyeshishen/dsh-restart-backend

From GitHub

dsh plugin --profile web add github:woyeshishen/dsh-restart-backend

After install, the plugin auto-mounts into the profile; restart DSH (or hard-refresh the page) to activate.

Usage

Once installed, open the DSH Web page. A circular ↻ Restart Backend button appears at the bottom-left of the sidebar.

Click it when you need to restart the backend. The page may disconnect briefly; after the backend comes back up, refresh the page if needed.

Configuration

The plugin exposes one optional setting:

ConfigTypeDefaultDescription
allowRemoteRestartbooleanfalseAllow non-loopback/trusted-host sources to trigger a restart.

To enable remote restart, add a config block in your cordis.patch.yml:

- insert:
    - id: restart-backend
      name: '@woyeshishen/dsh-restart-backend'
      config:
        allowRemoteRestart: true

Requirements

License

Apache-2.0

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

기여 가이드감지됨
문서감지됨

저장소 정보

언어
PowerShell
라이선스
Apache-2.0
마지막 업데이트
2026. 8. 16. 오후 4:19

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.