@deep-podder/dsh-remote-mobile 0.0.5 → 0.0.6
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/PROTOCOL.md +1 -1
- package/README.md +5 -3
- package/client.js +6 -1
- package/docs/screenshots/pairing-light.png +0 -0
- package/docs/screenshots/sessions-light.png +0 -0
- package/index.js +1 -1
- package/mobile/app.js +1 -1
- package/mobile/mock-server.js +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
package/PROTOCOL.md
CHANGED
|
@@ -364,7 +364,7 @@ A cold session answers `code: "not-live"`, an unknown or hidden command `code: "
|
|
|
364
364
|
### Server → Client
|
|
365
365
|
|
|
366
366
|
```jsonc
|
|
367
|
-
{ "type": "ready", "version": "0.0.
|
|
367
|
+
{ "type": "ready", "version": "0.0.6", "server": { "name", "port" },
|
|
368
368
|
"device": { "id", "name", "canApprove": true }, "sessions": [], "workspaces": [],
|
|
369
369
|
"activeSessionId": null, "queue": [],
|
|
370
370
|
"limits": { "image": { "maxBytes", "maxDimension", "maxImages",
|
package/README.md
CHANGED
|
@@ -72,9 +72,11 @@ the desktop-style project grouping, the chat surface and the Host command palett
|
|
|
72
72
|
|
|
73
73
|
## Requirements
|
|
74
74
|
|
|
75
|
-
- **DeepSeek Harness 0.2.2-rc.
|
|
76
|
-
a client module of the Harness Web UI).
|
|
77
|
-
|
|
75
|
+
- **DeepSeek Harness 0.2.2-rc.3** with the Desktop/Web profile (the desktop pairing panel is
|
|
76
|
+
a client module of the Harness Web UI). The plugin's scoped client registration was verified
|
|
77
|
+
against 0.2.2-rc.3; earlier 0.2.2-rc builds may work, but the client-module registration id
|
|
78
|
+
must match the installed package name (the bridge Host API surface this plugin uses is
|
|
79
|
+
documented in [docs/api-notes.md](docs/api-notes.md)).
|
|
78
80
|
- **Node 22 or newer** (the Host's runtime; the plugin itself has no npm dependencies and uses
|
|
79
81
|
only `node:` built-ins). `dev/` checks use the built-in `fetch`.
|
|
80
82
|
- A phone with a current browser. For use away from the LAN, **Tailscale** (or any HTTPS
|
package/client.js
CHANGED
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
// expiry countdown and paired-device management. All data comes from the Host
|
|
4
4
|
// server over a key-gated loopback endpoint.
|
|
5
5
|
window.__ModuleLoader__.load({
|
|
6
|
-
id
|
|
6
|
+
// The registration id MUST equal the client module's manifest row id (the
|
|
7
|
+
// package name). The module system keys factories by package name; a short
|
|
8
|
+
// id (e.g. `dsh-remote-mobile`) leaves the package row unresolved, so the
|
|
9
|
+
// bundle is loaded a second time and the second registration throws
|
|
10
|
+
// "duplicate factory registration".
|
|
11
|
+
id: '@deep-podder/dsh-remote-mobile',
|
|
7
12
|
factory(require) {
|
|
8
13
|
const React = require('react')
|
|
9
14
|
const h = React.createElement
|
|
Binary file
|
|
Binary file
|
package/index.js
CHANGED
package/mobile/app.js
CHANGED
package/mobile/mock-server.js
CHANGED
|
@@ -34,7 +34,7 @@ import { networkInterfaces } from 'node:os';
|
|
|
34
34
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
35
35
|
const PORT = Number(process.env.PORT || process.argv[2] || 3456);
|
|
36
36
|
const HOST = process.env.HOST || '0.0.0.0';
|
|
37
|
-
const VERSION = '0.0.
|
|
37
|
+
const VERSION = '0.0.6';
|
|
38
38
|
const PAIRING_TOKEN = randomBytes(24).toString('base64url');
|
|
39
39
|
const RATE_WINDOW_MS = Number(process.env.RM_RATE_WINDOW_MS || 5 * 60 * 1000);
|
|
40
40
|
const RATE_MAX = Number(process.env.RM_RATE_MAX || 5);
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -13,7 +13,7 @@ import { createAuth, equals } from './auth.js'
|
|
|
13
13
|
import { createPushService } from './push.js'
|
|
14
14
|
import { qrSvg } from './qr.js'
|
|
15
15
|
|
|
16
|
-
const VERSION = '0.0.
|
|
16
|
+
const VERSION = '0.0.6'
|
|
17
17
|
const WS_GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
|
|
18
18
|
const MAX_MESSAGE_BYTES = 1024 * 1024
|
|
19
19
|
const MAX_BODY_BYTES = 64 * 1024
|