@goodandready/dsh-messenger-gateway 0.4.1 → 0.4.2

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 +21 -3
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -1662,9 +1662,27 @@ window.__ModuleLoader__.load({
1662
1662
  }
1663
1663
  }
1664
1664
 
1665
- // Row seat on the Plugins page (current core): the plugin's row gains a
1666
- // configure control whose page is the settings form. Registered first; the
1667
- // legacy seats below stay as fallbacks so settings never become unreachable.
1665
+ // Plugin-list seat (current core, 0.1.6-alpha.2): the Plugins page lists this
1666
+ // entry as a card and opens the entry's own page with the settings form. The
1667
+ // label is a static string on purpose — it is resolved while the page renders,
1668
+ // and a locale lookup there would take the whole client batch down with it.
1669
+ registerSlotWhenReady('plugins.item', () => {
1670
+ const slots = ctx?.get?.('slots') || ctx?.slots
1671
+ return slots.register(
1672
+ {
1673
+ name: 'plugins.item',
1674
+ id: ROW_ID,
1675
+ order: 60,
1676
+ label: () => 'Messenger gateway',
1677
+ locale: NS,
1678
+ inject: () => ({ ctx }),
1679
+ },
1680
+ (props) => React.createElement(ErrorBoundary, null, React.createElement(PluginCard, { ...props, ctx: (props && props.ctx) || ctx }))
1681
+ )
1682
+ })
1683
+
1684
+ // Row seat and the legacy seats stay as fallbacks so settings never become
1685
+ // unreachable.
1668
1686
  registerSlotWhenReady('plugins.row.config', () => {
1669
1687
  const slots = ctx?.get?.('slots') || ctx?.slots
1670
1688
  return slots.register(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-messenger-gateway",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Telegram messenger bridge for DeepSeek Harness: sessions, steer, homes, inline asks, notify bridge, and optional TTS voice notes.",
5
5
  "license": "MIT",
6
6
  "type": "module",