@pluno/product-agent-web 0.1.248 → 0.1.250
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/adapters/web/errorAdapter.d.ts +3 -1
- package/dist/core/protocol/errorNormalization.d.ts +6 -0
- package/dist/core/protocol/normalizeError.d.ts +2 -1
- package/dist/displayedErrors.d.ts +1 -0
- package/dist/errorDiagnostic.d.ts +16 -0
- package/dist/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +225 -188
- package/dist/product-agent-sdk.js +1351 -1310
- package/dist/product-agent-widget.js +2719 -2692
- package/dist/runtime/transitionDiagnostics.d.ts +3 -0
- package/dist/runtimeClient.d.ts +3 -0
- package/package.json +1 -1
|
@@ -26,6 +26,9 @@ export type OwnerDiagnostics = {
|
|
|
26
26
|
transitions: OwnerTransition[];
|
|
27
27
|
};
|
|
28
28
|
export type ConversationDiagnostics = {
|
|
29
|
+
errorMessageFingerprint?: string;
|
|
30
|
+
errorRequestId?: string;
|
|
31
|
+
errorNormalization?: import("../core/protocol/errorNormalization").ErrorNormalizationEvidence;
|
|
29
32
|
httpRequest?: HttpRequestDiagnostic;
|
|
30
33
|
owner?: OwnerDiagnostics;
|
|
31
34
|
queryStatus: string | null;
|
package/dist/runtimeClient.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ErrorDiagnostic } from "./errorDiagnostic";
|
|
1
2
|
import { type HistoryRefreshFailure } from "./renderDiagnostics";
|
|
2
3
|
import { type HttpRequestDiagnostic } from "./httpDiagnostics";
|
|
3
4
|
import { type OperationTiming } from "./operationTiming";
|
|
@@ -16,6 +17,7 @@ export type ProductAgentRuntimeCommand = {
|
|
|
16
17
|
observation: ResponseVisibilityObservation;
|
|
17
18
|
} | {
|
|
18
19
|
type: "runtime.report_displayed_error";
|
|
20
|
+
errorDiagnostic?: ErrorDiagnostic;
|
|
19
21
|
reason: string;
|
|
20
22
|
errorFingerprint: string;
|
|
21
23
|
displayedMessage?: string;
|
|
@@ -107,6 +109,7 @@ export type ProductAgentRuntimeCommandResult = {
|
|
|
107
109
|
sessionHistoryPage?: ProductAgentSessionHistoryPage;
|
|
108
110
|
};
|
|
109
111
|
export type ProductAgentRuntimeClientAdapter = {
|
|
112
|
+
diagnosticBuilds?: Pick<ErrorDiagnostic["builds"], "rendererExtension" | "contentExtension">;
|
|
110
113
|
dispatch(command: ProductAgentRuntimeCommand): Promise<ProductAgentRuntimeCommandResult | void>;
|
|
111
114
|
uploadAttachment?: (file: File, attachment: ProductAgentAttachment, context: {
|
|
112
115
|
clientMessageId: string;
|
package/package.json
CHANGED