@sparkelf/dsh-plugin-mobile-gateway 0.8.0 → 0.8.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.
package/lib/client.js CHANGED
@@ -2,7 +2,10 @@
2
2
  // bundle part of DSH's client-module graph; it contributes one sidebar footer
3
3
  // action and one shell overlay without replacing shipped UI seats.
4
4
  window.__ModuleLoader__.load({
5
- id: 'dsh-plugin-mobile-gateway',
5
+ // Must equal the package name: DSH derives the boot-manifest entry id from the package name,
6
+ // and a client bundle that registers a different id makes the same factory register twice,
7
+ // failing the whole browser boot with "Failed to load plugins".
8
+ id: '@sparkelf/dsh-plugin-mobile-gateway',
6
9
  factory: (require) => {
7
10
  const React = require('react')
8
11
  const module = { exports: {} }
package/lib/index.mjs CHANGED
@@ -3065,6 +3065,14 @@ const plugin = {
3065
3065
  }
3066
3066
 
3067
3067
  const installSessionQueueBaseline = (value) => {
3068
+ // DSH's SessionControlBaseline carries projections only; the queue snapshot is a gateway
3069
+ // extension some builds omit entirely. Treating its absence as an error aborted the whole
3070
+ // control stream on every generation, so a build without the field could never open a Session.
3071
+ if (value === void 0) {
3072
+ sessionQueues = new Map()
3073
+ broadcastSessionMetadataFrame({ kind: 'session-queues', queues: {} })
3074
+ return
3075
+ }
3068
3076
  if (!value || typeof value !== 'object' || Array.isArray(value)) {
3069
3077
  throw new Error('session/control baseline returned invalid queues')
3070
3078
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkelf/dsh-plugin-mobile-gateway",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Mobile gateway for DSH 0.1.7 (Session format 4), carrying the fork's format adaptation: v3 rows are lifted on read so a Session written by an earlier release still opens. Per-session Agent preset selection, live preset updates, and the upstream LAN/pairing protocol are unchanged.",
5
5
  "main": "lib/index.mjs",
6
6
  "files": [
@@ -46,5 +46,8 @@
46
46
  ]
47
47
  }
48
48
  },
49
- "license": "MIT"
49
+ "license": "MIT",
50
+ "publishConfig": {
51
+ "access": "public"
52
+ }
50
53
  }