@pluno/product-agent-web 0.1.125 → 0.1.132

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,11 +7,11 @@ export type StoredProductAgentAttachmentFile = {
7
7
  origin?: string;
8
8
  sessionId?: string;
9
9
  fileUrl?: string;
10
- gcsPath?: string;
10
+ sandboxPath?: string;
11
11
  createdAt: number;
12
12
  lastUsedAt: number;
13
13
  };
14
- export type ProductAgentAttachmentFileUpdate = Partial<Pick<StoredProductAgentAttachmentFile, "origin" | "sessionId" | "fileUrl" | "gcsPath" | "lastUsedAt" | "blob">>;
14
+ export type ProductAgentAttachmentFileUpdate = Partial<Pick<StoredProductAgentAttachmentFile, "origin" | "sessionId" | "fileUrl" | "sandboxPath" | "lastUsedAt" | "blob">>;
15
15
  export declare function putProductAgentAttachmentFile(record: StoredProductAgentAttachmentFile): Promise<void>;
16
16
  export declare function getProductAgentAttachmentFile(attachmentId: string): Promise<StoredProductAgentAttachmentFile | null>;
17
17
  export declare function updateProductAgentAttachmentFile(attachmentId: string, patch: ProductAgentAttachmentFileUpdate): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export type ProductAgentModel = "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4" | "gpt-5.6-luna" | "gpt-5.6-terra" | "gpt-5.6-sol";
2
+ export type ProductAgentEntrySurface = "extension_sidepanel" | "extension_widget" | "main_web_chat" | "automation" | "mcp" | "embedded_widget" | "embedded_custom_ui";
3
+ export type ProductAgentLegacyEntrySurface = "sidepanel" | "browser_extension_page_ui" | "sdk_preview_widget" | "browser_extension_sdk_preview" | "sdk-preview" | "main_chat" | "automation_run";
4
+ export type ProductAgentInvocation = "user" | "automation" | "scheduled_continuation" | "private_continuation";
2
5
  export type ProductAgentUser = {
3
6
  id: string;
4
7
  email?: string | null;
@@ -56,7 +59,7 @@ export type ProductAgentAttachment = {
56
59
  name: string;
57
60
  mimeType: string;
58
61
  sizeBytes: number;
59
- gcsPath?: string;
62
+ sandboxPath?: string;
60
63
  fileUrl?: string;
61
64
  };
62
65
  export type ProductAgentAttachmentUpload = {
@@ -77,6 +80,7 @@ export type ProductAgentPrepareAttachmentUploadInput = {
77
80
  page: ProductAgentPage;
78
81
  model?: ProductAgentModel;
79
82
  metadata?: Record<string, unknown>;
83
+ entrySurface?: ProductAgentEntrySurface;
80
84
  };
81
85
  export type ProductAgentSessionHistoryEntry = {
82
86
  id: string;
@@ -124,6 +128,7 @@ export type ProductAgentInitOptions = {
124
128
  model?: ProductAgentModel;
125
129
  clientId?: string;
126
130
  metadata?: Record<string, unknown> | (() => Record<string, unknown> | undefined);
131
+ entrySurface?: ProductAgentEntrySurface | ProductAgentLegacyEntrySurface;
127
132
  autoConnect?: boolean;
128
133
  initialStarterPrompts?: string[];
129
134
  webSocketFactory?: ProductAgentWebSocketFactory;
@@ -209,6 +214,8 @@ export declare class PlunoProductAgent {
209
214
  private readonly attachmentBlobCache;
210
215
  private sessionUserFilesApiCleanup;
211
216
  private readonly activeBrowserToolCalls;
217
+ private readonly pendingToolLoadingByCallId;
218
+ private readonly terminalToolCallIds;
212
219
  private pageLifecycleCleanup;
213
220
  private transientStarterPromptsRequestInFlight;
214
221
  private transientStarterPromptsRequestAttempted;
@@ -227,13 +234,12 @@ export declare class PlunoProductAgent {
227
234
  attachments?: ProductAgentAttachment[];
228
235
  clientMessageId?: string;
229
236
  initiatedBy?: "pluno";
230
- }): string | null;
237
+ invocation?: ProductAgentInvocation | "pluno";
238
+ }): Promise<string | null>;
231
239
  retryLastMessage(): boolean;
232
240
  createLocalAttachment(file: File): ProductAgentAttachment;
233
241
  uploadAttachment(file: File): Promise<ProductAgentAttachment>;
234
- private startBackgroundAttachmentUploads;
235
242
  private uploadAttachmentForMessage;
236
- private waitForSessionId;
237
243
  private updateAttachmentInState;
238
244
  private prepareEmbedAttachmentUpload;
239
245
  private fetchEmbedAttachmentUpload;