dsh-mcp-pill 0.2.3 → 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.
Files changed (2) hide show
  1. package/lib/client.js +5 -4
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -867,12 +867,13 @@ window.__ModuleLoader__.load({
867
867
  // Settings card first: pill mounting waits for the composer seat
868
868
  // asynchronously and must never delay or break the Settings Slot.
869
869
  const scope = ctx.settingsScope.bind({ namespace: NS })
870
- // Compatibility layer: DSH 0.1.2 exposes fine-grained remote settings;
871
- // older RC builds keep the legacy connection API.
870
+ // DSH 0.1.2+ exposes fine-grained remote settings through
871
+ // @deepseek-ai/dsh-api-remotes (ctx.remote). The legacy RC connection API
872
+ // is no longer available, so there is no fallback branch.
872
873
  const remote = ctx.get('remote')
873
874
  const api = remote && remote.settings
874
875
  ? { settings: { mutate: (payload) => remote.settings.mutate(payload.ns, payload.ops, payload.expectedRevision).then((result) => ({ result })) } }
875
- : (ctx.get('connection') && ctx.get('connection').api)
876
+ : undefined
876
877
  const disposeSlot = ctx.slots.inject('settings.plugin.item', () => ctx.slots.register({
877
878
  name: 'settings.plugin.item',
878
879
  key: NS,
@@ -894,7 +895,7 @@ window.__ModuleLoader__.load({
894
895
  }
895
896
 
896
897
  exports.apply = apply
897
- exports.inject = ['slots', 'settingsScope', 'connection']
898
+ exports.inject = ['slots', 'settingsScope', 'remote', 'remote.settings']
898
899
  return module.exports
899
900
  },
900
901
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mcp-pill",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "EN: Lifecycle-safe MCP status pill and Settings card for DeepSeek Harness Web. ZH: 面向 DeepSeek Harness Web 的生命周期安全 MCP 状态胶囊与设置卡片。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",