@goodandready/dsh-messenger-gateway 0.4.2 → 0.4.3

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 +7 -7
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // dsh-messenger-gateway — browser (client) half.
2
2
  // Settings card on Plugins → Plugin settings tab (settings.plugin.item).
3
- // Config managed via reactive ctx.settingsScope snapshot.
3
+ // Config managed via reactive ctx.configForms snapshot.
4
4
 
5
5
  window.__ModuleLoader__.load({
6
6
  id: '@goodandready/dsh-messenger-gateway',
@@ -565,8 +565,8 @@ window.__ModuleLoader__.load({
565
565
  }, [])
566
566
 
567
567
  const scope = React.useMemo(() => {
568
- const settingsScope = ctx?.get?.('settingsScope') || ctx?.settingsScope
569
- return settingsScope ? settingsScope.bind({ namespace: NS }) : undefined
568
+ const configForms = ctx?.get?.('configForms') || ctx?.configForms
569
+ return configForms ? configForms.get(NS) : undefined
570
570
  }, [ctx])
571
571
 
572
572
  const snapshot = React.useSyncExternalStore(
@@ -1584,7 +1584,7 @@ window.__ModuleLoader__.load({
1584
1584
  function refreshMirrorUntilVisible(ctx) {
1585
1585
  const visible = () => {
1586
1586
  try {
1587
- const s = (ctx?.get && ctx.get('lanSettings')) || (ctx?.get && ctx.get('settingsScope')) || ctx?.settingsScope
1587
+ const s = (ctx?.get && ctx.get('lanSettings')) || (ctx?.get && ctx.get('configForms')) || ctx?.configForms
1588
1588
  const view = s?.describe?.()?.getSnapshot?.()?.view
1589
1589
  return !!view && Array.isArray(view.namespaces) && view.namespaces.some((row) => row.ns === NS)
1590
1590
  } catch (_) {
@@ -1597,10 +1597,10 @@ window.__ModuleLoader__.load({
1597
1597
  if (visible() || tries >= 15) { clearInterval(timer); return }
1598
1598
  tries += 1
1599
1599
  try {
1600
- const s = (ctx?.get && ctx.get('lanSettings')) || (ctx?.get && ctx.get('settingsScope')) || ctx?.settingsScope
1600
+ const s = (ctx?.get && ctx.get('lanSettings')) || (ctx?.get && ctx.get('configForms')) || ctx?.configForms
1601
1601
  s?.describe?.()?.load?.()
1602
1602
  } catch (_) {
1603
- /* safe fallback if settingsScope is not yet attached to container */
1603
+ /* safe fallback if configForms is not yet attached to container */
1604
1604
  }
1605
1605
  }, 1000)
1606
1606
  return () => clearInterval(timer)
@@ -1710,7 +1710,7 @@ window.__ModuleLoader__.load({
1710
1710
  })
1711
1711
  }
1712
1712
 
1713
- module.exports = { apply, inject: ['slots', 'locale', 'settingsScope'] }
1713
+ module.exports = { apply, inject: ['slots', 'locale', 'configForms'] }
1714
1714
  return module.exports
1715
1715
  },
1716
1716
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-messenger-gateway",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
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",