@pluno/product-agent-web 0.1.206 → 0.1.208

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.
@@ -8,6 +8,7 @@ export type ProductAgentRuntimeCommand = {
8
8
  type: "runtime.report_displayed_error";
9
9
  reason: string;
10
10
  errorFingerprint: string;
11
+ displayedMessage?: string;
11
12
  } | {
12
13
  type: "runtime.report_invalid_state_transition";
13
14
  reason: string;
@@ -93,7 +94,7 @@ export type ProductAgentRuntimeClient = {
93
94
  connect(): Promise<void>;
94
95
  destroy(): void;
95
96
  reportInvalidStateTransition?(reason: string, clientMessageId?: string): void;
96
- reportDisplayedError?(reason: string, errorFingerprint: string): void;
97
+ reportDisplayedError?(reason: string, errorFingerprint: string, displayedMessage?: string): void;
97
98
  warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
98
99
  recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
99
100
  sendMessage(content: string, options?: {
@@ -159,7 +160,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
159
160
  warmup(reason?: "panel_open" | "extension_install" | "composer_input"): Promise<void>;
160
161
  recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
161
162
  reportInvalidStateTransition(reason: string, clientMessageId?: string): void;
162
- reportDisplayedError(reason: string, errorFingerprint: string): void;
163
+ reportDisplayedError(reason: string, errorFingerprint: string, displayedMessage?: string): void;
163
164
  sendMessage(content: string, options?: {
164
165
  attachments?: ProductAgentAttachment[];
165
166
  clientMessageId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.206",
3
+ "version": "0.1.208",
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",