@pluno/product-agent-web 0.1.237 → 0.1.239
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/backendHttp.d.ts +0 -1
- package/dist/adapters/web/conversationPresentation.d.ts +1 -1
- package/dist/core/conversation/contracts.d.ts +3 -0
- package/dist/core/conversation/historyRefreshFailure.d.ts +8 -0
- package/dist/core/conversation/selectors.d.ts +1 -0
- package/dist/core/conversation/state.d.ts +1 -0
- package/dist/displayedErrors.d.ts +2 -1
- package/dist/httpDiagnostics.d.ts +3 -0
- package/dist/index.d.ts +4 -1
- package/dist/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +233 -205
- package/dist/product-agent-sdk.js +1760 -1703
- package/dist/product-agent-widget.js +2488 -2443
- package/dist/renderDiagnostics.d.ts +3 -0
- package/dist/runtimeClient.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PAHistoryRefreshFailure } from "./core/conversation/historyRefreshFailure";
|
|
1
2
|
import type { ProductAgentState } from "./index";
|
|
2
3
|
import type { UiInvariantSnapshot } from "./uiInvariants";
|
|
3
4
|
import { type OwnerDiagnostics } from "./runtime/transitionDiagnostics";
|
|
@@ -19,6 +20,8 @@ export type UiTransitionContext = {
|
|
|
19
20
|
guardCreatedAt: number | null;
|
|
20
21
|
owner?: OwnerDiagnostics;
|
|
21
22
|
};
|
|
23
|
+
export type HistoryRefreshFailure = PAHistoryRefreshFailure;
|
|
24
|
+
export declare function isHistoryRefreshFailure(value: unknown): value is HistoryRefreshFailure;
|
|
22
25
|
export type RenderedErrorEvidence = {
|
|
23
26
|
sessionId: string | null;
|
|
24
27
|
itemId: string;
|
package/dist/runtimeClient.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HistoryRefreshFailure } from "./renderDiagnostics";
|
|
1
2
|
import { type HttpRequestDiagnostic } from "./httpDiagnostics";
|
|
2
3
|
import { type OperationTiming } from "./operationTiming";
|
|
3
4
|
import { type RenderedErrorEvidence, type UiInvariantEvidence } from "./renderDiagnostics";
|
|
@@ -18,6 +19,7 @@ export type ProductAgentRuntimeCommand = {
|
|
|
18
19
|
reason: string;
|
|
19
20
|
errorFingerprint: string;
|
|
20
21
|
displayedMessage?: string;
|
|
22
|
+
historyRefreshFailure?: HistoryRefreshFailure;
|
|
21
23
|
renderedError?: RenderedErrorEvidence;
|
|
22
24
|
httpRequest?: HttpRequestDiagnostic;
|
|
23
25
|
} | {
|
|
@@ -119,7 +121,7 @@ export type ProductAgentRuntimeClient = {
|
|
|
119
121
|
reportOperationTiming?(timing: OperationTiming): void;
|
|
120
122
|
reportResponseVisibility?(observation: ResponseVisibilityObservation): void;
|
|
121
123
|
reportInvalidStateTransition?(reason: string, clientMessageId?: string, uiInvariant?: UiInvariantEvidence): void;
|
|
122
|
-
reportDisplayedError?(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence): void;
|
|
124
|
+
reportDisplayedError?(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence, historyRefreshFailure?: HistoryRefreshFailure): void;
|
|
123
125
|
warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
|
|
124
126
|
recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
|
|
125
127
|
sendMessage(content: string, options?: {
|
|
@@ -180,6 +182,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
|
|
|
180
182
|
private submissionGeneration;
|
|
181
183
|
private pendingStop;
|
|
182
184
|
private stopError;
|
|
185
|
+
private readonly stopPreviews;
|
|
183
186
|
private operationQueue;
|
|
184
187
|
private destroyed;
|
|
185
188
|
constructor(initialState: ProductAgentState, adapter: ProductAgentRuntimeClientAdapter, model?: ProductAgentModel);
|
|
@@ -193,7 +196,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
|
|
|
193
196
|
reportOperationTiming(timing: OperationTiming): void;
|
|
194
197
|
reportResponseVisibility(observation: ResponseVisibilityObservation): void;
|
|
195
198
|
reportInvalidStateTransition(reason: string, clientMessageId?: string, uiInvariant?: UiInvariantEvidence): void;
|
|
196
|
-
reportDisplayedError(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence): void;
|
|
199
|
+
reportDisplayedError(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence, historyRefreshFailure?: HistoryRefreshFailure): void;
|
|
197
200
|
sendMessage(content: string, options?: {
|
|
198
201
|
attachments?: ProductAgentAttachment[];
|
|
199
202
|
clientMessageId?: string;
|
package/package.json
CHANGED