dsh-relay-phone 0.11.2 → 0.11.4

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/package.json +1 -1
  2. package/src/pump.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-relay-phone",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Remote-control your local DeepSeek Harness from a phone through your own zero-knowledge relay: phone-first page, QR pairing, end-to-end encryption, approvals, full desktop UI fallback.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/pump.js CHANGED
@@ -578,6 +578,13 @@ export class PumpManager {
578
578
  if (this.streams.get(sid)?.upstream !== upstream) return
579
579
  stream.upstream = null
580
580
  let out = normalizeResponse(stream.respBuffer)
581
+ // Documents are the only relayed requests a browser navigates to, so a
582
+ // status here explains "the desktop UI is blank" reports: a 401/302 means
583
+ // the host did not accept the session the pump injected.
584
+ if (stream.relay && stream.injectBoot) {
585
+ const status = out.toString('latin1').split('\r\n', 1)[0]
586
+ auditLog(`document ${status} cookie=${this.resolveAuthCookie() ? 'yes' : 'no'} path=${stream.info?.path ?? '?'}`)
587
+ }
581
588
  if (stream.sealResponse) {
582
589
  out = this.cryptoBox.seal(this.cryptoBox.envelopeKey, out)
583
590
  this.respond(sid, 200, 'application/octet-stream', out, { 'x-relay-enc': '1' }, { keepAlive: stream.keepAlive })