@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.
- package/dist/displayedErrorMessage.d.ts +2 -0
- package/dist/displayedErrors.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +62 -53
- package/dist/product-agent-sdk.js +613 -601
- package/dist/product-agent-widget.js +3217 -3166
- package/dist/runtimeClient.d.ts +3 -2
- package/package.json +1 -1
package/dist/runtimeClient.d.ts
CHANGED
|
@@ -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