Update
Bring the plugin in this profile up to the newest release: check, show the commands, run them after the user agrees, then ask for a restart.
Restarting alone changes nothing — the profile keeps what the package manager resolved when the plugin was added, so an update means removing and adding it again. Say that once, plainly, and move on to the steps.
Step 1 — read the state
pwshnode .dsh/scripts/plugin-update.mjs
One JSON line:
| Field | Meaning |
|---|---|
profile | the profile this session runs under (DSH_PROFILE) |
managedByApp | true for the desktop profile — the Electron app owns it, the CLI refuses to touch it |
installed / latest | versions, e.g. x.y.z installed and vx.y.z newest tag |
status | up-to-date · update-available · unknown |
commands | the exact commands for a CLI profile, or a hint for the desktop app |
otherProfiles | where else the plugin is installed, with versions |
warnings | network failure, not installed, and similar |
Step 2 — answer
-
up-to-date— one line: installed version = latest, nothing to do. -
unknown— say what could not be read (usually no network forgit ls-remote) and stop. Do not guess a version. -
update-available+managedByApp— the CLI cannot install into the desktop profile. Say: openPlugins, uninstalldeepseek-harness-game-studios,Add plugin, paste the URL, install, restart; after the restart, readnode .dsh/scripts/plugin-update.mjsonce more and confirminstalledchanged. Offer the paste for them:pwshSet-Clipboard -Value 'https://github.com/HYClub/deepseek-harness-game-studios' -
update-available+ CLI profile — go to Step 3.
Step 3 — ask before removing anything
Print the two commands verbatim, then ask. Do not run them before the user agrees — the first one removes the plugin from their profile:
pwshdsh plugin --profile <profile> remove deepseek-harness-game-studios dsh plugin --profile <profile> add https://github.com/HYClub/deepseek-harness-game-studios
Only after an explicit yes:
- run
remove, thenadd(a failedaddleaves the profile without the plugin — say so plainly if it happens); - re-run
node .dsh/scripts/plugin-update.mjsand confirminstalledchanged; - tell the user to restart the client — the framework payload (
~/.dsh/dsgs) is refreshed at plugin load, and the running session keeps the old skills until then.
Boundaries
- Never run
dsh plugin --profile desktop …: it is refused by design, and pretending otherwise wastes the user's time. - Never upgrade a profile this session is not running under (the other entries in
otherProfiles) unless the user names that profile. - No version guessing: if
latestisnull, say the check failed.


