Keridium/dsh-gopeed-downloader ↗★ 0

dsh-gopeed-downloader

Agent tools for a local Gopeed downloader: create, inspect, pause, resume and remove downloads; diagnose or launch the Gopeed process; and receive download-complete events, including a background job that can wake an idle agent. The REST tools are cross-platform; process control is Windows-only.

패키지
dsh-gopeed-downloader
호환성
미검증
Cordis peer 범위
^4.0.0
버전
0.3.2
라이선스
MIT
최근 업데이트
2026. 11. 1.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-gopeed-downloader

Configuration

Screenshots

Settings page Settings page with a custom path and the webhook open

The form on Plugins -> Installed -> Gopeed Downloader -> Configure is volatile: saving applies immediately, with no plugin remount and no DSH restart. Every field's hint reads Default: X; empty = Y.

  • downloadTarget -- workspace (default) / gopeed / custom. workspace saves into the session's current working directory, which follows a cd. An explicit path argument to gopeed_add always wins.
  • customDownloadPath -- used when the target is custom. Empty = Gopeed's own download directory, and the fallback is reported in jobNote, never silent.
  • host -- default 127.0.0.1, required. IP or hostname only; http://... or host:port is rejected, and a bare IPv6 literal must be bracketed ([::1]).
  • port -- default 0 = auto-detect the live port of the running process. An empty box is rejected on save, so auto-detect means typing 0, not clearing the field.
  • token -- empty (the default) means no token is sent, which is what Gopeed ships with. An empty field keeps the stored token instead of clearing it; the browser only ever sees "set" / "not set". A wrong token is reported as unauthorized -- Gopeed answers HTTP 401, so it never looks like a connection failure, and auto-detection keeps the port it found. Only the token needs fixing.
  • exePath -- empty (the default) = auto-detect. Only portable or non-standard installs need it.
  • webhookMode -- off (default) / manual / auto; webhookPort -- 0 = system-assigned (the URL then changes across restarts), a concrete number keeps it stable; webhookToast -- off by default, because Gopeed already posts its own notification.
  • Config-only, not in the UI: timeoutMs (20000), portScan (false) and webhookNotify (true). Set them in the active profile's cordis.patch.yml under id: gopeed.

The port. Gopeed's desktop build starts on 127.0.0.1:0 -- port 0, a random port per launch -- with an empty token. Leave the plugin's port at 0 and it asks Windows which port the live Gopeed.exe holds. To pin one instead, open Gopeed -> Settings -> Advanced -> Protocol, choose TCP, set e.g. 127.0.0.1:9999, and enter the same number in the plugin form. Any concrete number in this README (such as 9999) is only an example. Saving writes the values into cordis.patch.yml under id: gopeed and takes effect immediately.

Why there is no default port, and where those defaults come from

Gopeed's own source hardcodes network="tcp", address="127.0.0.1:0", apiToken="" (app_controller.dart), and binds it with net.Listen (pkg/rest/server.go). The 9999 in Gopeed's OpenAPI document and JS SDK is a client-side convention (the CLI and gopeed-web build default -P to 9999); the desktop app never listens there unless you set it.

With port at 0 the plugin asks Windows for the ports Gopeed.exe holds (netstat -ano, then Get-NetTCPConnection). When neither discloses them it says so and points at the fixed port instead of guessing. portScan exists for that case and is off by default, because sweeping the dynamic port range touches software unrelated to Gopeed. There is no silent 9999 fallback: it would make an honest "port unknown" diagnosis unreachable.