@pluno/product-agent-web 0.1.152 → 0.1.153
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/attachmentStorage.d.ts +2 -1
- package/dist/index.d.ts +6 -4
- package/dist/product-agent-sdk.js +587 -567
- package/dist/product-agent-widget.js +2361 -2335
- package/package.json +1 -1
|
@@ -8,10 +8,11 @@ export type StoredProductAgentAttachmentFile = {
|
|
|
8
8
|
sessionId?: string;
|
|
9
9
|
fileUrl?: string;
|
|
10
10
|
sandboxPath?: string;
|
|
11
|
+
storageKey?: string;
|
|
11
12
|
createdAt: number;
|
|
12
13
|
lastUsedAt: number;
|
|
13
14
|
};
|
|
14
|
-
export type ProductAgentAttachmentFileUpdate = Partial<Pick<StoredProductAgentAttachmentFile, "origin" | "sessionId" | "fileUrl" | "sandboxPath" | "lastUsedAt" | "blob">>;
|
|
15
|
+
export type ProductAgentAttachmentFileUpdate = Partial<Pick<StoredProductAgentAttachmentFile, "origin" | "sessionId" | "fileUrl" | "sandboxPath" | "storageKey" | "lastUsedAt" | "blob">>;
|
|
15
16
|
export declare function putProductAgentAttachmentFile(record: StoredProductAgentAttachmentFile): Promise<void>;
|
|
16
17
|
export declare function getProductAgentAttachmentFile(attachmentId: string): Promise<StoredProductAgentAttachmentFile | null>;
|
|
17
18
|
export declare function updateProductAgentAttachmentFile(attachmentId: string, patch: ProductAgentAttachmentFileUpdate): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export type ProductAgentAttachment = {
|
|
|
62
62
|
mimeType: string;
|
|
63
63
|
sizeBytes: number;
|
|
64
64
|
sandboxPath?: string;
|
|
65
|
+
storageKey?: string;
|
|
65
66
|
fileUrl?: string;
|
|
66
67
|
};
|
|
67
68
|
export type ProductAgentAttachmentUpload = {
|
|
@@ -192,6 +193,7 @@ type NetworkCaptureManager = {
|
|
|
192
193
|
subscribers: Set<NetworkCaptureSubscriber>;
|
|
193
194
|
destroy: () => void;
|
|
194
195
|
};
|
|
196
|
+
export declare const PRODUCT_AGENT_PROVIDER_INPUT_ATTACHMENT_ACCEPT = ".pdf,.png,.jpg,.jpeg,.webp";
|
|
195
197
|
export declare function calculateReconnectDelay(attempt: number, random?: () => number): number;
|
|
196
198
|
export declare class PlunoProductAgent {
|
|
197
199
|
private readonly options;
|
|
@@ -234,8 +236,7 @@ export declare class PlunoProductAgent {
|
|
|
234
236
|
private retryableClientMessageId;
|
|
235
237
|
private runtimeHelperJavascript;
|
|
236
238
|
private readonly attachmentFiles;
|
|
237
|
-
private
|
|
238
|
-
private sessionUserFilesApiCleanup;
|
|
239
|
+
private sessionBrowserApisCleanup;
|
|
239
240
|
private readonly activeBrowserToolCalls;
|
|
240
241
|
private readonly pendingToolLoadingByCallId;
|
|
241
242
|
private readonly terminalToolCallIds;
|
|
@@ -317,8 +318,8 @@ export declare class PlunoProductAgent {
|
|
|
317
318
|
private executeToolCall;
|
|
318
319
|
private setToolMessageLoading;
|
|
319
320
|
private startPageLifecycleRecovery;
|
|
320
|
-
private
|
|
321
|
-
private
|
|
321
|
+
private installSessionBrowserApis;
|
|
322
|
+
private cleanupSessionBrowserApis;
|
|
322
323
|
private executeRuntimeHelper;
|
|
323
324
|
private enableNetworkCapture;
|
|
324
325
|
private enqueueNetworkEvent;
|
|
@@ -342,4 +343,5 @@ declare global {
|
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
export declare function getProductAgentOriginAccessErrorMessage(message: string, runtimeOrigin?: string): string | null;
|
|
346
|
+
export declare function validateProductAgentProviderInputFile(file: File): void;
|
|
345
347
|
export default PlunoProductAgent;
|