dsh-tool-adapt 0.2.3 → 0.2.5

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/client.js +5 -4
  2. package/package.json +1 -1
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', 'remote', 'remote.settings']
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.3",
3
+ "version": "0.2.5",
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",