@pluno/product-agent-web 0.1.169 → 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 +2 -0
- package/dist/product-agent-sdk.js +588 -570
- package/dist/product-agent-widget.js +3209 -3118
- package/dist/taskPageTitle.d.ts +23 -0
- package/dist/turnStatusLabel.d.ts +3 -0
- package/dist/widget.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type ProductAgentTaskStatus = "working" | "completed" | "failed" | "stopped";
|
|
2
|
+
export type ProductAgentTaskPageTitleDocument = {
|
|
3
|
+
getTitle: () => string;
|
|
4
|
+
setTitle: (title: string) => void;
|
|
5
|
+
observeTitle: (onTitleChanged: () => void) => () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare class ProductAgentTaskPageTitleController {
|
|
8
|
+
private readonly titleDocument;
|
|
9
|
+
private status;
|
|
10
|
+
private baseTitle;
|
|
11
|
+
private lastAppliedTitle;
|
|
12
|
+
private stopObserving;
|
|
13
|
+
private liveStatusVersion;
|
|
14
|
+
constructor(titleDocument: ProductAgentTaskPageTitleDocument);
|
|
15
|
+
setStatus(status: ProductAgentTaskStatus): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
syncStatus(loadStatus: () => Promise<ProductAgentTaskStatus | null | undefined>): Promise<void>;
|
|
18
|
+
private applyStatus;
|
|
19
|
+
private applyClear;
|
|
20
|
+
private handleTitleChanged;
|
|
21
|
+
private applyTitle;
|
|
22
|
+
}
|
|
23
|
+
export declare function createProductAgentTaskPageTitleDocument(targetDocument: Document): ProductAgentTaskPageTitleDocument;
|
package/dist/widget.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type ProductAgentWidgetOptions = {
|
|
|
24
24
|
expectedPersistedSessionId?: string | null;
|
|
25
25
|
keepRunsActiveOnSessionNavigation?: boolean;
|
|
26
26
|
capturePageContent?: boolean;
|
|
27
|
+
manageTaskPageTitle?: boolean;
|
|
27
28
|
webSocketFactory?: ProductAgentInitOptions["webSocketFactory"];
|
|
28
29
|
prepareAttachmentUpload?: ProductAgentInitOptions["prepareAttachmentUpload"];
|
|
29
30
|
persistAttachmentUpload?: ProductAgentInitOptions["persistAttachmentUpload"];
|
package/package.json
CHANGED