@pluno/product-agent-web 0.1.162 → 0.1.164
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 +9 -0
- package/dist/internalToolVisibility.d.ts +2 -0
- package/dist/markdown.d.ts +1 -0
- package/dist/product-agent-sdk.js +1009 -873
- package/dist/product-agent-widget.js +3588 -3335
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export type ProductAgentAppearance = {
|
|
|
110
110
|
fontFamily?: string;
|
|
111
111
|
scribbleStyle?: boolean;
|
|
112
112
|
};
|
|
113
|
+
export type ProductAgentTurnPhase = "sending" | "starting" | "thinking";
|
|
113
114
|
export type ProductAgentState = {
|
|
114
115
|
status: "idle" | "connecting" | "connected" | "reconnecting" | "closed" | "error";
|
|
115
116
|
user: ProductAgentUser | null;
|
|
@@ -124,6 +125,7 @@ export type ProductAgentState = {
|
|
|
124
125
|
assistantDraftRespondsToUserMessageId: string | null;
|
|
125
126
|
assistantDraftRunId: string | null;
|
|
126
127
|
pendingMessageStatus: "sending" | "reconnecting" | null;
|
|
128
|
+
turnPhase: ProductAgentTurnPhase | null;
|
|
127
129
|
isThinking: boolean;
|
|
128
130
|
isRetrying: boolean;
|
|
129
131
|
lastError: string | null;
|
|
@@ -228,6 +230,7 @@ export declare class PlunoProductAgent {
|
|
|
228
230
|
private readonly transportIdentity;
|
|
229
231
|
private retryAttemptsByClientMessageId;
|
|
230
232
|
private retryTimersByClientMessageId;
|
|
233
|
+
private readonly reportedHealthSignalKeys;
|
|
231
234
|
private readonly clientMessageIdsByUserMessageItemId;
|
|
232
235
|
private readonly backgroundSessionIds;
|
|
233
236
|
private readonly backgroundClientMessageIds;
|
|
@@ -254,6 +257,7 @@ export declare class PlunoProductAgent {
|
|
|
254
257
|
private readonly attachmentFiles;
|
|
255
258
|
private sessionBrowserApisCleanup;
|
|
256
259
|
private readonly activeBrowserToolCalls;
|
|
260
|
+
private readonly stoppedTurns;
|
|
257
261
|
private readonly pendingToolLoadingByCallId;
|
|
258
262
|
private readonly terminalToolCallIds;
|
|
259
263
|
private readonly nonTranscriptToolCallIds;
|
|
@@ -309,6 +313,11 @@ export declare class PlunoProductAgent {
|
|
|
309
313
|
private flushQueuedClientEvents;
|
|
310
314
|
private flushPendingPassiveWarmup;
|
|
311
315
|
private flushPendingComposerWarmup;
|
|
316
|
+
private findStoppedTurn;
|
|
317
|
+
private findStoppedTurnForEvent;
|
|
318
|
+
private rememberDurablyStoppedTurn;
|
|
319
|
+
private shouldIgnoreStoppedTurnEvent;
|
|
320
|
+
private filterStoppedSnapshotItems;
|
|
312
321
|
private handleServerEvent;
|
|
313
322
|
private shouldIgnoreBackgroundSessionEvent;
|
|
314
323
|
private rememberCurrentRunAsBackground;
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function normalizeProductAgentDownloadLinks(markdown: string, backendUrl?: string): string;
|
|
2
2
|
export declare function isProductAgentDownloadHref(href: string | undefined, backendUrl?: string): boolean;
|
|
3
3
|
export declare function normalizeAssistantMarkdown(markdown: string): string;
|
|
4
|
+
export declare function getAssistantMarkdownSummaryText(markdown: string): string;
|