dsh-tool-adapt 0.2.4 → 0.2.6

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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## English
4
4
 
5
- **Current release: 0.2.3** — Remote settings are capability-detected and optional, so older DSH RC hosts continue to start the plugin.
5
+ **Current release: 0.2.6** — Remote settings are capability-detected and optional, so older DSH RC hosts continue to start the plugin. This release adds a documented install path: `dsh plugin --profile web add dsh-tool-adapt`.
6
6
 
7
7
  A compatibility and safety adaptation layer for non-DeepSeek model families in DeepSeek Harness Web. It guards dead escalation states, injects model-family conventions, fuses repeated failures, and provides a lifecycle-safe Settings card and optional composer pill. Its DSH 0.1.2+ `remote.settings` path falls back to the legacy connection API on older RC hosts.
8
8
 
@@ -44,8 +44,19 @@ in the same tab).
44
44
 
45
45
  ## Install
46
46
 
47
- Add to the profile's `package.json` dependencies (`link:` for local dev) and
48
- to `dsh.profile.bundles`, then `pnpm install` and restart `dsh web`.
47
+ ```powershell
48
+ dsh plugin --profile web add dsh-tool-adapt
49
+ ```
50
+
51
+ Restart the existing DSH Web process afterwards: the Host scans the browser plugin roster at startup, so the Settings card and the optional pill appear only after that restart. Then open **Settings → Plugins → ADAPT**; the「显示状态胶囊」switch (`ui.pill`, default `false`) owns the composer pill's visibility.
52
+
53
+ Local development, from this package directory:
54
+
55
+ ```powershell
56
+ dsh plugin --profile web add .
57
+ ```
58
+
59
+ Either form records the package in the profile's `dsh.profile.bundles`, which is what mounts the Host half and serves the client bundle.
49
60
 
50
61
  ## Config
51
62
 
package/lib/client.js CHANGED
@@ -836,7 +836,7 @@ window.__ModuleLoader__.load({
836
836
  }
837
837
 
838
838
  exports.apply = apply
839
- exports.inject = ['slots', 'settingsScope']
839
+ exports.inject = ['slots', 'settingsScope', 'remote', 'remote.settings']
840
840
  return module.exports
841
841
  },
842
842
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tool-adapt",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "EN: Compatibility and safety adaptation layer for non-DeepSeek models in DeepSeek Harness Web. ZH: 面向 DeepSeek Harness Web 非 DeepSeek 模型的兼容与安全适配层。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",