@agenticmail/core 0.5.43 → 0.5.45
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/chunk-TIAKW5DC.js +623 -0
- package/dist/index.cjs +792 -673
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +166 -675
- package/dist/spam-filter-L6KNZ7QI.js +13 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -108,6 +108,10 @@ interface InboxWatcherOptions {
|
|
|
108
108
|
email: string;
|
|
109
109
|
password: string;
|
|
110
110
|
secure?: boolean;
|
|
111
|
+
/** Enable automatic reconnect with exponential backoff on disconnect (default: false) */
|
|
112
|
+
autoReconnect?: boolean;
|
|
113
|
+
/** Max reconnect attempts before giving up (default: Infinity) */
|
|
114
|
+
maxReconnectAttempts?: number;
|
|
111
115
|
}
|
|
112
116
|
declare class InboxWatcher extends EventEmitter {
|
|
113
117
|
private options;
|
|
@@ -116,8 +120,16 @@ declare class InboxWatcher extends EventEmitter {
|
|
|
116
120
|
private mailbox;
|
|
117
121
|
private autoFetch;
|
|
118
122
|
private _lock;
|
|
123
|
+
private _stopped;
|
|
124
|
+
private _reconnectTimer;
|
|
125
|
+
private _reconnectDelay;
|
|
126
|
+
private _reconnectAttempts;
|
|
127
|
+
private _maxReconnectAttempts;
|
|
128
|
+
private _autoReconnect;
|
|
119
129
|
constructor(options: InboxWatcherOptions, watcherOptions?: WatcherOptions);
|
|
120
130
|
start(): Promise<void>;
|
|
131
|
+
/** Schedule a reconnect attempt with exponential backoff */
|
|
132
|
+
private _scheduleReconnect;
|
|
121
133
|
stop(): Promise<void>;
|
|
122
134
|
isWatching(): boolean;
|
|
123
135
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ interface InboxWatcherOptions {
|
|
|
108
108
|
email: string;
|
|
109
109
|
password: string;
|
|
110
110
|
secure?: boolean;
|
|
111
|
+
/** Enable automatic reconnect with exponential backoff on disconnect (default: false) */
|
|
112
|
+
autoReconnect?: boolean;
|
|
113
|
+
/** Max reconnect attempts before giving up (default: Infinity) */
|
|
114
|
+
maxReconnectAttempts?: number;
|
|
111
115
|
}
|
|
112
116
|
declare class InboxWatcher extends EventEmitter {
|
|
113
117
|
private options;
|
|
@@ -116,8 +120,16 @@ declare class InboxWatcher extends EventEmitter {
|
|
|
116
120
|
private mailbox;
|
|
117
121
|
private autoFetch;
|
|
118
122
|
private _lock;
|
|
123
|
+
private _stopped;
|
|
124
|
+
private _reconnectTimer;
|
|
125
|
+
private _reconnectDelay;
|
|
126
|
+
private _reconnectAttempts;
|
|
127
|
+
private _maxReconnectAttempts;
|
|
128
|
+
private _autoReconnect;
|
|
119
129
|
constructor(options: InboxWatcherOptions, watcherOptions?: WatcherOptions);
|
|
120
130
|
start(): Promise<void>;
|
|
131
|
+
/** Schedule a reconnect attempt with exponential backoff */
|
|
132
|
+
private _scheduleReconnect;
|
|
121
133
|
stop(): Promise<void>;
|
|
122
134
|
isWatching(): boolean;
|
|
123
135
|
}
|