@pluno/product-agent-web 0.1.168 → 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.
@@ -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;
@@ -0,0 +1,3 @@
1
+ type ProductAgentTurnStatusLabelPhase = "sending" | "starting" | "thinking";
2
+ export declare function getProductAgentTurnStatusLabel(phase: ProductAgentTurnStatusLabelPhase): string;
3
+ export {};
package/dist/widget.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PlunoProductAgent, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentInitOptions } from "./index";
1
+ import { PlunoProductAgent, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentPersonalChannelConnectionRequest, type ProductAgentInitOptions } from "./index";
2
2
  import { type ActiveUsersCounterValue } from "./activeUsersCounter";
3
3
  export type ProductAgentWidgetOptions = {
4
4
  layout?: "floating" | "page";
@@ -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"];
@@ -61,6 +62,7 @@ export type ProductAgentWidgetOptions = {
61
62
  tabGroups?: WidgetTabGroupsBridge;
62
63
  integrationAuthStatusLoader?: (request: ProductAgentIntegrationAuthRequest) => Promise<ProductAgentIntegrationAuthStatus>;
63
64
  integrationAuthHandler?: (request: ProductAgentIntegrationAuthRequest) => Promise<void>;
65
+ personalChannelConnectionHandler?: (request: ProductAgentPersonalChannelConnectionRequest) => Promise<void>;
64
66
  };
65
67
  export type ProductAgentIntegrationAuthStatus = "pending" | "completed" | "cancelled" | "expired";
66
68
  export type ProductAgentWidgetMorningReport = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.168",
3
+ "version": "0.1.170",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",