@pluno/product-agent-web 0.1.169 → 0.1.171
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 +7 -0
- package/dist/product-agent-sdk.js +517 -473
- package/dist/product-agent-widget.js +3304 -3185
- package/dist/taskPageTitle.d.ts +23 -0
- package/dist/turnStatusLabel.d.ts +3 -0
- package/dist/widget.d.ts +6 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { ProductAgentTaskStatus } from "./taskPageTitle";
|
|
1
2
|
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
3
|
export type ProductAgentEntrySurface = "extension_sidepanel" | "extension_widget" | "main_web_chat" | "whatsapp" | "automation" | "mcp" | "embedded_widget" | "embedded_custom_ui";
|
|
3
4
|
export type ProductAgentProductVariant = "personal" | "customer_embedded";
|
|
4
5
|
export type ProductAgentLegacyEntrySurface = "sidepanel" | "browser_extension_page_ui" | "sdk_preview_widget" | "browser_extension_sdk_preview" | "sdk-preview" | "main_chat" | "automation_run";
|
|
5
6
|
export type ProductAgentInvocation = "user" | "automation" | "scheduled_continuation" | "private_continuation";
|
|
7
|
+
export type ProductAgentWidgetLifecycleAction = "opened" | "closed" | "minimized";
|
|
8
|
+
export type ProductAgentWidgetLifecycleTrigger = "launcher_click" | "launcher_focus" | "launcher_input" | "minimized_launcher" | "attachment_drop" | "external_request" | "proactive_suggestion" | "morning_report" | "restored_state" | "close_button" | "morning_report_snooze" | "minimize_button";
|
|
6
9
|
export type ProductAgentUser = {
|
|
7
10
|
id: string;
|
|
8
11
|
email?: string | null;
|
|
@@ -137,6 +140,7 @@ export type ProductAgentState = {
|
|
|
137
140
|
pendingMessageStatus: "sending" | "reconnecting" | null;
|
|
138
141
|
turnPhase: ProductAgentTurnPhase | null;
|
|
139
142
|
isThinking: boolean;
|
|
143
|
+
taskStatus: ProductAgentTaskStatus | null;
|
|
140
144
|
isRetrying: boolean;
|
|
141
145
|
lastError: string | null;
|
|
142
146
|
lastErrorCode: string | null;
|
|
@@ -231,6 +235,7 @@ export declare class PlunoProductAgent {
|
|
|
231
235
|
private networkBatchTimer;
|
|
232
236
|
private queuedNetworkEvents;
|
|
233
237
|
private queuedClientEvents;
|
|
238
|
+
private pendingWidgetLifecycleEvents;
|
|
234
239
|
private pendingPassiveWarmupEvent;
|
|
235
240
|
private pendingComposerWarmup;
|
|
236
241
|
private activeComposerWarmupId;
|
|
@@ -294,6 +299,7 @@ export declare class PlunoProductAgent {
|
|
|
294
299
|
disconnect(): void;
|
|
295
300
|
destroy(): void;
|
|
296
301
|
warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
|
|
302
|
+
recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
|
|
297
303
|
sendMessage(content: string, options?: {
|
|
298
304
|
attachments?: ProductAgentAttachment[];
|
|
299
305
|
clientMessageId?: string;
|
|
@@ -331,6 +337,7 @@ export declare class PlunoProductAgent {
|
|
|
331
337
|
private clearStarterPromptUrlRefreshTimer;
|
|
332
338
|
private flushQueuedClientEvents;
|
|
333
339
|
private resetForAuthenticationScopeChange;
|
|
340
|
+
private flushPendingWidgetLifecycleEvents;
|
|
334
341
|
private flushPendingPassiveWarmup;
|
|
335
342
|
private flushPendingComposerWarmup;
|
|
336
343
|
private findStoppedTurn;
|