dsh-mobile 0.2.2 → 0.3.0

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/index.d.mts CHANGED
@@ -311,7 +311,7 @@ declare function parseGatewayConfig(raw: unknown): ResolvedGatewayConfig;
311
311
  //#endregion
312
312
  //#region src/compatibility.d.ts
313
313
  /** DeepSeek Harness prereleases verified by this plugin release. */
314
- declare const SUPPORTED_DSH_VERSIONS: readonly ["0.1.0-rc.5", "0.1.0-rc.6", "0.1.0-rc.7", "0.1.1-rc.2"];
314
+ declare const SUPPORTED_DSH_VERSIONS: readonly ["0.1.0-rc.5", "0.1.0-rc.6", "0.1.0-rc.7", "0.1.1-rc.2", "0.1.2-alpha.1"];
315
315
  /**
316
316
  * Reject an unverified DeepSeek Harness Host before opening the LAN listener.
317
317
  * @param version - Version reported by the installed DSH WebServer package.
@@ -519,6 +519,7 @@ declare function rewriteMobileIndex(html: string): string;
519
519
  declare class MobileAccessGateway {
520
520
  readonly config: ResolvedGatewayConfig;
521
521
  private readonly extensions?;
522
+ private readonly upstreamAuthenticatedUrl?;
522
523
  readonly access: AccessController;
523
524
  private readonly listenerTlsEnabled;
524
525
  private readonly tlsEnabled;
@@ -532,13 +533,18 @@ declare class MobileAccessGateway {
532
533
  private readonly connectedSockets;
533
534
  private readonly activeRequests;
534
535
  private readonly activeWebSockets;
536
+ private readonly mobileBootBatches;
537
+ private upstreamCookie;
538
+ private upstreamCookieExpiresAt;
539
+ private upstreamCookieTask;
540
+ private upstreamAuthRequest;
535
541
  private nextOperationId;
536
542
  private closing;
537
543
  private started;
538
544
  private closeTask;
539
545
  private readonly removeSessionListener;
540
546
  private readonly renewLimiter;
541
- constructor(config: ResolvedGatewayConfig, store: DeviceStore, extensions?: MobileAccessService | undefined);
547
+ constructor(config: ResolvedGatewayConfig, store: DeviceStore, extensions?: MobileAccessService | undefined, upstreamAuthenticatedUrl?: string | undefined);
542
548
  /** Initialize durable state, validate TLS, and bind the externally reachable listener. */
543
549
  start(): Promise<void>;
544
550
  private startDiscovery;
@@ -563,7 +569,14 @@ declare class MobileAccessGateway {
563
569
  private handleExternalRequest;
564
570
  private handleExtensionRequest;
565
571
  private sendExtensionResponse;
572
+ /** Exchange DSH's process-local launch token for an authority-bound cookie kept inside this gateway. */
573
+ private upstreamCookieHeader;
574
+ private exchangeUpstreamCookie;
566
575
  private proxyMobileIndex;
576
+ private rememberMobileBootBatch;
577
+ private serveMobileBootBatch;
578
+ private assembleMobileBootBatch;
579
+ private readUpstreamClientBundle;
567
580
  private allocateRequest;
568
581
  private proxyHttp;
569
582
  private abortSessionResources;
@@ -595,7 +608,7 @@ declare const WS_PATHS: Set<string>;
595
608
  //#region src/plugin.d.ts
596
609
  /** Stable Cordis plugin name. */
597
610
  declare const name = "dsh-mobile";
598
- /** The stock WebServer serves the control card; commands exposes /mobile to the DSH agent. */
611
+ /** The stock WebServer serves the control card; Connection authenticates the loopback DSH origin. */
599
612
  declare const inject: string[];
600
613
  /** Mount the resident control route and its optional authenticated LAN gateway. */
601
614
  declare function apply(ctx: Context, config: PluginConfig): Promise<void>;