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.
- package/lib/client.js +5 -4
- 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
|
-
//
|
|
871
|
-
//
|
|
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
|
-
:
|
|
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', '
|
|
898
|
+
exports.inject = ['slots', 'settingsScope', 'remote', 'remote.settings']
|
|
898
899
|
return module.exports
|
|
899
900
|
},
|
|
900
901
|
})
|
package/package.json
CHANGED