@pluno/product-agent-web 0.1.133 → 0.1.135

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.ts CHANGED
@@ -133,6 +133,7 @@ export type ProductAgentInitOptions = {
133
133
  initialStarterPrompts?: string[];
134
134
  webSocketFactory?: ProductAgentWebSocketFactory;
135
135
  prepareAttachmentUpload?: (input: ProductAgentPrepareAttachmentUploadInput) => Promise<ProductAgentAttachmentUpload>;
136
+ persistAttachmentUpload?: (input: ProductAgentPrepareAttachmentUploadInput, file: File) => Promise<Pick<ProductAgentAttachmentUpload, "sessionId" | "attachment">>;
136
137
  restorePersistedState?: boolean;
137
138
  expectedPersistedSessionId?: string | null;
138
139
  keepRunsActiveOnSessionNavigation?: boolean;
@@ -194,6 +195,7 @@ export declare class PlunoProductAgent {
194
195
  private networkBatchTimer;
195
196
  private queuedNetworkEvents;
196
197
  private queuedClientEvents;
198
+ private pendingWarmupEvent;
197
199
  private pendingSessionHistoryRequests;
198
200
  private readonly transportIdentity;
199
201
  private retryAttemptsByClientMessageId;
@@ -230,6 +232,7 @@ export declare class PlunoProductAgent {
230
232
  connect(): Promise<void>;
231
233
  disconnect(): void;
232
234
  destroy(): void;
235
+ warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
233
236
  sendMessage(content: string, options?: {
234
237
  attachments?: ProductAgentAttachment[];
235
238
  clientMessageId?: string;
@@ -261,6 +264,7 @@ export declare class PlunoProductAgent {
261
264
  private refreshStarterPromptsForCurrentUrl;
262
265
  private clearStarterPromptUrlRefreshTimer;
263
266
  private flushQueuedClientEvents;
267
+ private flushPendingWarmupEvent;
264
268
  private handleServerEvent;
265
269
  private retryAfterRetryableError;
266
270
  private retryAfterInterruptedRun;