dsh-remote 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +5 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -26,9 +26,11 @@ const { Client } = ssh2
26
26
 
27
27
  export const name = 'dsh-remote'
28
28
 
29
- // tools (model tools) + systemPrompt (per-turn workspace hint) are required.
30
- // webServer is read lazily via ctx.get so it is NOT in inject.
31
- export const inject = ['tools', 'systemPrompt']
29
+ // tools + systemPrompt + webServer are required. webServer is INJECTED (not just
30
+ // lazily read) so this plugin activates only after the web server is up — otherwise
31
+ // apply() runs ahead of webServer and the /dsh-remote/* JSON routes never register
32
+ // (silently: the boot shows no error, but status/ls/workspace return the SPA fallback).
33
+ export const inject = ['tools', 'systemPrompt', 'webServer']
32
34
 
33
35
  export const Config = z.object({
34
36
  /** Remote SSH host (empty → the plugin starts disconnected). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-remote",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Remote-work assistant for DeepSeek Harness: connect SSH (password or key) to a remote host, pick a remote workspace directory, and operate on it with remote_list_dir / remote_read_file / remote_exec tools from the agent and a settings-page browser.",
5
5
  "keywords": [
6
6
  "deepseek-harness",