@pluno/product-agent-web 0.1.135 → 0.1.140
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 +15 -0
- package/dist/messageTimestamp.d.ts +1 -0
- package/dist/product-agent-sdk.js +953 -791
- package/dist/product-agent-widget.js +2614 -2350
- package/dist/widget.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export type ProductAgentMessage = {
|
|
|
42
42
|
callId?: string;
|
|
43
43
|
attachments?: ProductAgentAttachment[];
|
|
44
44
|
loading?: boolean;
|
|
45
|
+
steered?: boolean;
|
|
45
46
|
retryable?: boolean;
|
|
46
47
|
integrationAuthRequest?: ProductAgentIntegrationAuthRequest;
|
|
47
48
|
securitySettingsUrl?: string;
|
|
@@ -85,12 +86,14 @@ export type ProductAgentPrepareAttachmentUploadInput = {
|
|
|
85
86
|
export type ProductAgentSessionHistoryEntry = {
|
|
86
87
|
id: string;
|
|
87
88
|
title: string | null;
|
|
89
|
+
customTitle: string | null;
|
|
88
90
|
firstUserMessage?: string | null;
|
|
89
91
|
currentPage: unknown;
|
|
90
92
|
createdAt: string;
|
|
91
93
|
updatedAt: string;
|
|
92
94
|
lastActiveAt: string;
|
|
93
95
|
isActive: boolean;
|
|
96
|
+
isPinned: boolean;
|
|
94
97
|
};
|
|
95
98
|
export type ProductAgentSessionHistoryPage = {
|
|
96
99
|
sessions: ProductAgentSessionHistoryEntry[];
|
|
@@ -197,6 +200,8 @@ export declare class PlunoProductAgent {
|
|
|
197
200
|
private queuedClientEvents;
|
|
198
201
|
private pendingWarmupEvent;
|
|
199
202
|
private pendingSessionHistoryRequests;
|
|
203
|
+
private pendingSessionPinRequests;
|
|
204
|
+
private pendingSessionRenameRequests;
|
|
200
205
|
private readonly transportIdentity;
|
|
201
206
|
private retryAttemptsByClientMessageId;
|
|
202
207
|
private retryTimersByClientMessageId;
|
|
@@ -218,6 +223,7 @@ export declare class PlunoProductAgent {
|
|
|
218
223
|
private readonly activeBrowserToolCalls;
|
|
219
224
|
private readonly pendingToolLoadingByCallId;
|
|
220
225
|
private readonly terminalToolCallIds;
|
|
226
|
+
private readonly nonTranscriptToolCallIds;
|
|
221
227
|
private pageLifecycleCleanup;
|
|
222
228
|
private transientStarterPromptsRequestInFlight;
|
|
223
229
|
private transientStarterPromptsRequestAttempted;
|
|
@@ -253,7 +259,10 @@ export declare class PlunoProductAgent {
|
|
|
253
259
|
listSessions(options?: {
|
|
254
260
|
cursor?: string | null;
|
|
255
261
|
limit?: number;
|
|
262
|
+
pinned?: boolean;
|
|
256
263
|
}): Promise<ProductAgentSessionHistoryPage>;
|
|
264
|
+
setSessionPinned(sessionId: string, pinned: boolean): Promise<void>;
|
|
265
|
+
renameSession(sessionId: string, title: string): Promise<void>;
|
|
257
266
|
loadSession(sessionId: string): void;
|
|
258
267
|
private send;
|
|
259
268
|
private getUploadToken;
|
|
@@ -271,10 +280,15 @@ export declare class PlunoProductAgent {
|
|
|
271
280
|
private clearRetryTimers;
|
|
272
281
|
private rememberUserMessageClientMessageIds;
|
|
273
282
|
private rejectPendingSessionHistoryRequests;
|
|
283
|
+
private sendSessionMutation;
|
|
284
|
+
private resolvePendingSessionMutation;
|
|
285
|
+
private rejectPendingSessionMutation;
|
|
286
|
+
private rejectPendingSessionMutationRequests;
|
|
274
287
|
private markThinkingProgress;
|
|
275
288
|
private scheduleThinkingWatchdog;
|
|
276
289
|
private clearThinkingWatchdog;
|
|
277
290
|
private handleRunAck;
|
|
291
|
+
private handleRunSteered;
|
|
278
292
|
private scheduleRunAckWatchdog;
|
|
279
293
|
private recoverMissedRunAck;
|
|
280
294
|
private scheduleRunAckResyncRetry;
|
|
@@ -299,6 +313,7 @@ export declare class PlunoProductAgent {
|
|
|
299
313
|
private clearSocketPhaseTimers;
|
|
300
314
|
private replaceTimedOutSocket;
|
|
301
315
|
private setState;
|
|
316
|
+
private setReconnectingState;
|
|
302
317
|
private emit;
|
|
303
318
|
}
|
|
304
319
|
declare global {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatProductAgentMessageTimestamp(timestamp: string, now?: number, locales?: string | string[]): string;
|