@pluno/product-agent-web 0.1.22 → 0.1.24

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 CHANGED
@@ -9,7 +9,23 @@ export type ProductAgentPage = {
9
9
  url: string;
10
10
  title: string;
11
11
  origin: string;
12
+ plunoProductAgentUi?: ProductAgentUiContext;
12
13
  };
14
+ export type ProductAgentUiSelector = {
15
+ name: string;
16
+ selector: string;
17
+ description: string;
18
+ };
19
+ export type ProductAgentUiContext = {
20
+ surface: "embedded_widget" | "browser_extension_sdk_preview";
21
+ description: string;
22
+ selectors: ProductAgentUiSelector[];
23
+ };
24
+ export declare const PLUNO_PRODUCT_AGENT_WIDGET_HOST_SELECTOR = ".pluno-pa-widget-host[data-pluno-product-agent-ui=\"widget\"]";
25
+ export declare const PLUNO_PRODUCT_AGENT_WIDGET_ROOT_SELECTOR = ".pluno-pa-widget[data-pluno-product-agent-ui-root=\"widget\"]";
26
+ export declare const PLUNO_PRODUCT_AGENT_WIDGET_PANEL_SELECTOR = ".pluno-pa-widget__panel";
27
+ export declare const PLUNO_PRODUCT_AGENT_WIDGET_TIMELINE_SELECTOR = ".pluno-pa-widget__timeline";
28
+ export declare const PLUNO_PRODUCT_AGENT_SDK_PREVIEW_HOST_SELECTOR = ".pluno-pa-widget-host[data-pluno-product-agent-ui=\"widget\"][data-pluno-sdk-preview-channel]";
13
29
  export type ProductAgentMessage = {
14
30
  id: string;
15
31
  role: "user" | "assistant" | "tool" | "system";
@@ -44,6 +60,7 @@ export type ProductAgentState = {
44
60
  assistantDraft: string;
45
61
  isThinking: boolean;
46
62
  lastError: string | null;
63
+ lastErrorCode: string | null;
47
64
  };
48
65
  export type ProductAgentInitOptions = {
49
66
  token?: string;
@@ -55,6 +72,8 @@ export type ProductAgentInitOptions = {
55
72
  autoConnect?: boolean;
56
73
  initialStarterPrompts?: string[];
57
74
  webSocketFactory?: ProductAgentWebSocketFactory;
75
+ restorePersistedState?: boolean;
76
+ expectedPersistedSessionId?: string | null;
58
77
  };
59
78
  export type ProductAgentWebSocket = {
60
79
  readyState: number;