@pluno/product-agent-web 0.1.168 → 0.1.170
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 +12 -4
- package/dist/product-agent-sdk.js +966 -886
- package/dist/product-agent-widget.js +3544 -3316
- package/dist/taskPageTitle.d.ts +23 -0
- package/dist/turnStatusLabel.d.ts +3 -0
- package/dist/widget.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
-
export type ProductAgentEntrySurface = "extension_sidepanel" | "extension_widget" | "main_web_chat" | "automation" | "mcp" | "embedded_widget" | "embedded_custom_ui";
|
|
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";
|
|
@@ -48,6 +49,7 @@ export type ProductAgentMessage = {
|
|
|
48
49
|
retryable?: boolean;
|
|
49
50
|
integrationAuthRequest?: ProductAgentIntegrationAuthRequest;
|
|
50
51
|
scheduledCheckInAt?: string;
|
|
52
|
+
personalChannelConnectionRequest?: ProductAgentPersonalChannelConnectionRequest;
|
|
51
53
|
securitySettingsUrl?: string;
|
|
52
54
|
};
|
|
53
55
|
export type ProductAgentIntegrationAuthRequest = {
|
|
@@ -58,6 +60,12 @@ export type ProductAgentIntegrationAuthRequest = {
|
|
|
58
60
|
appLogo?: string | null;
|
|
59
61
|
expiresAt: string;
|
|
60
62
|
};
|
|
63
|
+
export type ProductAgentPersonalChannelConnectionRequest = {
|
|
64
|
+
type: "personal_channel_connection_required";
|
|
65
|
+
requestId: string;
|
|
66
|
+
channel: "whatsapp";
|
|
67
|
+
managementUrl: string;
|
|
68
|
+
};
|
|
61
69
|
export type ProductAgentAttachment = {
|
|
62
70
|
id?: string;
|
|
63
71
|
name: string;
|
|
@@ -130,6 +138,7 @@ export type ProductAgentState = {
|
|
|
130
138
|
pendingMessageStatus: "sending" | "reconnecting" | null;
|
|
131
139
|
turnPhase: ProductAgentTurnPhase | null;
|
|
132
140
|
isThinking: boolean;
|
|
141
|
+
taskStatus: ProductAgentTaskStatus | null;
|
|
133
142
|
isRetrying: boolean;
|
|
134
143
|
lastError: string | null;
|
|
135
144
|
lastErrorCode: string | null;
|
|
@@ -241,6 +250,7 @@ export declare class PlunoProductAgent {
|
|
|
241
250
|
private readonly transportIdentity;
|
|
242
251
|
private retryAttemptsByClientMessageId;
|
|
243
252
|
private retryTimersByClientMessageId;
|
|
253
|
+
private recoveryExhaustionRequestedClientMessageIds;
|
|
244
254
|
private readonly reportedHealthSignalKeys;
|
|
245
255
|
private readonly clientMessageIdsByUserMessageItemId;
|
|
246
256
|
private readonly backgroundSessionIds;
|
|
@@ -259,7 +269,6 @@ export declare class PlunoProductAgent {
|
|
|
259
269
|
private activeResponseUserMessageId;
|
|
260
270
|
private activeResponseRunId;
|
|
261
271
|
private activeUserMessageEvent;
|
|
262
|
-
private readonly browserConnectionInterruptedClientMessageIds;
|
|
263
272
|
private latestRecoverableClientMessageId;
|
|
264
273
|
private lastUserMessagePageUrl;
|
|
265
274
|
private thinkingWatchdogResyncAttemptsByClientMessageId;
|
|
@@ -336,6 +345,7 @@ export declare class PlunoProductAgent {
|
|
|
336
345
|
private rememberCurrentRunAsBackground;
|
|
337
346
|
private retryAfterRetryableError;
|
|
338
347
|
private retryAfterInterruptedRun;
|
|
348
|
+
private requestSessionRecoveryExhaustion;
|
|
339
349
|
private clearRetryTimers;
|
|
340
350
|
private rememberUserMessageClientMessageIds;
|
|
341
351
|
private rejectPendingSessionHistoryRequests;
|
|
@@ -381,8 +391,6 @@ export declare class PlunoProductAgent {
|
|
|
381
391
|
private replaceTimedOutSocket;
|
|
382
392
|
private setState;
|
|
383
393
|
private setReconnectingState;
|
|
384
|
-
private rememberBrowserConnectionInterruptionForActiveRun;
|
|
385
|
-
private getRunRecoveryExhaustedErrorMessage;
|
|
386
394
|
private emit;
|
|
387
395
|
}
|
|
388
396
|
declare global {
|