@threadbase-sh/streamer 1.29.1 → 1.30.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/dist/index.d.cts CHANGED
@@ -321,6 +321,7 @@ interface ServerConfig {
321
321
  codexRoots?: string[];
322
322
  scannerPersistent?: boolean;
323
323
  ptyGracePeriodMs?: number;
324
+ wsAuthTimeoutMs?: number;
324
325
  cacheDir?: string;
325
326
  tailSize?: number;
326
327
  directoryScanDebounceMs?: number;
@@ -859,7 +860,7 @@ type ApiDeps = {
859
860
  handlePairExchange: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
860
861
  handleBrowse: (url: URL, res: ServerResponse) => Promise<void>;
861
862
  handleMkdir: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
862
- handleWsOpen: (ws: WebSocket) => void;
863
+ handleWsOpen: (ws: WebSocket, preAuthed: boolean) => void;
863
864
  handleWsMessage: (ws: WebSocket, raw: unknown) => void;
864
865
  handleWsClose: (ws: WebSocket) => void;
865
866
  agentClient: AgentClient | null;
@@ -1015,6 +1016,9 @@ declare class StreamerServer {
1015
1016
  private sessionSubscribers;
1016
1017
  private clientIdToWs;
1017
1018
  private wsToClientId;
1019
+ private wsAuthed;
1020
+ private wsAuthPending;
1021
+ private wsAuthTimeoutMs;
1018
1022
  private cache;
1019
1023
  private projectsRepo;
1020
1024
  private conversationsRepo;
@@ -1043,6 +1047,7 @@ declare class StreamerServer {
1043
1047
  * a full broadcast if no match exists (old clients, or no WS registered yet).
1044
1048
  */
1045
1049
  private broadcastOrUnicastSessionList;
1050
+ private completeWsAuth;
1046
1051
  private addSessionSubscriber;
1047
1052
  private startGraceTimer;
1048
1053
  get port(): number;
package/dist/index.d.ts CHANGED
@@ -321,6 +321,7 @@ interface ServerConfig {
321
321
  codexRoots?: string[];
322
322
  scannerPersistent?: boolean;
323
323
  ptyGracePeriodMs?: number;
324
+ wsAuthTimeoutMs?: number;
324
325
  cacheDir?: string;
325
326
  tailSize?: number;
326
327
  directoryScanDebounceMs?: number;
@@ -859,7 +860,7 @@ type ApiDeps = {
859
860
  handlePairExchange: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
860
861
  handleBrowse: (url: URL, res: ServerResponse) => Promise<void>;
861
862
  handleMkdir: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
862
- handleWsOpen: (ws: WebSocket) => void;
863
+ handleWsOpen: (ws: WebSocket, preAuthed: boolean) => void;
863
864
  handleWsMessage: (ws: WebSocket, raw: unknown) => void;
864
865
  handleWsClose: (ws: WebSocket) => void;
865
866
  agentClient: AgentClient | null;
@@ -1015,6 +1016,9 @@ declare class StreamerServer {
1015
1016
  private sessionSubscribers;
1016
1017
  private clientIdToWs;
1017
1018
  private wsToClientId;
1019
+ private wsAuthed;
1020
+ private wsAuthPending;
1021
+ private wsAuthTimeoutMs;
1018
1022
  private cache;
1019
1023
  private projectsRepo;
1020
1024
  private conversationsRepo;
@@ -1043,6 +1047,7 @@ declare class StreamerServer {
1043
1047
  * a full broadcast if no match exists (old clients, or no WS registered yet).
1044
1048
  */
1045
1049
  private broadcastOrUnicastSessionList;
1050
+ private completeWsAuth;
1046
1051
  private addSessionSubscriber;
1047
1052
  private startGraceTimer;
1048
1053
  get port(): number;