@clinebot/core 0.0.37-nightly.1777950585 → 0.0.38

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.
@@ -7,7 +7,6 @@ export interface HubClientOptions {
7
7
  workspaceRoot?: string;
8
8
  cwd?: string;
9
9
  authToken?: string;
10
- allowLocalHubRediscovery?: boolean;
11
10
  }
12
11
  export interface LocalHubResolutionOptions {
13
12
  endpoint?: string;
@@ -34,17 +33,20 @@ export declare class HubCommandError extends Error {
34
33
  constructor(command: HubCommandEnvelope["command"], code: string | undefined, message: string);
35
34
  }
36
35
  export declare function isHubCommandTimeoutError(error: unknown, command?: HubCommandEnvelope["command"]): boolean;
36
+ export declare function rememberRecoverableLocalHubUrl(url: string, authToken?: string): string;
37
37
  export declare class NodeHubClient {
38
38
  private readonly options;
39
39
  private socket;
40
40
  private connectPromise;
41
41
  private readonly clientId;
42
42
  private currentUrl;
43
- private readonly allowLocalHubRediscovery;
44
43
  private recoveryPromise;
45
44
  private readonly pendingReplies;
46
45
  private readonly listeners;
47
46
  private readonly subscriptionCounts;
47
+ private reconnectTimer;
48
+ private reconnectAttempt;
49
+ private closedByClient;
48
50
  private lastCloseError;
49
51
  private sawSocketClose;
50
52
  private registered;
@@ -60,6 +62,10 @@ export declare class NodeHubClient {
60
62
  }): Promise<HubReplyEnvelope>;
61
63
  private commandOnce;
62
64
  private recoverLocalHubTransport;
65
+ private hasActiveSubscriptions;
66
+ private clearReconnectTimer;
67
+ private scheduleReconnect;
68
+ private reconnectSubscribedTransport;
63
69
  close(): void;
64
70
  dispose(): Promise<void>;
65
71
  private sendFrame;