dsh-tool-adapt 0.2.2 → 0.2.4

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.2** — Remote settings are capability-detected and optional, so older DSH RC hosts continue to start the plugin.
5
+ **Current release: 0.2.3** — Remote settings are capability-detected and optional, so older DSH RC hosts continue to start the plugin.
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
 
package/lib/client.js CHANGED
@@ -805,12 +805,13 @@ window.__ModuleLoader__.load({
805
805
  // Settings card first: pill mounting waits for the composer seat
806
806
  // asynchronously and must never delay or break the Settings Slot.
807
807
  const scope = ctx.settingsScope.bind({ namespace: NS })
808
- // Compatibility layer: prefer DSH 0.1.2 fine-grained remote settings;
809
- // retain the legacy RC connection API for older hosts.
808
+ // DSH 0.1.2+ exposes fine-grained remote settings through
809
+ // @deepseek-ai/dsh-api-remotes (ctx.remote). The legacy RC connection API
810
+ // is no longer provided on the Client, so there is no fallback branch.
810
811
  const remote = ctx.get('remote')
811
812
  const api = remote && remote.settings
812
813
  ? { settings: { mutate: (payload) => remote.settings.mutate(payload.ns, payload.ops, payload.expectedRevision).then((result) => ({ result })) } }
813
- : (ctx.get('connection') && ctx.get('connection').api)
814
+ : undefined
814
815
  const disposeSlot = ctx.slots.inject('settings.plugin.item', () => ctx.slots.register({
815
816
  name: 'settings.plugin.item',
816
817
  key: NS,
@@ -835,7 +836,7 @@ window.__ModuleLoader__.load({
835
836
  }
836
837
 
837
838
  exports.apply = apply
838
- exports.inject = ['slots', 'settingsScope', 'connection']
839
+ exports.inject = ['slots', 'settingsScope']
839
840
  return module.exports
840
841
  },
841
842
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tool-adapt",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
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",