dsh-mcp-pill 0.2.8 → 0.2.10

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
@@ -27,7 +27,15 @@ Global MCP connection status pill for the DSH web UI — official bundle form
27
27
  (key `mcp-pill`) on ≤ 0.1.5. Each seat is declared by one host only, so the two
28
28
  registrations coexist with no version sniffing and the card always has a home;
29
29
  values keep flowing through the single settings transport
30
- (`settingsScope` on ≤ 0.1.5, `configForms` on ≥ 0.1.7).
30
+ (`settingsScope` on ≤ 0.1.5, `configForms` on ≥ 0.1.7). The same card is also
31
+ registered on the root-scope `settings.section` list seat — identity
32
+ `YOTK · MCP Pill`, id `yotk-mcp-pill`, order `60` — so on a host that declares
33
+ that seat it is a first-class page one click deep in 设置, additive beside the
34
+ row seat and never a gate.
35
+ - `@deepseek-ai/schemastery` is a private `dependencies` entry whose floor must be
36
+ ≥ 3.18.4 (`^3.18.4`): the profile hoists an older line (3.18.2) that satisfies a
37
+ lower floor, and an entry whose Config exposes no volatile field is dropped from
38
+ `SettingsForms.describe()` — the card then renders nothing with no error.
31
39
  - The pill snaps to one of the chat input's four corners (drag to switch);
32
40
  the anchor is remembered in `localStorage` (`dsh.mcpPill.anchor`).
33
41
  - The pill mounts inside the composer seat (same stacking level as the input
package/lib/client.js CHANGED
@@ -1001,6 +1001,43 @@ window.__ModuleLoader__.load({
1001
1001
  }
1002
1002
  ctx.inject(['slots'], registerRowConfig)
1003
1003
 
1004
+ // ── additive seat: the `settings.section` page ─────────────────────────
1005
+ //
1006
+ // 0.1.7-rc.2 also declares the root-scope LIST slot `settings.section`
1007
+ // ("one settings page per list entry"), which puts this same card one
1008
+ // click deep inside 设置 as a first-class page of its own. It is purely
1009
+ // ADDITIVE: the row seat above stays the bundle row's configuration, and
1010
+ // both render the SAME `SettingsCard` through the SAME single transport —
1011
+ // no second settings UI and no second read/write path.
1012
+ //
1013
+ // The seat declares exactly three registrant options — `id` (required),
1014
+ // `order`, `label` — so only those travel here. `label` is a THUNK, like
1015
+ // every label the catalog projects: the shell re-reads it on each
1016
+ // projection instead of caching registrant-localized text.
1017
+ //
1018
+ // Same non-gating shape as the row seat: `slots` is awaited with
1019
+ // `ctx.inject(['slots'], cb)`, the callback RETURNS the registration
1020
+ // disposer, and that disposer is pushed onto disposeSlots so the entry is
1021
+ // owned by the registering fiber and released with the rest on stop /
1022
+ // update / HMR. The seat is host-version dependent — a host that does not
1023
+ // declare it simply never fires the inner `slots.inject`, so this
1024
+ // registration can never gate the plugin.
1025
+ const registerSettingsSection = (sctx) => {
1026
+ disposeSlots.push(sctx.slots.inject('settings.section', () => sctx.slots.register({
1027
+ name: 'settings.section',
1028
+ id: 'yotk-mcp-pill',
1029
+ order: 60,
1030
+ label: () => 'YOTK · MCP Pill',
1031
+ }, function McpPillSettingsSection() {
1032
+ // The section owner shares `close` and nothing else; this card needs
1033
+ // neither `close` nor the host-owned optional `form` prop, because
1034
+ // values keep flowing through the one resolved transport — so the
1035
+ // page branch is literally the row seat's `view === 'page'` render.
1036
+ return e(SettingsCard, { scope, api })
1037
+ })))
1038
+ }
1039
+ ctx.inject(['slots'], registerSettingsSection)
1040
+
1004
1041
  // Pill: fully lifecycle-owned as before, but created hidden — the gate
1005
1042
  // inside startPill reveals it only while /status reports pill.enabled
1006
1043
  // === true (default off). The getter is re-read on every refresh, so the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mcp-pill",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
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",
@@ -20,7 +20,7 @@
20
20
  "test": "node --test"
21
21
  },
22
22
  "dependencies": {
23
- "@deepseek-ai/schemastery": "^3.18.1"
23
+ "@deepseek-ai/schemastery": "^3.18.4"
24
24
  },
25
25
  "dsh": {
26
26
  "bundle": {