@pluno/product-agent-web 0.1.136 → 0.1.141
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 +13 -0
- package/dist/product-agent-sdk.js +604 -527
- package/dist/product-agent-widget.js +2430 -2261
- package/dist/widget.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -86,12 +86,14 @@ export type ProductAgentPrepareAttachmentUploadInput = {
|
|
|
86
86
|
export type ProductAgentSessionHistoryEntry = {
|
|
87
87
|
id: string;
|
|
88
88
|
title: string | null;
|
|
89
|
+
customTitle: string | null;
|
|
89
90
|
firstUserMessage?: string | null;
|
|
90
91
|
currentPage: unknown;
|
|
91
92
|
createdAt: string;
|
|
92
93
|
updatedAt: string;
|
|
93
94
|
lastActiveAt: string;
|
|
94
95
|
isActive: boolean;
|
|
96
|
+
isPinned: boolean;
|
|
95
97
|
};
|
|
96
98
|
export type ProductAgentSessionHistoryPage = {
|
|
97
99
|
sessions: ProductAgentSessionHistoryEntry[];
|
|
@@ -198,6 +200,8 @@ export declare class PlunoProductAgent {
|
|
|
198
200
|
private queuedClientEvents;
|
|
199
201
|
private pendingWarmupEvent;
|
|
200
202
|
private pendingSessionHistoryRequests;
|
|
203
|
+
private pendingSessionPinRequests;
|
|
204
|
+
private pendingSessionRenameRequests;
|
|
201
205
|
private readonly transportIdentity;
|
|
202
206
|
private retryAttemptsByClientMessageId;
|
|
203
207
|
private retryTimersByClientMessageId;
|
|
@@ -219,6 +223,7 @@ export declare class PlunoProductAgent {
|
|
|
219
223
|
private readonly activeBrowserToolCalls;
|
|
220
224
|
private readonly pendingToolLoadingByCallId;
|
|
221
225
|
private readonly terminalToolCallIds;
|
|
226
|
+
private readonly nonTranscriptToolCallIds;
|
|
222
227
|
private pageLifecycleCleanup;
|
|
223
228
|
private transientStarterPromptsRequestInFlight;
|
|
224
229
|
private transientStarterPromptsRequestAttempted;
|
|
@@ -254,7 +259,10 @@ export declare class PlunoProductAgent {
|
|
|
254
259
|
listSessions(options?: {
|
|
255
260
|
cursor?: string | null;
|
|
256
261
|
limit?: number;
|
|
262
|
+
pinned?: boolean;
|
|
257
263
|
}): Promise<ProductAgentSessionHistoryPage>;
|
|
264
|
+
setSessionPinned(sessionId: string, pinned: boolean): Promise<void>;
|
|
265
|
+
renameSession(sessionId: string, title: string): Promise<void>;
|
|
258
266
|
loadSession(sessionId: string): void;
|
|
259
267
|
private send;
|
|
260
268
|
private getUploadToken;
|
|
@@ -272,6 +280,10 @@ export declare class PlunoProductAgent {
|
|
|
272
280
|
private clearRetryTimers;
|
|
273
281
|
private rememberUserMessageClientMessageIds;
|
|
274
282
|
private rejectPendingSessionHistoryRequests;
|
|
283
|
+
private sendSessionMutation;
|
|
284
|
+
private resolvePendingSessionMutation;
|
|
285
|
+
private rejectPendingSessionMutation;
|
|
286
|
+
private rejectPendingSessionMutationRequests;
|
|
275
287
|
private markThinkingProgress;
|
|
276
288
|
private scheduleThinkingWatchdog;
|
|
277
289
|
private clearThinkingWatchdog;
|
|
@@ -301,6 +313,7 @@ export declare class PlunoProductAgent {
|
|
|
301
313
|
private clearSocketPhaseTimers;
|
|
302
314
|
private replaceTimedOutSocket;
|
|
303
315
|
private setState;
|
|
316
|
+
private setReconnectingState;
|
|
304
317
|
private emit;
|
|
305
318
|
}
|
|
306
319
|
declare global {
|