@pluno/product-agent-web 0.1.163 → 0.1.165
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 +8 -0
- package/dist/internalToolVisibility.d.ts +2 -0
- package/dist/markdown.d.ts +1 -0
- package/dist/product-agent-sdk.js +981 -854
- package/dist/product-agent-widget.js +3565 -3321
- 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;
|
|
@@ -255,6 +257,7 @@ export declare class PlunoProductAgent {
|
|
|
255
257
|
private readonly attachmentFiles;
|
|
256
258
|
private sessionBrowserApisCleanup;
|
|
257
259
|
private readonly activeBrowserToolCalls;
|
|
260
|
+
private readonly stoppedTurns;
|
|
258
261
|
private readonly pendingToolLoadingByCallId;
|
|
259
262
|
private readonly terminalToolCallIds;
|
|
260
263
|
private readonly nonTranscriptToolCallIds;
|
|
@@ -310,6 +313,11 @@ export declare class PlunoProductAgent {
|
|
|
310
313
|
private flushQueuedClientEvents;
|
|
311
314
|
private flushPendingPassiveWarmup;
|
|
312
315
|
private flushPendingComposerWarmup;
|
|
316
|
+
private findStoppedTurn;
|
|
317
|
+
private findStoppedTurnForEvent;
|
|
318
|
+
private rememberDurablyStoppedTurn;
|
|
319
|
+
private shouldIgnoreStoppedTurnEvent;
|
|
320
|
+
private filterStoppedSnapshotItems;
|
|
313
321
|
private handleServerEvent;
|
|
314
322
|
private shouldIgnoreBackgroundSessionEvent;
|
|
315
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;
|